@andorra-labs/code 0.1.6 → 0.1.8
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/README.md +3 -3
- package/dist/src/agent-execution.js +450 -40
- package/dist/src/agent-mcp-catalog.d.ts +21 -0
- package/dist/src/agent-mcp-catalog.js +40 -0
- package/dist/src/agent-mcp.d.ts +19 -3
- package/dist/src/agent-mcp.js +18 -44
- package/dist/src/app-server/protocol.d.ts +31 -3
- package/dist/src/app-server/protocol.js +8 -1
- package/dist/src/app-server/workspace.d.ts +8 -1
- package/dist/src/app-server/workspace.js +43 -2
- package/dist/src/app-server.d.ts +38 -0
- package/dist/src/app-server.js +373 -57
- package/dist/src/auth/AuthManager.d.ts +33 -1
- package/dist/src/auth/AuthManager.js +138 -10
- package/dist/src/auth/callback-page.d.ts +4 -0
- package/dist/src/auth/callback-page.js +70 -0
- package/dist/src/auth/callback.d.ts +39 -0
- package/dist/src/auth/callback.js +146 -22
- package/dist/src/auth/deployment.d.ts +6 -0
- package/dist/src/auth/deployment.js +8 -2
- package/dist/src/auth/index.d.ts +10 -6
- package/dist/src/auth/index.js +2 -2
- package/dist/src/auth/store.d.ts +142 -3
- package/dist/src/auth/store.js +334 -13
- package/dist/src/auth/types.d.ts +17 -1
- package/dist/src/auth-commands.d.ts +11 -2
- package/dist/src/auth-commands.js +14 -7
- package/dist/src/automation-service.d.ts +7 -2
- package/dist/src/automation-service.js +12 -19
- package/dist/src/automation-tool.js +10 -2
- package/dist/src/automations.d.ts +5 -0
- package/dist/src/automations.js +10 -0
- package/dist/src/background-tasks.d.ts +40 -0
- package/dist/src/background-tasks.js +54 -0
- package/dist/src/browser-view.d.ts +10 -0
- package/dist/src/browser-view.js +22 -0
- package/dist/src/capabilities.d.ts +9 -3
- package/dist/src/capabilities.js +7 -3
- package/dist/src/claude-provider.d.ts +8 -0
- package/dist/src/claude-provider.js +133 -24
- package/dist/src/cli.js +82 -4
- package/dist/src/code-intelligence/CodeIntelligenceManager.d.ts +21 -0
- package/dist/src/code-intelligence/CodeIntelligenceManager.js +51 -0
- package/dist/src/codex-provider.js +12 -0
- package/dist/src/coding-tools.d.ts +5 -0
- package/dist/src/coding-tools.js +220 -51
- package/dist/src/commands.d.ts +5 -1
- package/dist/src/commands.js +9 -8
- package/dist/src/completion.js +96 -1
- package/dist/src/config.d.ts +60 -3
- package/dist/src/config.js +280 -47
- package/dist/src/context-budget.d.ts +7 -0
- package/dist/src/context-budget.js +18 -1
- package/dist/src/decision/FactContinuations.d.ts +41 -6
- package/dist/src/decision/FactContinuations.js +211 -64
- package/dist/src/decision/PreparedSteps.js +3 -1
- package/dist/src/decision/checks.d.ts +25 -0
- package/dist/src/decision/checks.js +77 -6
- package/dist/src/delegation-changes.d.ts +109 -0
- package/dist/src/delegation-changes.js +431 -0
- package/dist/src/extensions.d.ts +2 -0
- package/dist/src/extensions.js +42 -22
- package/dist/src/firefox-cookies.d.ts +78 -0
- package/dist/src/firefox-cookies.js +261 -0
- package/dist/src/graph-health.d.ts +10 -0
- package/dist/src/graph-health.js +5 -0
- package/dist/src/graph-runner.js +8 -1
- package/dist/src/graph-server.d.ts +1 -0
- package/dist/src/graph-server.js +15 -3
- package/dist/src/graph-sync.d.ts +15 -0
- package/dist/src/graph-sync.js +50 -1
- package/dist/src/graph-tool.d.ts +52 -0
- package/dist/src/graph-tool.js +136 -0
- package/dist/src/graph-ui/app.js +212 -43
- package/dist/src/graph-ui/controls.js +6 -0
- package/dist/src/graph-ui/drafts.js +39 -0
- package/dist/src/graph-ui/embed.js +1 -1
- package/dist/src/graph-ui/index.html +2 -2
- package/dist/src/graph-ui/studio.css +7 -5
- package/dist/src/graph-ui/style.css +46 -12
- package/dist/src/graph-ui/tokens.css +23 -23
- package/dist/src/graphs.d.ts +15 -2
- package/dist/src/graphs.js +42 -13
- package/dist/src/hardened-runtime.d.ts +9 -4
- package/dist/src/hardened-runtime.js +121 -9
- package/dist/src/host-process-guard.d.ts +62 -0
- package/dist/src/host-process-guard.js +2859 -0
- package/dist/src/mcp.d.ts +55 -2
- package/dist/src/mcp.js +360 -88
- package/dist/src/memory/MemoryManager.js +7 -13
- package/dist/src/memory/MemoryProvider.d.ts +1 -1
- package/dist/src/memory/index.d.ts +0 -2
- package/dist/src/memory/index.js +0 -2
- package/dist/src/memory/repository.d.ts +1 -1
- package/dist/src/memory/repository.js +2 -2
- package/dist/src/memory/types.d.ts +1 -8
- package/dist/src/memory/types.js +1 -1
- package/dist/src/model-health-cache.d.ts +62 -0
- package/dist/src/model-health-cache.js +161 -0
- package/dist/src/powershell-pool.d.ts +9 -0
- package/dist/src/powershell-pool.js +16 -0
- package/dist/src/provider-engine.d.ts +21 -0
- package/dist/src/provider-engine.js +63 -5
- package/dist/src/provider-keys.d.ts +48 -0
- package/dist/src/provider-keys.js +121 -0
- package/dist/src/provider-settings.js +1 -1
- package/dist/src/providers.d.ts +22 -0
- package/dist/src/providers.js +81 -32
- package/dist/src/pull-requests.d.ts +14 -5
- package/dist/src/pull-requests.js +28 -10
- package/dist/src/qa/index.d.ts +3 -2
- package/dist/src/qa/index.js +3 -2
- package/dist/src/qa/qa-authorize.js +6 -0
- package/dist/src/qa/runtime/ProcessManager.d.ts +16 -0
- package/dist/src/qa/runtime/ProcessManager.js +37 -2
- package/dist/src/qa/runtime/PtyManager.d.ts +9 -0
- package/dist/src/qa/runtime/PtyManager.js +18 -0
- package/dist/src/qa/runtime/changes.d.ts +15 -0
- package/dist/src/qa/runtime/changes.js +15 -0
- package/dist/src/qa/tools.js +4 -0
- package/dist/src/react-runtime.js +52 -7
- package/dist/src/read-image.d.ts +30 -0
- package/dist/src/read-image.js +97 -0
- package/dist/src/remote/engine-pool.js +3 -1
- package/dist/src/remote/network.js +1 -1
- package/dist/src/run-control.d.ts +9 -0
- package/dist/src/run-control.js +15 -0
- package/dist/src/runtime.d.ts +1 -1
- package/dist/src/runtime.js +2 -1
- package/dist/src/secret-redaction.d.ts +13 -0
- package/dist/src/secret-redaction.js +71 -0
- package/dist/src/session-summary.d.ts +10 -4
- package/dist/src/session-summary.js +14 -7
- package/dist/src/sessions.js +4 -1
- package/dist/src/skills/bundled/create-skill/SKILL.md +17 -3
- package/dist/src/skills/bundled/diagram/SKILL.md +144 -0
- package/dist/src/skills/bundled/graph-manager/SKILL.md +17 -12
- package/dist/src/skills/bundled/manage-skills/SKILL.md +6 -1
- package/dist/src/skills/bundled/provenance.json +8 -3
- package/dist/src/skills/runtime-skills.d.ts +7 -0
- package/dist/src/skills/runtime-skills.js +12 -3
- package/dist/src/subagent-run.js +1 -1
- package/dist/src/telemetry/schema.d.ts +1 -1
- package/dist/src/telemetry/schema.js +1 -1
- package/dist/src/terminal-ui.d.ts +9 -0
- package/dist/src/terminal-ui.js +14 -0
- package/dist/src/tool-availability.d.ts +16 -0
- package/dist/src/tool-availability.js +28 -0
- package/dist/src/tool-dependencies.js +4 -0
- package/dist/src/tools.d.ts +9 -0
- package/dist/src/tools.js +116 -11
- package/dist/src/transcript.js +5 -0
- package/dist/src/types.d.ts +32 -5
- package/dist/src/update-check.d.ts +35 -0
- package/dist/src/update-check.js +104 -0
- package/dist/src/usage-analytics.d.ts +6 -0
- package/dist/src/usage-analytics.js +47 -4
- package/dist/src/web-search.d.ts +65 -0
- package/dist/src/web-search.js +228 -0
- package/dist/src/workspace-instructions.d.ts +10 -0
- package/dist/src/workspace-instructions.js +26 -21
- package/dist/vendor/engine/provenance.json +3088 -17923
- package/dist/vendor/engine/runtime/agent/types.d.ts +1 -1
- package/dist/vendor/engine/runtime/ai/types.d.ts +8 -14
- package/dist/vendor/engine/runtime/coding-agent/core/tools/bash.d.ts +2 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/bash.js +2 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/edit.d.ts +3 -4
- package/dist/vendor/engine/runtime/coding-agent/core/tools/edit.js +0 -3
- package/dist/vendor/engine/runtime/coding-agent/core/tools/find.d.ts +2 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/find.js +0 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/grep.d.ts +2 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/grep.js +0 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/index.d.ts +2 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/ls.d.ts +2 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/ls.js +0 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/read.d.ts +3 -3
- package/dist/vendor/engine/runtime/coding-agent/core/tools/read.js +0 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/tool-definition-wrapper.d.ts +2 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/tool-definition.d.ts +40 -0
- package/dist/vendor/engine/runtime/coding-agent/core/tools/write.d.ts +2 -2
- package/dist/vendor/engine/runtime/coding-agent/core/tools/write.js +0 -2
- package/docs/README.md +1 -1
- package/docs/agents/README.md +7 -7
- package/docs/agents/install-for-agents.md +7 -6
- package/docs/agents/mcp-server.md +18 -5
- package/docs/agents/subagent-mode.md +6 -6
- package/docs/concepts/README.md +4 -4
- package/docs/concepts/jev-efficiency.md +2 -1
- package/docs/concepts/limits.md +3 -3
- package/docs/concepts/memory.md +5 -25
- package/docs/concepts/security.md +15 -7
- package/docs/concepts/workspace-instructions.md +3 -2
- package/docs/getting-started/README.md +3 -3
- package/docs/getting-started/accounts.md +19 -8
- package/docs/getting-started/configure-providers.md +5 -3
- package/docs/guides/README.md +1 -0
- package/docs/guides/browser.md +13 -1
- package/docs/guides/desktop-app.md +72 -19
- package/docs/guides/extensions.md +4 -2
- package/docs/guides/graph-builder.md +2 -2
- package/docs/guides/headless.md +5 -4
- package/docs/guides/update.md +3 -1
- package/docs/guides/web-search.md +51 -0
- package/docs/guides/windows-code-signing.md +13 -10
- package/docs/llms.txt +2 -2
- package/docs/reference/cli.md +13 -7
- package/docs/reference/config.md +17 -11
- package/docs/reference/slash-commands.md +7 -3
- package/docs/superpowers/plans/2026-11-09-orchestrator-delegation.md +295 -0
- package/docs/superpowers/specs/2026-11-09-orchestrator-delegation-design.md +291 -0
- package/package.json +3 -22
- package/tests/harness-extensions-test-plan.md +4 -1
- package/dist/src/memory/providers/graphiti/GraphitiClient.d.ts +0 -27
- package/dist/src/memory/providers/graphiti/GraphitiClient.js +0 -76
- package/dist/src/memory/providers/graphiti/GraphitiMapper.d.ts +0 -6
- package/dist/src/memory/providers/graphiti/GraphitiMapper.js +0 -116
- package/dist/src/memory/providers/graphiti/GraphitiMemoryProvider.d.ts +0 -27
- package/dist/src/memory/providers/graphiti/GraphitiMemoryProvider.js +0 -137
- package/dist/src/memory/providers/graphiti/GraphitiTypes.d.ts +0 -57
- package/dist/src/memory/providers/graphiti/GraphitiTypes.js +0 -2
- package/dist/vendor/engine/runtime/agent/agent-loop.d.ts +0 -23
- package/dist/vendor/engine/runtime/agent/agent-loop.js +0 -601
- package/dist/vendor/engine/runtime/agent/agent.d.ts +0 -130
- package/dist/vendor/engine/runtime/agent/agent.js +0 -430
- package/dist/vendor/engine/runtime/agent/harness/agent-harness.d.ts +0 -715
- package/dist/vendor/engine/runtime/agent/harness/agent-harness.js +0 -5
- package/dist/vendor/engine/runtime/agent/harness/compaction/branch-summarization.d.ts +0 -67
- package/dist/vendor/engine/runtime/agent/harness/compaction/branch-summarization.js +0 -175
- package/dist/vendor/engine/runtime/agent/harness/compaction/compaction.d.ts +0 -125
- package/dist/vendor/engine/runtime/agent/harness/compaction/compaction.js +0 -559
- package/dist/vendor/engine/runtime/agent/harness/compaction/utils.d.ts +0 -24
- package/dist/vendor/engine/runtime/agent/harness/compaction/utils.js +0 -119
- package/dist/vendor/engine/runtime/agent/harness/config.d.ts +0 -8
- package/dist/vendor/engine/runtime/agent/harness/config.js +0 -34
- package/dist/vendor/engine/runtime/agent/harness/context.d.ts +0 -8
- package/dist/vendor/engine/runtime/agent/harness/context.js +0 -12
- package/dist/vendor/engine/runtime/agent/harness/events.d.ts +0 -24
- package/dist/vendor/engine/runtime/agent/harness/events.js +0 -249
- package/dist/vendor/engine/runtime/agent/harness/execution/assistant.d.ts +0 -41
- package/dist/vendor/engine/runtime/agent/harness/execution/assistant.js +0 -81
- package/dist/vendor/engine/runtime/agent/harness/execution/effect-gate.d.ts +0 -21
- package/dist/vendor/engine/runtime/agent/harness/execution/effect-gate.js +0 -48
- package/dist/vendor/engine/runtime/agent/harness/execution/tools.d.ts +0 -66
- package/dist/vendor/engine/runtime/agent/harness/execution/tools.js +0 -118
- package/dist/vendor/engine/runtime/agent/harness/hooks.d.ts +0 -37
- package/dist/vendor/engine/runtime/agent/harness/hooks.js +0 -405
- package/dist/vendor/engine/runtime/agent/harness/messages.d.ts +0 -50
- package/dist/vendor/engine/runtime/agent/harness/messages.js +0 -102
- package/dist/vendor/engine/runtime/agent/harness/prompt-templates.d.ts +0 -48
- package/dist/vendor/engine/runtime/agent/harness/prompt-templates.js +0 -224
- package/dist/vendor/engine/runtime/agent/harness/result.d.ts +0 -132
- package/dist/vendor/engine/runtime/agent/harness/result.js +0 -80
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/boundary.d.ts +0 -27
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/boundary.js +0 -172
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/checkpoint.d.ts +0 -7
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/checkpoint.js +0 -132
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/deferred.d.ts +0 -14
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/deferred.js +0 -178
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/generation.d.ts +0 -7
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/generation.js +0 -204
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/reconcile.d.ts +0 -4
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/reconcile.js +0 -139
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/recovery.d.ts +0 -7
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/recovery.js +0 -84
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/response.d.ts +0 -22
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/response.js +0 -393
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/retry.d.ts +0 -3
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/retry.js +0 -33
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/structural.d.ts +0 -31
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/structural.js +0 -928
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/terminal.d.ts +0 -6
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/terminal.js +0 -48
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/tool-placement.d.ts +0 -13
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/tool-placement.js +0 -218
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/tools.d.ts +0 -5
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive/tools.js +0 -448
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive.d.ts +0 -5
- package/dist/vendor/engine/runtime/agent/harness/runtime/drive.js +0 -92
- package/dist/vendor/engine/runtime/agent/harness/runtime/harness.d.ts +0 -58
- package/dist/vendor/engine/runtime/agent/harness/runtime/harness.js +0 -310
- package/dist/vendor/engine/runtime/agent/harness/runtime/lane.d.ts +0 -117
- package/dist/vendor/engine/runtime/agent/harness/runtime/lane.js +0 -1574
- package/dist/vendor/engine/runtime/agent/harness/runtime/progress.d.ts +0 -14
- package/dist/vendor/engine/runtime/agent/harness/runtime/progress.js +0 -65
- package/dist/vendor/engine/runtime/agent/harness/runtime/reducer.d.ts +0 -4
- package/dist/vendor/engine/runtime/agent/harness/runtime/reducer.js +0 -239
- package/dist/vendor/engine/runtime/agent/harness/runtime/restore.d.ts +0 -23
- package/dist/vendor/engine/runtime/agent/harness/runtime/restore.js +0 -116
- package/dist/vendor/engine/runtime/agent/harness/runtime/transcript.d.ts +0 -20
- package/dist/vendor/engine/runtime/agent/harness/runtime/transcript.js +0 -71
- package/dist/vendor/engine/runtime/agent/harness/runtime/types.d.ts +0 -104
- package/dist/vendor/engine/runtime/agent/harness/runtime/types.js +0 -60
- package/dist/vendor/engine/runtime/agent/harness/session/commit.d.ts +0 -52
- package/dist/vendor/engine/runtime/agent/harness/session/commit.js +0 -56
- package/dist/vendor/engine/runtime/agent/harness/session/context.d.ts +0 -9
- package/dist/vendor/engine/runtime/agent/harness/session/context.js +0 -48
- package/dist/vendor/engine/runtime/agent/harness/session/fork-policy.d.ts +0 -20
- package/dist/vendor/engine/runtime/agent/harness/session/fork-policy.js +0 -54
- package/dist/vendor/engine/runtime/agent/harness/session/fork.d.ts +0 -15
- package/dist/vendor/engine/runtime/agent/harness/session/fork.js +0 -78
- package/dist/vendor/engine/runtime/agent/harness/session/in-memory-storage-state.d.ts +0 -38
- package/dist/vendor/engine/runtime/agent/harness/session/in-memory-storage-state.js +0 -275
- package/dist/vendor/engine/runtime/agent/harness/session/index.d.ts +0 -10
- package/dist/vendor/engine/runtime/agent/harness/session/index.js +0 -8
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/codec.d.ts +0 -20
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/codec.js +0 -44
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/fork.d.ts +0 -37
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/fork.js +0 -263
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/index.d.ts +0 -3
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/index.js +0 -3
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/io.d.ts +0 -13
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/io.js +0 -85
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/legacy-v3.d.ts +0 -43
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/legacy-v3.js +0 -461
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/repo.d.ts +0 -34
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/repo.js +0 -300
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/storage.d.ts +0 -40
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/storage.js +0 -199
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/types.d.ts +0 -38
- package/dist/vendor/engine/runtime/agent/harness/session/jsonl/types.js +0 -2
- package/dist/vendor/engine/runtime/agent/harness/session/memory.d.ts +0 -47
- package/dist/vendor/engine/runtime/agent/harness/session/memory.js +0 -368
- package/dist/vendor/engine/runtime/agent/harness/session/mutation-line.d.ts +0 -7
- package/dist/vendor/engine/runtime/agent/harness/session/mutation-line.js +0 -20
- package/dist/vendor/engine/runtime/agent/harness/session/session.d.ts +0 -81
- package/dist/vendor/engine/runtime/agent/harness/session/session.js +0 -360
- package/dist/vendor/engine/runtime/agent/harness/session/types.d.ts +0 -511
- package/dist/vendor/engine/runtime/agent/harness/session/types.js +0 -8
- package/dist/vendor/engine/runtime/agent/harness/session/values.d.ts +0 -94
- package/dist/vendor/engine/runtime/agent/harness/session/values.js +0 -80
- package/dist/vendor/engine/runtime/agent/harness/skills.d.ts +0 -45
- package/dist/vendor/engine/runtime/agent/harness/skills.js +0 -325
- package/dist/vendor/engine/runtime/agent/harness/system-prompt.d.ts +0 -2
- package/dist/vendor/engine/runtime/agent/harness/system-prompt.js +0 -29
- package/dist/vendor/engine/runtime/agent/harness/telemetry.d.ts +0 -1241
- package/dist/vendor/engine/runtime/agent/harness/telemetry.js +0 -526
- package/dist/vendor/engine/runtime/agent/harness/tools/bash.d.ts +0 -26
- package/dist/vendor/engine/runtime/agent/harness/tools/bash.js +0 -104
- package/dist/vendor/engine/runtime/agent/harness/tools/edit-diff.d.ts +0 -88
- package/dist/vendor/engine/runtime/agent/harness/tools/edit-diff.js +0 -385
- package/dist/vendor/engine/runtime/agent/harness/tools/edit.d.ts +0 -18
- package/dist/vendor/engine/runtime/agent/harness/tools/edit.js +0 -107
- package/dist/vendor/engine/runtime/agent/harness/tools/file-mutation-queue.d.ts +0 -4
- package/dist/vendor/engine/runtime/agent/harness/tools/file-mutation-queue.js +0 -45
- package/dist/vendor/engine/runtime/agent/harness/tools/image.d.ts +0 -2
- package/dist/vendor/engine/runtime/agent/harness/tools/image.js +0 -105
- package/dist/vendor/engine/runtime/agent/harness/tools/index.d.ts +0 -5
- package/dist/vendor/engine/runtime/agent/harness/tools/index.js +0 -4
- package/dist/vendor/engine/runtime/agent/harness/tools/path-utils.d.ts +0 -4
- package/dist/vendor/engine/runtime/agent/harness/tools/path-utils.js +0 -25
- package/dist/vendor/engine/runtime/agent/harness/tools/read.d.ts +0 -34
- package/dist/vendor/engine/runtime/agent/harness/tools/read.js +0 -107
- package/dist/vendor/engine/runtime/agent/harness/tools/tool-context.d.ts +0 -5
- package/dist/vendor/engine/runtime/agent/harness/tools/write.d.ts +0 -10
- package/dist/vendor/engine/runtime/agent/harness/tools/write.js +0 -30
- package/dist/vendor/engine/runtime/agent/harness/types.d.ts +0 -304
- package/dist/vendor/engine/runtime/agent/harness/types.js +0 -74
- package/dist/vendor/engine/runtime/agent/harness/utils/adaptive-publisher.d.ts +0 -23
- package/dist/vendor/engine/runtime/agent/harness/utils/adaptive-publisher.js +0 -78
- package/dist/vendor/engine/runtime/agent/harness/utils/output-capture.d.ts +0 -30
- package/dist/vendor/engine/runtime/agent/harness/utils/output-capture.js +0 -216
- package/dist/vendor/engine/runtime/agent/harness/utils/shell-output.d.ts +0 -28
- package/dist/vendor/engine/runtime/agent/harness/utils/shell-output.js +0 -70
- package/dist/vendor/engine/runtime/agent/harness/utils/truncate.d.ts +0 -70
- package/dist/vendor/engine/runtime/agent/harness/utils/truncate.js +0 -295
- package/dist/vendor/engine/runtime/agent/harness/utils/usage.d.ts +0 -3
- package/dist/vendor/engine/runtime/agent/harness/utils/usage.js +0 -32
- package/dist/vendor/engine/runtime/agent/index.d.ts +0 -27
- package/dist/vendor/engine/runtime/agent/index.js +0 -25
- package/dist/vendor/engine/runtime/agent/proxy.d.ts +0 -71
- package/dist/vendor/engine/runtime/agent/proxy.js +0 -309
- package/dist/vendor/engine/runtime/agent/search/index.d.ts +0 -28
- package/dist/vendor/engine/runtime/agent/search/index.js +0 -1
- package/dist/vendor/engine/runtime/agent/stream-fn.d.ts +0 -9
- package/dist/vendor/engine/runtime/agent/stream-fn.js +0 -16
- package/dist/vendor/engine/runtime/ai/api/anthropic-messages.lazy.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/api/anthropic-messages.lazy.js +0 -2
- package/dist/vendor/engine/runtime/ai/api/azure-openai-responses.d.ts +0 -16
- package/dist/vendor/engine/runtime/ai/api/azure-openai-responses.js +0 -260
- package/dist/vendor/engine/runtime/ai/api/azure-openai-responses.lazy.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/api/azure-openai-responses.lazy.js +0 -2
- package/dist/vendor/engine/runtime/ai/api/bedrock-converse-stream.d.ts +0 -37
- package/dist/vendor/engine/runtime/ai/api/bedrock-converse-stream.js +0 -1091
- package/dist/vendor/engine/runtime/ai/api/bedrock-converse-stream.lazy.d.ts +0 -9
- package/dist/vendor/engine/runtime/ai/api/bedrock-converse-stream.lazy.js +0 -21
- package/dist/vendor/engine/runtime/ai/api/google-generative-ai.d.ts +0 -12
- package/dist/vendor/engine/runtime/ai/api/google-generative-ai.js +0 -368
- package/dist/vendor/engine/runtime/ai/api/google-generative-ai.lazy.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/api/google-generative-ai.lazy.js +0 -2
- package/dist/vendor/engine/runtime/ai/api/google-vertex.d.ts +0 -14
- package/dist/vendor/engine/runtime/ai/api/google-vertex.js +0 -429
- package/dist/vendor/engine/runtime/ai/api/google-vertex.lazy.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/api/google-vertex.lazy.js +0 -2
- package/dist/vendor/engine/runtime/ai/api/mistral-conversations.d.ts +0 -24
- package/dist/vendor/engine/runtime/ai/api/mistral-conversations.js +0 -747
- package/dist/vendor/engine/runtime/ai/api/mistral-conversations.lazy.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/api/mistral-conversations.lazy.js +0 -2
- package/dist/vendor/engine/runtime/ai/api/openai-codex-responses.d.ts +0 -30
- package/dist/vendor/engine/runtime/ai/api/openai-codex-responses.js +0 -1302
- package/dist/vendor/engine/runtime/ai/api/openai-codex-responses.lazy.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/api/openai-codex-responses.lazy.js +0 -2
- package/dist/vendor/engine/runtime/ai/api/openai-completions.lazy.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/api/openai-completions.lazy.js +0 -2
- package/dist/vendor/engine/runtime/ai/api/openai-responses.lazy.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/api/openai-responses.lazy.js +0 -2
- package/dist/vendor/engine/runtime/ai/api/openrouter-images.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/api/openrouter-images.js +0 -131
- package/dist/vendor/engine/runtime/ai/api/openrouter-images.lazy.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/api/openrouter-images.lazy.js +0 -3
- package/dist/vendor/engine/runtime/ai/api/pi-messages.d.ts +0 -98
- package/dist/vendor/engine/runtime/ai/api/pi-messages.js +0 -312
- package/dist/vendor/engine/runtime/ai/api/pi-messages.lazy.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/api/pi-messages.lazy.js +0 -2
- package/dist/vendor/engine/runtime/ai/auth/helpers.d.ts +0 -21
- package/dist/vendor/engine/runtime/ai/auth/helpers.js +0 -52
- package/dist/vendor/engine/runtime/ai/auth/oauth/load.d.ts +0 -28
- package/dist/vendor/engine/runtime/ai/auth/oauth/load.js +0 -55
- package/dist/vendor/engine/runtime/ai/compat/extension-oauth-types.d.ts +0 -38
- package/dist/vendor/engine/runtime/ai/compat/extension-oauth-types.js +0 -1
- package/dist/vendor/engine/runtime/ai/compat.d.ts +0 -66
- package/dist/vendor/engine/runtime/ai/compat.js +0 -201
- package/dist/vendor/engine/runtime/ai/env-api-keys.d.ts +0 -20
- package/dist/vendor/engine/runtime/ai/env-api-keys.js +0 -148
- package/dist/vendor/engine/runtime/ai/image-models.d.ts +0 -9
- package/dist/vendor/engine/runtime/ai/image-models.generated.d.ts +0 -814
- package/dist/vendor/engine/runtime/ai/image-models.generated.js +0 -816
- package/dist/vendor/engine/runtime/ai/image-models.js +0 -22
- package/dist/vendor/engine/runtime/ai/images-api-registry.d.ts +0 -13
- package/dist/vendor/engine/runtime/ai/images-api-registry.js +0 -21
- package/dist/vendor/engine/runtime/ai/images-models.d.ts +0 -94
- package/dist/vendor/engine/runtime/ai/images-models.js +0 -142
- package/dist/vendor/engine/runtime/ai/images.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/images.js +0 -13
- package/dist/vendor/engine/runtime/ai/index.d.ts +0 -36
- package/dist/vendor/engine/runtime/ai/index.js +0 -23
- package/dist/vendor/engine/runtime/ai/legacy-api-aliases.d.ts +0 -41
- package/dist/vendor/engine/runtime/ai/legacy-api-aliases.js +0 -48
- package/dist/vendor/engine/runtime/ai/models.generated.d.ts +0 -84
- package/dist/vendor/engine/runtime/ai/models.generated.js +0 -86
- package/dist/vendor/engine/runtime/ai/oauth.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/oauth.js +0 -1
- package/dist/vendor/engine/runtime/ai/providers/all.d.ts +0 -27
- package/dist/vendor/engine/runtime/ai/providers/all.js +0 -132
- package/dist/vendor/engine/runtime/ai/providers/amazon-bedrock.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/amazon-bedrock.js +0 -92
- package/dist/vendor/engine/runtime/ai/providers/amazon-bedrock.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/amazon-bedrock.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/ant-ling.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/ant-ling.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/ant-ling.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/ant-ling.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/anthropic.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/anthropic.js +0 -55
- package/dist/vendor/engine/runtime/ai/providers/azure-openai-responses.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/azure-openai-responses.js +0 -13
- package/dist/vendor/engine/runtime/ai/providers/azure-openai-responses.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/azure-openai-responses.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/baseten.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/baseten.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/baseten.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/baseten.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/cerebras.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/cerebras.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/cerebras.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/cerebras.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-ai-gateway.d.ts +0 -4
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-ai-gateway.js +0 -24
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-ai-gateway.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-ai-gateway.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-auth.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-auth.js +0 -85
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-stream.d.ts +0 -7
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-stream.js +0 -20
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-workers-ai.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-workers-ai.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-workers-ai.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/cloudflare-workers-ai.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/data/.manifest.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/amazon-bedrock.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/ant-ling.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/azure-openai-responses.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/baseten.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/cerebras.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/cloudflare-ai-gateway.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/cloudflare-workers-ai.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/deepseek.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/fireworks.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/github-copilot.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/google-vertex.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/google.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/groq.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/huggingface.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/kimi-coding.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/meta.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/minimax-cn.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/minimax.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/mistral.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/moonshotai-cn.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/moonshotai.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/nvidia.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/openai-codex.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/openai.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/opencode-go.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/opencode.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/openrouter.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/qwen-token-plan-cn.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/qwen-token-plan-individual.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/qwen-token-plan.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/radius.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/together.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/vercel-ai-gateway.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/xai.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/xiaomi-token-plan-ams.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/xiaomi-token-plan-cn.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/xiaomi-token-plan-sgp.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/xiaomi.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/zai-coding-cn.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/data/zai.json +0 -1
- package/dist/vendor/engine/runtime/ai/providers/deepseek.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/deepseek.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/deepseek.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/deepseek.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/faux.d.ts +0 -102
- package/dist/vendor/engine/runtime/ai/providers/faux.js +0 -488
- package/dist/vendor/engine/runtime/ai/providers/fireworks.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/fireworks.js +0 -18
- package/dist/vendor/engine/runtime/ai/providers/fireworks.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/fireworks.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/github-copilot.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/github-copilot.js +0 -34
- package/dist/vendor/engine/runtime/ai/providers/github-copilot.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/github-copilot.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/google-vertex.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/google-vertex.js +0 -93
- package/dist/vendor/engine/runtime/ai/providers/google-vertex.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/google-vertex.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/google.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/google.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/google.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/google.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/groq.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/groq.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/groq.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/groq.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/huggingface.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/huggingface.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/huggingface.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/huggingface.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/images/register-builtins.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/images/register-builtins.js +0 -33
- package/dist/vendor/engine/runtime/ai/providers/kimi-coding.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/kimi-coding.js +0 -23
- package/dist/vendor/engine/runtime/ai/providers/kimi-coding.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/kimi-coding.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/meta.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/meta.js +0 -23
- package/dist/vendor/engine/runtime/ai/providers/meta.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/meta.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/minimax-cn.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/minimax-cn.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/minimax-cn.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/minimax-cn.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/minimax.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/minimax.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/minimax.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/minimax.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/mistral.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/mistral.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/mistral.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/mistral.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/moonshotai-cn.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/moonshotai-cn.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/moonshotai-cn.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/moonshotai-cn.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/moonshotai.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/moonshotai.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/moonshotai.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/moonshotai.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/nvidia.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/nvidia.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/nvidia.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/nvidia.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/openai-codex.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/openai-codex.js +0 -21
- package/dist/vendor/engine/runtime/ai/providers/openai-codex.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/openai-codex.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/openai.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/openai.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/openai.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/openai.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/opencode-go.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/opencode-go.js +0 -20
- package/dist/vendor/engine/runtime/ai/providers/opencode-go.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/opencode-go.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/opencode-headers.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/opencode-headers.js +0 -21
- package/dist/vendor/engine/runtime/ai/providers/opencode.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/opencode.js +0 -22
- package/dist/vendor/engine/runtime/ai/providers/opencode.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/opencode.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/openrouter-images.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/openrouter-images.js +0 -21
- package/dist/vendor/engine/runtime/ai/providers/openrouter.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/openrouter.js +0 -26
- package/dist/vendor/engine/runtime/ai/providers/openrouter.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/openrouter.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-cn.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-cn.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-cn.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-cn.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-individual.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-individual.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-individual.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan-individual.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/qwen-token-plan.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/radius-config.d.ts +0 -25
- package/dist/vendor/engine/runtime/ai/providers/radius-config.js +0 -62
- package/dist/vendor/engine/runtime/ai/providers/radius.d.ts +0 -8
- package/dist/vendor/engine/runtime/ai/providers/radius.js +0 -77
- package/dist/vendor/engine/runtime/ai/providers/radius.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/radius.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/together.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/together.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/together.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/together.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/vercel-ai-gateway.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/vercel-ai-gateway.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/vercel-ai-gateway.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/vercel-ai-gateway.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/xai.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/xai.js +0 -23
- package/dist/vendor/engine/runtime/ai/providers/xai.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/xai.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-ams.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-ams.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-ams.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-ams.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-cn.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-cn.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-cn.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-cn.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-sgp.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-sgp.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-sgp.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/xiaomi-token-plan-sgp.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/xiaomi.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/xiaomi.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/xiaomi.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/xiaomi.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/zai-coding-cn.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/zai-coding-cn.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/zai-coding-cn.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/zai-coding-cn.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/providers/zai.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/providers/zai.js +0 -14
- package/dist/vendor/engine/runtime/ai/providers/zai.models.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/providers/zai.models.js +0 -5
- package/dist/vendor/engine/runtime/ai/session-resources.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/session-resources.js +0 -21
- package/dist/vendor/engine/runtime/ai/utils/abort-signals.d.ts +0 -5
- package/dist/vendor/engine/runtime/ai/utils/abort-signals.js +0 -33
- package/dist/vendor/engine/runtime/ai/utils/assistant-message-frame.d.ts +0 -76
- package/dist/vendor/engine/runtime/ai/utils/assistant-message-frame.js +0 -424
- package/dist/vendor/engine/runtime/ai/utils/node-http-proxy.d.ts +0 -3
- package/dist/vendor/engine/runtime/ai/utils/node-http-proxy.js +0 -132
- package/dist/vendor/engine/runtime/ai/utils/retry.d.ts +0 -57
- package/dist/vendor/engine/runtime/ai/utils/retry.js +0 -182
- package/dist/vendor/engine/runtime/ai/utils/typebox-helpers.d.ts +0 -16
- package/dist/vendor/engine/runtime/ai/utils/typebox-helpers.js +0 -20
- package/dist/vendor/engine/runtime/ai/utils/uuid.d.ts +0 -2
- package/dist/vendor/engine/runtime/ai/utils/uuid.js +0 -41
- package/dist/vendor/engine/runtime/ai/utils/validation.d.ts +0 -17
- package/dist/vendor/engine/runtime/ai/utils/validation.js +0 -308
- package/dist/vendor/engine/runtime/chord/api.d.ts +0 -14
- package/dist/vendor/engine/runtime/chord/api.js +0 -71
- package/dist/vendor/engine/runtime/chord/context/index.d.ts +0 -23
- package/dist/vendor/engine/runtime/chord/context/index.js +0 -96
- package/dist/vendor/engine/runtime/chord/delta/index.d.ts +0 -118
- package/dist/vendor/engine/runtime/chord/delta/index.js +0 -1903
- package/dist/vendor/engine/runtime/chord/facets/host.d.ts +0 -11
- package/dist/vendor/engine/runtime/chord/facets/host.js +0 -762
- package/dist/vendor/engine/runtime/chord/facets/loader.d.ts +0 -2
- package/dist/vendor/engine/runtime/chord/facets/loader.js +0 -4
- package/dist/vendor/engine/runtime/chord/index.d.ts +0 -10
- package/dist/vendor/engine/runtime/chord/index.js +0 -9
- package/dist/vendor/engine/runtime/chord/json.d.ts +0 -3
- package/dist/vendor/engine/runtime/chord/json.js +0 -56
- package/dist/vendor/engine/runtime/chord/services/consumer.d.ts +0 -10
- package/dist/vendor/engine/runtime/chord/services/consumer.js +0 -536
- package/dist/vendor/engine/runtime/chord/services/errors.d.ts +0 -7
- package/dist/vendor/engine/runtime/chord/services/errors.js +0 -21
- package/dist/vendor/engine/runtime/chord/services/handle.d.ts +0 -14
- package/dist/vendor/engine/runtime/chord/services/handle.js +0 -100
- package/dist/vendor/engine/runtime/chord/services/instances.d.ts +0 -24
- package/dist/vendor/engine/runtime/chord/services/instances.js +0 -136
- package/dist/vendor/engine/runtime/chord/services/loopback.d.ts +0 -4
- package/dist/vendor/engine/runtime/chord/services/loopback.js +0 -14
- package/dist/vendor/engine/runtime/chord/services/provider.d.ts +0 -36
- package/dist/vendor/engine/runtime/chord/services/provider.js +0 -471
- package/dist/vendor/engine/runtime/chord/services/state-codec.d.ts +0 -14
- package/dist/vendor/engine/runtime/chord/services/state-codec.js +0 -114
- package/dist/vendor/engine/runtime/chord/services/state-internals.d.ts +0 -10
- package/dist/vendor/engine/runtime/chord/services/state-internals.js +0 -9
- package/dist/vendor/engine/runtime/chord/services/state.d.ts +0 -22
- package/dist/vendor/engine/runtime/chord/services/state.js +0 -123
- package/dist/vendor/engine/runtime/chord/services/wire.d.ts +0 -59
- package/dist/vendor/engine/runtime/chord/services/wire.js +0 -172
- package/dist/vendor/engine/runtime/chord/types.d.ts +0 -202
- package/dist/vendor/engine/runtime/chord/types.js +0 -1
- package/dist/vendor/engine/runtime/coding-agent/cli/args.d.ts +0 -60
- package/dist/vendor/engine/runtime/coding-agent/cli/args.js +0 -439
- package/dist/vendor/engine/runtime/coding-agent/cli/auth-check.d.ts +0 -18
- package/dist/vendor/engine/runtime/coding-agent/cli/auth-check.js +0 -49
- package/dist/vendor/engine/runtime/coding-agent/cli/auth-command.d.ts +0 -23
- package/dist/vendor/engine/runtime/coding-agent/cli/auth-command.js +0 -102
- package/dist/vendor/engine/runtime/coding-agent/cli/config-selector.d.ts +0 -15
- package/dist/vendor/engine/runtime/coding-agent/cli/config-selector.js +0 -31
- package/dist/vendor/engine/runtime/coding-agent/cli/credential-print.d.ts +0 -12
- package/dist/vendor/engine/runtime/coding-agent/cli/credential-print.js +0 -75
- package/dist/vendor/engine/runtime/coding-agent/cli/file-processor.d.ts +0 -14
- package/dist/vendor/engine/runtime/coding-agent/cli/file-processor.js +0 -70
- package/dist/vendor/engine/runtime/coding-agent/cli/initial-message.d.ts +0 -17
- package/dist/vendor/engine/runtime/coding-agent/cli/initial-message.js +0 -21
- package/dist/vendor/engine/runtime/coding-agent/cli/list-models.d.ts +0 -8
- package/dist/vendor/engine/runtime/coding-agent/cli/list-models.js +0 -97
- package/dist/vendor/engine/runtime/coding-agent/cli/project-trust.d.ts +0 -9
- package/dist/vendor/engine/runtime/coding-agent/cli/project-trust.js +0 -47
- package/dist/vendor/engine/runtime/coding-agent/cli/session-picker.d.ts +0 -9
- package/dist/vendor/engine/runtime/coding-agent/cli/session-picker.js +0 -35
- package/dist/vendor/engine/runtime/coding-agent/cli/startup-ui.d.ts +0 -19
- package/dist/vendor/engine/runtime/coding-agent/cli/startup-ui.js +0 -184
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session-runtime.d.ts +0 -118
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session-runtime.js +0 -316
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session-services.d.ts +0 -85
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session-services.js +0 -133
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session.d.ts +0 -771
- package/dist/vendor/engine/runtime/coding-agent/core/agent-session.js +0 -2990
- package/dist/vendor/engine/runtime/coding-agent/core/auth-guidance.d.ts +0 -4
- package/dist/vendor/engine/runtime/coding-agent/core/auth-guidance.js +0 -20
- package/dist/vendor/engine/runtime/coding-agent/core/auth-storage.d.ts +0 -71
- package/dist/vendor/engine/runtime/coding-agent/core/auth-storage.js +0 -425
- package/dist/vendor/engine/runtime/coding-agent/core/bash-executor.d.ts +0 -31
- package/dist/vendor/engine/runtime/coding-agent/core/bash-executor.js +0 -110
- package/dist/vendor/engine/runtime/coding-agent/core/bug-report-upload.d.ts +0 -11
- package/dist/vendor/engine/runtime/coding-agent/core/bug-report-upload.js +0 -21
- package/dist/vendor/engine/runtime/coding-agent/core/bug-report.d.ts +0 -175
- package/dist/vendor/engine/runtime/coding-agent/core/bug-report.js +0 -291
- package/dist/vendor/engine/runtime/coding-agent/core/cache-stats.d.ts +0 -48
- package/dist/vendor/engine/runtime/coding-agent/core/cache-stats.js +0 -111
- package/dist/vendor/engine/runtime/coding-agent/core/cache-warmer.d.ts +0 -102
- package/dist/vendor/engine/runtime/coding-agent/core/cache-warmer.js +0 -355
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/branch-summarization.d.ts +0 -97
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/branch-summarization.js +0 -250
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/compaction.d.ts +0 -142
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/compaction.js +0 -666
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/index.d.ts +0 -6
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/index.js +0 -6
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/utils.d.ts +0 -37
- package/dist/vendor/engine/runtime/coding-agent/core/compaction/utils.js +0 -141
- package/dist/vendor/engine/runtime/coding-agent/core/crash-log.d.ts +0 -26
- package/dist/vendor/engine/runtime/coding-agent/core/crash-log.js +0 -138
- package/dist/vendor/engine/runtime/coding-agent/core/defaults.d.ts +0 -3
- package/dist/vendor/engine/runtime/coding-agent/core/defaults.js +0 -10
- package/dist/vendor/engine/runtime/coding-agent/core/diagnostics.d.ts +0 -14
- package/dist/vendor/engine/runtime/coding-agent/core/diagnostics.js +0 -1
- package/dist/vendor/engine/runtime/coding-agent/core/event-bus.d.ts +0 -8
- package/dist/vendor/engine/runtime/coding-agent/core/event-bus.js +0 -24
- package/dist/vendor/engine/runtime/coding-agent/core/exec.d.ts +0 -28
- package/dist/vendor/engine/runtime/coding-agent/core/exec.js +0 -74
- package/dist/vendor/engine/runtime/coding-agent/core/experimental.d.ts +0 -1
- package/dist/vendor/engine/runtime/coding-agent/core/experimental.js +0 -3
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/ansi-to-html.d.ts +0 -21
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/ansi-to-html.js +0 -248
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/index.d.ts +0 -36
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/index.js +0 -225
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/template.css +0 -1066
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/template.html +0 -55
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/template.js +0 -1864
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/tool-renderer.d.ts +0 -33
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/tool-renderer.js +0 -107
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/vendor/highlight.min.js +0 -1213
- package/dist/vendor/engine/runtime/coding-agent/core/export-html/vendor/marked.min.js +0 -78
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/index.d.ts +0 -11
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/index.js +0 -8
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/jiti-loader.d.ts +0 -1
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/jiti-loader.js +0 -3
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/jiti-static-loader.d.ts +0 -1
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/jiti-static-loader.js +0 -3
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/loader.d.ts +0 -22
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/loader.js +0 -633
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/runner.d.ts +0 -180
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/runner.js +0 -1028
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/types.d.ts +0 -1362
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/types.js +0 -47
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/virtual-modules.d.ts +0 -2
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/virtual-modules.js +0 -37
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/wrapper.d.ts +0 -19
- package/dist/vendor/engine/runtime/coding-agent/core/extensions/wrapper.js +0 -21
- package/dist/vendor/engine/runtime/coding-agent/core/footer-data-provider.d.ts +0 -63
- package/dist/vendor/engine/runtime/coding-agent/core/footer-data-provider.js +0 -337
- package/dist/vendor/engine/runtime/coding-agent/core/http-dispatcher.d.ts +0 -21
- package/dist/vendor/engine/runtime/coding-agent/core/http-dispatcher.js +0 -97
- package/dist/vendor/engine/runtime/coding-agent/core/keybindings.d.ts +0 -427
- package/dist/vendor/engine/runtime/coding-agent/core/keybindings.js +0 -320
- package/dist/vendor/engine/runtime/coding-agent/core/messages.d.ts +0 -76
- package/dist/vendor/engine/runtime/coding-agent/core/messages.js +0 -123
- package/dist/vendor/engine/runtime/coding-agent/core/model-config.d.ts +0 -723
- package/dist/vendor/engine/runtime/coding-agent/core/model-config.js +0 -281
- package/dist/vendor/engine/runtime/coding-agent/core/model-registry.d.ts +0 -48
- package/dist/vendor/engine/runtime/coding-agent/core/model-registry.js +0 -114
- package/dist/vendor/engine/runtime/coding-agent/core/model-resolver.d.ts +0 -123
- package/dist/vendor/engine/runtime/coding-agent/core/model-resolver.js +0 -589
- package/dist/vendor/engine/runtime/coding-agent/core/model-runtime.d.ts +0 -100
- package/dist/vendor/engine/runtime/coding-agent/core/model-runtime.js +0 -603
- package/dist/vendor/engine/runtime/coding-agent/core/models-store.d.ts +0 -21
- package/dist/vendor/engine/runtime/coding-agent/core/models-store.js +0 -114
- package/dist/vendor/engine/runtime/coding-agent/core/output-guard.d.ts +0 -6
- package/dist/vendor/engine/runtime/coding-agent/core/output-guard.js +0 -88
- package/dist/vendor/engine/runtime/coding-agent/core/package-manager.d.ts +0 -212
- package/dist/vendor/engine/runtime/coding-agent/core/package-manager.js +0 -2176
- package/dist/vendor/engine/runtime/coding-agent/core/pi-manifest.d.ts +0 -7
- package/dist/vendor/engine/runtime/coding-agent/core/pi-manifest.js +0 -25
- package/dist/vendor/engine/runtime/coding-agent/core/project-trust.d.ts +0 -14
- package/dist/vendor/engine/runtime/coding-agent/core/project-trust.js +0 -58
- package/dist/vendor/engine/runtime/coding-agent/core/prompt-templates.d.ts +0 -53
- package/dist/vendor/engine/runtime/coding-agent/core/prompt-templates.js +0 -235
- package/dist/vendor/engine/runtime/coding-agent/core/provider-attribution.d.ts +0 -3
- package/dist/vendor/engine/runtime/coding-agent/core/provider-attribution.js +0 -71
- package/dist/vendor/engine/runtime/coding-agent/core/provider-composer.d.ts +0 -59
- package/dist/vendor/engine/runtime/coding-agent/core/provider-composer.js +0 -422
- package/dist/vendor/engine/runtime/coding-agent/core/radius.d.ts +0 -4
- package/dist/vendor/engine/runtime/coding-agent/core/radius.js +0 -7
- package/dist/vendor/engine/runtime/coding-agent/core/remote-catalog-provider.d.ts +0 -4
- package/dist/vendor/engine/runtime/coding-agent/core/remote-catalog-provider.js +0 -121
- package/dist/vendor/engine/runtime/coding-agent/core/resolve-config-value.d.ts +0 -29
- package/dist/vendor/engine/runtime/coding-agent/core/resolve-config-value.js +0 -246
- package/dist/vendor/engine/runtime/coding-agent/core/resource-loader.d.ts +0 -220
- package/dist/vendor/engine/runtime/coding-agent/core/resource-loader.js +0 -874
- package/dist/vendor/engine/runtime/coding-agent/core/runtime-credentials.d.ts +0 -14
- package/dist/vendor/engine/runtime/coding-agent/core/runtime-credentials.js +0 -38
- package/dist/vendor/engine/runtime/coding-agent/core/sdk.d.ts +0 -107
- package/dist/vendor/engine/runtime/coding-agent/core/sdk.js +0 -296
- package/dist/vendor/engine/runtime/coding-agent/core/session-cwd.d.ts +0 -18
- package/dist/vendor/engine/runtime/coding-agent/core/session-cwd.js +0 -37
- package/dist/vendor/engine/runtime/coding-agent/core/session-export.d.ts +0 -7
- package/dist/vendor/engine/runtime/coding-agent/core/session-export.js +0 -32
- package/dist/vendor/engine/runtime/coding-agent/core/session-manager.d.ts +0 -379
- package/dist/vendor/engine/runtime/coding-agent/core/session-manager.js +0 -1432
- package/dist/vendor/engine/runtime/coding-agent/core/settings-diagnostics.d.ts +0 -8
- package/dist/vendor/engine/runtime/coding-agent/core/settings-diagnostics.js +0 -20
- package/dist/vendor/engine/runtime/coding-agent/core/settings-manager.d.ts +0 -346
- package/dist/vendor/engine/runtime/coding-agent/core/settings-manager.js +0 -1032
- package/dist/vendor/engine/runtime/coding-agent/core/skills.d.ts +0 -59
- package/dist/vendor/engine/runtime/coding-agent/core/skills.js +0 -406
- package/dist/vendor/engine/runtime/coding-agent/core/slash-commands.d.ts +0 -14
- package/dist/vendor/engine/runtime/coding-agent/core/slash-commands.js +0 -27
- package/dist/vendor/engine/runtime/coding-agent/core/source-info.d.ts +0 -17
- package/dist/vendor/engine/runtime/coding-agent/core/source-info.js +0 -18
- package/dist/vendor/engine/runtime/coding-agent/core/system-prompt.d.ts +0 -70
- package/dist/vendor/engine/runtime/coding-agent/core/system-prompt.js +0 -146
- package/dist/vendor/engine/runtime/coding-agent/core/telemetry.d.ts +0 -2
- package/dist/vendor/engine/runtime/coding-agent/core/telemetry.js +0 -8
- package/dist/vendor/engine/runtime/coding-agent/core/timings.d.ts +0 -9
- package/dist/vendor/engine/runtime/coding-agent/core/timings.js +0 -40
- package/dist/vendor/engine/runtime/coding-agent/core/tools/render-utils.d.ts +0 -23
- package/dist/vendor/engine/runtime/coding-agent/core/tools/render-utils.js +0 -64
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/bash.d.ts +0 -11
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/bash.js +0 -137
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/edit.d.ts +0 -22
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/edit.js +0 -166
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/find.d.ts +0 -9
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/find.js +0 -63
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/grep.d.ts +0 -9
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/grep.js +0 -68
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/index.d.ts +0 -27
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/index.js +0 -46
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/ls.d.ts +0 -9
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/ls.js +0 -57
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/read.d.ts +0 -10
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/read.js +0 -128
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/write.d.ts +0 -9
- package/dist/vendor/engine/runtime/coding-agent/core/tools/renderers/write.js +0 -152
- package/dist/vendor/engine/runtime/coding-agent/core/trust-manager.d.ts +0 -35
- package/dist/vendor/engine/runtime/coding-agent/core/trust-manager.js +0 -202
- package/dist/vendor/engine/runtime/coding-agent/core/usage-totals.d.ts +0 -18
- package/dist/vendor/engine/runtime/coding-agent/core/usage-totals.js +0 -55
- package/dist/vendor/engine/runtime/coding-agent/extensions/index.d.ts +0 -2
- package/dist/vendor/engine/runtime/coding-agent/extensions/index.js +0 -2
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/client.d.ts +0 -68
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/client.js +0 -312
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/huggingface.d.ts +0 -22
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/huggingface.js +0 -140
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/index.d.ts +0 -2
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/index.js +0 -218
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/provider.d.ts +0 -11
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/provider.js +0 -160
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/ui.d.ts +0 -41
- package/dist/vendor/engine/runtime/coding-agent/extensions/llama/ui.js +0 -415
- package/dist/vendor/engine/runtime/coding-agent/index.d.ts +0 -36
- package/dist/vendor/engine/runtime/coding-agent/index.js +0 -47
- package/dist/vendor/engine/runtime/coding-agent/main.d.ts +0 -15
- package/dist/vendor/engine/runtime/coding-agent/main.js +0 -808
- package/dist/vendor/engine/runtime/coding-agent/migrations.d.ts +0 -32
- package/dist/vendor/engine/runtime/coding-agent/migrations.js +0 -281
- package/dist/vendor/engine/runtime/coding-agent/modes/index.d.ts +0 -9
- package/dist/vendor/engine/runtime/coding-agent/modes/index.js +0 -7
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/bug-report.d.ts +0 -15
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/bug-report.js +0 -209
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/chat-viewport.d.ts +0 -19
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/chat-viewport.js +0 -27
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/armin.d.ts +0 -33
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/armin.js +0 -332
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/assistant-message.d.ts +0 -25
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/assistant-message.js +0 -157
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/bash-execution.d.ts +0 -33
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/bash-execution.js +0 -174
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/bordered-loader.d.ts +0 -15
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/bordered-loader.js +0 -53
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/branch-summary-message.d.ts +0 -15
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/branch-summary-message.js +0 -50
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/compaction-summary-message.d.ts +0 -15
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/compaction-summary-message.js +0 -51
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/config-selector.d.ts +0 -101
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/config-selector.js +0 -760
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/countdown-timer.d.ts +0 -13
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/countdown-timer.js +0 -32
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-editor.d.ts +0 -29
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-editor.js +0 -114
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-entry.d.ts +0 -18
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-entry.js +0 -51
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-message.d.ts +0 -21
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/custom-message.js +0 -86
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/daxnuts.d.ts +0 -22
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/daxnuts.js +0 -139
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/diff.d.ts +0 -11
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/diff.js +0 -132
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/dynamic-border.d.ts +0 -14
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/dynamic-border.js +0 -20
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/earendil-announcement.d.ts +0 -4
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/earendil-announcement.js +0 -39
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-editor.d.ts +0 -23
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-editor.js +0 -102
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-input.d.ts +0 -24
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-input.js +0 -66
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-selector.d.ts +0 -26
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/extension-selector.js +0 -86
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/first-time-setup.d.ts +0 -24
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/first-time-setup.js +0 -102
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/footer.d.ts +0 -31
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/footer.js +0 -224
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/index.d.ts +0 -33
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/index.js +0 -34
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/keybinding-hints.d.ts +0 -12
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/keybinding-hints.js +0 -35
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/login-dialog.d.ts +0 -51
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/login-dialog.js +0 -187
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/markdown-transform.d.ts +0 -2
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/markdown-transform.js +0 -18
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/mermaid.d.ts +0 -10
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/mermaid.js +0 -74
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/model-selector.d.ts +0 -59
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/model-selector.js +0 -360
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/oauth-selector.d.ts +0 -32
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/oauth-selector.js +0 -162
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/scoped-models-selector.d.ts +0 -45
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/scoped-models-selector.js +0 -325
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/session-selector-search.d.ts +0 -22
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/session-selector-search.js +0 -154
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/session-selector.d.ts +0 -94
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/session-selector.js +0 -892
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/settings-selector.d.ts +0 -93
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/settings-selector.js +0 -719
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/settings-submenu.d.ts +0 -71
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/settings-submenu.js +0 -164
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/show-images-selector.d.ts +0 -9
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/show-images-selector.js +0 -38
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/skill-invocation-message.d.ts +0 -16
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/skill-invocation-message.js +0 -53
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/status-indicator.d.ts +0 -29
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/status-indicator.js +0 -66
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/theme-selector.d.ts +0 -10
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/theme-selector.js +0 -49
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/thinking-selector.d.ts +0 -22
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/thinking-selector.js +0 -108
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/tool-execution.d.ts +0 -79
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/tool-execution.js +0 -336
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/tree-selector.d.ts +0 -93
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/tree-selector.js +0 -1246
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/trust-selector.d.ts +0 -22
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/trust-selector.js +0 -90
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/user-message-selector.d.ts +0 -29
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/user-message-selector.js +0 -113
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/user-message.d.ts +0 -15
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/user-message.js +0 -48
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/visual-truncate.d.ts +0 -23
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/components/visual-truncate.js +0 -32
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/external-editor.d.ts +0 -11
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/external-editor.js +0 -37
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/interactive-mode.d.ts +0 -467
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/interactive-mode.js +0 -5720
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/model-catalog-refresh.d.ts +0 -6
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/model-catalog-refresh.js +0 -33
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/model-search.d.ts +0 -11
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/model-search.js +0 -14
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/session-share.d.ts +0 -17
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/session-share.js +0 -187
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/dark.json +0 -91
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/light.json +0 -90
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme-controller.d.ts +0 -40
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme-controller.js +0 -129
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme-json.d.ts +0 -83
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme-json.js +0 -129
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme-schema.json +0 -356
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme.d.ts +0 -130
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/theme/theme.js +0 -990
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/tui-renderer.d.ts +0 -20
- package/dist/vendor/engine/runtime/coding-agent/modes/interactive/tui-renderer.js +0 -65
- package/dist/vendor/engine/runtime/coding-agent/modes/json-event.d.ts +0 -33
- package/dist/vendor/engine/runtime/coding-agent/modes/json-event.js +0 -28
- package/dist/vendor/engine/runtime/coding-agent/modes/print-mode.d.ts +0 -27
- package/dist/vendor/engine/runtime/coding-agent/modes/print-mode.js +0 -141
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/jsonl.d.ts +0 -16
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/jsonl.js +0 -48
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-client.d.ts +0 -253
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-client.js +0 -494
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-mode.d.ts +0 -19
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-mode.js +0 -656
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-types.d.ts +0 -468
- package/dist/vendor/engine/runtime/coding-agent/modes/rpc/rpc-types.js +0 -7
- package/dist/vendor/engine/runtime/coding-agent/package-manager-cli.d.ts +0 -8
- package/dist/vendor/engine/runtime/coding-agent/package-manager-cli.js +0 -960
- package/dist/vendor/engine/runtime/coding-agent/utils/abort.d.ts +0 -4
- package/dist/vendor/engine/runtime/coding-agent/utils/abort.js +0 -47
- package/dist/vendor/engine/runtime/coding-agent/utils/ansi.d.ts +0 -1
- package/dist/vendor/engine/runtime/coding-agent/utils/ansi.js +0 -51
- package/dist/vendor/engine/runtime/coding-agent/utils/changelog.d.ts +0 -21
- package/dist/vendor/engine/runtime/coding-agent/utils/changelog.js +0 -164
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard-command.d.ts +0 -6
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard-command.js +0 -44
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard-image.d.ts +0 -10
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard-image.js +0 -216
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard.d.ts +0 -3
- package/dist/vendor/engine/runtime/coding-agent/utils/clipboard.js +0 -150
- package/dist/vendor/engine/runtime/coding-agent/utils/frontmatter.d.ts +0 -7
- package/dist/vendor/engine/runtime/coding-agent/utils/frontmatter.js +0 -26
- package/dist/vendor/engine/runtime/coding-agent/utils/fs-watch.d.ts +0 -4
- package/dist/vendor/engine/runtime/coding-agent/utils/fs-watch.js +0 -24
- package/dist/vendor/engine/runtime/coding-agent/utils/git.d.ts +0 -25
- package/dist/vendor/engine/runtime/coding-agent/utils/git.js +0 -194
- package/dist/vendor/engine/runtime/coding-agent/utils/html.d.ts +0 -6
- package/dist/vendor/engine/runtime/coding-agent/utils/html.js +0 -39
- package/dist/vendor/engine/runtime/coding-agent/utils/json.d.ts +0 -2
- package/dist/vendor/engine/runtime/coding-agent/utils/json.js +0 -6
- package/dist/vendor/engine/runtime/coding-agent/utils/open-browser.d.ts +0 -8
- package/dist/vendor/engine/runtime/coding-agent/utils/open-browser.js +0 -21
- package/dist/vendor/engine/runtime/coding-agent/utils/pi-user-agent.d.ts +0 -1
- package/dist/vendor/engine/runtime/coding-agent/utils/pi-user-agent.js +0 -4
- package/dist/vendor/engine/runtime/coding-agent/utils/sleep.d.ts +0 -4
- package/dist/vendor/engine/runtime/coding-agent/utils/sleep.js +0 -16
- package/dist/vendor/engine/runtime/coding-agent/utils/syntax-highlight.d.ts +0 -12
- package/dist/vendor/engine/runtime/coding-agent/utils/syntax-highlight.js +0 -176
- package/dist/vendor/engine/runtime/coding-agent/utils/tool-result-images.d.ts +0 -20
- package/dist/vendor/engine/runtime/coding-agent/utils/tool-result-images.js +0 -47
- package/dist/vendor/engine/runtime/coding-agent/utils/version-check.d.ts +0 -18
- package/dist/vendor/engine/runtime/coding-agent/utils/version-check.js +0 -78
- package/dist/vendor/engine/runtime/coding-agent/utils/windows-self-update.d.ts +0 -2
- package/dist/vendor/engine/runtime/coding-agent/utils/windows-self-update.js +0 -76
- package/dist/vendor/engine/runtime/coding-agent/utils/wsl.d.ts +0 -2
- package/dist/vendor/engine/runtime/coding-agent/utils/wsl.js +0 -14
- package/dist/vendor/engine/runtime/coding-agent/utils/zip.d.ts +0 -6
- package/dist/vendor/engine/runtime/coding-agent/utils/zip.js +0 -59
- package/dist/vendor/engine/runtime/tui/alt-screen-search.d.ts +0 -45
- package/dist/vendor/engine/runtime/tui/alt-screen-search.js +0 -281
- package/dist/vendor/engine/runtime/tui/autocomplete.d.ts +0 -56
- package/dist/vendor/engine/runtime/tui/autocomplete.js +0 -671
- package/dist/vendor/engine/runtime/tui/components/alt-screen-flash.d.ts +0 -12
- package/dist/vendor/engine/runtime/tui/components/alt-screen-flash.js +0 -36
- package/dist/vendor/engine/runtime/tui/components/box.d.ts +0 -23
- package/dist/vendor/engine/runtime/tui/components/box.js +0 -132
- package/dist/vendor/engine/runtime/tui/components/cancellable-loader.d.ts +0 -21
- package/dist/vendor/engine/runtime/tui/components/cancellable-loader.js +0 -34
- package/dist/vendor/engine/runtime/tui/components/editor.d.ts +0 -259
- package/dist/vendor/engine/runtime/tui/components/editor.js +0 -2041
- package/dist/vendor/engine/runtime/tui/components/h-stack.d.ts +0 -6
- package/dist/vendor/engine/runtime/tui/components/h-stack.js +0 -42
- package/dist/vendor/engine/runtime/tui/components/image.d.ts +0 -27
- package/dist/vendor/engine/runtime/tui/components/image.js +0 -89
- package/dist/vendor/engine/runtime/tui/components/input.d.ts +0 -47
- package/dist/vendor/engine/runtime/tui/components/input.js +0 -416
- package/dist/vendor/engine/runtime/tui/components/loader.d.ts +0 -32
- package/dist/vendor/engine/runtime/tui/components/loader.js +0 -75
- package/dist/vendor/engine/runtime/tui/components/markdown.d.ts +0 -102
- package/dist/vendor/engine/runtime/tui/components/markdown.js +0 -810
- package/dist/vendor/engine/runtime/tui/components/mouse-region.d.ts +0 -11
- package/dist/vendor/engine/runtime/tui/components/mouse-region.js +0 -20
- package/dist/vendor/engine/runtime/tui/components/scroll-view.d.ts +0 -58
- package/dist/vendor/engine/runtime/tui/components/scroll-view.js +0 -194
- package/dist/vendor/engine/runtime/tui/components/select-list.d.ts +0 -52
- package/dist/vendor/engine/runtime/tui/components/select-list.js +0 -205
- package/dist/vendor/engine/runtime/tui/components/settings-list.d.ts +0 -59
- package/dist/vendor/engine/runtime/tui/components/settings-list.js +0 -251
- package/dist/vendor/engine/runtime/tui/components/spacer.d.ts +0 -11
- package/dist/vendor/engine/runtime/tui/components/spacer.js +0 -22
- package/dist/vendor/engine/runtime/tui/components/stack.d.ts +0 -31
- package/dist/vendor/engine/runtime/tui/components/stack.js +0 -110
- package/dist/vendor/engine/runtime/tui/components/text.d.ts +0 -18
- package/dist/vendor/engine/runtime/tui/components/text.js +0 -89
- package/dist/vendor/engine/runtime/tui/components/truncated-text.d.ts +0 -12
- package/dist/vendor/engine/runtime/tui/components/truncated-text.js +0 -50
- package/dist/vendor/engine/runtime/tui/components/v-stack.d.ts +0 -7
- package/dist/vendor/engine/runtime/tui/components/v-stack.js +0 -25
- package/dist/vendor/engine/runtime/tui/editor-component.d.ts +0 -38
- package/dist/vendor/engine/runtime/tui/editor-component.js +0 -1
- package/dist/vendor/engine/runtime/tui/fuzzy.d.ts +0 -15
- package/dist/vendor/engine/runtime/tui/fuzzy.js +0 -110
- package/dist/vendor/engine/runtime/tui/index.d.ts +0 -32
- package/dist/vendor/engine/runtime/tui/index.js +0 -44
- package/dist/vendor/engine/runtime/tui/keybindings.d.ts +0 -272
- package/dist/vendor/engine/runtime/tui/keybindings.js +0 -232
- package/dist/vendor/engine/runtime/tui/keys.d.ts +0 -183
- package/dist/vendor/engine/runtime/tui/keys.js +0 -1173
- package/dist/vendor/engine/runtime/tui/kill-ring.d.ts +0 -27
- package/dist/vendor/engine/runtime/tui/kill-ring.js +0 -43
- package/dist/vendor/engine/runtime/tui/latex.d.ts +0 -9
- package/dist/vendor/engine/runtime/tui/latex.js +0 -1377
- package/dist/vendor/engine/runtime/tui/layout-node.d.ts +0 -39
- package/dist/vendor/engine/runtime/tui/layout-node.js +0 -5
- package/dist/vendor/engine/runtime/tui/layout.d.ts +0 -41
- package/dist/vendor/engine/runtime/tui/layout.js +0 -343
- package/dist/vendor/engine/runtime/tui/native-modifiers.d.ts +0 -3
- package/dist/vendor/engine/runtime/tui/native-modifiers.js +0 -12
- package/dist/vendor/engine/runtime/tui/native-module-path.d.ts +0 -6
- package/dist/vendor/engine/runtime/tui/native-module-path.js +0 -18
- package/dist/vendor/engine/runtime/tui/native-platform.d.ts +0 -17
- package/dist/vendor/engine/runtime/tui/native-platform.js +0 -41
- package/dist/vendor/engine/runtime/tui/stdin-buffer.d.ts +0 -55
- package/dist/vendor/engine/runtime/tui/stdin-buffer.js +0 -365
- package/dist/vendor/engine/runtime/tui/terminal-colors.d.ts +0 -9
- package/dist/vendor/engine/runtime/tui/terminal-colors.js +0 -58
- package/dist/vendor/engine/runtime/tui/terminal-image.d.ts +0 -117
- package/dist/vendor/engine/runtime/tui/terminal-image.js +0 -549
- package/dist/vendor/engine/runtime/tui/terminal.d.ts +0 -122
- package/dist/vendor/engine/runtime/tui/terminal.js +0 -441
- package/dist/vendor/engine/runtime/tui/tui-alt-screen.d.ts +0 -159
- package/dist/vendor/engine/runtime/tui/tui-alt-screen.js +0 -1507
- package/dist/vendor/engine/runtime/tui/tui-main-screen.d.ts +0 -38
- package/dist/vendor/engine/runtime/tui/tui-main-screen.js +0 -593
- package/dist/vendor/engine/runtime/tui/tui.d.ts +0 -385
- package/dist/vendor/engine/runtime/tui/tui.js +0 -1054
- package/dist/vendor/engine/runtime/tui/undo-stack.d.ts +0 -16
- package/dist/vendor/engine/runtime/tui/undo-stack.js +0 -24
- package/dist/vendor/engine/runtime/tui/utils.d.ts +0 -100
- package/dist/vendor/engine/runtime/tui/utils.js +0 -1203
- package/dist/vendor/engine/runtime/tui/word-navigation.d.ts +0 -24
- package/dist/vendor/engine/runtime/tui/word-navigation.js +0 -95
- package/tests/graphiti-test-plan.md +0 -359
- package/tests/mock-graphiti.mjs +0 -106
- /package/dist/vendor/engine/runtime/{agent/harness/tools/tool-context.js → coding-agent/core/tools/tool-definition.js} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The tools the Andorra agent-control MCP server advertises, as plain data.
|
|
3
|
+
*
|
|
4
|
+
* Kept apart from `agent-mcp.ts` so the engine can describe its built-in `graphs` tool without
|
|
5
|
+
* loading the graph backend (and its sync, membership and subagent modules) until a graph action runs.
|
|
6
|
+
*/
|
|
7
|
+
export interface AgentMcpToolSpec {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object';
|
|
12
|
+
properties: Record<string, unknown>;
|
|
13
|
+
required: string[];
|
|
14
|
+
additionalProperties: false;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare const AGENT_MCP_CATALOG: readonly AgentMcpToolSpec[];
|
|
18
|
+
/** The tool names this server advertises; bundled skills that drive it are checked against this list. */
|
|
19
|
+
export declare const AGENT_MCP_TOOL_NAMES: readonly string[];
|
|
20
|
+
/** Graph authoring: what the engine's built-in `graphs` tool offers. Session and subagent tools stay MCP-only. */
|
|
21
|
+
export declare const AGENT_MCP_GRAPH_TOOLS: readonly AgentMcpToolSpec[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const obj = (properties, required = []) => ({ type: 'object',
|
|
2
|
+
properties, required, additionalProperties: false });
|
|
3
|
+
const str = { type: 'string' };
|
|
4
|
+
const num = { type: 'integer', minimum: 0 };
|
|
5
|
+
const graphDraftSchema = { draftId: str };
|
|
6
|
+
const graphReference = { draftId: str, nodeId: str };
|
|
7
|
+
const searchFilters = { projectName: str, projectPath: str,
|
|
8
|
+
lookbackMinutes: num, updatedAfter: str, updatedBefore: str, includeArchived: { type: 'boolean' } };
|
|
9
|
+
export const AGENT_MCP_CATALOG = [
|
|
10
|
+
{ name: 'andorra_graph_guide', description: 'Read Andorra graph architecture, node types, outcome routes, loops and save error contracts.', inputSchema: obj({}) },
|
|
11
|
+
{ name: 'andorra_providers_list', description: 'List valid graph provider IDs and models without credentials.', inputSchema: obj({}) },
|
|
12
|
+
{ name: 'andorra_graphs_list', description: 'List available graphs, names and revisions. Deleted graphs are listed only with includeDeleted.', inputSchema: obj({ includeDeleted: { type: 'boolean' } }) },
|
|
13
|
+
{ name: 'andorra_graph_get', description: 'Read one published graph, optionally by revision.', inputSchema: obj({ id: str, revision: { type: 'integer', minimum: 1 } }, ['id']) },
|
|
14
|
+
{ name: 'andorra_graph_begin', description: 'Open an ephemeral graph draft. mode=create needs a new id and name; mode=edit opens latest.', inputSchema: obj({ mode: { type: 'string', enum: ['create', 'edit'] }, id: str, name: str }, ['mode', 'id']) },
|
|
15
|
+
{ name: 'andorra_graph_node_upsert', description: 'Create or replace a node in a draft. Agent nodes require a configured provider ID.', inputSchema: obj({ draftId: str, node: { type: 'object' } }, ['draftId', 'node']) },
|
|
16
|
+
{ name: 'andorra_graph_node_patch', description: 'Change an existing node prompt, instruction, model, provider, completion, etc. without replacing other fields.', inputSchema: obj({ ...graphReference, patch: { type: 'object' } }, ['draftId', 'nodeId', 'patch']) },
|
|
17
|
+
{ name: 'andorra_graph_node_remove', description: 'Remove a non-entry node and its incident edges from a draft.', inputSchema: obj(graphReference, ['draftId', 'nodeId']) },
|
|
18
|
+
{ name: 'andorra_graph_edge_upsert', description: 'Create or replace an edge. Outcome must match a source node port (pass/fail, true/false, body/done...).', inputSchema: obj({ draftId: str, edge: { type: 'object' } }, ['draftId', 'edge']) },
|
|
19
|
+
{ name: 'andorra_graph_edge_remove', description: 'Remove an edge by ID from a draft.', inputSchema: obj({ ...graphDraftSchema, edgeId: str }, ['draftId', 'edgeId']) },
|
|
20
|
+
{ name: 'andorra_graph_patch', description: 'Set graph entry, name, limits, schemas, widgets or metadata in a draft.', inputSchema: obj({ draftId: str, patch: { type: 'object' } }, ['draftId', 'patch']) },
|
|
21
|
+
{ name: 'andorra_graph_validate', description: 'Validate a draft; report all missing provider and outcome paths, plus graph topology issues.', inputSchema: obj(graphDraftSchema, ['draftId']) },
|
|
22
|
+
{ name: 'andorra_graph_publish', description: 'Validate and atomically publish the next immutable graph revision; optimistic concurrency guards other editors.', inputSchema: obj(graphDraftSchema, ['draftId']) },
|
|
23
|
+
{ name: 'andorra_graph_delete', description: 'Soft-delete a graph after the user confirms in chat: publishes a revision marked deleted, hides it from listings and new runs, keeps every revision. confirm must repeat the id.', inputSchema: obj({ id: str, expectedRevision: { type: 'integer', minimum: 1 }, confirm: str }, ['id', 'expectedRevision', 'confirm']) },
|
|
24
|
+
{ name: 'andorra_graph_restore', description: 'Restore a soft-deleted graph by publishing the next revision without the deleted marker.', inputSchema: obj({ id: str, expectedRevision: { type: 'integer', minimum: 1 } }, ['id', 'expectedRevision']) },
|
|
25
|
+
{ name: 'andorra_graph_discard', description: 'Discard an unpublished local graph draft.', inputSchema: obj(graphDraftSchema, ['draftId']) },
|
|
26
|
+
{ name: 'andorra_projects_list', description: 'List registered projects and discovered session workspaces.', inputSchema: obj({}) },
|
|
27
|
+
{ name: 'andorra_sessions_list', description: 'Search sessions by project, status and last X minutes (lookbackMinutes). Supports paginated results.', inputSchema: obj({ ...searchFilters, status: { type: 'string', enum: ['completed', 'pending', 'running', 'required_input', 'incomplete'] },
|
|
28
|
+
offset: num, limit: { type: 'integer', minimum: 1, maximum: 100 } }) },
|
|
29
|
+
{ name: 'andorra_session_get', description: 'Read session metadata and up to 20 recent turn excerpts; no filesystem access.', inputSchema: obj({ sessionId: str,
|
|
30
|
+
historyLimit: { type: 'integer', minimum: 0, maximum: 20 }, historyOffset: num }, ['sessionId']) },
|
|
31
|
+
{ name: 'andorra_sessions_attention', description: 'Find sessions requiring human feedback or review: required_input and incomplete; supports project and time filters.', inputSchema: obj(searchFilters) },
|
|
32
|
+
{ name: 'andorra_subagent_start', description: 'Run the bundled Andorra Agent graph once as an Andorra subagent. Requires a provider/model: pass provider and model, or the saved /subagent setting. On PROVIDER_NOT_SET, show the listed providers and models to your user, ask which to use, then retry with provider and model. Writes are allowed unless permissions is read-only.', inputSchema: obj({ prompt: str, provider: str, model: str, permissions: { type: 'string', enum: ['full-access', 'read-only'] }, workspace: str }, ['prompt']) },
|
|
33
|
+
{ name: 'andorra_subagent_status', description: 'Poll the subagent run: state, current node and recent events. The runId must be the one the start returned, so the answer is about that run.', inputSchema: obj({ runId: str }, ['runId']) },
|
|
34
|
+
{ name: 'andorra_subagent_result', description: 'Read the subagent run outcome. waitMs (0-60000) waits for completion within the call; otherwise returns running immediately when unfinished. The finished reply carries the full run result including completion summary and status. The runId must be the one the start returned.', inputSchema: obj({ waitMs: { type: 'integer', minimum: 0, maximum: 60000 }, runId: str }, ['runId']) },
|
|
35
|
+
{ name: 'andorra_subagent_cancel', description: 'Cancel the subagent run. The runId must be the one the start returned, so a delayed cancellation cannot stop a run that replaced it.', inputSchema: obj({ runId: str }, ['runId']) },
|
|
36
|
+
];
|
|
37
|
+
/** The tool names this server advertises; bundled skills that drive it are checked against this list. */
|
|
38
|
+
export const AGENT_MCP_TOOL_NAMES = AGENT_MCP_CATALOG.map(tool => tool.name);
|
|
39
|
+
/** Graph authoring: what the engine's built-in `graphs` tool offers. Session and subagent tools stay MCP-only. */
|
|
40
|
+
export const AGENT_MCP_GRAPH_TOOLS = AGENT_MCP_CATALOG.filter(tool => tool.name.startsWith('andorra_graph_') || tool.name === 'andorra_graphs_list' || tool.name === 'andorra_providers_list');
|
package/dist/src/agent-mcp.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { getMembership } from './membership.js';
|
|
|
5
5
|
import { SessionStore } from './sessions.js';
|
|
6
6
|
import { type SubagentProviderListing } from './subagent-run.js';
|
|
7
7
|
import type { ModelAdapter } from './types.js';
|
|
8
|
+
import { AGENT_MCP_TOOL_NAMES } from './agent-mcp-catalog.js';
|
|
8
9
|
type Issue = {
|
|
9
10
|
code: string;
|
|
10
11
|
message: string;
|
|
@@ -45,6 +46,14 @@ export interface AgentMcpBackendOptions {
|
|
|
45
46
|
subagentWorkspace?: string;
|
|
46
47
|
/** Test-only adapter so subagent runs stay offline and deterministic. */
|
|
47
48
|
subagentAdapterFactory?: (provider: import('./providers.js').ProviderConfig) => ModelAdapter;
|
|
49
|
+
/**
|
|
50
|
+
* Whether construction sweeps the home for runs a crashed process left `running` (default true).
|
|
51
|
+
*
|
|
52
|
+
* The stdio server needs it: a host that only talks to the server would otherwise never see its own
|
|
53
|
+
* crashed runs classified. The engine's built-in `graphs` tool passes false: it starts no subagent
|
|
54
|
+
* runs, and the run records of its home belong to the engine that hosts it.
|
|
55
|
+
*/
|
|
56
|
+
recoverRuns?: boolean;
|
|
48
57
|
}
|
|
49
58
|
export declare const GRAPH_AGENT_GUIDE: string;
|
|
50
59
|
export declare class AgentMcpError extends Error {
|
|
@@ -113,10 +122,17 @@ export declare class AgentMcpBackend {
|
|
|
113
122
|
private readGraph;
|
|
114
123
|
private upsertNode;
|
|
115
124
|
private upsertEdge;
|
|
116
|
-
|
|
125
|
+
/**
|
|
126
|
+
* Run one tool call. `beforeSave` runs synchronously immediately before a revision is written
|
|
127
|
+
* (publish, delete, restore), after every await that precedes the write; throwing from it abandons
|
|
128
|
+
* the save. An embedding host uses it to refuse a save its task may no longer make (cancelled, or
|
|
129
|
+
* switched to Plan) while the call was waiting on sign-in checks or cloud sync.
|
|
130
|
+
*/
|
|
131
|
+
call(name: string, rawArgs?: unknown, options?: {
|
|
132
|
+
beforeSave?: () => void;
|
|
133
|
+
}): Promise<AgentMcpReply>;
|
|
117
134
|
private dispatch;
|
|
118
135
|
}
|
|
119
136
|
/** The tool names this server advertises; bundled skills that drive it are checked against this list. */
|
|
120
|
-
export
|
|
137
|
+
export { AGENT_MCP_TOOL_NAMES };
|
|
121
138
|
export declare function runAgentMcpServer(): Promise<number>;
|
|
122
|
-
export {};
|
package/dist/src/agent-mcp.js
CHANGED
|
@@ -14,6 +14,7 @@ import { getAgentSession, listAgentProjects, queryAgentSessions, scanAgentSessio
|
|
|
14
14
|
import { AutomationStore } from './automations.js';
|
|
15
15
|
import { canonicalWorkspace, MAX_SUBAGENT_TASK_CHARS, SubagentInvalidArgumentError, SubagentProviderNotSetError, SubagentRunInProgressError, SubagentRunner, SubagentSelectionError } from './subagent-run.js';
|
|
16
16
|
import { reconcileInterruptedRuns } from './run-records.js';
|
|
17
|
+
import { AGENT_MCP_CATALOG, AGENT_MCP_TOOL_NAMES } from './agent-mcp-catalog.js';
|
|
17
18
|
export const GRAPH_AGENT_GUIDE = [
|
|
18
19
|
'# Andorra Code Graph Agent Architecture (MCP)',
|
|
19
20
|
'',
|
|
@@ -254,7 +255,8 @@ export class AgentMcpBackend {
|
|
|
254
255
|
// Another engine in this process may have a live run in this home — an app-server, or a
|
|
255
256
|
// second backend. A record this process is running is not this backend's to classify, so the
|
|
256
257
|
// sweep leaves it alone.
|
|
257
|
-
this.recovery =
|
|
258
|
+
this.recovery = options.recoverRuns === false ? Promise.resolve()
|
|
259
|
+
: reconcileInterruptedRuns(this.directory, undefined, { skipOwnProcess: true }).then(() => undefined).catch(() => undefined);
|
|
258
260
|
}
|
|
259
261
|
/** The startup recovery, finished before the first subagent start is accepted. */
|
|
260
262
|
recovery;
|
|
@@ -418,7 +420,7 @@ export class AgentMcpBackend {
|
|
|
418
420
|
* The revision goes through the same save path as a publish, so free-tier rules and the optimistic
|
|
419
421
|
* revision check apply unchanged, and cloud sync carries the marker to every machine.
|
|
420
422
|
*/
|
|
421
|
-
async setDeleted(deleting, args, access) {
|
|
423
|
+
async setDeleted(deleting, args, access, beforeSave) {
|
|
422
424
|
const tool = deleting ? 'andorra_graph_delete' : 'andorra_graph_restore';
|
|
423
425
|
const id = field(args, 'id');
|
|
424
426
|
if (id === 'default' || id.includes(':'))
|
|
@@ -459,6 +461,7 @@ export class AgentMcpBackend {
|
|
|
459
461
|
else
|
|
460
462
|
delete metadata.deletedAt;
|
|
461
463
|
const next = { ...latest, metadata };
|
|
464
|
+
beforeSave?.();
|
|
462
465
|
const saved = freshAccess.free ? await saveFreeTierGraph(next, latest.revision, access.directory)
|
|
463
466
|
: await saveGraph(next, latest.revision, access.directory);
|
|
464
467
|
// A draft of a deleted graph could only publish over the deletion.
|
|
@@ -534,9 +537,15 @@ export class AgentMcpBackend {
|
|
|
534
537
|
draft.graph.edges[index] = edge;
|
|
535
538
|
return { edge, edgeCount: draft.graph.edges.length };
|
|
536
539
|
}
|
|
537
|
-
|
|
540
|
+
/**
|
|
541
|
+
* Run one tool call. `beforeSave` runs synchronously immediately before a revision is written
|
|
542
|
+
* (publish, delete, restore), after every await that precedes the write; throwing from it abandons
|
|
543
|
+
* the save. An embedding host uses it to refuse a save its task may no longer make (cancelled, or
|
|
544
|
+
* switched to Plan) while the call was waiting on sign-in checks or cloud sync.
|
|
545
|
+
*/
|
|
546
|
+
async call(name, rawArgs = {}, options = {}) {
|
|
538
547
|
try {
|
|
539
|
-
return { ok: true, data: await this.dispatch(name, argsRecord(rawArgs)) };
|
|
548
|
+
return { ok: true, data: await this.dispatch(name, argsRecord(rawArgs), options.beforeSave) };
|
|
540
549
|
}
|
|
541
550
|
catch (error) {
|
|
542
551
|
if (error instanceof GraphConflictError)
|
|
@@ -561,7 +570,7 @@ export class AgentMcpBackend {
|
|
|
561
570
|
return { ok: false, error: backendIssue(error) };
|
|
562
571
|
}
|
|
563
572
|
}
|
|
564
|
-
async dispatch(name, args) {
|
|
573
|
+
async dispatch(name, args, beforeSave) {
|
|
565
574
|
if (name === 'andorra_graph_guide')
|
|
566
575
|
return { architecture: GRAPH_AGENT_GUIDE, resourceUri: 'andorra://graph/architecture' };
|
|
567
576
|
if (name === 'andorra_projects_list')
|
|
@@ -699,7 +708,7 @@ export class AgentMcpBackend {
|
|
|
699
708
|
return { graph, ...(isDeletedGraph(graph) ? { deletedAt: graph.metadata.deletedAt } : {}) };
|
|
700
709
|
}
|
|
701
710
|
if (name === 'andorra_graph_delete' || name === 'andorra_graph_restore')
|
|
702
|
-
return this.setDeleted(name === 'andorra_graph_delete', args, access);
|
|
711
|
+
return this.setDeleted(name === 'andorra_graph_delete', args, access, beforeSave);
|
|
703
712
|
if (name === 'andorra_graph_begin') {
|
|
704
713
|
const mode = field(args, 'mode');
|
|
705
714
|
const id = field(args, 'id');
|
|
@@ -869,6 +878,7 @@ export class AgentMcpBackend {
|
|
|
869
878
|
const stamped = stampGraphProviderProfiles(normalized, latestProfiles);
|
|
870
879
|
if (Buffer.byteLength(JSON.stringify(stamped)) > 512 * 1024)
|
|
871
880
|
throw new AgentMcpError('VALIDATION_FAILED', 'Graph exceeds 512 KiB after portable provider identities are recorded.');
|
|
881
|
+
beforeSave?.();
|
|
872
882
|
const saved = finalAccess.free ? await saveFreeTierGraph(stamped, draft.expectedRevision, access.directory)
|
|
873
883
|
: await saveGraph(stamped, draft.expectedRevision, access.directory);
|
|
874
884
|
// A re-created graph id must not stay deleted: the editor's save endpoint clears the
|
|
@@ -889,48 +899,12 @@ export class AgentMcpBackend {
|
|
|
889
899
|
}
|
|
890
900
|
}
|
|
891
901
|
}
|
|
892
|
-
const obj = (properties, required = []) => ({ type: 'object',
|
|
893
|
-
properties, required, additionalProperties: false });
|
|
894
|
-
const str = { type: 'string' };
|
|
895
|
-
const num = { type: 'integer', minimum: 0 };
|
|
896
|
-
const graphDraftSchema = { draftId: str };
|
|
897
|
-
const graphReference = { draftId: str, nodeId: str };
|
|
898
|
-
const searchFilters = { projectName: str, projectPath: str,
|
|
899
|
-
lookbackMinutes: num, updatedAfter: str, updatedBefore: str, includeArchived: { type: 'boolean' } };
|
|
900
|
-
const catalog = [
|
|
901
|
-
{ name: 'andorra_graph_guide', description: 'Read Andorra graph architecture, node types, outcome routes, loops and save error contracts.', inputSchema: obj({}) },
|
|
902
|
-
{ name: 'andorra_providers_list', description: 'List valid graph provider IDs and models without credentials.', inputSchema: obj({}) },
|
|
903
|
-
{ name: 'andorra_graphs_list', description: 'List available graphs, names and revisions. Deleted graphs are listed only with includeDeleted.', inputSchema: obj({ includeDeleted: { type: 'boolean' } }) },
|
|
904
|
-
{ name: 'andorra_graph_get', description: 'Read one published graph, optionally by revision.', inputSchema: obj({ id: str, revision: { type: 'integer', minimum: 1 } }, ['id']) },
|
|
905
|
-
{ name: 'andorra_graph_begin', description: 'Open an ephemeral graph draft. mode=create needs a new id and name; mode=edit opens latest.', inputSchema: obj({ mode: { type: 'string', enum: ['create', 'edit'] }, id: str, name: str }, ['mode', 'id']) },
|
|
906
|
-
{ name: 'andorra_graph_node_upsert', description: 'Create or replace a node in a draft. Agent nodes require a configured provider ID.', inputSchema: obj({ draftId: str, node: { type: 'object' } }, ['draftId', 'node']) },
|
|
907
|
-
{ name: 'andorra_graph_node_patch', description: 'Change an existing node prompt, instruction, model, provider, completion, etc. without replacing other fields.', inputSchema: obj({ ...graphReference, patch: { type: 'object' } }, ['draftId', 'nodeId', 'patch']) },
|
|
908
|
-
{ name: 'andorra_graph_node_remove', description: 'Remove a non-entry node and its incident edges from a draft.', inputSchema: obj(graphReference, ['draftId', 'nodeId']) },
|
|
909
|
-
{ name: 'andorra_graph_edge_upsert', description: 'Create or replace an edge. Outcome must match a source node port (pass/fail, true/false, body/done...).', inputSchema: obj({ draftId: str, edge: { type: 'object' } }, ['draftId', 'edge']) },
|
|
910
|
-
{ name: 'andorra_graph_edge_remove', description: 'Remove an edge by ID from a draft.', inputSchema: obj({ ...graphDraftSchema, edgeId: str }, ['draftId', 'edgeId']) },
|
|
911
|
-
{ name: 'andorra_graph_patch', description: 'Set graph entry, name, limits, schemas, widgets or metadata in a draft.', inputSchema: obj({ draftId: str, patch: { type: 'object' } }, ['draftId', 'patch']) },
|
|
912
|
-
{ name: 'andorra_graph_validate', description: 'Validate a draft; report all missing provider and outcome paths, plus graph topology issues.', inputSchema: obj(graphDraftSchema, ['draftId']) },
|
|
913
|
-
{ name: 'andorra_graph_publish', description: 'Validate and atomically publish the next immutable graph revision; optimistic concurrency guards other editors.', inputSchema: obj(graphDraftSchema, ['draftId']) },
|
|
914
|
-
{ name: 'andorra_graph_delete', description: 'Soft-delete a graph after the user confirms in chat: publishes a revision marked deleted, hides it from listings and new runs, keeps every revision. confirm must repeat the id.', inputSchema: obj({ id: str, expectedRevision: { type: 'integer', minimum: 1 }, confirm: str }, ['id', 'expectedRevision', 'confirm']) },
|
|
915
|
-
{ name: 'andorra_graph_restore', description: 'Restore a soft-deleted graph by publishing the next revision without the deleted marker.', inputSchema: obj({ id: str, expectedRevision: { type: 'integer', minimum: 1 } }, ['id', 'expectedRevision']) },
|
|
916
|
-
{ name: 'andorra_graph_discard', description: 'Discard an unpublished local graph draft.', inputSchema: obj(graphDraftSchema, ['draftId']) },
|
|
917
|
-
{ name: 'andorra_projects_list', description: 'List registered projects and discovered session workspaces.', inputSchema: obj({}) },
|
|
918
|
-
{ name: 'andorra_sessions_list', description: 'Search sessions by project, status and last X minutes (lookbackMinutes). Supports paginated results.', inputSchema: obj({ ...searchFilters, status: { type: 'string', enum: ['completed', 'pending', 'running', 'required_input', 'incomplete'] },
|
|
919
|
-
offset: num, limit: { type: 'integer', minimum: 1, maximum: 100 } }) },
|
|
920
|
-
{ name: 'andorra_session_get', description: 'Read session metadata and up to 20 recent turn excerpts; no filesystem access.', inputSchema: obj({ sessionId: str,
|
|
921
|
-
historyLimit: { type: 'integer', minimum: 0, maximum: 20 }, historyOffset: num }, ['sessionId']) },
|
|
922
|
-
{ name: 'andorra_sessions_attention', description: 'Find sessions requiring human feedback or review: required_input and incomplete; supports project and time filters.', inputSchema: obj(searchFilters) },
|
|
923
|
-
{ name: 'andorra_subagent_start', description: 'Run the bundled Andorra Agent graph once as an Andorra subagent. Requires a provider/model: pass provider and model, or the saved /subagent setting. On PROVIDER_NOT_SET, show the listed providers and models to your user, ask which to use, then retry with provider and model. Writes are allowed unless permissions is read-only.', inputSchema: obj({ prompt: str, provider: str, model: str, permissions: { type: 'string', enum: ['full-access', 'read-only'] }, workspace: str }, ['prompt']) },
|
|
924
|
-
{ name: 'andorra_subagent_status', description: 'Poll the subagent run: state, current node and recent events. The runId must be the one the start returned, so the answer is about that run.', inputSchema: obj({ runId: str }, ['runId']) },
|
|
925
|
-
{ name: 'andorra_subagent_result', description: 'Read the subagent run outcome. waitMs (0-60000) waits for completion within the call; otherwise returns running immediately when unfinished. The finished reply carries the full run result including completion summary and status. The runId must be the one the start returned.', inputSchema: obj({ waitMs: { type: 'integer', minimum: 0, maximum: 60000 }, runId: str }, ['runId']) },
|
|
926
|
-
{ name: 'andorra_subagent_cancel', description: 'Cancel the subagent run. The runId must be the one the start returned, so a delayed cancellation cannot stop a run that replaced it.', inputSchema: obj({ runId: str }, ['runId']) },
|
|
927
|
-
];
|
|
928
902
|
/** The tool names this server advertises; bundled skills that drive it are checked against this list. */
|
|
929
|
-
export
|
|
903
|
+
export { AGENT_MCP_TOOL_NAMES };
|
|
930
904
|
export async function runAgentMcpServer() {
|
|
931
905
|
const backend = new AgentMcpBackend();
|
|
932
906
|
const server = new Server({ name: 'andorra-code-agent-control', version: '1.0.0' }, { capabilities: { tools: {}, resources: {} } });
|
|
933
|
-
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools:
|
|
907
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [...AGENT_MCP_CATALOG] }));
|
|
934
908
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
935
909
|
const reply = await backend.call(request.params.name, request.params.arguments ?? {});
|
|
936
910
|
return { isError: !reply.ok, content: [{ type: 'text', text: JSON.stringify(reply) }] };
|
|
@@ -44,7 +44,7 @@ export declare const APP_SERVER_PROTOCOL_VERSION = 2;
|
|
|
44
44
|
* one when a client omits it. An engine without it rebuilds a replaced entry from its own field
|
|
45
45
|
* list, so a save through it silently drops the rename and every surface falls back to the id; a
|
|
46
46
|
* client that can show the field must refuse the write first. */
|
|
47
|
-
export declare const APP_SERVER_CAPABILITIES: readonly ["run.start.runPermissions", "automations", "providers.models", "providers.test", "providers.test.model", "providers.streamIdleTimeout", "providers.modelContextWindows", "providers.name", "providers.claude", "providers.claudeAuth", "providers.grok", "providers.opencode", "providers.auth.submit", "providers.opencodeGo", "providers.discover.draft", "providers.codexAuth", "providers.codexAuth.logout", "providers.codexAccounts", "providers.anthropicConsole", "run.resume.direction", "run.steer", "run.overrideAllNodes", "run.setModel", "run.setModel.node", "run.setPermissions", "run.start.continueSession", "run.start.entryHistory", "remote.owner.projects", "remote.workspaces.probe", "remote.engine.relay", "remote.hosting.device.grant", "extensions.manage", "extensions.resources", "skills.invoke", "mcp.manage", "runs.files", "sessions.files", "account.profile", "sessions.stats", "sessions.usage", "config.analytics", "config.analytics.planGate", "sessions.trajectory", "config.externalSubagent", "config.decisions", "browser.view", "attachments.read", "config.general", "sessions.pullRequest", "browser.view.go", "config.browser"];
|
|
47
|
+
export declare const APP_SERVER_CAPABILITIES: readonly ["run.start.runPermissions", "automations", "providers.models", "providers.test", "providers.test.model", "providers.streamIdleTimeout", "providers.modelContextWindows", "providers.name", "providers.claude", "providers.claudeAuth", "providers.grok", "providers.opencode", "providers.auth.submit", "providers.opencodeGo", "providers.discover.draft", "providers.codexAuth", "providers.codexAuth.logout", "providers.codexAccounts", "providers.anthropicConsole", "run.resume.direction", "run.resume.model", "run.steer", "run.overrideAllNodes", "run.setModel", "run.setModel.node", "run.setPermissions", "run.start.continueSession", "run.start.entryHistory", "remote.owner.projects", "remote.workspaces.probe", "remote.engine.relay", "remote.hosting.device.grant", "extensions.manage", "extensions.resources", "skills.invoke", "mcp.manage", "runs.files", "sessions.files", "account.profile", "sessions.stats", "sessions.usage", "config.analytics", "config.analytics.planGate", "sessions.trajectory", "config.externalSubagent", "config.decisions", "browser.view", "attachments.read", "config.general", "sessions.pullRequest", "browser.view.go", "config.browser", "config.webSearch", "background.tasks", "workspace.warm", "browser.cookies.firefox", "sessions.compact"];
|
|
48
48
|
/** One client call. `params` is omitted only for calls that take no arguments. */
|
|
49
49
|
export interface AppServerRequest {
|
|
50
50
|
id: number | string;
|
|
@@ -242,6 +242,23 @@ export interface AppServerConfig {
|
|
|
242
242
|
hasCapsolverKey: boolean;
|
|
243
243
|
capsolverKeySource?: 'config' | 'env';
|
|
244
244
|
};
|
|
245
|
+
/**
|
|
246
|
+
* The web_search tool's services. Keys are never reported: for each service `saved` says the
|
|
247
|
+
* configuration holds its key (or, for SearXNG, its URL), and `source` which value the tool would
|
|
248
|
+
* use (absent when it is not usable). The search engine ID and SearXNG URL are not secrets and come
|
|
249
|
+
* back as saved. A patch sends `{ webSearch: { <field>: string | null } }` with any of
|
|
250
|
+
* defaultProvider, braveApiKey, tavilyApiKey, exaApiKey, serperApiKey, googleApiKey,
|
|
251
|
+
* googleSearchEngineId and searxngUrl; null removes the field and an omitted one is kept.
|
|
252
|
+
*/
|
|
253
|
+
webSearch?: {
|
|
254
|
+
defaultProvider?: 'brave' | 'tavily' | 'exa' | 'serper' | 'google' | 'searxng';
|
|
255
|
+
providers: Record<'brave' | 'tavily' | 'exa' | 'serper' | 'google' | 'searxng', {
|
|
256
|
+
saved: boolean;
|
|
257
|
+
source?: 'config' | 'env';
|
|
258
|
+
}>;
|
|
259
|
+
googleSearchEngineId?: string;
|
|
260
|
+
searxngUrl?: string;
|
|
261
|
+
};
|
|
245
262
|
}
|
|
246
263
|
export interface AppServerAccount {
|
|
247
264
|
signedIn: boolean;
|
|
@@ -310,6 +327,10 @@ export interface AppServerUsageDay {
|
|
|
310
327
|
export interface AppServerUsageAnalytics {
|
|
311
328
|
days: AppServerUsageDay[];
|
|
312
329
|
models: AppServerUsageModel[];
|
|
330
|
+
/**
|
|
331
|
+
* `jevInputTokens`/`jevOutputTokens` are the measured tokens of the run/nodes Jev was enabled on
|
|
332
|
+
* — the only usage a bypass could have replaced, and so the base of the avoidance rate.
|
|
333
|
+
*/
|
|
313
334
|
totals: {
|
|
314
335
|
inputTokens: number;
|
|
315
336
|
outputTokens: number;
|
|
@@ -317,6 +338,8 @@ export interface AppServerUsageAnalytics {
|
|
|
317
338
|
savedInputEstimate: number;
|
|
318
339
|
bypassedTurns: number;
|
|
319
340
|
unestimatedTurns: number;
|
|
341
|
+
jevInputTokens: number;
|
|
342
|
+
jevOutputTokens: number;
|
|
320
343
|
};
|
|
321
344
|
incomplete: boolean;
|
|
322
345
|
filesScanned: number;
|
|
@@ -409,7 +432,11 @@ export interface AppServerGitFile {
|
|
|
409
432
|
index: string;
|
|
410
433
|
worktree: string;
|
|
411
434
|
}
|
|
412
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* `truncated` means the working tree listed more changes than the engine reads in one answer, and
|
|
437
|
+
* `repository` is false unless a `.git` sits at the workspace folder or its immediate parent: a
|
|
438
|
+
* repository Git would only reach by walking further up the tree is not that folder's.
|
|
439
|
+
*/
|
|
413
440
|
export interface AppServerGitStatus {
|
|
414
441
|
repository: boolean;
|
|
415
442
|
branch?: string;
|
|
@@ -421,7 +448,8 @@ export interface AppServerGitStatus {
|
|
|
421
448
|
*
|
|
422
449
|
* `current` is absent in a detached HEAD rather than naming the commit as if it were a branch, and
|
|
423
450
|
* `branches` holds local branches only: a remote-tracking ref is not a branch a checkout can land on
|
|
424
|
-
* without a decision — which local branch tracks it — the client cannot express here.
|
|
451
|
+
* without a decision — which local branch tracks it — the client cannot express here. The repository
|
|
452
|
+
* has to be the workspace folder itself or its immediate parent; `repository` is false otherwise.
|
|
425
453
|
*/
|
|
426
454
|
export interface AppServerBranchList {
|
|
427
455
|
repository: boolean;
|
|
@@ -37,6 +37,10 @@ export const APP_SERVER_PROTOCOL_VERSION = 2;
|
|
|
37
37
|
// attempt's first steering message. An engine without it accepts the field and ignores it, so a
|
|
38
38
|
// client that offers a continuation message must not send one to such an engine: the resume would
|
|
39
39
|
// succeed with the user's instruction silently dropped.
|
|
40
|
+
// `run.resume.model`: `run.resume` honors an explicit `provider`/`model` pair and runs the continued
|
|
41
|
+
// attempt on it (checkpoint re-attribution, like a live model switch). An engine without it accepts
|
|
42
|
+
// the fields and ignores them, so a client that offers a switched pair must not send one to such an
|
|
43
|
+
// engine: the resume would succeed while silently continuing on the stopped attempt's own pair.
|
|
40
44
|
// `remote.engine.relay`: this engine can proxy a full-grant paired workspace's engine surface —
|
|
41
45
|
// `remote.engine.connect`/`request`/`disconnect` — so a window may run tasks on that machine. An
|
|
42
46
|
// engine without it has only the browse subset, and the desktop keeps the read-only presentation.
|
|
@@ -116,4 +120,7 @@ export const APP_SERVER_PROTOCOL_VERSION = 2;
|
|
|
116
120
|
// and the children it delegates without a model of their own — instead of the run. An engine that
|
|
117
121
|
// advertises `run.setModel` but not this ignores the unknown parameter and would answer a node-scoped
|
|
118
122
|
// request as a whole-run one, so a client that promises one node's switch must refuse it here first.
|
|
119
|
-
|
|
123
|
+
// `background.tasks`: `background.list` answers the AsyncProcess jobs and qa.terminal sessions this
|
|
124
|
+
// engine holds, `background.stop` ends one, and `background.updated` carries the whole list whenever
|
|
125
|
+
// it changes. An engine without it answers `unknown-method` and sends no such event.
|
|
126
|
+
export const APP_SERVER_CAPABILITIES = ['run.start.runPermissions', 'automations', 'providers.models', 'providers.test', 'providers.test.model', 'providers.streamIdleTimeout', 'providers.modelContextWindows', 'providers.name', 'providers.claude', 'providers.claudeAuth', 'providers.grok', 'providers.opencode', 'providers.auth.submit', 'providers.opencodeGo', 'providers.discover.draft', 'providers.codexAuth', 'providers.codexAuth.logout', 'providers.codexAccounts', 'providers.anthropicConsole', 'run.resume.direction', 'run.resume.model', 'run.steer', 'run.overrideAllNodes', 'run.setModel', 'run.setModel.node', 'run.setPermissions', 'run.start.continueSession', 'run.start.entryHistory', 'remote.owner.projects', 'remote.workspaces.probe', 'remote.engine.relay', 'remote.hosting.device.grant', 'extensions.manage', 'extensions.resources', 'skills.invoke', 'mcp.manage', 'runs.files', 'sessions.files', 'account.profile', 'sessions.stats', 'sessions.usage', 'config.analytics', 'config.analytics.planGate', 'sessions.trajectory', 'config.externalSubagent', 'config.decisions', 'browser.view', 'attachments.read', 'config.general', 'sessions.pullRequest', 'browser.view.go', 'config.browser', 'config.webSearch', 'background.tasks', 'workspace.warm', 'browser.cookies.firefox', 'sessions.compact'];
|
|
@@ -68,7 +68,9 @@ export declare function gitStatus(root: string, options?: {
|
|
|
68
68
|
* working tree is on is asked separately because a detached HEAD has none, and "absent from the
|
|
69
69
|
* listing" would otherwise be indistinguishable from a branch that only does not exist yet.
|
|
70
70
|
* Remote-tracking refs are left out: landing on one needs a tracking decision — which local branch
|
|
71
|
-
* follows it — that this request cannot express.
|
|
71
|
+
* follows it — that this request cannot express. The repository has to be the workspace folder
|
|
72
|
+
* itself or its immediate parent (`gitInScope`); a repository Git would only reach further up the
|
|
73
|
+
* tree is not this folder's to offer.
|
|
72
74
|
*/
|
|
73
75
|
export declare function listBranches(root: string): Promise<AppServerBranchList>;
|
|
74
76
|
/**
|
|
@@ -80,6 +82,10 @@ export declare function listBranches(root: string): Promise<AppServerBranchList>
|
|
|
80
82
|
* branch than the one in the request. Nothing else about the name is guessed; Git's own refusal is
|
|
81
83
|
* what the caller reports, because it names the reason (no such branch, a working tree that would
|
|
82
84
|
* lose changes) better than a rule kept in sync here could.
|
|
85
|
+
*
|
|
86
|
+
* The repository has to be the workspace folder itself or its immediate parent (`gitInScope`): a
|
|
87
|
+
* switch Git would only reach by walking further up the tree would move some ancestor repository's
|
|
88
|
+
* working tree, not this folder's.
|
|
83
89
|
*/
|
|
84
90
|
export declare function checkoutBranch(root: string, options: {
|
|
85
91
|
branch?: unknown;
|
|
@@ -93,6 +99,7 @@ export declare function checkoutBranch(root: string, options: {
|
|
|
93
99
|
* `base` names what the diff is taken against: the working tree alone (unstaged changes, Git's
|
|
94
100
|
* default) or `head`, which is what a per-file view wants because it includes staged and unstaged
|
|
95
101
|
* changes together. Untracked files have no diff at all and are read as content by the client.
|
|
102
|
+
* A folder out of Git scope (`gitInScope`) has nothing to compare, answered without running Git.
|
|
96
103
|
*/
|
|
97
104
|
export declare function gitDiff(root: string, options?: {
|
|
98
105
|
path?: unknown;
|
|
@@ -2,7 +2,7 @@ import { spawn } from 'node:child_process';
|
|
|
2
2
|
import { createReadStream } from 'node:fs';
|
|
3
3
|
import { opendir, open, readFile, readdir, realpath, stat } from 'node:fs/promises';
|
|
4
4
|
import { StringDecoder } from 'node:string_decoder';
|
|
5
|
-
import { isAbsolute, join, relative, resolve, sep } from 'node:path';
|
|
5
|
+
import { dirname, isAbsolute, join, relative, resolve, sep } from 'node:path';
|
|
6
6
|
import { runRecordPath, runRecordsDirectory, sessionHasOpenRun } from '../run-records.js';
|
|
7
7
|
import { validSavedSession } from '../sessions.js';
|
|
8
8
|
import { listBundles } from '../extensions.js';
|
|
@@ -153,6 +153,32 @@ export async function readWorkspaceFile(root, name) {
|
|
|
153
153
|
await handle.close();
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* Whether Git may be consulted about a workspace folder, and which repository that is: a `.git`
|
|
158
|
+
* sits at the folder itself or at its immediate parent, and the repository Git actually resolves
|
|
159
|
+
* to is one of those two.
|
|
160
|
+
*
|
|
161
|
+
* Git's own discovery never stops at the folder it is given — it walks every ancestor to the drive
|
|
162
|
+
* root — so on a machine whose home directory is itself a repository, a blank folder registered as
|
|
163
|
+
* a project is answered with that ancestor's branches and status, and a checkout would act on the
|
|
164
|
+
* ancestor's working tree. The parent stays in scope because a folder added directly inside a
|
|
165
|
+
* repository's root is still part of that repository's tree to the person who added it; nothing
|
|
166
|
+
* further up is. Presence is checked on the filesystem first, so a folder out of scope costs no
|
|
167
|
+
* process: `status --untracked-files=all` against an accidental ancestor of a large home directory
|
|
168
|
+
* would spend the whole timeout walking it. A `.git` that exists but is not a repository is
|
|
169
|
+
* skipped by Git, which then keeps walking — so the repository the folder resolves to is verified
|
|
170
|
+
* against this scope directly rather than assumed from what the filesystem happens to hold.
|
|
171
|
+
*/
|
|
172
|
+
async function gitInScope(root) {
|
|
173
|
+
const parent = dirname(root);
|
|
174
|
+
const holds = async (folder) => stat(join(folder, '.git')).then(() => true, () => false);
|
|
175
|
+
if (!(await holds(root)) && !(await holds(parent)))
|
|
176
|
+
return false;
|
|
177
|
+
const top = await collectCapped('git', ['-C', root, 'rev-parse', '--show-toplevel'], 4 * 1024, GIT_TIMEOUT_MS).catch(() => undefined);
|
|
178
|
+
if (!top || top.code !== 0)
|
|
179
|
+
return false;
|
|
180
|
+
return inside(root, top.text.trim()) || inside(parent, top.text.trim());
|
|
181
|
+
}
|
|
156
182
|
/**
|
|
157
183
|
* Working-tree status through the `git` executable.
|
|
158
184
|
*
|
|
@@ -166,6 +192,8 @@ export async function readWorkspaceFile(root, name) {
|
|
|
166
192
|
* following field, so no path has to be decoded.
|
|
167
193
|
*/
|
|
168
194
|
export async function gitStatus(root, options = {}) {
|
|
195
|
+
if (!(await gitInScope(root)))
|
|
196
|
+
return { repository: false, files: [] };
|
|
169
197
|
let collected;
|
|
170
198
|
try {
|
|
171
199
|
// Streamed and capped, like the diff path: `execFile` fails the whole call once a repository's
|
|
@@ -230,9 +258,13 @@ const MAX_BRANCH_NAME_CHARS = 200;
|
|
|
230
258
|
* working tree is on is asked separately because a detached HEAD has none, and "absent from the
|
|
231
259
|
* listing" would otherwise be indistinguishable from a branch that only does not exist yet.
|
|
232
260
|
* Remote-tracking refs are left out: landing on one needs a tracking decision — which local branch
|
|
233
|
-
* follows it — that this request cannot express.
|
|
261
|
+
* follows it — that this request cannot express. The repository has to be the workspace folder
|
|
262
|
+
* itself or its immediate parent (`gitInScope`); a repository Git would only reach further up the
|
|
263
|
+
* tree is not this folder's to offer.
|
|
234
264
|
*/
|
|
235
265
|
export async function listBranches(root) {
|
|
266
|
+
if (!(await gitInScope(root)))
|
|
267
|
+
return { repository: false, branches: [] };
|
|
236
268
|
let collected;
|
|
237
269
|
try {
|
|
238
270
|
// `:lstrip=2` removes the fixed `refs/heads/` prefix instead of asking for an abbreviation:
|
|
@@ -286,8 +318,14 @@ export async function listBranches(root) {
|
|
|
286
318
|
* branch than the one in the request. Nothing else about the name is guessed; Git's own refusal is
|
|
287
319
|
* what the caller reports, because it names the reason (no such branch, a working tree that would
|
|
288
320
|
* lose changes) better than a rule kept in sync here could.
|
|
321
|
+
*
|
|
322
|
+
* The repository has to be the workspace folder itself or its immediate parent (`gitInScope`): a
|
|
323
|
+
* switch Git would only reach by walking further up the tree would move some ancestor repository's
|
|
324
|
+
* working tree, not this folder's.
|
|
289
325
|
*/
|
|
290
326
|
export async function checkoutBranch(root, options) {
|
|
327
|
+
if (!(await gitInScope(root)))
|
|
328
|
+
throw new Error('The project folder is not a Git repository');
|
|
291
329
|
if (typeof options.branch !== 'string')
|
|
292
330
|
throw new Error('A branch name must be a string');
|
|
293
331
|
const name = options.branch.trim();
|
|
@@ -313,8 +351,11 @@ export async function checkoutBranch(root, options) {
|
|
|
313
351
|
* `base` names what the diff is taken against: the working tree alone (unstaged changes, Git's
|
|
314
352
|
* default) or `head`, which is what a per-file view wants because it includes staged and unstaged
|
|
315
353
|
* changes together. Untracked files have no diff at all and are read as content by the client.
|
|
354
|
+
* A folder out of Git scope (`gitInScope`) has nothing to compare, answered without running Git.
|
|
316
355
|
*/
|
|
317
356
|
export async function gitDiff(root, options = {}) {
|
|
357
|
+
if (!(await gitInScope(root)))
|
|
358
|
+
return { diff: '', truncated: false };
|
|
318
359
|
// The pathspec keeps the name that was asked for. `resolveInside` follows the final component with
|
|
319
360
|
// `realpath`, which is what a *read* needs — a link that leaves the project must be refused — but a
|
|
320
361
|
// diff is addressed by Git: canonicalizing a tracked symlink would ask for its target's diff, which
|
package/dist/src/app-server.d.ts
CHANGED
|
@@ -93,6 +93,8 @@ export interface AppServerOptions {
|
|
|
93
93
|
error?: NodeJS.WritableStream;
|
|
94
94
|
/** Overridable so a test can answer the model preflight without reaching a provider. */
|
|
95
95
|
checkGraphHealth?: typeof checkGraphModelHealth;
|
|
96
|
+
/** How long a model that answered the preflight is not asked again; `0` asks every model before every run. */
|
|
97
|
+
modelHealthTtlMs?: number;
|
|
96
98
|
/** Overridable so a test can watch the code-intelligence manager's mode without starting CodeGraph. */
|
|
97
99
|
createCodeIntelligence?: typeof CodeIntelligenceManager.create;
|
|
98
100
|
/** Overridable so a test can run a graph whose access rules it cannot meet. */
|
|
@@ -127,6 +129,8 @@ export declare class AppServer {
|
|
|
127
129
|
private readonly output;
|
|
128
130
|
private readonly error;
|
|
129
131
|
private readonly checkGraphHealth;
|
|
132
|
+
/** The models that answered recently, shared with the other engines on this home. */
|
|
133
|
+
private readonly modelHealth;
|
|
130
134
|
private readonly createCodeIntelligence;
|
|
131
135
|
private readonly loadGraph;
|
|
132
136
|
private readonly codexAuth;
|
|
@@ -149,6 +153,9 @@ export declare class AppServer {
|
|
|
149
153
|
*/
|
|
150
154
|
private readonly graphSync;
|
|
151
155
|
private readonly terminals;
|
|
156
|
+
/** Background jobs and QA terminals this engine holds, each with the session whose run started it. */
|
|
157
|
+
private readonly backgroundTasks;
|
|
158
|
+
private stopBackgroundWatch;
|
|
152
159
|
/** Holds a flooding shell's output back while the protocol stream is behind. */
|
|
153
160
|
private readonly flow;
|
|
154
161
|
/** Panel browsers: interactive session-owned pages, separate from the agent's qa.browser_session tool. */
|
|
@@ -267,6 +274,8 @@ export declare class AppServer {
|
|
|
267
274
|
/** The editor start in flight, so two opens cannot race into two servers. */
|
|
268
275
|
private editorTask?;
|
|
269
276
|
private codeIntel?;
|
|
277
|
+
/** The tail of the manager openings, taken one at a time: a run and a warm-up can ask at once. */
|
|
278
|
+
private codeIntelOpening;
|
|
270
279
|
/**
|
|
271
280
|
* The remote-serve outcome this engine holds: either the listener whose lock and descriptor are
|
|
272
281
|
* ours to release at close, or the record that this installation has nothing to serve.
|
|
@@ -499,6 +508,14 @@ export declare class AppServer {
|
|
|
499
508
|
private withSessionMutation;
|
|
500
509
|
private createSession;
|
|
501
510
|
private renameSession;
|
|
511
|
+
/**
|
|
512
|
+
* `/compact` for a client: fold the session's model context into one summary entry, the same
|
|
513
|
+
* deterministic compaction the terminal's `/compact` applies (`compactHistory`). Only
|
|
514
|
+
* `contextHistory` — what the next run seeds from — changes; `history`, the transcript a client
|
|
515
|
+
* shows, keeps every turn. A run owns the record while it is live, and its finalizer would write
|
|
516
|
+
* the uncompacted context back, so compaction waits for the session to be idle.
|
|
517
|
+
*/
|
|
518
|
+
private compactSession;
|
|
502
519
|
/**
|
|
503
520
|
* Persist a finished run's record without reverting what the user changed while it ran.
|
|
504
521
|
*
|
|
@@ -700,6 +717,27 @@ export declare class AppServer {
|
|
|
700
717
|
* recursively crawling a personal tree must not be an implicit side effect of opening the app.
|
|
701
718
|
*/
|
|
702
719
|
private codeIntelligence;
|
|
720
|
+
private openCodeIntelligence;
|
|
721
|
+
/**
|
|
722
|
+
* Prepare a workspace for the task its client expects to start in it.
|
|
723
|
+
*
|
|
724
|
+
* A client whose user has a project open, and an engine with nothing to do, knows where the
|
|
725
|
+
* next task is likely to run before it is sent. What a first task in a workspace waits for at
|
|
726
|
+
* its first node — opening the code index and synchronizing it with the files — is done here
|
|
727
|
+
* instead, so the run finds the manager it would have created, in the state a previous task in
|
|
728
|
+
* this engine would have left it in.
|
|
729
|
+
*
|
|
730
|
+
* Under the mode the task would run in: the one named, or the workspace's saved one. Read Only
|
|
731
|
+
* and Plan prepare nothing, because the index is a cache the engine may not write there. An
|
|
732
|
+
* engine that is running a task refuses, with the code that sends a start to another engine,
|
|
733
|
+
* and so does one that accepted a task while this was waiting: the manager belongs to the run.
|
|
734
|
+
* The answer does not wait for the synchronization, which carries on behind it.
|
|
735
|
+
*
|
|
736
|
+
* This is only worth doing while the engine is idle. The synchronization is work this process
|
|
737
|
+
* does itself, so starting it once a run is being set up moves it from the first node into the
|
|
738
|
+
* setup without shortening either: measured, the first model request arrives no sooner.
|
|
739
|
+
*/
|
|
740
|
+
private warmWorkspace;
|
|
703
741
|
/** Code-intelligence events belong to the active run's stream when one is running. */
|
|
704
742
|
private runEvent;
|
|
705
743
|
/** The journal writer of one run, created on its first event. */
|