@xrkseek/harness 0.6.23 → 0.7.0-rc.2
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/node_modules/@xrkseek/a2a/README.md +45 -45
- package/node_modules/@xrkseek/attachment/README.md +23 -23
- package/node_modules/@xrkseek/attachment-local/README.md +6 -6
- package/node_modules/@xrkseek/attachment-local/package.json +26 -26
- package/node_modules/@xrkseek/checkpoint/README.md +90 -90
- package/node_modules/@xrkseek/checkpoint/dist/process-git.d.ts +5 -0
- package/node_modules/@xrkseek/checkpoint/dist/process-git.d.ts.map +1 -1
- package/node_modules/@xrkseek/checkpoint/dist/process-git.js +59 -2
- package/node_modules/@xrkseek/checkpoint/dist/process-git.js.map +1 -1
- package/node_modules/@xrkseek/checkpoint/dist/store.d.ts +45 -0
- package/node_modules/@xrkseek/checkpoint/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/checkpoint/dist/store.js +221 -60
- package/node_modules/@xrkseek/checkpoint/dist/store.js.map +1 -1
- package/node_modules/@xrkseek/checkpoint/package.json +26 -26
- package/node_modules/@xrkseek/claude-code-mods/README.md +152 -0
- package/node_modules/@xrkseek/claude-code-mods/README.zh.md +172 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/api.d.ts +36 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/api.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/api.js +215 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/api.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/attach.d.ts +92 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/attach.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/attach.js +106 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/attach.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/chain.d.ts +105 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/chain.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/chain.js +324 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/chain.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/define-mod.d.ts +39 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/define-mod.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/define-mod.js +39 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/define-mod.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/elements.d.ts +96 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/elements.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/elements.js +171 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/elements.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/engine.d.ts +155 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/engine.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/engine.js +356 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/engine.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/host-ops.d.ts +72 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/host-ops.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/host-ops.js +603 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/host-ops.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/index.d.ts +112 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/index.js +654 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/matcher.d.ts +45 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/matcher.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/matcher.js +195 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/matcher.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/module.d.ts +74 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/module.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/module.js +167 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/module.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/native-import.d.ts +31 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/native-import.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/native-import.js +32 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/native-import.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/plugin-dir.d.ts +70 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/plugin-dir.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/plugin-dir.js +167 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/plugin-dir.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/product-agent.d.ts +57 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/product-agent.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/product-agent.js +85 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/product-agent.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/runtime.d.ts +117 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/runtime.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/runtime.js +252 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/runtime.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/storage-domain.d.ts +68 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/storage-domain.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/storage-domain.js +104 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/storage-domain.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/surfaces.d.ts +82 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/surfaces.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/surfaces.js +243 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/surfaces.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/testing.d.ts +157 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/testing.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/testing.js +266 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/testing.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/tool-names.d.ts +21 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/tool-names.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/tool-names.js +37 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/tool-names.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/types.d.ts +592 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/types.js +10 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/values.d.ts +58 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/values.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/values.js +75 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/values.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/working-directory.d.ts +45 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/working-directory.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/working-directory.js +29 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/working-directory.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/package.json +47 -0
- package/node_modules/@xrkseek/code-runtime/README.md +20 -20
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts +87 -0
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js +62 -32
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/package.json +42 -42
- package/node_modules/@xrkseek/core-session/README.md +35 -35
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts +46 -2
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.js +124 -49
- package/node_modules/@xrkseek/core-session/dist/compaction.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/freeze.d.ts +6 -0
- package/node_modules/@xrkseek/core-session/dist/freeze.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/freeze.js +9 -0
- package/node_modules/@xrkseek/core-session/dist/freeze.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.d.ts +20 -4
- package/node_modules/@xrkseek/core-session/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.js +55 -14
- package/node_modules/@xrkseek/core-session/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/list-hints.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/list-hints.js +14 -4
- package/node_modules/@xrkseek/core-session/dist/list-hints.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/repair-open-turn.d.ts +8 -1
- package/node_modules/@xrkseek/core-session/dist/repair-open-turn.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/repair-open-turn.js +14 -4
- package/node_modules/@xrkseek/core-session/dist/repair-open-turn.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts +55 -0
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js +670 -92
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/store.d.ts +38 -0
- package/node_modules/@xrkseek/core-session/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/surface-estimate.d.ts +6 -0
- package/node_modules/@xrkseek/core-session/dist/surface-estimate.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/surface-estimate.js +23 -0
- package/node_modules/@xrkseek/core-session/dist/surface-estimate.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/surface-fold.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/surface-fold.js +5 -7
- package/node_modules/@xrkseek/core-session/dist/surface-fold.js.map +1 -1
- package/node_modules/@xrkseek/core-session/package.json +34 -34
- package/node_modules/@xrkseek/core-system-prompt/README.md +14 -14
- package/node_modules/@xrkseek/core-tools/dist/session-query-prompt.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/session-query-prompt.js +3 -2
- package/node_modules/@xrkseek/core-tools/dist/session-query-prompt.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/std-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/std-tools.js +1 -13
- package/node_modules/@xrkseek/core-tools/dist/std-tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/README.md +14 -14
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js +402 -402
- package/node_modules/@xrkseek/exec-computer-use/package.json +26 -26
- package/node_modules/@xrkseek/exec-fs/README.md +12 -12
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts +7 -0
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js +33 -15
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.js +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/README.md +13 -13
- package/node_modules/@xrkseek/exec-image-gen/package.json +28 -28
- package/node_modules/@xrkseek/exec-memory/README.md +14 -14
- package/node_modules/@xrkseek/exec-memory/dist/live-fragment.d.ts +11 -0
- package/node_modules/@xrkseek/exec-memory/dist/live-fragment.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/live-fragment.js +40 -0
- package/node_modules/@xrkseek/exec-memory/dist/live-fragment.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/package.json +28 -28
- package/node_modules/@xrkseek/exec-sandbox/README.md +15 -15
- package/node_modules/@xrkseek/exec-ssh/README.md +19 -19
- package/node_modules/@xrkseek/exec-subprocess/README.md +10 -10
- package/node_modules/@xrkseek/exec-video-analyze/README.md +11 -11
- package/node_modules/@xrkseek/exec-video-analyze/package.json +26 -26
- package/node_modules/@xrkseek/exec-video-gen/README.md +26 -26
- package/node_modules/@xrkseek/exec-voice/README.md +25 -25
- package/node_modules/@xrkseek/exec-web/README.md +11 -11
- package/node_modules/@xrkseek/exec-web/dist/fetch-http.d.ts +8 -0
- package/node_modules/@xrkseek/exec-web/dist/fetch-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/fetch-http.js +5 -1
- package/node_modules/@xrkseek/exec-web/dist/fetch-http.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/format.js +1 -0
- package/node_modules/@xrkseek/exec-web/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.js +2 -2
- package/node_modules/@xrkseek/exec-web/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/search-duckduckgo.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/search-duckduckgo.js +15 -8
- package/node_modules/@xrkseek/exec-web/dist/search-duckduckgo.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/search-parallel-free.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/search-parallel-free.js +21 -13
- package/node_modules/@xrkseek/exec-web/dist/search-parallel-free.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/search-providers.d.ts +16 -3
- package/node_modules/@xrkseek/exec-web/dist/search-providers.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/search-providers.js +113 -7
- package/node_modules/@xrkseek/exec-web/dist/search-providers.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/tools.js +15 -2
- package/node_modules/@xrkseek/exec-web/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/types.d.ts +6 -0
- package/node_modules/@xrkseek/exec-web/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/README.md +22 -22
- package/node_modules/@xrkseek/llm-deepseek/package.json +30 -30
- package/node_modules/@xrkseek/llm-registry/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/llm-registry/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/index.js +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/models-dev-catalog.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/models-dev-catalog.js +13 -2
- package/node_modules/@xrkseek/llm-registry/dist/models-dev-catalog.js.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/registry.d.ts +6 -0
- package/node_modules/@xrkseek/llm-registry/dist/registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/registry.js +6 -0
- package/node_modules/@xrkseek/llm-registry/dist/registry.js.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/types.d.ts +29 -0
- package/node_modules/@xrkseek/llm-registry/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/types.js +21 -0
- package/node_modules/@xrkseek/llm-registry/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/mcp/README.md +78 -78
- package/node_modules/@xrkseek/policy/README.md +18 -18
- package/node_modules/@xrkseek/policy/package.json +31 -31
- package/node_modules/@xrkseek/preset-harness/README.md +7 -7
- package/node_modules/@xrkseek/preset-harness/dist/mods.d.ts +68 -0
- package/node_modules/@xrkseek/preset-harness/dist/mods.d.ts.map +1 -0
- package/node_modules/@xrkseek/preset-harness/dist/mods.js +510 -0
- package/node_modules/@xrkseek/preset-harness/dist/mods.js.map +1 -0
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +12 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +73 -26
- 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 +9 -8
- package/node_modules/@xrkseek/preset-minimal/README.md +6 -6
- package/node_modules/@xrkseek/preset-minimal/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js +9 -3
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-server/README.md +4 -4
- package/node_modules/@xrkseek/preset-server/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.js +2 -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/README.md +34 -34
- package/node_modules/@xrkseek/protocol/dist/content.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/content.js +6 -1
- package/node_modules/@xrkseek/protocol/dist/content.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.d.ts +3 -2
- package/node_modules/@xrkseek/protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.js +1 -0
- package/node_modules/@xrkseek/protocol/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts +12 -0
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.js +9 -0
- package/node_modules/@xrkseek/protocol/dist/json-schema.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-value.d.ts +25 -0
- package/node_modules/@xrkseek/protocol/dist/json-value.d.ts.map +1 -0
- package/node_modules/@xrkseek/protocol/dist/json-value.js +181 -0
- package/node_modules/@xrkseek/protocol/dist/json-value.js.map +1 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts +21 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.js +1 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.d.ts +4 -1
- package/node_modules/@xrkseek/protocol/dist/validate.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.js +28 -2
- package/node_modules/@xrkseek/protocol/dist/validate.js.map +1 -1
- package/node_modules/@xrkseek/schemastery/lib/index.cjs +597 -597
- package/node_modules/@xrkseek/schemastery/lib/index.mjs +597 -597
- package/node_modules/@xrkseek/schemastery/lib/types/index.d.ts +203 -203
- package/node_modules/@xrkseek/schemastery/src/index.d.ts +203 -203
- package/node_modules/@xrkseek/schemastery/src/index.ts +906 -906
- package/node_modules/@xrkseek/server-config/package.json +28 -28
- package/node_modules/@xrkseek/server-cron/README.md +12 -12
- package/node_modules/@xrkseek/server-cron/package.json +26 -26
- package/node_modules/@xrkseek/server-face/dist/adapt/history-paginate.d.ts +22 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/history-paginate.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/history-paginate.js +40 -3
- package/node_modules/@xrkseek/server-face/dist/adapt/history-paginate.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.js +2 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts +1 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js +2 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.d.ts +5 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.js +7 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-home-boundary.d.ts +31 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home-boundary.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home-boundary.js +71 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home-boundary.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home.d.ts +18 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home.js +64 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-roster-store.d.ts +41 -2
- package/node_modules/@xrkseek/server-face/dist/agent-roster-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-roster-store.js +200 -28
- package/node_modules/@xrkseek/server-face/dist/agent-roster-store.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-team-roles.js +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-team-roles.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/attach-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/attach-http.js +9 -0
- package/node_modules/@xrkseek/server-face/dist/attach-http.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/boss-status-broadcast.d.ts +55 -0
- package/node_modules/@xrkseek/server-face/dist/boss-status-broadcast.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/boss-status-broadcast.js +167 -0
- package/node_modules/@xrkseek/server-face/dist/boss-status-broadcast.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/collab-board.d.ts +12 -0
- package/node_modules/@xrkseek/server-face/dist/collab-board.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/collab-board.js +101 -19
- package/node_modules/@xrkseek/server-face/dist/collab-board.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/community-llm-sync.d.ts +2 -2
- package/node_modules/@xrkseek/server-face/dist/community-llm-sync.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/community-llm-sync.js +19 -7
- package/node_modules/@xrkseek/server-face/dist/community-llm-sync.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +29 -0
- package/node_modules/@xrkseek/server-face/dist/context.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/dispatch.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/dispatch.js +4 -1
- package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.js +2 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/fork-cut.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/fork-cut.js +15 -3
- package/node_modules/@xrkseek/server-face/dist/fork-cut.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/fork-lineage.d.ts +7 -0
- package/node_modules/@xrkseek/server-face/dist/fork-lineage.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/fork-lineage.js +23 -8
- package/node_modules/@xrkseek/server-face/dist/fork-lineage.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/band.d.ts +7 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/band.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/band.js +40 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/band.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/checkpoint.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/checkpoint.js +81 -3
- package/node_modules/@xrkseek/server-face/dist/handlers/checkpoint.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.js +20 -7
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js +236 -62
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/team.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/team.js +100 -9
- package/node_modules/@xrkseek/server-face/dist/handlers/team.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/host-open-in-app.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/host-open-in-app.js +9 -0
- package/node_modules/@xrkseek/server-face/dist/host-open-in-app.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/host-open-path.d.ts +8 -3
- package/node_modules/@xrkseek/server-face/dist/host-open-path.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/host-open-path.js +61 -19
- package/node_modules/@xrkseek/server-face/dist/host-open-path.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/host-pick-directory.d.ts +2 -1
- package/node_modules/@xrkseek/server-face/dist/host-pick-directory.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/host-pick-directory.js +12 -2
- package/node_modules/@xrkseek/server-face/dist/host-pick-directory.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +6 -2
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +6 -2
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/instruction-authority-fragment.d.ts +19 -0
- package/node_modules/@xrkseek/server-face/dist/instruction-authority-fragment.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/instruction-authority-fragment.js +28 -0
- package/node_modules/@xrkseek/server-face/dist/instruction-authority-fragment.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/log-cut-reset.d.ts +3 -0
- package/node_modules/@xrkseek/server-face/dist/log-cut-reset.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/log-cut-reset.js +22 -0
- package/node_modules/@xrkseek/server-face/dist/log-cut-reset.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/model-catalog.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/model-catalog.js +60 -5
- package/node_modules/@xrkseek/server-face/dist/model-catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts +2 -2
- 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 -2
- package/node_modules/@xrkseek/server-face/dist/projections/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.d.ts +50 -4
- package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.js +167 -19
- package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.d.ts +21 -1
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.js +21 -1
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-pressure.d.ts +8 -4
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-pressure.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-pressure.js +2 -7
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-pressure.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js +58 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js +85 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.js +14 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/title.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/title.js +14 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/title.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/turn-outline.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/turn-outline.js +24 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/turn-outline.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +11 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +118 -15
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/seat-identity.d.ts +26 -0
- package/node_modules/@xrkseek/server-face/dist/seat-identity.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/seat-identity.js +137 -0
- package/node_modules/@xrkseek/server-face/dist/seat-identity.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/seat-titles.d.ts +29 -0
- package/node_modules/@xrkseek/server-face/dist/seat-titles.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/seat-titles.js +74 -0
- package/node_modules/@xrkseek/server-face/dist/seat-titles.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-capability.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-capability.js +9 -6
- package/node_modules/@xrkseek/server-face/dist/session-capability.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-event-window.d.ts +37 -0
- package/node_modules/@xrkseek/server-face/dist/session-event-window.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-event-window.js +88 -0
- package/node_modules/@xrkseek/server-face/dist/session-event-window.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-identity-store.d.ts +20 -0
- package/node_modules/@xrkseek/server-face/dist/session-identity-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-identity-store.js +82 -0
- package/node_modules/@xrkseek/server-face/dist/session-identity-store.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-posture.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-posture.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-posture.js +20 -5
- package/node_modules/@xrkseek/server-face/dist/session-posture.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.d.ts +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.js +172 -25
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-search.d.ts +20 -2
- package/node_modules/@xrkseek/server-face/dist/session-search.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-search.js +125 -19
- package/node_modules/@xrkseek/server-face/dist/session-search.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts +6 -0
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.js +161 -21
- package/node_modules/@xrkseek/server-face/dist/session-status.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-thread-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-thread-tools.js +5 -0
- package/node_modules/@xrkseek/server-face/dist/session-thread-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-tool-copy.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-tool-copy.js +2 -1
- package/node_modules/@xrkseek/server-face/dist/session-tool-copy.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js +43 -3
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-document.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-document.js +4 -0
- package/node_modules/@xrkseek/server-face/dist/settings-document.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js +76 -11
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-documents.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-documents.js +14 -4
- package/node_modules/@xrkseek/server-face/dist/skill-documents.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.d.ts +4 -2
- package/node_modules/@xrkseek/server-face/dist/skill-list.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.js +10 -4
- package/node_modules/@xrkseek/server-face/dist/skill-list.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-read.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-read.js +9 -2
- package/node_modules/@xrkseek/server-face/dist/skill-read.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-source.d.ts +2 -1
- package/node_modules/@xrkseek/server-face/dist/skill-source.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-source.js +12 -2
- package/node_modules/@xrkseek/server-face/dist/skill-source.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/slash.d.ts +10 -1
- package/node_modules/@xrkseek/server-face/dist/slash.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/slash.js +118 -26
- package/node_modules/@xrkseek/server-face/dist/slash.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/status-snapshot-cache.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/status-snapshot-cache.js +53 -0
- package/node_modules/@xrkseek/server-face/dist/status-snapshot-cache.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js +7 -2
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/types.d.ts +23 -0
- package/node_modules/@xrkseek/server-face/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.d.ts +17 -2
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.js +111 -10
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js +19 -14
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-member-look.d.ts +22 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-member-look.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-member-look.js +35 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-member-look.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-orchestrate-tools.d.ts +3 -2
- package/node_modules/@xrkseek/server-face/dist/workspace-orchestrate-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-orchestrate-tools.js +74 -57
- package/node_modules/@xrkseek/server-face/dist/workspace-orchestrate-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts +31 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js +109 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-store.js +7 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-store.js.map +1 -1
- package/node_modules/@xrkseek/server-face/package.json +60 -60
- package/node_modules/@xrkseek/server-host/dist/index.d.ts +37 -6
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +182 -28
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/log.d.ts +6 -0
- package/node_modules/@xrkseek/server-host/dist/log.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js +17 -2
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/standing-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/standing-tools.js +3 -3
- package/node_modules/@xrkseek/server-host/dist/standing-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-host/package.json +75 -75
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-tool-pre.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-tool-pre.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.js +188 -188
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-auth.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-auth.js +292 -24
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-auth.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-gate.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-gate.js +12 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-gate.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts +16 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js +47 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.js +53 -53
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.d.ts +9 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.js +39 -20
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +2 -1
- package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sunflower-free/ensure.d.ts +55 -0
- package/node_modules/@xrkseek/server-http/dist/sunflower-free/ensure.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/sunflower-free/ensure.js +176 -0
- package/node_modules/@xrkseek/server-http/dist/sunflower-free/ensure.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +2 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js +7 -3
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js.map +1 -1
- package/node_modules/@xrkseek/server-http/package.json +72 -72
- package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.js +132 -0
- package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
- package/node_modules/@xrkseek/session-projection/README.md +26 -26
- package/node_modules/@xrkseek/session-projection/dist/index.d.ts +31 -2
- package/node_modules/@xrkseek/session-projection/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/session-projection/dist/index.js +135 -19
- package/node_modules/@xrkseek/session-projection/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/README.md +11 -11
- package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/dist/index.js +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/dist/redact.d.ts +14 -0
- package/node_modules/@xrkseek/session-telemetry/dist/redact.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/redact.js +58 -0
- package/node_modules/@xrkseek/session-telemetry/dist/redact.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.d.ts +7 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.js +43 -12
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.js.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/package.json +27 -27
- package/node_modules/@xrkseek/workspace/dist/durable-inject.d.ts +13 -0
- package/node_modules/@xrkseek/workspace/dist/durable-inject.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/durable-inject.js +40 -4
- package/node_modules/@xrkseek/workspace/dist/durable-inject.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.d.ts +10 -9
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js +67 -19
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +19 -20
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +43 -20
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.d.ts +2 -0
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.js +23 -12
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-sources.d.ts +7 -4
- package/node_modules/@xrkseek/workspace/dist/inject-sources.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-sources.js +10 -0
- package/node_modules/@xrkseek/workspace/dist/inject-sources.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/instruction-authority.d.ts +27 -0
- package/node_modules/@xrkseek/workspace/dist/instruction-authority.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/instruction-authority.js +78 -0
- package/node_modules/@xrkseek/workspace/dist/instruction-authority.js.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.d.ts +7 -0
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.js +4 -2
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-tools.js +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-tools.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skills.d.ts +13 -1
- package/node_modules/@xrkseek/workspace/dist/skills.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skills.js +45 -5
- package/node_modules/@xrkseek/workspace/dist/skills.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/standing-skill-dirs.d.ts +26 -0
- package/node_modules/@xrkseek/workspace/dist/standing-skill-dirs.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/standing-skill-dirs.js +80 -0
- package/node_modules/@xrkseek/workspace/dist/standing-skill-dirs.js.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts +7 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js +21 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js.map +1 -1
- package/node_modules/@xrkseek/workspace/package.json +28 -28
- package/node_modules/@xrkseek/xrk-agent/lib/index.js +1 -793
- package/node_modules/@xrkseek/xrk-agent/lib/invariant.js +1 -23
- package/node_modules/@xrkseek/xrk-attachment/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-attachment/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/brand.js +10 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/error.js +48 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/index.js +42 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/invariant.js +16 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/types.d.ts +6 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/types.js +3 -0
- package/node_modules/@xrkseek/xrk-attachment/package.json +1 -0
- package/node_modules/@xrkseek/xrk-brand/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-brand/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-brand/lib/types/index.js +24 -0
- package/node_modules/@xrkseek/xrk-brand/lib/types/invariant.js +22 -0
- package/node_modules/@xrkseek/xrk-brand/package.json +1 -0
- package/node_modules/@xrkseek/xrk-commands/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-commands/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/README.md +46 -46
- package/node_modules/@xrkseek/xrk-file-reference-local/README.zh.md +46 -46
- package/node_modules/@xrkseek/xrk-file-reference-local/package.json +30 -30
- package/node_modules/@xrkseek/xrk-invariants/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-invariants/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-invariants/lib/types/index.js +148 -0
- package/node_modules/@xrkseek/xrk-invariants/lib/types/invariant.js +22 -0
- package/node_modules/@xrkseek/xrk-invariants/package.json +1 -0
- package/node_modules/@xrkseek/xrk-llm/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-llm/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-llm/lib/types/index.js +4 -0
- package/node_modules/@xrkseek/xrk-llm/lib/types/types.d.ts +11 -0
- package/node_modules/@xrkseek/xrk-permission-presets/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-permission-presets/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-scope/lib/index.js +1 -0
- package/node_modules/@xrkseek/xrk-scope/lib/types/index.d.ts +129 -0
- package/node_modules/@xrkseek/xrk-scope/lib/types/index.js +243 -0
- package/node_modules/@xrkseek/xrk-scope/package.json +34 -0
- package/node_modules/@xrkseek/xrk-session/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-session/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-session-projection/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-session-projection/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/README.md +50 -50
- package/node_modules/@xrkseek/xrk-session-reference/README.zh.md +50 -50
- package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.js +13 -13
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js +2 -2
- package/node_modules/@xrkseek/xrk-session-reference/package.json +56 -56
- package/node_modules/@xrkseek/xrk-settings/lib/index.js +1 -638
- package/node_modules/@xrkseek/xrk-settings/lib/invariant.js +1 -67
- package/node_modules/@xrkseek/xrk-system-prompt/package.json +15 -15
- package/node_modules/@xrkseek/xrk-system-prompt/src/index.ts +144 -144
- package/node_modules/@xrkseek/xrk-token-meter/README.i18n.yaml +6 -0
- package/node_modules/@xrkseek/xrk-token-meter/README.md +68 -0
- package/node_modules/@xrkseek/xrk-token-meter/README.zh.md +68 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/index.js +1 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/breakdown-projection.d.ts +29 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/breakdown-projection.js +56 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/client.d.ts +9 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/client.js +7 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/estimate.d.ts +42 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/estimate.js +79 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/index.d.ts +62 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/index.js +250 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/invariant.d.ts +16 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/invariant.js +30 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/projection.d.ts +74 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/projection.js +7 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/surface-fold.d.ts +38 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/surface-fold.js +47 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/surface-projection.d.ts +59 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/surface-projection.js +66 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/turn-usage.d.ts +33 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/turn-usage.js +247 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/types.d.ts +44 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/types.js +7 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/usage-projection.d.ts +64 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/usage-projection.js +161 -0
- package/node_modules/@xrkseek/xrk-token-meter/package.json +57 -0
- package/node_modules/@xrkseek/xrk-tools/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-tools/lib/invariant.js +1 -1
- package/node_modules/@xrkseek/xrk-tools/src/presentation.ts +39 -39
- package/node_modules/@xrkseek/xrk-typert-protocol/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-typert-protocol/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-workflow/README.md +73 -73
- package/node_modules/@xrkseek/xrk-workflow/README.zh.md +72 -72
- package/node_modules/@xrkseek/xrk-workflow/lib/types/index.js +118 -118
- package/package.json +7 -1
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts +0 -14
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts.map +0 -1
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.js +0 -21
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.js.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.mts +0 -3734
- package/node_modules/@xrkseek/server-face/dist/index.d.mts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/index.mjs +0 -22085
- package/node_modules/@xrkseek/server-face/dist/index.mjs.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts +0 -51
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.js +0 -104
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.js.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts +0 -2
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js +0 -98
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts +0 -18
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js +0 -141
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts +0 -30
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js +0 -96
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js.map +0 -1
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The engine behavior for each mods API call this bridge serves, mapped onto
|
|
3
|
+
* harness services: commands and tools on the agent's scoped registries,
|
|
4
|
+
* `ui.ask` on the user-questions answerer, files on `ctx.fs`, processes on
|
|
5
|
+
* `ctx.subprocess`, the store on a storage domain, session facts on the
|
|
6
|
+
* agent's Session and projections. A service a deployment did not compose
|
|
7
|
+
* fails the call with the service name.
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { createUserMessage, ToolCallId } from "@xrkseek/xrk-llm";
|
|
11
|
+
import { scopeOf } from "@xrkseek/xrk-scope";
|
|
12
|
+
import { defineDomain, domainTable } from "./storage-domain.js";
|
|
13
|
+
import { assertObjectJsonSchema } from "@xrkseek/xrk-tools";
|
|
14
|
+
import { randomUUID } from "node:crypto";
|
|
15
|
+
import { record, requireString, stringify } from "./values.js";
|
|
16
|
+
import { z as zod } from "zod";
|
|
17
|
+
/** The mods API version string `$.session.version()` reports. */
|
|
18
|
+
export const MODS_API_VERSION = Object.freeze({
|
|
19
|
+
version: "claude-code-mods/0.1",
|
|
20
|
+
engine: "xrk-harness",
|
|
21
|
+
});
|
|
22
|
+
/** Largest file `$.fs.read` returns and `$.fs.write` accepts, Claude Code's own limit. */
|
|
23
|
+
export const FS_MAX_BYTES = 4 * 1024 * 1024;
|
|
24
|
+
/** Largest JSON a plugin's `$.store` holds in total, Claude Code's own limit. */
|
|
25
|
+
export const STORE_MAX_BYTES = 4 * 1024 * 1024;
|
|
26
|
+
/** Largest response body `$.http.fetch` returns. */
|
|
27
|
+
export const HTTP_MAX_BYTES = 4 * 1024 * 1024;
|
|
28
|
+
/**
|
|
29
|
+
* Full name the model sees for a mod-registered tool: Claude Code's MCP-style spelling.
|
|
30
|
+
* @param plugin - the registering plugin's name.
|
|
31
|
+
* @param tool - the name the mod registered.
|
|
32
|
+
* @returns `mcp__<plugin>__<tool>`.
|
|
33
|
+
*/
|
|
34
|
+
export function modToolName(plugin, tool) {
|
|
35
|
+
return `mcp__${plugin}__${tool}`;
|
|
36
|
+
}
|
|
37
|
+
/** Tool-local names stay short and id-safe, Claude Code's own rule. */
|
|
38
|
+
const REGISTERED_NAME = /^[A-Za-z0-9_-]{1,64}$/u;
|
|
39
|
+
/** Per-plugin `$.store` records: one JSON object of keys per plugin. */
|
|
40
|
+
const storeDomainSpec = defineDomain({
|
|
41
|
+
name: "claude_code_mods",
|
|
42
|
+
version: 1,
|
|
43
|
+
tables: {
|
|
44
|
+
store: domainTable(zod.record(zod.string(), zod.json())),
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
function requireAgent(context, op) {
|
|
48
|
+
const agent = context.binding.agent;
|
|
49
|
+
if (agent === undefined)
|
|
50
|
+
throw new Error(`$.${op} needs a session, and this event has none`);
|
|
51
|
+
return agent;
|
|
52
|
+
}
|
|
53
|
+
function textOf(content) {
|
|
54
|
+
return content
|
|
55
|
+
.filter((block) => block.type === "text")
|
|
56
|
+
.map((block) => block.text)
|
|
57
|
+
.join("");
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Project one tool outcome onto Claude Code's `tool.call` result.
|
|
61
|
+
* @param result - the harness tool outcome.
|
|
62
|
+
* @returns its text as `result`, with `isError` on a failure.
|
|
63
|
+
*/
|
|
64
|
+
export function toolCallResultOf(result) {
|
|
65
|
+
return result.isError
|
|
66
|
+
? { result: textOf(result.content), isError: true }
|
|
67
|
+
: { result: textOf(result.content) };
|
|
68
|
+
}
|
|
69
|
+
/** The model's raw JSON arguments as an object; an unparsable string is an empty input. */
|
|
70
|
+
function argumentsOf(raw) {
|
|
71
|
+
try {
|
|
72
|
+
return record(JSON.parse(raw));
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
// A truncated or malformed tool call keeps its id and name; its input is unknown.
|
|
76
|
+
return {};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function sessionMessages(messages, aliases) {
|
|
80
|
+
const out = [];
|
|
81
|
+
for (const message of messages) {
|
|
82
|
+
if (message.role !== "user" && message.role !== "assistant")
|
|
83
|
+
continue;
|
|
84
|
+
const toolUses = message.content
|
|
85
|
+
.filter((block) => block.type === "tool-call")
|
|
86
|
+
.map((block) => ({
|
|
87
|
+
tool_use_id: block.id,
|
|
88
|
+
tool: aliases.toMod(block.name),
|
|
89
|
+
input: argumentsOf(block.arguments),
|
|
90
|
+
}));
|
|
91
|
+
out.push({ role: message.role, text: textOf(message.content), toolUses });
|
|
92
|
+
}
|
|
93
|
+
return out;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Build the op table over the composed harness services.
|
|
97
|
+
* @param options - the context, aliases, limits, and registration tracking.
|
|
98
|
+
* @returns engine behaviors by event name.
|
|
99
|
+
*/
|
|
100
|
+
export function createHostOps(options) {
|
|
101
|
+
const { ctx, aliases } = options;
|
|
102
|
+
let storeDomain;
|
|
103
|
+
function store() {
|
|
104
|
+
if (storeDomain !== undefined)
|
|
105
|
+
return storeDomain;
|
|
106
|
+
const domains = ctx.get("storageDomain");
|
|
107
|
+
if (domains === undefined)
|
|
108
|
+
throw new Error("$.store needs a storage domain service (dsh-storage-domain), which this deployment did not compose");
|
|
109
|
+
const opened = domains.open(storeDomainSpec);
|
|
110
|
+
storeDomain = opened;
|
|
111
|
+
ctx.effect(() => () => opened.then((domain) => domain.close()), "claude-code-mods: close store domain");
|
|
112
|
+
return opened;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* `stat` that reads a missing path as `undefined` instead of throwing.
|
|
116
|
+
*
|
|
117
|
+
* The seam throws for a nonexistent path; `$.fs.exists` and a directory listing
|
|
118
|
+
* both ask about paths that may legitimately be absent.
|
|
119
|
+
*/
|
|
120
|
+
async function statOf(path) {
|
|
121
|
+
try {
|
|
122
|
+
return await fs().stat(path);
|
|
123
|
+
}
|
|
124
|
+
catch {
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function directories() {
|
|
129
|
+
const service = ctx.get("workingDirectory");
|
|
130
|
+
if (service === undefined)
|
|
131
|
+
throw new Error("$.session.cwd and session-owned operations need dsh-working-directory, which this deployment did not compose");
|
|
132
|
+
return service;
|
|
133
|
+
}
|
|
134
|
+
function currentDirectory(agent, signal) {
|
|
135
|
+
return agent === undefined
|
|
136
|
+
? Promise.resolve(undefined)
|
|
137
|
+
: directories().ensure(agent, signal);
|
|
138
|
+
}
|
|
139
|
+
function fs() {
|
|
140
|
+
const service = ctx.get("fs");
|
|
141
|
+
if (service === undefined)
|
|
142
|
+
throw new Error("$.fs needs a filesystem service (@xrkseek/exec-fs), which this deployment did not compose");
|
|
143
|
+
return service;
|
|
144
|
+
}
|
|
145
|
+
function track(dispose, agent) {
|
|
146
|
+
const key = agent?.session.id ?? "";
|
|
147
|
+
let owned = options.registrations.get(key);
|
|
148
|
+
if (owned === undefined) {
|
|
149
|
+
owned = new Set();
|
|
150
|
+
options.registrations.set(key, owned);
|
|
151
|
+
}
|
|
152
|
+
owned.add(dispose);
|
|
153
|
+
}
|
|
154
|
+
/** Per-plugin write chains: `$.store` read-modify-write runs one at a time per plugin. */
|
|
155
|
+
const storeWrites = new Map();
|
|
156
|
+
function serializeStore(plugin, write) {
|
|
157
|
+
const previous = storeWrites.get(plugin) ?? Promise.resolve();
|
|
158
|
+
const next = previous.then(write, write);
|
|
159
|
+
storeWrites.set(plugin, next.catch(() => undefined));
|
|
160
|
+
return next;
|
|
161
|
+
}
|
|
162
|
+
/** Ask the band of the event's session to redraw, when a surface is drawn at all. */
|
|
163
|
+
function redraw(agent) {
|
|
164
|
+
if (agent !== undefined)
|
|
165
|
+
options.redraw?.(agent.session.id);
|
|
166
|
+
}
|
|
167
|
+
return {
|
|
168
|
+
// ---- ui: no mod drawing surface exists; log-style calls reach the host log ----
|
|
169
|
+
"ui.log": (input, { mod }) => {
|
|
170
|
+
const { text, to } = record(input);
|
|
171
|
+
const line = `${mod.name}: ${requireString(text, "$.ui.log text")}`;
|
|
172
|
+
if (to === "debug")
|
|
173
|
+
ctx.logger.debug(line);
|
|
174
|
+
else
|
|
175
|
+
ctx.logger.info(line);
|
|
176
|
+
},
|
|
177
|
+
"ui.toast": (input, { mod }) => {
|
|
178
|
+
ctx.logger.info(`${mod.name} (toast): ${requireString(record(input).text, "$.ui.toast text")}`);
|
|
179
|
+
},
|
|
180
|
+
"ui.status": (input, { mod }) => {
|
|
181
|
+
const { text } = record(input);
|
|
182
|
+
ctx.logger.info(`${mod.name} (status): ${text === undefined ? "(cleared)" : requireString(text, "$.ui.status text")}`);
|
|
183
|
+
},
|
|
184
|
+
"ui.invalidate": (_input, { binding }) => {
|
|
185
|
+
redraw(binding.agent);
|
|
186
|
+
},
|
|
187
|
+
// No pane is placed: a mod that degrades to the band (`isPlaced: false`) is drawn there after this call.
|
|
188
|
+
"ui.open": (input, { binding }) => {
|
|
189
|
+
redraw(binding.agent);
|
|
190
|
+
return {
|
|
191
|
+
id: requireString(record(input).id, "$.ui.open id"),
|
|
192
|
+
isPlaced: false,
|
|
193
|
+
reason: "this host places no panes; draw in AbovePrompt",
|
|
194
|
+
};
|
|
195
|
+
},
|
|
196
|
+
"ui.close": (_input, { binding }) => {
|
|
197
|
+
redraw(binding.agent);
|
|
198
|
+
},
|
|
199
|
+
"ui.panes": () => [],
|
|
200
|
+
"ui.ask": async (input, context) => {
|
|
201
|
+
const agent = requireAgent(context, "ui.ask");
|
|
202
|
+
const questions = ctx.get("userQuestions");
|
|
203
|
+
if (questions === undefined)
|
|
204
|
+
throw new Error("$.ui.ask needs a userQuestions service (Face question broker or Cordis answerer), which this deployment did not compose");
|
|
205
|
+
const { question, options: labels, header, multiSelect } = record(input);
|
|
206
|
+
// The option shape is structural: only `label` is required, so a smaller
|
|
207
|
+
// local type keeps this call compiling if the seam grows extra fields.
|
|
208
|
+
const choices = Array.isArray(labels)
|
|
209
|
+
? labels.map((label) => ({ label: requireString(label, "$.ui.ask option") }))
|
|
210
|
+
: undefined;
|
|
211
|
+
const answer = await questions.ask({
|
|
212
|
+
questions: [
|
|
213
|
+
{
|
|
214
|
+
id: "answer",
|
|
215
|
+
question: requireString(question, "$.ui.ask question"),
|
|
216
|
+
...(typeof header === "string" ? { header } : {}),
|
|
217
|
+
...(choices === undefined ? {} : { options: choices }),
|
|
218
|
+
...(multiSelect === true ? { multiSelect: true } : {}),
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
agent,
|
|
222
|
+
signal: context.signal,
|
|
223
|
+
});
|
|
224
|
+
const item = answer.answers[0];
|
|
225
|
+
if (item === undefined)
|
|
226
|
+
throw new Error("$.ui.ask: the user dismissed the question");
|
|
227
|
+
return item.custom ?? item.selected.join(", ");
|
|
228
|
+
},
|
|
229
|
+
// ---- commands ----
|
|
230
|
+
"command.register": (input, { mod, binding, engine }) => {
|
|
231
|
+
const spec = record(input);
|
|
232
|
+
const name = requireString(spec.name, "$.command.register name");
|
|
233
|
+
if (!REGISTERED_NAME.test(name))
|
|
234
|
+
throw new Error(`"/${name}" refused: command names are letters, digits, "_" and "-", up to 64 characters`);
|
|
235
|
+
const description = requireString(spec.description, "$.command.register description");
|
|
236
|
+
const registry = (binding.agent?.ctx ?? ctx).get("commands");
|
|
237
|
+
if (registry === undefined)
|
|
238
|
+
throw new Error("$.command.register needs a command registry (dsh-commands), which this deployment did not compose");
|
|
239
|
+
const lowered = name.toLowerCase();
|
|
240
|
+
const definition = {
|
|
241
|
+
name: lowered,
|
|
242
|
+
description,
|
|
243
|
+
...(typeof spec.argumentHint === "string"
|
|
244
|
+
? { input: { hint: spec.argumentHint } }
|
|
245
|
+
: {}),
|
|
246
|
+
handler: async (invocation) => {
|
|
247
|
+
const run = await engine.raise("command.run", {
|
|
248
|
+
command: lowered,
|
|
249
|
+
args: invocation.rawInput.trim(),
|
|
250
|
+
origin: { kind: "composer" },
|
|
251
|
+
}, () => ({
|
|
252
|
+
text: `${mod.name} registered /${lowered} but no command.run hook answered it; add on('command.run', { command: '${lowered}' }, hook)`,
|
|
253
|
+
}), { binding: { agent: invocation.agent }, signal: invocation.signal });
|
|
254
|
+
return {
|
|
255
|
+
kind: "success",
|
|
256
|
+
...(run.text === undefined ? {} : { text: `${mod.name}: ${run.text}` }),
|
|
257
|
+
};
|
|
258
|
+
},
|
|
259
|
+
};
|
|
260
|
+
const dispose = registry.register(definition);
|
|
261
|
+
options.modCommands.add(lowered);
|
|
262
|
+
track(dispose, binding.agent);
|
|
263
|
+
},
|
|
264
|
+
"command.run": async (input, context) => {
|
|
265
|
+
const agent = requireAgent(context, "command.run");
|
|
266
|
+
const registry = ctx.get("commands");
|
|
267
|
+
if (registry === undefined)
|
|
268
|
+
throw new Error("$.command.run needs a command registry (dsh-commands), which this deployment did not compose");
|
|
269
|
+
const { command, args } = record(input);
|
|
270
|
+
const name = requireString(command, "$.command.run command");
|
|
271
|
+
const line = typeof args === "string" && args.length > 0 ? `/${name} ${args}` : `/${name}`;
|
|
272
|
+
const execution = await registry.execute(agent, line, context.signal);
|
|
273
|
+
if (execution === undefined)
|
|
274
|
+
throw new Error(`/${name} is not a command`);
|
|
275
|
+
const { result } = execution;
|
|
276
|
+
if (result.kind === "error")
|
|
277
|
+
throw new Error(result.text);
|
|
278
|
+
return {
|
|
279
|
+
...(result.text === undefined ? {} : { text: result.text }),
|
|
280
|
+
};
|
|
281
|
+
},
|
|
282
|
+
"command.list": (_input, context) => {
|
|
283
|
+
const agent = requireAgent(context, "command.list");
|
|
284
|
+
const registry = ctx.get("commands");
|
|
285
|
+
if (registry === undefined)
|
|
286
|
+
return [];
|
|
287
|
+
return registry.list(agent).map((descriptor) => ({
|
|
288
|
+
name: descriptor.name,
|
|
289
|
+
description: descriptor.description,
|
|
290
|
+
source: options.modCommands.has(descriptor.name) ? "plugin" : "builtin",
|
|
291
|
+
}));
|
|
292
|
+
},
|
|
293
|
+
// ---- tools ----
|
|
294
|
+
"tool.register": (input, { mod, binding }) => {
|
|
295
|
+
const spec = record(input);
|
|
296
|
+
const name = requireString(spec.name, "$.tool.register name");
|
|
297
|
+
if (!REGISTERED_NAME.test(name))
|
|
298
|
+
throw new Error(`tool "${name}" refused: tool names are letters, digits, "_" and "-", up to 64 characters`);
|
|
299
|
+
const description = requireString(spec.description, "$.tool.register description");
|
|
300
|
+
const inputSchema = spec.inputSchema === undefined
|
|
301
|
+
? { type: "object", properties: {} }
|
|
302
|
+
: record(spec.inputSchema);
|
|
303
|
+
// The schema reaches the model, so an unsupported keyword fails this call, not a later request.
|
|
304
|
+
assertObjectJsonSchema(inputSchema);
|
|
305
|
+
const registry = (binding.agent?.ctx ?? ctx).get("tools");
|
|
306
|
+
if (registry === undefined)
|
|
307
|
+
throw new Error("$.tool.register needs a tool registry (dsh-tools), which this deployment did not compose");
|
|
308
|
+
const fullName = modToolName(mod.name, name);
|
|
309
|
+
const definition = {
|
|
310
|
+
name: fullName,
|
|
311
|
+
description,
|
|
312
|
+
parameters: inputSchema,
|
|
313
|
+
output: {
|
|
314
|
+
// The answering hook's result text; the schema admits only a string.
|
|
315
|
+
schema: { type: "string" },
|
|
316
|
+
render: (_args, value) => [{ type: "text", text: value }],
|
|
317
|
+
},
|
|
318
|
+
execute() {
|
|
319
|
+
return Promise.reject(new Error(`${mod.name} registered ${fullName} but no tool.call hook answered it; add on('tool.call', { tool: '${fullName}' }, hook)`));
|
|
320
|
+
},
|
|
321
|
+
};
|
|
322
|
+
track(registry.register(definition), binding.agent);
|
|
323
|
+
options.modTools.add(fullName);
|
|
324
|
+
},
|
|
325
|
+
"tool.call": async (input, context) => {
|
|
326
|
+
const agent = context.binding.agent;
|
|
327
|
+
const registry = ctx.get("tools");
|
|
328
|
+
if (registry === undefined)
|
|
329
|
+
throw new Error("$.tool.call needs a tool registry (dsh-tools), which this deployment did not compose");
|
|
330
|
+
const { tool, tool_use_id: _ignored, agentId: _agent, ...args } = record(input);
|
|
331
|
+
const callId = ToolCallId(`mod-${randomUUID()}`);
|
|
332
|
+
// The pipeline raises `tool.call` for this call from the calling mod, so only earlier mods see it.
|
|
333
|
+
options.callOrigins.set(callId, context.mod);
|
|
334
|
+
try {
|
|
335
|
+
const result = await registry.execute({
|
|
336
|
+
callId,
|
|
337
|
+
name: aliases.toHarness(requireString(tool, "$.tool.call tool")),
|
|
338
|
+
arguments: args,
|
|
339
|
+
...(agent === undefined ? {} : { agent }),
|
|
340
|
+
signal: context.signal,
|
|
341
|
+
});
|
|
342
|
+
// Guidance a tool defers to the next request still reaches the model when a mod made the call.
|
|
343
|
+
if (agent !== undefined && result.additionalContexts !== undefined) {
|
|
344
|
+
// A host without `inject` keeps the tool result and loses the deferred
|
|
345
|
+
// guidance; that is a degradation, not a failed call.
|
|
346
|
+
for (const message of result.additionalContexts)
|
|
347
|
+
agent.inject?.(message);
|
|
348
|
+
}
|
|
349
|
+
return toolCallResultOf(result);
|
|
350
|
+
}
|
|
351
|
+
finally {
|
|
352
|
+
options.callOrigins.delete(callId);
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"tool.list": (_input, context) => {
|
|
356
|
+
const registry = ctx.get("tools");
|
|
357
|
+
if (registry === undefined)
|
|
358
|
+
return [];
|
|
359
|
+
const agent = context.binding.agent;
|
|
360
|
+
// `ctx` is the host's registry scope; a handle that has none asks for the
|
|
361
|
+
// unscoped catalog rather than failing the listing.
|
|
362
|
+
const scope = agent?.ctx === undefined ? undefined : scopeOf(agent.ctx);
|
|
363
|
+
return registry.schemas(scope).map((schema) => ({
|
|
364
|
+
name: aliases.toMod(schema.name),
|
|
365
|
+
description: schema.description,
|
|
366
|
+
}));
|
|
367
|
+
},
|
|
368
|
+
// ---- prompt ----
|
|
369
|
+
"prompt.submit": (input, context) => {
|
|
370
|
+
const agent = requireAgent(context, "prompt.submit");
|
|
371
|
+
const { text, asUser } = record(input);
|
|
372
|
+
const body = requireString(text, "$.prompt.submit text");
|
|
373
|
+
const framed = asUser === true ? body : `Message from the "${context.mod.name}" mod:\n${body}`;
|
|
374
|
+
// Claude Code submits the prompt as the user's own; the framing names the mod unless `asUser` is set.
|
|
375
|
+
const message = createUserMessage({
|
|
376
|
+
content: [{ type: "text", text: framed }],
|
|
377
|
+
source: { kind: "user" },
|
|
378
|
+
});
|
|
379
|
+
options.submitted?.(message.id, context.mod.name);
|
|
380
|
+
if (agent.followup === undefined) {
|
|
381
|
+
throw new Error("$.prompt.submit needs an agent that accepts prompts (agent.followup), which this host handle does not expose");
|
|
382
|
+
}
|
|
383
|
+
agent.followup(message);
|
|
384
|
+
return { text: framed };
|
|
385
|
+
},
|
|
386
|
+
// ---- session facts ----
|
|
387
|
+
"session.id": (_input, context) => requireAgent(context, "session.id").session.id,
|
|
388
|
+
"session.cwd": async (_input, context) => {
|
|
389
|
+
const agent = requireAgent(context, "session.cwd");
|
|
390
|
+
return directories().ensure(agent);
|
|
391
|
+
},
|
|
392
|
+
"session.root": (_input, context) => requireAgent(context, "session.root").session.header.cwd ?? process.cwd(),
|
|
393
|
+
"session.model": (_input, context) => {
|
|
394
|
+
const agent = requireAgent(context, "session.model");
|
|
395
|
+
return (agent.session.requestHeader?.()?.config?.model ?? agent.options?.model ?? "");
|
|
396
|
+
},
|
|
397
|
+
"session.turns": (_input, context) => {
|
|
398
|
+
const agent = requireAgent(context, "session.turns");
|
|
399
|
+
// One finished turn per assistant message on the derived surface. The
|
|
400
|
+
// session log keeps no single turn counter, and replaying it just to count
|
|
401
|
+
// is what `deriveMessages` already does.
|
|
402
|
+
return (agent.session.deriveMessages?.() ?? []).filter((message) => message.role === "assistant").length;
|
|
403
|
+
},
|
|
404
|
+
"session.messages": (_input, context) => sessionMessages(requireAgent(context, "session.messages").session.deriveMessages?.() ?? [], aliases),
|
|
405
|
+
"session.usage": (_input, context) => {
|
|
406
|
+
const agent = requireAgent(context, "session.usage");
|
|
407
|
+
// Widened to our own contract: the stub's `TokenMeasurement` predates
|
|
408
|
+
// `window`, and this deployment's meter answers it off `request/header`.
|
|
409
|
+
const meter = ctx.get("tokenMeter");
|
|
410
|
+
const measurement = meter?.measure(agent.session);
|
|
411
|
+
const tokens = measurement?.totalTokens;
|
|
412
|
+
// `0` when the deployment cannot tell: inventing a window would make a
|
|
413
|
+
// mod's "% full" badge wrong rather than absent. The harness composition
|
|
414
|
+
// reads the real one off `request/header`, so it answers with a number.
|
|
415
|
+
return {
|
|
416
|
+
startedAt: agent.session.header.createdAt ?? 0,
|
|
417
|
+
context: {
|
|
418
|
+
...(tokens === undefined ? {} : { tokens }),
|
|
419
|
+
window: measurement?.window ?? 0,
|
|
420
|
+
},
|
|
421
|
+
rateLimits: [],
|
|
422
|
+
};
|
|
423
|
+
},
|
|
424
|
+
"session.version": () => MODS_API_VERSION,
|
|
425
|
+
// ---- store: one durable JSON object per plugin ----
|
|
426
|
+
"store.get": async (input, { mod }) => (await store()).table("store").get(mod.name)?.[requireString(record(input).key, "$.store.get key")],
|
|
427
|
+
"store.set": async (input, { mod }) => {
|
|
428
|
+
const { key, value } = record(input);
|
|
429
|
+
const name = requireString(key, "$.store.set key");
|
|
430
|
+
await serializeStore(mod.name, async () => {
|
|
431
|
+
const table = (await store()).table("store");
|
|
432
|
+
const next = { ...table.get(mod.name), [name]: value };
|
|
433
|
+
const encoded = stringify(next);
|
|
434
|
+
if (encoded === undefined ||
|
|
435
|
+
Buffer.byteLength(encoded, "utf8") > STORE_MAX_BYTES) {
|
|
436
|
+
throw new Error(`$.store.set: ${mod.name}'s store would exceed ${STORE_MAX_BYTES} bytes of JSON`);
|
|
437
|
+
}
|
|
438
|
+
await table.put(mod.name, JSON.parse(encoded));
|
|
439
|
+
});
|
|
440
|
+
},
|
|
441
|
+
"store.delete": async (input, { mod }) => {
|
|
442
|
+
const name = requireString(record(input).key, "$.store.delete key");
|
|
443
|
+
await serializeStore(mod.name, async () => {
|
|
444
|
+
const table = (await store()).table("store");
|
|
445
|
+
const current = table.get(mod.name);
|
|
446
|
+
if (current === undefined || !(name in current))
|
|
447
|
+
return;
|
|
448
|
+
const { [name]: _removed, ...rest } = current;
|
|
449
|
+
await table.put(mod.name, rest);
|
|
450
|
+
});
|
|
451
|
+
},
|
|
452
|
+
"store.keys": async (_input, { mod }) => Object.keys((await store()).table("store").get(mod.name) ?? {}),
|
|
453
|
+
// ---- files: through the filesystem seam, which owns the workspace root ----
|
|
454
|
+
"fs.read": async (input) => {
|
|
455
|
+
const path = requireString(record(input).path, "$.fs.read path");
|
|
456
|
+
const result = await fs().read(path, FS_MAX_BYTES);
|
|
457
|
+
// A truncated read is a refusal, not a short answer: a mod acting on half a
|
|
458
|
+
// file would report a conclusion the file does not support.
|
|
459
|
+
if (result.truncated === true)
|
|
460
|
+
throw new Error(`$.fs.read: ${path} is larger than ${FS_MAX_BYTES} bytes`);
|
|
461
|
+
return result.content;
|
|
462
|
+
},
|
|
463
|
+
"fs.write": async (input) => {
|
|
464
|
+
const { path, text } = record(input);
|
|
465
|
+
const body = requireString(text, "$.fs.write text");
|
|
466
|
+
if (Buffer.byteLength(body, "utf8") > FS_MAX_BYTES)
|
|
467
|
+
throw new Error(`$.fs.write: content is larger than ${FS_MAX_BYTES} bytes`);
|
|
468
|
+
await fs().write(requireString(path, "$.fs.write path"), body);
|
|
469
|
+
},
|
|
470
|
+
"fs.list": async (input) => {
|
|
471
|
+
const dir = requireString(record(input).path, "$.fs.list path").replace(/[\\/]+$/u, "");
|
|
472
|
+
const matches = await fs().glob(dir === "" || dir === "." ? "*" : `${dir}/*`);
|
|
473
|
+
const entries = [];
|
|
474
|
+
for (const relative of matches) {
|
|
475
|
+
const info = await statOf(relative);
|
|
476
|
+
entries.push({
|
|
477
|
+
name: relative.slice(relative.lastIndexOf("/") + 1),
|
|
478
|
+
kind: info === undefined ? "other" : info.isDirectory ? "dir" : "file",
|
|
479
|
+
size: info?.size ?? 0,
|
|
480
|
+
isLink: false,
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
return entries;
|
|
484
|
+
},
|
|
485
|
+
"fs.exists": async (input) => {
|
|
486
|
+
const path = requireString(record(input).path, "$.fs.exists path");
|
|
487
|
+
return (await statOf(path)) !== undefined;
|
|
488
|
+
},
|
|
489
|
+
"fs.stat": async (input) => {
|
|
490
|
+
const path = requireString(record(input).path, "$.fs.stat path");
|
|
491
|
+
const info = await statOf(path);
|
|
492
|
+
if (info === undefined)
|
|
493
|
+
throw new Error(`$.fs.stat: ${path} does not exist`);
|
|
494
|
+
// `mtimeMs: 0` because the seam publishes no timestamp; reporting 0 is
|
|
495
|
+
// visibly "unknown", while inventing `Date.now()` would look like a real
|
|
496
|
+
// modification time to a mod that formats it.
|
|
497
|
+
return {
|
|
498
|
+
kind: info.isDirectory ? "dir" : info.isFile ? "file" : "other",
|
|
499
|
+
size: info.size,
|
|
500
|
+
mtimeMs: 0,
|
|
501
|
+
isLink: false,
|
|
502
|
+
};
|
|
503
|
+
},
|
|
504
|
+
// ---- processes: argv, no shell, collected output ----
|
|
505
|
+
"process.run": async (input, context) => {
|
|
506
|
+
const subprocess = ctx.get("subprocess");
|
|
507
|
+
if (subprocess === undefined)
|
|
508
|
+
throw new Error("$.process.run needs a subprocess service (dsh-subprocess), which this deployment did not compose");
|
|
509
|
+
const { argv, init } = record(input);
|
|
510
|
+
if (!Array.isArray(argv) ||
|
|
511
|
+
argv.length === 0 ||
|
|
512
|
+
!argv.every((item) => typeof item === "string")) {
|
|
513
|
+
throw new TypeError("$.process.run needs a non-empty argv list of strings");
|
|
514
|
+
}
|
|
515
|
+
const settings = record(init);
|
|
516
|
+
const timeoutMs = typeof settings.timeoutMs === "number"
|
|
517
|
+
? settings.timeoutMs
|
|
518
|
+
: options.processTimeoutMs;
|
|
519
|
+
const cwd = typeof settings.cwd === "string"
|
|
520
|
+
? settings.cwd
|
|
521
|
+
: ((await currentDirectory(context.binding.agent, context.signal)) ??
|
|
522
|
+
process.cwd());
|
|
523
|
+
const env = typeof settings.env === "object" && settings.env !== null
|
|
524
|
+
? settings.env
|
|
525
|
+
: undefined;
|
|
526
|
+
const deadline = AbortSignal.any([
|
|
527
|
+
context.signal,
|
|
528
|
+
AbortSignal.timeout(timeoutMs),
|
|
529
|
+
]);
|
|
530
|
+
const outcome = await subprocess.spawn(argv, {
|
|
531
|
+
cwd,
|
|
532
|
+
signal: deadline,
|
|
533
|
+
timeoutMs,
|
|
534
|
+
...(env === undefined ? {} : { env }),
|
|
535
|
+
});
|
|
536
|
+
if (deadline.aborted)
|
|
537
|
+
throw new Error(`$.process.run: ${argv[0]} did not exit within ${timeoutMs} ms`);
|
|
538
|
+
return {
|
|
539
|
+
exitCode: outcome.exitCode,
|
|
540
|
+
stdout: outcome.stdout,
|
|
541
|
+
stderr: outcome.stderr,
|
|
542
|
+
};
|
|
543
|
+
},
|
|
544
|
+
// ---- network ----
|
|
545
|
+
"http.fetch": async (input, context) => {
|
|
546
|
+
const { url, init } = record(input);
|
|
547
|
+
const settings = record(init);
|
|
548
|
+
const timeoutMs = typeof settings.timeoutMs === "number"
|
|
549
|
+
? settings.timeoutMs
|
|
550
|
+
: options.processTimeoutMs;
|
|
551
|
+
const response = await fetch(requireString(url, "$.http.fetch url"), {
|
|
552
|
+
...(typeof settings.method === "string" ? { method: settings.method } : {}),
|
|
553
|
+
...(typeof settings.headers === "object" && settings.headers !== null
|
|
554
|
+
? { headers: settings.headers }
|
|
555
|
+
: {}),
|
|
556
|
+
...(typeof settings.body === "string" ? { body: settings.body } : {}),
|
|
557
|
+
signal: AbortSignal.any([context.signal, AbortSignal.timeout(timeoutMs)]),
|
|
558
|
+
});
|
|
559
|
+
const headers = {};
|
|
560
|
+
response.headers.forEach((value, name) => {
|
|
561
|
+
headers[name] = value;
|
|
562
|
+
});
|
|
563
|
+
const body = await readBounded(response, HTTP_MAX_BYTES);
|
|
564
|
+
return {
|
|
565
|
+
status: response.status,
|
|
566
|
+
ok: response.ok,
|
|
567
|
+
headers,
|
|
568
|
+
text: body,
|
|
569
|
+
};
|
|
570
|
+
},
|
|
571
|
+
// ---- environment of this process ----
|
|
572
|
+
"env.get": (input) => process.env[requireString(record(input).name, "$.env.get name")],
|
|
573
|
+
"env.set": (input) => {
|
|
574
|
+
const { name, value } = record(input);
|
|
575
|
+
const key = requireString(name, "$.env.set name");
|
|
576
|
+
if (value === undefined)
|
|
577
|
+
Reflect.deleteProperty(process.env, key);
|
|
578
|
+
else
|
|
579
|
+
process.env[key] = requireString(value, "$.env.set value");
|
|
580
|
+
},
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
/** Read a response body up to the bound, cancelling the stream at the first byte past it. */
|
|
584
|
+
async function readBounded(response, maxBytes) {
|
|
585
|
+
const reader = response.body?.getReader();
|
|
586
|
+
if (reader === undefined)
|
|
587
|
+
return "";
|
|
588
|
+
const chunks = [];
|
|
589
|
+
let total = 0;
|
|
590
|
+
for (;;) {
|
|
591
|
+
const { done, value } = await reader.read();
|
|
592
|
+
if (done)
|
|
593
|
+
break;
|
|
594
|
+
total += value.byteLength;
|
|
595
|
+
if (total > maxBytes) {
|
|
596
|
+
await reader.cancel();
|
|
597
|
+
throw new Error(`$.http.fetch: the response body is larger than ${maxBytes} bytes`);
|
|
598
|
+
}
|
|
599
|
+
chunks.push(value);
|
|
600
|
+
}
|
|
601
|
+
return new TextDecoder().decode(Buffer.concat(chunks));
|
|
602
|
+
}
|
|
603
|
+
//# sourceMappingURL=host-ops.js.map
|
|
@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