Skip to content

Cassiiopeia/projectops / plugins/projectops-extras/skills/pro-remote-link

pro-remote-link

Verified

Give one link to open a desktop agent app (Orca, Paseo) on this computer from outside: Orca through a cloudflared quick tunnel and its saved pairing link, Paseo through its relay pairing link. Use for 'Orca link', 'Orca URL', 'Orca tunnel', 'Paseo link', 'remote link', 'open from outside'.

scripts/tunnel/probe.py

View on GitHub
"""Address check: resolve via Cloudflare DNS (HTTPS) > connect to that IP directly for a status code (independent of local DNS lag)"""
from __future__ import annotations

import json
import re
import socket
import ssl
import urllib.error
import urllib.parse
import urllib.request

DNS_OVER_HTTPS = "https://cloudflare-dns.com/dns-query"


def resolve_public(host: str) -> list[str]:
    query = urllib.parse.urlencode({"name": host, "type": "A"})
    request = urllib.request.Request(f"{DNS_OVER_HTTPS}?{query}", headers={"accept": "application/dns-json"})
    try:
        with urllib.request.urlopen(request, timeout=10) as response:
            answer = json.loads(response.read().decode("utf-8"))
    except (OSError, ValueError):
        return []
    return [item["data"] for item in answer.get("Answer") or [] if item.get("type") == 1 and item.get("data")]


def resolves_locally(host: str) -> bool:
    try:
        socket.getaddrinfo(host, 443)
    except OSError:
        return False
    return True


def http_status(host: str, ip: str, path: str = "/") -> int | None:
    """Response code from connecting to ip directly with host as SNI. None on failure"""
    context = ssl.create_default_context()
    try:
        with socket.create_connection((ip, 443), timeout=10) as raw:
            with context.wrap_socket(raw, server_hostname=host) as connection:
                request = f"GET {path} HTTP/1.1\r\nHost: {host}\r\nUser-Agent: projectops-tunnel\r\nConnection: close\r\n\r\n"
                connection.sendall(request.encode("ascii"))
                status_line = connection.recv(256).decode("latin-1").split("\r\n", 1)[0]
    except (OSError, ssl.SSLError):
        return None
    parts = status_line.split()
    return int(parts[1]) if len(parts) >= 2 and parts[1].isdigit() else None


def check(url: str, path: str = "/") -> dict:
    """{answers, status, local_dns_ready}: answers means it replied with 2xx or 3xx"""
    host = urllib.parse.urlparse(url).hostname or ""
    addresses = resolve_public(host)
    status = http_status(host, addresses[0], path) if addresses else None
    return {"answers": status is not None and 200 <= status < 400, "status": status,
            "local_dns_ready": resolves_locally(host)}


def local_page(port: int, path: str = "/") -> dict:
    """{status, title} from asking this computer's port directly. status None when nothing answers"""
    try:
        with urllib.request.urlopen(f"http://127.0.0.1:{port}{path}", timeout=3) as response:
            body = response.read(16384).decode("utf-8", errors="replace")
            status = response.status
    except urllib.error.HTTPError as error:
        return {"status": error.code, "title": None}
    except OSError:
        return {"status": None, "title": None}
    match = re.search(r"<title>([^<]*)</title>", body, re.IGNORECASE)
    return {"status": status, "title": match.group(1).strip() if match else None}
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall