@xrkseek/harness-cli 0.0.11 → 0.1.1
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/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/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/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 +10 -1
- 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/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/dist/grammar.d.ts +33 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/grammar.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/grammar.js +43 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/grammar.js.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/types.d.ts +13 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/types.js +7 -0
- package/node_modules/@xrkseek/xrk-file-reference/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference/package.json +31 -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/dist/search.d.ts +52 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.js +258 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.js.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/package.json +29 -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/dist/config.d.ts +25 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/config.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/config.js +18 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/config.js.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/types.d.ts +70 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/types.js +11 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/uri.d.ts +40 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/uri.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/uri.js +81 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/uri.js.map +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/package.json +39 -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-connection/client.js +7 -164
- 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 +8 -56
- package/product-web/plugins/@xrkseek/client-ui-agent-preset/client.js +34 -34
- package/product-web/plugins/@xrkseek/client-ui-attachment/client.js +782 -0
- package/product-web/plugins/@xrkseek/client-ui-commands/client.js +7 -7
- package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +967 -563
- package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +27 -27
- package/product-web/plugins/@xrkseek/client-ui-goal/client.js +7 -7
- 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 +2 -2
- package/product-web/plugins/@xrkseek/client-ui-message-feedback/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +18 -18
- package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +2 -2
- 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 +13 -13
- package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +58 -58
- package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +10 -10
- package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +42 -42
- package/product-web/plugins/@xrkseek/client-ui-sidebar/client.js +13 -13
- 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 +1 -1
- package/product-web/plugins/@xrkseek/client-ui-tool/client.js +37 -37
- package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +147 -168
- package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +27 -27
- package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +16 -16
- package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +56 -56
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oDAAoD;AACpD,MAAM,MAAM,cAAc,GACtB,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,WAAW,CAAC;AAEhB;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oDAAoD;AACpD,MAAM,MAAM,cAAc,GACtB,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,WAAW,CAAC;AAEhB;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,MA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CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAGhE;AAED,2EAA2E;AAC3E,wBAAgB,aAAa,CAC3B,OAAO,EAAE,cAAc,GACtB,SAAS,kBAAkB,EAAE,CAO/B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,SAAS,cAAc,EAAE,GAC/B,cAAc,CAgBhB"}
|
|
@@ -35,7 +35,14 @@ export function isImageAttachmentRef(value) {
|
|
|
35
35
|
typeof o.height === "number" &&
|
|
36
36
|
Number.isFinite(o.height) &&
|
|
37
37
|
o.height >= 0 &&
|
|
38
|
-
(o.name === undefined || typeof o.name === "string")
|
|
38
|
+
(o.name === undefined || typeof o.name === "string") &&
|
|
39
|
+
(o.originalDimensions === undefined ||
|
|
40
|
+
(typeof o.originalDimensions === "object" &&
|
|
41
|
+
o.originalDimensions !== null &&
|
|
42
|
+
typeof o.originalDimensions.width ===
|
|
43
|
+
"number" &&
|
|
44
|
+
typeof o.originalDimensions.height ===
|
|
45
|
+
"number")));
|
|
39
46
|
}
|
|
40
47
|
export function isImageBlock(value) {
|
|
41
48
|
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA8CH,MAAM,WAAW,GAAG,IAAI,GAAG,CAAS;IAClC,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,WAAW;CACZ,CAAC,CAAC;AAEH,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO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AC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -10,7 +10,7 @@ import type { FaceSeqClock } from "./seq.js";
|
|
|
10
10
|
import type { FaceProjectionRegistry, FaceTitleController } from "./projections/index.js";
|
|
11
11
|
import type { FaceProcessPlugin, FaceWebPlugin } from "./plugin-inventory.js";
|
|
12
12
|
import type { SlashRecipesLoader } from "./slash.js";
|
|
13
|
-
import type { FaceCredentialVault, FaceHostPublicSettings, FaceMcpServerDraft, FaceSettingsNamespaces, FaceUiSettings } from "./settings-credentials.js";
|
|
13
|
+
import type { FaceCredentialVault, FaceCordisHostBridge, FaceHostPublicSettings, FaceMcpServerDraft, FaceSettingsNamespaces, FaceUiSettings } from "./settings-credentials.js";
|
|
14
14
|
import type { FaceApprovalBroker } from "./approvals.js";
|
|
15
15
|
import type { FaceQuestionBroker } from "./questions.js";
|
|
16
16
|
import type { FaceWorkspaceRegistry } from "./workspace-registry.js";
|
|
@@ -103,6 +103,8 @@ export interface FaceRuntime {
|
|
|
103
103
|
readonly uiSettings: FaceUiSettings;
|
|
104
104
|
/** Read-only host public snapshot (from host spawn). */
|
|
105
105
|
readonly hostPublic?: FaceHostPublicSettings;
|
|
106
|
+
/** On-demand Cordis `host.mjs` apply (Host wires after dsh-compat prewarm). */
|
|
107
|
+
readonly cordisHostBridge?: FaceCordisHostBridge;
|
|
106
108
|
/** In-memory credential overrides — never session-logged. */
|
|
107
109
|
readonly credentials: FaceCredentialVault;
|
|
108
110
|
/** Face settings namespaces (welcome notice, etc.). */
|
|
@@ -126,11 +128,12 @@ export interface FaceRuntime {
|
|
|
126
128
|
readonly questions: FaceQuestionBroker;
|
|
127
129
|
/** Drop cached agent when preset changes (host wires). May be async (compose dispose). */
|
|
128
130
|
invalidateAgent?(sessionId: string): void | Promise<void>;
|
|
129
|
-
/**
|
|
130
|
-
* When true, `/permission` refuses sandbox mode changes while PTY sessions
|
|
131
|
+
/** When true, `/permission` refuses sandbox mode changes while PTY sessions
|
|
131
132
|
* are open or spawning (CV DSH terminal-bash sandbox fence).
|
|
132
133
|
*/
|
|
133
134
|
hasPtyActivity?(): boolean;
|
|
135
|
+
/** Host persists `/auto-review` slash to dsh-compat HTTP store (~/.xrk). */
|
|
136
|
+
autoReviewSlashPersist?(args: string): void;
|
|
134
137
|
/** Publish store appends as mux session/event. */
|
|
135
138
|
watchSession(sessionId: string): void;
|
|
136
139
|
publishQueue(sessionId: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EACV,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,EACf,MAAM,2B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AS,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C;;;OAGG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,SAAS,CAAC;IACtD,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IACpE;;;OAGG;IACH,WAAW,CACT,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,MAAM,GACf,aAAa,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FaceRuntime } from "./context.js";
|
|
2
|
+
import type { FacePluginFiberPhase } from "./plugin-inventory.js";
|
|
3
|
+
/** Whether a `kind:cordis` process plugin is served via dsh-compat (not Cordis fiber). */
|
|
4
|
+
export declare function resolveCordisFiberState(runtime: Pick<FaceRuntime, "hostPublic" | "webPlugins">, pluginId: string): {
|
|
5
|
+
readonly enabled: boolean;
|
|
6
|
+
readonly fiberPhase: FacePluginFiberPhase;
|
|
7
|
+
};
|
|
8
|
+
export declare function isCordisBridgedForInvoke(runtime: Pick<FaceRuntime, "hostPublic" | "webPlugins">, pluginId: string, packageId: string): boolean;
|
|
9
|
+
//# sourceMappingURL=cordis-bridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cordis-bridge.d.ts","sourceRoot":"","sources":["../src/cordis-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAsBlE,0FAA0F;AAC1F,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,YAAY,CAAC,EACvD,QAAQ,EAAE,MAAM,GACf;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,oBAAoB,CAAA;CAAE,CAS1E;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,YAAY,CAAC,EACvD,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,OAAO,CAKT"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { readStagedClientCode } from "./handlers/staged-client-code.js";
|
|
2
|
+
function isCordisHostApplied(runtime, ...ids) {
|
|
3
|
+
const applied = new Set(runtime.hostPublic?.cordisHostApplied ?? []);
|
|
4
|
+
return ids.some((id) => id.trim() && applied.has(id.trim()));
|
|
5
|
+
}
|
|
6
|
+
function hasStagedCordisClient(runtime, ...ids) {
|
|
7
|
+
const pluginsDir = runtime.hostPublic?.pluginsDir;
|
|
8
|
+
if (!pluginsDir?.trim())
|
|
9
|
+
return false;
|
|
10
|
+
return ids.some((id) => {
|
|
11
|
+
const trimmed = id.trim();
|
|
12
|
+
return trimmed.length > 0 && readStagedClientCode(pluginsDir, trimmed).code.length > 0;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
/** Whether a `kind:cordis` process plugin is served via dsh-compat (not Cordis fiber). */
|
|
16
|
+
export function resolveCordisFiberState(runtime, pluginId) {
|
|
17
|
+
const id = pluginId.trim();
|
|
18
|
+
if (isCordisHostApplied(runtime, id) ||
|
|
19
|
+
hasStagedCordisClient(runtime, id)) {
|
|
20
|
+
return { enabled: true, fiberPhase: "active" };
|
|
21
|
+
}
|
|
22
|
+
return { enabled: false, fiberPhase: "failed" };
|
|
23
|
+
}
|
|
24
|
+
export function isCordisBridgedForInvoke(runtime, pluginId, packageId) {
|
|
25
|
+
const ids = [pluginId, packageId].filter((x) => x.trim());
|
|
26
|
+
return (isCordisHostApplied(runtime, ...ids) || hasStagedCordisClient(runtime, ...ids));
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=cordis-bridge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,EAAE,QAAQ,EAAE,CAAC;IACjD,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAuD,EACvD,QAAgB,EAChB,SAAiB;IAEjB,MAAM,GAAG,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1D,OAAO,CACL,mBAAmB,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,IAAI,qBAAqB,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,CAC/E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface DeepSeekBalanceSnapshot {
|
|
2
|
+
readonly status: "ok" | "err" | "off";
|
|
3
|
+
readonly message: string;
|
|
4
|
+
readonly fetchedAt: number;
|
|
5
|
+
readonly currency: string;
|
|
6
|
+
readonly totalBalance: number;
|
|
7
|
+
readonly grantedBalance: number;
|
|
8
|
+
readonly toppedUpBalance: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function emptyDeepSeekBalance(status?: DeepSeekBalanceSnapshot["status"], message?: string): DeepSeekBalanceSnapshot;
|
|
11
|
+
/** Pick balance_infos entry (dsh-cost-meter #24/#25 — CNY-first when multiple currencies). */
|
|
12
|
+
export declare function pickBalanceInfo(infos: unknown): Record<string, unknown> | undefined;
|
|
13
|
+
/** Official balance endpoint — only `api.deepseek.com` (same guard as dsh-cost-meter). */
|
|
14
|
+
export declare function deepSeekBalanceEndpoint(baseURL: string): string | null;
|
|
15
|
+
export declare function queryDeepSeekBalance(xrkHome: string): Promise<DeepSeekBalanceSnapshot>;
|
|
16
|
+
//# sourceMappingURL=cost-meter-balance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost-meter-balance.d.ts","sourceRoot":"","sources":["../src/cost-meter-balance.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,MAAM,EAAE,IAAI,GAAG,KAAK,GAAG,KAAK,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,oBAAoB,CAClC,MAAM,GAAE,uBAAuB,CAAC,QAAQ,CAAS,EACjD,OAAO,SAAK,GACX,uBAAuB,CAUzB;AAED,8FAA8F;AAC9F,wBAAgB,eAAe,CAC7B,KAAK,EAAE,OAAO,GACb,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAarC;AAuDD,0FAA0F;AAC1F,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CActE;AAqBD,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CA6C5F"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DeepSeek official balance query — ported from MIT `dsh-cost-meter` host logic.
|
|
3
|
+
* Uses the same credential path as `llm-deepseek` (settings + `.credentials.yaml`).
|
|
4
|
+
*/
|
|
5
|
+
import { readFileSync } from "node:fs";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import yaml from "js-yaml";
|
|
8
|
+
export function emptyDeepSeekBalance(status = "off", message = "") {
|
|
9
|
+
return {
|
|
10
|
+
status,
|
|
11
|
+
message,
|
|
12
|
+
fetchedAt: 0,
|
|
13
|
+
currency: "",
|
|
14
|
+
totalBalance: 0,
|
|
15
|
+
grantedBalance: 0,
|
|
16
|
+
toppedUpBalance: 0,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/** Pick balance_infos entry (dsh-cost-meter #24/#25 — CNY-first when multiple currencies). */
|
|
20
|
+
export function pickBalanceInfo(infos) {
|
|
21
|
+
const list = Array.isArray(infos)
|
|
22
|
+
? infos.filter((entry) => entry !== null && typeof entry === "object")
|
|
23
|
+
: [];
|
|
24
|
+
const positive = list.filter((entry) => Number(entry.total_balance) > 0);
|
|
25
|
+
const cnyFirst = (entries) => entries.find((entry) => String(entry.currency).toUpperCase() === "CNY");
|
|
26
|
+
return cnyFirst(positive) ?? positive[0] ?? cnyFirst(list) ?? list[0];
|
|
27
|
+
}
|
|
28
|
+
function loadYamlRecord(file) {
|
|
29
|
+
try {
|
|
30
|
+
const raw = readFileSync(file, "utf8").replace(/^\uFEFF/, "");
|
|
31
|
+
const parsed = yaml.load(raw);
|
|
32
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
33
|
+
return parsed;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
/* absent */
|
|
38
|
+
}
|
|
39
|
+
return {};
|
|
40
|
+
}
|
|
41
|
+
function resolveDeepSeekApiKey(xrkHome) {
|
|
42
|
+
const settings = loadYamlRecord(path.join(xrkHome, "settings.yaml"));
|
|
43
|
+
const section = settings["llm-deepseek"] &&
|
|
44
|
+
typeof settings["llm-deepseek"] === "object" &&
|
|
45
|
+
!Array.isArray(settings["llm-deepseek"])
|
|
46
|
+
? settings["llm-deepseek"]
|
|
47
|
+
: {};
|
|
48
|
+
const apiKeyEnv = typeof section.apiKeyEnv === "string" && section.apiKeyEnv.length > 0
|
|
49
|
+
? section.apiKeyEnv
|
|
50
|
+
: "DEEPSEEK_API_KEY";
|
|
51
|
+
const credentials = loadYamlRecord(path.join(xrkHome, ".credentials.yaml"));
|
|
52
|
+
const fromFile = credentials[apiKeyEnv];
|
|
53
|
+
if (typeof fromFile === "string" && fromFile.trim()) {
|
|
54
|
+
return { apiKey: fromFile.trim(), apiKeyEnv };
|
|
55
|
+
}
|
|
56
|
+
const fromEnv = String(process.env[apiKeyEnv] ?? "").trim();
|
|
57
|
+
if (fromEnv)
|
|
58
|
+
return { apiKey: fromEnv, apiKeyEnv };
|
|
59
|
+
return { apiKey: null, apiKeyEnv };
|
|
60
|
+
}
|
|
61
|
+
function resolveDeepSeekBaseUrl(xrkHome) {
|
|
62
|
+
const settings = loadYamlRecord(path.join(xrkHome, "settings.yaml"));
|
|
63
|
+
const section = settings["llm-deepseek"] &&
|
|
64
|
+
typeof settings["llm-deepseek"] === "object" &&
|
|
65
|
+
!Array.isArray(settings["llm-deepseek"])
|
|
66
|
+
? settings["llm-deepseek"]
|
|
67
|
+
: {};
|
|
68
|
+
const fromSettings = typeof section.baseURL === "string" ? section.baseURL.trim() : "";
|
|
69
|
+
if (fromSettings)
|
|
70
|
+
return fromSettings;
|
|
71
|
+
return String(process.env.DEEPSEEK_BASE_URL ?? "").trim() || "https://api.deepseek.com";
|
|
72
|
+
}
|
|
73
|
+
/** Official balance endpoint — only `api.deepseek.com` (same guard as dsh-cost-meter). */
|
|
74
|
+
export function deepSeekBalanceEndpoint(baseURL) {
|
|
75
|
+
let base = String(baseURL ?? "")
|
|
76
|
+
.trim()
|
|
77
|
+
.replace(/\/+$/, "");
|
|
78
|
+
if (base.length === 0)
|
|
79
|
+
base = "https://api.deepseek.com";
|
|
80
|
+
if (/\/v\d+$/i.test(base))
|
|
81
|
+
base = base.replace(/\/v\d+$/i, "");
|
|
82
|
+
let host;
|
|
83
|
+
try {
|
|
84
|
+
host = new URL(base).host.toLowerCase();
|
|
85
|
+
}
|
|
86
|
+
catch {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
if (host !== "api.deepseek.com")
|
|
90
|
+
return null;
|
|
91
|
+
return `${base}/user/balance`;
|
|
92
|
+
}
|
|
93
|
+
async function fetchWithTimeout(url, init, timeoutMs) {
|
|
94
|
+
const controller = new AbortController();
|
|
95
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
96
|
+
try {
|
|
97
|
+
return await fetch(url, { ...init, signal: controller.signal });
|
|
98
|
+
}
|
|
99
|
+
finally {
|
|
100
|
+
clearTimeout(timer);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function num(value) {
|
|
104
|
+
const parsed = Number(value);
|
|
105
|
+
return Number.isFinite(parsed) ? parsed : 0;
|
|
106
|
+
}
|
|
107
|
+
export async function queryDeepSeekBalance(xrkHome) {
|
|
108
|
+
const { apiKey, apiKeyEnv } = resolveDeepSeekApiKey(xrkHome);
|
|
109
|
+
if (!apiKey) {
|
|
110
|
+
return emptyDeepSeekBalance("err", `API Key missing — configure ${apiKeyEnv} in Settings → Models or .credentials.yaml`);
|
|
111
|
+
}
|
|
112
|
+
const endpoint = deepSeekBalanceEndpoint(resolveDeepSeekBaseUrl(xrkHome));
|
|
113
|
+
if (!endpoint) {
|
|
114
|
+
return emptyDeepSeekBalance("err", "Balance endpoint must be api.deepseek.com (non-official baseURL rejected)");
|
|
115
|
+
}
|
|
116
|
+
try {
|
|
117
|
+
const response = await fetchWithTimeout(endpoint, { headers: { authorization: `Bearer ${apiKey}` } }, 15_000);
|
|
118
|
+
if (!response.ok) {
|
|
119
|
+
return emptyDeepSeekBalance("err", `Balance HTTP ${String(response.status)}`);
|
|
120
|
+
}
|
|
121
|
+
const data = (await response.json());
|
|
122
|
+
const info = pickBalanceInfo(data?.balance_infos);
|
|
123
|
+
if (!info) {
|
|
124
|
+
return emptyDeepSeekBalance("err", "balance_infos missing in response");
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
status: "ok",
|
|
128
|
+
message: "",
|
|
129
|
+
fetchedAt: Date.now(),
|
|
130
|
+
currency: typeof info.currency === "string" ? info.currency : "",
|
|
131
|
+
totalBalance: num(info.total_balance),
|
|
132
|
+
grantedBalance: num(info.granted_balance),
|
|
133
|
+
toppedUpBalance: num(info.topped_up_balance),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
catch (err) {
|
|
137
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
138
|
+
return emptyDeepSeekBalance("err", message);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=cost-meter-balance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost-meter-balance.js","sourceRoot":"","sources":["../src/cost-meter-balance.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,IAAI,MAAM,SAAS,CAAC;AAY3B,MAAM,UAAU,oBAAoB,CAClC,SAA4C,KAAK,EACjD,OAAO,GAAG,EAAE;IAEZ,OAAO;QACL,MAAM;QACN,OAAO;QACP,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,EAAE;QACZ,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,CAAC;QACjB,eAAe,EAAE,CAAC;KACnB,CAAC;AACJ,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,eAAe,CAC7B,KAAc;IAEd,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAC/B,CAAC,CAAC,KAAK,CAAC,MAAM,CACV,CAAC,KAAK,EAAoC,EAAE,CAC1C,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,CAC9C;QACH,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,CAAC,OAAoB,EAAE,EAAE,CACxC,OAAO,CAAC,IAAI,CACV,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM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EAAE,OAAO,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;YAChE,YAAY,EAAE,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC;YACrC,cAAc,EAAE,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC;YACzC,eAAe,EAAE,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC;SAC7C,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjE,OAAO,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CostMeterDay } from "./cost-meter-store.js";
|
|
2
|
+
export interface CodingPlanSnapshot {
|
|
3
|
+
readonly status: "ok" | "err" | "off" | "error";
|
|
4
|
+
readonly message: string;
|
|
5
|
+
readonly fetchedAt: number;
|
|
6
|
+
readonly windows: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
export declare function emptyCodingPlanSnapshot(status?: CodingPlanSnapshot["status"], message?: string): CodingPlanSnapshot;
|
|
9
|
+
export declare function resolveCodingPlanKey(xrkHome: string, provider: string, config: Record<string, unknown>): string | null;
|
|
10
|
+
export declare function codingPlanConfigOf(config: Record<string, unknown>, provider: string): Record<string, unknown>;
|
|
11
|
+
export declare function refreshCodingPlanProvider(xrkHome: string, config: Record<string, unknown>, history: readonly CostMeterDay[], provider: string): Promise<CodingPlanSnapshot>;
|
|
12
|
+
export declare function mergedCodingPlansState(config: Record<string, unknown>, cache: Record<string, CodingPlanSnapshot> | undefined): Record<string, unknown>;
|
|
13
|
+
//# sourceMappingURL=cost-meter-coding-plan-service.d.ts.map
|
|
@@ -0,0 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,EAAE,OAAO,CAAC,CAoBzB"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coding plan refresh orchestration for Face cost-meter (keys + SCNet local estimate).
|
|
3
|
+
*/
|
|
4
|
+
import { readFileSync } from "node:fs";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import yaml from "js-yaml";
|
|
7
|
+
import { CODING_PLAN_PROVIDER_IDS, CODING_PLAN_PROVIDERS, queryCodingPlan, scnetTokenPlanWindows, } from "./cost-meter-coding-plans.js";
|
|
8
|
+
export function emptyCodingPlanSnapshot(status = "off", message = "") {
|
|
9
|
+
return { status, message, fetchedAt: 0, windows: {} };
|
|
10
|
+
}
|
|
11
|
+
function loadYamlRecord(file) {
|
|
12
|
+
try {
|
|
13
|
+
const raw = readFileSync(file, "utf8").replace(/^\uFEFF/, "");
|
|
14
|
+
const parsed = yaml.load(raw);
|
|
15
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
16
|
+
return parsed;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
/* absent */
|
|
21
|
+
}
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
function findAnthropicOAuthToken() {
|
|
25
|
+
const home = process.env.USERPROFILE || process.env.HOME || "";
|
|
26
|
+
if (!home)
|
|
27
|
+
return null;
|
|
28
|
+
try {
|
|
29
|
+
const data = JSON.parse(readFileSync(path.join(home, ".claude", ".credentials.json"), "utf8"));
|
|
30
|
+
const token = data?.claudeAiOauth?.accessToken;
|
|
31
|
+
return typeof token === "string" && token.length > 0 ? token : null;
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function codingPlansRecord(config) {
|
|
38
|
+
const plans = config.codingPlans;
|
|
39
|
+
if (!plans || typeof plans !== "object" || Array.isArray(plans))
|
|
40
|
+
return {};
|
|
41
|
+
return plans;
|
|
42
|
+
}
|
|
43
|
+
export function resolveCodingPlanKey(xrkHome, provider, config) {
|
|
44
|
+
const plans = codingPlansRecord(config);
|
|
45
|
+
const row = plans[provider];
|
|
46
|
+
const section = row && typeof row === "object" && !Array.isArray(row)
|
|
47
|
+
? row
|
|
48
|
+
: {};
|
|
49
|
+
const explicit = String(section.apiKey ?? "").trim();
|
|
50
|
+
if (explicit)
|
|
51
|
+
return explicit;
|
|
52
|
+
const meta = CODING_PLAN_PROVIDERS[provider];
|
|
53
|
+
const credentials = loadYamlRecord(path.join(xrkHome, ".credentials.yaml"));
|
|
54
|
+
for (const name of meta?.credentialEnvs ?? []) {
|
|
55
|
+
const fromFile = credentials[name];
|
|
56
|
+
if (typeof fromFile === "string" && fromFile.trim())
|
|
57
|
+
return fromFile.trim();
|
|
58
|
+
const fromEnv = String(process.env[name] ?? "").trim();
|
|
59
|
+
if (fromEnv)
|
|
60
|
+
return fromEnv;
|
|
61
|
+
}
|
|
62
|
+
if (provider === "anthropic")
|
|
63
|
+
return findAnthropicOAuthToken();
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
export function codingPlanConfigOf(config, provider) {
|
|
67
|
+
const base = {
|
|
68
|
+
enabled: false,
|
|
69
|
+
display: "settings",
|
|
70
|
+
refreshMinutes: 15,
|
|
71
|
+
apiKey: "",
|
|
72
|
+
};
|
|
73
|
+
const plans = codingPlansRecord(config);
|
|
74
|
+
const row = plans[provider];
|
|
75
|
+
if (!row || typeof row !== "object" || Array.isArray(row))
|
|
76
|
+
return base;
|
|
77
|
+
return { ...base, ...row };
|
|
78
|
+
}
|
|
79
|
+
function ledgerDaysMap(history) {
|
|
80
|
+
const out = {};
|
|
81
|
+
for (const day of history)
|
|
82
|
+
out[day.date] = day;
|
|
83
|
+
return out;
|
|
84
|
+
}
|
|
85
|
+
function tmsg(_locale, code, vars = {}) {
|
|
86
|
+
const table = {
|
|
87
|
+
codingPlanUnknown: `unknown coding plan provider: ${vars.provider ?? ""}`,
|
|
88
|
+
codingPlanKeyMissing: `${vars.provider ?? "provider"} API key missing`,
|
|
89
|
+
codingPlanUnauthorized: `${vars.provider ?? "provider"} unauthorized (${vars.code ?? ""})`,
|
|
90
|
+
codingPlanHttp: `${vars.provider ?? "provider"} HTTP ${vars.code ?? ""} (${vars.url ?? ""})`,
|
|
91
|
+
codingPlanNoUsage: `${vars.provider ?? "provider"} usage unavailable`,
|
|
92
|
+
scnetPlanCreditsInvalid: "SCNet planCredits invalid",
|
|
93
|
+
};
|
|
94
|
+
return table[code] ?? code;
|
|
95
|
+
}
|
|
96
|
+
export async function refreshCodingPlanProvider(xrkHome, config, history, provider) {
|
|
97
|
+
if (!CODING_PLAN_PROVIDER_IDS.includes(provider)) {
|
|
98
|
+
return emptyCodingPlanSnapshot("err", `unknown provider: ${provider}`);
|
|
99
|
+
}
|
|
100
|
+
const planCfg = codingPlanConfigOf(config, provider);
|
|
101
|
+
if (planCfg.enabled !== true) {
|
|
102
|
+
return emptyCodingPlanSnapshot("off", "coding plan disabled");
|
|
103
|
+
}
|
|
104
|
+
if (planCfg.display === "off") {
|
|
105
|
+
return emptyCodingPlanSnapshot("off", "coding plan display is off");
|
|
106
|
+
}
|
|
107
|
+
if (provider === "scnet") {
|
|
108
|
+
const result = scnetTokenPlanWindows(ledgerDaysMap(history), planCfg, Date.now());
|
|
109
|
+
if (!result) {
|
|
110
|
+
return emptyCodingPlanSnapshot("off", tmsg("zh", "scnetPlanCreditsInvalid"));
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
status: "ok",
|
|
114
|
+
message: "",
|
|
115
|
+
fetchedAt: Date.now(),
|
|
116
|
+
windows: result.windows,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
const locale = typeof config.locale === "string" && config.locale.startsWith("en")
|
|
120
|
+
? "en"
|
|
121
|
+
: "zh";
|
|
122
|
+
const key = resolveCodingPlanKey(xrkHome, provider, config);
|
|
123
|
+
try {
|
|
124
|
+
const result = await queryCodingPlan(provider, key, locale, tmsg);
|
|
125
|
+
return {
|
|
126
|
+
status: "ok",
|
|
127
|
+
message: "",
|
|
128
|
+
fetchedAt: Date.now(),
|
|
129
|
+
windows: (result.windows ?? {}),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
catch (err) {
|
|
133
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
134
|
+
const soft = Boolean(err && typeof err === "object" && err.soft);
|
|
135
|
+
return emptyCodingPlanSnapshot(soft ? "off" : "error", message);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
export function mergedCodingPlansState(config, cache) {
|
|
139
|
+
const out = {};
|
|
140
|
+
for (const id of CODING_PLAN_PROVIDER_IDS) {
|
|
141
|
+
const cfg = codingPlanConfigOf(config, id);
|
|
142
|
+
const cached = cache?.[id] ?? emptyCodingPlanSnapshot();
|
|
143
|
+
out[id] = {
|
|
144
|
+
enabled: cfg.enabled === true,
|
|
145
|
+
display: typeof cfg.display === "string" ? cfg.display : "settings",
|
|
146
|
+
refreshMinutes: typeof cfg.refreshMinutes === "number" && cfg.refreshMinutes > 0
|
|
147
|
+
? cfg.refreshMinutes
|
|
148
|
+
: 15,
|
|
149
|
+
apiKey: typeof cfg.apiKey === "string" ? cfg.apiKey : "",
|
|
150
|
+
status: cached.status,
|
|
151
|
+
message: cached.message,
|
|
152
|
+
fetchedAt: cached.fetchedAt,
|
|
153
|
+
windows: cached.windows,
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
return out;
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=cost-meter-coding-plan-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost-meter-coding-plan-service.js","sourceRoot":"","sources":["../src/cost-meter-coding-plan-service.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,IAAI,MAAM,SAAS,CAAC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