@xrkseek/harness 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/a2a/README.md +43 -0
- package/node_modules/@xrkseek/a2a/dist/client.d.ts +35 -0
- package/node_modules/@xrkseek/a2a/dist/client.d.ts.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/client.js +229 -0
- package/node_modules/@xrkseek/a2a/dist/client.js.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/inbound.d.ts +42 -0
- package/node_modules/@xrkseek/a2a/dist/inbound.d.ts.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/inbound.js +263 -0
- package/node_modules/@xrkseek/a2a/dist/inbound.js.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/index.d.ts +6 -0
- package/node_modules/@xrkseek/a2a/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/index.js +6 -0
- package/node_modules/@xrkseek/a2a/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/peers.d.ts +25 -0
- package/node_modules/@xrkseek/a2a/dist/peers.d.ts.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/peers.js +90 -0
- package/node_modules/@xrkseek/a2a/dist/peers.js.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/protocol.d.ts +45 -0
- package/node_modules/@xrkseek/a2a/dist/protocol.d.ts.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/protocol.js +172 -0
- package/node_modules/@xrkseek/a2a/dist/protocol.js.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/tools.d.ts +10 -0
- package/node_modules/@xrkseek/a2a/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/tools.js +145 -0
- package/node_modules/@xrkseek/a2a/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/a2a/package.json +28 -0
- package/node_modules/@xrkseek/attachment/README.md +23 -17
- package/node_modules/@xrkseek/attachment/dist/image-tokens.d.ts +30 -0
- package/node_modules/@xrkseek/attachment/dist/image-tokens.d.ts.map +1 -0
- package/node_modules/@xrkseek/attachment/dist/image-tokens.js +142 -0
- package/node_modules/@xrkseek/attachment/dist/image-tokens.js.map +1 -0
- package/node_modules/@xrkseek/attachment/dist/index.d.ts +2 -0
- package/node_modules/@xrkseek/attachment/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/index.js +2 -0
- package/node_modules/@xrkseek/attachment/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/request-projection.d.ts +20 -0
- package/node_modules/@xrkseek/attachment/dist/request-projection.d.ts.map +1 -0
- package/node_modules/@xrkseek/attachment/dist/request-projection.js +49 -0
- package/node_modules/@xrkseek/attachment/dist/request-projection.js.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts +2 -11
- package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/request-image.js +3 -29
- package/node_modules/@xrkseek/attachment-local/dist/request-image.js.map +1 -1
- package/node_modules/@xrkseek/checkpoint/README.md +4 -2
- package/node_modules/@xrkseek/checkpoint/dist/process-git.d.ts +6 -0
- package/node_modules/@xrkseek/checkpoint/dist/process-git.d.ts.map +1 -1
- package/node_modules/@xrkseek/checkpoint/dist/process-git.js +23 -1
- package/node_modules/@xrkseek/checkpoint/dist/process-git.js.map +1 -1
- package/node_modules/@xrkseek/checkpoint/dist/store.d.ts +30 -2
- package/node_modules/@xrkseek/checkpoint/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/checkpoint/dist/store.js +58 -15
- package/node_modules/@xrkseek/checkpoint/dist/store.js.map +1 -1
- package/node_modules/@xrkseek/checkpoint/dist/types.d.ts +14 -4
- package/node_modules/@xrkseek/checkpoint/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/checkpoint/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/checkpoint/package.json +4 -1
- package/node_modules/@xrkseek/context-fragments/dist/index.d.ts +14 -0
- package/node_modules/@xrkseek/context-fragments/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/context-fragments/dist/index.js +33 -0
- package/node_modules/@xrkseek/context-fragments/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts +7 -0
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.js +6 -0
- package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/compaction.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/compaction.js +1 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/compaction.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts +18 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js +98 -50
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.d.ts +7 -2
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.js +7 -3
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts +23 -2
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.js +50 -3
- package/node_modules/@xrkseek/core-session/dist/compaction.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/drain-hub.d.ts +2 -2
- package/node_modules/@xrkseek/core-session/dist/drain-hub.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/drain-hub.js +2 -2
- package/node_modules/@xrkseek/core-session/dist/drain-hub.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/core-session/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.js +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/latch.d.ts +25 -3
- package/node_modules/@xrkseek/core-session/dist/latch.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/latch.js +33 -12
- package/node_modules/@xrkseek/core-session/dist/latch.js.map +1 -1
- package/node_modules/@xrkseek/core-session/package.json +1 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/index.js +1 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/time-context.d.ts +22 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/time-context.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/time-context.js +47 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/time-context.js.map +1 -0
- package/node_modules/@xrkseek/core-tools/dist/definition.d.ts +14 -0
- package/node_modules/@xrkseek/core-tools/dist/definition.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/definition.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/core-tools/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/index.js +1 -1
- package/node_modules/@xrkseek/core-tools/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/materialize.d.ts +9 -3
- package/node_modules/@xrkseek/core-tools/dist/materialize.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/materialize.js +38 -8
- package/node_modules/@xrkseek/core-tools/dist/materialize.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts +2 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js +4 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-environment/README.md +21 -0
- package/node_modules/@xrkseek/exec-environment/dist/http.d.ts +34 -0
- package/node_modules/@xrkseek/exec-environment/dist/http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/http.js +259 -0
- package/node_modules/@xrkseek/exec-environment/dist/http.js.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/index.d.ts +5 -0
- package/node_modules/@xrkseek/exec-environment/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/index.js +4 -0
- package/node_modules/@xrkseek/exec-environment/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/local.d.ts +11 -0
- package/node_modules/@xrkseek/exec-environment/dist/local.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/local.js +30 -0
- package/node_modules/@xrkseek/exec-environment/dist/local.js.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/resolve.d.ts +23 -0
- package/node_modules/@xrkseek/exec-environment/dist/resolve.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/resolve.js +39 -0
- package/node_modules/@xrkseek/exec-environment/dist/resolve.js.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/types.d.ts +33 -0
- package/node_modules/@xrkseek/exec-environment/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/types.js +9 -0
- package/node_modules/@xrkseek/exec-environment/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-environment/package.json +28 -0
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/present.d.ts +5 -2
- package/node_modules/@xrkseek/exec-fs/dist/present.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/present.js +22 -4
- package/node_modules/@xrkseek/exec-fs/dist/present.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/README.md +6 -4
- package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js +6 -3
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts +4 -2
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js +4 -2
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.d.ts +4 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.js +16 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts +5 -2
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js +88 -38
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/references.d.ts +21 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/references.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/references.js +145 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/references.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.d.ts +15 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.js +67 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts +5 -2
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js +38 -36
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts +34 -2
- package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/types.js +16 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/exec-memory/README.md +3 -2
- package/node_modules/@xrkseek/exec-memory/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/exec-memory/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/index.js +2 -1
- package/node_modules/@xrkseek/exec-memory/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/provider.d.ts +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/provider.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/resolve.d.ts +15 -4
- package/node_modules/@xrkseek/exec-memory/dist/resolve.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/resolve.js +13 -3
- package/node_modules/@xrkseek/exec-memory/dist/resolve.js.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/sqlite.d.ts +19 -0
- package/node_modules/@xrkseek/exec-memory/dist/sqlite.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/sqlite.js +190 -0
- package/node_modules/@xrkseek/exec-memory/dist/sqlite.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/write-path.d.ts +21 -0
- package/node_modules/@xrkseek/exec-memory/dist/write-path.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/write-path.js +128 -25
- package/node_modules/@xrkseek/exec-memory/dist/write-path.js.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts +8 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.js +3 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/README.md +27 -19
- package/node_modules/@xrkseek/exec-video-gen/dist/catalog.d.ts +16 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/catalog.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/catalog.js +90 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/catalog.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js +3 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts +5 -2
- package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/index.js +5 -2
- package/node_modules/@xrkseek/exec-video-gen/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.d.ts +3 -2
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.js +45 -4
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts +3 -6
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js +81 -2
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/references.d.ts +24 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/references.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/references.js +151 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/references.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/schema.d.ts +15 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/schema.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/schema.js +104 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/schema.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts +4 -2
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js +99 -70
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts +73 -2
- package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/types.js +20 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/README.md +2 -2
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts +3 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js +3 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-vault-tools.d.ts +32 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-vault-tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-vault-tools.js +141 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-vault-tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.js +1 -0
- package/node_modules/@xrkseek/exec-web/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/index.js +2 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.d.ts +13 -3
- package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.js +27 -4
- package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/README.md +8 -8
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +11 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +11 -3
- package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-minimal/README.md +2 -2
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js +1 -1
- 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 +5 -5
- package/node_modules/@xrkseek/preset-server/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.js +3 -2
- 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/session-events.d.ts +9 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.js +9 -0
- package/node_modules/@xrkseek/protocol/dist/validate.js.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/server-config/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/index.js +1 -0
- package/node_modules/@xrkseek/server-config/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/json-text.d.ts +8 -0
- package/node_modules/@xrkseek/server-config/dist/json-text.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-config/dist/json-text.js +12 -0
- package/node_modules/@xrkseek/server-config/dist/json-text.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/README.md +3 -2
- package/node_modules/@xrkseek/server-cron/dist/executions.d.ts +31 -0
- package/node_modules/@xrkseek/server-cron/dist/executions.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/executions.js +95 -0
- package/node_modules/@xrkseek/server-cron/dist/executions.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/server-cron/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-cron/dist/index.js +6 -0
- package/node_modules/@xrkseek/server-cron/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-cron/dist/scheduler.d.ts +4 -0
- package/node_modules/@xrkseek/server-cron/dist/scheduler.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-cron/dist/scheduler.js +33 -24
- package/node_modules/@xrkseek/server-cron/dist/scheduler.js.map +1 -1
- package/node_modules/@xrkseek/server-cron/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-cron/dist/tools.js +44 -6
- package/node_modules/@xrkseek/server-cron/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +2 -2
- 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 +2 -0
- package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.d.ts +37 -2
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.js +191 -28
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js +31 -5
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/worktree.d.ts +10 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/worktree.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/worktree.js +33 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/worktree.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/host-open-path.d.ts +9 -0
- 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 +13 -7
- package/node_modules/@xrkseek/server-face/dist/host-open-path.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/llm-provider-context.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/llm-provider-context.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/llm-provider-context.js +13 -0
- package/node_modules/@xrkseek/server-face/dist/llm-provider-context.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 +3 -1
- package/node_modules/@xrkseek/server-face/dist/llm-resolve.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/model-catalog.d.ts +4 -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 +24 -5
- package/node_modules/@xrkseek/server-face/dist/model-catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.js +5 -5
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +14 -2
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/select-session-model.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/select-session-model.js +8 -0
- package/node_modules/@xrkseek/server-face/dist/select-session-model.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-model-store.d.ts +11 -0
- package/node_modules/@xrkseek/server-face/dist/session-model-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-model-store.js +66 -0
- package/node_modules/@xrkseek/server-face/dist/session-model-store.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts +64 -13
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.js +173 -5
- package/node_modules/@xrkseek/server-face/dist/session-status.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 +4 -5
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.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 +36 -4
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts +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 +33 -2
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.d.ts +15 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.js +35 -7
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/a2a-inbound-public.d.ts +11 -0
- package/node_modules/@xrkseek/server-host/dist/a2a-inbound-public.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/a2a-inbound-public.js +22 -0
- package/node_modules/@xrkseek/server-host/dist/a2a-inbound-public.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/drain-status.d.ts +2 -2
- package/node_modules/@xrkseek/server-host/dist/drain-status.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/drain-status.js +2 -2
- package/node_modules/@xrkseek/server-host/dist/drain-status.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.d.ts +19 -0
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +248 -33
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js +3 -3
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js.map +1 -1
- package/node_modules/@xrkseek/server-host/package.json +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts +13 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js +24 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js +18 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +26 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/embedded-vector-store.d.ts +2 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/embedded-vector-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/embedded-vector-store.js +9 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/embedded-vector-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memory-embeddings.d.ts +37 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memory-embeddings.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memory-embeddings.js +125 -9
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memory-embeddings.js.map +1 -1
- package/node_modules/@xrkseek/spill/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/spill/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/spill/dist/index.js +1 -1
- package/node_modules/@xrkseek/spill/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/spill/dist/policy.d.ts +35 -0
- package/node_modules/@xrkseek/spill/dist/policy.d.ts.map +1 -1
- package/node_modules/@xrkseek/spill/dist/policy.js +45 -4
- package/node_modules/@xrkseek/spill/dist/policy.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +1 -0
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-curator.d.ts +46 -0
- package/node_modules/@xrkseek/workspace/dist/skill-curator.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/skill-curator.js +114 -0
- package/node_modules/@xrkseek/workspace/dist/skill-curator.js.map +1 -0
- package/package.json +5 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model-facing browser vault tools (Hermes browser_vault_list / fill subset).
|
|
3
|
+
*
|
|
4
|
+
* Opaque handles only — secret bytes never appear in tool results. Fill types
|
|
5
|
+
* into the live {@link BrowserSession} via action=type; the model passes handle
|
|
6
|
+
* + ref, never the secret.
|
|
7
|
+
*/
|
|
8
|
+
import { BROWSER_ERROR } from "./browser-tools.js";
|
|
9
|
+
import { WebError, isWebError } from "./types.js";
|
|
10
|
+
function fail(err) {
|
|
11
|
+
if (isWebError(err)) {
|
|
12
|
+
return {
|
|
13
|
+
content: `Error: ${err.message}`,
|
|
14
|
+
isError: true,
|
|
15
|
+
error: { name: "WebError", code: err.code },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
19
|
+
return {
|
|
20
|
+
content: `Error: ${message}`,
|
|
21
|
+
isError: true,
|
|
22
|
+
error: { name: "WebError", code: BROWSER_ERROR.CDP },
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function failArgs(message, code = BROWSER_ERROR.INVALID_ARGS) {
|
|
26
|
+
return {
|
|
27
|
+
content: `Error: ${message}`,
|
|
28
|
+
isError: true,
|
|
29
|
+
error: { name: "WebError", code },
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function pageOrigin(url) {
|
|
33
|
+
try {
|
|
34
|
+
return new URL(url).origin;
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* `browser_vault_list` + `browser_vault_fill` over Face/Host credential vault.
|
|
42
|
+
* Omit from the tool registry when {@link BrowserVaultAccess} is unset.
|
|
43
|
+
*/
|
|
44
|
+
export function createBrowserVaultTools(session, vault) {
|
|
45
|
+
const listTool = {
|
|
46
|
+
name: "browser_vault_list",
|
|
47
|
+
description: "List opaque browser-vault handles (label + optional origin). " +
|
|
48
|
+
"Secrets are never returned — pass a handle to browser_vault_fill with a snapshot @eN ref. " +
|
|
49
|
+
"Prefer this over asking the user to paste passwords into chat.",
|
|
50
|
+
parameters: {
|
|
51
|
+
type: "object",
|
|
52
|
+
properties: {},
|
|
53
|
+
},
|
|
54
|
+
async execute() {
|
|
55
|
+
const rows = await vault.list();
|
|
56
|
+
if (rows.length === 0) {
|
|
57
|
+
return {
|
|
58
|
+
content: "browser vault: (empty — configure credentials in Settings, then retry)",
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const lines = rows.map((r) => {
|
|
62
|
+
const origin = r.origin ? ` origin=${r.origin}` : "";
|
|
63
|
+
const kind = r.kind ? ` kind=${r.kind}` : "";
|
|
64
|
+
return `- handle=${r.handle} label=${JSON.stringify(r.label)}${kind}${origin}`;
|
|
65
|
+
});
|
|
66
|
+
return { content: `browser vault (${rows.length}):\n${lines.join("\n")}` };
|
|
67
|
+
},
|
|
68
|
+
isConcurrencySafe: () => true,
|
|
69
|
+
};
|
|
70
|
+
const fillTool = {
|
|
71
|
+
name: "browser_vault_fill",
|
|
72
|
+
description: "Fill the current page field (snapshot @eN ref) from an opaque vault handle. " +
|
|
73
|
+
"The secret is typed server-side and never appears in the tool result. " +
|
|
74
|
+
"When the handle has an origin, the open page origin must match exactly.",
|
|
75
|
+
parameters: {
|
|
76
|
+
type: "object",
|
|
77
|
+
properties: {
|
|
78
|
+
handle: {
|
|
79
|
+
type: "string",
|
|
80
|
+
description: "Opaque handle from browser_vault_list.",
|
|
81
|
+
},
|
|
82
|
+
ref: {
|
|
83
|
+
type: "string",
|
|
84
|
+
description: "Element ref from browser_snapshot / browser_open (e1 or @e1).",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
required: ["handle", "ref"],
|
|
88
|
+
},
|
|
89
|
+
async execute(args, signal) {
|
|
90
|
+
const handle = String(args?.handle ?? "").trim();
|
|
91
|
+
const ref = String(args?.ref ?? "").trim();
|
|
92
|
+
if (!handle)
|
|
93
|
+
return failArgs("handle is required");
|
|
94
|
+
if (!ref)
|
|
95
|
+
return failArgs("ref is required");
|
|
96
|
+
const rows = await vault.list();
|
|
97
|
+
const meta = rows.find((r) => r.handle === handle);
|
|
98
|
+
if (!meta) {
|
|
99
|
+
return failArgs(`unknown vault handle: ${handle}`, BROWSER_ERROR.VAULT_UNKNOWN);
|
|
100
|
+
}
|
|
101
|
+
let secret;
|
|
102
|
+
try {
|
|
103
|
+
secret = await vault.peek(handle);
|
|
104
|
+
}
|
|
105
|
+
catch (err) {
|
|
106
|
+
return fail(err);
|
|
107
|
+
}
|
|
108
|
+
if (!secret) {
|
|
109
|
+
return failArgs(`vault handle ${handle} has no secret configured`, BROWSER_ERROR.VAULT_EMPTY);
|
|
110
|
+
}
|
|
111
|
+
try {
|
|
112
|
+
const snap = await session.snapshot();
|
|
113
|
+
const origin = pageOrigin(snap.url);
|
|
114
|
+
if (meta.origin && origin && meta.origin !== origin) {
|
|
115
|
+
return failArgs(`vault origin mismatch: handle bound to ${meta.origin}, page is ${origin}`, BROWSER_ERROR.VAULT_ORIGIN);
|
|
116
|
+
}
|
|
117
|
+
const result = await session.act({ ref, action: "type", text: secret }, signal);
|
|
118
|
+
// Never echo secret — only filled_fields / handle / origin / success.
|
|
119
|
+
return {
|
|
120
|
+
content: JSON.stringify({
|
|
121
|
+
success: true,
|
|
122
|
+
handle,
|
|
123
|
+
ref,
|
|
124
|
+
filled_fields: ["value"],
|
|
125
|
+
kind: meta.kind ?? "credential",
|
|
126
|
+
origin: origin ?? null,
|
|
127
|
+
note: result.note,
|
|
128
|
+
}),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
catch (err) {
|
|
132
|
+
if (err instanceof WebError)
|
|
133
|
+
return fail(err);
|
|
134
|
+
return fail(err);
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
isConcurrencySafe: () => false,
|
|
138
|
+
};
|
|
139
|
+
return [listTool, fillTool];
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=browser-vault-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-vault-tools.js","sourceRoot":"","sources":["../src/browser-vault-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAqBlD,SAAS,IAAI,CAAC,GAAY;IACxB,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACpB,OAAO;YACL,OAAO,EAAE,UAAU,GAAG,CAAC,OAAO,EAAE;YAChC,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE;SAC5C,CAAC;IACJ,CAAC;IACD,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACjE,OAAO;QACL,OAAO,EAAE,UAAU,OAAO,EAAE;QAC5B,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,CAAC,GAAG,EAAE;KACrD,CAAC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AAM,CAAC,IAAI;qBAClB,CAAC;iBACH,CAAC;YACJ,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,IAAI,GAAG,YAAY,QAAQ;oBAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;gBAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;YACnB,CAAC;QACH,CAAC;QACD,iBAAiB,EAAE,GAAG,EAAE,CAAC,KAAK;KAC/B,CAAC;IAEF,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -14,6 +14,7 @@ export { createWebTools, type CreateWebToolsOptions, } from "./tools.js";
|
|
|
14
14
|
export { createHttpBrowserSession, type BrowserActRequest, type BrowserActResult, type BrowserSession, type BrowserSnapshotResult, } from "./browser-session.js";
|
|
15
15
|
export { browserCdpUrlFromEnv, connectCdpWebSocket, createBrowserSession, createCdpBrowserSession, resolveBrowserCdpUrl, resolveCdpDebuggerUrl, type BrowserProductConfig, type BrowserProductMode, type CdpCaller, } from "./browser-cdp.js";
|
|
16
16
|
export { BROWSER_ERROR, createBrowserTools, } from "./browser-tools.js";
|
|
17
|
+
export { createBrowserVaultTools, type BrowserVaultAccess, type BrowserVaultHandle, } from "./browser-vault-tools.js";
|
|
17
18
|
export { createBrowserRuntimeRegistry, type BrowserRuntimeRegistry, } from "./browser-runtime-registry.js";
|
|
18
19
|
export { extractBrowserElements, formatBrowserSnapshot, type BrowserElement, } from "./browser-html.js";
|
|
19
20
|
export interface DefaultWebAccessOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EACL,QAAQ,EACR,UAAU,EACV,KAAK,OAAO,EACZ,KA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,qBAAqB,EACrB,KAAK,cAAc,GACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,uBAAuB;IACtC,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IACrC,yDAAyD;IACzD,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAC;CAC3C;AAED,yFAAyF;AACzF,wBAAgB,sBAAsB,CACpC,OAAO,GAAE,uBAA4B,GACpC,gBAAgB,CAgBlB"}
|
|
@@ -14,6 +14,7 @@ export { createWebTools, } from "./tools.js";
|
|
|
14
14
|
export { createHttpBrowserSession, } from "./browser-session.js";
|
|
15
15
|
export { browserCdpUrlFromEnv, connectCdpWebSocket, createBrowserSession, createCdpBrowserSession, resolveBrowserCdpUrl, resolveCdpDebuggerUrl, } from "./browser-cdp.js";
|
|
16
16
|
export { BROWSER_ERROR, createBrowserTools, } from "./browser-tools.js";
|
|
17
|
+
export { createBrowserVaultTools, } from "./browser-vault-tools.js";
|
|
17
18
|
export { createBrowserRuntimeRegistry, } from "./browser-runtime-registry.js";
|
|
18
19
|
export { extractBrowserElements, formatBrowserSnapshot, } from "./browser-html.js";
|
|
19
20
|
/** Fetch is always HTTP. Search: keyed Tavily/Brave, else parallel-free → duckduckgo. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,GAEzB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,QAAQ,EACR,UAAU,GAWX,MAAM,YAAY,CAAC;AACp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ACJ,CAAC"}
|
|
@@ -71,5 +71,6 @@ export type DeepSeekAdapterOptions = Omit<OpenAiCompatibleOptions, "baseUrl" | "
|
|
|
71
71
|
export declare function createDeepSeekAdapter(options: DeepSeekAdapterOptions): LlmAdapter;
|
|
72
72
|
export { DeepSeekFileStore, DEFAULT_DEEPSEEK_FILE_POLICY, requestImageVariantId, } from "./file-store.js";
|
|
73
73
|
export { DEFAULT_REQUEST_IMAGE_MAX_BYTES, DEFAULT_REQUEST_IMAGE_PIXEL_BUDGET, resolveDeepSeekRequestImagePolicy, type DeepSeekReadImageRequest, } from "./request-policy.js";
|
|
74
|
+
export { MAX_IMAGE_TOKENS, REQUEST_IMAGE_MAX_DIMENSION, estimateImageTokens as deepSeekImageTokens, requestImageTokenDimensions as deepSeekRequestImageDimensions, } from "@xrkseek/attachment";
|
|
74
75
|
export { DeepSeekFilesClient } from "./files-api.js";
|
|
75
76
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,iBAAiB,EAGlB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,qBAAqB,CAAC;AAE7B,sFAAsF;AACtF,eAAO,MAAM,yBAAyB,6BAA6B,CAAC;AAEpE,sFAAsF;AACtF,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAQlE;AAED,yEAAyE;AACzE,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AAEvD,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,mBAAyB,CAAC;AAE3D,oEAAoE;AACpE,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AAExE,MAAM,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AE,iBAAiB,CAAC;IACvC,uEAAuE;IACvE,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,uEAAuE;IACvE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;CACtD,CAAC;AAYF;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,sBAAsB,GAC9B,UAAU,CAsFZ;AAED,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,+BAA+B,EAC/B,kCAAkC,EAClC,iCAAiC,EACjC,KAAK,wBAAwB,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,mBAAmB,IAAI,mBAAmB,EAC1C,2BAA2B,IAAI,8BAA8B,GAC9D,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -122,7 +122,7 @@ export function createDeepSeekAdapter(options) {
|
|
|
122
122
|
let mediaType = stored.mediaType;
|
|
123
123
|
let variantId = requestImageVariantId(stored.attachmentId, stored.data, mediaType);
|
|
124
124
|
if (ref && readImageRequest) {
|
|
125
|
-
const policy = resolveDeepSeekRequestImagePolicy(model);
|
|
125
|
+
const policy = resolveDeepSeekRequestImagePolicy(model, ref);
|
|
126
126
|
const req = await readImageRequest(ref, policy, ctx.signal);
|
|
127
127
|
data = req.data;
|
|
128
128
|
mediaType = req.mediaType;
|
|
@@ -155,5 +155,6 @@ export function createDeepSeekAdapter(options) {
|
|
|
155
155
|
}
|
|
156
156
|
export { DeepSeekFileStore, DEFAULT_DEEPSEEK_FILE_POLICY, requestImageVariantId, } from "./file-store.js";
|
|
157
157
|
export { DEFAULT_REQUEST_IMAGE_MAX_BYTES, DEFAULT_REQUEST_IMAGE_PIXEL_BUDGET, resolveDeepSeekRequestImagePolicy, } from "./request-policy.js";
|
|
158
|
+
export { MAX_IMAGE_TOKENS, REQUEST_IMAGE_MAX_DIMENSION, estimateImageTokens as deepSeekImageTokens, requestImageTokenDimensions as deepSeekRequestImageDimensions, } from "@xrkseek/attachment";
|
|
158
159
|
export { DeepSeekFilesClient } from "./files-api.js";
|
|
159
160
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,6BAA6B,GAE9B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EACL,iCAAiC,GAElC,MAAM,qBAAqB,CAAC;AAE7B,sFAAsF;AACtF,MAAM,CAAC,MAAM,yBAAyB,GAAG,0BAA0B,CAAC;AAEpE,sFAAsF;AACtF,MAAM,UAAU,yBAAyB,CAAC,OAAe;IACvD,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACnD,OAAO,CACL,OAAO,KAAK,0BAA0B;QACtC,OAAO,KAAK,6BAA6B;QACzC,OAAO,KAAK,yBAAyB;QACrC,OAAO,KAAK,4BAA4B,CACzC,CAAC;AACJ,CAAC;AAED,yEAAyE;AACzE,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AAEvD,2EAA2E;AAC3E,MAAM,CAAC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AAE3D,oEAAoE;AACpE,MAAM,CAAC,MAAM,yBAAyB,GAAG,8BAA8B,CAAC;AAmBxE;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAoC;IACvE;QACE,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,oBAAoB;QAC1B,aAAa,EAAE,SAAS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L,gBAAgB,EAChB,2BAA2B,EAC3B,mBAAmB,IAAI,mBAAmB,EAC1C,2BAA2B,IAAI,8BAA8B,GAC9D,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* DeepSeek route request-image policy: token-grid projection (V41) then
|
|
3
|
+
* optional long-edge cap, expressed as `{ maxPixels, maxBytes }` for the
|
|
4
|
+
* local request-image encoder.
|
|
5
|
+
*/
|
|
6
|
+
import { type ImageAttachmentRef, type ImageRequestPolicy, type RequestImageAttachment } from "@xrkseek/attachment";
|
|
7
|
+
/** Fallback pixel budget when source dimensions are unknown (legacy Soft path). */
|
|
3
8
|
export declare const DEFAULT_REQUEST_IMAGE_PIXEL_BUDGET = 640000;
|
|
4
9
|
/** Default encoded-byte cap per request image. */
|
|
5
10
|
export declare const DEFAULT_REQUEST_IMAGE_MAX_BYTES: number;
|
|
6
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Resolve the route policy for one DeepSeek model request image.
|
|
13
|
+
* When `source` width/height are known, apply V41 token-grid projection and
|
|
14
|
+
* the 4096 long-edge cap so the encoder downscales before wire/upload.
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveDeepSeekRequestImagePolicy(model: string, source?: Pick<ImageAttachmentRef, "width" | "height">): ImageRequestPolicy;
|
|
7
17
|
export type DeepSeekReadImageRequest = (ref: ImageAttachmentRef, policy: ImageRequestPolicy, signal?: AbortSignal) => Promise<RequestImageAttachment>;
|
|
8
18
|
//# sourceMappingURL=request-policy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-policy.d.ts","sourceRoot":"","sources":["../src/request-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"request-policy.d.ts","sourceRoot":"","sources":["../src/request-policy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,mFAAmF;AACnF,eAAO,MAAM,kCAAkC,SAAU,CAAC;AAC1D,kDAAkD;AAClD,eAAO,MAAM,+BAA+B,QAAc,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAC,GACpD,kBAAkB,CAyBpB;AAED,MAAM,MAAM,wBAAwB,GAAG,CACrC,GAAG,EAAE,kBAAkB,EACvB,MAAM,EAAE,kBAAkB,EAC1B,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,12 +1,35 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* DeepSeek route request-image policy: token-grid projection (V41) then
|
|
3
|
+
* optional long-edge cap, expressed as `{ maxPixels, maxBytes }` for the
|
|
4
|
+
* local request-image encoder.
|
|
5
|
+
*/
|
|
6
|
+
import { REQUEST_IMAGE_MAX_DIMENSION, longEdgeDimensions, requestImageTokenDimensions, } from "@xrkseek/attachment";
|
|
7
|
+
/** Fallback pixel budget when source dimensions are unknown (legacy Soft path). */
|
|
2
8
|
export const DEFAULT_REQUEST_IMAGE_PIXEL_BUDGET = 640_000;
|
|
3
9
|
/** Default encoded-byte cap per request image. */
|
|
4
10
|
export const DEFAULT_REQUEST_IMAGE_MAX_BYTES = 1024 * 1024;
|
|
5
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Resolve the route policy for one DeepSeek model request image.
|
|
13
|
+
* When `source` width/height are known, apply V41 token-grid projection and
|
|
14
|
+
* the 4096 long-edge cap so the encoder downscales before wire/upload.
|
|
15
|
+
*/
|
|
16
|
+
export function resolveDeepSeekRequestImagePolicy(model, source) {
|
|
6
17
|
void model;
|
|
18
|
+
const maxBytes = DEFAULT_REQUEST_IMAGE_MAX_BYTES;
|
|
19
|
+
if (source === undefined ||
|
|
20
|
+
!Number.isSafeInteger(source.width) ||
|
|
21
|
+
!Number.isSafeInteger(source.height) ||
|
|
22
|
+
source.width <= 0 ||
|
|
23
|
+
source.height <= 0) {
|
|
24
|
+
return { maxPixels: DEFAULT_REQUEST_IMAGE_PIXEL_BUDGET, maxBytes };
|
|
25
|
+
}
|
|
26
|
+
const projected = requestImageTokenDimensions(source.width, source.height);
|
|
27
|
+
const capped = Math.max(projected.width, projected.height) > REQUEST_IMAGE_MAX_DIMENSION
|
|
28
|
+
? longEdgeDimensions(source.width, source.height, REQUEST_IMAGE_MAX_DIMENSION)
|
|
29
|
+
: projected;
|
|
7
30
|
return {
|
|
8
|
-
maxPixels:
|
|
9
|
-
maxBytes
|
|
31
|
+
maxPixels: Math.max(1, capped.width * capped.height),
|
|
32
|
+
maxBytes,
|
|
10
33
|
};
|
|
11
34
|
}
|
|
12
35
|
//# sourceMappingURL=request-policy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-policy.js","sourceRoot":"","sources":["../src/request-policy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request-policy.js","sourceRoot":"","sources":["../src/request-policy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,2BAA2B,GAI5B,MAAM,qBAAqB,CAAC;AAE7B,mFAAmF;AACnF,MAAM,CAAC,MAAM,kCAAkC,GAAG,OAAO,CAAC;AAC1D,kDAAkD;AAClD,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3D;;;;GAIG;AACH,MAAM,UAAU,iCAAiC,CAC/C,KAAa,EACb,MAAqD;IAErD,KAAK,KAAK,CAAC;IACX,MAAM,QAAQ,GAAG,+BAA+B,CAAC;IACjD,IACE,MAAM,KAAK,SAAS;QACpB,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC;QACnC,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,MAAM,CAAC,KAAK,IAAI,CAAC;QACjB,MAAM,CAAC,MAAM,IAAI,CAAC,EAClB,CAAC;QACD,OAAO,EAAE,SAAS,EAAE,kCAAkC,EAAE,QAAQ,EAAE,CAAC;IACrE,CAAC;IACD,MAAM,SAAS,GAAG,2BAA2B,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3E,MAAM,MAAM,GACV,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,2BAA2B;QACvE,CAAC,CAAC,kBAAkB,CAChB,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,MAAM,EACb,2BAA2B,CAC5B;QACH,CAAC,CAAC,SAAS,CAAC;IAChB,OAAO;QACL,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;QACpD,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# presets/harness
|
|
2
|
-
|
|
3
|
-
**XRK Harness** session composition(Face 徽章 id `harness
|
|
4
|
-
|
|
5
|
-
Host 入口名 `server`(`presets/server`)只包一层 `AgentFactory
|
|
6
|
-
|
|
7
|
-
`workspaceInject` / `slashRecipes` default on with assemble — see `docs/workspace-inject.md`, `docs/slash-recipes.md`, `docs/profiles.md`.
|
|
8
|
-
插件扩展:`docs/plugin-development.md`。
|
|
1
|
+
# presets/harness
|
|
2
|
+
|
|
3
|
+
**XRK Harness** session composition(Face 徽章 id `harness`):fs + bash + std · web · lsp · pty · sandbox · workspace inject · nested subagents · optional `run_code`。
|
|
4
|
+
|
|
5
|
+
Host 入口名 `server`(`presets/server`)只包一层 `AgentFactory`,工具面与本包相同;`web` / `serve` 默认徽章即 `harness`。
|
|
6
|
+
|
|
7
|
+
`workspaceInject` / `slashRecipes` default on with assemble — see `docs/workspace-inject.md`, `docs/slash-recipes.md`, `docs/profiles.md`.
|
|
8
|
+
插件扩展:`docs/plugin-development.md`。
|
|
@@ -4,7 +4,7 @@ import { type SystemPromptAssembler } from "@xrkseek/core-system-prompt";
|
|
|
4
4
|
import { type ToolDefinition, type ToolPipeline, type ToolRegistry } from "@xrkseek/core-tools";
|
|
5
5
|
import { type FsService } from "@xrkseek/exec-fs";
|
|
6
6
|
import type { AttachmentStore } from "@xrkseek/attachment";
|
|
7
|
-
import { type WebAccess } from "@xrkseek/exec-web";
|
|
7
|
+
import { type BrowserVaultAccess, type WebAccess } from "@xrkseek/exec-web";
|
|
8
8
|
import { type ComputerUseService } from "@xrkseek/exec-computer-use";
|
|
9
9
|
import { type VoiceService } from "@xrkseek/exec-voice";
|
|
10
10
|
import { type ImageGenService } from "@xrkseek/exec-image-gen";
|
|
@@ -87,6 +87,11 @@ export interface HarnessCompositionOptions {
|
|
|
87
87
|
* across agent invalidate; Host stop / session finalize owns teardown.
|
|
88
88
|
*/
|
|
89
89
|
readonly browserRuntime?: import("@xrkseek/exec-web").BrowserRuntimeRegistry;
|
|
90
|
+
/**
|
|
91
|
+
* Opaque browser vault (Hermes browser_vault_*). Host wires Face credentials;
|
|
92
|
+
* secrets never appear in tool results.
|
|
93
|
+
*/
|
|
94
|
+
readonly browserVault?: BrowserVaultAccess;
|
|
90
95
|
/**
|
|
91
96
|
* Face `voice` product (Settings SoT). Ignored when `XRK_VOICE` is set.
|
|
92
97
|
*/
|
|
@@ -135,6 +140,11 @@ export interface HarnessCompositionOptions {
|
|
|
135
140
|
readonly contextFragmentProviders?: readonly ContextFragmentProvider[];
|
|
136
141
|
/** Char budget per collect phase (default 8000). */
|
|
137
142
|
readonly contextFragmentBudgetChars?: number;
|
|
143
|
+
/**
|
|
144
|
+
* Register the thin Guardian review fragment (default on when fragments are
|
|
145
|
+
* enabled). `false` skips it. Not a full Guardian LLM approval engine.
|
|
146
|
+
*/
|
|
147
|
+
readonly guardianFragments?: boolean;
|
|
138
148
|
/**
|
|
139
149
|
* Load `{productDir}/recipes/*.yaml` for `/id …` expand on turns.
|
|
140
150
|
* Default: on when assemble is enabled. `false` skips recipes only;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EASL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAML,KAAK,SAAS,EACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,
|
|
1
|
+
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EASL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAML,KAAK,SAAS,EACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAA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AAC,eAAe,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,EAAE,OAAO,QAAQ,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IACtC,yEAAyE;IACzE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IACpD,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;IACxC,gGAAgG;IAChG,QAAQ,CAAC,cAAc,CAAC,EAAE,mBAAmB,CAAC;IAC9C,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IACpC,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrE,wEAAwE;IACxE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAoFD,mEAAmE;AACnE,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,yBAAyB,GACjC,kBAAkB,CAm+BpB;AAED,eAAO,MAAM,MAAM;;;;CAIlB,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { prepareFaceSessionReferences } from "@xrkseek/xrk-session-reference/pre
|
|
|
4
4
|
import { createSystemPromptAssembler, } from "@xrkseek/core-system-prompt";
|
|
5
5
|
import { createReadTracker, createStdTools, createToolPipeline, createToolRegistry, createWriteIntentGuard, extractPathArg, SUBAGENT_ROUTING_PROMPT_TEXT, SESSION_QUERY_ROUTING_PROMPT_TEXT, } from "@xrkseek/core-tools";
|
|
6
6
|
import { createFsLocalProvider, createFsTools, createReadImageTool, formatFsRoutingPrompt, formatShellRoutingPrompt, } from "@xrkseek/exec-fs";
|
|
7
|
-
import { formatWebFetchGuidance, formatWebSearchGuidance, formatBrowserGuidance, createDefaultWebAccess, createWebTools, createBrowserTools, createBrowserSession, } from "@xrkseek/exec-web";
|
|
7
|
+
import { formatWebFetchGuidance, formatWebSearchGuidance, formatBrowserGuidance, createDefaultWebAccess, createWebTools, createBrowserTools, createBrowserVaultTools, createBrowserSession, } from "@xrkseek/exec-web";
|
|
8
8
|
import { COMPUTER_USE_PROMPT_TEXT, createComputerUseTools, createDefaultComputerUseAccess, } from "@xrkseek/exec-computer-use";
|
|
9
9
|
import { VOICE_PROMPT_TEXT, createDefaultVoiceAccess, createVoiceTools, } from "@xrkseek/exec-voice";
|
|
10
10
|
import { IMAGE_GEN_PROMPT_TEXT, createDefaultImageGenAccess, createImageGenTools, } from "@xrkseek/exec-image-gen";
|
|
@@ -17,7 +17,7 @@ import { CRON_PROMPT_TEXT, createCronTools, } from "@xrkseek/server-cron";
|
|
|
17
17
|
import { createBashTools, createLocalShell, createSessionScopedShell, toJobView, JOBS_PROMPT_TEXT, } from "@xrkseek/exec-shell";
|
|
18
18
|
import { createLocalSubprocess } from "@xrkseek/exec-subprocess";
|
|
19
19
|
import { createRegistryCodeToolBridge, createRunCodeTool, createWorkerCodeRuntime, } from "@xrkseek/code-runtime";
|
|
20
|
-
import { appendContextFragments, createAdditionalContextFragment, createContextFragmentPipeline, fragmentsToPrepareContexts, } from "@xrkseek/context-fragments";
|
|
20
|
+
import { appendContextFragments, createAdditionalContextFragment, createContextFragmentPipeline, createGuardianReviewProvider, fragmentsToPrepareContexts, } from "@xrkseek/context-fragments";
|
|
21
21
|
import { createReplayAdapter } from "@xrkseek/llm-replay";
|
|
22
22
|
import { createPolicyToolPre, createSessionReadOnlyToolPre, createWritePathSecurityPre, createWritePathSecurityPost, } from "@xrkseek/policy";
|
|
23
23
|
import { effectiveSandboxMode, flattenText, isHumanUserMessageSource, shouldConfineSandbox, } from "@xrkseek/protocol";
|
|
@@ -303,6 +303,11 @@ export function createHarnessComposition(options) {
|
|
|
303
303
|
: {})) {
|
|
304
304
|
tools.register(tool);
|
|
305
305
|
}
|
|
306
|
+
if (options.browserVault) {
|
|
307
|
+
for (const tool of createBrowserVaultTools(browser, options.browserVault)) {
|
|
308
|
+
tools.register(tool);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
306
311
|
}
|
|
307
312
|
if (options.computerUseTools !== false) {
|
|
308
313
|
const service = typeof options.computerUseTools === "object"
|
|
@@ -752,6 +757,9 @@ export function createHarnessComposition(options) {
|
|
|
752
757
|
contextFragments.register(provider);
|
|
753
758
|
}
|
|
754
759
|
}
|
|
760
|
+
if (contextFragments && options.guardianFragments !== false) {
|
|
761
|
+
contextFragments.register(createGuardianReviewProvider());
|
|
762
|
+
}
|
|
755
763
|
if (contextFragments) {
|
|
756
764
|
contextFragments.register({
|
|
757
765
|
id: "learning-loop-nudge",
|
|
@@ -994,7 +1002,7 @@ export function createHarnessComposition(options) {
|
|
|
994
1002
|
}
|
|
995
1003
|
export const preset = {
|
|
996
1004
|
id: presetId,
|
|
997
|
-
description: "XRK Harness composition: fs + shell + sandbox + web + lsp + pty",
|
|
1005
|
+
description: "XRK Harness composition: fs + shell + sandbox + web + lsp + pty + nested subagents",
|
|
998
1006
|
create: createHarnessComposition,
|
|
999
1007
|
};
|
|
1000
1008
|
//# sourceMappingURL=preset.js.map
|