@xrkseek/harness 0.3.11 → 0.4.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/README.md +2 -1
- 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/attachment/dist/request-image-bound.d.ts +4 -2
- package/node_modules/@xrkseek/attachment/dist/request-image-bound.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/request-image-bound.js +59 -32
- package/node_modules/@xrkseek/attachment/dist/request-image-bound.js.map +1 -1
- package/node_modules/@xrkseek/attachment-local/README.md +6 -3
- package/node_modules/@xrkseek/attachment-local/dist/index.d.ts +2 -0
- package/node_modules/@xrkseek/attachment-local/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/index.js +9 -8
- package/node_modules/@xrkseek/attachment-local/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts +3 -2
- 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 -2
- package/node_modules/@xrkseek/attachment-local/dist/request-image.js.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/store.js +3 -0
- package/node_modules/@xrkseek/attachment-local/dist/store.js.map +1 -1
- package/node_modules/@xrkseek/attachment-local/package.json +26 -25
- package/node_modules/@xrkseek/code-runtime/README.md +13 -5
- package/node_modules/@xrkseek/code-runtime/dist/index.d.ts +39 -1
- package/node_modules/@xrkseek/code-runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/code-runtime/dist/index.js +202 -60
- package/node_modules/@xrkseek/code-runtime/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts +17 -0
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.js +15 -0
- package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts +7 -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 +72 -37
- 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 +11 -1
- 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 +48 -38
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.d.ts +31 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.js +54 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.js.map +1 -0
- package/node_modules/@xrkseek/core-agent-loop/package.json +35 -34
- package/node_modules/@xrkseek/core-session/README.md +33 -33
- package/node_modules/@xrkseek/core-session/dist/admit.d.ts +5 -0
- package/node_modules/@xrkseek/core-session/dist/admit.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/admit.js +14 -0
- package/node_modules/@xrkseek/core-session/dist/admit.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts +16 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.js +56 -6
- package/node_modules/@xrkseek/core-session/dist/compaction.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/dangling.d.ts +0 -4
- package/node_modules/@xrkseek/core-session/dist/dangling.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/dangling.js +0 -2
- package/node_modules/@xrkseek/core-session/dist/dangling.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/drain-hub.d.ts +2 -0
- package/node_modules/@xrkseek/core-session/dist/drain-hub.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/drain-hub.js +8 -0
- package/node_modules/@xrkseek/core-session/dist/drain-hub.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/image-offload.d.ts +26 -0
- package/node_modules/@xrkseek/core-session/dist/image-offload.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/image-offload.js +141 -0
- package/node_modules/@xrkseek/core-session/dist/image-offload.js.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/index.d.ts +29 -10
- package/node_modules/@xrkseek/core-session/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.js +59 -14
- package/node_modules/@xrkseek/core-session/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/session-interchange.d.ts +26 -0
- package/node_modules/@xrkseek/core-session/dist/session-interchange.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/session-interchange.js +271 -0
- package/node_modules/@xrkseek/core-session/dist/session-interchange.js.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts +8 -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 +131 -49
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/store-lock.d.ts +22 -0
- package/node_modules/@xrkseek/core-session/dist/store-lock.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/store-lock.js +143 -0
- package/node_modules/@xrkseek/core-session/dist/store-lock.js.map +1 -0
- package/node_modules/@xrkseek/core-system-prompt/README.md +2 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/index.d.ts +8 -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 +25 -4
- package/node_modules/@xrkseek/core-system-prompt/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.d.ts +27 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.js +56 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.js.map +1 -0
- package/node_modules/@xrkseek/core-tools/dist/output-bound.d.ts +6 -1
- package/node_modules/@xrkseek/core-tools/dist/output-bound.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/output-bound.js +6 -1
- package/node_modules/@xrkseek/core-tools/dist/output-bound.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/pipeline.d.ts +2 -1
- package/node_modules/@xrkseek/core-tools/dist/pipeline.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/pipeline.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/presentation.d.ts +3 -5
- package/node_modules/@xrkseek/core-tools/dist/presentation.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/presentation.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js +1 -0
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/README.md +13 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/background.d.ts +11 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/background.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/background.js +76 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/background.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts +20 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js +58 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts +28 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js +62 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts +12 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.js +100 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/registry.d.ts +12 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/registry.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/registry.js +28 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/registry.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts +15 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.js +133 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts +74 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/types.js +24 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts +10 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js +253 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/package.json +26 -0
- package/node_modules/@xrkseek/exec-fs/dist/document-extract.d.ts +9 -0
- package/node_modules/@xrkseek/exec-fs/dist/document-extract.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/document-extract.js +427 -0
- package/node_modules/@xrkseek/exec-fs/dist/document-extract.js.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +6 -3
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js +13 -17
- package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/paths.d.ts +9 -0
- package/node_modules/@xrkseek/exec-fs/dist/paths.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/paths.js +101 -2
- package/node_modules/@xrkseek/exec-fs/dist/paths.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/README.md +11 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts +2 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js +7 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts +24 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js +55 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.d.ts +11 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.js +32 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts +13 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js +67 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts +17 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js +130 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts +37 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/types.js +15 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/package.json +27 -0
- package/node_modules/@xrkseek/exec-memory/README.md +11 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.d.ts +4 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.js +4 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/store.d.ts +43 -0
- package/node_modules/@xrkseek/exec-memory/dist/store.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/store.js +365 -0
- package/node_modules/@xrkseek/exec-memory/dist/store.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/tools.d.ts +8 -0
- package/node_modules/@xrkseek/exec-memory/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/tools.js +145 -0
- package/node_modules/@xrkseek/exec-memory/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/write-path.d.ts +26 -0
- package/node_modules/@xrkseek/exec-memory/dist/write-path.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/write-path.js +82 -0
- package/node_modules/@xrkseek/exec-memory/dist/write-path.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/package.json +27 -0
- package/node_modules/@xrkseek/exec-pty/dist/backend.d.ts +3 -0
- package/node_modules/@xrkseek/exec-pty/dist/backend.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/backend.js +7 -2
- package/node_modules/@xrkseek/exec-pty/dist/backend.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.d.ts +35 -0
- package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.js +161 -0
- package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.js.map +1 -0
- package/node_modules/@xrkseek/exec-pty/dist/handle.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/handle.js +2 -0
- package/node_modules/@xrkseek/exec-pty/dist/handle.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.d.ts +3 -0
- package/node_modules/@xrkseek/exec-pty/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.js +3 -0
- package/node_modules/@xrkseek/exec-pty/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/process-inspector.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/process-inspector.js +6 -1
- package/node_modules/@xrkseek/exec-pty/dist/process-inspector.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.d.ts +8 -2
- package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.js +4 -3
- package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/session.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/session.js +3 -37
- package/node_modules/@xrkseek/exec-pty/dist/session.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/windows-pty.d.ts +9 -0
- package/node_modules/@xrkseek/exec-pty/dist/windows-pty.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-pty/dist/windows-pty.js +14 -0
- package/node_modules/@xrkseek/exec-pty/dist/windows-pty.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/README.md +15 -6
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts +14 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js +56 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/docker.d.ts +30 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/docker.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/docker.js +89 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/docker.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts +5 -28
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js +5 -85
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts +44 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js +108 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/service.d.ts +37 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/service.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/service.js +112 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/service.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/windows.d.ts +56 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/windows.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/windows.js +134 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/windows.js.map +1 -0
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts +12 -0
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.js +51 -5
- package/node_modules/@xrkseek/exec-shell/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-ssh/README.md +16 -0
- package/node_modules/@xrkseek/exec-ssh/dist/code.d.ts +8 -0
- package/node_modules/@xrkseek/exec-ssh/dist/code.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/code.js +66 -0
- package/node_modules/@xrkseek/exec-ssh/dist/code.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/config.d.ts +21 -0
- package/node_modules/@xrkseek/exec-ssh/dist/config.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/config.js +30 -0
- package/node_modules/@xrkseek/exec-ssh/dist/config.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/directory.d.ts +29 -0
- package/node_modules/@xrkseek/exec-ssh/dist/directory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/directory.js +109 -0
- package/node_modules/@xrkseek/exec-ssh/dist/directory.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/fs.d.ts +11 -0
- package/node_modules/@xrkseek/exec-ssh/dist/fs.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/fs.js +214 -0
- package/node_modules/@xrkseek/exec-ssh/dist/fs.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/index.d.ts +10 -0
- package/node_modules/@xrkseek/exec-ssh/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/index.js +10 -0
- package/node_modules/@xrkseek/exec-ssh/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/paths.d.ts +10 -0
- package/node_modules/@xrkseek/exec-ssh/dist/paths.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/paths.js +34 -0
- package/node_modules/@xrkseek/exec-ssh/dist/paths.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/providers.d.ts +19 -0
- package/node_modules/@xrkseek/exec-ssh/dist/providers.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/providers.js +22 -0
- package/node_modules/@xrkseek/exec-ssh/dist/providers.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/quote.d.ts +5 -0
- package/node_modules/@xrkseek/exec-ssh/dist/quote.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/quote.js +11 -0
- package/node_modules/@xrkseek/exec-ssh/dist/quote.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/session.d.ts +31 -0
- package/node_modules/@xrkseek/exec-ssh/dist/session.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/session.js +89 -0
- package/node_modules/@xrkseek/exec-ssh/dist/session.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/subprocess.d.ts +8 -0
- package/node_modules/@xrkseek/exec-ssh/dist/subprocess.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/subprocess.js +30 -0
- package/node_modules/@xrkseek/exec-ssh/dist/subprocess.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/package.json +28 -0
- package/node_modules/@xrkseek/exec-subprocess/README.md +1 -1
- package/node_modules/@xrkseek/exec-video-gen/README.md +19 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/format.d.ts +2 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/format.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js +8 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts +24 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/index.js +57 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.d.ts +20 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.js +105 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts +16 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js +113 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts +23 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js +242 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts +66 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/types.js +25 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/package.json +27 -0
- package/node_modules/@xrkseek/exec-voice/README.md +25 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.d.ts +44 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.js +163 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/env.d.ts +23 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/env.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/env.js +93 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/env.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/index.d.ts +51 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/index.js +44 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/session.d.ts +26 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/session.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/session.js +96 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/session.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/types.d.ts +91 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/types.js +10 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/format.d.ts +2 -0
- package/node_modules/@xrkseek/exec-voice/dist/format.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/format.js +8 -0
- package/node_modules/@xrkseek/exec-voice/dist/format.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/index.d.ts +24 -0
- package/node_modules/@xrkseek/exec-voice/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/index.js +53 -0
- package/node_modules/@xrkseek/exec-voice/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/memory.d.ts +11 -0
- package/node_modules/@xrkseek/exec-voice/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/memory.js +85 -0
- package/node_modules/@xrkseek/exec-voice/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/openai-http.d.ts +16 -0
- package/node_modules/@xrkseek/exec-voice/dist/openai-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/openai-http.js +135 -0
- package/node_modules/@xrkseek/exec-voice/dist/openai-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/tools.d.ts +14 -0
- package/node_modules/@xrkseek/exec-voice/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/tools.js +240 -0
- package/node_modules/@xrkseek/exec-voice/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/types.d.ts +69 -0
- package/node_modules/@xrkseek/exec-voice/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/types.js +16 -0
- package/node_modules/@xrkseek/exec-voice/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/package.json +31 -0
- package/node_modules/@xrkseek/exec-web/README.md +5 -5
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts +23 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js +286 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-html.d.ts +26 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-html.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-html.js +118 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-html.js.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts +33 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js +113 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts +22 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js +172 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/format.d.ts +4 -0
- package/node_modules/@xrkseek/exec-web/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/format.js +13 -0
- package/node_modules/@xrkseek/exec-web/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts +5 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.js +5 -1
- package/node_modules/@xrkseek/exec-web/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm/dist/index.d.ts +0 -4
- package/node_modules/@xrkseek/llm/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm/dist/index.js +0 -20
- package/node_modules/@xrkseek/llm/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js +2 -6
- package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/package.json +30 -29
- package/node_modules/@xrkseek/mcp/README.md +36 -2
- package/node_modules/@xrkseek/mcp/dist/client.d.ts.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/client.js +220 -28
- package/node_modules/@xrkseek/mcp/dist/client.js.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/index.d.ts +7 -4
- package/node_modules/@xrkseek/mcp/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/index.js +6 -3
- package/node_modules/@xrkseek/mcp/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/list-tools.d.ts +15 -0
- package/node_modules/@xrkseek/mcp/dist/list-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/list-tools.js +40 -0
- package/node_modules/@xrkseek/mcp/dist/list-tools.js.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/oauth-device.d.ts +104 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-device.d.ts.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-device.js +338 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-device.js.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-discovery.d.ts +92 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-discovery.d.ts.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-discovery.js +232 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-discovery.js.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/resources.d.ts +24 -0
- package/node_modules/@xrkseek/mcp/dist/resources.d.ts.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/resources.js +127 -0
- package/node_modules/@xrkseek/mcp/dist/resources.js.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/types.d.ts +61 -0
- package/node_modules/@xrkseek/mcp/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/engine.d.ts +12 -1
- package/node_modules/@xrkseek/policy/dist/engine.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/engine.js +31 -5
- package/node_modules/@xrkseek/policy/dist/engine.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/index.d.ts +6 -5
- package/node_modules/@xrkseek/policy/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/index.js +5 -4
- package/node_modules/@xrkseek/policy/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/load.d.ts +12 -4
- package/node_modules/@xrkseek/policy/dist/load.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/load.js +40 -21
- package/node_modules/@xrkseek/policy/dist/load.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/permission-pre.d.ts +7 -0
- package/node_modules/@xrkseek/policy/dist/permission-pre.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/permission-pre.js +14 -0
- package/node_modules/@xrkseek/policy/dist/permission-pre.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/rules.d.ts +30 -0
- package/node_modules/@xrkseek/policy/dist/rules.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/rules.js +102 -0
- package/node_modules/@xrkseek/policy/dist/rules.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/ruleset.d.ts +4 -1
- package/node_modules/@xrkseek/policy/dist/ruleset.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/ruleset.js +39 -2
- package/node_modules/@xrkseek/policy/dist/ruleset.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/schema.d.ts +16 -1
- package/node_modules/@xrkseek/policy/dist/schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/schema.js +15 -1
- package/node_modules/@xrkseek/policy/dist/schema.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/types.d.ts +40 -2
- package/node_modules/@xrkseek/policy/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/wire-error.d.ts +30 -0
- package/node_modules/@xrkseek/policy/dist/wire-error.d.ts.map +1 -0
- package/node_modules/@xrkseek/policy/dist/wire-error.js +42 -0
- package/node_modules/@xrkseek/policy/dist/wire-error.js.map +1 -0
- package/node_modules/@xrkseek/policy/package.json +31 -26
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +107 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +331 -19
- 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 +7 -0
- package/node_modules/@xrkseek/preset-minimal/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js +7 -4
- 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/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.js +5 -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 +33 -35
- package/node_modules/@xrkseek/protocol/dist/content.d.ts +5 -0
- package/node_modules/@xrkseek/protocol/dist/content.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/content.js +4 -2
- package/node_modules/@xrkseek/protocol/dist/content.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.d.ts +4 -2
- package/node_modules/@xrkseek/protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.js +3 -1
- package/node_modules/@xrkseek/protocol/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts +2 -321
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.js +106 -61
- package/node_modules/@xrkseek/protocol/dist/json-schema.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts +28 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.js +2 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/sidebar-previews.d.ts +84 -0
- package/node_modules/@xrkseek/protocol/dist/sidebar-previews.d.ts.map +1 -0
- package/node_modules/@xrkseek/protocol/dist/sidebar-previews.js +36 -0
- package/node_modules/@xrkseek/protocol/dist/sidebar-previews.js.map +1 -0
- package/node_modules/@xrkseek/protocol/dist/validate.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.js +154 -0
- package/node_modules/@xrkseek/protocol/dist/validate.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.d.ts +132 -0
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.d.ts.map +1 -0
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.js +160 -0
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.js.map +1 -0
- package/node_modules/@xrkseek/server-config/dist/home.d.ts +26 -10
- package/node_modules/@xrkseek/server-config/dist/home.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/home.js +40 -30
- package/node_modules/@xrkseek/server-config/dist/home.js.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/server-config/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/index.js +1 -1
- package/node_modules/@xrkseek/server-config/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/mcp-servers.d.ts +2 -0
- package/node_modules/@xrkseek/server-config/dist/mcp-servers.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/mcp-servers.js +1 -0
- package/node_modules/@xrkseek/server-config/dist/mcp-servers.js.map +1 -1
- package/node_modules/@xrkseek/server-config/package.json +28 -27
- package/node_modules/@xrkseek/server-cron/README.md +11 -0
- package/node_modules/@xrkseek/server-cron/dist/deliver.d.ts +9 -0
- package/node_modules/@xrkseek/server-cron/dist/deliver.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/deliver.js +59 -0
- package/node_modules/@xrkseek/server-cron/dist/deliver.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/index.d.ts +27 -0
- package/node_modules/@xrkseek/server-cron/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/index.js +48 -0
- package/node_modules/@xrkseek/server-cron/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/runner.d.ts +10 -0
- package/node_modules/@xrkseek/server-cron/dist/runner.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/runner.js +62 -0
- package/node_modules/@xrkseek/server-cron/dist/runner.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/schedule.d.ts +9 -0
- package/node_modules/@xrkseek/server-cron/dist/schedule.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/schedule.js +108 -0
- package/node_modules/@xrkseek/server-cron/dist/schedule.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/scheduler.d.ts +29 -0
- package/node_modules/@xrkseek/server-cron/dist/scheduler.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/scheduler.js +152 -0
- package/node_modules/@xrkseek/server-cron/dist/scheduler.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/store.d.ts +26 -0
- package/node_modules/@xrkseek/server-cron/dist/store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/store.js +127 -0
- package/node_modules/@xrkseek/server-cron/dist/store.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/tools.d.ts +8 -0
- package/node_modules/@xrkseek/server-cron/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/tools.js +183 -0
- package/node_modules/@xrkseek/server-cron/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/types.d.ts +77 -0
- package/node_modules/@xrkseek/server-cron/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/types.js +17 -0
- package/node_modules/@xrkseek/server-cron/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/package.json +26 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/index.js +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.d.ts +9 -0
- 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 +31 -4
- 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 +2 -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 +16 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.d.ts +56 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.js +233 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/approvals.d.ts +10 -1
- package/node_modules/@xrkseek/server-face/dist/approvals.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/approvals.js +24 -0
- package/node_modules/@xrkseek/server-face/dist/approvals.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +51 -3
- 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 +3 -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 +34 -0
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.js +287 -0
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/face-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/face-schema.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/fork-cut.d.ts +33 -0
- package/node_modules/@xrkseek/server-face/dist/fork-cut.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/fork-cut.js +114 -0
- package/node_modules/@xrkseek/server-face/dist/fork-cut.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/catalog.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js +2 -2
- package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/changes.d.ts +23 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/changes.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/changes.js +113 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/changes.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js +10 -3
- package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/host.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/host.js +62 -9
- package/node_modules/@xrkseek/server-face/dist/handlers/host.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session-added.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session-added.js +3 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session-added.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 +45 -23
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/subagent.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/subagent.js +3 -2
- package/node_modules/@xrkseek/server-face/dist/handlers/subagent.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/host-open-path.d.ts +4 -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 +24 -2
- package/node_modules/@xrkseek/server-face/dist/host-open-path.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +7 -6
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +6 -5
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/last-good-config.d.ts +30 -0
- package/node_modules/@xrkseek/server-face/dist/last-good-config.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/last-good-config.js +39 -0
- package/node_modules/@xrkseek/server-face/dist/last-good-config.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/permissions.d.ts +10 -2
- package/node_modules/@xrkseek/server-face/dist/permissions.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/permissions.js +40 -3
- package/node_modules/@xrkseek/server-face/dist/permissions.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/plugin-boot.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/plugin-boot.js +4 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-boot.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.d.ts +12 -4
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.js +6 -6
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.js +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js +3 -0
- package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js.map +1 -1
- 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 +46 -12
- package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts +8 -1
- package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.d.ts +2 -7
- 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 +2 -11
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/todos.d.ts +4 -2
- package/node_modules/@xrkseek/server-face/dist/projections/units/todos.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/todos.js +5 -5
- package/node_modules/@xrkseek/server-face/dist/projections/units/todos.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.d.ts +13 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.js +104 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +10 -3
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +105 -10
- 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 +12 -1
- package/node_modules/@xrkseek/server-face/dist/select-session-model.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +4 -0
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js +253 -41
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-document.d.ts +3 -0
- package/node_modules/@xrkseek/server-face/dist/settings-document.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-document.js +84 -23
- 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 +11 -0
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.d.ts +9 -2
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.js +21 -3
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts +8 -2
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js +185 -38
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-worktree.d.ts +33 -0
- package/node_modules/@xrkseek/server-face/dist/subagent-worktree.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/subagent-worktree.js +172 -0
- package/node_modules/@xrkseek/server-face/dist/subagent-worktree.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/types.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/paths.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/paths.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/wire/paths.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.js +16 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.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 +40 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js.map +1 -1
- package/node_modules/@xrkseek/server-face/package.json +56 -55
- package/node_modules/@xrkseek/server-host/dist/index.d.ts +18 -2
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +340 -48
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.d.ts +22 -0
- package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.js +37 -0
- package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts +19 -5
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js +161 -30
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/policy-file-watch.d.ts +18 -0
- package/node_modules/@xrkseek/server-host/dist/policy-file-watch.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/policy-file-watch.js +91 -0
- package/node_modules/@xrkseek/server-host/dist/policy-file-watch.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.d.ts +29 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.js +111 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.d.ts +101 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.js +377 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.d.ts +25 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.js +343 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.js.map +1 -0
- 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 +66 -6
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts +11 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js +188 -12
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.d.ts +35 -0
- package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.js +86 -0
- package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.js.map +1 -0
- package/node_modules/@xrkseek/server-host/package.json +3 -0
- package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts +6 -2
- package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/boot-inject.js +6 -1
- package/node_modules/@xrkseek/server-http/dist/boot-inject.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js +4 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts +1 -3
- 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-classifier.d.ts +36 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.js +102 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts +5 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js +43 -17
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js +23 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js +16 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-boot.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-boot.js +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-boot.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts +4 -1
- 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 +33 -6
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js +0 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.d.ts +13 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.js +254 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-npm-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-npm-bridge.js +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-npm-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js +4 -5
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts +9 -11
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js +19 -47
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js +3 -15
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.d.ts +15 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.js +165 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.js +11 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.js +23 -33
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts +9 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js +36 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.d.ts +4 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.js +13 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts +4 -2
- 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 +3 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js +12 -8
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.d.ts +40 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.js +139 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js +4 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js +137 -27
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js +4 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-python-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-python-bridge.js +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-python-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts +3 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js +45 -15
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.d.ts +1 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.js +3 -23
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js +14 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire-normalize.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire-normalize.js +4 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire-normalize.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/host-policy-error.d.ts +12 -0
- package/node_modules/@xrkseek/server-http/dist/host-policy-error.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/host-policy-error.js +19 -0
- package/node_modules/@xrkseek/server-http/dist/host-policy-error.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/host-wire.js +18 -0
- package/node_modules/@xrkseek/server-http/dist/host-wire.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts +3 -3
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +3 -3
- package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/index.d.ts +5 -2
- package/node_modules/@xrkseek/server-http/dist/sidebar/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/index.js +4 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.d.ts +23 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.js +103 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts +26 -4
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js +158 -11
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.d.ts +5 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.js +0 -4
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-face-bridge.d.ts +45 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-face-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-git.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-git.js +2 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-git.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.d.ts +4 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.js +24 -2
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.d.ts +41 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.js +60 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-prefs-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-prefs-store.js +1 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-prefs-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +0 -6
- 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 +1 -10
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts +0 -11
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js +8 -4
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js +2 -8
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js.map +1 -1
- package/node_modules/@xrkseek/server-http/package.json +42 -40
- package/node_modules/@xrkseek/server-loader/dist/hooks.d.ts +32 -0
- package/node_modules/@xrkseek/server-loader/dist/hooks.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/hooks.js +70 -0
- package/node_modules/@xrkseek/server-loader/dist/hooks.js.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts +19 -4
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/index.js +42 -8
- package/node_modules/@xrkseek/server-loader/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts +5 -2
- package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/kinds.js +6 -1
- package/node_modules/@xrkseek/server-loader/dist/kinds.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.d.ts +63 -0
- package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.js +185 -0
- package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.js.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/load-failures.d.ts +54 -0
- package/node_modules/@xrkseek/server-loader/dist/load-failures.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/load-failures.js +50 -0
- package/node_modules/@xrkseek/server-loader/dist/load-failures.js.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/load.d.ts +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.js +33 -7
- package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts +9 -2
- package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.js +27 -4
- package/node_modules/@xrkseek/server-loader/dist/managed-state.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/manifest.d.ts +5 -0
- package/node_modules/@xrkseek/server-loader/dist/manifest.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/manifest.js +3 -3
- package/node_modules/@xrkseek/server-loader/dist/manifest.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/policy.d.ts +13 -4
- package/node_modules/@xrkseek/server-loader/dist/policy.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/policy.js +21 -3
- package/node_modules/@xrkseek/server-loader/dist/policy.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.d.ts +49 -0
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.js +248 -0
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.js.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/startup-audit.d.ts +46 -0
- package/node_modules/@xrkseek/server-loader/dist/startup-audit.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/startup-audit.js +121 -0
- package/node_modules/@xrkseek/server-loader/dist/startup-audit.js.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/types.d.ts +25 -1
- package/node_modules/@xrkseek/server-loader/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/session-projection/dist/index.d.ts +1 -3
- package/node_modules/@xrkseek/session-projection/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/session-projection/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/README.md +11 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts +28 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.js +80 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/memory.d.ts +11 -0
- package/node_modules/@xrkseek/session-telemetry/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/memory.js +18 -0
- package/node_modules/@xrkseek/session-telemetry/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.d.ts +26 -0
- package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.js +161 -0
- package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/record.d.ts +8 -0
- package/node_modules/@xrkseek/session-telemetry/dist/record.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/record.js +54 -0
- package/node_modules/@xrkseek/session-telemetry/dist/record.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/types.d.ts +33 -0
- package/node_modules/@xrkseek/session-telemetry/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/types.js +13 -0
- package/node_modules/@xrkseek/session-telemetry/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.d.ts +14 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.js +52 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/package.json +27 -0
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js +2 -1
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +3 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +3 -1
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.d.ts +2 -1
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.js +9 -4
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-sources.d.ts +15 -2
- package/node_modules/@xrkseek/workspace/dist/inject-sources.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-sources.js +23 -5
- package/node_modules/@xrkseek/workspace/dist/inject-sources.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.js +3 -1
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-install.d.ts +61 -0
- package/node_modules/@xrkseek/workspace/dist/skill-install.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/skill-install.js +346 -0
- package/node_modules/@xrkseek/workspace/dist/skill-install.js.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/tool-output-persist.d.ts +1 -5
- package/node_modules/@xrkseek/workspace/dist/tool-output-persist.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/tool-output-persist.js +10 -22
- package/node_modules/@xrkseek/workspace/dist/tool-output-persist.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/user-product-home.d.ts +18 -0
- package/node_modules/@xrkseek/workspace/dist/user-product-home.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/user-product-home.js +45 -0
- package/node_modules/@xrkseek/workspace/dist/user-product-home.js.map +1 -0
- package/node_modules/@xrkseek/workspace/package.json +28 -27
- package/node_modules/@xrkseek/xrk-home-paths/README.md +4 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/index.d.ts +44 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/index.js +83 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.d.ts +22 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.js +139 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.js.map +1 -0
- package/node_modules/@xrkseek/xrk-home-paths/package.json +24 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.d.ts +0 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.d.ts.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.js +0 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.js.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts +3 -2
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js +11 -21
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/package.json +56 -55
- package/node_modules/smol-toml/LICENSE +24 -0
- package/node_modules/smol-toml/README.md +418 -0
- package/node_modules/smol-toml/dist/date.d.ts +41 -0
- package/node_modules/smol-toml/dist/date.js +127 -0
- package/node_modules/smol-toml/dist/error.d.ts +38 -0
- package/node_modules/smol-toml/dist/error.js +63 -0
- package/node_modules/smol-toml/dist/extract.js +69 -0
- package/node_modules/smol-toml/dist/index.cjs +734 -0
- package/node_modules/smol-toml/dist/index.d.ts +43 -0
- package/node_modules/smol-toml/dist/index.js +33 -0
- package/node_modules/smol-toml/dist/parse.d.ts +36 -0
- package/node_modules/smol-toml/dist/parse.js +149 -0
- package/node_modules/smol-toml/dist/primitive.js +238 -0
- package/node_modules/smol-toml/dist/stringify.d.ts +31 -0
- package/node_modules/smol-toml/dist/stringify.js +181 -0
- package/node_modules/smol-toml/dist/struct.js +179 -0
- package/node_modules/smol-toml/dist/util.d.ts +38 -0
- package/node_modules/smol-toml/dist/util.js +89 -0
- package/node_modules/smol-toml/package.json +68 -0
- package/package.json +21 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP browser session: one active page, snapshot refs, act (click/type).
|
|
3
|
+
* Reuses WebFetch + URL policy — not CDP/Playwright (desktop computer-use is separate).
|
|
4
|
+
*/
|
|
5
|
+
import { htmlToText } from "./html-text.js";
|
|
6
|
+
import { extractBrowserElements, formatBrowserSnapshot, titleFromHtml, } from "./browser-html.js";
|
|
7
|
+
import { WebError } from "./types.js";
|
|
8
|
+
function resolveHref(baseUrl, href) {
|
|
9
|
+
try {
|
|
10
|
+
return new URL(href, baseUrl).href;
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
throw new WebError(`invalid href: ${href}`, "WEB_INVALID_URL");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export function createHttpBrowserSession(options) {
|
|
17
|
+
let page;
|
|
18
|
+
const load = async (url, signal) => {
|
|
19
|
+
const result = await options.fetch.fetch({ url }, signal);
|
|
20
|
+
const html = result.body.kind === "html"
|
|
21
|
+
? result.body.content
|
|
22
|
+
: result.body.content;
|
|
23
|
+
const elements = extractBrowserElements(html);
|
|
24
|
+
return {
|
|
25
|
+
url: result.url,
|
|
26
|
+
title: titleFromHtml(html),
|
|
27
|
+
html,
|
|
28
|
+
elements,
|
|
29
|
+
fieldValues: new Map(),
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
const requirePage = () => {
|
|
33
|
+
if (!page) {
|
|
34
|
+
throw new WebError("no open page — call browser_open first", "WEB_BROWSER_NO_PAGE");
|
|
35
|
+
}
|
|
36
|
+
return page;
|
|
37
|
+
};
|
|
38
|
+
const snapshotOf = (state, full) => {
|
|
39
|
+
const pageText = full
|
|
40
|
+
? htmlToText(state.html, 40_000).text
|
|
41
|
+
: undefined;
|
|
42
|
+
return {
|
|
43
|
+
url: state.url,
|
|
44
|
+
title: state.title,
|
|
45
|
+
text: formatBrowserSnapshot({
|
|
46
|
+
url: state.url,
|
|
47
|
+
title: state.title,
|
|
48
|
+
elements: state.elements,
|
|
49
|
+
fieldValues: state.fieldValues,
|
|
50
|
+
...(full ? { full: true } : {}),
|
|
51
|
+
...(pageText !== undefined ? { pageText } : {}),
|
|
52
|
+
}),
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
return {
|
|
56
|
+
async open(url, signal) {
|
|
57
|
+
page = await load(url, signal);
|
|
58
|
+
return snapshotOf(page, false);
|
|
59
|
+
},
|
|
60
|
+
async snapshot(opts) {
|
|
61
|
+
return snapshotOf(requirePage(), opts?.full === true);
|
|
62
|
+
},
|
|
63
|
+
async captureScreenshot() {
|
|
64
|
+
throw new WebError("no graphical browser — HTTP snapshot cannot capture a screenshot for vision. Set XRK_BROWSER_CDP_URL.", "WEB_BROWSER_NO_GRAPHICS");
|
|
65
|
+
},
|
|
66
|
+
async act(request, signal) {
|
|
67
|
+
const state = requirePage();
|
|
68
|
+
const ref = request.ref.replace(/^@/, "").trim();
|
|
69
|
+
const el = state.elements.find((e) => e.ref === ref);
|
|
70
|
+
if (!el) {
|
|
71
|
+
throw new WebError(`unknown ref @${ref}`, "WEB_BROWSER_BAD_REF");
|
|
72
|
+
}
|
|
73
|
+
if (request.action === "type") {
|
|
74
|
+
if (el.role !== "textbox" && el.role !== "combobox") {
|
|
75
|
+
throw new WebError(`@${ref} is not a textbox`, "WEB_BROWSER_BAD_REF");
|
|
76
|
+
}
|
|
77
|
+
const text = request.text ?? "";
|
|
78
|
+
state.fieldValues.set(el.ref, text);
|
|
79
|
+
const snap = snapshotOf(state, false);
|
|
80
|
+
return {
|
|
81
|
+
...snap,
|
|
82
|
+
note: `typed into @${ref}`,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
// click
|
|
86
|
+
if (el.href) {
|
|
87
|
+
const next = resolveHref(state.url, el.href);
|
|
88
|
+
page = await load(next, signal);
|
|
89
|
+
const snap = snapshotOf(page, false);
|
|
90
|
+
return { ...snap, note: `navigated via @${ref}` };
|
|
91
|
+
}
|
|
92
|
+
if (el.role === "button" &&
|
|
93
|
+
(el.inputType === "submit" || /submit/i.test(el.name))) {
|
|
94
|
+
// Best-effort GET to current URL with typed fields as query.
|
|
95
|
+
const target = new URL(state.url);
|
|
96
|
+
for (const [r, value] of state.fieldValues) {
|
|
97
|
+
const field = state.elements.find((e) => e.ref === r);
|
|
98
|
+
const key = field?.name || r;
|
|
99
|
+
target.searchParams.set(key, value);
|
|
100
|
+
}
|
|
101
|
+
page = await load(target.href, signal);
|
|
102
|
+
const snap = snapshotOf(page, false);
|
|
103
|
+
return { ...snap, note: `submitted via @${ref}` };
|
|
104
|
+
}
|
|
105
|
+
const snap = snapshotOf(state, false);
|
|
106
|
+
return {
|
|
107
|
+
...snap,
|
|
108
|
+
note: `clicked @${ref} (no navigation — static HTTP session)`,
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=browser-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-session.js","sourceRoot":"","sources":["../src/browser-session.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5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EAAE,kBAAkB,GAAG,EAAE,EAAE,CAAC;YACpD,CAAC;YACD,IACE,EAAE,CAAC,IAAI,KAAK,QAAQ;gBACpB,CAAC,EAAE,CAAC,SAAS,KAAK,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,EACtD,CAAC;gBACD,6DAA6D;gBAC7D,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAClC,KAAK,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;oBAC3C,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;oBACtD,MAAM,GAAG,GAAG,KAAK,EAAE,IAAI,IAAI,CAAC,CAAC;oBAC7B,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBACtC,CAAC;gBACD,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;gBACvC,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBACrC,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,kBAAkB,GAAG,EAAE,EAAE,CAAC;YACpD,CAAC;YACD,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACtC,OAAO;gBACL,GAAG,IAAI;gBACP,IAAI,EAAE,YAAY,GAAG,wCAAwC;aAC9D,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ToolDefinition } from "@xrkseek/core-tools";
|
|
2
|
+
import type { BrowserSession } from "./browser-session.js";
|
|
3
|
+
/** Enough of an image ref for the vision tool result. Store fills the rest. */
|
|
4
|
+
export interface BrowserScreenshotRef {
|
|
5
|
+
readonly attachmentId: string;
|
|
6
|
+
readonly mediaType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
7
|
+
readonly bytes: number;
|
|
8
|
+
readonly width: number;
|
|
9
|
+
readonly height: number;
|
|
10
|
+
readonly name?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface BrowserToolsOptions {
|
|
13
|
+
/** Persist a CDP screenshot so the model request can inline it. */
|
|
14
|
+
readonly saveScreenshot?: (png: Uint8Array) => Promise<BrowserScreenshotRef>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Interactive browser_* tools over a {@link BrowserSession} (snapshot / act).
|
|
18
|
+
* Prefer web_fetch / web_search for one-shot reads; use these when the model
|
|
19
|
+
* must click or type against a live page session.
|
|
20
|
+
*/
|
|
21
|
+
export declare function createBrowserTools(session: BrowserSession, options?: BrowserToolsOptions): ToolDefinition[];
|
|
22
|
+
//# sourceMappingURL=browser-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-tools.d.ts","sourceRoot":"","sources":["../src/browser-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAqB,MAAM,qBAAqB,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,+EAA+E;AAC/E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC;IAC5E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,mEAAmE;IACnE,QAAQ,CAAC,cAAc,CAAC,EAAE,CACxB,GAAG,EAAE,UAAU,KACZ,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACpC;AASD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,cAAc,EACvB,OAAO,GAAE,mBAAwB,GAChC,cAAc,EAAE,CAwKlB"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { isWebError } from "./types.js";
|
|
2
|
+
function fail(err) {
|
|
3
|
+
const message = isWebError(err)
|
|
4
|
+
? `Error: ${err.message}`
|
|
5
|
+
: `Error: ${err instanceof Error ? err.message : String(err)}`;
|
|
6
|
+
return { content: message, isError: true };
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Interactive browser_* tools over a {@link BrowserSession} (snapshot / act).
|
|
10
|
+
* Prefer web_fetch / web_search for one-shot reads; use these when the model
|
|
11
|
+
* must click or type against a live page session.
|
|
12
|
+
*/
|
|
13
|
+
export function createBrowserTools(session, options = {}) {
|
|
14
|
+
const openTool = {
|
|
15
|
+
name: "browser_open",
|
|
16
|
+
description: "Open an HTTP(S) URL in the interactive browser session and return a compact element snapshot with @eN refs. " +
|
|
17
|
+
"Prefer web_fetch for one-shot reads; use browser_* when you need to click or type.",
|
|
18
|
+
parameters: {
|
|
19
|
+
type: "object",
|
|
20
|
+
properties: {
|
|
21
|
+
url: { type: "string", description: "The HTTP(S) URL to open." },
|
|
22
|
+
},
|
|
23
|
+
required: ["url"],
|
|
24
|
+
},
|
|
25
|
+
async execute(args, signal) {
|
|
26
|
+
const url = String(args?.url ?? "").trim();
|
|
27
|
+
if (!url) {
|
|
28
|
+
return { content: "Error: url must be a non-empty string", isError: true };
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
const snap = await session.open(url, signal);
|
|
32
|
+
return { content: snap.text };
|
|
33
|
+
}
|
|
34
|
+
catch (err) {
|
|
35
|
+
return fail(err);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
isConcurrencySafe: () => false,
|
|
39
|
+
};
|
|
40
|
+
const snapshotTool = {
|
|
41
|
+
name: "browser_snapshot",
|
|
42
|
+
description: "Snapshot the current browser page as an interactive element list with @eN refs for browser_act. " +
|
|
43
|
+
"full=true includes page text. Call browser_open first.",
|
|
44
|
+
parameters: {
|
|
45
|
+
type: "object",
|
|
46
|
+
properties: {
|
|
47
|
+
full: {
|
|
48
|
+
type: "boolean",
|
|
49
|
+
description: "Include page text below the element list.",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
async execute(args) {
|
|
54
|
+
try {
|
|
55
|
+
const snap = await session.snapshot({
|
|
56
|
+
full: args?.full === true,
|
|
57
|
+
});
|
|
58
|
+
return { content: snap.text };
|
|
59
|
+
}
|
|
60
|
+
catch (err) {
|
|
61
|
+
return fail(err);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
isConcurrencySafe: () => true,
|
|
65
|
+
};
|
|
66
|
+
const actTool = {
|
|
67
|
+
name: "browser_act",
|
|
68
|
+
description: "Act on a snapshot ref: action=click (follow links / submit) or action=type (fill a textbox; pass text). " +
|
|
69
|
+
"Refs look like e1 or @e1 from browser_snapshot / browser_open.",
|
|
70
|
+
parameters: {
|
|
71
|
+
type: "object",
|
|
72
|
+
properties: {
|
|
73
|
+
ref: {
|
|
74
|
+
type: "string",
|
|
75
|
+
description: "Element ref from the snapshot (e1 or @e1).",
|
|
76
|
+
},
|
|
77
|
+
action: {
|
|
78
|
+
type: "string",
|
|
79
|
+
description: "click or type.",
|
|
80
|
+
enum: ["click", "type"],
|
|
81
|
+
},
|
|
82
|
+
text: {
|
|
83
|
+
type: "string",
|
|
84
|
+
description: "Text to type when action=type.",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
required: ["ref", "action"],
|
|
88
|
+
},
|
|
89
|
+
async execute(args, signal) {
|
|
90
|
+
const ref = String(args?.ref ?? "").trim();
|
|
91
|
+
const action = String(args?.action ?? "").trim().toLowerCase();
|
|
92
|
+
if (!ref) {
|
|
93
|
+
return { content: "Error: ref is required", isError: true };
|
|
94
|
+
}
|
|
95
|
+
if (action !== "click" && action !== "type") {
|
|
96
|
+
return {
|
|
97
|
+
content: "Error: action must be click or type",
|
|
98
|
+
isError: true,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
try {
|
|
102
|
+
const result = await session.act({
|
|
103
|
+
ref,
|
|
104
|
+
action,
|
|
105
|
+
...(args?.text !== undefined ? { text: String(args.text) } : {}),
|
|
106
|
+
}, signal);
|
|
107
|
+
return {
|
|
108
|
+
content: `${result.note}\n\n${result.text}`,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
catch (err) {
|
|
112
|
+
return fail(err);
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
isConcurrencySafe: () => false,
|
|
116
|
+
};
|
|
117
|
+
const visionTool = {
|
|
118
|
+
name: "browser_vision",
|
|
119
|
+
description: "Capture a screenshot of the current graphical browser page for vision. " +
|
|
120
|
+
"Returns the @eN snapshot text plus an image. Fails when there is no graphical browser " +
|
|
121
|
+
"(HTTP snapshot) or the screenshot cannot be stored. Does not substitute the accessibility tree.",
|
|
122
|
+
parameters: {
|
|
123
|
+
type: "object",
|
|
124
|
+
properties: {
|
|
125
|
+
question: {
|
|
126
|
+
type: "string",
|
|
127
|
+
description: "What to look for in the screenshot.",
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
async execute(args) {
|
|
132
|
+
let png;
|
|
133
|
+
try {
|
|
134
|
+
png = await session.captureScreenshot();
|
|
135
|
+
}
|
|
136
|
+
catch (err) {
|
|
137
|
+
return fail(err);
|
|
138
|
+
}
|
|
139
|
+
const save = options.saveScreenshot;
|
|
140
|
+
if (!save) {
|
|
141
|
+
return {
|
|
142
|
+
content: "Error: screenshot captured but no attachment store is wired, so vision cannot see it.",
|
|
143
|
+
isError: true,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
try {
|
|
147
|
+
const ref = await save(png);
|
|
148
|
+
let text = "";
|
|
149
|
+
try {
|
|
150
|
+
text = (await session.snapshot({ full: false })).text;
|
|
151
|
+
}
|
|
152
|
+
catch {
|
|
153
|
+
text = "";
|
|
154
|
+
}
|
|
155
|
+
const question = String(args?.question ?? "").trim();
|
|
156
|
+
const lead = question ? `question: ${question}\n` : "";
|
|
157
|
+
return {
|
|
158
|
+
content: [
|
|
159
|
+
{ type: "text", text: `${lead}${text}`.trim() },
|
|
160
|
+
{ type: "image", attachment: ref },
|
|
161
|
+
],
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
catch (err) {
|
|
165
|
+
return fail(err);
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
isConcurrencySafe: () => false,
|
|
169
|
+
};
|
|
170
|
+
return [openTool, snapshotTool, actTool, visionTool];
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=browser-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-tools.js","sourceRoot":"","sources":["../src/browser-tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAmBxC,SAAS,IAAI,CAAC,GAAY;IACxB,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC;QAC7B,CAAC,CAAC,UAAU,GAAG,CAAC,OAAO,EAAE;QACzB,CAAC,CAAC,UAAU,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;IACjE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAuB,EACvB,UAA+B,EAAE;IAEjC,MAAM,QAAQ,GAAoC;QAChD,IAAI,EAAE,c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ACD,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC;gBAC5B,IAAI,IAAI,GAAG,EAAE,CAAC;gBACd,IAAI,CAAC;oBACH,IAAI,GAAG,CAAC,MAAM,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;gBACxD,CAAC;gBAAC,MAAM,CAAC;oBACP,IAAI,GAAG,EAAE,CAAC;gBACZ,CAAC;gBACD,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,QAAQ,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;gBACrD,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,aAAa,QAAQ,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvD,OAAO;oBACL,OAAO,EAAE;wBACP,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,GAAG,IAAI,GAAG,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE;wBACxD,EAAE,IAAI,EAAE,OAAgB,EAAE,UAAU,EAAE,GAAG,EAAE;qBAC5C;iBACF,CAAC;YACJ,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,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,YAAY,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -43,6 +43,10 @@ export declare function formatWebSearchGuidance(available: ToolNameSet): string;
|
|
|
43
43
|
* Mentions web_search only while that tool is also visible.
|
|
44
44
|
*/
|
|
45
45
|
export declare function formatWebFetchGuidance(available: ToolNameSet): string;
|
|
46
|
+
/**
|
|
47
|
+
* browser_* guidance; empty when browser_open is not available.
|
|
48
|
+
*/
|
|
49
|
+
export declare function formatBrowserGuidance(available: ToolNameSet): string;
|
|
46
50
|
/** Full-surface defaults (both web tools present). */
|
|
47
51
|
export declare const WEB_SEARCH_GUIDANCE: string;
|
|
48
52
|
/** Full-surface defaults (both web tools present). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACV,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEnF,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,eAAO,MAAM,8BAA8B,SAAU,CAAC;AACtD,eAAO,MAAM,2BAA2B,QAAS,CAAC;AAclD,wBAAgB,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAShE;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CA6BlE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CAO1E;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;IACvC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,eAAe,GACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAMzB;AAeD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,CAa7E;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EACvB,MAAM,EAAE,qBAAqB,GAC5B,mBA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,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,EACrB,cAAc,EAAE,MAAM,GACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAMzB;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAa3E;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EACrB,MAAM,EAAE,qBAAqB,GAC5B,kBAAkB,GAAG,SAAS,CAYhC;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;AAMjE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,CAOtE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,CAOrE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,CAUpE;AAED,sDAAsD;AACtD,eAAO,MAAM,mBAAmB,QAG9B,CAAC;AAEH,sDAAsD;AACtD,eAAO,MAAM,kBAAkB,QAG7B,CAAC"}
|
|
@@ -211,6 +211,19 @@ export function formatWebFetchGuidance(available) {
|
|
|
211
211
|
: "";
|
|
212
212
|
return `Use the web_fetch tool to retrieve one specific HTTP(S) URL as decoded text (~30s timeout). Prefer concrete page URLs over homepages${searchHint}. Cross-origin redirects are not followed — if the error names a Location URL, call web_fetch on that URL next. Cite the URL as a markdown link when you use its content.`;
|
|
213
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* browser_* guidance; empty when browser_open is not available.
|
|
216
|
+
*/
|
|
217
|
+
export function formatBrowserGuidance(available) {
|
|
218
|
+
const names = asSet(available);
|
|
219
|
+
if (!names.has("browser_open"))
|
|
220
|
+
return "";
|
|
221
|
+
return ("Use browser_open / browser_snapshot / browser_act for interactive page sessions " +
|
|
222
|
+
"(element refs like @e1). Use browser_vision for a screenshot the vision model can see. " +
|
|
223
|
+
"Prefer web_fetch or web_search for one-shot reads. " +
|
|
224
|
+
"The default session is an HTTP snapshot. XRK_BROWSER_CDP_URL selects Chrome DevTools. " +
|
|
225
|
+
"This is not a full desktop computer-use agent.");
|
|
226
|
+
}
|
|
214
227
|
/** Full-surface defaults (both web tools present). */
|
|
215
228
|
export const WEB_SEARCH_GUIDANCE = formatWebSearchGuidance([
|
|
216
229
|
"web_search",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.js","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC;AACxC,MAAM,CAAC,MAAM,8BAA8B,GAAG,OAAO,CAAC;AACtD,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAElD,MAAM,iBAAiB,GACrB,kFAAkF,CAAC;AAErF,SAAS,WAAW,CAAC,GAAW,EAAE,KAAyB;IACzD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IAC1D,IAAI,CAAC;QACH,OAAO,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,GAAG,CAAC;IACb,CAAC;AACH,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,MAAuB;IACnD,OAAO;QACL,GAAG,EAAE,MAAM,CAAC,GAAG;QACf,GAAG,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9D,GAAG,CAAC,MAAM,CAAC,OAAO,KA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,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC;QAAE,OAAO,EAAE,CAAC;IAC1C,OAAO,CACL,kFAAkF;QAClF,yFAAyF;QACzF,qDAAqD;QACrD,wFAAwF;QACxF,gDAAgD,CACjD,CAAC;AACJ,CAAC;AAED,sDAAsD;AACtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;IACzD,YAAY;IACZ,WAAW;CACZ,CAAC,CAAC;AAEH,sDAAsD;AACtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;IACvD,YAAY;IACZ,WAAW;CACZ,CAAC,CAAC"}
|
|
@@ -8,8 +8,12 @@ export { capSearchResult, createBraveSearch, createCascadingSearch, createSearch
|
|
|
8
8
|
export { createDuckDuckGoSearch, parseDuckDuckGoHtml, } from "./search-duckduckgo.js";
|
|
9
9
|
export { createParallelFreeSearch, PARALLEL_MCP_SEARCH_URL, } from "./search-parallel-free.js";
|
|
10
10
|
export { callMcpTool, extractMcpToolPayload, iterMcpMessages, selectMcpEnvelope, } from "./search-mcp-client.js";
|
|
11
|
-
export { DEFAULT_FETCH_MAX_OUTPUT_CHARS, DEFAULT_WEB_TOOL_TIMEOUT_MS, WEB_FETCH_GUIDANCE, WEB_SEARCH_GUIDANCE, WEB_SEARCH_MAX_RESULTS, fetchMetaFromResult, fetchMetaFromValue, formatFetchOutput, formatSearchOutput, formatWebFetchGuidance, formatWebSearchGuidance, presentFetchCall, presentFetchResult, presentSearchCall, presentSearchResult, projectSource, searchMetaFromResult, searchMetaFromValue, type ToolNameSet as WebRoutingToolNameSet, type WebFetchMeta, type WebSearchMeta, } from "./format.js";
|
|
11
|
+
export { DEFAULT_FETCH_MAX_OUTPUT_CHARS, DEFAULT_WEB_TOOL_TIMEOUT_MS, WEB_FETCH_GUIDANCE, WEB_SEARCH_GUIDANCE, WEB_SEARCH_MAX_RESULTS, fetchMetaFromResult, fetchMetaFromValue, formatFetchOutput, formatSearchOutput, formatWebFetchGuidance, formatWebSearchGuidance, formatBrowserGuidance, presentFetchCall, presentFetchResult, presentSearchCall, presentSearchResult, projectSource, searchMetaFromResult, searchMetaFromValue, type ToolNameSet as WebRoutingToolNameSet, type WebFetchMeta, type WebSearchMeta, } from "./format.js";
|
|
12
12
|
export { createWebTools, type CreateWebToolsOptions, } from "./tools.js";
|
|
13
|
+
export { createHttpBrowserSession, type BrowserActRequest, type BrowserActResult, type BrowserSession, type BrowserSnapshotResult, } from "./browser-session.js";
|
|
14
|
+
export { browserCdpUrlFromEnv, connectCdpWebSocket, createBrowserSession, createCdpBrowserSession, resolveCdpDebuggerUrl, type CdpCaller, } from "./browser-cdp.js";
|
|
15
|
+
export { createBrowserTools } from "./browser-tools.js";
|
|
16
|
+
export { extractBrowserElements, formatBrowserSnapshot, type BrowserElement, } from "./browser-html.js";
|
|
13
17
|
export interface DefaultWebAccessOptions {
|
|
14
18
|
/** Face/Host structured search (preferred). */
|
|
15
19
|
readonly search?: SearchAccessConfig;
|
|
@@ -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,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,eAAe,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,WAAW,IAAI,qBAAqB,EACzC,KAAK,YAAY,EACjB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,KAAK,qBAAqB,GAC3B,MAAM,YAAY,CAAC;
|
|
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,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IAAI,qBAAqB,EACzC,KAAK,YAAY,EACjB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,KAAK,qBAAqB,GAC3B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,wBAAwB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,KAAK,SAAS,GACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,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,CAelB"}
|
|
@@ -8,8 +8,12 @@ export { capSearchResult, createBraveSearch, createCascadingSearch, createSearch
|
|
|
8
8
|
export { createDuckDuckGoSearch, parseDuckDuckGoHtml, } from "./search-duckduckgo.js";
|
|
9
9
|
export { createParallelFreeSearch, PARALLEL_MCP_SEARCH_URL, } from "./search-parallel-free.js";
|
|
10
10
|
export { callMcpTool, extractMcpToolPayload, iterMcpMessages, selectMcpEnvelope, } from "./search-mcp-client.js";
|
|
11
|
-
export { DEFAULT_FETCH_MAX_OUTPUT_CHARS, DEFAULT_WEB_TOOL_TIMEOUT_MS, WEB_FETCH_GUIDANCE, WEB_SEARCH_GUIDANCE, WEB_SEARCH_MAX_RESULTS, fetchMetaFromResult, fetchMetaFromValue, formatFetchOutput, formatSearchOutput, formatWebFetchGuidance, formatWebSearchGuidance, presentFetchCall, presentFetchResult, presentSearchCall, presentSearchResult, projectSource, searchMetaFromResult, searchMetaFromValue, } from "./format.js";
|
|
11
|
+
export { DEFAULT_FETCH_MAX_OUTPUT_CHARS, DEFAULT_WEB_TOOL_TIMEOUT_MS, WEB_FETCH_GUIDANCE, WEB_SEARCH_GUIDANCE, WEB_SEARCH_MAX_RESULTS, fetchMetaFromResult, fetchMetaFromValue, formatFetchOutput, formatSearchOutput, formatWebFetchGuidance, formatWebSearchGuidance, formatBrowserGuidance, presentFetchCall, presentFetchResult, presentSearchCall, presentSearchResult, projectSource, searchMetaFromResult, searchMetaFromValue, } from "./format.js";
|
|
12
12
|
export { createWebTools, } from "./tools.js";
|
|
13
|
+
export { createHttpBrowserSession, } from "./browser-session.js";
|
|
14
|
+
export { browserCdpUrlFromEnv, connectCdpWebSocket, createBrowserSession, createCdpBrowserSession, resolveCdpDebuggerUrl, } from "./browser-cdp.js";
|
|
15
|
+
export { createBrowserTools } from "./browser-tools.js";
|
|
16
|
+
export { extractBrowserElements, formatBrowserSnapshot, } from "./browser-html.js";
|
|
13
17
|
/** Fetch is always HTTP. Search: keyed Tavily/Brave, else parallel-free → duckduckgo. */
|
|
14
18
|
export function createDefaultWebAccess(options = {}) {
|
|
15
19
|
const searchConfig = options.search ?? searchConfigFromEnv(options.env ?? process.env);
|
|
@@ -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;AACpB,OAAO,EACL,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,GAExB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,GAGzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,GAIpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,GAEf,MAAM,YAAY,CAAC;
|
|
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,mBAA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BAAqB,GAEtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,qBAAqB,GAEtB,MAAM,mBAAmB,CAAC;AAc3B,yFAAyF;AACzF,MAAM,UAAU,sBAAsB,CACpC,UAAmC,EAAE;IAErC,MAAM,YAAY,GAChB,OAAO,CAAC,MAAM,IAAI,mBAAmB,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACpE,MAAM,SAAS,GAAG,uBAAuB,CACvC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAC9C,CAAC;IACF,MAAM,MAAM,GAAG,sBAAsB,CAAC;QACpC,MAAM,EAAE,YAAY;QACpB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACnD,CAAC,CAAC;IACH,OAAO;QACL,KAAK,EAAE,SAAS;QAChB,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7B,wBAAwB,EAAE,wBAAwB,CAAC,YAAY,CAAC;KACjE,CAAC;AACJ,CAAC"}
|
|
@@ -82,10 +82,6 @@ export type LlmStreamEvent = {
|
|
|
82
82
|
export declare function withOpenAiFinishReason(response: LlmChatResponse, raw: unknown): LlmChatResponse;
|
|
83
83
|
/** Map Anthropic Messages `stop_reason` onto a response. */
|
|
84
84
|
export declare function withAnthropicStopReason(response: LlmChatResponse, raw: unknown): LlmChatResponse;
|
|
85
|
-
/** @deprecated Prefer {@link withOpenAiFinishReason}. */
|
|
86
|
-
export declare function mapOpenAiFinishReason(raw: unknown): Exclude<LlmFinishReason, "error"> | undefined;
|
|
87
|
-
/** @deprecated Prefer {@link withAnthropicStopReason}. */
|
|
88
|
-
export declare function mapAnthropicStopReason(raw: unknown): Exclude<LlmFinishReason, "error"> | undefined;
|
|
89
85
|
/**
|
|
90
86
|
* DSH BlockAssembler keep/drop: a `max-tokens` finish drops tool calls that
|
|
91
87
|
* may be truncated.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACX,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IAC1C,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS;QACxB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrC,EAAE,CAAC;IACJ,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,CACtB,YAAY,EAAE,MAAM,KACjB,OAAO,CAAC;QACX,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;QAC1B,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,mBAAmB,EAAE,kBAAkB,CAAC;KAC/D,CAAC,CAAC;IACH;;;OAGG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,OAAO,CAAC;AAE7E,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,E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GAAG,OAAO,CAE/D;AAED,4FAA4F;AAC5F,qBAAa,+BAAgC,SAAQ,KAAK;IACxD,QAAQ,CAAC,IAAI,kCAAkC;gBACnC,OAAO,EAAE,MAAM;CAI5B;AAED,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAEvE;AAED,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,EACnB,mBAAmB,EACnB,QAAQ,EACR,sBAAsB,EACtB,aAAa,EACb,UAAU,EACV,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,KAAK,UAAU,GAChB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,KAAK,mBAAmB,EACxB,KAAK,eAAe,GACrB,MAAM,mBAAmB,CAAC;AAG3B,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC;IAC5B,IAAI,IAAI,SAAS,UAAU,EAAE,CAAC;CAC/B;AAED,wBAAgB,iBAAiB,IAAI,WAAW,CAkB/C;AAED,0EAA0E;AAC1E,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,aAAa,CAAC,cAAc,CAAC,GACpC,OAAO,CAAC,eAAe,CAAC,CA4B1B"}
|
|
@@ -42,26 +42,6 @@ export function withAnthropicStopReason(response, raw) {
|
|
|
42
42
|
}
|
|
43
43
|
return response;
|
|
44
44
|
}
|
|
45
|
-
/** @deprecated Prefer {@link withOpenAiFinishReason}. */
|
|
46
|
-
export function mapOpenAiFinishReason(raw) {
|
|
47
|
-
if (raw === "length")
|
|
48
|
-
return "max-tokens";
|
|
49
|
-
if (raw === "tool_calls")
|
|
50
|
-
return "tool-calls";
|
|
51
|
-
if (raw === "stop")
|
|
52
|
-
return "stop";
|
|
53
|
-
return undefined;
|
|
54
|
-
}
|
|
55
|
-
/** @deprecated Prefer {@link withAnthropicStopReason}. */
|
|
56
|
-
export function mapAnthropicStopReason(raw) {
|
|
57
|
-
if (raw === "max_tokens")
|
|
58
|
-
return "max-tokens";
|
|
59
|
-
if (raw === "tool_use")
|
|
60
|
-
return "tool-calls";
|
|
61
|
-
if (raw === "end_turn" || raw === "stop_sequence")
|
|
62
|
-
return "stop";
|
|
63
|
-
return undefined;
|
|
64
|
-
}
|
|
65
45
|
/**
|
|
66
46
|
* DSH BlockAssembler keep/drop: a `max-tokens` finish drops tool calls that
|
|
67
47
|
* may be truncated.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAwFA;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CACpC,QAAyB,EACzB,GAAY;IAEZ,IAAI,GAAG,KAAK,QAAQ;QAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;IACzE,IAAI,GAAG,KAAK,YAAY;QAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7E,IAAI,GAAG,KAAK,MAAM;QAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC;IACjE,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC;QAC1C,OAAO;YACL,GAAG,QAAQ;YACX,YAAY,EAAE,OAAO;YACrB,WAAW,EAAE;gBACX,IAAI,EAAE,GAAG,CAAC,WAAW,EAAE;gBACvB,OAAO,EAAE,kBAAkB,GAAG,EAAE;aACjC;SACF,CAAC;IACJ,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,4DAA4D;AAC5D,MAAM,UAAU,uBAAuB,CACrC,QAAyB,EACzB,GAAY;IAEZ,IAAI,G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AAC,IAAI,EAAE,MAAM,CAAC;gBAEV,SAAS,CAAC,EAAE,MAAM;YAIhB,IAAI;YAYJ,IAAI;IAIZ,GAAG,CACP,KAAK,EAAE,iBAAiB,EACxB,SAAS,EAAE,cAAc,EACzB,GAAG,EAAE,MAAM,EACX,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC;IAUtC,MAAM,CACV,SAAS,EAAE,oBAAoB,EAC/B,GAAG,EAAE,MAAM,EACX,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC;QAAE,MAAM,EAAE,oBAAoB,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IAsBzD,MAAM,CACV,KAAK,EAAE,iBAAiB,EACxB,SAAS,EAAE,cAAc,EACzB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC;CAcjB"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { mkdir, readFile, rename, unlink, writeFile } from "node:fs/promises";
|
|
7
|
-
import { homedir } from "node:os";
|
|
8
7
|
import path from "node:path";
|
|
8
|
+
import { resolveXrkHome } from "@xrkseek/xrk-home-paths";
|
|
9
9
|
import { deepSeekFileId, deepSeekFileScopeDigest, } from "./file-id.js";
|
|
10
10
|
export function imageVariantId(digest) {
|
|
11
11
|
return digest;
|
|
@@ -21,11 +21,7 @@ export function deepSeekFileScope(baseURL, apiKey) {
|
|
|
21
21
|
function resolveIndexPath(custom) {
|
|
22
22
|
if (custom)
|
|
23
23
|
return custom;
|
|
24
|
-
|
|
25
|
-
process.env.XRK_DSH_HOME?.trim() ||
|
|
26
|
-
process.env.DSH_HOME?.trim() ||
|
|
27
|
-
path.join(homedir(), ".xrk");
|
|
28
|
-
return path.join(home, "llm-deepseek", "files-v3.json");
|
|
24
|
+
return path.join(resolveXrkHome(), "llm-deepseek", "files-v3.json");
|
|
29
25
|
}
|
|
30
26
|
function absent(error) {
|
|
31
27
|
return error?.code === "ENOENT";
|