@xrkseek/harness-cli 0.1.2 → 0.1.4
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 +41 -22
- package/dist/commands/plugin.d.ts.map +1 -1
- package/dist/commands/plugin.js +23 -16
- package/dist/commands/plugin.js.map +1 -1
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +34 -3
- package/dist/commands/serve.js.map +1 -1
- package/dist/log.d.ts +6 -1
- package/dist/log.d.ts.map +1 -1
- package/dist/log.js +20 -6
- package/dist/log.js.map +1 -1
- package/dist/parse-args.js +8 -8
- package/dist/plugin/index.d.ts +3 -0
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +15 -5
- package/dist/plugin/index.js.map +1 -1
- package/dist/plugin/install-client.d.ts +2 -0
- package/dist/plugin/install-client.d.ts.map +1 -1
- package/dist/plugin/install-client.js +24 -9
- package/dist/plugin/install-client.js.map +1 -1
- package/dist/plugin/remap-inject.d.ts.map +1 -1
- package/dist/plugin/remap-inject.js +1 -0
- package/dist/plugin/remap-inject.js.map +1 -1
- package/dist/plugin/staging-reconcile.d.ts +8 -0
- package/dist/plugin/staging-reconcile.d.ts.map +1 -0
- package/dist/plugin/staging-reconcile.js +67 -0
- package/dist/plugin/staging-reconcile.js.map +1 -0
- package/dist/product-paths.d.ts.map +1 -1
- package/dist/product-paths.js +8 -0
- package/dist/product-paths.js.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.d.ts +15 -22
- package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.js +19 -16
- package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +2 -1
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +12 -4
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.d.ts +10 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js +131 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/wallet-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/wallet-bridge.js +29 -1
- package/node_modules/@xrkseek/server-host/dist/wallet-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js +3 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts +4 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import-discovery.d.ts +41 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import-discovery.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import-discovery.js +422 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import-discovery.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import-registry.d.ts +21 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import-registry.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import-registry.js +34 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import-registry.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js +277 -23
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js +2 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts +4 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +26 -26
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts +2 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js +3 -3
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js +3 -3
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.d.ts +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.js +53 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts +21 -18
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js +28 -15
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.d.ts +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.js +77 -24
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts +24 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js +39 -10
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-auth.d.ts +71 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-auth.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-auth.js +349 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-auth.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-cpolar-component.d.ts +53 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-cpolar-component.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-cpolar-component.js +233 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-cpolar-component.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-funnel-sidecar.d.ts +4 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-funnel-sidecar.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-funnel-sidecar.js +86 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-funnel-sidecar.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-gate.d.ts +15 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-gate.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-gate.js +41 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-gate.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-local-gateway.d.ts +22 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-local-gateway.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-local-gateway.js +183 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-local-gateway.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote-controllers.d.ts +68 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote-controllers.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote-controllers.js +511 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote-controllers.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote-runtime.d.ts +34 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote-runtime.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote-runtime.js +179 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote-runtime.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote.d.ts +19 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote.js +102 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts +31 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js +698 -33
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.js +4 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket-qrcode.d.ts +3 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket-qrcode.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket-qrcode.js +18 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket-qrcode.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.d.ts +6 -3
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.js +204 -54
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.d.ts +3 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.js +185 -21
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-browser.d.ts +3 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-browser.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-browser.js +82 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-browser.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-face-bridge.d.ts +43 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-face-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-face-bridge.js +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-face-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.d.ts +47 -13
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.js +146 -27
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.js +22 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js +21 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.d.ts +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.js +42 -3
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.d.ts +25 -7
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.js +2 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.d.ts +2 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.js +2 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.d.ts +12 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.js +40 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts +7 -12
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js +5 -8
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.js +31 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.d.ts +37 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.js +96 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/public-handler.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/public-handler.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/public-handler.js +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/public-handler.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.js +66 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.js +2 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.d.ts +2 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.js +2 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js +2 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.js +3 -3
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/package.json +7 -1
- package/node_modules/qrcode-generator/README.md +101 -0
- package/node_modules/qrcode-generator/package.json +30 -0
- package/node_modules/qrcode-generator/qrcode.d.ts +57 -0
- package/node_modules/qrcode-generator/qrcode.js +2297 -0
- package/node_modules/qrcode-generator/qrcode_SJIS.js +30 -0
- package/node_modules/qrcode-generator/qrcode_UTF8.js +26 -0
- package/node_modules/qrcode-generator/sample.html +49 -0
- package/node_modules/qrcode-generator/sample.js +49 -0
- package/node_modules/qrcode-generator/test/qrcode.js +118 -0
- package/package.json +4 -2
- package/product-web/assets/index-BNGm-t1O.js +112 -0
- package/product-web/assets/index-BNGm-t1O.js.map +1 -0
- package/product-web/boot.json +1 -1
- package/product-web/index.html +1 -1
- package/product-web/plugins/@xrkseek/client-locale/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-modules/client.js +7 -6
- package/product-web/plugins/@xrkseek/client-runtime/client.js +7 -0
- package/product-web/plugins/@xrkseek/client-ui-agent-preset/client.js +31 -31
- package/product-web/plugins/@xrkseek/client-ui-attachment/client.js +12 -12
- package/product-web/plugins/@xrkseek/client-ui-commands/client.js +8 -8
- package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +186 -190
- package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +6 -6
- package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +27 -27
- package/product-web/plugins/@xrkseek/client-ui-goal/client.js +8 -8
- package/product-web/plugins/@xrkseek/client-ui-input-trigger/client.js +6 -6
- package/product-web/plugins/@xrkseek/client-ui-jobs/client.js +8 -8
- package/product-web/plugins/@xrkseek/client-ui-layout/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-message-feedback/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +17 -17
- package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-plan/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-settings-general/client.js +28 -20
- package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +53 -53
- package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +11 -11
- package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +37 -37
- package/product-web/plugins/@xrkseek/client-ui-sidebar/client.js +13 -13
- package/product-web/plugins/@xrkseek/client-ui-skill/client.js +12 -12
- package/product-web/plugins/@xrkseek/client-ui-subagent/client.js +21 -21
- package/product-web/plugins/@xrkseek/client-ui-theme/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-tool/client.js +40 -40
- package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +141 -141
- package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +29 -29
- package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +18 -18
- package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +54 -54
- package/product-web/assets/index-CHKZdZNt.js +0 -112
- package/product-web/assets/index-CHKZdZNt.js.map +0 -1
package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-cpolar-component.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-access-cpolar-component.js","sourceRoot":"","sources":["../../src/dsh-compat/mobile-access-cpolar-component.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,UAAU,EACV,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,QAAQ,EACR,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,MA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IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;YACxB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function resolveFunnelOverride(): string | undefined;
|
|
2
|
+
export declare function resolveFunnelSidecarPath(xrkHome: string | undefined): string | undefined;
|
|
3
|
+
export declare function ensureFunnelSidecar(xrkHome: string | undefined): Promise<string>;
|
|
4
|
+
//# sourceMappingURL=mobile-access-funnel-sidecar.d.ts.map
|
package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-funnel-sidecar.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-access-funnel-sidecar.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/mobile-access-funnel-sidecar.ts"],"names":[],"mappings":"AA2CA,wBAAgB,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAS1D;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,MAAM,GAAG,SAAS,CAWpB;AAED,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,OAAO,CAAC,MAAM,CAAC,CAwCjB"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve Tailscale Funnel sidecar binary (dsh-mobile bundle or env override).
|
|
3
|
+
*/
|
|
4
|
+
import { copyFile, mkdir } from "node:fs/promises";
|
|
5
|
+
import { existsSync } from "node:fs";
|
|
6
|
+
import { execFile } from "node:child_process";
|
|
7
|
+
import { promisify } from "node:util";
|
|
8
|
+
import path from "node:path";
|
|
9
|
+
import { dataPath } from "./underlying/json-store.js";
|
|
10
|
+
const execFileAsync = promisify(execFile);
|
|
11
|
+
function funnelFilename() {
|
|
12
|
+
const suffix = process.platform === "win32" ? ".exe" : "";
|
|
13
|
+
return `dsh-mobile-funnel-${process.platform}-${process.arch}${suffix}`;
|
|
14
|
+
}
|
|
15
|
+
function resolveNpmInvocation() {
|
|
16
|
+
const node = process.execPath;
|
|
17
|
+
const npmCli = path.join(path.dirname(node), "node_modules", "npm", "bin", "npm-cli.js");
|
|
18
|
+
if (existsSync(npmCli)) {
|
|
19
|
+
return { command: node, prefixArgs: [npmCli] };
|
|
20
|
+
}
|
|
21
|
+
const npmCmd = process.platform === "win32"
|
|
22
|
+
? path.join(path.dirname(node), "npm.cmd")
|
|
23
|
+
: "npm";
|
|
24
|
+
return { command: npmCmd, prefixArgs: [] };
|
|
25
|
+
}
|
|
26
|
+
function resolveTarCommand() {
|
|
27
|
+
if (process.platform !== "win32")
|
|
28
|
+
return "tar";
|
|
29
|
+
const sysroot = process.env.SystemRoot ?? "C:\\Windows";
|
|
30
|
+
const tarExe = path.join(sysroot, "System32", "tar.exe");
|
|
31
|
+
return existsSync(tarExe) ? tarExe : "tar";
|
|
32
|
+
}
|
|
33
|
+
export function resolveFunnelOverride() {
|
|
34
|
+
const override = process.env.XRK_MOBILE_FUNNEL_SIDECAR?.trim() ||
|
|
35
|
+
process.env.DSH_MOBILE_FUNNEL_SIDECAR?.trim();
|
|
36
|
+
if (!override)
|
|
37
|
+
return undefined;
|
|
38
|
+
if (!path.isAbsolute(override)) {
|
|
39
|
+
throw new Error("XRK_MOBILE_FUNNEL_SIDECAR must be an absolute path");
|
|
40
|
+
}
|
|
41
|
+
return override;
|
|
42
|
+
}
|
|
43
|
+
export function resolveFunnelSidecarPath(xrkHome) {
|
|
44
|
+
const override = resolveFunnelOverride();
|
|
45
|
+
if (override)
|
|
46
|
+
return override;
|
|
47
|
+
const dest = dataPath(xrkHome, "mobile-access", "components", "funnel", funnelFilename());
|
|
48
|
+
return existsSync(dest) ? dest : undefined;
|
|
49
|
+
}
|
|
50
|
+
export async function ensureFunnelSidecar(xrkHome) {
|
|
51
|
+
const existing = resolveFunnelSidecarPath(xrkHome);
|
|
52
|
+
if (existing)
|
|
53
|
+
return existing;
|
|
54
|
+
const name = funnelFilename();
|
|
55
|
+
const dest = dataPath(xrkHome, "mobile-access", "components", "funnel", name);
|
|
56
|
+
await mkdir(path.dirname(dest), { recursive: true });
|
|
57
|
+
const staging = dataPath(xrkHome, "mobile-access", "staging", "funnel-fetch");
|
|
58
|
+
await mkdir(staging, { recursive: true });
|
|
59
|
+
const packPath = path.join(staging, "dsh-mobile.tgz");
|
|
60
|
+
const { command, prefixArgs } = resolveNpmInvocation();
|
|
61
|
+
await execFileAsync(command, [
|
|
62
|
+
...prefixArgs,
|
|
63
|
+
"pack",
|
|
64
|
+
"dsh-mobile@0.2.0",
|
|
65
|
+
"--silent",
|
|
66
|
+
"--pack-destination",
|
|
67
|
+
staging,
|
|
68
|
+
], { windowsHide: true, timeout: 180_000 });
|
|
69
|
+
const packed = existsSync(packPath)
|
|
70
|
+
? packPath
|
|
71
|
+
: path.join(staging, "dsh-mobile-0.2.0.tgz");
|
|
72
|
+
if (!existsSync(packed)) {
|
|
73
|
+
throw new Error("funnel_sidecar_fetch_failed");
|
|
74
|
+
}
|
|
75
|
+
await execFileAsync(resolveTarCommand(), ["-xf", packed, "-C", staging], {
|
|
76
|
+
windowsHide: true,
|
|
77
|
+
timeout: 60_000,
|
|
78
|
+
});
|
|
79
|
+
const src = path.join(staging, "package", "bin", name);
|
|
80
|
+
if (!existsSync(src)) {
|
|
81
|
+
throw new Error("funnel_sidecar_missing_in_package");
|
|
82
|
+
}
|
|
83
|
+
await copyFile(src, dest);
|
|
84
|
+
return dest;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=mobile-access-funnel-sidecar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-access-funnel-sidecar.js","sourceRoot":"","sources":["../../src/dsh-compat/mobile-access-funnel-sidecar.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,KAA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I,CAAC,CAAC;IACvD,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,CAAC;IACD,MAAM,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAC1B,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mobile-access Host gate — LAN/WAN PIN for every public surface.
|
|
3
|
+
* Thin adapter over `underlying/mobile-gate-kit`.
|
|
4
|
+
*/
|
|
5
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
6
|
+
import type { PublicRouteHandlerFn } from "./underlying/public-handler.js";
|
|
7
|
+
import { type MobileAccessOptions } from "./mobile-access.js";
|
|
8
|
+
import { type MobileGateDecision } from "./underlying/mobile-gate-kit.js";
|
|
9
|
+
export declare function evaluateMobileAccessGate(req: IncomingMessage, pathname: string, options: MobileAccessOptions): MobileGateDecision;
|
|
10
|
+
export declare function tryHandleMobileAccessGate(req: IncomingMessage, res: ServerResponse, pathname: string, options: MobileAccessOptions): Promise<boolean>;
|
|
11
|
+
/** First link in Host `tryHandlePublic` — gates SPA, `/plugins`, Face HTTP alike. */
|
|
12
|
+
export declare function createMobileAccessGateHandler(options: MobileAccessOptions): PublicRouteHandlerFn;
|
|
13
|
+
/** Sync checker for WebSocket upgrades. */
|
|
14
|
+
export declare function createMobileAccessGateChecker(options: MobileAccessOptions): (req: IncomingMessage) => boolean;
|
|
15
|
+
//# sourceMappingURL=mobile-access-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-access-gate.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/mobile-access-gate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAS3E,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,iCAAiC,CAAC;AAgCzC,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,eAAe,EACpB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,mBAAmB,GAC3B,kBAAkB,CAcpB;AAED,wBAAsB,yBAAyB,CAC7C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,CAMlB;AAED,qFAAqF;AACrF,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,mBAAmB,GAC3B,oBAAoB,CAKtB;AAED,2CAA2C;AAC3C,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,mBAAmB,GAC3B,CAAC,GAAG,EAAE,eAAe,KAAK,OAAO,CAKnC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { LAN_PIN_COOKIE, parseCookieHeader, SESSION_COOKIE, verifyAccessPinCookie, verifyMobileSession, WAN_PIN_COOKIE, } from "./mobile-access-auth.js";
|
|
2
|
+
import { readMobileAccessState, } from "./mobile-access.js";
|
|
3
|
+
import { applyMobileGateDecision, effectiveRequestHost, evaluateMobileGate, } from "./underlying/mobile-gate-kit.js";
|
|
4
|
+
function credentialsFromRequest(req, options) {
|
|
5
|
+
const snapshot = readMobileAccessState(options);
|
|
6
|
+
const cookie = req.headers.cookie;
|
|
7
|
+
return {
|
|
8
|
+
snapshot,
|
|
9
|
+
hasDeviceSession: verifyMobileSession(snapshot, parseCookieHeader(cookie, SESSION_COOKIE)),
|
|
10
|
+
hasLanPin: verifyAccessPinCookie(parseCookieHeader(cookie, LAN_PIN_COOKIE), snapshot.lanToken, snapshot.instanceId),
|
|
11
|
+
hasWanPin: verifyAccessPinCookie(parseCookieHeader(cookie, WAN_PIN_COOKIE), snapshot.wanToken, snapshot.instanceId),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export function evaluateMobileAccessGate(req, pathname, options) {
|
|
15
|
+
const { snapshot, ...credentials } = credentialsFromRequest(req, options);
|
|
16
|
+
return evaluateMobileGate(pathname, effectiveRequestHost(req), {
|
|
17
|
+
running: snapshot.running,
|
|
18
|
+
lanAuthEnabled: snapshot.lanAuthEnabled !== false,
|
|
19
|
+
lanToken: snapshot.lanToken,
|
|
20
|
+
wanToken: snapshot.wanToken,
|
|
21
|
+
instanceId: snapshot.instanceId,
|
|
22
|
+
}, credentials);
|
|
23
|
+
}
|
|
24
|
+
export async function tryHandleMobileAccessGate(req, res, pathname, options) {
|
|
25
|
+
return applyMobileGateDecision(req, res, evaluateMobileAccessGate(req, pathname, options));
|
|
26
|
+
}
|
|
27
|
+
/** First link in Host `tryHandlePublic` — gates SPA, `/plugins`, Face HTTP alike. */
|
|
28
|
+
export function createMobileAccessGateHandler(options) {
|
|
29
|
+
return async (req, res) => {
|
|
30
|
+
const url = new URL(req.url ?? "/", "http://127.0.0.1");
|
|
31
|
+
return tryHandleMobileAccessGate(req, res, url.pathname, options);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/** Sync checker for WebSocket upgrades. */
|
|
35
|
+
export function createMobileAccessGateChecker(options) {
|
|
36
|
+
return (req) => {
|
|
37
|
+
const url = new URL(req.url ?? "/", "http://127.0.0.1");
|
|
38
|
+
return evaluateMobileAccessGate(req, url.pathname, options).allowed;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=mobile-access-gate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-access-gate.js","sourceRoot":"","sources":["../../src/dsh-compat/mobile-access-gate.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB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,KAAK,UAAU,yBAAyB,CAC7C,GAAoB,EACpB,GAAmB,EACnB,QAAgB,EAChB,OAA4B;IAE5B,OAAO,uBAAuB,CAC5B,GAAG,EACH,GAAG,EACH,wBAAwB,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,CACjD,CAAC;AACJ,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,6BAA6B,CAC3C,OAA4B;IAE5B,OAAO,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;QACxB,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,EAAE,kBAAkB,CAAC,CAAC;QACxD,OAAO,yBAAyB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC,CAAC;AACJ,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,6BAA6B,CAC3C,OAA4B;IAE5B,OAAO,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,EAAE,kBAAkB,CAAC,CAAC;QACxD,OAAO,wBAAwB,CAAC,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC;IACtE,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface LocalMobileGateway {
|
|
2
|
+
readonly address: () => {
|
|
3
|
+
host: string;
|
|
4
|
+
port: number;
|
|
5
|
+
origin?: string;
|
|
6
|
+
};
|
|
7
|
+
readonly extensionStatus: () => {
|
|
8
|
+
loaded: number;
|
|
9
|
+
failed: number;
|
|
10
|
+
};
|
|
11
|
+
readonly close: () => Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export declare function startLocalProxyGateway(options: {
|
|
14
|
+
readonly upstreamUrl: string;
|
|
15
|
+
readonly listenPort?: number;
|
|
16
|
+
readonly publicOrigin?: string;
|
|
17
|
+
}): Promise<LocalMobileGateway>;
|
|
18
|
+
export declare function reserveLoopbackPort(): Promise<{
|
|
19
|
+
port: number;
|
|
20
|
+
release: () => Promise<void>;
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=mobile-access-local-gateway.d.ts.map
|
package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-local-gateway.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-access-local-gateway.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/mobile-access-local-gateway.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxE,QAAQ,CAAC,eAAe,EAAE,MAAM;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE,QAAQ,CAAC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC;AAsHD,wBAAsB,sBAAsB,CAAC,OAAO,EAAE;IACpD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAiE9B;AAED,wBAAsB,mBAAmB,IAAI,OAAO,CAAC;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B,CAAC,CAuBD"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Loopback reverse proxy — remote tunnel backends forward to the product Host.
|
|
3
|
+
* Forwards HTTP and WebSocket upgrades with X-Forwarded-* headers.
|
|
4
|
+
*/
|
|
5
|
+
import { createServer, request as httpRequest, } from "node:http";
|
|
6
|
+
import { URL } from "node:url";
|
|
7
|
+
function upstreamPort(upstream) {
|
|
8
|
+
if (upstream.port)
|
|
9
|
+
return Number(upstream.port);
|
|
10
|
+
return upstream.protocol === "https:" ? 443 : 80;
|
|
11
|
+
}
|
|
12
|
+
function clientProto(req, publicOrigin) {
|
|
13
|
+
const forwarded = req.headers["x-forwarded-proto"];
|
|
14
|
+
if (typeof forwarded === "string" && forwarded.trim()) {
|
|
15
|
+
return forwarded.split(",")[0].trim();
|
|
16
|
+
}
|
|
17
|
+
if (publicOrigin) {
|
|
18
|
+
try {
|
|
19
|
+
return new URL(publicOrigin).protocol.replace(/:$/, "");
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
/* ignore */
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return "http";
|
|
26
|
+
}
|
|
27
|
+
function buildProxyHeaders(req, upstream, publicOrigin) {
|
|
28
|
+
const headers = {
|
|
29
|
+
...req.headers,
|
|
30
|
+
host: upstream.host,
|
|
31
|
+
};
|
|
32
|
+
const clientHost = publicOrigin !== undefined
|
|
33
|
+
? (() => {
|
|
34
|
+
try {
|
|
35
|
+
return new URL(publicOrigin).host;
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
return req.headers.host?.trim();
|
|
39
|
+
}
|
|
40
|
+
})()
|
|
41
|
+
: req.headers.host?.trim();
|
|
42
|
+
if (clientHost) {
|
|
43
|
+
headers["x-forwarded-host"] = clientHost;
|
|
44
|
+
}
|
|
45
|
+
headers["x-forwarded-proto"] = clientProto(req, publicOrigin);
|
|
46
|
+
const remote = req.socket.remoteAddress;
|
|
47
|
+
if (remote) {
|
|
48
|
+
const prior = req.headers["x-forwarded-for"];
|
|
49
|
+
headers["x-forwarded-for"] = prior
|
|
50
|
+
? `${String(prior)}, ${remote}`
|
|
51
|
+
: remote;
|
|
52
|
+
}
|
|
53
|
+
return headers;
|
|
54
|
+
}
|
|
55
|
+
function writeUpgradeResponse(socket, statusCode, statusMessage, rawHeaders, head) {
|
|
56
|
+
let raw = `HTTP/1.1 ${statusCode} ${statusMessage}\r\n`;
|
|
57
|
+
for (const [key, value] of Object.entries(rawHeaders)) {
|
|
58
|
+
if (value === undefined)
|
|
59
|
+
continue;
|
|
60
|
+
const values = Array.isArray(value) ? value : [value];
|
|
61
|
+
for (const entry of values) {
|
|
62
|
+
raw += `${key}: ${entry}\r\n`;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
raw += "\r\n";
|
|
66
|
+
socket.write(raw);
|
|
67
|
+
if (head.length > 0)
|
|
68
|
+
socket.write(head);
|
|
69
|
+
}
|
|
70
|
+
function forwardUpgrade(req, socket, head, upstream, publicOrigin) {
|
|
71
|
+
socket.on("error", () => socket.destroy());
|
|
72
|
+
const targetPath = req.url?.startsWith("/") ? req.url : `/${req.url ?? ""}`;
|
|
73
|
+
const proxyReq = httpRequest({
|
|
74
|
+
protocol: upstream.protocol,
|
|
75
|
+
hostname: upstream.hostname,
|
|
76
|
+
port: upstreamPort(upstream),
|
|
77
|
+
method: req.method,
|
|
78
|
+
path: targetPath,
|
|
79
|
+
headers: buildProxyHeaders(req, upstream, publicOrigin),
|
|
80
|
+
});
|
|
81
|
+
proxyReq.on("response", (proxyRes) => {
|
|
82
|
+
if (!socket.destroyed) {
|
|
83
|
+
socket.destroy();
|
|
84
|
+
}
|
|
85
|
+
proxyRes.resume();
|
|
86
|
+
});
|
|
87
|
+
proxyReq.on("upgrade", (proxyRes, proxySocket, proxyHead) => {
|
|
88
|
+
writeUpgradeResponse(socket, proxyRes.statusCode ?? 101, proxyRes.statusMessage ?? "Switching Protocols", proxyRes.headers, proxyHead);
|
|
89
|
+
proxySocket.pipe(socket);
|
|
90
|
+
socket.pipe(proxySocket);
|
|
91
|
+
proxySocket.on("error", () => {
|
|
92
|
+
socket.destroy();
|
|
93
|
+
proxySocket.destroy();
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
proxyReq.on("error", () => socket.destroy());
|
|
97
|
+
proxyReq.end(head);
|
|
98
|
+
}
|
|
99
|
+
export async function startLocalProxyGateway(options) {
|
|
100
|
+
const upstream = new URL(options.upstreamUrl);
|
|
101
|
+
let listenPort = options.listenPort ?? 0;
|
|
102
|
+
const publicOrigin = options.publicOrigin;
|
|
103
|
+
const proxy = (clientReq, clientRes) => {
|
|
104
|
+
const targetPath = clientReq.url?.startsWith("/")
|
|
105
|
+
? clientReq.url
|
|
106
|
+
: `/${clientReq.url ?? ""}`;
|
|
107
|
+
const proxyReq = httpRequest({
|
|
108
|
+
protocol: upstream.protocol,
|
|
109
|
+
hostname: upstream.hostname,
|
|
110
|
+
port: upstreamPort(upstream),
|
|
111
|
+
method: clientReq.method,
|
|
112
|
+
path: targetPath,
|
|
113
|
+
headers: buildProxyHeaders(clientReq, upstream, publicOrigin),
|
|
114
|
+
}, (proxyRes) => {
|
|
115
|
+
clientRes.writeHead(proxyRes.statusCode ?? 502, proxyRes.headers);
|
|
116
|
+
proxyRes.pipe(clientRes);
|
|
117
|
+
});
|
|
118
|
+
proxyReq.on("error", () => {
|
|
119
|
+
if (!clientRes.headersSent) {
|
|
120
|
+
clientRes.writeHead(502, { "content-type": "text/plain" });
|
|
121
|
+
clientRes.end("upstream unreachable");
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
clientRes.end();
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
clientReq.pipe(proxyReq);
|
|
128
|
+
};
|
|
129
|
+
const server = createServer(proxy);
|
|
130
|
+
server.on("upgrade", (req, socket, head) => {
|
|
131
|
+
forwardUpgrade(req, socket, head, upstream, publicOrigin);
|
|
132
|
+
});
|
|
133
|
+
await new Promise((resolve, reject) => {
|
|
134
|
+
server.once("error", reject);
|
|
135
|
+
server.listen(listenPort, "127.0.0.1", () => {
|
|
136
|
+
server.off("error", reject);
|
|
137
|
+
resolve();
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
const addr = server.address();
|
|
141
|
+
if (!addr || typeof addr === "string") {
|
|
142
|
+
server.close();
|
|
143
|
+
throw new Error("gateway_listen_failed");
|
|
144
|
+
}
|
|
145
|
+
listenPort = addr.port;
|
|
146
|
+
return {
|
|
147
|
+
address: () => ({
|
|
148
|
+
host: "127.0.0.1",
|
|
149
|
+
port: listenPort,
|
|
150
|
+
...(publicOrigin ? { origin: publicOrigin } : {}),
|
|
151
|
+
}),
|
|
152
|
+
extensionStatus: () => ({ loaded: 0, failed: 0 }),
|
|
153
|
+
close: async () => {
|
|
154
|
+
await new Promise((resolve) => server.close(() => resolve()));
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
export async function reserveLoopbackPort() {
|
|
159
|
+
const holder = createServer((socket) => socket.destroy());
|
|
160
|
+
await new Promise((resolve, reject) => {
|
|
161
|
+
holder.once("error", reject);
|
|
162
|
+
holder.listen(0, "127.0.0.1", () => {
|
|
163
|
+
holder.off("error", reject);
|
|
164
|
+
resolve();
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
const addr = holder.address();
|
|
168
|
+
if (!addr || typeof addr === "string") {
|
|
169
|
+
holder.close();
|
|
170
|
+
throw new Error("port_reservation_failed");
|
|
171
|
+
}
|
|
172
|
+
let released = false;
|
|
173
|
+
return {
|
|
174
|
+
port: addr.port,
|
|
175
|
+
release: async () => {
|
|
176
|
+
if (released)
|
|
177
|
+
return;
|
|
178
|
+
released = true;
|
|
179
|
+
await new Promise((resolve) => holder.close(() => resolve()));
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=mobile-access-local-gateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-access-local-gateway.js","sourceRoot":"","sources":["../../src/dsh-compat/mobile-access-local-gateway.ts"],"names":[],"mappings":"AAAA;;;GAGG;A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CAAC;IACL,CAAC,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;IAC9B,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QACtC,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,IAAI,QAAQ;gBAAE,OAAO;YACrB,QAAQ,GAAG,IAAI,CAAC;YAChB,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACtE,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote-controllers.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tailscale Funnel sidecar + cpolar process controllers (dsh-mobile compatible).
|
|
3
|
+
*/
|
|
4
|
+
import { type ChildProcessWithoutNullStreams } from "node:child_process";
|
|
5
|
+
import { type LocalMobileGateway } from "./mobile-access-local-gateway.js";
|
|
6
|
+
export interface RemoteControllerStatus {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
state: string;
|
|
9
|
+
origin?: string;
|
|
10
|
+
loginUrl?: string;
|
|
11
|
+
setupUrl?: string;
|
|
12
|
+
errorCode?: string;
|
|
13
|
+
}
|
|
14
|
+
type CreateGatewayFn = (publicOrigin: string, listenPort?: number) => Promise<LocalMobileGateway>;
|
|
15
|
+
declare abstract class BaseRemoteController {
|
|
16
|
+
readonly createGateway: CreateGatewayFn;
|
|
17
|
+
readonly loadEnabled: () => Promise<boolean>;
|
|
18
|
+
readonly saveEnabled: (enabled: boolean) => Promise<void>;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
initialized: boolean;
|
|
21
|
+
disposed: boolean;
|
|
22
|
+
protected child: ChildProcessWithoutNullStreams | undefined;
|
|
23
|
+
gatewayValue: LocalMobileGateway | undefined;
|
|
24
|
+
protected generation: number;
|
|
25
|
+
protected buffer: string;
|
|
26
|
+
protected latest: RemoteControllerStatus;
|
|
27
|
+
private queue;
|
|
28
|
+
protected startupTimer: ReturnType<typeof setTimeout> | undefined;
|
|
29
|
+
constructor(createGateway: CreateGatewayFn, loadEnabled: () => Promise<boolean>, saveEnabled: (enabled: boolean) => Promise<void>);
|
|
30
|
+
initialize(): Promise<void>;
|
|
31
|
+
gateway(): LocalMobileGateway | undefined;
|
|
32
|
+
status(): RemoteControllerStatus;
|
|
33
|
+
setEnabled(enabled: boolean): Promise<RemoteControllerStatus>;
|
|
34
|
+
reconnect(): Promise<RemoteControllerStatus>;
|
|
35
|
+
reset(): Promise<RemoteControllerStatus>;
|
|
36
|
+
close(): Promise<void>;
|
|
37
|
+
protected enqueue<T>(op: () => Promise<T>): Promise<T>;
|
|
38
|
+
protected publish(status: RemoteControllerStatus): void;
|
|
39
|
+
protected failGeneration(generation: number, code: string): Promise<void>;
|
|
40
|
+
protected stop(): Promise<void>;
|
|
41
|
+
protected abstract start(): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
export declare class CpolarRemoteController extends BaseRemoteController {
|
|
44
|
+
readonly executable: string;
|
|
45
|
+
readonly configFile: string;
|
|
46
|
+
readonly region: string;
|
|
47
|
+
reservation: {
|
|
48
|
+
port: number;
|
|
49
|
+
release: () => Promise<void>;
|
|
50
|
+
} | undefined;
|
|
51
|
+
constructor(createGateway: CreateGatewayFn, loadEnabled: () => Promise<boolean>, saveEnabled: (enabled: boolean) => Promise<void>, executable: string, configFile: string, region?: string);
|
|
52
|
+
protected start(): Promise<void>;
|
|
53
|
+
private consume;
|
|
54
|
+
private attachGateway;
|
|
55
|
+
protected stop(): Promise<void>;
|
|
56
|
+
}
|
|
57
|
+
export declare class FunnelRemoteController extends BaseRemoteController {
|
|
58
|
+
readonly executable: string;
|
|
59
|
+
readonly stateDirectory: string;
|
|
60
|
+
readonly hostname: string;
|
|
61
|
+
constructor(createGateway: CreateGatewayFn, loadEnabled: () => Promise<boolean>, saveEnabled: (enabled: boolean) => Promise<void>, executable: string, stateDirectory: string, hostname: string);
|
|
62
|
+
protected start(): Promise<void>;
|
|
63
|
+
private consume;
|
|
64
|
+
private handleEvent;
|
|
65
|
+
}
|
|
66
|
+
export declare function createRemoteGatewayFactory(upstreamUrl: string): Promise<CreateGatewayFn>;
|
|
67
|
+
export {};
|
|
68
|
+
//# sourceMappingURL=mobile-access-remote-controllers.d.ts.map
|
package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-remote-controllers.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-access-remote-controllers.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/mobile-access-remote-controllers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAS,KAAK,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AAEhF,OAAO,EACL,KAAK,kBAAkB,EAGxB,MAAM,kCAAkC,CAAC;AAa1C,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,eAAe,GAAG,CACrB,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,KAChB,OAAO,CAAC,kBAAkB,CAAC,CAAC;AA2GjC,uBAAe,oBAAoB;IAa/B,QAAQ,CAAC,aAAa,EAAE,eAAe;IACvC,QAAQ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