@hoknie/aip 0.3.1 → 0.5.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 +3 -0
- package/dist/app/actors.js +82 -0
- package/dist/app/actors.js.map +1 -0
- package/dist/app/agents.js +9 -1
- package/dist/app/agents.js.map +1 -1
- package/dist/app/application.js +72 -57
- package/dist/app/application.js.map +1 -1
- package/dist/app/integration-operations.js +34 -0
- package/dist/app/integration-operations.js.map +1 -0
- package/dist/app/lifecycle.js +91 -2
- package/dist/app/lifecycle.js.map +1 -1
- package/dist/app/maintenance.js +4 -0
- package/dist/app/maintenance.js.map +1 -1
- package/dist/app/notifications/index.js +44 -0
- package/dist/app/notifications/index.js.map +1 -0
- package/dist/app/oidc.js +27 -0
- package/dist/app/oidc.js.map +1 -0
- package/dist/app/saml.js +43 -0
- package/dist/app/saml.js.map +1 -0
- package/dist/app/timings.js +2 -1
- package/dist/app/timings.js.map +1 -1
- package/dist/app/wire.js +88 -0
- package/dist/app/wire.js.map +1 -0
- package/dist/app/wiring.js +10 -0
- package/dist/app/wiring.js.map +1 -1
- package/dist/cli/main.js +42 -0
- package/dist/cli/main.js.map +1 -1
- package/dist/feature/access/services/access.js +73 -0
- package/dist/feature/access/services/access.js.map +1 -0
- package/dist/feature/access/services/create.js +31 -0
- package/dist/feature/access/services/create.js.map +1 -0
- package/dist/feature/access/services/index.js +3 -0
- package/dist/feature/access/services/index.js.map +1 -0
- package/dist/feature/access/types/actions.js +145 -0
- package/dist/feature/access/types/actions.js.map +1 -0
- package/dist/feature/access/types/evaluate.js +58 -0
- package/dist/feature/access/types/evaluate.js.map +1 -0
- package/dist/feature/access/types/index.js +4 -0
- package/dist/feature/access/types/index.js.map +1 -0
- package/dist/feature/access/types/presets.js +41 -0
- package/dist/feature/access/types/presets.js.map +1 -0
- package/dist/feature/agents/clients/agy/runtime.js +1 -0
- package/dist/feature/agents/clients/agy/runtime.js.map +1 -1
- package/dist/feature/agents/clients/claude/parser.js +7 -1
- package/dist/feature/agents/clients/claude/parser.js.map +1 -1
- package/dist/feature/agents/clients/claude/permissions.js +5 -2
- package/dist/feature/agents/clients/claude/permissions.js.map +1 -1
- package/dist/feature/agents/clients/claude/runtime.js +2 -0
- package/dist/feature/agents/clients/claude/runtime.js.map +1 -1
- package/dist/feature/agents/clients/cline/events.js +36 -0
- package/dist/feature/agents/clients/cline/events.js.map +1 -0
- package/dist/feature/agents/clients/cline/gate.js +55 -0
- package/dist/feature/agents/clients/cline/gate.js.map +1 -0
- package/dist/feature/agents/clients/cline/index.js +5 -0
- package/dist/feature/agents/clients/cline/index.js.map +1 -0
- package/dist/feature/agents/clients/cline/parser.js +41 -0
- package/dist/feature/agents/clients/cline/parser.js.map +1 -0
- package/dist/feature/agents/clients/cline/runtime.js +126 -0
- package/dist/feature/agents/clients/cline/runtime.js.map +1 -0
- package/dist/feature/agents/clients/cline/transcript.js +49 -0
- package/dist/feature/agents/clients/cline/transcript.js.map +1 -0
- package/dist/feature/agents/clients/codex/config.js +72 -0
- package/dist/feature/agents/clients/codex/config.js.map +1 -0
- package/dist/feature/agents/clients/codex/events.js +35 -0
- package/dist/feature/agents/clients/codex/events.js.map +1 -0
- package/dist/feature/agents/clients/codex/index.js +5 -0
- package/dist/feature/agents/clients/codex/index.js.map +1 -0
- package/dist/feature/agents/clients/codex/parser.js +54 -0
- package/dist/feature/agents/clients/codex/parser.js.map +1 -0
- package/dist/feature/agents/clients/codex/runtime.js +83 -0
- package/dist/feature/agents/clients/codex/runtime.js.map +1 -0
- package/dist/feature/agents/clients/codex/transcript.js +84 -0
- package/dist/feature/agents/clients/codex/transcript.js.map +1 -0
- package/dist/feature/agents/clients/copilot/config.js +25 -0
- package/dist/feature/agents/clients/copilot/config.js.map +1 -0
- package/dist/feature/agents/clients/copilot/events.js +43 -0
- package/dist/feature/agents/clients/copilot/events.js.map +1 -0
- package/dist/feature/agents/clients/copilot/gate.js +79 -0
- package/dist/feature/agents/clients/copilot/gate.js.map +1 -0
- package/dist/feature/agents/clients/copilot/index.js +6 -0
- package/dist/feature/agents/clients/copilot/index.js.map +1 -0
- package/dist/feature/agents/clients/copilot/parser.js +58 -0
- package/dist/feature/agents/clients/copilot/parser.js.map +1 -0
- package/dist/feature/agents/clients/copilot/runtime.js +149 -0
- package/dist/feature/agents/clients/copilot/runtime.js.map +1 -0
- package/dist/feature/agents/clients/copilot/sandbox.js +107 -0
- package/dist/feature/agents/clients/copilot/sandbox.js.map +1 -0
- package/dist/feature/agents/clients/copilot/transcript.js +45 -0
- package/dist/feature/agents/clients/copilot/transcript.js.map +1 -0
- package/dist/feature/agents/clients/kilo/config.js +84 -0
- package/dist/feature/agents/clients/kilo/config.js.map +1 -0
- package/dist/feature/agents/clients/kilo/index.js +3 -0
- package/dist/feature/agents/clients/kilo/index.js.map +1 -0
- package/dist/feature/agents/clients/kilo/runtime.js +87 -0
- package/dist/feature/agents/clients/kilo/runtime.js.map +1 -0
- package/dist/feature/agents/clients/opencode/parser.js +24 -1
- package/dist/feature/agents/clients/opencode/parser.js.map +1 -1
- package/dist/feature/agents/clients/opencode/runtime.js +1 -0
- package/dist/feature/agents/clients/opencode/runtime.js.map +1 -1
- package/dist/feature/agents/clients/policy/decision.js +69 -0
- package/dist/feature/agents/clients/policy/decision.js.map +1 -0
- package/dist/feature/agents/clients/policy/gate.js +37 -0
- package/dist/feature/agents/clients/policy/gate.js.map +1 -0
- package/dist/feature/agents/clients/policy/index.js +4 -0
- package/dist/feature/agents/clients/policy/index.js.map +1 -0
- package/dist/feature/agents/clients/policy/mcp.js +45 -0
- package/dist/feature/agents/clients/policy/mcp.js.map +1 -0
- package/dist/feature/agents/services/agents.js +18 -6
- package/dist/feature/agents/services/agents.js.map +1 -1
- package/dist/feature/agents/services/create.js +3 -1
- package/dist/feature/agents/services/create.js.map +1 -1
- package/dist/feature/agents/services/index.js +1 -0
- package/dist/feature/agents/services/index.js.map +1 -1
- package/dist/feature/agents/services/providers.js +82 -0
- package/dist/feature/agents/services/providers.js.map +1 -0
- package/dist/feature/agents/services/skills.js +4 -1
- package/dist/feature/agents/services/skills.js.map +1 -1
- package/dist/feature/agents/services/supervisor.js +12 -5
- package/dist/feature/agents/services/supervisor.js.map +1 -1
- package/dist/feature/agents/types/index.js +1 -0
- package/dist/feature/agents/types/index.js.map +1 -1
- package/dist/feature/agents/types/mcp/env.js +6 -1
- package/dist/feature/agents/types/mcp/env.js.map +1 -1
- package/dist/feature/agents/types/message.js +13 -1
- package/dist/feature/agents/types/message.js.map +1 -1
- package/dist/feature/agents/types/providers/providers.js +62 -0
- package/dist/feature/agents/types/providers/providers.js.map +1 -0
- package/dist/feature/agents/types/runtime.js +27 -0
- package/dist/feature/agents/types/runtime.js.map +1 -1
- package/dist/feature/agents/types/worker-tools.js +6 -1
- package/dist/feature/agents/types/worker-tools.js.map +1 -1
- package/dist/feature/audit/repositories/events.js +66 -0
- package/dist/feature/audit/repositories/events.js.map +1 -0
- package/dist/feature/audit/repositories/index.js +2 -0
- package/dist/feature/audit/repositories/index.js.map +1 -0
- package/dist/feature/audit/services/audit-log.js +24 -0
- package/dist/feature/audit/services/audit-log.js.map +1 -0
- package/dist/feature/audit/services/create.js +6 -0
- package/dist/feature/audit/services/create.js.map +1 -0
- package/dist/feature/audit/services/index.js +3 -0
- package/dist/feature/audit/services/index.js.map +1 -0
- package/dist/feature/audit/types/event.js +12 -0
- package/dist/feature/audit/types/event.js.map +1 -0
- package/dist/feature/audit/types/index.js +2 -0
- package/dist/feature/audit/types/index.js.map +1 -0
- package/dist/feature/compose/services/repository-move.js +8 -1
- package/dist/feature/compose/services/repository-move.js.map +1 -1
- package/dist/feature/compose/services/repository-removal.js +6 -1
- package/dist/feature/compose/services/repository-removal.js.map +1 -1
- package/dist/feature/delivery/ports/authors.js +2 -0
- package/dist/feature/delivery/ports/authors.js.map +1 -0
- package/dist/feature/delivery/services/commit-stamp.js +20 -0
- package/dist/feature/delivery/services/commit-stamp.js.map +1 -0
- package/dist/feature/delivery/services/create.js +6 -2
- package/dist/feature/delivery/services/create.js.map +1 -1
- package/dist/feature/delivery/services/deliver.js +8 -0
- package/dist/feature/delivery/services/deliver.js.map +1 -1
- package/dist/feature/delivery/services/push.js +23 -0
- package/dist/feature/delivery/services/push.js.map +1 -0
- package/dist/feature/delivery/types/index.js +2 -0
- package/dist/feature/delivery/types/index.js.map +1 -1
- package/dist/feature/delivery/types/remote-url.js +44 -0
- package/dist/feature/delivery/types/remote-url.js.map +1 -0
- package/dist/feature/delivery/types/trailer.js +22 -0
- package/dist/feature/delivery/types/trailer.js.map +1 -0
- package/dist/feature/identity/clients/oidc/client.js +78 -0
- package/dist/feature/identity/clients/oidc/client.js.map +1 -0
- package/dist/feature/identity/clients/oidc/index.js +2 -0
- package/dist/feature/identity/clients/oidc/index.js.map +1 -0
- package/dist/feature/identity/clients/oidc/signature.js +51 -0
- package/dist/feature/identity/clients/oidc/signature.js.map +1 -0
- package/dist/feature/identity/clients/saml/client.js +108 -0
- package/dist/feature/identity/clients/saml/client.js.map +1 -0
- package/dist/feature/identity/clients/saml/idp-metadata.js +123 -0
- package/dist/feature/identity/clients/saml/idp-metadata.js.map +1 -0
- package/dist/feature/identity/clients/saml/index.js +3 -0
- package/dist/feature/identity/clients/saml/index.js.map +1 -0
- package/dist/feature/identity/ports/clock.js +2 -0
- package/dist/feature/identity/ports/clock.js.map +1 -0
- package/dist/feature/identity/ports/index.js +2 -0
- package/dist/feature/identity/ports/index.js.map +1 -0
- package/dist/feature/identity/ports/oidc.js +2 -0
- package/dist/feature/identity/ports/oidc.js.map +1 -0
- package/dist/feature/identity/ports/saml.js +2 -0
- package/dist/feature/identity/ports/saml.js.map +1 -0
- package/dist/feature/identity/repositories/index.js +7 -0
- package/dist/feature/identity/repositories/index.js.map +1 -0
- package/dist/feature/identity/repositories/links.js +57 -0
- package/dist/feature/identity/repositories/links.js.map +1 -0
- package/dist/feature/identity/repositories/saml-assertions.js +16 -0
- package/dist/feature/identity/repositories/saml-assertions.js.map +1 -0
- package/dist/feature/identity/repositories/sessions.js +27 -0
- package/dist/feature/identity/repositories/sessions.js.map +1 -0
- package/dist/feature/identity/repositories/sso-requests.js +34 -0
- package/dist/feature/identity/repositories/sso-requests.js.map +1 -0
- package/dist/feature/identity/repositories/tokens.js +55 -0
- package/dist/feature/identity/repositories/tokens.js.map +1 -0
- package/dist/feature/identity/repositories/users.js +75 -0
- package/dist/feature/identity/repositories/users.js.map +1 -0
- package/dist/feature/identity/services/cli-login.js +48 -0
- package/dist/feature/identity/services/cli-login.js.map +1 -0
- package/dist/feature/identity/services/create.js +76 -0
- package/dist/feature/identity/services/create.js.map +1 -0
- package/dist/feature/identity/services/index.js +10 -0
- package/dist/feature/identity/services/index.js.map +1 -0
- package/dist/feature/identity/services/saml.js +115 -0
- package/dist/feature/identity/services/saml.js.map +1 -0
- package/dist/feature/identity/services/sessions.js +81 -0
- package/dist/feature/identity/services/sessions.js.map +1 -0
- package/dist/feature/identity/services/sso-accounts.js +46 -0
- package/dist/feature/identity/services/sso-accounts.js.map +1 -0
- package/dist/feature/identity/services/sso.js +120 -0
- package/dist/feature/identity/services/sso.js.map +1 -0
- package/dist/feature/identity/services/system.js +15 -0
- package/dist/feature/identity/services/system.js.map +1 -0
- package/dist/feature/identity/services/tokens.js +74 -0
- package/dist/feature/identity/services/tokens.js.map +1 -0
- package/dist/feature/identity/services/users.js +103 -0
- package/dist/feature/identity/services/users.js.map +1 -0
- package/dist/feature/identity/types/claims.js +39 -0
- package/dist/feature/identity/types/claims.js.map +1 -0
- package/dist/feature/identity/types/index.js +5 -0
- package/dist/feature/identity/types/index.js.map +1 -0
- package/dist/feature/identity/types/token.js +11 -0
- package/dist/feature/identity/types/token.js.map +1 -0
- package/dist/feature/identity/types/ttl.js +19 -0
- package/dist/feature/identity/types/ttl.js.map +1 -0
- package/dist/feature/identity/types/user.js +47 -0
- package/dist/feature/identity/types/user.js.map +1 -0
- package/dist/feature/integrations/ports/adapter.js +2 -0
- package/dist/feature/integrations/ports/adapter.js.map +1 -0
- package/dist/feature/integrations/ports/changes.js +2 -0
- package/dist/feature/integrations/ports/changes.js.map +1 -0
- package/dist/feature/integrations/ports/index.js +5 -0
- package/dist/feature/integrations/ports/index.js.map +1 -0
- package/dist/feature/integrations/ports/operations.js +2 -0
- package/dist/feature/integrations/ports/operations.js.map +1 -0
- package/dist/feature/integrations/ports/secrets.js +2 -0
- package/dist/feature/integrations/ports/secrets.js.map +1 -0
- package/dist/feature/integrations/repositories/connections.js +89 -0
- package/dist/feature/integrations/repositories/connections.js.map +1 -0
- package/dist/feature/integrations/repositories/deliveries.js +56 -0
- package/dist/feature/integrations/repositories/deliveries.js.map +1 -0
- package/dist/feature/integrations/repositories/index.js +4 -0
- package/dist/feature/integrations/repositories/index.js.map +1 -0
- package/dist/feature/integrations/repositories/secrets.js +102 -0
- package/dist/feature/integrations/repositories/secrets.js.map +1 -0
- package/dist/feature/integrations/services/access.js +63 -0
- package/dist/feature/integrations/services/access.js.map +1 -0
- package/dist/feature/integrations/services/catalog.js +38 -0
- package/dist/feature/integrations/services/catalog.js.map +1 -0
- package/dist/feature/integrations/services/checks.js +66 -0
- package/dist/feature/integrations/services/checks.js.map +1 -0
- package/dist/feature/integrations/services/connections.js +189 -0
- package/dist/feature/integrations/services/connections.js.map +1 -0
- package/dist/feature/integrations/services/create.js +71 -0
- package/dist/feature/integrations/services/create.js.map +1 -0
- package/dist/feature/integrations/services/dispatch.js +162 -0
- package/dist/feature/integrations/services/dispatch.js.map +1 -0
- package/dist/feature/integrations/services/index.js +9 -0
- package/dist/feature/integrations/services/index.js.map +1 -0
- package/dist/feature/integrations/services/outbound.js +46 -0
- package/dist/feature/integrations/services/outbound.js.map +1 -0
- package/dist/feature/integrations/services/secrets.js +271 -0
- package/dist/feature/integrations/services/secrets.js.map +1 -0
- package/dist/feature/integrations/types/connection.js +81 -0
- package/dist/feature/integrations/types/connection.js.map +1 -0
- package/dist/feature/integrations/types/deliveries.js +5 -0
- package/dist/feature/integrations/types/deliveries.js.map +1 -0
- package/dist/feature/integrations/types/errors.js +58 -0
- package/dist/feature/integrations/types/errors.js.map +1 -0
- package/dist/feature/integrations/types/index.js +6 -0
- package/dist/feature/integrations/types/index.js.map +1 -0
- package/dist/feature/integrations/types/operations.js +16 -0
- package/dist/feature/integrations/types/operations.js.map +1 -0
- package/dist/feature/integrations/types/secrets.js +8 -0
- package/dist/feature/integrations/types/secrets.js.map +1 -0
- package/dist/feature/notifications/clients/index.js +7 -0
- package/dist/feature/notifications/clients/index.js.map +1 -0
- package/dist/feature/notifications/clients/slack/api.js +133 -0
- package/dist/feature/notifications/clients/slack/api.js.map +1 -0
- package/dist/feature/notifications/clients/slack/blocks.js +189 -0
- package/dist/feature/notifications/clients/slack/blocks.js.map +1 -0
- package/dist/feature/notifications/clients/slack/channel.js +219 -0
- package/dist/feature/notifications/clients/slack/channel.js.map +1 -0
- package/dist/feature/notifications/clients/slack/events.js +117 -0
- package/dist/feature/notifications/clients/slack/events.js.map +1 -0
- package/dist/feature/notifications/clients/slack/kind.js +39 -0
- package/dist/feature/notifications/clients/slack/kind.js.map +1 -0
- package/dist/feature/notifications/clients/slack/socket.js +141 -0
- package/dist/feature/notifications/clients/slack/socket.js.map +1 -0
- package/dist/feature/notifications/clients/telegram/api.js +93 -0
- package/dist/feature/notifications/clients/telegram/api.js.map +1 -0
- package/dist/feature/notifications/clients/telegram/channel.js +250 -0
- package/dist/feature/notifications/clients/telegram/channel.js.map +1 -0
- package/dist/feature/notifications/clients/telegram/kind.js +34 -0
- package/dist/feature/notifications/clients/telegram/kind.js.map +1 -0
- package/dist/feature/notifications/clients/telegram/render.js +68 -0
- package/dist/feature/notifications/clients/telegram/render.js.map +1 -0
- package/dist/feature/notifications/clients/telegram/updates.js +71 -0
- package/dist/feature/notifications/clients/telegram/updates.js.map +1 -0
- package/dist/feature/notifications/clients/webhook/channel.js +131 -0
- package/dist/feature/notifications/clients/webhook/channel.js.map +1 -0
- package/dist/feature/notifications/clients/webhook/kind.js +52 -0
- package/dist/feature/notifications/clients/webhook/kind.js.map +1 -0
- package/dist/feature/notifications/clients/webhook/payload.js +96 -0
- package/dist/feature/notifications/clients/webhook/payload.js.map +1 -0
- package/dist/feature/notifications/clients/webhook/sign.js +15 -0
- package/dist/feature/notifications/clients/webhook/sign.js.map +1 -0
- package/dist/feature/notifications/ports/channel.js +2 -0
- package/dist/feature/notifications/ports/channel.js.map +1 -0
- package/dist/feature/notifications/ports/index.js +2 -0
- package/dist/feature/notifications/ports/index.js.map +1 -0
- package/dist/feature/notifications/ports/publish.js +2 -0
- package/dist/feature/notifications/ports/publish.js.map +1 -0
- package/dist/feature/notifications/repositories/answers.js +25 -0
- package/dist/feature/notifications/repositories/answers.js.map +1 -0
- package/dist/feature/notifications/repositories/attempts.js +34 -0
- package/dist/feature/notifications/repositories/attempts.js.map +1 -0
- package/dist/feature/notifications/repositories/cursors.js +25 -0
- package/dist/feature/notifications/repositories/cursors.js.map +1 -0
- package/dist/feature/notifications/repositories/deliveries.js +118 -0
- package/dist/feature/notifications/repositories/deliveries.js.map +1 -0
- package/dist/feature/notifications/repositories/index.js +7 -0
- package/dist/feature/notifications/repositories/index.js.map +1 -0
- package/dist/feature/notifications/repositories/outcomes.js +80 -0
- package/dist/feature/notifications/repositories/outcomes.js.map +1 -0
- package/dist/feature/notifications/repositories/subscriptions.js +85 -0
- package/dist/feature/notifications/repositories/subscriptions.js.map +1 -0
- package/dist/feature/notifications/services/channels.js +199 -0
- package/dist/feature/notifications/services/channels.js.map +1 -0
- package/dist/feature/notifications/services/closer.js +79 -0
- package/dist/feature/notifications/services/closer.js.map +1 -0
- package/dist/feature/notifications/services/create.js +116 -0
- package/dist/feature/notifications/services/create.js.map +1 -0
- package/dist/feature/notifications/services/dispatcher.js +210 -0
- package/dist/feature/notifications/services/dispatcher.js.map +1 -0
- package/dist/feature/notifications/services/drawing.js +27 -0
- package/dist/feature/notifications/services/drawing.js.map +1 -0
- package/dist/feature/notifications/services/factories.js +31 -0
- package/dist/feature/notifications/services/factories.js.map +1 -0
- package/dist/feature/notifications/services/inbound.js +172 -0
- package/dist/feature/notifications/services/inbound.js.map +1 -0
- package/dist/feature/notifications/services/index.js +10 -0
- package/dist/feature/notifications/services/index.js.map +1 -0
- package/dist/feature/notifications/services/journal.js +38 -0
- package/dist/feature/notifications/services/journal.js.map +1 -0
- package/dist/feature/notifications/services/lanes.js +28 -0
- package/dist/feature/notifications/services/lanes.js.map +1 -0
- package/dist/feature/notifications/services/outbox.js +2 -0
- package/dist/feature/notifications/services/outbox.js.map +1 -0
- package/dist/feature/notifications/services/sender.js +129 -0
- package/dist/feature/notifications/services/sender.js.map +1 -0
- package/dist/feature/notifications/services/senders/index.js +3 -0
- package/dist/feature/notifications/services/senders/index.js.map +1 -0
- package/dist/feature/notifications/services/senders/recent.js +32 -0
- package/dist/feature/notifications/services/senders/recent.js.map +1 -0
- package/dist/feature/notifications/services/senders/senders.js +23 -0
- package/dist/feature/notifications/services/senders/senders.js.map +1 -0
- package/dist/feature/notifications/services/subscriptions.js +221 -0
- package/dist/feature/notifications/services/subscriptions.js.map +1 -0
- package/dist/feature/notifications/services/webhooks/index.js +3 -0
- package/dist/feature/notifications/services/webhooks/index.js.map +1 -0
- package/dist/feature/notifications/services/webhooks/streaks.js +44 -0
- package/dist/feature/notifications/services/webhooks/streaks.js.map +1 -0
- package/dist/feature/notifications/services/webhooks/webhooks.js +249 -0
- package/dist/feature/notifications/services/webhooks/webhooks.js.map +1 -0
- package/dist/feature/notifications/types/answers.js +42 -0
- package/dist/feature/notifications/types/answers.js.map +1 -0
- package/dist/feature/notifications/types/channel.js +20 -0
- package/dist/feature/notifications/types/channel.js.map +1 -0
- package/dist/feature/notifications/types/display-url.js +11 -0
- package/dist/feature/notifications/types/display-url.js.map +1 -0
- package/dist/feature/notifications/types/drafts.js +35 -0
- package/dist/feature/notifications/types/drafts.js.map +1 -0
- package/dist/feature/notifications/types/errors.js +38 -0
- package/dist/feature/notifications/types/errors.js.map +1 -0
- package/dist/feature/notifications/types/events.js +137 -0
- package/dist/feature/notifications/types/events.js.map +1 -0
- package/dist/feature/notifications/types/index.js +13 -0
- package/dist/feature/notifications/types/index.js.map +1 -0
- package/dist/feature/notifications/types/limits.js +32 -0
- package/dist/feature/notifications/types/limits.js.map +1 -0
- package/dist/feature/notifications/types/model.js +29 -0
- package/dist/feature/notifications/types/model.js.map +1 -0
- package/dist/feature/notifications/types/render.js +132 -0
- package/dist/feature/notifications/types/render.js.map +1 -0
- package/dist/feature/notifications/types/retry.js +35 -0
- package/dist/feature/notifications/types/retry.js.map +1 -0
- package/dist/feature/notifications/types/texts.js +130 -0
- package/dist/feature/notifications/types/texts.js.map +1 -0
- package/dist/feature/notifications/types/webhooks.js +22 -0
- package/dist/feature/notifications/types/webhooks.js.map +1 -0
- package/dist/feature/queue/repositories/queues.js +7 -4
- package/dist/feature/queue/repositories/queues.js.map +1 -1
- package/dist/feature/queue/services/advance.js +3 -0
- package/dist/feature/queue/services/advance.js.map +1 -1
- package/dist/feature/queue/services/create.js +2 -0
- package/dist/feature/queue/services/create.js.map +1 -1
- package/dist/feature/queue/services/edit.js +33 -11
- package/dist/feature/queue/services/edit.js.map +1 -1
- package/dist/feature/queue/services/items.js +31 -48
- package/dist/feature/queue/services/items.js.map +1 -1
- package/dist/feature/queue/services/links.js +10 -4
- package/dist/feature/queue/services/links.js.map +1 -1
- package/dist/feature/queue/services/projects.js +26 -9
- package/dist/feature/queue/services/projects.js.map +1 -1
- package/dist/feature/queue/services/task-tags.js +30 -15
- package/dist/feature/queue/services/task-tags.js.map +1 -1
- package/dist/feature/queue/services/worker/tasks.js +108 -0
- package/dist/feature/queue/services/worker/tasks.js.map +1 -0
- package/dist/feature/queue/types/advance.js +1 -0
- package/dist/feature/queue/types/advance.js.map +1 -1
- package/dist/feature/queue/types/duplicates.js +46 -0
- package/dist/feature/queue/types/duplicates.js.map +1 -0
- package/dist/feature/queue/types/edit.js +7 -2
- package/dist/feature/queue/types/edit.js.map +1 -1
- package/dist/feature/queue/types/filter.js +3 -3
- package/dist/feature/queue/types/filter.js.map +1 -1
- package/dist/feature/queue/types/global/queue.js +2 -2
- package/dist/feature/queue/types/global/queue.js.map +1 -1
- package/dist/feature/queue/types/index.js +1 -0
- package/dist/feature/queue/types/index.js.map +1 -1
- package/dist/feature/queue/types/items.js.map +1 -1
- package/dist/feature/queue/types/limit-hits.js +3 -0
- package/dist/feature/queue/types/limit-hits.js.map +1 -1
- package/dist/feature/queue/types/returns.js +3 -0
- package/dist/feature/queue/types/returns.js.map +1 -1
- package/dist/feature/repos/services/projects.js +26 -2
- package/dist/feature/repos/services/projects.js.map +1 -1
- package/dist/feature/repos/types/index.js +1 -0
- package/dist/feature/repos/types/index.js.map +1 -1
- package/dist/feature/repos/types/remote.js +28 -0
- package/dist/feature/repos/types/remote.js.map +1 -0
- package/dist/feature/runs/machine/answers.js +13 -0
- package/dist/feature/runs/machine/answers.js.map +1 -1
- package/dist/feature/runs/machine/delivery-checks.js +4 -2
- package/dist/feature/runs/machine/delivery-checks.js.map +1 -1
- package/dist/feature/runs/machine/delivery-flow.js +18 -1
- package/dist/feature/runs/machine/delivery-flow.js.map +1 -1
- package/dist/feature/runs/machine/exits.js +1 -1
- package/dist/feature/runs/machine/exits.js.map +1 -1
- package/dist/feature/runs/machine/plan.js +17 -4
- package/dist/feature/runs/machine/plan.js.map +1 -1
- package/dist/feature/runs/machine/provider/index.js +2 -0
- package/dist/feature/runs/machine/provider/index.js.map +1 -0
- package/dist/feature/runs/machine/provider/set-provider.js +71 -0
- package/dist/feature/runs/machine/provider/set-provider.js.map +1 -0
- package/dist/feature/runs/machine/push/index.js +2 -0
- package/dist/feature/runs/machine/push/index.js.map +1 -0
- package/dist/feature/runs/machine/push/push.js +48 -0
- package/dist/feature/runs/machine/push/push.js.map +1 -0
- package/dist/feature/runs/machine/restart/index.js +2 -0
- package/dist/feature/runs/machine/restart/index.js.map +1 -0
- package/dist/feature/runs/machine/restart/restart-step.js +31 -0
- package/dist/feature/runs/machine/restart/restart-step.js.map +1 -0
- package/dist/feature/runs/machine/scheduler.js +33 -7
- package/dist/feature/runs/machine/scheduler.js.map +1 -1
- package/dist/feature/runs/machine/texts.js +3 -1
- package/dist/feature/runs/machine/texts.js.map +1 -1
- package/dist/feature/runs/machine/transition.js +28 -4
- package/dist/feature/runs/machine/transition.js.map +1 -1
- package/dist/feature/runs/machine/variant/set-variant.js +3 -22
- package/dist/feature/runs/machine/variant/set-variant.js.map +1 -1
- package/dist/feature/runs/ports/commits.js +2 -0
- package/dist/feature/runs/ports/commits.js.map +1 -0
- package/dist/feature/runs/ports/notify.js +2 -0
- package/dist/feature/runs/ports/notify.js.map +1 -0
- package/dist/feature/runs/ports/push.js +2 -0
- package/dist/feature/runs/ports/push.js.map +1 -0
- package/dist/feature/runs/ports/registry-project.js +2 -0
- package/dist/feature/runs/ports/registry-project.js.map +1 -0
- package/dist/feature/runs/ports/registry-skills.js +2 -0
- package/dist/feature/runs/ports/registry-skills.js.map +1 -0
- package/dist/feature/runs/ports/remote-mcp.js +2 -0
- package/dist/feature/runs/ports/remote-mcp.js.map +1 -0
- package/dist/feature/runs/repositories/finished-runs.js +5 -1
- package/dist/feature/runs/repositories/finished-runs.js.map +1 -1
- package/dist/feature/runs/repositories/rows.js +18 -0
- package/dist/feature/runs/repositories/rows.js.map +1 -1
- package/dist/feature/runs/repositories/write.js +7 -7
- package/dist/feature/runs/repositories/write.js.map +1 -1
- package/dist/feature/runs/services/create.js +1 -0
- package/dist/feature/runs/services/create.js.map +1 -1
- package/dist/feature/runs/services/effects/actions.js +2 -1
- package/dist/feature/runs/services/effects/actions.js.map +1 -1
- package/dist/feature/runs/services/effects/attempts.js +57 -80
- package/dist/feature/runs/services/effects/attempts.js.map +1 -1
- package/dist/feature/runs/services/effects/context.js +2 -0
- package/dist/feature/runs/services/effects/context.js.map +1 -1
- package/dist/feature/runs/services/effects/conversations.js +238 -0
- package/dist/feature/runs/services/effects/conversations.js.map +1 -0
- package/dist/feature/runs/services/effects/effects.js +2 -0
- package/dist/feature/runs/services/effects/effects.js.map +1 -1
- package/dist/feature/runs/services/effects/git.js +17 -2
- package/dist/feature/runs/services/effects/git.js.map +1 -1
- package/dist/feature/runs/services/effects/naming.js +1 -1
- package/dist/feature/runs/services/effects/naming.js.map +1 -1
- package/dist/feature/runs/services/effects/runtime-check.js +28 -0
- package/dist/feature/runs/services/effects/runtime-check.js.map +1 -1
- package/dist/feature/runs/services/effects/skills/index.js +3 -0
- package/dist/feature/runs/services/effects/skills/index.js.map +1 -0
- package/dist/feature/runs/services/effects/skills/outside-queue.js +58 -0
- package/dist/feature/runs/services/effects/skills/outside-queue.js.map +1 -0
- package/dist/feature/runs/services/effects/skills/registry.js +70 -0
- package/dist/feature/runs/services/effects/skills/registry.js.map +1 -0
- package/dist/feature/runs/services/engine.js +8 -1
- package/dist/feature/runs/services/engine.js.map +1 -1
- package/dist/feature/runs/services/index.js +2 -2
- package/dist/feature/runs/services/index.js.map +1 -1
- package/dist/feature/runs/services/reads.js +30 -1
- package/dist/feature/runs/services/reads.js.map +1 -1
- package/dist/feature/runs/services/refresh.js +23 -1
- package/dist/feature/runs/services/refresh.js.map +1 -1
- package/dist/feature/runs/services/requests.js +21 -4
- package/dist/feature/runs/services/requests.js.map +1 -1
- package/dist/feature/runs/services/states.js +2 -2
- package/dist/feature/runs/services/states.js.map +1 -1
- package/dist/feature/runs/types/answers/answers-text.js +7 -0
- package/dist/feature/runs/types/answers/answers-text.js.map +1 -0
- package/dist/feature/runs/types/attempt.js +2 -0
- package/dist/feature/runs/types/attempt.js.map +1 -1
- package/dist/feature/runs/types/chains/chain-select.js +93 -0
- package/dist/feature/runs/types/chains/chain-select.js.map +1 -0
- package/dist/feature/runs/types/constants.js +1 -1
- package/dist/feature/runs/types/constants.js.map +1 -1
- package/dist/feature/runs/types/create.js +17 -4
- package/dist/feature/runs/types/create.js.map +1 -1
- package/dist/feature/runs/types/index.js +2 -0
- package/dist/feature/runs/types/index.js.map +1 -1
- package/dist/feature/runs/types/input.js +2 -1
- package/dist/feature/runs/types/input.js.map +1 -1
- package/dist/feature/runs/types/limits.js +11 -55
- package/dist/feature/runs/types/limits.js.map +1 -1
- package/dist/feature/runs/types/problems.js +9 -5
- package/dist/feature/runs/types/problems.js.map +1 -1
- package/dist/feature/runs/types/run.js.map +1 -1
- package/dist/feature/runs/types/stage-status.js +3 -1
- package/dist/feature/runs/types/stage-status.js.map +1 -1
- package/dist/feature/service-registry/clients/http-mcp/client.js +164 -0
- package/dist/feature/service-registry/clients/http-mcp/client.js.map +1 -0
- package/dist/feature/service-registry/clients/http-mcp/index.js +2 -0
- package/dist/feature/service-registry/clients/http-mcp/index.js.map +1 -0
- package/dist/feature/service-registry/ports/adapter.js +2 -0
- package/dist/feature/service-registry/ports/adapter.js.map +1 -0
- package/dist/feature/service-registry/ports/index.js +3 -0
- package/dist/feature/service-registry/ports/index.js.map +1 -0
- package/dist/feature/service-registry/ports/transport.js +2 -0
- package/dist/feature/service-registry/ports/transport.js.map +1 -0
- package/dist/feature/service-registry/repositories/index.js +2 -0
- package/dist/feature/service-registry/repositories/index.js.map +1 -0
- package/dist/feature/service-registry/repositories/links.js +61 -0
- package/dist/feature/service-registry/repositories/links.js.map +1 -0
- package/dist/feature/service-registry/services/adapter.js +63 -0
- package/dist/feature/service-registry/services/adapter.js.map +1 -0
- package/dist/feature/service-registry/services/calls.js +86 -0
- package/dist/feature/service-registry/services/calls.js.map +1 -0
- package/dist/feature/service-registry/services/catalog-scan.js +49 -0
- package/dist/feature/service-registry/services/catalog-scan.js.map +1 -0
- package/dist/feature/service-registry/services/create.js +30 -0
- package/dist/feature/service-registry/services/create.js.map +1 -0
- package/dist/feature/service-registry/services/forwarder.js +107 -0
- package/dist/feature/service-registry/services/forwarder.js.map +1 -0
- package/dist/feature/service-registry/services/index.js +6 -0
- package/dist/feature/service-registry/services/index.js.map +1 -0
- package/dist/feature/service-registry/services/links.js +256 -0
- package/dist/feature/service-registry/services/links.js.map +1 -0
- package/dist/feature/service-registry/services/skill-cache.js +135 -0
- package/dist/feature/service-registry/services/skill-cache.js.map +1 -0
- package/dist/feature/service-registry/services/skill-source.js +128 -0
- package/dist/feature/service-registry/services/skill-source.js.map +1 -0
- package/dist/feature/service-registry/services/skills.js +197 -0
- package/dist/feature/service-registry/services/skills.js.map +1 -0
- package/dist/feature/service-registry/types/descriptor.js +41 -0
- package/dist/feature/service-registry/types/descriptor.js.map +1 -0
- package/dist/feature/service-registry/types/endpoint.js +2 -0
- package/dist/feature/service-registry/types/endpoint.js.map +1 -0
- package/dist/feature/service-registry/types/errors.js +26 -0
- package/dist/feature/service-registry/types/errors.js.map +1 -0
- package/dist/feature/service-registry/types/index.js +7 -0
- package/dist/feature/service-registry/types/index.js.map +1 -0
- package/dist/feature/service-registry/types/link.js +26 -0
- package/dist/feature/service-registry/types/link.js.map +1 -0
- package/dist/feature/service-registry/types/semver.js +2 -0
- package/dist/feature/service-registry/types/semver.js.map +1 -0
- package/dist/feature/service-registry/types/skills.js +27 -0
- package/dist/feature/service-registry/types/skills.js.map +1 -0
- package/dist/feature/stats/repositories/meta.js +10 -0
- package/dist/feature/stats/repositories/meta.js.map +1 -1
- package/dist/feature/stats/repositories/records.js +18 -7
- package/dist/feature/stats/repositories/records.js.map +1 -1
- package/dist/feature/stats/repositories/report.js +14 -4
- package/dist/feature/stats/repositories/report.js.map +1 -1
- package/dist/feature/stats/services/ledger.js +16 -1
- package/dist/feature/stats/services/ledger.js.map +1 -1
- package/dist/feature/stats/services/report.js +7 -2
- package/dist/feature/stats/services/report.js.map +1 -1
- package/dist/feature/stats/types/capture.js +3 -0
- package/dist/feature/stats/types/capture.js.map +1 -1
- package/dist/feature/stats/types/records.js.map +1 -1
- package/dist/feature/stats/types/report.js +2 -0
- package/dist/feature/stats/types/report.js.map +1 -1
- package/dist/feature/swarm-config/repositories/config-files.js +3 -1
- package/dist/feature/swarm-config/repositories/config-files.js.map +1 -1
- package/dist/feature/swarm-config/services/access/file.js +83 -0
- package/dist/feature/swarm-config/services/access/file.js.map +1 -0
- package/dist/feature/swarm-config/services/access/index.js +3 -0
- package/dist/feature/swarm-config/services/access/index.js.map +1 -0
- package/dist/feature/swarm-config/services/access/validate.js +134 -0
- package/dist/feature/swarm-config/services/access/validate.js.map +1 -0
- package/dist/feature/swarm-config/services/assemble.js +52 -2
- package/dist/feature/swarm-config/services/assemble.js.map +1 -1
- package/dist/feature/swarm-config/services/index.js +3 -2
- package/dist/feature/swarm-config/services/index.js.map +1 -1
- package/dist/feature/swarm-config/services/load.js +22 -2
- package/dist/feature/swarm-config/services/load.js.map +1 -1
- package/dist/feature/swarm-config/services/sections/mcp-servers.js +33 -5
- package/dist/feature/swarm-config/services/sections/mcp-servers.js.map +1 -1
- package/dist/feature/swarm-config/services/sections/provider-access.js +158 -0
- package/dist/feature/swarm-config/services/sections/provider-access.js.map +1 -0
- package/dist/feature/swarm-config/services/sections/provider-models.js +56 -0
- package/dist/feature/swarm-config/services/sections/provider-models.js.map +1 -0
- package/dist/feature/swarm-config/services/sections/providers.js +105 -0
- package/dist/feature/swarm-config/services/sections/providers.js.map +1 -0
- package/dist/feature/swarm-config/services/sections/queue.js +3 -2
- package/dist/feature/swarm-config/services/sections/queue.js.map +1 -1
- package/dist/feature/swarm-config/services/sections/roles.js +27 -0
- package/dist/feature/swarm-config/services/sections/roles.js.map +1 -0
- package/dist/feature/swarm-config/services/sections/server-saml.js +116 -0
- package/dist/feature/swarm-config/services/sections/server-saml.js.map +1 -0
- package/dist/feature/swarm-config/services/sections/server.js +272 -0
- package/dist/feature/swarm-config/services/sections/server.js.map +1 -0
- package/dist/feature/swarm-config/services/settings.js +36 -2
- package/dist/feature/swarm-config/services/settings.js.map +1 -1
- package/dist/feature/swarm-config/services/validate-runtimes.js +60 -6
- package/dist/feature/swarm-config/services/validate-runtimes.js.map +1 -1
- package/dist/feature/swarm-config/services/validate-settings.js +51 -3
- package/dist/feature/swarm-config/services/validate-settings.js.map +1 -1
- package/dist/feature/swarm-config/services/validate-specialists.js +23 -0
- package/dist/feature/swarm-config/services/validate-specialists.js.map +1 -1
- package/dist/feature/swarm-config/services/validate.js +42 -3
- package/dist/feature/swarm-config/services/validate.js.map +1 -1
- package/dist/feature/swarm-config/types/access/index.js +2 -0
- package/dist/feature/swarm-config/types/access/index.js.map +1 -0
- package/dist/feature/swarm-config/types/access/policy.js +10 -0
- package/dist/feature/swarm-config/types/access/policy.js.map +1 -0
- package/dist/feature/swarm-config/types/chain.js +9 -1
- package/dist/feature/swarm-config/types/chain.js.map +1 -1
- package/dist/feature/swarm-config/types/index.js +3 -0
- package/dist/feature/swarm-config/types/index.js.map +1 -1
- package/dist/feature/swarm-config/types/levels.js +1 -0
- package/dist/feature/swarm-config/types/levels.js.map +1 -1
- package/dist/feature/swarm-config/types/machine/machine-settings.js +45 -0
- package/dist/feature/swarm-config/types/machine/machine-settings.js.map +1 -0
- package/dist/feature/swarm-config/types/merge.js +2 -0
- package/dist/feature/swarm-config/types/merge.js.map +1 -1
- package/dist/feature/swarm-config/types/providers/provider.js +55 -0
- package/dist/feature/swarm-config/types/providers/provider.js.map +1 -0
- package/dist/feature/swarm-config/types/settings.js +42 -52
- package/dist/feature/swarm-config/types/settings.js.map +1 -1
- package/dist/feature/swarm-config/types/skills/index.js +3 -0
- package/dist/feature/swarm-config/types/skills/index.js.map +1 -0
- package/dist/feature/swarm-config/types/skills/semver.js +250 -0
- package/dist/feature/swarm-config/types/skills/semver.js.map +1 -0
- package/dist/feature/swarm-config/types/skills/skill-ref.js +35 -0
- package/dist/feature/swarm-config/types/skills/skill-ref.js.map +1 -0
- package/dist/feature/swarm-config/types/specialist.js +8 -1
- package/dist/feature/swarm-config/types/specialist.js.map +1 -1
- package/dist/feature/swarm-config/types/web/index.js +2 -0
- package/dist/feature/swarm-config/types/web/index.js.map +1 -0
- package/dist/feature/swarm-config/types/web/settings.js +14 -0
- package/dist/feature/swarm-config/types/web/settings.js.map +1 -0
- package/dist/feature/swarm-edit/services/config-edits.js +19 -5
- package/dist/feature/swarm-edit/services/config-edits.js.map +1 -1
- package/dist/feature/swarm-edit/services/editor-settings.js +1 -0
- package/dist/feature/swarm-edit/services/editor-settings.js.map +1 -1
- package/dist/feature/swarm-edit/services/editor-view.js +11 -1
- package/dist/feature/swarm-edit/services/editor-view.js.map +1 -1
- package/dist/feature/swarm-edit/services/index.js +1 -1
- package/dist/feature/swarm-edit/services/index.js.map +1 -1
- package/dist/feature/swarm-edit/services/levels.js +1 -0
- package/dist/feature/swarm-edit/services/levels.js.map +1 -1
- package/dist/feature/swarm-edit/services/mcp/editor-mcp.js +2 -0
- package/dist/feature/swarm-edit/services/mcp/editor-mcp.js.map +1 -1
- package/dist/feature/swarm-edit/services/plan-edit.js +9 -4
- package/dist/feature/swarm-edit/services/plan-edit.js.map +1 -1
- package/dist/feature/swarm-edit/services/plan-settings.js +4 -2
- package/dist/feature/swarm-edit/services/plan-settings.js.map +1 -1
- package/dist/feature/swarm-edit/services/references.js +36 -1
- package/dist/feature/swarm-edit/services/references.js.map +1 -1
- package/dist/feature/swarm-edit/services/shared-config.js +5 -0
- package/dist/feature/swarm-edit/services/shared-config.js.map +1 -1
- package/dist/feature/swarm-edit/types/editor.js +3 -1
- package/dist/feature/swarm-edit/types/editor.js.map +1 -1
- package/dist/feature/swarm-edit/types/setting-fields.js +4 -2
- package/dist/feature/swarm-edit/types/setting-fields.js.map +1 -1
- package/dist/feature/swarm-edit/types/stages.js +1 -0
- package/dist/feature/swarm-edit/types/stages.js.map +1 -1
- package/dist/feature/tags/types/tags.js +0 -4
- package/dist/feature/tags/types/tags.js.map +1 -1
- package/dist/platform/archive/index.js +2 -0
- package/dist/platform/archive/index.js.map +1 -0
- package/dist/platform/archive/zip.js +164 -0
- package/dist/platform/archive/zip.js.map +1 -0
- package/dist/platform/files/index.js +2 -0
- package/dist/platform/files/index.js.map +1 -0
- package/dist/platform/files/read.js +20 -0
- package/dist/platform/files/read.js.map +1 -0
- package/dist/platform/git/authorship.js +12 -0
- package/dist/platform/git/authorship.js.map +1 -0
- package/dist/platform/git/changes.js +26 -0
- package/dist/platform/git/changes.js.map +1 -0
- package/dist/platform/git/delivery.js +8 -20
- package/dist/platform/git/delivery.js.map +1 -1
- package/dist/platform/git/index.js +3 -0
- package/dist/platform/git/index.js.map +1 -1
- package/dist/platform/git/remote.js +69 -0
- package/dist/platform/git/remote.js.map +1 -0
- package/dist/platform/git/workspace.js +3 -4
- package/dist/platform/git/workspace.js.map +1 -1
- package/dist/platform/http/index.js +3 -0
- package/dist/platform/http/index.js.map +1 -0
- package/dist/platform/http/request.js +157 -0
- package/dist/platform/http/request.js.map +1 -0
- package/dist/platform/http/websocket-frames.js +155 -0
- package/dist/platform/http/websocket-frames.js.map +1 -0
- package/dist/platform/http/websocket.js +259 -0
- package/dist/platform/http/websocket.js.map +1 -0
- package/dist/platform/paths/index.js +1 -1
- package/dist/platform/paths/index.js.map +1 -1
- package/dist/platform/paths/paths.js +6 -0
- package/dist/platform/paths/paths.js.map +1 -1
- package/dist/platform/secrets/command.js +30 -0
- package/dist/platform/secrets/command.js.map +1 -0
- package/dist/platform/secrets/errors.js +16 -0
- package/dist/platform/secrets/errors.js.map +1 -0
- package/dist/platform/secrets/file-key.js +43 -0
- package/dist/platform/secrets/file-key.js.map +1 -0
- package/dist/platform/secrets/file.js +158 -0
- package/dist/platform/secrets/file.js.map +1 -0
- package/dist/platform/secrets/index.js +6 -0
- package/dist/platform/secrets/index.js.map +1 -0
- package/dist/platform/secrets/keyring.js +73 -0
- package/dist/platform/secrets/keyring.js.map +1 -0
- package/dist/platform/secrets/select.js +124 -0
- package/dist/platform/secrets/select.js.map +1 -0
- package/dist/platform/secrets/store.js +2 -0
- package/dist/platform/secrets/store.js.map +1 -0
- package/dist/platform/sqlite/authorship-migration.js +23 -0
- package/dist/platform/sqlite/authorship-migration.js.map +1 -0
- package/dist/platform/sqlite/identity-migration.js +52 -0
- package/dist/platform/sqlite/identity-migration.js.map +1 -0
- package/dist/platform/sqlite/integrations-migration.js +147 -0
- package/dist/platform/sqlite/integrations-migration.js.map +1 -0
- package/dist/platform/sqlite/parts.js +32 -1
- package/dist/platform/sqlite/parts.js.map +1 -1
- package/dist/platform/sqlite/saml-migration.js +9 -0
- package/dist/platform/sqlite/saml-migration.js.map +1 -0
- package/dist/platform/sqlite/sso-migration.js +17 -0
- package/dist/platform/sqlite/sso-migration.js.map +1 -0
- package/dist/platform/sqlite/stats-migration.js +8 -0
- package/dist/platform/sqlite/stats-migration.js.map +1 -1
- package/dist/presentation/cli/commands/daemon.js +5 -3
- package/dist/presentation/cli/commands/daemon.js.map +1 -1
- package/dist/presentation/cli/commands/integration/index.js +3 -0
- package/dist/presentation/cli/commands/integration/index.js.map +1 -0
- package/dist/presentation/cli/commands/integration/integrations.js +239 -0
- package/dist/presentation/cli/commands/integration/integrations.js.map +1 -0
- package/dist/presentation/cli/commands/integration/skills.js +24 -0
- package/dist/presentation/cli/commands/integration/skills.js.map +1 -0
- package/dist/presentation/cli/commands/mcp.js +23 -1
- package/dist/presentation/cli/commands/mcp.js.map +1 -1
- package/dist/presentation/cli/commands/notify/index.js +2 -0
- package/dist/presentation/cli/commands/notify/index.js.map +1 -0
- package/dist/presentation/cli/commands/notify/notify.js +145 -0
- package/dist/presentation/cli/commands/notify/notify.js.map +1 -0
- package/dist/presentation/cli/commands/provider/index.js +2 -0
- package/dist/presentation/cli/commands/provider/index.js.map +1 -0
- package/dist/presentation/cli/commands/provider/provider.js +49 -0
- package/dist/presentation/cli/commands/provider/provider.js.map +1 -0
- package/dist/presentation/cli/commands/queue-edit.js +17 -26
- package/dist/presentation/cli/commands/queue-edit.js.map +1 -1
- package/dist/presentation/cli/commands/queue.js +3 -2
- package/dist/presentation/cli/commands/queue.js.map +1 -1
- package/dist/presentation/cli/commands/run-delivery.js +47 -2
- package/dist/presentation/cli/commands/run-delivery.js.map +1 -1
- package/dist/presentation/cli/commands/run.js +28 -7
- package/dist/presentation/cli/commands/run.js.map +1 -1
- package/dist/presentation/cli/commands/server/access.js +43 -0
- package/dist/presentation/cli/commands/server/access.js.map +1 -0
- package/dist/presentation/cli/commands/server/admin.js +118 -0
- package/dist/presentation/cli/commands/server/admin.js.map +1 -0
- package/dist/presentation/cli/commands/server/apply.js +82 -0
- package/dist/presentation/cli/commands/server/apply.js.map +1 -0
- package/dist/presentation/cli/commands/server/audit.js +38 -0
- package/dist/presentation/cli/commands/server/audit.js.map +1 -0
- package/dist/presentation/cli/commands/server/login.js +141 -0
- package/dist/presentation/cli/commands/server/login.js.map +1 -0
- package/dist/presentation/cli/commands/server/profile.js +38 -0
- package/dist/presentation/cli/commands/server/profile.js.map +1 -0
- package/dist/presentation/cli/commands/server/register.js +12 -0
- package/dist/presentation/cli/commands/server/register.js.map +1 -0
- package/dist/presentation/cli/commands/server/repository.js +34 -0
- package/dist/presentation/cli/commands/server/repository.js.map +1 -0
- package/dist/presentation/cli/commands/stats.js +10 -1
- package/dist/presentation/cli/commands/stats.js.map +1 -1
- package/dist/presentation/cli/commands/web.js +26 -5
- package/dist/presentation/cli/commands/web.js.map +1 -1
- package/dist/presentation/cli/commands/webhook/index.js +2 -0
- package/dist/presentation/cli/commands/webhook/index.js.map +1 -0
- package/dist/presentation/cli/commands/webhook/webhook.js +172 -0
- package/dist/presentation/cli/commands/webhook/webhook.js.map +1 -0
- package/dist/presentation/cli/context.js +34 -2
- package/dist/presentation/cli/context.js.map +1 -1
- package/dist/presentation/cli/help.js +21 -2
- package/dist/presentation/cli/help.js.map +1 -1
- package/dist/presentation/cli/io.js.map +1 -1
- package/dist/presentation/cli/local/config-check-providers.js +47 -0
- package/dist/presentation/cli/local/config-check-providers.js.map +1 -0
- package/dist/presentation/cli/local/config-check.js +24 -9
- package/dist/presentation/cli/local/config-check.js.map +1 -1
- package/dist/presentation/cli/options.js +53 -0
- package/dist/presentation/cli/options.js.map +1 -1
- package/dist/presentation/cli/program.js +10 -0
- package/dist/presentation/cli/program.js.map +1 -1
- package/dist/presentation/cli/queue-add.js +54 -35
- package/dist/presentation/cli/queue-add.js.map +1 -1
- package/dist/presentation/cli/queue-print.js +34 -1
- package/dist/presentation/cli/queue-print.js.map +1 -1
- package/dist/presentation/cli/secret-keys.js +38 -0
- package/dist/presentation/cli/secret-keys.js.map +1 -0
- package/dist/presentation/format/access/access.js +30 -0
- package/dist/presentation/format/access/access.js.map +1 -0
- package/dist/presentation/format/access/index.js +2 -0
- package/dist/presentation/format/access/index.js.map +1 -0
- package/dist/presentation/format/audit/audit.js +29 -0
- package/dist/presentation/format/audit/audit.js.map +1 -0
- package/dist/presentation/format/audit/index.js +2 -0
- package/dist/presentation/format/audit/index.js.map +1 -0
- package/dist/presentation/format/groups.js +13 -0
- package/dist/presentation/format/groups.js.map +1 -1
- package/dist/presentation/format/index.js +6 -0
- package/dist/presentation/format/index.js.map +1 -1
- package/dist/presentation/format/integration/index.js +3 -0
- package/dist/presentation/format/integration/index.js.map +1 -0
- package/dist/presentation/format/integration/integrations.js +95 -0
- package/dist/presentation/format/integration/integrations.js.map +1 -0
- package/dist/presentation/format/integration/skills.js +17 -0
- package/dist/presentation/format/integration/skills.js.map +1 -0
- package/dist/presentation/format/notifications/index.js +2 -0
- package/dist/presentation/format/notifications/index.js.map +1 -0
- package/dist/presentation/format/notifications/notifications.js +44 -0
- package/dist/presentation/format/notifications/notifications.js.map +1 -0
- package/dist/presentation/format/overview.js +2 -1
- package/dist/presentation/format/overview.js.map +1 -1
- package/dist/presentation/format/providers/index.js +3 -0
- package/dist/presentation/format/providers/index.js.map +1 -0
- package/dist/presentation/format/providers/provider-list.js +72 -0
- package/dist/presentation/format/providers/provider-list.js.map +1 -0
- package/dist/presentation/format/providers/providers.js +13 -0
- package/dist/presentation/format/providers/providers.js.map +1 -0
- package/dist/presentation/format/queue.js +8 -3
- package/dist/presentation/format/queue.js.map +1 -1
- package/dist/presentation/format/runs.js +36 -3
- package/dist/presentation/format/runs.js.map +1 -1
- package/dist/presentation/format/stats.js +9 -3
- package/dist/presentation/format/stats.js.map +1 -1
- package/dist/presentation/format/table.js +3 -2
- package/dist/presentation/format/table.js.map +1 -1
- package/dist/presentation/format/webhooks/index.js +2 -0
- package/dist/presentation/format/webhooks/index.js.map +1 -0
- package/dist/presentation/format/webhooks/webhooks.js +59 -0
- package/dist/presentation/format/webhooks/webhooks.js.map +1 -0
- package/dist/presentation/ipc/client/address.js +8 -0
- package/dist/presentation/ipc/client/address.js.map +1 -0
- package/dist/presentation/ipc/client/client.js +23 -6
- package/dist/presentation/ipc/client/client.js.map +1 -1
- package/dist/presentation/ipc/client/index.js +1 -0
- package/dist/presentation/ipc/client/index.js.map +1 -1
- package/dist/presentation/ipc/client/remote.js +85 -0
- package/dist/presentation/ipc/client/remote.js.map +1 -0
- package/dist/presentation/ipc/contract/access/access.js +21 -0
- package/dist/presentation/ipc/contract/access/access.js.map +1 -0
- package/dist/presentation/ipc/contract/access/index.js +2 -0
- package/dist/presentation/ipc/contract/access/index.js.map +1 -0
- package/dist/presentation/ipc/contract/agents.js +7 -10
- package/dist/presentation/ipc/contract/agents.js.map +1 -1
- package/dist/presentation/ipc/contract/config.js +14 -1
- package/dist/presentation/ipc/contract/config.js.map +1 -1
- package/dist/presentation/ipc/contract/envelope.js +90 -6
- package/dist/presentation/ipc/contract/envelope.js.map +1 -1
- package/dist/presentation/ipc/contract/identity/audit.js +21 -0
- package/dist/presentation/ipc/contract/identity/audit.js.map +1 -0
- package/dist/presentation/ipc/contract/identity/identity.js +120 -0
- package/dist/presentation/ipc/contract/identity/identity.js.map +1 -0
- package/dist/presentation/ipc/contract/identity/index.js +3 -0
- package/dist/presentation/ipc/contract/identity/index.js.map +1 -0
- package/dist/presentation/ipc/contract/index.js +6 -0
- package/dist/presentation/ipc/contract/index.js.map +1 -1
- package/dist/presentation/ipc/contract/integrations/integrations.js +85 -0
- package/dist/presentation/ipc/contract/integrations/integrations.js.map +1 -0
- package/dist/presentation/ipc/contract/integrations/remote.js +16 -0
- package/dist/presentation/ipc/contract/integrations/remote.js.map +1 -0
- package/dist/presentation/ipc/contract/notifications/notifications.js +44 -0
- package/dist/presentation/ipc/contract/notifications/notifications.js.map +1 -0
- package/dist/presentation/ipc/contract/notifications/webhooks.js +48 -0
- package/dist/presentation/ipc/contract/notifications/webhooks.js.map +1 -0
- package/dist/presentation/ipc/contract/panel.js +5 -1
- package/dist/presentation/ipc/contract/panel.js.map +1 -1
- package/dist/presentation/ipc/contract/queue.js +48 -3
- package/dist/presentation/ipc/contract/queue.js.map +1 -1
- package/dist/presentation/ipc/contract/repositories.js +4 -0
- package/dist/presentation/ipc/contract/repositories.js.map +1 -1
- package/dist/presentation/ipc/contract/responses/stats.js +3 -0
- package/dist/presentation/ipc/contract/responses/stats.js.map +1 -1
- package/dist/presentation/ipc/contract/runs.js +18 -1
- package/dist/presentation/ipc/contract/runs.js.map +1 -1
- package/dist/presentation/ipc/contract/stats/stats.js +2 -0
- package/dist/presentation/ipc/contract/stats/stats.js.map +1 -1
- package/dist/presentation/ipc/contract/tags.js +9 -1
- package/dist/presentation/ipc/contract/tags.js.map +1 -1
- package/dist/presentation/ipc/handlers/access/access.js +74 -0
- package/dist/presentation/ipc/handlers/access/access.js.map +1 -0
- package/dist/presentation/ipc/handlers/access/author.js +25 -0
- package/dist/presentation/ipc/handlers/access/author.js.map +1 -0
- package/dist/presentation/ipc/handlers/access/guard.js +57 -0
- package/dist/presentation/ipc/handlers/access/guard.js.map +1 -0
- package/dist/presentation/ipc/handlers/access/index.js +5 -0
- package/dist/presentation/ipc/handlers/access/index.js.map +1 -0
- package/dist/presentation/ipc/handlers/access/method-actions.js +13 -0
- package/dist/presentation/ipc/handlers/access/method-actions.js.map +1 -0
- package/dist/presentation/ipc/handlers/access/method-runs.js +76 -0
- package/dist/presentation/ipc/handlers/access/method-runs.js.map +1 -0
- package/dist/presentation/ipc/handlers/access/method-settings.js +120 -0
- package/dist/presentation/ipc/handlers/access/method-settings.js.map +1 -0
- package/dist/presentation/ipc/handlers/access/resource.js +129 -0
- package/dist/presentation/ipc/handlers/access/resource.js.map +1 -0
- package/dist/presentation/ipc/handlers/access/visible.js +13 -0
- package/dist/presentation/ipc/handlers/access/visible.js.map +1 -0
- package/dist/presentation/ipc/handlers/audit/audit-account-actions.js +52 -0
- package/dist/presentation/ipc/handlers/audit/audit-account-actions.js.map +1 -0
- package/dist/presentation/ipc/handlers/audit/audit-actions.js +220 -0
- package/dist/presentation/ipc/handlers/audit/audit-actions.js.map +1 -0
- package/dist/presentation/ipc/handlers/audit/audit-helpers.js +56 -0
- package/dist/presentation/ipc/handlers/audit/audit-helpers.js.map +1 -0
- package/dist/presentation/ipc/handlers/audit/audit-list.js +57 -0
- package/dist/presentation/ipc/handlers/audit/audit-list.js.map +1 -0
- package/dist/presentation/ipc/handlers/audit/audit-readers.js +74 -0
- package/dist/presentation/ipc/handlers/audit/audit-readers.js.map +1 -0
- package/dist/presentation/ipc/handlers/audit/audit-settings-actions.js +73 -0
- package/dist/presentation/ipc/handlers/audit/audit-settings-actions.js.map +1 -0
- package/dist/presentation/ipc/handlers/audit/audit-table.js +10 -0
- package/dist/presentation/ipc/handlers/audit/audit-table.js.map +1 -0
- package/dist/presentation/ipc/handlers/audit/audit.js +101 -0
- package/dist/presentation/ipc/handlers/audit/audit.js.map +1 -0
- package/dist/presentation/ipc/handlers/audit/index.js +5 -0
- package/dist/presentation/ipc/handlers/audit/index.js.map +1 -0
- package/dist/presentation/ipc/handlers/identity/identity.js +182 -0
- package/dist/presentation/ipc/handlers/identity/identity.js.map +1 -0
- package/dist/presentation/ipc/handlers/identity/index.js +2 -0
- package/dist/presentation/ipc/handlers/identity/index.js.map +1 -0
- package/dist/presentation/ipc/handlers/integrations/index.js +6 -0
- package/dist/presentation/ipc/handlers/integrations/index.js.map +1 -0
- package/dist/presentation/ipc/handlers/integrations/integrations.js +114 -0
- package/dist/presentation/ipc/handlers/integrations/integrations.js.map +1 -0
- package/dist/presentation/ipc/handlers/integrations/notifications.js +49 -0
- package/dist/presentation/ipc/handlers/integrations/notifications.js.map +1 -0
- package/dist/presentation/ipc/handlers/integrations/remote.js +35 -0
- package/dist/presentation/ipc/handlers/integrations/remote.js.map +1 -0
- package/dist/presentation/ipc/handlers/integrations/skills.js +18 -0
- package/dist/presentation/ipc/handlers/integrations/skills.js.map +1 -0
- package/dist/presentation/ipc/handlers/integrations/webhooks.js +30 -0
- package/dist/presentation/ipc/handlers/integrations/webhooks.js.map +1 -0
- package/dist/presentation/ipc/handlers/observers.js +10 -2
- package/dist/presentation/ipc/handlers/observers.js.map +1 -1
- package/dist/presentation/ipc/handlers/providers.js +84 -0
- package/dist/presentation/ipc/handlers/providers.js.map +1 -0
- package/dist/presentation/ipc/handlers/queue.js +78 -20
- package/dist/presentation/ipc/handlers/queue.js.map +1 -1
- package/dist/presentation/ipc/handlers/repositories.js +32 -14
- package/dist/presentation/ipc/handlers/repositories.js.map +1 -1
- package/dist/presentation/ipc/handlers/runs.js +14 -5
- package/dist/presentation/ipc/handlers/runs.js.map +1 -1
- package/dist/presentation/ipc/handlers/stats.js +27 -6
- package/dist/presentation/ipc/handlers/stats.js.map +1 -1
- package/dist/presentation/ipc/handlers/system.js +8 -1
- package/dist/presentation/ipc/handlers/system.js.map +1 -1
- package/dist/presentation/ipc/handlers/table.js +20 -3
- package/dist/presentation/ipc/handlers/table.js.map +1 -1
- package/dist/presentation/ipc/log-signals.js +78 -0
- package/dist/presentation/ipc/log-signals.js.map +1 -0
- package/dist/presentation/ipc/publisher.js +20 -3
- package/dist/presentation/ipc/publisher.js.map +1 -1
- package/dist/presentation/ipc/server.js +58 -14
- package/dist/presentation/ipc/server.js.map +1 -1
- package/dist/presentation/ipc/snapshots.js +24 -4
- package/dist/presentation/ipc/snapshots.js.map +1 -1
- package/dist/presentation/ipc/views/global-queue.js +2 -1
- package/dist/presentation/ipc/views/global-queue.js.map +1 -1
- package/dist/presentation/ipc/views/groups.js +13 -0
- package/dist/presentation/ipc/views/groups.js.map +1 -1
- package/dist/presentation/ipc/views/index.js +2 -0
- package/dist/presentation/ipc/views/index.js.map +1 -1
- package/dist/presentation/ipc/views/notifications/notifications.js +7 -0
- package/dist/presentation/ipc/views/notifications/notifications.js.map +1 -0
- package/dist/presentation/ipc/views/notifications/webhooks.js +6 -0
- package/dist/presentation/ipc/views/notifications/webhooks.js.map +1 -0
- package/dist/presentation/ipc/views/queue.js +34 -7
- package/dist/presentation/ipc/views/queue.js.map +1 -1
- package/dist/presentation/ipc/views/runs.js +21 -8
- package/dist/presentation/ipc/views/runs.js.map +1 -1
- package/dist/presentation/ipc/views/stats.js +11 -3
- package/dist/presentation/ipc/views/stats.js.map +1 -1
- package/dist/presentation/mcp/host-kit.js +7 -0
- package/dist/presentation/mcp/host-kit.js.map +1 -1
- package/dist/presentation/mcp/host-queue-control.js +1 -1
- package/dist/presentation/mcp/host-queue-control.js.map +1 -1
- package/dist/presentation/mcp/host-queue.js +25 -21
- package/dist/presentation/mcp/host-queue.js.map +1 -1
- package/dist/presentation/mcp/host-runs.js +24 -16
- package/dist/presentation/mcp/host-runs.js.map +1 -1
- package/dist/presentation/mcp/host.js +2 -1
- package/dist/presentation/mcp/host.js.map +1 -1
- package/dist/presentation/mcp/index.js +1 -0
- package/dist/presentation/mcp/index.js.map +1 -1
- package/dist/presentation/mcp/remote-bridge.js +50 -0
- package/dist/presentation/mcp/remote-bridge.js.map +1 -0
- package/dist/presentation/mcp/tools.js +18 -0
- package/dist/presentation/mcp/tools.js.map +1 -1
- package/dist/presentation/mcp/worker-extra.js +86 -16
- package/dist/presentation/mcp/worker-extra.js.map +1 -1
- package/dist/presentation/mcp/worker-tools.js.map +1 -1
- package/dist/presentation/mcp/worker.js +2 -1
- package/dist/presentation/mcp/worker.js.map +1 -1
- package/dist/presentation/web/access.js +42 -0
- package/dist/presentation/web/access.js.map +1 -0
- package/dist/presentation/web/auth/context.js +3 -0
- package/dist/presentation/web/auth/context.js.map +1 -0
- package/dist/presentation/web/auth/gate.js +33 -0
- package/dist/presentation/web/auth/gate.js.map +1 -0
- package/dist/presentation/web/auth/oidc.js +49 -0
- package/dist/presentation/web/auth/oidc.js.map +1 -0
- package/dist/presentation/web/auth/pages.js +43 -0
- package/dist/presentation/web/auth/pages.js.map +1 -0
- package/dist/presentation/web/auth/proxy.js +54 -0
- package/dist/presentation/web/auth/proxy.js.map +1 -0
- package/dist/presentation/web/auth/routes.js +152 -0
- package/dist/presentation/web/auth/routes.js.map +1 -0
- package/dist/presentation/web/auth/saml.js +65 -0
- package/dist/presentation/web/auth/saml.js.map +1 -0
- package/dist/presentation/web/auth/session.js +53 -0
- package/dist/presentation/web/auth/session.js.map +1 -0
- package/dist/presentation/web/errors.js +18 -1
- package/dist/presentation/web/errors.js.map +1 -1
- package/dist/presentation/web/hub.js +101 -22
- package/dist/presentation/web/hub.js.map +1 -1
- package/dist/presentation/web/live/protocol.js +68 -0
- package/dist/presentation/web/live/protocol.js.map +1 -0
- package/dist/presentation/web/live/read.js +29 -0
- package/dist/presentation/web/live/read.js.map +1 -0
- package/dist/presentation/web/live/socket.js +93 -0
- package/dist/presentation/web/live/socket.js.map +1 -0
- package/dist/presentation/web/live/state-topics.js +127 -0
- package/dist/presentation/web/live/state-topics.js.map +1 -0
- package/dist/presentation/web/live/topics.js +119 -0
- package/dist/presentation/web/live/topics.js.map +1 -0
- package/dist/presentation/web/options.js.map +1 -1
- package/dist/presentation/web/panel/daemon-panel.js +24 -4
- package/dist/presentation/web/panel/daemon-panel.js.map +1 -1
- package/dist/presentation/web/request.js +42 -3
- package/dist/presentation/web/request.js.map +1 -1
- package/dist/presentation/web/routes/access/access.js +14 -0
- package/dist/presentation/web/routes/access/access.js.map +1 -0
- package/dist/presentation/web/routes/audit/audit.js +11 -0
- package/dist/presentation/web/routes/audit/audit.js.map +1 -0
- package/dist/presentation/web/routes/integrations/integrations.js +147 -0
- package/dist/presentation/web/routes/integrations/integrations.js.map +1 -0
- package/dist/presentation/web/routes/integrations/webhooks.js +73 -0
- package/dist/presentation/web/routes/integrations/webhooks.js.map +1 -0
- package/dist/presentation/web/routes/providers/providers.js +64 -0
- package/dist/presentation/web/routes/providers/providers.js.map +1 -0
- package/dist/presentation/web/routes/queue.js +1 -1
- package/dist/presentation/web/routes/queue.js.map +1 -1
- package/dist/presentation/web/routes/runs.js +20 -20
- package/dist/presentation/web/routes/runs.js.map +1 -1
- package/dist/presentation/web/routes/system.js +21 -13
- package/dist/presentation/web/routes/system.js.map +1 -1
- package/dist/presentation/web/routes/tags.js +5 -1
- package/dist/presentation/web/routes/tags.js.map +1 -1
- package/dist/presentation/web/server.js +97 -17
- package/dist/presentation/web/server.js.map +1 -1
- package/dist/presentation/web/visible.js +93 -0
- package/dist/presentation/web/visible.js.map +1 -0
- package/dist/web/assets/EntryList-CMEscRod.js +3 -0
- package/dist/web/assets/FilterField-BQc_UwWN.js +7 -0
- package/dist/web/assets/LinkTabs-v8NyjDyU.js +4 -0
- package/dist/web/assets/SharedPipelinesGroup-BzlZ5U2Y.js +1 -0
- package/dist/web/assets/deliveryModes-CHEVNJxR.js +1 -0
- package/dist/web/assets/empty-Bho47NOE.js +41 -0
- package/dist/web/assets/index-vRNf1iRZ.css +2 -0
- package/dist/web/assets/index-ztjIJ-Ig.js +41 -0
- package/dist/web/assets/locales-BTrmAl7v.js +1 -0
- package/dist/web/assets/pipelines-DVZ7cqyZ.js +14 -0
- package/dist/web/assets/settingFields-iGwxRKJI.js +1 -0
- package/dist/web/assets/settings-DN_KmJBg.js +6 -0
- package/dist/web/assets/stats-4iy1ZRny.js +1 -0
- package/dist/web/assets/tabs-D26rwwNs.js +1 -0
- package/dist/web/assets/toggle-group-D-oIoacR.js +1 -0
- package/dist/web/assets/topology-CaSfGJbk.js +1 -0
- package/dist/web/index.html +10 -7
- package/integrations/claude-code/.claude-plugin/plugin.json +1 -1
- package/package.json +12 -4
- package/dist/feature/runs/services/effects/proxy.js +0 -5
- package/dist/feature/runs/services/effects/proxy.js.map +0 -1
- package/dist/web/assets/FilterColumn-z60UZhkk.js +0 -1
- package/dist/web/assets/SharedPipelinesGroup-CgUJ-sUc.js +0 -1
- package/dist/web/assets/card-4euJkmfJ.js +0 -1
- package/dist/web/assets/deliveryModes-BGIYJzWQ.js +0 -1
- package/dist/web/assets/empty-OZRGgwa5.js +0 -41
- package/dist/web/assets/index-Cg7gL5P8.css +0 -2
- package/dist/web/assets/index-LD1g1Vkm.js +0 -43
- package/dist/web/assets/locales-D85Vnmev.js +0 -1
- package/dist/web/assets/pipelines-Cej37cah.js +0 -14
- package/dist/web/assets/settingFields-gm9TlqxP.js +0 -1
- package/dist/web/assets/settings-CDiTeiYL.js +0 -6
- package/dist/web/assets/specialists-BGKB5BLI.js +0 -4
- package/dist/web/assets/stats-BM-bGkGX.js +0 -1
- package/dist/web/assets/topology-BE6orrOL.js +0 -1
- package/dist/web/assets/trash-xUZ90-AG.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/feature/runs/services/effects/context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/feature/runs/services/effects/context.ts"],"names":[],"mappings":"AA6BA,yEAAyE;AACzE,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACxC,2EAA2E;AAC3E,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAsDvC,MAAM,UAAU,KAAK,CAAC,GAAe;IACnC,OAAO,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { rmSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { conversationName } from '../../../agents/types/index.js';
|
|
4
|
+
import { attemptDirectory } from '../../../../platform/git/index.js';
|
|
5
|
+
import { expandMcpServers } from '../../../agents/types/index.js';
|
|
6
|
+
import { SPLIT_GROUP, findGroup, isRepairGroup, specialistOfStep, stepsOf, } from '../../types/index.js';
|
|
7
|
+
import { workspaceOf } from './worktrees.js';
|
|
8
|
+
/**
|
|
9
|
+
* The private state of the conversation of an attempt: the folder of its group, then the step, the
|
|
10
|
+
* generation and the runtime. Null for an attempt of a runtime without a conversation.
|
|
11
|
+
*/
|
|
12
|
+
export function conversationFolder(state, group, attempt) {
|
|
13
|
+
if (attempt.generation === null)
|
|
14
|
+
return null;
|
|
15
|
+
const name = conversationName(attempt.stepId, attempt.generation, attempt.runtime);
|
|
16
|
+
const anyAttempt = attemptDirectory(workspaceOf(state), state.run.id, group, attempt.seq);
|
|
17
|
+
return join(anyAttempt, '..', 'conversations', name);
|
|
18
|
+
}
|
|
19
|
+
/** Removes every conversation of a merged group. */
|
|
20
|
+
export function purgeGroupConversations(state, groupSlug) {
|
|
21
|
+
const group = findGroup(state, groupSlug);
|
|
22
|
+
if (group?.status !== 'merged')
|
|
23
|
+
return;
|
|
24
|
+
for (const item of group.attempts) {
|
|
25
|
+
const folder = conversationFolder(state, groupSlug, item);
|
|
26
|
+
if (folder)
|
|
27
|
+
rmSync(folder, { recursive: true, force: true });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Removes the private state of a conversation that cannot resume any more: a step that ended with
|
|
32
|
+
* `done` or `rejected` (a review keeps it), and every conversation of a merged group (a failed or
|
|
33
|
+
* cancelled group may be retried). A conversation that waits for a person, a limit or a restart of
|
|
34
|
+
* the daemon is kept.
|
|
35
|
+
*/
|
|
36
|
+
export function purgeConversations(state, groupSlug, seq) {
|
|
37
|
+
const group = findGroup(state, groupSlug);
|
|
38
|
+
const attempt = group?.attempts.find((item) => item.seq === seq);
|
|
39
|
+
if (!group || !attempt)
|
|
40
|
+
return;
|
|
41
|
+
const remove = (item) => {
|
|
42
|
+
const folder = conversationFolder(state, groupSlug, item);
|
|
43
|
+
if (folder)
|
|
44
|
+
rmSync(folder, { recursive: true, force: true });
|
|
45
|
+
};
|
|
46
|
+
if (group.status === 'merged') {
|
|
47
|
+
purgeGroupConversations(state, groupSlug);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const verdict = attempt.report?.verdict;
|
|
51
|
+
if (attempt.status === 'finished' &&
|
|
52
|
+
(verdict === 'done' || verdict === 'rejected') &&
|
|
53
|
+
!attempt.input.humanReview) {
|
|
54
|
+
remove(attempt);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/** The specialist as the attempt runs it: the runtime, model and variant the chain chose. */
|
|
58
|
+
export function effectiveSpecialist(specialist, attempt) {
|
|
59
|
+
return {
|
|
60
|
+
...specialist,
|
|
61
|
+
runtime: attempt.runtime,
|
|
62
|
+
model: attempt.model,
|
|
63
|
+
...(attempt.variant !== undefined ? { variant: attempt.variant } : {}),
|
|
64
|
+
...(attempt.reasoningEffort !== undefined ? { reasoningEffort: attempt.reasoningEffort } : {}),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/** The command of the worker MCP server of one attempt; its token is valid for this attempt only. */
|
|
68
|
+
export function workerCommand(entry, token, socket, group, specialist) {
|
|
69
|
+
return [
|
|
70
|
+
...entry,
|
|
71
|
+
'mcp',
|
|
72
|
+
'--worker',
|
|
73
|
+
token,
|
|
74
|
+
'--socket',
|
|
75
|
+
socket,
|
|
76
|
+
...(group.slug === SPLIT_GROUP ? ['--split'] : []),
|
|
77
|
+
...(specialist.queue === true ? ['--queue'] : []),
|
|
78
|
+
...(isRepairGroup(group) ? ['--repair'] : []),
|
|
79
|
+
];
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The servers that go through a connection become ordinary stdio servers of the agent: the bridge
|
|
83
|
+
* of this attempt (`aip mcp --remote <name>`), which knows the token of the attempt and nothing of
|
|
84
|
+
* the connection. The servers with a command stay as they are.
|
|
85
|
+
*/
|
|
86
|
+
export function bridgedServers(servers, entry, token, socket) {
|
|
87
|
+
return Object.fromEntries(Object.entries(servers).map(([name, server]) => [
|
|
88
|
+
name,
|
|
89
|
+
server.connection === undefined
|
|
90
|
+
? server
|
|
91
|
+
: {
|
|
92
|
+
command: entry[0] ?? 'aip',
|
|
93
|
+
args: [
|
|
94
|
+
...entry.slice(1),
|
|
95
|
+
'mcp',
|
|
96
|
+
'--remote',
|
|
97
|
+
name,
|
|
98
|
+
'--worker',
|
|
99
|
+
token,
|
|
100
|
+
'--socket',
|
|
101
|
+
socket,
|
|
102
|
+
],
|
|
103
|
+
env: {},
|
|
104
|
+
},
|
|
105
|
+
]));
|
|
106
|
+
}
|
|
107
|
+
/** The specialist with its connection servers replaced by the bridge of the attempt. */
|
|
108
|
+
export function withBridges(specialist, entry, token, socket) {
|
|
109
|
+
if (specialist.mcp === undefined)
|
|
110
|
+
return specialist;
|
|
111
|
+
return { ...specialist, mcp: bridgedServers(specialist.mcp, entry, token, socket) };
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The refusal to start for a server whose connection does not serve the project, or null. The
|
|
115
|
+
* text names the server and the connection, never a secret.
|
|
116
|
+
*/
|
|
117
|
+
export function unavailableConnection(port, project, servers) {
|
|
118
|
+
for (const [name, server] of Object.entries(servers)) {
|
|
119
|
+
if (server.connection === undefined)
|
|
120
|
+
continue;
|
|
121
|
+
const found = port.resolve(project, server.connection);
|
|
122
|
+
if (found.ok)
|
|
123
|
+
continue;
|
|
124
|
+
return found.reason === 'disabled'
|
|
125
|
+
? `MCP server ${name}: connection ${server.connection} is disabled`
|
|
126
|
+
: `MCP server ${name}: connection ${server.connection} is not available for this project`;
|
|
127
|
+
}
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The specialist with `${NAME}` of its MCP servers replaced and every connection checked, or the
|
|
132
|
+
* reason the attempt cannot start. The snapshot of the run keeps the text: this is the only place.
|
|
133
|
+
*/
|
|
134
|
+
export function connectedSpecialist(port, project, specialist, variables) {
|
|
135
|
+
if (specialist.mcp === undefined)
|
|
136
|
+
return { specialist };
|
|
137
|
+
const expanded = expandMcpServers(specialist.mcp, variables);
|
|
138
|
+
if (!expanded.ok)
|
|
139
|
+
return { error: expanded.error };
|
|
140
|
+
const refused = unavailableConnection(port, project, expanded.servers);
|
|
141
|
+
return refused === null
|
|
142
|
+
? { specialist: { ...specialist, mcp: expanded.servers } }
|
|
143
|
+
: { error: refused };
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* The servers of a specialist that go through a connection: where the registry may name the
|
|
147
|
+
* project of the run.
|
|
148
|
+
*/
|
|
149
|
+
export function connectionServers(specialist) {
|
|
150
|
+
return Object.entries(specialist.mcp ?? {}).flatMap(([server, one]) => one.connection === undefined ? [] : [{ server, connection: one.connection }]);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* The project of the service registry the run's project is linked to. The wait is bounded and a
|
|
154
|
+
* failure or a silence is null. Runs outside the queue of the engine.
|
|
155
|
+
*/
|
|
156
|
+
export async function lookupRegistryProject(dependencies, repository, servers) {
|
|
157
|
+
let timer;
|
|
158
|
+
try {
|
|
159
|
+
return await Promise.race([
|
|
160
|
+
dependencies.registryProject.projectFor(repository, servers),
|
|
161
|
+
new Promise((resolve) => {
|
|
162
|
+
timer = setTimeout(() => resolve(null), dependencies.timings.registryProjectMs);
|
|
163
|
+
}),
|
|
164
|
+
]);
|
|
165
|
+
}
|
|
166
|
+
catch {
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
finally {
|
|
170
|
+
clearTimeout(timer);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
/** The servers through a connection of an attempt that has not been told its project yet. */
|
|
174
|
+
function registryServers(state, slug, seq) {
|
|
175
|
+
const group = findGroup(state, slug);
|
|
176
|
+
const attempt = group?.attempts.find((candidate) => candidate.seq === seq);
|
|
177
|
+
if (!group || !attempt || attempt.runtime === 'command')
|
|
178
|
+
return [];
|
|
179
|
+
if (attempt.input.registryProject !== undefined)
|
|
180
|
+
return [];
|
|
181
|
+
const step = stepsOf(state.run, group)[attempt.stepIndex];
|
|
182
|
+
const specialist = specialistOfStep(state.run, group, step ?? { specialist: attempt.specialist });
|
|
183
|
+
return specialist ? connectionServers(specialist) : [];
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Starts an attempt through `startNow`. When a server of its specialist goes through a connection
|
|
187
|
+
* and the input has no registry project yet, the wait for the registry happens outside the queue:
|
|
188
|
+
* the queue moves on and the attempt continues in it once the answer (or the timeout) is there.
|
|
189
|
+
*/
|
|
190
|
+
export async function startWithRegistryProject(dependencies, state, slug, seq, startNow) {
|
|
191
|
+
const servers = registryServers(state, slug, seq);
|
|
192
|
+
if (servers.length === 0)
|
|
193
|
+
return startNow();
|
|
194
|
+
const { context } = dependencies;
|
|
195
|
+
void lookupRegistryProject(dependencies, state.run.repository, servers)
|
|
196
|
+
.then((answer) => context.stopping
|
|
197
|
+
? undefined
|
|
198
|
+
: context.serial(async () => {
|
|
199
|
+
if (context.stopping)
|
|
200
|
+
return;
|
|
201
|
+
const attempt = findGroup(state, slug)?.attempts.find((item) => item.seq === seq);
|
|
202
|
+
// Cancelled, finished or started while the registry was asked: nothing to start.
|
|
203
|
+
if (attempt?.status !== 'running')
|
|
204
|
+
return;
|
|
205
|
+
const exitWith = (failure) => context.apply(state, {
|
|
206
|
+
kind: 'attempt_exited',
|
|
207
|
+
group: slug,
|
|
208
|
+
seq,
|
|
209
|
+
exit: { sessionId: null, usage: null, failure, outsideChanges: [] },
|
|
210
|
+
});
|
|
211
|
+
try {
|
|
212
|
+
if (attempt.reason !== null) {
|
|
213
|
+
// A pause or a message came while the registry was asked: no process exists to
|
|
214
|
+
// stop, so the attempt ends as if it had been stopped, and the machine goes on.
|
|
215
|
+
await exitWith(null);
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
if (answer !== null) {
|
|
219
|
+
await context.apply(state, {
|
|
220
|
+
kind: 'registry_project_resolved',
|
|
221
|
+
group: slug,
|
|
222
|
+
seq,
|
|
223
|
+
registryProject: answer,
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
await startNow();
|
|
227
|
+
}
|
|
228
|
+
catch (error) {
|
|
229
|
+
const current = findGroup(state, slug)?.attempts.find((item) => item.seq === seq);
|
|
230
|
+
if (current?.status !== 'running')
|
|
231
|
+
return;
|
|
232
|
+
await exitWith({ kind: 'spawn', message: error.message });
|
|
233
|
+
}
|
|
234
|
+
}))
|
|
235
|
+
.catch(() => undefined);
|
|
236
|
+
return undefined;
|
|
237
|
+
}
|
|
238
|
+
//# sourceMappingURL=conversations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../../../../src/feature/runs/services/effects/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAIlE,OAAO,EACL,WAAW,EACX,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,OAAO,GAIR,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAChC,KAAe,EACf,KAAa,EACb,OAAgB;IAEhB,IAAI,OAAO,CAAC,UAAU,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAC7C,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,OAAsB,CAAC,CAAC;IAClG,MAAM,UAAU,GAAG,gBAAgB,CAAC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unEffects {
|
|
|
75
75
|
return this.git.merge(state, effect.group, effect.updateOnConflict);
|
|
76
76
|
case 'deliver':
|
|
77
77
|
return this.git.deliver(state, effect.groups, effect.force, effect.message);
|
|
78
|
+
case 'push':
|
|
79
|
+
return this.git.push(state);
|
|
78
80
|
case 'cleanup':
|
|
79
81
|
return this.git.cleanup(state);
|
|
80
82
|
case 'prepare_resolve':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effects.js","sourceRoot":"","sources":["../../../../../src/feature/runs/services/effects/effects.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEvD,6FAA6F;AAC7F,MAAM,OAAO,UAAU;IACJ,YAAY,CAAqB;IACjC,OAAO,GAAG,IAAI,aAAa,EAAE,CAAC;IAC9B,KAAK,CAAe;IACpB,OAAO,CAAe;IACtB,QAAQ,CAAiB;IACzB,GAAG,CAAa;IAEjC,YAAY,YAAgC;QAC1C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,MAAM,OAAO,GAAG,IAAI,cAAc,EAAE,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,IAAI,YAAY,CAAC,YAAY,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;Q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AgB,CAAC,CAAC;YACtE,KAAK,SAAS;gBACZ,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;YAC9E,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC9B,KAAK,SAAS;gBACZ,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACjC,KAAK,iBAAiB;gBACpB,OAAO,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;YACvD,KAAK,gBAAgB;gBACnB,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;QAC3E,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cleanRun, commitAll, commitMessage, commitResolve, deliver, filesWithMarkers, git, mergeBranch, prepareResolve, runWorktreeRoot, updateFromBranch, } from '../../../../platform/git/index.js';
|
|
2
2
|
import { RESOLVE_GROUP, SPLIT_GROUP, actionPointOf, deliveryBranch, findGroup, groupRef, runRef, } from '../../types/index.js';
|
|
3
|
+
import { purgeGroupConversations } from './conversations.js';
|
|
3
4
|
import { ensureGroupWorktree, resolveWorktree, workspaceOf, worktreePath } from './worktrees.js';
|
|
4
5
|
function groupChanges(state, slugs) {
|
|
5
6
|
return state.groups
|
|
@@ -69,6 +70,7 @@ export class GitEffects {
|
|
|
69
70
|
outcome = { kind: 'failed', message: error.message };
|
|
70
71
|
}
|
|
71
72
|
await this.dependencies.context.apply(state, { kind: 'merge_finished', group: slug, outcome });
|
|
73
|
+
purgeGroupConversations(state, slug);
|
|
72
74
|
void this.dependencies.diff.refreshDiff(state, slug);
|
|
73
75
|
if (outcome.kind === 'merged')
|
|
74
76
|
void this.dependencies.diff.savePatch(state);
|
|
@@ -108,15 +110,18 @@ export class GitEffects {
|
|
|
108
110
|
const { include } = state.run.config.workspace;
|
|
109
111
|
const base = await git(repository, 'rev-parse', resolveBaseRef(state));
|
|
110
112
|
const resolved = await commitResolve(worktree, base, include);
|
|
113
|
+
const stamp = this.dependencies.commits.stamp(state.run, message);
|
|
111
114
|
result = await deliver({
|
|
112
115
|
repository,
|
|
113
116
|
changes: [{ group: RESOLVE_GROUP, from: base, to: resolved }],
|
|
114
117
|
mode: state.run.config.delivery.mode,
|
|
115
118
|
force: false,
|
|
116
|
-
message,
|
|
119
|
+
message: stamp?.message ?? message,
|
|
117
120
|
branch: deliveryBranch(state.run),
|
|
118
121
|
runRef: runRef(state.run),
|
|
119
122
|
include,
|
|
123
|
+
base: state.run.baseCommit,
|
|
124
|
+
...(stamp ? { identity: stamp.identity } : {}),
|
|
120
125
|
});
|
|
121
126
|
}
|
|
122
127
|
}
|
|
@@ -129,15 +134,18 @@ export class GitEffects {
|
|
|
129
134
|
async deliver(state, slugs, force, message) {
|
|
130
135
|
let result;
|
|
131
136
|
try {
|
|
137
|
+
const stamp = this.dependencies.commits.stamp(state.run, message);
|
|
132
138
|
result = await deliver({
|
|
133
139
|
repository: state.run.repository,
|
|
134
140
|
changes: groupChanges(state, slugs),
|
|
135
141
|
mode: state.run.config.delivery.mode,
|
|
136
142
|
force,
|
|
137
|
-
message,
|
|
143
|
+
message: stamp?.message ?? message,
|
|
138
144
|
branch: deliveryBranch(state.run),
|
|
139
145
|
runRef: runRef(state.run),
|
|
140
146
|
include: state.run.config.workspace.include,
|
|
147
|
+
base: state.run.baseCommit,
|
|
148
|
+
...(stamp ? { identity: stamp.identity } : {}),
|
|
141
149
|
});
|
|
142
150
|
}
|
|
143
151
|
catch (error) {
|
|
@@ -146,6 +154,13 @@ export class GitEffects {
|
|
|
146
154
|
await this.outside.accept(state, result);
|
|
147
155
|
await this.dependencies.context.apply(state, { kind: 'delivery_finished', result });
|
|
148
156
|
}
|
|
157
|
+
/** Sends the branch of the delivery to the remote repository and tells the machine how it went. */
|
|
158
|
+
async push(state) {
|
|
159
|
+
const outcome = await this.dependencies.push.push(state.run);
|
|
160
|
+
await this.dependencies.context.apply(state, outcome.ok
|
|
161
|
+
? { kind: 'delivery_pushed', remoteBranch: outcome.remoteBranch }
|
|
162
|
+
: { kind: 'delivery_push_failed', reason: outcome.reason });
|
|
163
|
+
}
|
|
149
164
|
async cleanup(state) {
|
|
150
165
|
// The refs the patch is built from go away with the cleanup.
|
|
151
166
|
await this.dependencies.diff.savePatch(state);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../../../../src/feature/runs/services/effects/git.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,SAAS,EACT,aAAa,EACb,aAAa,EACb,OAAO,EACP,gBAAgB,EAChB,GAAG,EACH,WAAW,EACX,cAAc,EACd,eAAe,EACf,gBAAgB,GAEjB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACL,aAAa,EACb,WAAW,EACX,aAAa,EACb,cAAc,EACd,SAAS,EACT,QAAQ,EACR,MAAM,GAEP,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../../../../src/feature/runs/services/effects/git.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,SAAS,EACT,aAAa,EACb,aAAa,EACb,OAAO,EACP,gBAAgB,EAChB,GAAG,EACH,WAAW,EACX,cAAc,EACd,eAAe,EACf,gBAAgB,GAEjB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACL,aAAa,EACb,WAAW,EACX,aAAa,EACb,cAAc,EACd,SAAS,EACT,QAAQ,EACR,MAAM,GAEP,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAG7D,OAAO,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GAAG,EAAE,KAAK;gBACV,MAAM,EAAE,KAAK;aACd,CAAC,CAAC;QACL,CAAC;QAAC,MAAM,CAAC;YACP,OAAO;QACT,CAAC;IACH,CAAC;CACF"}
|
|
@@ -4,7 +4,7 @@ import { launchProcess } from '../../../agents/services/index.js';
|
|
|
4
4
|
import { answerText, namingPrompt } from '../../../agents/types/index.js';
|
|
5
5
|
import { findExecutable } from '../../../../platform/process/index.js';
|
|
6
6
|
import { modelIdProblem } from '../../../swarm-config/types/index.js';
|
|
7
|
-
import { withProxy } from './
|
|
7
|
+
import { withProxy } from './runtime-check.js';
|
|
8
8
|
import { workspaceOf } from './worktrees.js';
|
|
9
9
|
/** Asks a cheap model for the title and the name of a run, in the background. */
|
|
10
10
|
export async function nameRun(dependencies, running, state) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"naming.js","sourceRoot":"","sources":["../../../../../src/feature/runs/services/effects/naming.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAItE,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"naming.js","sourceRoot":"","sources":["../../../../../src/feature/runs/services/effects/naming.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,UAAU,E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AE,IAAI,EAAE,CAAC,CAAC;IACvF,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ;QAAE,OAAO;IAC7B,IAAI,KAAK,GAAa,EAAE,CAAC;IACzB,IAAI,CAAC;QACH,KAAK,GAAG,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAAC,MAAM,CAAC;QACP,YAAY;IACd,CAAC;IACD,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACjG,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,CACxB,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE;QACnB,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,IAAI;QAC3B,IAAI,EAAE,KAAK,EAAE,IAAI,IAAI,IAAI;QACzB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK;KAC1B,CAAC,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { findExecutable } from '../../../../platform/process/index.js';
|
|
2
|
+
import { findGroup } from '../../types/index.js';
|
|
2
3
|
/**
|
|
3
4
|
* Why a runtime cannot start an agent in a repository by its current settings, or null when it
|
|
4
5
|
* can: the settings are unreadable (`spawn`), the runtime is off (`runtime_disabled`) or its
|
|
@@ -17,4 +18,31 @@ export function runtimeProblem(dependencies, repository, name) {
|
|
|
17
18
|
}
|
|
18
19
|
return null;
|
|
19
20
|
}
|
|
21
|
+
/** The environment of an agent with `network.proxy`; `runtimes.<runtime>.env` still wins over it. */
|
|
22
|
+
export function withProxy(environment, proxy) {
|
|
23
|
+
return proxy === null ? environment : { ...environment, HTTPS_PROXY: proxy, HTTP_PROXY: proxy };
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Why an agent that ended without a report may have ended because of the network: the problem,
|
|
27
|
+
* or null. The check runs after the exit and outside the queue, so a slow probe holds nothing.
|
|
28
|
+
*/
|
|
29
|
+
export async function networkFailure(network, state, key, exit) {
|
|
30
|
+
if (exit.spawnError || exit.outcome.usageLimit)
|
|
31
|
+
return null;
|
|
32
|
+
const attempt = findGroup(state, key.group)?.attempts.find((item) => item.seq === key.seq);
|
|
33
|
+
if (!attempt || attempt.status !== 'running' || attempt.reason !== null)
|
|
34
|
+
return null;
|
|
35
|
+
if (attempt.report !== null)
|
|
36
|
+
return null;
|
|
37
|
+
if (exit.outcome.networkError)
|
|
38
|
+
return exit.outcome.networkError;
|
|
39
|
+
let snapshot;
|
|
40
|
+
try {
|
|
41
|
+
snapshot = await network.checkNow();
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return snapshot.state === 'down' ? (snapshot.problem ?? 'network is down') : null;
|
|
47
|
+
}
|
|
20
48
|
//# sourceMappingURL=runtime-check.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-check.js","sourceRoot":"","sources":["../../../../../src/feature/runs/services/effects/runtime-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime-check.js","sourceRoot":"","sources":["../../../../../src/feature/runs/services/effects/runtime-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAIvE,OAAO,EAAE,SAAS,EAAkC,MAAM,sBAAsB,CAAC;AAIjF;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAC5B,YAA2E,EAC3E,UAAkB,EAClB,IAAY;IAEZ,MAAM,OAAO,GAAG,IAAmB,CAAC;IACpC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WA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,KAAK,SAAS,IAAI,OAAO,CAAC,MAAM,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACrF,IAAI,OAAO,CAAC,MAAM,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACzC,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY;QAAE,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;IAChE,IAAI,QAAQ,CAAC;IACb,IAAI,CAAC;QACH,QAAQ,GAAG,MAAM,OAAO,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,QAAQ,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACpF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/feature/runs/services/effects/skills/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { findGroup } from '../../../types/index.js';
|
|
2
|
+
import { heldPins, layOutSkills, NO_SKILLS, pinsEvent, planSkills, } from './registry.js';
|
|
3
|
+
/** Whether the attempt still waits to start: the run goes on and the attempt was not stopped. */
|
|
4
|
+
function waiting(dependencies, state, key) {
|
|
5
|
+
if (dependencies.context.stopping)
|
|
6
|
+
return false;
|
|
7
|
+
const attempt = findGroup(state, key.group)?.attempts.find((one) => one.seq === key.seq);
|
|
8
|
+
return attempt?.status === 'running';
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Fixes and lays out the registry skills of an attempt. The network of the registry runs outside
|
|
12
|
+
* the serial queue; the attempt comes back into it, checks that it is still waiting, applies the
|
|
13
|
+
* event and starts. A step that was cancelled meanwhile does not start.
|
|
14
|
+
*/
|
|
15
|
+
export async function startWithRegistrySkills(dependencies, state, key, plan, directory, begin, fail) {
|
|
16
|
+
const { context, registrySkills } = dependencies;
|
|
17
|
+
try {
|
|
18
|
+
const found = plan.missing.length > 0
|
|
19
|
+
? await registrySkills.pin(state.run.repository, plan.missing)
|
|
20
|
+
: { pinned: [], problems: [] };
|
|
21
|
+
const pins = await context.serial(async () => {
|
|
22
|
+
if (!waiting(dependencies, state, key))
|
|
23
|
+
return null;
|
|
24
|
+
const event = pinsEvent(found);
|
|
25
|
+
if (event !== null)
|
|
26
|
+
await context.apply(state, event);
|
|
27
|
+
return heldPins(state, plan.wanted);
|
|
28
|
+
});
|
|
29
|
+
if (pins === null)
|
|
30
|
+
return;
|
|
31
|
+
const skills = await layOutSkills(registrySkills, state.run.repository, pins, directory, found.problems);
|
|
32
|
+
await context.serial(async () => {
|
|
33
|
+
if (waiting(dependencies, state, key))
|
|
34
|
+
await begin(skills);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
await context
|
|
39
|
+
.serial(async () => {
|
|
40
|
+
if (waiting(dependencies, state, key))
|
|
41
|
+
await fail(error.message);
|
|
42
|
+
})
|
|
43
|
+
.catch(() => undefined);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Starts an attempt with the skills its specialist needs: at once when there are none to fetch,
|
|
48
|
+
* else through `startWithRegistrySkills` (the caller does not wait for the network).
|
|
49
|
+
*/
|
|
50
|
+
export async function startWithSkills(dependencies, state, key, specialist, runtime, directory, begin, fail) {
|
|
51
|
+
const plan = planSkills(state, specialist, runtime);
|
|
52
|
+
if (plan.kind === 'registry') {
|
|
53
|
+
void startWithRegistrySkills(dependencies, state, key, plan, directory, begin, fail);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
await begin(plan.kind === 'unsupported' ? { directory: null, warnings: plan.warnings } : NO_SKILLS);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=outside-queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outside-queue.js","sourceRoot":"","sources":["../../../../../../src/feature/runs/services/effects/skills/outside-queue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAiB,MAAM,yBAAyB,CAAC;AAInE,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,SAAS,EACT,UAAU,GAGX,MAAM,eAAe,CAAC;AAEvB,iGAAiG;AACjG,SAAS,OAAO,CACd,YAAiD,EACjD,KAAe,EACf,GAAe;IAEf,IAAI,YAAY,CAAC,OAAO,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IAChD,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC;IACzF,OAAO,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC;AACvC,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,YAAoE,EACpE,KAAe,EACf,GAAe,EACf,IAA+C,EAC/C,SAAiB,EACjB,KAA+C,EAC/C,IAAwC;IAExC,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,YAAY,CAAC;IACjD,IAAI,CAAC;QACH,MAAM,KAAK,GACT,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;YACrB,CAAC,CAAC,MAAM,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC;YAC9D,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;QACnC,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC3C,IAAI,CAAC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IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QAC7B,KAAK,uBAAuB,CAAC,YAAY,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;QACrF,OAAO;IACT,CAAC;IACD,MAAM,KAAK,CACT,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CACvF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { appendFileSync } from 'node:fs';
|
|
2
|
+
import { homedir } from 'node:os';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { missingSkills } from '../../../../agents/services/index.js';
|
|
5
|
+
import { isRegistrySkill, parseRegistrySkill, } from '../../../../swarm-config/types/index.js';
|
|
6
|
+
export const NO_SKILLS = { directory: null, warnings: [] };
|
|
7
|
+
/** The names of the `registry:` skills of a specialist, in order, without repeats. */
|
|
8
|
+
export function registrySkillNames(specialist) {
|
|
9
|
+
const found = [];
|
|
10
|
+
for (const text of specialist.skills) {
|
|
11
|
+
if (!isRegistrySkill(text))
|
|
12
|
+
continue;
|
|
13
|
+
const parsed = parseRegistrySkill(text);
|
|
14
|
+
if (parsed.ok && !found.some((one) => one.name === parsed.ref.name)) {
|
|
15
|
+
found.push({ name: parsed.ref.name, text });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return found;
|
|
19
|
+
}
|
|
20
|
+
/** Decides what the attempt needs: nothing, a warning, or versions to fix and lay out. */
|
|
21
|
+
export function planSkills(state, specialist, runtime) {
|
|
22
|
+
const wanted = registrySkillNames(specialist);
|
|
23
|
+
if (wanted.length === 0)
|
|
24
|
+
return { kind: 'none' };
|
|
25
|
+
if (!runtime.loadsExtraSkills) {
|
|
26
|
+
return {
|
|
27
|
+
kind: 'unsupported',
|
|
28
|
+
warnings: [
|
|
29
|
+
`registry skills are not supported by runtime ${runtime.name}: ${wanted.map((one) => one.name).join(', ')}`,
|
|
30
|
+
],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const fixed = state.run.pinnedSkills ?? {};
|
|
34
|
+
const missing = wanted.filter((one) => !Object.hasOwn(fixed, one.name)).map((one) => one.text);
|
|
35
|
+
return { kind: 'registry', wanted, missing };
|
|
36
|
+
}
|
|
37
|
+
/** The event that fixes the versions a registry answered with; null when it fixed none. */
|
|
38
|
+
export function pinsEvent(result) {
|
|
39
|
+
if (result.pinned.length === 0)
|
|
40
|
+
return null;
|
|
41
|
+
const pins = Object.fromEntries(result.pinned.map((pin) => [pin.name, { version: pin.version, connection: pin.connection }]));
|
|
42
|
+
return { kind: 'skills_pinned', pins };
|
|
43
|
+
}
|
|
44
|
+
/** The pins the run holds for the wanted skills: the first fixation wins over a parallel one. */
|
|
45
|
+
export function heldPins(state, wanted) {
|
|
46
|
+
return wanted.flatMap((one) => {
|
|
47
|
+
const pin = state.run.pinnedSkills?.[one.name];
|
|
48
|
+
return pin === undefined ? [] : [{ name: one.name, ...pin }];
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/** Lays the pinned skills out in a folder of the attempt outside the worktree (may use the network). */
|
|
52
|
+
export async function layOutSkills(port, repository, pins, attemptDirectory, warnings) {
|
|
53
|
+
if (pins.length === 0)
|
|
54
|
+
return { directory: null, warnings };
|
|
55
|
+
const directory = join(attemptDirectory, 'skills');
|
|
56
|
+
const problems = await port.materialize(repository, pins, directory);
|
|
57
|
+
return {
|
|
58
|
+
directory: problems.length < pins.length ? directory : null,
|
|
59
|
+
warnings: [...warnings, ...problems],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/** Writes the warnings about the skills of an attempt, local and of the registry, to its log. */
|
|
63
|
+
export function logSkillWarnings(log, specialist, runtime, worktree, skills) {
|
|
64
|
+
for (const skill of missingSkills(specialist.skills, runtime.skillDirectories(worktree, homedir()))) {
|
|
65
|
+
appendFileSync(log, `[aip] warning: skill not found: ${skill}\n`);
|
|
66
|
+
}
|
|
67
|
+
for (const warning of skills.warnings)
|
|
68
|
+
appendFileSync(log, `[aip] warning: ${warning}\n`);
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../../../src/feature/runs/services/effects/skills/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,OAAO,EACL,eAAe,EACf,kBAAkB,GAEnB,MAAM,yCAAyC,CAAC;AAiBjD,MAAM,CAAC,MAAM,SAAS,GAAkB,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;AAE1E,sFAAsF;AACtF,MAAM,UAAU,kBAAkB,CAAC,UAAsB;IACvD,MAAM,KAAK,GAAqC,EAAE,CAAC;IACnD,KAAK,MAAM,IAAI,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;QACrC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;YAAE,SAAS;QACrC,MAAM,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,MAAM,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACpE,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAC9C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