@andorra-labs/code 0.0.0-stage → 0.1.4
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.md +38 -0
- package/README.md +231 -3
- package/THIRD_PARTY_NOTICES.md +56 -0
- package/dist/src/account-presentation.d.ts +53 -0
- package/dist/src/account-presentation.js +99 -0
- package/dist/src/activity.d.ts +41 -0
- package/dist/src/activity.js +79 -0
- package/dist/src/agent-definitions.d.ts +61 -0
- package/dist/src/agent-definitions.js +303 -0
- package/dist/src/agent-execution.d.ts +4 -0
- package/dist/src/agent-execution.js +1198 -0
- package/dist/src/agent-mcp.d.ts +105 -0
- package/dist/src/agent-mcp.js +859 -0
- package/dist/src/agent-modifiers.d.ts +8 -0
- package/dist/src/agent-modifiers.js +333 -0
- package/dist/src/analytics.d.ts +81 -0
- package/dist/src/analytics.js +81 -0
- package/dist/src/anthropic-console-auth.d.ts +68 -0
- package/dist/src/anthropic-console-auth.js +318 -0
- package/dist/src/anthropic-credentials.d.ts +41 -0
- package/dist/src/anthropic-credentials.js +107 -0
- package/dist/src/app-server/protocol.d.ts +500 -0
- package/dist/src/app-server/protocol.js +106 -0
- package/dist/src/app-server/reasoning.d.ts +43 -0
- package/dist/src/app-server/reasoning.js +173 -0
- package/dist/src/app-server/terminal.d.ts +77 -0
- package/dist/src/app-server/terminal.js +177 -0
- package/dist/src/app-server/workspace.d.ts +247 -0
- package/dist/src/app-server/workspace.js +1098 -0
- package/dist/src/app-server.d.ts +1039 -0
- package/dist/src/app-server.js +6594 -0
- package/dist/src/artifacts.d.ts +27 -0
- package/dist/src/artifacts.js +103 -0
- package/dist/src/attachments.d.ts +158 -0
- package/dist/src/attachments.js +466 -0
- package/dist/src/auth/AuthManager.d.ts +110 -0
- package/dist/src/auth/AuthManager.js +435 -0
- package/dist/src/auth/callback.d.ts +10 -0
- package/dist/src/auth/callback.js +96 -0
- package/dist/src/auth/deployment.d.ts +18 -0
- package/dist/src/auth/deployment.js +18 -0
- package/dist/src/auth/index.d.ts +31 -0
- package/dist/src/auth/index.js +27 -0
- package/dist/src/auth/lock.d.ts +2 -0
- package/dist/src/auth/lock.js +29 -0
- package/dist/src/auth/store.d.ts +20 -0
- package/dist/src/auth/store.js +93 -0
- package/dist/src/auth/types.d.ts +24 -0
- package/dist/src/auth/types.js +8 -0
- package/dist/src/auth-commands.d.ts +5 -0
- package/dist/src/auth-commands.js +28 -0
- package/dist/src/automation-runner.d.ts +7 -0
- package/dist/src/automation-runner.js +113 -0
- package/dist/src/automation-service.d.ts +28 -0
- package/dist/src/automation-service.js +299 -0
- package/dist/src/automation-tool.d.ts +2 -0
- package/dist/src/automation-tool.js +49 -0
- package/dist/src/automation-worker-shutdown.d.ts +3 -0
- package/dist/src/automation-worker-shutdown.js +13 -0
- package/dist/src/automations.d.ts +63 -0
- package/dist/src/automations.js +265 -0
- package/dist/src/boot-trace.d.ts +15 -0
- package/dist/src/boot-trace.js +25 -0
- package/dist/src/browser-activity.d.ts +4 -0
- package/dist/src/browser-activity.js +18 -0
- package/dist/src/browser-bridge.d.ts +56 -0
- package/dist/src/browser-bridge.js +372 -0
- package/dist/src/browser-observation.d.ts +24 -0
- package/dist/src/browser-observation.js +104 -0
- package/dist/src/browser-panel-tool.d.ts +39 -0
- package/dist/src/browser-panel-tool.js +227 -0
- package/dist/src/browser-runner.d.ts +16 -0
- package/dist/src/browser-runner.js +302 -0
- package/dist/src/browser-server.d.ts +31 -0
- package/dist/src/browser-server.js +1189 -0
- package/dist/src/browser-session.d.ts +19 -0
- package/dist/src/browser-session.js +649 -0
- package/dist/src/browser-ui/andorra-logo.png +0 -0
- package/dist/src/browser-ui/app.js +419 -0
- package/dist/src/browser-ui/index.html +13 -0
- package/dist/src/browser-ui/style.css +243 -0
- package/dist/src/browser-view.d.ts +348 -0
- package/dist/src/browser-view.js +1487 -0
- package/dist/src/capabilities.d.ts +9 -0
- package/dist/src/capabilities.js +135 -0
- package/dist/src/clarification-ui.d.ts +23 -0
- package/dist/src/clarification-ui.js +59 -0
- package/dist/src/claude-executable.d.ts +6 -0
- package/dist/src/claude-executable.js +56 -0
- package/dist/src/claude-provider.d.ts +35 -0
- package/dist/src/claude-provider.js +391 -0
- package/dist/src/cli.d.ts +85 -0
- package/dist/src/cli.js +2564 -0
- package/dist/src/code-intelligence/CodeIntelligenceManager.d.ts +108 -0
- package/dist/src/code-intelligence/CodeIntelligenceManager.js +616 -0
- package/dist/src/code-intelligence/ContextLedger.d.ts +32 -0
- package/dist/src/code-intelligence/ContextLedger.js +77 -0
- package/dist/src/code-intelligence/ContextRouter.d.ts +8 -0
- package/dist/src/code-intelligence/ContextRouter.js +18 -0
- package/dist/src/code-intelligence/codegraph/CodeGraphProjectSession.d.ts +82 -0
- package/dist/src/code-intelligence/codegraph/CodeGraphProjectSession.js +444 -0
- package/dist/src/code-intelligence/codegraph/CodeGraphProvider.d.ts +40 -0
- package/dist/src/code-intelligence/codegraph/CodeGraphProvider.js +84 -0
- package/dist/src/code-intelligence/codegraph/CodeGraphSyncBarrier.d.ts +22 -0
- package/dist/src/code-intelligence/codegraph/CodeGraphSyncBarrier.js +71 -0
- package/dist/src/code-intelligence/codegraph/repoExploreTool.d.ts +9 -0
- package/dist/src/code-intelligence/codegraph/repoExploreTool.js +26 -0
- package/dist/src/code-intelligence/repository.d.ts +13 -0
- package/dist/src/code-intelligence/repository.js +48 -0
- package/dist/src/code-intelligence/types.d.ts +78 -0
- package/dist/src/code-intelligence/types.js +3 -0
- package/dist/src/codex-auth.d.ts +83 -0
- package/dist/src/codex-auth.js +168 -0
- package/dist/src/codex-browser-auth.d.ts +74 -0
- package/dist/src/codex-browser-auth.js +429 -0
- package/dist/src/codex-errors.d.ts +3 -0
- package/dist/src/codex-errors.js +50 -0
- package/dist/src/codex-executable.d.ts +12 -0
- package/dist/src/codex-executable.js +154 -0
- package/dist/src/codex-provider.d.ts +25 -0
- package/dist/src/codex-provider.js +211 -0
- package/dist/src/codex-rpc.d.ts +43 -0
- package/dist/src/codex-rpc.js +136 -0
- package/dist/src/coding-tools.d.ts +19 -0
- package/dist/src/coding-tools.js +875 -0
- package/dist/src/command-metrics.d.ts +17 -0
- package/dist/src/command-metrics.js +34 -0
- package/dist/src/command-screens.d.ts +44 -0
- package/dist/src/command-screens.js +601 -0
- package/dist/src/commands.d.ts +111 -0
- package/dist/src/commands.js +550 -0
- package/dist/src/completion.d.ts +45 -0
- package/dist/src/completion.js +195 -0
- package/dist/src/config.d.ts +163 -0
- package/dist/src/config.js +663 -0
- package/dist/src/context-budget.d.ts +32 -0
- package/dist/src/context-budget.js +151 -0
- package/dist/src/context-compaction.d.ts +43 -0
- package/dist/src/context-compaction.js +269 -0
- package/dist/src/context-selection.d.ts +65 -0
- package/dist/src/context-selection.js +130 -0
- package/dist/src/dashboard-view.d.ts +37 -0
- package/dist/src/dashboard-view.js +254 -0
- package/dist/src/dashboard.d.ts +41 -0
- package/dist/src/dashboard.js +160 -0
- package/dist/src/deadline.d.ts +55 -0
- package/dist/src/deadline.js +164 -0
- package/dist/src/decision/ContinuationAdapter.d.ts +6 -0
- package/dist/src/decision/ContinuationAdapter.js +11 -0
- package/dist/src/decision/DecisionEngine.d.ts +23 -0
- package/dist/src/decision/DecisionEngine.js +1 -0
- package/dist/src/decision/DecisionManager.d.ts +47 -0
- package/dist/src/decision/DecisionManager.js +280 -0
- package/dist/src/decision/DecisionPolicy.d.ts +8 -0
- package/dist/src/decision/DecisionPolicy.js +54 -0
- package/dist/src/decision/FactContinuations.d.ts +147 -0
- package/dist/src/decision/FactContinuations.js +472 -0
- package/dist/src/decision/FactServiceGate.d.ts +12 -0
- package/dist/src/decision/FactServiceGate.js +37 -0
- package/dist/src/decision/PreparedSteps.d.ts +51 -0
- package/dist/src/decision/PreparedSteps.js +147 -0
- package/dist/src/decision/applyToolMenu.d.ts +3 -0
- package/dist/src/decision/applyToolMenu.js +61 -0
- package/dist/src/decision/checks.d.ts +13 -0
- package/dist/src/decision/checks.js +104 -0
- package/dist/src/decision/facts.d.ts +64 -0
- package/dist/src/decision/facts.js +90 -0
- package/dist/src/decision/guidancePolicy.d.ts +3 -0
- package/dist/src/decision/guidancePolicy.js +10 -0
- package/dist/src/decision/hostedPolicy.d.ts +14 -0
- package/dist/src/decision/hostedPolicy.js +21 -0
- package/dist/src/decision/index.d.ts +6 -0
- package/dist/src/decision/index.js +6 -0
- package/dist/src/decision/optimizationPolicy.d.ts +26 -0
- package/dist/src/decision/optimizationPolicy.js +38 -0
- package/dist/src/decision/providers/AndorraDecisionProvider.d.ts +17 -0
- package/dist/src/decision/providers/AndorraDecisionProvider.js +251 -0
- package/dist/src/decision/providers/HttpDecisionProvider.d.ts +16 -0
- package/dist/src/decision/providers/HttpDecisionProvider.js +105 -0
- package/dist/src/decision/providers/NoOpDecisionProvider.d.ts +4 -0
- package/dist/src/decision/providers/NoOpDecisionProvider.js +3 -0
- package/dist/src/decision/providers/index.d.ts +3 -0
- package/dist/src/decision/providers/index.js +13 -0
- package/dist/src/decision/providers/questions.d.ts +3 -0
- package/dist/src/decision/providers/questions.js +31 -0
- package/dist/src/decision/routeTools.d.ts +59 -0
- package/dist/src/decision/routeTools.js +131 -0
- package/dist/src/decision/toolFamilies.d.ts +7 -0
- package/dist/src/decision/toolFamilies.js +55 -0
- package/dist/src/decision/toolMenu.d.ts +35 -0
- package/dist/src/decision/toolMenu.js +73 -0
- package/dist/src/decision/types.d.ts +99 -0
- package/dist/src/decision/types.js +1 -0
- package/dist/src/diff-preview.d.ts +6 -0
- package/dist/src/diff-preview.js +120 -0
- package/dist/src/duration.d.ts +44 -0
- package/dist/src/duration.js +72 -0
- package/dist/src/efficiency.d.ts +101 -0
- package/dist/src/efficiency.js +104 -0
- package/dist/src/engine/protocol.d.ts +11 -0
- package/dist/src/engine/protocol.js +51 -0
- package/dist/src/extensions.d.ts +46 -0
- package/dist/src/extensions.js +846 -0
- package/dist/src/favicons.d.ts +37 -0
- package/dist/src/favicons.js +216 -0
- package/dist/src/file-read-state.d.ts +8 -0
- package/dist/src/file-read-state.js +31 -0
- package/dist/src/git-summary.d.ts +67 -0
- package/dist/src/git-summary.js +461 -0
- package/dist/src/goal-completion-verification.d.ts +18 -0
- package/dist/src/goal-completion-verification.js +43 -0
- package/dist/src/graph-account.d.ts +31 -0
- package/dist/src/graph-account.js +57 -0
- package/dist/src/graph-editor-session.d.ts +15 -0
- package/dist/src/graph-editor-session.js +70 -0
- package/dist/src/graph-health.d.ts +88 -0
- package/dist/src/graph-health.js +243 -0
- package/dist/src/graph-provider-portability.d.ts +30 -0
- package/dist/src/graph-provider-portability.js +197 -0
- package/dist/src/graph-quota.d.ts +55 -0
- package/dist/src/graph-quota.js +131 -0
- package/dist/src/graph-runner.d.ts +4 -0
- package/dist/src/graph-runner.js +1356 -0
- package/dist/src/graph-selection.d.ts +17 -0
- package/dist/src/graph-selection.js +31 -0
- package/dist/src/graph-server.d.ts +13 -0
- package/dist/src/graph-server.js +483 -0
- package/dist/src/graph-studio-features.d.ts +61 -0
- package/dist/src/graph-studio-features.js +348 -0
- package/dist/src/graph-sync.d.ts +76 -0
- package/dist/src/graph-sync.js +619 -0
- package/dist/src/graph-ui/andorra-logo.png +0 -0
- package/dist/src/graph-ui/app.js +1803 -0
- package/dist/src/graph-ui/compat.js +43 -0
- package/dist/src/graph-ui/controls.css +190 -0
- package/dist/src/graph-ui/controls.js +567 -0
- package/dist/src/graph-ui/edge-router.js +117 -0
- package/dist/src/graph-ui/embed.js +324 -0
- package/dist/src/graph-ui/fonts/geist-mono-latin-400-normal.woff2 +0 -0
- package/dist/src/graph-ui/fonts/geist-sans-latin-400-normal.woff2 +0 -0
- package/dist/src/graph-ui/fonts/geist-sans-latin-500-normal.woff2 +0 -0
- package/dist/src/graph-ui/icons.js +117 -0
- package/dist/src/graph-ui/index.html +7 -0
- package/dist/src/graph-ui/library.css +26 -0
- package/dist/src/graph-ui/sidebar.js +61 -0
- package/dist/src/graph-ui/studio-canvas.js +454 -0
- package/dist/src/graph-ui/studio.css +110 -0
- package/dist/src/graph-ui/studio.js +720 -0
- package/dist/src/graph-ui/style.css +477 -0
- package/dist/src/graph-ui/theme.js +92 -0
- package/dist/src/graph-ui/tokens.css +187 -0
- package/dist/src/graphs.d.ts +270 -0
- package/dist/src/graphs.js +1102 -0
- package/dist/src/grep-regex-worker.d.ts +1 -0
- package/dist/src/grep-regex-worker.js +20 -0
- package/dist/src/grep-regex.d.ts +11 -0
- package/dist/src/grep-regex.js +64 -0
- package/dist/src/handoffs.d.ts +34 -0
- package/dist/src/handoffs.js +229 -0
- package/dist/src/hardened-runtime.d.ts +14 -0
- package/dist/src/hardened-runtime.js +264 -0
- package/dist/src/limits.d.ts +77 -0
- package/dist/src/limits.js +88 -0
- package/dist/src/markdown.d.ts +31 -0
- package/dist/src/markdown.js +553 -0
- package/dist/src/mcp.d.ts +11 -0
- package/dist/src/mcp.js +175 -0
- package/dist/src/membership-errors.d.ts +4 -0
- package/dist/src/membership-errors.js +4 -0
- package/dist/src/membership.d.ts +81 -0
- package/dist/src/membership.js +247 -0
- package/dist/src/memory/LocalToolMemory.d.ts +20 -0
- package/dist/src/memory/LocalToolMemory.js +114 -0
- package/dist/src/memory/MemoryDistiller.d.ts +35 -0
- package/dist/src/memory/MemoryDistiller.js +216 -0
- package/dist/src/memory/MemoryManager.d.ts +76 -0
- package/dist/src/memory/MemoryManager.js +386 -0
- package/dist/src/memory/MemoryPolicy.d.ts +30 -0
- package/dist/src/memory/MemoryPolicy.js +96 -0
- package/dist/src/memory/MemoryProvider.d.ts +18 -0
- package/dist/src/memory/MemoryProvider.js +1 -0
- package/dist/src/memory/MemoryRetriever.d.ts +27 -0
- package/dist/src/memory/MemoryRetriever.js +149 -0
- package/dist/src/memory/PermissionMemoryProvider.d.ts +22 -0
- package/dist/src/memory/PermissionMemoryProvider.js +50 -0
- package/dist/src/memory/ToolFailureLessons.d.ts +39 -0
- package/dist/src/memory/ToolFailureLessons.js +167 -0
- package/dist/src/memory/index.d.ts +12 -0
- package/dist/src/memory/index.js +11 -0
- package/dist/src/memory/providers/NoOpMemoryProvider.d.ts +13 -0
- package/dist/src/memory/providers/NoOpMemoryProvider.js +15 -0
- package/dist/src/memory/providers/graphiti/GraphitiClient.d.ts +27 -0
- package/dist/src/memory/providers/graphiti/GraphitiClient.js +76 -0
- package/dist/src/memory/providers/graphiti/GraphitiMapper.d.ts +6 -0
- package/dist/src/memory/providers/graphiti/GraphitiMapper.js +116 -0
- package/dist/src/memory/providers/graphiti/GraphitiMemoryProvider.d.ts +27 -0
- package/dist/src/memory/providers/graphiti/GraphitiMemoryProvider.js +137 -0
- package/dist/src/memory/providers/graphiti/GraphitiTypes.d.ts +57 -0
- package/dist/src/memory/providers/graphiti/GraphitiTypes.js +2 -0
- package/dist/src/memory/redaction.d.ts +11 -0
- package/dist/src/memory/redaction.js +58 -0
- package/dist/src/memory/repository.d.ts +11 -0
- package/dist/src/memory/repository.js +74 -0
- package/dist/src/memory/tools/memorySearchTool.d.ts +4 -0
- package/dist/src/memory/tools/memorySearchTool.js +77 -0
- package/dist/src/memory/types.d.ts +112 -0
- package/dist/src/memory/types.js +7 -0
- package/dist/src/model-metadata.d.ts +28 -0
- package/dist/src/model-metadata.js +274 -0
- package/dist/src/model-override.d.ts +60 -0
- package/dist/src/model-override.js +146 -0
- package/dist/src/model-tiers.d.ts +61 -0
- package/dist/src/model-tiers.js +109 -0
- package/dist/src/opencode-catalog.d.ts +16 -0
- package/dist/src/opencode-catalog.js +135 -0
- package/dist/src/opencode-provider.d.ts +10 -0
- package/dist/src/opencode-provider.js +525 -0
- package/dist/src/paged-transcript.d.ts +58 -0
- package/dist/src/paged-transcript.js +205 -0
- package/dist/src/palette.d.ts +61 -0
- package/dist/src/palette.js +63 -0
- package/dist/src/permissions.d.ts +36 -0
- package/dist/src/permissions.js +93 -0
- package/dist/src/powershell-pool.d.ts +26 -0
- package/dist/src/powershell-pool.js +235 -0
- package/dist/src/profile.d.ts +80 -0
- package/dist/src/profile.js +200 -0
- package/dist/src/provider-connection.d.ts +36 -0
- package/dist/src/provider-connection.js +222 -0
- package/dist/src/provider-engine.d.ts +37 -0
- package/dist/src/provider-engine.js +401 -0
- package/dist/src/provider-import.d.ts +68 -0
- package/dist/src/provider-import.js +355 -0
- package/dist/src/provider-settings.d.ts +8 -0
- package/dist/src/provider-settings.js +451 -0
- package/dist/src/providers.d.ts +219 -0
- package/dist/src/providers.js +1230 -0
- package/dist/src/pull-requests.d.ts +195 -0
- package/dist/src/pull-requests.js +514 -0
- package/dist/src/qa/api/http-runner.d.ts +3 -0
- package/dist/src/qa/api/http-runner.js +47 -0
- package/dist/src/qa/browser/PlaywrightRunner.d.ts +21 -0
- package/dist/src/qa/browser/PlaywrightRunner.js +190 -0
- package/dist/src/qa/command-policy.d.ts +28 -0
- package/dist/src/qa/command-policy.js +122 -0
- package/dist/src/qa/git/ChangeDetector.d.ts +26 -0
- package/dist/src/qa/git/ChangeDetector.js +177 -0
- package/dist/src/qa/git/DiffReviewer.d.ts +28 -0
- package/dist/src/qa/git/DiffReviewer.js +115 -0
- package/dist/src/qa/index.d.ts +11 -0
- package/dist/src/qa/index.js +19 -0
- package/dist/src/qa/orchestrator/ChangeClassifier.d.ts +14 -0
- package/dist/src/qa/orchestrator/ChangeClassifier.js +28 -0
- package/dist/src/qa/orchestrator/MergeGate.d.ts +14 -0
- package/dist/src/qa/orchestrator/MergeGate.js +40 -0
- package/dist/src/qa/orchestrator/QaOrchestrator.d.ts +79 -0
- package/dist/src/qa/orchestrator/QaOrchestrator.js +373 -0
- package/dist/src/qa/profile/ProjectInspector.d.ts +9 -0
- package/dist/src/qa/profile/ProjectInspector.js +295 -0
- package/dist/src/qa/profile/QaConfigLoader.d.ts +43 -0
- package/dist/src/qa/profile/QaConfigLoader.js +261 -0
- package/dist/src/qa/profile/QaProfile.d.ts +17 -0
- package/dist/src/qa/profile/QaProfile.js +15 -0
- package/dist/src/qa/profile/yaml.d.ts +12 -0
- package/dist/src/qa/profile/yaml.js +203 -0
- package/dist/src/qa/qa-authorize.d.ts +25 -0
- package/dist/src/qa/qa-authorize.js +82 -0
- package/dist/src/qa/runners/CommandRunner.d.ts +22 -0
- package/dist/src/qa/runners/CommandRunner.js +96 -0
- package/dist/src/qa/runners/TestRunner.d.ts +21 -0
- package/dist/src/qa/runners/TestRunner.js +66 -0
- package/dist/src/qa/runtime/ProcessManager.d.ts +53 -0
- package/dist/src/qa/runtime/ProcessManager.js +225 -0
- package/dist/src/qa/runtime/PtyManager.d.ts +57 -0
- package/dist/src/qa/runtime/PtyManager.js +338 -0
- package/dist/src/qa/runtime/RuntimeSmoke.d.ts +11 -0
- package/dist/src/qa/runtime/RuntimeSmoke.js +78 -0
- package/dist/src/qa/runtime-detect.d.ts +10 -0
- package/dist/src/qa/runtime-detect.js +72 -0
- package/dist/src/qa/security/DependencyScanner.d.ts +19 -0
- package/dist/src/qa/security/DependencyScanner.js +167 -0
- package/dist/src/qa/security/SecretScanner.d.ts +3 -0
- package/dist/src/qa/security/SecretScanner.js +55 -0
- package/dist/src/qa/tools.d.ts +3 -0
- package/dist/src/qa/tools.js +301 -0
- package/dist/src/qa/types.d.ts +134 -0
- package/dist/src/qa/types.js +3 -0
- package/dist/src/react-runtime.d.ts +53 -0
- package/dist/src/react-runtime.js +1753 -0
- package/dist/src/remote/cert.d.ts +29 -0
- package/dist/src/remote/cert.js +136 -0
- package/dist/src/remote/client.d.ts +189 -0
- package/dist/src/remote/client.js +659 -0
- package/dist/src/remote/command.d.ts +4 -0
- package/dist/src/remote/command.js +211 -0
- package/dist/src/remote/engine-pool.d.ts +230 -0
- package/dist/src/remote/engine-pool.js +1160 -0
- package/dist/src/remote/errors.d.ts +26 -0
- package/dist/src/remote/errors.js +21 -0
- package/dist/src/remote/network.d.ts +48 -0
- package/dist/src/remote/network.js +135 -0
- package/dist/src/remote/pairing.d.ts +98 -0
- package/dist/src/remote/pairing.js +306 -0
- package/dist/src/remote/roots.d.ts +29 -0
- package/dist/src/remote/roots.js +44 -0
- package/dist/src/remote/serve.d.ts +115 -0
- package/dist/src/remote/serve.js +274 -0
- package/dist/src/remote/server.d.ts +35 -0
- package/dist/src/remote/server.js +484 -0
- package/dist/src/remote/types.d.ts +86 -0
- package/dist/src/remote/types.js +11 -0
- package/dist/src/run-control.d.ts +17 -0
- package/dist/src/run-control.js +52 -0
- package/dist/src/run-progress.d.ts +226 -0
- package/dist/src/run-progress.js +724 -0
- package/dist/src/run-records.d.ts +500 -0
- package/dist/src/run-records.js +1678 -0
- package/dist/src/runtime.d.ts +418 -0
- package/dist/src/runtime.js +247 -0
- package/dist/src/sandbox-child.d.ts +1 -0
- package/dist/src/sandbox-child.js +14 -0
- package/dist/src/save-lock.d.ts +9 -0
- package/dist/src/save-lock.js +186 -0
- package/dist/src/session-monitor.d.ts +98 -0
- package/dist/src/session-monitor.js +323 -0
- package/dist/src/session-reaper.d.ts +23 -0
- package/dist/src/session-reaper.js +33 -0
- package/dist/src/session-summary.d.ts +27 -0
- package/dist/src/session-summary.js +66 -0
- package/dist/src/session-title.d.ts +18 -0
- package/dist/src/session-title.js +54 -0
- package/dist/src/sessions.d.ts +211 -0
- package/dist/src/sessions.js +620 -0
- package/dist/src/shell.d.ts +40 -0
- package/dist/src/shell.js +504 -0
- package/dist/src/side-panel.d.ts +144 -0
- package/dist/src/side-panel.js +366 -0
- package/dist/src/skill-commands.d.ts +1 -0
- package/dist/src/skill-commands.js +11 -0
- package/dist/src/skills/bundled/ai-elements/SKILL.md +155 -0
- package/dist/src/skills/bundled/ai-elements/references/agent.md +138 -0
- package/dist/src/skills/bundled/ai-elements/references/artifact.md +91 -0
- package/dist/src/skills/bundled/ai-elements/references/attachments.md +197 -0
- package/dist/src/skills/bundled/ai-elements/references/audio-player.md +141 -0
- package/dist/src/skills/bundled/ai-elements/references/canvas.md +39 -0
- package/dist/src/skills/bundled/ai-elements/references/chain-of-thought.md +88 -0
- package/dist/src/skills/bundled/ai-elements/references/checkpoint.md +171 -0
- package/dist/src/skills/bundled/ai-elements/references/code-block.md +177 -0
- package/dist/src/skills/bundled/ai-elements/references/commit.md +184 -0
- package/dist/src/skills/bundled/ai-elements/references/confirmation.md +268 -0
- package/dist/src/skills/bundled/ai-elements/references/connection.md +39 -0
- package/dist/src/skills/bundled/ai-elements/references/context.md +133 -0
- package/dist/src/skills/bundled/ai-elements/references/controls.md +37 -0
- package/dist/src/skills/bundled/ai-elements/references/conversation.md +224 -0
- package/dist/src/skills/bundled/ai-elements/references/edge.md +57 -0
- package/dist/src/skills/bundled/ai-elements/references/environment-variables.md +109 -0
- package/dist/src/skills/bundled/ai-elements/references/file-tree.md +79 -0
- package/dist/src/skills/bundled/ai-elements/references/image.md +150 -0
- package/dist/src/skills/bundled/ai-elements/references/inline-citation.md +300 -0
- package/dist/src/skills/bundled/ai-elements/references/jsx-preview.md +108 -0
- package/dist/src/skills/bundled/ai-elements/references/message.md +231 -0
- package/dist/src/skills/bundled/ai-elements/references/mic-selector.md +193 -0
- package/dist/src/skills/bundled/ai-elements/references/model-selector.md +119 -0
- package/dist/src/skills/bundled/ai-elements/references/node.md +78 -0
- package/dist/src/skills/bundled/ai-elements/references/open-in-chat.md +74 -0
- package/dist/src/skills/bundled/ai-elements/references/package-info.md +102 -0
- package/dist/src/skills/bundled/ai-elements/references/panel.md +38 -0
- package/dist/src/skills/bundled/ai-elements/references/persona.md +173 -0
- package/dist/src/skills/bundled/ai-elements/references/plan.md +86 -0
- package/dist/src/skills/bundled/ai-elements/references/prompt-input.md +572 -0
- package/dist/src/skills/bundled/ai-elements/references/queue.md +179 -0
- package/dist/src/skills/bundled/ai-elements/references/reasoning.md +226 -0
- package/dist/src/skills/bundled/ai-elements/references/sandbox.md +133 -0
- package/dist/src/skills/bundled/ai-elements/references/schema-display.md +109 -0
- package/dist/src/skills/bundled/ai-elements/references/shimmer.md +55 -0
- package/dist/src/skills/bundled/ai-elements/references/snippet.md +71 -0
- package/dist/src/skills/bundled/ai-elements/references/sources.md +200 -0
- package/dist/src/skills/bundled/ai-elements/references/speech-input.md +167 -0
- package/dist/src/skills/bundled/ai-elements/references/stack-trace.md +225 -0
- package/dist/src/skills/bundled/ai-elements/references/suggestion.md +128 -0
- package/dist/src/skills/bundled/ai-elements/references/task.md +222 -0
- package/dist/src/skills/bundled/ai-elements/references/terminal.md +110 -0
- package/dist/src/skills/bundled/ai-elements/references/test-results.md +164 -0
- package/dist/src/skills/bundled/ai-elements/references/tool.md +282 -0
- package/dist/src/skills/bundled/ai-elements/references/toolbar.md +37 -0
- package/dist/src/skills/bundled/ai-elements/references/transcription.md +127 -0
- package/dist/src/skills/bundled/ai-elements/references/voice-selector.md +248 -0
- package/dist/src/skills/bundled/ai-elements/references/web-preview.md +204 -0
- package/dist/src/skills/bundled/ai-elements/scripts/agent.tsx +67 -0
- package/dist/src/skills/bundled/ai-elements/scripts/artifact.tsx +117 -0
- package/dist/src/skills/bundled/ai-elements/scripts/attachments-inline.tsx +123 -0
- package/dist/src/skills/bundled/ai-elements/scripts/attachments-list.tsx +94 -0
- package/dist/src/skills/bundled/ai-elements/scripts/attachments.tsx +84 -0
- package/dist/src/skills/bundled/ai-elements/scripts/audio-player-remote.tsx +35 -0
- package/dist/src/skills/bundled/ai-elements/scripts/audio-player.tsx +74 -0
- package/dist/src/skills/bundled/ai-elements/scripts/chain-of-thought.tsx +80 -0
- package/dist/src/skills/bundled/ai-elements/scripts/checkpoint.tsx +96 -0
- package/dist/src/skills/bundled/ai-elements/scripts/code-block-dark.tsx +46 -0
- package/dist/src/skills/bundled/ai-elements/scripts/code-block.tsx +120 -0
- package/dist/src/skills/bundled/ai-elements/scripts/commit.tsx +94 -0
- package/dist/src/skills/bundled/ai-elements/scripts/confirmation-accepted.tsx +41 -0
- package/dist/src/skills/bundled/ai-elements/scripts/confirmation-rejected.tsx +41 -0
- package/dist/src/skills/bundled/ai-elements/scripts/confirmation-request.tsx +54 -0
- package/dist/src/skills/bundled/ai-elements/scripts/confirmation.tsx +59 -0
- package/dist/src/skills/bundled/ai-elements/scripts/context.tsx +45 -0
- package/dist/src/skills/bundled/ai-elements/scripts/conversation.tsx +182 -0
- package/dist/src/skills/bundled/ai-elements/scripts/environment-variables.tsx +61 -0
- package/dist/src/skills/bundled/ai-elements/scripts/file-tree-basic.tsx +20 -0
- package/dist/src/skills/bundled/ai-elements/scripts/file-tree-expanded.tsx +23 -0
- package/dist/src/skills/bundled/ai-elements/scripts/file-tree-selection.tsx +26 -0
- package/dist/src/skills/bundled/ai-elements/scripts/file-tree.tsx +44 -0
- package/dist/src/skills/bundled/ai-elements/scripts/image.tsx +20 -0
- package/dist/src/skills/bundled/ai-elements/scripts/inline-citation.tsx +101 -0
- package/dist/src/skills/bundled/ai-elements/scripts/jsx-preview.tsx +105 -0
- package/dist/src/skills/bundled/ai-elements/scripts/message.tsx +330 -0
- package/dist/src/skills/bundled/ai-elements/scripts/mic-selector.tsx +52 -0
- package/dist/src/skills/bundled/ai-elements/scripts/model-selector.tsx +368 -0
- package/dist/src/skills/bundled/ai-elements/scripts/open-in-chat.tsx +33 -0
- package/dist/src/skills/bundled/ai-elements/scripts/package-info.tsx +52 -0
- package/dist/src/skills/bundled/ai-elements/scripts/persona-command.tsx +101 -0
- package/dist/src/skills/bundled/ai-elements/scripts/persona-glint.tsx +101 -0
- package/dist/src/skills/bundled/ai-elements/scripts/persona-halo.tsx +101 -0
- package/dist/src/skills/bundled/ai-elements/scripts/persona-mana.tsx +101 -0
- package/dist/src/skills/bundled/ai-elements/scripts/persona-obsidian.tsx +101 -0
- package/dist/src/skills/bundled/ai-elements/scripts/persona-opal.tsx +101 -0
- package/dist/src/skills/bundled/ai-elements/scripts/plan.tsx +69 -0
- package/dist/src/skills/bundled/ai-elements/scripts/prompt-input-cursor.tsx +462 -0
- package/dist/src/skills/bundled/ai-elements/scripts/prompt-input-tooltip.tsx +46 -0
- package/dist/src/skills/bundled/ai-elements/scripts/prompt-input.tsx +254 -0
- package/dist/src/skills/bundled/ai-elements/scripts/queue-prompt-input.tsx +372 -0
- package/dist/src/skills/bundled/ai-elements/scripts/queue.tsx +281 -0
- package/dist/src/skills/bundled/ai-elements/scripts/reasoning.tsx +73 -0
- package/dist/src/skills/bundled/ai-elements/scripts/sandbox.tsx +171 -0
- package/dist/src/skills/bundled/ai-elements/scripts/schema-display-basic.tsx +13 -0
- package/dist/src/skills/bundled/ai-elements/scripts/schema-display-body.tsx +20 -0
- package/dist/src/skills/bundled/ai-elements/scripts/schema-display-nested.tsx +23 -0
- package/dist/src/skills/bundled/ai-elements/scripts/schema-display-params.tsx +16 -0
- package/dist/src/skills/bundled/ai-elements/scripts/schema-display.tsx +110 -0
- package/dist/src/skills/bundled/ai-elements/scripts/shimmer-duration.tsx +35 -0
- package/dist/src/skills/bundled/ai-elements/scripts/shimmer-elements.tsx +45 -0
- package/dist/src/skills/bundled/ai-elements/scripts/shimmer.tsx +17 -0
- package/dist/src/skills/bundled/ai-elements/scripts/snippet-plain.tsx +19 -0
- package/dist/src/skills/bundled/ai-elements/scripts/snippet.tsx +25 -0
- package/dist/src/skills/bundled/ai-elements/scripts/sources-custom.tsx +40 -0
- package/dist/src/skills/bundled/ai-elements/scripts/sources.tsx +33 -0
- package/dist/src/skills/bundled/ai-elements/scripts/speech-input.tsx +85 -0
- package/dist/src/skills/bundled/ai-elements/scripts/stack-trace-collapsed.tsx +39 -0
- package/dist/src/skills/bundled/ai-elements/scripts/stack-trace-no-internal.tsx +41 -0
- package/dist/src/skills/bundled/ai-elements/scripts/stack-trace.tsx +60 -0
- package/dist/src/skills/bundled/ai-elements/scripts/suggestion-input.tsx +142 -0
- package/dist/src/skills/bundled/ai-elements/scripts/suggestion.tsx +34 -0
- package/dist/src/skills/bundled/ai-elements/scripts/task.tsx +59 -0
- package/dist/src/skills/bundled/ai-elements/scripts/terminal-basic.tsx +7 -0
- package/dist/src/skills/bundled/ai-elements/scripts/terminal-clear.tsx +19 -0
- package/dist/src/skills/bundled/ai-elements/scripts/terminal-streaming.tsx +38 -0
- package/dist/src/skills/bundled/ai-elements/scripts/terminal.tsx +83 -0
- package/dist/src/skills/bundled/ai-elements/scripts/test-results-basic.tsx +27 -0
- package/dist/src/skills/bundled/ai-elements/scripts/test-results-errors.tsx +51 -0
- package/dist/src/skills/bundled/ai-elements/scripts/test-results-suites.tsx +40 -0
- package/dist/src/skills/bundled/ai-elements/scripts/test-results.tsx +84 -0
- package/dist/src/skills/bundled/ai-elements/scripts/tool-input-available.tsx +31 -0
- package/dist/src/skills/bundled/ai-elements/scripts/tool-input-streaming.tsx +30 -0
- package/dist/src/skills/bundled/ai-elements/scripts/tool-output-available.tsx +81 -0
- package/dist/src/skills/bundled/ai-elements/scripts/tool-output-error.tsx +50 -0
- package/dist/src/skills/bundled/ai-elements/scripts/tool.tsx +210 -0
- package/dist/src/skills/bundled/ai-elements/scripts/transcription.tsx +289 -0
- package/dist/src/skills/bundled/ai-elements/scripts/voice-selector.tsx +233 -0
- package/dist/src/skills/bundled/ai-elements/scripts/web-preview.tsx +105 -0
- package/dist/src/skills/bundled/control-browser/SKILL.md +21 -0
- package/dist/src/skills/bundled/dynamic-workflows/SKILL.md +1520 -0
- package/dist/src/skills/bundled/dynamic-workflows/examples.md +801 -0
- package/dist/src/skills/bundled/dynamic-workflows/patterns.md +460 -0
- package/dist/src/skills/bundled/provenance.json +684 -0
- package/dist/src/skills/bundled/web-gui-tester/SKILL.md +159 -0
- package/dist/src/skills/project-skills.d.ts +11 -0
- package/dist/src/skills/project-skills.js +132 -0
- package/dist/src/skills/runtime-skills.d.ts +10 -0
- package/dist/src/skills/runtime-skills.js +237 -0
- package/dist/src/subagent-run.d.ts +278 -0
- package/dist/src/subagent-run.js +930 -0
- package/dist/src/telemetry/aggregate.d.ts +80 -0
- package/dist/src/telemetry/aggregate.js +217 -0
- package/dist/src/telemetry/capture-core.d.ts +190 -0
- package/dist/src/telemetry/capture-core.js +374 -0
- package/dist/src/telemetry/capture.d.ts +5 -0
- package/dist/src/telemetry/capture.js +16 -0
- package/dist/src/telemetry/classify.d.ts +102 -0
- package/dist/src/telemetry/classify.js +252 -0
- package/dist/src/telemetry/decision-capture.d.ts +13 -0
- package/dist/src/telemetry/decision-capture.js +40 -0
- package/dist/src/telemetry/emitter.d.ts +77 -0
- package/dist/src/telemetry/emitter.js +279 -0
- package/dist/src/telemetry/gate.d.ts +48 -0
- package/dist/src/telemetry/gate.js +55 -0
- package/dist/src/telemetry/identity.d.ts +19 -0
- package/dist/src/telemetry/identity.js +109 -0
- package/dist/src/telemetry/outbox.d.ts +91 -0
- package/dist/src/telemetry/outbox.js +356 -0
- package/dist/src/telemetry/schema.d.ts +184 -0
- package/dist/src/telemetry/schema.js +492 -0
- package/dist/src/telemetry/state.d.ts +90 -0
- package/dist/src/telemetry/state.js +195 -0
- package/dist/src/telemetry/surface.d.ts +76 -0
- package/dist/src/telemetry/surface.js +116 -0
- package/dist/src/telemetry/uploader.d.ts +29 -0
- package/dist/src/telemetry/uploader.js +151 -0
- package/dist/src/telemetry/uploads.d.ts +13 -0
- package/dist/src/telemetry/uploads.js +19 -0
- package/dist/src/telemetry/version.d.ts +5 -0
- package/dist/src/telemetry/version.js +25 -0
- package/dist/src/telemetry/workspace.d.ts +14 -0
- package/dist/src/telemetry/workspace.js +93 -0
- package/dist/src/terminal-ui.d.ts +744 -0
- package/dist/src/terminal-ui.js +3012 -0
- package/dist/src/text.d.ts +2 -0
- package/dist/src/text.js +8 -0
- package/dist/src/timers.d.ts +189 -0
- package/dist/src/timers.js +244 -0
- package/dist/src/todos.d.ts +12 -0
- package/dist/src/todos.js +33 -0
- package/dist/src/token-rate.d.ts +119 -0
- package/dist/src/token-rate.js +287 -0
- package/dist/src/tool-activity.d.ts +20 -0
- package/dist/src/tool-activity.js +76 -0
- package/dist/src/tool-call-clock.d.ts +32 -0
- package/dist/src/tool-call-clock.js +157 -0
- package/dist/src/tool-catalog.d.ts +40 -0
- package/dist/src/tool-catalog.js +100 -0
- package/dist/src/tool-dependencies.d.ts +23 -0
- package/dist/src/tool-dependencies.js +36 -0
- package/dist/src/tool-diff-stats.d.ts +24 -0
- package/dist/src/tool-diff-stats.js +122 -0
- package/dist/src/tool-errors.d.ts +12 -0
- package/dist/src/tool-errors.js +13 -0
- package/dist/src/tool-failure-tracker.d.ts +17 -0
- package/dist/src/tool-failure-tracker.js +71 -0
- package/dist/src/tool-names.d.ts +16 -0
- package/dist/src/tool-names.js +75 -0
- package/dist/src/tool-result-filter.d.ts +65 -0
- package/dist/src/tool-result-filter.js +447 -0
- package/dist/src/tool-schema-compatibility.d.ts +2 -0
- package/dist/src/tool-schema-compatibility.js +42 -0
- package/dist/src/tools.d.ts +3 -0
- package/dist/src/tools.js +663 -0
- package/dist/src/trajectory.d.ts +34 -0
- package/dist/src/trajectory.js +426 -0
- package/dist/src/transcript.d.ts +45 -0
- package/dist/src/transcript.js +228 -0
- package/dist/src/types.d.ts +248 -0
- package/dist/src/types.js +1 -0
- package/dist/src/update.d.ts +48 -0
- package/dist/src/update.js +614 -0
- package/dist/src/usage-analytics.d.ts +48 -0
- package/dist/src/usage-analytics.js +663 -0
- package/dist/src/widgets.d.ts +45 -0
- package/dist/src/widgets.js +71 -0
- package/dist/src/workspace-facts.d.ts +35 -0
- package/dist/src/workspace-facts.js +85 -0
- package/dist/src/workspace-git-metadata.d.ts +6 -0
- package/dist/src/workspace-git-metadata.js +114 -0
- package/dist/src/workspace-instructions.d.ts +7 -0
- package/dist/src/workspace-instructions.js +46 -0
- package/dist/vendor/engine/LICENSE.upstream +21 -0
- package/dist/vendor/engine/provenance.json +17923 -0
- package/dist/vendor/engine/runtime/agent/agent-loop.d.ts +23 -0
- package/dist/vendor/engine/runtime/agent/agent-loop.js +601 -0
- package/dist/vendor/engine/runtime/agent/agent.d.ts +130 -0
- package/dist/vendor/engine/runtime/agent/agent.js +430 -0
- package/dist/vendor/engine/runtime/agent/harness/agent-harness.d.ts +715 -0
- package/dist/vendor/engine/runtime/agent/harness/agent-harness.js +5 -0
- package/dist/vendor/engine/runtime/agent/harness/compaction/branch-summarization.d.ts +67 -0
- package/dist/vendor/engine/runtime/agent/harness/compaction/branch-summarization.js +175 -0
- package/dist/vendor/engine/runtime/agent/harness/compaction/compaction.d.ts +125 -0
- package/dist/vendor/engine/runtime/agent/harness/compaction/compaction.js +559 -0
- package/dist/vendor/engine/runtime/agent/harness/compaction/utils.d.ts +24 -0
- package/dist/vendor/engine/runtime/agent/harness/compaction/utils.js +119 -0
- package/dist/vendor/engine/runtime/agent/harness/config.d.ts +8 -0
- package/dist/vendor/engine/runtime/agent/harness/config.js +34 -0
- package/dist/vendor/engine/runtime/agent/harness/context.d.ts +8 -0
- package/dist/vendor/engine/runtime/agent/harness/context.js +12 -0
- package/dist/vendor/engine/runtime/agent/harness/events.d.ts +24 -0
- package/dist/vendor/engine/runtime/agent/harness/events.js +249 -0
- package/dist/vendor/engine/runtime/agent/harness/execution/assistant.d.ts +41 -0
- package/dist/vendor/engine/runtime/agent/harness/execution/assistant.js +81 -0
- package/dist/vendor/engine/runtime/agent/harness/execution/effect-gate.d.ts +21 -0
- package/dist/vendor/engine/runtime/agent/harness/execution/effect-gate.js +48 -0
- package/dist/vendor/engine/runtime/agent/harness/execution/tools.d.ts +66 -0
- package/dist/vendor/engine/runtime/agent/harness/execution/tools.js +118 -0
- package/dist/vendor/engine/runtime/agent/harness/hooks.d.ts +37 -0
- package/dist/vendor/engine/runtime/agent/harness/hooks.js +405 -0
- package/dist/vendor/engine/runtime/agent/harness/messages.d.ts +50 -0
- package/dist/vendor/engine/runtime/agent/harness/messages.js +102 -0
- package/dist/vendor/engine/runtime/agent/harness/prompt-templates.d.ts +48 -0
- package/dist/vendor/engine/runtime/agent/harness/prompt-templates.js +224 -0
- package/dist/vendor/engine/runtime/agent/harness/result.d.ts +132 -0
- package/dist/vendor/engine/runtime/agent/harness/result.js +80 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/boundary.d.ts +27 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/boundary.js +172 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/checkpoint.d.ts +7 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/checkpoint.js +132 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/deferred.d.ts +14 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/deferred.js +178 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/generation.d.ts +7 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/generation.js +204 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/reconcile.d.ts +4 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/reconcile.js +139 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/recovery.d.ts +7 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/recovery.js +84 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/response.d.ts +22 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/response.js +393 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/retry.d.ts +3 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/retry.js +33 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/structural.d.ts +31 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/structural.js +928 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/terminal.d.ts +6 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/terminal.js +48 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/tool-placement.d.ts +13 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/tool-placement.js +218 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/tools.d.ts +5 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/tools.js +448 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive.d.ts +5 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive.js +92 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/harness.d.ts +58 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/harness.js +310 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/lane.d.ts +117 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/lane.js +1574 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/progress.d.ts +14 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/progress.js +65 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/reducer.d.ts +4 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/reducer.js +239 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/restore.d.ts +23 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/restore.js +116 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/transcript.d.ts +20 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/transcript.js +71 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/types.d.ts +104 -0
- package/dist/vendor/engine/runtime/agent/harness/runtime/types.js +60 -0
- package/dist/vendor/engine/runtime/agent/harness/session/commit.d.ts +52 -0
- package/dist/vendor/engine/runtime/agent/harness/session/commit.js +56 -0
- package/dist/vendor/engine/runtime/agent/harness/session/context.d.ts +9 -0
- package/dist/vendor/engine/runtime/agent/harness/session/context.js +48 -0
- package/dist/vendor/engine/runtime/agent/harness/session/fork-policy.d.ts +20 -0
- package/dist/vendor/engine/runtime/agent/harness/session/fork-policy.js +54 -0
- package/dist/vendor/engine/runtime/agent/harness/session/fork.d.ts +15 -0
- package/dist/vendor/engine/runtime/agent/harness/session/fork.js +78 -0
- package/dist/vendor/engine/runtime/agent/harness/session/in-memory-storage-state.d.ts +38 -0
- package/dist/vendor/engine/runtime/agent/harness/session/in-memory-storage-state.js +275 -0
- package/dist/vendor/engine/runtime/agent/harness/session/index.d.ts +10 -0
- package/dist/vendor/engine/runtime/agent/harness/session/index.js +8 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/codec.d.ts +20 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/codec.js +44 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/fork.d.ts +37 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/fork.js +263 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/index.d.ts +3 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/index.js +3 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/io.d.ts +13 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/io.js +85 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/legacy-v3.d.ts +43 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/legacy-v3.js +461 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/repo.d.ts +34 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/repo.js +300 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/storage.d.ts +40 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/storage.js +199 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/types.d.ts +38 -0
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/types.js +2 -0
- package/dist/vendor/engine/runtime/agent/harness/session/memory.d.ts +47 -0
- package/dist/vendor/engine/runtime/agent/harness/session/memory.js +368 -0
- package/dist/vendor/engine/runtime/agent/harness/session/mutation-line.d.ts +7 -0
- package/dist/vendor/engine/runtime/agent/harness/session/mutation-line.js +20 -0
- package/dist/vendor/engine/runtime/agent/harness/session/session.d.ts +81 -0
- package/dist/vendor/engine/runtime/agent/harness/session/session.js +360 -0
- package/dist/vendor/engine/runtime/agent/harness/session/types.d.ts +511 -0
- package/dist/vendor/engine/runtime/agent/harness/session/types.js +8 -0
- package/dist/vendor/engine/runtime/agent/harness/session/values.d.ts +94 -0
- package/dist/vendor/engine/runtime/agent/harness/session/values.js +80 -0
- package/dist/vendor/engine/runtime/agent/harness/skills.d.ts +45 -0
- package/dist/vendor/engine/runtime/agent/harness/skills.js +325 -0
- package/dist/vendor/engine/runtime/agent/harness/system-prompt.d.ts +2 -0
- package/dist/vendor/engine/runtime/agent/harness/system-prompt.js +29 -0
- package/dist/vendor/engine/runtime/agent/harness/telemetry.d.ts +1241 -0
- package/dist/vendor/engine/runtime/agent/harness/telemetry.js +526 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/bash.d.ts +26 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/bash.js +104 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/edit-diff.d.ts +88 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/edit-diff.js +385 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/edit.d.ts +18 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/edit.js +107 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/file-mutation-queue.d.ts +4 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/file-mutation-queue.js +45 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/image.d.ts +2 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/image.js +105 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/index.d.ts +5 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/index.js +4 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/path-utils.d.ts +4 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/path-utils.js +25 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/read.d.ts +34 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/read.js +107 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/tool-context.d.ts +5 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/tool-context.js +1 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/write.d.ts +10 -0
- package/dist/vendor/engine/runtime/agent/harness/tools/write.js +30 -0
- package/dist/vendor/engine/runtime/agent/harness/types.d.ts +304 -0
- package/dist/vendor/engine/runtime/agent/harness/types.js +74 -0
- package/dist/vendor/engine/runtime/agent/harness/utils/adaptive-publisher.d.ts +23 -0
- package/dist/vendor/engine/runtime/agent/harness/utils/adaptive-publisher.js +78 -0
- package/dist/vendor/engine/runtime/agent/harness/utils/output-capture.d.ts +30 -0
- package/dist/vendor/engine/runtime/agent/harness/utils/output-capture.js +216 -0
- package/dist/vendor/engine/runtime/agent/harness/utils/shell-output.d.ts +28 -0
- package/dist/vendor/engine/runtime/agent/harness/utils/shell-output.js +70 -0
- package/dist/vendor/engine/runtime/agent/harness/utils/truncate.d.ts +70 -0
- package/dist/vendor/engine/runtime/agent/harness/utils/truncate.js +295 -0
- package/dist/vendor/engine/runtime/agent/harness/utils/usage.d.ts +3 -0
- package/dist/vendor/engine/runtime/agent/harness/utils/usage.js +32 -0
- package/dist/vendor/engine/runtime/agent/index.d.ts +27 -0
- package/dist/vendor/engine/runtime/agent/index.js +25 -0
- package/dist/vendor/engine/runtime/agent/proxy.d.ts +71 -0
- package/dist/vendor/engine/runtime/agent/proxy.js +309 -0
- package/dist/vendor/engine/runtime/agent/search/index.d.ts +28 -0
- package/dist/vendor/engine/runtime/agent/search/index.js +1 -0
- package/dist/vendor/engine/runtime/agent/stream-fn.d.ts +9 -0
- package/dist/vendor/engine/runtime/agent/stream-fn.js +16 -0
- package/dist/vendor/engine/runtime/agent/types.d.ts +431 -0
- package/dist/vendor/engine/runtime/agent/types.js +1 -0
- package/dist/vendor/engine/runtime/ai/api/anthropic-messages.d.ts +70 -0
- package/dist/vendor/engine/runtime/ai/api/anthropic-messages.js +1204 -0
- package/dist/vendor/engine/runtime/ai/api/anthropic-messages.lazy.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/anthropic-messages.lazy.js +2 -0
- package/dist/vendor/engine/runtime/ai/api/azure-openai-responses.d.ts +16 -0
- package/dist/vendor/engine/runtime/ai/api/azure-openai-responses.js +260 -0
- package/dist/vendor/engine/runtime/ai/api/azure-openai-responses.lazy.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/azure-openai-responses.lazy.js +2 -0
- package/dist/vendor/engine/runtime/ai/api/bedrock-converse-stream.d.ts +37 -0
- package/dist/vendor/engine/runtime/ai/api/bedrock-converse-stream.js +1091 -0
- package/dist/vendor/engine/runtime/ai/api/bedrock-converse-stream.lazy.d.ts +9 -0
- package/dist/vendor/engine/runtime/ai/api/bedrock-converse-stream.lazy.js +21 -0
- package/dist/vendor/engine/runtime/ai/api/constrained-sampling.d.ts +19 -0
- package/dist/vendor/engine/runtime/ai/api/constrained-sampling.js +221 -0
- package/dist/vendor/engine/runtime/ai/api/github-copilot-headers.d.ts +7 -0
- package/dist/vendor/engine/runtime/ai/api/github-copilot-headers.js +28 -0
- package/dist/vendor/engine/runtime/ai/api/google-generative-ai.d.ts +12 -0
- package/dist/vendor/engine/runtime/ai/api/google-generative-ai.js +368 -0
- package/dist/vendor/engine/runtime/ai/api/google-generative-ai.lazy.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/google-generative-ai.lazy.js +2 -0
- package/dist/vendor/engine/runtime/ai/api/google-shared.d.ts +92 -0
- package/dist/vendor/engine/runtime/ai/api/google-shared.js +450 -0
- package/dist/vendor/engine/runtime/ai/api/google-vertex.d.ts +14 -0
- package/dist/vendor/engine/runtime/ai/api/google-vertex.js +429 -0
- package/dist/vendor/engine/runtime/ai/api/google-vertex.lazy.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/google-vertex.lazy.js +2 -0
- package/dist/vendor/engine/runtime/ai/api/lazy.d.ts +24 -0
- package/dist/vendor/engine/runtime/ai/api/lazy.js +69 -0
- package/dist/vendor/engine/runtime/ai/api/mistral-conversations.d.ts +24 -0
- package/dist/vendor/engine/runtime/ai/api/mistral-conversations.js +747 -0
- package/dist/vendor/engine/runtime/ai/api/mistral-conversations.lazy.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/mistral-conversations.lazy.js +2 -0
- package/dist/vendor/engine/runtime/ai/api/openai-codex-responses.d.ts +30 -0
- package/dist/vendor/engine/runtime/ai/api/openai-codex-responses.js +1302 -0
- package/dist/vendor/engine/runtime/ai/api/openai-codex-responses.lazy.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/openai-codex-responses.lazy.js +2 -0
- package/dist/vendor/engine/runtime/ai/api/openai-completions.d.ts +25 -0
- package/dist/vendor/engine/runtime/ai/api/openai-completions.js +1339 -0
- package/dist/vendor/engine/runtime/ai/api/openai-completions.lazy.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/openai-completions.lazy.js +2 -0
- package/dist/vendor/engine/runtime/ai/api/openai-prompt-cache.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/openai-prompt-cache.js +9 -0
- package/dist/vendor/engine/runtime/ai/api/openai-responses-shared.d.ts +27 -0
- package/dist/vendor/engine/runtime/ai/api/openai-responses-shared.js +688 -0
- package/dist/vendor/engine/runtime/ai/api/openai-responses.d.ts +13 -0
- package/dist/vendor/engine/runtime/ai/api/openai-responses.js +292 -0
- package/dist/vendor/engine/runtime/ai/api/openai-responses.lazy.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/openai-responses.lazy.js +2 -0
- package/dist/vendor/engine/runtime/ai/api/openrouter-images.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/openrouter-images.js +131 -0
- package/dist/vendor/engine/runtime/ai/api/openrouter-images.lazy.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/openrouter-images.lazy.js +3 -0
- package/dist/vendor/engine/runtime/ai/api/pi-messages.d.ts +98 -0
- package/dist/vendor/engine/runtime/ai/api/pi-messages.js +312 -0
- package/dist/vendor/engine/runtime/ai/api/pi-messages.lazy.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/api/pi-messages.lazy.js +2 -0
- package/dist/vendor/engine/runtime/ai/api/simple-options.d.ts +14 -0
- package/dist/vendor/engine/runtime/ai/api/simple-options.js +65 -0
- package/dist/vendor/engine/runtime/ai/api/transform-messages.d.ts +7 -0
- package/dist/vendor/engine/runtime/ai/api/transform-messages.js +200 -0
- package/dist/vendor/engine/runtime/ai/auth/context.d.ts +6 -0
- package/dist/vendor/engine/runtime/ai/auth/context.js +33 -0
- package/dist/vendor/engine/runtime/ai/auth/credential-store.d.ts +16 -0
- package/dist/vendor/engine/runtime/ai/auth/credential-store.js +50 -0
- package/dist/vendor/engine/runtime/ai/auth/helpers.d.ts +21 -0
- package/dist/vendor/engine/runtime/ai/auth/helpers.js +52 -0
- package/dist/vendor/engine/runtime/ai/auth/oauth/load.d.ts +28 -0
- package/dist/vendor/engine/runtime/ai/auth/oauth/load.js +55 -0
- package/dist/vendor/engine/runtime/ai/auth/resolve.d.ts +26 -0
- package/dist/vendor/engine/runtime/ai/auth/resolve.js +131 -0
- package/dist/vendor/engine/runtime/ai/auth/types.d.ts +230 -0
- package/dist/vendor/engine/runtime/ai/auth/types.js +1 -0
- package/dist/vendor/engine/runtime/ai/compat/extension-oauth-types.d.ts +38 -0
- package/dist/vendor/engine/runtime/ai/compat/extension-oauth-types.js +1 -0
- package/dist/vendor/engine/runtime/ai/compat.d.ts +66 -0
- package/dist/vendor/engine/runtime/ai/compat.js +201 -0
- package/dist/vendor/engine/runtime/ai/env-api-keys.d.ts +20 -0
- package/dist/vendor/engine/runtime/ai/env-api-keys.js +148 -0
- package/dist/vendor/engine/runtime/ai/image-models.d.ts +9 -0
- package/dist/vendor/engine/runtime/ai/image-models.generated.d.ts +814 -0
- package/dist/vendor/engine/runtime/ai/image-models.generated.js +816 -0
- package/dist/vendor/engine/runtime/ai/image-models.js +22 -0
- package/dist/vendor/engine/runtime/ai/images-api-registry.d.ts +13 -0
- package/dist/vendor/engine/runtime/ai/images-api-registry.js +21 -0
- package/dist/vendor/engine/runtime/ai/images-models.d.ts +94 -0
- package/dist/vendor/engine/runtime/ai/images-models.js +142 -0
- package/dist/vendor/engine/runtime/ai/images.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/images.js +13 -0
- package/dist/vendor/engine/runtime/ai/index.d.ts +36 -0
- package/dist/vendor/engine/runtime/ai/index.js +23 -0
- package/dist/vendor/engine/runtime/ai/legacy-api-aliases.d.ts +41 -0
- package/dist/vendor/engine/runtime/ai/legacy-api-aliases.js +48 -0
- package/dist/vendor/engine/runtime/ai/model-catalog.d.ts +16 -0
- package/dist/vendor/engine/runtime/ai/model-catalog.js +3 -0
- package/dist/vendor/engine/runtime/ai/models-store.d.ts +28 -0
- package/dist/vendor/engine/runtime/ai/models-store.js +16 -0
- package/dist/vendor/engine/runtime/ai/models.d.ts +201 -0
- package/dist/vendor/engine/runtime/ai/models.generated.d.ts +84 -0
- package/dist/vendor/engine/runtime/ai/models.generated.js +86 -0
- package/dist/vendor/engine/runtime/ai/models.js +593 -0
- package/dist/vendor/engine/runtime/ai/oauth.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/oauth.js +1 -0
- package/dist/vendor/engine/runtime/ai/providers/all.d.ts +27 -0
- package/dist/vendor/engine/runtime/ai/providers/all.js +132 -0
- package/dist/vendor/engine/runtime/ai/providers/amazon-bedrock.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/amazon-bedrock.js +92 -0
- package/dist/vendor/engine/runtime/ai/providers/amazon-bedrock.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/amazon-bedrock.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/ant-ling.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/ant-ling.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/ant-ling.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/ant-ling.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/anthropic.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/anthropic.js +55 -0
- package/dist/vendor/engine/runtime/ai/providers/anthropic.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/anthropic.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/azure-openai-responses.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/azure-openai-responses.js +13 -0
- package/dist/vendor/engine/runtime/ai/providers/azure-openai-responses.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/azure-openai-responses.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/baseten.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/baseten.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/baseten.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/baseten.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/cerebras.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/cerebras.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/cerebras.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/cerebras.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-ai-gateway.d.ts +4 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-ai-gateway.js +24 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-ai-gateway.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-ai-gateway.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-auth.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-auth.js +85 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-stream.d.ts +7 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-stream.js +20 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-workers-ai.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-workers-ai.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-workers-ai.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-workers-ai.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/data/.manifest.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/amazon-bedrock.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/ant-ling.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/anthropic.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/azure-openai-responses.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/baseten.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/cerebras.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/cloudflare-ai-gateway.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/cloudflare-workers-ai.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/deepseek.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/fireworks.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/github-copilot.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/google-vertex.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/google.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/groq.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/huggingface.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/kimi-coding.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/meta.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/minimax-cn.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/minimax.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/mistral.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/moonshotai-cn.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/moonshotai.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/nvidia.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/openai-codex.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/openai.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/opencode-go.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/opencode.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/openrouter.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/qwen-token-plan-cn.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/qwen-token-plan-individual.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/qwen-token-plan.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/radius.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/together.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/vercel-ai-gateway.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/xai.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/xiaomi-token-plan-ams.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/xiaomi-token-plan-cn.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/xiaomi-token-plan-sgp.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/xiaomi.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/zai-coding-cn.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/data/zai.json +1 -0
- package/dist/vendor/engine/runtime/ai/providers/deepseek.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/deepseek.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/deepseek.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/deepseek.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/faux.d.ts +102 -0
- package/dist/vendor/engine/runtime/ai/providers/faux.js +488 -0
- package/dist/vendor/engine/runtime/ai/providers/fireworks.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/fireworks.js +18 -0
- package/dist/vendor/engine/runtime/ai/providers/fireworks.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/fireworks.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/github-copilot.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/github-copilot.js +34 -0
- package/dist/vendor/engine/runtime/ai/providers/github-copilot.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/github-copilot.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/google-vertex.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/google-vertex.js +93 -0
- package/dist/vendor/engine/runtime/ai/providers/google-vertex.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/google-vertex.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/google.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/google.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/google.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/google.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/groq.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/groq.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/groq.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/groq.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/huggingface.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/huggingface.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/huggingface.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/huggingface.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/images/register-builtins.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/images/register-builtins.js +33 -0
- package/dist/vendor/engine/runtime/ai/providers/kimi-coding.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/kimi-coding.js +23 -0
- package/dist/vendor/engine/runtime/ai/providers/kimi-coding.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/kimi-coding.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/meta.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/meta.js +23 -0
- package/dist/vendor/engine/runtime/ai/providers/meta.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/meta.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/minimax-cn.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/minimax-cn.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/minimax-cn.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/minimax-cn.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/minimax.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/minimax.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/minimax.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/minimax.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/mistral.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/mistral.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/mistral.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/mistral.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/moonshotai-cn.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/moonshotai-cn.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/moonshotai-cn.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/moonshotai-cn.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/moonshotai.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/moonshotai.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/moonshotai.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/moonshotai.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/nvidia.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/nvidia.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/nvidia.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/nvidia.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/openai-codex.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/openai-codex.js +21 -0
- package/dist/vendor/engine/runtime/ai/providers/openai-codex.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/openai-codex.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/openai.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/openai.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/openai.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/openai.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/opencode-go.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/opencode-go.js +20 -0
- package/dist/vendor/engine/runtime/ai/providers/opencode-go.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/opencode-go.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/opencode-headers.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/opencode-headers.js +21 -0
- package/dist/vendor/engine/runtime/ai/providers/opencode.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/opencode.js +22 -0
- package/dist/vendor/engine/runtime/ai/providers/opencode.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/opencode.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/openrouter-images.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/openrouter-images.js +21 -0
- package/dist/vendor/engine/runtime/ai/providers/openrouter.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/openrouter.js +26 -0
- package/dist/vendor/engine/runtime/ai/providers/openrouter.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/openrouter.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-cn.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-cn.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-cn.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-cn.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-individual.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-individual.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-individual.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-individual.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/radius-config.d.ts +25 -0
- package/dist/vendor/engine/runtime/ai/providers/radius-config.js +62 -0
- package/dist/vendor/engine/runtime/ai/providers/radius.d.ts +8 -0
- package/dist/vendor/engine/runtime/ai/providers/radius.js +77 -0
- package/dist/vendor/engine/runtime/ai/providers/radius.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/radius.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/together.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/together.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/together.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/together.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/vercel-ai-gateway.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/vercel-ai-gateway.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/vercel-ai-gateway.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/vercel-ai-gateway.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/xai.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/xai.js +23 -0
- package/dist/vendor/engine/runtime/ai/providers/xai.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/xai.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-ams.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-ams.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-ams.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-ams.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-cn.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-cn.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-cn.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-cn.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-sgp.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-sgp.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-sgp.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-sgp.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/xiaomi.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/zai-coding-cn.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/zai-coding-cn.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/zai-coding-cn.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/zai-coding-cn.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/providers/zai.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/providers/zai.js +14 -0
- package/dist/vendor/engine/runtime/ai/providers/zai.models.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/providers/zai.models.js +5 -0
- package/dist/vendor/engine/runtime/ai/session-resources.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/session-resources.js +21 -0
- package/dist/vendor/engine/runtime/ai/types.d.ts +835 -0
- package/dist/vendor/engine/runtime/ai/types.js +1 -0
- package/dist/vendor/engine/runtime/ai/utils/abort-signals.d.ts +5 -0
- package/dist/vendor/engine/runtime/ai/utils/abort-signals.js +33 -0
- package/dist/vendor/engine/runtime/ai/utils/abort.d.ts +7 -0
- package/dist/vendor/engine/runtime/ai/utils/abort.js +48 -0
- package/dist/vendor/engine/runtime/ai/utils/assistant-message-frame.d.ts +76 -0
- package/dist/vendor/engine/runtime/ai/utils/assistant-message-frame.js +424 -0
- package/dist/vendor/engine/runtime/ai/utils/diagnostics.d.ts +19 -0
- package/dist/vendor/engine/runtime/ai/utils/diagnostics.js +24 -0
- package/dist/vendor/engine/runtime/ai/utils/error-body.d.ts +24 -0
- package/dist/vendor/engine/runtime/ai/utils/error-body.js +132 -0
- package/dist/vendor/engine/runtime/ai/utils/estimate.d.ts +16 -0
- package/dist/vendor/engine/runtime/ai/utils/estimate.js +94 -0
- package/dist/vendor/engine/runtime/ai/utils/event-stream.d.ts +20 -0
- package/dist/vendor/engine/runtime/ai/utils/event-stream.js +98 -0
- package/dist/vendor/engine/runtime/ai/utils/hash.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/utils/hash.js +13 -0
- package/dist/vendor/engine/runtime/ai/utils/headers.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/utils/headers.js +17 -0
- package/dist/vendor/engine/runtime/ai/utils/json-parse.d.ts +15 -0
- package/dist/vendor/engine/runtime/ai/utils/json-parse.js +112 -0
- package/dist/vendor/engine/runtime/ai/utils/node-http-proxy.d.ts +3 -0
- package/dist/vendor/engine/runtime/ai/utils/node-http-proxy.js +132 -0
- package/dist/vendor/engine/runtime/ai/utils/overflow.d.ts +68 -0
- package/dist/vendor/engine/runtime/ai/utils/overflow.js +177 -0
- package/dist/vendor/engine/runtime/ai/utils/pi-user-agent.d.ts +1 -0
- package/dist/vendor/engine/runtime/ai/utils/pi-user-agent.js +11 -0
- package/dist/vendor/engine/runtime/ai/utils/provider-env.d.ts +6 -0
- package/dist/vendor/engine/runtime/ai/utils/provider-env.js +43 -0
- package/dist/vendor/engine/runtime/ai/utils/provider-retry.d.ts +15 -0
- package/dist/vendor/engine/runtime/ai/utils/provider-retry.js +93 -0
- package/dist/vendor/engine/runtime/ai/utils/retry.d.ts +57 -0
- package/dist/vendor/engine/runtime/ai/utils/retry.js +182 -0
- package/dist/vendor/engine/runtime/ai/utils/sanitize-unicode.d.ts +21 -0
- package/dist/vendor/engine/runtime/ai/utils/sanitize-unicode.js +25 -0
- package/dist/vendor/engine/runtime/ai/utils/text.d.ts +13 -0
- package/dist/vendor/engine/runtime/ai/utils/text.js +35 -0
- package/dist/vendor/engine/runtime/ai/utils/transcript.d.ts +83 -0
- package/dist/vendor/engine/runtime/ai/utils/transcript.js +203 -0
- package/dist/vendor/engine/runtime/ai/utils/typebox-helpers.d.ts +16 -0
- package/dist/vendor/engine/runtime/ai/utils/typebox-helpers.js +20 -0
- package/dist/vendor/engine/runtime/ai/utils/uuid.d.ts +2 -0
- package/dist/vendor/engine/runtime/ai/utils/uuid.js +41 -0
- package/dist/vendor/engine/runtime/ai/utils/validation.d.ts +17 -0
- package/dist/vendor/engine/runtime/ai/utils/validation.js +308 -0
- package/dist/vendor/engine/runtime/chord/api.d.ts +14 -0
- package/dist/vendor/engine/runtime/chord/api.js +71 -0
- package/dist/vendor/engine/runtime/chord/context/index.d.ts +23 -0
- package/dist/vendor/engine/runtime/chord/context/index.js +96 -0
- package/dist/vendor/engine/runtime/chord/delta/index.d.ts +118 -0
- package/dist/vendor/engine/runtime/chord/delta/index.js +1903 -0
- package/dist/vendor/engine/runtime/chord/facets/host.d.ts +11 -0
- package/dist/vendor/engine/runtime/chord/facets/host.js +762 -0
- package/dist/vendor/engine/runtime/chord/facets/loader.d.ts +2 -0
- package/dist/vendor/engine/runtime/chord/facets/loader.js +4 -0
- package/dist/vendor/engine/runtime/chord/index.d.ts +10 -0
- package/dist/vendor/engine/runtime/chord/index.js +9 -0
- package/dist/vendor/engine/runtime/chord/json.d.ts +3 -0
- package/dist/vendor/engine/runtime/chord/json.js +56 -0
- package/dist/vendor/engine/runtime/chord/services/consumer.d.ts +10 -0
- package/dist/vendor/engine/runtime/chord/services/consumer.js +536 -0
- package/dist/vendor/engine/runtime/chord/services/errors.d.ts +7 -0
- package/dist/vendor/engine/runtime/chord/services/errors.js +21 -0
- package/dist/vendor/engine/runtime/chord/services/handle.d.ts +14 -0
- package/dist/vendor/engine/runtime/chord/services/handle.js +100 -0
- package/dist/vendor/engine/runtime/chord/services/instances.d.ts +24 -0
- package/dist/vendor/engine/runtime/chord/services/instances.js +136 -0
- package/dist/vendor/engine/runtime/chord/services/loopback.d.ts +4 -0
- package/dist/vendor/engine/runtime/chord/services/loopback.js +14 -0
- package/dist/vendor/engine/runtime/chord/services/provider.d.ts +36 -0
- package/dist/vendor/engine/runtime/chord/services/provider.js +471 -0
- package/dist/vendor/engine/runtime/chord/services/state-codec.d.ts +14 -0
- package/dist/vendor/engine/runtime/chord/services/state-codec.js +114 -0
- package/dist/vendor/engine/runtime/chord/services/state-internals.d.ts +10 -0
- package/dist/vendor/engine/runtime/chord/services/state-internals.js +9 -0
- package/dist/vendor/engine/runtime/chord/services/state.d.ts +22 -0
- package/dist/vendor/engine/runtime/chord/services/state.js +123 -0
- package/dist/vendor/engine/runtime/chord/services/wire.d.ts +59 -0
- package/dist/vendor/engine/runtime/chord/services/wire.js +172 -0
- package/dist/vendor/engine/runtime/chord/types.d.ts +202 -0
- package/dist/vendor/engine/runtime/chord/types.js +1 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/args.d.ts +60 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/args.js +439 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/auth-check.d.ts +18 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/auth-check.js +49 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/auth-command.d.ts +23 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/auth-command.js +102 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/config-selector.d.ts +15 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/config-selector.js +31 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/credential-print.d.ts +12 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/credential-print.js +75 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/file-processor.d.ts +14 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/file-processor.js +70 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/initial-message.d.ts +17 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/initial-message.js +21 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/list-models.d.ts +8 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/list-models.js +97 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/project-trust.d.ts +9 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/project-trust.js +47 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/session-picker.d.ts +9 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/session-picker.js +35 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/startup-ui.d.ts +19 -0
- package/dist/vendor/engine/runtime/coding-agent/cli/startup-ui.js +184 -0
- package/dist/vendor/engine/runtime/coding-agent/config.d.ts +97 -0
- package/dist/vendor/engine/runtime/coding-agent/config.js +463 -0
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session-runtime.d.ts +118 -0
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session-runtime.js +316 -0
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session-services.d.ts +85 -0
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session-services.js +133 -0
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session.d.ts +771 -0
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session.js +2990 -0
- package/dist/vendor/engine/runtime/coding-agent/core/auth-guidance.d.ts +4 -0
- package/dist/vendor/engine/runtime/coding-agent/core/auth-guidance.js +20 -0
- package/dist/vendor/engine/runtime/coding-agent/core/auth-storage.d.ts +71 -0
- package/dist/vendor/engine/runtime/coding-agent/core/auth-storage.js +425 -0
- package/dist/vendor/engine/runtime/coding-agent/core/bash-executor.d.ts +31 -0
- package/dist/vendor/engine/runtime/coding-agent/core/bash-executor.js +110 -0
- package/dist/vendor/engine/runtime/coding-agent/core/bug-report-upload.d.ts +11 -0
- package/dist/vendor/engine/runtime/coding-agent/core/bug-report-upload.js +21 -0
- package/dist/vendor/engine/runtime/coding-agent/core/bug-report.d.ts +175 -0
- package/dist/vendor/engine/runtime/coding-agent/core/bug-report.js +291 -0
- package/dist/vendor/engine/runtime/coding-agent/core/cache-stats.d.ts +48 -0
- package/dist/vendor/engine/runtime/coding-agent/core/cache-stats.js +111 -0
- package/dist/vendor/engine/runtime/coding-agent/core/cache-warmer.d.ts +102 -0
- package/dist/vendor/engine/runtime/coding-agent/core/cache-warmer.js +355 -0
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/branch-summarization.d.ts +97 -0
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/branch-summarization.js +250 -0
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/compaction.d.ts +142 -0
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/compaction.js +666 -0
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/index.d.ts +6 -0
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/index.js +6 -0
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/utils.d.ts +37 -0
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/utils.js +141 -0
- package/dist/vendor/engine/runtime/coding-agent/core/crash-log.d.ts +26 -0
- package/dist/vendor/engine/runtime/coding-agent/core/crash-log.js +138 -0
- package/dist/vendor/engine/runtime/coding-agent/core/defaults.d.ts +3 -0
- package/dist/vendor/engine/runtime/coding-agent/core/defaults.js +10 -0
- package/dist/vendor/engine/runtime/coding-agent/core/diagnostics.d.ts +14 -0
- package/dist/vendor/engine/runtime/coding-agent/core/diagnostics.js +1 -0
- package/dist/vendor/engine/runtime/coding-agent/core/event-bus.d.ts +8 -0
- package/dist/vendor/engine/runtime/coding-agent/core/event-bus.js +24 -0
- package/dist/vendor/engine/runtime/coding-agent/core/exec.d.ts +28 -0
- package/dist/vendor/engine/runtime/coding-agent/core/exec.js +74 -0
- package/dist/vendor/engine/runtime/coding-agent/core/experimental.d.ts +1 -0
- package/dist/vendor/engine/runtime/coding-agent/core/experimental.js +3 -0
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/ansi-to-html.d.ts +21 -0
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/ansi-to-html.js +248 -0
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/index.d.ts +36 -0
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/index.js +225 -0
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/template.css +1066 -0
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/template.html +55 -0
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/template.js +1864 -0
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/tool-renderer.d.ts +33 -0
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/tool-renderer.js +107 -0
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/vendor/marked.min.js +78 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/index.d.ts +11 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/index.js +8 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/jiti-loader.d.ts +1 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/jiti-loader.js +3 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/jiti-static-loader.d.ts +1 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/jiti-static-loader.js +3 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/loader.d.ts +22 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/loader.js +633 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/runner.d.ts +180 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/runner.js +1028 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/types.d.ts +1362 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/types.js +47 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/virtual-modules.d.ts +2 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/virtual-modules.js +37 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/wrapper.d.ts +19 -0
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/wrapper.js +21 -0
- package/dist/vendor/engine/runtime/coding-agent/core/footer-data-provider.d.ts +63 -0
- package/dist/vendor/engine/runtime/coding-agent/core/footer-data-provider.js +337 -0
- package/dist/vendor/engine/runtime/coding-agent/core/http-dispatcher.d.ts +21 -0
- package/dist/vendor/engine/runtime/coding-agent/core/http-dispatcher.js +97 -0
- package/dist/vendor/engine/runtime/coding-agent/core/keybindings.d.ts +427 -0
- package/dist/vendor/engine/runtime/coding-agent/core/keybindings.js +320 -0
- package/dist/vendor/engine/runtime/coding-agent/core/messages.d.ts +76 -0
- package/dist/vendor/engine/runtime/coding-agent/core/messages.js +123 -0
- package/dist/vendor/engine/runtime/coding-agent/core/model-config.d.ts +723 -0
- package/dist/vendor/engine/runtime/coding-agent/core/model-config.js +281 -0
- package/dist/vendor/engine/runtime/coding-agent/core/model-registry.d.ts +48 -0
- package/dist/vendor/engine/runtime/coding-agent/core/model-registry.js +114 -0
- package/dist/vendor/engine/runtime/coding-agent/core/model-resolver.d.ts +123 -0
- package/dist/vendor/engine/runtime/coding-agent/core/model-resolver.js +589 -0
- package/dist/vendor/engine/runtime/coding-agent/core/model-runtime.d.ts +100 -0
- package/dist/vendor/engine/runtime/coding-agent/core/model-runtime.js +603 -0
- package/dist/vendor/engine/runtime/coding-agent/core/models-store.d.ts +21 -0
- package/dist/vendor/engine/runtime/coding-agent/core/models-store.js +114 -0
- package/dist/vendor/engine/runtime/coding-agent/core/output-guard.d.ts +6 -0
- package/dist/vendor/engine/runtime/coding-agent/core/output-guard.js +88 -0
- package/dist/vendor/engine/runtime/coding-agent/core/package-manager.d.ts +212 -0
- package/dist/vendor/engine/runtime/coding-agent/core/package-manager.js +2176 -0
- package/dist/vendor/engine/runtime/coding-agent/core/pi-manifest.d.ts +7 -0
- package/dist/vendor/engine/runtime/coding-agent/core/pi-manifest.js +25 -0
- package/dist/vendor/engine/runtime/coding-agent/core/project-trust.d.ts +14 -0
- package/dist/vendor/engine/runtime/coding-agent/core/project-trust.js +58 -0
- package/dist/vendor/engine/runtime/coding-agent/core/prompt-templates.d.ts +53 -0
- package/dist/vendor/engine/runtime/coding-agent/core/prompt-templates.js +235 -0
- package/dist/vendor/engine/runtime/coding-agent/core/provider-attribution.d.ts +3 -0
- package/dist/vendor/engine/runtime/coding-agent/core/provider-attribution.js +71 -0
- package/dist/vendor/engine/runtime/coding-agent/core/provider-composer.d.ts +59 -0
- package/dist/vendor/engine/runtime/coding-agent/core/provider-composer.js +422 -0
- package/dist/vendor/engine/runtime/coding-agent/core/radius.d.ts +4 -0
- package/dist/vendor/engine/runtime/coding-agent/core/radius.js +7 -0
- package/dist/vendor/engine/runtime/coding-agent/core/remote-catalog-provider.d.ts +4 -0
- package/dist/vendor/engine/runtime/coding-agent/core/remote-catalog-provider.js +121 -0
- package/dist/vendor/engine/runtime/coding-agent/core/resolve-config-value.d.ts +29 -0
- package/dist/vendor/engine/runtime/coding-agent/core/resolve-config-value.js +246 -0
- package/dist/vendor/engine/runtime/coding-agent/core/resource-loader.d.ts +220 -0
- package/dist/vendor/engine/runtime/coding-agent/core/resource-loader.js +874 -0
- package/dist/vendor/engine/runtime/coding-agent/core/runtime-credentials.d.ts +14 -0
- package/dist/vendor/engine/runtime/coding-agent/core/runtime-credentials.js +38 -0
- package/dist/vendor/engine/runtime/coding-agent/core/sdk.d.ts +107 -0
- package/dist/vendor/engine/runtime/coding-agent/core/sdk.js +296 -0
- package/dist/vendor/engine/runtime/coding-agent/core/session-cwd.d.ts +18 -0
- package/dist/vendor/engine/runtime/coding-agent/core/session-cwd.js +37 -0
- package/dist/vendor/engine/runtime/coding-agent/core/session-export.d.ts +7 -0
- package/dist/vendor/engine/runtime/coding-agent/core/session-export.js +32 -0
- package/dist/vendor/engine/runtime/coding-agent/core/session-manager.d.ts +379 -0
- package/dist/vendor/engine/runtime/coding-agent/core/session-manager.js +1432 -0
- package/dist/vendor/engine/runtime/coding-agent/core/settings-diagnostics.d.ts +8 -0
- package/dist/vendor/engine/runtime/coding-agent/core/settings-diagnostics.js +20 -0
- package/dist/vendor/engine/runtime/coding-agent/core/settings-manager.d.ts +346 -0
- package/dist/vendor/engine/runtime/coding-agent/core/settings-manager.js +1032 -0
- package/dist/vendor/engine/runtime/coding-agent/core/skills.d.ts +59 -0
- package/dist/vendor/engine/runtime/coding-agent/core/skills.js +406 -0
- package/dist/vendor/engine/runtime/coding-agent/core/slash-commands.d.ts +14 -0
- package/dist/vendor/engine/runtime/coding-agent/core/slash-commands.js +27 -0
- package/dist/vendor/engine/runtime/coding-agent/core/source-info.d.ts +17 -0
- package/dist/vendor/engine/runtime/coding-agent/core/source-info.js +18 -0
- package/dist/vendor/engine/runtime/coding-agent/core/system-prompt.d.ts +70 -0
- package/dist/vendor/engine/runtime/coding-agent/core/system-prompt.js +146 -0
- package/dist/vendor/engine/runtime/coding-agent/core/telemetry.d.ts +2 -0
- package/dist/vendor/engine/runtime/coding-agent/core/telemetry.js +8 -0
- package/dist/vendor/engine/runtime/coding-agent/core/timings.d.ts +9 -0
- package/dist/vendor/engine/runtime/coding-agent/core/timings.js +40 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/bash.d.ts +89 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/bash.js +303 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/edit-diff.d.ts +100 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/edit-diff.js +420 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/edit.d.ts +43 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/edit.js +146 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/file-mutation-queue.d.ts +5 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/file-mutation-queue.js +51 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/find.d.ts +41 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/find.js +250 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/grep.d.ts +40 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/grep.js +251 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/index.d.ts +42 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/index.js +128 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/ls.d.ts +40 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/ls.js +125 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/output-accumulator.d.ts +54 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/output-accumulator.js +189 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/path-utils.d.ts +9 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/path-utils.js +98 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/powershell.d.ts +15 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/powershell.js +38 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/read.d.ts +41 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/read.js +168 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/render-utils.d.ts +23 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/render-utils.js +64 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/bash.d.ts +11 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/bash.js +137 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/edit.d.ts +22 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/edit.js +166 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/find.d.ts +9 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/find.js +63 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/grep.d.ts +9 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/grep.js +68 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/index.d.ts +27 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/index.js +46 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/ls.d.ts +9 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/ls.js +57 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/read.d.ts +10 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/read.js +128 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/write.d.ts +9 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/write.js +152 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/tool-definition-wrapper.d.ts +13 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/tool-definition-wrapper.js +35 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/truncate.d.ts +69 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/truncate.js +214 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/write.d.ts +29 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/write.js +60 -0
- package/dist/vendor/engine/runtime/coding-agent/core/trust-manager.d.ts +35 -0
- package/dist/vendor/engine/runtime/coding-agent/core/trust-manager.js +202 -0
- package/dist/vendor/engine/runtime/coding-agent/core/usage-totals.d.ts +18 -0
- package/dist/vendor/engine/runtime/coding-agent/core/usage-totals.js +55 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/index.d.ts +2 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/index.js +2 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/client.d.ts +68 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/client.js +312 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/huggingface.d.ts +22 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/huggingface.js +140 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/index.d.ts +2 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/index.js +218 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/provider.d.ts +11 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/provider.js +160 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/ui.d.ts +41 -0
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/ui.js +415 -0
- package/dist/vendor/engine/runtime/coding-agent/index.d.ts +36 -0
- package/dist/vendor/engine/runtime/coding-agent/index.js +47 -0
- package/dist/vendor/engine/runtime/coding-agent/main.d.ts +15 -0
- package/dist/vendor/engine/runtime/coding-agent/main.js +808 -0
- package/dist/vendor/engine/runtime/coding-agent/migrations.d.ts +32 -0
- package/dist/vendor/engine/runtime/coding-agent/migrations.js +281 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/index.d.ts +9 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/index.js +7 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/bug-report.d.ts +15 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/bug-report.js +209 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/chat-viewport.d.ts +19 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/chat-viewport.js +27 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/armin.d.ts +33 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/armin.js +332 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/assistant-message.d.ts +25 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/assistant-message.js +157 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/bash-execution.d.ts +33 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/bash-execution.js +174 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/bordered-loader.d.ts +15 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/bordered-loader.js +53 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/branch-summary-message.d.ts +15 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/branch-summary-message.js +50 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/compaction-summary-message.d.ts +15 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/compaction-summary-message.js +51 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/config-selector.d.ts +101 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/config-selector.js +760 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/countdown-timer.d.ts +13 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/countdown-timer.js +32 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-editor.d.ts +29 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-editor.js +114 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-entry.d.ts +18 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-entry.js +51 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-message.d.ts +21 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-message.js +86 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/daxnuts.d.ts +22 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/daxnuts.js +139 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/diff.d.ts +11 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/diff.js +132 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/dynamic-border.d.ts +14 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/dynamic-border.js +20 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/earendil-announcement.d.ts +4 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/earendil-announcement.js +39 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-editor.d.ts +23 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-editor.js +102 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-input.d.ts +24 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-input.js +66 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-selector.d.ts +26 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-selector.js +86 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/first-time-setup.d.ts +24 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/first-time-setup.js +102 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/footer.d.ts +31 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/footer.js +224 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/index.d.ts +33 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/index.js +34 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/keybinding-hints.d.ts +12 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/keybinding-hints.js +35 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/login-dialog.d.ts +51 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/login-dialog.js +187 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/markdown-transform.d.ts +2 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/markdown-transform.js +18 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/mermaid.d.ts +10 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/mermaid.js +74 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/model-selector.d.ts +59 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/model-selector.js +360 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/oauth-selector.d.ts +32 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/oauth-selector.js +162 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/scoped-models-selector.d.ts +45 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/scoped-models-selector.js +325 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/session-selector-search.d.ts +22 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/session-selector-search.js +154 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/session-selector.d.ts +94 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/session-selector.js +892 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/settings-selector.d.ts +93 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/settings-selector.js +719 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/settings-submenu.d.ts +71 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/settings-submenu.js +164 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/show-images-selector.d.ts +9 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/show-images-selector.js +38 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/skill-invocation-message.d.ts +16 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/skill-invocation-message.js +53 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/status-indicator.d.ts +29 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/status-indicator.js +66 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/theme-selector.d.ts +10 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/theme-selector.js +49 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/thinking-selector.d.ts +22 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/thinking-selector.js +108 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/tool-execution.d.ts +79 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/tool-execution.js +336 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/tree-selector.d.ts +93 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/tree-selector.js +1246 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/trust-selector.d.ts +22 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/trust-selector.js +90 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/user-message-selector.d.ts +29 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/user-message-selector.js +113 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/user-message.d.ts +15 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/user-message.js +48 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/visual-truncate.d.ts +23 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/visual-truncate.js +32 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/external-editor.d.ts +11 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/external-editor.js +37 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/interactive-mode.d.ts +467 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/interactive-mode.js +5720 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/model-catalog-refresh.d.ts +6 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/model-catalog-refresh.js +33 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/model-search.d.ts +11 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/model-search.js +14 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/session-share.d.ts +17 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/session-share.js +187 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/dark.json +91 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/light.json +90 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme-controller.d.ts +40 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme-controller.js +129 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme-json.d.ts +83 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme-json.js +129 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme-schema.json +356 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme.d.ts +130 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme.js +990 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/tui-renderer.d.ts +20 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/tui-renderer.js +65 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/json-event.d.ts +33 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/json-event.js +28 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/print-mode.d.ts +27 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/print-mode.js +141 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/jsonl.d.ts +16 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/jsonl.js +48 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-client.d.ts +253 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-client.js +494 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-mode.d.ts +19 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-mode.js +656 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-types.d.ts +468 -0
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-types.js +7 -0
- package/dist/vendor/engine/runtime/coding-agent/package-manager-cli.d.ts +8 -0
- package/dist/vendor/engine/runtime/coding-agent/package-manager-cli.js +960 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/abort.d.ts +4 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/abort.js +47 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/ansi.d.ts +1 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/ansi.js +51 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/changelog.d.ts +21 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/changelog.js +164 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/child-process.d.ts +17 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/child-process.js +105 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard-command.d.ts +6 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard-command.js +44 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard-image.d.ts +10 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard-image.js +216 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard.d.ts +3 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard.js +150 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/exif-orientation.d.ts +4 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/exif-orientation.js +156 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/frontmatter.d.ts +7 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/frontmatter.js +26 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/fs-watch.d.ts +4 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/fs-watch.js +24 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/git.d.ts +25 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/git.js +194 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/html.d.ts +6 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/html.js +39 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/image-convert.d.ts +9 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/image-convert.js +44 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/image-process.d.ts +17 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/image-process.js +82 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/image-resize-core.d.ts +29 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/image-resize-core.js +123 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/image-resize-worker.d.ts +1 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/image-resize-worker.js +30 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/image-resize.d.ts +15 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/image-resize.js +96 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/json.d.ts +2 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/json.js +6 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/management-http.d.ts +24 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/management-http.js +53 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/mime.d.ts +2 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/mime.js +109 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/open-browser.d.ts +8 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/open-browser.js +21 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/paths.d.ts +33 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/paths.js +113 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/photon.d.ts +20 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/photon.js +120 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/pi-user-agent.d.ts +1 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/pi-user-agent.js +4 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/shell.d.ts +33 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/shell.js +215 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/sleep.d.ts +4 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/sleep.js +16 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/syntax-highlight.d.ts +12 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/syntax-highlight.js +176 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/text.d.ts +7 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/text.js +8 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/tool-result-images.d.ts +20 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/tool-result-images.js +47 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/tools-manager.d.ts +12 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/tools-manager.js +308 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/version-check.d.ts +18 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/version-check.js +78 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/windows-self-update.d.ts +2 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/windows-self-update.js +76 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/wsl.d.ts +2 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/wsl.js +14 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/zip.d.ts +6 -0
- package/dist/vendor/engine/runtime/coding-agent/utils/zip.js +59 -0
- package/dist/vendor/engine/runtime/package.json +9 -0
- package/dist/vendor/engine/runtime/telemetry/index.d.ts +193 -0
- package/dist/vendor/engine/runtime/telemetry/index.js +17 -0
- package/dist/vendor/engine/runtime/telemetry/memory.d.ts +25 -0
- package/dist/vendor/engine/runtime/telemetry/memory.js +153 -0
- package/dist/vendor/engine/runtime/telemetry/noop.d.ts +3 -0
- package/dist/vendor/engine/runtime/telemetry/noop.js +17 -0
- package/dist/vendor/engine/runtime/tui/alt-screen-search.d.ts +45 -0
- package/dist/vendor/engine/runtime/tui/alt-screen-search.js +281 -0
- package/dist/vendor/engine/runtime/tui/autocomplete.d.ts +56 -0
- package/dist/vendor/engine/runtime/tui/autocomplete.js +671 -0
- package/dist/vendor/engine/runtime/tui/components/alt-screen-flash.d.ts +12 -0
- package/dist/vendor/engine/runtime/tui/components/alt-screen-flash.js +36 -0
- package/dist/vendor/engine/runtime/tui/components/box.d.ts +23 -0
- package/dist/vendor/engine/runtime/tui/components/box.js +132 -0
- package/dist/vendor/engine/runtime/tui/components/cancellable-loader.d.ts +21 -0
- package/dist/vendor/engine/runtime/tui/components/cancellable-loader.js +34 -0
- package/dist/vendor/engine/runtime/tui/components/editor.d.ts +259 -0
- package/dist/vendor/engine/runtime/tui/components/editor.js +2041 -0
- package/dist/vendor/engine/runtime/tui/components/h-stack.d.ts +6 -0
- package/dist/vendor/engine/runtime/tui/components/h-stack.js +42 -0
- package/dist/vendor/engine/runtime/tui/components/image.d.ts +27 -0
- package/dist/vendor/engine/runtime/tui/components/image.js +89 -0
- package/dist/vendor/engine/runtime/tui/components/input.d.ts +47 -0
- package/dist/vendor/engine/runtime/tui/components/input.js +416 -0
- package/dist/vendor/engine/runtime/tui/components/loader.d.ts +32 -0
- package/dist/vendor/engine/runtime/tui/components/loader.js +75 -0
- package/dist/vendor/engine/runtime/tui/components/markdown.d.ts +102 -0
- package/dist/vendor/engine/runtime/tui/components/markdown.js +810 -0
- package/dist/vendor/engine/runtime/tui/components/mouse-region.d.ts +11 -0
- package/dist/vendor/engine/runtime/tui/components/mouse-region.js +20 -0
- package/dist/vendor/engine/runtime/tui/components/scroll-view.d.ts +58 -0
- package/dist/vendor/engine/runtime/tui/components/scroll-view.js +194 -0
- package/dist/vendor/engine/runtime/tui/components/select-list.d.ts +52 -0
- package/dist/vendor/engine/runtime/tui/components/select-list.js +205 -0
- package/dist/vendor/engine/runtime/tui/components/settings-list.d.ts +59 -0
- package/dist/vendor/engine/runtime/tui/components/settings-list.js +251 -0
- package/dist/vendor/engine/runtime/tui/components/spacer.d.ts +11 -0
- package/dist/vendor/engine/runtime/tui/components/spacer.js +22 -0
- package/dist/vendor/engine/runtime/tui/components/stack.d.ts +31 -0
- package/dist/vendor/engine/runtime/tui/components/stack.js +110 -0
- package/dist/vendor/engine/runtime/tui/components/text.d.ts +18 -0
- package/dist/vendor/engine/runtime/tui/components/text.js +89 -0
- package/dist/vendor/engine/runtime/tui/components/truncated-text.d.ts +12 -0
- package/dist/vendor/engine/runtime/tui/components/truncated-text.js +50 -0
- package/dist/vendor/engine/runtime/tui/components/v-stack.d.ts +7 -0
- package/dist/vendor/engine/runtime/tui/components/v-stack.js +25 -0
- package/dist/vendor/engine/runtime/tui/editor-component.d.ts +38 -0
- package/dist/vendor/engine/runtime/tui/editor-component.js +1 -0
- package/dist/vendor/engine/runtime/tui/fuzzy.d.ts +15 -0
- package/dist/vendor/engine/runtime/tui/fuzzy.js +110 -0
- package/dist/vendor/engine/runtime/tui/index.d.ts +32 -0
- package/dist/vendor/engine/runtime/tui/index.js +44 -0
- package/dist/vendor/engine/runtime/tui/keybindings.d.ts +272 -0
- package/dist/vendor/engine/runtime/tui/keybindings.js +232 -0
- package/dist/vendor/engine/runtime/tui/keys.d.ts +183 -0
- package/dist/vendor/engine/runtime/tui/keys.js +1173 -0
- package/dist/vendor/engine/runtime/tui/kill-ring.d.ts +27 -0
- package/dist/vendor/engine/runtime/tui/kill-ring.js +43 -0
- package/dist/vendor/engine/runtime/tui/latex.d.ts +9 -0
- package/dist/vendor/engine/runtime/tui/latex.js +1377 -0
- package/dist/vendor/engine/runtime/tui/layout-node.d.ts +39 -0
- package/dist/vendor/engine/runtime/tui/layout-node.js +5 -0
- package/dist/vendor/engine/runtime/tui/layout.d.ts +41 -0
- package/dist/vendor/engine/runtime/tui/layout.js +343 -0
- package/dist/vendor/engine/runtime/tui/native-modifiers.d.ts +3 -0
- package/dist/vendor/engine/runtime/tui/native-modifiers.js +12 -0
- package/dist/vendor/engine/runtime/tui/native-module-path.d.ts +6 -0
- package/dist/vendor/engine/runtime/tui/native-module-path.js +18 -0
- package/dist/vendor/engine/runtime/tui/native-platform.d.ts +17 -0
- package/dist/vendor/engine/runtime/tui/native-platform.js +41 -0
- package/dist/vendor/engine/runtime/tui/stdin-buffer.d.ts +55 -0
- package/dist/vendor/engine/runtime/tui/stdin-buffer.js +365 -0
- package/dist/vendor/engine/runtime/tui/terminal-colors.d.ts +9 -0
- package/dist/vendor/engine/runtime/tui/terminal-colors.js +58 -0
- package/dist/vendor/engine/runtime/tui/terminal-image.d.ts +117 -0
- package/dist/vendor/engine/runtime/tui/terminal-image.js +549 -0
- package/dist/vendor/engine/runtime/tui/terminal.d.ts +122 -0
- package/dist/vendor/engine/runtime/tui/terminal.js +441 -0
- package/dist/vendor/engine/runtime/tui/tui-alt-screen.d.ts +159 -0
- package/dist/vendor/engine/runtime/tui/tui-alt-screen.js +1507 -0
- package/dist/vendor/engine/runtime/tui/tui-main-screen.d.ts +38 -0
- package/dist/vendor/engine/runtime/tui/tui-main-screen.js +593 -0
- package/dist/vendor/engine/runtime/tui/tui.d.ts +385 -0
- package/dist/vendor/engine/runtime/tui/tui.js +1054 -0
- package/dist/vendor/engine/runtime/tui/undo-stack.d.ts +16 -0
- package/dist/vendor/engine/runtime/tui/undo-stack.js +24 -0
- package/dist/vendor/engine/runtime/tui/utils.d.ts +100 -0
- package/dist/vendor/engine/runtime/tui/utils.js +1203 -0
- package/dist/vendor/engine/runtime/tui/word-navigation.d.ts +24 -0
- package/dist/vendor/engine/runtime/tui/word-navigation.js +95 -0
- package/dist/vendor/zcode/LICENSE.upstream +202 -0
- package/dist/vendor/zcode/provenance.json +141 -0
- package/dist/vendor/zcode/source/agent/turn-machine.d.ts +56 -0
- package/dist/vendor/zcode/source/agent/turn-machine.js +214 -0
- package/dist/vendor/zcode/source/agent/turn-state.d.ts +118 -0
- package/dist/vendor/zcode/source/agent/turn-state.js +93 -0
- package/dist/vendor/zcode/source/compact/manual.d.ts +11 -0
- package/dist/vendor/zcode/source/compact/manual.js +38 -0
- package/dist/vendor/zcode/source/compact/microcompact.d.ts +47 -0
- package/dist/vendor/zcode/source/compact/microcompact.js +194 -0
- package/dist/vendor/zcode/source/compact/policy.d.ts +59 -0
- package/dist/vendor/zcode/source/compact/policy.js +89 -0
- package/dist/vendor/zcode/source/compact/selection.d.ts +6 -0
- package/dist/vendor/zcode/source/compact/selection.js +12 -0
- package/dist/vendor/zcode/source/contracts.d.ts +52 -0
- package/dist/vendor/zcode/source/contracts.js +9 -0
- package/dist/vendor/zcode/source/runtime/goal-completion-verification.d.ts +17 -0
- package/dist/vendor/zcode/source/runtime/goal-completion-verification.js +138 -0
- package/dist/vendor/zcode/source/runtime/turn-loop.d.ts +3 -0
- package/dist/vendor/zcode/source/runtime/turn-loop.js +21 -0
- package/dist/vendor/zcode/source/runtime/turn-model-step.d.ts +54 -0
- package/dist/vendor/zcode/source/runtime/turn-model-step.js +97 -0
- package/dist/vendor/zcode/source/runtime/turn-output-token-continuation.d.ts +8 -0
- package/dist/vendor/zcode/source/runtime/turn-output-token-continuation.js +15 -0
- package/dist/vendor/zcode/source/runtime/turn-stop.d.ts +6 -0
- package/dist/vendor/zcode/source/runtime/turn-stop.js +18 -0
- package/dist/vendor/zcode/source/tool/executor/validation.d.ts +6 -0
- package/dist/vendor/zcode/source/tool/executor/validation.js +76 -0
- package/dist/vendor/zcode/source/tool/input-normalization.d.ts +16 -0
- package/dist/vendor/zcode/source/tool/input-normalization.js +62 -0
- package/dist/vendor/zcode/source/tool/input-validation-model-content.d.ts +4 -0
- package/dist/vendor/zcode/source/tool/input-validation-model-content.js +263 -0
- package/dist/vendor/zcode/source/tool/json-schema.d.ts +9 -0
- package/dist/vendor/zcode/source/tool/json-schema.js +230 -0
- package/dist/vendor/zcode/source/tool/scheduler.d.ts +43 -0
- package/dist/vendor/zcode/source/tool/scheduler.js +167 -0
- package/dist/vendor/zcode/source/tool/tool-input-validation-issues.d.ts +76 -0
- package/dist/vendor/zcode/source/tool/tool-input-validation-issues.js +148 -0
- package/dist/vendor/zcode/source/tool/validation-contracts.d.ts +27 -0
- package/dist/vendor/zcode/source/tool/validation-contracts.js +8 -0
- package/docs/README.md +36 -0
- package/docs/agents/README.md +62 -0
- package/docs/agents/install-for-agents.md +64 -0
- package/docs/agents/mcp-server.md +187 -0
- package/docs/agents/subagent-mode.md +146 -0
- package/docs/concepts/README.md +47 -0
- package/docs/concepts/jev-actionable-routing.md +113 -0
- package/docs/concepts/jev-decision-thresholds.md +412 -0
- package/docs/concepts/jev-efficiency.md +216 -0
- package/docs/concepts/jev-eval-2026-11-01.md +78 -0
- package/docs/concepts/limits.md +43 -0
- package/docs/concepts/memory.md +30 -0
- package/docs/concepts/security.md +40 -0
- package/docs/concepts/workspace-instructions.md +28 -0
- package/docs/getting-started/README.md +74 -0
- package/docs/getting-started/accounts.md +67 -0
- package/docs/getting-started/configure-providers.md +103 -0
- package/docs/guides/README.md +12 -0
- package/docs/guides/browser.md +15 -0
- package/docs/guides/desktop-app.md +325 -0
- package/docs/guides/extensions.md +100 -0
- package/docs/guides/graph-builder.md +93 -0
- package/docs/guides/headless.md +45 -0
- package/docs/guides/tui.md +75 -0
- package/docs/guides/update.md +47 -0
- package/docs/guides/windows-code-signing.md +316 -0
- package/docs/llms.txt +45 -0
- package/docs/reference/README.md +7 -0
- package/docs/reference/cli.md +70 -0
- package/docs/reference/config.md +85 -0
- package/docs/reference/slash-commands.md +54 -0
- package/docs/superpowers/plans/2026-11-01-claude-console-sign-in.md +111 -0
- package/docs/superpowers/plans/2026-11-01-jev-node-opt-in.md +910 -0
- package/docs/superpowers/plans/2026-11-02-workflow-pane.md +398 -0
- package/docs/superpowers/specs/2026-10-31-work-line-summary-design.md +50 -0
- package/docs/superpowers/specs/2026-11-01-claude-console-sign-in-design.md +176 -0
- package/docs/superpowers/specs/2026-11-01-jev-node-opt-in-design.md +164 -0
- package/docs/superpowers/specs/2026-11-01-pr-section-design.md +104 -0
- package/docs/superpowers/specs/2026-11-02-workflow-pane-design.md +130 -0
- package/licenses/GEIST-OFL-1.1.txt +92 -0
- package/licenses/ZCODE-APACHE-2.0.txt +202 -0
- package/package.json +118 -6
- package/scripts/jev-efficiency-eval.mjs +187 -0
- package/scripts/jev-efficiency-live.mjs +193 -0
- package/scripts/zcode-engine-replay.mjs +223 -0
- package/tests/agent-centric-mcp-test-plan.md +208 -0
- package/tests/analytics-settings-test-plan.md +165 -0
- package/tests/browser-cli-smoke.mjs +276 -0
- package/tests/browser-test-plan.md +280 -0
- package/tests/chat-side-panel-test-plan.md +309 -0
- package/tests/decision-engine-test-plan.md +163 -0
- package/tests/default-active-jev-test-plan.md +85 -0
- package/tests/graphiti-test-plan.md +359 -0
- package/tests/harness-extensions-test-plan.md +110 -0
- package/tests/jev-all-decisions-test-plan.md +156 -0
- package/tests/jev-efficiency/criteria.json +158 -0
- package/tests/jev-efficiency/workloads.mjs +242 -0
- package/tests/jev-efficiency-test-plan.md +198 -0
- package/tests/mock-graphiti.mjs +106 -0
- package/tests/permissions-sandbox-probe.mjs +74 -0
- package/tests/permissions-test-plan.md +190 -0
- package/tests/product-telemetry-test-plan.md +536 -0
- package/tests/thinking-stream-preview-test-plan.md +136 -0
- package/tests/zcode-react-engine-test-plan.md +396 -0
|
@@ -0,0 +1,1039 @@
|
|
|
1
|
+
import { type ProviderConfig } from './providers.js';
|
|
2
|
+
import { removeCodexAccount } from './codex-auth.js';
|
|
3
|
+
import { CodexAccountAuth } from './codex-browser-auth.js';
|
|
4
|
+
import { AnthropicConsoleAuth } from './anthropic-console-auth.js';
|
|
5
|
+
import { checkGraphModelHealth } from './graph-health.js';
|
|
6
|
+
import { loadAccessibleGraph } from './membership.js';
|
|
7
|
+
import { type SavedSession } from './sessions.js';
|
|
8
|
+
import { type GhRunner } from './pull-requests.js';
|
|
9
|
+
import { type Completion, type RunResult } from './runtime.js';
|
|
10
|
+
import { type AppServerErrorCode } from './app-server/protocol.js';
|
|
11
|
+
/**
|
|
12
|
+
* `andorra app-server --stdio`: the engine a non-TUI client drives.
|
|
13
|
+
*
|
|
14
|
+
* The transport, the wire types, and the client-side mirror live in `./app-server/protocol.ts` and
|
|
15
|
+
* `./app-server/workspace.ts`. This module owns the state a client cannot: the active run, the
|
|
16
|
+
* approval and question exchanges inside it, open terminals, the graph editor server, and the
|
|
17
|
+
* lazily created code-intelligence manager.
|
|
18
|
+
*
|
|
19
|
+
* One run at a time
|
|
20
|
+
* -----------------
|
|
21
|
+
* A process owns at most one run. The TUI is one run by construction and a second concurrent run
|
|
22
|
+
* would need the durable multi-run runtime the roadmap defers, so `run.start` reports `busy`
|
|
23
|
+
* instead of quietly interleaving two runs' approvals and journals.
|
|
24
|
+
*
|
|
25
|
+
* Nothing here prints to stdout except protocol lines: a stray write would corrupt the stream.
|
|
26
|
+
* Diagnostics go to stderr.
|
|
27
|
+
*/
|
|
28
|
+
declare class AppServerError extends Error {
|
|
29
|
+
readonly code: AppServerErrorCode;
|
|
30
|
+
constructor(code: AppServerErrorCode, message: string);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Merge a client's provider list with the stored secrets.
|
|
34
|
+
*
|
|
35
|
+
* The client reads providers through `configView`, which deliberately omits every `apiKey`, so a
|
|
36
|
+
* round trip that replaced the array wholesale would delete the credentials of every provider the
|
|
37
|
+
* user did not retype: making another provider active or removing one would break the rest. An entry
|
|
38
|
+
* that names no key therefore keeps the stored one, and an explicit `null` is how a client asks for
|
|
39
|
+
* one to be removed. The configured model list is carried over the same way, because a client written
|
|
40
|
+
* before that field existed reads an entry without it and cannot send back what it never saw.
|
|
41
|
+
*
|
|
42
|
+
* `streamIdleTimeoutMs` follows the same retain-on-omit rule, because a desktop build from before the
|
|
43
|
+
* field exists cannot name it: reconstructing the provider from its entry alone would silently delete
|
|
44
|
+
* the stored bound and restore the indefinite stall the field exists to prevent. A client that wants
|
|
45
|
+
* the bound gone names it as `null` rather than leaving it out. The per-model context windows follow
|
|
46
|
+
* that rule too: an older client's save must not erase the limits a newer one stored, and `null`
|
|
47
|
+
* removes the map.
|
|
48
|
+
*
|
|
49
|
+
* Retention stops where the type cannot hold the value. Codex accepts neither a key nor a stream bound,
|
|
50
|
+
* and the clients that leave both out rather than naming the removal — one built before the bound
|
|
51
|
+
* existed cannot name it at all — are exactly the ones converting a provider to Codex. Carrying either
|
|
52
|
+
* value into the new entry made `validateConfig` refuse the whole save over fields the type does not
|
|
53
|
+
* have, so a Codex entry starts without them. A model list is not one of those: the configuration
|
|
54
|
+
* allows it on Codex, so it is retained for that type like any other.
|
|
55
|
+
*
|
|
56
|
+
* A Codex entry's account slot and its recorded email follow the retain-on-omit rule with the same
|
|
57
|
+
* urgency: a client that omits the slot has simply never seen it — the provider view does not report
|
|
58
|
+
* it — and dropping it on save would silently point a second account at the default home's sign-in.
|
|
59
|
+
*/
|
|
60
|
+
export declare function mergeProviderSecrets(stored: ProviderConfig[], incoming: unknown[]): ProviderConfig[];
|
|
61
|
+
/**
|
|
62
|
+
* Whether a failed wake delivery is final for that wake.
|
|
63
|
+
*
|
|
64
|
+
* A delivery gets two kinds of answer. One describes the request: an unknown provider or graph, a task the
|
|
65
|
+
* protocol will not accept, a session record that is no longer there at all, a remote workspace nothing may be
|
|
66
|
+
* run in, a method the engine does not have. The same prompt would be refused the same way a minute from now, so
|
|
67
|
+
* the wake is spent and the row must stop saying the session is waiting on it.
|
|
68
|
+
*
|
|
69
|
+
* A project folder that is not there *this moment* is not that answer. Folders come back: a checkout that has not
|
|
70
|
+
* landed, a share that is unreachable, a directory moved and moved again. A delivery that spent the wake on the
|
|
71
|
+
* first `ENOENT` would throw away a continuation the agent asked for, over a condition that clears. The start
|
|
72
|
+
* refuses a missing folder as a plain filesystem failure rather than a named protocol refusal, and that is the
|
|
73
|
+
* classification: `test/app-server.test.ts` ("a wake survives a delivery the engine could not start") takes an
|
|
74
|
+
* owed workspace out of the world and pins the rest - the wake stays owed, the row keeps its clock, no empty
|
|
75
|
+
* `timers.updated` says the wait is over, and the prompt arrives once the folder does.
|
|
76
|
+
*
|
|
77
|
+
* The other kind describes the moment, and every one of them clears: `engine-busy` and `busy` while another
|
|
78
|
+
* task or a `workspace.checkout` holds the engine, `cancelled` from a shutdown in progress (the wake is on
|
|
79
|
+
* disk, so the next engine process picks it up again), `storage` and `network` from inside the preparation,
|
|
80
|
+
* and — the one that costs a prompt most easily — a raw filesystem error, because the start re-throws the save
|
|
81
|
+
* when the session snapshot cannot be written. A deadline says the earliest a prompt may be given, not that it
|
|
82
|
+
* may be given once, so anything that is not a refusal of the request is waited out. Unclassified failures
|
|
83
|
+
* belong here: an error the engine never got to name is a failure of the moment, and losing the prompt the
|
|
84
|
+
* agent asked to be woken for is the more expensive guess.
|
|
85
|
+
*/
|
|
86
|
+
/** Exported because the table is the part a delivery must not get wrong; the protocol test pins it. */
|
|
87
|
+
export declare function isFinalWakeRefusal(error: unknown): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* The account a finished run leaves on the session turn.
|
|
90
|
+
*
|
|
91
|
+
* A graph that finished one node before it was cancelled, exhausted, or failed in the next
|
|
92
|
+
* returns that node's completion alongside the non-success status. The status is the attempt's
|
|
93
|
+
* last word — the client branches on it to keep a stopped attempt's activity visible — so the
|
|
94
|
+
* retained completion carries it too; without the stamp a stopped attempt folds like a done turn.
|
|
95
|
+
*
|
|
96
|
+
* `closedWithRun` says the abort came from the app going away rather than from a Stop. Closing is
|
|
97
|
+
* not the person giving up on the attempt: it is recorded as `interrupted`, the same status startup
|
|
98
|
+
* recovery gives a run whose engine was killed, so it reads as stopped work to resume (the row's
|
|
99
|
+
* mark and the Resume control both key on it) instead of a stop that was asked for.
|
|
100
|
+
*/
|
|
101
|
+
export declare function finalCompletion(result: RunResult | undefined, aborted: boolean, failure: unknown, closedWithRun?: boolean): Completion;
|
|
102
|
+
/**
|
|
103
|
+
* The session as it was before this run's in-flight marker: the marker turn out of both histories.
|
|
104
|
+
*
|
|
105
|
+
* The marker is written into history and contextHistory together - one is the transcript a client reads, the
|
|
106
|
+
* other the model context a later run seeds from - so an abandoned start has to remove it from both. Stripping
|
|
107
|
+
* only the transcript leaves the two disagreeing: the rail shows the session as it was, while the next attempt
|
|
108
|
+
* seeds from a turn reporting work this run never did, and is free to repeat it.
|
|
109
|
+
*/
|
|
110
|
+
export declare function withoutRunMarker(record: SavedSession, runId: string): SavedSession;
|
|
111
|
+
export interface AppServerOptions {
|
|
112
|
+
directory?: string;
|
|
113
|
+
output?: NodeJS.WritableStream;
|
|
114
|
+
error?: NodeJS.WritableStream;
|
|
115
|
+
/** Overridable so a test can answer the model preflight without reaching a provider. */
|
|
116
|
+
checkGraphHealth?: typeof checkGraphModelHealth;
|
|
117
|
+
/** Overridable so a test can run a graph whose access rules it cannot meet. */
|
|
118
|
+
loadGraph?: typeof loadAccessibleGraph;
|
|
119
|
+
/** Provider authentication is owned here, independently of the Andorra account sign-in. */
|
|
120
|
+
codexAuth?: Pick<CodexAccountAuth, 'start' | 'status' | 'cancel' | 'logout' | 'close'>;
|
|
121
|
+
/** Overridable so a test can watch a retired slot without reaching the Codex CLI. */
|
|
122
|
+
removeCodexAccount?: typeof removeCodexAccount;
|
|
123
|
+
/** Claude Console sign-in for Anthropic providers; overridable so a test never spawns `ant`. */
|
|
124
|
+
anthropicAuth?: Pick<AnthropicConsoleAuth, 'start' | 'status' | 'cancel' | 'logout' | 'discard' | 'close'>;
|
|
125
|
+
/** Overridable so a test can answer `gh` without reaching GitHub. */
|
|
126
|
+
gh?: GhRunner;
|
|
127
|
+
/** How often the pull request watcher polls; a test shortens it. */
|
|
128
|
+
pullRequestPollMs?: number;
|
|
129
|
+
}
|
|
130
|
+
export declare class AppServer {
|
|
131
|
+
private automationCheck?;
|
|
132
|
+
/** The daily auto-archive pass; a change to the setting runs one immediately as well. */
|
|
133
|
+
private autoArchiveCheck?;
|
|
134
|
+
/** The tail of the auto-archive passes, so a settings change never runs one over another. */
|
|
135
|
+
private autoArchivePass;
|
|
136
|
+
private readonly automationTasks;
|
|
137
|
+
private readonly manualAutomationTasks;
|
|
138
|
+
private readonly automationController;
|
|
139
|
+
private readonly directory;
|
|
140
|
+
private readonly output;
|
|
141
|
+
private readonly error;
|
|
142
|
+
private readonly checkGraphHealth;
|
|
143
|
+
private readonly loadGraph;
|
|
144
|
+
private readonly codexAuth;
|
|
145
|
+
private readonly anthropicAuth;
|
|
146
|
+
/** Retires a removed provider's slot home; a seam so a test never has to spawn the Codex CLI. */
|
|
147
|
+
private readonly retireCodexAccount;
|
|
148
|
+
/** The `gh` the pull request settings and watcher run through. */
|
|
149
|
+
private readonly gh;
|
|
150
|
+
/** Polls the PRs whose sessions asked for Auto-fix or Auto-archive; one engine per home actually polls. */
|
|
151
|
+
private readonly pullRequestWatcher;
|
|
152
|
+
/** The wakes this engine armed for Auto-fix, checked against the PR record again before delivery. */
|
|
153
|
+
private readonly autoFixWakes;
|
|
154
|
+
/**
|
|
155
|
+
* The account's graph sync, so a graph saved on another machine is listed here too. A first pass that
|
|
156
|
+
* outlasts the listing's bounded wait publishes `graphs.changed`: that listing already answered from
|
|
157
|
+
* the copy on disk, and the surface behind it has to read again to see what the pass restored.
|
|
158
|
+
*/
|
|
159
|
+
private readonly graphSync;
|
|
160
|
+
private readonly terminals;
|
|
161
|
+
/** Holds a flooding shell's output back while the protocol stream is behind. */
|
|
162
|
+
private readonly flow;
|
|
163
|
+
/** Panel browsers: interactive session-owned pages, separate from the agent's qa.browser_session tool. */
|
|
164
|
+
private readonly browserViews;
|
|
165
|
+
/** Pending approval and question exchanges, keyed by the id the client answers with. */
|
|
166
|
+
private readonly pending;
|
|
167
|
+
/** Pending panel-browser relay exchanges, keyed by the id the desktop answers with. */
|
|
168
|
+
private readonly panelRelays;
|
|
169
|
+
/** Panel operations executing on this engine, keyed by the relay that asked for them. */
|
|
170
|
+
private readonly panelOperations;
|
|
171
|
+
/**
|
|
172
|
+
* The runs those operations answer with, keyed the same way.
|
|
173
|
+
*
|
|
174
|
+
* Every window attached to a paired machine receives the same request frame, so the same relay id
|
|
175
|
+
* can arrive twice. A repeated id joins the run already going rather than pressing the key or
|
|
176
|
+
* opening the tab a second time.
|
|
177
|
+
*/
|
|
178
|
+
private readonly panelOperationRuns;
|
|
179
|
+
/** Requests in flight: shutdown waits for them rather than exiting under their I/O. */
|
|
180
|
+
private readonly requests;
|
|
181
|
+
private run?;
|
|
182
|
+
private readonly originalModelGraphs;
|
|
183
|
+
/**
|
|
184
|
+
* The attempt whose work is over and whose finalizer is still putting it away.
|
|
185
|
+
*
|
|
186
|
+
* The live-run slot is released before the terminal events go out — a client that chains runs sends
|
|
187
|
+
* its next `run.start` the moment it sees `run.completed`, and that start must not meet `engine-busy`
|
|
188
|
+
* while the engine is only tidying up — so during the tail `run` no longer names the attempt, but
|
|
189
|
+
* its open claim still stands and the merged save has just landed. A rename that arrives in that
|
|
190
|
+
* window belongs to this process all the same: naming the finishing attempt is how `renameSession`
|
|
191
|
+
* keeps excusing its claim instead of refusing the user's own run as "another window".
|
|
192
|
+
*/
|
|
193
|
+
private finishingRunId;
|
|
194
|
+
/** The session the finishing attempt belongs to, so the excuse above is not handed to a stranger. */
|
|
195
|
+
private finishingSessionId;
|
|
196
|
+
/**
|
|
197
|
+
* Why the active run's controller was aborted — finalization reads it to tell a Stop the person
|
|
198
|
+
* pressed from the app being closed while the attempt was still running. Cleared when a run starts.
|
|
199
|
+
*/
|
|
200
|
+
private runAbort?;
|
|
201
|
+
/** Set synchronously while a start is being prepared, so two starts in one tick cannot both pass the guard. */
|
|
202
|
+
private starting;
|
|
203
|
+
/**
|
|
204
|
+
* Self-wake registry for this engine, shared by the runs it serves.
|
|
205
|
+
*
|
|
206
|
+
* Engine-wide rather than per run on purpose: a wake armed by a task is expected to arrive after that
|
|
207
|
+
* task is over, which is the entire point of arming one. Every wake carries the session that armed it, so
|
|
208
|
+
* the prompt — and the wait a row draws for it — goes back to that session, not to whichever one happens
|
|
209
|
+
* to be running: an engine serves many sessions over its life, and two of them can be waiting at once.
|
|
210
|
+
* The CLI gets the same tool through a registry of its own; here the engine is also the deliverer,
|
|
211
|
+
* because a window has no loop to carry a wake in.
|
|
212
|
+
*/
|
|
213
|
+
private readonly timers;
|
|
214
|
+
/** Engine timer for the next deadline, so a wake due while a run is in flight is retried. */
|
|
215
|
+
private timerCheck?;
|
|
216
|
+
/** One delivery pass at a time, so a due callback cannot start a second one. */
|
|
217
|
+
private timerDeliveryTask?;
|
|
218
|
+
/**
|
|
219
|
+
* A branch switch in flight, held until it completes.
|
|
220
|
+
*
|
|
221
|
+
* Switching the tree and starting a run are separate requests, and the checkout awaits Git twice:
|
|
222
|
+
* a start arriving in that window used to pass the busy guard, launch the agent, and then have the
|
|
223
|
+
* tree switched underneath it — so the branch the changes land in is not the one the task started
|
|
224
|
+
* on. The reservation is taken synchronously and refused, not queued: a run that waits would begin
|
|
225
|
+
* against a repository whose branch the user has stopped describing.
|
|
226
|
+
*/
|
|
227
|
+
private checkout?;
|
|
228
|
+
/** Memoized creation of the run-record directory, which this mode must do for itself. */
|
|
229
|
+
private runRecordsReady?;
|
|
230
|
+
/**
|
|
231
|
+
* The session a `run.resume` is preparing: the record is read and will be saved by the resumed
|
|
232
|
+
* run, so a rename or delete accepted in that window is silently reverted. `this.run` does not
|
|
233
|
+
* cover it yet — the run is installed only when preparation ends.
|
|
234
|
+
*/
|
|
235
|
+
private startingSession?;
|
|
236
|
+
/**
|
|
237
|
+
* Runs whose journal sink failed mid-attempt. The journal keeps being written after the failure,
|
|
238
|
+
* so it looks complete; this is what marks the attempt as one no resume may replay (the record
|
|
239
|
+
* and a marker file carry it past a crash).
|
|
240
|
+
*/
|
|
241
|
+
private readonly journalFailures;
|
|
242
|
+
/**
|
|
243
|
+
* Runs whose checkpoint sink failed mid-attempt. A checkpoint is the conversation a resume
|
|
244
|
+
* re-enters the node with, so a run whose checkpoint could not be written is one no resume may
|
|
245
|
+
* replay: the resume would re-enter the node from its opening task and repeat the tool calls it
|
|
246
|
+
* had already made. The record and a marker file carry the failure past a crash.
|
|
247
|
+
*/
|
|
248
|
+
private readonly checkpointFailures;
|
|
249
|
+
/**
|
|
250
|
+
* The session trajectory of the run in flight: one sanitized debug log per session
|
|
251
|
+
* (`trajectories/<sessionId>.jsonl` in this home), appended by every run and resume of that
|
|
252
|
+
* session. Unlike the per-run journal it spans attempts, and it records the model calls
|
|
253
|
+
* themselves — requests, responses, errors — where the journal stays the engine's own resume
|
|
254
|
+
* record. Cleared when the run's final marker has been written and flushed.
|
|
255
|
+
*/
|
|
256
|
+
private trajectory?;
|
|
257
|
+
/** Tail of the configuration write queue; see `serializeConfig`. */
|
|
258
|
+
private configWrites;
|
|
259
|
+
/** Tail of each Codex slot home's lifecycle; a retirement and a sign-in on one slot never interleave. */
|
|
260
|
+
private readonly slotWrites;
|
|
261
|
+
/** The run in flight, retained so shutdown can wait for its bookkeeping instead of racing it. */
|
|
262
|
+
private runTask?;
|
|
263
|
+
/**
|
|
264
|
+
* Resolvers waiting for a run's first provider answer — or for its end, whichever comes first.
|
|
265
|
+
*
|
|
266
|
+
* Automatic titling holds until then: the run's first request must reach a serializing endpoint
|
|
267
|
+
* ahead of the naming request, and after that answer the run executes its turn's tools while the
|
|
268
|
+
* provider is free. Waiting for the whole run instead would leave a session's name as the local
|
|
269
|
+
* word-slice for the entire task, and a stopped task would never be named at all.
|
|
270
|
+
*/
|
|
271
|
+
private readonly titleReleases;
|
|
272
|
+
/** Automatic title requests on the wire, by session: new work must never queue behind one. */
|
|
273
|
+
private readonly sessionTitles;
|
|
274
|
+
/** Bumped whenever new work starts; a title begun under an older generation never runs. */
|
|
275
|
+
private workGeneration;
|
|
276
|
+
/** Sign-in and discovery controllers, aborted at shutdown so neither outlives the client. */
|
|
277
|
+
private readonly operations;
|
|
278
|
+
/** A start still being prepared, awaited and refused at shutdown. */
|
|
279
|
+
private prepareTask?;
|
|
280
|
+
/** The poll for runs whose holder was still shutting down when this engine started; see `watchForeignEngineShutdown`. */
|
|
281
|
+
private foreignEngineWatch?;
|
|
282
|
+
private editor?;
|
|
283
|
+
/** The editor start in flight, so two opens cannot race into two servers. */
|
|
284
|
+
private editorTask?;
|
|
285
|
+
private codeIntel?;
|
|
286
|
+
/**
|
|
287
|
+
* The remote-serve outcome this engine holds: either the listener whose lock and descriptor are
|
|
288
|
+
* ours to release at close, or the record that this installation has nothing to serve.
|
|
289
|
+
*/
|
|
290
|
+
private remoteServe?;
|
|
291
|
+
/**
|
|
292
|
+
* Outbound engine links, one per paired workspace this engine relays for its client.
|
|
293
|
+
*
|
|
294
|
+
* A link is the long-lived event stream to the paired machine plus the connection id its requests
|
|
295
|
+
* identify as; the frames it receives are re-emitted on this engine's own stream as
|
|
296
|
+
* `remote.engine.event`, which is how a paired machine's engines reach the desktop without the
|
|
297
|
+
* desktop ever speaking TLS itself.
|
|
298
|
+
*/
|
|
299
|
+
private readonly engineLinks;
|
|
300
|
+
/** The last grant each workspace's live probe reported, for offline views (see remoteWorkspaceState). */
|
|
301
|
+
private readonly lastKnownGrants;
|
|
302
|
+
/** Tail of the queue serializing serve/lock transitions; see `serializeRemote`. */
|
|
303
|
+
private remoteOps;
|
|
304
|
+
private closed;
|
|
305
|
+
/**
|
|
306
|
+
* Whether events still reach the protocol stream. Unlike `closed`, this stays open across the
|
|
307
|
+
* shutdown wait: the run finalizer settles during that window, and a client that stayed connected
|
|
308
|
+
* to ask for the stop — an engine stop with the app still running — is exactly the one that has
|
|
309
|
+
* to hear the terminal story. What the finalizer emits is normalized to agree with the record it
|
|
310
|
+
* just wrote, so the event and the next `runs.list` tell the same one.
|
|
311
|
+
*/
|
|
312
|
+
private emitsStopped;
|
|
313
|
+
/** The last run's finish enqueue; close() waits for it before draining the outbox. */
|
|
314
|
+
private telemetrySettle;
|
|
315
|
+
onStop?: () => void;
|
|
316
|
+
constructor(options: AppServerOptions & {
|
|
317
|
+
output: NodeJS.WritableStream;
|
|
318
|
+
error: NodeJS.WritableStream;
|
|
319
|
+
});
|
|
320
|
+
private emit;
|
|
321
|
+
private log;
|
|
322
|
+
/** The handshake every client waits for before it sends anything. */
|
|
323
|
+
ready(): Promise<void>;
|
|
324
|
+
/** Queue one auto-archive pass behind any pass still running. A failure is logged, never thrown. */
|
|
325
|
+
private reapSessions;
|
|
326
|
+
/**
|
|
327
|
+
* Archive the sessions idle past the configured number of days, and return to the rail the ones a
|
|
328
|
+
* previous pass archived that no longer qualify (the setting was raised or turned off). Sessions the
|
|
329
|
+
* user archived by hand carry no reaper mark, so they are never returned.
|
|
330
|
+
*
|
|
331
|
+
* A session with a run in flight or a wake armed is skipped, for the reason `setSessionArchived`
|
|
332
|
+
* refuses it: the run saves the record it captured and would revert the flag, and a filed row hides
|
|
333
|
+
* the approval or the wake it is waiting on. A wake armed by another engine is invisible to this
|
|
334
|
+
* process's registry, so the claim arming wrote — swept here once its owner is gone — is what holds
|
|
335
|
+
* the session too. Every change is re-planned against the record and the setting read under the
|
|
336
|
+
* session's mutation lock: another window's pass, a run that just started, a threshold another
|
|
337
|
+
* engine saved (or the reaper another turned off) after this pass opened, or a manual filing that
|
|
338
|
+
* landed since the list was read is never overwritten.
|
|
339
|
+
*/
|
|
340
|
+
private autoArchiveSessions;
|
|
341
|
+
/**
|
|
342
|
+
* The handshake payload, built once for the `ready` event and `host.info` so the two cannot drift:
|
|
343
|
+
* a client that read one and then the other would otherwise see different capabilities, and the
|
|
344
|
+
* capability is what decides whether it offers a control at all.
|
|
345
|
+
*/
|
|
346
|
+
private hostInfo;
|
|
347
|
+
private version;
|
|
348
|
+
/**
|
|
349
|
+
* Parse and answer one input line. Never throws: every failure becomes a response.
|
|
350
|
+
*
|
|
351
|
+
* The request is tracked while it runs, because lines are read concurrently and `close()` has to be able
|
|
352
|
+
* to wait for the work a shutdown would otherwise cut through — a read still in progress when the process
|
|
353
|
+
* exits, or a state-changing request finished after the client was told the engine had stopped.
|
|
354
|
+
*/
|
|
355
|
+
handle(line: string): Promise<void>;
|
|
356
|
+
private dispatchLine;
|
|
357
|
+
private write;
|
|
358
|
+
private dispatch;
|
|
359
|
+
private store;
|
|
360
|
+
/**
|
|
361
|
+
* Canonicalize a workspace the way session records are stored.
|
|
362
|
+
*
|
|
363
|
+
* `sessions.create` and `run.start` record the real path, but `SessionStore.list` compares
|
|
364
|
+
* lexically, so a project added through a symlink, a junction, or a differently cased Windows path
|
|
365
|
+
* would list nothing even though its sessions exist. A folder that no longer exists is passed
|
|
366
|
+
* through unchanged: it simply has no sessions.
|
|
367
|
+
*/
|
|
368
|
+
private listableWorkspace;
|
|
369
|
+
/**
|
|
370
|
+
* The sessions a client's rail lists: one workspace, or several in one pass.
|
|
371
|
+
*
|
|
372
|
+
* Reading the store means reading and parsing every session record it holds, so a client that asked
|
|
373
|
+
* once per project paid that whole scan per project — with P projects and S saved sessions, P × S
|
|
374
|
+
* reads and parses to fill one tree. The batched form canonicalizes each requested path exactly as
|
|
375
|
+
* the single form does, reads the store once, and answers with the same summaries grouped by the
|
|
376
|
+
* path the client asked for, so it can file each group under its own row.
|
|
377
|
+
*/
|
|
378
|
+
private listSessions;
|
|
379
|
+
/**
|
|
380
|
+
* Run a configuration change as a read-modify-write with nothing interleaved.
|
|
381
|
+
*
|
|
382
|
+
* Requests are answered concurrently by design, so two saves that each loaded the file and then
|
|
383
|
+
* wrote their own merge would silently discard one another: toggling two settings in quick
|
|
384
|
+
* succession would keep only the second. Every write to the configuration file goes through here.
|
|
385
|
+
*/
|
|
386
|
+
private serializeConfig;
|
|
387
|
+
/**
|
|
388
|
+
* Run one Codex slot home's lifecycle step after every earlier one has settled.
|
|
389
|
+
*
|
|
390
|
+
* A slot home is created by a sign-in and deleted by a retirement, and the two requests can arrive
|
|
391
|
+
* at once. Ordering them per slot is what keeps a retirement from deleting a home that a sign-in
|
|
392
|
+
* began after the provider was re-created, without serializing unrelated accounts against each other.
|
|
393
|
+
*/
|
|
394
|
+
private slotLock;
|
|
395
|
+
private setConfig;
|
|
396
|
+
/** Manage the extension folders shared by the CLI and desktop. */
|
|
397
|
+
private extensionKind;
|
|
398
|
+
private skillResources;
|
|
399
|
+
private skillRead;
|
|
400
|
+
private skillWrite;
|
|
401
|
+
private installExtension;
|
|
402
|
+
private removeExtension;
|
|
403
|
+
private setExtensionEnabled;
|
|
404
|
+
/** Preserve MCP credentials when toggling or deleting an existing entry. */
|
|
405
|
+
private mutateMcp;
|
|
406
|
+
/**
|
|
407
|
+
* Apply one provider change inside the serialized configuration transaction.
|
|
408
|
+
*
|
|
409
|
+
* A client cannot do this atomically for itself: it would read the configuration, change the list, and
|
|
410
|
+
* write it back, and the engine treats a `providers` array as a replacement — so a change the CLI or
|
|
411
|
+
* another window made between the two requests would be deleted by the write. The read-modify-write
|
|
412
|
+
* happens here, under the same queue that orders every configuration write, which makes one provider
|
|
413
|
+
* edit indivisible.
|
|
414
|
+
*
|
|
415
|
+
* Exactly one operation per call: `upsert` (one provider entry, by id), `remove` (an id), or
|
|
416
|
+
* `clearKey` (drop one provider's saved secret). `active` may accompany an upsert.
|
|
417
|
+
*/
|
|
418
|
+
private updateProviders;
|
|
419
|
+
/**
|
|
420
|
+
* Delete the Claude Console logins of providers a committed configuration no longer signs in.
|
|
421
|
+
*
|
|
422
|
+
* The configuration is read again first: an overlapping request can re-create the provider with
|
|
423
|
+
* sign-in before this runs, and that provider's fresh login is not this removal's to delete.
|
|
424
|
+
*/
|
|
425
|
+
private retireAnthropicAccounts;
|
|
426
|
+
/**
|
|
427
|
+
* Delete the slot homes a committed configuration no longer names.
|
|
428
|
+
*
|
|
429
|
+
* Each retirement takes the slot's lock, which a sign-in also takes, and re-reads the configuration
|
|
430
|
+
* before deleting: an overlapping request can re-create the provider and sign the slot in before
|
|
431
|
+
* this removal finishes, and that fresh session is not the retired one's to delete.
|
|
432
|
+
*/
|
|
433
|
+
private retireSlots;
|
|
434
|
+
private discoverModels;
|
|
435
|
+
/** Local-client only. The remote engine relay deliberately does not admit these methods. */
|
|
436
|
+
private providerAuth;
|
|
437
|
+
/**
|
|
438
|
+
* Claude Console sign-in for one configured Anthropic provider. Local-client only, like Codex
|
|
439
|
+
* sign-in: the remote engine relay does not admit these methods.
|
|
440
|
+
*/
|
|
441
|
+
private anthropicProviderAuth;
|
|
442
|
+
/**
|
|
443
|
+
* Record the account email a sign-in just verified on the provider entry that names it.
|
|
444
|
+
*
|
|
445
|
+
* The label that tells two linked accounts apart is derived from this stored email, and a window
|
|
446
|
+
* can sign in from the provider's detail panel where no form save follows. Best effort: a
|
|
447
|
+
* configuration that cannot be written must not turn a completed sign-in into an error.
|
|
448
|
+
*/
|
|
449
|
+
private recordCodexEmail;
|
|
450
|
+
/**
|
|
451
|
+
* Test one provider's connection exactly as configured, for the settings surface's Test button.
|
|
452
|
+
*
|
|
453
|
+
* `model` names one model to check instead of the provider's active one: the probe is the same
|
|
454
|
+
* listing either way, and `modelAvailable` then answers whether that model is on offer. The
|
|
455
|
+
* override never reaches the stored configuration.
|
|
456
|
+
*
|
|
457
|
+
* The probe is read-only and spends no tokens, and its deadline is the operation's own rather than
|
|
458
|
+
* the client's request deadline: a test that outlives the window that asked for it is a test whose
|
|
459
|
+
* answer the window can no longer show.
|
|
460
|
+
*/
|
|
461
|
+
private testProviderEndpoint;
|
|
462
|
+
/** Run one long operation whose cancellation shutdown owns, optionally with its own deadline. */
|
|
463
|
+
private operation;
|
|
464
|
+
private accountStatus;
|
|
465
|
+
/**
|
|
466
|
+
* The signed-in account's own profile.
|
|
467
|
+
*
|
|
468
|
+
* The profile lives in the account service, so it follows the account rather than the machine:
|
|
469
|
+
* the same profile is the same on every installation that signs in.
|
|
470
|
+
*/
|
|
471
|
+
private accountProfile;
|
|
472
|
+
/** Save the profile fields the owner changed. */
|
|
473
|
+
private updateAccountProfile;
|
|
474
|
+
/** What this account has done on this machine, in totals. */
|
|
475
|
+
private sessionStats;
|
|
476
|
+
private signIn;
|
|
477
|
+
private signOut;
|
|
478
|
+
private publishAccount;
|
|
479
|
+
/**
|
|
480
|
+
* The log a session's conversation was written to.
|
|
481
|
+
*
|
|
482
|
+
* A session the window started writes to the log named after its own id. A session the terminal
|
|
483
|
+
* created or continued writes to the log of that terminal's process, whose name is not the
|
|
484
|
+
* session's id, and the record names that log. The name is a file stem, never a path, so it can
|
|
485
|
+
* only name a log in this home.
|
|
486
|
+
*/
|
|
487
|
+
private trajectoryIdOf;
|
|
488
|
+
private readSession;
|
|
489
|
+
/**
|
|
490
|
+
* The session behind a due wake, or `undefined` only when its record is genuinely not there.
|
|
491
|
+
*
|
|
492
|
+
* `readSession` is written for a client asking about a session, so a missing file, a lock, a permission
|
|
493
|
+
* problem and a half-written record all answer "that session no longer exists". For a delivery that answer
|
|
494
|
+
* is destructive: the wake would be spent - and its prompt lost - on a condition that clears by itself.
|
|
495
|
+
* Only a file that is not there is treated as a deleted session here; everything else is thrown so the
|
|
496
|
+
* caller can put the wake back and try again on the retry the registry gives a wake already due.
|
|
497
|
+
*/
|
|
498
|
+
private readSessionForWake;
|
|
499
|
+
/**
|
|
500
|
+
* Run a session mutation as one step against every other writer of this home.
|
|
501
|
+
*
|
|
502
|
+
* A mutation is a read-modify-write of the whole record, so two that overlap lose one — and one
|
|
503
|
+
* that lands after a delete recreates what the user removed. The lock spans exactly the busy
|
|
504
|
+
* check, the fresh read, and the save; the check has to sit inside it, since the state it reads is
|
|
505
|
+
* the state the mutation is about to overwrite. A session held by another writer past the wait is
|
|
506
|
+
* answered `busy` rather than racing it.
|
|
507
|
+
*/
|
|
508
|
+
private withSessionMutation;
|
|
509
|
+
private createSession;
|
|
510
|
+
private renameSession;
|
|
511
|
+
/**
|
|
512
|
+
* Persist a finished run's record without reverting what the user changed while it ran.
|
|
513
|
+
*
|
|
514
|
+
* The finalizer builds its record from the snapshot captured at startup, but a rename is now
|
|
515
|
+
* accepted mid-run: a bare save would put the old name back, and dropping the `renamed` pin with
|
|
516
|
+
* it would let the automatic title overwrite a name the user chose after the run settled. So the
|
|
517
|
+
* save re-reads the record under the same per-session mutation lock the user's own renames take.
|
|
518
|
+
* The fields this process owns — the turns, usage and widgets the run just produced — are written
|
|
519
|
+
* from the captured record; everything the user can edit stays with what is on disk. A read that
|
|
520
|
+
* finds nothing saves the captured record unchanged, as before: losing the finished turn would be
|
|
521
|
+
* the worse outcome. The lock is taken with retries because a rename's critical section is one
|
|
522
|
+
* small read-modify-write, and momentary contention must not turn a finished run into an unsaved
|
|
523
|
+
* one.
|
|
524
|
+
*
|
|
525
|
+
* The finalizer's summary-carrying events publish through `publish`, inside the same critical
|
|
526
|
+
* section as the save. Publishing after the lock would let a rename land in between: it would
|
|
527
|
+
* save and publish its new name, and the finalizer would follow with the older snapshot it
|
|
528
|
+
* holds, so the client's unconditional upsert would briefly revert the row the user just renamed.
|
|
529
|
+
*/
|
|
530
|
+
private saveFinalizedSession;
|
|
531
|
+
/**
|
|
532
|
+
* Put a session away from (or back onto) the rail without deleting it.
|
|
533
|
+
*
|
|
534
|
+
* Archive is organization, not content: unlike rename it does not touch `updatedAt`, so archiving a
|
|
535
|
+
* session never reorders the list a user is reading. It is refused while the session owns a run for
|
|
536
|
+
* the same reason rename is — `executeRun` saves the record it captured at startup, which would
|
|
537
|
+
* silently revert the flag when the run finished, and a row that vanished mid-run would strand the
|
|
538
|
+
* approval it is waiting for.
|
|
539
|
+
*/
|
|
540
|
+
private setSessionArchived;
|
|
541
|
+
private deleteSession;
|
|
542
|
+
/**
|
|
543
|
+
* Start one run and answer immediately with its identity.
|
|
544
|
+
*
|
|
545
|
+
* The execution continues in the background and reports through events, so a client can cancel,
|
|
546
|
+
* answer an approval, or open a terminal while the model works.
|
|
547
|
+
*/
|
|
548
|
+
private startRun;
|
|
549
|
+
/**
|
|
550
|
+
* Resume a stopped attempt: a new run on the same session, continuing where the attempt stopped.
|
|
551
|
+
*
|
|
552
|
+
* The attempt being resumed has to be a recorded one whose process is gone: `succeeded` has
|
|
553
|
+
* nothing left to do, and `running` with a live pid is the original still working, not a stopped
|
|
554
|
+
* attempt. The session is not forked the way an explicit `run.start` resume-branch forks it:
|
|
555
|
+
* a resumed attempt belongs on the same timeline as the attempt it continues, so both turns —
|
|
556
|
+
* the stopped one and the new one — stay visible together. The new run gets its own id, its own
|
|
557
|
+
* journal, and its own open record; `resumedFrom` on both records names the lineage. Everything
|
|
558
|
+
* after this point is `run.start`'s own path — same events, same client run flow, one-run-per-
|
|
559
|
+
* engine guard included.
|
|
560
|
+
*/
|
|
561
|
+
private resumeRun;
|
|
562
|
+
/**
|
|
563
|
+
* Switch the working tree to a branch, holding the tree for the whole operation.
|
|
564
|
+
*
|
|
565
|
+
* One run at a time, in both directions: a switch is refused while a run or a prepared start
|
|
566
|
+
* exists, and a start is refused while a switch is in flight. The reservation is taken before the
|
|
567
|
+
* first await, because the workspace resolution in between is exactly the window a `run.start`
|
|
568
|
+
* could otherwise slip through.
|
|
569
|
+
*/
|
|
570
|
+
private switchBranch;
|
|
571
|
+
/** Refuse to continue work whose engine is shutting down. */
|
|
572
|
+
private assertRunning;
|
|
573
|
+
/**
|
|
574
|
+
* Start one run. `internal` is never client-supplied — it is how `run.resume` tells this
|
|
575
|
+
* method to continue an existing session in place instead of forking, which stopped
|
|
576
|
+
* attempt the new run continues, the message sent with that continuation, and the
|
|
577
|
+
* attachments the continued message carried.
|
|
578
|
+
*
|
|
579
|
+
* The wrapper owns the spools this request created: attachment resolution spools pastes and
|
|
580
|
+
* clipboard images before provider, permission, session, graph, and resume validation run. If any
|
|
581
|
+
* later check refuses the start — most simply when no provider is configured — the request has
|
|
582
|
+
* created no run and no persisted owner, and up to ~50 MB of the user's data would otherwise sit
|
|
583
|
+
* in the spool until the retention prune. Every rejection below propagates through here, and
|
|
584
|
+
* every spool this request wrote is deleted; a successful start owns its spools as part of the
|
|
585
|
+
* run. `prepareRunValidated` is the body: the wrapper exists only to own that cleanup.
|
|
586
|
+
*/
|
|
587
|
+
private prepareRun;
|
|
588
|
+
/**
|
|
589
|
+
* The graph this run executes, with the model's override applied when the run asked for one.
|
|
590
|
+
*
|
|
591
|
+
* The override rewrites the copy the run reads, never the saved graph: a run that overrides
|
|
592
|
+
* every node must not change what the next run of the same graph does. Applying it here — where
|
|
593
|
+
* the graph is loaded — is what keeps the runner, the resume guard and the health preflight from
|
|
594
|
+
* disagreeing about the model a node runs, because all three read this same graph.
|
|
595
|
+
*/
|
|
596
|
+
private graphForRun;
|
|
597
|
+
private prepareRunValidated;
|
|
598
|
+
/**
|
|
599
|
+
* Name a brand-new session from its first prompt with one bounded model request.
|
|
600
|
+
*
|
|
601
|
+
* The session already displays its local name, so this only upgrades it: any failure keeps the
|
|
602
|
+
* local name and never touches the run. The request is queued behind the run's first provider
|
|
603
|
+
* answer — the one inference turn a serializing endpoint must not be made to wait for — and goes
|
|
604
|
+
* out while the run executes that turn's tools, so the row carries the real name for the task
|
|
605
|
+
* instead of its first words cut off, and a task the user stops early is still named. The title
|
|
606
|
+
* does not belong to the run's lifetime either: stopping the run leaves it generating.
|
|
607
|
+
*
|
|
608
|
+
* The record on disk is read back under the lock the user's own renames take, so a name chosen
|
|
609
|
+
* once the run is over is never momentarily reverted, a session claimed by another run is left to
|
|
610
|
+
* that run's snapshot, and a deleted session is never recreated on the rail. While this run is
|
|
611
|
+
* still working, the save is written underneath it: the finalizer merges the record it finds, so
|
|
612
|
+
* the finished attempt keeps the name this saved.
|
|
613
|
+
*/
|
|
614
|
+
private titleSessionFromPrompt;
|
|
615
|
+
/**
|
|
616
|
+
* Let a title request that was waiting for its run go ahead: the run answered the provider for the
|
|
617
|
+
* first time, or ended without ever doing so.
|
|
618
|
+
*/
|
|
619
|
+
private releaseTitleWaiter;
|
|
620
|
+
/** Abort title requests still on the wire: new work is about to need the provider itself. */
|
|
621
|
+
private cancelSessionTitles;
|
|
622
|
+
private executeRun;
|
|
623
|
+
/**
|
|
624
|
+
* The run's adapter, with each call's reasoning published to the connected window.
|
|
625
|
+
*
|
|
626
|
+
* Reasoning is display-only: those events go to the client and are deliberately never written to
|
|
627
|
+
* the run journal, the session record, or the trajectory (see `app-server/reasoning.ts`). A call
|
|
628
|
+
* made outside a run has no stream to publish into, so it is left as an adapter that simply does
|
|
629
|
+
* not report reasoning.
|
|
630
|
+
*/
|
|
631
|
+
private reasoningAdapter;
|
|
632
|
+
/**
|
|
633
|
+
* The adapter a run resolves, recorded into the session's trajectory: every model call of the
|
|
634
|
+
* run — request, response, error — lands in the per-session debug log with the run and provider
|
|
635
|
+
* that made it. The trajectory wrap sits outside the reasoning wrap for the same reason the
|
|
636
|
+
* CLI's does: reasoning is display-only and never reaches records. Calls made outside a run
|
|
637
|
+
* (no trajectory open) pass through unchanged.
|
|
638
|
+
*/
|
|
639
|
+
private tracedAdapter;
|
|
640
|
+
/**
|
|
641
|
+
* Serialize all writes to a live run's JSON record, including the preflight shape stamp,
|
|
642
|
+
* accepted model selections, and the terminal result. The recovery reader can then see
|
|
643
|
+
* either the old selection or the fully durable new one, never an overlapping stale write.
|
|
644
|
+
*/
|
|
645
|
+
private serializeRunRecordWrite;
|
|
646
|
+
/** Change the next model turn without aborting a stream or replaying tools. */
|
|
647
|
+
private setRunModel;
|
|
648
|
+
private resolveModel;
|
|
649
|
+
/**
|
|
650
|
+
* The client-visible configuration with the plan-aware analytics answer.
|
|
651
|
+
*
|
|
652
|
+
* Resolved on every read rather than cached: the account can sign in, sign out, or confirm a plan
|
|
653
|
+
* between two reads, and a settings page that showed a stale opt-out is exactly the disagreement
|
|
654
|
+
* the plan gate exists to remove.
|
|
655
|
+
*/
|
|
656
|
+
private analyticsConfigView;
|
|
657
|
+
private resolveProvider;
|
|
658
|
+
/**
|
|
659
|
+
* One code-intelligence manager per workspace, reused across runs and released at shutdown.
|
|
660
|
+
*
|
|
661
|
+
* Two guards come from the terminal path and exist for the same reasons here: Read Only mode
|
|
662
|
+
* suspends indexing because the cache requires writes, and a project that *is* the user's home
|
|
663
|
+
* directory never indexes automatically, because a desktop user can pick any folder and
|
|
664
|
+
* recursively crawling a personal tree must not be an implicit side effect of opening the app.
|
|
665
|
+
*/
|
|
666
|
+
private codeIntelligence;
|
|
667
|
+
/** Code-intelligence events belong to the active run's stream when one is running. */
|
|
668
|
+
private runEvent;
|
|
669
|
+
/**
|
|
670
|
+
* Journal first, then the client: a client that missed an event can re-read the record.
|
|
671
|
+
*
|
|
672
|
+
* `runs/` is created here rather than assumed: the terminal client creates it during startup,
|
|
673
|
+
* and this mode returns before that code runs, so a fresh configuration home would otherwise
|
|
674
|
+
* fail every append with ENOENT and silently produce no record at all.
|
|
675
|
+
*/
|
|
676
|
+
private recordRunEvent;
|
|
677
|
+
private ensureRunRecords;
|
|
678
|
+
private interaction;
|
|
679
|
+
private approve;
|
|
680
|
+
private ask;
|
|
681
|
+
private settleApproval;
|
|
682
|
+
/**
|
|
683
|
+
* How a run engine without the panel browser asks the desktop to run its
|
|
684
|
+
* agent's panel operations on the engine that owns the panel. The request
|
|
685
|
+
* travels as a `browser.panel.request` event and the desktop answers through
|
|
686
|
+
* `browser.panel.result` — the same exchange shape an approval uses.
|
|
687
|
+
*/
|
|
688
|
+
private panelBrowserRelayFor;
|
|
689
|
+
private settlePanelRelay;
|
|
690
|
+
private settleAnswer;
|
|
691
|
+
private cancelRun;
|
|
692
|
+
/**
|
|
693
|
+
* Queue a message into the live attempt's steering channel.
|
|
694
|
+
*
|
|
695
|
+
* The runtime polls that channel at turn boundaries and injects each message into the node's own
|
|
696
|
+
* conversation, so the attempt redirects without being cancelled and the node keeps the plan and
|
|
697
|
+
* context it built. Nothing is delivered by this call: the answer says the message is queued, and
|
|
698
|
+
* `run.steered` announces it so every window draws the user's own row immediately. What the run
|
|
699
|
+
* never read is reported on its terminal event, so a message that arrived too late is returned
|
|
700
|
+
* to the composer instead of disappearing.
|
|
701
|
+
*
|
|
702
|
+
* `runId` must name the attempt this engine is actually running. A message for any other attempt
|
|
703
|
+
* — one that already finished, or another engine's — is refused rather than queued, because a
|
|
704
|
+
* queue nobody polls would look exactly like a delivered message.
|
|
705
|
+
*/
|
|
706
|
+
private steerRun;
|
|
707
|
+
/**
|
|
708
|
+
* The directory an account's graphs live in, with the identity it was chosen for.
|
|
709
|
+
*
|
|
710
|
+
* The two travel together because they are one decision: a caller that read the subject again afterwards
|
|
711
|
+
* could label one account's names with another's identity if the credentials changed while the listing
|
|
712
|
+
* was being read.
|
|
713
|
+
*
|
|
714
|
+
* The account's cloud copy is brought current first, the way the CLI's graph editor does it: a graph
|
|
715
|
+
* saved on another machine reaches this one only through a sync, and the window lists graphs without
|
|
716
|
+
* ever opening the editor. The wait is bounded and a sync that fails leaves the copy already here.
|
|
717
|
+
*
|
|
718
|
+
* Ownership is decided here too. A directory no account has claimed is shared, so a sync that ran
|
|
719
|
+
* there would restore account A's cloud graphs into it and account B's install would then upload
|
|
720
|
+
* them into B's account. `graphStorageAccess` claims an unclaimed directory for a confirmed account —
|
|
721
|
+
* the account the builder claims it for — and reports the ones that are still shared.
|
|
722
|
+
*/
|
|
723
|
+
private graphDirectory;
|
|
724
|
+
/**
|
|
725
|
+
* Whether the account service confirms this account, paid or free.
|
|
726
|
+
*
|
|
727
|
+
* The verdict is only definitive for the account it names: an answer that arrived while the
|
|
728
|
+
* credentials changed describes the other account, and claiming this installation's graph directory
|
|
729
|
+
* for it would bind legacy local graphs to an account that is no longer signed in.
|
|
730
|
+
*/
|
|
731
|
+
private currentAccountIsConfirmed;
|
|
732
|
+
private listGraphs;
|
|
733
|
+
/**
|
|
734
|
+
* The shareable file of one library Agent, for the desktop's Share action to write into the
|
|
735
|
+
* user's Downloads folder. Agents live in this home's own library, not an account's graph
|
|
736
|
+
* store, so no account attribution applies; only the id crosses from the editor frame.
|
|
737
|
+
*/
|
|
738
|
+
private exportAgent;
|
|
739
|
+
private getGraph;
|
|
740
|
+
/**
|
|
741
|
+
* Persist the installation's graph selection.
|
|
742
|
+
*
|
|
743
|
+
* The Andorra preset is selectable per run but not storable: the configuration schema admits only
|
|
744
|
+
* word-character graph ids, so `:andorra` would make the next config load fail. The desktop keeps
|
|
745
|
+
* that choice per project instead and passes it to `run.start`.
|
|
746
|
+
*/
|
|
747
|
+
private selectGraph;
|
|
748
|
+
private openEditor;
|
|
749
|
+
private closeEditor;
|
|
750
|
+
/**
|
|
751
|
+
* Run a serve/lock transition behind every other one this process has queued.
|
|
752
|
+
*
|
|
753
|
+
* Two concurrent `remote.hosting.status` calls would otherwise race the same serve lock from one
|
|
754
|
+
* process: the loser sees a busy lock whose descriptor the winner has not written yet and
|
|
755
|
+
* reports the listener this engine is starting as a foreign one. `startRemoteServe` and the
|
|
756
|
+
* status handler — the two paths that can start a listener — share this queue.
|
|
757
|
+
*/
|
|
758
|
+
private serializeRemote;
|
|
759
|
+
/**
|
|
760
|
+
* Bring up or adopt this installation's remote listener, holding it until close.
|
|
761
|
+
*
|
|
762
|
+
* Called once at engine startup, after which a paired machine can reach this one while the
|
|
763
|
+
* desktop is open. With no devices and no active invitation the ensure resolves to not-serving
|
|
764
|
+
* without binding a port, so an unpaired install pays nothing; a later Settings-open grows the
|
|
765
|
+
* listener through the status handler, which queues behind this one.
|
|
766
|
+
*/
|
|
767
|
+
startRemoteServe(): Promise<void>;
|
|
768
|
+
/** A peer-side failure as a wire error; the UI branches on `status`, not on these codes. */
|
|
769
|
+
private remoteError;
|
|
770
|
+
/** The failure kinds that mean "this address did not answer" — all others end the host sequence. */
|
|
771
|
+
private remoteStatusFailure;
|
|
772
|
+
/**
|
|
773
|
+
* Run one peer call against the workspace's hosts in order, trying the next address only when
|
|
774
|
+
* this one was unreachable. An identity or authorization answer is about the machine, not the
|
|
775
|
+
* address: probing a second host would repeat it or paper over a certificate swap with an older
|
|
776
|
+
* address that still answers.
|
|
777
|
+
*
|
|
778
|
+
* The failure is converted for RPC boundaries that throw it at the window. A liveness probe is
|
|
779
|
+
* not one of those — it reads the failure's kind to report `offline`/`unauthorized`/
|
|
780
|
+
* `identity-changed` — so it asks for the peer error itself via `preservePeerError`; converting
|
|
781
|
+
* would flatten every kind into a generic network error and the status surface would never see a
|
|
782
|
+
* state other than `unknown`.
|
|
783
|
+
*/
|
|
784
|
+
private peerCall;
|
|
785
|
+
/**
|
|
786
|
+
* The peer target for a stored workspace, with the hosts to try in order: the operator's
|
|
787
|
+
* host override first (moving the target without touching trust — identity is the pinned
|
|
788
|
+
* fingerprint), then every address the pairing code advertised.
|
|
789
|
+
*/
|
|
790
|
+
private remoteTarget;
|
|
791
|
+
/** The stored workspace as the wire sees it: never the device token, never the certificate. */
|
|
792
|
+
private remoteWorkspaceView;
|
|
793
|
+
/**
|
|
794
|
+
* The host-side Settings surface, and the call that starts hosting.
|
|
795
|
+
*
|
|
796
|
+
* The listener a status call starts belongs to this engine until close — that is what makes the
|
|
797
|
+
* desktop closing read as offline to peers unless a standalone `andorra remote serve` owns the
|
|
798
|
+
* lock; an adopted handle releases to nothing, so there is nothing to hold.
|
|
799
|
+
*/
|
|
800
|
+
private remoteHostingStatus;
|
|
801
|
+
/**
|
|
802
|
+
* Replace the live invitation with a fresh one — the Settings page's "New code" action.
|
|
803
|
+
*
|
|
804
|
+
* The status call replaces an invitation only after it expires or is redeemed, so a code that was
|
|
805
|
+
* pasted somewhere it should not have been stays redeemable for the rest of its ten minutes. This
|
|
806
|
+
* is the explicit way to invalidate it: the previous token stops working the moment the new
|
|
807
|
+
* invitation is written, and the answer is the same hosting snapshot the page already renders.
|
|
808
|
+
*/
|
|
809
|
+
private remoteHostingInvitationFull;
|
|
810
|
+
private remoteHostingInvitationRegenerate;
|
|
811
|
+
private remoteShareAdd;
|
|
812
|
+
private remoteShareRemove;
|
|
813
|
+
private remoteDeviceRevoke;
|
|
814
|
+
/**
|
|
815
|
+
* Raise a paired device to full owner authority, and answer with the refreshed hosting snapshot.
|
|
816
|
+
*
|
|
817
|
+
* The grant is the Settings alternative to revoke-and-re-pair the product contract names; like a
|
|
818
|
+
* full-scope invitation it is refused over cleartext hosting, because the token that would carry
|
|
819
|
+
* the authority travels the wire unencrypted there.
|
|
820
|
+
*/
|
|
821
|
+
private remoteDeviceGrant;
|
|
822
|
+
/**
|
|
823
|
+
* Open (or replace) this engine's relay link to one paired workspace.
|
|
824
|
+
*
|
|
825
|
+
* Idempotent per connection id — the desktop reconnects after its own restarts and must not pay
|
|
826
|
+
* for a second stream while the first still runs. The answer carries what the peer's identity
|
|
827
|
+
* probe said (including the engine capabilities its relay serves), which is what the desktop uses
|
|
828
|
+
* to decide which controls the link can honor.
|
|
829
|
+
*/
|
|
830
|
+
private remoteEngineConnect;
|
|
831
|
+
/** End this engine's relay link to one workspace, if it holds one. */
|
|
832
|
+
private remoteEngineDisconnect;
|
|
833
|
+
/**
|
|
834
|
+
* One workspace's event stream, held until the link is replaced or disconnected.
|
|
835
|
+
*
|
|
836
|
+
* A stream that ends is retried after a pause — a serve restarting, a machine rebooting — but only
|
|
837
|
+
* while the stored pairing is still the one the link was opened for, and never for the verdicts a
|
|
838
|
+
* retry would repeat forever: an identity change or a revocation is reported to the window as a
|
|
839
|
+
* closed link instead.
|
|
840
|
+
*/
|
|
841
|
+
private runEngineLink;
|
|
842
|
+
/**
|
|
843
|
+
* One relayed engine request: a full-grant pairing's client surface, proxied through the same
|
|
844
|
+
* host walk every other peer call uses, with the caller's own deadline carried across so a slow
|
|
845
|
+
* method keeps the budget the desktop granted it.
|
|
846
|
+
*/
|
|
847
|
+
private remoteEngineRequest;
|
|
848
|
+
/**
|
|
849
|
+
* Every paired workspace with a live liveness probe.
|
|
850
|
+
*
|
|
851
|
+
* The probes run together because each is bounded by the client's own timeout; a workspace whose
|
|
852
|
+
* machine is asleep costs one timeout, not one per remaining workspace. A successful probe also
|
|
853
|
+
* refreshes the identity fields from the peer itself, so a rebuilt machine shows its new name.
|
|
854
|
+
*/
|
|
855
|
+
private remoteWorkspacesList;
|
|
856
|
+
/**
|
|
857
|
+
* One workspace's state, probed against the peer addresses the listing would walk.
|
|
858
|
+
*
|
|
859
|
+
* Shared by the listing and the single-workspace re-check: a window watching a machine that is
|
|
860
|
+
* not online asks for that one workspace, and must reach the same answer a full listing would
|
|
861
|
+
* have produced for it — the same address order, the same failure kinds, the same identity fields.
|
|
862
|
+
*/
|
|
863
|
+
private remoteWorkspaceState;
|
|
864
|
+
/**
|
|
865
|
+
* Re-probe one paired workspace.
|
|
866
|
+
*
|
|
867
|
+
* A missing id is the window's stale view of a pairing removed elsewhere, answered as not-found so
|
|
868
|
+
* the client drops the row instead of treating an unknown workspace as an unreachable machine.
|
|
869
|
+
*/
|
|
870
|
+
private remoteWorkspaceProbe;
|
|
871
|
+
/**
|
|
872
|
+
* The fields a probe answer depends on, as one comparable value.
|
|
873
|
+
*
|
|
874
|
+
* The cached identity fields are deliberately absent: they describe the machine as some earlier
|
|
875
|
+
* answer saw it, not what this walk was asked to reach, and only pairing writes them. Everything
|
|
876
|
+
* listed here is a fact about the target, so a difference means the answer above is not this row's.
|
|
877
|
+
*/
|
|
878
|
+
private remoteProbeIdentity;
|
|
879
|
+
/**
|
|
880
|
+
* What a link's reconnect must agree on: trust and addressing. The display label is not among
|
|
881
|
+
* them — a rename while a run's link is live is not a pairing replacement, and closing the link
|
|
882
|
+
* for one would abandon work over a cosmetic edit.
|
|
883
|
+
*/
|
|
884
|
+
private remoteTrustIdentity;
|
|
885
|
+
/**
|
|
886
|
+
* Redeem a pasted pairing code and store the workspace.
|
|
887
|
+
*
|
|
888
|
+
* The credential and the pinned certificate come back from the redemption itself; the invitation
|
|
889
|
+
* is single-use, so the peer rejects a second redemption of the same code. Nothing here is
|
|
890
|
+
* retried against another host after a refusal: a refused invite stays refused.
|
|
891
|
+
*/
|
|
892
|
+
private remoteWorkspaceAdd;
|
|
893
|
+
private remoteWorkspaceRemove;
|
|
894
|
+
private remoteWorkspaceRename;
|
|
895
|
+
/**
|
|
896
|
+
* Move a workspace's target address without touching its trust anchor.
|
|
897
|
+
*
|
|
898
|
+
* The override is what a DHCP lease change asks for: the fingerprint pin still decides which
|
|
899
|
+
* machine is the paired one, so pointing at a new address cannot adopt a different certificate.
|
|
900
|
+
* A null host removes the override and falls back to the advertised addresses.
|
|
901
|
+
*/
|
|
902
|
+
private remoteWorkspaceSetHost;
|
|
903
|
+
/**
|
|
904
|
+
* Everything a peer will let this device browse: its registered projects and its explicit
|
|
905
|
+
* shares. Labels are the peer's chosen display names — absolute paths never cross the wire.
|
|
906
|
+
*/
|
|
907
|
+
private remoteRootsList;
|
|
908
|
+
private remoteProjectsFetch;
|
|
909
|
+
private remoteBrowse;
|
|
910
|
+
private remoteOwnerRoots;
|
|
911
|
+
private remoteOwnerBrowse;
|
|
912
|
+
private remoteOwnerAddProject;
|
|
913
|
+
private listProjects;
|
|
914
|
+
/**
|
|
915
|
+
* Register a project folder, canonicalized so the registry and a peer's root ids agree.
|
|
916
|
+
*
|
|
917
|
+
* realpath makes `projects.add` idempotent across junctions, symlinks, and Windows drive-letter
|
|
918
|
+
* case, and it is the same canonical form `projectRootId` hashes — so the id a peer derives and
|
|
919
|
+
* the id this machine hosts cannot drift apart by spelling.
|
|
920
|
+
*/
|
|
921
|
+
private addProject;
|
|
922
|
+
private removeProject;
|
|
923
|
+
/** The wakes one session is waiting on, in the shape a client draws them in. */
|
|
924
|
+
private timersFor;
|
|
925
|
+
/**
|
|
926
|
+
* A session summary plus what only this process knows: the wakes it is holding, and whether a run of
|
|
927
|
+
* this session is in flight.
|
|
928
|
+
*
|
|
929
|
+
* A row reads its task's story off the saved record, and the saved record lags a live run — the turn
|
|
930
|
+
* being written is not in the file yet, so the last saved one still reads as finished. Naming the run
|
|
931
|
+
* here is what keeps a session that is working from being drawn as a task that is done with you.
|
|
932
|
+
*/
|
|
933
|
+
private summary;
|
|
934
|
+
/**
|
|
935
|
+
* The summary a completed or failed run publishes, built without the live-run override.
|
|
936
|
+
*
|
|
937
|
+
* The terminal story is the saved record's: a completion says the session is done (or waiting on an
|
|
938
|
+
* armed wake), never running. Building the payload from the record alone keeps that true whatever
|
|
939
|
+
* the engine's live-run slot holds at the instant of the emit, rather than relying on the slot
|
|
940
|
+
* having been released a statement earlier in the finalizer.
|
|
941
|
+
*/
|
|
942
|
+
private terminalSummary;
|
|
943
|
+
/**
|
|
944
|
+
* Every wake this process is holding, grouped by the session that armed it.
|
|
945
|
+
*
|
|
946
|
+
* The desktop runs one engine per task, so the wakes a session is waiting on can live in a process its
|
|
947
|
+
* `sessions.list` never reaches: the primary answers for every session on disk and knows only its own
|
|
948
|
+
* registry. This is how a window that has just reloaded asks each engine it reattached to what it is still
|
|
949
|
+
* holding — without it a row whose wake is alive loses its clock, and the user has no way to see that the
|
|
950
|
+
* task is still coming back.
|
|
951
|
+
*/
|
|
952
|
+
private listTimers;
|
|
953
|
+
/** Say what a session is waiting on. An empty list is a real answer: it is what ends a wait. */
|
|
954
|
+
private emitPullRequest;
|
|
955
|
+
/**
|
|
956
|
+
* Start tracking `ref` for the session. A PR already tracked under the same URL keeps its settings, so a
|
|
957
|
+
* repeated `gh pr create` (which reports the existing PR) never switches off what the user turned on.
|
|
958
|
+
*/
|
|
959
|
+
private attachPullRequest;
|
|
960
|
+
private updatePullRequest;
|
|
961
|
+
private dismissPullRequest;
|
|
962
|
+
/**
|
|
963
|
+
* Withdraw an Auto-fix wake this engine holds. One held by another engine is not reachable from here; that
|
|
964
|
+
* engine checks the record again before it delivers (`deliverDueTimers`), and finds the wake unwanted.
|
|
965
|
+
*/
|
|
966
|
+
private cancelAutoFixWake;
|
|
967
|
+
/** The `pull_request` tool's view of one session's PR; `carry` is the calling run's selections. */
|
|
968
|
+
private pullRequestControl;
|
|
969
|
+
/**
|
|
970
|
+
* Hand an Auto-fix prompt to the session through the same wake a `set_timer` arms, under the selections the
|
|
971
|
+
* session's PR was configured from: without them the continuation would run under whatever graph and model
|
|
972
|
+
* the configuration names today, with different tools than the work it is fixing.
|
|
973
|
+
*/
|
|
974
|
+
private wakeForPullRequest;
|
|
975
|
+
private emitTimers;
|
|
976
|
+
/**
|
|
977
|
+
* Publish what a session whose run just ended is waiting on, and arm the next deadline.
|
|
978
|
+
*
|
|
979
|
+
* A wake still armed means the session is waiting rather than finished, and the engine is the only thing
|
|
980
|
+
* left that can deliver it. Nothing armed means the row is free to read as completed.
|
|
981
|
+
*/
|
|
982
|
+
private settleSessionTimers;
|
|
983
|
+
/** Arm the next deadline check, across every session this engine holds wakes for. */
|
|
984
|
+
private armTimerCheck;
|
|
985
|
+
/**
|
|
986
|
+
* When this engine should next look for a due wake, across every session it holds wakes for.
|
|
987
|
+
*
|
|
988
|
+
* Not the same thing as the soonest deadline: a wake a delivery handed back is not looked at again until the
|
|
989
|
+
* beat it came back for has passed, which the registry records on the wake itself. One sweep serves every
|
|
990
|
+
* session this engine has served, so a sweep that read the floor as the deadline would keep arriving at the
|
|
991
|
+
* wake that cannot be delivered, and reach the ones that can only after it.
|
|
992
|
+
*/
|
|
993
|
+
private nextWakeLook;
|
|
994
|
+
/** Begin a delivery pass when none is going. Called by the registry's due callback and by the check. */
|
|
995
|
+
private checkTimers;
|
|
996
|
+
/**
|
|
997
|
+
* Give every wake that has come due to the session that armed it, one run at a time.
|
|
998
|
+
*
|
|
999
|
+
* Each is started on the path a task submitted over the socket takes, so a client sees one lifecycle for
|
|
1000
|
+
* both and the row moves from waiting to running on its own. A wake waits out a run that is already going:
|
|
1001
|
+
* a deadline says the earliest a prompt may be given, not the moment it is, and a session whose engine is
|
|
1002
|
+
* busy is not that moment. A wake whose session has been deleted is dropped — it has no conversation left
|
|
1003
|
+
* to return to. A delivery the engine refuses because it is already busy is put back and tried again: that
|
|
1004
|
+
* refusal describes the moment, not the task. Any other refusal is reported and left spent, rather than
|
|
1005
|
+
* retried on a deadline forever; the row stops saying the session is waiting on it. A wake whose session
|
|
1006
|
+
* cannot be read is put back for the beat its restore armed it for, and the pass carries on: one session's
|
|
1007
|
+
* unreadable record says nothing about what another session is owed.
|
|
1008
|
+
*/
|
|
1009
|
+
private deliverDueTimers;
|
|
1010
|
+
/**
|
|
1011
|
+
* Re-reconcile the runs a foreign engine still owned when this one started, once that engine exits.
|
|
1012
|
+
*
|
|
1013
|
+
* Startup recovery leaves an open record alone while its pid is alive, because a second engine on
|
|
1014
|
+
* this home may genuinely be running it. In the close-and-immediately-reopen flow that holder is
|
|
1015
|
+
* the engine that was shutting down: by the time it exits, this engine has already answered
|
|
1016
|
+
* `sessions.list` with the stale `running`, and the rail reloads nothing on its own — so neither
|
|
1017
|
+
* the spinner nor the interruption mark would show until the window reloads. Poll each holder, and
|
|
1018
|
+
* as soon as one exits, re-run recovery scoped to exactly the records this watch captured
|
|
1019
|
+
* (`onlyRunIds`), then republish the sessions those records name: a window already holding the
|
|
1020
|
+
* stale row gets the correction as an ordinary `session.updated`, and a client that connects later
|
|
1021
|
+
* reads the corrected record off disk. The scoping is what keeps this safe next to live work: this
|
|
1022
|
+
* engine may have started its own run by the time a predecessor dies, and an unscoped sweep — whose
|
|
1023
|
+
* pid check treats a record owned by this very process as stale — would stamp that active attempt
|
|
1024
|
+
* `interrupted` and hand out a Resume for work that is still running. A holder that outlives the
|
|
1025
|
+
* wait is accepted as a genuinely running engine — its work is left exactly as recovery intended.
|
|
1026
|
+
*/
|
|
1027
|
+
watchForeignEngineShutdown(owners: {
|
|
1028
|
+
runId: string;
|
|
1029
|
+
pid: number;
|
|
1030
|
+
sessionId: string | undefined;
|
|
1031
|
+
}[]): void;
|
|
1032
|
+
/** Release everything this process owns. Safe to call twice. */
|
|
1033
|
+
close(): Promise<void>;
|
|
1034
|
+
}
|
|
1035
|
+
/** Run the engine until stdin closes or a client asks for shutdown. Returns the process exit code. */
|
|
1036
|
+
export declare function runAppServer(options?: AppServerOptions & {
|
|
1037
|
+
input?: NodeJS.ReadableStream;
|
|
1038
|
+
}): Promise<number>;
|
|
1039
|
+
export { AppServerError };
|