Cassiiopeia/projectops / plugins/projectops-extras/skills/pro-remote-link
pro-remote-link
VerifiedGive 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'.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.7 KB |
| harness/orca.md | markdown | 3.0 KB |
| harness/paseo.md | markdown | 4.3 KB |
| scripts/remote_apps/__init__.py | script | 961 B |
| scripts/remote_apps/orca.py | script | 1.6 KB |
| scripts/remote_apps/paseo.py | script | 7.5 KB |
| scripts/remote_link_cli.py | script | 11.2 KB |
| scripts/tunnel/__init__.py | script | 105 B |
| scripts/tunnel/links.py | script | 3.2 KB |
| scripts/tunnel/probe.py | script | 2.9 KB |
| scripts/tunnel/proc.py | script | 4.1 KB |
| scripts/tunnel/processes.py | script | 6.5 KB |
| scripts/tunnel/state.py | script | 2.3 KB |
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}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 471k | Updated | Claude CodeCodex | Verified | Install |
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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 available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |