@xrkseek/harness 0.4.12 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@xrkseek/a2a/README.md +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/core-session/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.js +3 -0
- package/node_modules/@xrkseek/core-session/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js +16 -0
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/store.d.ts +5 -0
- package/node_modules/@xrkseek/core-session/dist/store.d.ts.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/canvas-store.d.ts +63 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-store.js +235 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-store.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.d.ts +14 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.js +229 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +21 -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 +13 -3
- 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/goal-store.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/goal-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/goal-store.js +6 -0
- package/node_modules/@xrkseek/server-face/dist/goal-store.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.d.ts +4 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.js +70 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.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 -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 +6 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js +90 -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 +8 -3
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +8 -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 +22 -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/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 +15 -0
- 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 +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 +33 -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 +61 -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 +258 -128
- 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/boot-inject.d.ts +14 -0
- package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/boot-inject.js +31 -0
- 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 +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 +2 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +2 -1
- package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/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
|
@@ -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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SAAS,KAAK,SAAS;wBAC/B,CAAC,CAAC;4BACE,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,CAIrB;yBACZ;wBACH,CAAC,CAAC,EAAE,CAAC;oBACP,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS;wBAC5B,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;wBACjC,CAAC,CAAC,EAAE,CAAC;oBACP,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBACpD,EACD,MAAM,CACP,CAAC;gBACF,OAAO,EAAE,OAAO,EAAE,eAAe,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"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L,QAAQ;IACR,cAAc;CACf,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAcH,MAAM,CAAC,MAAM,oBAAoB,GAAiC;IAChE,SAAS;IACT,OAAO;IACP,MAAM;IACN,KAAK;IACL,QAAQ;IACR,cAAc;CACf,CAAC;AAmEF,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAChC,IAAI,CAAuB;IAEpC,YAAY,OAAe,EAAE,IAA0B;QACrD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED,MAAM,UAAU,kBAAkB,CAAC,GAAY;IAC7C,OAAO,GAAG,YAAY,gBAAgB,CAAC;AACzC,CAAC"}
|
|
@@ -7,6 +7,10 @@ export interface CaptureScriptOptions {
|
|
|
7
7
|
readonly maxElements?: number;
|
|
8
8
|
/** Keep elements whose BoundingRectangle is empty (offscreen / unrendered). */
|
|
9
9
|
readonly includeOffscreen?: boolean;
|
|
10
|
+
/** Capture a PNG of the target window (Hermes mode=vision|som). */
|
|
11
|
+
readonly includeScreenshot?: boolean;
|
|
12
|
+
/** Draw 1-based element indices onto the screenshot (mode=som). */
|
|
13
|
+
readonly annotateSom?: boolean;
|
|
10
14
|
}
|
|
11
15
|
/**
|
|
12
16
|
* Walk one top-level window (by app/title match, else the focused window) and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windows-uia.d.ts","sourceRoot":"","sources":["../src/windows-uia.ts"],"names":[],"mappings":"AAUA,OAAO,EAML,KAAK,kBAAkB,EAExB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,gBAAgB,GAAG,CAC7B,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB,0EAA0E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captureScript(options = {}) {
|
|
|
131
131
|
const appLit = psStr(options.app?.trim() ?? "");
|
|
132
132
|
const max = Math.max(1, Math.floor(options.maxElements ?? DEFAULT_MAX_ELEMENTS));
|
|
133
133
|
const keepOffscreen = options.includeOffscreen ? "$true" : "$false";
|
|
134
|
+
const includeShot = options.includeScreenshot ? "$true" : "$false";
|
|
135
|
+
const annotateSom = options.annotateSom ? "$true" : "$false";
|
|
134
136
|
return `${PS_PRELUDE}
|
|
135
137
|
$appFilter = ${appLit}
|
|
136
138
|
$max = ${max}
|
|
137
139
|
$keepOffscreen = ${keepOffscreen}
|
|
140
|
+
$includeScreenshot = ${includeShot}
|
|
141
|
+
$annotateSom = ${annotateSom}
|
|
138
142
|
$maxDepth = 60
|
|
139
143
|
# Cross-process UIA calls are expensive; bound the walk so a giant browser tree
|
|
140
144
|
# cannot outrun the PowerShell timeout.
|
|
@@ -258,7 +262,72 @@ while ($queue.Count -gt 0 -and $idx -lt $max -and $visited -lt $visitCap) {
|
|
|
258
262
|
} catch { $dropped++ }
|
|
259
263
|
}
|
|
260
264
|
if ($queue.Count -gt 0 -and $visited -ge $visitCap) { $exhausted = $false }
|
|
261
|
-
|
|
265
|
+
|
|
266
|
+
$screenshotBase64 = ''
|
|
267
|
+
$screenshotError = ''
|
|
268
|
+
if ($includeScreenshot) {
|
|
269
|
+
try {
|
|
270
|
+
Add-Type -AssemblyName System.Drawing
|
|
271
|
+
$br = $win.Current.BoundingRectangle
|
|
272
|
+
$sx = XrkSafeInt $br.X
|
|
273
|
+
$sy = XrkSafeInt $br.Y
|
|
274
|
+
$sw = XrkSafeInt $br.Width
|
|
275
|
+
$sh = XrkSafeInt $br.Height
|
|
276
|
+
if ($null -eq $sx -or $null -eq $sy -or $null -eq $sw -or $null -eq $sh -or $sw -le 0 -or $sh -le 0) {
|
|
277
|
+
$screenshotError = 'window has no on-screen bounds for screenshot'
|
|
278
|
+
} else {
|
|
279
|
+
$maxW = 1280; $maxH = 720
|
|
280
|
+
$scale = [Math]::Min(1.0, [Math]::Min(($maxW / [double]$sw), ($maxH / [double]$sh)))
|
|
281
|
+
$dw = [Math]::Max(1, [int][Math]::Round($sw * $scale))
|
|
282
|
+
$dh = [Math]::Max(1, [int][Math]::Round($sh * $scale))
|
|
283
|
+
$src = New-Object System.Drawing.Bitmap $sw, $sh
|
|
284
|
+
$gs = [System.Drawing.Graphics]::FromImage($src)
|
|
285
|
+
$gs.CopyFromScreen($sx, $sy, 0, 0, (New-Object System.Drawing.Size($sw, $sh)))
|
|
286
|
+
$gs.Dispose()
|
|
287
|
+
$bmp = $src
|
|
288
|
+
if ($scale -lt 1.0) {
|
|
289
|
+
$bmp = New-Object System.Drawing.Bitmap $dw, $dh
|
|
290
|
+
$g = [System.Drawing.Graphics]::FromImage($bmp)
|
|
291
|
+
$g.DrawImage($src, 0, 0, $dw, $dh)
|
|
292
|
+
$g.Dispose()
|
|
293
|
+
$src.Dispose()
|
|
294
|
+
}
|
|
295
|
+
if ($annotateSom) {
|
|
296
|
+
$g2 = [System.Drawing.Graphics]::FromImage($bmp)
|
|
297
|
+
$font = New-Object System.Drawing.Font 'Consolas', 10, ([System.Drawing.FontStyle]::Bold)
|
|
298
|
+
$fill = New-Object System.Drawing.SolidBrush ([System.Drawing.Color]::FromArgb(220, 255, 220, 0))
|
|
299
|
+
$ink = New-Object System.Drawing.SolidBrush ([System.Drawing.Color]::Black)
|
|
300
|
+
foreach ($e in $elements) {
|
|
301
|
+
if ($null -eq $e.x -or $null -eq $e.y) { continue }
|
|
302
|
+
$lx = [int][Math]::Round(($e.x - $sx) * $scale)
|
|
303
|
+
$ly = [int][Math]::Round(($e.y - $sy) * $scale)
|
|
304
|
+
if ($lx -lt 0 -or $ly -lt 0 -or $lx -gt $dw -or $ly -gt $dh) { continue }
|
|
305
|
+
$label = [string]$e.index
|
|
306
|
+
$g2.FillRectangle($fill, $lx, $ly, 18, 14)
|
|
307
|
+
$g2.DrawString($label, $font, $ink, $lx, $ly)
|
|
308
|
+
}
|
|
309
|
+
$g2.Dispose(); $font.Dispose(); $fill.Dispose(); $ink.Dispose()
|
|
310
|
+
}
|
|
311
|
+
$ms = New-Object System.IO.MemoryStream
|
|
312
|
+
$bmp.Save($ms, [System.Drawing.Imaging.ImageFormat]::Png)
|
|
313
|
+
$screenshotBase64 = [Convert]::ToBase64String($ms.ToArray())
|
|
314
|
+
$ms.Dispose(); $bmp.Dispose()
|
|
315
|
+
}
|
|
316
|
+
} catch {
|
|
317
|
+
$screenshotError = $_.Exception.Message
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
@{
|
|
322
|
+
app = $appLabel
|
|
323
|
+
windowTitle = $title
|
|
324
|
+
elements = $elements
|
|
325
|
+
visited = $visited
|
|
326
|
+
dropped = $dropped
|
|
327
|
+
exhausted = $exhausted
|
|
328
|
+
screenshotBase64 = $screenshotBase64
|
|
329
|
+
screenshotError = $screenshotError
|
|
330
|
+
} | ConvertTo-Json -Depth 6 -Compress
|
|
262
331
|
`.trim();
|
|
263
332
|
}
|
|
264
333
|
/** Re-resolve an element by runtime id; Invoke → Select → focus + mouse click. */
|
|
@@ -308,6 +377,28 @@ Start-Sleep -Milliseconds 30
|
|
|
308
377
|
'clicked-point'
|
|
309
378
|
`.trim();
|
|
310
379
|
}
|
|
380
|
+
/** Absolute screen-pixel click (Codex vision path when no AX element). */
|
|
381
|
+
function clickCoordinateScript(x, y) {
|
|
382
|
+
return `${PS_PRELUDE}
|
|
383
|
+
Add-Type @"
|
|
384
|
+
using System;
|
|
385
|
+
using System.Runtime.InteropServices;
|
|
386
|
+
public static class XrkClickAt {
|
|
387
|
+
[DllImport("user32.dll")] public static extern bool SetCursorPos(int x, int y);
|
|
388
|
+
[DllImport("user32.dll")] public static extern void mouse_event(uint f, uint dx, uint dy, int data, UIntPtr extra);
|
|
389
|
+
public const uint LEFTDOWN = 0x0002;
|
|
390
|
+
public const uint LEFTUP = 0x0004;
|
|
391
|
+
}
|
|
392
|
+
"@
|
|
393
|
+
$x = ${Math.trunc(x)}
|
|
394
|
+
$y = ${Math.trunc(y)}
|
|
395
|
+
[void][XrkClickAt]::SetCursorPos($x, $y)
|
|
396
|
+
[void][XrkClickAt]::mouse_event([XrkClickAt]::LEFTDOWN, 0, 0, 0, [UIntPtr]::Zero)
|
|
397
|
+
Start-Sleep -Milliseconds 30
|
|
398
|
+
[void][XrkClickAt]::mouse_event([XrkClickAt]::LEFTUP, 0, 0, 0, [UIntPtr]::Zero)
|
|
399
|
+
"clicked-coordinate:$x,$y"
|
|
400
|
+
`.trim();
|
|
401
|
+
}
|
|
311
402
|
/**
|
|
312
403
|
* ValuePattern first, then clipboard paste (CJK-safe), then escaped SendKeys.
|
|
313
404
|
* Raw SendKeys mangles `+^%~()` and drops non-ASCII, so the caller passes both
|
|
@@ -477,10 +568,14 @@ export function createWindowsUiAutomationProvider(options = {}) {
|
|
|
477
568
|
let tokens = new Map();
|
|
478
569
|
async function runCapture(request, signal, includeOffscreen) {
|
|
479
570
|
const max = request?.maxElements ?? DEFAULT_MAX_ELEMENTS;
|
|
571
|
+
const mode = request?.mode ?? "ax";
|
|
572
|
+
const wantShot = mode === "vision" || mode === "som";
|
|
480
573
|
const raw = await run(captureScript({
|
|
481
574
|
...(request?.app !== undefined ? { app: request.app } : {}),
|
|
482
575
|
maxElements: max,
|
|
483
576
|
includeOffscreen,
|
|
577
|
+
includeScreenshot: wantShot,
|
|
578
|
+
annotateSom: mode === "som",
|
|
484
579
|
}), signal);
|
|
485
580
|
return parseJson(raw, "capture");
|
|
486
581
|
}
|
|
@@ -527,11 +622,33 @@ export function createWindowsUiAutomationProvider(options = {}) {
|
|
|
527
622
|
};
|
|
528
623
|
});
|
|
529
624
|
const mode = request?.mode ?? "ax";
|
|
625
|
+
const wantShot = mode === "vision" || mode === "som";
|
|
626
|
+
let screenshotPng;
|
|
627
|
+
const shotB64 = String(payload.screenshotBase64 ?? "").trim();
|
|
628
|
+
if (wantShot && shotB64) {
|
|
629
|
+
try {
|
|
630
|
+
screenshotPng = Uint8Array.from(Buffer.from(shotB64, "base64"));
|
|
631
|
+
}
|
|
632
|
+
catch {
|
|
633
|
+
screenshotPng = undefined;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
530
636
|
const notes = [
|
|
531
|
-
|
|
532
|
-
? "windows-uia has no screenshot overlay yet; AX elements only (delivery=uia, not background SPI)"
|
|
533
|
-
: "delivery=uia (UI Automation; not cua-driver background SPI)",
|
|
637
|
+
"delivery=uia (UI Automation; not cua-driver background SPI)",
|
|
534
638
|
];
|
|
639
|
+
if (wantShot) {
|
|
640
|
+
if (screenshotPng && screenshotPng.byteLength > 0) {
|
|
641
|
+
notes.push(mode === "som"
|
|
642
|
+
? "screenshot=png with SOM index labels"
|
|
643
|
+
: "screenshot=png (vision)");
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
const detail = String(payload.screenshotError ?? "").trim();
|
|
647
|
+
notes.push(detail
|
|
648
|
+
? `screenshot unavailable: ${detail}`
|
|
649
|
+
: "screenshot unavailable; AX elements only");
|
|
650
|
+
}
|
|
651
|
+
}
|
|
535
652
|
if (elements.length === 0) {
|
|
536
653
|
notes.push(payload.exhausted === false
|
|
537
654
|
? "visit budget ran out before any matching node — raise maxElements (the window is large, not empty)"
|
|
@@ -541,11 +658,14 @@ export function createWindowsUiAutomationProvider(options = {}) {
|
|
|
541
658
|
notes.push(`tree truncated at ${elements.length} of more nodes; raise maxElements for more`);
|
|
542
659
|
}
|
|
543
660
|
return buildCaptureResult({
|
|
544
|
-
mode
|
|
661
|
+
mode,
|
|
545
662
|
app: payload.app ?? "",
|
|
546
663
|
windowTitle: payload.windowTitle ?? "",
|
|
547
664
|
elements,
|
|
548
665
|
note: notes.join(" | "),
|
|
666
|
+
...(screenshotPng && screenshotPng.byteLength > 0
|
|
667
|
+
? { screenshotPng }
|
|
668
|
+
: {}),
|
|
549
669
|
});
|
|
550
670
|
},
|
|
551
671
|
async act(request, signal) {
|
|
@@ -602,8 +722,20 @@ export function createWindowsUiAutomationProvider(options = {}) {
|
|
|
602
722
|
delivery: "uia",
|
|
603
723
|
};
|
|
604
724
|
}
|
|
725
|
+
if (request.action === "click" &&
|
|
726
|
+
request.coordinate !== undefined &&
|
|
727
|
+
request.element === undefined) {
|
|
728
|
+
const [x, y] = request.coordinate;
|
|
729
|
+
const out = await run(clickCoordinateScript(x, y), signal);
|
|
730
|
+
return {
|
|
731
|
+
ok: true,
|
|
732
|
+
action: "click",
|
|
733
|
+
message: out || `clicked-coordinate:${x},${y}`,
|
|
734
|
+
delivery: "uia",
|
|
735
|
+
};
|
|
736
|
+
}
|
|
605
737
|
if (request.element === undefined) {
|
|
606
|
-
throw new ComputerUseError("element index is required", "COMPUTER_USE_BAD_ARGS");
|
|
738
|
+
throw new ComputerUseError("element index is required (or pass coordinate=[x,y] for pixel click)", "COMPUTER_USE_BAD_ARGS");
|
|
607
739
|
}
|
|
608
740
|
const runtimeId = tokens.get(request.element);
|
|
609
741
|
if (!runtimeId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windows-uia.js","sourceRoot":"","sources":["../src/windows-uia.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EACL,gBAAgB,GAOjB,MAAM,YAAY,CAAC;AAOpB,0EAA0E;AAC1E,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC;AAEpD;;;;GAIG;AACH,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BlB,CAAC;AAEF;;;;;;;GAOG;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AAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC9C,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACjC,CAAC,CAAC,CAAC;QACN,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Pluggable **execution world** providers (Hermes-style terminal environments).
|
|
4
4
|
|
|
5
5
|
- **Definition**: `ExecEnvironmentProvider` → `ExecWorld` (`fs` + `subprocess`)
|
|
6
|
-
- **Providers**: `local` (default) · `http` (serverless sample sidecar)
|
|
6
|
+
- **Providers**: `local` (default) · `memory` (in-process CI / tests) · `http` (serverless sample sidecar)
|
|
7
7
|
- **Not**: `SandboxService.confine` / `createSandboxStack` docker·bwrap·windows
|
|
8
8
|
|
|
9
|
-
Select via `resolveExecEnvironment` / `XRK_EXEC_ENVIRONMENT=local|http` (+ `XRK_EXEC_ENVIRONMENT_URL`).
|
|
9
|
+
Select via `resolveExecEnvironment` / `XRK_EXEC_ENVIRONMENT=local|memory|http` (+ `XRK_EXEC_ENVIRONMENT_URL` for http).
|
|
10
10
|
|
|
11
11
|
SSH stays `createSshExecutionWorld` on Host `remoteExecution` — same *shape*, separate dial.
|
|
12
12
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { ExecEnvironmentKind, ExecEnvironmentProvider, ExecWorld, } from "./types.js";
|
|
2
2
|
export { createLocalExecEnvironment, type LocalExecEnvironmentOptions, } from "./local.js";
|
|
3
3
|
export { createHttpExecEnvironment, HttpExecEnvironmentError, probeHttpExecEnvironment, type HttpExecEnvironmentOptions, } from "./http.js";
|
|
4
|
+
export { createMemoryExecEnvironment, type MemoryExecEnvironmentOptions, type MemorySpawnHandler, } from "./memory.js";
|
|
4
5
|
export { resolveExecEnvironment, type ResolveExecEnvironmentOptions, } from "./resolve.js";
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,uBAAuB,EACvB,SAAS,GACV,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,0BAA0B,EAC1B,KAAK,2BAA2B,GACjC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,KAAK,0BAA0B,GAChC,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,GACnC,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,uBAAuB,EACvB,SAAS,GACV,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,0BAA0B,EAC1B,KAAK,2BAA2B,GACjC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,KAAK,0BAA0B,GAChC,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,2BAA2B,EAC3B,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,GACnC,MAAM,cAAc,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { createLocalExecEnvironment, } from "./local.js";
|
|
2
2
|
export { createHttpExecEnvironment, HttpExecEnvironmentError, probeHttpExecEnvironment, } from "./http.js";
|
|
3
|
+
export { createMemoryExecEnvironment, } from "./memory.js";
|
|
3
4
|
export { resolveExecEnvironment, } from "./resolve.js";
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,0BAA0B,GAE3B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,GAEzB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,sBAAsB,GAEvB,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,0BAA0B,GAE3B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,GAEzB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,2BAA2B,GAG5B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,sBAAsB,GAEvB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In-memory ExecEnvironment — CI / unit tests without disk or HTTP sidecar.
|
|
3
|
+
* Same {@link ExecEnvironmentProvider} seam as local / http (Hermes-style).
|
|
4
|
+
*/
|
|
5
|
+
import type { FsService } from "@xrkseek/exec-fs";
|
|
6
|
+
import type { SpawnOptions, SubprocessResult } from "@xrkseek/exec-subprocess";
|
|
7
|
+
import type { ExecEnvironmentProvider } from "./types.js";
|
|
8
|
+
export type MemorySpawnHandler = (argv: readonly string[], opts: SpawnOptions | undefined, fs: FsService) => SubprocessResult | undefined | Promise<SubprocessResult | undefined>;
|
|
9
|
+
export interface MemoryExecEnvironmentOptions {
|
|
10
|
+
/**
|
|
11
|
+
* Seed files (path → UTF-8 text). Paths may be absolute under the workspace
|
|
12
|
+
* root or relative to it.
|
|
13
|
+
*/
|
|
14
|
+
readonly files?: Readonly<Record<string, string>> | ReadonlyMap<string, string>;
|
|
15
|
+
/** Logical workspace root advertised to tools. Default `/workspace`. */
|
|
16
|
+
readonly workspaceRoot?: string;
|
|
17
|
+
/** Optional spawn override; return `undefined` to fall through to builtins. */
|
|
18
|
+
readonly spawnHandler?: MemorySpawnHandler;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Build an in-memory {@link ExecEnvironmentProvider} (tests / CI demos).
|
|
22
|
+
* Always available; no host disk or sidecar.
|
|
23
|
+
*/
|
|
24
|
+
export declare function createMemoryExecEnvironment(options?: MemoryExecEnvironmentOptions): ExecEnvironmentProvider;
|
|
25
|
+
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAMV,SAAS,EAEV,MAAM,kBAAkB,CAAC;AAM1B,OAAO,KAAK,EACV,YAAY,EAEZ,gBAAgB,EAEjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,uBAAuB,EAAa,MAAM,YAAY,CAAC;AAErE,MAAM,MAAM,kBAAkB,GAAG,CAC/B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,IAAI,EAAE,YAAY,GAAG,SAAS,EAC9B,EAAE,EAAE,SAAS,KAEX,gBAAgB,GAChB,SAAS,GACT,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;AAE1C,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChF,wEAAwE;IACxE,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,CAAC;CAC5C;AA4QD;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,GAAE,4BAAiC,GACzC,uBAAuB,CA6BzB"}
|