@agimon-ai/po-remote 0.0.0-alpha.170 → 0.0.0-alpha.172

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,6 +13,16 @@ Requires Node.js 24 or newer. Po ships this package as a fixed foundation on Nod
13
13
 
14
14
  po-core never imports this package. The contracts it implements live in `@agimon-ai/po-core/remoteContract` (route names, settings and device types, own-device route classification), `@agimon-ai/po-core/remoteOrigin` and `@agimon-ai/po-core/sessionMcpContract` (which Session MCP routes are public, host-only or phone-reachable). Federation grant storage lives in `@agimon-ai/po-federation`, which Cloud also loads.
15
15
 
16
+ ## Independent connections
17
+
18
+ The approved `ConnectionsOff` and `ConnectionsOn` exports in `RemoteAccessDialog.stories.tsx` exercise `RemoteConnectionsDialog`. The dialog reads the tunnel and relay states separately. The relay card links the host through Po Cloud and only mints pairing codes after relay admission. The tunnel card never starts, stops, or pairs the relay. Its use is optional.
19
+
20
+ Local connection controls are `/api/remote/{relay,tunnel}/{state,enable,disable,codes}` plus transport-specific pairing approval and session revocation. They require the local presentation origin and CSRF header. The existing local `/api/remote/disable` stops both listeners. Legacy environment-configured relay and LAN modes retain their one-listener behavior.
21
+
22
+ Each listener owns its pairing codes, sessions, channels, timers, and failures. Native can explicitly scan the other connection's QR for a host whose signer it already trusts. The host verifies a fresh origin-bound proof with the existing trusted device key, and issues a new session on the chosen connection. No cookies move across. A refused switch does not try another route. Revoking the trusted key ends its sessions on both routes.
23
+
24
+ `dualRemote.test.ts` exercises both connections with an isolated host and fake carriers. This does not demonstrate a live public tunnel, staging pairing, or physical-device acceptance. Private relay pairing in the host dialog uses the Po app; Cloud browser bootstrap is a separate acceptance requirement.
25
+
16
26
  ## Help and authoring
17
27
 
18
28
  The package publishes `src/prompts/help-how-to-remote/SKILL.md` through a named resource route and `llms.txt`. Keep additional guides package-owned and in the publish allowlist; do not export Markdown or copy it into `dist`.