@xrkseek/harness 0.4.12 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@xrkseek/a2a/README.md +8 -6
- package/node_modules/@xrkseek/a2a/dist/client.d.ts +1 -0
- package/node_modules/@xrkseek/a2a/dist/client.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/client.js +36 -20
- package/node_modules/@xrkseek/a2a/dist/client.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/inbound.d.ts +9 -2
- package/node_modules/@xrkseek/a2a/dist/inbound.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/inbound.js +86 -41
- package/node_modules/@xrkseek/a2a/dist/inbound.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/a2a/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/index.js +2 -1
- package/node_modules/@xrkseek/a2a/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/protocol.d.ts +9 -0
- package/node_modules/@xrkseek/a2a/dist/protocol.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/protocol.js +25 -0
- package/node_modules/@xrkseek/a2a/dist/protocol.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/task-store.d.ts +43 -0
- package/node_modules/@xrkseek/a2a/dist/task-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/task-store.js +105 -0
- package/node_modules/@xrkseek/a2a/dist/task-store.js.map +1 -0
- package/node_modules/@xrkseek/context-fragments/README.md +4 -2
- package/node_modules/@xrkseek/context-fragments/dist/index.d.ts +10 -2
- package/node_modules/@xrkseek/context-fragments/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/context-fragments/dist/index.js +16 -11
- package/node_modules/@xrkseek/context-fragments/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts +5 -0
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.js +3 -0
- package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts +11 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js +9 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/background.js +2 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/background.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts +22 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js +75 -9
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js +2 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts +2 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.js +18 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts +15 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.js +77 -22
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts +5 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts +4 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js +138 -6
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js.map +1 -1
- package/node_modules/@xrkseek/exec-environment/README.md +2 -2
- package/node_modules/@xrkseek/exec-environment/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/index.js +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/memory.d.ts +25 -0
- package/node_modules/@xrkseek/exec-environment/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/memory.js +290 -0
- package/node_modules/@xrkseek/exec-environment/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/resolve.d.ts +5 -3
- package/node_modules/@xrkseek/exec-environment/dist/resolve.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/resolve.js +13 -5
- package/node_modules/@xrkseek/exec-environment/dist/resolve.js.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/types.d.ts +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-environment/package.json +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts +2 -0
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js +69 -31
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.js +10 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts +14 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js +28 -6
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/references.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/references.js +8 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/references.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.js +11 -7
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts +2 -2
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js +38 -14
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/package.json +2 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts +23 -3
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js +40 -5
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/doctor.js +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/doctor.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts +8 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js +13 -4
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts +6 -3
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.js +40 -10
- package/node_modules/@xrkseek/exec-shell/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-subprocess/dist/index.d.ts +4 -0
- package/node_modules/@xrkseek/exec-subprocess/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-subprocess/dist/index.js +2 -0
- package/node_modules/@xrkseek/exec-subprocess/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js +6 -6
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js +2 -2
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js +26 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts +10 -2
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js +27 -4
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js +43 -14
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/format.js +2 -1
- package/node_modules/@xrkseek/exec-web/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts +14 -0
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts.map +1 -0
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.js +21 -0
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.js.map +1 -0
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +28 -4
- package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.js +3 -1
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/attach-http.d.ts +6 -2
- package/node_modules/@xrkseek/server-face/dist/attach-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/attach-http.js +120 -46
- package/node_modules/@xrkseek/server-face/dist/attach-http.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +18 -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 +6 -2
- package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/face-schema.js.map +1 -1
- 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 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.d.ts +11 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.js +170 -4
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.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 -2
- 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 +7 -6
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.mts +3734 -0
- package/node_modules/@xrkseek/server-face/dist/index.d.mts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +6 -3
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +6 -3
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.mjs +22085 -0
- package/node_modules/@xrkseek/server-face/dist/index.mjs.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts +51 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.js +104 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.d.ts +34 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.js +41 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts +5 -2
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js +13 -2
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js +3 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/remote-event.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/remote-event.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/remote-event.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/remote-event.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +17 -4
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +14 -2
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.d.ts +14 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.js +71 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.d.ts +17 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.js +50 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-attachment.d.ts +4 -0
- package/node_modules/@xrkseek/server-face/dist/session-attachment.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-attachment.js +30 -7
- package/node_modules/@xrkseek/server-face/dist/session-attachment.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.js +2 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +6 -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 +68 -12
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js +7 -3
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js +25 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/types.d.ts +3 -0
- package/node_modules/@xrkseek/server-face/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js +61 -3
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts +23 -2
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js +37 -2
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-store.js +4 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-store.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/cron-http.d.ts +26 -0
- package/node_modules/@xrkseek/server-host/dist/cron-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/cron-http.js +77 -0
- package/node_modules/@xrkseek/server-host/dist/cron-http.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +222 -123
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts +8 -0
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js +33 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js +2 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts +2 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js +98 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts +18 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js +141 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts +11 -4
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js +353 -2
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts +30 -0
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js +96 -0
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js.map +1 -0
- 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 +306 -11
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js +53 -3
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.js +80 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.js +152 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.js +31 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts +17 -3
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js +265 -8
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js +6 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.js +188 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +3 -3
- 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-context.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.js +117 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.js +381 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.js.map +1 -0
- 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 +43 -1
- 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/dsh-pet-legacy.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.js +173 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.d.ts +17 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.js +209 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.js +470 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.js +93 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.d.ts +27 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.js +213 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts +6 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js +92 -14
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts +1 -0
- 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 +72 -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/git-graph.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.js +341 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js +3 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.js +138 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.js +85 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts +27 -0
- 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 +230 -52
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.js +182 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.d.ts +13 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.js +151 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts +6 -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 +34 -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 +2 -0
- 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 +271 -20
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js +105 -21
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.js +81 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.d.ts +8 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.js +378 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.js +229 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.js +300 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js +10 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js +40 -9
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.d.ts +8 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.js +428 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.d.ts +12 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.js +166 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.d.ts +20 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.js +308 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.d.ts +32 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.js +183 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js +20 -16
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.js +245 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.js +116 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.d.ts +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.js +5 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts +2 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js +2 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.d.ts +18 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.js +65 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.js +114 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts +3 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js +42 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts +6 -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 +68 -8
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.js +111 -26
- package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.js +32 -0
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +1 -0
- package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
- 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 +10 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js +68 -21
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js.map +1 -1
- package/node_modules/@xrkseek/server-http/package.json +1 -0
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.js +5 -2
- package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts +11 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.js +11 -2
- package/node_modules/@xrkseek/server-loader/dist/managed-state.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +9 -0
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +4 -2
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts +32 -2
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js +69 -2
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/README.md +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/README.zh.md +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts +5 -3
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js +20 -17
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/package.json +1 -1
- package/package.json +1 -1
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.d.ts +0 -13
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.js +0 -40
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.js.map +0 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import { ComputerUseError } from "./types.js";
|
|
8
|
-
const UNAVAILABLE = "background
|
|
8
|
+
const UNAVAILABLE = "background helper unavailable — set Credentials XRK_COMPUTER_USE_BACKGROUND to an installed helper binary.";
|
|
9
9
|
function unavailable() {
|
|
10
10
|
throw new ComputerUseError(UNAVAILABLE, "COMPUTER_USE_UNAVAILABLE");
|
|
11
11
|
}
|
|
@@ -53,7 +53,7 @@ export function createBackgroundInputProvider(options = {}) {
|
|
|
53
53
|
async capture() {
|
|
54
54
|
if (!installed)
|
|
55
55
|
unavailable();
|
|
56
|
-
throw new ComputerUseError("background
|
|
56
|
+
throw new ComputerUseError("background helper does not support capture — use mode=uia", "COMPUTER_USE_UNAVAILABLE");
|
|
57
57
|
},
|
|
58
58
|
async listWindows() {
|
|
59
59
|
if (!installed)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background.js","sourceRoot":"","sources":["../src/background.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO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AC;YAC9B,MAAM,IAAI,gBAAgB,CACxB,2DAA2D,EAC3D,0BAA0B,CAC3B,CAAC;QACJ,CAAC;QACD,KAAK,CAAC,WAAW;YACf,IAAI,CAAC,SAAS;gBAAE,WAAW,EAAE,CAAC;YAC9B,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,KAAK,CAAC,GAAG,CAAC,OAAO;YACf,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI;gBAAE,WAAW,EAAE,CAAC;YACvC,MAAM,IAAI,CAAC,OAAO,CAAC,CAAC;YACpB,OAAO;gBACL,EAAE,EAAE,IAAI;gBACR,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,OAAO,EAAE,cAAc,OAAO,CAAC,MAAM,EAAE;gBACvC,QAAQ,EAAE,YAAY;aACvB,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Model-facing computer_use envelopes — short loop, clear next step.
|
|
3
|
+
*/
|
|
4
|
+
import type { ComputerUseActResult, ComputerUseCaptureResult, ComputerUseElement, ComputerUseWindow } from "./types.js";
|
|
2
5
|
export declare const DEFAULT_MAX_ELEMENTS = 80;
|
|
3
6
|
export declare const DEFAULT_MAX_SNAPSHOT_CHARS = 20000;
|
|
7
|
+
export type ToolNameSet = ReadonlySet<string> | Iterable<string>;
|
|
4
8
|
export declare function formatAxSnapshot(options: {
|
|
5
9
|
readonly app: string;
|
|
6
10
|
readonly windowTitle: string;
|
|
@@ -10,13 +14,30 @@ export declare function formatAxSnapshot(options: {
|
|
|
10
14
|
/** Capture mode advertised to the model (ax · som · vision). */
|
|
11
15
|
readonly mode?: ComputerUseCaptureResult["mode"];
|
|
12
16
|
}): string;
|
|
17
|
+
/**
|
|
18
|
+
* Append guidance after a capture (inline image vs AX-only).
|
|
19
|
+
*/
|
|
20
|
+
export declare function formatCaptureEnvelope(options: {
|
|
21
|
+
readonly snapshotText: string;
|
|
22
|
+
readonly mode: ComputerUseCaptureResult["mode"];
|
|
23
|
+
readonly attachmentId?: string;
|
|
24
|
+
readonly elementCount: number;
|
|
25
|
+
}): string;
|
|
13
26
|
export declare function formatWindowsList(windows: readonly ComputerUseWindow[]): string;
|
|
27
|
+
export declare function formatActResult(result: ComputerUseActResult): string;
|
|
14
28
|
export declare function buildCaptureResult(options: {
|
|
15
29
|
readonly mode: ComputerUseCaptureResult["mode"];
|
|
16
30
|
readonly app: string;
|
|
17
31
|
readonly windowTitle: string;
|
|
18
32
|
readonly elements: readonly ComputerUseElement[];
|
|
19
33
|
readonly note?: string;
|
|
34
|
+
readonly screenshotPng?: Uint8Array;
|
|
20
35
|
}): ComputerUseCaptureResult;
|
|
36
|
+
/**
|
|
37
|
+
* System prompt for `computer_use`; empty when the tool is not in the catalog.
|
|
38
|
+
* Mentions browser_* only while those tools are also available.
|
|
39
|
+
*/
|
|
40
|
+
export declare function formatComputerUseGuidance(available: ToolNameSet): string;
|
|
41
|
+
/** Full-surface default (computer_use + browser_* present). */
|
|
21
42
|
export declare const COMPUTER_USE_PROMPT_TEXT: string;
|
|
22
43
|
//# sourceMappingURL=format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,0BAA0B,QAAS,CAAC;AAEjD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IACxC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACjD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,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CAAC;CAC/B,GAAG,MAAM,CAoBT;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,SAAS,iBAAiB,EAAE,GAAG,MAAM,CAiB/E;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CASpE;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IAC1C,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAChD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACjD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,aAAa,CAAC,EAAE,UAAU,CAAC;CACrC,GAAG,wBAAwB,CAkB3B;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,CAuBxE;AAED,+DAA+D;AAC/D,eAAO,MAAM,wBAAwB,QAMnC,CAAC"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model-facing computer_use envelopes — short loop, clear next step.
|
|
3
|
+
*/
|
|
1
4
|
export const DEFAULT_MAX_ELEMENTS = 80;
|
|
2
5
|
export const DEFAULT_MAX_SNAPSHOT_CHARS = 20_000;
|
|
6
|
+
function asSet(available) {
|
|
7
|
+
return available instanceof Set ? available : new Set(available);
|
|
8
|
+
}
|
|
3
9
|
export function formatAxSnapshot(options) {
|
|
4
10
|
const lines = [
|
|
5
11
|
`app: ${options.app || "(unknown)"}`,
|
|
@@ -26,15 +32,48 @@ export function formatAxSnapshot(options) {
|
|
|
26
32
|
}
|
|
27
33
|
return text;
|
|
28
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Append guidance after a capture (inline image vs AX-only).
|
|
37
|
+
*/
|
|
38
|
+
export function formatCaptureEnvelope(options) {
|
|
39
|
+
const lines = [options.snapshotText.trimEnd()];
|
|
40
|
+
if (options.attachmentId) {
|
|
41
|
+
lines.push(`attachmentId=${options.attachmentId}`);
|
|
42
|
+
lines.push("use=Screenshot inline in this result. Act by [index] from elements: — attachmentId is not a disk path.");
|
|
43
|
+
}
|
|
44
|
+
else if (options.mode === "ax") {
|
|
45
|
+
lines.push("use=AX tree. Prefer mode=vision|som when pixels help. Act with element=<index>.");
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
lines.push("use=No screenshot bytes. Act with element=<index>, or re-capture mode=vision|som.");
|
|
49
|
+
}
|
|
50
|
+
lines.push(`next=click|type|key|scroll using element 1..${Math.max(options.elementCount, 0)}; then capture again.`);
|
|
51
|
+
return lines.join("\n");
|
|
52
|
+
}
|
|
29
53
|
export function formatWindowsList(windows) {
|
|
30
|
-
if (windows.length === 0)
|
|
31
|
-
return
|
|
54
|
+
if (windows.length === 0) {
|
|
55
|
+
return [
|
|
56
|
+
"windows: (none)",
|
|
57
|
+
"use=Launch the target app, then capture.",
|
|
58
|
+
].join("\n");
|
|
59
|
+
}
|
|
32
60
|
const lines = ["windows:"];
|
|
33
61
|
for (const w of windows) {
|
|
34
62
|
const pid = w.pid !== undefined ? ` pid=${w.pid}` : "";
|
|
35
63
|
const app = w.app ? ` app=${w.app}` : "";
|
|
36
64
|
lines.push(` - ${w.title || "(untitled)"}${app}${pid}`);
|
|
37
65
|
}
|
|
66
|
+
lines.push("use=Pass a title fragment as capture app=…, then act by element index.");
|
|
67
|
+
return lines.join("\n");
|
|
68
|
+
}
|
|
69
|
+
export function formatActResult(result) {
|
|
70
|
+
const lines = [
|
|
71
|
+
`ok=${result.ok}`,
|
|
72
|
+
`action=${result.action}`,
|
|
73
|
+
`delivery=${result.delivery}`,
|
|
74
|
+
`message=${result.message}`,
|
|
75
|
+
"next=capture again before the next click/type — indices go stale after UI changes.",
|
|
76
|
+
];
|
|
38
77
|
return lines.join("\n");
|
|
39
78
|
}
|
|
40
79
|
export function buildCaptureResult(options) {
|
|
@@ -51,13 +90,40 @@ export function buildCaptureResult(options) {
|
|
|
51
90
|
...(options.note !== undefined ? { note: options.note } : {}),
|
|
52
91
|
}),
|
|
53
92
|
...(options.note !== undefined ? { note: options.note } : {}),
|
|
93
|
+
...(options.screenshotPng !== undefined
|
|
94
|
+
? { screenshotPng: options.screenshotPng }
|
|
95
|
+
: {}),
|
|
54
96
|
};
|
|
55
97
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
98
|
+
/**
|
|
99
|
+
* System prompt for `computer_use`; empty when the tool is not in the catalog.
|
|
100
|
+
* Mentions browser_* only while those tools are also available.
|
|
101
|
+
*/
|
|
102
|
+
export function formatComputerUseGuidance(available) {
|
|
103
|
+
const names = asSet(available);
|
|
104
|
+
if (!names.has("computer_use"))
|
|
105
|
+
return "";
|
|
106
|
+
const lines = [
|
|
107
|
+
"Desktop GUI (native apps):",
|
|
108
|
+
"- Loop: `list_windows` → `capture` → `click`/`type`/`key`/`scroll` by element index → `capture` to verify.",
|
|
109
|
+
"- `capture mode=ax` = accessibility tree; `vision`/`som` adds an inline screenshot (`attachmentId=sha256:…`, not a path).",
|
|
110
|
+
"- Prefer element indices from the last capture. Optional `coordinate=[x,y]` for pixel click when vision is active.",
|
|
111
|
+
];
|
|
112
|
+
if (names.has("browser_open") ||
|
|
113
|
+
names.has("browser_snapshot") ||
|
|
114
|
+
names.has("browser_act") ||
|
|
115
|
+
names.has("browser_vision")) {
|
|
116
|
+
lines.push("- Web pages: `browser_open` / `browser_snapshot` / `browser_act` / `browser_vision` — not `computer_use`.");
|
|
117
|
+
}
|
|
118
|
+
lines.push("- Enable: Settings → Plugins → Computer use, or `XRK_COMPUTER_USE=1` (Windows UIA).");
|
|
119
|
+
return lines.join("\n");
|
|
120
|
+
}
|
|
121
|
+
/** Full-surface default (computer_use + browser_* present). */
|
|
122
|
+
export const COMPUTER_USE_PROMPT_TEXT = formatComputerUseGuidance([
|
|
123
|
+
"computer_use",
|
|
124
|
+
"browser_open",
|
|
125
|
+
"browser_snapshot",
|
|
126
|
+
"browser_act",
|
|
127
|
+
"browser_vision",
|
|
128
|
+
]);
|
|
63
129
|
//# sourceMappingURL=format.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.js","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"format.js","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AACvC,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAIjD,SAAS,KAAK,CAAC,SAAsB;IACnC,OAAO,SAAS,YAAY,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAQhC;IACC,MAAM,KAAK,GAAa;QACtB,QAAQ,OAAO,CAAC,GAAG,IAAI,WAAW,EAAE;QACpC,WAAW,OAAO,CAAC,WAAW,IAAI,YAAY,EAAE;QAChD,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAClD,WAAW;KACZ,CAAC;IACF,KAAK,MAAM,EAAE,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QAClC,MAAM,MAAM,GAAG,EAAE,CAAC,MAAM;YACtB,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG;YAC5E,CAAC,CAAC,EAAE,CAA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B,CAAC;QAC7B,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC;QACxB,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAC3B,CAAC;QACD,KAAK,CAAC,IAAI,CACR,2GAA2G,CAC5G,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,IAAI,CACR,qFAAqF,CACtF,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,+DAA+D;AAC/D,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC;IAChE,cAAc;IACd,cAAc;IACd,kBAAkB;IAClB,aAAa;IACb,gBAAgB;CACjB,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ComputerUseProviderName, ComputerUseService } from "./types.js";
|
|
2
2
|
export { ComputerUseError, isComputerUseError, COMPUTER_USE_ACTIONS, type ComputerUseAction, type ComputerUseActRequest, type ComputerUseActResult, type ComputerUseCaptureRequest, type ComputerUseCaptureResult, type ComputerUseDelivery, type ComputerUseElement, type ComputerUseErrorCode, type ComputerUseProviderName, type ComputerUseService, type ComputerUseWindow, } from "./types.js";
|
|
3
|
-
export { COMPUTER_USE_PROMPT_TEXT, DEFAULT_MAX_ELEMENTS, DEFAULT_MAX_SNAPSHOT_CHARS, buildCaptureResult, formatAxSnapshot, formatWindowsList, } from "./format.js";
|
|
3
|
+
export { COMPUTER_USE_PROMPT_TEXT, DEFAULT_MAX_ELEMENTS, DEFAULT_MAX_SNAPSHOT_CHARS, buildCaptureResult, formatActResult, formatAxSnapshot, formatCaptureEnvelope, formatComputerUseGuidance, formatWindowsList, } from "./format.js";
|
|
4
4
|
export { mapKeysToSendKeys, escapeSendKeys } from "./keys.js";
|
|
5
5
|
export { createBackgroundInputProvider, backgroundInputInstalled, type BackgroundInputOptions, } from "./background.js";
|
|
6
6
|
export { createComputerUseProviderRegistry, type ComputerUseProviderRegistry, } from "./registry.js";
|
|
7
7
|
export { createMemoryComputerUseProvider, type MemoryComputerUseOptions, } from "./memory.js";
|
|
8
8
|
export { createWindowsUiAutomationProvider, captureScript, DEFAULT_POWERSHELL_TIMEOUT_MS, type CaptureScriptOptions, type PowerShellRunner, type WindowsUiAutomationOptions, } from "./windows-uia.js";
|
|
9
|
-
export { createComputerUseTools, computerUseUnavailableMessage, type CreateComputerUseToolsOptions, } from "./tools.js";
|
|
9
|
+
export { createComputerUseTools, computerUseUnavailableMessage, type ComputerUseScreenshotRef, type CreateComputerUseToolsOptions, } from "./tools.js";
|
|
10
10
|
/** Face `computer-use` product modes (Settings SoT). */
|
|
11
11
|
export type ComputerUseProductMode = "off" | "uia" | "background";
|
|
12
12
|
/** Face `computer-use` product shape. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAG9E,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,KAAK,sBAAsB,GAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,iCAAiC,EACjC,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CAAC,OAAO,CAAC,EAAE,wBAAwB,CAAC;IAC5C,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC;CACvC;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,uBAAuB,CAAC;IAChD,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;CACrC;AAUD;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,GAAE,+BAAoC,GAC5C,wBAAwB,CAiD1B"}
|
|
@@ -4,7 +4,7 @@ import { createComputerUseProviderRegistry } from "./registry.js";
|
|
|
4
4
|
import { createWindowsUiAutomationProvider } from "./windows-uia.js";
|
|
5
5
|
import { computerUseUnavailableMessage } from "./tools.js";
|
|
6
6
|
export { ComputerUseError, isComputerUseError, COMPUTER_USE_ACTIONS, } from "./types.js";
|
|
7
|
-
export { COMPUTER_USE_PROMPT_TEXT, DEFAULT_MAX_ELEMENTS, DEFAULT_MAX_SNAPSHOT_CHARS, buildCaptureResult, formatAxSnapshot, formatWindowsList, } from "./format.js";
|
|
7
|
+
export { COMPUTER_USE_PROMPT_TEXT, DEFAULT_MAX_ELEMENTS, DEFAULT_MAX_SNAPSHOT_CHARS, buildCaptureResult, formatActResult, formatAxSnapshot, formatCaptureEnvelope, formatComputerUseGuidance, formatWindowsList, } from "./format.js";
|
|
8
8
|
export { mapKeysToSendKeys, escapeSendKeys } from "./keys.js";
|
|
9
9
|
export { createBackgroundInputProvider, backgroundInputInstalled, } from "./background.js";
|
|
10
10
|
export { createComputerUseProviderRegistry, } from "./registry.js";
|
|
@@ -60,7 +60,7 @@ export function createDefaultComputerUseAccess(options = {}) {
|
|
|
60
60
|
providerName: "background",
|
|
61
61
|
unavailableMessage: installed
|
|
62
62
|
? unavailableMessage
|
|
63
|
-
: "Error: background
|
|
63
|
+
: "Error: background helper unavailable — set XRK_COMPUTER_USE_BACKGROUND.",
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
if (resolved === "uia" && process.platform === "win32") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC1F,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,iCAAiC,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAC;AAErE,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,GAYrB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,GAEzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,iCAAiC,GAElC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,+BAA+B,GAEhC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,iCAAiC,EACjC,aAAa,EACb,6BAA6B,GAI9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC1F,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,iCAAiC,EAAE,M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CAAC;QAChD,OAAO;YACL,OAAO,EAAE,6BAA6B,CACpC,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAC3E;YACD,YAAY,EAAE,YAAY;YAC1B,kBAAkB,EAAE,SAAS;gBAC3B,CAAC,CAAC,kBAAkB;gBACpB,CAAC,CAAC,yEAAyE;SAC9E,CAAC;IACJ,CAAC;IACD,IAAI,QAAQ,KAAK,KAAK,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QACvD,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACzB,OAAO;YACL,OAAO,EAAE,iCAAiC,EAAE;YAC5C,YAAY,EAAE,KAAK;YACnB,kBAAkB;SACnB,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAChC,CAAC"}
|
|
@@ -4,6 +4,8 @@ export interface MemoryComputerUseOptions {
|
|
|
4
4
|
readonly windowTitle?: string;
|
|
5
5
|
readonly elements?: readonly ComputerUseElement[];
|
|
6
6
|
readonly windows?: readonly ComputerUseWindow[];
|
|
7
|
+
/** Optional PNG for mode=vision|som tests / fixtures. */
|
|
8
|
+
readonly screenshotPng?: Uint8Array;
|
|
7
9
|
}
|
|
8
10
|
/**
|
|
9
11
|
* In-memory Provider for tests — AX tree + act bookkeeping, no OS input.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAClD,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAClD,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAChD,yDAAyD;IACzD,QAAQ,CAAC,aAAa,CAAC,EAAE,UAAU,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,GAAE,wBAA6B,GACrC,kBAAkB,CA2HpB"}
|
|
@@ -38,18 +38,34 @@ export function createMemoryComputerUseProvider(options = {}) {
|
|
|
38
38
|
}));
|
|
39
39
|
elements = slice;
|
|
40
40
|
const note = mode === "vision" || mode === "som"
|
|
41
|
-
?
|
|
41
|
+
? options.screenshotPng
|
|
42
|
+
? mode === "som"
|
|
43
|
+
? "memory provider screenshot with SOM labels (test fixture)"
|
|
44
|
+
: "memory provider screenshot (test fixture)"
|
|
45
|
+
: "memory provider has no screenshot; AX elements only"
|
|
42
46
|
: undefined;
|
|
43
47
|
return buildCaptureResult({
|
|
44
|
-
mode
|
|
48
|
+
mode,
|
|
45
49
|
app,
|
|
46
50
|
windowTitle,
|
|
47
51
|
elements: slice,
|
|
48
52
|
...(note !== undefined ? { note } : {}),
|
|
53
|
+
...(options.screenshotPng !== undefined
|
|
54
|
+
? { screenshotPng: options.screenshotPng }
|
|
55
|
+
: {}),
|
|
49
56
|
});
|
|
50
57
|
},
|
|
51
58
|
async act(request) {
|
|
52
59
|
if (request.action === "click") {
|
|
60
|
+
if (request.coordinate !== undefined && request.element === undefined) {
|
|
61
|
+
const [x, y] = request.coordinate;
|
|
62
|
+
return {
|
|
63
|
+
ok: true,
|
|
64
|
+
action: "click",
|
|
65
|
+
message: `clicked coordinate (${x},${y})`,
|
|
66
|
+
delivery: "memory",
|
|
67
|
+
};
|
|
68
|
+
}
|
|
53
69
|
const el = requireElement(request.element);
|
|
54
70
|
return {
|
|
55
71
|
ok: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EACL,gBAAgB,GAOjB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EACL,gBAAgB,GAOjB,MAAM,YAAY,CAAC;AAWpB;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAC7C,UAAoC,EAAE;IAEtC,IAAI,QAAQ,GAAyB,CAAC,OAAO,CAAC,QAAQ,IAAI;QACxD,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE;QACxC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC9C,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,WAAW,CAAC;IACvC,MAAM,WAAW,GAAG,OA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;YACJ,CAAC;YACD,IAAI,OAAO,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;gBAChC,OAAO;oBACL,EAAE,EAAE,IAAI;oBACR,MAAM,EAAE,QAAQ;oBAChB,OAAO,EAAE,YAAY,OAAO,CAAC,SAAS,IAAI,MAAM,KAAK,OAAO,CAAC,MAAM,IAAI,CAAC,EAAE;oBAC1E,QAAQ,EAAE,QAAQ;iBACnB,CAAC;YACJ,CAAC;YACD,MAAM,IAAI,gBAAgB,CACxB,oBAAoB,EACpB,uBAAuB,CACxB,CAAC;QACJ,CAAC;QACD,KAAK,CAAC,WAAW;YACf,OAAO,OAAO,CAAC;QACjB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -2,15 +2,29 @@ import type { ToolDefinition } from "@xrkseek/core-tools";
|
|
|
2
2
|
import { COMPUTER_USE_PROMPT_TEXT } from "./format.js";
|
|
3
3
|
import { type ComputerUseService } from "./types.js";
|
|
4
4
|
export { COMPUTER_USE_PROMPT_TEXT };
|
|
5
|
+
/** Enough of an image ref for multimodal capture results (mirrors browser_vision). */
|
|
6
|
+
export interface ComputerUseScreenshotRef {
|
|
7
|
+
readonly attachmentId: string;
|
|
8
|
+
readonly mediaType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
9
|
+
readonly bytes: number;
|
|
10
|
+
readonly width: number;
|
|
11
|
+
readonly height: number;
|
|
12
|
+
readonly name?: string;
|
|
13
|
+
}
|
|
5
14
|
export declare function computerUseUnavailableMessage(env?: NodeJS.ProcessEnv, product?: {
|
|
6
15
|
readonly mode?: string;
|
|
7
16
|
}): string;
|
|
8
17
|
export interface CreateComputerUseToolsOptions {
|
|
9
18
|
readonly service?: ComputerUseService;
|
|
10
19
|
readonly env?: NodeJS.ProcessEnv;
|
|
20
|
+
readonly product?: {
|
|
21
|
+
readonly mode?: string;
|
|
22
|
+
};
|
|
23
|
+
/** Persist capture PNG so the model request can inline it (mode=vision|som). */
|
|
24
|
+
readonly saveScreenshot?: (png: Uint8Array) => Promise<ComputerUseScreenshotRef>;
|
|
11
25
|
}
|
|
12
26
|
/**
|
|
13
|
-
* Model-facing `computer_use` tool (
|
|
27
|
+
* Model-facing `computer_use` tool (Codex-style capture → act → re-capture loop).
|
|
14
28
|
* Separate from browser_open / browser_snapshot / browser_act.
|
|
15
29
|
*/
|
|
16
30
|
export declare function createComputerUseTools(options?: CreateComputerUseToolsOptions): ToolDefinition[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAqB,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EACL,wBAAwB,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAqB,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EACL,wBAAwB,EAIzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAKL,KAAK,kBAAkB,EACxB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,wBAAwB,EAAE,CAAC;AAEpC,sFAAsF;AACtF,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC;IAC5E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,6BAA6B,CAC3C,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GACnC,MAAM,CAcR;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,gFAAgF;IAChF,QAAQ,CAAC,cAAc,CAAC,EAAE,CACxB,GAAG,EAAE,UAAU,KACZ,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACxC;AAuCD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,GAAE,6BAAkC,GAC1C,cAAc,EAAE,CAgLlB"}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import { COMPUTER_USE_PROMPT_TEXT, formatWindowsList, } from "./format.js";
|
|
1
|
+
import { COMPUTER_USE_PROMPT_TEXT, formatActResult, formatCaptureEnvelope, formatWindowsList, } from "./format.js";
|
|
2
2
|
import { COMPUTER_USE_ACTIONS, ComputerUseError, isComputerUseError, } from "./types.js";
|
|
3
3
|
export { COMPUTER_USE_PROMPT_TEXT };
|
|
4
4
|
export function computerUseUnavailableMessage(env = process.env, product) {
|
|
5
5
|
const envFlag = String(env.XRK_COMPUTER_USE ?? "").trim();
|
|
6
6
|
const productOn = product?.mode === "uia" || product?.mode === "background";
|
|
7
|
-
if (process.platform === "win32") {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"(or XRK_COMPUTER_USE=1) for the Windows UI Automation Provider " +
|
|
11
|
-
"(accessibility tree + click/type/key/scroll). Separate from browser_* page tools. " +
|
|
12
|
-
"Delivery is UIA, not full background SPI (cua-driver).");
|
|
13
|
-
}
|
|
7
|
+
if (process.platform === "win32" && envFlag === "" && !productOn) {
|
|
8
|
+
return ("Error: computer_use is off. Enable Settings → Plugins → Computer use " +
|
|
9
|
+
"(or XRK_COMPUTER_USE=1) for Windows UIA.");
|
|
14
10
|
}
|
|
15
|
-
return ("Error: no computer-use Provider
|
|
16
|
-
"
|
|
17
|
-
"Prefer browser_* for web pages; reserve computer_use for native desktop apps.");
|
|
11
|
+
return ("Error: no computer-use Provider. Enable Settings → Plugins → Computer use " +
|
|
12
|
+
"or inject a ComputerUseService (Windows: XRK_COMPUTER_USE=1).");
|
|
18
13
|
}
|
|
19
14
|
function fail(err) {
|
|
20
15
|
const message = isComputerUseError(err)
|
|
@@ -29,18 +24,30 @@ function parseAction(raw) {
|
|
|
29
24
|
}
|
|
30
25
|
return action;
|
|
31
26
|
}
|
|
27
|
+
function parseCoordinate(raw) {
|
|
28
|
+
if (raw === undefined || raw === null)
|
|
29
|
+
return undefined;
|
|
30
|
+
if (!Array.isArray(raw) || raw.length !== 2) {
|
|
31
|
+
throw new ComputerUseError("coordinate must be [x, y] screen pixels", "COMPUTER_USE_BAD_ARGS");
|
|
32
|
+
}
|
|
33
|
+
const x = Number(raw[0]);
|
|
34
|
+
const y = Number(raw[1]);
|
|
35
|
+
if (!Number.isFinite(x) || !Number.isFinite(y)) {
|
|
36
|
+
throw new ComputerUseError("coordinate must be finite [x, y] numbers", "COMPUTER_USE_BAD_ARGS");
|
|
37
|
+
}
|
|
38
|
+
return [Math.trunc(x), Math.trunc(y)];
|
|
39
|
+
}
|
|
32
40
|
/**
|
|
33
|
-
* Model-facing `computer_use` tool (
|
|
41
|
+
* Model-facing `computer_use` tool (Codex-style capture → act → re-capture loop).
|
|
34
42
|
* Separate from browser_open / browser_snapshot / browser_act.
|
|
35
43
|
*/
|
|
36
44
|
export function createComputerUseTools(options = {}) {
|
|
37
|
-
const missing = computerUseUnavailableMessage(options.env ?? process.env);
|
|
45
|
+
const missing = computerUseUnavailableMessage(options.env ?? process.env, options.product);
|
|
38
46
|
const tool = {
|
|
39
47
|
name: "computer_use",
|
|
40
|
-
description: "
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"Not for web pages — use browser_open / browser_snapshot / browser_act (browser_vision for screenshots).",
|
|
48
|
+
description: "Native desktop GUI. Loop: list_windows → capture → click/type/key/scroll by element index → capture. " +
|
|
49
|
+
"capture mode=ax|vision|som (vision/som inline screenshot + attachmentId). " +
|
|
50
|
+
"Optional coordinate=[x,y]. Web pages: browser_*.",
|
|
44
51
|
parameters: {
|
|
45
52
|
type: "object",
|
|
46
53
|
properties: {
|
|
@@ -52,7 +59,7 @@ export function createComputerUseTools(options = {}) {
|
|
|
52
59
|
mode: {
|
|
53
60
|
type: "string",
|
|
54
61
|
enum: ["ax", "som", "vision"],
|
|
55
|
-
description: "capture mode; ax
|
|
62
|
+
description: "capture mode; ax=tree only (default); vision=PNG+AX; som=PNG with index labels+AX.",
|
|
56
63
|
},
|
|
57
64
|
app: {
|
|
58
65
|
type: "string",
|
|
@@ -79,9 +86,22 @@ export function createComputerUseTools(options = {}) {
|
|
|
79
86
|
type: "number",
|
|
80
87
|
description: "Scroll wheel ticks (default 3).",
|
|
81
88
|
},
|
|
89
|
+
coordinate: {
|
|
90
|
+
type: "array",
|
|
91
|
+
items: { type: "number" },
|
|
92
|
+
minItems: 2,
|
|
93
|
+
maxItems: 2,
|
|
94
|
+
description: "Optional screen pixel [x, y] for action=click when element is omitted (vision/som).",
|
|
95
|
+
},
|
|
82
96
|
},
|
|
83
97
|
required: ["action"],
|
|
84
98
|
},
|
|
99
|
+
presentCall: (args) => ({
|
|
100
|
+
card: "generic",
|
|
101
|
+
title: "Computer use",
|
|
102
|
+
kind: "execute",
|
|
103
|
+
rawInput: args,
|
|
104
|
+
}),
|
|
85
105
|
async execute(args, signal) {
|
|
86
106
|
if (!options.service) {
|
|
87
107
|
return { content: missing, isError: true };
|
|
@@ -97,12 +117,48 @@ export function createComputerUseTools(options = {}) {
|
|
|
97
117
|
? { app: String(args.app) }
|
|
98
118
|
: {}),
|
|
99
119
|
}, signal);
|
|
100
|
-
|
|
120
|
+
const png = snap.screenshotPng;
|
|
121
|
+
if (png && png.byteLength > 0) {
|
|
122
|
+
const save = options.saveScreenshot;
|
|
123
|
+
if (!save) {
|
|
124
|
+
return {
|
|
125
|
+
content: "Error: desktop screenshot captured but no attachment store is wired, so vision cannot see it.",
|
|
126
|
+
isError: true,
|
|
127
|
+
error: {
|
|
128
|
+
name: "ComputerUseError",
|
|
129
|
+
code: "COMPUTER_USE_BACKEND",
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
const ref = await save(png);
|
|
134
|
+
const text = formatCaptureEnvelope({
|
|
135
|
+
snapshotText: snap.text,
|
|
136
|
+
mode: snap.mode,
|
|
137
|
+
attachmentId: ref.attachmentId,
|
|
138
|
+
elementCount: snap.elements.length,
|
|
139
|
+
});
|
|
140
|
+
return {
|
|
141
|
+
content: [
|
|
142
|
+
{ type: "text", text },
|
|
143
|
+
{ type: "image", attachment: ref },
|
|
144
|
+
],
|
|
145
|
+
meta: { mode: snap.mode, attachmentId: ref.attachmentId },
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
return {
|
|
149
|
+
content: formatCaptureEnvelope({
|
|
150
|
+
snapshotText: snap.text,
|
|
151
|
+
mode: snap.mode,
|
|
152
|
+
elementCount: snap.elements.length,
|
|
153
|
+
}),
|
|
154
|
+
meta: { mode: snap.mode },
|
|
155
|
+
};
|
|
101
156
|
}
|
|
102
157
|
if (action === "list_windows") {
|
|
103
158
|
const windows = await options.service.listWindows(signal);
|
|
104
159
|
return { content: formatWindowsList(windows) };
|
|
105
160
|
}
|
|
161
|
+
const coordinate = parseCoordinate(args?.coordinate);
|
|
106
162
|
const result = await options.service.act({
|
|
107
163
|
action,
|
|
108
164
|
...(args?.element !== undefined
|
|
@@ -118,10 +174,9 @@ export function createComputerUseTools(options = {}) {
|
|
|
118
174
|
...(args?.amount !== undefined
|
|
119
175
|
? { amount: Number(args.amount) }
|
|
120
176
|
: {}),
|
|
177
|
+
...(coordinate !== undefined ? { coordinate } : {}),
|
|
121
178
|
}, signal);
|
|
122
|
-
return {
|
|
123
|
-
content: `${result.message} (delivery=${result.delivery})`,
|
|
124
|
-
};
|
|
179
|
+
return { content: formatActResult(result) };
|
|
125
180
|
}
|
|
126
181
|
catch (err) {
|
|
127
182
|
return fail(err);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,GAGnB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,wBAAwB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,GAGnB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,wBAAwB,EAAE,CAAC;AAYpC,MAAM,UAAU,6BAA6B,CAC3C,MAAyB,OAAO,CAAC,GAAG,EACpC,OAAoC;IAEpC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1D,MAAM,SAAS,GACb,OAAO,EAAE,IAAI,KAAK,KAAK,IAAI,OAAO,EAAE,IAAI,KAAK,YAAY,CAAC;IAC5D,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,IAAI,OAAO,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;QACjE,OAAO,CACL,uEAAuE;YACvE,0CAA0C,CAC3C,CAAC;IACJ,CAAC;IACD,OAAO,CACL,4EAA4E;QAC5E,+DAA+D,CAChE,CAAC;AACJ,CAAC;AAYD,SAAS,IAAI,CAAC,GAAY;IACxB,MAAM,OAAO,GAAG,kBA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,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9C,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;YACnB,CAAC;QACH,CAAC;QACD,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE;YAC1B,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;YAC1C,OAAO,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,cAAc,CAAC;QAC3D,CAAC;KACF,CAAC;IAEF,OAAO,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC"}
|
|
@@ -37,6 +37,11 @@ export interface ComputerUseCaptureResult {
|
|
|
37
37
|
readonly elements: readonly ComputerUseElement[];
|
|
38
38
|
readonly text: string;
|
|
39
39
|
readonly note?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Optional PNG bytes for mode=vision|som (Windows UIA CopyFromScreen).
|
|
42
|
+
* Tool layer stores via AttachmentStore so the model can see the desktop.
|
|
43
|
+
*/
|
|
44
|
+
readonly screenshotPng?: Uint8Array;
|
|
40
45
|
}
|
|
41
46
|
export interface ComputerUseActRequest {
|
|
42
47
|
readonly action: Exclude<ComputerUseAction, "capture" | "list_windows">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,KAAK,GAAG,QAAQ,CAAC;AAElE,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,KAAK,GAAG,YAAY,CAAC;AAEtE,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,OAAO,GACP,MAAM,GACN,KAAK,GACL,QAAQ,GACR,cAAc,CAAC;AAEnB,eAAO,MAAM,oBAAoB,EAAE,SAAS,iBAAiB,EAO5D,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,6CA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