@hoknie/aip 0.0.0-stage → 0.2.0
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/.claude-plugin/marketplace.json +13 -0
- package/README.md +74 -2
- package/dist/app/agents.js +20 -0
- package/dist/app/agents.js.map +1 -0
- package/dist/app/application.js +205 -0
- package/dist/app/application.js.map +1 -0
- package/dist/app/daemon.js +71 -0
- package/dist/app/daemon.js.map +1 -0
- package/dist/app/index.js +5 -0
- package/dist/app/index.js.map +1 -0
- package/dist/app/lifecycle.js +34 -0
- package/dist/app/lifecycle.js.map +1 -0
- package/dist/app/maintenance.js +27 -0
- package/dist/app/maintenance.js.map +1 -0
- package/dist/app/timings.js +24 -0
- package/dist/app/timings.js.map +1 -0
- package/dist/app/wiring.js +58 -0
- package/dist/app/wiring.js.map +1 -0
- package/dist/cli/main.js +31 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/feature/agents/clients/agy/events.js +36 -0
- package/dist/feature/agents/clients/agy/events.js.map +1 -0
- package/dist/feature/agents/clients/agy/guard-commands.js +29 -0
- package/dist/feature/agents/clients/agy/guard-commands.js.map +1 -0
- package/dist/feature/agents/clients/agy/guard-paths.js +36 -0
- package/dist/feature/agents/clients/agy/guard-paths.js.map +1 -0
- package/dist/feature/agents/clients/agy/guard.js +77 -0
- package/dist/feature/agents/clients/agy/guard.js.map +1 -0
- package/dist/feature/agents/clients/agy/hooks.js +46 -0
- package/dist/feature/agents/clients/agy/hooks.js.map +1 -0
- package/dist/feature/agents/clients/agy/index.js +5 -0
- package/dist/feature/agents/clients/agy/index.js.map +1 -0
- package/dist/feature/agents/clients/agy/parser.js +63 -0
- package/dist/feature/agents/clients/agy/parser.js.map +1 -0
- package/dist/feature/agents/clients/agy/permissions.js +40 -0
- package/dist/feature/agents/clients/agy/permissions.js.map +1 -0
- package/dist/feature/agents/clients/agy/runtime.js +115 -0
- package/dist/feature/agents/clients/agy/runtime.js.map +1 -0
- package/dist/feature/agents/clients/agy/transcript.js +65 -0
- package/dist/feature/agents/clients/agy/transcript.js.map +1 -0
- package/dist/feature/agents/clients/claude/index.js +6 -0
- package/dist/feature/agents/clients/claude/index.js.map +1 -0
- package/dist/feature/agents/clients/claude/models.js +8 -0
- package/dist/feature/agents/clients/claude/models.js.map +1 -0
- package/dist/feature/agents/clients/claude/parser.js +229 -0
- package/dist/feature/agents/clients/claude/parser.js.map +1 -0
- package/dist/feature/agents/clients/claude/permissions.js +70 -0
- package/dist/feature/agents/clients/claude/permissions.js.map +1 -0
- package/dist/feature/agents/clients/claude/runtime.js +118 -0
- package/dist/feature/agents/clients/claude/runtime.js.map +1 -0
- package/dist/feature/agents/clients/claude/transcript.js +105 -0
- package/dist/feature/agents/clients/claude/transcript.js.map +1 -0
- package/dist/feature/agents/clients/naming/index.js +2 -0
- package/dist/feature/agents/clients/naming/index.js.map +1 -0
- package/dist/feature/agents/clients/naming/naming.js +15 -0
- package/dist/feature/agents/clients/naming/naming.js.map +1 -0
- package/dist/feature/agents/clients/opencode/index.js +5 -0
- package/dist/feature/agents/clients/opencode/index.js.map +1 -0
- package/dist/feature/agents/clients/opencode/models.js +38 -0
- package/dist/feature/agents/clients/opencode/models.js.map +1 -0
- package/dist/feature/agents/clients/opencode/parser.js +84 -0
- package/dist/feature/agents/clients/opencode/parser.js.map +1 -0
- package/dist/feature/agents/clients/opencode/runtime.js +131 -0
- package/dist/feature/agents/clients/opencode/runtime.js.map +1 -0
- package/dist/feature/agents/clients/opencode/transcript.js +77 -0
- package/dist/feature/agents/clients/opencode/transcript.js.map +1 -0
- package/dist/feature/agents/ports/command.js +2 -0
- package/dist/feature/agents/ports/command.js.map +1 -0
- package/dist/feature/agents/ports/index.js +2 -0
- package/dist/feature/agents/ports/index.js.map +1 -0
- package/dist/feature/agents/ports/naming.js +2 -0
- package/dist/feature/agents/ports/naming.js.map +1 -0
- package/dist/feature/agents/ports/runtime-factory.js +2 -0
- package/dist/feature/agents/ports/runtime-factory.js.map +1 -0
- package/dist/feature/agents/services/agents.js +79 -0
- package/dist/feature/agents/services/agents.js.map +1 -0
- package/dist/feature/agents/services/catalog.js +117 -0
- package/dist/feature/agents/services/catalog.js.map +1 -0
- package/dist/feature/agents/services/create.js +5 -0
- package/dist/feature/agents/services/create.js.map +1 -0
- package/dist/feature/agents/services/index.js +7 -0
- package/dist/feature/agents/services/index.js.map +1 -0
- package/dist/feature/agents/services/logs.js +69 -0
- package/dist/feature/agents/services/logs.js.map +1 -0
- package/dist/feature/agents/services/skills.js +17 -0
- package/dist/feature/agents/services/skills.js.map +1 -0
- package/dist/feature/agents/services/supervisor.js +160 -0
- package/dist/feature/agents/services/supervisor.js.map +1 -0
- package/dist/feature/agents/types/catalog.js +2 -0
- package/dist/feature/agents/types/catalog.js.map +1 -0
- package/dist/feature/agents/types/index.js +13 -0
- package/dist/feature/agents/types/index.js.map +1 -0
- package/dist/feature/agents/types/message.js +49 -0
- package/dist/feature/agents/types/message.js.map +1 -0
- package/dist/feature/agents/types/models.js +2 -0
- package/dist/feature/agents/types/models.js.map +1 -0
- package/dist/feature/agents/types/naming.js +4 -0
- package/dist/feature/agents/types/naming.js.map +1 -0
- package/dist/feature/agents/types/permissions.js +235 -0
- package/dist/feature/agents/types/permissions.js.map +1 -0
- package/dist/feature/agents/types/run-naming.js +66 -0
- package/dist/feature/agents/types/run-naming.js.map +1 -0
- package/dist/feature/agents/types/runtime.js +18 -0
- package/dist/feature/agents/types/runtime.js.map +1 -0
- package/dist/feature/agents/types/step-input.js +2 -0
- package/dist/feature/agents/types/step-input.js.map +1 -0
- package/dist/feature/agents/types/transcript-parts.js +62 -0
- package/dist/feature/agents/types/transcript-parts.js.map +1 -0
- package/dist/feature/agents/types/transcript.js +8 -0
- package/dist/feature/agents/types/transcript.js.map +1 -0
- package/dist/feature/agents/types/usage.js +14 -0
- package/dist/feature/agents/types/usage.js.map +1 -0
- package/dist/feature/agents/types/worker-tools.js +22 -0
- package/dist/feature/agents/types/worker-tools.js.map +1 -0
- package/dist/feature/artifacts/ports/index.js +2 -0
- package/dist/feature/artifacts/ports/index.js.map +1 -0
- package/dist/feature/artifacts/ports/publish.js +2 -0
- package/dist/feature/artifacts/ports/publish.js.map +1 -0
- package/dist/feature/artifacts/repositories/artifact-storage.js +84 -0
- package/dist/feature/artifacts/repositories/artifact-storage.js.map +1 -0
- package/dist/feature/artifacts/repositories/artifacts.js +85 -0
- package/dist/feature/artifacts/repositories/artifacts.js.map +1 -0
- package/dist/feature/artifacts/repositories/index.js +3 -0
- package/dist/feature/artifacts/repositories/index.js.map +1 -0
- package/dist/feature/artifacts/services/artifacts.js +105 -0
- package/dist/feature/artifacts/services/artifacts.js.map +1 -0
- package/dist/feature/artifacts/services/create.js +14 -0
- package/dist/feature/artifacts/services/create.js.map +1 -0
- package/dist/feature/artifacts/services/files.js +42 -0
- package/dist/feature/artifacts/services/files.js.map +1 -0
- package/dist/feature/artifacts/services/index.js +3 -0
- package/dist/feature/artifacts/services/index.js.map +1 -0
- package/dist/feature/artifacts/types/artifacts.js +36 -0
- package/dist/feature/artifacts/types/artifacts.js.map +1 -0
- package/dist/feature/artifacts/types/index.js +2 -0
- package/dist/feature/artifacts/types/index.js.map +1 -0
- package/dist/feature/artifacts/types/views.js +2 -0
- package/dist/feature/artifacts/types/views.js.map +1 -0
- package/dist/feature/compose/services/create.js +11 -0
- package/dist/feature/compose/services/create.js.map +1 -0
- package/dist/feature/compose/services/index.js +5 -0
- package/dist/feature/compose/services/index.js.map +1 -0
- package/dist/feature/compose/services/repository-edit.js +20 -0
- package/dist/feature/compose/services/repository-edit.js.map +1 -0
- package/dist/feature/compose/services/repository-move.js +35 -0
- package/dist/feature/compose/services/repository-move.js.map +1 -0
- package/dist/feature/compose/services/repository-removal.js +38 -0
- package/dist/feature/compose/services/repository-removal.js.map +1 -0
- package/dist/feature/delivery/ports/index.js +2 -0
- package/dist/feature/delivery/ports/index.js.map +1 -0
- package/dist/feature/delivery/ports/publish.js +2 -0
- package/dist/feature/delivery/ports/publish.js.map +1 -0
- package/dist/feature/delivery/repositories/index.js +3 -0
- package/dist/feature/delivery/repositories/index.js.map +1 -0
- package/dist/feature/delivery/repositories/patch-storage.js +76 -0
- package/dist/feature/delivery/repositories/patch-storage.js.map +1 -0
- package/dist/feature/delivery/repositories/patches.js +28 -0
- package/dist/feature/delivery/repositories/patches.js.map +1 -0
- package/dist/feature/delivery/services/create.js +21 -0
- package/dist/feature/delivery/services/create.js.map +1 -0
- package/dist/feature/delivery/services/deliver.js +67 -0
- package/dist/feature/delivery/services/deliver.js.map +1 -0
- package/dist/feature/delivery/services/diffs.js +153 -0
- package/dist/feature/delivery/services/diffs.js.map +1 -0
- package/dist/feature/delivery/services/index.js +5 -0
- package/dist/feature/delivery/services/index.js.map +1 -0
- package/dist/feature/delivery/services/patches.js +96 -0
- package/dist/feature/delivery/services/patches.js.map +1 -0
- package/dist/feature/delivery/types/index.js +3 -0
- package/dist/feature/delivery/types/index.js.map +1 -0
- package/dist/feature/delivery/types/outcomes.js +2 -0
- package/dist/feature/delivery/types/outcomes.js.map +1 -0
- package/dist/feature/delivery/types/spec-change.js +18 -0
- package/dist/feature/delivery/types/spec-change.js.map +1 -0
- package/dist/feature/network/ports/changed.js +2 -0
- package/dist/feature/network/ports/changed.js.map +1 -0
- package/dist/feature/network/ports/index.js +2 -0
- package/dist/feature/network/ports/index.js.map +1 -0
- package/dist/feature/network/services/create.js +5 -0
- package/dist/feature/network/services/create.js.map +1 -0
- package/dist/feature/network/services/index.js +3 -0
- package/dist/feature/network/services/index.js.map +1 -0
- package/dist/feature/network/services/monitor.js +140 -0
- package/dist/feature/network/services/monitor.js.map +1 -0
- package/dist/feature/network/types/index.js +4 -0
- package/dist/feature/network/types/index.js.map +1 -0
- package/dist/feature/network/types/network.js +8 -0
- package/dist/feature/network/types/network.js.map +1 -0
- package/dist/feature/network/types/proxy.js +95 -0
- package/dist/feature/network/types/proxy.js.map +1 -0
- package/dist/feature/network/types/state.js +36 -0
- package/dist/feature/network/types/state.js.map +1 -0
- package/dist/feature/observers/ports/index.js +2 -0
- package/dist/feature/observers/ports/index.js.map +1 -0
- package/dist/feature/observers/ports/publish.js +2 -0
- package/dist/feature/observers/ports/publish.js.map +1 -0
- package/dist/feature/observers/repositories/index.js +2 -0
- package/dist/feature/observers/repositories/index.js.map +1 -0
- package/dist/feature/observers/repositories/observers.js +34 -0
- package/dist/feature/observers/repositories/observers.js.map +1 -0
- package/dist/feature/observers/services/create.js +11 -0
- package/dist/feature/observers/services/create.js.map +1 -0
- package/dist/feature/observers/services/history.js +76 -0
- package/dist/feature/observers/services/history.js.map +1 -0
- package/dist/feature/observers/services/index.js +5 -0
- package/dist/feature/observers/services/index.js.map +1 -0
- package/dist/feature/observers/services/observers.js +188 -0
- package/dist/feature/observers/services/observers.js.map +1 -0
- package/dist/feature/observers/services/settings-check.js +87 -0
- package/dist/feature/observers/services/settings-check.js.map +1 -0
- package/dist/feature/observers/types/actions.js +2 -0
- package/dist/feature/observers/types/actions.js.map +1 -0
- package/dist/feature/observers/types/index.js +4 -0
- package/dist/feature/observers/types/index.js.map +1 -0
- package/dist/feature/observers/types/plan-repairs.js +116 -0
- package/dist/feature/observers/types/plan-repairs.js.map +1 -0
- package/dist/feature/observers/types/settings.js +12 -0
- package/dist/feature/observers/types/settings.js.map +1 -0
- package/dist/feature/processes/ports/index.js +2 -0
- package/dist/feature/processes/ports/index.js.map +1 -0
- package/dist/feature/processes/ports/publish.js +2 -0
- package/dist/feature/processes/ports/publish.js.map +1 -0
- package/dist/feature/processes/services/create.js +5 -0
- package/dist/feature/processes/services/create.js.map +1 -0
- package/dist/feature/processes/services/index.js +4 -0
- package/dist/feature/processes/services/index.js.map +1 -0
- package/dist/feature/processes/services/processes.js +131 -0
- package/dist/feature/processes/services/processes.js.map +1 -0
- package/dist/feature/processes/services/tree.js +98 -0
- package/dist/feature/processes/services/tree.js.map +1 -0
- package/dist/feature/processes/types/background.js +2 -0
- package/dist/feature/processes/types/background.js.map +1 -0
- package/dist/feature/processes/types/index.js +2 -0
- package/dist/feature/processes/types/index.js.map +1 -0
- package/dist/feature/queue/ports/index.js +2 -0
- package/dist/feature/queue/ports/index.js.map +1 -0
- package/dist/feature/queue/ports/observe.js +2 -0
- package/dist/feature/queue/ports/observe.js.map +1 -0
- package/dist/feature/queue/ports/publish.js +2 -0
- package/dist/feature/queue/ports/publish.js.map +1 -0
- package/dist/feature/queue/ports/repair-policy.js +2 -0
- package/dist/feature/queue/ports/repair-policy.js.map +1 -0
- package/dist/feature/queue/repositories/index.js +2 -0
- package/dist/feature/queue/repositories/index.js.map +1 -0
- package/dist/feature/queue/repositories/queues.js +100 -0
- package/dist/feature/queue/repositories/queues.js.map +1 -0
- package/dist/feature/queue/services/advance.js +214 -0
- package/dist/feature/queue/services/advance.js.map +1 -0
- package/dist/feature/queue/services/control.js +169 -0
- package/dist/feature/queue/services/control.js.map +1 -0
- package/dist/feature/queue/services/create.js +26 -0
- package/dist/feature/queue/services/create.js.map +1 -0
- package/dist/feature/queue/services/edit.js +126 -0
- package/dist/feature/queue/services/edit.js.map +1 -0
- package/dist/feature/queue/services/index.js +8 -0
- package/dist/feature/queue/services/index.js.map +1 -0
- package/dist/feature/queue/services/items.js +173 -0
- package/dist/feature/queue/services/items.js.map +1 -0
- package/dist/feature/queue/services/store.js +61 -0
- package/dist/feature/queue/services/store.js.map +1 -0
- package/dist/feature/queue/services/task-tags.js +103 -0
- package/dist/feature/queue/services/task-tags.js.map +1 -0
- package/dist/feature/queue/types/advance.js +198 -0
- package/dist/feature/queue/types/advance.js.map +1 -0
- package/dist/feature/queue/types/dependencies.js +98 -0
- package/dist/feature/queue/types/dependencies.js.map +1 -0
- package/dist/feature/queue/types/edit.js +180 -0
- package/dist/feature/queue/types/edit.js.map +1 -0
- package/dist/feature/queue/types/ids.js +7 -0
- package/dist/feature/queue/types/ids.js.map +1 -0
- package/dist/feature/queue/types/index.js +10 -0
- package/dist/feature/queue/types/index.js.map +1 -0
- package/dist/feature/queue/types/items.js +46 -0
- package/dist/feature/queue/types/items.js.map +1 -0
- package/dist/feature/queue/types/limit-hits.js +50 -0
- package/dist/feature/queue/types/limit-hits.js.map +1 -0
- package/dist/feature/queue/types/requests.js +2 -0
- package/dist/feature/queue/types/requests.js.map +1 -0
- package/dist/feature/queue/types/returns.js +197 -0
- package/dist/feature/queue/types/returns.js.map +1 -0
- package/dist/feature/queue/types/settings.js +117 -0
- package/dist/feature/queue/types/settings.js.map +1 -0
- package/dist/feature/repos/ports/index.js +2 -0
- package/dist/feature/repos/ports/index.js.map +1 -0
- package/dist/feature/repos/ports/publish.js +2 -0
- package/dist/feature/repos/ports/publish.js.map +1 -0
- package/dist/feature/repos/repositories/index.js +2 -0
- package/dist/feature/repos/repositories/index.js.map +1 -0
- package/dist/feature/repos/repositories/known.js +41 -0
- package/dist/feature/repos/repositories/known.js.map +1 -0
- package/dist/feature/repos/services/create.js +13 -0
- package/dist/feature/repos/services/create.js.map +1 -0
- package/dist/feature/repos/services/index.js +4 -0
- package/dist/feature/repos/services/index.js.map +1 -0
- package/dist/feature/repos/services/projects.js +50 -0
- package/dist/feature/repos/services/projects.js.map +1 -0
- package/dist/feature/repos/services/registry.js +138 -0
- package/dist/feature/repos/services/registry.js.map +1 -0
- package/dist/feature/repos/types/index.js +2 -0
- package/dist/feature/repos/types/index.js.map +1 -0
- package/dist/feature/repos/types/project.js +80 -0
- package/dist/feature/repos/types/project.js.map +1 -0
- package/dist/feature/repos/types/registry.js +2 -0
- package/dist/feature/repos/types/registry.js.map +1 -0
- package/dist/feature/runs/machine/answers.js +112 -0
- package/dist/feature/runs/machine/answers.js.map +1 -0
- package/dist/feature/runs/machine/delivery-checks.js +91 -0
- package/dist/feature/runs/machine/delivery-checks.js.map +1 -0
- package/dist/feature/runs/machine/delivery-flow.js +211 -0
- package/dist/feature/runs/machine/delivery-flow.js.map +1 -0
- package/dist/feature/runs/machine/events.js +2 -0
- package/dist/feature/runs/machine/events.js.map +1 -0
- package/dist/feature/runs/machine/exits.js +229 -0
- package/dist/feature/runs/machine/exits.js.map +1 -0
- package/dist/feature/runs/machine/index.js +7 -0
- package/dist/feature/runs/machine/index.js.map +1 -0
- package/dist/feature/runs/machine/plan.js +133 -0
- package/dist/feature/runs/machine/plan.js.map +1 -0
- package/dist/feature/runs/machine/repair.js +158 -0
- package/dist/feature/runs/machine/repair.js.map +1 -0
- package/dist/feature/runs/machine/run-control.js +276 -0
- package/dist/feature/runs/machine/run-control.js.map +1 -0
- package/dist/feature/runs/machine/scheduler.js +126 -0
- package/dist/feature/runs/machine/scheduler.js.map +1 -0
- package/dist/feature/runs/machine/steps.js +275 -0
- package/dist/feature/runs/machine/steps.js.map +1 -0
- package/dist/feature/runs/machine/texts.js +69 -0
- package/dist/feature/runs/machine/texts.js.map +1 -0
- package/dist/feature/runs/machine/transition.js +117 -0
- package/dist/feature/runs/machine/transition.js.map +1 -0
- package/dist/feature/runs/ports/agent-exit.js +2 -0
- package/dist/feature/runs/ports/agent-exit.js.map +1 -0
- package/dist/feature/runs/ports/diff.js +2 -0
- package/dist/feature/runs/ports/diff.js.map +1 -0
- package/dist/feature/runs/ports/index.js +2 -0
- package/dist/feature/runs/ports/index.js.map +1 -0
- package/dist/feature/runs/ports/observe.js +2 -0
- package/dist/feature/runs/ports/observe.js.map +1 -0
- package/dist/feature/runs/ports/publish.js +2 -0
- package/dist/feature/runs/ports/publish.js.map +1 -0
- package/dist/feature/runs/ports/queue-advance.js +2 -0
- package/dist/feature/runs/ports/queue-advance.js.map +1 -0
- package/dist/feature/runs/repositories/attempt-history.js +116 -0
- package/dist/feature/runs/repositories/attempt-history.js.map +1 -0
- package/dist/feature/runs/repositories/finished-runs.js +46 -0
- package/dist/feature/runs/repositories/finished-runs.js.map +1 -0
- package/dist/feature/runs/repositories/index.js +4 -0
- package/dist/feature/runs/repositories/index.js.map +1 -0
- package/dist/feature/runs/repositories/rows.js +110 -0
- package/dist/feature/runs/repositories/rows.js.map +1 -0
- package/dist/feature/runs/repositories/runs.js +76 -0
- package/dist/feature/runs/repositories/runs.js.map +1 -0
- package/dist/feature/runs/repositories/write.js +31 -0
- package/dist/feature/runs/repositories/write.js.map +1 -0
- package/dist/feature/runs/services/archive.js +17 -0
- package/dist/feature/runs/services/archive.js.map +1 -0
- package/dist/feature/runs/services/attempt-history.js +11 -0
- package/dist/feature/runs/services/attempt-history.js.map +1 -0
- package/dist/feature/runs/services/create.js +44 -0
- package/dist/feature/runs/services/create.js.map +1 -0
- package/dist/feature/runs/services/effects/actions.js +151 -0
- package/dist/feature/runs/services/effects/actions.js.map +1 -0
- package/dist/feature/runs/services/effects/attempts.js +219 -0
- package/dist/feature/runs/services/effects/attempts.js.map +1 -0
- package/dist/feature/runs/services/effects/context.js +7 -0
- package/dist/feature/runs/services/effects/context.js.map +1 -0
- package/dist/feature/runs/services/effects/effects.js +82 -0
- package/dist/feature/runs/services/effects/effects.js.map +1 -0
- package/dist/feature/runs/services/effects/git.js +168 -0
- package/dist/feature/runs/services/effects/git.js.map +1 -0
- package/dist/feature/runs/services/effects/naming.js +65 -0
- package/dist/feature/runs/services/effects/naming.js.map +1 -0
- package/dist/feature/runs/services/effects/outside.js +83 -0
- package/dist/feature/runs/services/effects/outside.js.map +1 -0
- package/dist/feature/runs/services/effects/proxy.js +5 -0
- package/dist/feature/runs/services/effects/proxy.js.map +1 -0
- package/dist/feature/runs/services/effects/running.js +76 -0
- package/dist/feature/runs/services/effects/running.js.map +1 -0
- package/dist/feature/runs/services/effects/usage.js +61 -0
- package/dist/feature/runs/services/effects/usage.js.map +1 -0
- package/dist/feature/runs/services/effects/worktrees.js +49 -0
- package/dist/feature/runs/services/effects/worktrees.js.map +1 -0
- package/dist/feature/runs/services/engine.js +172 -0
- package/dist/feature/runs/services/engine.js.map +1 -0
- package/dist/feature/runs/services/index.js +15 -0
- package/dist/feature/runs/services/index.js.map +1 -0
- package/dist/feature/runs/services/occupancy.js +62 -0
- package/dist/feature/runs/services/occupancy.js.map +1 -0
- package/dist/feature/runs/services/progress.js +42 -0
- package/dist/feature/runs/services/progress.js.map +1 -0
- package/dist/feature/runs/services/reads.js +93 -0
- package/dist/feature/runs/services/reads.js.map +1 -0
- package/dist/feature/runs/services/recovery.js +17 -0
- package/dist/feature/runs/services/recovery.js.map +1 -0
- package/dist/feature/runs/services/refresh.js +29 -0
- package/dist/feature/runs/services/refresh.js.map +1 -0
- package/dist/feature/runs/services/requests.js +88 -0
- package/dist/feature/runs/services/requests.js.map +1 -0
- package/dist/feature/runs/services/states.js +112 -0
- package/dist/feature/runs/services/states.js.map +1 -0
- package/dist/feature/runs/services/summary.js +38 -0
- package/dist/feature/runs/services/summary.js.map +1 -0
- package/dist/feature/runs/types/attempt.js +106 -0
- package/dist/feature/runs/types/attempt.js.map +1 -0
- package/dist/feature/runs/types/constants.js +45 -0
- package/dist/feature/runs/types/constants.js.map +1 -0
- package/dist/feature/runs/types/create.js +177 -0
- package/dist/feature/runs/types/create.js.map +1 -0
- package/dist/feature/runs/types/group.js +152 -0
- package/dist/feature/runs/types/group.js.map +1 -0
- package/dist/feature/runs/types/history/attempt-history.js +16 -0
- package/dist/feature/runs/types/history/attempt-history.js.map +1 -0
- package/dist/feature/runs/types/index.js +15 -0
- package/dist/feature/runs/types/index.js.map +1 -0
- package/dist/feature/runs/types/input.js +90 -0
- package/dist/feature/runs/types/input.js.map +1 -0
- package/dist/feature/runs/types/limits.js +163 -0
- package/dist/feature/runs/types/limits.js.map +1 -0
- package/dist/feature/runs/types/problems.js +74 -0
- package/dist/feature/runs/types/problems.js.map +1 -0
- package/dist/feature/runs/types/run.js +162 -0
- package/dist/feature/runs/types/run.js.map +1 -0
- package/dist/feature/runs/types/skip.js +110 -0
- package/dist/feature/runs/types/skip.js.map +1 -0
- package/dist/feature/runs/types/stage-status.js +156 -0
- package/dist/feature/runs/types/stage-status.js.map +1 -0
- package/dist/feature/runs/types/stages.js +158 -0
- package/dist/feature/runs/types/stages.js.map +1 -0
- package/dist/feature/runs/types/topology.js +165 -0
- package/dist/feature/runs/types/topology.js.map +1 -0
- package/dist/feature/stats/repositories/index.js +4 -0
- package/dist/feature/stats/repositories/index.js.map +1 -0
- package/dist/feature/stats/repositories/meta.js +19 -0
- package/dist/feature/stats/repositories/meta.js.map +1 -0
- package/dist/feature/stats/repositories/records.js +46 -0
- package/dist/feature/stats/repositories/records.js.map +1 -0
- package/dist/feature/stats/repositories/report.js +105 -0
- package/dist/feature/stats/repositories/report.js.map +1 -0
- package/dist/feature/stats/services/create.js +44 -0
- package/dist/feature/stats/services/create.js.map +1 -0
- package/dist/feature/stats/services/index.js +4 -0
- package/dist/feature/stats/services/index.js.map +1 -0
- package/dist/feature/stats/services/ledger.js +137 -0
- package/dist/feature/stats/services/ledger.js.map +1 -0
- package/dist/feature/stats/services/report.js +56 -0
- package/dist/feature/stats/services/report.js.map +1 -0
- package/dist/feature/stats/types/aggregate.js +179 -0
- package/dist/feature/stats/types/aggregate.js.map +1 -0
- package/dist/feature/stats/types/capture.js +79 -0
- package/dist/feature/stats/types/capture.js.map +1 -0
- package/dist/feature/stats/types/index.js +6 -0
- package/dist/feature/stats/types/index.js.map +1 -0
- package/dist/feature/stats/types/records.js +5 -0
- package/dist/feature/stats/types/records.js.map +1 -0
- package/dist/feature/stats/types/report.js +25 -0
- package/dist/feature/stats/types/report.js.map +1 -0
- package/dist/feature/stats/types/settings.js +2 -0
- package/dist/feature/stats/types/settings.js.map +1 -0
- package/dist/feature/swarm-config/repositories/config-files.js +141 -0
- package/dist/feature/swarm-config/repositories/config-files.js.map +1 -0
- package/dist/feature/swarm-config/services/assemble.js +212 -0
- package/dist/feature/swarm-config/services/assemble.js.map +1 -0
- package/dist/feature/swarm-config/services/create.js +5 -0
- package/dist/feature/swarm-config/services/create.js.map +1 -0
- package/dist/feature/swarm-config/services/discover.js +19 -0
- package/dist/feature/swarm-config/services/discover.js.map +1 -0
- package/dist/feature/swarm-config/services/index.js +10 -0
- package/dist/feature/swarm-config/services/index.js.map +1 -0
- package/dist/feature/swarm-config/services/load.js +101 -0
- package/dist/feature/swarm-config/services/load.js.map +1 -0
- package/dist/feature/swarm-config/services/sections/stats.js +28 -0
- package/dist/feature/swarm-config/services/sections/stats.js.map +1 -0
- package/dist/feature/swarm-config/services/settings.js +72 -0
- package/dist/feature/swarm-config/services/settings.js.map +1 -0
- package/dist/feature/swarm-config/services/validate-actions.js +125 -0
- package/dist/feature/swarm-config/services/validate-actions.js.map +1 -0
- package/dist/feature/swarm-config/services/validate-context.js +91 -0
- package/dist/feature/swarm-config/services/validate-context.js.map +1 -0
- package/dist/feature/swarm-config/services/validate-pipelines.js +170 -0
- package/dist/feature/swarm-config/services/validate-pipelines.js.map +1 -0
- package/dist/feature/swarm-config/services/validate-runtimes.js +214 -0
- package/dist/feature/swarm-config/services/validate-runtimes.js.map +1 -0
- package/dist/feature/swarm-config/services/validate-settings.js +242 -0
- package/dist/feature/swarm-config/services/validate-settings.js.map +1 -0
- package/dist/feature/swarm-config/services/validate-specialists.js +152 -0
- package/dist/feature/swarm-config/services/validate-specialists.js.map +1 -0
- package/dist/feature/swarm-config/services/validate.js +189 -0
- package/dist/feature/swarm-config/services/validate.js.map +1 -0
- package/dist/feature/swarm-config/types/action.js +20 -0
- package/dist/feature/swarm-config/types/action.js.map +1 -0
- package/dist/feature/swarm-config/types/chain.js +2 -0
- package/dist/feature/swarm-config/types/chain.js.map +1 -0
- package/dist/feature/swarm-config/types/duration.js +17 -0
- package/dist/feature/swarm-config/types/duration.js.map +1 -0
- package/dist/feature/swarm-config/types/errors.js +57 -0
- package/dist/feature/swarm-config/types/errors.js.map +1 -0
- package/dist/feature/swarm-config/types/index.js +13 -0
- package/dist/feature/swarm-config/types/index.js.map +1 -0
- package/dist/feature/swarm-config/types/levels.js +16 -0
- package/dist/feature/swarm-config/types/levels.js.map +1 -0
- package/dist/feature/swarm-config/types/lookups.js +53 -0
- package/dist/feature/swarm-config/types/lookups.js.map +1 -0
- package/dist/feature/swarm-config/types/merge.js +46 -0
- package/dist/feature/swarm-config/types/merge.js.map +1 -0
- package/dist/feature/swarm-config/types/pipeline.js +5 -0
- package/dist/feature/swarm-config/types/pipeline.js.map +1 -0
- package/dist/feature/swarm-config/types/prompt.js +33 -0
- package/dist/feature/swarm-config/types/prompt.js.map +1 -0
- package/dist/feature/swarm-config/types/settings.js +146 -0
- package/dist/feature/swarm-config/types/settings.js.map +1 -0
- package/dist/feature/swarm-config/types/specialist.js +38 -0
- package/dist/feature/swarm-config/types/specialist.js.map +1 -0
- package/dist/feature/swarm-config/types/tag-names.js +43 -0
- package/dist/feature/swarm-config/types/tag-names.js.map +1 -0
- package/dist/feature/swarm-edit/ports/config-changed.js +2 -0
- package/dist/feature/swarm-edit/ports/config-changed.js.map +1 -0
- package/dist/feature/swarm-edit/ports/index.js +2 -0
- package/dist/feature/swarm-edit/ports/index.js.map +1 -0
- package/dist/feature/swarm-edit/repositories/documents.js +144 -0
- package/dist/feature/swarm-edit/repositories/documents.js.map +1 -0
- package/dist/feature/swarm-edit/services/config-edits.js +129 -0
- package/dist/feature/swarm-edit/services/config-edits.js.map +1 -0
- package/dist/feature/swarm-edit/services/create.js +7 -0
- package/dist/feature/swarm-edit/services/create.js.map +1 -0
- package/dist/feature/swarm-edit/services/editor-settings.js +172 -0
- package/dist/feature/swarm-edit/services/editor-settings.js.map +1 -0
- package/dist/feature/swarm-edit/services/editor-view.js +144 -0
- package/dist/feature/swarm-edit/services/editor-view.js.map +1 -0
- package/dist/feature/swarm-edit/services/index.js +12 -0
- package/dist/feature/swarm-edit/services/index.js.map +1 -0
- package/dist/feature/swarm-edit/services/levels.js +30 -0
- package/dist/feature/swarm-edit/services/levels.js.map +1 -0
- package/dist/feature/swarm-edit/services/plan-edit.js +217 -0
- package/dist/feature/swarm-edit/services/plan-edit.js.map +1 -0
- package/dist/feature/swarm-edit/services/plan-settings.js +200 -0
- package/dist/feature/swarm-edit/services/plan-settings.js.map +1 -0
- package/dist/feature/swarm-edit/services/references.js +85 -0
- package/dist/feature/swarm-edit/services/references.js.map +1 -0
- package/dist/feature/swarm-edit/services/shared-config.js +128 -0
- package/dist/feature/swarm-edit/services/shared-config.js.map +1 -0
- package/dist/feature/swarm-edit/services/shared-pipelines.js +72 -0
- package/dist/feature/swarm-edit/services/shared-pipelines.js.map +1 -0
- package/dist/feature/swarm-edit/services/shared-specialists.js +70 -0
- package/dist/feature/swarm-edit/services/shared-specialists.js.map +1 -0
- package/dist/feature/swarm-edit/services/specialist-tags.js +215 -0
- package/dist/feature/swarm-edit/services/specialist-tags.js.map +1 -0
- package/dist/feature/swarm-edit/types/editor.js +27 -0
- package/dist/feature/swarm-edit/types/editor.js.map +1 -0
- package/dist/feature/swarm-edit/types/index.js +7 -0
- package/dist/feature/swarm-edit/types/index.js.map +1 -0
- package/dist/feature/swarm-edit/types/setting-fields.js +76 -0
- package/dist/feature/swarm-edit/types/setting-fields.js.map +1 -0
- package/dist/feature/swarm-edit/types/shared.js +2 -0
- package/dist/feature/swarm-edit/types/shared.js.map +1 -0
- package/dist/feature/swarm-edit/types/stages.js +69 -0
- package/dist/feature/swarm-edit/types/stages.js.map +1 -0
- package/dist/feature/swarm-edit/types/tag-folders.js +2 -0
- package/dist/feature/swarm-edit/types/tag-folders.js.map +1 -0
- package/dist/feature/swarm-edit/types/views.js +2 -0
- package/dist/feature/swarm-edit/types/views.js.map +1 -0
- package/dist/feature/tags/ports/index.js +2 -0
- package/dist/feature/tags/ports/index.js.map +1 -0
- package/dist/feature/tags/ports/publish.js +2 -0
- package/dist/feature/tags/ports/publish.js.map +1 -0
- package/dist/feature/tags/repositories/index.js +2 -0
- package/dist/feature/tags/repositories/index.js.map +1 -0
- package/dist/feature/tags/repositories/tags.js +36 -0
- package/dist/feature/tags/repositories/tags.js.map +1 -0
- package/dist/feature/tags/services/catalog.js +73 -0
- package/dist/feature/tags/services/catalog.js.map +1 -0
- package/dist/feature/tags/services/create.js +7 -0
- package/dist/feature/tags/services/create.js.map +1 -0
- package/dist/feature/tags/services/index.js +3 -0
- package/dist/feature/tags/services/index.js.map +1 -0
- package/dist/feature/tags/types/ids.js +7 -0
- package/dist/feature/tags/types/ids.js.map +1 -0
- package/dist/feature/tags/types/index.js +3 -0
- package/dist/feature/tags/types/index.js.map +1 -0
- package/dist/feature/tags/types/tags.js +184 -0
- package/dist/feature/tags/types/tags.js.map +1 -0
- package/dist/platform/build/fingerprint.js +36 -0
- package/dist/platform/build/fingerprint.js.map +1 -0
- package/dist/platform/build/index.js +3 -0
- package/dist/platform/build/index.js.map +1 -0
- package/dist/platform/build/locations.js +16 -0
- package/dist/platform/build/locations.js.map +1 -0
- package/dist/platform/errors/app-error.js +39 -0
- package/dist/platform/errors/app-error.js.map +1 -0
- package/dist/platform/errors/index.js +2 -0
- package/dist/platform/errors/index.js.map +1 -0
- package/dist/platform/git/delivery.js +284 -0
- package/dist/platform/git/delivery.js.map +1 -0
- package/dist/platform/git/index.js +4 -0
- package/dist/platform/git/index.js.map +1 -0
- package/dist/platform/git/runner.js +65 -0
- package/dist/platform/git/runner.js.map +1 -0
- package/dist/platform/git/workspace.js +366 -0
- package/dist/platform/git/workspace.js.map +1 -0
- package/dist/platform/network/index.js +4 -0
- package/dist/platform/network/index.js.map +1 -0
- package/dist/platform/network/interfaces.js +7 -0
- package/dist/platform/network/interfaces.js.map +1 -0
- package/dist/platform/network/probe.js +128 -0
- package/dist/platform/network/probe.js.map +1 -0
- package/dist/platform/network/tunnel.js +87 -0
- package/dist/platform/network/tunnel.js.map +1 -0
- package/dist/platform/paths/index.js +2 -0
- package/dist/platform/paths/index.js.map +1 -0
- package/dist/platform/paths/paths.js +39 -0
- package/dist/platform/paths/paths.js.map +1 -0
- package/dist/platform/process/command.js +23 -0
- package/dist/platform/process/command.js.map +1 -0
- package/dist/platform/process/index.js +4 -0
- package/dist/platform/process/index.js.map +1 -0
- package/dist/platform/process/ps.js +42 -0
- package/dist/platform/process/ps.js.map +1 -0
- package/dist/platform/process/which.js +21 -0
- package/dist/platform/process/which.js.map +1 -0
- package/dist/platform/sqlite/database.js +36 -0
- package/dist/platform/sqlite/database.js.map +1 -0
- package/dist/platform/sqlite/index.js +4 -0
- package/dist/platform/sqlite/index.js.map +1 -0
- package/dist/platform/sqlite/migrations.js +299 -0
- package/dist/platform/sqlite/migrations.js.map +1 -0
- package/dist/platform/sqlite/rows.js +13 -0
- package/dist/platform/sqlite/rows.js.map +1 -0
- package/dist/platform/sqlite/stats-migration.js +42 -0
- package/dist/platform/sqlite/stats-migration.js.map +1 -0
- package/dist/presentation/cli/commands/daemon.js +216 -0
- package/dist/presentation/cli/commands/daemon.js.map +1 -0
- package/dist/presentation/cli/commands/group.js +88 -0
- package/dist/presentation/cli/commands/group.js.map +1 -0
- package/dist/presentation/cli/commands/mcp.js +44 -0
- package/dist/presentation/cli/commands/mcp.js.map +1 -0
- package/dist/presentation/cli/commands/queue-edit.js +155 -0
- package/dist/presentation/cli/commands/queue-edit.js.map +1 -0
- package/dist/presentation/cli/commands/queue.js +222 -0
- package/dist/presentation/cli/commands/queue.js.map +1 -0
- package/dist/presentation/cli/commands/repositories.js +129 -0
- package/dist/presentation/cli/commands/repositories.js.map +1 -0
- package/dist/presentation/cli/commands/run-delivery.js +116 -0
- package/dist/presentation/cli/commands/run-delivery.js.map +1 -0
- package/dist/presentation/cli/commands/run.js +156 -0
- package/dist/presentation/cli/commands/run.js.map +1 -0
- package/dist/presentation/cli/commands/setup.js +97 -0
- package/dist/presentation/cli/commands/setup.js.map +1 -0
- package/dist/presentation/cli/commands/stats.js +41 -0
- package/dist/presentation/cli/commands/stats.js.map +1 -0
- package/dist/presentation/cli/commands/tag.js +92 -0
- package/dist/presentation/cli/commands/tag.js.map +1 -0
- package/dist/presentation/cli/commands/web.js +100 -0
- package/dist/presentation/cli/commands/web.js.map +1 -0
- package/dist/presentation/cli/context.js +49 -0
- package/dist/presentation/cli/context.js.map +1 -0
- package/dist/presentation/cli/help.js +49 -0
- package/dist/presentation/cli/help.js.map +1 -0
- package/dist/presentation/cli/io.js +13 -0
- package/dist/presentation/cli/io.js.map +1 -0
- package/dist/presentation/cli/local/clean.js +72 -0
- package/dist/presentation/cli/local/clean.js.map +1 -0
- package/dist/presentation/cli/local/config-check.js +225 -0
- package/dist/presentation/cli/local/config-check.js.map +1 -0
- package/dist/presentation/cli/local/init.js +44 -0
- package/dist/presentation/cli/local/init.js.map +1 -0
- package/dist/presentation/cli/options.js +34 -0
- package/dist/presentation/cli/options.js.map +1 -0
- package/dist/presentation/cli/probe.js +12 -0
- package/dist/presentation/cli/probe.js.map +1 -0
- package/dist/presentation/cli/program.js +78 -0
- package/dist/presentation/cli/program.js.map +1 -0
- package/dist/presentation/cli/setup/actions.js +206 -0
- package/dist/presentation/cli/setup/actions.js.map +1 -0
- package/dist/presentation/cli/setup/command.js +80 -0
- package/dist/presentation/cli/setup/command.js.map +1 -0
- package/dist/presentation/cli/setup/host.js +20 -0
- package/dist/presentation/cli/setup/host.js.map +1 -0
- package/dist/presentation/cli/setup/index.js +5 -0
- package/dist/presentation/cli/setup/index.js.map +1 -0
- package/dist/presentation/cli/setup/run.js +63 -0
- package/dist/presentation/cli/setup/run.js.map +1 -0
- package/dist/presentation/cli/setup/system.js +53 -0
- package/dist/presentation/cli/setup/system.js.map +1 -0
- package/dist/presentation/cli/setup/types.js +3 -0
- package/dist/presentation/cli/setup/types.js.map +1 -0
- package/dist/presentation/cli/watch.js +24 -0
- package/dist/presentation/cli/watch.js.map +1 -0
- package/dist/presentation/cli/web-control.js +172 -0
- package/dist/presentation/cli/web-control.js.map +1 -0
- package/dist/presentation/format/groups.js +99 -0
- package/dist/presentation/format/groups.js.map +1 -0
- package/dist/presentation/format/index.js +8 -0
- package/dist/presentation/format/index.js.map +1 -0
- package/dist/presentation/format/queue.js +109 -0
- package/dist/presentation/format/queue.js.map +1 -0
- package/dist/presentation/format/runs.js +209 -0
- package/dist/presentation/format/runs.js.map +1 -0
- package/dist/presentation/format/stats.js +79 -0
- package/dist/presentation/format/stats.js.map +1 -0
- package/dist/presentation/format/style.js +81 -0
- package/dist/presentation/format/style.js.map +1 -0
- package/dist/presentation/format/table.js +62 -0
- package/dist/presentation/format/table.js.map +1 -0
- package/dist/presentation/format/tags.js +26 -0
- package/dist/presentation/format/tags.js.map +1 -0
- package/dist/presentation/ipc/client/autostart.js +171 -0
- package/dist/presentation/ipc/client/autostart.js.map +1 -0
- package/dist/presentation/ipc/client/client.js +83 -0
- package/dist/presentation/ipc/client/client.js.map +1 -0
- package/dist/presentation/ipc/client/index.js +4 -0
- package/dist/presentation/ipc/client/index.js.map +1 -0
- package/dist/presentation/ipc/client/repository-argument.js +13 -0
- package/dist/presentation/ipc/client/repository-argument.js.map +1 -0
- package/dist/presentation/ipc/contract/agents.js +97 -0
- package/dist/presentation/ipc/contract/agents.js.map +1 -0
- package/dist/presentation/ipc/contract/artifacts.js +27 -0
- package/dist/presentation/ipc/contract/artifacts.js.map +1 -0
- package/dist/presentation/ipc/contract/config.js +145 -0
- package/dist/presentation/ipc/contract/config.js.map +1 -0
- package/dist/presentation/ipc/contract/envelope.js +100 -0
- package/dist/presentation/ipc/contract/envelope.js.map +1 -0
- package/dist/presentation/ipc/contract/groups.js +57 -0
- package/dist/presentation/ipc/contract/groups.js.map +1 -0
- package/dist/presentation/ipc/contract/index.js +15 -0
- package/dist/presentation/ipc/contract/index.js.map +1 -0
- package/dist/presentation/ipc/contract/observers/history.js +26 -0
- package/dist/presentation/ipc/contract/observers/history.js.map +1 -0
- package/dist/presentation/ipc/contract/observers.js +16 -0
- package/dist/presentation/ipc/contract/observers.js.map +1 -0
- package/dist/presentation/ipc/contract/panel.js +64 -0
- package/dist/presentation/ipc/contract/panel.js.map +1 -0
- package/dist/presentation/ipc/contract/processes.js +9 -0
- package/dist/presentation/ipc/contract/processes.js.map +1 -0
- package/dist/presentation/ipc/contract/queue.js +115 -0
- package/dist/presentation/ipc/contract/queue.js.map +1 -0
- package/dist/presentation/ipc/contract/repositories.js +33 -0
- package/dist/presentation/ipc/contract/repositories.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/artifacts.js +2 -0
- package/dist/presentation/ipc/contract/responses/artifacts.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/config.js +2 -0
- package/dist/presentation/ipc/contract/responses/config.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/groups.js +2 -0
- package/dist/presentation/ipc/contract/responses/groups.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/index.js +12 -0
- package/dist/presentation/ipc/contract/responses/index.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/observer-history.js +2 -0
- package/dist/presentation/ipc/contract/responses/observer-history.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/observers.js +2 -0
- package/dist/presentation/ipc/contract/responses/observers.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/processes.js +2 -0
- package/dist/presentation/ipc/contract/responses/processes.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/queue.js +2 -0
- package/dist/presentation/ipc/contract/responses/queue.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/repositories.js +2 -0
- package/dist/presentation/ipc/contract/responses/repositories.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/runs.js +2 -0
- package/dist/presentation/ipc/contract/responses/runs.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/stats.js +67 -0
- package/dist/presentation/ipc/contract/responses/stats.js.map +1 -0
- package/dist/presentation/ipc/contract/responses/tags.js +2 -0
- package/dist/presentation/ipc/contract/responses/tags.js.map +1 -0
- package/dist/presentation/ipc/contract/runs.js +118 -0
- package/dist/presentation/ipc/contract/runs.js.map +1 -0
- package/dist/presentation/ipc/contract/stats/stats.js +20 -0
- package/dist/presentation/ipc/contract/stats/stats.js.map +1 -0
- package/dist/presentation/ipc/contract/tags.js +40 -0
- package/dist/presentation/ipc/contract/tags.js.map +1 -0
- package/dist/presentation/ipc/handlers/config.js +39 -0
- package/dist/presentation/ipc/handlers/config.js.map +1 -0
- package/dist/presentation/ipc/handlers/groups.js +22 -0
- package/dist/presentation/ipc/handlers/groups.js.map +1 -0
- package/dist/presentation/ipc/handlers/index.js +2 -0
- package/dist/presentation/ipc/handlers/index.js.map +1 -0
- package/dist/presentation/ipc/handlers/observers.js +14 -0
- package/dist/presentation/ipc/handlers/observers.js.map +1 -0
- package/dist/presentation/ipc/handlers/queue.js +36 -0
- package/dist/presentation/ipc/handlers/queue.js.map +1 -0
- package/dist/presentation/ipc/handlers/repositories.js +26 -0
- package/dist/presentation/ipc/handlers/repositories.js.map +1 -0
- package/dist/presentation/ipc/handlers/runs.js +55 -0
- package/dist/presentation/ipc/handlers/runs.js.map +1 -0
- package/dist/presentation/ipc/handlers/stats.js +17 -0
- package/dist/presentation/ipc/handlers/stats.js.map +1 -0
- package/dist/presentation/ipc/handlers/system.js +40 -0
- package/dist/presentation/ipc/handlers/system.js.map +1 -0
- package/dist/presentation/ipc/handlers/table.js +25 -0
- package/dist/presentation/ipc/handlers/table.js.map +1 -0
- package/dist/presentation/ipc/handlers/types.js +2 -0
- package/dist/presentation/ipc/handlers/types.js.map +1 -0
- package/dist/presentation/ipc/publisher.js +176 -0
- package/dist/presentation/ipc/publisher.js.map +1 -0
- package/dist/presentation/ipc/server.js +164 -0
- package/dist/presentation/ipc/server.js.map +1 -0
- package/dist/presentation/ipc/services.js +2 -0
- package/dist/presentation/ipc/services.js.map +1 -0
- package/dist/presentation/ipc/snapshots.js +60 -0
- package/dist/presentation/ipc/snapshots.js.map +1 -0
- package/dist/presentation/ipc/views/catalog.js +9 -0
- package/dist/presentation/ipc/views/catalog.js.map +1 -0
- package/dist/presentation/ipc/views/groups.js +112 -0
- package/dist/presentation/ipc/views/groups.js.map +1 -0
- package/dist/presentation/ipc/views/index.js +11 -0
- package/dist/presentation/ipc/views/index.js.map +1 -0
- package/dist/presentation/ipc/views/observer-history.js +26 -0
- package/dist/presentation/ipc/views/observer-history.js.map +1 -0
- package/dist/presentation/ipc/views/observers.js +16 -0
- package/dist/presentation/ipc/views/observers.js.map +1 -0
- package/dist/presentation/ipc/views/queue.js +155 -0
- package/dist/presentation/ipc/views/queue.js.map +1 -0
- package/dist/presentation/ipc/views/repositories.js +34 -0
- package/dist/presentation/ipc/views/repositories.js.map +1 -0
- package/dist/presentation/ipc/views/rows.js +117 -0
- package/dist/presentation/ipc/views/rows.js.map +1 -0
- package/dist/presentation/ipc/views/run-stages.js +66 -0
- package/dist/presentation/ipc/views/run-stages.js.map +1 -0
- package/dist/presentation/ipc/views/runs.js +201 -0
- package/dist/presentation/ipc/views/runs.js.map +1 -0
- package/dist/presentation/ipc/views/stats.js +5 -0
- package/dist/presentation/ipc/views/stats.js.map +1 -0
- package/dist/presentation/ipc/views/tags.js +19 -0
- package/dist/presentation/ipc/views/tags.js.map +1 -0
- package/dist/presentation/mcp/host-kit.js +67 -0
- package/dist/presentation/mcp/host-kit.js.map +1 -0
- package/dist/presentation/mcp/host-queue-control.js +135 -0
- package/dist/presentation/mcp/host-queue-control.js.map +1 -0
- package/dist/presentation/mcp/host-queue.js +124 -0
- package/dist/presentation/mcp/host-queue.js.map +1 -0
- package/dist/presentation/mcp/host-runs.js +173 -0
- package/dist/presentation/mcp/host-runs.js.map +1 -0
- package/dist/presentation/mcp/host.js +34 -0
- package/dist/presentation/mcp/host.js.map +1 -0
- package/dist/presentation/mcp/index.js +3 -0
- package/dist/presentation/mcp/index.js.map +1 -0
- package/dist/presentation/mcp/tools.js +19 -0
- package/dist/presentation/mcp/tools.js.map +1 -0
- package/dist/presentation/mcp/worker-extra.js +144 -0
- package/dist/presentation/mcp/worker-extra.js.map +1 -0
- package/dist/presentation/mcp/worker-read.js +45 -0
- package/dist/presentation/mcp/worker-read.js.map +1 -0
- package/dist/presentation/mcp/worker-tools.js +107 -0
- package/dist/presentation/mcp/worker-tools.js.map +1 -0
- package/dist/presentation/mcp/worker.js +14 -0
- package/dist/presentation/mcp/worker.js.map +1 -0
- package/dist/presentation/web/errors.js +60 -0
- package/dist/presentation/web/errors.js.map +1 -0
- package/dist/presentation/web/http.js +130 -0
- package/dist/presentation/web/http.js.map +1 -0
- package/dist/presentation/web/hub.js +168 -0
- package/dist/presentation/web/hub.js.map +1 -0
- package/dist/presentation/web/index.js +7 -0
- package/dist/presentation/web/index.js.map +1 -0
- package/dist/presentation/web/options.js +7 -0
- package/dist/presentation/web/options.js.map +1 -0
- package/dist/presentation/web/pages.js +44 -0
- package/dist/presentation/web/pages.js.map +1 -0
- package/dist/presentation/web/panel/daemon-panel.js +207 -0
- package/dist/presentation/web/panel/daemon-panel.js.map +1 -0
- package/dist/presentation/web/panel/default-repository.js +14 -0
- package/dist/presentation/web/panel/default-repository.js.map +1 -0
- package/dist/presentation/web/panel/directories.js +48 -0
- package/dist/presentation/web/panel/directories.js.map +1 -0
- package/dist/presentation/web/panel/open.js +12 -0
- package/dist/presentation/web/panel/open.js.map +1 -0
- package/dist/presentation/web/panel/standby.js +119 -0
- package/dist/presentation/web/panel/standby.js.map +1 -0
- package/dist/presentation/web/panel/state.js +69 -0
- package/dist/presentation/web/panel/state.js.map +1 -0
- package/dist/presentation/web/panel/system.js +67 -0
- package/dist/presentation/web/panel/system.js.map +1 -0
- package/dist/presentation/web/request.js +150 -0
- package/dist/presentation/web/request.js.map +1 -0
- package/dist/presentation/web/routes/config.js +171 -0
- package/dist/presentation/web/routes/config.js.map +1 -0
- package/dist/presentation/web/routes/downloads.js +65 -0
- package/dist/presentation/web/routes/downloads.js.map +1 -0
- package/dist/presentation/web/routes/groups.js +85 -0
- package/dist/presentation/web/routes/groups.js.map +1 -0
- package/dist/presentation/web/routes/observers/history.js +19 -0
- package/dist/presentation/web/routes/observers/history.js.map +1 -0
- package/dist/presentation/web/routes/processes.js +21 -0
- package/dist/presentation/web/routes/processes.js.map +1 -0
- package/dist/presentation/web/routes/queue.js +80 -0
- package/dist/presentation/web/routes/queue.js.map +1 -0
- package/dist/presentation/web/routes/repositories.js +66 -0
- package/dist/presentation/web/routes/repositories.js.map +1 -0
- package/dist/presentation/web/routes/runs.js +76 -0
- package/dist/presentation/web/routes/runs.js.map +1 -0
- package/dist/presentation/web/routes/settings.js +74 -0
- package/dist/presentation/web/routes/settings.js.map +1 -0
- package/dist/presentation/web/routes/specialists.js +74 -0
- package/dist/presentation/web/routes/specialists.js.map +1 -0
- package/dist/presentation/web/routes/stats/stats.js +22 -0
- package/dist/presentation/web/routes/stats/stats.js.map +1 -0
- package/dist/presentation/web/routes/system.js +96 -0
- package/dist/presentation/web/routes/system.js.map +1 -0
- package/dist/presentation/web/routes/tags.js +46 -0
- package/dist/presentation/web/routes/tags.js.map +1 -0
- package/dist/presentation/web/routes/types.js +2 -0
- package/dist/presentation/web/routes/types.js.map +1 -0
- package/dist/presentation/web/server.js +187 -0
- package/dist/presentation/web/server.js.map +1 -0
- package/dist/web/assets/FilterColumn-BCMp-JO4.js +1 -0
- package/dist/web/assets/SharedPipelinesGroup-DJRGFtzx.js +1 -0
- package/dist/web/assets/badge-C_7kALlW.js +1 -0
- package/dist/web/assets/card-C9eXOVuF.js +1 -0
- package/dist/web/assets/deliveryModes-funlvXVC.js +1 -0
- package/dist/web/assets/empty-ACC2KkXk.js +41 -0
- package/dist/web/assets/index-CsVQUXJH.js +21 -0
- package/dist/web/assets/index-Ds1nt_qm.css +2 -0
- package/dist/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/web/assets/locales-fB1w2oER.js +1 -0
- package/dist/web/assets/pipelines-DLioOiRN.css +1 -0
- package/dist/web/assets/pipelines-DQglwIkL.js +10 -0
- package/dist/web/assets/queue-CAuAo--6.js +16 -0
- package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/web/assets/select-BSqaxwh1.js +1 -0
- package/dist/web/assets/settingFields-DVg9TQK2.js +1 -0
- package/dist/web/assets/settings-6eHKYbS7.js +2 -0
- package/dist/web/assets/skeleton-CfLYGtNX.js +1 -0
- package/dist/web/assets/specialists-Durm0DgK.js +1 -0
- package/dist/web/assets/stats-67akPa3A.js +1 -0
- package/dist/web/assets/topology-DQu3su19.js +1 -0
- package/dist/web/assets/trash-ChYI9ms1.js +1 -0
- package/dist/web/assets/useListDrag-0GPS1X83.js +1 -0
- package/dist/web/assets/vendor-markdown-DwXfjc7L.js +32 -0
- package/dist/web/assets/vendor-react-C1iE8mnY.js +9 -0
- package/dist/web/index.html +22 -0
- package/integrations/claude-code/.claude-plugin/plugin.json +19 -0
- package/integrations/claude-code/commands/apply.md +6 -0
- package/integrations/claude-code/commands/panel.md +6 -0
- package/integrations/claude-code/commands/run.md +6 -0
- package/integrations/claude-code/commands/status.md +6 -0
- package/integrations/claude-code/commands/web.md +6 -0
- package/integrations/claude-code/hooks/aip.ts +365 -0
- package/integrations/claude-code/hooks/feed.ts +923 -0
- package/integrations/claude-code/hooks/hooks.json +1 -0
- package/integrations/claude-code/hooks/pane.ts +396 -0
- package/integrations/claude-code/hooks/register.tsx +156 -0
- package/integrations/claude-code/hooks/theme.ts +59 -0
- package/integrations/claude-code/hooks/transcript.tsx +44 -0
- package/integrations/claude-code/hooks/view.tsx +378 -0
- package/integrations/claude-code/hooks/web.ts +162 -0
- package/integrations/claude-code/tsconfig.json +18 -0
- package/integrations/claude-code/types/index.d.ts +89 -0
- package/package.json +70 -4
- package/templates/aip/pipelines/feature.yaml +4 -0
- package/templates/aip/settings.yaml +10 -0
- package/templates/aip/specialists/coder.yaml +4 -0
- package/templates/aip/specialists/reviewer.yaml +5 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { actionOf, actionPointOf, allGroups, isRepairGroup, limitHolds, networkRetryAt, openAction, pointClosed, repositoryLimits, runningByRepository, runningBySpecialist, selectAttemptRuntime, specialistName, specialistOfStep, stepsOf, } from '../types/index.js';
|
|
2
|
+
import { OFF_NETWORK } from '../../network/types/index.js';
|
|
3
|
+
export function waitKey(run, slug) {
|
|
4
|
+
return `${run}/${slug}`;
|
|
5
|
+
}
|
|
6
|
+
function isDeliveryGroup(state, group) {
|
|
7
|
+
const point = actionPointOf(group);
|
|
8
|
+
if (point !== undefined)
|
|
9
|
+
return point === 'before_delivery' || point === 'after_delivery';
|
|
10
|
+
return group === state.message || group === state.resolve;
|
|
11
|
+
}
|
|
12
|
+
/** A command action runs a shell command: no specialist, no limits of the swarm. */
|
|
13
|
+
export function isCommandAction(state, group) {
|
|
14
|
+
const action = actionOf(state.run, group);
|
|
15
|
+
return action !== undefined && action.run !== null;
|
|
16
|
+
}
|
|
17
|
+
/** The pipeline has not reached the group yet: an action before it is not settled. */
|
|
18
|
+
function gated(state, group) {
|
|
19
|
+
const point = actionPointOf(group);
|
|
20
|
+
// A check shares the tree of the run with the merges: it starts on a tree no merge is changing.
|
|
21
|
+
if (point === 'before_delivery' && state.groups.some((other) => other.mergeInFlight))
|
|
22
|
+
return true;
|
|
23
|
+
if (point !== undefined)
|
|
24
|
+
return openAction(state, point) !== group;
|
|
25
|
+
if (group === state.split)
|
|
26
|
+
return !pointClosed(state, 'before_split');
|
|
27
|
+
if (state.groups.includes(group))
|
|
28
|
+
return !pointClosed(state, 'after_split');
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
/** An agent starts neither during the pause after a network failure nor while the network is down. */
|
|
32
|
+
function networkWaitOf(group, now, network) {
|
|
33
|
+
const retryAt = networkRetryAt(group);
|
|
34
|
+
if (retryAt !== null && retryAt > now) {
|
|
35
|
+
const failure = group.attempts.at(-1)?.reason;
|
|
36
|
+
const problem = network.problem ?? (failure?.kind === 'network' ? failure.problem : 'network');
|
|
37
|
+
return { reason: 'network', problem, until: retryAt };
|
|
38
|
+
}
|
|
39
|
+
if (network.state !== 'down')
|
|
40
|
+
return null;
|
|
41
|
+
return { reason: 'network', problem: network.problem ?? 'network is down', until: null };
|
|
42
|
+
}
|
|
43
|
+
/** The runtime the next attempt of the group would run on. */
|
|
44
|
+
function plannedRuntime(state, group, specialist, holds) {
|
|
45
|
+
const stepIndex = group.pending?.stepIndex ?? 0;
|
|
46
|
+
return selectAttemptRuntime({
|
|
47
|
+
specialist,
|
|
48
|
+
chains: state.run.config.chains,
|
|
49
|
+
defaults: state.run.config.defaults,
|
|
50
|
+
limitHolds: holds,
|
|
51
|
+
attempts: group.attempts,
|
|
52
|
+
stepIndex,
|
|
53
|
+
round: group.attempts.filter((a) => a.stepIndex === stepIndex).length + 1,
|
|
54
|
+
resume: group.pending?.resume ?? false,
|
|
55
|
+
keepRuntime: group.pending?.keepRuntime ?? false,
|
|
56
|
+
}).runtime;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Decides which queued groups start and which wait, without changing any state.
|
|
60
|
+
* `swarm.max` limits the running specialists of each repository separately; a specialist's
|
|
61
|
+
* `max` counts its slug across all runs.
|
|
62
|
+
*/
|
|
63
|
+
export function planDispatch(states, now, network = OFF_NETWORK) {
|
|
64
|
+
const start = [];
|
|
65
|
+
const waits = new Map();
|
|
66
|
+
const running = runningByRepository(states);
|
|
67
|
+
const limits = repositoryLimits(states);
|
|
68
|
+
const bySpecialist = runningBySpecialist(states);
|
|
69
|
+
const holds = limitHolds(states, now);
|
|
70
|
+
const queue = states
|
|
71
|
+
.filter((state) => state.run.finishedAt === null)
|
|
72
|
+
.sort((left, right) => left.run.createdAt - right.run.createdAt || left.run.id.localeCompare(right.run.id, 'en'))
|
|
73
|
+
.flatMap((state) => [...allGroups(state)]
|
|
74
|
+
.sort((left, right) => left.position - right.position)
|
|
75
|
+
// A held run starts no worker groups, no split step and no preparing action; delivery groups still run.
|
|
76
|
+
.filter((group) => state.run.hold === null || isDeliveryGroup(state, group))
|
|
77
|
+
.filter((group) => group.status === 'queued' && group.pending !== null)
|
|
78
|
+
.filter((group) => !gated(state, group))
|
|
79
|
+
.map((group) => ({ state, group })));
|
|
80
|
+
for (const { state, group } of queue) {
|
|
81
|
+
if (isCommandAction(state, group)) {
|
|
82
|
+
start.push({ state, group });
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
const key = waitKey(state.run.id, group.slug);
|
|
86
|
+
const networkWait = networkWaitOf(group, now, network);
|
|
87
|
+
if (networkWait !== null) {
|
|
88
|
+
waits.set(key, networkWait);
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
const slug = group.pending
|
|
92
|
+
? stepsOf(state.run, group)[group.pending.stepIndex]?.specialist
|
|
93
|
+
: undefined;
|
|
94
|
+
const specialist = slug ? specialistOfStep(state.run, group, slug) : undefined;
|
|
95
|
+
// The repair waits for no limit here: an agent that hits one ends the repair.
|
|
96
|
+
if (isRepairGroup(group)) {
|
|
97
|
+
start.push({ state, group });
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
const effectiveRuntime = specialist
|
|
101
|
+
? plannedRuntime(state, group, specialist, holds)
|
|
102
|
+
: undefined;
|
|
103
|
+
const until = effectiveRuntime ? holds.get(effectiveRuntime) : undefined;
|
|
104
|
+
if (effectiveRuntime && until !== undefined) {
|
|
105
|
+
waits.set(key, { reason: 'limit', runtime: effectiveRuntime, until });
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
const limit = specialist?.max ?? null;
|
|
109
|
+
if (slug && limit !== null && (bySpecialist.get(slug) ?? 0) >= limit) {
|
|
110
|
+
waits.set(key, {
|
|
111
|
+
reason: 'specialist',
|
|
112
|
+
specialist: slug,
|
|
113
|
+
name: specialistName(state.run.config, slug),
|
|
114
|
+
max: limit,
|
|
115
|
+
});
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
const repository = state.run.repository;
|
|
119
|
+
const max = limits.get(repository) ?? state.run.config.max;
|
|
120
|
+
if ((running.get(repository) ?? 0) >= max) {
|
|
121
|
+
// A step without a specialist is a configuration error, not a wait.
|
|
122
|
+
if (specialist)
|
|
123
|
+
waits.set(key, { reason: 'capacity', max });
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
start.push({ state, group });
|
|
127
|
+
if (slug)
|
|
128
|
+
bySpecialist.set(slug, (bySpecialist.get(slug) ?? 0) + 1);
|
|
129
|
+
running.set(repository, (running.get(repository) ?? 0) + 1);
|
|
130
|
+
}
|
|
131
|
+
return { start, waits };
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=plan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../../src/feature/runs/machine/plan.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,QAAQ,EACR,aAAa,EACb,SAAS,EACT,aAAa,EACb,UAAU,EACV,cAAc,EACd,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,OAAO,GACR,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAwB,MAAM,8BAA8B,CAAC;AASjF,MAAM,UAAU,OAAO,CAAC,GAAW,EAAE,IAAY;IAC/C,OAAO,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;AAC1B,CAAC;AAED,SAAS,eAAe,CAAC,KAAe,EAAE,KAAY;IACpD,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACnC,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,KAAK,iBAAiB,IAAI,KAAK,KAAK,gBAAgB,CAAC;IAC1F,OAAO,KAAK,KAAK,KAAK,CAAC,OAAO,IAAI,KAAK,KAAK,KAAK,CAAC,OAAO,CAAC;AAC5D,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,eAAe,CAAC,KAAe,EAAE,KAAY;IAC3D,MA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AAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACpE,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9D,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { rejected } from '../../../platform/errors/index.js';
|
|
2
|
+
import { REPAIR_GROUP, freshPending, isTerminal, newGroup, runProblems, } from '../types/index.js';
|
|
3
|
+
import { renderCommitMessage } from './texts.js';
|
|
4
|
+
/** Position of the repair group among the groups of a run. */
|
|
5
|
+
const REPAIR_POSITION = 1_000_002;
|
|
6
|
+
const RULES = [
|
|
7
|
+
'You are an observer: you repair one task without a person. Work only on this task.',
|
|
8
|
+
'Tools: swarm_repair_answer { group, answer } answers a question of a group; swarm_repair_retry { group, refresh_config? } restarts a failed or conflicted group; swarm_repair_cancel { group?, reason } cancels a group, or the whole task without `group`, and the reason stays visible in the task.',
|
|
9
|
+
'You cannot touch other tasks, the queue or the settings. A question marked for a person only (human review or human only) is never yours: you cannot answer it, and you cannot cancel its group or the task while it waits; leave it to the person.',
|
|
10
|
+
'Finish with swarm_report: done when the incident is dealt with; rejected or needs_human when a person must take over — the incident then stays with the person.',
|
|
11
|
+
];
|
|
12
|
+
function groupsText(state) {
|
|
13
|
+
const lines = state.groups.map((group) => {
|
|
14
|
+
const delivery = group.status === 'merged' ? `, delivery ${group.delivery.state}` : '';
|
|
15
|
+
const person = group.status === 'needs_human' && group.humanOnly !== null
|
|
16
|
+
? ', question for a person only'
|
|
17
|
+
: '';
|
|
18
|
+
return `- ${group.slug} (${group.title}): ${group.status}${delivery}${person}`;
|
|
19
|
+
});
|
|
20
|
+
return lines.join('\n') || '- (none)';
|
|
21
|
+
}
|
|
22
|
+
/** The task of the observer: the incident, the state of the task and the rules. */
|
|
23
|
+
export function repairTask(state, incident, extra = {}) {
|
|
24
|
+
const parts = [
|
|
25
|
+
...RULES,
|
|
26
|
+
`Task ${state.run.id}${state.run.title ? ` — ${state.run.title}` : ''}.`,
|
|
27
|
+
`Incident: ${incident.kind} in group \`${incident.group}\`.\n${incident.detail}`.trim(),
|
|
28
|
+
`Groups:\n${groupsText(state)}`,
|
|
29
|
+
];
|
|
30
|
+
if (incident.kind === 'delivery') {
|
|
31
|
+
parts.push("Your working directory holds the user's current working tree with the changes of the task applied on top. Resolve every git conflict marker (<<<<<<<, =======, >>>>>>>), keeping both the edits of the user and the intent of the task, then report done. Delivery runs afterwards without force; leftover markers make it fail.");
|
|
32
|
+
if (extra.conflicts && extra.conflicts.length > 0) {
|
|
33
|
+
parts.push(`Conflicting files:\n${extra.conflicts.map((file) => `- ${file}`).join('\n')}`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return parts.join('\n\n');
|
|
37
|
+
}
|
|
38
|
+
/** A new attempt of the repair group: creates the group or queues the existing one again. */
|
|
39
|
+
export function openRepairGroup(state, task) {
|
|
40
|
+
if (state.repair === null) {
|
|
41
|
+
state.repair = newGroup(REPAIR_GROUP, 'repair', task, REPAIR_POSITION);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
state.repair.task = task;
|
|
45
|
+
state.repair.status = 'queued';
|
|
46
|
+
state.repair.pending = freshPending(0);
|
|
47
|
+
state.repair.reason = null;
|
|
48
|
+
state.repair.question = null;
|
|
49
|
+
state.repair.questions = null;
|
|
50
|
+
state.repair.humanOnly = null;
|
|
51
|
+
}
|
|
52
|
+
/** Keys of the `apply_failed` incidents of the groups of a delivery. */
|
|
53
|
+
export function deliveryKeys(state, groups) {
|
|
54
|
+
return runProblems(state)
|
|
55
|
+
.filter((problem) => problem.reason === 'apply_failed' &&
|
|
56
|
+
problem.group !== null &&
|
|
57
|
+
groups.includes(problem.group))
|
|
58
|
+
.map((problem) => problem.key);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The only way out of a repair: clears the incident and the profile, drops the delivery the repair
|
|
62
|
+
* started, adds `taken` to the incidents already reported on and, with `refund`, gives the repair
|
|
63
|
+
* back.
|
|
64
|
+
*/
|
|
65
|
+
export function closeRepair(state, options) {
|
|
66
|
+
const { repair } = state.run;
|
|
67
|
+
if (options.refund && repair.repairs > 0)
|
|
68
|
+
repair.repairs -= 1;
|
|
69
|
+
for (const key of options.taken) {
|
|
70
|
+
if (!repair.taken.includes(key))
|
|
71
|
+
repair.taken.push(key);
|
|
72
|
+
}
|
|
73
|
+
repair.incident = null;
|
|
74
|
+
repair.specialist = null;
|
|
75
|
+
if (state.run.pendingDelivery?.repair)
|
|
76
|
+
state.run.pendingDelivery = null;
|
|
77
|
+
}
|
|
78
|
+
export function repairStart(m, incident, specialist) {
|
|
79
|
+
const { run } = m.state;
|
|
80
|
+
if (run.repair.incident !== null)
|
|
81
|
+
throw rejected('a repair of this run is already going');
|
|
82
|
+
if (run.hold !== null)
|
|
83
|
+
throw rejected(`run is ${run.hold}; observers do not take it`);
|
|
84
|
+
if (incident.kind === 'delivery') {
|
|
85
|
+
if (run.pendingDelivery !== null) {
|
|
86
|
+
throw rejected(`a delivery of run ${run.id} is already in progress`);
|
|
87
|
+
}
|
|
88
|
+
const groups = m.state.groups.filter((group) => group.status === 'merged' && group.delivery.state === 'apply_failed');
|
|
89
|
+
if (groups.length === 0)
|
|
90
|
+
throw rejected('no delivery to repair');
|
|
91
|
+
run.repair.incident = incident;
|
|
92
|
+
run.repair.specialist = specialist;
|
|
93
|
+
run.repair.repairs += 1;
|
|
94
|
+
run.pendingDelivery = {
|
|
95
|
+
groups: groups.map((group) => group.slug),
|
|
96
|
+
force: false,
|
|
97
|
+
auto: false,
|
|
98
|
+
round: 1,
|
|
99
|
+
repair: true,
|
|
100
|
+
message: renderCommitMessage(run.config.delivery.commitMessage, m.state, groups),
|
|
101
|
+
};
|
|
102
|
+
m.effects.push({
|
|
103
|
+
kind: 'prepare_resolve',
|
|
104
|
+
run: run.id,
|
|
105
|
+
groups: run.pendingDelivery.groups,
|
|
106
|
+
round: 1,
|
|
107
|
+
});
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
run.repair.incident = incident;
|
|
111
|
+
run.repair.specialist = specialist;
|
|
112
|
+
run.repair.repairs += 1;
|
|
113
|
+
openRepairGroup(m.state, repairTask(m.state, incident));
|
|
114
|
+
}
|
|
115
|
+
export function repairAllowed(m, allowed) {
|
|
116
|
+
const { repair } = m.state.run;
|
|
117
|
+
if (allowed === repair.allowed)
|
|
118
|
+
return;
|
|
119
|
+
repair.allowed = allowed;
|
|
120
|
+
if (!allowed) {
|
|
121
|
+
stopRepair(m, { reason: null, refund: false });
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
// Returning the task to observers starts its count again.
|
|
125
|
+
repair.repairs = 0;
|
|
126
|
+
repair.taken = [];
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Ends the repair that goes on: the agent stops, the group is cancelled with `reason` and the
|
|
130
|
+
* incident is released. Nothing happens when no repair goes on.
|
|
131
|
+
*/
|
|
132
|
+
export function stopRepair(m, options) {
|
|
133
|
+
if (m.state.run.repair.incident === null)
|
|
134
|
+
return;
|
|
135
|
+
if (options.reason === 'paused')
|
|
136
|
+
m.pausedRepair = true;
|
|
137
|
+
const group = m.state.repair;
|
|
138
|
+
if (group && !isTerminal(group.status)) {
|
|
139
|
+
group.status = 'cancelled';
|
|
140
|
+
group.pending = null;
|
|
141
|
+
if (options.reason !== null)
|
|
142
|
+
group.reason = options.reason;
|
|
143
|
+
for (const attempt of group.attempts) {
|
|
144
|
+
if (attempt.status !== 'running')
|
|
145
|
+
continue;
|
|
146
|
+
attempt.status = 'cancelled';
|
|
147
|
+
attempt.finishedAt = m.now;
|
|
148
|
+
m.effects.push({
|
|
149
|
+
kind: 'stop_attempt',
|
|
150
|
+
run: m.state.run.id,
|
|
151
|
+
group: group.slug,
|
|
152
|
+
seq: attempt.seq,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
closeRepair(m.state, { taken: [], refund: options.refund });
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=repair.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repair.js","sourceRoot":"","sources":["../../../../src/feature/runs/machine/repair.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D,OAAO,EAGL,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,8DAA8D;AAC9D,MAAM,eAAe,GAAG,SAAS,CAAC;AAElC,MAAM,KAAK,GAAG;IACZ,oFAAoF;IACpF,uSAAuS;IACvS,qPAAqP;IACrP,iKAAiK;CAClK,CAAC;AAEF,SAAS,UAAU,CAAC,KAAe;IACjC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACvC,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvF,MAAM,MAAM,GACV,KAAK,CAAC,MAAM,KAAK,aAAa,IAAI,KAAK,CAAC,SAAS,KAAK,IAAI;YACxD,CAAC,CAAC,8BAA8B;YAChC,CAAC,CAAC,EAAE,CAAC;QACT,OAAO,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,KAAK,MAAM,KAAK,CAAC,MAAM,GAAG,QAAQ,GAAG,MAAM,EAAE,CAAC;IACjF,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC,IAAI,CAAC,IA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reshSpecialists, } from '../../agents/types/index.js';
|
|
3
|
+
import { REPAIR_GROUP, actionGroupsOf, allGroups, attemptVerdict, deliveryCheckActive, isActionGroup, isMessageGroup, isRepairGroup, isResolveGroup, isServiceGroup, isTerminal, lastUnskipped, pointClosed, pointStalled, stepsOf, } from '../types/index.js';
|
|
4
|
+
import { refreshPermissionsOf, wrongStatus } from './answers.js';
|
|
5
|
+
import { cancelDelivery, requestDelivery } from './delivery-flow.js';
|
|
6
|
+
import { closeRepair, stopRepair } from './repair.js';
|
|
7
|
+
import { continueAfterMessage, continueAfterPause, enqueueMerge, failGroup, groupOf, restorePending, } from './steps.js';
|
|
8
|
+
/** Stops the running agents of the groups before delivery; their steps go on after the pause. */
|
|
9
|
+
function pauseAttempts(m) {
|
|
10
|
+
const groups = [
|
|
11
|
+
...actionGroupsOf(m.state, 'before_split'),
|
|
12
|
+
...(m.state.split ? [m.state.split] : []),
|
|
13
|
+
...actionGroupsOf(m.state, 'after_split'),
|
|
14
|
+
...m.state.groups,
|
|
15
|
+
];
|
|
16
|
+
for (const group of groups) {
|
|
17
|
+
for (const attempt of group.attempts) {
|
|
18
|
+
if (attempt.status !== 'running' || attempt.report !== null || attempt.reason !== null) {
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
// A command cannot continue after a pause; it runs to its end.
|
|
22
|
+
if (attempt.runtime === 'command')
|
|
23
|
+
continue;
|
|
24
|
+
attempt.reason = { kind: 'paused', at: m.now };
|
|
25
|
+
m.effects.push({
|
|
26
|
+
kind: 'stop_attempt',
|
|
27
|
+
run: m.state.run.id,
|
|
28
|
+
group: group.slug,
|
|
29
|
+
seq: attempt.seq,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export function holdRun(m, hold) {
|
|
35
|
+
if (hold !== null && m.state.run.finishedAt !== null && m.state.run.hold === null) {
|
|
36
|
+
throw rejected('a finished run cannot be held');
|
|
37
|
+
}
|
|
38
|
+
const pausing = hold === 'paused' && m.state.run.hold !== 'paused';
|
|
39
|
+
m.state.run.hold = hold;
|
|
40
|
+
if (!pausing)
|
|
41
|
+
return;
|
|
42
|
+
// A pause stops the running agents; their steps go on in the same session after it.
|
|
43
|
+
pauseAttempts(m);
|
|
44
|
+
// A repair does not continue after a pause: its incident is taken again, and it is not counted.
|
|
45
|
+
stopRepair(m, { reason: 'paused', refund: true });
|
|
46
|
+
}
|
|
47
|
+
/** Cancels the running attempts of a group. */
|
|
48
|
+
function cancelAttempts(m, group) {
|
|
49
|
+
for (const attempt of group.attempts) {
|
|
50
|
+
if (attempt.status !== 'running')
|
|
51
|
+
continue;
|
|
52
|
+
attempt.status = 'cancelled';
|
|
53
|
+
attempt.finishedAt = m.now;
|
|
54
|
+
m.effects.push({
|
|
55
|
+
kind: 'stop_attempt',
|
|
56
|
+
run: m.state.run.id,
|
|
57
|
+
group: group.slug,
|
|
58
|
+
seq: attempt.seq,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export function cancelGroups(m, only, reason) {
|
|
63
|
+
if (only === REPAIR_GROUP && m.state.repair === null) {
|
|
64
|
+
// The tree of a delivery repair is still being prepared: there is no group to cancel yet.
|
|
65
|
+
stopRepair(m, { reason: null, refund: false });
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const groups = only === null ? allGroups(m.state) : [groupOf(m, only)];
|
|
69
|
+
for (const group of groups) {
|
|
70
|
+
// A failed action can be cancelled by name: that releases the pipeline held by it.
|
|
71
|
+
const failedAction = only !== null && isActionGroup(group) && group.status === 'failed';
|
|
72
|
+
if (isTerminal(group.status) && !failedAction)
|
|
73
|
+
continue;
|
|
74
|
+
group.status = 'cancelled';
|
|
75
|
+
if (reason !== undefined)
|
|
76
|
+
group.reason = reason;
|
|
77
|
+
group.mergeInFlight = false;
|
|
78
|
+
if (isMessageGroup(group) || isResolveGroup(group))
|
|
79
|
+
cancelDelivery(m.state);
|
|
80
|
+
cancelAttempts(m, group);
|
|
81
|
+
}
|
|
82
|
+
if (only === null || only === REPAIR_GROUP) {
|
|
83
|
+
if (only === null && reason !== undefined)
|
|
84
|
+
m.state.run.repair.cancelReason = reason;
|
|
85
|
+
stopRepair(m, { reason: null, refund: false });
|
|
86
|
+
}
|
|
87
|
+
// Cancelling the whole run also cancels a delivery that waits for the checks, even when the
|
|
88
|
+
// cancelled checks do not stop the pipeline.
|
|
89
|
+
if (only === null && m.state.run.pendingDelivery?.checks) {
|
|
90
|
+
cancelDelivery(m.state);
|
|
91
|
+
m.checksCancelled = true;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/** The attempts of a group that were running when the daemon stopped. */
|
|
95
|
+
function interruptGroup(m, group) {
|
|
96
|
+
let wasRunning = false;
|
|
97
|
+
for (const attempt of group.attempts) {
|
|
98
|
+
if (attempt.status !== 'running')
|
|
99
|
+
continue;
|
|
100
|
+
if (attempt.reason?.kind === 'message') {
|
|
101
|
+
continueAfterMessage(m, group, attempt, attempt.reason);
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
if (attempt.reason?.kind === 'paused') {
|
|
105
|
+
continueAfterPause(m, group, attempt);
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
attempt.status = 'failed';
|
|
109
|
+
attempt.reason = { kind: 'interrupted' };
|
|
110
|
+
attempt.finishedAt = m.now;
|
|
111
|
+
wasRunning = true;
|
|
112
|
+
}
|
|
113
|
+
group.mergeInFlight = false;
|
|
114
|
+
if (wasRunning)
|
|
115
|
+
failGroup(m, group, { kind: 'interrupted' });
|
|
116
|
+
}
|
|
117
|
+
/** A repair delivery is not resumed: the incident is taken again. */
|
|
118
|
+
function dropRepairDelivery(m) {
|
|
119
|
+
const group = m.state.repair;
|
|
120
|
+
if (group && !isTerminal(group.status)) {
|
|
121
|
+
group.status = 'failed';
|
|
122
|
+
group.reason = 'interrupted';
|
|
123
|
+
group.pending = null;
|
|
124
|
+
}
|
|
125
|
+
closeRepair(m.state, { taken: [], refund: false });
|
|
126
|
+
}
|
|
127
|
+
/** A delivery that waited for the checks when the daemon stopped. */
|
|
128
|
+
function resumeChecks(m, delivery) {
|
|
129
|
+
if (pointStalled(m.state, 'before_delivery')) {
|
|
130
|
+
for (const group of actionGroupsOf(m.state, 'before_delivery')) {
|
|
131
|
+
if (group.status !== 'queued')
|
|
132
|
+
continue;
|
|
133
|
+
group.status = 'cancelled';
|
|
134
|
+
group.reason = 'delivery interrupted';
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
// The interrupted check may fail without stopping the pipeline: the delivery goes on
|
|
139
|
+
// after the remaining checks, without entering the point (and running the command) again.
|
|
140
|
+
m.state.run.pendingDelivery = delivery;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
export function interrupted(m) {
|
|
144
|
+
// Whatever the delivery was doing (git work, the message writer, the resolver) died with
|
|
145
|
+
// the old daemon; drop it before failing its service groups, then start it again.
|
|
146
|
+
const delivery = m.state.run.pendingDelivery;
|
|
147
|
+
m.state.run.pendingDelivery = null;
|
|
148
|
+
for (const group of allGroups(m.state))
|
|
149
|
+
interruptGroup(m, group);
|
|
150
|
+
if (delivery?.repair) {
|
|
151
|
+
dropRepairDelivery(m);
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
if (delivery?.checks)
|
|
155
|
+
resumeChecks(m, delivery);
|
|
156
|
+
// An interrupted action before delivery is not started again: the delivery waits for a new request.
|
|
157
|
+
if (delivery && !delivery.checks && pointClosed(m.state, 'before_delivery')) {
|
|
158
|
+
try {
|
|
159
|
+
m.effects.push(...requestDelivery(m.state, {
|
|
160
|
+
groups: delivery.groups,
|
|
161
|
+
force: delivery.force,
|
|
162
|
+
files: delivery.files ?? [],
|
|
163
|
+
auto: delivery.auto,
|
|
164
|
+
}, { resume: true }));
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
if (!isRejected(error))
|
|
168
|
+
throw error;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
export function mergeFinished(m, slug, outcome) {
|
|
173
|
+
const group = groupOf(m, slug);
|
|
174
|
+
if (group.status !== 'merging' || !group.mergeInFlight)
|
|
175
|
+
return;
|
|
176
|
+
group.mergeInFlight = false;
|
|
177
|
+
group.updateOnConflict = false;
|
|
178
|
+
switch (outcome.kind) {
|
|
179
|
+
case 'merged':
|
|
180
|
+
group.status = 'merged';
|
|
181
|
+
group.mergeCommit = outcome.commit;
|
|
182
|
+
group.conflictFiles = [];
|
|
183
|
+
group.reason = null;
|
|
184
|
+
break;
|
|
185
|
+
case 'conflict':
|
|
186
|
+
group.status = 'conflict';
|
|
187
|
+
group.conflictFiles = outcome.files;
|
|
188
|
+
group.reason = `merge conflict in ${outcome.files.join(', ')}`;
|
|
189
|
+
break;
|
|
190
|
+
case 'conflict_updated':
|
|
191
|
+
group.status = 'queued';
|
|
192
|
+
group.conflictFiles = outcome.files;
|
|
193
|
+
group.reason = null;
|
|
194
|
+
group.pending = {
|
|
195
|
+
stepIndex: lastUnskipped(m.state.run, group),
|
|
196
|
+
feedback: `The branch of this group was updated from the run branch and has merge conflicts in: ${outcome.files.join(', ')}. Resolve every conflict, keep the intent of both sides, and report done.`,
|
|
197
|
+
humanAnswer: null,
|
|
198
|
+
resume: false,
|
|
199
|
+
};
|
|
200
|
+
break;
|
|
201
|
+
case 'failed':
|
|
202
|
+
failGroup(m, group, { kind: 'git', message: outcome.message });
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
export function startNextMerge(m) {
|
|
207
|
+
if (m.state.groups.some((group) => group.mergeInFlight))
|
|
208
|
+
return;
|
|
209
|
+
if (deliveryCheckActive(m.state))
|
|
210
|
+
return;
|
|
211
|
+
const next = m.state.groups
|
|
212
|
+
.filter((group) => group.status === 'merging')
|
|
213
|
+
.sort((left, right) => (left.mergeSeq ?? 0) - (right.mergeSeq ?? 0))[0];
|
|
214
|
+
if (!next)
|
|
215
|
+
return;
|
|
216
|
+
next.mergeInFlight = true;
|
|
217
|
+
m.effects.push({
|
|
218
|
+
kind: 'merge',
|
|
219
|
+
run: m.state.run.id,
|
|
220
|
+
group: next.slug,
|
|
221
|
+
updateOnConflict: next.updateOnConflict,
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
function rejectDeliveryRetry(group) {
|
|
225
|
+
if (isMessageGroup(group) || isResolveGroup(group)) {
|
|
226
|
+
throw rejected(`group ${group.slug} is ${group.status}; delivery is retried with \`aip run apply\``);
|
|
227
|
+
}
|
|
228
|
+
if (isRepairGroup(group)) {
|
|
229
|
+
throw rejected(`group ${group.slug} is ${group.status}; observers take a repair again`);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
function retryCancelled(m, group) {
|
|
233
|
+
group.reason = null;
|
|
234
|
+
if (group.question !== null) {
|
|
235
|
+
group.status = 'needs_human';
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
const last = group.attempts.at(-1);
|
|
239
|
+
if (group.pending === null &&
|
|
240
|
+
last &&
|
|
241
|
+
!isServiceGroup(group) &&
|
|
242
|
+
attemptVerdict(last) === 'done' &&
|
|
243
|
+
last.stepIndex + 1 >= stepsOf(m.state.run, group).length) {
|
|
244
|
+
enqueueMerge(m, group, false);
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
restorePending(group);
|
|
248
|
+
group.status = 'queued';
|
|
249
|
+
}
|
|
250
|
+
export function retryGroup(m, slug, permissions, specialists) {
|
|
251
|
+
const group = groupOf(m, slug);
|
|
252
|
+
if (group.status === 'failed' || group.status === 'cancelled')
|
|
253
|
+
rejectDeliveryRetry(group);
|
|
254
|
+
if (group.status === 'failed') {
|
|
255
|
+
group.status = 'queued';
|
|
256
|
+
group.reason = null;
|
|
257
|
+
}
|
|
258
|
+
else if (group.status === 'conflict') {
|
|
259
|
+
enqueueMerge(m, group, true);
|
|
260
|
+
}
|
|
261
|
+
else if (group.status === 'cancelled') {
|
|
262
|
+
retryCancelled(m, group);
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
throw wrongStatus(group, 'retry', 'failed, cancelled or conflict');
|
|
266
|
+
}
|
|
267
|
+
// After every check: a refused retry leaves the snapshot as it was.
|
|
268
|
+
if (specialists) {
|
|
269
|
+
const changes = refreshSpecialists(m.state.run.config, specialists);
|
|
270
|
+
group.warnings.push(`config refreshed: ${changes.length > 0 ? changes.join('; ') : 'no changes'}`);
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
refreshPermissionsOf(m, group, permissions);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
//# sourceMappingURL=run-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-control.js","sourceRoot":"","sources":["../../../../src/feature/runs/machine/run-control.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAGL,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAIL,YAAY,EACZ,cAAc,EACd,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,aAAa,EACb,cAAc,EACd,cAAc,EACd,UAAU,EACV,aAAa,EACb,WAAW,EACX,YAAY,EACZ,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,OAAO,EACP,cAAc,GACf,MAAM,YAAY,CAAC;AAEpB,iGAAiG;AACjG,SAAS,aAAa,CAAC,CAAM;IAC3B,MAAM,MAAM,GAAG;QACb,GAAG,cA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