@saltpub/oar 0.0.0-stage → 0.121.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +288 -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 +134 -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-error.d.ts +6 -0
- package/dist/shared/executable/process-table-error.d.ts.map +1 -0
- package/dist/shared/executable/process-table-error.js +10 -0
- package/dist/shared/executable/process-table-error.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-table-windows.d.ts +19 -0
- package/dist/shared/executable/process-table-windows.d.ts.map +1 -0
- package/dist/shared/executable/process-table-windows.js +57 -0
- package/dist/shared/executable/process-table-windows.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 +72 -0
- package/dist/shared/executable/process-tree.d.ts.map +1 -0
- package/dist/shared/executable/process-tree.js +249 -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,1029 @@
|
|
|
1
|
+
/* oxlint-disable eslint/max-lines -- One driver: the session, its key rules and both flows read together. */
|
|
2
|
+
import { readClaudeConfigField } from "../global-config.js";
|
|
3
|
+
import { mkdtemp, rm } from "node:fs/promises";
|
|
4
|
+
import os from "node:os";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import { CLAUDE_LIMIT_RESET_KINDS, claudeLimitResetCommand, bannerVersion, commandScreen, confirmDialog, hasDialogFooter, inputLine, isMainPrompt, isSignInScreen, promptInput, startupScreenOf, trustScreen, } from "./screens.js";
|
|
7
|
+
import { openScriptTerminal } from "../../../shared/executable/script-terminal.js";
|
|
8
|
+
import { onboardingScreen } from "./onboarding.js";
|
|
9
|
+
import { TerminalScreen } from "./terminal-screen.js";
|
|
10
|
+
/**
|
|
11
|
+
* Claude Code's limit resets, used and read by driving its own terminal UI.
|
|
12
|
+
*
|
|
13
|
+
* Claude Code has no non-interactive way to spend or list limit resets: only
|
|
14
|
+
* the hidden `/limit-reset` command of the interactive UI. So this starts the
|
|
15
|
+
* person's own `claude` in a pseudo-terminal, types the command, and reads
|
|
16
|
+
* the screen. It runs only on the account owner's explicit request, one
|
|
17
|
+
* session at a time in this process, and it fails closed:
|
|
18
|
+
*
|
|
19
|
+
* - No version list: any Claude Code is driven whose banner shows a version,
|
|
20
|
+
* and every screen must match the recorded text word for word. A version
|
|
21
|
+
* that changed a screen ends the attempt there (`unknown`, or
|
|
22
|
+
* `unsupported_version` before the command).
|
|
23
|
+
* - The command always names a kind. A bare `/limit-reset` can spend a reset
|
|
24
|
+
* with no confirmation.
|
|
25
|
+
* - Enter is sent only on the recorded onboarding defaults, to accept the
|
|
26
|
+
* folder-trust screen, to submit a command whose text the input box shows
|
|
27
|
+
* exactly, and (redeem only) once on the confirmation dialog for the kind
|
|
28
|
+
* the person chose. A read's session cannot send that confirmation.
|
|
29
|
+
* - From the moment a command is submitted until a screen that is positively
|
|
30
|
+
* recognised shows it finished, the only key that can be sent is Esc (or
|
|
31
|
+
* that one Yes). A session is ended by killing it, never by typing.
|
|
32
|
+
* - Any screen that is not positively recognised ends the attempt with Esc.
|
|
33
|
+
*
|
|
34
|
+
* One hazard cannot be closed from here. An account on Claude's older
|
|
35
|
+
* program (one 5-hour reset a week, no kinds) spends that reset as soon as ANY
|
|
36
|
+
* `/limit-reset …` is submitted while Claude Code is at the 5-hour limit,
|
|
37
|
+
* with no dialog. So:
|
|
38
|
+
*
|
|
39
|
+
* - A redeem of any kind but the 5-hour one is refused unless Claude Code's
|
|
40
|
+
* cached feature flags say the newer program is on. (A fresh flag fetch can
|
|
41
|
+
* still disagree with that cache.) A 5-hour redeem runs either way: spending
|
|
42
|
+
* the 5-hour reset is what the person clicked.
|
|
43
|
+
* - A read on an account at its 5-hour limit is refused without the person's
|
|
44
|
+
* consent to that risk (see `read`), and stops at the first line the older
|
|
45
|
+
* program prints.
|
|
46
|
+
* - What the server said about the 5-hour limit can be minutes old. So right
|
|
47
|
+
* before the first command of a read without that consent, or of a redeem
|
|
48
|
+
* of any kind but the 5-hour one, OAR reads usage again itself and
|
|
49
|
+
* types only if that read shows the account NOT at its 5-hour limit.
|
|
50
|
+
* - When the older program did spend its reset for something else, the answer
|
|
51
|
+
* says so (`fiveHourSpent`).
|
|
52
|
+
*/
|
|
53
|
+
/** The Claude Code version whose `/limit-reset` screens the recognisers were recorded from. */
|
|
54
|
+
export const CLAUDE_LIMIT_RESET_RECORDED_VERSION = "2.1.322";
|
|
55
|
+
/** The whole budget of one call, from its arrival, unless the caller gives one. */
|
|
56
|
+
export const CLAUDE_LIMIT_RESET_TIMEOUT_MS = 75_000;
|
|
57
|
+
const TERMINAL_COLS = 120;
|
|
58
|
+
const TERMINAL_ROWS = 45;
|
|
59
|
+
/** Claude Code ignores keys for about 250 ms after a dialog opens; wait well past that before any key. */
|
|
60
|
+
export const CLAUDE_DIALOG_KEY_GUARD_MS = 600;
|
|
61
|
+
/**
|
|
62
|
+
* What must be left of the attempt's time before Yes is sent: Claude Code's
|
|
63
|
+
* own claim request can take 25 s, and an answer that comes after the
|
|
64
|
+
* deadline is a spent reset reported as unknown.
|
|
65
|
+
*/
|
|
66
|
+
export const CLAUDE_CLAIM_WINDOW_MS = 30_000;
|
|
67
|
+
/** After the prompt first shows, Claude Code is still fetching the flags that decide what `/limit-reset` does: the screen must hold still this long before the prompt is decided. */
|
|
68
|
+
const STARTUP_SETTLE_MS = 3000;
|
|
69
|
+
const STARTUP_TIMEOUT_MS = 30_000;
|
|
70
|
+
const TYPE_SETTLE_MS = 400;
|
|
71
|
+
const TYPE_TIMEOUT_MS = 5000;
|
|
72
|
+
const COMMAND_TIMEOUT_MS = 20_000;
|
|
73
|
+
const CLOSE_TIMEOUT_MS = 5000;
|
|
74
|
+
/** How many times the dialog may still be repainting when its key guard ends before the attempt gives up. */
|
|
75
|
+
const STABLE_SCREEN_TRIES = 5;
|
|
76
|
+
/** A request that would start with less than this left is not started: a redeem must still reach its dialog with the claim window to spare. */
|
|
77
|
+
const REDEEM_MIN_START_MS = CLAUDE_CLAIM_WINDOW_MS + COMMAND_TIMEOUT_MS + STARTUP_SETTLE_MS;
|
|
78
|
+
const READ_MIN_START_MS = 20_000;
|
|
79
|
+
/**
|
|
80
|
+
* What must be left right before a command is submitted. On the older program
|
|
81
|
+
* the submission itself spends the 5-hour reset, so a redeem must still have
|
|
82
|
+
* the command's time and the claim window ahead of it, or its answer is cut
|
|
83
|
+
* into an unknown; a read must still have the command's time.
|
|
84
|
+
*/
|
|
85
|
+
export const CLAUDE_REDEEM_MIN_SUBMIT_MS = CLAUDE_CLAIM_WINDOW_MS + COMMAND_TIMEOUT_MS;
|
|
86
|
+
const READ_MIN_SUBMIT_MS = COMMAND_TIMEOUT_MS;
|
|
87
|
+
/** How long the fresh usage read before the first command may take. */
|
|
88
|
+
const FIVE_HOUR_CHECK_TIMEOUT_MS = 15_000;
|
|
89
|
+
/** Requests that may wait behind the running one; more are refused at once. */
|
|
90
|
+
const MAX_WAITING = 2;
|
|
91
|
+
const ENTER = "\r";
|
|
92
|
+
const ESCAPE = "\u001B";
|
|
93
|
+
const ARROW_DOWN = "\u001B[B";
|
|
94
|
+
/** The kinds a read opens, in order; the 5-hour kind last and only when asked. */
|
|
95
|
+
const READ_ORDER = ["weekly", "fable", "full", "five_hour"];
|
|
96
|
+
/** The 5-hour limit as a usage snapshot shows it: one `five_hour` window. */
|
|
97
|
+
export function claudeFiveHourLimitOf(snapshot) {
|
|
98
|
+
if (snapshot.kind !== "available") {
|
|
99
|
+
return "unknown";
|
|
100
|
+
}
|
|
101
|
+
const windows = snapshot.windows.filter((window) => window.id === "five_hour");
|
|
102
|
+
const [window] = windows;
|
|
103
|
+
if (windows.length !== 1 || window === undefined) {
|
|
104
|
+
return "unknown";
|
|
105
|
+
}
|
|
106
|
+
return window.usedRatio >= 1 ? "at_limit" : "not_at_limit";
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Linux only. macOS's BSD `script` refuses a socket as its stdin, which is
|
|
110
|
+
* what Node's pipes are there (seen on macOS 27.0, #752), so it exits
|
|
111
|
+
* before starting the program; Windows has neither `script` nor a POSIX
|
|
112
|
+
* shell.
|
|
113
|
+
*/
|
|
114
|
+
function isDrivablePlatform(platform) {
|
|
115
|
+
return platform === "linux";
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Claude Code keeps the feature flags it last fetched in its config file. Only
|
|
119
|
+
* the one boolean is read; the file's account fields are not touched.
|
|
120
|
+
*/
|
|
121
|
+
async function readCachedFlags(env) {
|
|
122
|
+
const features = await readClaudeConfigField(env, "cachedGrowthBookFeatures");
|
|
123
|
+
const flag = typeof features === "object" && features !== null && "tengu_cedar_ember" in features ? features.tengu_cedar_ember : undefined;
|
|
124
|
+
const enabled = typeof flag === "object" && flag !== null && "enabled" in flag ? flag.enabled : undefined;
|
|
125
|
+
return { limitResets: typeof enabled === "boolean" ? enabled : null };
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* A new empty directory for the session, so no project settings or hooks
|
|
129
|
+
* apply. Claude Code asks once to trust each new directory (accepted below,
|
|
130
|
+
* it is empty) and keeps one entry for it in its config.
|
|
131
|
+
*/
|
|
132
|
+
async function makeWorkDir() {
|
|
133
|
+
const directory = await mkdtemp(path.join(os.tmpdir(), "oar-claude-limit-reset-"));
|
|
134
|
+
return {
|
|
135
|
+
path: directory,
|
|
136
|
+
remove: async () => {
|
|
137
|
+
await rm(directory, { recursive: true, force: true });
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* One running Claude Code UI: its screen, its keyboard, and the attempt's
|
|
143
|
+
* deadline. Every key goes through here, and what may be sent depends on two
|
|
144
|
+
* facts it keeps:
|
|
145
|
+
*
|
|
146
|
+
* - `commandOutstanding`: a command was submitted and no recognised screen
|
|
147
|
+
* has shown it finished. Until then nothing can be typed; only Esc, and
|
|
148
|
+
* the one Yes.
|
|
149
|
+
* - `yesSent`: the confirmation was accepted. After that the command stays
|
|
150
|
+
* outstanding for good, so nothing but Esc is ever sent again.
|
|
151
|
+
*/
|
|
152
|
+
class ClaudeSession {
|
|
153
|
+
terminal;
|
|
154
|
+
deadlineAt;
|
|
155
|
+
mayConfirm;
|
|
156
|
+
onScreen;
|
|
157
|
+
screen = new TerminalScreen(TERMINAL_COLS, TERMINAL_ROWS);
|
|
158
|
+
wakers = new Set();
|
|
159
|
+
exited = false;
|
|
160
|
+
changedAt = 0;
|
|
161
|
+
commandOutstanding = false;
|
|
162
|
+
yesSent = false;
|
|
163
|
+
/** True only once the security notice has advanced to trust or the prompt. */
|
|
164
|
+
onboardingCompleted = false;
|
|
165
|
+
/** The version the banner showed, once the prompt was reached. */
|
|
166
|
+
version;
|
|
167
|
+
constructor(terminal, deadlineAt,
|
|
168
|
+
/** False for a read: its session has no way to send the confirmation. */
|
|
169
|
+
mayConfirm, onScreen) {
|
|
170
|
+
this.terminal = terminal;
|
|
171
|
+
this.deadlineAt = deadlineAt;
|
|
172
|
+
this.mayConfirm = mayConfirm;
|
|
173
|
+
this.onScreen = onScreen;
|
|
174
|
+
terminal.onData((chunk) => {
|
|
175
|
+
const before = this.screen.text();
|
|
176
|
+
this.screen.write(chunk);
|
|
177
|
+
if (this.screen.text() !== before) {
|
|
178
|
+
this.changedAt = Date.now();
|
|
179
|
+
}
|
|
180
|
+
this.wake();
|
|
181
|
+
});
|
|
182
|
+
terminal.onExit(() => {
|
|
183
|
+
this.exited = true;
|
|
184
|
+
this.wake();
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
wake() {
|
|
188
|
+
// oxlint-disable-next-line unicorn/no-useless-spread -- A snapshot: each waker that finishes removes itself from the set.
|
|
189
|
+
for (const waker of [...this.wakers]) {
|
|
190
|
+
waker();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
text() {
|
|
194
|
+
return this.screen.text();
|
|
195
|
+
}
|
|
196
|
+
note(step) {
|
|
197
|
+
this.onScreen?.(step, this.text());
|
|
198
|
+
}
|
|
199
|
+
remainingMs() {
|
|
200
|
+
return this.deadlineAt - Date.now();
|
|
201
|
+
}
|
|
202
|
+
/** Keys outside a command: recorded onboarding, folder trust, or text into the empty prompt. Refused while a command is outstanding. */
|
|
203
|
+
type(keys) {
|
|
204
|
+
if (this.exited || this.commandOutstanding) {
|
|
205
|
+
return false;
|
|
206
|
+
}
|
|
207
|
+
this.terminal.write(keys);
|
|
208
|
+
return true;
|
|
209
|
+
}
|
|
210
|
+
/** The Enter that submits the typed command. From here the command is outstanding. */
|
|
211
|
+
submit() {
|
|
212
|
+
if (this.exited || this.commandOutstanding) {
|
|
213
|
+
return false;
|
|
214
|
+
}
|
|
215
|
+
this.commandOutstanding = true;
|
|
216
|
+
this.terminal.write(ENTER);
|
|
217
|
+
return true;
|
|
218
|
+
}
|
|
219
|
+
/** A recognised screen showed the command finished with the prompt back, so the next one may be typed. Never after a Yes. */
|
|
220
|
+
commandSettled() {
|
|
221
|
+
if (!this.yesSent) {
|
|
222
|
+
this.commandOutstanding = false;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
/** Esc cancels whatever is open and confirms nothing; always allowed. */
|
|
226
|
+
escape() {
|
|
227
|
+
if (!this.exited) {
|
|
228
|
+
this.terminal.write(ESCAPE);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
/** The Yes: Enter on the open confirmation dialog, at most once in a session, and never in a read's. */
|
|
232
|
+
confirmOnce() {
|
|
233
|
+
if (this.exited || !this.mayConfirm || !this.commandOutstanding || this.yesSent) {
|
|
234
|
+
return false;
|
|
235
|
+
}
|
|
236
|
+
this.yesSent = true;
|
|
237
|
+
this.terminal.write(ENTER);
|
|
238
|
+
return true;
|
|
239
|
+
}
|
|
240
|
+
/** The first non-null `probe` of the screen; null when `withinMs` or the attempt's deadline passes, or Claude Code exits. */
|
|
241
|
+
// oxlint-disable-next-line typescript/promise-function-async -- Settled by the screen's wakers and a timer, not by awaiting.
|
|
242
|
+
waitFor(probe, withinMs) {
|
|
243
|
+
return new Promise((resolve) => {
|
|
244
|
+
const finish = (value) => {
|
|
245
|
+
clearTimeout(timer);
|
|
246
|
+
this.wakers.delete(check);
|
|
247
|
+
resolve(value);
|
|
248
|
+
};
|
|
249
|
+
const check = () => {
|
|
250
|
+
const value = probe(this.text());
|
|
251
|
+
if (value !== null) {
|
|
252
|
+
finish(value);
|
|
253
|
+
}
|
|
254
|
+
else if (this.exited) {
|
|
255
|
+
finish(null);
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
const withinDeadlineMs = Math.max(0, Math.min(withinMs, this.remainingMs()));
|
|
259
|
+
const timer = setTimeout(() => { finish(null); }, withinDeadlineMs);
|
|
260
|
+
this.wakers.add(check);
|
|
261
|
+
check();
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
/** Waits `ms`; false when the attempt's deadline would pass first or Claude Code has exited. */
|
|
265
|
+
async pause(ms) {
|
|
266
|
+
if (this.exited || ms > this.remainingMs()) {
|
|
267
|
+
return false;
|
|
268
|
+
}
|
|
269
|
+
await new Promise((resolve) => { setTimeout(resolve, ms); });
|
|
270
|
+
return !this.exited;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Waits out the dialog key guard until nothing on the screen has changed
|
|
274
|
+
* for one whole guard, so a key never lands on a dialog that is still being
|
|
275
|
+
* drawn or was just redrawn. False when the deadline comes first or the
|
|
276
|
+
* screen never holds still.
|
|
277
|
+
*/
|
|
278
|
+
async pauseUntilStable() {
|
|
279
|
+
for (let tries = 0; tries < STABLE_SCREEN_TRIES; tries += 1) {
|
|
280
|
+
if (!await this.pause(CLAUDE_DIALOG_KEY_GUARD_MS)) {
|
|
281
|
+
return false;
|
|
282
|
+
}
|
|
283
|
+
if (Date.now() - this.changedAt >= CLAUDE_DIALOG_KEY_GUARD_MS) {
|
|
284
|
+
return true;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Waits until nothing on the screen has changed for `quietMs`. False when
|
|
291
|
+
* that does not happen within `withinMs` or the attempt's deadline, or
|
|
292
|
+
* Claude Code exits.
|
|
293
|
+
*/
|
|
294
|
+
async settle(quietMs, withinMs) {
|
|
295
|
+
const giveUpAt = Date.now() + withinMs;
|
|
296
|
+
for (;;) {
|
|
297
|
+
const quietFor = Date.now() - this.changedAt;
|
|
298
|
+
if (quietFor >= quietMs) {
|
|
299
|
+
return !this.exited;
|
|
300
|
+
}
|
|
301
|
+
const waitMs = quietMs - quietFor;
|
|
302
|
+
if (Date.now() + waitMs > giveUpAt || !await this.pause(waitMs)) {
|
|
303
|
+
return false;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
/** Whether Claude Code has exited. */
|
|
308
|
+
hasExited() {
|
|
309
|
+
return this.exited;
|
|
310
|
+
}
|
|
311
|
+
/** Ends the session by ending its processes; nothing is typed to leave. */
|
|
312
|
+
async close() {
|
|
313
|
+
await this.terminal.kill();
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
/** Startup failed: what the screen showed, in OAR's own words, and the banner's version if one was drawn. */
|
|
317
|
+
function startupFailed(session, screen = session.text()) {
|
|
318
|
+
const version = bannerVersion(screen);
|
|
319
|
+
return {
|
|
320
|
+
is: "failed",
|
|
321
|
+
startup: { screen: session.hasExited() ? "exited" : startupScreenOf(screen), ...(version === null ? {} : { version }) },
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Completes only the recorded default theme and security notice, then brings
|
|
326
|
+
* Claude Code to its prompt. Changed or extra onboarding stops without keys.
|
|
327
|
+
* A working directory it has not seen gets
|
|
328
|
+
* the folder-trust screen, which opens on "No, exit": Yes is selected first
|
|
329
|
+
* and Enter sent only once the screen shows it selected. The directory is
|
|
330
|
+
* one this driver just made empty. A sign-in screen means no usable login.
|
|
331
|
+
*
|
|
332
|
+
* The prompt is decided once it is showing (`isMainPrompt`) and the screen
|
|
333
|
+
* has held still for the settle time: an empty box (or one with only the
|
|
334
|
+
* placeholder suggestion) under a banner that shows a version, any version,
|
|
335
|
+
* is ready; text in the box ends the attempt at once, nothing typed into it;
|
|
336
|
+
* an empty box with no banner is the wrong version. A box with text and no
|
|
337
|
+
* banner is waited on (the trust screen comes before any banner).
|
|
338
|
+
*/
|
|
339
|
+
async function openPrompt(session) {
|
|
340
|
+
let trustAccepted = false;
|
|
341
|
+
const onboardingSent = new Set();
|
|
342
|
+
// One cutoff for reaching a settled prompt: waiting, settling and waiting again share it.
|
|
343
|
+
// Accepting the folder-trust screen starts the next phase with a fresh one.
|
|
344
|
+
let cutoff = Date.now() + STARTUP_TIMEOUT_MS;
|
|
345
|
+
const left = () => Math.max(0, cutoff - Date.now());
|
|
346
|
+
for (;;) {
|
|
347
|
+
// Fixed for this wait; it changes only once the wait is over.
|
|
348
|
+
const lookForTrust = !trustAccepted;
|
|
349
|
+
const seen = await session.waitFor((screen) => {
|
|
350
|
+
if (onboardingScreen(screen) !== null) {
|
|
351
|
+
return "onboarding";
|
|
352
|
+
}
|
|
353
|
+
if (isSignInScreen(screen)) {
|
|
354
|
+
return "sign_in";
|
|
355
|
+
}
|
|
356
|
+
if (lookForTrust && hasDialogFooter(screen)) {
|
|
357
|
+
return onboardingSent.size > 0 && trustScreen(screen) === null ? "onboarding" : "trust";
|
|
358
|
+
}
|
|
359
|
+
if (isMainPrompt(screen)) {
|
|
360
|
+
return "prompt";
|
|
361
|
+
}
|
|
362
|
+
return onboardingSent.size > 0 && screen.trim() !== "" ? "onboarding" : null;
|
|
363
|
+
}, left());
|
|
364
|
+
if (seen === null) {
|
|
365
|
+
return startupFailed(session);
|
|
366
|
+
}
|
|
367
|
+
if (seen === "sign_in") {
|
|
368
|
+
return { is: "sign_in" };
|
|
369
|
+
}
|
|
370
|
+
if (seen === "onboarding") {
|
|
371
|
+
// A changed page, a repeated page or another choice receives no keys.
|
|
372
|
+
if (!await session.settle(STARTUP_SETTLE_MS, left())) {
|
|
373
|
+
return startupFailed(session);
|
|
374
|
+
}
|
|
375
|
+
const page = onboardingScreen(session.text());
|
|
376
|
+
if (page === null) {
|
|
377
|
+
if (trustScreen(session.text()) !== null || isMainPrompt(session.text()) || isSignInScreen(session.text())) {
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
return { is: "failed", startup: { screen: "onboarding" } };
|
|
381
|
+
}
|
|
382
|
+
session.note(`onboarding:${page}`);
|
|
383
|
+
if (page === "unrecognised" || onboardingSent.has(page)
|
|
384
|
+
|| (page === "theme" && onboardingSent.size > 0)) {
|
|
385
|
+
return startupFailed(session);
|
|
386
|
+
}
|
|
387
|
+
if (!session.type(ENTER)) {
|
|
388
|
+
return startupFailed(session);
|
|
389
|
+
}
|
|
390
|
+
onboardingSent.add(page);
|
|
391
|
+
// Never send the same Enter twice while the old screen remains visible.
|
|
392
|
+
if (await session.waitFor((screen) => onboardingScreen(screen) !== page ? true : null, left()) === null) {
|
|
393
|
+
return startupFailed(session);
|
|
394
|
+
}
|
|
395
|
+
continue;
|
|
396
|
+
}
|
|
397
|
+
if (seen === "trust") {
|
|
398
|
+
session.note("trust");
|
|
399
|
+
if (!await session.pauseUntilStable()) {
|
|
400
|
+
return startupFailed(session);
|
|
401
|
+
}
|
|
402
|
+
if (trustScreen(session.text()) === "no_selected") {
|
|
403
|
+
session.type(ARROW_DOWN);
|
|
404
|
+
if (await session.waitFor((screen) => (trustScreen(screen) === "yes_selected" ? true : null), CLOSE_TIMEOUT_MS) === null) {
|
|
405
|
+
return startupFailed(session);
|
|
406
|
+
}
|
|
407
|
+
if (!await session.pauseUntilStable()) {
|
|
408
|
+
return startupFailed(session);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
if (trustScreen(session.text()) !== "yes_selected") {
|
|
412
|
+
// Classified before Esc closes it.
|
|
413
|
+
const shown = session.text();
|
|
414
|
+
if (onboardingSent.size > 0) {
|
|
415
|
+
return { is: "failed", startup: { screen: "onboarding" } };
|
|
416
|
+
}
|
|
417
|
+
await cancelWithEscape(session);
|
|
418
|
+
return startupFailed(session, shown);
|
|
419
|
+
}
|
|
420
|
+
session.onboardingCompleted = onboardingSent.has("security");
|
|
421
|
+
session.type(ENTER);
|
|
422
|
+
trustAccepted = true;
|
|
423
|
+
cutoff = Date.now() + STARTUP_TIMEOUT_MS;
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
if (!await session.settle(STARTUP_SETTLE_MS, left())) {
|
|
427
|
+
return startupFailed(session);
|
|
428
|
+
}
|
|
429
|
+
const screen = session.text();
|
|
430
|
+
if (isSignInScreen(screen)) {
|
|
431
|
+
return { is: "sign_in" };
|
|
432
|
+
}
|
|
433
|
+
// Something was drawn over the prompt while it settled: wait again.
|
|
434
|
+
if (!isMainPrompt(screen)) {
|
|
435
|
+
continue;
|
|
436
|
+
}
|
|
437
|
+
const banner = bannerVersion(screen);
|
|
438
|
+
if (banner === null) {
|
|
439
|
+
return { is: "wrong_version" };
|
|
440
|
+
}
|
|
441
|
+
if (promptInput(screen) !== "") {
|
|
442
|
+
return startupFailed(session, screen);
|
|
443
|
+
}
|
|
444
|
+
session.version = banner;
|
|
445
|
+
session.onboardingCompleted = onboardingSent.has("security");
|
|
446
|
+
return { is: "ready" };
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Types `command` at the empty prompt and submits it, only once the input box
|
|
451
|
+
* shows exactly that text: a keystroke lost on the way must not turn it into
|
|
452
|
+
* a bare `/limit-reset`.
|
|
453
|
+
*/
|
|
454
|
+
async function submitCommand(session, command) {
|
|
455
|
+
if (promptInput(session.text()) !== "") {
|
|
456
|
+
return false;
|
|
457
|
+
}
|
|
458
|
+
if (!session.type(command)) {
|
|
459
|
+
return false;
|
|
460
|
+
}
|
|
461
|
+
if (!await session.pause(TYPE_SETTLE_MS)) {
|
|
462
|
+
return false;
|
|
463
|
+
}
|
|
464
|
+
if (!await session.waitFor((screen) => (inputLine(screen) === command ? true : null), TYPE_TIMEOUT_MS)) {
|
|
465
|
+
return false;
|
|
466
|
+
}
|
|
467
|
+
return session.submit();
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Checked right before a command is submitted. `checkFiveHourLimit`: the
|
|
471
|
+
* submission could spend the older program's 5-hour reset unasked, so usage
|
|
472
|
+
* is read again now and the command goes only if it shows the account not at
|
|
473
|
+
* that limit. The time left is checked before and after that read.
|
|
474
|
+
*/
|
|
475
|
+
async function maySubmit(session, minRemainingMs, fiveHourLimit) {
|
|
476
|
+
if (session.remainingMs() < minRemainingMs) {
|
|
477
|
+
return "budget";
|
|
478
|
+
}
|
|
479
|
+
if (fiveHourLimit) {
|
|
480
|
+
let timer = undefined;
|
|
481
|
+
const limit = await Promise.race([
|
|
482
|
+
fiveHourLimit().catch(() => "unknown"),
|
|
483
|
+
new Promise((resolve) => { timer = setTimeout(() => { resolve("unknown"); }, FIVE_HOUR_CHECK_TIMEOUT_MS); }),
|
|
484
|
+
]);
|
|
485
|
+
clearTimeout(timer);
|
|
486
|
+
if (limit === "at_limit") {
|
|
487
|
+
return "at_limit";
|
|
488
|
+
}
|
|
489
|
+
if (limit !== "not_at_limit") {
|
|
490
|
+
return "usage_unread";
|
|
491
|
+
}
|
|
492
|
+
if (session.remainingMs() < minRemainingMs) {
|
|
493
|
+
return "budget";
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
return null;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* What the submitted command led to; `pending` when nothing recognisable came
|
|
500
|
+
* in time. A result line or "unknown command" under a returned prompt is the
|
|
501
|
+
* recognised end of the command.
|
|
502
|
+
*/
|
|
503
|
+
async function awaitCommand(session, command, withinMs, settled) {
|
|
504
|
+
const seen = await session.waitFor((screen) => {
|
|
505
|
+
const shown = commandScreen(screen, command);
|
|
506
|
+
return settled(shown) ? shown : null;
|
|
507
|
+
}, withinMs);
|
|
508
|
+
if (seen?.is === "result" || seen?.is === "no_command") {
|
|
509
|
+
session.commandSettled();
|
|
510
|
+
}
|
|
511
|
+
return seen ?? { is: "pending" };
|
|
512
|
+
}
|
|
513
|
+
/** Esc, after the dialog key guard; whether no dialog is left afterwards. */
|
|
514
|
+
async function cancelWithEscape(session) {
|
|
515
|
+
if (!await session.pause(CLAUDE_DIALOG_KEY_GUARD_MS)) {
|
|
516
|
+
return false;
|
|
517
|
+
}
|
|
518
|
+
session.escape();
|
|
519
|
+
return await session.waitFor((screen) => (hasDialogFooter(screen) ? null : true), CLOSE_TIMEOUT_MS) === true;
|
|
520
|
+
}
|
|
521
|
+
/** Esc on the confirmation dialog, then whether Claude Code said the reset was kept. */
|
|
522
|
+
async function cancelAndSeeKept(session, command) {
|
|
523
|
+
await cancelWithEscape(session);
|
|
524
|
+
const closed = await awaitCommand(session, command, CLOSE_TIMEOUT_MS, (screen) => screen.is === "result");
|
|
525
|
+
return closed.is === "result" && closed.line.is === "kept";
|
|
526
|
+
}
|
|
527
|
+
const BUSY = { kind: "not_attempted", reason: "busy" };
|
|
528
|
+
const DEADLINE = { kind: "not_attempted", reason: "deadline" };
|
|
529
|
+
function startupFailedResult(startup) {
|
|
530
|
+
return { kind: "not_attempted", reason: "startup_failed", startup };
|
|
531
|
+
}
|
|
532
|
+
const CONSENT_REQUIRED = { kind: "unsupported", reason: "consent_required" };
|
|
533
|
+
const NO_COMMAND = { kind: "unsupported", reason: "endpoint_unavailable" };
|
|
534
|
+
/** What a refusal before the first command answers; nothing was typed. */
|
|
535
|
+
function refusalResult(refused) {
|
|
536
|
+
return refused === "budget" ? DEADLINE : (refused === "at_limit" ? CONSENT_REQUIRED : { kind: "not_attempted", reason: "usage_unread" });
|
|
537
|
+
}
|
|
538
|
+
function unknownAt(step) {
|
|
539
|
+
return { result: { kind: "unknown" }, step, remember: true };
|
|
540
|
+
}
|
|
541
|
+
async function redeemInSession(session, kind, fiveHourLimit) {
|
|
542
|
+
const opened = await openPrompt(session);
|
|
543
|
+
session.note("startup");
|
|
544
|
+
if (opened.is === "sign_in") {
|
|
545
|
+
return { result: { kind: "reauth_required", reason: "not_authenticated" }, step: "sign_in", remember: false };
|
|
546
|
+
}
|
|
547
|
+
if (opened.is === "wrong_version") {
|
|
548
|
+
return { result: { kind: "unsupported", reason: "unsupported_version" }, step: "version", remember: false };
|
|
549
|
+
}
|
|
550
|
+
if (opened.is === "failed") {
|
|
551
|
+
return { result: startupFailedResult(opened.startup), step: "startup", remember: false };
|
|
552
|
+
}
|
|
553
|
+
// Nothing has been typed yet: a refusal here spent nothing, and the same click may try again.
|
|
554
|
+
const refused = await maySubmit(session, CLAUDE_REDEEM_MIN_SUBMIT_MS, kind === "five_hour" ? null : fiveHourLimit);
|
|
555
|
+
if (refused) {
|
|
556
|
+
return { result: refusalResult(refused), step: refused === "budget" ? "budget" : "usage", remember: false };
|
|
557
|
+
}
|
|
558
|
+
const command = claudeLimitResetCommand(kind);
|
|
559
|
+
if (!await submitCommand(session, command)) {
|
|
560
|
+
return { result: { kind: "unknown" }, step: "type_command", remember: false };
|
|
561
|
+
}
|
|
562
|
+
const shown = await awaitCommand(session, command, COMMAND_TIMEOUT_MS, (screen) => screen.is !== "pending");
|
|
563
|
+
session.note("command");
|
|
564
|
+
switch (shown.is) {
|
|
565
|
+
case "pending":
|
|
566
|
+
await cancelWithEscape(session);
|
|
567
|
+
return unknownAt("command");
|
|
568
|
+
case "no_command":
|
|
569
|
+
return { result: NO_COMMAND, step: "command", remember: true };
|
|
570
|
+
case "other_dialog":
|
|
571
|
+
await cancelWithEscape(session);
|
|
572
|
+
return unknownAt("dialog");
|
|
573
|
+
case "confirm":
|
|
574
|
+
break;
|
|
575
|
+
case "result":
|
|
576
|
+
switch (shown.line.is) {
|
|
577
|
+
case "none":
|
|
578
|
+
return { result: { kind: "no_reset" }, remember: true };
|
|
579
|
+
case "legacy_unavailable":
|
|
580
|
+
// The older program's "isn't available right now" may only mean the
|
|
581
|
+
// account is not at its 5-hour limit yet, not that it holds none. It
|
|
582
|
+
// has no other kinds at all.
|
|
583
|
+
return { result: kind === "five_hour" ? { kind: "nothing_to_reset" } : { kind: "no_reset" }, remember: true };
|
|
584
|
+
case "needs_limit":
|
|
585
|
+
return { result: { kind: "nothing_to_reset" }, remember: true };
|
|
586
|
+
case "legacy_reset":
|
|
587
|
+
// The older program spent its 5-hour reset with no dialog. That is
|
|
588
|
+
// what a 5-hour click asked for; for any other kind it is not, and
|
|
589
|
+
// the answer says what was spent instead.
|
|
590
|
+
return kind === "five_hour"
|
|
591
|
+
? { result: { kind: "reset" }, remember: true }
|
|
592
|
+
: { result: { kind: "unknown", fiveHourSpent: true }, step: "result", remember: true };
|
|
593
|
+
case "kept":
|
|
594
|
+
case "reset":
|
|
595
|
+
case "unrecognised":
|
|
596
|
+
return unknownAt("result");
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
if (shown.dialog.kind !== kind) {
|
|
600
|
+
await cancelWithEscape(session);
|
|
601
|
+
return unknownAt("dialog");
|
|
602
|
+
}
|
|
603
|
+
if (!await session.pauseUntilStable()) {
|
|
604
|
+
session.escape();
|
|
605
|
+
return unknownAt("confirm");
|
|
606
|
+
}
|
|
607
|
+
if (confirmDialog(session.text())?.kind !== kind) {
|
|
608
|
+
await cancelWithEscape(session);
|
|
609
|
+
return unknownAt("confirm");
|
|
610
|
+
}
|
|
611
|
+
if (session.remainingMs() < CLAUDE_CLAIM_WINDOW_MS) {
|
|
612
|
+
// Too late to wait for the claim's answer: keep the reset and say nothing was done.
|
|
613
|
+
return await cancelAndSeeKept(session, command)
|
|
614
|
+
? { result: DEADLINE, step: "confirm", remember: false }
|
|
615
|
+
: unknownAt("confirm");
|
|
616
|
+
}
|
|
617
|
+
// The one Yes of the attempt: the dialog names the chosen kind, its Yes row is selected, and it has held still.
|
|
618
|
+
if (!session.confirmOnce()) {
|
|
619
|
+
return unknownAt("confirm");
|
|
620
|
+
}
|
|
621
|
+
const after = await awaitCommand(session, command, CLAUDE_CLAIM_WINDOW_MS, (screen) => screen.is === "result" || screen.is === "other_dialog" || screen.is === "no_command");
|
|
622
|
+
session.note("result");
|
|
623
|
+
if (after.is === "result" && after.line.is === "reset" && after.line.kind === kind) {
|
|
624
|
+
return { result: { kind: "reset" }, remember: true };
|
|
625
|
+
}
|
|
626
|
+
return unknownAt("result");
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Opens each kind's command and cancels it with Esc. Its session is made
|
|
630
|
+
* with `mayConfirm` off, so `confirmOnce` sends nothing, and this function
|
|
631
|
+
* does not call it. Its Enters accept recorded onboarding defaults, folder
|
|
632
|
+
* trust, or `submitCommand` at a prompt showing exactly the typed command; none
|
|
633
|
+
* can be sent while a command is outstanding. (On Claude's older program the
|
|
634
|
+
* submission itself is what spends: see the consent in `read`.)
|
|
635
|
+
*/
|
|
636
|
+
async function readInSession(session, kinds, fiveHourLimit) {
|
|
637
|
+
const opened = await openPrompt(session);
|
|
638
|
+
session.note("startup");
|
|
639
|
+
if (opened.is === "sign_in") {
|
|
640
|
+
return { result: { kind: "reauth_required", reason: "not_authenticated" }, step: "sign_in" };
|
|
641
|
+
}
|
|
642
|
+
if (opened.is === "wrong_version") {
|
|
643
|
+
return { result: { kind: "unsupported", reason: "unsupported_version" }, step: "version" };
|
|
644
|
+
}
|
|
645
|
+
if (opened.is === "failed") {
|
|
646
|
+
return { result: startupFailedResult(opened.startup), step: "startup" };
|
|
647
|
+
}
|
|
648
|
+
const found = new Map();
|
|
649
|
+
let stoppedAt = undefined;
|
|
650
|
+
for (const kind of kinds) {
|
|
651
|
+
// After a screen that was not recognised nothing more is typed.
|
|
652
|
+
if (stoppedAt) {
|
|
653
|
+
found.set(kind, { id: kind, state: "unknown" });
|
|
654
|
+
continue;
|
|
655
|
+
}
|
|
656
|
+
// The usage check only before the first command: on the older program
|
|
657
|
+
// that is the only one ever submitted (its line ends the read).
|
|
658
|
+
const refused = await maySubmit(session, READ_MIN_SUBMIT_MS, found.size === 0 ? fiveHourLimit : null);
|
|
659
|
+
if (refused) {
|
|
660
|
+
if (found.size > 0) {
|
|
661
|
+
// Too little time for another command: the kinds left stay not_checked.
|
|
662
|
+
stoppedAt = "budget";
|
|
663
|
+
break;
|
|
664
|
+
}
|
|
665
|
+
return { result: refusalResult(refused), step: refused === "budget" ? "budget" : "usage" };
|
|
666
|
+
}
|
|
667
|
+
const command = claudeLimitResetCommand(kind);
|
|
668
|
+
if (!await submitCommand(session, command)) {
|
|
669
|
+
found.set(kind, { id: kind, state: "unknown" });
|
|
670
|
+
stoppedAt = "type_command";
|
|
671
|
+
continue;
|
|
672
|
+
}
|
|
673
|
+
const shown = await awaitCommand(session, command, COMMAND_TIMEOUT_MS, (screen) => screen.is !== "pending");
|
|
674
|
+
session.note(`command:${kind}`);
|
|
675
|
+
if (shown.is === "no_command") {
|
|
676
|
+
return { result: NO_COMMAND, step: "command" };
|
|
677
|
+
}
|
|
678
|
+
if (shown.is === "result" && (shown.line.is === "legacy_unavailable" || shown.line.is === "legacy_reset")) {
|
|
679
|
+
// The older program answered: it ignores the kind, so every further
|
|
680
|
+
// command would get the same answer, or at the limit spend its reset.
|
|
681
|
+
// `legacy_reset` means it just spent one, which only consent allows.
|
|
682
|
+
// Its "isn't available right now" may only mean the account is not at
|
|
683
|
+
// the 5-hour limit yet, so it is not read as holding none.
|
|
684
|
+
const spent = shown.line.is === "legacy_reset";
|
|
685
|
+
const fiveHour = { id: "five_hour", state: "unknown" };
|
|
686
|
+
return {
|
|
687
|
+
result: {
|
|
688
|
+
kind: "inspected",
|
|
689
|
+
program: "legacy",
|
|
690
|
+
...(spent ? { fiveHourSpent: true } : {}),
|
|
691
|
+
resets: CLAUDE_LIMIT_RESET_KINDS.map((each) => (each === "five_hour" ? fiveHour : { id: each, state: "not_offered" })),
|
|
692
|
+
...(session.version === undefined ? {} : { version: session.version }),
|
|
693
|
+
},
|
|
694
|
+
...(spent ? { step: "result" } : {}),
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
if (shown.is === "result" && shown.line.is === "none") {
|
|
698
|
+
found.set(kind, { id: kind, state: "none" });
|
|
699
|
+
}
|
|
700
|
+
else if (shown.is === "result" && shown.line.is === "needs_limit") {
|
|
701
|
+
// Held, but usable only at a limit; that line's count is not per kind.
|
|
702
|
+
found.set(kind, { id: kind, state: "available" });
|
|
703
|
+
}
|
|
704
|
+
else if (shown.is === "confirm" && shown.dialog.kind === kind) {
|
|
705
|
+
found.set(kind, {
|
|
706
|
+
id: kind,
|
|
707
|
+
state: "available",
|
|
708
|
+
resetsLeft: shown.dialog.resetsLeft,
|
|
709
|
+
expiresText: shown.dialog.expiresText,
|
|
710
|
+
});
|
|
711
|
+
const kept = await cancelAndSeeKept(session, command);
|
|
712
|
+
session.note(`cancel:${kind}`);
|
|
713
|
+
if (!kept) {
|
|
714
|
+
stoppedAt = "dialog";
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
else {
|
|
718
|
+
found.set(kind, { id: kind, state: "unknown" });
|
|
719
|
+
stoppedAt = shown.is === "result" ? "result" : (shown.is === "pending" ? "command" : "dialog");
|
|
720
|
+
if (shown.is !== "result") {
|
|
721
|
+
await cancelWithEscape(session);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
return {
|
|
726
|
+
result: {
|
|
727
|
+
kind: "inspected",
|
|
728
|
+
resets: CLAUDE_LIMIT_RESET_KINDS.map((kind) => found.get(kind) ?? { id: kind, state: "not_checked" }),
|
|
729
|
+
...(session.version === undefined ? {} : { version: session.version }),
|
|
730
|
+
},
|
|
731
|
+
...(stoppedAt ? { step: stoppedAt } : {}),
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
const PREPARATION_EXPIRED = Symbol("preparation expired");
|
|
735
|
+
/** A late preparation result cannot resume the call; any resource it made is discarded. */
|
|
736
|
+
// oxlint-disable-next-line typescript/promise-function-async -- Returns the deadline race directly; late work is handled separately.
|
|
737
|
+
function prepareWithinDeadline(run, deadlineAt, discard) {
|
|
738
|
+
if (Date.now() >= deadlineAt) {
|
|
739
|
+
return Promise.resolve(PREPARATION_EXPIRED);
|
|
740
|
+
}
|
|
741
|
+
const answer = Promise.withResolvers();
|
|
742
|
+
let finished = false;
|
|
743
|
+
const expire = () => {
|
|
744
|
+
if (finished) {
|
|
745
|
+
return;
|
|
746
|
+
}
|
|
747
|
+
finished = true;
|
|
748
|
+
answer.resolve(PREPARATION_EXPIRED);
|
|
749
|
+
};
|
|
750
|
+
const timer = setTimeout(expire, deadlineAt - Date.now());
|
|
751
|
+
const complete = async () => {
|
|
752
|
+
try {
|
|
753
|
+
const value = await run();
|
|
754
|
+
// The clock may have passed the deadline before its timer got to run.
|
|
755
|
+
if (Date.now() >= deadlineAt) {
|
|
756
|
+
expire();
|
|
757
|
+
}
|
|
758
|
+
if (finished) {
|
|
759
|
+
await discard?.(value);
|
|
760
|
+
}
|
|
761
|
+
else {
|
|
762
|
+
finished = true;
|
|
763
|
+
answer.resolve(value);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
catch (error) {
|
|
767
|
+
if (Date.now() >= deadlineAt) {
|
|
768
|
+
expire();
|
|
769
|
+
}
|
|
770
|
+
if (!finished) {
|
|
771
|
+
finished = true;
|
|
772
|
+
answer.reject(error);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
finally {
|
|
776
|
+
clearTimeout(timer);
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
void complete();
|
|
780
|
+
return answer.promise;
|
|
781
|
+
}
|
|
782
|
+
export function createClaudeLimitResetDriver(deps = {}) {
|
|
783
|
+
const defaultTimeoutMs = deps.timeoutMs ?? CLAUDE_LIMIT_RESET_TIMEOUT_MS;
|
|
784
|
+
// One Claude Code session at a time in this process. A request that
|
|
785
|
+
// arrives while another runs waits its turn, but its clock started when it
|
|
786
|
+
// arrived: if too little of its budget is left when its turn comes it is
|
|
787
|
+
// refused without starting anything (`not_attempted: deadline`), and so is
|
|
788
|
+
// one that finds MAX_WAITING already waiting (`not_attempted: busy`).
|
|
789
|
+
// Nothing was spent either way; try again.
|
|
790
|
+
let tail = Promise.resolve();
|
|
791
|
+
let queued = 0;
|
|
792
|
+
/**
|
|
793
|
+
* Runs `run` when the session slot is free. A call that is still waiting at
|
|
794
|
+
* `deadlineAt` answers `expired()` then and never starts; it frees its
|
|
795
|
+
* waiting place at once.
|
|
796
|
+
*/
|
|
797
|
+
const exclusive = (run, deadlineAt, expired) => {
|
|
798
|
+
if (queued > MAX_WAITING) {
|
|
799
|
+
return null;
|
|
800
|
+
}
|
|
801
|
+
queued += 1;
|
|
802
|
+
// An object, so the timer's and the turn's changes are seen by each other's checks.
|
|
803
|
+
const entry = { state: "waiting" };
|
|
804
|
+
const answer = Promise.withResolvers();
|
|
805
|
+
const timer = setTimeout(() => {
|
|
806
|
+
if (entry.state !== "waiting") {
|
|
807
|
+
return;
|
|
808
|
+
}
|
|
809
|
+
entry.state = "expired";
|
|
810
|
+
queued -= 1;
|
|
811
|
+
answer.resolve(expired());
|
|
812
|
+
}, Math.max(0, deadlineAt - Date.now()));
|
|
813
|
+
const turn = async () => {
|
|
814
|
+
if (entry.state === "expired") {
|
|
815
|
+
return;
|
|
816
|
+
}
|
|
817
|
+
entry.state = "running";
|
|
818
|
+
clearTimeout(timer);
|
|
819
|
+
try {
|
|
820
|
+
answer.resolve(await run());
|
|
821
|
+
}
|
|
822
|
+
catch (error) {
|
|
823
|
+
answer.reject(error);
|
|
824
|
+
}
|
|
825
|
+
finally {
|
|
826
|
+
queued -= 1;
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
// oxlint-disable-next-line promise/prefer-await-to-then -- A queue: the turn is chained now, so the tail is set before this returns.
|
|
830
|
+
tail = tail.then(turn, turn);
|
|
831
|
+
return answer.promise;
|
|
832
|
+
};
|
|
833
|
+
// The wire to Claude Code has no idempotency key, so this remembers each
|
|
834
|
+
// key's attempt, in memory: a retry with the same key gets the first
|
|
835
|
+
// attempt's answer instead of a second Yes. It does not survive the
|
|
836
|
+
// process; after a restart, a retry of an attempt whose answer was lost is
|
|
837
|
+
// a new attempt. Nothing is dropped: an attempt that may have spent a
|
|
838
|
+
// reset must never become executable again within the process. Only
|
|
839
|
+
// attempts that typed a command are kept, each one person's request.
|
|
840
|
+
const attempts = new Map();
|
|
841
|
+
const preflight = async (input, needsNewerProgram, deadlineAt) => {
|
|
842
|
+
const platform = deps.platform ?? process.platform;
|
|
843
|
+
if (!isDrivablePlatform(platform)) {
|
|
844
|
+
return { ok: false, refusal: { kind: "unsupported", reason: "unsupported_platform" }, step: "platform" };
|
|
845
|
+
}
|
|
846
|
+
const env = { ...(input.env ?? process.env) };
|
|
847
|
+
// A host started from inside Claude Code must not hand that marker down.
|
|
848
|
+
delete env.CLAUDECODE;
|
|
849
|
+
// No dimmed suggestion in the empty input box (2.1.323 honors this); the
|
|
850
|
+
// screen reader still treats a `Try "..."` box as empty if one is drawn.
|
|
851
|
+
env.CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION = "false";
|
|
852
|
+
// Without consent, a kind but the 5-hour one goes only where Claude Code's
|
|
853
|
+
// last fetched flags say the newer program is on (a fresh fetch can still
|
|
854
|
+
// disagree, which the usage read before the command covers).
|
|
855
|
+
if (needsNewerProgram) {
|
|
856
|
+
const loadFlags = deps.cachedFlags ?? readCachedFlags;
|
|
857
|
+
const flags = await prepareWithinDeadline(loadFlags.bind(null, env), deadlineAt);
|
|
858
|
+
if (flags === PREPARATION_EXPIRED) {
|
|
859
|
+
return { ok: false, refusal: DEADLINE, step: "flags" };
|
|
860
|
+
}
|
|
861
|
+
if (flags.limitResets !== true) {
|
|
862
|
+
return { ok: false, refusal: { kind: "unsupported", reason: "consent_required" }, step: "flags" };
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
return { ok: true, command: input.command, env, platform };
|
|
866
|
+
};
|
|
867
|
+
/**
|
|
868
|
+
* Runs `drive` against a new Claude Code session in a new empty directory.
|
|
869
|
+
* The session's processes are ended, and that is waited for, before the
|
|
870
|
+
* directory is removed and before the next request's turn.
|
|
871
|
+
*/
|
|
872
|
+
const withSession = async (ready, deadlineAt, mayConfirm, drive) => {
|
|
873
|
+
const workDir = await prepareWithinDeadline(deps.workDir ?? makeWorkDir, deadlineAt, async (late) => { await late.remove(); });
|
|
874
|
+
if (workDir === PREPARATION_EXPIRED) {
|
|
875
|
+
return PREPARATION_EXPIRED;
|
|
876
|
+
}
|
|
877
|
+
if (Date.now() >= deadlineAt) {
|
|
878
|
+
// oxlint-disable-next-line promise/prefer-await-to-then -- Cleanup must not delay an already expired call.
|
|
879
|
+
void workDir.remove().catch(() => { });
|
|
880
|
+
return PREPARATION_EXPIRED;
|
|
881
|
+
}
|
|
882
|
+
try {
|
|
883
|
+
const terminal = (deps.openTerminal ?? openScriptTerminal)({
|
|
884
|
+
command: ready.command,
|
|
885
|
+
cwd: workDir.path,
|
|
886
|
+
env: ready.env,
|
|
887
|
+
cols: TERMINAL_COLS,
|
|
888
|
+
rows: TERMINAL_ROWS,
|
|
889
|
+
platform: ready.platform,
|
|
890
|
+
});
|
|
891
|
+
if (!terminal) {
|
|
892
|
+
return null;
|
|
893
|
+
}
|
|
894
|
+
const session = new ClaudeSession(terminal, deadlineAt, mayConfirm, deps.onScreen);
|
|
895
|
+
try {
|
|
896
|
+
return await drive(session);
|
|
897
|
+
}
|
|
898
|
+
finally {
|
|
899
|
+
await session.close().catch(() => { });
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
finally {
|
|
903
|
+
await workDir.remove().catch(() => { });
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
const fiveHourCheck = (input, ready) =>
|
|
907
|
+
// oxlint-disable-next-line typescript/promise-function-async -- Hands on the caller's own usage read as it is.
|
|
908
|
+
() => input.fiveHourLimit ? input.fiveHourLimit() : (deps.fiveHourLimit ? deps.fiveHourLimit(ready.command, ready.env) : Promise.resolve("unknown"));
|
|
909
|
+
const redeemOnce = async (input, deadlineAt, timeoutMs) => {
|
|
910
|
+
if (deadlineAt - Date.now() < Math.min(REDEEM_MIN_START_MS, timeoutMs)) {
|
|
911
|
+
return { result: DEADLINE, step: "queue", remember: false };
|
|
912
|
+
}
|
|
913
|
+
const consent = input.fiveHourLimitConsent === true;
|
|
914
|
+
const ready = await preflight(input, input.kind !== "five_hour" && !consent, deadlineAt);
|
|
915
|
+
if (!ready.ok) {
|
|
916
|
+
return { result: ready.refusal, step: ready.step, remember: false };
|
|
917
|
+
}
|
|
918
|
+
// oxlint-disable-next-line eslint/init-declarations -- Set in the session's finally; an initial undefined would read as always undefined to TypeScript.
|
|
919
|
+
let version;
|
|
920
|
+
const outcome = await withSession(ready, deadlineAt, true, async (session) => {
|
|
921
|
+
try {
|
|
922
|
+
const report = await redeemInSession(session, input.kind, consent ? null : fiveHourCheck(input, ready))
|
|
923
|
+
.catch(() => ({ result: { kind: "unknown" }, remember: true }));
|
|
924
|
+
if (session.onboardingCompleted) {
|
|
925
|
+
report.result = { ...report.result, onboardingCompleted: true };
|
|
926
|
+
}
|
|
927
|
+
return report;
|
|
928
|
+
}
|
|
929
|
+
finally {
|
|
930
|
+
version = session.version;
|
|
931
|
+
}
|
|
932
|
+
});
|
|
933
|
+
if (outcome === PREPARATION_EXPIRED) {
|
|
934
|
+
return { result: DEADLINE, step: "terminal", remember: false };
|
|
935
|
+
}
|
|
936
|
+
if (!outcome) {
|
|
937
|
+
return { result: { kind: "unsupported", reason: "unsupported_platform" }, step: "terminal", remember: false };
|
|
938
|
+
}
|
|
939
|
+
return { result: outcome.result, ...(outcome.step ? { step: outcome.step } : {}), ...(version === undefined || version === "" ? {} : { claudeVersion: version }), remember: outcome.remember };
|
|
940
|
+
};
|
|
941
|
+
return {
|
|
942
|
+
// oxlint-disable-next-line typescript/promise-function-async -- A retry with the same key gets the first attempt's very promise.
|
|
943
|
+
redeem: (input) => {
|
|
944
|
+
const timeoutMs = input.timeoutMs ?? defaultTimeoutMs;
|
|
945
|
+
const deadlineAt = Date.now() + timeoutMs;
|
|
946
|
+
const earlier = attempts.get(input.idempotencyKey);
|
|
947
|
+
if (earlier) {
|
|
948
|
+
// One key is one request for one kind. The same key naming another
|
|
949
|
+
// kind is not a retry, and the first attempt's answer is not its answer.
|
|
950
|
+
if (earlier.kind !== input.kind) {
|
|
951
|
+
return Promise.reject(new Error("Claude limit reset: this idempotencyKey was used for another resetId"));
|
|
952
|
+
}
|
|
953
|
+
return earlier.report;
|
|
954
|
+
}
|
|
955
|
+
const attempt = { kind: input.kind, inFlight: true, report: Promise.resolve({ result: BUSY }) };
|
|
956
|
+
const report = exclusive(async () => {
|
|
957
|
+
// A throw after the session opened leaves it unknown what was sent.
|
|
958
|
+
const { remember, ...outcome } = await redeemOnce(input, deadlineAt, timeoutMs).catch(() => ({ result: { kind: "unknown" }, remember: true }));
|
|
959
|
+
attempt.inFlight = false;
|
|
960
|
+
if (!remember && attempts.get(input.idempotencyKey) === attempt) {
|
|
961
|
+
attempts.delete(input.idempotencyKey);
|
|
962
|
+
}
|
|
963
|
+
return outcome;
|
|
964
|
+
}, deadlineAt, () => {
|
|
965
|
+
// Never started: nothing was sent, so the same key may try again.
|
|
966
|
+
attempt.inFlight = false;
|
|
967
|
+
if (attempts.get(input.idempotencyKey) === attempt) {
|
|
968
|
+
attempts.delete(input.idempotencyKey);
|
|
969
|
+
}
|
|
970
|
+
return { result: DEADLINE, step: "queue" };
|
|
971
|
+
});
|
|
972
|
+
if (!report) {
|
|
973
|
+
return Promise.resolve({ result: BUSY, step: "queue" });
|
|
974
|
+
}
|
|
975
|
+
attempt.report = report;
|
|
976
|
+
attempts.set(input.idempotencyKey, attempt);
|
|
977
|
+
return report;
|
|
978
|
+
},
|
|
979
|
+
// oxlint-disable-next-line typescript/promise-function-async -- Answers with the queued run's own promise, as redeem does.
|
|
980
|
+
read: (input) => {
|
|
981
|
+
const timeoutMs = input.timeoutMs ?? defaultTimeoutMs;
|
|
982
|
+
const deadlineAt = Date.now() + timeoutMs;
|
|
983
|
+
// Refused before anything runs; see ClaudeLimitResetsReadInput. A caller that does not say counts as at the limit.
|
|
984
|
+
// oxlint-disable-next-line typescript/no-unnecessary-boolean-literal-compare -- JavaScript callers can omit it; only an explicit false goes on.
|
|
985
|
+
if (input.atFiveHourLimit !== false && input.atFiveHourLimitConsent !== true) {
|
|
986
|
+
return Promise.resolve({ result: CONSENT_REQUIRED, step: "consent" });
|
|
987
|
+
}
|
|
988
|
+
const kinds = READ_ORDER.filter((kind) => kind !== "five_hour" || input.includeFiveHour === true);
|
|
989
|
+
const report = exclusive(async () => {
|
|
990
|
+
try {
|
|
991
|
+
if (deadlineAt - Date.now() < Math.min(READ_MIN_START_MS, timeoutMs)) {
|
|
992
|
+
return { result: DEADLINE, step: "queue" };
|
|
993
|
+
}
|
|
994
|
+
const ready = await preflight(input, false, deadlineAt);
|
|
995
|
+
if (!ready.ok) {
|
|
996
|
+
return { result: ready.refusal, step: ready.step };
|
|
997
|
+
}
|
|
998
|
+
// oxlint-disable-next-line eslint/init-declarations -- As in redeemOnce.
|
|
999
|
+
let version;
|
|
1000
|
+
const outcome = await withSession(ready, deadlineAt, false, async (session) => {
|
|
1001
|
+
try {
|
|
1002
|
+
const readResult = await readInSession(session, kinds, input.atFiveHourLimitConsent === true ? null : fiveHourCheck(input, ready))
|
|
1003
|
+
.catch(() => ({ result: { kind: "unknown" } }));
|
|
1004
|
+
if (session.onboardingCompleted) {
|
|
1005
|
+
readResult.result = { ...readResult.result, onboardingCompleted: true };
|
|
1006
|
+
}
|
|
1007
|
+
return readResult;
|
|
1008
|
+
}
|
|
1009
|
+
finally {
|
|
1010
|
+
version = session.version;
|
|
1011
|
+
}
|
|
1012
|
+
});
|
|
1013
|
+
if (outcome === PREPARATION_EXPIRED) {
|
|
1014
|
+
return { result: DEADLINE, step: "terminal" };
|
|
1015
|
+
}
|
|
1016
|
+
if (!outcome) {
|
|
1017
|
+
return { result: { kind: "unsupported", reason: "unsupported_platform" }, step: "terminal" };
|
|
1018
|
+
}
|
|
1019
|
+
return { result: outcome.result, ...(outcome.step ? { step: outcome.step } : {}), ...(version === undefined || version === "" ? {} : { claudeVersion: version }) };
|
|
1020
|
+
}
|
|
1021
|
+
catch {
|
|
1022
|
+
return { result: { kind: "unknown" } };
|
|
1023
|
+
}
|
|
1024
|
+
}, deadlineAt, () => ({ result: DEADLINE, step: "queue" }));
|
|
1025
|
+
return report ?? Promise.resolve({ result: BUSY, step: "queue" });
|
|
1026
|
+
},
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
//# sourceMappingURL=driver.js.map
|