@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,233 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Multi-agent team graph beside the parent→child subagent registry.
|
|
3
|
+
* Delegation edges are copied from attach; peer edges are explicit teammate links.
|
|
4
|
+
*/
|
|
5
|
+
import { readFileSync } from "node:fs";
|
|
6
|
+
import { tryWriteJsonSidecar } from "./json-sidecar.js";
|
|
7
|
+
export const AGENT_TEAM_ROLES = [
|
|
8
|
+
"delegator",
|
|
9
|
+
"worker",
|
|
10
|
+
"observer",
|
|
11
|
+
];
|
|
12
|
+
export function isAgentTeamRole(value) {
|
|
13
|
+
return value === "delegator" || value === "worker" || value === "observer";
|
|
14
|
+
}
|
|
15
|
+
function edgeKey(edge) {
|
|
16
|
+
if (edge.kind === "peer") {
|
|
17
|
+
const [a, b] = [edge.from, edge.to].sort();
|
|
18
|
+
return `peer:${a}:${b}`;
|
|
19
|
+
}
|
|
20
|
+
return `delegates:${edge.from}:${edge.to}`;
|
|
21
|
+
}
|
|
22
|
+
export class AgentTeamGraph {
|
|
23
|
+
nodes = new Map();
|
|
24
|
+
edges = new Map();
|
|
25
|
+
roles = new Map();
|
|
26
|
+
persistPath;
|
|
27
|
+
constructor(persistPath) {
|
|
28
|
+
this.persistPath = persistPath;
|
|
29
|
+
if (persistPath)
|
|
30
|
+
this.load();
|
|
31
|
+
}
|
|
32
|
+
recordDelegation(link) {
|
|
33
|
+
if (link.mode === "fork")
|
|
34
|
+
return;
|
|
35
|
+
this.upsertNode(link.parentSessionId, link.parentSessionId);
|
|
36
|
+
this.upsertNode(link.childSessionId, link.label || link.childSessionId);
|
|
37
|
+
this.upsertEdge({
|
|
38
|
+
from: link.parentSessionId,
|
|
39
|
+
to: link.childSessionId,
|
|
40
|
+
kind: "delegates",
|
|
41
|
+
...(link.label ? { label: link.label } : {}),
|
|
42
|
+
});
|
|
43
|
+
this.save();
|
|
44
|
+
}
|
|
45
|
+
/** Replace delegation edges from the live registry; peer links stay. */
|
|
46
|
+
rebuildDelegations(links) {
|
|
47
|
+
for (const [key, edge] of this.edges) {
|
|
48
|
+
if (edge.kind === "delegates")
|
|
49
|
+
this.edges.delete(key);
|
|
50
|
+
}
|
|
51
|
+
for (const link of links) {
|
|
52
|
+
if (link.mode === "fork")
|
|
53
|
+
continue;
|
|
54
|
+
this.upsertNode(link.parentSessionId, link.parentSessionId);
|
|
55
|
+
this.upsertNode(link.childSessionId, link.label || link.childSessionId);
|
|
56
|
+
this.upsertEdge({
|
|
57
|
+
from: link.parentSessionId,
|
|
58
|
+
to: link.childSessionId,
|
|
59
|
+
kind: "delegates",
|
|
60
|
+
...(link.label ? { label: link.label } : {}),
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
this.save();
|
|
64
|
+
}
|
|
65
|
+
linkPeers(from, to, label) {
|
|
66
|
+
const a = from.trim();
|
|
67
|
+
const b = to.trim();
|
|
68
|
+
if (!a || !b || a === b)
|
|
69
|
+
return undefined;
|
|
70
|
+
this.upsertNode(a, a);
|
|
71
|
+
this.upsertNode(b, b);
|
|
72
|
+
const edge = {
|
|
73
|
+
from: a < b ? a : b,
|
|
74
|
+
to: a < b ? b : a,
|
|
75
|
+
kind: "peer",
|
|
76
|
+
...(label?.trim() ? { label: label.trim() } : {}),
|
|
77
|
+
};
|
|
78
|
+
this.upsertEdge(edge);
|
|
79
|
+
this.save();
|
|
80
|
+
return edge;
|
|
81
|
+
}
|
|
82
|
+
/** Effective role for one node (explicit override, else derived from edges). */
|
|
83
|
+
roleOf(nodeId) {
|
|
84
|
+
const id = nodeId.trim();
|
|
85
|
+
const explicit = this.roles.get(id);
|
|
86
|
+
if (explicit)
|
|
87
|
+
return explicit;
|
|
88
|
+
return this.deriveRole(id);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Override a node's role. Pass `undefined` to clear the override and fall
|
|
92
|
+
* back to the derived role. Returns the effective role afterwards.
|
|
93
|
+
*/
|
|
94
|
+
setRole(nodeId, role) {
|
|
95
|
+
const id = nodeId.trim();
|
|
96
|
+
if (!id)
|
|
97
|
+
return undefined;
|
|
98
|
+
this.upsertNode(id, id);
|
|
99
|
+
if (role === undefined)
|
|
100
|
+
this.roles.delete(id);
|
|
101
|
+
else
|
|
102
|
+
this.roles.set(id, role);
|
|
103
|
+
this.save();
|
|
104
|
+
return this.roleOf(id);
|
|
105
|
+
}
|
|
106
|
+
/** Explicit overrides only (derived roles are recomputed on read). */
|
|
107
|
+
roleOverrides() {
|
|
108
|
+
return Object.fromEntries(this.roles);
|
|
109
|
+
}
|
|
110
|
+
deriveRole(id) {
|
|
111
|
+
let incoming = false;
|
|
112
|
+
for (const edge of this.edges.values()) {
|
|
113
|
+
if (edge.kind !== "delegates")
|
|
114
|
+
continue;
|
|
115
|
+
if (edge.from === id)
|
|
116
|
+
return "delegator";
|
|
117
|
+
if (edge.to === id)
|
|
118
|
+
incoming = true;
|
|
119
|
+
}
|
|
120
|
+
return incoming ? "worker" : "observer";
|
|
121
|
+
}
|
|
122
|
+
/** Connected component around `rootId` (delegation + peer). */
|
|
123
|
+
view(rootId) {
|
|
124
|
+
const root = rootId.trim();
|
|
125
|
+
if (!root)
|
|
126
|
+
return { nodes: [], edges: [] };
|
|
127
|
+
const adj = new Map();
|
|
128
|
+
const touch = (id, edge) => {
|
|
129
|
+
const bucket = adj.get(id) ?? [];
|
|
130
|
+
bucket.push(edge);
|
|
131
|
+
adj.set(id, bucket);
|
|
132
|
+
};
|
|
133
|
+
for (const edge of this.edges.values()) {
|
|
134
|
+
touch(edge.from, edge);
|
|
135
|
+
touch(edge.to, edge);
|
|
136
|
+
}
|
|
137
|
+
const seen = new Set([root]);
|
|
138
|
+
const queue = [root];
|
|
139
|
+
const kept = new Map();
|
|
140
|
+
while (queue.length > 0) {
|
|
141
|
+
const id = queue.shift();
|
|
142
|
+
for (const edge of adj.get(id) ?? []) {
|
|
143
|
+
kept.set(edgeKey(edge), edge);
|
|
144
|
+
const next = edge.from === id ? edge.to : edge.from;
|
|
145
|
+
if (seen.has(next))
|
|
146
|
+
continue;
|
|
147
|
+
seen.add(next);
|
|
148
|
+
queue.push(next);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
if (!this.nodes.has(root))
|
|
152
|
+
this.upsertNode(root, root);
|
|
153
|
+
const nodes = [...seen].map((id) => {
|
|
154
|
+
const node = this.nodes.get(id) ?? { id, label: id };
|
|
155
|
+
return { ...node, role: this.roleOf(id) };
|
|
156
|
+
});
|
|
157
|
+
return { nodes, edges: [...kept.values()] };
|
|
158
|
+
}
|
|
159
|
+
upsertNode(id, label) {
|
|
160
|
+
const prev = this.nodes.get(id);
|
|
161
|
+
if (prev && prev.label !== id && label === id)
|
|
162
|
+
return;
|
|
163
|
+
this.nodes.set(id, { id, label: label || id });
|
|
164
|
+
}
|
|
165
|
+
upsertEdge(edge) {
|
|
166
|
+
this.edges.set(edgeKey(edge), edge);
|
|
167
|
+
}
|
|
168
|
+
load() {
|
|
169
|
+
const file = this.persistPath;
|
|
170
|
+
if (!file)
|
|
171
|
+
return;
|
|
172
|
+
try {
|
|
173
|
+
const raw = JSON.parse(readFileSync(file, "utf8"));
|
|
174
|
+
if (Array.isArray(raw.nodes)) {
|
|
175
|
+
for (const node of raw.nodes) {
|
|
176
|
+
if (!node || typeof node.id !== "string" || !node.id.trim())
|
|
177
|
+
continue;
|
|
178
|
+
this.nodes.set(node.id, {
|
|
179
|
+
id: node.id,
|
|
180
|
+
label: typeof node.label === "string" && node.label.trim()
|
|
181
|
+
? node.label
|
|
182
|
+
: node.id,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (Array.isArray(raw.edges)) {
|
|
187
|
+
for (const edge of raw.edges) {
|
|
188
|
+
if (!edge || (edge.kind !== "delegates" && edge.kind !== "peer"))
|
|
189
|
+
continue;
|
|
190
|
+
const from = String(edge.from ?? "").trim();
|
|
191
|
+
const to = String(edge.to ?? "").trim();
|
|
192
|
+
if (!from || !to || from === to)
|
|
193
|
+
continue;
|
|
194
|
+
this.upsertEdge({
|
|
195
|
+
from: edge.kind === "peer" && to < from ? to : from,
|
|
196
|
+
to: edge.kind === "peer" && to < from ? from : to,
|
|
197
|
+
kind: edge.kind,
|
|
198
|
+
...(typeof edge.label === "string" && edge.label.trim()
|
|
199
|
+
? { label: edge.label.trim() }
|
|
200
|
+
: {}),
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (raw.roles && typeof raw.roles === "object") {
|
|
205
|
+
for (const [id, role] of Object.entries(raw.roles)) {
|
|
206
|
+
const key = id.trim();
|
|
207
|
+
if (!key || !isAgentTeamRole(role))
|
|
208
|
+
continue;
|
|
209
|
+
this.roles.set(key, role);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
catch {
|
|
214
|
+
/* missing / corrupt sidecar → empty graph */
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
save() {
|
|
218
|
+
const file = this.persistPath;
|
|
219
|
+
if (!file)
|
|
220
|
+
return;
|
|
221
|
+
tryWriteJsonSidecar(file, {
|
|
222
|
+
nodes: [...this.nodes.values()],
|
|
223
|
+
edges: [...this.edges.values()],
|
|
224
|
+
...(this.roles.size > 0 ? { roles: Object.fromEntries(this.roles) } : {}),
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
export function agentTeamGraphPath(subagentPersistPath) {
|
|
229
|
+
if (!subagentPersistPath?.trim())
|
|
230
|
+
return undefined;
|
|
231
|
+
return subagentPersistPath.replace(/[^/\\]+$/, "agent-team-graph.json");
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=agent-team-graph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-team-graph.js","sourceRoot":"","sources":["../src/agent-team-graph.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAcxD,MAAM,CAAC,MAAM,gBAAgB,GAA6B;IACxD,WAAW;IACX,QAAQ;IACR,UAAU;CACX,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,KAAK,KAAK,WAAW,IAAI,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,UAAU,CAAC;AAC7E,CAAC;AAuBD,SAAS,OAAO,CAAC,IAAiD;IAChE,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QACzB,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC3C,OAAO,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;IAC1B,CAAC;IACD,OAAO,aAAa,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;AAC7C,CAAC;AAED,MAAM,OAAO,cAAc;IACR,KAAK,GAAG,IAAI,GAAG,EAAyB,CAAC;IACzC,KAAK,GAAG,IAAI,GAAG,EAAyB,CAAC;IACzC,KAAK,GAAG,IAAI,GAAG,EAAyB,CAAC;I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;QAAC,MAAM,CAAC;YACP,6CAA6C;QAC/C,CAAC;IACH,CAAC;IAEO,IAAI;QACV,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC;QAC9B,IAAI,CAAC,IAAI;YAAE,OAAO;QAClB,mBAAmB,CAAC,IAAI,EAAE;YACxB,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;YAC/B,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;YAC/B,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC1E,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,UAAU,kBAAkB,CAAC,mBAA4B;IAC7D,IAAI,CAAC,mBAAmB,EAAE,IAAI,EAAE;QAAE,OAAO,SAAS,CAAC;IACnD,OAAO,mBAAmB,CAAC,OAAO,CAAC,UAAU,EAAE,uBAAuB,CAAC,CAAC;AAC1E,CAAC"}
|
|
@@ -29,9 +29,18 @@ export declare class FaceApprovalBroker {
|
|
|
29
29
|
private readonly byRpcId;
|
|
30
30
|
constructor(store: SessionStore, hooks: FaceApprovalHooks);
|
|
31
31
|
listPending(sessionId?: string): readonly PendingApprovalItem[];
|
|
32
|
+
/**
|
|
33
|
+
* Host sidebar / Office policy `ask` — synthetic tool name so the existing
|
|
34
|
+
* approval UI / `/api/respond` path works without a live tool call.
|
|
35
|
+
*/
|
|
36
|
+
requestHostGate(sessionId: string, gate: {
|
|
37
|
+
readonly kind: string;
|
|
38
|
+
readonly reason: string;
|
|
39
|
+
readonly summary?: string;
|
|
40
|
+
}, signal?: AbortSignal): Promise<boolean>;
|
|
32
41
|
/** Pipeline `ApprovalHandler` bound to a session. */
|
|
33
42
|
handlerFor(sessionId: string): ApprovalHandler;
|
|
34
|
-
request(sessionId: string, ctx: ToolPipelineContext, reason: string): Promise<boolean>;
|
|
43
|
+
request(sessionId: string, ctx: Pick<ToolPipelineContext, "call" | "args" | "signal">, reason: string): Promise<boolean>;
|
|
35
44
|
respond(sessionId: string, approvalId: string, decision: "allow" | "deny"): {
|
|
36
45
|
readonly ok: true;
|
|
37
46
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../src/approvals.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE7E,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAI3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,UAAU,GACV,WAAW,GACX,aAAa,CAAC;AAElB,MAAM,WAAW,mBAAmB;IAClC,oEAAoE;IACpE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC7C,UAAU,CACR,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,mBAAmB,GAC3B,IAAI,CAAC;CACT;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AC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE;IAU3E;;;OAGG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,cAAc;IAsC7D,OAAO,CAAC,MAAM;CAsCf;AAED,gEAAgE;AAChE,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,QAAQ,EAAE;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,CAAC,CASnD;AAED,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,QAAQ,EAAE;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,CAAC,CAOlD"}
|
|
@@ -41,6 +41,25 @@ export class FaceApprovalBroker {
|
|
|
41
41
|
}
|
|
42
42
|
return out;
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Host sidebar / Office policy `ask` — synthetic tool name so the existing
|
|
46
|
+
* approval UI / `/api/respond` path works without a live tool call.
|
|
47
|
+
*/
|
|
48
|
+
async requestHostGate(sessionId, gate, signal) {
|
|
49
|
+
if (effectiveApprovalPolicy(readSessionEvents(this.store, sessionId)) === "never") {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
const synthetic = {
|
|
53
|
+
call: {
|
|
54
|
+
id: `host_${randomUUID()}`,
|
|
55
|
+
name: gate.kind,
|
|
56
|
+
arguments: gate.summary ? { summary: gate.summary } : {},
|
|
57
|
+
},
|
|
58
|
+
args: gate.summary ? { summary: gate.summary } : {},
|
|
59
|
+
...(signal ? { signal } : {}),
|
|
60
|
+
};
|
|
61
|
+
return this.request(sessionId, synthetic, gate.reason);
|
|
62
|
+
}
|
|
44
63
|
/** Pipeline `ApprovalHandler` bound to a session. */
|
|
45
64
|
handlerFor(sessionId) {
|
|
46
65
|
return async (ctx, reason) => {
|
|
@@ -51,6 +70,11 @@ export class FaceApprovalBroker {
|
|
|
51
70
|
};
|
|
52
71
|
}
|
|
53
72
|
async request(sessionId, ctx, reason) {
|
|
73
|
+
// Defense in depth: every ask path honors approval/policy never
|
|
74
|
+
// (handlerFor / requestHostGate also check; callers must not bypass).
|
|
75
|
+
if (effectiveApprovalPolicy(readSessionEvents(this.store, sessionId)) === "never") {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
54
78
|
const approvalId = `apr_${randomUUID()}`;
|
|
55
79
|
const rpcId = mintRpcId();
|
|
56
80
|
const argsSummary = summarizeArgs(ctx.args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approvals.js","sourceRoot":"","sources":["../src/approvals.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAqB,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAMzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAG5D,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAqC7B,SAAS,aAAa,CAAC,IAAa;IAClC,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,GAAG,KAAK,SAAS;YAAE,OAAO,SAAS,CAAC;QACxC,IAAI,GAAG,CAAC,MAAM,IAAI,gBAAgB;YAAE,OAAO,GAAG,CAAC;QAC/C,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC;IAC9C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAS,SAAS;IAChB,OAAO,SAAS,UAAU,EAAE,EAAE,CAAC;AACjC,CAAC;AAED,MAAM,OAAO,kBAAkB;IAKV;IACA;IALF,OAAO,GAAG,IAAI,GAAG,EAAkB,CAAC;IACpC,OAAO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,gEAAgE;AAChE,MAAM,UAAU,sBAAsB,CACpC,IAAyB;IAEzB,OAAO;QACL,IAAI,EAAE,oBAAoB;QAC1B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,MAAM,EAAE,IAAI,CAAC,UAAU;QACvB,MAAM,EAAE,IAAI,CAAC,MAAM;KACpB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,SAAiB,EACjB,UAAkB,EAClB,OAA4B;IAE5B,OAAO;QACL,IAAI,EAAE,mBAAmB;QACzB,SAAS;QACT,UAAU;QACV,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -17,10 +17,23 @@ import type { FaceApprovalBroker } from "./approvals.js";
|
|
|
17
17
|
import type { FaceQuestionBroker } from "./questions.js";
|
|
18
18
|
import type { FaceWorkspaceRegistry } from "./workspace-registry.js";
|
|
19
19
|
import type { FaceSubagentRegistry } from "./subagent-registry.js";
|
|
20
|
+
import type { AgentTeamGraph } from "./agent-team-graph.js";
|
|
20
21
|
import type { FaceMessageFeedbackStore } from "./message-feedback.js";
|
|
21
22
|
import type { FaceGoalStore } from "./goal-store.js";
|
|
22
23
|
import type { FaceWireIdMaps } from "./adapt/wire-ids.js";
|
|
23
24
|
import type { FaceInboxWireMaps } from "./adapt/inbox-wire.js";
|
|
25
|
+
import type { DirectoryListingView } from "./host-directory.js";
|
|
26
|
+
import type { FaceRpcResult } from "./types.js";
|
|
27
|
+
/**
|
|
28
|
+
* When Host runs with SSH remote cwd, Web browse RPCs use this backend
|
|
29
|
+
* instead of the local filesystem (paths are remote POSIX coordinates).
|
|
30
|
+
*/
|
|
31
|
+
export interface FaceDirectoryBackend {
|
|
32
|
+
list(payload: unknown): Promise<FaceRpcResult<DirectoryListingView>>;
|
|
33
|
+
create(payload: unknown): Promise<FaceRpcResult<{
|
|
34
|
+
path: string;
|
|
35
|
+
}>>;
|
|
36
|
+
}
|
|
24
37
|
export interface FaceDrain {
|
|
25
38
|
wake(sessionId: string): void;
|
|
26
39
|
cancel(sessionId: string): Promise<void>;
|
|
@@ -42,6 +55,18 @@ export interface FaceRuntime {
|
|
|
42
55
|
readonly drain: FaceDrain;
|
|
43
56
|
readonly registry: ProviderRegistry;
|
|
44
57
|
readonly workspaceRoot: string;
|
|
58
|
+
/**
|
|
59
|
+
* True when tool cwd / fs / bash ride SSH (`XRK_SSH_*`).
|
|
60
|
+
* Native openPath · OS folder picker · sidebar PTY stay host-local and are gated off.
|
|
61
|
+
*/
|
|
62
|
+
readonly remoteExecution?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Local Host cwd before SSH workspace swap (settings / product home anchor).
|
|
65
|
+
* Absent when not remote.
|
|
66
|
+
*/
|
|
67
|
+
readonly localHostRoot?: string;
|
|
68
|
+
/** SSH-backed `host.listDirectory` / `host.createDirectory` (remote POSIX). */
|
|
69
|
+
readonly directoryBackend?: FaceDirectoryBackend;
|
|
45
70
|
/** Product inject dir override for tests; Host leaves unset → `{workspace}/.xrk`. Settings/creds use `resolveHarnessHome` (`~/.xrk`). */
|
|
46
71
|
readonly productDir?: string;
|
|
47
72
|
readonly version: string;
|
|
@@ -81,6 +106,8 @@ export interface FaceRuntime {
|
|
|
81
106
|
readonly workspaces: FaceWorkspaceRegistry;
|
|
82
107
|
/** Direct subagent children (fork / create-with-parent). */
|
|
83
108
|
readonly subagents: FaceSubagentRegistry;
|
|
109
|
+
/** Delegation + peer team graph (persisted next to the subagent sidecar). */
|
|
110
|
+
readonly agentTeams: AgentTeamGraph;
|
|
84
111
|
/** Per-session assistant-message ratings (process-local CAS). */
|
|
85
112
|
readonly messageFeedback: FaceMessageFeedbackStore;
|
|
86
113
|
/**
|
|
@@ -111,6 +138,17 @@ export interface FaceRuntime {
|
|
|
111
138
|
}[];
|
|
112
139
|
readonly parked?: readonly string[];
|
|
113
140
|
}>;
|
|
141
|
+
/**
|
|
142
|
+
* Last `syncMcpServers` overlay (parked / connectFailures). Mutate writes;
|
|
143
|
+
* describe/get read so Settings UI does not reclassify failures as parked.
|
|
144
|
+
*/
|
|
145
|
+
mcpSyncOverlay: {
|
|
146
|
+
connectFailures: readonly {
|
|
147
|
+
readonly serverName: string;
|
|
148
|
+
readonly message: string;
|
|
149
|
+
}[];
|
|
150
|
+
parked: readonly string[];
|
|
151
|
+
};
|
|
114
152
|
/** Standing / remembered tool presenters (wire tools get). */
|
|
115
153
|
readonly getTool?: (sessionId: string, name: string) => Pick<ToolDefinition, "presentCall" | "presentResult"> | undefined;
|
|
116
154
|
/** Product-shell `boot.json` entries (assembled client plugins). */
|
|
@@ -166,8 +204,9 @@ export interface FaceRuntime {
|
|
|
166
204
|
readonly questions: FaceQuestionBroker;
|
|
167
205
|
/** Drop cached agent when preset changes (host wires). May be async (compose dispose). */
|
|
168
206
|
invalidateAgent?(sessionId: string): void | Promise<void>;
|
|
169
|
-
/** When true, `/permission` refuses sandbox mode changes while
|
|
170
|
-
* are open or spawning (CV DSH terminal-bash
|
|
207
|
+
/** When true, `/permission` refuses sandbox mode changes while **Agent**
|
|
208
|
+
* `terminal_*` PTY sessions are open or spawning (CV DSH terminal-bash
|
|
209
|
+
* sandbox fence). Sidebar user terminals must not be reported here.
|
|
171
210
|
*/
|
|
172
211
|
hasPtyActivity?(): boolean;
|
|
173
212
|
/** Host persists `/auto-review` slash to dsh-compat HTTP store (~/.xrk). */
|
|
@@ -191,9 +230,18 @@ export interface FaceRuntime {
|
|
|
191
230
|
forkSession(sourceId: string, boundaryIndex?: number, childId?: string): SessionRecord;
|
|
192
231
|
/**
|
|
193
232
|
* Host drain status hook. Continuable children notify the parent on idle
|
|
194
|
-
* (same wake budget as job completions).
|
|
233
|
+
* (same wake budget as job completions). Idle notifies are epoch-scoped:
|
|
234
|
+
* a later `running:true` drops in-flight stale delivers; transient resolve
|
|
235
|
+
* failures retry once on the same idle stretch.
|
|
195
236
|
*/
|
|
196
237
|
onSessionDrainStatus(sessionId: string, running: boolean): void;
|
|
238
|
+
/**
|
|
239
|
+
* Suppress the parent completion steer for a continuable child (interrupt /
|
|
240
|
+
* cancel). Must be called *before* draining the child to idle so the
|
|
241
|
+
* cancel→idle race cannot re-admit a "finished a turn" notice.
|
|
242
|
+
* Cleared when the child drain goes running again (resume via send_message).
|
|
243
|
+
*/
|
|
244
|
+
suppressOwnedSubagentCompletion(childSessionId: string): void;
|
|
197
245
|
/** Shared shell registry for session-scoped job kill / background RPC. */
|
|
198
246
|
readonly shell?: ShellService;
|
|
199
247
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EACV,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/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mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA4BlD,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../src/dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA4BlD,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,qBAAqB,CAAC;AAuM7B,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAElE;AAED,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,eAAe,CAAC,CAkB1B"}
|
|
@@ -14,6 +14,7 @@ import { costMeterFetchPricesRemote, costMeterGetDaySessionsRemote, costMeterGet
|
|
|
14
14
|
import { goalsClear, goalsComplete, goalsCreate, goalsEdit, goalsPause, goalsResume, } from "./handlers/goals.js";
|
|
15
15
|
import { cordisRunnerHandler } from "./handlers/cordis-stub.js";
|
|
16
16
|
import { fileReferencesList, sessionReferenceResolverCandidates, } from "./handlers/references.js";
|
|
17
|
+
import { changesFileDiff } from "./handlers/changes.js";
|
|
17
18
|
const HANDLERS = {
|
|
18
19
|
"host.describe": hostDescribe,
|
|
19
20
|
"host.pickDirectory": hostPickDirectory,
|
|
@@ -116,6 +117,8 @@ const HANDLERS = {
|
|
|
116
117
|
"goal.clear": goalsClear,
|
|
117
118
|
"fileReferences/list": fileReferencesList,
|
|
118
119
|
"sessionReferenceResolver/candidates": sessionReferenceResolverCandidates,
|
|
120
|
+
"changes.fileDiff": changesFileDiff,
|
|
121
|
+
"changes/fileDiff": changesFileDiff,
|
|
119
122
|
};
|
|
120
123
|
export function getHandler(method) {
|
|
121
124
|
return HANDLERS[method] ?? cordisRunnerHandler(method);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch.js","sourceRoot":"","sources":["../src/dispatch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,yBAAyB,EACzB,gCAAgC,EAChC,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,WAAW,EACX,WAAW,EACX,cAAc,GAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,0BAA0B,EAC1B,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,cAAc,EACd,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EACL,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACvB,6BAA6B,EAC7B,kCAAkC,EAClC,6BAA6B,EAC7B,gCAAgC,EAChC,mCAAmC,EACnC,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,UAAU,EACV,aAAa,EACb,WAAW,EACX,SAAS,EACT,UAAU,EACV,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,kBAAkB,EAClB,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"dispatch.js","sourceRoot":"","sources":["../src/dispatch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,yBAAyB,EACzB,gCAAgC,EAChC,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACp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AO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CACjD,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One-shot external agent runtimes for the subagent tool.
|
|
3
|
+
* In-process delegation stays the default; these kinds spawn a child process.
|
|
4
|
+
*/
|
|
5
|
+
import { spawn } from "node:child_process";
|
|
6
|
+
export type ExternalAgentKind = "acp" | "app-server" | "claude-code";
|
|
7
|
+
export type ExternalSpawn = typeof spawn;
|
|
8
|
+
export interface RunExternalAgentOptions {
|
|
9
|
+
readonly kind: ExternalAgentKind;
|
|
10
|
+
readonly cwd: string;
|
|
11
|
+
readonly prompt: string;
|
|
12
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
13
|
+
readonly signal?: AbortSignal;
|
|
14
|
+
readonly spawnImpl?: ExternalSpawn;
|
|
15
|
+
}
|
|
16
|
+
export declare class ExternalAgentError extends Error {
|
|
17
|
+
readonly code: string;
|
|
18
|
+
constructor(message: string, code?: string);
|
|
19
|
+
}
|
|
20
|
+
export declare function resolveExternalAgentLaunch(kind: ExternalAgentKind, env: NodeJS.ProcessEnv, prompt: string): {
|
|
21
|
+
command: string;
|
|
22
|
+
args: string[];
|
|
23
|
+
protocol: "acp" | "app-server" | "print";
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Hand one prompt to an external agent subprocess.
|
|
27
|
+
* Does not create an in-process child session.
|
|
28
|
+
*/
|
|
29
|
+
export declare function runExternalAgentTurn(options: RunExternalAgentOptions): Promise<{
|
|
30
|
+
readonly text: string;
|
|
31
|
+
readonly kind: ExternalAgentKind;
|
|
32
|
+
}>;
|
|
33
|
+
export declare function parseExternalAgentKind(raw: unknown): ExternalAgentKind | "in-process" | undefined;
|
|
34
|
+
//# sourceMappingURL=external-agent-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-agent-runtime.d.ts","sourceRoot":"","sources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