@loompad/cli 0.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCHITECTURE.md +96 -11
- package/CHANGELOG.md +1042 -0
- package/README.md +1473 -44
- package/THIRD_PARTY_NOTICES.md +275 -0
- package/dist/adapters/antigravity-cli.d.ts +62 -0
- package/dist/adapters/antigravity-cli.js +258 -0
- package/dist/adapters/antigravity-cli.js.map +1 -0
- package/dist/adapters/base.d.ts +61 -9
- package/dist/adapters/base.js +266 -15
- package/dist/adapters/base.js.map +1 -1
- package/dist/adapters/bridges/antigravity.d.ts +9 -12
- package/dist/adapters/bridges/antigravity.js +9 -12
- package/dist/adapters/bridges/antigravity.js.map +1 -1
- package/dist/adapters/echo.d.ts +1 -0
- package/dist/adapters/echo.js +59 -3
- package/dist/adapters/echo.js.map +1 -1
- package/dist/adapters/grok.d.ts +7 -0
- package/dist/adapters/grok.js +20 -10
- package/dist/adapters/grok.js.map +1 -1
- package/dist/adapters/index.d.ts +5 -1
- package/dist/adapters/index.js +53 -7
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/model.d.ts +137 -0
- package/dist/adapters/model.js +527 -0
- package/dist/adapters/model.js.map +1 -0
- package/dist/adapters/opencode.d.ts +101 -1
- package/dist/adapters/opencode.js +874 -98
- package/dist/adapters/opencode.js.map +1 -1
- package/dist/cli/doctor.d.ts +32 -0
- package/dist/cli/doctor.js +89 -4
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/index.js +2651 -87
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/tui-model.js +3 -1
- package/dist/cli/tui-model.js.map +1 -1
- package/dist/cli/tui.js +44 -1
- package/dist/cli/tui.js.map +1 -1
- package/dist/cli/ui.d.ts +2 -0
- package/dist/cli/ui.js +13 -0
- package/dist/cli/ui.js.map +1 -1
- package/dist/core/ades.d.ts +32 -16
- package/dist/core/ades.js +57 -20
- package/dist/core/ades.js.map +1 -1
- package/dist/core/agent-state.d.ts +14 -0
- package/dist/core/agent-state.js +32 -0
- package/dist/core/agent-state.js.map +1 -0
- package/dist/core/approvals.d.ts +33 -0
- package/dist/core/approvals.js +29 -0
- package/dist/core/approvals.js.map +1 -0
- package/dist/core/backup.d.ts +19 -0
- package/dist/core/backup.js +86 -0
- package/dist/core/backup.js.map +1 -0
- package/dist/core/baton.d.ts +2 -2
- package/dist/core/baton.js.map +1 -1
- package/dist/core/brain-extract.d.ts +17 -0
- package/dist/core/brain-extract.js +28 -2
- package/dist/core/brain-extract.js.map +1 -1
- package/dist/core/brain-index.d.ts +71 -0
- package/dist/core/brain-index.js +204 -5
- package/dist/core/brain-index.js.map +1 -1
- package/dist/core/brain.d.ts +58 -2
- package/dist/core/brain.js +79 -1
- package/dist/core/brain.js.map +1 -1
- package/dist/core/chat-import.d.ts +71 -0
- package/dist/core/chat-import.js +419 -0
- package/dist/core/chat-import.js.map +1 -0
- package/dist/core/checkpoint.d.ts +107 -0
- package/dist/core/checkpoint.js +259 -0
- package/dist/core/checkpoint.js.map +1 -0
- package/dist/core/claude-cli.js +1 -1
- package/dist/core/claude-cli.js.map +1 -1
- package/dist/core/continuity/artifacts.d.ts +14 -0
- package/dist/core/continuity/artifacts.js +118 -0
- package/dist/core/continuity/artifacts.js.map +1 -0
- package/dist/core/continuity/capabilities.d.ts +65 -0
- package/dist/core/continuity/capabilities.js +129 -0
- package/dist/core/continuity/capabilities.js.map +1 -0
- package/dist/core/continuity/contracts.d.ts +352 -0
- package/dist/core/continuity/contracts.js +117 -0
- package/dist/core/continuity/contracts.js.map +1 -0
- package/dist/core/continuity/engine.d.ts +55 -0
- package/dist/core/continuity/engine.js +504 -0
- package/dist/core/continuity/engine.js.map +1 -0
- package/dist/core/continuity/store.d.ts +73 -0
- package/dist/core/continuity/store.js +438 -0
- package/dist/core/continuity/store.js.map +1 -0
- package/dist/core/conversations.d.ts +19 -0
- package/dist/core/conversations.js +87 -0
- package/dist/core/conversations.js.map +1 -0
- package/dist/core/crew-coordination.d.ts +6 -0
- package/dist/core/crew-coordination.js +24 -0
- package/dist/core/crew-coordination.js.map +1 -0
- package/dist/core/crew-policy.d.ts +18 -0
- package/dist/core/crew-policy.js +40 -0
- package/dist/core/crew-policy.js.map +1 -0
- package/dist/core/crew-protocol.d.ts +64 -0
- package/dist/core/crew-protocol.js +146 -0
- package/dist/core/crew-protocol.js.map +1 -0
- package/dist/core/crew-requests.d.ts +14 -0
- package/dist/core/crew-requests.js +22 -0
- package/dist/core/crew-requests.js.map +1 -0
- package/dist/core/crew.d.ts +395 -0
- package/dist/core/crew.js +1857 -0
- package/dist/core/crew.js.map +1 -0
- package/dist/core/digest.d.ts +40 -0
- package/dist/core/digest.js +94 -0
- package/dist/core/digest.js.map +1 -0
- package/dist/core/distill.js +3 -5
- package/dist/core/distill.js.map +1 -1
- package/dist/core/eventlog.d.ts +27 -25
- package/dist/core/eventlog.js +97 -150
- package/dist/core/eventlog.js.map +1 -1
- package/dist/core/events/contracts.d.ts +51 -0
- package/dist/core/events/contracts.js +2 -0
- package/dist/core/events/contracts.js.map +1 -0
- package/dist/core/events/jsonl-store.d.ts +23 -0
- package/dist/core/events/jsonl-store.js +90 -0
- package/dist/core/events/jsonl-store.js.map +1 -0
- package/dist/core/events/sqlite-store.d.ts +37 -0
- package/dist/core/events/sqlite-store.js +215 -0
- package/dist/core/events/sqlite-store.js.map +1 -0
- package/dist/core/forecast.d.ts +44 -0
- package/dist/core/forecast.js +46 -0
- package/dist/core/forecast.js.map +1 -0
- package/dist/core/free-pool.d.ts +65 -0
- package/dist/core/free-pool.js +171 -0
- package/dist/core/free-pool.js.map +1 -0
- package/dist/core/git.d.ts +30 -0
- package/dist/core/git.js +50 -2
- package/dist/core/git.js.map +1 -1
- package/dist/core/github-events.d.ts +53 -0
- package/dist/core/github-events.js +227 -0
- package/dist/core/github-events.js.map +1 -0
- package/dist/core/goal-lanes.d.ts +53 -0
- package/dist/core/goal-lanes.js +99 -0
- package/dist/core/goal-lanes.js.map +1 -0
- package/dist/core/hosted.d.ts +27 -0
- package/dist/core/hosted.js +50 -0
- package/dist/core/hosted.js.map +1 -0
- package/dist/core/http-server.d.ts +5 -0
- package/dist/core/http-server.js +8 -0
- package/dist/core/http-server.js.map +1 -0
- package/dist/core/invite-link.d.ts +31 -0
- package/dist/core/invite-link.js +45 -0
- package/dist/core/invite-link.js.map +1 -0
- package/dist/core/loops.d.ts +37 -0
- package/dist/core/loops.js +81 -0
- package/dist/core/loops.js.map +1 -0
- package/dist/core/mcp-catalog.d.ts +182 -0
- package/dist/core/mcp-catalog.js +431 -0
- package/dist/core/mcp-catalog.js.map +1 -0
- package/dist/core/mcp.d.ts +87 -0
- package/dist/core/mcp.js +181 -0
- package/dist/core/mcp.js.map +1 -0
- package/dist/core/memory.d.ts +1 -0
- package/dist/core/memory.js +5 -2
- package/dist/core/memory.js.map +1 -1
- package/dist/core/model-tools.d.ts +97 -0
- package/dist/core/model-tools.js +388 -0
- package/dist/core/model-tools.js.map +1 -0
- package/dist/core/notify.js +19 -1
- package/dist/core/notify.js.map +1 -1
- package/dist/core/orchestra.d.ts +635 -0
- package/dist/core/orchestra.js +2120 -0
- package/dist/core/orchestra.js.map +1 -0
- package/dist/core/permissions.d.ts +56 -0
- package/dist/core/permissions.js +122 -0
- package/dist/core/permissions.js.map +1 -0
- package/dist/core/preview-proxy.d.ts +70 -0
- package/dist/core/preview-proxy.js +563 -0
- package/dist/core/preview-proxy.js.map +1 -0
- package/dist/core/preview-shot.d.ts +46 -0
- package/dist/core/preview-shot.js +109 -0
- package/dist/core/preview-shot.js.map +1 -0
- package/dist/core/process.d.ts +36 -0
- package/dist/core/process.js +168 -0
- package/dist/core/process.js.map +1 -0
- package/dist/core/prompt-queue.d.ts +136 -0
- package/dist/core/prompt-queue.js +269 -0
- package/dist/core/prompt-queue.js.map +1 -0
- package/dist/core/prompts.d.ts +53 -0
- package/dist/core/prompts.js +127 -0
- package/dist/core/prompts.js.map +1 -0
- package/dist/core/proof.d.ts +82 -0
- package/dist/core/proof.js +216 -0
- package/dist/core/proof.js.map +1 -0
- package/dist/core/provider-text.d.ts +23 -0
- package/dist/core/provider-text.js +66 -0
- package/dist/core/provider-text.js.map +1 -0
- package/dist/core/providers.d.ts +152 -0
- package/dist/core/providers.js +343 -0
- package/dist/core/providers.js.map +1 -0
- package/dist/core/quota.d.ts +33 -0
- package/dist/core/quota.js +74 -0
- package/dist/core/quota.js.map +1 -0
- package/dist/core/recipes.d.ts +50 -0
- package/dist/core/recipes.js +99 -0
- package/dist/core/recipes.js.map +1 -0
- package/dist/core/registry.d.ts +54 -0
- package/dist/core/registry.js +62 -5
- package/dist/core/registry.js.map +1 -1
- package/dist/core/relay-client.d.ts +67 -0
- package/dist/core/relay-client.js +184 -0
- package/dist/core/relay-client.js.map +1 -0
- package/dist/core/relay-protocol.d.ts +140 -0
- package/dist/core/relay-protocol.js +189 -0
- package/dist/core/relay-protocol.js.map +1 -0
- package/dist/core/replay.d.ts +18 -0
- package/dist/core/replay.js +191 -0
- package/dist/core/replay.js.map +1 -0
- package/dist/core/review-triage.d.ts +41 -0
- package/dist/core/review-triage.js +124 -0
- package/dist/core/review-triage.js.map +1 -0
- package/dist/core/router.js +2 -2
- package/dist/core/router.js.map +1 -1
- package/dist/core/routes.d.ts +39 -3
- package/dist/core/routes.js +137 -4
- package/dist/core/routes.js.map +1 -1
- package/dist/core/run-command.d.ts +14 -0
- package/dist/core/run-command.js +45 -0
- package/dist/core/run-command.js.map +1 -0
- package/dist/core/runner-setup.d.ts +36 -0
- package/dist/core/runner-setup.js +114 -0
- package/dist/core/runner-setup.js.map +1 -0
- package/dist/core/search.js +0 -0
- package/dist/core/search.js.map +1 -1
- package/dist/core/semantic.d.ts +92 -0
- package/dist/core/semantic.js +227 -0
- package/dist/core/semantic.js.map +1 -0
- package/dist/core/servers.d.ts +115 -0
- package/dist/core/servers.js +305 -0
- package/dist/core/servers.js.map +1 -0
- package/dist/core/setup.js +64 -6
- package/dist/core/setup.js.map +1 -1
- package/dist/core/shield.d.ts +17 -0
- package/dist/core/shield.js +81 -0
- package/dist/core/shield.js.map +1 -0
- package/dist/core/shift.d.ts +69 -0
- package/dist/core/shift.js +120 -0
- package/dist/core/shift.js.map +1 -0
- package/dist/core/skill-install.d.ts +125 -0
- package/dist/core/skill-install.js +328 -0
- package/dist/core/skill-install.js.map +1 -0
- package/dist/core/skills.d.ts +116 -0
- package/dist/core/skills.js +223 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/step-conditions.d.ts +65 -0
- package/dist/core/step-conditions.js +102 -0
- package/dist/core/step-conditions.js.map +1 -0
- package/dist/core/subagents.d.ts +45 -0
- package/dist/core/subagents.js +90 -0
- package/dist/core/subagents.js.map +1 -0
- package/dist/core/team-canon.d.ts +42 -0
- package/dist/core/team-canon.js +121 -0
- package/dist/core/team-canon.js.map +1 -0
- package/dist/core/team-crypto.d.ts +97 -0
- package/dist/core/team-crypto.js +175 -0
- package/dist/core/team-crypto.js.map +1 -0
- package/dist/core/team-hub.d.ts +514 -0
- package/dist/core/team-hub.js +964 -0
- package/dist/core/team-hub.js.map +1 -0
- package/dist/core/team-landing.d.ts +239 -0
- package/dist/core/team-landing.js +504 -0
- package/dist/core/team-landing.js.map +1 -0
- package/dist/core/team-leases.d.ts +44 -0
- package/dist/core/team-leases.js +145 -0
- package/dist/core/team-leases.js.map +1 -0
- package/dist/core/team-memory.d.ts +42 -0
- package/dist/core/team-memory.js +84 -0
- package/dist/core/team-memory.js.map +1 -0
- package/dist/core/team-policy.d.ts +85 -0
- package/dist/core/team-policy.js +191 -0
- package/dist/core/team-policy.js.map +1 -0
- package/dist/core/thread-md.d.ts +6 -0
- package/dist/core/thread-md.js +42 -0
- package/dist/core/thread-md.js.map +1 -0
- package/dist/core/turn-stats.d.ts +61 -0
- package/dist/core/turn-stats.js +124 -0
- package/dist/core/turn-stats.js.map +1 -0
- package/dist/core/updater.d.ts +73 -0
- package/dist/core/updater.js +153 -0
- package/dist/core/updater.js.map +1 -0
- package/dist/core/usage.d.ts +75 -0
- package/dist/core/usage.js +163 -0
- package/dist/core/usage.js.map +1 -0
- package/dist/core/windows-jobs.d.ts +15 -0
- package/dist/core/windows-jobs.js +170 -0
- package/dist/core/windows-jobs.js.map +1 -0
- package/dist/core/worktree-merge.d.ts +57 -0
- package/dist/core/worktree-merge.js +123 -0
- package/dist/core/worktree-merge.js.map +1 -0
- package/dist/core/worktree.d.ts +5 -0
- package/dist/core/worktree.js +45 -5
- package/dist/core/worktree.js.map +1 -1
- package/dist/core/worktrees.d.ts +6 -0
- package/dist/core/worktrees.js +21 -0
- package/dist/core/worktrees.js.map +1 -0
- package/dist/daemon/app-page.d.ts +0 -17
- package/dist/daemon/app-page.js +10 -6346
- package/dist/daemon/app-page.js.map +1 -1
- package/dist/daemon/auth.d.ts +24 -3
- package/dist/daemon/auth.js +66 -7
- package/dist/daemon/auth.js.map +1 -1
- package/dist/daemon/board.d.ts +7 -0
- package/dist/daemon/board.js +12 -1
- package/dist/daemon/board.js.map +1 -1
- package/dist/daemon/brand-icons.d.ts +6 -1
- package/dist/daemon/brand-icons.js +11 -3
- package/dist/daemon/brand-icons.js.map +1 -1
- package/dist/daemon/client.d.ts +665 -1
- package/dist/daemon/client.js +381 -3
- package/dist/daemon/client.js.map +1 -1
- package/dist/daemon/delivery.d.ts +34 -0
- package/dist/daemon/delivery.js +63 -0
- package/dist/daemon/delivery.js.map +1 -0
- package/dist/daemon/deploys.d.ts +62 -0
- package/dist/daemon/deploys.js +159 -0
- package/dist/daemon/deploys.js.map +1 -0
- package/dist/daemon/landing.d.ts +192 -0
- package/dist/daemon/landing.js +992 -0
- package/dist/daemon/landing.js.map +1 -0
- package/dist/daemon/onboard.d.ts +150 -0
- package/dist/daemon/onboard.js +390 -0
- package/dist/daemon/onboard.js.map +1 -0
- package/dist/daemon/proof.d.ts +70 -0
- package/dist/daemon/proof.js +172 -0
- package/dist/daemon/proof.js.map +1 -0
- package/dist/daemon/push.d.ts +19 -1
- package/dist/daemon/push.js +90 -3
- package/dist/daemon/push.js.map +1 -1
- package/dist/daemon/relay.d.ts +82 -0
- package/dist/daemon/relay.js +351 -0
- package/dist/daemon/relay.js.map +1 -0
- package/dist/daemon/routes/agent-discovery.d.ts +4 -0
- package/dist/daemon/routes/agent-discovery.js +29 -0
- package/dist/daemon/routes/agent-discovery.js.map +1 -0
- package/dist/daemon/routes/agent-settings.d.ts +4 -0
- package/dist/daemon/routes/agent-settings.js +94 -0
- package/dist/daemon/routes/agent-settings.js.map +1 -0
- package/dist/daemon/routes/agents.d.ts +4 -0
- package/dist/daemon/routes/agents.js +105 -0
- package/dist/daemon/routes/agents.js.map +1 -0
- package/dist/daemon/routes/alerts.d.ts +4 -0
- package/dist/daemon/routes/alerts.js +137 -0
- package/dist/daemon/routes/alerts.js.map +1 -0
- package/dist/daemon/routes/approvals.d.ts +4 -0
- package/dist/daemon/routes/approvals.js +40 -0
- package/dist/daemon/routes/approvals.js.map +1 -0
- package/dist/daemon/routes/assets.d.ts +3 -0
- package/dist/daemon/routes/assets.js +64 -0
- package/dist/daemon/routes/assets.js.map +1 -0
- package/dist/daemon/routes/board.d.ts +4 -0
- package/dist/daemon/routes/board.js +147 -0
- package/dist/daemon/routes/board.js.map +1 -0
- package/dist/daemon/routes/brain.d.ts +4 -0
- package/dist/daemon/routes/brain.js +270 -0
- package/dist/daemon/routes/brain.js.map +1 -0
- package/dist/daemon/routes/chats.d.ts +4 -0
- package/dist/daemon/routes/chats.js +249 -0
- package/dist/daemon/routes/chats.js.map +1 -0
- package/dist/daemon/routes/clients.d.ts +4 -0
- package/dist/daemon/routes/clients.js +49 -0
- package/dist/daemon/routes/clients.js.map +1 -0
- package/dist/daemon/routes/cloud.d.ts +4 -0
- package/dist/daemon/routes/cloud.js +46 -0
- package/dist/daemon/routes/cloud.js.map +1 -0
- package/dist/daemon/routes/config.d.ts +4 -0
- package/dist/daemon/routes/config.js +35 -0
- package/dist/daemon/routes/config.js.map +1 -0
- package/dist/daemon/routes/context.d.ts +51 -0
- package/dist/daemon/routes/context.js +2 -0
- package/dist/daemon/routes/context.js.map +1 -0
- package/dist/daemon/routes/crews.d.ts +4 -0
- package/dist/daemon/routes/crews.js +149 -0
- package/dist/daemon/routes/crews.js.map +1 -0
- package/dist/daemon/routes/files.d.ts +3 -0
- package/dist/daemon/routes/files.js +253 -0
- package/dist/daemon/routes/files.js.map +1 -0
- package/dist/daemon/routes/git.d.ts +4 -0
- package/dist/daemon/routes/git.js +96 -0
- package/dist/daemon/routes/git.js.map +1 -0
- package/dist/daemon/routes/history.d.ts +4 -0
- package/dist/daemon/routes/history.js +101 -0
- package/dist/daemon/routes/history.js.map +1 -0
- package/dist/daemon/routes/integrations-project.d.ts +3 -0
- package/dist/daemon/routes/integrations-project.js +103 -0
- package/dist/daemon/routes/integrations-project.js.map +1 -0
- package/dist/daemon/routes/integrations.d.ts +3 -0
- package/dist/daemon/routes/integrations.js +111 -0
- package/dist/daemon/routes/integrations.js.map +1 -0
- package/dist/daemon/routes/logs.d.ts +3 -0
- package/dist/daemon/routes/logs.js +40 -0
- package/dist/daemon/routes/logs.js.map +1 -0
- package/dist/daemon/routes/messages.d.ts +4 -0
- package/dist/daemon/routes/messages.js +60 -0
- package/dist/daemon/routes/messages.js.map +1 -0
- package/dist/daemon/routes/observability.d.ts +4 -0
- package/dist/daemon/routes/observability.js +247 -0
- package/dist/daemon/routes/observability.js.map +1 -0
- package/dist/daemon/routes/onboard.d.ts +12 -0
- package/dist/daemon/routes/onboard.js +67 -0
- package/dist/daemon/routes/onboard.js.map +1 -0
- package/dist/daemon/routes/orchestra.d.ts +4 -0
- package/dist/daemon/routes/orchestra.js +110 -0
- package/dist/daemon/routes/orchestra.js.map +1 -0
- package/dist/daemon/routes/pairing.d.ts +4 -0
- package/dist/daemon/routes/pairing.js +155 -0
- package/dist/daemon/routes/pairing.js.map +1 -0
- package/dist/daemon/routes/preview.d.ts +24 -0
- package/dist/daemon/routes/preview.js +122 -0
- package/dist/daemon/routes/preview.js.map +1 -0
- package/dist/daemon/routes/project-actions.d.ts +4 -0
- package/dist/daemon/routes/project-actions.js +53 -0
- package/dist/daemon/routes/project-actions.js.map +1 -0
- package/dist/daemon/routes/project-team.d.ts +4 -0
- package/dist/daemon/routes/project-team.js +201 -0
- package/dist/daemon/routes/project-team.js.map +1 -0
- package/dist/daemon/routes/projects.d.ts +14 -0
- package/dist/daemon/routes/projects.js +138 -0
- package/dist/daemon/routes/projects.js.map +1 -0
- package/dist/daemon/routes/prompts.d.ts +4 -0
- package/dist/daemon/routes/prompts.js +44 -0
- package/dist/daemon/routes/prompts.js.map +1 -0
- package/dist/daemon/routes/proof.d.ts +4 -0
- package/dist/daemon/routes/proof.js +22 -0
- package/dist/daemon/routes/proof.js.map +1 -0
- package/dist/daemon/routes/providers.d.ts +3 -0
- package/dist/daemon/routes/providers.js +60 -0
- package/dist/daemon/routes/providers.js.map +1 -0
- package/dist/daemon/routes/public.d.ts +4 -0
- package/dist/daemon/routes/public.js +64 -0
- package/dist/daemon/routes/public.js.map +1 -0
- package/dist/daemon/routes/queue.d.ts +4 -0
- package/dist/daemon/routes/queue.js +140 -0
- package/dist/daemon/routes/queue.js.map +1 -0
- package/dist/daemon/routes/routing.d.ts +4 -0
- package/dist/daemon/routes/routing.js +61 -0
- package/dist/daemon/routes/routing.js.map +1 -0
- package/dist/daemon/routes/runtime-handler.d.ts +2 -0
- package/dist/daemon/routes/runtime-handler.js +63 -0
- package/dist/daemon/routes/runtime-handler.js.map +1 -0
- package/dist/daemon/routes/search.d.ts +4 -0
- package/dist/daemon/routes/search.js +17 -0
- package/dist/daemon/routes/search.js.map +1 -0
- package/dist/daemon/routes/servers.d.ts +4 -0
- package/dist/daemon/routes/servers.js +133 -0
- package/dist/daemon/routes/servers.js.map +1 -0
- package/dist/daemon/routes/setup.d.ts +3 -0
- package/dist/daemon/routes/setup.js +50 -0
- package/dist/daemon/routes/setup.js.map +1 -0
- package/dist/daemon/routes/shift.d.ts +4 -0
- package/dist/daemon/routes/shift.js +30 -0
- package/dist/daemon/routes/shift.js.map +1 -0
- package/dist/daemon/routes/specs.d.ts +4 -0
- package/dist/daemon/routes/specs.js +57 -0
- package/dist/daemon/routes/specs.js.map +1 -0
- package/dist/daemon/routes/task-delivery.d.ts +4 -0
- package/dist/daemon/routes/task-delivery.js +38 -0
- package/dist/daemon/routes/task-delivery.js.map +1 -0
- package/dist/daemon/routes/team.d.ts +4 -0
- package/dist/daemon/routes/team.js +193 -0
- package/dist/daemon/routes/team.js.map +1 -0
- package/dist/daemon/routes/terminals.d.ts +4 -0
- package/dist/daemon/routes/terminals.js +87 -0
- package/dist/daemon/routes/terminals.js.map +1 -0
- package/dist/daemon/routes/tools.d.ts +4 -0
- package/dist/daemon/routes/tools.js +180 -0
- package/dist/daemon/routes/tools.js.map +1 -0
- package/dist/daemon/routes/updates.d.ts +4 -0
- package/dist/daemon/routes/updates.js +89 -0
- package/dist/daemon/routes/updates.js.map +1 -0
- package/dist/daemon/routes/voice.d.ts +4 -0
- package/dist/daemon/routes/voice.js +53 -0
- package/dist/daemon/routes/voice.js.map +1 -0
- package/dist/daemon/runner.d.ts +186 -0
- package/dist/daemon/runner.js +612 -0
- package/dist/daemon/runner.js.map +1 -0
- package/dist/daemon/runtime/accounting.d.ts +130 -0
- package/dist/daemon/runtime/accounting.js +303 -0
- package/dist/daemon/runtime/accounting.js.map +1 -0
- package/dist/daemon/runtime/agents.d.ts +16 -0
- package/dist/daemon/runtime/agents.js +71 -0
- package/dist/daemon/runtime/agents.js.map +1 -0
- package/dist/daemon/runtime/briefings.d.ts +134 -0
- package/dist/daemon/runtime/briefings.js +329 -0
- package/dist/daemon/runtime/briefings.js.map +1 -0
- package/dist/daemon/runtime/native-usage.d.ts +21 -0
- package/dist/daemon/runtime/native-usage.js +71 -0
- package/dist/daemon/runtime/native-usage.js.map +1 -0
- package/dist/daemon/runtime/queue.d.ts +94 -0
- package/dist/daemon/runtime/queue.js +222 -0
- package/dist/daemon/runtime/queue.js.map +1 -0
- package/dist/daemon/runtime/relay.d.ts +93 -0
- package/dist/daemon/runtime/relay.js +240 -0
- package/dist/daemon/runtime/relay.js.map +1 -0
- package/dist/daemon/runtime/turns.d.ts +202 -0
- package/dist/daemon/runtime/turns.js +663 -0
- package/dist/daemon/runtime/turns.js.map +1 -0
- package/dist/daemon/runtime-support.d.ts +76 -0
- package/dist/daemon/runtime-support.js +134 -0
- package/dist/daemon/runtime-support.js.map +1 -0
- package/dist/daemon/runtime.d.ts +739 -70
- package/dist/daemon/runtime.js +2751 -470
- package/dist/daemon/runtime.js.map +1 -1
- package/dist/daemon/server.d.ts +82 -55
- package/dist/daemon/server.js +674 -1435
- package/dist/daemon/server.js.map +1 -1
- package/dist/daemon/shift.d.ts +70 -0
- package/dist/daemon/shift.js +170 -0
- package/dist/daemon/shift.js.map +1 -0
- package/dist/daemon/specs.d.ts +92 -0
- package/dist/daemon/specs.js +285 -0
- package/dist/daemon/specs.js.map +1 -0
- package/dist/daemon/system.d.ts +208 -0
- package/dist/daemon/system.js +557 -0
- package/dist/daemon/system.js.map +1 -0
- package/dist/daemon/tasks.js +1 -1
- package/dist/daemon/team-brain.d.ts +136 -0
- package/dist/daemon/team-brain.js +659 -0
- package/dist/daemon/team-brain.js.map +1 -0
- package/dist/daemon/team-coordinator.d.ts +78 -0
- package/dist/daemon/team-coordinator.js +408 -0
- package/dist/daemon/team-coordinator.js.map +1 -0
- package/dist/daemon/team.d.ts +339 -0
- package/dist/daemon/team.js +1433 -0
- package/dist/daemon/team.js.map +1 -0
- package/dist/daemon/terminals.d.ts +22 -3
- package/dist/daemon/terminals.js +236 -16
- package/dist/daemon/terminals.js.map +1 -1
- package/dist/hub/client.d.ts +120 -0
- package/dist/hub/client.js +228 -0
- package/dist/hub/client.js.map +1 -0
- package/dist/hub/server.d.ts +32 -0
- package/dist/hub/server.js +180 -0
- package/dist/hub/server.js.map +1 -0
- package/dist/hub/supabase-client.d.ts +220 -0
- package/dist/hub/supabase-client.js +843 -0
- package/dist/hub/supabase-client.js.map +1 -0
- package/dist/observability/ask.d.ts +91 -0
- package/dist/observability/ask.js +179 -0
- package/dist/observability/ask.js.map +1 -0
- package/dist/observability/clickhouse.d.ts +33 -0
- package/dist/observability/clickhouse.js +48 -0
- package/dist/observability/clickhouse.js.map +1 -0
- package/dist/observability/decisions.d.ts +176 -0
- package/dist/observability/decisions.js +377 -0
- package/dist/observability/decisions.js.map +1 -0
- package/dist/observability/index.d.ts +89 -0
- package/dist/observability/index.js +348 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/observability/insights.d.ts +151 -0
- package/dist/observability/insights.js +319 -0
- package/dist/observability/insights.js.map +1 -0
- package/dist/observability/logs-query.d.ts +82 -0
- package/dist/observability/logs-query.js +102 -0
- package/dist/observability/logs-query.js.map +1 -0
- package/dist/observability/logs.d.ts +72 -0
- package/dist/observability/logs.js +295 -0
- package/dist/observability/logs.js.map +1 -0
- package/dist/observability/metrics.d.ts +86 -0
- package/dist/observability/metrics.js +303 -0
- package/dist/observability/metrics.js.map +1 -0
- package/dist/observability/otlp.d.ts +127 -0
- package/dist/observability/otlp.js +242 -0
- package/dist/observability/otlp.js.map +1 -0
- package/dist/observability/snapshots.d.ts +43 -0
- package/dist/observability/snapshots.js +129 -0
- package/dist/observability/snapshots.js.map +1 -0
- package/dist/observability/triage.d.ts +49 -0
- package/dist/observability/triage.js +284 -0
- package/dist/observability/triage.js.map +1 -0
- package/dist/providers/adapter.d.ts +50 -0
- package/dist/providers/adapter.js +38 -0
- package/dist/providers/adapter.js.map +1 -0
- package/dist/providers/agent.d.ts +110 -0
- package/dist/providers/agent.js +487 -0
- package/dist/providers/agent.js.map +1 -0
- package/dist/providers/approvals.d.ts +24 -0
- package/dist/providers/approvals.js +78 -0
- package/dist/providers/approvals.js.map +1 -0
- package/dist/providers/attachments.d.ts +20 -0
- package/dist/providers/attachments.js +51 -0
- package/dist/providers/attachments.js.map +1 -0
- package/dist/providers/claude/adapter.d.ts +99 -0
- package/dist/providers/claude/adapter.js +790 -0
- package/dist/providers/claude/adapter.js.map +1 -0
- package/dist/providers/codex/adapter.d.ts +113 -0
- package/dist/providers/codex/adapter.js +881 -0
- package/dist/providers/codex/adapter.js.map +1 -0
- package/dist/providers/codex/instructions.d.ts +11 -0
- package/dist/providers/codex/instructions.js +154 -0
- package/dist/providers/codex/instructions.js.map +1 -0
- package/dist/providers/codex/rpc.d.ts +36 -0
- package/dist/providers/codex/rpc.js +104 -0
- package/dist/providers/codex/rpc.js.map +1 -0
- package/dist/providers/contracts.d.ts +339 -0
- package/dist/providers/contracts.js +19 -0
- package/dist/providers/contracts.js.map +1 -0
- package/dist/providers/directory.d.ts +70 -0
- package/dist/providers/directory.js +95 -0
- package/dist/providers/directory.js.map +1 -0
- package/dist/providers/errors.d.ts +47 -0
- package/dist/providers/errors.js +24 -0
- package/dist/providers/errors.js.map +1 -0
- package/dist/providers/index.d.ts +18 -0
- package/dist/providers/index.js +19 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/ingestion.d.ts +80 -0
- package/dist/providers/ingestion.js +330 -0
- package/dist/providers/ingestion.js.map +1 -0
- package/dist/providers/live.d.ts +22 -0
- package/dist/providers/live.js +56 -0
- package/dist/providers/live.js.map +1 -0
- package/dist/providers/process.d.ts +29 -0
- package/dist/providers/process.js +71 -0
- package/dist/providers/process.js.map +1 -0
- package/dist/providers/reaper.d.ts +33 -0
- package/dist/providers/reaper.js +65 -0
- package/dist/providers/reaper.js.map +1 -0
- package/dist/providers/service.d.ts +87 -0
- package/dist/providers/service.js +256 -0
- package/dist/providers/service.js.map +1 -0
- package/dist/sdk.d.ts +1 -1
- package/dist/sdk.js +1 -1
- package/dist/sdk.js.map +1 -1
- package/dist/types.d.ts +385 -6
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -1
- package/dist/version.d.ts +7 -0
- package/dist/version.js +16 -0
- package/dist/version.js.map +1 -0
- package/dist/web/app.css +4643 -0
- package/dist/web/app.js +22640 -0
- package/dist/web/app.js.map +7 -0
- package/dist/web/shell.html +39 -0
- package/docs/README.md +21 -0
- package/docs/SETUP.md +10 -0
- package/docs/adapters.md +21 -8
- package/docs/brain-continuity.md +186 -0
- package/docs/cloud.md +108 -0
- package/docs/crews.md +62 -0
- package/docs/design-system.md +31 -2
- package/docs/integration-notes.md +128 -20
- package/docs/loompad.md +105 -0
- package/docs/observability.md +220 -0
- package/docs/play-store.md +123 -0
- package/docs/proposals/agent-teams.md +249 -0
- package/docs/proposals/brain-continuity-implementation.md +468 -0
- package/docs/proposals/brain-session-continuity.md +623 -0
- package/docs/proposals/t3code-port.md +81 -0
- package/docs/proposals/t3code-reference.md +95 -0
- package/docs/refactoring/AGENT-TEAMS-PROGRESS.md +88 -0
- package/docs/refactoring/BOUNDARIES.md +120 -0
- package/docs/refactoring/BRAIN-AUDIT.md +176 -0
- package/docs/refactoring/BRAIN-NOTES.md +390 -0
- package/docs/refactoring/BRAIN-TODO.md +214 -0
- package/docs/refactoring/NOTES.md +129 -0
- package/docs/refactoring/T3-PORT-NOTES.md +165 -0
- package/docs/refactoring/T3-PORT-TODO.md +123 -0
- package/docs/refactoring/TODO.md +46 -0
- package/docs/refactoring/brain-benchmark-2026-09-28.json +48 -0
- package/docs/refactoring/brain-benchmark-audit-2026-09-28.json +48 -0
- package/docs/release-notes/v0.2.0.md +35 -0
- package/docs/release-notes/v0.2.1.md +59 -0
- package/docs/release-notes/v0.2.3.md +77 -0
- package/docs/release-notes/v0.2.4.md +128 -0
- package/docs/release-notes/v0.2.5.md +153 -0
- package/docs/release-notes/v0.2.6.md +62 -0
- package/docs/release-notes/v1.0.0.md +120 -0
- package/docs/release-notes/v1.0.1.md +77 -0
- package/docs/release-notes/v1.1.0.md +71 -0
- package/docs/release-notes/v1.1.1.md +38 -0
- package/docs/teams-architecture.md +697 -0
- package/docs/teams.md +171 -0
- package/docs/windows.md +85 -0
- package/package.json +22 -9
- package/dist/adapters/claude-code.d.ts +0 -26
- package/dist/adapters/claude-code.js +0 -209
- package/dist/adapters/claude-code.js.map +0 -1
- package/dist/adapters/codex.d.ts +0 -51
- package/dist/adapters/codex.js +0 -291
- package/dist/adapters/codex.js.map +0 -1
- package/docs/img/board-linear.png +0 -0
- package/docs/img/board-projects.png +0 -0
- package/docs/img/brain.png +0 -0
- package/docs/img/settings.png +0 -0
- package/docs/img/workspace.png +0 -0
package/dist/daemon/client.d.ts
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
* Thin daemon client used by every surface (CLI now, app later).
|
|
3
3
|
* Also owns daemon lifecycle: autostart-on-demand, health, shutdown.
|
|
4
4
|
*/
|
|
5
|
-
import type { CostSummary, LoomEvent, ProjectStatus, RouteState, RouteStepSpec, UnifiedMemory } from "../types.js";
|
|
5
|
+
import type { AgentConfig, CostSummary, LoomEvent, ProjectStatus, RouteState, RouteStepSpec, UnifiedMemory } from "../types.js";
|
|
6
|
+
import type { Checkpoint, RestoreResult } from "../core/checkpoint.js";
|
|
7
|
+
import type { OrchestraRun } from "../core/orchestra.js";
|
|
8
|
+
import type { QueueItem } from "../core/prompt-queue.js";
|
|
9
|
+
import type { LogLine, ServerConfig, ServerStatus } from "../core/servers.js";
|
|
6
10
|
import { type DaemonConfig } from "../core/registry.js";
|
|
7
11
|
import type { Memory } from "../core/brain.js";
|
|
8
12
|
import type { BoardData } from "./board.js";
|
|
@@ -11,12 +15,100 @@ export declare class DaemonError extends Error {
|
|
|
11
15
|
readonly body?: Record<string, unknown> | undefined;
|
|
12
16
|
constructor(message: string, status?: number | undefined, body?: Record<string, unknown> | undefined);
|
|
13
17
|
}
|
|
18
|
+
/** What the daemon says about whether this copy of Loom is current. */
|
|
19
|
+
export interface UpdateStatus {
|
|
20
|
+
version: string;
|
|
21
|
+
rev: string;
|
|
22
|
+
root: string | null;
|
|
23
|
+
git: {
|
|
24
|
+
behind: number;
|
|
25
|
+
ahead: number;
|
|
26
|
+
branch: string;
|
|
27
|
+
} | null;
|
|
28
|
+
latest: string | null;
|
|
29
|
+
release: {
|
|
30
|
+
version: string;
|
|
31
|
+
tag: string;
|
|
32
|
+
url: string;
|
|
33
|
+
publishedAt: string | null;
|
|
34
|
+
} | null;
|
|
35
|
+
behindRelease: boolean;
|
|
36
|
+
install: "git" | "npm-global" | "unknown";
|
|
37
|
+
canApply: boolean;
|
|
38
|
+
refusal: string | null;
|
|
39
|
+
/** Exactly what applying would run, in order. */
|
|
40
|
+
steps: string[];
|
|
41
|
+
}
|
|
42
|
+
/** What the daemon says about a project's prompt queue. */
|
|
43
|
+
export interface QueueView {
|
|
44
|
+
queue: QueueItem[];
|
|
45
|
+
paused: boolean;
|
|
46
|
+
/** Why it paused itself (a refused send, a Stop, a restart). */
|
|
47
|
+
reason?: string;
|
|
48
|
+
/** What the head is waiting for, when it's waiting on something. */
|
|
49
|
+
waitingFor?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface OnboardJobView {
|
|
52
|
+
id: string;
|
|
53
|
+
state: "running" | "done" | "failed";
|
|
54
|
+
team: string | null;
|
|
55
|
+
repo: string | null;
|
|
56
|
+
from: string | null;
|
|
57
|
+
steps: Array<{
|
|
58
|
+
id: string;
|
|
59
|
+
label: string;
|
|
60
|
+
state: string;
|
|
61
|
+
detail?: string;
|
|
62
|
+
}>;
|
|
63
|
+
project?: {
|
|
64
|
+
id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
dir: string;
|
|
67
|
+
};
|
|
68
|
+
agents?: string[];
|
|
69
|
+
crews?: string[];
|
|
70
|
+
error?: string;
|
|
71
|
+
}
|
|
14
72
|
export declare class DaemonClient {
|
|
15
73
|
private cfg;
|
|
16
74
|
constructor(cfg: DaemonConfig);
|
|
17
75
|
static fromDisk(): DaemonClient | null;
|
|
18
76
|
get baseUrl(): string;
|
|
19
77
|
private request;
|
|
78
|
+
/** The leaderboard (optionally since a time) and per-day turn counts. */
|
|
79
|
+
turnStats(id: string, opts?: {
|
|
80
|
+
days?: number;
|
|
81
|
+
since?: number;
|
|
82
|
+
}): Promise<{
|
|
83
|
+
leaderboard: Array<{
|
|
84
|
+
agentId: string;
|
|
85
|
+
turns: number;
|
|
86
|
+
ok: number;
|
|
87
|
+
errors: number;
|
|
88
|
+
totalCostUsd: number;
|
|
89
|
+
medianMs: number | null;
|
|
90
|
+
}>;
|
|
91
|
+
days: Array<{
|
|
92
|
+
date: string;
|
|
93
|
+
turns: number;
|
|
94
|
+
errors: number;
|
|
95
|
+
costUsd: number;
|
|
96
|
+
}>;
|
|
97
|
+
total: number;
|
|
98
|
+
}>;
|
|
99
|
+
chats(id: string): Promise<{
|
|
100
|
+
chats: Array<{
|
|
101
|
+
id: string;
|
|
102
|
+
title: string;
|
|
103
|
+
}>;
|
|
104
|
+
}>;
|
|
105
|
+
/** One page of a chat's events, newest `limit`, before an id when paging back. */
|
|
106
|
+
chatEvents(id: string, chat: string, opts?: {
|
|
107
|
+
before?: number;
|
|
108
|
+
limit?: number;
|
|
109
|
+
}): Promise<{
|
|
110
|
+
events: LoomEvent[];
|
|
111
|
+
}>;
|
|
20
112
|
health(): Promise<{
|
|
21
113
|
ok: boolean;
|
|
22
114
|
}>;
|
|
@@ -28,9 +120,466 @@ export declare class DaemonClient {
|
|
|
28
120
|
id: string;
|
|
29
121
|
};
|
|
30
122
|
}>;
|
|
123
|
+
/** Stop tracking a project. Registry-only — its .loom/ stays on disk. */
|
|
124
|
+
forgetProject(id: string): Promise<{
|
|
125
|
+
removed: boolean;
|
|
126
|
+
keptOnDisk: string;
|
|
127
|
+
}>;
|
|
31
128
|
project(id: string): Promise<{
|
|
32
129
|
project: ProjectStatus;
|
|
33
130
|
}>;
|
|
131
|
+
models(id: string, agentId: string): Promise<{
|
|
132
|
+
kind: string;
|
|
133
|
+
count: number;
|
|
134
|
+
models: string[];
|
|
135
|
+
}>;
|
|
136
|
+
/**
|
|
137
|
+
* Add an agent to a project's roster.
|
|
138
|
+
*
|
|
139
|
+
* `as` names the instance. Leave it off and the daemon picks the next free id
|
|
140
|
+
* for the kind, so asking twice gives you two sessions rather than an error.
|
|
141
|
+
*/
|
|
142
|
+
addAgent(id: string, kind: string, opts?: {
|
|
143
|
+
as?: string;
|
|
144
|
+
role?: string;
|
|
145
|
+
options?: Record<string, unknown>;
|
|
146
|
+
}): Promise<AgentConfig>;
|
|
147
|
+
/** Which agents this machine can drive, and how many of each are here. */
|
|
148
|
+
availableAgents(id: string): Promise<{
|
|
149
|
+
ades: Array<{
|
|
150
|
+
kind: string;
|
|
151
|
+
label: string;
|
|
152
|
+
tier: string;
|
|
153
|
+
installed: boolean | null;
|
|
154
|
+
inProject: boolean;
|
|
155
|
+
instances: number;
|
|
156
|
+
canAddAnother: boolean;
|
|
157
|
+
}>;
|
|
158
|
+
}>;
|
|
159
|
+
/**
|
|
160
|
+
* Fan a subtask out to a child agent alongside the parent's turn.
|
|
161
|
+
*
|
|
162
|
+
* The parent keeps the baton — this is one turn borrowing another pair of
|
|
163
|
+
* hands, not a handoff.
|
|
164
|
+
*/
|
|
165
|
+
orchestraRuns(id: string): Promise<{
|
|
166
|
+
runs: OrchestraRun[];
|
|
167
|
+
active: string | null;
|
|
168
|
+
}>;
|
|
169
|
+
orchestraRun(id: string, runId: string): Promise<{
|
|
170
|
+
run: OrchestraRun;
|
|
171
|
+
}>;
|
|
172
|
+
startOrchestra(id: string, body: {
|
|
173
|
+
goal: string;
|
|
174
|
+
orchestrator?: string;
|
|
175
|
+
workers?: string[];
|
|
176
|
+
maxParallel?: number;
|
|
177
|
+
maxRounds?: number;
|
|
178
|
+
plan?: boolean;
|
|
179
|
+
maxUsd?: number;
|
|
180
|
+
race?: boolean;
|
|
181
|
+
}): Promise<{
|
|
182
|
+
run: OrchestraRun;
|
|
183
|
+
}>;
|
|
184
|
+
orchestraAction(id: string, runId: string, action: "abort" | "reply" | "apply" | "cleanup" | "resume", body?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
185
|
+
team(): Promise<Record<string, unknown>>;
|
|
186
|
+
teamAction(action: string, body?: Record<string, unknown>): Promise<{
|
|
187
|
+
result: unknown;
|
|
188
|
+
team: Record<string, unknown>;
|
|
189
|
+
}>;
|
|
190
|
+
/** One-link onboarding (daemon/onboard.ts). */
|
|
191
|
+
inviteTeammate(id: string, body?: {
|
|
192
|
+
teamId?: string;
|
|
193
|
+
grant?: boolean;
|
|
194
|
+
}): Promise<{
|
|
195
|
+
link: string;
|
|
196
|
+
expiresAt: number;
|
|
197
|
+
team: {
|
|
198
|
+
id: string;
|
|
199
|
+
name: string;
|
|
200
|
+
};
|
|
201
|
+
repo: string;
|
|
202
|
+
grant: boolean;
|
|
203
|
+
grantNote?: string;
|
|
204
|
+
message: string;
|
|
205
|
+
}>;
|
|
206
|
+
previewInvite(link: string): Promise<{
|
|
207
|
+
team: string | null;
|
|
208
|
+
repo: string | null;
|
|
209
|
+
from: string | null;
|
|
210
|
+
hub: string;
|
|
211
|
+
signedIn: boolean;
|
|
212
|
+
member: boolean;
|
|
213
|
+
crews: string[];
|
|
214
|
+
github: string | null;
|
|
215
|
+
}>;
|
|
216
|
+
startJoin(body: {
|
|
217
|
+
link: string;
|
|
218
|
+
dir?: string;
|
|
219
|
+
into?: string;
|
|
220
|
+
github?: string;
|
|
221
|
+
secret?: string;
|
|
222
|
+
token?: string;
|
|
223
|
+
}): Promise<{
|
|
224
|
+
job: OnboardJobView;
|
|
225
|
+
}>;
|
|
226
|
+
joinStatus(job: string): Promise<{
|
|
227
|
+
job: OnboardJobView;
|
|
228
|
+
}>;
|
|
229
|
+
/** Agent Teams (core/crew.ts). */
|
|
230
|
+
crews(id: string): Promise<{
|
|
231
|
+
crews: Array<Record<string, any>>;
|
|
232
|
+
templates: string[];
|
|
233
|
+
}>;
|
|
234
|
+
createCrew(id: string, body: Record<string, unknown>): Promise<{
|
|
235
|
+
crew: Record<string, any>;
|
|
236
|
+
}>;
|
|
237
|
+
crewDiff(id: string, crew: string): Promise<{
|
|
238
|
+
diff: string;
|
|
239
|
+
}>;
|
|
240
|
+
removeCrew(id: string, crew: string): Promise<{
|
|
241
|
+
ok: boolean;
|
|
242
|
+
}>;
|
|
243
|
+
/** Proof: check the newest finished turn in a chat (daemon/proof.ts). */
|
|
244
|
+
/** A chat as one self-contained HTML page (core/replay.ts). */
|
|
245
|
+
replay(id: string, chat: string): Promise<string>;
|
|
246
|
+
shift(id: string): Promise<Record<string, any>>;
|
|
247
|
+
startShift(id: string, body: {
|
|
248
|
+
tasks: string[];
|
|
249
|
+
to?: string;
|
|
250
|
+
until?: string;
|
|
251
|
+
maxUsd?: number;
|
|
252
|
+
}): Promise<Record<string, any>>;
|
|
253
|
+
stopShift(id: string): Promise<Record<string, any>>;
|
|
254
|
+
proof(id: string, body?: {
|
|
255
|
+
chat?: string;
|
|
256
|
+
at?: number;
|
|
257
|
+
testCommand?: string;
|
|
258
|
+
}): Promise<Record<string, any>>;
|
|
259
|
+
crewAction(id: string, crew: string, action: string, body?: Record<string, unknown>): Promise<Record<string, any>>;
|
|
260
|
+
shareProject(id: string, teamId?: string): Promise<{
|
|
261
|
+
repo: string;
|
|
262
|
+
teamId: string;
|
|
263
|
+
}>;
|
|
264
|
+
unshareProject(id: string): Promise<{
|
|
265
|
+
ok: boolean;
|
|
266
|
+
}>;
|
|
267
|
+
/** The team brain for a project (Phase 3): status, memories with tiers, inbox. */
|
|
268
|
+
teamBrain(id: string, opts?: {
|
|
269
|
+
sync?: boolean;
|
|
270
|
+
history?: boolean;
|
|
271
|
+
}): Promise<TeamBrainView>;
|
|
272
|
+
teamBrainAction(id: string, action: string, body?: Record<string, unknown>): Promise<TeamBrainView & {
|
|
273
|
+
result: unknown;
|
|
274
|
+
}>;
|
|
275
|
+
/** Goal PRs on their way to main, and teammates' goals to adopt (Phase 4). */
|
|
276
|
+
landing(id: string, opts?: {
|
|
277
|
+
poll?: boolean;
|
|
278
|
+
}): Promise<{
|
|
279
|
+
goals: Array<Record<string, unknown>>;
|
|
280
|
+
adoptable: Array<Record<string, unknown>>;
|
|
281
|
+
}>;
|
|
282
|
+
landingAction(id: string, action: string, body?: Record<string, unknown>): Promise<{
|
|
283
|
+
result: unknown;
|
|
284
|
+
goals: Array<Record<string, unknown>>;
|
|
285
|
+
}>;
|
|
286
|
+
teamDoctor(id: string): Promise<{
|
|
287
|
+
repo: string | null;
|
|
288
|
+
branch: string;
|
|
289
|
+
findings: Array<{
|
|
290
|
+
level: string;
|
|
291
|
+
what: string;
|
|
292
|
+
fix?: string;
|
|
293
|
+
}>;
|
|
294
|
+
fixable: string[];
|
|
295
|
+
}>;
|
|
296
|
+
teamDoctorFix(id: string): Promise<{
|
|
297
|
+
prUrl: string | null;
|
|
298
|
+
files: string[];
|
|
299
|
+
}>;
|
|
300
|
+
runner(): Promise<Record<string, unknown>>;
|
|
301
|
+
runnerAction(action: string, body?: Record<string, unknown>): Promise<{
|
|
302
|
+
result: unknown;
|
|
303
|
+
}>;
|
|
304
|
+
runners(id: string): Promise<{
|
|
305
|
+
runners: Array<Record<string, unknown>>;
|
|
306
|
+
jobs: Array<Record<string, unknown>>;
|
|
307
|
+
}>;
|
|
308
|
+
runnersAction(id: string, action: string, body?: Record<string, unknown>): Promise<{
|
|
309
|
+
result: unknown;
|
|
310
|
+
runners: Array<Record<string, unknown>>;
|
|
311
|
+
jobs: Array<Record<string, unknown>>;
|
|
312
|
+
}>;
|
|
313
|
+
deploys(id: string): Promise<{
|
|
314
|
+
deployments: Array<Record<string, unknown>>;
|
|
315
|
+
}>;
|
|
316
|
+
releaseNotes(id: string, since: string): Promise<{
|
|
317
|
+
markdown: string;
|
|
318
|
+
}>;
|
|
319
|
+
cloud(): Promise<Record<string, unknown>>;
|
|
320
|
+
cloudAction(action: "enable" | "disable" | "rotate", body?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
321
|
+
spawnSubtask(id: string, parent: string, agentId: string, task: string, chat?: string): Promise<{
|
|
322
|
+
id: string;
|
|
323
|
+
agentId: string;
|
|
324
|
+
}>;
|
|
325
|
+
subtasks(id: string): Promise<{
|
|
326
|
+
subtasks: Array<{
|
|
327
|
+
id: string;
|
|
328
|
+
parent: string;
|
|
329
|
+
agentId: string;
|
|
330
|
+
task: string;
|
|
331
|
+
}>;
|
|
332
|
+
}>;
|
|
333
|
+
listTasks(id: string): Promise<{
|
|
334
|
+
tasks: Array<{
|
|
335
|
+
id: string;
|
|
336
|
+
title: string;
|
|
337
|
+
column: string;
|
|
338
|
+
agent?: string;
|
|
339
|
+
blockedBy?: string[];
|
|
340
|
+
}>;
|
|
341
|
+
}>;
|
|
342
|
+
createTask(id: string, title: string, opts?: {
|
|
343
|
+
column?: string;
|
|
344
|
+
agent?: string;
|
|
345
|
+
blockedBy?: string[];
|
|
346
|
+
}): Promise<{
|
|
347
|
+
task: {
|
|
348
|
+
id: string;
|
|
349
|
+
title: string;
|
|
350
|
+
column: string;
|
|
351
|
+
};
|
|
352
|
+
}>;
|
|
353
|
+
saveRoute(id: string, name: string, steps: string[]): Promise<{
|
|
354
|
+
routes: Record<string, unknown>;
|
|
355
|
+
}>;
|
|
356
|
+
deleteRoute(id: string, name: string): Promise<{
|
|
357
|
+
routes: Record<string, unknown>;
|
|
358
|
+
}>;
|
|
359
|
+
/** Re-run the last failed turn on a different agent, failure attached. */
|
|
360
|
+
retryTurn(id: string, agentId: string): Promise<{
|
|
361
|
+
agentId: string;
|
|
362
|
+
retried: string;
|
|
363
|
+
}>;
|
|
364
|
+
budgets(id: string): Promise<{
|
|
365
|
+
budgets: Record<string, number>;
|
|
366
|
+
status: Record<string, {
|
|
367
|
+
budgetUsd: number;
|
|
368
|
+
spentTodayUsd: number;
|
|
369
|
+
over: boolean;
|
|
370
|
+
}>;
|
|
371
|
+
}>;
|
|
372
|
+
setBudget(id: string, agentId: string, usdPerDay: number): Promise<{
|
|
373
|
+
budgets: Record<string, number>;
|
|
374
|
+
}>;
|
|
375
|
+
version(): Promise<{
|
|
376
|
+
rev: string;
|
|
377
|
+
node: string;
|
|
378
|
+
platform: string;
|
|
379
|
+
uptimeSec: number;
|
|
380
|
+
pid: number;
|
|
381
|
+
}>;
|
|
382
|
+
forgetMemory(id: string, memoryId: string): Promise<{
|
|
383
|
+
forgotten: boolean;
|
|
384
|
+
}>;
|
|
385
|
+
renameProject(id: string, name: string): Promise<{
|
|
386
|
+
project: {
|
|
387
|
+
id: string;
|
|
388
|
+
name: string;
|
|
389
|
+
};
|
|
390
|
+
}>;
|
|
391
|
+
searchEvents(id: string, q: string, limit?: number): Promise<{
|
|
392
|
+
hits: LoomEvent[];
|
|
393
|
+
}>;
|
|
394
|
+
snapshot(id: string): Promise<Record<string, unknown>>;
|
|
395
|
+
restore(id: string, doc: unknown): Promise<{
|
|
396
|
+
brain: {
|
|
397
|
+
added: number;
|
|
398
|
+
known: number;
|
|
399
|
+
};
|
|
400
|
+
tasks: number;
|
|
401
|
+
}>;
|
|
402
|
+
/** Rewind (#101): points the working tree can be put back to. */
|
|
403
|
+
checkpoints(id: string): Promise<{
|
|
404
|
+
checkpoints: Checkpoint[];
|
|
405
|
+
}>;
|
|
406
|
+
rewind(id: string, checkpointId: string): Promise<RestoreResult>;
|
|
407
|
+
staleSessions(id: string): Promise<{
|
|
408
|
+
stale: Array<{
|
|
409
|
+
agentId: string;
|
|
410
|
+
busyMs: number;
|
|
411
|
+
}>;
|
|
412
|
+
}>;
|
|
413
|
+
reapSession(id: string, agentId: string): Promise<{
|
|
414
|
+
respawned: boolean;
|
|
415
|
+
}>;
|
|
416
|
+
logs(opts?: {
|
|
417
|
+
level?: "error" | "warn" | "info";
|
|
418
|
+
project?: string;
|
|
419
|
+
}): Promise<{
|
|
420
|
+
logs: Array<{
|
|
421
|
+
id: number;
|
|
422
|
+
at: number;
|
|
423
|
+
level: string;
|
|
424
|
+
scope: string;
|
|
425
|
+
message: string;
|
|
426
|
+
detail?: string;
|
|
427
|
+
project?: string;
|
|
428
|
+
}>;
|
|
429
|
+
}>;
|
|
430
|
+
searchBrain(id: string, q: string, opts?: {
|
|
431
|
+
agent?: string;
|
|
432
|
+
explain?: boolean;
|
|
433
|
+
limit?: number;
|
|
434
|
+
}): Promise<{
|
|
435
|
+
hits: Array<{
|
|
436
|
+
memory: Memory;
|
|
437
|
+
score: number;
|
|
438
|
+
detail?: Record<string, unknown>;
|
|
439
|
+
}>;
|
|
440
|
+
}>;
|
|
441
|
+
brainConflicts(id: string): Promise<{
|
|
442
|
+
conflicts: Array<{
|
|
443
|
+
a: {
|
|
444
|
+
text: string;
|
|
445
|
+
};
|
|
446
|
+
b: {
|
|
447
|
+
text: string;
|
|
448
|
+
};
|
|
449
|
+
similarity: number;
|
|
450
|
+
signal: string;
|
|
451
|
+
}>;
|
|
452
|
+
}>;
|
|
453
|
+
prompts(q?: string): Promise<{
|
|
454
|
+
saved: Array<{
|
|
455
|
+
id: string;
|
|
456
|
+
title: string;
|
|
457
|
+
text: string;
|
|
458
|
+
pinned: boolean;
|
|
459
|
+
uses: number;
|
|
460
|
+
}>;
|
|
461
|
+
recent?: string[];
|
|
462
|
+
}>;
|
|
463
|
+
savePrompt(input: {
|
|
464
|
+
title?: string;
|
|
465
|
+
text: string;
|
|
466
|
+
pinned?: boolean;
|
|
467
|
+
}): Promise<{
|
|
468
|
+
prompt: {
|
|
469
|
+
id: string;
|
|
470
|
+
title: string;
|
|
471
|
+
};
|
|
472
|
+
}>;
|
|
473
|
+
updatePrompt(promptId: string, patch: {
|
|
474
|
+
title?: string;
|
|
475
|
+
text?: string;
|
|
476
|
+
pinned?: boolean;
|
|
477
|
+
used?: boolean;
|
|
478
|
+
}): Promise<{
|
|
479
|
+
prompt: {
|
|
480
|
+
id: string;
|
|
481
|
+
};
|
|
482
|
+
}>;
|
|
483
|
+
deletePrompt(promptId: string): Promise<{
|
|
484
|
+
ok: boolean;
|
|
485
|
+
}>;
|
|
486
|
+
skillsCatalog(id: string): Promise<{
|
|
487
|
+
skills: Array<{
|
|
488
|
+
id: string;
|
|
489
|
+
name?: string;
|
|
490
|
+
description?: string;
|
|
491
|
+
enabled?: boolean;
|
|
492
|
+
origin?: string;
|
|
493
|
+
installed?: boolean;
|
|
494
|
+
}>;
|
|
495
|
+
}>;
|
|
496
|
+
setSkill(id: string, skillId: string, enabled: boolean): Promise<unknown>;
|
|
497
|
+
installSkill(id: string, from: {
|
|
498
|
+
gitUrl?: string;
|
|
499
|
+
dir?: string;
|
|
500
|
+
force?: boolean;
|
|
501
|
+
}): Promise<{
|
|
502
|
+
skill: {
|
|
503
|
+
id: string;
|
|
504
|
+
name?: string;
|
|
505
|
+
also?: string[];
|
|
506
|
+
};
|
|
507
|
+
}>;
|
|
508
|
+
removeSkill(id: string, skillId: string): Promise<unknown>;
|
|
509
|
+
mcps(id: string, probe?: boolean): Promise<{
|
|
510
|
+
mcps: Array<{
|
|
511
|
+
name: string;
|
|
512
|
+
url?: string;
|
|
513
|
+
command?: string;
|
|
514
|
+
args?: string[];
|
|
515
|
+
enabledForSession?: boolean;
|
|
516
|
+
connected?: boolean;
|
|
517
|
+
description?: string;
|
|
518
|
+
}>;
|
|
519
|
+
}>;
|
|
520
|
+
installMcp(id: string, mcp: {
|
|
521
|
+
name: string;
|
|
522
|
+
url?: string;
|
|
523
|
+
command?: string;
|
|
524
|
+
args?: string[];
|
|
525
|
+
headers?: Record<string, string>;
|
|
526
|
+
env?: Record<string, string>;
|
|
527
|
+
}): Promise<{
|
|
528
|
+
installed: {
|
|
529
|
+
name: string;
|
|
530
|
+
connected?: boolean;
|
|
531
|
+
} | null;
|
|
532
|
+
}>;
|
|
533
|
+
patchMcp(id: string, mcp: Record<string, unknown> & {
|
|
534
|
+
name: string;
|
|
535
|
+
}): Promise<unknown>;
|
|
536
|
+
removeMcp(id: string, name: string): Promise<unknown>;
|
|
537
|
+
mcpHealth(id: string): Promise<{
|
|
538
|
+
health: Record<string, {
|
|
539
|
+
up: boolean;
|
|
540
|
+
failures: number;
|
|
541
|
+
probedAt: number;
|
|
542
|
+
}>;
|
|
543
|
+
}>;
|
|
544
|
+
listSpecs(id: string): Promise<{
|
|
545
|
+
specs: Array<{
|
|
546
|
+
path: string;
|
|
547
|
+
bytes: number;
|
|
548
|
+
}>;
|
|
549
|
+
running: {
|
|
550
|
+
id: string;
|
|
551
|
+
file: string;
|
|
552
|
+
} | null;
|
|
553
|
+
}>;
|
|
554
|
+
runSpec(id: string, file: string): Promise<{
|
|
555
|
+
run: {
|
|
556
|
+
id: string;
|
|
557
|
+
file: string;
|
|
558
|
+
};
|
|
559
|
+
}>;
|
|
560
|
+
costSeries(id: string, days?: number): Promise<{
|
|
561
|
+
days: number;
|
|
562
|
+
series: Array<{
|
|
563
|
+
day: string;
|
|
564
|
+
usd: number;
|
|
565
|
+
turns: number;
|
|
566
|
+
tokensIn: number;
|
|
567
|
+
tokensOut: number;
|
|
568
|
+
byAgent: Record<string, {
|
|
569
|
+
usd: number;
|
|
570
|
+
turns: number;
|
|
571
|
+
}>;
|
|
572
|
+
}>;
|
|
573
|
+
}>;
|
|
574
|
+
/** The brain as a portable document — see Brain.export. */
|
|
575
|
+
exportBrain(id: string): Promise<Record<string, unknown>>;
|
|
576
|
+
importBrain(id: string, doc: unknown): Promise<{
|
|
577
|
+
added: number;
|
|
578
|
+
known: number;
|
|
579
|
+
}>;
|
|
580
|
+
removeAgent(id: string, agentId: string): Promise<{
|
|
581
|
+
removed: boolean;
|
|
582
|
+
}>;
|
|
34
583
|
events(id: string, since?: number, limit?: number): Promise<{
|
|
35
584
|
events: LoomEvent[];
|
|
36
585
|
}>;
|
|
@@ -41,9 +590,80 @@ export declare class DaemonClient {
|
|
|
41
590
|
from: string | null;
|
|
42
591
|
to: string;
|
|
43
592
|
}>;
|
|
593
|
+
servers(id: string): Promise<{
|
|
594
|
+
servers: ServerStatus[];
|
|
595
|
+
suggested: ServerConfig[];
|
|
596
|
+
}>;
|
|
597
|
+
setServers(id: string, servers: ServerConfig[]): Promise<{
|
|
598
|
+
servers: ServerStatus[];
|
|
599
|
+
}>;
|
|
600
|
+
serverAction(id: string, name: string, action: "start" | "stop" | "restart"): Promise<{
|
|
601
|
+
server: ServerStatus;
|
|
602
|
+
}>;
|
|
603
|
+
serverLog(id: string, name: string, limit?: number): Promise<{
|
|
604
|
+
lines: LogLine[];
|
|
605
|
+
}>;
|
|
606
|
+
digest(id: string, since: number): Promise<{
|
|
607
|
+
since: number;
|
|
608
|
+
lines: Array<{
|
|
609
|
+
at: number;
|
|
610
|
+
kind: string;
|
|
611
|
+
text: string;
|
|
612
|
+
eventId: number;
|
|
613
|
+
chat?: string;
|
|
614
|
+
}>;
|
|
615
|
+
turns: number;
|
|
616
|
+
costUsd: number;
|
|
617
|
+
waiting: string[];
|
|
618
|
+
}>;
|
|
619
|
+
updates(refresh?: boolean): Promise<UpdateStatus>;
|
|
620
|
+
applyUpdate(): Promise<{
|
|
621
|
+
started: boolean;
|
|
622
|
+
steps: string[];
|
|
623
|
+
}>;
|
|
44
624
|
interrupt(id: string): Promise<{
|
|
45
625
|
interrupted: string | null;
|
|
46
626
|
}>;
|
|
627
|
+
queue(id: string): Promise<QueueView>;
|
|
628
|
+
queueAdd(id: string, body: {
|
|
629
|
+
text: string;
|
|
630
|
+
target?: unknown;
|
|
631
|
+
chat?: string;
|
|
632
|
+
plan?: boolean;
|
|
633
|
+
when?: unknown;
|
|
634
|
+
}): Promise<QueueView & {
|
|
635
|
+
item: QueueItem;
|
|
636
|
+
}>;
|
|
637
|
+
queueEdit(id: string, itemId: string, patch: {
|
|
638
|
+
text?: string;
|
|
639
|
+
target?: unknown;
|
|
640
|
+
to?: number;
|
|
641
|
+
when?: unknown;
|
|
642
|
+
}): Promise<QueueView>;
|
|
643
|
+
queueRemove(id: string, itemId: string): Promise<QueueView>;
|
|
644
|
+
queueClear(id: string): Promise<QueueView & {
|
|
645
|
+
dropped: number;
|
|
646
|
+
}>;
|
|
647
|
+
saveQueueRecipe(id: string, name: string): Promise<{
|
|
648
|
+
recipe: {
|
|
649
|
+
name: string;
|
|
650
|
+
steps: unknown[];
|
|
651
|
+
};
|
|
652
|
+
}>;
|
|
653
|
+
runQueueRecipe(id: string, name: string): Promise<QueueView & {
|
|
654
|
+
added: number;
|
|
655
|
+
}>;
|
|
656
|
+
recipes(): Promise<{
|
|
657
|
+
recipes: Array<{
|
|
658
|
+
name: string;
|
|
659
|
+
steps: Array<{
|
|
660
|
+
text: string;
|
|
661
|
+
to: string;
|
|
662
|
+
}>;
|
|
663
|
+
fromProject?: string;
|
|
664
|
+
}>;
|
|
665
|
+
}>;
|
|
666
|
+
queuePause(id: string, paused: boolean): Promise<QueueView>;
|
|
47
667
|
decision(id: string, text: string): Promise<{
|
|
48
668
|
event: LoomEvent;
|
|
49
669
|
}>;
|
|
@@ -53,6 +673,18 @@ export declare class DaemonClient {
|
|
|
53
673
|
}): Promise<{
|
|
54
674
|
route: RouteState;
|
|
55
675
|
}>;
|
|
676
|
+
/** One prompt, several models, a thread each. */
|
|
677
|
+
askModels(id: string, text: string, models: string[], opts?: {
|
|
678
|
+
title?: string;
|
|
679
|
+
briefing?: boolean;
|
|
680
|
+
}): Promise<{
|
|
681
|
+
asked: Array<{
|
|
682
|
+
chat: string;
|
|
683
|
+
model: string;
|
|
684
|
+
provider: string;
|
|
685
|
+
agentId: string;
|
|
686
|
+
}>;
|
|
687
|
+
}>;
|
|
56
688
|
routeState(id: string): Promise<{
|
|
57
689
|
route: RouteState | null;
|
|
58
690
|
}>;
|
|
@@ -99,6 +731,7 @@ export declare class DaemonClient {
|
|
|
99
731
|
token: string;
|
|
100
732
|
expiresAt: number;
|
|
101
733
|
url: string;
|
|
734
|
+
link?: string;
|
|
102
735
|
}>;
|
|
103
736
|
pairedClients(): Promise<{
|
|
104
737
|
clients: Array<{
|
|
@@ -125,3 +758,34 @@ export declare class DaemonClient {
|
|
|
125
758
|
export declare function ensureDaemon(): Promise<DaemonClient>;
|
|
126
759
|
export declare function daemonRunning(): Promise<DaemonConfig | null>;
|
|
127
760
|
export declare function stopDaemon(): Promise<boolean>;
|
|
761
|
+
export interface TeamBrainView {
|
|
762
|
+
status: Record<string, unknown>;
|
|
763
|
+
memories: Array<{
|
|
764
|
+
id: string;
|
|
765
|
+
text: string;
|
|
766
|
+
kind: string;
|
|
767
|
+
tier: string;
|
|
768
|
+
author: string | null;
|
|
769
|
+
confirmedBy: string[];
|
|
770
|
+
mine: boolean;
|
|
771
|
+
state: string;
|
|
772
|
+
untrusted?: boolean;
|
|
773
|
+
}>;
|
|
774
|
+
inbox: Array<{
|
|
775
|
+
id: string;
|
|
776
|
+
type: string;
|
|
777
|
+
detail: string;
|
|
778
|
+
a: {
|
|
779
|
+
id: string;
|
|
780
|
+
text: string;
|
|
781
|
+
tier: string;
|
|
782
|
+
author: string | null;
|
|
783
|
+
};
|
|
784
|
+
b?: {
|
|
785
|
+
id: string;
|
|
786
|
+
text: string;
|
|
787
|
+
tier: string;
|
|
788
|
+
author: string | null;
|
|
789
|
+
};
|
|
790
|
+
}>;
|
|
791
|
+
}
|