@saltpub/oar 0.0.0-stage → 0.121.0
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/LICENSE +202 -0
- package/README.md +683 -3
- package/assets/brands/NOTICE.md +63 -0
- package/assets/brands/QWEN-LICENSE.txt +203 -0
- package/assets/brands/antigravity.svg +1 -0
- package/assets/brands/claude.svg +1 -0
- package/assets/brands/codebuddy-on-dark.svg +1 -0
- package/assets/brands/codebuddy-on-light.svg +1 -0
- package/assets/brands/codebuddy.svg +1 -0
- package/assets/brands/codex-on-dark.svg +1 -0
- package/assets/brands/codex-on-light.svg +1 -0
- package/assets/brands/codex.svg +1 -0
- package/assets/brands/cursor-on-dark.svg +1 -0
- package/assets/brands/cursor-on-light.svg +1 -0
- package/assets/brands/cursor.svg +1 -0
- package/assets/brands/devin.svg +1 -0
- package/assets/brands/dsh-on-dark.svg +1 -0
- package/assets/brands/dsh-on-light.svg +1 -0
- package/assets/brands/dsh.svg +1 -0
- package/assets/brands/factory.svg +8 -0
- package/assets/brands/grok-on-dark.svg +1 -0
- package/assets/brands/grok-on-light.svg +1 -0
- package/assets/brands/grok.svg +1 -0
- package/assets/brands/kimi-on-dark.svg +1 -0
- package/assets/brands/kimi-on-light.svg +1 -0
- package/assets/brands/kimi.svg +1 -0
- package/assets/brands/morph-on-dark.svg +9 -0
- package/assets/brands/morph-on-light.svg +9 -0
- package/assets/brands/morph.svg +9 -0
- package/assets/brands/opencode-on-dark.svg +1 -0
- package/assets/brands/opencode-on-light.svg +1 -0
- package/assets/brands/opencode.svg +1 -0
- package/assets/brands/pi-durable-on-dark.svg +6 -0
- package/assets/brands/pi-durable-on-light.svg +6 -0
- package/assets/brands/pi-durable.svg +6 -0
- package/assets/brands/pi-on-dark.svg +6 -0
- package/assets/brands/pi-on-light.svg +6 -0
- package/assets/brands/pi.svg +6 -0
- package/assets/brands/qoder-on-dark.svg +1 -0
- package/assets/brands/qoder-on-light.svg +1 -0
- package/assets/brands/qoder.svg +1 -0
- package/assets/brands/qwen-on-dark.svg +6 -0
- package/assets/brands/qwen-on-light.svg +6 -0
- package/assets/brands/qwen.svg +6 -0
- package/dist/agents/crew.d.ts +9 -0
- package/dist/agents/crew.d.ts.map +1 -0
- package/dist/agents/crew.js +250 -0
- package/dist/agents/crew.js.map +1 -0
- package/dist/agents/helpers.d.ts +15 -0
- package/dist/agents/helpers.d.ts.map +1 -0
- package/dist/agents/helpers.js +60 -0
- package/dist/agents/helpers.js.map +1 -0
- package/dist/agents/index.d.ts +10 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +8 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/report.d.ts +37 -0
- package/dist/agents/report.d.ts.map +1 -0
- package/dist/agents/report.js +58 -0
- package/dist/agents/report.js.map +1 -0
- package/dist/agents/subagent.d.ts +25 -0
- package/dist/agents/subagent.d.ts.map +1 -0
- package/dist/agents/subagent.js +206 -0
- package/dist/agents/subagent.js.map +1 -0
- package/dist/agents/types.d.ts +151 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/types.js +2 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/brands.d.ts +112 -0
- package/dist/brands.d.ts.map +1 -0
- package/dist/brands.js +97 -0
- package/dist/brands.js.map +1 -0
- package/dist/browser.d.ts +12 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +10 -0
- package/dist/browser.js.map +1 -0
- package/dist/community/cybion/client.d.ts +24 -0
- package/dist/community/cybion/client.d.ts.map +1 -0
- package/dist/community/cybion/client.js +42 -0
- package/dist/community/cybion/client.js.map +1 -0
- package/dist/community/cybion/index.d.ts +14 -0
- package/dist/community/cybion/index.d.ts.map +1 -0
- package/dist/community/cybion/index.js +30 -0
- package/dist/community/cybion/index.js.map +1 -0
- package/dist/community/cybion/projection.d.ts +7 -0
- package/dist/community/cybion/projection.d.ts.map +1 -0
- package/dist/community/cybion/projection.js +100 -0
- package/dist/community/cybion/projection.js.map +1 -0
- package/dist/community/cybion/refusal.d.ts +19 -0
- package/dist/community/cybion/refusal.d.ts.map +1 -0
- package/dist/community/cybion/refusal.js +23 -0
- package/dist/community/cybion/refusal.js.map +1 -0
- package/dist/community/cybion/refused-options.d.ts +4 -0
- package/dist/community/cybion/refused-options.d.ts.map +1 -0
- package/dist/community/cybion/refused-options.js +17 -0
- package/dist/community/cybion/refused-options.js.map +1 -0
- package/dist/community/cybion/session.d.ts +8 -0
- package/dist/community/cybion/session.d.ts.map +1 -0
- package/dist/community/cybion/session.js +283 -0
- package/dist/community/cybion/session.js.map +1 -0
- package/dist/community/cybion/thread.d.ts +75 -0
- package/dist/community/cybion/thread.d.ts.map +1 -0
- package/dist/community/cybion/thread.js +192 -0
- package/dist/community/cybion/thread.js.map +1 -0
- package/dist/community/cybion/tracker-facts.d.ts +38 -0
- package/dist/community/cybion/tracker-facts.d.ts.map +1 -0
- package/dist/community/cybion/tracker-facts.js +44 -0
- package/dist/community/cybion/tracker-facts.js.map +1 -0
- package/dist/community/cybion/tracker.d.ts +76 -0
- package/dist/community/cybion/tracker.d.ts.map +1 -0
- package/dist/community/cybion/tracker.js +244 -0
- package/dist/community/cybion/tracker.js.map +1 -0
- package/dist/community/index.d.ts +3 -0
- package/dist/community/index.d.ts.map +1 -0
- package/dist/community/index.js +9 -0
- package/dist/community/index.js.map +1 -0
- package/dist/community/morph/console.d.ts +54 -0
- package/dist/community/morph/console.d.ts.map +1 -0
- package/dist/community/morph/console.js +237 -0
- package/dist/community/morph/console.js.map +1 -0
- package/dist/community/morph/index.d.ts +11 -0
- package/dist/community/morph/index.d.ts.map +1 -0
- package/dist/community/morph/index.js +31 -0
- package/dist/community/morph/index.js.map +1 -0
- package/dist/community/morph/installation.d.ts +4 -0
- package/dist/community/morph/installation.d.ts.map +1 -0
- package/dist/community/morph/installation.js +16 -0
- package/dist/community/morph/installation.js.map +1 -0
- package/dist/community/morph/list-models.d.ts +9 -0
- package/dist/community/morph/list-models.d.ts.map +1 -0
- package/dist/community/morph/list-models.js +36 -0
- package/dist/community/morph/list-models.js.map +1 -0
- package/dist/community/morph/projection.d.ts +36 -0
- package/dist/community/morph/projection.d.ts.map +1 -0
- package/dist/community/morph/projection.js +210 -0
- package/dist/community/morph/projection.js.map +1 -0
- package/dist/community/morph/session.d.ts +9 -0
- package/dist/community/morph/session.d.ts.map +1 -0
- package/dist/community/morph/session.js +220 -0
- package/dist/community/morph/session.js.map +1 -0
- package/dist/community/morph/topic.d.ts +24 -0
- package/dist/community/morph/topic.d.ts.map +1 -0
- package/dist/community/morph/topic.js +74 -0
- package/dist/community/morph/topic.js.map +1 -0
- package/dist/community/morph/tracker.d.ts +33 -0
- package/dist/community/morph/tracker.d.ts.map +1 -0
- package/dist/community/morph/tracker.js +157 -0
- package/dist/community/morph/tracker.js.map +1 -0
- package/dist/contracts/account-usage.d.ts +303 -0
- package/dist/contracts/account-usage.d.ts.map +1 -0
- package/dist/contracts/account-usage.js +2 -0
- package/dist/contracts/account-usage.js.map +1 -0
- package/dist/contracts/brand.d.ts +12 -0
- package/dist/contracts/brand.d.ts.map +1 -0
- package/dist/contracts/brand.js +2 -0
- package/dist/contracts/brand.js.map +1 -0
- package/dist/contracts/cleanup.d.ts +82 -0
- package/dist/contracts/cleanup.d.ts.map +1 -0
- package/dist/contracts/cleanup.js +75 -0
- package/dist/contracts/cleanup.js.map +1 -0
- package/dist/contracts/compaction.d.ts +43 -0
- package/dist/contracts/compaction.d.ts.map +1 -0
- package/dist/contracts/compaction.js +2 -0
- package/dist/contracts/compaction.js.map +1 -0
- package/dist/contracts/context-breakdown.d.ts +33 -0
- package/dist/contracts/context-breakdown.d.ts.map +1 -0
- package/dist/contracts/context-breakdown.js +2 -0
- package/dist/contracts/context-breakdown.js.map +1 -0
- package/dist/contracts/context-usage.d.ts +7 -0
- package/dist/contracts/context-usage.d.ts.map +1 -0
- package/dist/contracts/context-usage.js +2 -0
- package/dist/contracts/context-usage.js.map +1 -0
- package/dist/contracts/control.d.ts +29 -0
- package/dist/contracts/control.d.ts.map +1 -0
- package/dist/contracts/control.js +2 -0
- package/dist/contracts/control.js.map +1 -0
- package/dist/contracts/deliver.d.ts +57 -0
- package/dist/contracts/deliver.d.ts.map +1 -0
- package/dist/contracts/deliver.js +2 -0
- package/dist/contracts/deliver.js.map +1 -0
- package/dist/contracts/errors.d.ts +18 -0
- package/dist/contracts/errors.d.ts.map +1 -0
- package/dist/contracts/errors.js +20 -0
- package/dist/contracts/errors.js.map +1 -0
- package/dist/contracts/execution-policy.d.ts +53 -0
- package/dist/contracts/execution-policy.d.ts.map +1 -0
- package/dist/contracts/execution-policy.js +2 -0
- package/dist/contracts/execution-policy.js.map +1 -0
- package/dist/contracts/failure.d.ts +62 -0
- package/dist/contracts/failure.d.ts.map +1 -0
- package/dist/contracts/failure.js +2 -0
- package/dist/contracts/failure.js.map +1 -0
- package/dist/contracts/goal.d.ts +36 -0
- package/dist/contracts/goal.d.ts.map +1 -0
- package/dist/contracts/goal.js +2 -0
- package/dist/contracts/goal.js.map +1 -0
- package/dist/contracts/graph.d.ts +19 -0
- package/dist/contracts/graph.d.ts.map +1 -0
- package/dist/contracts/graph.js +4 -0
- package/dist/contracts/graph.js.map +1 -0
- package/dist/contracts/index.d.ts +30 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +10 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/contracts/input.d.ts +41 -0
- package/dist/contracts/input.d.ts.map +1 -0
- package/dist/contracts/input.js +2 -0
- package/dist/contracts/input.js.map +1 -0
- package/dist/contracts/install.d.ts +112 -0
- package/dist/contracts/install.d.ts.map +1 -0
- package/dist/contracts/install.js +2 -0
- package/dist/contracts/install.js.map +1 -0
- package/dist/contracts/installation.d.ts +67 -0
- package/dist/contracts/installation.d.ts.map +1 -0
- package/dist/contracts/installation.js +2 -0
- package/dist/contracts/installation.js.map +1 -0
- package/dist/contracts/inventory.d.ts +93 -0
- package/dist/contracts/inventory.d.ts.map +1 -0
- package/dist/contracts/inventory.js +2 -0
- package/dist/contracts/inventory.js.map +1 -0
- package/dist/contracts/list-models.d.ts +96 -0
- package/dist/contracts/list-models.d.ts.map +1 -0
- package/dist/contracts/list-models.js +2 -0
- package/dist/contracts/list-models.js.map +1 -0
- package/dist/contracts/login.d.ts +194 -0
- package/dist/contracts/login.d.ts.map +1 -0
- package/dist/contracts/login.js +2 -0
- package/dist/contracts/login.js.map +1 -0
- package/dist/contracts/model-catalog.d.ts +51 -0
- package/dist/contracts/model-catalog.d.ts.map +1 -0
- package/dist/contracts/model-catalog.js +9 -0
- package/dist/contracts/model-catalog.js.map +1 -0
- package/dist/contracts/model-confirmation-error.d.ts +27 -0
- package/dist/contracts/model-confirmation-error.d.ts.map +1 -0
- package/dist/contracts/model-confirmation-error.js +24 -0
- package/dist/contracts/model-confirmation-error.js.map +1 -0
- package/dist/contracts/orientation.d.ts +66 -0
- package/dist/contracts/orientation.d.ts.map +1 -0
- package/dist/contracts/orientation.js +2 -0
- package/dist/contracts/orientation.js.map +1 -0
- package/dist/contracts/ownership.d.ts +50 -0
- package/dist/contracts/ownership.d.ts.map +1 -0
- package/dist/contracts/ownership.js +2 -0
- package/dist/contracts/ownership.js.map +1 -0
- package/dist/contracts/placement.d.ts +53 -0
- package/dist/contracts/placement.d.ts.map +1 -0
- package/dist/contracts/placement.js +42 -0
- package/dist/contracts/placement.js.map +1 -0
- package/dist/contracts/provider-auth.d.ts +158 -0
- package/dist/contracts/provider-auth.d.ts.map +1 -0
- package/dist/contracts/provider-auth.js +9 -0
- package/dist/contracts/provider-auth.js.map +1 -0
- package/dist/contracts/records.d.ts +450 -0
- package/dist/contracts/records.d.ts.map +1 -0
- package/dist/contracts/records.js +2 -0
- package/dist/contracts/records.js.map +1 -0
- package/dist/contracts/resume-cwd-error.d.ts +29 -0
- package/dist/contracts/resume-cwd-error.d.ts.map +1 -0
- package/dist/contracts/resume-cwd-error.js +27 -0
- package/dist/contracts/resume-cwd-error.js.map +1 -0
- package/dist/contracts/runtime-failure-error.d.ts +33 -0
- package/dist/contracts/runtime-failure-error.d.ts.map +1 -0
- package/dist/contracts/runtime-failure-error.js +22 -0
- package/dist/contracts/runtime-failure-error.js.map +1 -0
- package/dist/contracts/runtime.d.ts +247 -0
- package/dist/contracts/runtime.d.ts.map +1 -0
- package/dist/contracts/runtime.js +74 -0
- package/dist/contracts/runtime.js.map +1 -0
- package/dist/contracts/session-not-found-error.d.ts +21 -0
- package/dist/contracts/session-not-found-error.d.ts.map +1 -0
- package/dist/contracts/session-not-found-error.js +18 -0
- package/dist/contracts/session-not-found-error.js.map +1 -0
- package/dist/contracts/session-options.d.ts +332 -0
- package/dist/contracts/session-options.d.ts.map +1 -0
- package/dist/contracts/session-options.js +2 -0
- package/dist/contracts/session-options.js.map +1 -0
- package/dist/contracts/session-unavailable-error.d.ts +32 -0
- package/dist/contracts/session-unavailable-error.d.ts.map +1 -0
- package/dist/contracts/session-unavailable-error.js +19 -0
- package/dist/contracts/session-unavailable-error.js.map +1 -0
- package/dist/contracts/session.d.ts +284 -0
- package/dist/contracts/session.d.ts.map +1 -0
- package/dist/contracts/session.js +2 -0
- package/dist/contracts/session.js.map +1 -0
- package/dist/contracts/shell-environment.d.ts +24 -0
- package/dist/contracts/shell-environment.d.ts.map +1 -0
- package/dist/contracts/shell-environment.js +21 -0
- package/dist/contracts/shell-environment.js.map +1 -0
- package/dist/contracts/side-question.d.ts +158 -0
- package/dist/contracts/side-question.d.ts.map +1 -0
- package/dist/contracts/side-question.js +2 -0
- package/dist/contracts/side-question.js.map +1 -0
- package/dist/contracts/status.d.ts +65 -0
- package/dist/contracts/status.d.ts.map +1 -0
- package/dist/contracts/status.js +2 -0
- package/dist/contracts/status.js.map +1 -0
- package/dist/contracts/tasks.d.ts +58 -0
- package/dist/contracts/tasks.d.ts.map +1 -0
- package/dist/contracts/tasks.js +2 -0
- package/dist/contracts/tasks.js.map +1 -0
- package/dist/contracts/tool-output.d.ts +22 -0
- package/dist/contracts/tool-output.d.ts.map +1 -0
- package/dist/contracts/tool-output.js +2 -0
- package/dist/contracts/tool-output.js.map +1 -0
- package/dist/contracts/turn-outcome.d.ts +17 -0
- package/dist/contracts/turn-outcome.d.ts.map +1 -0
- package/dist/contracts/turn-outcome.js +2 -0
- package/dist/contracts/turn-outcome.js.map +1 -0
- package/dist/contracts/update.d.ts +77 -0
- package/dist/contracts/update.d.ts.map +1 -0
- package/dist/contracts/update.js +2 -0
- package/dist/contracts/update.js.map +1 -0
- package/dist/forms/fields.d.ts +9 -0
- package/dist/forms/fields.d.ts.map +1 -0
- package/dist/forms/fields.js +46 -0
- package/dist/forms/fields.js.map +1 -0
- package/dist/forms/index.d.ts +5 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +11 -0
- package/dist/forms/index.js.map +1 -0
- package/dist/forms/listing.d.ts +15 -0
- package/dist/forms/listing.d.ts.map +1 -0
- package/dist/forms/listing.js +28 -0
- package/dist/forms/listing.js.map +1 -0
- package/dist/forms/map.d.ts +32 -0
- package/dist/forms/map.d.ts.map +1 -0
- package/dist/forms/map.js +76 -0
- package/dist/forms/map.js.map +1 -0
- package/dist/forms/runtimes/grok.d.ts +15 -0
- package/dist/forms/runtimes/grok.d.ts.map +1 -0
- package/dist/forms/runtimes/grok.js +56 -0
- package/dist/forms/runtimes/grok.js.map +1 -0
- package/dist/forms/types.d.ts +131 -0
- package/dist/forms/types.d.ts.map +1 -0
- package/dist/forms/types.js +2 -0
- package/dist/forms/types.js.map +1 -0
- package/dist/forms/validate.d.ts +10 -0
- package/dist/forms/validate.d.ts.map +1 -0
- package/dist/forms/validate.js +147 -0
- package/dist/forms/validate.js.map +1 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +73 -0
- package/dist/index.js.map +1 -0
- package/dist/kernel.d.ts +21 -0
- package/dist/kernel.d.ts.map +1 -0
- package/dist/kernel.js +18 -0
- package/dist/kernel.js.map +1 -0
- package/dist/mcp/http.d.ts +23 -0
- package/dist/mcp/http.d.ts.map +1 -0
- package/dist/mcp/http.js +111 -0
- package/dist/mcp/http.js.map +1 -0
- package/dist/mcp/serve-tools.d.ts +81 -0
- package/dist/mcp/serve-tools.d.ts.map +1 -0
- package/dist/mcp/serve-tools.js +215 -0
- package/dist/mcp/serve-tools.js.map +1 -0
- package/dist/observe/adapter-queue.d.ts +33 -0
- package/dist/observe/adapter-queue.d.ts.map +1 -0
- package/dist/observe/adapter-queue.js +76 -0
- package/dist/observe/adapter-queue.js.map +1 -0
- package/dist/observe/agent-status.d.ts +14 -0
- package/dist/observe/agent-status.d.ts.map +1 -0
- package/dist/observe/agent-status.js +333 -0
- package/dist/observe/agent-status.js.map +1 -0
- package/dist/observe/app-requests.d.ts +28 -0
- package/dist/observe/app-requests.d.ts.map +1 -0
- package/dist/observe/app-requests.js +76 -0
- package/dist/observe/app-requests.js.map +1 -0
- package/dist/observe/conversation.d.ts +71 -0
- package/dist/observe/conversation.d.ts.map +1 -0
- package/dist/observe/conversation.js +222 -0
- package/dist/observe/conversation.js.map +1 -0
- package/dist/observe/display-text.d.ts +28 -0
- package/dist/observe/display-text.d.ts.map +1 -0
- package/dist/observe/display-text.js +155 -0
- package/dist/observe/display-text.js.map +1 -0
- package/dist/observe/events.d.ts +42 -0
- package/dist/observe/events.d.ts.map +1 -0
- package/dist/observe/events.js +169 -0
- package/dist/observe/events.js.map +1 -0
- package/dist/observe/failure-advice.d.ts +24 -0
- package/dist/observe/failure-advice.d.ts.map +1 -0
- package/dist/observe/failure-advice.js +21 -0
- package/dist/observe/failure-advice.js.map +1 -0
- package/dist/observe/graph.d.ts +14 -0
- package/dist/observe/graph.d.ts.map +1 -0
- package/dist/observe/graph.js +40 -0
- package/dist/observe/graph.js.map +1 -0
- package/dist/observe/index.d.ts +43 -0
- package/dist/observe/index.d.ts.map +1 -0
- package/dist/observe/index.js +29 -0
- package/dist/observe/index.js.map +1 -0
- package/dist/observe/input-admission.d.ts +20 -0
- package/dist/observe/input-admission.d.ts.map +1 -0
- package/dist/observe/input-admission.js +64 -0
- package/dist/observe/input-admission.js.map +1 -0
- package/dist/observe/input-carries.d.ts +10 -0
- package/dist/observe/input-carries.d.ts.map +1 -0
- package/dist/observe/input-carries.js +25 -0
- package/dist/observe/input-carries.js.map +1 -0
- package/dist/observe/input-delivery.d.ts +13 -0
- package/dist/observe/input-delivery.d.ts.map +1 -0
- package/dist/observe/input-delivery.js +47 -0
- package/dist/observe/input-delivery.js.map +1 -0
- package/dist/observe/input-identity.d.ts +13 -0
- package/dist/observe/input-identity.d.ts.map +1 -0
- package/dist/observe/input-identity.js +12 -0
- package/dist/observe/input-identity.js.map +1 -0
- package/dist/observe/input-wait.d.ts +15 -0
- package/dist/observe/input-wait.d.ts.map +1 -0
- package/dist/observe/input-wait.js +134 -0
- package/dist/observe/input-wait.js.map +1 -0
- package/dist/observe/legacy.d.ts +15 -0
- package/dist/observe/legacy.d.ts.map +1 -0
- package/dist/observe/legacy.js +63 -0
- package/dist/observe/legacy.js.map +1 -0
- package/dist/observe/observe-agent.d.ts +38 -0
- package/dist/observe/observe-agent.d.ts.map +1 -0
- package/dist/observe/observe-agent.js +61 -0
- package/dist/observe/observe-agent.js.map +1 -0
- package/dist/observe/redact-record.d.ts +14 -0
- package/dist/observe/redact-record.d.ts.map +1 -0
- package/dist/observe/redact-record.js +28 -0
- package/dist/observe/redact-record.js.map +1 -0
- package/dist/observe/session-view-events.d.ts +5 -0
- package/dist/observe/session-view-events.d.ts.map +1 -0
- package/dist/observe/session-view-events.js +399 -0
- package/dist/observe/session-view-events.js.map +1 -0
- package/dist/observe/session-view-fold.d.ts +79 -0
- package/dist/observe/session-view-fold.d.ts.map +1 -0
- package/dist/observe/session-view-fold.js +212 -0
- package/dist/observe/session-view-fold.js.map +1 -0
- package/dist/observe/session-view-inputs.d.ts +30 -0
- package/dist/observe/session-view-inputs.d.ts.map +1 -0
- package/dist/observe/session-view-inputs.js +179 -0
- package/dist/observe/session-view-inputs.js.map +1 -0
- package/dist/observe/session-view-tools.d.ts +42 -0
- package/dist/observe/session-view-tools.d.ts.map +1 -0
- package/dist/observe/session-view-tools.js +116 -0
- package/dist/observe/session-view-tools.js.map +1 -0
- package/dist/observe/session-view.d.ts +229 -0
- package/dist/observe/session-view.d.ts.map +1 -0
- package/dist/observe/session-view.js +115 -0
- package/dist/observe/session-view.js.map +1 -0
- package/dist/observe/side-question.d.ts +24 -0
- package/dist/observe/side-question.d.ts.map +1 -0
- package/dist/observe/side-question.js +35 -0
- package/dist/observe/side-question.js.map +1 -0
- package/dist/observe/stall-observer.d.ts +20 -0
- package/dist/observe/stall-observer.d.ts.map +1 -0
- package/dist/observe/stall-observer.js +47 -0
- package/dist/observe/stall-observer.js.map +1 -0
- package/dist/observe/status-state.d.ts +27 -0
- package/dist/observe/status-state.d.ts.map +1 -0
- package/dist/observe/status-state.js +8 -0
- package/dist/observe/status-state.js.map +1 -0
- package/dist/observe/streams.d.ts +39 -0
- package/dist/observe/streams.d.ts.map +1 -0
- package/dist/observe/streams.js +50 -0
- package/dist/observe/streams.js.map +1 -0
- package/dist/observe/tasks.d.ts +71 -0
- package/dist/observe/tasks.d.ts.map +1 -0
- package/dist/observe/tasks.js +136 -0
- package/dist/observe/tasks.js.map +1 -0
- package/dist/observe/tool-activity.d.ts +55 -0
- package/dist/observe/tool-activity.d.ts.map +1 -0
- package/dist/observe/tool-activity.js +218 -0
- package/dist/observe/tool-activity.js.map +1 -0
- package/dist/observe/tool-groups.d.ts +45 -0
- package/dist/observe/tool-groups.d.ts.map +1 -0
- package/dist/observe/tool-groups.js +93 -0
- package/dist/observe/tool-groups.js.map +1 -0
- package/dist/observe/tool-output.d.ts +8 -0
- package/dist/observe/tool-output.d.ts.map +1 -0
- package/dist/observe/tool-output.js +10 -0
- package/dist/observe/tool-output.js.map +1 -0
- package/dist/observe/tool-paths.d.ts +3 -0
- package/dist/observe/tool-paths.d.ts.map +1 -0
- package/dist/observe/tool-paths.js +57 -0
- package/dist/observe/tool-paths.js.map +1 -0
- package/dist/observe/turn-stop.d.ts +12 -0
- package/dist/observe/turn-stop.d.ts.map +1 -0
- package/dist/observe/turn-stop.js +31 -0
- package/dist/observe/turn-stop.js.map +1 -0
- package/dist/observe/turns.d.ts +115 -0
- package/dist/observe/turns.d.ts.map +1 -0
- package/dist/observe/turns.js +208 -0
- package/dist/observe/turns.js.map +1 -0
- package/dist/observe/usage-totals.d.ts +27 -0
- package/dist/observe/usage-totals.d.ts.map +1 -0
- package/dist/observe/usage-totals.js +64 -0
- package/dist/observe/usage-totals.js.map +1 -0
- package/dist/observe/usage.d.ts +24 -0
- package/dist/observe/usage.d.ts.map +1 -0
- package/dist/observe/usage.js +136 -0
- package/dist/observe/usage.js.map +1 -0
- package/dist/pi-durable.d.ts +3 -0
- package/dist/pi-durable.d.ts.map +1 -0
- package/dist/pi-durable.js +3 -0
- package/dist/pi-durable.js.map +1 -0
- package/dist/platforms.d.ts +30 -0
- package/dist/platforms.d.ts.map +1 -0
- package/dist/platforms.js +19 -0
- package/dist/platforms.js.map +1 -0
- package/dist/registry.d.ts +10 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +30 -0
- package/dist/registry.js.map +1 -0
- package/dist/runtimes/antigravity/account-usage.d.ts +14 -0
- package/dist/runtimes/antigravity/account-usage.d.ts.map +1 -0
- package/dist/runtimes/antigravity/account-usage.js +147 -0
- package/dist/runtimes/antigravity/account-usage.js.map +1 -0
- package/dist/runtimes/antigravity/auth.d.ts +11 -0
- package/dist/runtimes/antigravity/auth.d.ts.map +1 -0
- package/dist/runtimes/antigravity/auth.js +223 -0
- package/dist/runtimes/antigravity/auth.js.map +1 -0
- package/dist/runtimes/antigravity/index.d.ts +34 -0
- package/dist/runtimes/antigravity/index.d.ts.map +1 -0
- package/dist/runtimes/antigravity/index.js +38 -0
- package/dist/runtimes/antigravity/index.js.map +1 -0
- package/dist/runtimes/antigravity/install.d.ts +8 -0
- package/dist/runtimes/antigravity/install.d.ts.map +1 -0
- package/dist/runtimes/antigravity/install.js +37 -0
- package/dist/runtimes/antigravity/install.js.map +1 -0
- package/dist/runtimes/antigravity/installation.d.ts +7 -0
- package/dist/runtimes/antigravity/installation.d.ts.map +1 -0
- package/dist/runtimes/antigravity/installation.js +44 -0
- package/dist/runtimes/antigravity/installation.js.map +1 -0
- package/dist/runtimes/antigravity/list-models.d.ts +4 -0
- package/dist/runtimes/antigravity/list-models.d.ts.map +1 -0
- package/dist/runtimes/antigravity/list-models.js +69 -0
- package/dist/runtimes/antigravity/list-models.js.map +1 -0
- package/dist/runtimes/antigravity/login-browser.d.ts +14 -0
- package/dist/runtimes/antigravity/login-browser.d.ts.map +1 -0
- package/dist/runtimes/antigravity/login-browser.js +30 -0
- package/dist/runtimes/antigravity/login-browser.js.map +1 -0
- package/dist/runtimes/antigravity/logout.d.ts +12 -0
- package/dist/runtimes/antigravity/logout.d.ts.map +1 -0
- package/dist/runtimes/antigravity/logout.js +33 -0
- package/dist/runtimes/antigravity/logout.js.map +1 -0
- package/dist/runtimes/antigravity/model-menus.d.ts +15 -0
- package/dist/runtimes/antigravity/model-menus.d.ts.map +1 -0
- package/dist/runtimes/antigravity/model-menus.js +191 -0
- package/dist/runtimes/antigravity/model-menus.js.map +1 -0
- package/dist/runtimes/antigravity/model-selection.d.ts +5 -0
- package/dist/runtimes/antigravity/model-selection.d.ts.map +1 -0
- package/dist/runtimes/antigravity/model-selection.js +58 -0
- package/dist/runtimes/antigravity/model-selection.js.map +1 -0
- package/dist/runtimes/antigravity/options.d.ts +3 -0
- package/dist/runtimes/antigravity/options.d.ts.map +1 -0
- package/dist/runtimes/antigravity/options.js +22 -0
- package/dist/runtimes/antigravity/options.js.map +1 -0
- package/dist/runtimes/antigravity/quota.d.ts +6 -0
- package/dist/runtimes/antigravity/quota.d.ts.map +1 -0
- package/dist/runtimes/antigravity/quota.js +50 -0
- package/dist/runtimes/antigravity/quota.js.map +1 -0
- package/dist/runtimes/antigravity/session.d.ts +6 -0
- package/dist/runtimes/antigravity/session.d.ts.map +1 -0
- package/dist/runtimes/antigravity/session.js +61 -0
- package/dist/runtimes/antigravity/session.js.map +1 -0
- package/dist/runtimes/antigravity/skill-files.d.ts +8 -0
- package/dist/runtimes/antigravity/skill-files.d.ts.map +1 -0
- package/dist/runtimes/antigravity/skill-files.js +152 -0
- package/dist/runtimes/antigravity/skill-files.js.map +1 -0
- package/dist/runtimes/antigravity/skill-manifests.d.ts +13 -0
- package/dist/runtimes/antigravity/skill-manifests.d.ts.map +1 -0
- package/dist/runtimes/antigravity/skill-manifests.js +92 -0
- package/dist/runtimes/antigravity/skill-manifests.js.map +1 -0
- package/dist/runtimes/antigravity/skill-metadata.d.ts +9 -0
- package/dist/runtimes/antigravity/skill-metadata.d.ts.map +1 -0
- package/dist/runtimes/antigravity/skill-metadata.js +57 -0
- package/dist/runtimes/antigravity/skill-metadata.js.map +1 -0
- package/dist/runtimes/antigravity/skills.d.ts +4 -0
- package/dist/runtimes/antigravity/skills.d.ts.map +1 -0
- package/dist/runtimes/antigravity/skills.js +82 -0
- package/dist/runtimes/antigravity/skills.js.map +1 -0
- package/dist/runtimes/antigravity/state-directory.d.ts +6 -0
- package/dist/runtimes/antigravity/state-directory.d.ts.map +1 -0
- package/dist/runtimes/antigravity/state-directory.js +24 -0
- package/dist/runtimes/antigravity/state-directory.js.map +1 -0
- package/dist/runtimes/antigravity/update.d.ts +9 -0
- package/dist/runtimes/antigravity/update.d.ts.map +1 -0
- package/dist/runtimes/antigravity/update.js +42 -0
- package/dist/runtimes/antigravity/update.js.map +1 -0
- package/dist/runtimes/antigravity/version.d.ts +17 -0
- package/dist/runtimes/antigravity/version.d.ts.map +1 -0
- package/dist/runtimes/antigravity/version.js +32 -0
- package/dist/runtimes/antigravity/version.js.map +1 -0
- package/dist/runtimes/claude/account-usage.d.ts +10 -0
- package/dist/runtimes/claude/account-usage.d.ts.map +1 -0
- package/dist/runtimes/claude/account-usage.js +208 -0
- package/dist/runtimes/claude/account-usage.js.map +1 -0
- package/dist/runtimes/claude/auth-status.d.ts +15 -0
- package/dist/runtimes/claude/auth-status.d.ts.map +1 -0
- package/dist/runtimes/claude/auth-status.js +63 -0
- package/dist/runtimes/claude/auth-status.js.map +1 -0
- package/dist/runtimes/claude/compaction.d.ts +12 -0
- package/dist/runtimes/claude/compaction.d.ts.map +1 -0
- package/dist/runtimes/claude/compaction.js +104 -0
- package/dist/runtimes/claude/compaction.js.map +1 -0
- package/dist/runtimes/claude/context-breakdown.d.ts +22 -0
- package/dist/runtimes/claude/context-breakdown.d.ts.map +1 -0
- package/dist/runtimes/claude/context-breakdown.js +128 -0
- package/dist/runtimes/claude/context-breakdown.js.map +1 -0
- package/dist/runtimes/claude/context-usage.d.ts +45 -0
- package/dist/runtimes/claude/context-usage.d.ts.map +1 -0
- package/dist/runtimes/claude/context-usage.js +39 -0
- package/dist/runtimes/claude/context-usage.js.map +1 -0
- package/dist/runtimes/claude/effort.d.ts +14 -0
- package/dist/runtimes/claude/effort.d.ts.map +1 -0
- package/dist/runtimes/claude/effort.js +62 -0
- package/dist/runtimes/claude/effort.js.map +1 -0
- package/dist/runtimes/claude/environment.d.ts +22 -0
- package/dist/runtimes/claude/environment.d.ts.map +1 -0
- package/dist/runtimes/claude/environment.js +41 -0
- package/dist/runtimes/claude/environment.js.map +1 -0
- package/dist/runtimes/claude/failure.d.ts +40 -0
- package/dist/runtimes/claude/failure.d.ts.map +1 -0
- package/dist/runtimes/claude/failure.js +96 -0
- package/dist/runtimes/claude/failure.js.map +1 -0
- package/dist/runtimes/claude/fork-identity.d.ts +8 -0
- package/dist/runtimes/claude/fork-identity.d.ts.map +1 -0
- package/dist/runtimes/claude/fork-identity.js +56 -0
- package/dist/runtimes/claude/fork-identity.js.map +1 -0
- package/dist/runtimes/claude/global-config.d.ts +3 -0
- package/dist/runtimes/claude/global-config.d.ts.map +1 -0
- package/dist/runtimes/claude/global-config.js +36 -0
- package/dist/runtimes/claude/global-config.js.map +1 -0
- package/dist/runtimes/claude/history.d.ts +5 -0
- package/dist/runtimes/claude/history.d.ts.map +1 -0
- package/dist/runtimes/claude/history.js +160 -0
- package/dist/runtimes/claude/history.js.map +1 -0
- package/dist/runtimes/claude/index.d.ts +60 -0
- package/dist/runtimes/claude/index.d.ts.map +1 -0
- package/dist/runtimes/claude/index.js +51 -0
- package/dist/runtimes/claude/index.js.map +1 -0
- package/dist/runtimes/claude/install.d.ts +17 -0
- package/dist/runtimes/claude/install.d.ts.map +1 -0
- package/dist/runtimes/claude/install.js +29 -0
- package/dist/runtimes/claude/install.js.map +1 -0
- package/dist/runtimes/claude/installation.d.ts +11 -0
- package/dist/runtimes/claude/installation.d.ts.map +1 -0
- package/dist/runtimes/claude/installation.js +18 -0
- package/dist/runtimes/claude/installation.js.map +1 -0
- package/dist/runtimes/claude/inventory.d.ts +30 -0
- package/dist/runtimes/claude/inventory.d.ts.map +1 -0
- package/dist/runtimes/claude/inventory.js +277 -0
- package/dist/runtimes/claude/inventory.js.map +1 -0
- package/dist/runtimes/claude/last-account.d.ts +4 -0
- package/dist/runtimes/claude/last-account.d.ts.map +1 -0
- package/dist/runtimes/claude/last-account.js +15 -0
- package/dist/runtimes/claude/last-account.js.map +1 -0
- package/dist/runtimes/claude/launch-args.d.ts +12 -0
- package/dist/runtimes/claude/launch-args.d.ts.map +1 -0
- package/dist/runtimes/claude/launch-args.js +82 -0
- package/dist/runtimes/claude/launch-args.js.map +1 -0
- package/dist/runtimes/claude/launch.d.ts +29 -0
- package/dist/runtimes/claude/launch.d.ts.map +1 -0
- package/dist/runtimes/claude/launch.js +143 -0
- package/dist/runtimes/claude/launch.js.map +1 -0
- package/dist/runtimes/claude/limit-reset/driver.d.ts +148 -0
- package/dist/runtimes/claude/limit-reset/driver.d.ts.map +1 -0
- package/dist/runtimes/claude/limit-reset/driver.js +1029 -0
- package/dist/runtimes/claude/limit-reset/driver.js.map +1 -0
- package/dist/runtimes/claude/limit-reset/index.d.ts +6 -0
- package/dist/runtimes/claude/limit-reset/index.d.ts.map +1 -0
- package/dist/runtimes/claude/limit-reset/index.js +58 -0
- package/dist/runtimes/claude/limit-reset/index.js.map +1 -0
- package/dist/runtimes/claude/limit-reset/onboarding.d.ts +4 -0
- package/dist/runtimes/claude/limit-reset/onboarding.d.ts.map +1 -0
- package/dist/runtimes/claude/limit-reset/onboarding.js +24 -0
- package/dist/runtimes/claude/limit-reset/onboarding.js.map +1 -0
- package/dist/runtimes/claude/limit-reset/screens.d.ts +125 -0
- package/dist/runtimes/claude/limit-reset/screens.d.ts.map +1 -0
- package/dist/runtimes/claude/limit-reset/screens.js +305 -0
- package/dist/runtimes/claude/limit-reset/screens.js.map +1 -0
- package/dist/runtimes/claude/limit-reset/terminal-screen.d.ts +38 -0
- package/dist/runtimes/claude/limit-reset/terminal-screen.d.ts.map +1 -0
- package/dist/runtimes/claude/limit-reset/terminal-screen.js +391 -0
- package/dist/runtimes/claude/limit-reset/terminal-screen.js.map +1 -0
- package/dist/runtimes/claude/list-models.d.ts +13 -0
- package/dist/runtimes/claude/list-models.d.ts.map +1 -0
- package/dist/runtimes/claude/list-models.js +140 -0
- package/dist/runtimes/claude/list-models.js.map +1 -0
- package/dist/runtimes/claude/login.d.ts +7 -0
- package/dist/runtimes/claude/login.d.ts.map +1 -0
- package/dist/runtimes/claude/login.js +223 -0
- package/dist/runtimes/claude/login.js.map +1 -0
- package/dist/runtimes/claude/logout.d.ts +5 -0
- package/dist/runtimes/claude/logout.d.ts.map +1 -0
- package/dist/runtimes/claude/logout.js +39 -0
- package/dist/runtimes/claude/logout.js.map +1 -0
- package/dist/runtimes/claude/mcp-config.d.ts +19 -0
- package/dist/runtimes/claude/mcp-config.d.ts.map +1 -0
- package/dist/runtimes/claude/mcp-config.js +137 -0
- package/dist/runtimes/claude/mcp-config.js.map +1 -0
- package/dist/runtimes/claude/open-deadline.d.ts +28 -0
- package/dist/runtimes/claude/open-deadline.d.ts.map +1 -0
- package/dist/runtimes/claude/open-deadline.js +82 -0
- package/dist/runtimes/claude/open-deadline.js.map +1 -0
- package/dist/runtimes/claude/open-settings.d.ts +29 -0
- package/dist/runtimes/claude/open-settings.d.ts.map +1 -0
- package/dist/runtimes/claude/open-settings.js +219 -0
- package/dist/runtimes/claude/open-settings.js.map +1 -0
- package/dist/runtimes/claude/options.d.ts +3 -0
- package/dist/runtimes/claude/options.d.ts.map +1 -0
- package/dist/runtimes/claude/options.js +5 -0
- package/dist/runtimes/claude/options.js.map +1 -0
- package/dist/runtimes/claude/projection.d.ts +47 -0
- package/dist/runtimes/claude/projection.d.ts.map +1 -0
- package/dist/runtimes/claude/projection.js +121 -0
- package/dist/runtimes/claude/projection.js.map +1 -0
- package/dist/runtimes/claude/prompt-files.d.ts +9 -0
- package/dist/runtimes/claude/prompt-files.d.ts.map +1 -0
- package/dist/runtimes/claude/prompt-files.js +64 -0
- package/dist/runtimes/claude/prompt-files.js.map +1 -0
- package/dist/runtimes/claude/service-tier.d.ts +9 -0
- package/dist/runtimes/claude/service-tier.d.ts.map +1 -0
- package/dist/runtimes/claude/service-tier.js +35 -0
- package/dist/runtimes/claude/service-tier.js.map +1 -0
- package/dist/runtimes/claude/session.d.ts +4 -0
- package/dist/runtimes/claude/session.d.ts.map +1 -0
- package/dist/runtimes/claude/session.js +69 -0
- package/dist/runtimes/claude/session.js.map +1 -0
- package/dist/runtimes/claude/side-question.d.ts +7 -0
- package/dist/runtimes/claude/side-question.d.ts.map +1 -0
- package/dist/runtimes/claude/side-question.js +308 -0
- package/dist/runtimes/claude/side-question.js.map +1 -0
- package/dist/runtimes/claude/skill-file.d.ts +13 -0
- package/dist/runtimes/claude/skill-file.d.ts.map +1 -0
- package/dist/runtimes/claude/skill-file.js +25 -0
- package/dist/runtimes/claude/skill-file.js.map +1 -0
- package/dist/runtimes/claude/tasks.d.ts +8 -0
- package/dist/runtimes/claude/tasks.d.ts.map +1 -0
- package/dist/runtimes/claude/tasks.js +114 -0
- package/dist/runtimes/claude/tasks.js.map +1 -0
- package/dist/runtimes/claude/token-usage.d.ts +59 -0
- package/dist/runtimes/claude/token-usage.d.ts.map +1 -0
- package/dist/runtimes/claude/token-usage.js +135 -0
- package/dist/runtimes/claude/token-usage.js.map +1 -0
- package/dist/runtimes/claude/update.d.ts +32 -0
- package/dist/runtimes/claude/update.d.ts.map +1 -0
- package/dist/runtimes/claude/update.js +90 -0
- package/dist/runtimes/claude/update.js.map +1 -0
- package/dist/runtimes/claude/user-configuration.d.ts +9 -0
- package/dist/runtimes/claude/user-configuration.d.ts.map +1 -0
- package/dist/runtimes/claude/user-configuration.js +83 -0
- package/dist/runtimes/claude/user-configuration.js.map +1 -0
- package/dist/runtimes/codebuddy/account-control.d.ts +13 -0
- package/dist/runtimes/codebuddy/account-control.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/account-control.js +88 -0
- package/dist/runtimes/codebuddy/account-control.js.map +1 -0
- package/dist/runtimes/codebuddy/auth-status.d.ts +8 -0
- package/dist/runtimes/codebuddy/auth-status.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/auth-status.js +52 -0
- package/dist/runtimes/codebuddy/auth-status.js.map +1 -0
- package/dist/runtimes/codebuddy/extensions.d.ts +5 -0
- package/dist/runtimes/codebuddy/extensions.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/extensions.js +28 -0
- package/dist/runtimes/codebuddy/extensions.js.map +1 -0
- package/dist/runtimes/codebuddy/failure.d.ts +5 -0
- package/dist/runtimes/codebuddy/failure.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/failure.js +35 -0
- package/dist/runtimes/codebuddy/failure.js.map +1 -0
- package/dist/runtimes/codebuddy/index.d.ts +31 -0
- package/dist/runtimes/codebuddy/index.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/index.js +20 -0
- package/dist/runtimes/codebuddy/index.js.map +1 -0
- package/dist/runtimes/codebuddy/install.d.ts +6 -0
- package/dist/runtimes/codebuddy/install.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/install.js +11 -0
- package/dist/runtimes/codebuddy/install.js.map +1 -0
- package/dist/runtimes/codebuddy/installation.d.ts +4 -0
- package/dist/runtimes/codebuddy/installation.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/installation.js +29 -0
- package/dist/runtimes/codebuddy/installation.js.map +1 -0
- package/dist/runtimes/codebuddy/list-models.d.ts +6 -0
- package/dist/runtimes/codebuddy/list-models.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/list-models.js +88 -0
- package/dist/runtimes/codebuddy/list-models.js.map +1 -0
- package/dist/runtimes/codebuddy/login.d.ts +6 -0
- package/dist/runtimes/codebuddy/login.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/login.js +111 -0
- package/dist/runtimes/codebuddy/login.js.map +1 -0
- package/dist/runtimes/codebuddy/logout.d.ts +5 -0
- package/dist/runtimes/codebuddy/logout.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/logout.js +57 -0
- package/dist/runtimes/codebuddy/logout.js.map +1 -0
- package/dist/runtimes/codebuddy/options.d.ts +5 -0
- package/dist/runtimes/codebuddy/options.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/options.js +23 -0
- package/dist/runtimes/codebuddy/options.js.map +1 -0
- package/dist/runtimes/codebuddy/prompt-file.d.ts +6 -0
- package/dist/runtimes/codebuddy/prompt-file.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/prompt-file.js +20 -0
- package/dist/runtimes/codebuddy/prompt-file.js.map +1 -0
- package/dist/runtimes/codebuddy/session.d.ts +5 -0
- package/dist/runtimes/codebuddy/session.d.ts.map +1 -0
- package/dist/runtimes/codebuddy/session.js +52 -0
- package/dist/runtimes/codebuddy/session.js.map +1 -0
- package/dist/runtimes/codex/account-request.d.ts +48 -0
- package/dist/runtimes/codex/account-request.d.ts.map +1 -0
- package/dist/runtimes/codex/account-request.js +93 -0
- package/dist/runtimes/codex/account-request.js.map +1 -0
- package/dist/runtimes/codex/account-usage.d.ts +43 -0
- package/dist/runtimes/codex/account-usage.d.ts.map +1 -0
- package/dist/runtimes/codex/account-usage.js +196 -0
- package/dist/runtimes/codex/account-usage.js.map +1 -0
- package/dist/runtimes/codex/app-server-client.d.ts +83 -0
- package/dist/runtimes/codex/app-server-client.d.ts.map +1 -0
- package/dist/runtimes/codex/app-server-client.js +157 -0
- package/dist/runtimes/codex/app-server-client.js.map +1 -0
- package/dist/runtimes/codex/compaction.d.ts +10 -0
- package/dist/runtimes/codex/compaction.d.ts.map +1 -0
- package/dist/runtimes/codex/compaction.js +83 -0
- package/dist/runtimes/codex/compaction.js.map +1 -0
- package/dist/runtimes/codex/execution-policy.d.ts +10 -0
- package/dist/runtimes/codex/execution-policy.d.ts.map +1 -0
- package/dist/runtimes/codex/execution-policy.js +88 -0
- package/dist/runtimes/codex/execution-policy.js.map +1 -0
- package/dist/runtimes/codex/failure.d.ts +4 -0
- package/dist/runtimes/codex/failure.d.ts.map +1 -0
- package/dist/runtimes/codex/failure.js +63 -0
- package/dist/runtimes/codex/failure.js.map +1 -0
- package/dist/runtimes/codex/goal.d.ts +13 -0
- package/dist/runtimes/codex/goal.d.ts.map +1 -0
- package/dist/runtimes/codex/goal.js +81 -0
- package/dist/runtimes/codex/goal.js.map +1 -0
- package/dist/runtimes/codex/history.d.ts +5 -0
- package/dist/runtimes/codex/history.d.ts.map +1 -0
- package/dist/runtimes/codex/history.js +176 -0
- package/dist/runtimes/codex/history.js.map +1 -0
- package/dist/runtimes/codex/home-initialization.d.ts +4 -0
- package/dist/runtimes/codex/home-initialization.d.ts.map +1 -0
- package/dist/runtimes/codex/home-initialization.js +221 -0
- package/dist/runtimes/codex/home-initialization.js.map +1 -0
- package/dist/runtimes/codex/index.d.ts +78 -0
- package/dist/runtimes/codex/index.d.ts.map +1 -0
- package/dist/runtimes/codex/index.js +61 -0
- package/dist/runtimes/codex/index.js.map +1 -0
- package/dist/runtimes/codex/input-delivery.d.ts +29 -0
- package/dist/runtimes/codex/input-delivery.d.ts.map +1 -0
- package/dist/runtimes/codex/input-delivery.js +52 -0
- package/dist/runtimes/codex/input-delivery.js.map +1 -0
- package/dist/runtimes/codex/install.d.ts +18 -0
- package/dist/runtimes/codex/install.d.ts.map +1 -0
- package/dist/runtimes/codex/install.js +30 -0
- package/dist/runtimes/codex/install.js.map +1 -0
- package/dist/runtimes/codex/installation-candidates.d.ts +32 -0
- package/dist/runtimes/codex/installation-candidates.d.ts.map +1 -0
- package/dist/runtimes/codex/installation-candidates.js +107 -0
- package/dist/runtimes/codex/installation-candidates.js.map +1 -0
- package/dist/runtimes/codex/installation.d.ts +29 -0
- package/dist/runtimes/codex/installation.d.ts.map +1 -0
- package/dist/runtimes/codex/installation.js +47 -0
- package/dist/runtimes/codex/installation.js.map +1 -0
- package/dist/runtimes/codex/instructions.d.ts +8 -0
- package/dist/runtimes/codex/instructions.d.ts.map +1 -0
- package/dist/runtimes/codex/instructions.js +43 -0
- package/dist/runtimes/codex/instructions.js.map +1 -0
- package/dist/runtimes/codex/inventory.d.ts +11 -0
- package/dist/runtimes/codex/inventory.d.ts.map +1 -0
- package/dist/runtimes/codex/inventory.js +85 -0
- package/dist/runtimes/codex/inventory.js.map +1 -0
- package/dist/runtimes/codex/item-detail.d.ts +8 -0
- package/dist/runtimes/codex/item-detail.d.ts.map +1 -0
- package/dist/runtimes/codex/item-detail.js +69 -0
- package/dist/runtimes/codex/item-detail.js.map +1 -0
- package/dist/runtimes/codex/limit-reset.d.ts +8 -0
- package/dist/runtimes/codex/limit-reset.d.ts.map +1 -0
- package/dist/runtimes/codex/limit-reset.js +34 -0
- package/dist/runtimes/codex/limit-reset.js.map +1 -0
- package/dist/runtimes/codex/list-models.d.ts +12 -0
- package/dist/runtimes/codex/list-models.d.ts.map +1 -0
- package/dist/runtimes/codex/list-models.js +115 -0
- package/dist/runtimes/codex/list-models.js.map +1 -0
- package/dist/runtimes/codex/login.d.ts +20 -0
- package/dist/runtimes/codex/login.d.ts.map +1 -0
- package/dist/runtimes/codex/login.js +259 -0
- package/dist/runtimes/codex/login.js.map +1 -0
- package/dist/runtimes/codex/logout.d.ts +5 -0
- package/dist/runtimes/codex/logout.d.ts.map +1 -0
- package/dist/runtimes/codex/logout.js +39 -0
- package/dist/runtimes/codex/logout.js.map +1 -0
- package/dist/runtimes/codex/messages.d.ts +17 -0
- package/dist/runtimes/codex/messages.d.ts.map +1 -0
- package/dist/runtimes/codex/messages.js +37 -0
- package/dist/runtimes/codex/messages.js.map +1 -0
- package/dist/runtimes/codex/open.d.ts +76 -0
- package/dist/runtimes/codex/open.d.ts.map +1 -0
- package/dist/runtimes/codex/open.js +280 -0
- package/dist/runtimes/codex/open.js.map +1 -0
- package/dist/runtimes/codex/options.d.ts +3 -0
- package/dist/runtimes/codex/options.d.ts.map +1 -0
- package/dist/runtimes/codex/options.js +4 -0
- package/dist/runtimes/codex/options.js.map +1 -0
- package/dist/runtimes/codex/ownership.d.ts +17 -0
- package/dist/runtimes/codex/ownership.d.ts.map +1 -0
- package/dist/runtimes/codex/ownership.js +36 -0
- package/dist/runtimes/codex/ownership.js.map +1 -0
- package/dist/runtimes/codex/projection.d.ts +56 -0
- package/dist/runtimes/codex/projection.d.ts.map +1 -0
- package/dist/runtimes/codex/projection.js +245 -0
- package/dist/runtimes/codex/projection.js.map +1 -0
- package/dist/runtimes/codex/quota-reset.d.ts +15 -0
- package/dist/runtimes/codex/quota-reset.d.ts.map +1 -0
- package/dist/runtimes/codex/quota-reset.js +55 -0
- package/dist/runtimes/codex/quota-reset.js.map +1 -0
- package/dist/runtimes/codex/reasoning.d.ts +4 -0
- package/dist/runtimes/codex/reasoning.d.ts.map +1 -0
- package/dist/runtimes/codex/reasoning.js +23 -0
- package/dist/runtimes/codex/reasoning.js.map +1 -0
- package/dist/runtimes/codex/refusal.d.ts +44 -0
- package/dist/runtimes/codex/refusal.d.ts.map +1 -0
- package/dist/runtimes/codex/refusal.js +107 -0
- package/dist/runtimes/codex/refusal.js.map +1 -0
- package/dist/runtimes/codex/reset-credits.d.ts +15 -0
- package/dist/runtimes/codex/reset-credits.d.ts.map +1 -0
- package/dist/runtimes/codex/reset-credits.js +64 -0
- package/dist/runtimes/codex/reset-credits.js.map +1 -0
- package/dist/runtimes/codex/rpc-control.d.ts +60 -0
- package/dist/runtimes/codex/rpc-control.d.ts.map +1 -0
- package/dist/runtimes/codex/rpc-control.js +172 -0
- package/dist/runtimes/codex/rpc-control.js.map +1 -0
- package/dist/runtimes/codex/runtime-requests.d.ts +15 -0
- package/dist/runtimes/codex/runtime-requests.d.ts.map +1 -0
- package/dist/runtimes/codex/runtime-requests.js +30 -0
- package/dist/runtimes/codex/runtime-requests.js.map +1 -0
- package/dist/runtimes/codex/session.d.ts +3 -0
- package/dist/runtimes/codex/session.d.ts.map +1 -0
- package/dist/runtimes/codex/session.js +325 -0
- package/dist/runtimes/codex/session.js.map +1 -0
- package/dist/runtimes/codex/side-question.d.ts +12 -0
- package/dist/runtimes/codex/side-question.d.ts.map +1 -0
- package/dist/runtimes/codex/side-question.js +476 -0
- package/dist/runtimes/codex/side-question.js.map +1 -0
- package/dist/runtimes/codex/task-control.d.ts +11 -0
- package/dist/runtimes/codex/task-control.d.ts.map +1 -0
- package/dist/runtimes/codex/task-control.js +59 -0
- package/dist/runtimes/codex/task-control.js.map +1 -0
- package/dist/runtimes/codex/tasks.d.ts +34 -0
- package/dist/runtimes/codex/tasks.d.ts.map +1 -0
- package/dist/runtimes/codex/tasks.js +86 -0
- package/dist/runtimes/codex/tasks.js.map +1 -0
- package/dist/runtimes/codex/token-usage.d.ts +57 -0
- package/dist/runtimes/codex/token-usage.d.ts.map +1 -0
- package/dist/runtimes/codex/token-usage.js +82 -0
- package/dist/runtimes/codex/token-usage.js.map +1 -0
- package/dist/runtimes/codex/tool-denials.d.ts +14 -0
- package/dist/runtimes/codex/tool-denials.d.ts.map +1 -0
- package/dist/runtimes/codex/tool-denials.js +72 -0
- package/dist/runtimes/codex/tool-denials.js.map +1 -0
- package/dist/runtimes/codex/turn-processes.d.ts +22 -0
- package/dist/runtimes/codex/turn-processes.d.ts.map +1 -0
- package/dist/runtimes/codex/turn-processes.js +274 -0
- package/dist/runtimes/codex/turn-processes.js.map +1 -0
- package/dist/runtimes/codex/update.d.ts +14 -0
- package/dist/runtimes/codex/update.d.ts.map +1 -0
- package/dist/runtimes/codex/update.js +47 -0
- package/dist/runtimes/codex/update.js.map +1 -0
- package/dist/runtimes/cursor/access.d.ts +69 -0
- package/dist/runtimes/cursor/access.d.ts.map +1 -0
- package/dist/runtimes/cursor/access.js +77 -0
- package/dist/runtimes/cursor/access.js.map +1 -0
- package/dist/runtimes/cursor/auth-status.d.ts +16 -0
- package/dist/runtimes/cursor/auth-status.d.ts.map +1 -0
- package/dist/runtimes/cursor/auth-status.js +90 -0
- package/dist/runtimes/cursor/auth-status.js.map +1 -0
- package/dist/runtimes/cursor/compaction.d.ts +6 -0
- package/dist/runtimes/cursor/compaction.d.ts.map +1 -0
- package/dist/runtimes/cursor/compaction.js +59 -0
- package/dist/runtimes/cursor/compaction.js.map +1 -0
- package/dist/runtimes/cursor/failure.d.ts +4 -0
- package/dist/runtimes/cursor/failure.d.ts.map +1 -0
- package/dist/runtimes/cursor/failure.js +34 -0
- package/dist/runtimes/cursor/failure.js.map +1 -0
- package/dist/runtimes/cursor/held-input.d.ts +10 -0
- package/dist/runtimes/cursor/held-input.d.ts.map +1 -0
- package/dist/runtimes/cursor/held-input.js +11 -0
- package/dist/runtimes/cursor/held-input.js.map +1 -0
- package/dist/runtimes/cursor/index.d.ts +69 -0
- package/dist/runtimes/cursor/index.d.ts.map +1 -0
- package/dist/runtimes/cursor/index.js +61 -0
- package/dist/runtimes/cursor/index.js.map +1 -0
- package/dist/runtimes/cursor/installation.d.ts +14 -0
- package/dist/runtimes/cursor/installation.d.ts.map +1 -0
- package/dist/runtimes/cursor/installation.js +28 -0
- package/dist/runtimes/cursor/installation.js.map +1 -0
- package/dist/runtimes/cursor/list-models.d.ts +13 -0
- package/dist/runtimes/cursor/list-models.d.ts.map +1 -0
- package/dist/runtimes/cursor/list-models.js +67 -0
- package/dist/runtimes/cursor/list-models.js.map +1 -0
- package/dist/runtimes/cursor/login.d.ts +10 -0
- package/dist/runtimes/cursor/login.d.ts.map +1 -0
- package/dist/runtimes/cursor/login.js +175 -0
- package/dist/runtimes/cursor/login.js.map +1 -0
- package/dist/runtimes/cursor/logout.d.ts +5 -0
- package/dist/runtimes/cursor/logout.d.ts.map +1 -0
- package/dist/runtimes/cursor/logout.js +65 -0
- package/dist/runtimes/cursor/logout.js.map +1 -0
- package/dist/runtimes/cursor/model.d.ts +55 -0
- package/dist/runtimes/cursor/model.d.ts.map +1 -0
- package/dist/runtimes/cursor/model.js +173 -0
- package/dist/runtimes/cursor/model.js.map +1 -0
- package/dist/runtimes/cursor/native-environment.d.ts +12 -0
- package/dist/runtimes/cursor/native-environment.d.ts.map +1 -0
- package/dist/runtimes/cursor/native-environment.js +24 -0
- package/dist/runtimes/cursor/native-environment.js.map +1 -0
- package/dist/runtimes/cursor/projection.d.ts +45 -0
- package/dist/runtimes/cursor/projection.d.ts.map +1 -0
- package/dist/runtimes/cursor/projection.js +236 -0
- package/dist/runtimes/cursor/projection.js.map +1 -0
- package/dist/runtimes/cursor/run.d.ts +35 -0
- package/dist/runtimes/cursor/run.d.ts.map +1 -0
- package/dist/runtimes/cursor/run.js +139 -0
- package/dist/runtimes/cursor/run.js.map +1 -0
- package/dist/runtimes/cursor/sdk-version.d.ts +3 -0
- package/dist/runtimes/cursor/sdk-version.d.ts.map +1 -0
- package/dist/runtimes/cursor/sdk-version.js +3 -0
- package/dist/runtimes/cursor/sdk-version.js.map +1 -0
- package/dist/runtimes/cursor/sdk.d.ts +171 -0
- package/dist/runtimes/cursor/sdk.d.ts.map +1 -0
- package/dist/runtimes/cursor/sdk.js +46 -0
- package/dist/runtimes/cursor/sdk.js.map +1 -0
- package/dist/runtimes/cursor/session-process.d.ts +29 -0
- package/dist/runtimes/cursor/session-process.d.ts.map +1 -0
- package/dist/runtimes/cursor/session-process.js +60 -0
- package/dist/runtimes/cursor/session-process.js.map +1 -0
- package/dist/runtimes/cursor/session.d.ts +4 -0
- package/dist/runtimes/cursor/session.d.ts.map +1 -0
- package/dist/runtimes/cursor/session.js +291 -0
- package/dist/runtimes/cursor/session.js.map +1 -0
- package/dist/runtimes/cursor/skill-files.d.ts +12 -0
- package/dist/runtimes/cursor/skill-files.d.ts.map +1 -0
- package/dist/runtimes/cursor/skill-files.js +101 -0
- package/dist/runtimes/cursor/skill-files.js.map +1 -0
- package/dist/runtimes/cursor/skill-metadata.d.ts +7 -0
- package/dist/runtimes/cursor/skill-metadata.d.ts.map +1 -0
- package/dist/runtimes/cursor/skill-metadata.js +55 -0
- package/dist/runtimes/cursor/skill-metadata.js.map +1 -0
- package/dist/runtimes/cursor/skills.d.ts +5 -0
- package/dist/runtimes/cursor/skills.d.ts.map +1 -0
- package/dist/runtimes/cursor/skills.js +75 -0
- package/dist/runtimes/cursor/skills.js.map +1 -0
- package/dist/runtimes/cursor/subprocess/channel.d.ts +38 -0
- package/dist/runtimes/cursor/subprocess/channel.d.ts.map +1 -0
- package/dist/runtimes/cursor/subprocess/channel.js +171 -0
- package/dist/runtimes/cursor/subprocess/channel.js.map +1 -0
- package/dist/runtimes/cursor/subprocess/child-script.d.ts +12 -0
- package/dist/runtimes/cursor/subprocess/child-script.d.ts.map +1 -0
- package/dist/runtimes/cursor/subprocess/child-script.js +261 -0
- package/dist/runtimes/cursor/subprocess/child-script.js.map +1 -0
- package/dist/runtimes/cursor/subprocess/proxy.d.ts +11 -0
- package/dist/runtimes/cursor/subprocess/proxy.d.ts.map +1 -0
- package/dist/runtimes/cursor/subprocess/proxy.js +243 -0
- package/dist/runtimes/cursor/subprocess/proxy.js.map +1 -0
- package/dist/runtimes/devin/auth.d.ts +11 -0
- package/dist/runtimes/devin/auth.d.ts.map +1 -0
- package/dist/runtimes/devin/auth.js +126 -0
- package/dist/runtimes/devin/auth.js.map +1 -0
- package/dist/runtimes/devin/index.d.ts +27 -0
- package/dist/runtimes/devin/index.d.ts.map +1 -0
- package/dist/runtimes/devin/index.js +30 -0
- package/dist/runtimes/devin/index.js.map +1 -0
- package/dist/runtimes/devin/install.d.ts +10 -0
- package/dist/runtimes/devin/install.d.ts.map +1 -0
- package/dist/runtimes/devin/install.js +69 -0
- package/dist/runtimes/devin/install.js.map +1 -0
- package/dist/runtimes/devin/installation.d.ts +6 -0
- package/dist/runtimes/devin/installation.d.ts.map +1 -0
- package/dist/runtimes/devin/installation.js +19 -0
- package/dist/runtimes/devin/installation.js.map +1 -0
- package/dist/runtimes/devin/list-models.d.ts +5 -0
- package/dist/runtimes/devin/list-models.d.ts.map +1 -0
- package/dist/runtimes/devin/list-models.js +118 -0
- package/dist/runtimes/devin/list-models.js.map +1 -0
- package/dist/runtimes/devin/options.d.ts +3 -0
- package/dist/runtimes/devin/options.d.ts.map +1 -0
- package/dist/runtimes/devin/options.js +15 -0
- package/dist/runtimes/devin/options.js.map +1 -0
- package/dist/runtimes/devin/session.d.ts +14 -0
- package/dist/runtimes/devin/session.d.ts.map +1 -0
- package/dist/runtimes/devin/session.js +52 -0
- package/dist/runtimes/devin/session.js.map +1 -0
- package/dist/runtimes/devin/skills.d.ts +4 -0
- package/dist/runtimes/devin/skills.d.ts.map +1 -0
- package/dist/runtimes/devin/skills.js +49 -0
- package/dist/runtimes/devin/skills.js.map +1 -0
- package/dist/runtimes/devin/update.d.ts +12 -0
- package/dist/runtimes/devin/update.d.ts.map +1 -0
- package/dist/runtimes/devin/update.js +59 -0
- package/dist/runtimes/devin/update.js.map +1 -0
- package/dist/runtimes/dsh/bridge-controls.d.ts +3 -0
- package/dist/runtimes/dsh/bridge-controls.d.ts.map +1 -0
- package/dist/runtimes/dsh/bridge-controls.js +67 -0
- package/dist/runtimes/dsh/bridge-controls.js.map +1 -0
- package/dist/runtimes/dsh/bridge-goal.d.ts +3 -0
- package/dist/runtimes/dsh/bridge-goal.d.ts.map +1 -0
- package/dist/runtimes/dsh/bridge-goal.js +42 -0
- package/dist/runtimes/dsh/bridge-goal.js.map +1 -0
- package/dist/runtimes/dsh/bridge-input.d.ts +3 -0
- package/dist/runtimes/dsh/bridge-input.d.ts.map +1 -0
- package/dist/runtimes/dsh/bridge-input.js +51 -0
- package/dist/runtimes/dsh/bridge-input.js.map +1 -0
- package/dist/runtimes/dsh/bridge-prompt.d.ts +3 -0
- package/dist/runtimes/dsh/bridge-prompt.d.ts.map +1 -0
- package/dist/runtimes/dsh/bridge-prompt.js +39 -0
- package/dist/runtimes/dsh/bridge-prompt.js.map +1 -0
- package/dist/runtimes/dsh/bridge.d.ts +16 -0
- package/dist/runtimes/dsh/bridge.d.ts.map +1 -0
- package/dist/runtimes/dsh/bridge.js +264 -0
- package/dist/runtimes/dsh/bridge.js.map +1 -0
- package/dist/runtimes/dsh/compaction.d.ts +5 -0
- package/dist/runtimes/dsh/compaction.d.ts.map +1 -0
- package/dist/runtimes/dsh/compaction.js +73 -0
- package/dist/runtimes/dsh/compaction.js.map +1 -0
- package/dist/runtimes/dsh/control.d.ts +26 -0
- package/dist/runtimes/dsh/control.d.ts.map +1 -0
- package/dist/runtimes/dsh/control.js +98 -0
- package/dist/runtimes/dsh/control.js.map +1 -0
- package/dist/runtimes/dsh/goal.d.ts +11 -0
- package/dist/runtimes/dsh/goal.d.ts.map +1 -0
- package/dist/runtimes/dsh/goal.js +67 -0
- package/dist/runtimes/dsh/goal.js.map +1 -0
- package/dist/runtimes/dsh/index.d.ts +69 -0
- package/dist/runtimes/dsh/index.d.ts.map +1 -0
- package/dist/runtimes/dsh/index.js +33 -0
- package/dist/runtimes/dsh/index.js.map +1 -0
- package/dist/runtimes/dsh/install.d.ts +6 -0
- package/dist/runtimes/dsh/install.d.ts.map +1 -0
- package/dist/runtimes/dsh/install.js +11 -0
- package/dist/runtimes/dsh/install.js.map +1 -0
- package/dist/runtimes/dsh/installation.d.ts +4 -0
- package/dist/runtimes/dsh/installation.d.ts.map +1 -0
- package/dist/runtimes/dsh/installation.js +13 -0
- package/dist/runtimes/dsh/installation.js.map +1 -0
- package/dist/runtimes/dsh/jobs.d.ts +7 -0
- package/dist/runtimes/dsh/jobs.d.ts.map +1 -0
- package/dist/runtimes/dsh/jobs.js +45 -0
- package/dist/runtimes/dsh/jobs.js.map +1 -0
- package/dist/runtimes/dsh/launch.d.ts +21 -0
- package/dist/runtimes/dsh/launch.d.ts.map +1 -0
- package/dist/runtimes/dsh/launch.js +39 -0
- package/dist/runtimes/dsh/launch.js.map +1 -0
- package/dist/runtimes/dsh/list-models.d.ts +7 -0
- package/dist/runtimes/dsh/list-models.d.ts.map +1 -0
- package/dist/runtimes/dsh/list-models.js +72 -0
- package/dist/runtimes/dsh/list-models.js.map +1 -0
- package/dist/runtimes/dsh/mcp.d.ts +5 -0
- package/dist/runtimes/dsh/mcp.d.ts.map +1 -0
- package/dist/runtimes/dsh/mcp.js +20 -0
- package/dist/runtimes/dsh/mcp.js.map +1 -0
- package/dist/runtimes/dsh/options.d.ts +14 -0
- package/dist/runtimes/dsh/options.d.ts.map +1 -0
- package/dist/runtimes/dsh/options.js +36 -0
- package/dist/runtimes/dsh/options.js.map +1 -0
- package/dist/runtimes/dsh/projection.d.ts +34 -0
- package/dist/runtimes/dsh/projection.d.ts.map +1 -0
- package/dist/runtimes/dsh/projection.js +267 -0
- package/dist/runtimes/dsh/projection.js.map +1 -0
- package/dist/runtimes/dsh/session.d.ts +4 -0
- package/dist/runtimes/dsh/session.d.ts.map +1 -0
- package/dist/runtimes/dsh/session.js +265 -0
- package/dist/runtimes/dsh/session.js.map +1 -0
- package/dist/runtimes/dsh/skills.d.ts +4 -0
- package/dist/runtimes/dsh/skills.d.ts.map +1 -0
- package/dist/runtimes/dsh/skills.js +58 -0
- package/dist/runtimes/dsh/skills.js.map +1 -0
- package/dist/runtimes/dsh/version.d.ts +9 -0
- package/dist/runtimes/dsh/version.d.ts.map +1 -0
- package/dist/runtimes/dsh/version.js +22 -0
- package/dist/runtimes/dsh/version.js.map +1 -0
- package/dist/runtimes/factory/account-credential.d.ts +20 -0
- package/dist/runtimes/factory/account-credential.d.ts.map +1 -0
- package/dist/runtimes/factory/account-credential.js +90 -0
- package/dist/runtimes/factory/account-credential.js.map +1 -0
- package/dist/runtimes/factory/account-usage.d.ts +5 -0
- package/dist/runtimes/factory/account-usage.d.ts.map +1 -0
- package/dist/runtimes/factory/account-usage.js +168 -0
- package/dist/runtimes/factory/account-usage.js.map +1 -0
- package/dist/runtimes/factory/account.d.ts +15 -0
- package/dist/runtimes/factory/account.d.ts.map +1 -0
- package/dist/runtimes/factory/account.js +240 -0
- package/dist/runtimes/factory/account.js.map +1 -0
- package/dist/runtimes/factory/client.d.ts +61 -0
- package/dist/runtimes/factory/client.d.ts.map +1 -0
- package/dist/runtimes/factory/client.js +116 -0
- package/dist/runtimes/factory/client.js.map +1 -0
- package/dist/runtimes/factory/compaction.d.ts +5 -0
- package/dist/runtimes/factory/compaction.d.ts.map +1 -0
- package/dist/runtimes/factory/compaction.js +70 -0
- package/dist/runtimes/factory/compaction.js.map +1 -0
- package/dist/runtimes/factory/index.d.ts +35 -0
- package/dist/runtimes/factory/index.d.ts.map +1 -0
- package/dist/runtimes/factory/index.js +25 -0
- package/dist/runtimes/factory/index.js.map +1 -0
- package/dist/runtimes/factory/install.d.ts +12 -0
- package/dist/runtimes/factory/install.d.ts.map +1 -0
- package/dist/runtimes/factory/install.js +21 -0
- package/dist/runtimes/factory/install.js.map +1 -0
- package/dist/runtimes/factory/installation.d.ts +5 -0
- package/dist/runtimes/factory/installation.d.ts.map +1 -0
- package/dist/runtimes/factory/installation.js +12 -0
- package/dist/runtimes/factory/installation.js.map +1 -0
- package/dist/runtimes/factory/list-models.d.ts +9 -0
- package/dist/runtimes/factory/list-models.d.ts.map +1 -0
- package/dist/runtimes/factory/list-models.js +41 -0
- package/dist/runtimes/factory/list-models.js.map +1 -0
- package/dist/runtimes/factory/open.d.ts +29 -0
- package/dist/runtimes/factory/open.d.ts.map +1 -0
- package/dist/runtimes/factory/open.js +96 -0
- package/dist/runtimes/factory/open.js.map +1 -0
- package/dist/runtimes/factory/options.d.ts +9 -0
- package/dist/runtimes/factory/options.d.ts.map +1 -0
- package/dist/runtimes/factory/options.js +30 -0
- package/dist/runtimes/factory/options.js.map +1 -0
- package/dist/runtimes/factory/projection.d.ts +33 -0
- package/dist/runtimes/factory/projection.d.ts.map +1 -0
- package/dist/runtimes/factory/projection.js +173 -0
- package/dist/runtimes/factory/projection.js.map +1 -0
- package/dist/runtimes/factory/session-state.d.ts +19 -0
- package/dist/runtimes/factory/session-state.d.ts.map +1 -0
- package/dist/runtimes/factory/session-state.js +5 -0
- package/dist/runtimes/factory/session-state.js.map +1 -0
- package/dist/runtimes/factory/session.d.ts +5 -0
- package/dist/runtimes/factory/session.d.ts.map +1 -0
- package/dist/runtimes/factory/session.js +333 -0
- package/dist/runtimes/factory/session.js.map +1 -0
- package/dist/runtimes/factory/settings.d.ts +20 -0
- package/dist/runtimes/factory/settings.d.ts.map +1 -0
- package/dist/runtimes/factory/settings.js +62 -0
- package/dist/runtimes/factory/settings.js.map +1 -0
- package/dist/runtimes/factory/skills.d.ts +4 -0
- package/dist/runtimes/factory/skills.d.ts.map +1 -0
- package/dist/runtimes/factory/skills.js +43 -0
- package/dist/runtimes/factory/skills.js.map +1 -0
- package/dist/runtimes/factory/update.d.ts +10 -0
- package/dist/runtimes/factory/update.d.ts.map +1 -0
- package/dist/runtimes/factory/update.js +34 -0
- package/dist/runtimes/factory/update.js.map +1 -0
- package/dist/runtimes/grok/account-info.d.ts +11 -0
- package/dist/runtimes/grok/account-info.d.ts.map +1 -0
- package/dist/runtimes/grok/account-info.js +60 -0
- package/dist/runtimes/grok/account-info.js.map +1 -0
- package/dist/runtimes/grok/account-usage.d.ts +4 -0
- package/dist/runtimes/grok/account-usage.d.ts.map +1 -0
- package/dist/runtimes/grok/account-usage.js +167 -0
- package/dist/runtimes/grok/account-usage.js.map +1 -0
- package/dist/runtimes/grok/auth.d.ts +17 -0
- package/dist/runtimes/grok/auth.d.ts.map +1 -0
- package/dist/runtimes/grok/auth.js +170 -0
- package/dist/runtimes/grok/auth.js.map +1 -0
- package/dist/runtimes/grok/compaction.d.ts +4 -0
- package/dist/runtimes/grok/compaction.d.ts.map +1 -0
- package/dist/runtimes/grok/compaction.js +62 -0
- package/dist/runtimes/grok/compaction.js.map +1 -0
- package/dist/runtimes/grok/failure.d.ts +7 -0
- package/dist/runtimes/grok/failure.d.ts.map +1 -0
- package/dist/runtimes/grok/failure.js +77 -0
- package/dist/runtimes/grok/failure.js.map +1 -0
- package/dist/runtimes/grok/index.d.ts +39 -0
- package/dist/runtimes/grok/index.d.ts.map +1 -0
- package/dist/runtimes/grok/index.js +44 -0
- package/dist/runtimes/grok/index.js.map +1 -0
- package/dist/runtimes/grok/install.d.ts +13 -0
- package/dist/runtimes/grok/install.d.ts.map +1 -0
- package/dist/runtimes/grok/install.js +25 -0
- package/dist/runtimes/grok/install.js.map +1 -0
- package/dist/runtimes/grok/installation.d.ts +4 -0
- package/dist/runtimes/grok/installation.d.ts.map +1 -0
- package/dist/runtimes/grok/installation.js +23 -0
- package/dist/runtimes/grok/installation.js.map +1 -0
- package/dist/runtimes/grok/inventory.d.ts +7 -0
- package/dist/runtimes/grok/inventory.d.ts.map +1 -0
- package/dist/runtimes/grok/inventory.js +47 -0
- package/dist/runtimes/grok/inventory.js.map +1 -0
- package/dist/runtimes/grok/list-models.d.ts +23 -0
- package/dist/runtimes/grok/list-models.d.ts.map +1 -0
- package/dist/runtimes/grok/list-models.js +121 -0
- package/dist/runtimes/grok/list-models.js.map +1 -0
- package/dist/runtimes/grok/native-turns.d.ts +13 -0
- package/dist/runtimes/grok/native-turns.d.ts.map +1 -0
- package/dist/runtimes/grok/native-turns.js +49 -0
- package/dist/runtimes/grok/native-turns.js.map +1 -0
- package/dist/runtimes/grok/options.d.ts +3 -0
- package/dist/runtimes/grok/options.d.ts.map +1 -0
- package/dist/runtimes/grok/options.js +11 -0
- package/dist/runtimes/grok/options.js.map +1 -0
- package/dist/runtimes/grok/session.d.ts +53 -0
- package/dist/runtimes/grok/session.d.ts.map +1 -0
- package/dist/runtimes/grok/session.js +187 -0
- package/dist/runtimes/grok/session.js.map +1 -0
- package/dist/runtimes/grok/shared-session.d.ts +6 -0
- package/dist/runtimes/grok/shared-session.d.ts.map +1 -0
- package/dist/runtimes/grok/shared-session.js +84 -0
- package/dist/runtimes/grok/shared-session.js.map +1 -0
- package/dist/runtimes/grok/sharing-admission.d.ts +5 -0
- package/dist/runtimes/grok/sharing-admission.d.ts.map +1 -0
- package/dist/runtimes/grok/sharing-admission.js +7 -0
- package/dist/runtimes/grok/sharing-admission.js.map +1 -0
- package/dist/runtimes/grok/sharing-attribution.d.ts +7 -0
- package/dist/runtimes/grok/sharing-attribution.d.ts.map +1 -0
- package/dist/runtimes/grok/sharing-attribution.js +23 -0
- package/dist/runtimes/grok/sharing-attribution.js.map +1 -0
- package/dist/runtimes/grok/spontaneous-usage.d.ts +15 -0
- package/dist/runtimes/grok/spontaneous-usage.d.ts.map +1 -0
- package/dist/runtimes/grok/spontaneous-usage.js +32 -0
- package/dist/runtimes/grok/spontaneous-usage.js.map +1 -0
- package/dist/runtimes/grok/tasks.d.ts +5 -0
- package/dist/runtimes/grok/tasks.d.ts.map +1 -0
- package/dist/runtimes/grok/tasks.js +24 -0
- package/dist/runtimes/grok/tasks.js.map +1 -0
- package/dist/runtimes/grok/update.d.ts +12 -0
- package/dist/runtimes/grok/update.d.ts.map +1 -0
- package/dist/runtimes/grok/update.js +37 -0
- package/dist/runtimes/grok/update.js.map +1 -0
- package/dist/runtimes/kimi/account-usage.d.ts +5 -0
- package/dist/runtimes/kimi/account-usage.d.ts.map +1 -0
- package/dist/runtimes/kimi/account-usage.js +266 -0
- package/dist/runtimes/kimi/account-usage.js.map +1 -0
- package/dist/runtimes/kimi/auth-config.d.ts +15 -0
- package/dist/runtimes/kimi/auth-config.d.ts.map +1 -0
- package/dist/runtimes/kimi/auth-config.js +93 -0
- package/dist/runtimes/kimi/auth-config.js.map +1 -0
- package/dist/runtimes/kimi/auth-status.d.ts +10 -0
- package/dist/runtimes/kimi/auth-status.d.ts.map +1 -0
- package/dist/runtimes/kimi/auth-status.js +25 -0
- package/dist/runtimes/kimi/auth-status.js.map +1 -0
- package/dist/runtimes/kimi/index.d.ts +37 -0
- package/dist/runtimes/kimi/index.d.ts.map +1 -0
- package/dist/runtimes/kimi/index.js +36 -0
- package/dist/runtimes/kimi/index.js.map +1 -0
- package/dist/runtimes/kimi/install.d.ts +16 -0
- package/dist/runtimes/kimi/install.d.ts.map +1 -0
- package/dist/runtimes/kimi/install.js +28 -0
- package/dist/runtimes/kimi/install.js.map +1 -0
- package/dist/runtimes/kimi/installation.d.ts +4 -0
- package/dist/runtimes/kimi/installation.d.ts.map +1 -0
- package/dist/runtimes/kimi/installation.js +21 -0
- package/dist/runtimes/kimi/installation.js.map +1 -0
- package/dist/runtimes/kimi/list-models.d.ts +15 -0
- package/dist/runtimes/kimi/list-models.d.ts.map +1 -0
- package/dist/runtimes/kimi/list-models.js +120 -0
- package/dist/runtimes/kimi/list-models.js.map +1 -0
- package/dist/runtimes/kimi/login-browser.d.ts +9 -0
- package/dist/runtimes/kimi/login-browser.d.ts.map +1 -0
- package/dist/runtimes/kimi/login-browser.js +42 -0
- package/dist/runtimes/kimi/login-browser.js.map +1 -0
- package/dist/runtimes/kimi/login.d.ts +10 -0
- package/dist/runtimes/kimi/login.d.ts.map +1 -0
- package/dist/runtimes/kimi/login.js +104 -0
- package/dist/runtimes/kimi/login.js.map +1 -0
- package/dist/runtimes/kimi/logout.d.ts +5 -0
- package/dist/runtimes/kimi/logout.d.ts.map +1 -0
- package/dist/runtimes/kimi/logout.js +21 -0
- package/dist/runtimes/kimi/logout.js.map +1 -0
- package/dist/runtimes/kimi/native-usage.d.ts +7 -0
- package/dist/runtimes/kimi/native-usage.d.ts.map +1 -0
- package/dist/runtimes/kimi/native-usage.js +90 -0
- package/dist/runtimes/kimi/native-usage.js.map +1 -0
- package/dist/runtimes/kimi/oauth-token.d.ts +19 -0
- package/dist/runtimes/kimi/oauth-token.d.ts.map +1 -0
- package/dist/runtimes/kimi/oauth-token.js +63 -0
- package/dist/runtimes/kimi/oauth-token.js.map +1 -0
- package/dist/runtimes/kimi/options.d.ts +3 -0
- package/dist/runtimes/kimi/options.d.ts.map +1 -0
- package/dist/runtimes/kimi/options.js +14 -0
- package/dist/runtimes/kimi/options.js.map +1 -0
- package/dist/runtimes/kimi/profile.d.ts +17 -0
- package/dist/runtimes/kimi/profile.d.ts.map +1 -0
- package/dist/runtimes/kimi/profile.js +58 -0
- package/dist/runtimes/kimi/profile.js.map +1 -0
- package/dist/runtimes/kimi/session.d.ts +7 -0
- package/dist/runtimes/kimi/session.d.ts.map +1 -0
- package/dist/runtimes/kimi/session.js +58 -0
- package/dist/runtimes/kimi/session.js.map +1 -0
- package/dist/runtimes/kimi/skills.d.ts +4 -0
- package/dist/runtimes/kimi/skills.d.ts.map +1 -0
- package/dist/runtimes/kimi/skills.js +63 -0
- package/dist/runtimes/kimi/skills.js.map +1 -0
- package/dist/runtimes/kimi/update.d.ts +18 -0
- package/dist/runtimes/kimi/update.d.ts.map +1 -0
- package/dist/runtimes/kimi/update.js +56 -0
- package/dist/runtimes/kimi/update.js.map +1 -0
- package/dist/runtimes/kimi/usage-environment.d.ts +6 -0
- package/dist/runtimes/kimi/usage-environment.d.ts.map +1 -0
- package/dist/runtimes/kimi/usage-environment.js +11 -0
- package/dist/runtimes/kimi/usage-environment.js.map +1 -0
- package/dist/runtimes/kimi/web-query.d.ts +10 -0
- package/dist/runtimes/kimi/web-query.d.ts.map +1 -0
- package/dist/runtimes/kimi/web-query.js +37 -0
- package/dist/runtimes/kimi/web-query.js.map +1 -0
- package/dist/runtimes/kimi/web-shutdown.d.ts +6 -0
- package/dist/runtimes/kimi/web-shutdown.d.ts.map +1 -0
- package/dist/runtimes/kimi/web-shutdown.js +40 -0
- package/dist/runtimes/kimi/web-shutdown.js.map +1 -0
- package/dist/runtimes/kimi/web-startup.d.ts +10 -0
- package/dist/runtimes/kimi/web-startup.d.ts.map +1 -0
- package/dist/runtimes/kimi/web-startup.js +148 -0
- package/dist/runtimes/kimi/web-startup.js.map +1 -0
- package/dist/runtimes/omp/account.d.ts +11 -0
- package/dist/runtimes/omp/account.d.ts.map +1 -0
- package/dist/runtimes/omp/account.js +200 -0
- package/dist/runtimes/omp/account.js.map +1 -0
- package/dist/runtimes/omp/capabilities.d.ts +22 -0
- package/dist/runtimes/omp/capabilities.d.ts.map +1 -0
- package/dist/runtimes/omp/capabilities.js +15 -0
- package/dist/runtimes/omp/capabilities.js.map +1 -0
- package/dist/runtimes/omp/discovery.d.ts +18 -0
- package/dist/runtimes/omp/discovery.d.ts.map +1 -0
- package/dist/runtimes/omp/discovery.js +154 -0
- package/dist/runtimes/omp/discovery.js.map +1 -0
- package/dist/runtimes/omp/index.d.ts +52 -0
- package/dist/runtimes/omp/index.d.ts.map +1 -0
- package/dist/runtimes/omp/index.js +39 -0
- package/dist/runtimes/omp/index.js.map +1 -0
- package/dist/runtimes/omp/installation.d.ts +9 -0
- package/dist/runtimes/omp/installation.d.ts.map +1 -0
- package/dist/runtimes/omp/installation.js +115 -0
- package/dist/runtimes/omp/installation.js.map +1 -0
- package/dist/runtimes/omp/models.d.ts +5 -0
- package/dist/runtimes/omp/models.d.ts.map +1 -0
- package/dist/runtimes/omp/models.js +61 -0
- package/dist/runtimes/omp/models.js.map +1 -0
- package/dist/runtimes/omp/options.d.ts +18 -0
- package/dist/runtimes/omp/options.d.ts.map +1 -0
- package/dist/runtimes/omp/options.js +26 -0
- package/dist/runtimes/omp/options.js.map +1 -0
- package/dist/runtimes/omp/projection.d.ts +34 -0
- package/dist/runtimes/omp/projection.d.ts.map +1 -0
- package/dist/runtimes/omp/projection.js +293 -0
- package/dist/runtimes/omp/projection.js.map +1 -0
- package/dist/runtimes/omp/queue.d.ts +34 -0
- package/dist/runtimes/omp/queue.d.ts.map +1 -0
- package/dist/runtimes/omp/queue.js +47 -0
- package/dist/runtimes/omp/queue.js.map +1 -0
- package/dist/runtimes/omp/resume.d.ts +25 -0
- package/dist/runtimes/omp/resume.d.ts.map +1 -0
- package/dist/runtimes/omp/resume.js +80 -0
- package/dist/runtimes/omp/resume.js.map +1 -0
- package/dist/runtimes/omp/session.d.ts +3 -0
- package/dist/runtimes/omp/session.d.ts.map +1 -0
- package/dist/runtimes/omp/session.js +419 -0
- package/dist/runtimes/omp/session.js.map +1 -0
- package/dist/runtimes/omp/side-question.d.ts +7 -0
- package/dist/runtimes/omp/side-question.d.ts.map +1 -0
- package/dist/runtimes/omp/side-question.js +572 -0
- package/dist/runtimes/omp/side-question.js.map +1 -0
- package/dist/runtimes/omp/wire.d.ts +27 -0
- package/dist/runtimes/omp/wire.d.ts.map +1 -0
- package/dist/runtimes/omp/wire.js +123 -0
- package/dist/runtimes/omp/wire.js.map +1 -0
- package/dist/runtimes/opencode/attribution.d.ts +23 -0
- package/dist/runtimes/opencode/attribution.d.ts.map +1 -0
- package/dist/runtimes/opencode/attribution.js +67 -0
- package/dist/runtimes/opencode/attribution.js.map +1 -0
- package/dist/runtimes/opencode/compaction.d.ts +7 -0
- package/dist/runtimes/opencode/compaction.d.ts.map +1 -0
- package/dist/runtimes/opencode/compaction.js +94 -0
- package/dist/runtimes/opencode/compaction.js.map +1 -0
- package/dist/runtimes/opencode/execution-policy.d.ts +8 -0
- package/dist/runtimes/opencode/execution-policy.d.ts.map +1 -0
- package/dist/runtimes/opencode/execution-policy.js +89 -0
- package/dist/runtimes/opencode/execution-policy.js.map +1 -0
- package/dist/runtimes/opencode/failure.d.ts +3 -0
- package/dist/runtimes/opencode/failure.d.ts.map +1 -0
- package/dist/runtimes/opencode/failure.js +29 -0
- package/dist/runtimes/opencode/failure.js.map +1 -0
- package/dist/runtimes/opencode/index.d.ts +34 -0
- package/dist/runtimes/opencode/index.d.ts.map +1 -0
- package/dist/runtimes/opencode/index.js +43 -0
- package/dist/runtimes/opencode/index.js.map +1 -0
- package/dist/runtimes/opencode/install.d.ts +30 -0
- package/dist/runtimes/opencode/install.d.ts.map +1 -0
- package/dist/runtimes/opencode/install.js +55 -0
- package/dist/runtimes/opencode/install.js.map +1 -0
- package/dist/runtimes/opencode/installation.d.ts +8 -0
- package/dist/runtimes/opencode/installation.d.ts.map +1 -0
- package/dist/runtimes/opencode/installation.js +15 -0
- package/dist/runtimes/opencode/installation.js.map +1 -0
- package/dist/runtimes/opencode/launch-identity.d.ts +18 -0
- package/dist/runtimes/opencode/launch-identity.d.ts.map +1 -0
- package/dist/runtimes/opencode/launch-identity.js +39 -0
- package/dist/runtimes/opencode/launch-identity.js.map +1 -0
- package/dist/runtimes/opencode/list-models.d.ts +18 -0
- package/dist/runtimes/opencode/list-models.d.ts.map +1 -0
- package/dist/runtimes/opencode/list-models.js +94 -0
- package/dist/runtimes/opencode/list-models.js.map +1 -0
- package/dist/runtimes/opencode/options.d.ts +9 -0
- package/dist/runtimes/opencode/options.d.ts.map +1 -0
- package/dist/runtimes/opencode/options.js +21 -0
- package/dist/runtimes/opencode/options.js.map +1 -0
- package/dist/runtimes/opencode/prompt-config-v2.d.ts +15 -0
- package/dist/runtimes/opencode/prompt-config-v2.d.ts.map +1 -0
- package/dist/runtimes/opencode/prompt-config-v2.js +91 -0
- package/dist/runtimes/opencode/prompt-config-v2.js.map +1 -0
- package/dist/runtimes/opencode/prompt-config.d.ts +30 -0
- package/dist/runtimes/opencode/prompt-config.d.ts.map +1 -0
- package/dist/runtimes/opencode/prompt-config.js +171 -0
- package/dist/runtimes/opencode/prompt-config.js.map +1 -0
- package/dist/runtimes/opencode/provider-auth-error.d.ts +25 -0
- package/dist/runtimes/opencode/provider-auth-error.d.ts.map +1 -0
- package/dist/runtimes/opencode/provider-auth-error.js +13 -0
- package/dist/runtimes/opencode/provider-auth-error.js.map +1 -0
- package/dist/runtimes/opencode/provider-auth-facade.d.ts +28 -0
- package/dist/runtimes/opencode/provider-auth-facade.d.ts.map +1 -0
- package/dist/runtimes/opencode/provider-auth-facade.js +178 -0
- package/dist/runtimes/opencode/provider-auth-facade.js.map +1 -0
- package/dist/runtimes/opencode/provider-auth-oauth.d.ts +24 -0
- package/dist/runtimes/opencode/provider-auth-oauth.d.ts.map +1 -0
- package/dist/runtimes/opencode/provider-auth-oauth.js +189 -0
- package/dist/runtimes/opencode/provider-auth-oauth.js.map +1 -0
- package/dist/runtimes/opencode/provider-auth-prompts.d.ts +16 -0
- package/dist/runtimes/opencode/provider-auth-prompts.d.ts.map +1 -0
- package/dist/runtimes/opencode/provider-auth-prompts.js +91 -0
- package/dist/runtimes/opencode/provider-auth-prompts.js.map +1 -0
- package/dist/runtimes/opencode/provider-auth-registry.d.ts +79 -0
- package/dist/runtimes/opencode/provider-auth-registry.d.ts.map +1 -0
- package/dist/runtimes/opencode/provider-auth-registry.js +146 -0
- package/dist/runtimes/opencode/provider-auth-registry.js.map +1 -0
- package/dist/runtimes/opencode/provider-auth-server.d.ts +40 -0
- package/dist/runtimes/opencode/provider-auth-server.d.ts.map +1 -0
- package/dist/runtimes/opencode/provider-auth-server.js +198 -0
- package/dist/runtimes/opencode/provider-auth-server.js.map +1 -0
- package/dist/runtimes/opencode/provider-auth.d.ts +49 -0
- package/dist/runtimes/opencode/provider-auth.d.ts.map +1 -0
- package/dist/runtimes/opencode/provider-auth.js +39 -0
- package/dist/runtimes/opencode/provider-auth.js.map +1 -0
- package/dist/runtimes/opencode/retry.d.ts +5 -0
- package/dist/runtimes/opencode/retry.d.ts.map +1 -0
- package/dist/runtimes/opencode/retry.js +20 -0
- package/dist/runtimes/opencode/retry.js.map +1 -0
- package/dist/runtimes/opencode/session.d.ts +17 -0
- package/dist/runtimes/opencode/session.d.ts.map +1 -0
- package/dist/runtimes/opencode/session.js +228 -0
- package/dist/runtimes/opencode/session.js.map +1 -0
- package/dist/runtimes/opencode/shared-session.d.ts +7 -0
- package/dist/runtimes/opencode/shared-session.d.ts.map +1 -0
- package/dist/runtimes/opencode/shared-session.js +115 -0
- package/dist/runtimes/opencode/shared-session.js.map +1 -0
- package/dist/runtimes/opencode/sharing-admission.d.ts +5 -0
- package/dist/runtimes/opencode/sharing-admission.d.ts.map +1 -0
- package/dist/runtimes/opencode/sharing-admission.js +9 -0
- package/dist/runtimes/opencode/sharing-admission.js.map +1 -0
- package/dist/runtimes/opencode/sharing-diagnostics.d.ts +3 -0
- package/dist/runtimes/opencode/sharing-diagnostics.d.ts.map +1 -0
- package/dist/runtimes/opencode/sharing-diagnostics.js +3 -0
- package/dist/runtimes/opencode/sharing-diagnostics.js.map +1 -0
- package/dist/runtimes/opencode/side-question.d.ts +9 -0
- package/dist/runtimes/opencode/side-question.d.ts.map +1 -0
- package/dist/runtimes/opencode/side-question.js +444 -0
- package/dist/runtimes/opencode/side-question.js.map +1 -0
- package/dist/runtimes/opencode/skill-diagnostic.d.ts +3 -0
- package/dist/runtimes/opencode/skill-diagnostic.d.ts.map +1 -0
- package/dist/runtimes/opencode/skill-diagnostic.js +25 -0
- package/dist/runtimes/opencode/skill-diagnostic.js.map +1 -0
- package/dist/runtimes/opencode/skill-scope.d.ts +5 -0
- package/dist/runtimes/opencode/skill-scope.d.ts.map +1 -0
- package/dist/runtimes/opencode/skill-scope.js +82 -0
- package/dist/runtimes/opencode/skill-scope.js.map +1 -0
- package/dist/runtimes/opencode/skills-v1.d.ts +4 -0
- package/dist/runtimes/opencode/skills-v1.d.ts.map +1 -0
- package/dist/runtimes/opencode/skills-v1.js +38 -0
- package/dist/runtimes/opencode/skills-v1.js.map +1 -0
- package/dist/runtimes/opencode/skills.d.ts +4 -0
- package/dist/runtimes/opencode/skills.d.ts.map +1 -0
- package/dist/runtimes/opencode/skills.js +99 -0
- package/dist/runtimes/opencode/skills.js.map +1 -0
- package/dist/runtimes/opencode/startup-gate.d.ts +9 -0
- package/dist/runtimes/opencode/startup-gate.d.ts.map +1 -0
- package/dist/runtimes/opencode/startup-gate.js +87 -0
- package/dist/runtimes/opencode/startup-gate.js.map +1 -0
- package/dist/runtimes/opencode/steering.d.ts +11 -0
- package/dist/runtimes/opencode/steering.d.ts.map +1 -0
- package/dist/runtimes/opencode/steering.js +23 -0
- package/dist/runtimes/opencode/steering.js.map +1 -0
- package/dist/runtimes/opencode/token-usage.d.ts +5 -0
- package/dist/runtimes/opencode/token-usage.d.ts.map +1 -0
- package/dist/runtimes/opencode/token-usage.js +31 -0
- package/dist/runtimes/opencode/token-usage.js.map +1 -0
- package/dist/runtimes/opencode/version.d.ts +20 -0
- package/dist/runtimes/opencode/version.d.ts.map +1 -0
- package/dist/runtimes/opencode/version.js +51 -0
- package/dist/runtimes/opencode/version.js.map +1 -0
- package/dist/runtimes/pi/auth.d.ts +37 -0
- package/dist/runtimes/pi/auth.d.ts.map +1 -0
- package/dist/runtimes/pi/auth.js +198 -0
- package/dist/runtimes/pi/auth.js.map +1 -0
- package/dist/runtimes/pi/catalog.d.ts +7 -0
- package/dist/runtimes/pi/catalog.d.ts.map +1 -0
- package/dist/runtimes/pi/catalog.js +76 -0
- package/dist/runtimes/pi/catalog.js.map +1 -0
- package/dist/runtimes/pi/compaction.d.ts +6 -0
- package/dist/runtimes/pi/compaction.d.ts.map +1 -0
- package/dist/runtimes/pi/compaction.js +51 -0
- package/dist/runtimes/pi/compaction.js.map +1 -0
- package/dist/runtimes/pi/config-value.d.ts +3 -0
- package/dist/runtimes/pi/config-value.d.ts.map +1 -0
- package/dist/runtimes/pi/config-value.js +5 -0
- package/dist/runtimes/pi/config-value.js.map +1 -0
- package/dist/runtimes/pi/credentials.d.ts +6 -0
- package/dist/runtimes/pi/credentials.d.ts.map +1 -0
- package/dist/runtimes/pi/credentials.js +17 -0
- package/dist/runtimes/pi/credentials.js.map +1 -0
- package/dist/runtimes/pi/facade-runtime.d.ts +21 -0
- package/dist/runtimes/pi/facade-runtime.d.ts.map +1 -0
- package/dist/runtimes/pi/facade-runtime.js +24 -0
- package/dist/runtimes/pi/facade-runtime.js.map +1 -0
- package/dist/runtimes/pi/failure.d.ts +10 -0
- package/dist/runtimes/pi/failure.d.ts.map +1 -0
- package/dist/runtimes/pi/failure.js +18 -0
- package/dist/runtimes/pi/failure.js.map +1 -0
- package/dist/runtimes/pi/history.d.ts +5 -0
- package/dist/runtimes/pi/history.d.ts.map +1 -0
- package/dist/runtimes/pi/history.js +154 -0
- package/dist/runtimes/pi/history.js.map +1 -0
- package/dist/runtimes/pi/http.d.ts +44 -0
- package/dist/runtimes/pi/http.d.ts.map +1 -0
- package/dist/runtimes/pi/http.js +113 -0
- package/dist/runtimes/pi/http.js.map +1 -0
- package/dist/runtimes/pi/index.d.ts +23 -0
- package/dist/runtimes/pi/index.d.ts.map +1 -0
- package/dist/runtimes/pi/index.js +85 -0
- package/dist/runtimes/pi/index.js.map +1 -0
- package/dist/runtimes/pi/input-disposition.d.ts +24 -0
- package/dist/runtimes/pi/input-disposition.d.ts.map +1 -0
- package/dist/runtimes/pi/input-disposition.js +15 -0
- package/dist/runtimes/pi/input-disposition.js.map +1 -0
- package/dist/runtimes/pi/installation.d.ts +7 -0
- package/dist/runtimes/pi/installation.d.ts.map +1 -0
- package/dist/runtimes/pi/installation.js +78 -0
- package/dist/runtimes/pi/installation.js.map +1 -0
- package/dist/runtimes/pi/inventory.d.ts +7 -0
- package/dist/runtimes/pi/inventory.d.ts.map +1 -0
- package/dist/runtimes/pi/inventory.js +86 -0
- package/dist/runtimes/pi/inventory.js.map +1 -0
- package/dist/runtimes/pi/lifecycle.d.ts +8 -0
- package/dist/runtimes/pi/lifecycle.d.ts.map +1 -0
- package/dist/runtimes/pi/lifecycle.js +67 -0
- package/dist/runtimes/pi/lifecycle.js.map +1 -0
- package/dist/runtimes/pi/list-models.d.ts +33 -0
- package/dist/runtimes/pi/list-models.d.ts.map +1 -0
- package/dist/runtimes/pi/list-models.js +90 -0
- package/dist/runtimes/pi/list-models.js.map +1 -0
- package/dist/runtimes/pi/mcp.d.ts +35 -0
- package/dist/runtimes/pi/mcp.d.ts.map +1 -0
- package/dist/runtimes/pi/mcp.js +132 -0
- package/dist/runtimes/pi/mcp.js.map +1 -0
- package/dist/runtimes/pi/model-projection.d.ts +60 -0
- package/dist/runtimes/pi/model-projection.d.ts.map +1 -0
- package/dist/runtimes/pi/model-projection.js +35 -0
- package/dist/runtimes/pi/model-projection.js.map +1 -0
- package/dist/runtimes/pi/open.d.ts +60 -0
- package/dist/runtimes/pi/open.d.ts.map +1 -0
- package/dist/runtimes/pi/open.js +238 -0
- package/dist/runtimes/pi/open.js.map +1 -0
- package/dist/runtimes/pi/options.d.ts +38 -0
- package/dist/runtimes/pi/options.d.ts.map +1 -0
- package/dist/runtimes/pi/options.js +108 -0
- package/dist/runtimes/pi/options.js.map +1 -0
- package/dist/runtimes/pi/project.d.ts +7 -0
- package/dist/runtimes/pi/project.d.ts.map +1 -0
- package/dist/runtimes/pi/project.js +40 -0
- package/dist/runtimes/pi/project.js.map +1 -0
- package/dist/runtimes/pi/projection.d.ts +47 -0
- package/dist/runtimes/pi/projection.d.ts.map +1 -0
- package/dist/runtimes/pi/projection.js +202 -0
- package/dist/runtimes/pi/projection.js.map +1 -0
- package/dist/runtimes/pi/queue-barrier.d.ts +12 -0
- package/dist/runtimes/pi/queue-barrier.d.ts.map +1 -0
- package/dist/runtimes/pi/queue-barrier.js +35 -0
- package/dist/runtimes/pi/queue-barrier.js.map +1 -0
- package/dist/runtimes/pi/reader-environment.d.ts +10 -0
- package/dist/runtimes/pi/reader-environment.d.ts.map +1 -0
- package/dist/runtimes/pi/reader-environment.js +22 -0
- package/dist/runtimes/pi/reader-environment.js.map +1 -0
- package/dist/runtimes/pi/resolve.d.ts +53 -0
- package/dist/runtimes/pi/resolve.d.ts.map +1 -0
- package/dist/runtimes/pi/resolve.js +85 -0
- package/dist/runtimes/pi/resolve.js.map +1 -0
- package/dist/runtimes/pi/rpc/control.d.ts +7 -0
- package/dist/runtimes/pi/rpc/control.d.ts.map +1 -0
- package/dist/runtimes/pi/rpc/control.js +57 -0
- package/dist/runtimes/pi/rpc/control.js.map +1 -0
- package/dist/runtimes/pi/rpc/credentials.d.ts +4 -0
- package/dist/runtimes/pi/rpc/credentials.d.ts.map +1 -0
- package/dist/runtimes/pi/rpc/credentials.js +24 -0
- package/dist/runtimes/pi/rpc/credentials.js.map +1 -0
- package/dist/runtimes/pi/rpc/extension.d.ts +6 -0
- package/dist/runtimes/pi/rpc/extension.d.ts.map +1 -0
- package/dist/runtimes/pi/rpc/extension.js +101 -0
- package/dist/runtimes/pi/rpc/extension.js.map +1 -0
- package/dist/runtimes/pi/rpc/launch.d.ts +7 -0
- package/dist/runtimes/pi/rpc/launch.d.ts.map +1 -0
- package/dist/runtimes/pi/rpc/launch.js +25 -0
- package/dist/runtimes/pi/rpc/launch.js.map +1 -0
- package/dist/runtimes/pi/rpc/open.d.ts +33 -0
- package/dist/runtimes/pi/rpc/open.d.ts.map +1 -0
- package/dist/runtimes/pi/rpc/open.js +193 -0
- package/dist/runtimes/pi/rpc/open.js.map +1 -0
- package/dist/runtimes/pi/rpc/prompt-files.d.ts +4 -0
- package/dist/runtimes/pi/rpc/prompt-files.d.ts.map +1 -0
- package/dist/runtimes/pi/rpc/prompt-files.js +28 -0
- package/dist/runtimes/pi/rpc/prompt-files.js.map +1 -0
- package/dist/runtimes/pi/rpc/read.d.ts +9 -0
- package/dist/runtimes/pi/rpc/read.d.ts.map +1 -0
- package/dist/runtimes/pi/rpc/read.js +29 -0
- package/dist/runtimes/pi/rpc/read.js.map +1 -0
- package/dist/runtimes/pi/rpc/readers.d.ts +16 -0
- package/dist/runtimes/pi/rpc/readers.d.ts.map +1 -0
- package/dist/runtimes/pi/rpc/readers.js +66 -0
- package/dist/runtimes/pi/rpc/readers.js.map +1 -0
- package/dist/runtimes/pi/rpc/session.d.ts +6 -0
- package/dist/runtimes/pi/rpc/session.d.ts.map +1 -0
- package/dist/runtimes/pi/rpc/session.js +292 -0
- package/dist/runtimes/pi/rpc/session.js.map +1 -0
- package/dist/runtimes/pi/rpc/version.d.ts +19 -0
- package/dist/runtimes/pi/rpc/version.d.ts.map +1 -0
- package/dist/runtimes/pi/rpc/version.js +51 -0
- package/dist/runtimes/pi/rpc/version.js.map +1 -0
- package/dist/runtimes/pi/session.d.ts +6 -0
- package/dist/runtimes/pi/session.d.ts.map +1 -0
- package/dist/runtimes/pi/session.js +323 -0
- package/dist/runtimes/pi/session.js.map +1 -0
- package/dist/runtimes/pi/side-question.d.ts +8 -0
- package/dist/runtimes/pi/side-question.d.ts.map +1 -0
- package/dist/runtimes/pi/side-question.js +433 -0
- package/dist/runtimes/pi/side-question.js.map +1 -0
- package/dist/runtimes/pi/skill-provenance.d.ts +8 -0
- package/dist/runtimes/pi/skill-provenance.d.ts.map +1 -0
- package/dist/runtimes/pi/skill-provenance.js +10 -0
- package/dist/runtimes/pi/skill-provenance.js.map +1 -0
- package/dist/runtimes/pi/static-modules.d.ts +11 -0
- package/dist/runtimes/pi/static-modules.d.ts.map +1 -0
- package/dist/runtimes/pi/static-modules.js +54 -0
- package/dist/runtimes/pi/static-modules.js.map +1 -0
- package/dist/runtimes/pi/theme.d.ts +16 -0
- package/dist/runtimes/pi/theme.d.ts.map +1 -0
- package/dist/runtimes/pi/theme.js +19 -0
- package/dist/runtimes/pi/theme.js.map +1 -0
- package/dist/runtimes/pi-durable/index.d.ts +11 -0
- package/dist/runtimes/pi-durable/index.d.ts.map +1 -0
- package/dist/runtimes/pi-durable/index.js +33 -0
- package/dist/runtimes/pi-durable/index.js.map +1 -0
- package/dist/runtimes/pi-durable/messages.d.ts +15 -0
- package/dist/runtimes/pi-durable/messages.d.ts.map +1 -0
- package/dist/runtimes/pi-durable/messages.js +30 -0
- package/dist/runtimes/pi-durable/messages.js.map +1 -0
- package/dist/runtimes/pi-durable/options.d.ts +8 -0
- package/dist/runtimes/pi-durable/options.d.ts.map +1 -0
- package/dist/runtimes/pi-durable/options.js +103 -0
- package/dist/runtimes/pi-durable/options.js.map +1 -0
- package/dist/runtimes/pi-durable/projection.d.ts +28 -0
- package/dist/runtimes/pi-durable/projection.d.ts.map +1 -0
- package/dist/runtimes/pi-durable/projection.js +201 -0
- package/dist/runtimes/pi-durable/projection.js.map +1 -0
- package/dist/runtimes/pi-durable/session.d.ts +6 -0
- package/dist/runtimes/pi-durable/session.d.ts.map +1 -0
- package/dist/runtimes/pi-durable/session.js +213 -0
- package/dist/runtimes/pi-durable/session.js.map +1 -0
- package/dist/runtimes/qoder/auth-status.d.ts +9 -0
- package/dist/runtimes/qoder/auth-status.d.ts.map +1 -0
- package/dist/runtimes/qoder/auth-status.js +31 -0
- package/dist/runtimes/qoder/auth-status.js.map +1 -0
- package/dist/runtimes/qoder/compaction.d.ts +5 -0
- package/dist/runtimes/qoder/compaction.d.ts.map +1 -0
- package/dist/runtimes/qoder/compaction.js +41 -0
- package/dist/runtimes/qoder/compaction.js.map +1 -0
- package/dist/runtimes/qoder/control.d.ts +14 -0
- package/dist/runtimes/qoder/control.d.ts.map +1 -0
- package/dist/runtimes/qoder/control.js +80 -0
- package/dist/runtimes/qoder/control.js.map +1 -0
- package/dist/runtimes/qoder/daemon.d.ts +4 -0
- package/dist/runtimes/qoder/daemon.d.ts.map +1 -0
- package/dist/runtimes/qoder/daemon.js +121 -0
- package/dist/runtimes/qoder/daemon.js.map +1 -0
- package/dist/runtimes/qoder/index.d.ts +32 -0
- package/dist/runtimes/qoder/index.d.ts.map +1 -0
- package/dist/runtimes/qoder/index.js +20 -0
- package/dist/runtimes/qoder/index.js.map +1 -0
- package/dist/runtimes/qoder/install.d.ts +6 -0
- package/dist/runtimes/qoder/install.d.ts.map +1 -0
- package/dist/runtimes/qoder/install.js +15 -0
- package/dist/runtimes/qoder/install.js.map +1 -0
- package/dist/runtimes/qoder/installation.d.ts +5 -0
- package/dist/runtimes/qoder/installation.d.ts.map +1 -0
- package/dist/runtimes/qoder/installation.js +23 -0
- package/dist/runtimes/qoder/installation.js.map +1 -0
- package/dist/runtimes/qoder/launch.d.ts +13 -0
- package/dist/runtimes/qoder/launch.d.ts.map +1 -0
- package/dist/runtimes/qoder/launch.js +88 -0
- package/dist/runtimes/qoder/launch.js.map +1 -0
- package/dist/runtimes/qoder/list-models.d.ts +10 -0
- package/dist/runtimes/qoder/list-models.d.ts.map +1 -0
- package/dist/runtimes/qoder/list-models.js +84 -0
- package/dist/runtimes/qoder/list-models.js.map +1 -0
- package/dist/runtimes/qoder/login.d.ts +6 -0
- package/dist/runtimes/qoder/login.d.ts.map +1 -0
- package/dist/runtimes/qoder/login.js +84 -0
- package/dist/runtimes/qoder/login.js.map +1 -0
- package/dist/runtimes/qoder/options.d.ts +4 -0
- package/dist/runtimes/qoder/options.d.ts.map +1 -0
- package/dist/runtimes/qoder/options.js +22 -0
- package/dist/runtimes/qoder/options.js.map +1 -0
- package/dist/runtimes/qoder/permission.d.ts +4 -0
- package/dist/runtimes/qoder/permission.d.ts.map +1 -0
- package/dist/runtimes/qoder/permission.js +6 -0
- package/dist/runtimes/qoder/permission.js.map +1 -0
- package/dist/runtimes/qoder/projection.d.ts +14 -0
- package/dist/runtimes/qoder/projection.d.ts.map +1 -0
- package/dist/runtimes/qoder/projection.js +52 -0
- package/dist/runtimes/qoder/projection.js.map +1 -0
- package/dist/runtimes/qoder/protocol.d.ts +16 -0
- package/dist/runtimes/qoder/protocol.d.ts.map +1 -0
- package/dist/runtimes/qoder/protocol.js +43 -0
- package/dist/runtimes/qoder/protocol.js.map +1 -0
- package/dist/runtimes/qoder/session.d.ts +3 -0
- package/dist/runtimes/qoder/session.d.ts.map +1 -0
- package/dist/runtimes/qoder/session.js +113 -0
- package/dist/runtimes/qoder/session.js.map +1 -0
- package/dist/runtimes/qoder/tasks.d.ts +5 -0
- package/dist/runtimes/qoder/tasks.d.ts.map +1 -0
- package/dist/runtimes/qoder/tasks.js +50 -0
- package/dist/runtimes/qoder/tasks.js.map +1 -0
- package/dist/runtimes/qwen/auth-files.d.ts +15 -0
- package/dist/runtimes/qwen/auth-files.d.ts.map +1 -0
- package/dist/runtimes/qwen/auth-files.js +91 -0
- package/dist/runtimes/qwen/auth-files.js.map +1 -0
- package/dist/runtimes/qwen/auth-status.d.ts +4 -0
- package/dist/runtimes/qwen/auth-status.d.ts.map +1 -0
- package/dist/runtimes/qwen/auth-status.js +108 -0
- package/dist/runtimes/qwen/auth-status.js.map +1 -0
- package/dist/runtimes/qwen/close.d.ts +4 -0
- package/dist/runtimes/qwen/close.d.ts.map +1 -0
- package/dist/runtimes/qwen/close.js +13 -0
- package/dist/runtimes/qwen/close.js.map +1 -0
- package/dist/runtimes/qwen/context-usage.d.ts +15 -0
- package/dist/runtimes/qwen/context-usage.d.ts.map +1 -0
- package/dist/runtimes/qwen/context-usage.js +77 -0
- package/dist/runtimes/qwen/context-usage.js.map +1 -0
- package/dist/runtimes/qwen/control.d.ts +15 -0
- package/dist/runtimes/qwen/control.d.ts.map +1 -0
- package/dist/runtimes/qwen/control.js +66 -0
- package/dist/runtimes/qwen/control.js.map +1 -0
- package/dist/runtimes/qwen/index.d.ts +45 -0
- package/dist/runtimes/qwen/index.d.ts.map +1 -0
- package/dist/runtimes/qwen/index.js +35 -0
- package/dist/runtimes/qwen/index.js.map +1 -0
- package/dist/runtimes/qwen/install-paths.d.ts +6 -0
- package/dist/runtimes/qwen/install-paths.d.ts.map +1 -0
- package/dist/runtimes/qwen/install-paths.js +14 -0
- package/dist/runtimes/qwen/install-paths.js.map +1 -0
- package/dist/runtimes/qwen/install.d.ts +6 -0
- package/dist/runtimes/qwen/install.d.ts.map +1 -0
- package/dist/runtimes/qwen/install.js +18 -0
- package/dist/runtimes/qwen/install.js.map +1 -0
- package/dist/runtimes/qwen/installation.d.ts +2 -0
- package/dist/runtimes/qwen/installation.d.ts.map +1 -0
- package/dist/runtimes/qwen/installation.js +5 -0
- package/dist/runtimes/qwen/installation.js.map +1 -0
- package/dist/runtimes/qwen/launch.d.ts +5 -0
- package/dist/runtimes/qwen/launch.d.ts.map +1 -0
- package/dist/runtimes/qwen/launch.js +25 -0
- package/dist/runtimes/qwen/launch.js.map +1 -0
- package/dist/runtimes/qwen/list-models.d.ts +6 -0
- package/dist/runtimes/qwen/list-models.d.ts.map +1 -0
- package/dist/runtimes/qwen/list-models.js +84 -0
- package/dist/runtimes/qwen/list-models.js.map +1 -0
- package/dist/runtimes/qwen/options.d.ts +5 -0
- package/dist/runtimes/qwen/options.d.ts.map +1 -0
- package/dist/runtimes/qwen/options.js +30 -0
- package/dist/runtimes/qwen/options.js.map +1 -0
- package/dist/runtimes/qwen/projection.d.ts +14 -0
- package/dist/runtimes/qwen/projection.d.ts.map +1 -0
- package/dist/runtimes/qwen/projection.js +47 -0
- package/dist/runtimes/qwen/projection.js.map +1 -0
- package/dist/runtimes/qwen/provider-auth-rpc.d.ts +4 -0
- package/dist/runtimes/qwen/provider-auth-rpc.d.ts.map +1 -0
- package/dist/runtimes/qwen/provider-auth-rpc.js +134 -0
- package/dist/runtimes/qwen/provider-auth-rpc.js.map +1 -0
- package/dist/runtimes/qwen/provider-auth.d.ts +66 -0
- package/dist/runtimes/qwen/provider-auth.d.ts.map +1 -0
- package/dist/runtimes/qwen/provider-auth.js +19 -0
- package/dist/runtimes/qwen/provider-auth.js.map +1 -0
- package/dist/runtimes/qwen/session.d.ts +8 -0
- package/dist/runtimes/qwen/session.d.ts.map +1 -0
- package/dist/runtimes/qwen/session.js +80 -0
- package/dist/runtimes/qwen/session.js.map +1 -0
- package/dist/runtimes/qwen/skills.d.ts +4 -0
- package/dist/runtimes/qwen/skills.d.ts.map +1 -0
- package/dist/runtimes/qwen/skills.js +69 -0
- package/dist/runtimes/qwen/skills.js.map +1 -0
- package/dist/runtimes/qwen/tasks.d.ts +5 -0
- package/dist/runtimes/qwen/tasks.d.ts.map +1 -0
- package/dist/runtimes/qwen/tasks.js +21 -0
- package/dist/runtimes/qwen/tasks.js.map +1 -0
- package/dist/shared/abort-fallback.d.ts +11 -0
- package/dist/shared/abort-fallback.d.ts.map +1 -0
- package/dist/shared/abort-fallback.js +48 -0
- package/dist/shared/abort-fallback.js.map +1 -0
- package/dist/shared/acp/additional-directories.d.ts +5 -0
- package/dist/shared/acp/additional-directories.d.ts.map +1 -0
- package/dist/shared/acp/additional-directories.js +16 -0
- package/dist/shared/acp/additional-directories.js.map +1 -0
- package/dist/shared/acp/auth-query.d.ts +25 -0
- package/dist/shared/acp/auth-query.d.ts.map +1 -0
- package/dist/shared/acp/auth-query.js +66 -0
- package/dist/shared/acp/auth-query.js.map +1 -0
- package/dist/shared/acp/client-app.d.ts +36 -0
- package/dist/shared/acp/client-app.d.ts.map +1 -0
- package/dist/shared/acp/client-app.js +82 -0
- package/dist/shared/acp/client-app.js.map +1 -0
- package/dist/shared/acp/config-updates.d.ts +9 -0
- package/dist/shared/acp/config-updates.d.ts.map +1 -0
- package/dist/shared/acp/config-updates.js +77 -0
- package/dist/shared/acp/config-updates.js.map +1 -0
- package/dist/shared/acp/derived-sessions.d.ts +40 -0
- package/dist/shared/acp/derived-sessions.d.ts.map +1 -0
- package/dist/shared/acp/derived-sessions.js +28 -0
- package/dist/shared/acp/derived-sessions.js.map +1 -0
- package/dist/shared/acp/diagnostic-summary.d.ts +10 -0
- package/dist/shared/acp/diagnostic-summary.d.ts.map +1 -0
- package/dist/shared/acp/diagnostic-summary.js +33 -0
- package/dist/shared/acp/diagnostic-summary.js.map +1 -0
- package/dist/shared/acp/effort.d.ts +42 -0
- package/dist/shared/acp/effort.d.ts.map +1 -0
- package/dist/shared/acp/effort.js +76 -0
- package/dist/shared/acp/effort.js.map +1 -0
- package/dist/shared/acp/errors.d.ts +18 -0
- package/dist/shared/acp/errors.d.ts.map +1 -0
- package/dist/shared/acp/errors.js +35 -0
- package/dist/shared/acp/errors.js.map +1 -0
- package/dist/shared/acp/failure.d.ts +20 -0
- package/dist/shared/acp/failure.d.ts.map +1 -0
- package/dist/shared/acp/failure.js +83 -0
- package/dist/shared/acp/failure.js.map +1 -0
- package/dist/shared/acp/initialize.d.ts +6 -0
- package/dist/shared/acp/initialize.d.ts.map +1 -0
- package/dist/shared/acp/initialize.js +32 -0
- package/dist/shared/acp/initialize.js.map +1 -0
- package/dist/shared/acp/input.d.ts +8 -0
- package/dist/shared/acp/input.d.ts.map +1 -0
- package/dist/shared/acp/input.js +76 -0
- package/dist/shared/acp/input.js.map +1 -0
- package/dist/shared/acp/launch-args.d.ts +5 -0
- package/dist/shared/acp/launch-args.d.ts.map +1 -0
- package/dist/shared/acp/launch-args.js +7 -0
- package/dist/shared/acp/launch-args.js.map +1 -0
- package/dist/shared/acp/mcp-servers.d.ts +18 -0
- package/dist/shared/acp/mcp-servers.d.ts.map +1 -0
- package/dist/shared/acp/mcp-servers.js +49 -0
- package/dist/shared/acp/mcp-servers.js.map +1 -0
- package/dist/shared/acp/model-configuration.d.ts +15 -0
- package/dist/shared/acp/model-configuration.d.ts.map +1 -0
- package/dist/shared/acp/model-configuration.js +27 -0
- package/dist/shared/acp/model-configuration.js.map +1 -0
- package/dist/shared/acp/model.d.ts +42 -0
- package/dist/shared/acp/model.d.ts.map +1 -0
- package/dist/shared/acp/model.js +65 -0
- package/dist/shared/acp/model.js.map +1 -0
- package/dist/shared/acp/native-turns.d.ts +37 -0
- package/dist/shared/acp/native-turns.d.ts.map +1 -0
- package/dist/shared/acp/native-turns.js +107 -0
- package/dist/shared/acp/native-turns.js.map +1 -0
- package/dist/shared/acp/opening.d.ts +11 -0
- package/dist/shared/acp/opening.d.ts.map +1 -0
- package/dist/shared/acp/opening.js +46 -0
- package/dist/shared/acp/opening.js.map +1 -0
- package/dist/shared/acp/process.d.ts +51 -0
- package/dist/shared/acp/process.d.ts.map +1 -0
- package/dist/shared/acp/process.js +156 -0
- package/dist/shared/acp/process.js.map +1 -0
- package/dist/shared/acp/profile.d.ts +167 -0
- package/dist/shared/acp/profile.d.ts.map +1 -0
- package/dist/shared/acp/profile.js +100 -0
- package/dist/shared/acp/profile.js.map +1 -0
- package/dist/shared/acp/projection.d.ts +39 -0
- package/dist/shared/acp/projection.d.ts.map +1 -0
- package/dist/shared/acp/projection.js +248 -0
- package/dist/shared/acp/projection.js.map +1 -0
- package/dist/shared/acp/prompt.d.ts +13 -0
- package/dist/shared/acp/prompt.d.ts.map +1 -0
- package/dist/shared/acp/prompt.js +41 -0
- package/dist/shared/acp/prompt.js.map +1 -0
- package/dist/shared/acp/protocol-error.d.ts +5 -0
- package/dist/shared/acp/protocol-error.d.ts.map +1 -0
- package/dist/shared/acp/protocol-error.js +6 -0
- package/dist/shared/acp/protocol-error.js.map +1 -0
- package/dist/shared/acp/records.d.ts +53 -0
- package/dist/shared/acp/records.d.ts.map +1 -0
- package/dist/shared/acp/records.js +182 -0
- package/dist/shared/acp/records.js.map +1 -0
- package/dist/shared/acp/resume-cwd.d.ts +12 -0
- package/dist/shared/acp/resume-cwd.d.ts.map +1 -0
- package/dist/shared/acp/resume-cwd.js +56 -0
- package/dist/shared/acp/resume-cwd.js.map +1 -0
- package/dist/shared/acp/routing-types.d.ts +51 -0
- package/dist/shared/acp/routing-types.d.ts.map +1 -0
- package/dist/shared/acp/routing-types.js +2 -0
- package/dist/shared/acp/routing-types.js.map +1 -0
- package/dist/shared/acp/routing.d.ts +17 -0
- package/dist/shared/acp/routing.d.ts.map +1 -0
- package/dist/shared/acp/routing.js +399 -0
- package/dist/shared/acp/routing.js.map +1 -0
- package/dist/shared/acp/session-state.d.ts +22 -0
- package/dist/shared/acp/session-state.d.ts.map +1 -0
- package/dist/shared/acp/session-state.js +39 -0
- package/dist/shared/acp/session-state.js.map +1 -0
- package/dist/shared/acp/session.d.ts +24 -0
- package/dist/shared/acp/session.d.ts.map +1 -0
- package/dist/shared/acp/session.js +291 -0
- package/dist/shared/acp/session.js.map +1 -0
- package/dist/shared/acp/shared-session.d.ts +34 -0
- package/dist/shared/acp/shared-session.d.ts.map +1 -0
- package/dist/shared/acp/shared-session.js +232 -0
- package/dist/shared/acp/shared-session.js.map +1 -0
- package/dist/shared/acp/shared-wire.d.ts +9 -0
- package/dist/shared/acp/shared-wire.d.ts.map +1 -0
- package/dist/shared/acp/shared-wire.js +113 -0
- package/dist/shared/acp/shared-wire.js.map +1 -0
- package/dist/shared/acp/steer-request.d.ts +36 -0
- package/dist/shared/acp/steer-request.d.ts.map +1 -0
- package/dist/shared/acp/steer-request.js +65 -0
- package/dist/shared/acp/steer-request.js.map +1 -0
- package/dist/shared/acp/terminal-launch.d.ts +7 -0
- package/dist/shared/acp/terminal-launch.d.ts.map +1 -0
- package/dist/shared/acp/terminal-launch.js +41 -0
- package/dist/shared/acp/terminal-launch.js.map +1 -0
- package/dist/shared/acp/terminal.d.ts +28 -0
- package/dist/shared/acp/terminal.d.ts.map +1 -0
- package/dist/shared/acp/terminal.js +201 -0
- package/dist/shared/acp/terminal.js.map +1 -0
- package/dist/shared/acp/token-usage.d.ts +15 -0
- package/dist/shared/acp/token-usage.d.ts.map +1 -0
- package/dist/shared/acp/token-usage.js +54 -0
- package/dist/shared/acp/token-usage.js.map +1 -0
- package/dist/shared/acp/turn-terminals.d.ts +13 -0
- package/dist/shared/acp/turn-terminals.d.ts.map +1 -0
- package/dist/shared/acp/turn-terminals.js +114 -0
- package/dist/shared/acp/turn-terminals.js.map +1 -0
- package/dist/shared/acp/turns.d.ts +61 -0
- package/dist/shared/acp/turns.d.ts.map +1 -0
- package/dist/shared/acp/turns.js +274 -0
- package/dist/shared/acp/turns.js.map +1 -0
- package/dist/shared/acp/usage-wait.d.ts +30 -0
- package/dist/shared/acp/usage-wait.d.ts.map +1 -0
- package/dist/shared/acp/usage-wait.js +34 -0
- package/dist/shared/acp/usage-wait.js.map +1 -0
- package/dist/shared/additional-directories.d.ts +4 -0
- package/dist/shared/additional-directories.d.ts.map +1 -0
- package/dist/shared/additional-directories.js +11 -0
- package/dist/shared/additional-directories.js.map +1 -0
- package/dist/shared/control-input.d.ts +11 -0
- package/dist/shared/control-input.d.ts.map +1 -0
- package/dist/shared/control-input.js +34 -0
- package/dist/shared/control-input.js.map +1 -0
- package/dist/shared/credential-http.d.ts +14 -0
- package/dist/shared/credential-http.d.ts.map +1 -0
- package/dist/shared/credential-http.js +25 -0
- package/dist/shared/credential-http.js.map +1 -0
- package/dist/shared/credential-redaction.d.ts +27 -0
- package/dist/shared/credential-redaction.d.ts.map +1 -0
- package/dist/shared/credential-redaction.js +66 -0
- package/dist/shared/credential-redaction.js.map +1 -0
- package/dist/shared/credential-redactor.d.ts +11 -0
- package/dist/shared/credential-redactor.d.ts.map +1 -0
- package/dist/shared/credential-redactor.js +76 -0
- package/dist/shared/credential-redactor.js.map +1 -0
- package/dist/shared/deadline.d.ts +6 -0
- package/dist/shared/deadline.d.ts.map +1 -0
- package/dist/shared/deadline.js +12 -0
- package/dist/shared/deadline.js.map +1 -0
- package/dist/shared/deliver-interrupt.d.ts +50 -0
- package/dist/shared/deliver-interrupt.d.ts.map +1 -0
- package/dist/shared/deliver-interrupt.js +201 -0
- package/dist/shared/deliver-interrupt.js.map +1 -0
- package/dist/shared/deliver.d.ts +10 -0
- package/dist/shared/deliver.d.ts.map +1 -0
- package/dist/shared/deliver.js +92 -0
- package/dist/shared/deliver.js.map +1 -0
- package/dist/shared/dispose-receipt.d.ts +10 -0
- package/dist/shared/dispose-receipt.d.ts.map +1 -0
- package/dist/shared/dispose-receipt.js +47 -0
- package/dist/shared/dispose-receipt.js.map +1 -0
- package/dist/shared/effort-levels.d.ts +10 -0
- package/dist/shared/effort-levels.d.ts.map +1 -0
- package/dist/shared/effort-levels.js +33 -0
- package/dist/shared/effort-levels.js.map +1 -0
- package/dist/shared/environment-home.d.ts +3 -0
- package/dist/shared/environment-home.d.ts.map +1 -0
- package/dist/shared/environment-home.js +7 -0
- package/dist/shared/environment-home.js.map +1 -0
- package/dist/shared/environment.d.ts +8 -0
- package/dist/shared/environment.d.ts.map +1 -0
- package/dist/shared/environment.js +48 -0
- package/dist/shared/environment.js.map +1 -0
- package/dist/shared/executable/diagnostics.d.ts +63 -0
- package/dist/shared/executable/diagnostics.d.ts.map +1 -0
- package/dist/shared/executable/diagnostics.js +107 -0
- package/dist/shared/executable/diagnostics.js.map +1 -0
- package/dist/shared/executable/environment-marker.d.ts +21 -0
- package/dist/shared/executable/environment-marker.d.ts.map +1 -0
- package/dist/shared/executable/environment-marker.js +137 -0
- package/dist/shared/executable/environment-marker.js.map +1 -0
- package/dist/shared/executable/host-watchdog.d.ts +22 -0
- package/dist/shared/executable/host-watchdog.d.ts.map +1 -0
- package/dist/shared/executable/host-watchdog.js +89 -0
- package/dist/shared/executable/host-watchdog.js.map +1 -0
- package/dist/shared/executable/index.d.ts +10 -0
- package/dist/shared/executable/index.d.ts.map +1 -0
- package/dist/shared/executable/index.js +8 -0
- package/dist/shared/executable/index.js.map +1 -0
- package/dist/shared/executable/isolated.d.ts +24 -0
- package/dist/shared/executable/isolated.d.ts.map +1 -0
- package/dist/shared/executable/isolated.js +83 -0
- package/dist/shared/executable/isolated.js.map +1 -0
- package/dist/shared/executable/node-eval.d.ts +10 -0
- package/dist/shared/executable/node-eval.d.ts.map +1 -0
- package/dist/shared/executable/node-eval.js +17 -0
- package/dist/shared/executable/node-eval.js.map +1 -0
- package/dist/shared/executable/node-script.d.ts +53 -0
- package/dist/shared/executable/node-script.d.ts.map +1 -0
- package/dist/shared/executable/node-script.js +131 -0
- package/dist/shared/executable/node-script.js.map +1 -0
- package/dist/shared/executable/ownership.d.ts +26 -0
- package/dist/shared/executable/ownership.d.ts.map +1 -0
- package/dist/shared/executable/ownership.js +147 -0
- package/dist/shared/executable/ownership.js.map +1 -0
- package/dist/shared/executable/pipe-close.d.ts +40 -0
- package/dist/shared/executable/pipe-close.d.ts.map +1 -0
- package/dist/shared/executable/pipe-close.js +171 -0
- package/dist/shared/executable/pipe-close.js.map +1 -0
- package/dist/shared/executable/probe-cleanup.d.ts +8 -0
- package/dist/shared/executable/probe-cleanup.d.ts.map +1 -0
- package/dist/shared/executable/probe-cleanup.js +96 -0
- package/dist/shared/executable/probe-cleanup.js.map +1 -0
- package/dist/shared/executable/process-cancellation.d.ts +14 -0
- package/dist/shared/executable/process-cancellation.d.ts.map +1 -0
- package/dist/shared/executable/process-cancellation.js +25 -0
- package/dist/shared/executable/process-cancellation.js.map +1 -0
- package/dist/shared/executable/process-cleanup-diagnostics.d.ts +57 -0
- package/dist/shared/executable/process-cleanup-diagnostics.d.ts.map +1 -0
- package/dist/shared/executable/process-cleanup-diagnostics.js +36 -0
- package/dist/shared/executable/process-cleanup-diagnostics.js.map +1 -0
- package/dist/shared/executable/process-cleanup.d.ts +14 -0
- package/dist/shared/executable/process-cleanup.d.ts.map +1 -0
- package/dist/shared/executable/process-cleanup.js +175 -0
- package/dist/shared/executable/process-cleanup.js.map +1 -0
- package/dist/shared/executable/process-resources.d.ts +11 -0
- package/dist/shared/executable/process-resources.d.ts.map +1 -0
- package/dist/shared/executable/process-resources.js +139 -0
- package/dist/shared/executable/process-resources.js.map +1 -0
- package/dist/shared/executable/process-shutdown.d.ts +22 -0
- package/dist/shared/executable/process-shutdown.d.ts.map +1 -0
- package/dist/shared/executable/process-shutdown.js +224 -0
- package/dist/shared/executable/process-shutdown.js.map +1 -0
- package/dist/shared/executable/process-signals.d.ts +43 -0
- package/dist/shared/executable/process-signals.d.ts.map +1 -0
- package/dist/shared/executable/process-signals.js +74 -0
- package/dist/shared/executable/process-signals.js.map +1 -0
- package/dist/shared/executable/process-table-async.d.ts +20 -0
- package/dist/shared/executable/process-table-async.d.ts.map +1 -0
- package/dist/shared/executable/process-table-async.js +137 -0
- package/dist/shared/executable/process-table-async.js.map +1 -0
- package/dist/shared/executable/process-table-budget.d.ts +6 -0
- package/dist/shared/executable/process-table-budget.d.ts.map +1 -0
- package/dist/shared/executable/process-table-budget.js +41 -0
- package/dist/shared/executable/process-table-budget.js.map +1 -0
- package/dist/shared/executable/process-table-command.d.ts +9 -0
- package/dist/shared/executable/process-table-command.d.ts.map +1 -0
- package/dist/shared/executable/process-table-command.js +83 -0
- package/dist/shared/executable/process-table-command.js.map +1 -0
- package/dist/shared/executable/process-table-preparation.d.ts +14 -0
- package/dist/shared/executable/process-table-preparation.d.ts.map +1 -0
- package/dist/shared/executable/process-table-preparation.js +19 -0
- package/dist/shared/executable/process-table-preparation.js.map +1 -0
- package/dist/shared/executable/process-timing.d.ts +50 -0
- package/dist/shared/executable/process-timing.d.ts.map +1 -0
- package/dist/shared/executable/process-timing.js +21 -0
- package/dist/shared/executable/process-timing.js.map +1 -0
- package/dist/shared/executable/process-tree.d.ts +76 -0
- package/dist/shared/executable/process-tree.d.ts.map +1 -0
- package/dist/shared/executable/process-tree.js +284 -0
- package/dist/shared/executable/process-tree.js.map +1 -0
- package/dist/shared/executable/process-turn-scope.d.ts +26 -0
- package/dist/shared/executable/process-turn-scope.d.ts.map +1 -0
- package/dist/shared/executable/process-turn-scope.js +70 -0
- package/dist/shared/executable/process-turn-scope.js.map +1 -0
- package/dist/shared/executable/process.d.ts +90 -0
- package/dist/shared/executable/process.d.ts.map +1 -0
- package/dist/shared/executable/process.js +168 -0
- package/dist/shared/executable/process.js.map +1 -0
- package/dist/shared/executable/query.d.ts +17 -0
- package/dist/shared/executable/query.d.ts.map +1 -0
- package/dist/shared/executable/query.js +79 -0
- package/dist/shared/executable/query.js.map +1 -0
- package/dist/shared/executable/resolve.d.ts +10 -0
- package/dist/shared/executable/resolve.d.ts.map +1 -0
- package/dist/shared/executable/resolve.js +28 -0
- package/dist/shared/executable/resolve.js.map +1 -0
- package/dist/shared/executable/run.d.ts +25 -0
- package/dist/shared/executable/run.d.ts.map +1 -0
- package/dist/shared/executable/run.js +178 -0
- package/dist/shared/executable/run.js.map +1 -0
- package/dist/shared/executable/script-terminal.d.ts +92 -0
- package/dist/shared/executable/script-terminal.d.ts.map +1 -0
- package/dist/shared/executable/script-terminal.js +331 -0
- package/dist/shared/executable/script-terminal.js.map +1 -0
- package/dist/shared/executable/version.d.ts +9 -0
- package/dist/shared/executable/version.d.ts.map +1 -0
- package/dist/shared/executable/version.js +20 -0
- package/dist/shared/executable/version.js.map +1 -0
- package/dist/shared/executable/windows-shim.d.ts +46 -0
- package/dist/shared/executable/windows-shim.d.ts.map +1 -0
- package/dist/shared/executable/windows-shim.js +188 -0
- package/dist/shared/executable/windows-shim.js.map +1 -0
- package/dist/shared/failure-class.d.ts +39 -0
- package/dist/shared/failure-class.d.ts.map +1 -0
- package/dist/shared/failure-class.js +122 -0
- package/dist/shared/failure-class.js.map +1 -0
- package/dist/shared/held-input.d.ts +24 -0
- package/dist/shared/held-input.d.ts.map +1 -0
- package/dist/shared/held-input.js +33 -0
- package/dist/shared/held-input.js.map +1 -0
- package/dist/shared/input-images.d.ts +23 -0
- package/dist/shared/input-images.d.ts.map +1 -0
- package/dist/shared/input-images.js +60 -0
- package/dist/shared/input-images.js.map +1 -0
- package/dist/shared/install-npm.d.ts +14 -0
- package/dist/shared/install-npm.d.ts.map +1 -0
- package/dist/shared/install-npm.js +81 -0
- package/dist/shared/install-npm.js.map +1 -0
- package/dist/shared/install.d.ts +73 -0
- package/dist/shared/install.d.ts.map +1 -0
- package/dist/shared/install.js +181 -0
- package/dist/shared/install.js.map +1 -0
- package/dist/shared/installation.d.ts +42 -0
- package/dist/shared/installation.d.ts.map +1 -0
- package/dist/shared/installation.js +232 -0
- package/dist/shared/installation.js.map +1 -0
- package/dist/shared/instant.d.ts +4 -0
- package/dist/shared/instant.d.ts.map +1 -0
- package/dist/shared/instant.js +4 -0
- package/dist/shared/instant.js.map +1 -0
- package/dist/shared/inventory.d.ts +25 -0
- package/dist/shared/inventory.d.ts.map +1 -0
- package/dist/shared/inventory.js +56 -0
- package/dist/shared/inventory.js.map +1 -0
- package/dist/shared/json.d.ts +12 -0
- package/dist/shared/json.d.ts.map +1 -0
- package/dist/shared/json.js +44 -0
- package/dist/shared/json.js.map +1 -0
- package/dist/shared/lazy.d.ts +8 -0
- package/dist/shared/lazy.d.ts.map +1 -0
- package/dist/shared/lazy.js +27 -0
- package/dist/shared/lazy.js.map +1 -0
- package/dist/shared/listing-cwd.d.ts +4 -0
- package/dist/shared/listing-cwd.d.ts.map +1 -0
- package/dist/shared/listing-cwd.js +6 -0
- package/dist/shared/listing-cwd.js.map +1 -0
- package/dist/shared/login.d.ts +97 -0
- package/dist/shared/login.d.ts.map +1 -0
- package/dist/shared/login.js +207 -0
- package/dist/shared/login.js.map +1 -0
- package/dist/shared/logout.d.ts +64 -0
- package/dist/shared/logout.d.ts.map +1 -0
- package/dist/shared/logout.js +127 -0
- package/dist/shared/logout.js.map +1 -0
- package/dist/shared/manual-compaction.d.ts +40 -0
- package/dist/shared/manual-compaction.d.ts.map +1 -0
- package/dist/shared/manual-compaction.js +139 -0
- package/dist/shared/manual-compaction.js.map +1 -0
- package/dist/shared/mcp-servers.d.ts +37 -0
- package/dist/shared/mcp-servers.d.ts.map +1 -0
- package/dist/shared/mcp-servers.js +74 -0
- package/dist/shared/mcp-servers.js.map +1 -0
- package/dist/shared/native-error.d.ts +7 -0
- package/dist/shared/native-error.d.ts.map +1 -0
- package/dist/shared/native-error.js +20 -0
- package/dist/shared/native-error.js.map +1 -0
- package/dist/shared/orientation/budget.d.ts +12 -0
- package/dist/shared/orientation/budget.d.ts.map +1 -0
- package/dist/shared/orientation/budget.js +65 -0
- package/dist/shared/orientation/budget.js.map +1 -0
- package/dist/shared/orientation/customization.d.ts +9 -0
- package/dist/shared/orientation/customization.d.ts.map +1 -0
- package/dist/shared/orientation/customization.js +63 -0
- package/dist/shared/orientation/customization.js.map +1 -0
- package/dist/shared/orientation/index.d.ts +5 -0
- package/dist/shared/orientation/index.d.ts.map +1 -0
- package/dist/shared/orientation/index.js +97 -0
- package/dist/shared/orientation/index.js.map +1 -0
- package/dist/shared/orientation/slots.d.ts +6 -0
- package/dist/shared/orientation/slots.d.ts.map +1 -0
- package/dist/shared/orientation/slots.js +26 -0
- package/dist/shared/orientation/slots.js.map +1 -0
- package/dist/shared/owned-resource-store.d.ts +108 -0
- package/dist/shared/owned-resource-store.d.ts.map +1 -0
- package/dist/shared/owned-resource-store.js +794 -0
- package/dist/shared/owned-resource-store.js.map +1 -0
- package/dist/shared/owned-resource.d.ts +44 -0
- package/dist/shared/owned-resource.d.ts.map +1 -0
- package/dist/shared/owned-resource.js +74 -0
- package/dist/shared/owned-resource.js.map +1 -0
- package/dist/shared/private-temp.d.ts +10 -0
- package/dist/shared/private-temp.d.ts.map +1 -0
- package/dist/shared/private-temp.js +78 -0
- package/dist/shared/private-temp.js.map +1 -0
- package/dist/shared/process-pool.d.ts +37 -0
- package/dist/shared/process-pool.d.ts.map +1 -0
- package/dist/shared/process-pool.js +118 -0
- package/dist/shared/process-pool.js.map +1 -0
- package/dist/shared/process-session.d.ts +12 -0
- package/dist/shared/process-session.d.ts.map +1 -0
- package/dist/shared/process-session.js +102 -0
- package/dist/shared/process-session.js.map +1 -0
- package/dist/shared/record-retention.d.ts +10 -0
- package/dist/shared/record-retention.d.ts.map +1 -0
- package/dist/shared/record-retention.js +66 -0
- package/dist/shared/record-retention.js.map +1 -0
- package/dist/shared/redact-text.d.ts +3 -0
- package/dist/shared/redact-text.d.ts.map +1 -0
- package/dist/shared/redact-text.js +71 -0
- package/dist/shared/redact-text.js.map +1 -0
- package/dist/shared/refuse-environment.d.ts +4 -0
- package/dist/shared/refuse-environment.d.ts.map +1 -0
- package/dist/shared/refuse-environment.js +8 -0
- package/dist/shared/refuse-environment.js.map +1 -0
- package/dist/shared/same-directory.d.ts +3 -0
- package/dist/shared/same-directory.d.ts.map +1 -0
- package/dist/shared/same-directory.js +23 -0
- package/dist/shared/same-directory.js.map +1 -0
- package/dist/shared/seal-session.d.ts +19 -0
- package/dist/shared/seal-session.d.ts.map +1 -0
- package/dist/shared/seal-session.js +122 -0
- package/dist/shared/seal-session.js.map +1 -0
- package/dist/shared/semver.d.ts +10 -0
- package/dist/shared/semver.d.ts.map +1 -0
- package/dist/shared/semver.js +46 -0
- package/dist/shared/semver.js.map +1 -0
- package/dist/shared/session-credentials.d.ts +13 -0
- package/dist/shared/session-credentials.d.ts.map +1 -0
- package/dist/shared/session-credentials.js +67 -0
- package/dist/shared/session-credentials.js.map +1 -0
- package/dist/shared/session-kernel.d.ts +89 -0
- package/dist/shared/session-kernel.d.ts.map +1 -0
- package/dist/shared/session-kernel.js +184 -0
- package/dist/shared/session-kernel.js.map +1 -0
- package/dist/shared/session-links.d.ts +7 -0
- package/dist/shared/session-links.d.ts.map +1 -0
- package/dist/shared/session-links.js +13 -0
- package/dist/shared/session-links.js.map +1 -0
- package/dist/shared/session-open.d.ts +24 -0
- package/dist/shared/session-open.d.ts.map +1 -0
- package/dist/shared/session-open.js +272 -0
- package/dist/shared/session-open.js.map +1 -0
- package/dist/shared/session-options.d.ts +27 -0
- package/dist/shared/session-options.d.ts.map +1 -0
- package/dist/shared/session-options.js +96 -0
- package/dist/shared/session-options.js.map +1 -0
- package/dist/shared/shell-environment-capture.d.ts +8 -0
- package/dist/shared/shell-environment-capture.d.ts.map +1 -0
- package/dist/shared/shell-environment-capture.js +10 -0
- package/dist/shared/shell-environment-capture.js.map +1 -0
- package/dist/shared/shell-environment.d.ts +8 -0
- package/dist/shared/shell-environment.d.ts.map +1 -0
- package/dist/shared/shell-environment.js +183 -0
- package/dist/shared/shell-environment.js.map +1 -0
- package/dist/shared/stream-json/compaction.d.ts +14 -0
- package/dist/shared/stream-json/compaction.d.ts.map +1 -0
- package/dist/shared/stream-json/compaction.js +27 -0
- package/dist/shared/stream-json/compaction.js.map +1 -0
- package/dist/shared/stream-json/content.d.ts +28 -0
- package/dist/shared/stream-json/content.d.ts.map +1 -0
- package/dist/shared/stream-json/content.js +166 -0
- package/dist/shared/stream-json/content.js.map +1 -0
- package/dist/shared/stream-json/held-input.d.ts +22 -0
- package/dist/shared/stream-json/held-input.d.ts.map +1 -0
- package/dist/shared/stream-json/held-input.js +37 -0
- package/dist/shared/stream-json/held-input.js.map +1 -0
- package/dist/shared/stream-json/input-lifecycle.d.ts +24 -0
- package/dist/shared/stream-json/input-lifecycle.d.ts.map +1 -0
- package/dist/shared/stream-json/input-lifecycle.js +85 -0
- package/dist/shared/stream-json/input-lifecycle.js.map +1 -0
- package/dist/shared/stream-json/permission.d.ts +6 -0
- package/dist/shared/stream-json/permission.d.ts.map +1 -0
- package/dist/shared/stream-json/permission.js +12 -0
- package/dist/shared/stream-json/permission.js.map +1 -0
- package/dist/shared/stream-json/profile.d.ts +77 -0
- package/dist/shared/stream-json/profile.d.ts.map +1 -0
- package/dist/shared/stream-json/profile.js +2 -0
- package/dist/shared/stream-json/profile.js.map +1 -0
- package/dist/shared/stream-json/projection.d.ts +28 -0
- package/dist/shared/stream-json/projection.d.ts.map +1 -0
- package/dist/shared/stream-json/projection.js +151 -0
- package/dist/shared/stream-json/projection.js.map +1 -0
- package/dist/shared/stream-json/result-readback.d.ts +15 -0
- package/dist/shared/stream-json/result-readback.d.ts.map +1 -0
- package/dist/shared/stream-json/result-readback.js +74 -0
- package/dist/shared/stream-json/result-readback.js.map +1 -0
- package/dist/shared/stream-json/session.d.ts +9 -0
- package/dist/shared/stream-json/session.d.ts.map +1 -0
- package/dist/shared/stream-json/session.js +367 -0
- package/dist/shared/stream-json/session.js.map +1 -0
- package/dist/shared/stream-json/state.d.ts +37 -0
- package/dist/shared/stream-json/state.d.ts.map +1 -0
- package/dist/shared/stream-json/state.js +18 -0
- package/dist/shared/stream-json/state.js.map +1 -0
- package/dist/shared/stream-json/task-control.d.ts +11 -0
- package/dist/shared/stream-json/task-control.d.ts.map +1 -0
- package/dist/shared/stream-json/task-control.js +55 -0
- package/dist/shared/stream-json/task-control.js.map +1 -0
- package/dist/shared/token-redaction.d.ts +3 -0
- package/dist/shared/token-redaction.d.ts.map +1 -0
- package/dist/shared/token-redaction.js +10 -0
- package/dist/shared/token-redaction.js.map +1 -0
- package/dist/shared/token-totals.d.ts +33 -0
- package/dist/shared/token-totals.d.ts.map +1 -0
- package/dist/shared/token-totals.js +61 -0
- package/dist/shared/token-totals.js.map +1 -0
- package/dist/shared/tool-output.d.ts +17 -0
- package/dist/shared/tool-output.d.ts.map +1 -0
- package/dist/shared/tool-output.js +43 -0
- package/dist/shared/tool-output.js.map +1 -0
- package/dist/shared/update.d.ts +62 -0
- package/dist/shared/update.d.ts.map +1 -0
- package/dist/shared/update.js +144 -0
- package/dist/shared/update.js.map +1 -0
- package/dist/shared/usage-environment.d.ts +9 -0
- package/dist/shared/usage-environment.d.ts.map +1 -0
- package/dist/shared/usage-environment.js +26 -0
- package/dist/shared/usage-environment.js.map +1 -0
- package/dist/testing/index.d.ts +9 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +7 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/scripted-runtime.d.ts +72 -0
- package/dist/testing/scripted-runtime.d.ts.map +1 -0
- package/dist/testing/scripted-runtime.js +233 -0
- package/dist/testing/scripted-runtime.js.map +1 -0
- package/dist/testing/scripted-tasks.d.ts +29 -0
- package/dist/testing/scripted-tasks.d.ts.map +1 -0
- package/dist/testing/scripted-tasks.js +39 -0
- package/dist/testing/scripted-tasks.js.map +1 -0
- package/dist/voyage.d.ts +23 -0
- package/dist/voyage.d.ts.map +1 -0
- package/dist/voyage.js +51 -0
- package/dist/voyage.js.map +1 -0
- package/package.json +122 -3
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { appendCleanupFailure, cleanupFailureReason } from "../executable/process-cleanup.js";
|
|
2
|
+
import { sessionEnvironment } from "../environment.js";
|
|
3
|
+
import { manualCompaction } from "../manual-compaction.js";
|
|
4
|
+
import { processSessionLifecycle } from "../process-session.js";
|
|
5
|
+
import { withSessionCredentials } from "../session-credentials.js";
|
|
6
|
+
import { createAcpClientApp } from "./client-app.js";
|
|
7
|
+
import { acpMcpOpenGuard, closeAcpSession, openAcpSession, } from "./profile.js";
|
|
8
|
+
import { acpLaunchArgs } from "./launch-args.js";
|
|
9
|
+
import { startAcpProcess } from "./process.js";
|
|
10
|
+
import { AcpError, acpProcessExitedError } from "./errors.js";
|
|
11
|
+
import { createAcpTurns } from "./turns.js";
|
|
12
|
+
import { acpTakesImages } from "./prompt.js";
|
|
13
|
+
import { createAcpSessionState } from "./session-state.js";
|
|
14
|
+
import { acpTurnTerminals } from "./turn-terminals.js";
|
|
15
|
+
import { sendAcpSteerRequest } from "./steer-request.js";
|
|
16
|
+
import { DEFAULT_STOP_GRACE_MS, SessionDisposeError } from "../../contracts/cleanup.js";
|
|
17
|
+
import { lineProcessResource, sharedPlacementResource } from "../owned-resource.js";
|
|
18
|
+
export { createAcpSessionState } from "./session-state.js";
|
|
19
|
+
/*
|
|
20
|
+
* ACP mapping onto the record stream (profiles carry the vendor bits):
|
|
21
|
+
* - every routed `session/update` is ONE event record under its native session
|
|
22
|
+
* id. Shared connections first require explicit native ownership proof.
|
|
23
|
+
* - listed vendor notifications are recorded verbatim except credential redaction.
|
|
24
|
+
* - runtime→app requests (permission, terminal) are toApp request records;
|
|
25
|
+
* oar's automatic answer is the matching `answered` response (client-app.ts).
|
|
26
|
+
* - prompt / steer / queue / withdraw / abort / dispose are toRuntime requests answered
|
|
27
|
+
* accepted-or-rejected; the turn's end is the runtime's own prompt answer
|
|
28
|
+
* (turns.ts) or the process exit oar observed (`exited` response).
|
|
29
|
+
*/
|
|
30
|
+
export function acpSession(profile, runtimeId = "acp") {
|
|
31
|
+
return withSessionCredentials(async (installation, options, credentials, _context, scope) => {
|
|
32
|
+
if (installation.via !== "executable") {
|
|
33
|
+
throw new Error("ACP runtimes require an executable installation");
|
|
34
|
+
}
|
|
35
|
+
profile.validateOptions?.(options);
|
|
36
|
+
scope.checkpoint();
|
|
37
|
+
// SessionOptions.mcpServers go out in the open request (mcp-servers.ts):
|
|
38
|
+
// a list with an empty or repeated name fails before anything starts,
|
|
39
|
+
// and an open that fails reports no credential they carry.
|
|
40
|
+
const withoutCredentials = acpMcpOpenGuard(options.mcpServers, credentials.redact);
|
|
41
|
+
const args = acpLaunchArgs(profile, options);
|
|
42
|
+
const environment = sessionEnvironment(options.env);
|
|
43
|
+
const initializeStartedAt = profile.acquireStartup === undefined ? undefined : performance.now();
|
|
44
|
+
const releaseStartup = profile.acquireStartup === undefined ? undefined : await profile.acquireStartup(options, profile.initializeTimeoutMs ?? 60_000);
|
|
45
|
+
try {
|
|
46
|
+
const state = createAcpSessionState(profile, options, environment, undefined, () => runtime.pid);
|
|
47
|
+
const { terminalHost, recorder, opening } = state;
|
|
48
|
+
const client = createAcpClientApp(terminalHost, state.hooks);
|
|
49
|
+
const runtime = startAcpProcess(installation.command, args, client, { cwd: options.cwd, env: environment, redact: credentials.redact, opening });
|
|
50
|
+
const ownedProcess = { ...(runtime.pid === undefined ? {} : { pid: runtime.pid }), kill: (graceMs) => { runtime.kill(graceMs); }, nativeExited: runtime.nativeExited, exited: runtime.exited,
|
|
51
|
+
cleanupReason: () => cleanupFailureReason(runtime.diagnostics().cleanup) };
|
|
52
|
+
scope.own(lineProcessResource({ runtimeId: scope.runtimeId, sessionId: options.resume ?? "new", placement: scope.placement, process: ownedProcess }));
|
|
53
|
+
// Process exit can precede the SDK's failed-open settlement.
|
|
54
|
+
// oxlint-disable-next-line promise/prefer-await-to-then -- Observe exit independently of the opening RPC.
|
|
55
|
+
if (releaseStartup !== undefined) {
|
|
56
|
+
void runtime.exited.then(releaseStartup, releaseStartup);
|
|
57
|
+
}
|
|
58
|
+
const opened = await scope.step(openAcpSession(runtime, profile, options, (step) => {
|
|
59
|
+
if (step.method === "initialize") {
|
|
60
|
+
releaseStartup?.();
|
|
61
|
+
}
|
|
62
|
+
recorder.step(step.method, step.response);
|
|
63
|
+
}, state.configUpdates, initializeStartedAt)).catch(async (error) => {
|
|
64
|
+
releaseStartup?.();
|
|
65
|
+
runtime.kill();
|
|
66
|
+
await terminalHost.dispose();
|
|
67
|
+
const failure = error instanceof AcpError && error.kind === "process_exited"
|
|
68
|
+
? acpProcessExitedError(error.exitCode, runtime.diagnostics(), credentials.redact) : error;
|
|
69
|
+
const reason = cleanupFailureReason(runtime.diagnostics().cleanup);
|
|
70
|
+
throw withoutCredentials(appendCleanupFailure(failure, reason));
|
|
71
|
+
});
|
|
72
|
+
// The native session id is the opening's identity once the runtime answered.
|
|
73
|
+
scope.own(lineProcessResource({ runtimeId: scope.runtimeId, sessionId: opened.sessionId, placement: scope.placement, process: ownedProcess }));
|
|
74
|
+
// Do not construct a usable session until the host owns the final native identity.
|
|
75
|
+
await scope.step(Promise.resolve());
|
|
76
|
+
scope.checkpoint();
|
|
77
|
+
return finishAcpSession(profile, options, credentials, runtime, opened, state, undefined, scope);
|
|
78
|
+
}
|
|
79
|
+
finally {
|
|
80
|
+
releaseStartup?.();
|
|
81
|
+
}
|
|
82
|
+
}, "isolated", runtimeId);
|
|
83
|
+
}
|
|
84
|
+
/** One session layer, irrespective of whether its connection has peers. */
|
|
85
|
+
export function finishAcpSession(profile, options, credentials, runtime, opened, sessionState, shared, openScope) {
|
|
86
|
+
const { terminalHost, recorder, usageGate, tokenUsage, nativeTurns } = sessionState;
|
|
87
|
+
const kernel = credentials.kernel(opened.sessionId, shared?.redact);
|
|
88
|
+
const capabilities = { ...profile.capabilities, images: profile.capabilities.images ?? acpTakesImages(opened.initialized) };
|
|
89
|
+
const ownership = shared;
|
|
90
|
+
let compaction = null;
|
|
91
|
+
const promptUsage = (response) => tokenUsage.prompt(response, opened.initialized);
|
|
92
|
+
const turns = createAcpTurns({ operationBusy: () => compaction?.busy() === true, kernel, runtime, profile, usageGate, capabilities, promptMeta: profile.promptMeta?.(options), promptUsage,
|
|
93
|
+
...(nativeTurns === undefined ? {} : { native: { promptParams: (inputId) => ({ _meta: nativeTurns.name(inputId) }), afterClose: nativeTurns.afterOarTurn } }),
|
|
94
|
+
...(ownership === undefined ? {} : { fallback: async (request) => { ownership.stopRequests(); await lifecycle?.abortFallback(request); } }),
|
|
95
|
+
});
|
|
96
|
+
// The runtime's own turn is the active turn: prompt is busy, held input waits, steer and abort reach it.
|
|
97
|
+
nativeTurns?.bind({ active: () => turns.active(), adopt: () => turns.beginOperation(null), release: (turn) => {
|
|
98
|
+
const active = turns.active();
|
|
99
|
+
if (active === turn) {
|
|
100
|
+
turns.finishOperation(active);
|
|
101
|
+
}
|
|
102
|
+
} });
|
|
103
|
+
// Bound only now: frames queued since the open answer may start a native turn, which needs the driver above.
|
|
104
|
+
recorder.bind(kernel);
|
|
105
|
+
const turnTerminals = acpTurnTerminals(options.endTurnProcessesOnAbort === true, kernel, terminalHost, () => turns.active());
|
|
106
|
+
const createCompaction = profile.compaction;
|
|
107
|
+
if (createCompaction !== undefined) {
|
|
108
|
+
compaction = manualCompaction(kernel, {
|
|
109
|
+
busy: () => turns.active() !== null || turns.queued() || turns.pendingCancellation() !== null,
|
|
110
|
+
busyReason: "Wait for native input and cancellation to finish before compacting",
|
|
111
|
+
settledBy: "native_response",
|
|
112
|
+
released: () => { queueMicrotask(() => { turns.drain(); }); },
|
|
113
|
+
create: () => {
|
|
114
|
+
const operation = createCompaction(kernel, runtime, promptUsage);
|
|
115
|
+
let state = null;
|
|
116
|
+
const finish = () => { if (state !== null) {
|
|
117
|
+
turns.finishOperation(state);
|
|
118
|
+
state = null;
|
|
119
|
+
} };
|
|
120
|
+
return {
|
|
121
|
+
observe(frame) {
|
|
122
|
+
const result = operation.observe(frame);
|
|
123
|
+
if (result !== null) {
|
|
124
|
+
finish();
|
|
125
|
+
}
|
|
126
|
+
return result;
|
|
127
|
+
},
|
|
128
|
+
async start(request, reply) {
|
|
129
|
+
state = turns.beginOperation(request);
|
|
130
|
+
try {
|
|
131
|
+
return await operation.start(request, reply);
|
|
132
|
+
}
|
|
133
|
+
finally {
|
|
134
|
+
finish();
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
const disposeTerminals = async () => {
|
|
142
|
+
try {
|
|
143
|
+
await terminalHost.dispose();
|
|
144
|
+
}
|
|
145
|
+
catch (error) {
|
|
146
|
+
kernel.respond("", { kind: "cleanup", result: { kind: "failed", reason: error instanceof Error ? error.message : String(error) } });
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
const observedLease = ownership === undefined ? undefined : { ...ownership.lease, onExit: (listener) => ownership.lease.onExit((code) => {
|
|
150
|
+
listener(code);
|
|
151
|
+
turns.onExit();
|
|
152
|
+
void disposeTerminals();
|
|
153
|
+
}) };
|
|
154
|
+
const lifecycle = observedLease === undefined || ownership === undefined ? undefined : processSessionLifecycle(kernel, observedLease, ownership.cleanup, 5000);
|
|
155
|
+
// oxlint-disable-next-line promise/prefer-await-to-then, promise/always-return -- Exit observation outlives session creation.
|
|
156
|
+
if (ownership === undefined) {
|
|
157
|
+
void runtime.exited.then((code) => {
|
|
158
|
+
void disposeTerminals();
|
|
159
|
+
// An outcome only oar observes: answers our dispose when we caused the
|
|
160
|
+
// exit, stands alone (requestId "") when the runtime died on its own.
|
|
161
|
+
const reason = cleanupFailureReason(runtime.diagnostics().cleanup);
|
|
162
|
+
kernel.processExited(code, reason);
|
|
163
|
+
turns.onExit();
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
// Reachability (exited, disposed) is the kernel's gate, read off the
|
|
167
|
+
// stream; the adapter decides only the runtime-specific answers (busy,
|
|
168
|
+
// not_steerable). `runtime.closed` flips synchronously on the process's
|
|
169
|
+
// exit, one microtask before the observer above records the `exited`
|
|
170
|
+
// response: a control landing in that window would otherwise be decided
|
|
171
|
+
// here (rejected "ACP process exited") instead of by the gate, so the
|
|
172
|
+
// exit is let land first.
|
|
173
|
+
let controls = Promise.resolve();
|
|
174
|
+
const serial = async (run) => {
|
|
175
|
+
if (ownership === undefined) {
|
|
176
|
+
const value = await run();
|
|
177
|
+
return value;
|
|
178
|
+
}
|
|
179
|
+
const previous = controls;
|
|
180
|
+
const result = (async () => { await previous; const value = await run(); return value; })();
|
|
181
|
+
controls = (async () => { try {
|
|
182
|
+
await result;
|
|
183
|
+
}
|
|
184
|
+
catch { /* One refusal does not poison the next control. */ } })();
|
|
185
|
+
const value = await result;
|
|
186
|
+
return value;
|
|
187
|
+
};
|
|
188
|
+
const control = (body, decide) => serial(async () => {
|
|
189
|
+
const pendingCancellation = turns.pendingCancellation();
|
|
190
|
+
if ((body.kind === "prompt" || body.kind === "steer") && pendingCancellation !== null) {
|
|
191
|
+
try {
|
|
192
|
+
await pendingCancellation;
|
|
193
|
+
}
|
|
194
|
+
catch { /* The abort reports its own failure; later input can still proceed. */ }
|
|
195
|
+
}
|
|
196
|
+
if (runtime.closed && kernel.unreachable() === null) {
|
|
197
|
+
await runtime.exited;
|
|
198
|
+
}
|
|
199
|
+
return kernel.control(body, decide);
|
|
200
|
+
});
|
|
201
|
+
// A profile without a native steer cannot inject, so the session has no `steer`;
|
|
202
|
+
// neither does one whose connection did not advertise its steer request.
|
|
203
|
+
const { steerParams } = profile;
|
|
204
|
+
const steerRequest = profile.steerRequestAdvertised?.(opened.initialized) === false ? undefined : profile.steerRequest;
|
|
205
|
+
const steer = steerParams === undefined && steerRequest === undefined
|
|
206
|
+
? {}
|
|
207
|
+
: {
|
|
208
|
+
steer: (input, inputOptions) => control({ kind: "steer", input, ...inputOptions }, (request) => {
|
|
209
|
+
if (compaction?.busy() === true) {
|
|
210
|
+
return { kind: "rejected", code: "busy", reason: "Native compaction is still running" };
|
|
211
|
+
}
|
|
212
|
+
// The turn running now, OAR's or the runtime's own, must still be the one running when the RPC goes out.
|
|
213
|
+
const target = turns.active();
|
|
214
|
+
if (steerRequest !== undefined) {
|
|
215
|
+
return sendAcpSteerRequest({ kernel, runtime, profile, capabilities, running: () => target !== null && turns.active() === target && !target.abortRequested }, request, input, inputOptions);
|
|
216
|
+
}
|
|
217
|
+
const state = turns.active();
|
|
218
|
+
return state === null || steerParams === undefined
|
|
219
|
+
? { kind: "rejected", code: "no_active_turn", reason: "not_steerable: no active turn" }
|
|
220
|
+
: turns.steer(state, input, inputOptions, steerParams(input));
|
|
221
|
+
}),
|
|
222
|
+
};
|
|
223
|
+
return credentials.seal({
|
|
224
|
+
id: kernel.sessionId,
|
|
225
|
+
capabilities,
|
|
226
|
+
prompt: (input, inputOptions) => control({ kind: "prompt", input, ...inputOptions }, (request) => (turns.active() === null && !turns.queued() && compaction?.busy() !== true ? turns.begin(request, input, inputOptions?.images) : { kind: "rejected", code: "busy", reason: "busy" })),
|
|
227
|
+
...steer,
|
|
228
|
+
...(compaction === null ? {} : { compact: compaction.compact }),
|
|
229
|
+
queue: (input, inputOptions) => control({ kind: "queue", input, ...inputOptions }, (request) => turns.hold(input, inputOptions?.images, inputOptions?.inputId, request)),
|
|
230
|
+
// The queue is held here (turns.ts), not by the vendor: an entry can be taken back until the drain sends it.
|
|
231
|
+
withdraw: (inputId) => control({ kind: "withdraw", inputId }, () => turns.withdraw(inputId)),
|
|
232
|
+
abort: () => control({ kind: "abort" }, async (request) => {
|
|
233
|
+
const state = turns.active();
|
|
234
|
+
if (state === null) {
|
|
235
|
+
return { kind: "rejected", code: "no_active_turn", reason: "no active turn" };
|
|
236
|
+
}
|
|
237
|
+
const claim = turnTerminals.aborting(state, request);
|
|
238
|
+
const answer = await turns.abort(state, request);
|
|
239
|
+
if (answer.kind === "accepted") {
|
|
240
|
+
claim.accepted();
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
claim.refused();
|
|
244
|
+
}
|
|
245
|
+
return answer;
|
|
246
|
+
}),
|
|
247
|
+
rawEvents: (observer, cursor) => kernel.rawEvents(observer, cursor),
|
|
248
|
+
records: () => kernel.records(),
|
|
249
|
+
graph: () => kernel.graph(),
|
|
250
|
+
resources: ownership?.lease.resources ?? runtime.resources,
|
|
251
|
+
dispose: () => serial(async () => {
|
|
252
|
+
const stopGraceMs = openScope?.stopGraceMs ?? DEFAULT_STOP_GRACE_MS;
|
|
253
|
+
const resource = shared === undefined
|
|
254
|
+
? lineProcessResource({ runtimeId: openScope?.runtimeId ?? "acp", sessionId: opened.sessionId, placement: openScope?.placement ?? "isolated",
|
|
255
|
+
process: { ...(runtime.pid === undefined ? {} : { pid: runtime.pid }), kill: (graceMs) => { runtime.kill(graceMs); }, nativeExited: runtime.nativeExited, exited: runtime.exited,
|
|
256
|
+
cleanupReason: () => cleanupFailureReason(runtime.diagnostics().cleanup) } })
|
|
257
|
+
: shared.resource ?? sharedPlacementResource({ runtimeId: openScope?.runtimeId ?? "acp", sessionId: opened.sessionId, ...(runtime.pid === undefined ? {} : { pid: runtime.pid }) });
|
|
258
|
+
if (lifecycle !== undefined && ownership !== undefined) {
|
|
259
|
+
ownership.stopRequests();
|
|
260
|
+
const disposal = lifecycle.dispose();
|
|
261
|
+
turns.onExit();
|
|
262
|
+
await disposal;
|
|
263
|
+
ownership.detach();
|
|
264
|
+
// A released lease is not exit evidence; the receipt reports that.
|
|
265
|
+
return resource.stop(stopGraceMs);
|
|
266
|
+
}
|
|
267
|
+
await kernel.dispose(async () => {
|
|
268
|
+
// Native cancel can orphan tools before exit, including detached POSIX tools.
|
|
269
|
+
await runtime.prepareShutdown();
|
|
270
|
+
const state = turns.active();
|
|
271
|
+
if (state !== null && !runtime.closed) {
|
|
272
|
+
if (!state.abortRequested) {
|
|
273
|
+
runtime.markNativeStop();
|
|
274
|
+
}
|
|
275
|
+
await turns.abort(state);
|
|
276
|
+
}
|
|
277
|
+
if (opened.supportsClose && !runtime.closed) {
|
|
278
|
+
runtime.markNativeStop();
|
|
279
|
+
await closeAcpSession(runtime, kernel.sessionId).catch(() => { });
|
|
280
|
+
}
|
|
281
|
+
const receipt = await resource.stop(stopGraceMs);
|
|
282
|
+
if (receipt.kind !== "completed") {
|
|
283
|
+
throw new SessionDisposeError(receipt);
|
|
284
|
+
}
|
|
285
|
+
await terminalHost.dispose();
|
|
286
|
+
}, () => terminalHost.dispose());
|
|
287
|
+
return resource.stop(stopGraceMs);
|
|
288
|
+
}),
|
|
289
|
+
}, shared?.redact);
|
|
290
|
+
}
|
|
291
|
+
//# sourceMappingURL=session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.js","sources":["../../../src/shared/acp/session.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,m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AAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SessionOptions, StartSession } from "../../contracts/session.js";
|
|
2
|
+
import { type JsonRecord } from "../json.js";
|
|
3
|
+
import { type AcpSessionProfile } from "./profile.js";
|
|
4
|
+
import { type AcpProcess } from "./process.js";
|
|
5
|
+
import { type AcpAssociation, type AcpUnattributed } from "./routing.js";
|
|
6
|
+
/** Evidence-backed vendor choices. This factory alone does not admit a runtime to sharing. */
|
|
7
|
+
export interface AcpSharedOptions {
|
|
8
|
+
/** Launch cwd audit belongs in the runtime page. A differing process cwd creates another pool entry. */
|
|
9
|
+
readonly processCwd: (options: SessionOptions) => string;
|
|
10
|
+
/** Reserve vendor process-lifetime state before any native open. Null reserves it; a reason refuses it. */
|
|
11
|
+
readonly reserveSession?: (runtime: AcpProcess, options: SessionOptions) => Promise<string | null>;
|
|
12
|
+
/** Check the running process before any native open, independently of the installation snapshot. */
|
|
13
|
+
readonly initializationRefusal?: (response: JsonRecord) => string | null;
|
|
14
|
+
/** Only explicit native links; never infer parenthood from a foreign id. */
|
|
15
|
+
readonly associations: (method: string, params: JsonRecord) => readonly AcpAssociation[];
|
|
16
|
+
/** Consistency checks against accepted links. A late claim never grants ownership. */
|
|
17
|
+
readonly associationChecks?: (method: string, params: JsonRecord) => readonly AcpAssociation[];
|
|
18
|
+
readonly sessionId?: (method: string, params: JsonRecord) => string | null;
|
|
19
|
+
/** Per-session native cancel/close, using the vendor's verified protocol. Never kill this process. */
|
|
20
|
+
readonly cleanup: (runtime: AcpProcess, sessionId: string) => Promise<void>;
|
|
21
|
+
/** Redacted connection facts have no session owner and must not be sent to an arbitrary recorder. */
|
|
22
|
+
readonly diagnostic: (entry: AcpUnattributed) => void;
|
|
23
|
+
readonly pending?: {
|
|
24
|
+
readonly maxFrames?: number;
|
|
25
|
+
readonly maxBytes?: number;
|
|
26
|
+
readonly waitMs?: number;
|
|
27
|
+
readonly requestWaitMs?: number;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/** Attempt native cleanup and hosted terminal cleanup independently, retaining both failures. */
|
|
31
|
+
export declare function cleanupAcpOwner(native: () => Promise<void>, terminals: () => Promise<void>, timeoutMs?: number): Promise<void>;
|
|
32
|
+
/** A fresh factory owns a fresh pool. Native runtime definitions opt in only in their own admission PR. */
|
|
33
|
+
export declare function sharedAcpSession(profile: AcpSessionProfile, shared: AcpSharedOptions, runtimeId?: string): StartSession;
|
|
34
|
+
//# sourceMappingURL=shared-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-session.d.ts","sources":["../../../src/shared/acp/shared-session.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAiB,cAAc,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK9F,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAOvD,OAAO,EAA8C,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAIlG,OAAO,EAA4B,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAG3F,8FAA8F;AAC9F,MAAM,WAAW,gBAAgB;IAC/B,wGAAwG;IACxG,QAAQ,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,MAAM,CAAC;IACzD,2GAA2G;IAC3G,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACnG,oGAAoG;IACpG,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,UAAU,KAAK,MAAM,GAAG,IAAI,CAAC;IACzE,4EAA4E;IAC5E,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,KAAK,SAAS,cAAc,EAAE,CAAC;IACzF,sFAAsF;IACtF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,KAAK,SAAS,cAAc,EAAE,CAAC;IAC/F,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,KAAK,MAAM,GAAG,IAAI,CAAC;IAC3E,sGAAsG;IACtG,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5E,qGAAqG;IACrG,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3I;AAED,iGAAiG;AACjG,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,SAAS,SAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAUlI;AAED,2GAA2G;AAC3G,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,gBAAgB,EAAE,SAAS,SAAQ,GAAG,YAAY,CAwJtH"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { UnsupportedOptionError } from "../../contracts/errors.js";
|
|
2
|
+
import { SessionUnavailableError } from "../../contracts/session-unavailable-error.js";
|
|
3
|
+
import { sessionEnvironment } from "../environment.js";
|
|
4
|
+
import { cleanupFailureReason, appendCleanupFailure } from "../executable/process-cleanup.js";
|
|
5
|
+
import { asRecord } from "../json.js";
|
|
6
|
+
import { createProcessPool } from "../process-pool.js";
|
|
7
|
+
import { withSessionCredentials } from "../session-credentials.js";
|
|
8
|
+
import { sharedPlacementResource } from "../owned-resource.js";
|
|
9
|
+
import { createRoutedAcpClientApp } from "./client-app.js";
|
|
10
|
+
import { AcpError, acpProcessExitedError } from "./errors.js";
|
|
11
|
+
import { acpLaunchArgs } from "./launch-args.js";
|
|
12
|
+
import { acpMcpOpenGuard, openInitializedAcpSession } from "./profile.js";
|
|
13
|
+
import { initializeAcpConnection } from "./initialize.js";
|
|
14
|
+
import { acpOpenStep } from "./failure.js";
|
|
15
|
+
import { sharedAcpWire } from "./shared-wire.js";
|
|
16
|
+
import { methods, startAcpProcess } from "./process.js";
|
|
17
|
+
import { createAcpRouting } from "./routing.js";
|
|
18
|
+
import { acpSession, createAcpSessionState, finishAcpSession } from "./session.js";
|
|
19
|
+
/** Attempt native cleanup and hosted terminal cleanup independently, retaining both failures. */
|
|
20
|
+
export async function cleanupAcpOwner(native, terminals, timeoutMs = 4000) {
|
|
21
|
+
const bounded = async (work, name) => {
|
|
22
|
+
const deadline = Promise.withResolvers();
|
|
23
|
+
const timer = setTimeout(() => { deadline.reject(new Error(`${name} cleanup timed out; work may still be running`)); }, timeoutMs);
|
|
24
|
+
try {
|
|
25
|
+
await Promise.race([(async () => { await work(); })(), deadline.promise]);
|
|
26
|
+
}
|
|
27
|
+
finally {
|
|
28
|
+
clearTimeout(timer);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const results = await Promise.allSettled([bounded(native, "native session"), bounded(terminals, "hosted terminals")]);
|
|
32
|
+
const failures = results.flatMap((result) => result.status === "rejected" ? [result.reason instanceof Error ? result.reason.message : String(result.reason)] : []);
|
|
33
|
+
if (failures.length > 0) {
|
|
34
|
+
throw new Error(failures.join("; "));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/** A fresh factory owns a fresh pool. Native runtime definitions opt in only in their own admission PR. */
|
|
38
|
+
export function sharedAcpSession(profile, shared, runtimeId = "acp") {
|
|
39
|
+
const isolated = acpSession(profile, runtimeId);
|
|
40
|
+
const pool = createProcessPool((configuration, retire) => {
|
|
41
|
+
const routing = createAcpRouting({
|
|
42
|
+
associations: shared.associations, diagnostic: shared.diagnostic,
|
|
43
|
+
...(shared.associationChecks === undefined ? {} : { associationChecks: shared.associationChecks }),
|
|
44
|
+
...(shared.sessionId === undefined ? {} : { sessionId: shared.sessionId }), ...shared.pending,
|
|
45
|
+
});
|
|
46
|
+
const app = createRoutedAcpClientApp({
|
|
47
|
+
target: async (method, params, requestId) => {
|
|
48
|
+
const { target, ingress, active } = await routing.request(method, params, requestId);
|
|
49
|
+
return { ...target, active, receivedAt: ingress.receivedAt };
|
|
50
|
+
},
|
|
51
|
+
update: (notification) => { routing.notify(methods.client.session.update, notification, (target, ingress) => { target.hooks.update(notification, ingress.receivedAt); }); },
|
|
52
|
+
extension: (method, params) => { routing.notify(method, params, (target, ingress) => { target.hooks.extension(method, params, ingress.receivedAt, ingress.afterOpen); }); },
|
|
53
|
+
extensionNotifications: profile.extensionNotifications ?? [],
|
|
54
|
+
});
|
|
55
|
+
const wire = sharedAcpWire(routing, profile.extensionNotifications ?? [], (id) => {
|
|
56
|
+
void (async () => {
|
|
57
|
+
try {
|
|
58
|
+
await cleanupAcpOwner(async () => { if (!runtime.closed) {
|
|
59
|
+
await shared.cleanup(runtime, id);
|
|
60
|
+
} }, async () => { });
|
|
61
|
+
routing.diagnostic("cancelled_session_new_cleanup", { sessionId: id, result: { kind: "completed" } }, "retired");
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
routing.diagnostic("cancelled_session_new_cleanup", { sessionId: id, result: { kind: "failed", reason: error instanceof Error ? error.message : String(error) } }, "retired");
|
|
65
|
+
}
|
|
66
|
+
})();
|
|
67
|
+
}, profile.sessionStartTimeoutMs ?? profile.requestTimeoutMs ?? 15_000);
|
|
68
|
+
const runtime = startAcpProcess(configuration.command, configuration.args, app, {
|
|
69
|
+
...(configuration.cwd === undefined ? {} : { cwd: configuration.cwd }),
|
|
70
|
+
env: Object.fromEntries(Object.entries(configuration.env).filter((entry) => entry[1] !== null)),
|
|
71
|
+
redact: routing.redact,
|
|
72
|
+
// Raw shared stderr may carry a peer's MCP credentials; it stays behind the pool redactor.
|
|
73
|
+
inheritStderr: false,
|
|
74
|
+
...wire,
|
|
75
|
+
});
|
|
76
|
+
// A broken transport cannot leave a pool of live controllers awaiting an exit forever.
|
|
77
|
+
let stopping = false;
|
|
78
|
+
const stop = () => {
|
|
79
|
+
if (stopping) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
stopping = true;
|
|
83
|
+
retire();
|
|
84
|
+
wire.close();
|
|
85
|
+
runtime.kill();
|
|
86
|
+
};
|
|
87
|
+
runtime.connection.signal.addEventListener("abort", stop, { once: true });
|
|
88
|
+
if (runtime.connection.signal.aborted) {
|
|
89
|
+
stop();
|
|
90
|
+
}
|
|
91
|
+
// The pool key holds both initialize metadata and declared client features.
|
|
92
|
+
const protocol = asRecord(JSON.parse(configuration.protocol ?? "null"));
|
|
93
|
+
const meta = asRecord(protocol?.initialize) ?? undefined;
|
|
94
|
+
const capabilitiesMeta = asRecord(protocol?.clientCapabilities) ?? undefined;
|
|
95
|
+
let initialized = null;
|
|
96
|
+
const initialize = async () => {
|
|
97
|
+
initialized ??= (async () => {
|
|
98
|
+
try {
|
|
99
|
+
const response = await acpOpenStep(initializeAcpConnection(runtime, { ...profile, initializeMeta: () => meta, clientCapabilitiesMeta: () => capabilitiesMeta }, { cwd: configuration.cwd ?? process.cwd() }, () => { }), "open", profile.openFailure);
|
|
100
|
+
const refusal = shared.initializationRefusal?.(response) ?? null;
|
|
101
|
+
if (refusal !== null) {
|
|
102
|
+
stop();
|
|
103
|
+
await runtime.exited;
|
|
104
|
+
}
|
|
105
|
+
return { response, refusal };
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
stop();
|
|
109
|
+
await runtime.exited;
|
|
110
|
+
throw routing.redactValue(error);
|
|
111
|
+
}
|
|
112
|
+
})();
|
|
113
|
+
const response = await initialized;
|
|
114
|
+
return response;
|
|
115
|
+
};
|
|
116
|
+
void (async () => { await runtime.exited; wire.close(); routing.close(); })();
|
|
117
|
+
return {
|
|
118
|
+
runtime, routing, initialize, exited: runtime.exited, resources: runtime.resources,
|
|
119
|
+
stop: async () => { stop(); await runtime.exited; },
|
|
120
|
+
exitReason: () => cleanupFailureReason(runtime.diagnostics().cleanup),
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
return withSessionCredentials(async (installation, options, credentials, context, scope) => {
|
|
124
|
+
if (installation.via !== "executable") {
|
|
125
|
+
throw new Error("ACP runtimes require an executable installation");
|
|
126
|
+
}
|
|
127
|
+
profile.validateOptions?.(options);
|
|
128
|
+
const withoutCredentials = acpMcpOpenGuard(options.mcpServers, credentials.redact);
|
|
129
|
+
const environment = sessionEnvironment(options.env);
|
|
130
|
+
const lease = await pool.acquire({
|
|
131
|
+
command: installation.command, args: acpLaunchArgs(profile, options),
|
|
132
|
+
env: Object.fromEntries(Object.entries(environment).filter((entry) => entry[1] !== undefined)),
|
|
133
|
+
cwd: shared.processCwd(options), protocol: JSON.stringify({
|
|
134
|
+
initialize: profile.initializeMeta?.(options) ?? null, clientCapabilities: profile.clientCapabilitiesMeta?.(options) ?? null,
|
|
135
|
+
}),
|
|
136
|
+
}, "shared");
|
|
137
|
+
const { runtime, routing, initialize } = lease.process;
|
|
138
|
+
// This opening owns a lease on the pooled process, never the process itself.
|
|
139
|
+
const resource = sharedPlacementResource({ runtimeId, sessionId: options.resume ?? "new", ...(runtime.pid === undefined ? {} : { pid: runtime.pid }) });
|
|
140
|
+
scope.own(resource);
|
|
141
|
+
// Ownership conflicts must not become a directory-policy fallback to another controller.
|
|
142
|
+
let refusal = null;
|
|
143
|
+
try {
|
|
144
|
+
if (options.resume !== undefined && routing.inUse(options.resume)) {
|
|
145
|
+
throw new SessionUnavailableError(options.resume, "ACP native session id is already controlled on this connection", {
|
|
146
|
+
reason: "in_use", method: "oar/open", native: { sessionId: options.resume },
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
refusal = await shared.reserveSession?.(runtime, options) ?? null;
|
|
150
|
+
}
|
|
151
|
+
catch (error) {
|
|
152
|
+
await lease.dispose();
|
|
153
|
+
throw withoutCredentials(error);
|
|
154
|
+
}
|
|
155
|
+
if (refusal !== null) {
|
|
156
|
+
if (context.requested === "auto") {
|
|
157
|
+
// A concurrent fallback must not race a pool's first initialization
|
|
158
|
+
// with a second cold process using the same native data directory.
|
|
159
|
+
try {
|
|
160
|
+
await initialize();
|
|
161
|
+
}
|
|
162
|
+
catch { /* This controller needs an independent process, even if the shared one could not start. */ }
|
|
163
|
+
finally {
|
|
164
|
+
await lease.dispose();
|
|
165
|
+
}
|
|
166
|
+
return isolated(installation, options, { requested: "auto", placement: "isolated" });
|
|
167
|
+
}
|
|
168
|
+
await lease.dispose();
|
|
169
|
+
throw new UnsupportedOptionError("placement", refusal);
|
|
170
|
+
}
|
|
171
|
+
// This is a pre-open decision, never a retry of a native resume or configuration failure.
|
|
172
|
+
if (options.resume !== undefined && routing.retired(options.resume)) {
|
|
173
|
+
await lease.dispose();
|
|
174
|
+
if (context.requested === "auto") {
|
|
175
|
+
return isolated(installation, options, { requested: "auto", placement: "isolated" });
|
|
176
|
+
}
|
|
177
|
+
throw new UnsupportedOptionError("placement", "ACP native session id is retired on this shared connection; resume requires an isolated process");
|
|
178
|
+
}
|
|
179
|
+
const state = createAcpSessionState(profile, options, environment, (method, params) => owner.associations(method, params), () => runtime.pid);
|
|
180
|
+
const owner = routing.attach({ terminal: state.terminalHost, hooks: state.hooks }, credentials);
|
|
181
|
+
let nativeId = null;
|
|
182
|
+
let initializationRefusal = null;
|
|
183
|
+
const cleanup = async (request) => {
|
|
184
|
+
const preserveTerminals = options.endTurnProcessesOnAbort === true && request?.body.kind === "abort";
|
|
185
|
+
try {
|
|
186
|
+
await cleanupAcpOwner(async () => {
|
|
187
|
+
if (nativeId !== null && !runtime.closed) {
|
|
188
|
+
await shared.cleanup(runtime, nativeId);
|
|
189
|
+
}
|
|
190
|
+
}, async () => { if (!preserveTerminals) {
|
|
191
|
+
await state.terminalHost.dispose();
|
|
192
|
+
} });
|
|
193
|
+
}
|
|
194
|
+
catch (error) {
|
|
195
|
+
throw routing.redactValue(error);
|
|
196
|
+
}
|
|
197
|
+
if (preserveTerminals) {
|
|
198
|
+
return { kind: "failed", reason: "Native abort was unconfirmed; hosted terminals remain owned until dispose" };
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
try {
|
|
202
|
+
if (options.resume !== undefined) {
|
|
203
|
+
owner.reserve(options.resume);
|
|
204
|
+
nativeId = options.resume;
|
|
205
|
+
}
|
|
206
|
+
const ready = await initialize();
|
|
207
|
+
initializationRefusal = ready.refusal;
|
|
208
|
+
if (initializationRefusal !== null) {
|
|
209
|
+
throw new UnsupportedOptionError("placement", initializationRefusal);
|
|
210
|
+
}
|
|
211
|
+
const opened = await openInitializedAcpSession(runtime, profile, options, ready.response, (step) => { state.recorder.step(step.method, step.response); }, (id) => { owner.bind(id); nativeId = id; owner.opened(); }, state.configUpdates);
|
|
212
|
+
return finishAcpSession(profile, options, credentials, runtime, opened, state, {
|
|
213
|
+
lease, cleanup, stopRequests: () => { owner.stopRequests(); }, detach: () => { owner.dispose(); }, redact: routing.redactValue, resource,
|
|
214
|
+
}, scope);
|
|
215
|
+
}
|
|
216
|
+
catch (error) {
|
|
217
|
+
const safeError = routing.redactValue(error);
|
|
218
|
+
owner.stopRequests();
|
|
219
|
+
const cleaned = await Promise.allSettled([cleanup()]);
|
|
220
|
+
owner.dispose();
|
|
221
|
+
await lease.dispose();
|
|
222
|
+
if (initializationRefusal !== null && context.requested === "auto") {
|
|
223
|
+
return isolated(installation, options, { requested: "auto", placement: "isolated" });
|
|
224
|
+
}
|
|
225
|
+
const failure = safeError instanceof AcpError && safeError.kind === "process_exited"
|
|
226
|
+
? acpProcessExitedError(safeError.exitCode, runtime.diagnostics(), routing.redact) : safeError;
|
|
227
|
+
const cleanupError = cleaned[0].status === "rejected" ? routing.redact(String(cleaned[0].reason)) : cleanupFailureReason(runtime.diagnostics().cleanup);
|
|
228
|
+
throw withoutCredentials(appendCleanupFailure(failure, cleanupError));
|
|
229
|
+
}
|
|
230
|
+
}, "shared", runtimeId);
|
|
231
|
+
}
|
|
232
|
+
//# sourceMappingURL=shared-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-session.js","sources":["../../../src/shared/acp/shared-session.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EAAE,QAAQ,EAAmB,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAA6B,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAwB,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAA0B,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,cA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CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC;YACxJ,MAAM,kBAAkB,CAAC,oBAAoB,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;QACxE,CAAC;IACH,CAAC,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type AnyMessage } from "@agentclientprotocol/sdk";
|
|
2
|
+
import type { AcpRouting } from "./routing.js";
|
|
3
|
+
/** Preserve native arrival order/phase and keep SDK connection diagnostics behind pool redaction. */
|
|
4
|
+
export declare function sharedAcpWire<T>(routing: AcpRouting<T>, extensions: readonly string[], lateNew: (id: string) => void, newTimeoutMs?: number): {
|
|
5
|
+
outgoing(message: AnyMessage): void;
|
|
6
|
+
incoming(message: AnyMessage): AnyMessage | undefined;
|
|
7
|
+
close(): void;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=shared-wire.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-wire.d.ts","sources":["../../../src/shared/acp/shared-wire.ts"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,UAAU,EAAkB,MAAM,0BAA0B,CAAC;AAEpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,qGAAqG;AACrG,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,EAAE,YAAY,SAAS,GAAG;IAC7I,QAAQ,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;IACtD,KAAK,IAAI,IAAI,CAAC;CACf,CAyEA"}
|