@xrkseek/harness-cli 0.0.10 → 0.1.0
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 +13 -6
- package/dist/commands/plugin.d.ts.map +1 -1
- package/dist/commands/plugin.js +4 -3
- package/dist/commands/plugin.js.map +1 -1
- package/dist/commands/restart.d.ts.map +1 -1
- package/dist/commands/restart.js +16 -7
- package/dist/commands/restart.js.map +1 -1
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +15 -3
- package/dist/commands/serve.js.map +1 -1
- package/dist/host-lock.d.ts +15 -0
- package/dist/host-lock.d.ts.map +1 -0
- package/dist/host-lock.js +64 -0
- package/dist/host-lock.js.map +1 -0
- package/dist/parse-args.d.ts.map +1 -1
- package/dist/parse-args.js +13 -10
- package/dist/parse-args.js.map +1 -1
- package/dist/plugin/install-client.d.ts.map +1 -1
- package/dist/plugin/install-client.js +80 -2
- package/dist/plugin/install-client.js.map +1 -1
- package/dist/port.d.ts +20 -2
- package/dist/port.d.ts.map +1 -1
- package/dist/port.js +147 -28
- package/dist/port.js.map +1 -1
- package/node_modules/@img/colour/LICENSE.md +82 -0
- package/node_modules/@img/colour/README.md +15 -0
- package/node_modules/@img/colour/color.cjs +1596 -0
- package/node_modules/@img/colour/index.cjs +1 -0
- package/node_modules/@img/colour/index.d.ts +929 -0
- package/node_modules/@img/colour/package.json +58 -0
- package/node_modules/@img/sharp-win32-x64/LICENSE +191 -0
- package/node_modules/@img/sharp-win32-x64/README.md +59 -0
- package/node_modules/@img/sharp-win32-x64/index.cjs +1 -0
- package/node_modules/@img/sharp-win32-x64/lib/libvips-42.dll +0 -0
- package/node_modules/@img/sharp-win32-x64/lib/libvips-cpp-8.18.3.dll +0 -0
- package/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64-0.35.3.node +0 -0
- package/node_modules/@img/sharp-win32-x64/package.json +40 -0
- package/node_modules/@img/sharp-win32-x64/versions.json +30 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +111 -0
- package/node_modules/@types/node/assert.d.ts +1115 -0
- package/node_modules/@types/node/async_hooks.d.ts +623 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +472 -0
- package/node_modules/@types/node/buffer.d.ts +1934 -0
- package/node_modules/@types/node/child_process.d.ts +1476 -0
- package/node_modules/@types/node/cluster.d.ts +578 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/node/console.d.ts +453 -0
- package/node_modules/@types/node/constants.d.ts +21 -0
- package/node_modules/@types/node/crypto.d.ts +5417 -0
- package/node_modules/@types/node/dgram.d.ts +600 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
- package/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/node_modules/@types/node/dns.d.ts +923 -0
- package/node_modules/@types/node/domain.d.ts +166 -0
- package/node_modules/@types/node/events.d.ts +976 -0
- package/node_modules/@types/node/fs/promises.d.ts +1341 -0
- package/node_modules/@types/node/fs.d.ts +4714 -0
- package/node_modules/@types/node/globals.d.ts +170 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +41 -0
- package/node_modules/@types/node/http.d.ts +2154 -0
- package/node_modules/@types/node/http2.d.ts +2835 -0
- package/node_modules/@types/node/https.d.ts +585 -0
- package/node_modules/@types/node/index.d.ts +101 -0
- package/node_modules/@types/node/inspector.d.ts +277 -0
- package/node_modules/@types/node/inspector.generated.d.ts +4239 -0
- package/node_modules/@types/node/module.d.ts +843 -0
- package/node_modules/@types/node/net.d.ts +1073 -0
- package/node_modules/@types/node/os.d.ts +507 -0
- package/node_modules/@types/node/package.json +155 -0
- package/node_modules/@types/node/path.d.ts +200 -0
- package/node_modules/@types/node/perf_hooks.d.ts +1042 -0
- package/node_modules/@types/node/process.d.ts +2102 -0
- package/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/node/querystring.d.ts +152 -0
- package/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/node_modules/@types/node/readline.d.ts +600 -0
- package/node_modules/@types/node/repl.d.ts +438 -0
- package/node_modules/@types/node/sea.d.ts +162 -0
- package/node_modules/@types/node/sqlite.d.ts +1040 -0
- package/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/node_modules/@types/node/stream/web.d.ts +573 -0
- package/node_modules/@types/node/stream.d.ts +1706 -0
- package/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/test.d.ts +2349 -0
- package/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/node_modules/@types/node/timers.d.ts +285 -0
- package/node_modules/@types/node/tls.d.ts +1279 -0
- package/node_modules/@types/node/trace_events.d.ts +197 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +103 -0
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +103 -0
- package/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@types/node/url.d.ts +1079 -0
- package/node_modules/@types/node/util.d.ts +2336 -0
- package/node_modules/@types/node/v8.d.ts +982 -0
- package/node_modules/@types/node/vm.d.ts +1195 -0
- package/node_modules/@types/node/wasi.d.ts +202 -0
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +62 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@types/node/worker_threads.d.ts +894 -0
- package/node_modules/@types/node/zlib.d.ts +745 -0
- package/node_modules/@xrkseek/attachment/dist/error.d.ts +3 -2
- package/node_modules/@xrkseek/attachment/dist/error.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/error.js +17 -2
- package/node_modules/@xrkseek/attachment/dist/error.js.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/attachment/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/index.js +1 -1
- package/node_modules/@xrkseek/attachment/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/memory.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/memory.js +6 -0
- package/node_modules/@xrkseek/attachment/dist/memory.js.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/store.d.ts +6 -1
- package/node_modules/@xrkseek/attachment/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/types.d.ts +19 -0
- package/node_modules/@xrkseek/attachment/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/attachment-local/README.md +3 -0
- package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.d.ts +18 -0
- package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.d.ts.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.js +43 -0
- package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.js.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/encoding.d.ts +23 -0
- package/node_modules/@xrkseek/attachment-local/dist/encoding.d.ts.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/encoding.js +33 -0
- package/node_modules/@xrkseek/attachment-local/dist/encoding.js.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/image.d.ts +54 -0
- package/node_modules/@xrkseek/attachment-local/dist/image.d.ts.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/image.js +97 -0
- package/node_modules/@xrkseek/attachment-local/dist/image.js.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/index.d.ts +32 -0
- package/node_modules/@xrkseek/attachment-local/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/index.js +188 -0
- package/node_modules/@xrkseek/attachment-local/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/normalization.d.ts +44 -0
- package/node_modules/@xrkseek/attachment-local/dist/normalization.d.ts.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/normalization.js +148 -0
- package/node_modules/@xrkseek/attachment-local/dist/normalization.js.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts +34 -0
- package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/request-image.js +208 -0
- package/node_modules/@xrkseek/attachment-local/dist/request-image.js.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/store.d.ts +58 -0
- package/node_modules/@xrkseek/attachment-local/dist/store.d.ts.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/store.js +290 -0
- package/node_modules/@xrkseek/attachment-local/dist/store.js.map +1 -0
- package/node_modules/@xrkseek/attachment-local/package.json +25 -0
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +3 -0
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js +10 -0
- package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts +35 -0
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js +120 -0
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js.map +1 -0
- package/node_modules/@xrkseek/exec-fs/package.json +3 -1
- package/node_modules/@xrkseek/llm/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/llm/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/README.md +3 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/file-id.d.ts +10 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/file-id.d.ts.map +1 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/file-id.js +8 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/file-id.js.map +1 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/file-store.d.ts +40 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/file-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/file-store.js +164 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/file-store.js.map +1 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/files-api.d.ts +56 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/files-api.d.ts.map +1 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/files-api.js +180 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/files-api.js.map +1 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts +15 -6
- package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/index.js +63 -13
- package/node_modules/@xrkseek/llm-deepseek/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.d.ts +8 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.d.ts.map +1 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.js +12 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.js.map +1 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.d.ts +28 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.d.ts.map +1 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js +142 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js.map +1 -0
- package/node_modules/@xrkseek/llm-deepseek/package.json +3 -1
- package/node_modules/@xrkseek/llm-openai-compatible/dist/index.d.ts +27 -0
- package/node_modules/@xrkseek/llm-openai-compatible/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-openai-compatible/dist/index.js +20 -5
- package/node_modules/@xrkseek/llm-openai-compatible/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/registry.d.ts +1 -0
- package/node_modules/@xrkseek/llm-registry/dist/registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/registry.js +15 -1
- package/node_modules/@xrkseek/llm-registry/dist/registry.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/README.md +5 -2
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +5 -0
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +12 -3
- package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-harness/package.json +1 -0
- package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.js +3 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/protocol/dist/content.d.ts +5 -0
- package/node_modules/@xrkseek/protocol/dist/content.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/content.js +8 -1
- package/node_modules/@xrkseek/protocol/dist/content.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +6 -3
- package/node_modules/@xrkseek/server-face/dist/context.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/cordis-bridge.d.ts +9 -0
- package/node_modules/@xrkseek/server-face/dist/cordis-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cordis-bridge.js +28 -0
- package/node_modules/@xrkseek/server-face/dist/cordis-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.d.ts +16 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.js +141 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.d.ts +13 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.js +158 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.d.ts +284 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.js +696 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.d.ts +15 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.js +196 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.d.ts +19 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.js +143 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.d.ts +16 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.js +84 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-record.d.ts +19 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-record.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-record.js +221 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-record.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-store.d.ts +133 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-store.js +561 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-store.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/dispatch.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/dispatch.js +15 -0
- package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.d.ts +0 -5
- package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js +277 -24
- package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.d.ts +30 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.js +48 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/references.d.ts +6 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/references.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/references.js +42 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/references.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.d.ts +6 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.js +24 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/llm-resolve.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/llm-resolve.js +5 -3
- package/node_modules/@xrkseek/server-face/dist/llm-resolve.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts +2 -2
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js +7 -3
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.js +3 -3
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.js +2 -0
- package/node_modules/@xrkseek/server-face/dist/projections/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js +12 -0
- package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts +45 -0
- package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.d.ts +40 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.js +103 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.d.ts +9 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.js +24 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts +37 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js +109 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.d.ts +35 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js +151 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/reference-discovery.d.ts +13 -0
- package/node_modules/@xrkseek/server-face/dist/reference-discovery.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/reference-discovery.js +81 -0
- package/node_modules/@xrkseek/server-face/dist/reference-discovery.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +5 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +25 -0
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +15 -0
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/slash.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/slash.js +19 -0
- package/node_modules/@xrkseek/server-face/dist/slash.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/paths.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/paths.js +3 -0
- package/node_modules/@xrkseek/server-face/dist/wire/paths.js.map +1 -1
- package/node_modules/@xrkseek/server-face/package.json +3 -0
- package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.d.ts +4 -0
- package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.js +10 -0
- package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.d.ts +11 -0
- package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.js +29 -0
- package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.d.ts +15 -0
- package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.js +34 -0
- package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/index.d.ts +6 -1
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +126 -19
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts +17 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js +201 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.d.ts +10 -0
- package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.js +31 -0
- package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/wallet-bridge.d.ts +7 -0
- package/node_modules/@xrkseek/server-host/dist/wallet-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/wallet-bridge.js +40 -0
- package/node_modules/@xrkseek/server-host/dist/wallet-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-host/package.json +8 -1
- package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts +12 -0
- package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/boot-inject.js +54 -0
- package/node_modules/@xrkseek/server-http/dist/boot-inject.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.js +141 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts +3 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js +445 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.js +15 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts +57 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.js +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.d.ts +10 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.js +275 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts +10 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js +41 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts +17 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js +184 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.js +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.d.ts +21 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.js +122 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts +10 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js +58 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js +59 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.d.ts +25 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.js +154 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.d.ts +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.js +77 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts +16 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js +121 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.d.ts +12 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.js +48 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.d.ts +18 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.js +62 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.js +42 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js +88 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.js +67 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts +18 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +198 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.d.ts +27 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.js +71 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.d.ts +8 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.js +12 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.d.ts +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.js +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts +22 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js +219 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.d.ts +4 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.js +53 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js +61 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js +150 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.d.ts +10 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js +239 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.d.ts +22 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.js +83 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.d.ts +18 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.js +191 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts +21 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js +105 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js +57 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.js +74 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.d.ts +14 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.js +17 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.d.ts +76 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.js +551 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.js +136 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts +21 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js +281 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.d.ts +16 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.js +163 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js +125 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.d.ts +17 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.js +188 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.js +55 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts +37 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js +36 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.js +28 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.js +108 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js +218 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.d.ts +10 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.js +81 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.d.ts +10 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.js +15 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.d.ts +8 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.js +83 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.js +144 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts +17 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js +52 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js +221 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts +22 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js +155 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts +14 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js +213 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.d.ts +14 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.js +200 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js +200 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.js +47 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.d.ts +15 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.js +132 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.d.ts +13 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.js +336 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.d.ts +10 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.js +86 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.d.ts +8 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.js +34 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts +4 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js +170 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts +33 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js +108 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.d.ts +10 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js +38 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.d.ts +10 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.js +358 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.d.ts +25 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.js +78 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.js +56 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js +106 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.d.ts +18 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.js +240 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.js +78 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.d.ts +42 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.js +117 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js +111 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts +16 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js +455 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.d.ts +26 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.js +22 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.d.ts +12 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.js +123 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.d.ts +16 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.js +99 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.d.ts +106 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.js +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.d.ts +14 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.js +21 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.js +22 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts +22 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js +13 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.d.ts +21 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.js +190 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.d.ts +10 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.js +438 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.d.ts +8 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.js +69 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.js +62 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.js +17 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.js +67 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.d.ts +12 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.js +198 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.d.ts +15 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.js +111 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js +161 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.js +31 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js +103 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.d.ts +49 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.js +190 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.js +44 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat.js +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts +14 -0
- package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/host-wire.js +15 -0
- package/node_modules/@xrkseek/server-http/dist/host-wire.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/http-json.d.ts +12 -0
- package/node_modules/@xrkseek/server-http/dist/http-json.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/http-json.js +40 -0
- package/node_modules/@xrkseek/server-http/dist/http-json.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/index.d.ts +12 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +12 -1
- package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/public-routes.d.ts +19 -0
- package/node_modules/@xrkseek/server-http/dist/public-routes.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/public-routes.js +34 -0
- package/node_modules/@xrkseek/server-http/dist/public-routes.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +13 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js +58 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts +16 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js +49 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.d.ts +35 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js +103 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js.map +1 -0
- package/node_modules/@xrkseek/server-http/package.json +2 -1
- package/node_modules/@xrkseek/server-loader/dist/host.d.ts +6 -0
- package/node_modules/@xrkseek/server-loader/dist/host.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/host.js +11 -0
- package/node_modules/@xrkseek/server-loader/dist/host.js.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/index.js +1 -0
- package/node_modules/@xrkseek/server-loader/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts +5 -0
- package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/kinds.js +5 -0
- package/node_modules/@xrkseek/server-loader/dist/kinds.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.js +5 -0
- package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/types.d.ts +40 -0
- package/node_modules/@xrkseek/server-loader/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/xrk-file-reference/README.i18n.yaml +6 -0
- package/node_modules/@xrkseek/xrk-file-reference/README.md +22 -0
- package/node_modules/@xrkseek/xrk-file-reference/README.zh.md +22 -0
- package/node_modules/@xrkseek/xrk-file-reference/package.json +68 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/README.i18n.yaml +6 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/README.md +45 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/README.zh.md +45 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/package.json +56 -0
- package/node_modules/@xrkseek/xrk-session-reference/README.i18n.yaml +6 -0
- package/node_modules/@xrkseek/xrk-session-reference/README.md +50 -0
- package/node_modules/@xrkseek/xrk-session-reference/README.zh.md +50 -0
- package/node_modules/@xrkseek/xrk-session-reference/package.json +79 -0
- package/node_modules/detect-libc/LICENSE +201 -0
- package/node_modules/detect-libc/README.md +163 -0
- package/node_modules/detect-libc/index.d.ts +14 -0
- package/node_modules/detect-libc/lib/detect-libc.js +313 -0
- package/node_modules/detect-libc/lib/elf.js +39 -0
- package/node_modules/detect-libc/lib/filesystem.js +51 -0
- package/node_modules/detect-libc/lib/process.js +24 -0
- package/node_modules/detect-libc/package.json +44 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +680 -0
- package/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +577 -0
- package/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +93 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +17 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/sharp/LICENSE +191 -0
- package/node_modules/sharp/README.md +112 -0
- package/node_modules/sharp/dist/channel.cjs +177 -0
- package/node_modules/sharp/dist/channel.mjs +177 -0
- package/node_modules/sharp/dist/colour.cjs +199 -0
- package/node_modules/sharp/dist/colour.mjs +199 -0
- package/node_modules/sharp/dist/composite.cjs +213 -0
- package/node_modules/sharp/dist/composite.mjs +213 -0
- package/node_modules/sharp/dist/constructor.cjs +511 -0
- package/node_modules/sharp/dist/constructor.mjs +511 -0
- package/node_modules/sharp/dist/index.cjs +25 -0
- package/node_modules/sharp/dist/index.d.cts +1999 -0
- package/node_modules/sharp/dist/index.d.mts +2046 -0
- package/node_modules/sharp/dist/index.mjs +25 -0
- package/node_modules/sharp/dist/input.cjs +814 -0
- package/node_modules/sharp/dist/input.mjs +814 -0
- package/node_modules/sharp/dist/is.cjs +143 -0
- package/node_modules/sharp/dist/is.mjs +143 -0
- package/node_modules/sharp/dist/libvips.cjs +212 -0
- package/node_modules/sharp/dist/libvips.mjs +212 -0
- package/node_modules/sharp/dist/operation.cjs +998 -0
- package/node_modules/sharp/dist/operation.mjs +998 -0
- package/node_modules/sharp/dist/output.cjs +1788 -0
- package/node_modules/sharp/dist/output.mjs +1788 -0
- package/node_modules/sharp/dist/resize.cjs +617 -0
- package/node_modules/sharp/dist/resize.mjs +617 -0
- package/node_modules/sharp/dist/sharp.cjs +174 -0
- package/node_modules/sharp/dist/sharp.mjs +174 -0
- package/node_modules/sharp/dist/utility.cjs +301 -0
- package/node_modules/sharp/dist/utility.mjs +301 -0
- package/node_modules/sharp/install/build.js +38 -0
- package/node_modules/sharp/lib/index.d.ts +1999 -0
- package/node_modules/sharp/package.json +227 -0
- package/node_modules/sharp/src/binding.gyp +303 -0
- package/node_modules/sharp/src/common.cc +1183 -0
- package/node_modules/sharp/src/common.h +421 -0
- package/node_modules/sharp/src/metadata.cc +404 -0
- package/node_modules/sharp/src/metadata.h +95 -0
- package/node_modules/sharp/src/operations.cc +516 -0
- package/node_modules/sharp/src/operations.h +137 -0
- package/node_modules/sharp/src/pipeline.cc +1948 -0
- package/node_modules/sharp/src/pipeline.h +422 -0
- package/node_modules/sharp/src/sharp.cc +43 -0
- package/node_modules/sharp/src/stats.cc +186 -0
- package/node_modules/sharp/src/stats.h +62 -0
- package/node_modules/sharp/src/utilities.cc +289 -0
- package/node_modules/sharp/src/utilities.h +22 -0
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +32 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +30 -0
- package/node_modules/undici-types/cache-interceptor.d.ts +173 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +30 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/node_modules/undici-types/dispatcher.d.ts +276 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/undici-types/errors.d.ts +161 -0
- package/node_modules/undici-types/eventsource.d.ts +66 -0
- package/node_modules/undici-types/fetch.d.ts +211 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/undici-types/header.d.ts +160 -0
- package/node_modules/undici-types/index.d.ts +88 -0
- package/node_modules/undici-types/interceptors.d.ts +73 -0
- package/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +27 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
- package/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +29 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +41 -0
- package/node_modules/undici-types/proxy-agent.d.ts +29 -0
- package/node_modules/undici-types/readable.d.ts +68 -0
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +341 -0
- package/node_modules/undici-types/websocket.d.ts +186 -0
- package/package.json +23 -1
- package/product-web/assets/{index-CSGf6Qzd.css → index-C0u-TtQQ.css} +1 -1
- package/product-web/assets/index-CHKZdZNt.js +112 -0
- package/product-web/assets/index-CHKZdZNt.js.map +1 -0
- package/product-web/assets/langs/{php-DY2VakOf.js → php-9bx0az3O.js} +2 -2
- package/product-web/assets/langs/{php-DY2VakOf.js.map → php-9bx0az3O.js.map} +1 -1
- package/product-web/assets/langs/{ruby-hwtoiFmS.js → ruby-HDLHRjSL.js} +2 -2
- package/product-web/assets/langs/{ruby-hwtoiFmS.js.map → ruby-HDLHRjSL.js.map} +1 -1
- package/product-web/assets/{vendor-CldRVjca.js → vendor-CeMKrCZm.js} +36 -35
- package/product-web/assets/vendor-CeMKrCZm.js.map +1 -0
- package/product-web/boot.json +20 -1
- package/product-web/index.html +3 -3
- package/product-web/plugins/@xrkseek/client-locale/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-modules/client.js +83 -12
- package/product-web/plugins/@xrkseek/client-runtime/client.js +5 -37
- package/product-web/plugins/@xrkseek/client-ui-agent-preset/client.js +63 -80
- package/product-web/plugins/@xrkseek/client-ui-attachment/client.js +782 -0
- package/product-web/plugins/@xrkseek/client-ui-commands/client.js +8 -8
- package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +933 -505
- package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +6 -6
- package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +28 -28
- package/product-web/plugins/@xrkseek/client-ui-goal/client.js +8 -8
- package/product-web/plugins/@xrkseek/client-ui-input-trigger/client.js +82 -26
- 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 +5 -5
- package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +17 -17
- package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-plan/client.js +1 -1
- package/product-web/plugins/@xrkseek/client-ui-reference/client.js +148 -0
- package/product-web/plugins/@xrkseek/client-ui-settings-general/client.js +12 -12
- package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +62 -62
- package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +12 -12
- package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +38 -38
- 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 +289 -157
- package/product-web/plugins/@xrkseek/client-ui-theme/client.js +2 -2
- package/product-web/plugins/@xrkseek/client-ui-tool/client.js +41 -41
- package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +149 -170
- package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +28 -28
- package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +14 -14
- package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +52 -52
- package/product-web/plugins/@xrkseek/xrk-api-remotes/client.js +20 -1
- package/product-web/assets/index-CcF0Sxxg.js +0 -297
- package/product-web/assets/index-CcF0Sxxg.js.map +0 -1
- package/product-web/assets/vendor-CldRVjca.js.map +0 -1
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* XRK 钱包底层:持久化 + 可选 Face bridge → DSH 契约外形。
|
|
3
|
+
*/
|
|
4
|
+
import { randomUUID } from "node:crypto";
|
|
5
|
+
import { honestReady } from "../honest-envelope.js";
|
|
6
|
+
import { tag } from "../meta.js";
|
|
7
|
+
import { createXrkDocStore } from "./doc-store.js";
|
|
8
|
+
const EMPTY = {
|
|
9
|
+
threshold: null,
|
|
10
|
+
pricingWindows: [],
|
|
11
|
+
accounts: [],
|
|
12
|
+
};
|
|
13
|
+
const WALLET_STORE = createXrkDocStore(["wallet", "state.json"], EMPTY);
|
|
14
|
+
function loadState(xrkHome) {
|
|
15
|
+
const data = WALLET_STORE.read(xrkHome).data;
|
|
16
|
+
return {
|
|
17
|
+
threshold: data.threshold ?? null,
|
|
18
|
+
pricingWindows: Array.isArray(data.pricingWindows) ? data.pricingWindows : [],
|
|
19
|
+
accounts: Array.isArray(data.accounts) ? data.accounts : [],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function defaultThreshold(state) {
|
|
23
|
+
return typeof state.threshold === "number" ? state.threshold : 5;
|
|
24
|
+
}
|
|
25
|
+
function splitCostBreakdown(costCny, input, output, cacheRead) {
|
|
26
|
+
const total = input + output + cacheRead;
|
|
27
|
+
if (total <= 0 || costCny <= 0) {
|
|
28
|
+
return { input: 0, output: 0, cacheRead: 0 };
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
input: (costCny * input) / total,
|
|
32
|
+
output: (costCny * output) / total,
|
|
33
|
+
cacheRead: (costCny * cacheRead) / total,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function createXrkWalletPort(options) {
|
|
37
|
+
const { xrkHome, face } = options;
|
|
38
|
+
return {
|
|
39
|
+
async getBalanceView() {
|
|
40
|
+
const state = loadState(xrkHome);
|
|
41
|
+
const manual = state.accounts.filter((a) => typeof a.balance === "number");
|
|
42
|
+
if (manual.length > 0) {
|
|
43
|
+
const currency = manual[0]?.currency ?? "CNY";
|
|
44
|
+
const total = manual.reduce((sum, row) => sum + (row.balance ?? 0), 0);
|
|
45
|
+
return {
|
|
46
|
+
available: true,
|
|
47
|
+
currency,
|
|
48
|
+
total,
|
|
49
|
+
balances: manual.map((row) => ({
|
|
50
|
+
currency: row.currency,
|
|
51
|
+
total: row.balance ?? 0,
|
|
52
|
+
})),
|
|
53
|
+
low: total < 10 ? [{ currency, total }] : [],
|
|
54
|
+
...honestReady(),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
return tag({
|
|
58
|
+
available: false,
|
|
59
|
+
error: "DeepSeek platform balance is not embedded on XRK; add manual accounts or configure cost-meter.",
|
|
60
|
+
balances: [],
|
|
61
|
+
low: [],
|
|
62
|
+
...honestReady(),
|
|
63
|
+
}, ["wallet-host"]);
|
|
64
|
+
},
|
|
65
|
+
async getCostView(sessionId) {
|
|
66
|
+
const state = loadState(xrkHome);
|
|
67
|
+
const threshold = defaultThreshold(state);
|
|
68
|
+
const fromFace = face ? await face.getSessionCost(sessionId) : null;
|
|
69
|
+
if (fromFace) {
|
|
70
|
+
return {
|
|
71
|
+
ok: true,
|
|
72
|
+
cost: fromFace.costCny,
|
|
73
|
+
costThreshold: threshold,
|
|
74
|
+
uncachedInputTokens: fromFace.uncachedInputTokens,
|
|
75
|
+
outputTokens: fromFace.outputTokens,
|
|
76
|
+
cacheReadTokens: fromFace.cacheReadTokens,
|
|
77
|
+
breakdown: fromFace.breakdownCny,
|
|
78
|
+
band: "base",
|
|
79
|
+
...(sessionId ? { sessionId } : {}),
|
|
80
|
+
...honestReady(),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
return tag({
|
|
84
|
+
ok: true,
|
|
85
|
+
cost: 0,
|
|
86
|
+
costThreshold: threshold,
|
|
87
|
+
uncachedInputTokens: 0,
|
|
88
|
+
outputTokens: 0,
|
|
89
|
+
cacheReadTokens: 0,
|
|
90
|
+
breakdown: { input: 0, output: 0, cacheRead: 0 },
|
|
91
|
+
band: "base",
|
|
92
|
+
...(sessionId ? { sessionId } : {}),
|
|
93
|
+
note: "No cost-meter session row yet; usage records as turns complete.",
|
|
94
|
+
...honestReady(),
|
|
95
|
+
}, ["wallet-host"]);
|
|
96
|
+
},
|
|
97
|
+
async getUsageView() {
|
|
98
|
+
const timeline = face
|
|
99
|
+
? await face.getUsageTimeline()
|
|
100
|
+
: {
|
|
101
|
+
today: { date: new Date().toISOString().slice(0, 10), cost: 0 },
|
|
102
|
+
days: [],
|
|
103
|
+
ready: false,
|
|
104
|
+
degraded: true,
|
|
105
|
+
};
|
|
106
|
+
return tag({
|
|
107
|
+
ok: true,
|
|
108
|
+
ready: timeline.ready,
|
|
109
|
+
degraded: timeline.degraded,
|
|
110
|
+
today: timeline.today,
|
|
111
|
+
days: timeline.days,
|
|
112
|
+
...honestReady(),
|
|
113
|
+
}, timeline.degraded ? ["wallet-host"] : undefined);
|
|
114
|
+
},
|
|
115
|
+
async setCostThreshold(threshold) {
|
|
116
|
+
const saved = WALLET_STORE.patch(xrkHome, (current) => ({
|
|
117
|
+
...current,
|
|
118
|
+
threshold,
|
|
119
|
+
}));
|
|
120
|
+
return defaultThreshold(saved.data);
|
|
121
|
+
},
|
|
122
|
+
async getSnapshot() {
|
|
123
|
+
const doc = WALLET_STORE.read(xrkHome);
|
|
124
|
+
return {
|
|
125
|
+
ok: true,
|
|
126
|
+
threshold: doc.data.threshold,
|
|
127
|
+
pricingWindows: doc.data.pricingWindows,
|
|
128
|
+
accounts: doc.data.accounts,
|
|
129
|
+
revision: doc.revision,
|
|
130
|
+
adapter: "xrk-dsh-compat",
|
|
131
|
+
...honestReady(),
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
async listAccounts() {
|
|
135
|
+
return loadState(xrkHome).accounts;
|
|
136
|
+
},
|
|
137
|
+
async addAccount(input) {
|
|
138
|
+
const account = {
|
|
139
|
+
id: randomUUID(),
|
|
140
|
+
label: input.label ?? "account",
|
|
141
|
+
provider: input.provider ?? "manual",
|
|
142
|
+
balance: typeof input.balance === "number" ? input.balance : null,
|
|
143
|
+
currency: input.currency ?? "USD",
|
|
144
|
+
updatedAt: new Date().toISOString(),
|
|
145
|
+
};
|
|
146
|
+
WALLET_STORE.patch(xrkHome, (current) => ({
|
|
147
|
+
...current,
|
|
148
|
+
accounts: [...current.accounts, account],
|
|
149
|
+
}));
|
|
150
|
+
return account;
|
|
151
|
+
},
|
|
152
|
+
async updateAccount(id, patch) {
|
|
153
|
+
let updated;
|
|
154
|
+
WALLET_STORE.patch(xrkHome, (current) => ({
|
|
155
|
+
...current,
|
|
156
|
+
accounts: current.accounts.map((row) => {
|
|
157
|
+
if (row.id !== id)
|
|
158
|
+
return row;
|
|
159
|
+
const next = { ...row };
|
|
160
|
+
if (typeof patch.label === "string")
|
|
161
|
+
next.label = patch.label;
|
|
162
|
+
if (typeof patch.provider === "string")
|
|
163
|
+
next.provider = patch.provider;
|
|
164
|
+
if (typeof patch.balance === "number" || patch.balance === null) {
|
|
165
|
+
next.balance = patch.balance;
|
|
166
|
+
}
|
|
167
|
+
next.updatedAt = new Date().toISOString();
|
|
168
|
+
updated = next;
|
|
169
|
+
return next;
|
|
170
|
+
}),
|
|
171
|
+
}));
|
|
172
|
+
return updated;
|
|
173
|
+
},
|
|
174
|
+
async removeAccount(id) {
|
|
175
|
+
WALLET_STORE.patch(xrkHome, (current) => ({
|
|
176
|
+
...current,
|
|
177
|
+
accounts: current.accounts.filter((a) => a.id !== id),
|
|
178
|
+
}));
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
/** Map Face session totals into CNY breakdown for dsh-wallet. */
|
|
183
|
+
export function mapSessionCostToDsh(totals, exchangeRate) {
|
|
184
|
+
const costCny = totals.costUsd * exchangeRate;
|
|
185
|
+
return {
|
|
186
|
+
costCny,
|
|
187
|
+
breakdownCny: splitCostBreakdown(costCny, totals.uncachedInputTokens, totals.outputTokens, totals.cacheReadTokens),
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=wallet-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"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AAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;aACxE,CAAC,CAAC,CAAC;QACN,CAAC;KACF,CAAC;AACJ,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,mBAAmB,CACjC,MAKC,EACD,YAAoB;IAKpB,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,GAAG,YAAY,CAAC;IAC9C,OAAO;QACL,OAAO;QACP,YAAY,EAAE,kBAAkB,CAC9B,OAAO,EACP,MAAM,CAAC,mBAAmB,EAC1B,MAAM,CAAC,YAAY,EACnB,MAAM,CAAC,eAAe,CACvB;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-undo-savepoint — file-backed settings rollback via host-settings.json snapshots.
|
|
3
|
+
*/
|
|
4
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
5
|
+
export interface UndoSavepointOptions {
|
|
6
|
+
readonly xrkHome?: string;
|
|
7
|
+
readonly workspaceRoot?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function handleUndoHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options: UndoSavepointOptions): Promise<boolean>;
|
|
10
|
+
//# sourceMappingURL=undo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"undo.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/undo.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAgBjE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAkQD,wBAAsB,cAAc,CAClC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,OAAO,CAAC,CAyQlB"}
|
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, unlinkSync, } from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { sendJson } from "../http-json.js";
|
|
4
|
+
import { dataPath, writeJsonFile } from "./json-store.js";
|
|
5
|
+
import { recordRewindFromGit } from "./turn-rewind-workspace.js";
|
|
6
|
+
import { createXrkDocStore } from "./underlying/doc-store.js";
|
|
7
|
+
import { parseJsonBody } from "./underlying/http-kit.js";
|
|
8
|
+
const DEFAULT_SETTINGS = {
|
|
9
|
+
auto: true,
|
|
10
|
+
debounce: 5000,
|
|
11
|
+
keepAuto: 20,
|
|
12
|
+
keepPre: 5,
|
|
13
|
+
autoCleanup: true,
|
|
14
|
+
keep: 20,
|
|
15
|
+
manualDir: "",
|
|
16
|
+
autoDir: "",
|
|
17
|
+
sensitive: "redact",
|
|
18
|
+
autoEnabled: true,
|
|
19
|
+
watchDebounceMs: 5000,
|
|
20
|
+
};
|
|
21
|
+
const DEFAULT_RUNTIME = {
|
|
22
|
+
undoStack: [],
|
|
23
|
+
undoIndex: -1,
|
|
24
|
+
safeModeActive: false,
|
|
25
|
+
lastGoodSnapshotId: null,
|
|
26
|
+
bootAlert: false,
|
|
27
|
+
lastExportPath: null,
|
|
28
|
+
};
|
|
29
|
+
const UNDO_SETTINGS_STORE = createXrkDocStore(["undo-savepoint", "settings.json"], { ...DEFAULT_SETTINGS });
|
|
30
|
+
const UNDO_INDEX_STORE = createXrkDocStore(["undo-savepoint", "snapshots.json"], []);
|
|
31
|
+
const UNDO_RUNTIME_STORE = createXrkDocStore(["undo-savepoint", "runtime.json"], { ...DEFAULT_RUNTIME });
|
|
32
|
+
function undoRoot(options) {
|
|
33
|
+
return dataPath(options.xrkHome, "undo-savepoint");
|
|
34
|
+
}
|
|
35
|
+
function exportDir(options) {
|
|
36
|
+
const dir = path.join(undoRoot(options), "exports");
|
|
37
|
+
if (!existsSync(dir))
|
|
38
|
+
mkdirSync(dir, { recursive: true });
|
|
39
|
+
return dir;
|
|
40
|
+
}
|
|
41
|
+
function snapshotsDir(options) {
|
|
42
|
+
const dir = path.join(undoRoot(options), "data");
|
|
43
|
+
if (!existsSync(dir))
|
|
44
|
+
mkdirSync(dir, { recursive: true });
|
|
45
|
+
return dir;
|
|
46
|
+
}
|
|
47
|
+
function loadSettings(options) {
|
|
48
|
+
return { ...DEFAULT_SETTINGS, ...UNDO_SETTINGS_STORE.read(options.xrkHome).data };
|
|
49
|
+
}
|
|
50
|
+
function saveSettings(options, s) {
|
|
51
|
+
return UNDO_SETTINGS_STORE.write(options.xrkHome, s).revision;
|
|
52
|
+
}
|
|
53
|
+
function loadIndex(options) {
|
|
54
|
+
const rows = UNDO_INDEX_STORE.read(options.xrkHome).data;
|
|
55
|
+
return Array.isArray(rows) ? rows : [];
|
|
56
|
+
}
|
|
57
|
+
function saveIndex(options, rows) {
|
|
58
|
+
return UNDO_INDEX_STORE.write(options.xrkHome, rows).revision;
|
|
59
|
+
}
|
|
60
|
+
function loadRuntime(options) {
|
|
61
|
+
return { ...DEFAULT_RUNTIME, ...UNDO_RUNTIME_STORE.read(options.xrkHome).data };
|
|
62
|
+
}
|
|
63
|
+
function saveRuntime(options, state) {
|
|
64
|
+
return UNDO_RUNTIME_STORE.write(options.xrkHome, state).revision;
|
|
65
|
+
}
|
|
66
|
+
function hostSettingsPath(options) {
|
|
67
|
+
return path.join(dataPath(options.xrkHome), "host-settings.json");
|
|
68
|
+
}
|
|
69
|
+
function snapshotFile(options, id) {
|
|
70
|
+
return path.join(snapshotsDir(options), `${id}.json`);
|
|
71
|
+
}
|
|
72
|
+
function readJsonOrEmpty(file) {
|
|
73
|
+
try {
|
|
74
|
+
if (!existsSync(file))
|
|
75
|
+
return {};
|
|
76
|
+
return JSON.parse(readFileSync(file, "utf8"));
|
|
77
|
+
}
|
|
78
|
+
catch {
|
|
79
|
+
return {};
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function hostSettingsSource(options) {
|
|
83
|
+
const candidate = hostSettingsPath(options);
|
|
84
|
+
return existsSync(candidate) ? candidate : null;
|
|
85
|
+
}
|
|
86
|
+
function createSnapshot(options, type, extra = {}) {
|
|
87
|
+
const id = `snap-${Date.now()}`;
|
|
88
|
+
const row = {
|
|
89
|
+
id,
|
|
90
|
+
time: new Date().toISOString(),
|
|
91
|
+
type,
|
|
92
|
+
location: type === "manual" ? "manual" : "auto",
|
|
93
|
+
profile: "xrk",
|
|
94
|
+
...extra,
|
|
95
|
+
};
|
|
96
|
+
const src = hostSettingsSource(options);
|
|
97
|
+
if (src) {
|
|
98
|
+
try {
|
|
99
|
+
copyFileSync(src, snapshotFile(options, id));
|
|
100
|
+
}
|
|
101
|
+
catch {
|
|
102
|
+
/* metadata still listed */
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const rows = [row, ...loadIndex(options)];
|
|
106
|
+
saveIndex(options, rows);
|
|
107
|
+
const runtime = loadRuntime(options);
|
|
108
|
+
runtime.lastGoodSnapshotId = id;
|
|
109
|
+
saveRuntime(options, runtime);
|
|
110
|
+
return row;
|
|
111
|
+
}
|
|
112
|
+
function restoreFromSnapshot(options, id, pushHistory = true) {
|
|
113
|
+
const file = snapshotFile(options, id);
|
|
114
|
+
if (!existsSync(file)) {
|
|
115
|
+
return { ok: false, error: { message: `snapshot not found: ${id}` } };
|
|
116
|
+
}
|
|
117
|
+
const dest = hostSettingsPath(options);
|
|
118
|
+
const current = readJsonOrEmpty(existsSync(dest) ? dest : "");
|
|
119
|
+
const target = readJsonOrEmpty(file);
|
|
120
|
+
const unchanged = JSON.stringify(current) === JSON.stringify(target);
|
|
121
|
+
if (!unchanged) {
|
|
122
|
+
mkdirSync(path.dirname(dest), { recursive: true });
|
|
123
|
+
copyFileSync(file, dest);
|
|
124
|
+
}
|
|
125
|
+
if (pushHistory) {
|
|
126
|
+
const runtime = loadRuntime(options);
|
|
127
|
+
const stack = runtime.undoStack.slice(0, runtime.undoIndex + 1);
|
|
128
|
+
stack.push(id);
|
|
129
|
+
saveRuntime(options, {
|
|
130
|
+
...runtime,
|
|
131
|
+
undoStack: stack,
|
|
132
|
+
undoIndex: stack.length - 1,
|
|
133
|
+
lastGoodSnapshotId: id,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return { ok: true, ...(unchanged ? { unchanged: true } : {}) };
|
|
137
|
+
}
|
|
138
|
+
function computeDiff(options, id) {
|
|
139
|
+
const file = snapshotFile(options, id);
|
|
140
|
+
const dest = hostSettingsPath(options);
|
|
141
|
+
if (!existsSync(file))
|
|
142
|
+
return [];
|
|
143
|
+
const a = JSON.stringify(readJsonOrEmpty(file), null, 2).split("\n");
|
|
144
|
+
const b = JSON.stringify(readJsonOrEmpty(existsSync(dest) ? dest : ""), null, 2).split("\n");
|
|
145
|
+
const added = Math.max(0, a.length - b.length);
|
|
146
|
+
const removed = Math.max(0, b.length - a.length);
|
|
147
|
+
return [{ name: "host-settings.json", added, removed }];
|
|
148
|
+
}
|
|
149
|
+
function pruneSnapshots(options) {
|
|
150
|
+
const settings = loadSettings(options);
|
|
151
|
+
const rows = loadIndex(options);
|
|
152
|
+
const autoKeep = settings.keepAuto ?? DEFAULT_SETTINGS.keepAuto;
|
|
153
|
+
const preKeep = settings.keepPre ?? DEFAULT_SETTINGS.keepPre;
|
|
154
|
+
let removedAuto = 0;
|
|
155
|
+
let removedPre = 0;
|
|
156
|
+
const kept = [];
|
|
157
|
+
const auto = [];
|
|
158
|
+
const pre = [];
|
|
159
|
+
for (const row of rows) {
|
|
160
|
+
if (row.type === "manual" || row.type === "baseline") {
|
|
161
|
+
kept.push(row);
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
if (row.type === "pre-restore")
|
|
165
|
+
pre.push(row);
|
|
166
|
+
else
|
|
167
|
+
auto.push(row);
|
|
168
|
+
}
|
|
169
|
+
const drop = (list, limit, counter) => {
|
|
170
|
+
while (list.length > limit) {
|
|
171
|
+
const victim = list.pop();
|
|
172
|
+
if (!victim)
|
|
173
|
+
break;
|
|
174
|
+
try {
|
|
175
|
+
unlinkSync(snapshotFile(options, victim.id));
|
|
176
|
+
}
|
|
177
|
+
catch {
|
|
178
|
+
/* ignore */
|
|
179
|
+
}
|
|
180
|
+
if (counter === "auto")
|
|
181
|
+
removedAuto += 1;
|
|
182
|
+
else
|
|
183
|
+
removedPre += 1;
|
|
184
|
+
}
|
|
185
|
+
return list;
|
|
186
|
+
};
|
|
187
|
+
if (settings.autoCleanup) {
|
|
188
|
+
drop(auto, autoKeep, "auto");
|
|
189
|
+
drop(pre, preKeep, "pre");
|
|
190
|
+
}
|
|
191
|
+
saveIndex(options, [...kept, ...pre, ...auto]);
|
|
192
|
+
return { removedAuto, removedPre };
|
|
193
|
+
}
|
|
194
|
+
export async function handleUndoHttp(req, res, pathname, options) {
|
|
195
|
+
if (!pathname.startsWith("/api/undo"))
|
|
196
|
+
return false;
|
|
197
|
+
const method = (req.method ?? "GET").toUpperCase();
|
|
198
|
+
if (pathname === "/api/undo/settings") {
|
|
199
|
+
if (method === "GET" || method === "HEAD") {
|
|
200
|
+
sendJson(res, 200, { ok: true, settings: loadSettings(options) });
|
|
201
|
+
return true;
|
|
202
|
+
}
|
|
203
|
+
if (method === "POST" || method === "PUT") {
|
|
204
|
+
const body = await parseJsonBody(req);
|
|
205
|
+
const next = { ...loadSettings(options), ...body };
|
|
206
|
+
saveSettings(options, next);
|
|
207
|
+
sendJson(res, 200, { ok: true, settings: next });
|
|
208
|
+
return true;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
if (pathname === "/api/undo/status") {
|
|
212
|
+
const rows = loadIndex(options);
|
|
213
|
+
const runtime = loadRuntime(options);
|
|
214
|
+
sendJson(res, 200, {
|
|
215
|
+
ok: true,
|
|
216
|
+
total: rows.length,
|
|
217
|
+
...(runtime.bootAlert
|
|
218
|
+
? {
|
|
219
|
+
bootAlert: true,
|
|
220
|
+
lastGoodSnapshotId: runtime.lastGoodSnapshotId,
|
|
221
|
+
}
|
|
222
|
+
: {}),
|
|
223
|
+
});
|
|
224
|
+
return true;
|
|
225
|
+
}
|
|
226
|
+
if (pathname === "/api/undo/list") {
|
|
227
|
+
sendJson(res, 200, { ok: true, snapshots: loadIndex(options) });
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
230
|
+
if (pathname === "/api/undo/snapshot" && method === "POST") {
|
|
231
|
+
const body = await parseJsonBody(req);
|
|
232
|
+
const reason = typeof body.reason === "string" ? body.reason : "manual:ui";
|
|
233
|
+
const row = createSnapshot(options, "manual", { reason });
|
|
234
|
+
const sessionId = typeof body.sessionId === "string" ? body.sessionId.trim() : "";
|
|
235
|
+
const messageSeq = typeof body.messageSeq === "number" ? body.messageSeq : 0;
|
|
236
|
+
const cwd = (typeof body.cwd === "string" && body.cwd.trim()
|
|
237
|
+
? body.cwd.trim()
|
|
238
|
+
: undefined) ?? options.workspaceRoot;
|
|
239
|
+
if (sessionId && messageSeq > 0 && cwd) {
|
|
240
|
+
recordRewindFromGit({
|
|
241
|
+
...(options.xrkHome ? { xrkHome: options.xrkHome } : {}),
|
|
242
|
+
sessionId,
|
|
243
|
+
messageSeq,
|
|
244
|
+
cwd,
|
|
245
|
+
checkpointId: row.id,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
sendJson(res, 200, { ok: true, id: row.id, snapshot: row });
|
|
249
|
+
return true;
|
|
250
|
+
}
|
|
251
|
+
if (pathname.startsWith("/api/undo/diff")) {
|
|
252
|
+
const url = new URL(req.url ?? "/", "http://127.0.0.1");
|
|
253
|
+
const id = url.searchParams.get("id") ?? "";
|
|
254
|
+
sendJson(res, 200, { ok: true, diff: computeDiff(options, id) });
|
|
255
|
+
return true;
|
|
256
|
+
}
|
|
257
|
+
if (pathname === "/api/undo/pick-dir" && method === "POST") {
|
|
258
|
+
const dir = exportDir(options);
|
|
259
|
+
sendJson(res, 200, { ok: true, path: dir });
|
|
260
|
+
return true;
|
|
261
|
+
}
|
|
262
|
+
if (pathname === "/api/undo/pick-file" && method === "POST") {
|
|
263
|
+
const runtime = loadRuntime(options);
|
|
264
|
+
const dir = exportDir(options);
|
|
265
|
+
const files = readdirSync(dir).filter((f) => f.endsWith(".json"));
|
|
266
|
+
const pick = runtime.lastExportPath && existsSync(runtime.lastExportPath)
|
|
267
|
+
? runtime.lastExportPath
|
|
268
|
+
: files.length > 0
|
|
269
|
+
? path.join(dir, files[files.length - 1])
|
|
270
|
+
: "";
|
|
271
|
+
if (!pick) {
|
|
272
|
+
sendJson(res, 200, { ok: false, error: { message: "no export bundle found" } });
|
|
273
|
+
return true;
|
|
274
|
+
}
|
|
275
|
+
sendJson(res, 200, { ok: true, path: pick });
|
|
276
|
+
return true;
|
|
277
|
+
}
|
|
278
|
+
if (pathname === "/api/undo/restore" && (method === "POST" || method === "PUT")) {
|
|
279
|
+
const body = await parseJsonBody(req);
|
|
280
|
+
const id = typeof body.id === "string" ? body.id : "";
|
|
281
|
+
createSnapshot(options, "pre-restore");
|
|
282
|
+
const result = restoreFromSnapshot(options, id, true);
|
|
283
|
+
if (!result.ok) {
|
|
284
|
+
sendJson(res, 200, { ok: false, error: result.error });
|
|
285
|
+
return true;
|
|
286
|
+
}
|
|
287
|
+
sendJson(res, 200, {
|
|
288
|
+
ok: true,
|
|
289
|
+
needsRestart: !result.unchanged,
|
|
290
|
+
message: result.unchanged ? "unchanged" : undefined,
|
|
291
|
+
});
|
|
292
|
+
return true;
|
|
293
|
+
}
|
|
294
|
+
if (pathname === "/api/undo/undo" && (method === "POST" || method === "PUT")) {
|
|
295
|
+
const runtime = loadRuntime(options);
|
|
296
|
+
if (runtime.undoIndex <= 0) {
|
|
297
|
+
sendJson(res, 200, { ok: false, error: { message: "nothing to undo" } });
|
|
298
|
+
return true;
|
|
299
|
+
}
|
|
300
|
+
const nextIndex = runtime.undoIndex - 1;
|
|
301
|
+
const targetId = runtime.undoStack[nextIndex] ?? "";
|
|
302
|
+
const result = restoreFromSnapshot(options, targetId, false);
|
|
303
|
+
if (!result.ok) {
|
|
304
|
+
sendJson(res, 200, { ok: false, error: result.error });
|
|
305
|
+
return true;
|
|
306
|
+
}
|
|
307
|
+
saveRuntime(options, { ...runtime, undoIndex: nextIndex });
|
|
308
|
+
sendJson(res, 200, {
|
|
309
|
+
ok: true,
|
|
310
|
+
targetId,
|
|
311
|
+
...(result.unchanged ? { unchanged: true } : {}),
|
|
312
|
+
});
|
|
313
|
+
return true;
|
|
314
|
+
}
|
|
315
|
+
if (pathname === "/api/undo/redo" && (method === "POST" || method === "PUT")) {
|
|
316
|
+
const runtime = loadRuntime(options);
|
|
317
|
+
if (runtime.undoIndex >= runtime.undoStack.length - 1) {
|
|
318
|
+
sendJson(res, 200, { ok: false, error: { message: "nothing to redo" } });
|
|
319
|
+
return true;
|
|
320
|
+
}
|
|
321
|
+
const nextIndex = runtime.undoIndex + 1;
|
|
322
|
+
const targetId = runtime.undoStack[nextIndex] ?? "";
|
|
323
|
+
const result = restoreFromSnapshot(options, targetId, false);
|
|
324
|
+
if (!result.ok) {
|
|
325
|
+
sendJson(res, 200, { ok: false, error: result.error });
|
|
326
|
+
return true;
|
|
327
|
+
}
|
|
328
|
+
saveRuntime(options, { ...runtime, undoIndex: nextIndex });
|
|
329
|
+
sendJson(res, 200, {
|
|
330
|
+
ok: true,
|
|
331
|
+
targetId,
|
|
332
|
+
...(result.unchanged ? { unchanged: true } : {}),
|
|
333
|
+
});
|
|
334
|
+
return true;
|
|
335
|
+
}
|
|
336
|
+
if (pathname === "/api/undo/remove" && (method === "POST" || method === "PUT")) {
|
|
337
|
+
const body = await parseJsonBody(req);
|
|
338
|
+
const id = typeof body.id === "string" ? body.id : "";
|
|
339
|
+
const rows = loadIndex(options).filter((r) => r.id !== id);
|
|
340
|
+
saveIndex(options, rows);
|
|
341
|
+
try {
|
|
342
|
+
unlinkSync(snapshotFile(options, id));
|
|
343
|
+
}
|
|
344
|
+
catch {
|
|
345
|
+
/* ignore */
|
|
346
|
+
}
|
|
347
|
+
sendJson(res, 200, { ok: true });
|
|
348
|
+
return true;
|
|
349
|
+
}
|
|
350
|
+
if (pathname === "/api/undo/prune" && (method === "POST" || method === "PUT")) {
|
|
351
|
+
const counts = pruneSnapshots(options);
|
|
352
|
+
sendJson(res, 200, { ok: true, ...counts });
|
|
353
|
+
return true;
|
|
354
|
+
}
|
|
355
|
+
if (pathname === "/api/undo/export" && (method === "POST" || method === "PUT")) {
|
|
356
|
+
const rows = loadIndex(options);
|
|
357
|
+
const bundle = {
|
|
358
|
+
version: 1,
|
|
359
|
+
exportedAt: new Date().toISOString(),
|
|
360
|
+
snapshots: rows,
|
|
361
|
+
};
|
|
362
|
+
const file = path.join(exportDir(options), `export-${Date.now()}.json`);
|
|
363
|
+
writeJsonFile(file, bundle);
|
|
364
|
+
const runtime = loadRuntime(options);
|
|
365
|
+
saveRuntime(options, { ...runtime, lastExportPath: file });
|
|
366
|
+
const settings = loadSettings(options);
|
|
367
|
+
sendJson(res, 200, {
|
|
368
|
+
ok: true,
|
|
369
|
+
count: rows.length,
|
|
370
|
+
path: file,
|
|
371
|
+
...(settings.sensitive === "warn"
|
|
372
|
+
? { sensitiveWarning: true }
|
|
373
|
+
: {}),
|
|
374
|
+
});
|
|
375
|
+
return true;
|
|
376
|
+
}
|
|
377
|
+
if (pathname === "/api/undo/import" && (method === "POST" || method === "PUT")) {
|
|
378
|
+
const body = await parseJsonBody(req);
|
|
379
|
+
const importPath = typeof body.path === "string" ? body.path : "";
|
|
380
|
+
if (!importPath || !existsSync(importPath)) {
|
|
381
|
+
sendJson(res, 200, {
|
|
382
|
+
ok: false,
|
|
383
|
+
error: { message: "import path not found" },
|
|
384
|
+
});
|
|
385
|
+
return true;
|
|
386
|
+
}
|
|
387
|
+
let imported = 0;
|
|
388
|
+
let skipped = 0;
|
|
389
|
+
try {
|
|
390
|
+
const raw = JSON.parse(readFileSync(importPath, "utf8"));
|
|
391
|
+
const incoming = raw.snapshots ?? [];
|
|
392
|
+
const existing = new Set(loadIndex(options).map((r) => r.id));
|
|
393
|
+
const merged = [...loadIndex(options)];
|
|
394
|
+
for (const row of incoming) {
|
|
395
|
+
if (!row?.id || existing.has(row.id)) {
|
|
396
|
+
skipped += 1;
|
|
397
|
+
continue;
|
|
398
|
+
}
|
|
399
|
+
merged.push(row);
|
|
400
|
+
existing.add(row.id);
|
|
401
|
+
imported += 1;
|
|
402
|
+
}
|
|
403
|
+
saveIndex(options, merged);
|
|
404
|
+
}
|
|
405
|
+
catch {
|
|
406
|
+
sendJson(res, 200, { ok: false, error: { message: "invalid export bundle" } });
|
|
407
|
+
return true;
|
|
408
|
+
}
|
|
409
|
+
sendJson(res, 200, { ok: true, imported, skipped });
|
|
410
|
+
return true;
|
|
411
|
+
}
|
|
412
|
+
if (pathname === "/api/undo/safe-mode") {
|
|
413
|
+
const runtime = loadRuntime(options);
|
|
414
|
+
if (method === "POST" || method === "PUT") {
|
|
415
|
+
const body = await parseJsonBody(req);
|
|
416
|
+
const action = typeof body.action === "string" ? body.action : "status";
|
|
417
|
+
if (action === "on") {
|
|
418
|
+
saveRuntime(options, { ...runtime, safeModeActive: true });
|
|
419
|
+
sendJson(res, 200, { ok: true, active: true });
|
|
420
|
+
return true;
|
|
421
|
+
}
|
|
422
|
+
if (action === "off") {
|
|
423
|
+
saveRuntime(options, { ...runtime, safeModeActive: false });
|
|
424
|
+
sendJson(res, 200, { ok: true, active: false });
|
|
425
|
+
return true;
|
|
426
|
+
}
|
|
427
|
+
sendJson(res, 200, { ok: true, active: runtime.safeModeActive });
|
|
428
|
+
return true;
|
|
429
|
+
}
|
|
430
|
+
sendJson(res, 200, { ok: true, active: runtime.safeModeActive });
|
|
431
|
+
return true;
|
|
432
|
+
}
|
|
433
|
+
if (method === "POST" || method === "PUT")
|
|
434
|
+
await parseJsonBody(req);
|
|
435
|
+
sendJson(res, 200, { ok: false, path: pathname });
|
|
436
|
+
return true;
|
|
437
|
+
}
|
|
438
|
+
//# sourceMappingURL=undo.js.map
|