@agimon-ai/po-remote 0.0.0-alpha.170
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/LICENSE +149 -0
- package/README.md +28 -0
- package/dist/apiContracts.cjs +17 -0
- package/dist/apiContracts.cjs.map +1 -0
- package/dist/apiContracts.d.mts +53 -0
- package/dist/apiContracts.d.mts.map +1 -0
- package/dist/apiContracts.mjs +13 -0
- package/dist/apiContracts.mjs.map +1 -0
- package/dist/extensions/server.cjs +30 -0
- package/dist/extensions/server.cjs.map +1 -0
- package/dist/extensions/server.d.mts +5 -0
- package/dist/extensions/server.d.mts.map +1 -0
- package/dist/extensions/server.mjs +25 -0
- package/dist/extensions/server.mjs.map +1 -0
- package/dist/extensions/web.mjs +1464 -0
- package/dist/extensions/web.mjs.map +1 -0
- package/dist/index.cjs +6190 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +553 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +6159 -0
- package/dist/index.mjs.map +1 -0
- package/dist/po-runtime-identity.json +1 -0
- package/llms.txt +13 -0
- package/package.json +158 -0
- package/src/prompts/help-how-to-remote/SKILL.md +23 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"platformRequirements":{},"sourceFiles":["LICENSE","README.md","generated/server.ts","generated/web.ts","llms.txt","package.json","src/constants/remote.ts","src/exports/apiContracts.ts","src/exports/index.ts","src/extensions/(frontend)/_components/DevProxyTargets.stories.tsx","src/extensions/(frontend)/_components/DevProxyTargets.tsx","src/extensions/(frontend)/_components/PairedDeviceList.stories.tsx","src/extensions/(frontend)/_components/PairedDeviceList.tsx","src/extensions/(frontend)/_components/PairingApprovalDialog.stories.tsx","src/extensions/(frontend)/_components/PairingApprovalDialog.tsx","src/extensions/(frontend)/_components/Remote.fixture.tsx","src/extensions/(frontend)/_components/RemoteAccessDialog.stories.tsx","src/extensions/(frontend)/_components/RemoteAccessDialog.tsx","src/extensions/(frontend)/_components/RemoteAccessOptions.stories.tsx","src/extensions/(frontend)/_components/RemoteAccessOptions.tsx","src/extensions/(frontend)/_components/RemoteAccessPairing.stories.tsx","src/extensions/(frontend)/_components/RemoteAccessPairing.tsx","src/extensions/(frontend)/_components/Story.fixture.tsx","src/extensions/(frontend)/_components/TrustedDeviceList.stories.tsx","src/extensions/(frontend)/_components/TrustedDeviceList.tsx","src/extensions/(frontend)/_lib/devProxyApi.ts","src/extensions/(frontend)/_lib/devProxyStore.ts","src/extensions/(frontend)/_lib/remoteAccessStore.ts","src/extensions/(frontend)/_lib/remoteApi.ts","src/extensions/(frontend)/_lib/remoteSummary.ts","src/extensions/(frontend)/_lib/uiState.ts","src/extensions/(frontend)/fill/PairingApproval.overlay.web.tsx","src/extensions/(frontend)/fill/Remote.rail-status.web.tsx","src/extensions/(frontend)/fill/RemoteAccess.overlay.web.tsx","src/extensions/(frontend)/fill/_components/RemoteRailStatus.stories.tsx","src/extensions/(frontend)/fill/_components/RemoteRailStatus.tsx","src/extensions/(frontend)/lifecycle/start.web.ts","src/extensions/(frontend)/setting/_components/RemoteControlSettings.stories.tsx","src/extensions/(frontend)/setting/_components/RemoteControlSettings.tsx","src/extensions/(frontend)/setting/_components/TunnelSettings.stories.tsx","src/extensions/(frontend)/setting/_components/TunnelSettings.tsx","src/extensions/(frontend)/setting/remote.panel.web.tsx","src/extensions/workspaces/sessions/(backend)/resource/help-how-to-remote.server.ts","src/prompts/help-how-to-remote/SKILL.md","src/schemas/apiContracts.ts","src/services/devProxyForward/index.ts","src/services/devProxyPolicy/index.ts","src/services/devProxyRoutes/index.ts","src/services/devProxySocket/index.ts","src/services/devProxyStore/devProxyRecords.ts","src/services/devProxyStore/index.ts","src/services/devProxyStore/sync.edge.ts","src/services/devProxyStore/sync.ts","src/services/deviceAuth/index.ts","src/services/deviceSessions/index.ts","src/services/deviceTrust/index.ts","src/services/hubDeviceTrust/index.ts","src/services/hubFederation/index.ts","src/services/loopbackAddress/index.ts","src/services/nativePushRegistration/index.ts","src/services/pairingFlow/index.ts","src/services/publicFileShares/index.ts","src/services/remoteAccess/index.ts","src/services/remoteAccessSettings/index.ts","src/services/remoteAccessStore/index.ts","src/services/remoteAccessStore/remoteAccessRecords.ts","src/services/remoteAccessStore/sync.edge.ts","src/services/remoteAccessStore/sync.ts","src/services/remoteApi/index.ts","src/services/remoteGuardPolicy/index.ts","src/services/remoteRoutes/index.ts","src/services/remoteRuntime/index.ts","src/services/tunnelOutput/index.ts","src/services/tunnelProcess/index.ts","src/services/webauthn/index.ts","src/services/webauthnPolicy/index.ts","src/types/devProxy.ts","src/types/remote.ts","src/types/remoteAccess.ts","tsdown.config.ts"],"sourceRevision":"b78d5cc7956c61b6bad264b96d9df9e8","manifestRevision":"974f488a6698c448c037ee75abfbdce4","outputFiles":["LICENSE","README.md","dist/apiContracts.cjs","dist/apiContracts.mjs","dist/extensions/server.cjs","dist/extensions/server.mjs","dist/extensions/web.mjs","dist/index.cjs","dist/index.mjs","llms.txt","src/prompts/help-how-to-remote/SKILL.md"],"outputRevision":"61ae768d0598ea3955733878a9659a9e"}
|
package/llms.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @agimon-ai/po-remote
|
|
2
|
+
|
|
3
|
+
Package-owned guidance for Remote access gateway for a Po host: the tunnel, pairing, device trust, passkey step-up, the dev proxy and host federation.
|
|
4
|
+
|
|
5
|
+
## How to use
|
|
6
|
+
|
|
7
|
+
- [Use Remote](./src/prompts/help-how-to-remote/SKILL.md): Run the package command and follow its package-specific usage guidance.
|
|
8
|
+
|
|
9
|
+
## Resources
|
|
10
|
+
|
|
11
|
+
- [Package README](./README.md): Installation, development commands, native server command, and extension-specific usage.
|
|
12
|
+
|
|
13
|
+
- [Plugin lifecycle](./README.md#structure-and-lifecycle): Entry structure, registration ownership, startup, shutdown, and failure cleanup.
|
package/package.json
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agimon-ai/po-remote",
|
|
3
|
+
"version": "0.0.0-alpha.170",
|
|
4
|
+
"description": "Remote access gateway for a Po host: the tunnel, pairing, device trust, passkey step-up, the dev proxy and host federation.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ai",
|
|
7
|
+
"coding-agent",
|
|
8
|
+
"developer-tools",
|
|
9
|
+
"passkeys",
|
|
10
|
+
"pi-coding-agent",
|
|
11
|
+
"pi-extension",
|
|
12
|
+
"pi-package",
|
|
13
|
+
"po",
|
|
14
|
+
"remote-access",
|
|
15
|
+
"tunnel",
|
|
16
|
+
"typescript"
|
|
17
|
+
],
|
|
18
|
+
"homepage": "https://agimon.ai",
|
|
19
|
+
"license": "BUSL-1.1",
|
|
20
|
+
"author": "Vuong Ngo",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/AgiFlow/po.git",
|
|
24
|
+
"directory": "packages/foundations/po-remote"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"src/prompts",
|
|
29
|
+
"llms.txt",
|
|
30
|
+
"README.md",
|
|
31
|
+
"LICENSE",
|
|
32
|
+
"package.json"
|
|
33
|
+
],
|
|
34
|
+
"type": "module",
|
|
35
|
+
"main": "./dist/index.cjs",
|
|
36
|
+
"module": "./dist/index.mjs",
|
|
37
|
+
"types": "./dist/index.d.mts",
|
|
38
|
+
"jsnext:main": "./dist/index.mjs",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"types": "./dist/index.d.mts",
|
|
42
|
+
"import": "./dist/index.mjs",
|
|
43
|
+
"require": "./dist/index.cjs"
|
|
44
|
+
},
|
|
45
|
+
"./apiContracts": {
|
|
46
|
+
"types": "./dist/apiContracts.d.mts",
|
|
47
|
+
"import": "./dist/apiContracts.mjs",
|
|
48
|
+
"require": "./dist/apiContracts.cjs"
|
|
49
|
+
},
|
|
50
|
+
"./extensions/server": {
|
|
51
|
+
"types": "./dist/extensions/server.d.mts",
|
|
52
|
+
"import": "./dist/extensions/server.mjs",
|
|
53
|
+
"require": "./dist/extensions/server.cjs"
|
|
54
|
+
},
|
|
55
|
+
"./extensions/web": {
|
|
56
|
+
"import": "./dist/extensions/web.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./package.json": "./package.json"
|
|
59
|
+
},
|
|
60
|
+
"publishConfig": {
|
|
61
|
+
"access": "public"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@agimon-ai/po-core": "0.0.0-alpha.170",
|
|
65
|
+
"@agimon-ai/po-federation": "0.0.0-alpha.170",
|
|
66
|
+
"@agimon-ai/po-web-components": "0.0.0-alpha.170",
|
|
67
|
+
"@agimon-ai/po-web-security": "0.0.0-alpha.170",
|
|
68
|
+
"@earendil-works/chord": "1.5.2",
|
|
69
|
+
"@earendil-works/pi-durable": "1.5.2",
|
|
70
|
+
"@simplewebauthn/server": "^14.0.3",
|
|
71
|
+
"@tanstack/react-store": "0.11.2",
|
|
72
|
+
"@tanstack/store": "0.11.2",
|
|
73
|
+
"hono": "4.13.13",
|
|
74
|
+
"react": "19.3.1",
|
|
75
|
+
"ws": "8.22.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@agimon-ai/po-build": "0.0.0-alpha.170",
|
|
79
|
+
"@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.170",
|
|
80
|
+
"@agimon-ai/vibe-lint-plugin-po-web": "0.0.0-alpha.170",
|
|
81
|
+
"@earendil-works/pi-coding-agent": "1.5.2",
|
|
82
|
+
"@types/node": "26.6.5",
|
|
83
|
+
"@types/react": "19.3.0",
|
|
84
|
+
"@types/react-dom": "19.3.0",
|
|
85
|
+
"@types/ws": "8.18.2",
|
|
86
|
+
"@vitest/coverage-v8": "5.0.4",
|
|
87
|
+
"react-dom": "19.3.1",
|
|
88
|
+
"tsdown": "0.23.1",
|
|
89
|
+
"typescript": "7.0.2",
|
|
90
|
+
"vitest": "5.0.4"
|
|
91
|
+
},
|
|
92
|
+
"peerDependencies": {
|
|
93
|
+
"@earendil-works/pi-coding-agent": "1.5.2"
|
|
94
|
+
},
|
|
95
|
+
"peerDependenciesMeta": {
|
|
96
|
+
"@earendil-works/pi-coding-agent": {
|
|
97
|
+
"optional": true
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"engines": {
|
|
101
|
+
"node": ">=24"
|
|
102
|
+
},
|
|
103
|
+
"poServer": {
|
|
104
|
+
"entry": "./generated/server.ts",
|
|
105
|
+
"dist": "./dist/extensions/server.mjs",
|
|
106
|
+
"scopes": [
|
|
107
|
+
"session"
|
|
108
|
+
],
|
|
109
|
+
"contracts": {
|
|
110
|
+
"entry": "./src/exports/apiContracts.ts",
|
|
111
|
+
"dist": "./dist/apiContracts.mjs"
|
|
112
|
+
},
|
|
113
|
+
"brain": {
|
|
114
|
+
"version": 1,
|
|
115
|
+
"provides": {}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"poWeb": {
|
|
119
|
+
"pluginId": "remote",
|
|
120
|
+
"brain": {
|
|
121
|
+
"version": 1,
|
|
122
|
+
"slots": [],
|
|
123
|
+
"fills": [
|
|
124
|
+
{
|
|
125
|
+
"id": "pairing-approval",
|
|
126
|
+
"slot": "overlay",
|
|
127
|
+
"scope": "host",
|
|
128
|
+
"placement": "verified"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "remote",
|
|
132
|
+
"slot": "rail-status",
|
|
133
|
+
"scope": "host",
|
|
134
|
+
"placement": "verified"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "remote-access",
|
|
138
|
+
"slot": "overlay",
|
|
139
|
+
"scope": "host",
|
|
140
|
+
"placement": "verified"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"diagnostics": []
|
|
144
|
+
},
|
|
145
|
+
"channels": [],
|
|
146
|
+
"client": "./dist/extensions/web.mjs",
|
|
147
|
+
"scopes": [
|
|
148
|
+
"host"
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"scripts": {
|
|
152
|
+
"build": "tsdown",
|
|
153
|
+
"test": "vitest --run",
|
|
154
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.web.json",
|
|
155
|
+
"lint": "oxlint . && oxfmt . --check",
|
|
156
|
+
"fixcode": "oxlint . --fix && oxfmt ."
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: help-how-to-remote
|
|
3
|
+
description: 'Maintain @agimon-ai/po-remote: the remote access gateway for a Po host, with the tunnel, pairing, device trust, passkey step-up, the dev proxy and host federation.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Maintain Remote Access
|
|
7
|
+
|
|
8
|
+
Read the package [README](../../../README.md) first.
|
|
9
|
+
|
|
10
|
+
## What lives here
|
|
11
|
+
|
|
12
|
+
- `services/remoteRuntime`: the tunnel listener and the sealed gateway. Every tunnel request passes its origin check, device check and Session MCP route checks here before it reaches the host.
|
|
13
|
+
- `services/remoteAccess`, `remoteAccessSettings`, `remoteAccessStore`, `remoteGuardPolicy`: remote access state, its settings file and the origin policy.
|
|
14
|
+
- `services/tunnelProcess`, `tunnelOutput`, `pairingFlow`, `remoteRoutes`, `remoteApi`: the tunnel process, pairing and the `/api/remote` routes.
|
|
15
|
+
- `services/deviceAuth`, `deviceSessions`, `deviceTrust`, `hubDeviceTrust`, `webauthn`, `webauthnPolicy`, `nativePushRegistration`: paired devices, trusted native devices, passkeys and step-up.
|
|
16
|
+
- `services/hubFederation`, `publicFileShares`, `devProxy*`: host federation, public file links and the dev proxy.
|
|
17
|
+
|
|
18
|
+
## Rules
|
|
19
|
+
|
|
20
|
+
- po-core never imports this package. Shared route names and types live in `@agimon-ai/po-core/remoteContract`; the Session MCP route checks live in `@agimon-ai/po-core/sessionMcpContract`.
|
|
21
|
+
- Gateway logic is security-critical. Change it only with a test in `tests/unit/server/remoteRuntime.test.ts` that pins the old and new behaviour.
|
|
22
|
+
- A paired phone reaches host APIs only through the sealed gateway. Never forward an unsealed `/api/` request from the tunnel.
|
|
23
|
+
- Cloud never loads this package. Anything Cloud needs belongs in `@agimon-ai/po-federation` or po-core.
|