@xrkseek/harness-cli 0.1.3 → 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.js +16 -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.js +5 -5
- package/dist/plugin/index.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/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 +37 -37
- package/product-web/plugins/@xrkseek/client-ui-attachment/client.js +14 -14
- package/product-web/plugins/@xrkseek/client-ui-commands/client.js +8 -8
- package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +186 -193
- package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +5 -5
- package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +30 -30
- package/product-web/plugins/@xrkseek/client-ui-goal/client.js +8 -8
- package/product-web/plugins/@xrkseek/client-ui-input-trigger/client.js +5 -5
- package/product-web/plugins/@xrkseek/client-ui-jobs/client.js +9 -9
- package/product-web/plugins/@xrkseek/client-ui-layout/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-message-feedback/client.js +5 -5
- package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +18 -18
- package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-plan/client.js +2 -2
- package/product-web/plugins/@xrkseek/client-ui-settings-general/client.js +27 -19
- package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +54 -54
- package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +13 -13
- package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +42 -42
- package/product-web/plugins/@xrkseek/client-ui-sidebar/client.js +16 -16
- package/product-web/plugins/@xrkseek/client-ui-skill/client.js +11 -11
- package/product-web/plugins/@xrkseek/client-ui-subagent/client.js +22 -22
- package/product-web/plugins/@xrkseek/client-ui-theme/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-tool/client.js +38 -38
- package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +144 -144
- package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +31 -31
- package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +17 -17
- package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +53 -53
- package/product-web/assets/index-C_NG-17x.js +0 -112
- package/product-web/assets/index-C_NG-17x.js.map +0 -1
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-chat-import session discovery — generic host adapter (Node fs).
|
|
3
|
+
* Mirrors lib/discovery.mjs defaultRoots + core scanners without Cordis deps.
|
|
4
|
+
*/
|
|
5
|
+
import { createHash, randomUUID, } from "node:crypto";
|
|
6
|
+
import { existsSync, readdirSync, readFileSync, statSync, } from "node:fs";
|
|
7
|
+
import { homedir } from "node:os";
|
|
8
|
+
import path from "node:path";
|
|
9
|
+
export const CHAT_IMPORT_FORMATS = [
|
|
10
|
+
"claude",
|
|
11
|
+
"codex",
|
|
12
|
+
"cursor",
|
|
13
|
+
"gemini",
|
|
14
|
+
"dsh",
|
|
15
|
+
];
|
|
16
|
+
/** Client source id → discovery format (panel.mjs SOURCE_FORMAT). */
|
|
17
|
+
export const CHAT_IMPORT_SOURCE_FORMAT = {
|
|
18
|
+
"claude-code": "claude",
|
|
19
|
+
codex: "codex",
|
|
20
|
+
cursor: "cursor",
|
|
21
|
+
gemini: "gemini",
|
|
22
|
+
dsh: "dsh",
|
|
23
|
+
};
|
|
24
|
+
const TITLE_MAX = 80;
|
|
25
|
+
const HEAD_MAX_BYTES = 256 * 1024;
|
|
26
|
+
const SCAN_TTL_MS = 30_000;
|
|
27
|
+
const scanCache = new Map();
|
|
28
|
+
export function defaultChatImportRoots(home = homedir()) {
|
|
29
|
+
const localAppData = process.env.LOCALAPPDATA ?? null;
|
|
30
|
+
const claude3p = localAppData
|
|
31
|
+
? path.join(localAppData, "Claude-3p", "claude-code-sessions")
|
|
32
|
+
: null;
|
|
33
|
+
return {
|
|
34
|
+
claude: claude3p
|
|
35
|
+
? [path.join(home, ".claude", "projects"), claude3p]
|
|
36
|
+
: path.join(home, ".claude", "projects"),
|
|
37
|
+
codex: path.join(home, ".codex", "sessions"),
|
|
38
|
+
cursor: path.join(home, ".cursor", "projects"),
|
|
39
|
+
gemini: path.join(home, ".gemini", "history"),
|
|
40
|
+
dsh: path.join(home, ".dsh", "sessions"),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function normalizeTitle(raw) {
|
|
44
|
+
const folded = raw.replace(/\s+/g, " ").trim();
|
|
45
|
+
if (!folded)
|
|
46
|
+
return null;
|
|
47
|
+
if (folded.length <= TITLE_MAX)
|
|
48
|
+
return folded;
|
|
49
|
+
return `${folded.slice(0, TITLE_MAX - 1)}…`;
|
|
50
|
+
}
|
|
51
|
+
function readHead(filePath) {
|
|
52
|
+
try {
|
|
53
|
+
const buf = readFileSync(filePath);
|
|
54
|
+
return buf.subarray(0, HEAD_MAX_BYTES).toString("utf8");
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function parseJsonlHead(text) {
|
|
61
|
+
const out = [];
|
|
62
|
+
for (const line of text.split("\n")) {
|
|
63
|
+
const trimmed = line.trim();
|
|
64
|
+
if (!trimmed)
|
|
65
|
+
continue;
|
|
66
|
+
try {
|
|
67
|
+
out.push(JSON.parse(trimmed));
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return out;
|
|
74
|
+
}
|
|
75
|
+
function contentText(content) {
|
|
76
|
+
if (typeof content === "string")
|
|
77
|
+
return content;
|
|
78
|
+
if (Array.isArray(content)) {
|
|
79
|
+
return content
|
|
80
|
+
.map((part) => {
|
|
81
|
+
if (!part || typeof part !== "object")
|
|
82
|
+
return "";
|
|
83
|
+
const row = part;
|
|
84
|
+
if (typeof row.text === "string")
|
|
85
|
+
return row.text;
|
|
86
|
+
return "";
|
|
87
|
+
})
|
|
88
|
+
.join("");
|
|
89
|
+
}
|
|
90
|
+
return "";
|
|
91
|
+
}
|
|
92
|
+
function firstUserTitle(recs, pick) {
|
|
93
|
+
for (const rec of recs) {
|
|
94
|
+
if (!rec || typeof rec !== "object")
|
|
95
|
+
continue;
|
|
96
|
+
const text = pick(rec).trim();
|
|
97
|
+
if (!text)
|
|
98
|
+
continue;
|
|
99
|
+
if (text.startsWith("<environment_context>"))
|
|
100
|
+
continue;
|
|
101
|
+
if (text.startsWith("<system-reminder>"))
|
|
102
|
+
continue;
|
|
103
|
+
return normalizeTitle(text);
|
|
104
|
+
}
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
function layoutProject(filePath, format) {
|
|
108
|
+
const parts = filePath.split(path.sep);
|
|
109
|
+
if (format === "claude") {
|
|
110
|
+
const idx = parts.findIndex((p) => p === "projects");
|
|
111
|
+
if (idx >= 0 && parts[idx + 1])
|
|
112
|
+
return decodeURIComponent(parts[idx + 1]);
|
|
113
|
+
}
|
|
114
|
+
if (format === "codex") {
|
|
115
|
+
const idx = parts.findIndex((p) => p === "sessions");
|
|
116
|
+
if (idx >= 0 && parts[idx + 3]) {
|
|
117
|
+
return `${parts[idx + 1]}/${parts[idx + 2]}/${parts[idx + 3]}`;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
if (format === "cursor") {
|
|
121
|
+
const idx = parts.findIndex((p) => p === "projects");
|
|
122
|
+
if (idx >= 0 && parts[idx + 1])
|
|
123
|
+
return parts[idx + 1];
|
|
124
|
+
}
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
function walkFiles(root, accept, depth = 0) {
|
|
128
|
+
if (depth > 8 || !existsSync(root))
|
|
129
|
+
return [];
|
|
130
|
+
const out = [];
|
|
131
|
+
try {
|
|
132
|
+
for (const name of readdirSync(root)) {
|
|
133
|
+
const abs = path.join(root, name);
|
|
134
|
+
let st;
|
|
135
|
+
try {
|
|
136
|
+
st = statSync(abs);
|
|
137
|
+
}
|
|
138
|
+
catch {
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
if (st.isDirectory()) {
|
|
142
|
+
out.push(...walkFiles(abs, accept, depth + 1));
|
|
143
|
+
}
|
|
144
|
+
else if (st.isFile() && accept(name)) {
|
|
145
|
+
out.push(abs);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
catch {
|
|
150
|
+
return out;
|
|
151
|
+
}
|
|
152
|
+
return out;
|
|
153
|
+
}
|
|
154
|
+
function makeEntry(partial) {
|
|
155
|
+
return { ...partial, importStatus: null };
|
|
156
|
+
}
|
|
157
|
+
function scanClaude(root) {
|
|
158
|
+
const files = walkFiles(root, (n) => /\.jsonl$/i.test(n));
|
|
159
|
+
const out = [];
|
|
160
|
+
for (const filePath of files) {
|
|
161
|
+
const stem = path.basename(filePath, path.extname(filePath));
|
|
162
|
+
if (stem.startsWith("agent-"))
|
|
163
|
+
continue;
|
|
164
|
+
const st = statSync(filePath);
|
|
165
|
+
const head = readHead(filePath);
|
|
166
|
+
if (!head)
|
|
167
|
+
continue;
|
|
168
|
+
const recs = parseJsonlHead(head);
|
|
169
|
+
let sessionId = "";
|
|
170
|
+
for (const rec of recs) {
|
|
171
|
+
if (rec && typeof rec === "object" && typeof rec.sessionId === "string") {
|
|
172
|
+
sessionId = rec.sessionId;
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if (!sessionId || sessionId !== stem)
|
|
177
|
+
continue;
|
|
178
|
+
let cwd;
|
|
179
|
+
for (const rec of recs) {
|
|
180
|
+
if (rec && typeof rec === "object" && typeof rec.cwd === "string") {
|
|
181
|
+
cwd = rec.cwd;
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
const title = firstUserTitle(recs, (r) => r.type === "user" &&
|
|
186
|
+
r.message &&
|
|
187
|
+
typeof r.message === "object" &&
|
|
188
|
+
r.message.role === "user"
|
|
189
|
+
? contentText(r.message.content)
|
|
190
|
+
: "");
|
|
191
|
+
out.push(makeEntry({
|
|
192
|
+
format: "claude",
|
|
193
|
+
sessionId,
|
|
194
|
+
title,
|
|
195
|
+
project: cwd ? path.basename(cwd) : layoutProject(filePath, "claude"),
|
|
196
|
+
createdAt: st.mtimeMs,
|
|
197
|
+
lastActiveAt: st.mtimeMs,
|
|
198
|
+
messageCount: null,
|
|
199
|
+
sourcePath: filePath,
|
|
200
|
+
}));
|
|
201
|
+
}
|
|
202
|
+
return out;
|
|
203
|
+
}
|
|
204
|
+
function scanCodex(root) {
|
|
205
|
+
const files = walkFiles(root, (n) => /\.jsonl$/i.test(n));
|
|
206
|
+
const out = [];
|
|
207
|
+
for (const filePath of files) {
|
|
208
|
+
const st = statSync(filePath);
|
|
209
|
+
const head = readHead(filePath);
|
|
210
|
+
if (!head)
|
|
211
|
+
continue;
|
|
212
|
+
const recs = parseJsonlHead(head);
|
|
213
|
+
const meta = recs.find((r) => r &&
|
|
214
|
+
typeof r === "object" &&
|
|
215
|
+
r.type === "session_meta" &&
|
|
216
|
+
r.payload &&
|
|
217
|
+
typeof r.payload === "object");
|
|
218
|
+
if (!meta?.payload)
|
|
219
|
+
continue;
|
|
220
|
+
const payload = meta.payload;
|
|
221
|
+
if (payload.thread_source === "subagent" ||
|
|
222
|
+
(payload.source &&
|
|
223
|
+
typeof payload.source === "object" &&
|
|
224
|
+
payload.source.subagent)) {
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
const sessionId = typeof payload.id === "string" && payload.id
|
|
228
|
+
? payload.id
|
|
229
|
+
: (filePath.match(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i)?.[0] ?? randomUUID());
|
|
230
|
+
const cwd = typeof payload.cwd === "string" ? payload.cwd : undefined;
|
|
231
|
+
const title = firstUserTitle(recs, (r) => r.type === "response_item" &&
|
|
232
|
+
r.payload &&
|
|
233
|
+
typeof r.payload === "object" &&
|
|
234
|
+
r.payload.type === "message" &&
|
|
235
|
+
r.payload.role === "user"
|
|
236
|
+
? contentText(r.payload.content)
|
|
237
|
+
: "");
|
|
238
|
+
out.push(makeEntry({
|
|
239
|
+
format: "codex",
|
|
240
|
+
sessionId,
|
|
241
|
+
title,
|
|
242
|
+
project: cwd ? path.basename(cwd) : layoutProject(filePath, "codex"),
|
|
243
|
+
createdAt: st.mtimeMs,
|
|
244
|
+
lastActiveAt: st.mtimeMs,
|
|
245
|
+
messageCount: null,
|
|
246
|
+
sourcePath: filePath,
|
|
247
|
+
}));
|
|
248
|
+
}
|
|
249
|
+
return out;
|
|
250
|
+
}
|
|
251
|
+
function scanCursor(root) {
|
|
252
|
+
const files = walkFiles(root, (n) => /\.jsonl$/i.test(n));
|
|
253
|
+
const out = [];
|
|
254
|
+
for (const filePath of files) {
|
|
255
|
+
if (!/agent-transcripts/i.test(filePath))
|
|
256
|
+
continue;
|
|
257
|
+
const stem = path.basename(filePath, ".jsonl");
|
|
258
|
+
if (stem !== path.basename(path.dirname(filePath)))
|
|
259
|
+
continue;
|
|
260
|
+
const st = statSync(filePath);
|
|
261
|
+
const head = readHead(filePath);
|
|
262
|
+
if (!head)
|
|
263
|
+
continue;
|
|
264
|
+
const recs = parseJsonlHead(head);
|
|
265
|
+
const title = firstUserTitle(recs, (r) => r.role === "user"
|
|
266
|
+
? contentText(r.message?.content ??
|
|
267
|
+
r.content).replace(/<\/?user_query>/g, "")
|
|
268
|
+
: "");
|
|
269
|
+
out.push(makeEntry({
|
|
270
|
+
format: "cursor",
|
|
271
|
+
sessionId: stem,
|
|
272
|
+
title,
|
|
273
|
+
project: layoutProject(filePath, "cursor"),
|
|
274
|
+
createdAt: null,
|
|
275
|
+
lastActiveAt: st.mtimeMs,
|
|
276
|
+
messageCount: null,
|
|
277
|
+
sourcePath: filePath,
|
|
278
|
+
}));
|
|
279
|
+
}
|
|
280
|
+
return out;
|
|
281
|
+
}
|
|
282
|
+
function scanGemini(root) {
|
|
283
|
+
const files = walkFiles(root, (n) => /^session-.+\.json$/i.test(n));
|
|
284
|
+
const out = [];
|
|
285
|
+
for (const filePath of files) {
|
|
286
|
+
const st = statSync(filePath);
|
|
287
|
+
let parsed;
|
|
288
|
+
try {
|
|
289
|
+
parsed = JSON.parse(readFileSync(filePath, "utf8"));
|
|
290
|
+
}
|
|
291
|
+
catch {
|
|
292
|
+
continue;
|
|
293
|
+
}
|
|
294
|
+
const sessionId = typeof parsed.sessionId === "string"
|
|
295
|
+
? parsed.sessionId
|
|
296
|
+
: path.basename(filePath, ".json");
|
|
297
|
+
const messages = Array.isArray(parsed.messages) ? parsed.messages : [];
|
|
298
|
+
const title = firstUserTitle(messages, (r) => r.type === "user" ? contentText(r.content) : "");
|
|
299
|
+
out.push(makeEntry({
|
|
300
|
+
format: "gemini",
|
|
301
|
+
sessionId,
|
|
302
|
+
title,
|
|
303
|
+
project: null,
|
|
304
|
+
createdAt: typeof parsed.startTime === "number" ? parsed.startTime : st.mtimeMs,
|
|
305
|
+
lastActiveAt: st.mtimeMs,
|
|
306
|
+
messageCount: messages.length,
|
|
307
|
+
sourcePath: filePath,
|
|
308
|
+
}));
|
|
309
|
+
}
|
|
310
|
+
return out;
|
|
311
|
+
}
|
|
312
|
+
function scanDsh(root, xrkHome) {
|
|
313
|
+
const roots = [root];
|
|
314
|
+
if (xrkHome) {
|
|
315
|
+
roots.push(path.join(xrkHome, "sessions"));
|
|
316
|
+
}
|
|
317
|
+
const out = [];
|
|
318
|
+
for (const scanRoot of roots) {
|
|
319
|
+
const files = walkFiles(scanRoot, (n) => /\.(jsonl|json)$/i.test(n));
|
|
320
|
+
for (const filePath of files) {
|
|
321
|
+
const st = statSync(filePath);
|
|
322
|
+
const sessionId = path.basename(filePath).replace(/\.(jsonl|json)$/i, "");
|
|
323
|
+
const head = readHead(filePath);
|
|
324
|
+
const title = head && filePath.endsWith(".jsonl")
|
|
325
|
+
? firstUserTitle(parseJsonlHead(head), (r) => typeof r.content === "string"
|
|
326
|
+
? r.content
|
|
327
|
+
: contentText(r.content))
|
|
328
|
+
: null;
|
|
329
|
+
out.push(makeEntry({
|
|
330
|
+
format: "dsh",
|
|
331
|
+
sessionId,
|
|
332
|
+
title,
|
|
333
|
+
project: path.basename(path.dirname(filePath)),
|
|
334
|
+
createdAt: st.mtimeMs,
|
|
335
|
+
lastActiveAt: st.mtimeMs,
|
|
336
|
+
messageCount: null,
|
|
337
|
+
sourcePath: filePath,
|
|
338
|
+
}));
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
return out;
|
|
342
|
+
}
|
|
343
|
+
const SCANNERS = {
|
|
344
|
+
claude: (root) => scanClaude(root),
|
|
345
|
+
codex: (root) => scanCodex(root),
|
|
346
|
+
cursor: (root) => scanCursor(root),
|
|
347
|
+
gemini: (root) => scanGemini(root),
|
|
348
|
+
dsh: (root, xrkHome) => scanDsh(root, xrkHome),
|
|
349
|
+
};
|
|
350
|
+
function rootsForFormat(format, home = homedir()) {
|
|
351
|
+
const row = defaultChatImportRoots(home)[format];
|
|
352
|
+
if (!row)
|
|
353
|
+
return [];
|
|
354
|
+
return Array.isArray(row) ? row : [row];
|
|
355
|
+
}
|
|
356
|
+
function applyImportStatus(sessions, imports) {
|
|
357
|
+
return sessions.map((s) => {
|
|
358
|
+
const key = importFingerprint(s);
|
|
359
|
+
const row = imports[key];
|
|
360
|
+
return {
|
|
361
|
+
...s,
|
|
362
|
+
importStatus: row?.status ?? null,
|
|
363
|
+
};
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
export function importFingerprint(session) {
|
|
367
|
+
return createHash("sha256")
|
|
368
|
+
.update(`${session.format}\0${session.sessionId}\0${session.sourcePath}`)
|
|
369
|
+
.digest("hex");
|
|
370
|
+
}
|
|
371
|
+
export function discoverChatImportSessions(options) {
|
|
372
|
+
const home = options.home ?? homedir();
|
|
373
|
+
const imports = options.imports ?? {};
|
|
374
|
+
const query = (options.query ?? "").trim().toLowerCase();
|
|
375
|
+
const formats = options.format
|
|
376
|
+
? [options.format]
|
|
377
|
+
: [...CHAT_IMPORT_FORMATS];
|
|
378
|
+
let sessions = [];
|
|
379
|
+
for (const format of formats) {
|
|
380
|
+
const targets = options.path
|
|
381
|
+
? [path.resolve(options.path)]
|
|
382
|
+
: rootsForFormat(format, home);
|
|
383
|
+
for (const target of targets) {
|
|
384
|
+
const cacheKey = `${format}|${target}`;
|
|
385
|
+
const hit = scanCache.get(cacheKey);
|
|
386
|
+
let rows;
|
|
387
|
+
if (hit && Date.now() - hit.ts < SCAN_TTL_MS) {
|
|
388
|
+
rows = hit.data;
|
|
389
|
+
}
|
|
390
|
+
else {
|
|
391
|
+
rows = SCANNERS[format](target, options.xrkHome);
|
|
392
|
+
scanCache.set(cacheKey, { ts: Date.now(), data: rows });
|
|
393
|
+
}
|
|
394
|
+
sessions.push(...rows);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
if (query) {
|
|
398
|
+
sessions = sessions.filter((s) => {
|
|
399
|
+
const hay = [
|
|
400
|
+
s.title ?? "",
|
|
401
|
+
s.project ?? "",
|
|
402
|
+
s.sourcePath,
|
|
403
|
+
s.sessionId,
|
|
404
|
+
]
|
|
405
|
+
.join(" ")
|
|
406
|
+
.toLowerCase();
|
|
407
|
+
return hay.includes(query);
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
sessions.sort((a, b) => (b.lastActiveAt ?? b.createdAt ?? 0) -
|
|
411
|
+
(a.lastActiveAt ?? a.createdAt ?? 0));
|
|
412
|
+
sessions = applyImportStatus(sessions, imports);
|
|
413
|
+
return { sessions, total: sessions.length };
|
|
414
|
+
}
|
|
415
|
+
/** Async wrapper for large trees (yields event loop between formats). */
|
|
416
|
+
export async function discoverChatImportSessionsAsync(options) {
|
|
417
|
+
return discoverChatImportSessions(options);
|
|
418
|
+
}
|
|
419
|
+
export function clearChatImportScanCache() {
|
|
420
|
+
scanCache.clear();
|
|
421
|
+
}
|
|
422
|
+
//# sourceMappingURL=chat-import-discovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-import-discovery.js","sourceRoot":"","sources":["../../src/dsh-compat/chat-import-discovery.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,UAAU,EACV,UAAU,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,QAAQ,GACT,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,KAAK;CACG,CAAC;AAIX,qEAAqE;AACrE,MAAM,CAAC,MAAM,yBAAyB,GAAqC;IACzE,aAAa,EAAE,QAAQ;IACvB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;CACX,CAAC;AAcF,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,cAAc,GAAG,GAAG,GAAG,IAAI,CAAC;AAClC,MAAM,WAAW,GAAG,MAAM,CAAC;AAE3B,MAAM,SAAS,GAAG,IAAI,GAAG,EAAqD,CAAC;AAE/E,MAAM,UAAU,sBAAsB,CAAC,IAAI,GAAG,OAAO,EAAE;IAIrD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,IA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BACV,CAAC,CAAC,KAAK,IAAI,EAAE;gBACb,CAAC,CAAC,OAAO,IAAI,EAAE;gBACf,CAAC,CAAC,UAAU;gBACZ,CAAC,CAAC,SAAS;aACZ;iBACE,IAAI,CAAC,GAAG,CAAC;iBACT,WAAW,EAAE,CAAC;YACjB,OAAO,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,IAAI,CACX,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACP,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,CACvC,CAAC;IACF,QAAQ,GAAG,iBAAiB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAChD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;AAC9C,CAAC;AAED,yEAAyE;AACzE,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,OAAyD;IAEzD,OAAO,0BAA0B,CAAC,OAAO,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,wBAAwB;IACtC,SAAS,CAAC,KAAK,EAAE,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ImportRegistryRow {
|
|
2
|
+
format: string;
|
|
3
|
+
sourcePath: string;
|
|
4
|
+
sessionId: string;
|
|
5
|
+
status: "imported" | "already-imported" | "failed" | "skipped";
|
|
6
|
+
importedAt: string;
|
|
7
|
+
xrkSessionId?: string;
|
|
8
|
+
note?: string;
|
|
9
|
+
}
|
|
10
|
+
interface ImportRegistryDoc {
|
|
11
|
+
imports: Record<string, ImportRegistryRow>;
|
|
12
|
+
}
|
|
13
|
+
export declare function loadImportRegistry(xrkHome?: string): ImportRegistryDoc;
|
|
14
|
+
export declare function upsertImportRow(xrkHome: string | undefined, row: Omit<ImportRegistryRow, "importedAt"> & {
|
|
15
|
+
importedAt?: string;
|
|
16
|
+
}): ImportRegistryRow;
|
|
17
|
+
export declare function registryStatusMap(doc: ImportRegistryDoc): Record<string, {
|
|
18
|
+
status?: string;
|
|
19
|
+
}>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=chat-import-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-import-registry.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/chat-import-registry.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,UAAU,GAAG,kBAAkB,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC/D,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC5C;AAOD,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,GAAG,EAAE,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GACnE,iBAAiB,CAgBnB;AAED,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,iBAAiB,GACrB,MAAM,CAAC,MAAM,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAMrC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-chat-import import registry — tracks discovered → imported fingerprints.
|
|
3
|
+
*/
|
|
4
|
+
import { createXrkDocStore } from "./underlying/doc-store.js";
|
|
5
|
+
import { importFingerprint } from "./chat-import-discovery.js";
|
|
6
|
+
const REGISTRY_STORE = createXrkDocStore(["chat-import", "imports.json"], { imports: {} });
|
|
7
|
+
export function loadImportRegistry(xrkHome) {
|
|
8
|
+
return REGISTRY_STORE.read(xrkHome).data;
|
|
9
|
+
}
|
|
10
|
+
export function upsertImportRow(xrkHome, row) {
|
|
11
|
+
const key = importFingerprint({
|
|
12
|
+
format: row.format,
|
|
13
|
+
sessionId: row.sessionId,
|
|
14
|
+
sourcePath: row.sourcePath,
|
|
15
|
+
});
|
|
16
|
+
const saved = REGISTRY_STORE.patch(xrkHome, (current) => ({
|
|
17
|
+
imports: {
|
|
18
|
+
...current.imports,
|
|
19
|
+
[key]: {
|
|
20
|
+
...row,
|
|
21
|
+
importedAt: row.importedAt ?? new Date().toISOString(),
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}));
|
|
25
|
+
return saved.data.imports[key];
|
|
26
|
+
}
|
|
27
|
+
export function registryStatusMap(doc) {
|
|
28
|
+
const out = {};
|
|
29
|
+
for (const [key, row] of Object.entries(doc.imports)) {
|
|
30
|
+
out[key] = { status: row.status };
|
|
31
|
+
}
|
|
32
|
+
return out;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=chat-import-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-import-registry.js","sourceRoot":"","sources":["../../src/dsh-compat/chat-import-registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAgB/D,MAAM,cAAc,GAAG,iBAAiB,CACtC,CAAC,aAAa,EAAE,cAAc,CAAC,EAC/B,EAAE,OAAO,EAAE,EAAE,EAAE,CAChB,CAAC;AA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|
|
1
|
+
{"version":3,"file":"chat-import.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/chat-import.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAiBjE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAkKD,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,OAAO,CAAC,CA8MlB;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE1D"}
|