@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
package/dist/src/extensions.js
CHANGED
|
@@ -187,6 +187,22 @@ async function githubArchive(url, stage, subtree, signal) {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
const MAX_DISCOVERED_BUNDLES = 128;
|
|
190
|
+
/** Manifests and indexes Andorra writes or parses as JSON. */
|
|
191
|
+
const MAX_DOCUMENT_BYTES = 128 * 1024;
|
|
192
|
+
/** A SKILL.md or a file beside it. Long-form skills ship guides well past the manifest bound. */
|
|
193
|
+
export const MAX_SKILL_DOCUMENT_BYTES = 512 * 1024;
|
|
194
|
+
/** A reason a bundle cannot load that is safe and useful to show the person who installed it. */
|
|
195
|
+
class ExtensionProblem extends Error {
|
|
196
|
+
}
|
|
197
|
+
const kib = (bytes) => Math.ceil(bytes / 1024);
|
|
198
|
+
/** Why a bundle is listed as unavailable: the specific problem when one is known, otherwise the general repair hint. */
|
|
199
|
+
function unavailableDescription(error, kind, fallback) {
|
|
200
|
+
if (error instanceof ExtensionProblem)
|
|
201
|
+
return boundedMetadata(`Unavailable: ${error.message}`, 300, 512);
|
|
202
|
+
if (kind === 'skills' && error?.code === 'ENOENT')
|
|
203
|
+
return 'Unavailable: this folder has no SKILL.md.';
|
|
204
|
+
return fallback;
|
|
205
|
+
}
|
|
190
206
|
const BUNDLE_DISCOVERY_CONCURRENCY = 4;
|
|
191
207
|
const MAX_CATALOG_SKILLS = 16;
|
|
192
208
|
const MAX_PLUGIN_MCP_SERVERS = 8;
|
|
@@ -233,19 +249,21 @@ async function checkedResourcePath(base, path, signal) {
|
|
|
233
249
|
throw new Error('Skill resource escapes directory: links are not supported');
|
|
234
250
|
}
|
|
235
251
|
}
|
|
236
|
-
async function boundedRead(path, base = dirname(path), signal) {
|
|
252
|
+
async function boundedRead(path, base = dirname(path), signal, maxBytes = MAX_DOCUMENT_BYTES) {
|
|
237
253
|
await checkedResourcePath(base, path, signal);
|
|
238
254
|
const initial = await lstat(path);
|
|
239
|
-
if (!initial.isFile()
|
|
240
|
-
throw new
|
|
255
|
+
if (!initial.isFile())
|
|
256
|
+
throw new ExtensionProblem(`${basename(path)} is not a regular file.`);
|
|
257
|
+
if (initial.size > maxBytes)
|
|
258
|
+
throw new ExtensionProblem(`${basename(path)} is ${kib(initial.size)} KiB; the limit is ${kib(maxBytes)} KiB. Move reference material into files beside it.`);
|
|
241
259
|
signal?.throwIfAborted();
|
|
242
260
|
const handle = await open(path, constants.O_RDONLY | (process.platform === 'win32' ? 0 : constants.O_NOFOLLOW | constants.O_NONBLOCK));
|
|
243
261
|
try {
|
|
244
262
|
signal?.throwIfAborted();
|
|
245
263
|
const info = await handle.stat();
|
|
246
|
-
if (!info.isFile() || info.size >
|
|
264
|
+
if (!info.isFile() || info.size > maxBytes || initial.dev !== info.dev || initial.ino !== info.ino)
|
|
247
265
|
throw new Error('Extension document changed before read');
|
|
248
|
-
const buffer = Buffer.alloc(
|
|
266
|
+
const buffer = Buffer.alloc(Math.min(maxBytes, info.size) + 1);
|
|
249
267
|
let bytes = 0;
|
|
250
268
|
while (bytes < buffer.length) {
|
|
251
269
|
signal?.throwIfAborted();
|
|
@@ -254,8 +272,10 @@ async function boundedRead(path, base = dirname(path), signal) {
|
|
|
254
272
|
break;
|
|
255
273
|
bytes += read.bytesRead;
|
|
256
274
|
}
|
|
257
|
-
if (bytes >
|
|
258
|
-
throw new Error('Extension document
|
|
275
|
+
if (bytes > maxBytes || bytes > info.size)
|
|
276
|
+
throw new Error('Extension document changed during read');
|
|
277
|
+
if (buffer.subarray(0, bytes).includes(0))
|
|
278
|
+
throw new ExtensionProblem(`${basename(path)} is not UTF-8 text (it contains NUL bytes).`);
|
|
259
279
|
await checkedResourcePath(base, path, signal);
|
|
260
280
|
const current = await lstat(path);
|
|
261
281
|
if (current.dev !== info.dev || current.ino !== info.ino)
|
|
@@ -265,7 +285,7 @@ async function boundedRead(path, base = dirname(path), signal) {
|
|
|
265
285
|
return new TextDecoder('utf-8', { fatal: true }).decode(buffer.subarray(0, bytes));
|
|
266
286
|
}
|
|
267
287
|
catch {
|
|
268
|
-
throw new
|
|
288
|
+
throw new ExtensionProblem(`${basename(path)} is not valid UTF-8 text.`);
|
|
269
289
|
}
|
|
270
290
|
}
|
|
271
291
|
finally {
|
|
@@ -307,7 +327,7 @@ async function plugin(path, signal) {
|
|
|
307
327
|
const target = resolve(path, skill);
|
|
308
328
|
if (!contained(path, await realpath(target)))
|
|
309
329
|
throw new Error('Plugin skill escapes bundle');
|
|
310
|
-
await boundedRead(join(target, 'SKILL.md'), path, signal);
|
|
330
|
+
await boundedRead(join(target, 'SKILL.md'), path, signal, MAX_SKILL_DOCUMENT_BYTES);
|
|
311
331
|
}
|
|
312
332
|
return value;
|
|
313
333
|
}
|
|
@@ -337,7 +357,7 @@ async function entry(kind, id, path, config, signal) {
|
|
|
337
357
|
if (!info.isDirectory() || info.isSymbolicLink())
|
|
338
358
|
throw new Error(`Unsafe extension directory: ${id}`);
|
|
339
359
|
const manifest = kind === 'plugins' ? await plugin(path, signal) : undefined;
|
|
340
|
-
const text = kind === 'skills' ? await boundedRead(join(path, 'SKILL.md'), path, signal) : '';
|
|
360
|
+
const text = kind === 'skills' ? await boundedRead(join(path, 'SKILL.md'), path, signal, MAX_SKILL_DOCUMENT_BYTES) : '';
|
|
341
361
|
const metadata = skillMetadata(text);
|
|
342
362
|
return { id, name: boundedMetadata(manifest?.name ?? metadata.name ?? id, 128, 256), description: boundedMetadata(manifest?.description ?? metadata.description ?? '', 300, 512), enabled: !disabled(kind, config).includes(id), path };
|
|
343
363
|
}
|
|
@@ -397,9 +417,9 @@ async function repositoryEntries(id, path, manifest, config, signal) {
|
|
|
397
417
|
const value = await entry('skills', id, target, config, signal);
|
|
398
418
|
entries.push({ ...value, name: value.name === id ? (subpath === '.' ? manifest.name.split('/').at(-1) : basename(target)) : value.name, id: skillId, enabled: !disabled('skills', config).includes(skillId) && !disabled('skills', config).includes(id), repository, relativePath: subpath, command: `/${skillId}` });
|
|
399
419
|
}
|
|
400
|
-
catch {
|
|
420
|
+
catch (error) {
|
|
401
421
|
signal?.throwIfAborted();
|
|
402
|
-
entries.push({ id: skillId, name: basename(target), description: 'Unavailable: invalid or unreadable skill.', enabled: !disabled('skills', config).includes(skillId), path: target, unavailable: true, repository, relativePath: subpath, command: `/${skillId}` });
|
|
422
|
+
entries.push({ id: skillId, name: basename(target), description: unavailableDescription(error, 'skills', 'Unavailable: invalid or unreadable skill.'), enabled: !disabled('skills', config).includes(skillId), path: target, unavailable: true, repository, relativePath: subpath, command: `/${skillId}` });
|
|
403
423
|
}
|
|
404
424
|
}
|
|
405
425
|
return entries;
|
|
@@ -424,8 +444,8 @@ export async function listBundles(kind, config, options = {}) {
|
|
|
424
444
|
const manifest = kind === 'skills' ? await repositoryManifest(path, options.signal) : undefined;
|
|
425
445
|
bundles[index] = manifest ? await repositoryEntries(e.name, path, manifest, config, options.signal) : [await entry(kind, e.name, path, config, options.signal)];
|
|
426
446
|
}
|
|
427
|
-
catch {
|
|
428
|
-
bundles[index] = [{ id: e.name, name: e.name, description: 'Unavailable: invalid or unreadable extension; uninstall and reinstall to repair.', enabled: !disabled(kind, config).includes(e.name), path, unavailable: true }];
|
|
447
|
+
catch (error) {
|
|
448
|
+
bundles[index] = [{ id: e.name, name: e.name, description: unavailableDescription(error, kind, 'Unavailable: invalid or unreadable extension; uninstall and reinstall to repair.'), enabled: !disabled(kind, config).includes(e.name), path, unavailable: true }];
|
|
429
449
|
}
|
|
430
450
|
}
|
|
431
451
|
}));
|
|
@@ -492,7 +512,7 @@ export async function installBundle(kind, source, config, signal, directory = co
|
|
|
492
512
|
if (!repository.skills.length)
|
|
493
513
|
throw new Error('No SKILL.md files found in the selected repository or folder');
|
|
494
514
|
const manifestText = JSON.stringify(repository);
|
|
495
|
-
if (Buffer.byteLength(manifestText) >
|
|
515
|
+
if (Buffer.byteLength(manifestText) > MAX_DOCUMENT_BYTES)
|
|
496
516
|
throw new Error('Repository skill index exceeds 128 KiB');
|
|
497
517
|
await writeFile(join(stage, REPOSITORY_MANIFEST), manifestText, { flag: 'wx' });
|
|
498
518
|
}
|
|
@@ -550,7 +570,7 @@ export async function listSkillResources(id, config, directory = configDirectory
|
|
|
550
570
|
const target = join(path, item.name);
|
|
551
571
|
if (item.isDirectory())
|
|
552
572
|
await walk(target);
|
|
553
|
-
else if (item.isFile() && (await lstat(target)).size <=
|
|
573
|
+
else if (item.isFile() && (await lstat(target)).size <= MAX_SKILL_DOCUMENT_BYTES)
|
|
554
574
|
paths.push(relative(skill.path, target).split(sep).join('/'));
|
|
555
575
|
}
|
|
556
576
|
}
|
|
@@ -560,11 +580,11 @@ export async function listSkillResources(id, config, directory = configDirectory
|
|
|
560
580
|
export async function readSkillResource(id, path, config, directory = configDirectory()) {
|
|
561
581
|
const skill = await skillEntry(id, config, directory);
|
|
562
582
|
const { base, target } = resourceTarget(skill, path);
|
|
563
|
-
return boundedRead(target, base);
|
|
583
|
+
return boundedRead(target, base, undefined, MAX_SKILL_DOCUMENT_BYTES);
|
|
564
584
|
}
|
|
565
585
|
export async function writeSkillResource(id, path, content, previousContent, config, directory = configDirectory()) {
|
|
566
|
-
if (typeof content !== 'string' || typeof previousContent !== 'string' || content.includes('\0') || Buffer.byteLength(content) >
|
|
567
|
-
throw new Error(
|
|
586
|
+
if (typeof content !== 'string' || typeof previousContent !== 'string' || content.includes('\0') || Buffer.byteLength(content) > MAX_SKILL_DOCUMENT_BYTES)
|
|
587
|
+
throw new Error(`Skill document must be UTF-8 text under ${kib(MAX_SKILL_DOCUMENT_BYTES)} KiB`);
|
|
568
588
|
const skill = await skillEntry(id, config, directory);
|
|
569
589
|
const { base, target } = resourceTarget(skill, path);
|
|
570
590
|
await checkedResourcePath(base, target);
|
|
@@ -580,7 +600,7 @@ export async function writeSkillResource(id, path, content, previousContent, con
|
|
|
580
600
|
throw e;
|
|
581
601
|
}
|
|
582
602
|
try {
|
|
583
|
-
if (await boundedRead(target, base) !== previousContent)
|
|
603
|
+
if (await boundedRead(target, base, undefined, MAX_SKILL_DOCUMENT_BYTES) !== previousContent)
|
|
584
604
|
throw new Error('Skill document changed since it was opened; reload before saving');
|
|
585
605
|
const initial = await lstat(target);
|
|
586
606
|
const handle = await open(target, constants.O_RDWR | (process.platform === 'win32' ? 0 : constants.O_NOFOLLOW | constants.O_NONBLOCK));
|
|
@@ -618,7 +638,7 @@ export async function resolveSkillInvocation(input, config, signal, directory =
|
|
|
618
638
|
if (!matches.length) {
|
|
619
639
|
const unavailable = known.find(item => item.id === (explicitId ?? name) || !explicitId && (basename(item.path) === name || item.name === name));
|
|
620
640
|
if (unavailable)
|
|
621
|
-
throw new Error(`Skill /${name} is ${unavailable.unavailable ?
|
|
641
|
+
throw new Error(`Skill /${name} is ${unavailable.unavailable ? `unavailable; repair it in Skills. ${unavailable.description.replace(/^Unavailable: /, '')}` : 'disabled; enable it in Skills before invoking it'}`);
|
|
622
642
|
// Andorra's own skills answer only names no installed skill holds.
|
|
623
643
|
const builtin = resolveBuiltinSkill(name, known);
|
|
624
644
|
return builtin ? { id: builtin.id, args, task: skillTask(builtin.id, args) } : undefined;
|
|
@@ -843,7 +863,7 @@ export async function extensionSnapshot(config, signal, directory = configDirect
|
|
|
843
863
|
const { base, target } = resolveResource(args.skill, args.path);
|
|
844
864
|
if (!contained(base, target) || !contained(await realpath(base), await realpath(target)))
|
|
845
865
|
throw new Error('Skill resource escapes directory');
|
|
846
|
-
const text = await boundedRead(target, base, context.signal);
|
|
866
|
+
const text = await boundedRead(target, base, context.signal, MAX_SKILL_DOCUMENT_BYTES);
|
|
847
867
|
context.signal.throwIfAborted();
|
|
848
868
|
return text;
|
|
849
869
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reading one site's cookies out of the user's own Firefox, for the Browser panel.
|
|
3
|
+
*
|
|
4
|
+
* Firefox keeps cookies in a plain SQLite file inside each profile folder. This
|
|
5
|
+
* module finds the profiles, and reads the cookies of ONE site from a temporary
|
|
6
|
+
* copy of that file: Firefox holds the live file open while it runs, and a copy
|
|
7
|
+
* is also what keeps this read from ever writing to the user's profile.
|
|
8
|
+
*
|
|
9
|
+
* Chromium-family browsers are deliberately not read here: their stores are
|
|
10
|
+
* encrypted so that only the browser itself can open them.
|
|
11
|
+
*/
|
|
12
|
+
export interface FirefoxProfile {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
default: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** The shape Playwright's `context.addCookies` takes. */
|
|
18
|
+
export interface ImportedCookie {
|
|
19
|
+
name: string;
|
|
20
|
+
value: string;
|
|
21
|
+
domain: string;
|
|
22
|
+
path: string;
|
|
23
|
+
/** Seconds since the epoch. */
|
|
24
|
+
expires: number;
|
|
25
|
+
httpOnly: boolean;
|
|
26
|
+
secure: boolean;
|
|
27
|
+
sameSite: 'Strict' | 'Lax' | 'None';
|
|
28
|
+
}
|
|
29
|
+
/** A site has dozens of cookies, not thousands: past this the request is not one site's sign-in. */
|
|
30
|
+
export declare const COOKIE_IMPORT_LIMIT = 500;
|
|
31
|
+
/** The file operations a read performs; tests replace the copy to write into the store mid-copy. */
|
|
32
|
+
export interface CookieStoreIo {
|
|
33
|
+
copyFile: (source: string, target: string) => Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
/** Where Firefox keeps `profiles.ini`, by platform; several on Linux, where packaging moves it. */
|
|
36
|
+
export declare function firefoxRoots(platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv, home?: string): string[];
|
|
37
|
+
interface LocatedProfile extends FirefoxProfile {
|
|
38
|
+
directory: string;
|
|
39
|
+
}
|
|
40
|
+
/** `[Profile*]` sections of a profiles.ini, with the install sections' default marked. */
|
|
41
|
+
export declare function parseProfilesIni(text: string, root: string): LocatedProfile[];
|
|
42
|
+
/** The Firefox profiles on this machine that have a cookie store. */
|
|
43
|
+
export declare function listFirefoxProfiles(roots?: string[]): Promise<FirefoxProfile[]>;
|
|
44
|
+
/**
|
|
45
|
+
* The site an import is for: a bare registrable-looking host name.
|
|
46
|
+
*
|
|
47
|
+
* A URL or a `www.` host is accepted and reduced, because the panel prefills
|
|
48
|
+
* this from the page being shown. A single label (`com`, `localhost`) and an IP
|
|
49
|
+
* address are refused: the first would match every site under a suffix, and
|
|
50
|
+
* neither is a sign-in a user keeps in another browser.
|
|
51
|
+
*/
|
|
52
|
+
export declare function cookieImportDomain(value: unknown): string;
|
|
53
|
+
/** Whether a cookie's host belongs to the site: the site itself or one of its subdomains. */
|
|
54
|
+
export declare function cookieHostMatches(host: string, domain: string): boolean;
|
|
55
|
+
interface FirefoxCookieRow {
|
|
56
|
+
name: unknown;
|
|
57
|
+
value: unknown;
|
|
58
|
+
host: unknown;
|
|
59
|
+
path: unknown;
|
|
60
|
+
expiry: unknown;
|
|
61
|
+
isSecure: unknown;
|
|
62
|
+
isHttpOnly: unknown;
|
|
63
|
+
sameSite: unknown;
|
|
64
|
+
originAttributes: unknown;
|
|
65
|
+
}
|
|
66
|
+
/** One `moz_cookies` row as a cookie Chromium will take, or `undefined` when it must not be imported. */
|
|
67
|
+
export declare function importableCookie(row: FirefoxCookieRow, domain: string, nowSeconds: number): ImportedCookie | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Read one site's cookies from a Firefox profile.
|
|
70
|
+
*
|
|
71
|
+
* `profileId` must be one of the ids `listFirefoxProfiles` answered: the folder is
|
|
72
|
+
* looked up from that list, never built from the caller's string.
|
|
73
|
+
*/
|
|
74
|
+
export declare function readFirefoxCookies(chosenProfile: unknown, site: unknown, roots?: string[], now?: () => number, io?: CookieStoreIo): Promise<{
|
|
75
|
+
domain: string;
|
|
76
|
+
cookies: ImportedCookie[];
|
|
77
|
+
}>;
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { copyFile, mkdtemp, readFile, realpath, rm, stat } from 'node:fs/promises';
|
|
3
|
+
import { homedir, tmpdir } from 'node:os';
|
|
4
|
+
import { basename, isAbsolute, join } from 'node:path';
|
|
5
|
+
/** A site has dozens of cookies, not thousands: past this the request is not one site's sign-in. */
|
|
6
|
+
export const COOKIE_IMPORT_LIMIT = 500;
|
|
7
|
+
const PROFILE_LIMIT = 50;
|
|
8
|
+
/** How often a copy that Firefox wrote into is taken again before the import gives up. */
|
|
9
|
+
const SNAPSHOT_ATTEMPTS = 4;
|
|
10
|
+
const SNAPSHOT_RETRY_MS = 200;
|
|
11
|
+
/** Where Firefox keeps `profiles.ini`, by platform; several on Linux, where packaging moves it. */
|
|
12
|
+
export function firefoxRoots(platform = process.platform, env = process.env, home = homedir()) {
|
|
13
|
+
if (platform === 'win32')
|
|
14
|
+
return env.APPDATA ? [join(env.APPDATA, 'Mozilla', 'Firefox')] : [];
|
|
15
|
+
if (platform === 'darwin')
|
|
16
|
+
return [join(home, 'Library', 'Application Support', 'Firefox')];
|
|
17
|
+
return [
|
|
18
|
+
join(home, '.mozilla', 'firefox'),
|
|
19
|
+
join(home, 'snap', 'firefox', 'common', '.mozilla', 'firefox'),
|
|
20
|
+
join(home, '.var', 'app', 'org.mozilla.firefox', '.mozilla', 'firefox'),
|
|
21
|
+
];
|
|
22
|
+
}
|
|
23
|
+
/** `[Profile*]` sections of a profiles.ini, with the install sections' default marked. */
|
|
24
|
+
export function parseProfilesIni(text, root) {
|
|
25
|
+
const sections = [];
|
|
26
|
+
for (const raw of text.split(/\r?\n/)) {
|
|
27
|
+
const line = raw.trim();
|
|
28
|
+
const header = /^\[(.+)\]$/.exec(line);
|
|
29
|
+
if (header) {
|
|
30
|
+
sections.push({ name: header[1], values: {} });
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
const at = line.indexOf('=');
|
|
34
|
+
if (at > 0 && sections.length)
|
|
35
|
+
sections[sections.length - 1].values[line.slice(0, at).trim()] = line.slice(at + 1).trim();
|
|
36
|
+
}
|
|
37
|
+
// The profile an installed Firefox actually opens is named by its `[Install*]`
|
|
38
|
+
// section; the legacy per-profile `Default=1` flag is only a fallback.
|
|
39
|
+
const installDefaults = new Set(sections.filter(section => section.name.startsWith('Install') && section.values.Default).map(section => section.values.Default));
|
|
40
|
+
const profiles = [];
|
|
41
|
+
for (const section of sections) {
|
|
42
|
+
if (!/^Profile\d+$/.test(section.name))
|
|
43
|
+
continue;
|
|
44
|
+
const path = section.values.Path;
|
|
45
|
+
if (!path)
|
|
46
|
+
continue;
|
|
47
|
+
const relative = section.values.IsRelative !== '0';
|
|
48
|
+
if (!relative && !isAbsolute(path))
|
|
49
|
+
continue;
|
|
50
|
+
const directory = relative ? join(root, ...path.split('/')) : path;
|
|
51
|
+
profiles.push({
|
|
52
|
+
// Provisional: `locateProfiles` replaces it with an id made from the resolved folder.
|
|
53
|
+
id: basename(directory), name: (section.values.Name || basename(directory)).slice(0, 120), directory,
|
|
54
|
+
default: installDefaults.size ? installDefaults.has(path) : section.values.Default === '1',
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return profiles;
|
|
58
|
+
}
|
|
59
|
+
/** An opaque id for a profile folder: the same folder always gets the same id, a different one never does. */
|
|
60
|
+
function profileId(directory) {
|
|
61
|
+
const key = process.platform === 'win32' ? directory.toLowerCase() : directory;
|
|
62
|
+
return createHash('sha256').update(key).digest('hex').slice(0, 24);
|
|
63
|
+
}
|
|
64
|
+
async function locateProfiles(roots) {
|
|
65
|
+
const found = [];
|
|
66
|
+
for (const root of roots) {
|
|
67
|
+
let text;
|
|
68
|
+
try {
|
|
69
|
+
text = await readFile(join(root, 'profiles.ini'), 'utf8');
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
for (const profile of parseProfilesIni(text, root)) {
|
|
75
|
+
// A profile that has never stored a cookie has nothing to import.
|
|
76
|
+
try {
|
|
77
|
+
if (!(await stat(join(profile.directory, 'cookies.sqlite'))).isFile())
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
catch {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
// Two installs (native and Snap, say) can each have a folder of the same name with a
|
|
84
|
+
// different cookie store, so a profile is identified by its whole resolved folder, and only
|
|
85
|
+
// two entries that reach the same folder are one profile.
|
|
86
|
+
const resolved = await realpath(profile.directory).catch(() => profile.directory);
|
|
87
|
+
const id = profileId(resolved);
|
|
88
|
+
if (found.some(existing => existing.id === id))
|
|
89
|
+
continue;
|
|
90
|
+
found.push({ ...profile, id, directory: resolved });
|
|
91
|
+
if (found.length >= PROFILE_LIMIT)
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
if (found.length >= PROFILE_LIMIT)
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
// Profiles that share a name are told apart by their folder, or a picker would list twins.
|
|
98
|
+
const names = found.map(profile => profile.name);
|
|
99
|
+
for (const profile of found) {
|
|
100
|
+
if (names.filter(name => name === profile.name).length > 1)
|
|
101
|
+
profile.name = `${profile.name} — ${profile.directory}`.slice(0, 300);
|
|
102
|
+
}
|
|
103
|
+
// The profile Firefox opens by default leads, so a picker's first entry is the likely one.
|
|
104
|
+
return found.sort((a, b) => Number(b.default) - Number(a.default));
|
|
105
|
+
}
|
|
106
|
+
/** The Firefox profiles on this machine that have a cookie store. */
|
|
107
|
+
export async function listFirefoxProfiles(roots = firefoxRoots()) {
|
|
108
|
+
return (await locateProfiles(roots)).map(({ id, name, default: isDefault }) => ({ id, name, default: isDefault }));
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The site an import is for: a bare registrable-looking host name.
|
|
112
|
+
*
|
|
113
|
+
* A URL or a `www.` host is accepted and reduced, because the panel prefills
|
|
114
|
+
* this from the page being shown. A single label (`com`, `localhost`) and an IP
|
|
115
|
+
* address are refused: the first would match every site under a suffix, and
|
|
116
|
+
* neither is a sign-in a user keeps in another browser.
|
|
117
|
+
*/
|
|
118
|
+
export function cookieImportDomain(value) {
|
|
119
|
+
if (typeof value !== 'string' || !value.trim() || value.length > 255)
|
|
120
|
+
throw new Error('Enter the site to import cookies for, such as example.com');
|
|
121
|
+
let host = value.trim().toLowerCase();
|
|
122
|
+
if (/^[a-z][a-z0-9+.-]*:\/\//.test(host)) {
|
|
123
|
+
try {
|
|
124
|
+
host = new URL(host).hostname;
|
|
125
|
+
}
|
|
126
|
+
catch {
|
|
127
|
+
throw new Error('Enter the site to import cookies for, such as example.com');
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
host = host.replace(/^\.+/, '').replace(/\.+$/, '').replace(/^www\./, '');
|
|
131
|
+
const labels = host.split('.');
|
|
132
|
+
if (labels.length < 2 || labels.some(label => !/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/.test(label)) || /^\d+$/.test(labels[labels.length - 1])) {
|
|
133
|
+
throw new Error('Enter a site name such as example.com');
|
|
134
|
+
}
|
|
135
|
+
return host;
|
|
136
|
+
}
|
|
137
|
+
/** Whether a cookie's host belongs to the site: the site itself or one of its subdomains. */
|
|
138
|
+
export function cookieHostMatches(host, domain) {
|
|
139
|
+
const bare = host.toLowerCase().replace(/^\./, '');
|
|
140
|
+
return bare === domain || bare.endsWith(`.${domain}`);
|
|
141
|
+
}
|
|
142
|
+
async function fingerprint(path) {
|
|
143
|
+
try {
|
|
144
|
+
const info = await stat(path, { bigint: true });
|
|
145
|
+
return `${info.size}:${info.mtimeNs}`;
|
|
146
|
+
}
|
|
147
|
+
catch {
|
|
148
|
+
return 'absent';
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Copy the cookie database and its write-ahead log as one consistent pair.
|
|
153
|
+
*
|
|
154
|
+
* The two files are copied one after the other, and Firefox can write or checkpoint
|
|
155
|
+
* between the copies: the pair would then mix two generations of the store, which
|
|
156
|
+
* for cookies means a session token from one sign-in beside a CSRF token from
|
|
157
|
+
* another. So both files are fingerprinted before and after, and a pair that
|
|
158
|
+
* changed underneath the copy is thrown away and taken again.
|
|
159
|
+
*
|
|
160
|
+
* SQLite's own backup is not used on the live file: it needs a connection to it,
|
|
161
|
+
* and a connection either fails under Firefox's lock or, when it is the last one to
|
|
162
|
+
* close, checkpoints the log — a write into the user's profile this import never makes.
|
|
163
|
+
*/
|
|
164
|
+
async function snapshotCookieStore(directory, scratch, io) {
|
|
165
|
+
const source = join(directory, 'cookies.sqlite');
|
|
166
|
+
const log = `${source}-wal`;
|
|
167
|
+
for (let attempt = 0; attempt < SNAPSHOT_ATTEMPTS; attempt += 1) {
|
|
168
|
+
if (attempt > 0)
|
|
169
|
+
await new Promise(resolve => { setTimeout(resolve, SNAPSHOT_RETRY_MS); });
|
|
170
|
+
const before = [await fingerprint(source), await fingerprint(log)];
|
|
171
|
+
const copy = join(scratch, `cookies-${attempt}.sqlite`);
|
|
172
|
+
try {
|
|
173
|
+
await io.copyFile(source, copy);
|
|
174
|
+
}
|
|
175
|
+
catch {
|
|
176
|
+
throw new Error('Firefox\'s cookie store could not be read. Close Firefox and try again.');
|
|
177
|
+
}
|
|
178
|
+
// Recent changes live in the log until Firefox checkpoints them; without it a
|
|
179
|
+
// sign-in from the last few minutes would be missing.
|
|
180
|
+
const logCopied = await io.copyFile(log, `${copy}-wal`).then(() => true, () => false);
|
|
181
|
+
const after = [await fingerprint(source), await fingerprint(log)];
|
|
182
|
+
// A log that exists but could not be copied is as inconsistent as one that changed.
|
|
183
|
+
if (before[0] === after[0] && before[1] === after[1] && (logCopied || after[1] === 'absent'))
|
|
184
|
+
return copy;
|
|
185
|
+
}
|
|
186
|
+
throw new Error('Firefox is writing to its cookie store right now. Close Firefox, or try again in a moment.');
|
|
187
|
+
}
|
|
188
|
+
/** One `moz_cookies` row as a cookie Chromium will take, or `undefined` when it must not be imported. */
|
|
189
|
+
export function importableCookie(row, domain, nowSeconds) {
|
|
190
|
+
if (typeof row.name !== 'string' || typeof row.value !== 'string' || typeof row.host !== 'string' || !row.host)
|
|
191
|
+
return undefined;
|
|
192
|
+
// Container tabs, private windows and partitioned (third-party) cookies carry
|
|
193
|
+
// origin attributes: they are not the sign-in the user sees in a normal window.
|
|
194
|
+
if (typeof row.originAttributes === 'string' && row.originAttributes !== '')
|
|
195
|
+
return undefined;
|
|
196
|
+
if (!cookieHostMatches(row.host, domain))
|
|
197
|
+
return undefined;
|
|
198
|
+
const rawExpiry = Number(row.expiry);
|
|
199
|
+
if (!Number.isFinite(rawExpiry) || rawExpiry <= 0)
|
|
200
|
+
return undefined;
|
|
201
|
+
// Firefox moved this column from seconds to milliseconds; a value this large is the newer unit.
|
|
202
|
+
const expires = Math.floor(rawExpiry > 1e11 ? rawExpiry / 1000 : rawExpiry);
|
|
203
|
+
if (expires <= nowSeconds)
|
|
204
|
+
return undefined;
|
|
205
|
+
const secure = Number(row.isSecure) === 1;
|
|
206
|
+
const sameSiteCode = Number(row.sameSite);
|
|
207
|
+
// Chromium refuses SameSite=None on a cookie that is not Secure, and Firefox's
|
|
208
|
+
// "unset" has Lax behaviour, so everything that is not a valid None or Strict is Lax.
|
|
209
|
+
const sameSite = sameSiteCode === 2 ? 'Strict' : sameSiteCode === 0 && secure ? 'None' : 'Lax';
|
|
210
|
+
return {
|
|
211
|
+
name: row.name, value: row.value, domain: row.host,
|
|
212
|
+
path: typeof row.path === 'string' && row.path.startsWith('/') ? row.path : '/',
|
|
213
|
+
expires, httpOnly: Number(row.isHttpOnly) === 1, secure, sameSite,
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Read one site's cookies from a Firefox profile.
|
|
218
|
+
*
|
|
219
|
+
* `profileId` must be one of the ids `listFirefoxProfiles` answered: the folder is
|
|
220
|
+
* looked up from that list, never built from the caller's string.
|
|
221
|
+
*/
|
|
222
|
+
export async function readFirefoxCookies(chosenProfile, site, roots = firefoxRoots(), now = Date.now, io = { copyFile }) {
|
|
223
|
+
const domain = cookieImportDomain(site);
|
|
224
|
+
if (typeof chosenProfile !== 'string' || !chosenProfile)
|
|
225
|
+
throw new Error('Choose a Firefox profile');
|
|
226
|
+
const profile = (await locateProfiles(roots)).find(candidate => candidate.id === chosenProfile);
|
|
227
|
+
if (!profile)
|
|
228
|
+
throw new Error('That Firefox profile was not found on this machine');
|
|
229
|
+
const scratch = await mkdtemp(join(tmpdir(), 'andorra-cookie-import-'));
|
|
230
|
+
try {
|
|
231
|
+
const copy = await snapshotCookieStore(profile.directory, scratch, io);
|
|
232
|
+
const sqlite = 'node:sqlite';
|
|
233
|
+
const { DatabaseSync } = await import(sqlite);
|
|
234
|
+
let rows;
|
|
235
|
+
let database;
|
|
236
|
+
try {
|
|
237
|
+
database = new DatabaseSync(copy);
|
|
238
|
+
// The host filter is applied here only to keep other sites' rows out of this
|
|
239
|
+
// process; `importableCookie` is what decides, on the exact host.
|
|
240
|
+
rows = database.prepare('SELECT name, value, host, path, expiry, isSecure, isHttpOnly, sameSite, originAttributes FROM moz_cookies WHERE host = ? OR host = ? OR host LIKE ? ESCAPE \'\\\'')
|
|
241
|
+
.all(domain, `.${domain}`, `%.${domain.replace(/[\\%_]/g, match => `\\${match}`)}`);
|
|
242
|
+
}
|
|
243
|
+
catch {
|
|
244
|
+
throw new Error('Firefox\'s cookie store could not be read. It may be from a Firefox version this import does not understand.');
|
|
245
|
+
}
|
|
246
|
+
finally {
|
|
247
|
+
try {
|
|
248
|
+
database?.close();
|
|
249
|
+
}
|
|
250
|
+
catch { /* Already closed. */ }
|
|
251
|
+
}
|
|
252
|
+
const nowSeconds = Math.floor(now() / 1000);
|
|
253
|
+
const cookies = rows.map(row => importableCookie(row, domain, nowSeconds)).filter((cookie) => cookie !== undefined);
|
|
254
|
+
if (cookies.length > COOKIE_IMPORT_LIMIT)
|
|
255
|
+
throw new Error(`That matches more than ${COOKIE_IMPORT_LIMIT} cookies; name one site, such as example.com`);
|
|
256
|
+
return { domain, cookies };
|
|
257
|
+
}
|
|
258
|
+
finally {
|
|
259
|
+
await rm(scratch, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 }).catch(() => { });
|
|
260
|
+
}
|
|
261
|
+
}
|
|
@@ -47,6 +47,16 @@ export interface GraphModelHealthDependencies {
|
|
|
47
47
|
nodes?: string[];
|
|
48
48
|
/** A bound for the whole check rather than one probe: probes still running when it passes are reported as unverified. */
|
|
49
49
|
overallTimeoutMs?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Pairs that answered recently, so a check that follows another one closely does not pay for the
|
|
52
|
+
* same model round trip again. `has` is asked before a pair is probed and a pair it vouches for
|
|
53
|
+
* counts as answered without a request; `add` is told about every pair that answers. Only an
|
|
54
|
+
* answer is ever recorded: a failure or a timeout is asked again by the next check.
|
|
55
|
+
*/
|
|
56
|
+
verified?: {
|
|
57
|
+
has(provider: ProviderConfig, model: string): boolean;
|
|
58
|
+
add(provider: ProviderConfig, model: string): void;
|
|
59
|
+
};
|
|
50
60
|
}
|
|
51
61
|
/** The stopped attempt's own state, as far as the models a continuation can still call depend on it. */
|
|
52
62
|
export interface GraphResumeScope {
|
package/dist/src/graph-health.js
CHANGED
|
@@ -131,6 +131,10 @@ export async function checkGraphModelHealth(graph, config, signal, dependencies
|
|
|
131
131
|
failures[index] = { ...reference, reason: 'Provider is not configured.' };
|
|
132
132
|
continue;
|
|
133
133
|
}
|
|
134
|
+
if (dependencies.verified?.has(provider, reference.model)) {
|
|
135
|
+
answered[index] = true;
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
134
138
|
const controller = new AbortController();
|
|
135
139
|
const abort = () => controller.abort(signal.reason);
|
|
136
140
|
signal.addEventListener('abort', abort, { once: true });
|
|
@@ -170,6 +174,7 @@ export async function checkGraphModelHealth(graph, config, signal, dependencies
|
|
|
170
174
|
}), aborted]);
|
|
171
175
|
signal.throwIfAborted();
|
|
172
176
|
answered[index] = true;
|
|
177
|
+
dependencies.verified?.add(provider, reference.model);
|
|
173
178
|
if (response.usage) {
|
|
174
179
|
const reported = response.usage;
|
|
175
180
|
dependencies.onUsage?.({
|
package/dist/src/graph-runner.js
CHANGED
|
@@ -18,6 +18,7 @@ import { resolveEfficiency } from './efficiency.js';
|
|
|
18
18
|
import { collectWorkspaceFacts } from './workspace-facts.js';
|
|
19
19
|
import { MemoryManager } from './memory/MemoryManager.js';
|
|
20
20
|
import { loadConfig, resolveMemoryConfig } from './config.js';
|
|
21
|
+
import { advertiseAvailableTools } from './tool-availability.js';
|
|
21
22
|
import { elapsedMs, monotonicNow } from './duration.js';
|
|
22
23
|
import { dashboardAdapter } from './dashboard.js';
|
|
23
24
|
import { createRunTelemetry, mergeRunTelemetry, recordAttempt, recordTestCommand, recordToolFailure, recordToolUse } from './telemetry/capture.js';
|
|
@@ -75,13 +76,17 @@ function mergeInputs(target, incoming, nodeId) {
|
|
|
75
76
|
}
|
|
76
77
|
/** Graph stages route validated completions only. Internal delegation remains inside executeAgentNode. */
|
|
77
78
|
export async function runGraph(graph, options) {
|
|
79
|
+
// Notices about ignored memory settings wait for the run identity, so they reach the run's event log.
|
|
80
|
+
const removedMemorySettings = [];
|
|
78
81
|
if (!options.memory || !options.decisionManager) {
|
|
79
82
|
const config = await loadConfig();
|
|
83
|
+
const memoryConfig = options.memory ? undefined : resolveMemoryConfig(config, process.env, notice => { removedMemorySettings.push(notice); });
|
|
80
84
|
options = { ...options, decisionManager: options.decisionManager ?? new DecisionManager({ config: config.decisions, onEvent: options.onEvent }), memory: options.memory ?? await MemoryManager.create({
|
|
81
|
-
config:
|
|
85
|
+
config: memoryConfig, workspace: options.context.workspace, onEvent: options.onEvent, getPermissions: () => permissionMode(options.context),
|
|
82
86
|
}) };
|
|
83
87
|
}
|
|
84
88
|
options.memory.setPermissionsReader(() => permissionMode(options.context));
|
|
89
|
+
options = { ...options, tools: await advertiseAvailableTools(options.tools) };
|
|
85
90
|
const pinned = validateGraph(graph);
|
|
86
91
|
freeze(pinned);
|
|
87
92
|
const limits = resolveLimits(options.limits);
|
|
@@ -823,6 +828,8 @@ export async function runGraph(graph, options) {
|
|
|
823
828
|
await emit('memory.health', { status: 'unavailable', detail: error instanceof Error ? error.message : 'memory health check failed' });
|
|
824
829
|
}
|
|
825
830
|
}
|
|
831
|
+
for (const detail of removedMemorySettings)
|
|
832
|
+
await emit('memory.error', { operation: 'Graphiti', detail });
|
|
826
833
|
while (queue.length) {
|
|
827
834
|
signal.throwIfAborted();
|
|
828
835
|
await context.runControl?.wait(signal);
|
|
@@ -5,6 +5,7 @@ export declare function createGraphSessionCheck(subject: string | undefined, sta
|
|
|
5
5
|
export declare function requireGraphProviders(directory?: string): Promise<Config>;
|
|
6
6
|
export declare function startGraphServer(directory?: string, checkMembership?: () => Promise<unknown>, options?: {
|
|
7
7
|
membership?: () => Promise<Membership>;
|
|
8
|
+
sync?: GraphSync;
|
|
8
9
|
}): Promise<{
|
|
9
10
|
url: string;
|
|
10
11
|
origin: string;
|
package/dist/src/graph-server.js
CHANGED
|
@@ -55,11 +55,14 @@ export async function requireGraphProviders(directory = configDirectory()) {
|
|
|
55
55
|
if (!value || typeof value !== 'object' || !Array.isArray(value.providers) || !value.providers.length)
|
|
56
56
|
throw new Error(setupMessage);
|
|
57
57
|
try {
|
|
58
|
-
|
|
58
|
+
validateConfig({ ...value, providerKeys: undefined, providerKeysPendingDeletion: undefined });
|
|
59
59
|
}
|
|
60
60
|
catch {
|
|
61
61
|
throw new Error('Invalid provider configuration. Run `andorra` and open `/providers` to repair it.');
|
|
62
62
|
}
|
|
63
|
+
// Loaded through the configuration reader so saved API keys come back from the OS credential store;
|
|
64
|
+
// a store that cannot be read says so rather than passing for an invalid file.
|
|
65
|
+
return await loadConfig(directory);
|
|
63
66
|
}
|
|
64
67
|
/** Graph editing may be provider-free, but invalid config keeps actionable repair guidance. */
|
|
65
68
|
async function editorConfig(directory) {
|
|
@@ -76,7 +79,8 @@ export async function startGraphServer(directory = configDirectory(), checkMembe
|
|
|
76
79
|
// A caller supplying its own authorization check has no production account binding.
|
|
77
80
|
const account = checkMembership === readGraphMembership ? await getAuthStatus() : { signedIn: false, subject: undefined };
|
|
78
81
|
const graphDirectory = account.subject ? await graphStorageDirectory(directory, account.subject, true) : directory;
|
|
79
|
-
|
|
82
|
+
// A caller may bring its own store of drafts: a test has no signed-in account to bind one to.
|
|
83
|
+
const sync = options.sync ?? (account.subject ? new GraphSync(graphDirectory, account.subject) : undefined);
|
|
80
84
|
await sync?.start();
|
|
81
85
|
const checkSession = checkMembership === readGraphMembership ? createGraphSessionCheck(account.subject) : checkMembership;
|
|
82
86
|
// Whether this account is held to the free allowance. A membership answer that could not be read
|
|
@@ -106,6 +110,7 @@ export async function startGraphServer(directory = configDirectory(), checkMembe
|
|
|
106
110
|
'/studio.css': ['studio.css', 'text/css; charset=utf-8'],
|
|
107
111
|
'/embed.js': ['embed.js', 'text/javascript; charset=utf-8'],
|
|
108
112
|
'/sidebar.js': ['sidebar.js', 'text/javascript; charset=utf-8'],
|
|
113
|
+
'/drafts.js': ['drafts.js', 'text/javascript; charset=utf-8'],
|
|
109
114
|
'/edge-router.js': ['edge-router.js', 'text/javascript; charset=utf-8'],
|
|
110
115
|
'/icons.js': ['icons.js', 'text/javascript; charset=utf-8'],
|
|
111
116
|
'/controls.js': ['controls.js', 'text/javascript; charset=utf-8'],
|
|
@@ -397,7 +402,7 @@ export async function startGraphServer(directory = configDirectory(), checkMembe
|
|
|
397
402
|
reply(res, 200, { deleted: id });
|
|
398
403
|
return;
|
|
399
404
|
}
|
|
400
|
-
if (req.method === 'POST' && ['/api/graphs', '/api/drafts', '/api/validate', '/api/definitions', '/api/definitions/import', '/api/preview'].includes(path)) {
|
|
405
|
+
if (req.method === 'POST' && ['/api/graphs', '/api/drafts', '/api/drafts/clear', '/api/validate', '/api/definitions', '/api/definitions/import', '/api/preview'].includes(path)) {
|
|
401
406
|
if (!req.headers['content-type']?.startsWith('application/json')) {
|
|
402
407
|
reply(res, 415, { error: 'Expected application/json' });
|
|
403
408
|
return;
|
|
@@ -419,6 +424,13 @@ export async function startGraphServer(directory = configDirectory(), checkMembe
|
|
|
419
424
|
reply(res, 400, { error: 'metadata.deletedAt is reserved for deleting a graph through the graph MCP server.' });
|
|
420
425
|
return;
|
|
421
426
|
}
|
|
427
|
+
if (path === '/api/drafts/clear') {
|
|
428
|
+
if (!sync)
|
|
429
|
+
throw new Error('Sign in to persist drafts');
|
|
430
|
+
await sync.clearDrafts(value?.graphIds);
|
|
431
|
+
reply(res, 200, await sync.drafts());
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
422
434
|
if (path === '/api/drafts') {
|
|
423
435
|
if (!sync)
|
|
424
436
|
throw new Error('Sign in to persist drafts');
|