@loompad/cli 0.1.0 → 1.1.2
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 +1054 -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 +4646 -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/release-notes/v1.1.2.md +21 -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
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
Loom is MIT-licensed (see [LICENSE](LICENSE)). Parts of it adapt designs, prompts and
|
|
4
|
+
patterns from the open-source projects below. Their licenses and copyright notices
|
|
5
|
+
are reproduced here as those licenses require.
|
|
6
|
+
|
|
7
|
+
## Agent Orchestrator — Apache License 2.0
|
|
8
|
+
|
|
9
|
+
- Project: https://github.com/Untrivial-ai/agent-orchestrator
|
|
10
|
+
- Copyright 2026 Untrivial
|
|
11
|
+
|
|
12
|
+
**What Loom adapted**, in `src/core/orchestra.ts`:
|
|
13
|
+
- the orchestrator/worker split (one coordinating agent and many implementation
|
|
14
|
+
agents);
|
|
15
|
+
- the orchestrator's standing rules: coordinate, never implement; ground tasks in
|
|
16
|
+
the real repository; delegate every change to a worker;
|
|
17
|
+
- the worker rules (stay scoped, verify, report blockers);
|
|
18
|
+
- one git worktree per worker session.
|
|
19
|
+
|
|
20
|
+
The prompts were rewritten for Loom's action protocol, so this is a modified work.
|
|
21
|
+
Loom's orchestrator answers in a parsed JSON action block instead of driving a
|
|
22
|
+
CLI, and tasks form a dependency graph.
|
|
23
|
+
|
|
24
|
+
Agent Orchestrator's full Apache-2.0 license text:
|
|
25
|
+
https://github.com/Untrivial-ai/agent-orchestrator/blob/main/LICENSE
|
|
26
|
+
(also reproduced at the end of this file).
|
|
27
|
+
|
|
28
|
+
## T3 Code — MIT License
|
|
29
|
+
|
|
30
|
+
- Project: https://github.com/pingdotgg/t3code
|
|
31
|
+
- Copyright (c) 2026 T3 Tools Inc.
|
|
32
|
+
|
|
33
|
+
**What Loom adapted**, in `src/core/relay-protocol.ts`, `src/core/relay-client.ts`
|
|
34
|
+
and the phone app's connection manager:
|
|
35
|
+
- the pairing token carried in the URL fragment so it never reaches a server;
|
|
36
|
+
- resuming a live stream from a known sequence rather than re-downloading;
|
|
37
|
+
- the mobile connection supervisor: capped retry backoff, and a forced fresh
|
|
38
|
+
connection after the app has been in the background.
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
MIT License
|
|
42
|
+
|
|
43
|
+
Copyright (c) 2026 T3 Tools Inc.
|
|
44
|
+
|
|
45
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
46
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
47
|
+
in the Software without restriction, including without limitation the rights
|
|
48
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
49
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
50
|
+
furnished to do so, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
The above copyright notice and this permission notice shall be included in all
|
|
53
|
+
copies or substantial portions of the Software.
|
|
54
|
+
|
|
55
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
56
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
57
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
58
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
59
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
60
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
61
|
+
SOFTWARE.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Orca — MIT License
|
|
65
|
+
|
|
66
|
+
The web app's "quiet graphite" design system is adapted from Orca
|
|
67
|
+
(https://github.com/stablyai/orca, MIT), as noted in `src/daemon/app-page.ts`.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Apache License 2.0 (Agent Orchestrator)
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
Apache License
|
|
75
|
+
Version 2.0, January 2004
|
|
76
|
+
http://www.apache.org/licenses/
|
|
77
|
+
|
|
78
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
79
|
+
|
|
80
|
+
1. Definitions.
|
|
81
|
+
|
|
82
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
83
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
84
|
+
|
|
85
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
86
|
+
the copyright owner that is granting the License.
|
|
87
|
+
|
|
88
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
89
|
+
other entities that control, are controlled by, or are under common
|
|
90
|
+
control with that entity. For the purposes of this definition,
|
|
91
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
92
|
+
direction or management of such entity, whether by contract or
|
|
93
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
94
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
95
|
+
|
|
96
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
97
|
+
exercising permissions granted by this License.
|
|
98
|
+
|
|
99
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
100
|
+
including but not limited to software source code, documentation
|
|
101
|
+
source, and configuration files.
|
|
102
|
+
|
|
103
|
+
"Object" form shall mean any form resulting from mechanical
|
|
104
|
+
transformation or translation of a Source form, including but
|
|
105
|
+
not limited to compiled object code, generated documentation,
|
|
106
|
+
and conversions to other media types.
|
|
107
|
+
|
|
108
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
109
|
+
Object form, made available under the License, as indicated by a
|
|
110
|
+
copyright notice that is included in or attached to the work
|
|
111
|
+
(an example is provided in the Appendix below).
|
|
112
|
+
|
|
113
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
114
|
+
form, that is based on (or derived from) the Work and for which the
|
|
115
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
116
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
117
|
+
of this License, Derivative Works shall not include works that remain
|
|
118
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
119
|
+
the Work and Derivative Works thereof.
|
|
120
|
+
|
|
121
|
+
"Contribution" shall mean any work of authorship, including
|
|
122
|
+
the original version of the Work and any modifications or additions
|
|
123
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
124
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
125
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
126
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
127
|
+
means any form of electronic, verbal, or written communication sent
|
|
128
|
+
to the Licensor or its representatives, including but not limited to
|
|
129
|
+
communication on electronic mailing lists, source code control systems,
|
|
130
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
131
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
132
|
+
excluding communication that is conspicuously marked or otherwise
|
|
133
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
134
|
+
|
|
135
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
136
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
137
|
+
subsequently incorporated within the Work.
|
|
138
|
+
|
|
139
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
140
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
141
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
142
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
143
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
144
|
+
Work and such Derivative Works in Source or Object form.
|
|
145
|
+
|
|
146
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
147
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
148
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
149
|
+
(except as stated in this section) patent license to make, have made,
|
|
150
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
151
|
+
where such license applies only to those patent claims licensable
|
|
152
|
+
by such Contributor that are necessarily infringed by their
|
|
153
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
154
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
155
|
+
institute patent litigation against any entity (including a
|
|
156
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
157
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
158
|
+
or contributory patent infringement, then any patent licenses
|
|
159
|
+
granted to You under this License for that Work shall terminate
|
|
160
|
+
as of the date such litigation is filed.
|
|
161
|
+
|
|
162
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
163
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
164
|
+
modifications, and in Source or Object form, provided that You
|
|
165
|
+
meet the following conditions:
|
|
166
|
+
|
|
167
|
+
(a) You must give any other recipients of the Work or
|
|
168
|
+
Derivative Works a copy of this License; and
|
|
169
|
+
|
|
170
|
+
(b) You must cause any modified files to carry prominent notices
|
|
171
|
+
stating that You changed the files; and
|
|
172
|
+
|
|
173
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
174
|
+
that You distribute, all copyright, patent, trademark, and
|
|
175
|
+
attribution notices from the Source form of the Work,
|
|
176
|
+
excluding those notices that do not pertain to any part of
|
|
177
|
+
the Derivative Works; and
|
|
178
|
+
|
|
179
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
180
|
+
distribution, then any Derivative Works that You distribute must
|
|
181
|
+
include a readable copy of the attribution notices contained
|
|
182
|
+
within such NOTICE file, excluding those notices that do not
|
|
183
|
+
pertain to any part of the Derivative Works, in at least one
|
|
184
|
+
of the following places: within a NOTICE text file distributed
|
|
185
|
+
as part of the Derivative Works; within the Source form or
|
|
186
|
+
documentation, if provided along with the Derivative Works; or,
|
|
187
|
+
within a display generated by the Derivative Works, if and
|
|
188
|
+
wherever such third-party notices normally appear. The contents
|
|
189
|
+
of the NOTICE file are for informational purposes only and
|
|
190
|
+
do not modify the License. You may add Your own attribution
|
|
191
|
+
notices within Derivative Works that You distribute, alongside
|
|
192
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
193
|
+
that such additional attribution notices cannot be construed
|
|
194
|
+
as modifying the License.
|
|
195
|
+
|
|
196
|
+
You may add Your own copyright statement to Your modifications and
|
|
197
|
+
may provide additional or different license terms and conditions
|
|
198
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
199
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
200
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
201
|
+
the conditions stated in this License.
|
|
202
|
+
|
|
203
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
204
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
205
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
206
|
+
this License, without any additional terms or conditions.
|
|
207
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
208
|
+
the terms of any separate license agreement you may have executed
|
|
209
|
+
with Licensor regarding such Contributions.
|
|
210
|
+
|
|
211
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
212
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
213
|
+
except as required for reasonable and customary use in describing the
|
|
214
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
215
|
+
|
|
216
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
217
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
218
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
219
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
220
|
+
implied, including, without limitation, any warranties or conditions
|
|
221
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
222
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
223
|
+
appropriateness of using or redistributing the Work and assume any
|
|
224
|
+
risks associated with Your exercise of permissions under this License.
|
|
225
|
+
|
|
226
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
227
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
228
|
+
unless required by applicable law (such as deliberate and grossly
|
|
229
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
230
|
+
liable to You for damages, including any direct, indirect, special,
|
|
231
|
+
incidental, or consequential damages of any character arising as a
|
|
232
|
+
result of this License or out of the use or inability to use the
|
|
233
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
234
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
235
|
+
other commercial damages or losses), even if such Contributor
|
|
236
|
+
has been advised of the possibility of such damages.
|
|
237
|
+
|
|
238
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
239
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
240
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
241
|
+
or other liability obligations and/or rights consistent with this
|
|
242
|
+
License. However, in accepting such obligations, You may act only
|
|
243
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
244
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
245
|
+
defend, and hold each Contributor harmless for any liability
|
|
246
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
247
|
+
of your accepting any such warranty or additional liability.
|
|
248
|
+
|
|
249
|
+
END OF TERMS AND CONDITIONS
|
|
250
|
+
|
|
251
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
252
|
+
|
|
253
|
+
To apply the Apache License to your work, attach the following
|
|
254
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
255
|
+
replaced with your own identifying information. (Don't include
|
|
256
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
257
|
+
comment syntax for the file format. We also recommend that a
|
|
258
|
+
file or class name and description of purpose be included on the
|
|
259
|
+
same "printed page" as the copyright notice for easier
|
|
260
|
+
identification within third-party archives.
|
|
261
|
+
|
|
262
|
+
Copyright 2026 Untrivial
|
|
263
|
+
|
|
264
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
265
|
+
you may not use this file except in compliance with the License.
|
|
266
|
+
You may obtain a copy of the License at
|
|
267
|
+
|
|
268
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
269
|
+
|
|
270
|
+
Unless required by applicable law or agreed to in writing, software
|
|
271
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
272
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
273
|
+
See the License for the specific language governing permissions and
|
|
274
|
+
limitations under the License.
|
|
275
|
+
```
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Antigravity CLI adapter — drives Google's `agy` CLI headless, one process per
|
|
3
|
+
* turn, resuming the same conversation across turns. This is the token-saving
|
|
4
|
+
* path: a turn handed to `agy` runs on Gemini (or whatever model the agent is
|
|
5
|
+
* configured with) instead of spending the orchestrator's budget.
|
|
6
|
+
*
|
|
7
|
+
* agy -p "<text>" --dangerously-skip-permissions --add-dir <dir> \
|
|
8
|
+
* --model <model> --print-timeout <dur>
|
|
9
|
+
* agy -p "<text>" --conversation <id> … (follow-up turns)
|
|
10
|
+
*
|
|
11
|
+
* Unlike the Antigravity *bridge* (bridges/antigravity.ts), which drives the
|
|
12
|
+
* Antigravity IDE's chat panel over the DevTools protocol and can only watch,
|
|
13
|
+
* this is a real adapter: it holds the baton and runs a turn to completion with
|
|
14
|
+
* no GUI in the loop.
|
|
15
|
+
*
|
|
16
|
+
* Interface verified against agy 1.1.6 by running it, not by guessing:
|
|
17
|
+
*
|
|
18
|
+
* - `-p/--print` runs one prompt non-interactively and prints ONLY the final
|
|
19
|
+
* assistant message to stdout (markdown), then exits 0. There is no JSON
|
|
20
|
+
* event stream, so this adapter reports the final message + the files it
|
|
21
|
+
* touched (parsed from the `[name](file://…)` links agy emits), and — like
|
|
22
|
+
* the Codex adapter — reports NO dollar cost, because the CLI hands us none
|
|
23
|
+
* and inventing one from a price table is how a fake number ends up in the
|
|
24
|
+
* UI presented as fact. It doesn't hand us tokens either, so turns show a
|
|
25
|
+
* model (when configured) and a duration, and honestly nothing else.
|
|
26
|
+
*
|
|
27
|
+
* - conversations are keyed by working directory in
|
|
28
|
+
* ~/.gemini/antigravity-cli/cache/last_conversations.json; after a fresh
|
|
29
|
+
* turn we read the id back from there and resume it explicitly with
|
|
30
|
+
* `--conversation` on every following turn, so continuity survives even if
|
|
31
|
+
* another tool later rewrites that dir's mapping.
|
|
32
|
+
*/
|
|
33
|
+
import type { SendInput } from "../types.js";
|
|
34
|
+
import { AdapterBase } from "./base.js";
|
|
35
|
+
/**
|
|
36
|
+
* Where the agy CLI is on this machine: an explicit override, then PATH, then
|
|
37
|
+
* the installer's default location — the daemon may have been started from a
|
|
38
|
+
* shell whose PATH predates the install, so PATH alone isn't enough.
|
|
39
|
+
*/
|
|
40
|
+
export declare function agyBin(override?: string): string | null;
|
|
41
|
+
export declare class AntigravityCliAdapter extends AdapterBase {
|
|
42
|
+
private child;
|
|
43
|
+
private options;
|
|
44
|
+
constructor(id: string, projectDir: string, options?: Record<string, unknown>);
|
|
45
|
+
/** agy calls it a conversation; loom stores it in the same slot as any session. */
|
|
46
|
+
private get conversationId();
|
|
47
|
+
private set conversationId(value);
|
|
48
|
+
available(): Promise<boolean>;
|
|
49
|
+
start(): Promise<void>;
|
|
50
|
+
stop(): Promise<void>;
|
|
51
|
+
/** agy wants a Go-style duration; ms → "<n>s". */
|
|
52
|
+
private timeoutArg;
|
|
53
|
+
send(input: SendInput): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* agy narrates file writes as markdown links — "Created [hello.txt](file:///…)"
|
|
56
|
+
* — so the paths it touched are recoverable from the final message even
|
|
57
|
+
* without a structured stream. Surface each once as a file_edit so the diff
|
|
58
|
+
* view and activity feed aren't blind to what changed.
|
|
59
|
+
*/
|
|
60
|
+
private emitFileEdits;
|
|
61
|
+
interrupt(): Promise<void>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Antigravity CLI adapter — drives Google's `agy` CLI headless, one process per
|
|
3
|
+
* turn, resuming the same conversation across turns. This is the token-saving
|
|
4
|
+
* path: a turn handed to `agy` runs on Gemini (or whatever model the agent is
|
|
5
|
+
* configured with) instead of spending the orchestrator's budget.
|
|
6
|
+
*
|
|
7
|
+
* agy -p "<text>" --dangerously-skip-permissions --add-dir <dir> \
|
|
8
|
+
* --model <model> --print-timeout <dur>
|
|
9
|
+
* agy -p "<text>" --conversation <id> … (follow-up turns)
|
|
10
|
+
*
|
|
11
|
+
* Unlike the Antigravity *bridge* (bridges/antigravity.ts), which drives the
|
|
12
|
+
* Antigravity IDE's chat panel over the DevTools protocol and can only watch,
|
|
13
|
+
* this is a real adapter: it holds the baton and runs a turn to completion with
|
|
14
|
+
* no GUI in the loop.
|
|
15
|
+
*
|
|
16
|
+
* Interface verified against agy 1.1.6 by running it, not by guessing:
|
|
17
|
+
*
|
|
18
|
+
* - `-p/--print` runs one prompt non-interactively and prints ONLY the final
|
|
19
|
+
* assistant message to stdout (markdown), then exits 0. There is no JSON
|
|
20
|
+
* event stream, so this adapter reports the final message + the files it
|
|
21
|
+
* touched (parsed from the `[name](file://…)` links agy emits), and — like
|
|
22
|
+
* the Codex adapter — reports NO dollar cost, because the CLI hands us none
|
|
23
|
+
* and inventing one from a price table is how a fake number ends up in the
|
|
24
|
+
* UI presented as fact. It doesn't hand us tokens either, so turns show a
|
|
25
|
+
* model (when configured) and a duration, and honestly nothing else.
|
|
26
|
+
*
|
|
27
|
+
* - conversations are keyed by working directory in
|
|
28
|
+
* ~/.gemini/antigravity-cli/cache/last_conversations.json; after a fresh
|
|
29
|
+
* turn we read the id back from there and resume it explicitly with
|
|
30
|
+
* `--conversation` on every following turn, so continuity survives even if
|
|
31
|
+
* another tool later rewrites that dir's mapping.
|
|
32
|
+
*/
|
|
33
|
+
import { spawn } from "../core/process.js";
|
|
34
|
+
import fs from "node:fs";
|
|
35
|
+
import os from "node:os";
|
|
36
|
+
import path from "node:path";
|
|
37
|
+
import { AdapterBase, agentEnv, cliAvailable, frameBriefing } from "./base.js";
|
|
38
|
+
import { permissionFor } from "../core/permissions.js";
|
|
39
|
+
/** The installer drops the binary here; it isn't always on the daemon's PATH. */
|
|
40
|
+
const INSTALLED = [
|
|
41
|
+
...(process.platform === "win32" ? [path.join(os.homedir(), ".local", "bin", "agy.exe")] : []),
|
|
42
|
+
path.join(os.homedir(), ".local", "bin", "agy"),
|
|
43
|
+
];
|
|
44
|
+
/**
|
|
45
|
+
* Where the agy CLI is on this machine: an explicit override, then PATH, then
|
|
46
|
+
* the installer's default location — the daemon may have been started from a
|
|
47
|
+
* shell whose PATH predates the install, so PATH alone isn't enough.
|
|
48
|
+
*/
|
|
49
|
+
export function agyBin(override) {
|
|
50
|
+
if (override)
|
|
51
|
+
return fs.existsSync(override) ? override : null;
|
|
52
|
+
if (process.platform === "win32") {
|
|
53
|
+
const native = path.join(process.env.LOCALAPPDATA ?? path.join(os.homedir(), "AppData", "Local"), "agy", "bin", "agy.exe");
|
|
54
|
+
if (fs.existsSync(native))
|
|
55
|
+
return native;
|
|
56
|
+
}
|
|
57
|
+
for (const p of INSTALLED) {
|
|
58
|
+
if (fs.existsSync(p))
|
|
59
|
+
return p;
|
|
60
|
+
}
|
|
61
|
+
return "agy"; // let PATH resolution (and cliAvailable) decide
|
|
62
|
+
}
|
|
63
|
+
/** agy's per-workspace conversation index; maps a working dir to its last id. */
|
|
64
|
+
function conversationIndexPath() {
|
|
65
|
+
return path.join(process.env.HOME ?? os.homedir(), ".gemini", "antigravity-cli", "cache", "last_conversations.json");
|
|
66
|
+
}
|
|
67
|
+
/** The conversation id agy last used for `dir`, or null if it has none. */
|
|
68
|
+
function conversationFor(dir) {
|
|
69
|
+
try {
|
|
70
|
+
const raw = fs.readFileSync(conversationIndexPath(), "utf8");
|
|
71
|
+
const map = JSON.parse(raw);
|
|
72
|
+
return map[dir] ?? null;
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export class AntigravityCliAdapter extends AdapterBase {
|
|
79
|
+
child = null;
|
|
80
|
+
options;
|
|
81
|
+
constructor(id, projectDir, options = {}) {
|
|
82
|
+
super(id, "antigravity-cli", projectDir);
|
|
83
|
+
this.options = options;
|
|
84
|
+
}
|
|
85
|
+
/** agy calls it a conversation; loom stores it in the same slot as any session. */
|
|
86
|
+
get conversationId() {
|
|
87
|
+
return this.nativeState.read().sessionId;
|
|
88
|
+
}
|
|
89
|
+
set conversationId(value) {
|
|
90
|
+
this.nativeState.patch({ sessionId: value });
|
|
91
|
+
}
|
|
92
|
+
async available() {
|
|
93
|
+
const bin = agyBin(this.options.bin);
|
|
94
|
+
if (!bin)
|
|
95
|
+
return false;
|
|
96
|
+
return cliAvailable(bin);
|
|
97
|
+
}
|
|
98
|
+
async start() {
|
|
99
|
+
this.emit({ kind: "status", payload: { state: "ready", session: this.conversationId ?? null } });
|
|
100
|
+
}
|
|
101
|
+
async stop() {
|
|
102
|
+
await this.interrupt();
|
|
103
|
+
}
|
|
104
|
+
/** agy wants a Go-style duration; ms → "<n>s". */
|
|
105
|
+
timeoutArg() {
|
|
106
|
+
const ms = this.options.timeoutMs ?? 300_000;
|
|
107
|
+
return `${Math.max(1, Math.round(ms / 1000))}s`;
|
|
108
|
+
}
|
|
109
|
+
async send(input) {
|
|
110
|
+
if (this._busy)
|
|
111
|
+
throw new Error(`antigravity agent "${this.id}" is busy`);
|
|
112
|
+
const bin = agyBin(this.options.bin);
|
|
113
|
+
if (!bin)
|
|
114
|
+
throw new Error("agy CLI not found — install it: curl -fsSL https://antigravity.google/cli/install.sh | bash");
|
|
115
|
+
this._busy = true;
|
|
116
|
+
const started = Date.now();
|
|
117
|
+
// `agy --print` has no system channel, so the handoff briefing rides in
|
|
118
|
+
// front of the text as an unmissable authoritative block (see frameBriefing),
|
|
119
|
+
// exactly as the Codex and OpenCode adapters do.
|
|
120
|
+
const text = input.briefing ? `${frameBriefing(input.briefing)}\n\n${input.text}` : input.text;
|
|
121
|
+
const resume = this.conversationId;
|
|
122
|
+
// Permissions (core/permissions.ts). Bypass is the default and has to be
|
|
123
|
+
// explicit: headless, with no one to answer, any tool agy wants to confirm
|
|
124
|
+
// stalls the turn until --print-timeout. auto = accept-edits, ask = plan.
|
|
125
|
+
const mode = permissionFor("antigravity-cli", this.options);
|
|
126
|
+
const permArgs = mode === "bypass" ? ["--dangerously-skip-permissions"] : ["--mode", mode === "ask" ? "plan" : "accept-edits"];
|
|
127
|
+
const args = ["--print", text, ...permArgs, "--print-timeout", this.timeoutArg()];
|
|
128
|
+
if (resume) {
|
|
129
|
+
// A resumed conversation keeps its original workspace; --add-dir is only
|
|
130
|
+
// meaningful (and only needed) when opening a fresh one.
|
|
131
|
+
args.push("--conversation", resume);
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
args.push("--add-dir", this.projectDir);
|
|
135
|
+
}
|
|
136
|
+
if (this.options.model)
|
|
137
|
+
args.push("--model", this.options.model);
|
|
138
|
+
if (this.options.effort)
|
|
139
|
+
args.push("--effort", this.options.effort);
|
|
140
|
+
if (this.options.extraArgs)
|
|
141
|
+
args.push(...this.options.extraArgs);
|
|
142
|
+
// The binary may resolve by absolute path while its own PATH lookups (git,
|
|
143
|
+
// node, …) still need the login shell's dirs, so make sure agy's own bin dir
|
|
144
|
+
// is reachable to whatever it shells out to.
|
|
145
|
+
const env = agentEnv();
|
|
146
|
+
const binDir = path.dirname(bin === "agy" ? INSTALLED[0] : bin);
|
|
147
|
+
env.PATH = `${binDir}:${env.PATH ?? ""}`;
|
|
148
|
+
try {
|
|
149
|
+
await new Promise((resolve, reject) => {
|
|
150
|
+
const child = spawn(bin, args, {
|
|
151
|
+
cwd: this.projectDir,
|
|
152
|
+
// stdin closed: with a pipe open agy waits on it and print mode stalls.
|
|
153
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
154
|
+
env,
|
|
155
|
+
});
|
|
156
|
+
this.child = child;
|
|
157
|
+
let out = "";
|
|
158
|
+
let stderrTail = "";
|
|
159
|
+
child.stdout.on("data", (d) => {
|
|
160
|
+
out += d.toString();
|
|
161
|
+
});
|
|
162
|
+
child.stderr.on("data", (d) => {
|
|
163
|
+
stderrTail = (stderrTail + d.toString()).slice(-2000);
|
|
164
|
+
});
|
|
165
|
+
child.on("error", (err) => reject(err));
|
|
166
|
+
child.on("close", (code, signal) => {
|
|
167
|
+
this.child = null;
|
|
168
|
+
if (signal) {
|
|
169
|
+
this.emit({ kind: "status", payload: { state: "interrupted", signal } });
|
|
170
|
+
resolve();
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
const message = out.trim();
|
|
174
|
+
if (code !== 0 && !message) {
|
|
175
|
+
this.emit({ kind: "error", payload: { message: `agy exited ${code}`, stderr: stderrTail } });
|
|
176
|
+
reject(new Error(`agy exited ${code}: ${stderrTail.slice(0, 200)}`));
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (message) {
|
|
180
|
+
this.emit({ kind: "message", payload: { text: message } });
|
|
181
|
+
this.emitFileEdits(message);
|
|
182
|
+
}
|
|
183
|
+
// Capture the conversation id agy just wrote for this dir, so the next
|
|
184
|
+
// turn resumes it explicitly. Only on the first turn — after that we
|
|
185
|
+
// already hold it and keep passing the same one.
|
|
186
|
+
if (!resume) {
|
|
187
|
+
const id = conversationFor(this.projectDir);
|
|
188
|
+
if (id)
|
|
189
|
+
this.conversationId = id;
|
|
190
|
+
}
|
|
191
|
+
// Same blocked-on-human heuristic the other adapters use: a turn that
|
|
192
|
+
// ended on a question means the baton is really back with you.
|
|
193
|
+
if (/\?\s*$/.test(message)) {
|
|
194
|
+
this.emit({ kind: "needs_input", payload: { question: message.slice(-500) } });
|
|
195
|
+
}
|
|
196
|
+
this.emit({
|
|
197
|
+
kind: "run_complete",
|
|
198
|
+
payload: {
|
|
199
|
+
durationMs: Date.now() - started,
|
|
200
|
+
...(this.options.model ? { model: this.options.model } : {}),
|
|
201
|
+
},
|
|
202
|
+
});
|
|
203
|
+
resolve();
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
finally {
|
|
208
|
+
this._busy = false;
|
|
209
|
+
this.child = null;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* agy narrates file writes as markdown links — "Created [hello.txt](file:///…)"
|
|
214
|
+
* — so the paths it touched are recoverable from the final message even
|
|
215
|
+
* without a structured stream. Surface each once as a file_edit so the diff
|
|
216
|
+
* view and activity feed aren't blind to what changed.
|
|
217
|
+
*/
|
|
218
|
+
emitFileEdits(message) {
|
|
219
|
+
const seen = new Set();
|
|
220
|
+
const re = /\[[^\]]+\]\(file:\/\/([^)\s]+)\)/g;
|
|
221
|
+
let m;
|
|
222
|
+
while ((m = re.exec(message)) !== null) {
|
|
223
|
+
let p = m[1];
|
|
224
|
+
try {
|
|
225
|
+
p = decodeURIComponent(p);
|
|
226
|
+
}
|
|
227
|
+
catch {
|
|
228
|
+
// leave it as-is if it isn't valid percent-encoding
|
|
229
|
+
}
|
|
230
|
+
if (seen.has(p))
|
|
231
|
+
continue;
|
|
232
|
+
seen.add(p);
|
|
233
|
+
this.emit({ kind: "file_edit", payload: { path: p, tool: "agy" } });
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
async interrupt() {
|
|
237
|
+
const child = this.child;
|
|
238
|
+
if (!child)
|
|
239
|
+
return;
|
|
240
|
+
child.kill("SIGINT");
|
|
241
|
+
await new Promise((resolve) => {
|
|
242
|
+
const t = setTimeout(() => {
|
|
243
|
+
try {
|
|
244
|
+
child.kill("SIGKILL");
|
|
245
|
+
}
|
|
246
|
+
catch {
|
|
247
|
+
// already gone
|
|
248
|
+
}
|
|
249
|
+
resolve();
|
|
250
|
+
}, 3000);
|
|
251
|
+
child.on("close", () => {
|
|
252
|
+
clearTimeout(t);
|
|
253
|
+
resolve();
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
//# sourceMappingURL=antigravity-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"antigravity-cli.js","sourceRoot":"","sources":["../../src/adapters/antigravity-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAevD,iFAAiF;AACjF,MAAM,SAAS,GAAG;IAChB,GAAG,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9F,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC;CAChD,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,MAAM,CAAC,QAAiB;IACtC,IAAI,QAAQ;QAAE,OAAO,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/D,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,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