@hoknie/aip 0.4.0 → 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/application.js +71 -56
- 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/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/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/runtime.js +1 -0
- package/dist/feature/agents/clients/cline/runtime.js.map +1 -1
- package/dist/feature/agents/clients/codex/runtime.js +1 -0
- package/dist/feature/agents/clients/codex/runtime.js.map +1 -1
- package/dist/feature/agents/clients/copilot/runtime.js +1 -0
- package/dist/feature/agents/clients/copilot/runtime.js.map +1 -1
- package/dist/feature/agents/clients/kilo/runtime.js +1 -0
- package/dist/feature/agents/clients/kilo/runtime.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/services/skills.js +4 -1
- package/dist/feature/agents/services/skills.js.map +1 -1
- package/dist/feature/agents/services/supervisor.js +7 -3
- package/dist/feature/agents/services/supervisor.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/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 +6 -4
- package/dist/feature/queue/repositories/queues.js.map +1 -1
- package/dist/feature/queue/services/advance.js +2 -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 +2 -0
- package/dist/feature/queue/services/edit.js.map +1 -1
- package/dist/feature/queue/services/items.js +26 -47
- package/dist/feature/queue/services/items.js.map +1 -1
- package/dist/feature/queue/services/projects.js +22 -6
- package/dist/feature/queue/services/projects.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/duplicates.js +46 -0
- package/dist/feature/queue/types/duplicates.js.map +1 -0
- package/dist/feature/queue/types/edit.js +2 -0
- package/dist/feature/queue/types/edit.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 +2 -0
- package/dist/feature/queue/types/limit-hits.js.map +1 -1
- package/dist/feature/queue/types/returns.js +2 -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 +3 -0
- package/dist/feature/runs/machine/delivery-flow.js.map +1 -1
- 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/transition.js +21 -2
- package/dist/feature/runs/machine/transition.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 +9 -0
- package/dist/feature/runs/repositories/rows.js.map +1 -1
- package/dist/feature/runs/repositories/write.js +4 -4
- 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 +44 -54
- 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 +159 -1
- package/dist/feature/runs/services/effects/conversations.js.map +1 -1
- 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 +15 -2
- package/dist/feature/runs/services/effects/git.js.map +1 -1
- package/dist/feature/runs/services/effects/runtime-check.js +24 -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 +1 -1
- package/dist/feature/runs/services/index.js.map +1 -1
- package/dist/feature/runs/services/reads.js +21 -1
- package/dist/feature/runs/services/reads.js.map +1 -1
- package/dist/feature/runs/services/requests.js +14 -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/constants.js +1 -1
- package/dist/feature/runs/types/constants.js.map +1 -1
- package/dist/feature/runs/types/create.js +5 -3
- package/dist/feature/runs/types/create.js.map +1 -1
- package/dist/feature/runs/types/index.js +1 -0
- package/dist/feature/runs/types/index.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/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 +32 -1
- 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 +10 -1
- 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/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 +25 -1
- package/dist/feature/swarm-config/services/settings.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 +30 -2
- 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/index.js +2 -0
- package/dist/feature/swarm-config/types/index.js.map +1 -1
- package/dist/feature/swarm-config/types/providers/provider.js +9 -0
- package/dist/feature/swarm-config/types/providers/provider.js.map +1 -1
- package/dist/feature/swarm-config/types/settings.js +31 -7
- 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 +2 -0
- 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/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-settings.js +2 -1
- package/dist/feature/swarm-edit/services/plan-settings.js.map +1 -1
- package/dist/feature/swarm-edit/services/references.js +2 -0
- package/dist/feature/swarm-edit/services/references.js.map +1 -1
- package/dist/feature/swarm-edit/types/editor.js.map +1 -1
- package/dist/feature/swarm-edit/types/setting-fields.js +1 -0
- package/dist/feature/swarm-edit/types/setting-fields.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 +27 -0
- 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/queue-edit.js +0 -24
- package/dist/presentation/cli/commands/queue-edit.js.map +1 -1
- package/dist/presentation/cli/commands/queue.js +3 -3
- package/dist/presentation/cli/commands/queue.js.map +1 -1
- package/dist/presentation/cli/commands/run-delivery.js +23 -2
- package/dist/presentation/cli/commands/run-delivery.js.map +1 -1
- package/dist/presentation/cli/commands/run.js +26 -8
- 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 +20 -1
- 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 +11 -0
- package/dist/presentation/cli/local/config-check-providers.js.map +1 -1
- package/dist/presentation/cli/local/config-check.js +16 -8
- 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 +8 -0
- package/dist/presentation/cli/program.js.map +1 -1
- package/dist/presentation/cli/queue-add.js +53 -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/index.js +5 -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/provider-list.js +4 -1
- package/dist/presentation/format/providers/provider-list.js.map +1 -1
- package/dist/presentation/format/queue.js +2 -1
- package/dist/presentation/format/queue.js.map +1 -1
- package/dist/presentation/format/runs.js +30 -2
- 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/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/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 +46 -5
- 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 +12 -2
- 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/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 +9 -1
- package/dist/presentation/ipc/handlers/providers.js.map +1 -1
- package/dist/presentation/ipc/handlers/queue.js +70 -18
- package/dist/presentation/ipc/handlers/queue.js.map +1 -1
- package/dist/presentation/ipc/handlers/repositories.js +28 -13
- package/dist/presentation/ipc/handlers/repositories.js.map +1 -1
- package/dist/presentation/ipc/handlers/runs.js +13 -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 +18 -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 +22 -3
- package/dist/presentation/ipc/snapshots.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 +3 -0
- package/dist/presentation/ipc/views/queue.js.map +1 -1
- package/dist/presentation/ipc/views/runs.js +18 -7
- 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 +2 -1
- package/dist/presentation/mcp/host-kit.js.map +1 -1
- package/dist/presentation/mcp/host-queue.js +19 -13
- package/dist/presentation/mcp/host-queue.js.map +1 -1
- package/dist/presentation/mcp/host-runs.js +10 -14
- package/dist/presentation/mcp/host-runs.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 +77 -5
- 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/queue.js +1 -1
- package/dist/presentation/web/routes/queue.js.map +1 -1
- package/dist/presentation/web/routes/runs.js +5 -1
- 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/server.js +95 -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 -10
- package/integrations/claude-code/.claude-plugin/plugin.json +1 -1
- package/package.json +12 -4
- package/dist/web/assets/EntryList-Cyc9PxYQ.js +0 -3
- package/dist/web/assets/FilterField-DOat7bHi.js +0 -7
- package/dist/web/assets/LinkTabs-V5hVhmkv.js +0 -4
- package/dist/web/assets/SharedPipelinesGroup-CMV55Qri.js +0 -1
- package/dist/web/assets/card-DDDwEBup.js +0 -1
- package/dist/web/assets/deliveryModes-OVH1wAmC.js +0 -1
- package/dist/web/assets/empty-CF7EgKd2.js +0 -41
- package/dist/web/assets/index-7lFvzi1k.js +0 -41
- package/dist/web/assets/index-BJYNhfGR.css +0 -2
- package/dist/web/assets/locales-3BQ5tRcZ.js +0 -1
- package/dist/web/assets/pipelines-BLhOZXCy.js +0 -14
- package/dist/web/assets/settingFields-C8-XJpPl.js +0 -1
- package/dist/web/assets/settings-96DThDqz.js +0 -6
- package/dist/web/assets/stats-B1imf_Vj.js +0 -1
- package/dist/web/assets/tabs-DyEM16mP.js +0 -1
- package/dist/web/assets/topology-Dyq425Mw.js +0 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integrations: the registry of connections, the active generation of every secret, the durable
|
|
3
|
+
* intents of secret operations and the claimed inbound events. No table holds a secret value.
|
|
4
|
+
*/
|
|
5
|
+
export const INTEGRATIONS_MIGRATION = `
|
|
6
|
+
CREATE TABLE IF NOT EXISTS integration_connections (
|
|
7
|
+
id TEXT PRIMARY KEY,
|
|
8
|
+
kind TEXT NOT NULL,
|
|
9
|
+
name TEXT NOT NULL,
|
|
10
|
+
scope TEXT NOT NULL CHECK (scope IN ('project', 'global')),
|
|
11
|
+
project_path TEXT,
|
|
12
|
+
params_json TEXT NOT NULL,
|
|
13
|
+
enabled INTEGER NOT NULL DEFAULT 0,
|
|
14
|
+
state TEXT NOT NULL DEFAULT 'ready' CHECK (state IN ('ready', 'cleanup_pending')),
|
|
15
|
+
created_at INTEGER NOT NULL,
|
|
16
|
+
updated_at INTEGER NOT NULL,
|
|
17
|
+
CHECK ((scope = 'project') = (project_path IS NOT NULL))
|
|
18
|
+
);
|
|
19
|
+
CREATE UNIQUE INDEX IF NOT EXISTS integration_connections_by_name
|
|
20
|
+
ON integration_connections (scope, COALESCE(project_path, ''), kind, name);
|
|
21
|
+
CREATE INDEX IF NOT EXISTS integration_connections_by_project ON integration_connections (project_path);
|
|
22
|
+
CREATE TABLE IF NOT EXISTS integration_secret_slots (
|
|
23
|
+
connection_id TEXT NOT NULL REFERENCES integration_connections (id),
|
|
24
|
+
slot TEXT NOT NULL,
|
|
25
|
+
generation TEXT NOT NULL,
|
|
26
|
+
version INTEGER NOT NULL,
|
|
27
|
+
updated_at INTEGER NOT NULL,
|
|
28
|
+
PRIMARY KEY (connection_id, slot)
|
|
29
|
+
);
|
|
30
|
+
CREATE TABLE IF NOT EXISTS integration_secret_operations (
|
|
31
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
32
|
+
connection_id TEXT NOT NULL REFERENCES integration_connections (id),
|
|
33
|
+
slot TEXT NOT NULL,
|
|
34
|
+
kind TEXT NOT NULL CHECK (kind IN ('write', 'delete')),
|
|
35
|
+
phase TEXT NOT NULL CHECK (phase IN ('pending_write', 'pending_cleanup', 'pending_delete')),
|
|
36
|
+
previous_generation TEXT,
|
|
37
|
+
next_generation TEXT,
|
|
38
|
+
created_at INTEGER NOT NULL,
|
|
39
|
+
UNIQUE (connection_id, slot)
|
|
40
|
+
);
|
|
41
|
+
CREATE TABLE IF NOT EXISTS integration_deliveries (
|
|
42
|
+
connection_id TEXT NOT NULL REFERENCES integration_connections (id),
|
|
43
|
+
external_event_id TEXT NOT NULL,
|
|
44
|
+
state TEXT NOT NULL CHECK (state IN ('processing', 'applied')),
|
|
45
|
+
result_json TEXT,
|
|
46
|
+
created_at INTEGER NOT NULL,
|
|
47
|
+
updated_at INTEGER NOT NULL,
|
|
48
|
+
PRIMARY KEY (connection_id, external_event_id)
|
|
49
|
+
);
|
|
50
|
+
`;
|
|
51
|
+
/**
|
|
52
|
+
* Notifications: the subscriptions of connections to the events of projects, the outgoing queue
|
|
53
|
+
* that is also the journal of deliveries, the drafts of answers collected in a chat and the read
|
|
54
|
+
* position of every channel. No table holds a secret.
|
|
55
|
+
*/
|
|
56
|
+
export const NOTIFICATIONS_MIGRATION = `
|
|
57
|
+
CREATE TABLE IF NOT EXISTS notification_subscriptions (
|
|
58
|
+
id TEXT PRIMARY KEY,
|
|
59
|
+
connection_id TEXT NOT NULL,
|
|
60
|
+
project_path TEXT,
|
|
61
|
+
events_json TEXT NOT NULL,
|
|
62
|
+
enabled INTEGER NOT NULL DEFAULT 1,
|
|
63
|
+
created_at INTEGER NOT NULL,
|
|
64
|
+
updated_at INTEGER NOT NULL
|
|
65
|
+
);
|
|
66
|
+
CREATE INDEX IF NOT EXISTS notification_subscriptions_by_connection
|
|
67
|
+
ON notification_subscriptions (connection_id);
|
|
68
|
+
CREATE INDEX IF NOT EXISTS notification_subscriptions_by_project
|
|
69
|
+
ON notification_subscriptions (project_path);
|
|
70
|
+
CREATE TABLE IF NOT EXISTS notification_deliveries (
|
|
71
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
72
|
+
short_key TEXT NOT NULL UNIQUE,
|
|
73
|
+
subscription_id TEXT NOT NULL REFERENCES notification_subscriptions (id) ON DELETE CASCADE,
|
|
74
|
+
event_key TEXT NOT NULL,
|
|
75
|
+
kind TEXT NOT NULL,
|
|
76
|
+
run_id TEXT NOT NULL,
|
|
77
|
+
group_slug TEXT,
|
|
78
|
+
question_key TEXT,
|
|
79
|
+
payload_json TEXT NOT NULL,
|
|
80
|
+
state TEXT NOT NULL CHECK (state IN ('pending', 'sent', 'failed', 'closed')),
|
|
81
|
+
attempts INTEGER NOT NULL DEFAULT 0,
|
|
82
|
+
next_attempt_at INTEGER NOT NULL,
|
|
83
|
+
last_attempt_at INTEGER,
|
|
84
|
+
last_error TEXT,
|
|
85
|
+
external_ref_json TEXT,
|
|
86
|
+
closed_by TEXT,
|
|
87
|
+
created_at INTEGER NOT NULL,
|
|
88
|
+
updated_at INTEGER NOT NULL,
|
|
89
|
+
UNIQUE (subscription_id, event_key)
|
|
90
|
+
);
|
|
91
|
+
CREATE INDEX IF NOT EXISTS notification_deliveries_by_due
|
|
92
|
+
ON notification_deliveries (state, next_attempt_at);
|
|
93
|
+
CREATE INDEX IF NOT EXISTS notification_deliveries_by_run ON notification_deliveries (run_id);
|
|
94
|
+
CREATE TABLE IF NOT EXISTS notification_answers (
|
|
95
|
+
delivery_id INTEGER NOT NULL REFERENCES notification_deliveries (id) ON DELETE CASCADE,
|
|
96
|
+
question_index INTEGER NOT NULL,
|
|
97
|
+
answer TEXT NOT NULL,
|
|
98
|
+
user_ref TEXT NOT NULL,
|
|
99
|
+
updated_at INTEGER NOT NULL,
|
|
100
|
+
PRIMARY KEY (delivery_id, question_index)
|
|
101
|
+
);
|
|
102
|
+
CREATE TABLE IF NOT EXISTS notification_cursors (
|
|
103
|
+
connection_id TEXT PRIMARY KEY,
|
|
104
|
+
cursor TEXT NOT NULL,
|
|
105
|
+
updated_at INTEGER NOT NULL
|
|
106
|
+
);
|
|
107
|
+
`;
|
|
108
|
+
/**
|
|
109
|
+
* Outgoing webhooks: every attempt of a delivery with what came back, and the counter of failed
|
|
110
|
+
* deliveries in a row with the reason a subscription was switched off. A response excerpt is text
|
|
111
|
+
* of the receiver, never a secret of ours.
|
|
112
|
+
*/
|
|
113
|
+
export const WEBHOOKS_MIGRATION = `
|
|
114
|
+
CREATE TABLE IF NOT EXISTS notification_attempts (
|
|
115
|
+
delivery_id INTEGER NOT NULL REFERENCES notification_deliveries (id) ON DELETE CASCADE,
|
|
116
|
+
n INTEGER NOT NULL,
|
|
117
|
+
started_at INTEGER NOT NULL,
|
|
118
|
+
duration_ms INTEGER NOT NULL,
|
|
119
|
+
status_code INTEGER,
|
|
120
|
+
error_kind TEXT,
|
|
121
|
+
response_excerpt TEXT,
|
|
122
|
+
PRIMARY KEY (delivery_id, n)
|
|
123
|
+
);
|
|
124
|
+
ALTER TABLE notification_subscriptions ADD COLUMN failure_streak INTEGER NOT NULL DEFAULT 0;
|
|
125
|
+
ALTER TABLE notification_subscriptions ADD COLUMN disabled_reason TEXT;
|
|
126
|
+
`;
|
|
127
|
+
/**
|
|
128
|
+
* The links of the projects of aip to the projects of a service registry: one row for a pair
|
|
129
|
+
* (project, connection), either a link or the reason there is none. The links of a connection go
|
|
130
|
+
* with it.
|
|
131
|
+
*/
|
|
132
|
+
export const SERVICE_REGISTRY_LINKS_MIGRATION = `
|
|
133
|
+
CREATE TABLE IF NOT EXISTS service_registry_links (
|
|
134
|
+
project_path TEXT NOT NULL,
|
|
135
|
+
connection_id TEXT NOT NULL REFERENCES integration_connections (id) ON DELETE CASCADE,
|
|
136
|
+
registry_path TEXT,
|
|
137
|
+
source TEXT CHECK (source IN ('auto', 'manual')),
|
|
138
|
+
status TEXT NOT NULL CHECK (status IN
|
|
139
|
+
('linked', 'no_match', 'ambiguous', 'unreachable', 'unauthorized', 'truncated', 'disabled')),
|
|
140
|
+
candidates_json TEXT NOT NULL DEFAULT '[]',
|
|
141
|
+
matched_at INTEGER NOT NULL,
|
|
142
|
+
PRIMARY KEY (project_path, connection_id)
|
|
143
|
+
);
|
|
144
|
+
CREATE INDEX IF NOT EXISTS service_registry_links_by_connection
|
|
145
|
+
ON service_registry_links (connection_id);
|
|
146
|
+
`;
|
|
147
|
+
//# sourceMappingURL=integrations-migration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations-migration.js","sourceRoot":"","sources":["../../../src/platform/sqlite/integrations-migration.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CnC,CAAC;AAEJ;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDpC,CAAC;AAEJ;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;GAa/B,CAAC;AAEJ;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;;;;;;;;;;;;;;GAc7C,CAAC"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ATTACHMENTS_MIGRATION } from './attachments-migration.js';
|
|
2
|
+
import { IDENTITY_MIGRATION } from './identity-migration.js';
|
|
3
|
+
import { INTEGRATIONS_MIGRATION, NOTIFICATIONS_MIGRATION, SERVICE_REGISTRY_LINKS_MIGRATION, WEBHOOKS_MIGRATION, } from './integrations-migration.js';
|
|
2
4
|
import { TASK_LINKS_MIGRATION } from './links-migration.js';
|
|
5
|
+
import { AUTHORSHIP_MIGRATION } from './authorship-migration.js';
|
|
6
|
+
import { SAML_MIGRATION } from './saml-migration.js';
|
|
7
|
+
import { STATS_AUTHOR_MIGRATION } from './stats-migration.js';
|
|
8
|
+
import { SSO_MIGRATION } from './sso-migration.js';
|
|
3
9
|
export { STATS_MIGRATION } from './stats-migration.js';
|
|
4
10
|
/** The migrations after the usage journal: the queue filter, pipeline variants, attachments, the removal of the cost, the chain item of an attempt. */
|
|
5
11
|
export const LATER_MIGRATIONS = [
|
|
@@ -38,5 +44,26 @@ export const LATER_MIGRATIONS = [
|
|
|
38
44
|
`ALTER TABLE runs ADD COLUMN provider TEXT; ALTER TABLE queue_items ADD COLUMN provider TEXT; ALTER TABLE attempts ADD COLUMN requested_provider TEXT`,
|
|
39
45
|
// the generation of a conversation of a CLI that keeps its own history; old rows stay NULL
|
|
40
46
|
`ALTER TABLE attempts ADD COLUMN generation INTEGER NULL`,
|
|
47
|
+
INTEGRATIONS_MIGRATION,
|
|
48
|
+
IDENTITY_MIGRATION,
|
|
49
|
+
SSO_MIGRATION,
|
|
50
|
+
SAML_MIGRATION,
|
|
51
|
+
AUTHORSHIP_MIGRATION,
|
|
52
|
+
STATS_AUTHOR_MIGRATION,
|
|
53
|
+
// the branch of a run in the remote repository once it is sent there (JSON); old rows have none
|
|
54
|
+
`ALTER TABLE runs ADD COLUMN remote_branch_json TEXT`,
|
|
55
|
+
NOTIFICATIONS_MIGRATION,
|
|
56
|
+
WEBHOOKS_MIGRATION,
|
|
57
|
+
// the outcome of the last check of an integration connection; a connection never checked has no row
|
|
58
|
+
`CREATE TABLE IF NOT EXISTS integration_connection_checks (
|
|
59
|
+
connection_id TEXT PRIMARY KEY REFERENCES integration_connections (id) ON DELETE CASCADE,
|
|
60
|
+
checked_at INTEGER NOT NULL,
|
|
61
|
+
ok INTEGER NOT NULL,
|
|
62
|
+
code TEXT,
|
|
63
|
+
count INTEGER
|
|
64
|
+
)`,
|
|
65
|
+
// the versions of registry skills fixed for a run (JSON by skill name); old rows have none
|
|
66
|
+
`ALTER TABLE runs ADD COLUMN pinned_skills_json TEXT`,
|
|
67
|
+
SERVICE_REGISTRY_LINKS_MIGRATION,
|
|
41
68
|
];
|
|
42
69
|
//# sourceMappingURL=parts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parts.js","sourceRoot":"","sources":["../../../src/platform/sqlite/parts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"parts.js","sourceRoot":"","sources":["../../../src/platform/sqlite/parts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,gCAAgC,EAChC,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,uJAAuJ;AACvJ,MAAM,CAAC,MAAM,gBAAgB,GAAa;IACxC,8FAA8F;IAC9F,iJAAiJ;IACjJ,qBAAqB;IACrB;;;;;;;;;;;;;;;;;;;;;GAqBC;IACD;;;;GAIC;IACD,oBAAoB;IACpB,oGAAoG;IACpG,sJAAsJ;IACtJ,2FAA2F;IAC3F,yDAAyD;IACzD,sBAAsB;IACtB,kBAAkB;IAClB,aAAa;IACb,cAAc;IACd,oBAAoB;IACpB,sBAAsB;IACtB,gGAAgG;IAChG,qDAAqD;IACrD,uBAAuB;IACvB,kBAAkB;IAClB,oGAAoG;IACpG;;;;;;IAME;IACF,2FAA2F;IAC3F,qDAAqD;IACrD,gCAAgC;CACjC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Sign-in by SAML: the assertions that were accepted, kept until they expire so that none is accepted twice. */
|
|
2
|
+
export const SAML_MIGRATION = `
|
|
3
|
+
CREATE TABLE saml_assertions (
|
|
4
|
+
id TEXT PRIMARY KEY,
|
|
5
|
+
expires_at INTEGER NOT NULL
|
|
6
|
+
);
|
|
7
|
+
CREATE INDEX saml_assertions_by_expiry ON saml_assertions (expires_at);
|
|
8
|
+
`;
|
|
9
|
+
//# sourceMappingURL=saml-migration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saml-migration.js","sourceRoot":"","sources":["../../../src/platform/sqlite/saml-migration.ts"],"names":[],"mappings":"AAAA,iHAAiH;AACjH,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;GAM3B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Sign-in by an external provider: the subject of a user and the sign-ins in progress at the provider (one row per redirect, used once). */
|
|
2
|
+
export const SSO_MIGRATION = `
|
|
3
|
+
ALTER TABLE users ADD COLUMN source_issuer TEXT;
|
|
4
|
+
ALTER TABLE users ADD COLUMN source_subject TEXT;
|
|
5
|
+
CREATE UNIQUE INDEX users_by_subject ON users (source_issuer, source_subject)
|
|
6
|
+
WHERE source_issuer IS NOT NULL;
|
|
7
|
+
CREATE TABLE sso_requests (
|
|
8
|
+
state TEXT PRIMARY KEY,
|
|
9
|
+
nonce TEXT NOT NULL,
|
|
10
|
+
code_verifier TEXT NOT NULL,
|
|
11
|
+
redirect_uri TEXT NOT NULL,
|
|
12
|
+
return_to TEXT NOT NULL,
|
|
13
|
+
created_at INTEGER NOT NULL,
|
|
14
|
+
expires_at INTEGER NOT NULL
|
|
15
|
+
);
|
|
16
|
+
`;
|
|
17
|
+
//# sourceMappingURL=sso-migration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sso-migration.js","sourceRoot":"","sources":["../../../src/platform/sqlite/sso-migration.ts"],"names":[],"mappings":"AAAA,6IAA6I;AAC7I,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;GAc1B,CAAC"}
|
|
@@ -39,4 +39,12 @@ export const STATS_MIGRATION = `
|
|
|
39
39
|
);
|
|
40
40
|
INSERT OR IGNORE INTO stats_meta (id, backfilled_at) VALUES (1, NULL);
|
|
41
41
|
`;
|
|
42
|
+
/** The author of the run in the usage journal: copied at record time, empty for runs without one. */
|
|
43
|
+
export const STATS_AUTHOR_MIGRATION = `
|
|
44
|
+
ALTER TABLE stats_attempts ADD COLUMN author TEXT;
|
|
45
|
+
ALTER TABLE stats_runs ADD COLUMN author TEXT;
|
|
46
|
+
ALTER TABLE stats_meta ADD COLUMN author_backfilled_at INTEGER;
|
|
47
|
+
CREATE INDEX IF NOT EXISTS stats_attempts_by_author ON stats_attempts (author, finished_at);
|
|
48
|
+
CREATE INDEX IF NOT EXISTS stats_runs_by_author ON stats_runs (author, finished_at);
|
|
49
|
+
`;
|
|
42
50
|
//# sourceMappingURL=stats-migration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats-migration.js","sourceRoot":"","sources":["../../../src/platform/sqlite/stats-migration.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuC5B,CAAC"}
|
|
1
|
+
{"version":3,"file":"stats-migration.js","sourceRoot":"","sources":["../../../src/platform/sqlite/stats-migration.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuC5B,CAAC;AAEJ,qGAAqG;AACrG,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;GAMnC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { configPaths, loadWebSettings } from '../../../feature/swarm-config/services/index.js';
|
|
1
|
+
import { configPaths, loadServerSettings, loadWebSettings, } from '../../../feature/swarm-config/services/index.js';
|
|
2
2
|
import { lockPath } from '../../../platform/paths/index.js';
|
|
3
3
|
import { checkDaemon, daemonMismatchMessage, pingDaemon, stopDaemon, subscribe, } from '../../ipc/client/index.js';
|
|
4
4
|
import { createDaemonPanel, runStandbyPanel } from '../../web/index.js';
|
|
5
|
-
import { context, daemon } from '../context.js';
|
|
5
|
+
import { context, daemon, refuseWithServer } from '../context.js';
|
|
6
6
|
import { examples } from '../help.js';
|
|
7
7
|
import { failLine, writeLine } from '../io.js';
|
|
8
8
|
import { startPanel } from '../web-control.js';
|
|
@@ -49,6 +49,7 @@ async function runForeground(io, style) {
|
|
|
49
49
|
entry: ctx.entry,
|
|
50
50
|
environment: io.env,
|
|
51
51
|
readSettings: settingsReader(io),
|
|
52
|
+
readServer: () => loadServerSettings(configPaths(io.cwd, io.env.XDG_CONFIG_HOME, io.env.HOME)),
|
|
52
53
|
pid: io.pid,
|
|
53
54
|
log: (line) => io.stderr(`${line}\n`),
|
|
54
55
|
});
|
|
@@ -187,6 +188,7 @@ export function registerDaemon(program, style, io) {
|
|
|
187
188
|
.description('Run the aip daemon in the foreground, or control the background one')
|
|
188
189
|
.addHelpText('after', examples(['aip daemon', 'aip daemon status'], style))
|
|
189
190
|
.action(() => runForeground(io, style));
|
|
191
|
+
refuseWithServer(command, io);
|
|
190
192
|
registerStart(command, style, io);
|
|
191
193
|
registerStop(command, style, io);
|
|
192
194
|
registerRestart(command, style, io);
|
|
@@ -208,7 +210,7 @@ export function registerEvents(program, io, style) {
|
|
|
208
210
|
interrupted = true;
|
|
209
211
|
io.exit(0);
|
|
210
212
|
});
|
|
211
|
-
await subscribe(ctx.socket, (line) => print(line));
|
|
213
|
+
await subscribe(ctx.remote ?? ctx.socket, (line) => print(line));
|
|
212
214
|
if (!interrupted)
|
|
213
215
|
failLine(io, 'aip events', 'the daemon closed the stream');
|
|
214
216
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/daemon.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"daemon.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/daemon.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,eAAe,GAChB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAE5D,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,UAAU,EACV,UAAU,EACV,SAAS,GACV,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,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Aa,EAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAC5D,OAAO;SACJ,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,kFAAkF,CAAC;SAC/F,MAAM,CAAC,QAAQ,EAAE,oCAAoC,CAAC;SACtD,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,mBAAmB,CAAC,EAAE,KAAK,CAAC,CAAC;SAC5D,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,GAAG,GAAG,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAC/B,MAAM,MAAM,CAAC,GAAG,CAAC,CAAC;QAClB,IAAI,WAAW,GAAG,KAAK,CAAC;QACxB,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;YACzB,WAAW,GAAG,IAAI,CAAC;YACnB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;QACH,MAAM,SAAS,CAAC,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QACjE,IAAI,CAAC,WAAW;YAAE,QAAQ,CAAC,EAAE,EAAE,YAAY,EAAE,8BAA8B,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/presentation/cli/commands/integration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { formatCheckResult, formatConnections, formatIntegrationTypes, formatProjectLinks, } from '../../../format/index.js';
|
|
2
|
+
import { repositoryArgument } from '../../../ipc/client/index.js';
|
|
3
|
+
import { bind, call } from '../../context.js';
|
|
4
|
+
import { usage } from '../../io.js';
|
|
5
|
+
import { addSkillsCommand } from './skills.js';
|
|
6
|
+
/** The longest secret the daemon accepts, plus room for a newline. */
|
|
7
|
+
const STDIN_LIMIT = 16 * 1024 + 2;
|
|
8
|
+
function parseParams(pairs) {
|
|
9
|
+
const params = {};
|
|
10
|
+
for (const pair of pairs) {
|
|
11
|
+
const at = pair.indexOf('=');
|
|
12
|
+
if (at < 1)
|
|
13
|
+
throw usage('pass --param as <key>=<value>');
|
|
14
|
+
params[pair.slice(0, at)] = pair.slice(at + 1);
|
|
15
|
+
}
|
|
16
|
+
return params;
|
|
17
|
+
}
|
|
18
|
+
/** The secret from stdin: one trailing newline is dropped; nothing is echoed anywhere. */
|
|
19
|
+
async function secretFromStdin(io) {
|
|
20
|
+
if (io.readStdin === undefined)
|
|
21
|
+
throw usage('this terminal cannot read a secret from stdin');
|
|
22
|
+
const raw = await io.readStdin(STDIN_LIMIT);
|
|
23
|
+
if (raw === null)
|
|
24
|
+
throw usage('secret input is too long');
|
|
25
|
+
const value = raw.replace(/\r?\n$/, '');
|
|
26
|
+
if (value === '')
|
|
27
|
+
throw usage('secret input is empty');
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
function integrationKit(program, io, style) {
|
|
31
|
+
const { print, output, examples, context, activeStyle } = bind(io, style);
|
|
32
|
+
const root = program
|
|
33
|
+
.command('integration')
|
|
34
|
+
.description('Connections to external systems and their secrets (local, per project or shared)');
|
|
35
|
+
const show = (json, views) => output(json, formatConnections(views, activeStyle), views);
|
|
36
|
+
return { print, output, examples, context, activeStyle, root, show, io };
|
|
37
|
+
}
|
|
38
|
+
function addReadCommands(kit) {
|
|
39
|
+
const { root, examples, context, output, activeStyle, show } = kit;
|
|
40
|
+
root
|
|
41
|
+
.command('types')
|
|
42
|
+
.description('Show the kinds built into this version')
|
|
43
|
+
.option('--json', 'print JSON')
|
|
44
|
+
.addHelpText('after', examples(['aip integration types']))
|
|
45
|
+
.action(async (options) => {
|
|
46
|
+
const types = (await call(context(), 'integration_types', {}));
|
|
47
|
+
output(options.json, formatIntegrationTypes(types, activeStyle), types);
|
|
48
|
+
});
|
|
49
|
+
root
|
|
50
|
+
.command('list')
|
|
51
|
+
.description('Show connections (of one project and the shared ones with --repo)')
|
|
52
|
+
.option('-r, --repo <project>', 'project path or slug')
|
|
53
|
+
.option('--json', 'print JSON')
|
|
54
|
+
.addHelpText('after', examples(['aip integration list', 'aip integration list --repo shop']))
|
|
55
|
+
.action(async (options) => {
|
|
56
|
+
const repository = options.repo === undefined
|
|
57
|
+
? {}
|
|
58
|
+
: { repository: repositoryArgument(options.repo, kit.io.cwd) };
|
|
59
|
+
const views = (await call(context(), 'integration_list', repository));
|
|
60
|
+
show(options.json, views);
|
|
61
|
+
if (options.repo === undefined || options.json === true)
|
|
62
|
+
return;
|
|
63
|
+
// The links of the project follow the connections.
|
|
64
|
+
const links = (await call(context(), 'integration_links', repository));
|
|
65
|
+
if (links.length > 0)
|
|
66
|
+
kit.print(`\n${formatProjectLinks(links, activeStyle)}`);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/** A secret slot among the parameters is refused here, with the command that sets a secret. */
|
|
70
|
+
async function refuseSecretParameters(kit, id, names) {
|
|
71
|
+
const ctx = kit.context();
|
|
72
|
+
const [connections, types] = (await Promise.all([
|
|
73
|
+
call(ctx, 'integration_list', {}),
|
|
74
|
+
call(ctx, 'integration_types', {}),
|
|
75
|
+
]));
|
|
76
|
+
const kind = connections.find((one) => one.id === id)?.kind;
|
|
77
|
+
const slots = types.find((type) => type.kind === kind)?.secrets.map((secret) => secret.slot);
|
|
78
|
+
const slot = names.find((name) => slots?.includes(name));
|
|
79
|
+
if (slot !== undefined) {
|
|
80
|
+
throw usage(`${slot} is a secret, not a parameter: run \`aip integration secret set ${id} ${slot} --stdin\``);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function addEditCommand(kit) {
|
|
84
|
+
const { root, examples, context, show } = kit;
|
|
85
|
+
root
|
|
86
|
+
.command('edit')
|
|
87
|
+
.description('Change non-secret parameters of a connection; it stays enabled')
|
|
88
|
+
.argument('<id>', 'connection id')
|
|
89
|
+
.option('--param <key=value...>', 'set a parameter', (v, all = []) => [...all, v])
|
|
90
|
+
.option('--unset <key...>', 'remove an optional parameter', (v, all = []) => [
|
|
91
|
+
...all,
|
|
92
|
+
v,
|
|
93
|
+
])
|
|
94
|
+
.option('--json', 'print JSON')
|
|
95
|
+
.addHelpText('after', examples([
|
|
96
|
+
'aip integration edit c1a2b3c4d5e6 --param chat_id=-1001234567890',
|
|
97
|
+
'aip integration edit c1a2b3c4d5e6 --unset language',
|
|
98
|
+
]))
|
|
99
|
+
.action(async (id, options) => {
|
|
100
|
+
const set = parseParams(options.param ?? []);
|
|
101
|
+
const unset = options.unset ?? [];
|
|
102
|
+
if (Object.keys(set).length === 0 && unset.length === 0) {
|
|
103
|
+
throw usage('pass at least one --param <key>=<value> or --unset <key>');
|
|
104
|
+
}
|
|
105
|
+
await refuseSecretParameters(kit, id, [...Object.keys(set), ...unset]);
|
|
106
|
+
show(options.json, [
|
|
107
|
+
(await call(context(), 'integration_edit', { id, set, unset })),
|
|
108
|
+
]);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function addWriteCommands(kit) {
|
|
112
|
+
const { root, examples, context, show, print, io, output } = kit;
|
|
113
|
+
root
|
|
114
|
+
.command('add')
|
|
115
|
+
.description('Create a connection of a built-in kind; it starts disabled, without secrets')
|
|
116
|
+
.argument('<kind>', 'a kind from `aip integration types`')
|
|
117
|
+
.argument('<name>', 'name, unique per kind in its scope')
|
|
118
|
+
.option('-r, --repo <project>', 'project path or slug (default: the current repository)')
|
|
119
|
+
.option('--global', 'share the connection between projects instead')
|
|
120
|
+
.option('--param <key=value...>', 'non-secret parameter of the kind', (v, all = []) => [...all, v])
|
|
121
|
+
.option('--json', 'print JSON')
|
|
122
|
+
.addHelpText('after', examples(['aip integration add example main --repo shop --param region=eu']))
|
|
123
|
+
.action(async (kind, name, options) => {
|
|
124
|
+
if (options.global === true && options.repo !== undefined) {
|
|
125
|
+
throw usage('pass either --repo or --global');
|
|
126
|
+
}
|
|
127
|
+
const scope = options.global === true
|
|
128
|
+
? { global: true }
|
|
129
|
+
: { repository: repositoryArgument(options.repo ?? '.', io.cwd) };
|
|
130
|
+
const view = (await call(context(), 'integration_add', {
|
|
131
|
+
kind,
|
|
132
|
+
name,
|
|
133
|
+
...scope,
|
|
134
|
+
params: parseParams(options.param ?? []),
|
|
135
|
+
}));
|
|
136
|
+
show(options.json, [view]);
|
|
137
|
+
});
|
|
138
|
+
for (const [verb, method, text] of [
|
|
139
|
+
['enable', 'integration_enable', 'Enable a connection that has every required secret'],
|
|
140
|
+
['disable', 'integration_disable', 'Disable a connection; its secrets stay'],
|
|
141
|
+
]) {
|
|
142
|
+
root
|
|
143
|
+
.command(verb)
|
|
144
|
+
.description(text)
|
|
145
|
+
.argument('<id>', 'connection id')
|
|
146
|
+
.option('--json', 'print JSON')
|
|
147
|
+
.addHelpText('after', examples([`aip integration ${verb} c1a2b3c4d5e6`]))
|
|
148
|
+
.action(async (id, options) => {
|
|
149
|
+
show(options.json, [(await call(context(), method, { id }))]);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
root
|
|
153
|
+
.command('check')
|
|
154
|
+
.description('Reach the other system with the connection and show whether it works')
|
|
155
|
+
.argument('<id>', 'connection id')
|
|
156
|
+
.option('--json', 'print JSON')
|
|
157
|
+
.addHelpText('after', examples(['aip integration check c1a2b3c4d5e6']))
|
|
158
|
+
.action(async (id, options) => {
|
|
159
|
+
const view = (await call(context(), 'integration_check', { id }));
|
|
160
|
+
output(options.json, formatCheckResult(view), view);
|
|
161
|
+
});
|
|
162
|
+
root
|
|
163
|
+
.command('remove')
|
|
164
|
+
.description('Remove a connection and its secrets; repeat it if the cleanup was cut short')
|
|
165
|
+
.argument('<id>', 'connection id')
|
|
166
|
+
.addHelpText('after', examples(['aip integration remove c1a2b3c4d5e6']))
|
|
167
|
+
.action(async (id) => {
|
|
168
|
+
await call(context(), 'integration_remove', { id });
|
|
169
|
+
print(`Removed ${id}`);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
function addLinkCommand(kit) {
|
|
173
|
+
const { root, examples, context, output, io, activeStyle } = kit;
|
|
174
|
+
root
|
|
175
|
+
.command('link')
|
|
176
|
+
.description('Link a project to its project in a service registry (or show how it is linked)')
|
|
177
|
+
.argument('<id>', 'id or name of the service registry connection')
|
|
178
|
+
.option('-r, --repo <project>', 'project path or slug (default: the current repository)')
|
|
179
|
+
.option('--path <path>', 'link to this project of the registry, checked with the registry')
|
|
180
|
+
.option('--auto', 'match by the origin of the repository again')
|
|
181
|
+
.option('--clear', 'remove the link and switch matching off until --auto')
|
|
182
|
+
.option('--json', 'print JSON')
|
|
183
|
+
.addHelpText('after', examples([
|
|
184
|
+
'aip integration link main --repo shop --auto',
|
|
185
|
+
'aip integration link main --repo shop --path acme/backend/api',
|
|
186
|
+
'aip integration link main --repo shop --clear',
|
|
187
|
+
]))
|
|
188
|
+
.action(async (id, options) => {
|
|
189
|
+
const chosen = [options.path, options.auto, options.clear].filter((one) => one !== undefined);
|
|
190
|
+
if (chosen.length !== 1)
|
|
191
|
+
throw usage('pass exactly one of --path, --auto and --clear');
|
|
192
|
+
const link = (await call(context(), 'integration_link', {
|
|
193
|
+
id,
|
|
194
|
+
repository: repositoryArgument(options.repo ?? '.', io.cwd),
|
|
195
|
+
...(options.path === undefined ? {} : { path: options.path }),
|
|
196
|
+
...(options.auto === true ? { auto: true } : {}),
|
|
197
|
+
...(options.clear === true ? { clear: true } : {}),
|
|
198
|
+
}));
|
|
199
|
+
output(options.json, formatProjectLinks([link], activeStyle), link);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
function addSecretCommands(kit) {
|
|
203
|
+
const { root, examples, context, print, io } = kit;
|
|
204
|
+
const secret = root.command('secret').description('Set or remove a secret of a connection');
|
|
205
|
+
secret
|
|
206
|
+
.command('set')
|
|
207
|
+
.description('Store a secret read from stdin (never from an argument)')
|
|
208
|
+
.argument('<id>', 'connection id')
|
|
209
|
+
.argument('<slot>', 'secret slot of the kind')
|
|
210
|
+
.option('--stdin', 'read the value from stdin')
|
|
211
|
+
.addHelpText('after', examples(['aip integration secret set c1a2b3c4d5e6 token --stdin < token.txt']))
|
|
212
|
+
.action(async (id, slot, options) => {
|
|
213
|
+
if (options.stdin !== true)
|
|
214
|
+
throw usage('pass --stdin: a secret is never an argument');
|
|
215
|
+
const value = await secretFromStdin(io);
|
|
216
|
+
await call(context(), 'integration_secret_set', { id, slot, value });
|
|
217
|
+
print(`Secret ${slot} of ${id} is set`);
|
|
218
|
+
});
|
|
219
|
+
secret
|
|
220
|
+
.command('remove')
|
|
221
|
+
.description('Remove a secret; the connection is disabled first')
|
|
222
|
+
.argument('<id>', 'connection id')
|
|
223
|
+
.argument('<slot>', 'secret slot of the kind')
|
|
224
|
+
.addHelpText('after', examples(['aip integration secret remove c1a2b3c4d5e6 token']))
|
|
225
|
+
.action(async (id, slot) => {
|
|
226
|
+
await call(context(), 'integration_secret_remove', { id, slot });
|
|
227
|
+
print(`Secret ${slot} of ${id} is removed`);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
export function registerIntegrations(program, io, style) {
|
|
231
|
+
const kit = integrationKit(program, io, style);
|
|
232
|
+
addReadCommands(kit);
|
|
233
|
+
addWriteCommands(kit);
|
|
234
|
+
addEditCommand(kit);
|
|
235
|
+
addLinkCommand(kit);
|
|
236
|
+
addSecretCommands(kit);
|
|
237
|
+
addSkillsCommand(kit.root, kit);
|
|
238
|
+
}
|
|
239
|
+
//# sourceMappingURL=integrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../../../../src/presentation/cli/commands/integration/integrations.ts"],"names":[],"mappings":"AAEA,OAAO,EACL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AAiB,CAAC,GAAG,CAAC,CAAC;IACvB,gBAAgB,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { formatRegistrySkills } from '../../../format/index.js';
|
|
2
|
+
import { call } from '../../context.js';
|
|
3
|
+
/** `aip integration skills <id> [--query]`: the skills of a service registry connection. */
|
|
4
|
+
export function addSkillsCommand(root, kit) {
|
|
5
|
+
const { examples, context, output, activeStyle } = kit;
|
|
6
|
+
root
|
|
7
|
+
.command('skills')
|
|
8
|
+
.description('List the skills of a service registry connection with their versions')
|
|
9
|
+
.argument('<id>', 'connection id of a service registry')
|
|
10
|
+
.option('--query <text>', 'search by words')
|
|
11
|
+
.option('--json', 'print JSON')
|
|
12
|
+
.addHelpText('after', examples([
|
|
13
|
+
'aip integration skills c1a2b3c4d5e6',
|
|
14
|
+
'aip integration skills c1a2b3c4d5e6 --query go',
|
|
15
|
+
]))
|
|
16
|
+
.action(async (id, options) => {
|
|
17
|
+
const skills = (await call(context(), 'integration_skills', {
|
|
18
|
+
id,
|
|
19
|
+
...(options.query === undefined ? {} : { query: options.query }),
|
|
20
|
+
}));
|
|
21
|
+
output(options.json, formatRegistrySkills(skills, activeStyle), skills);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=skills.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.js","sourceRoot":"","sources":["../../../../../src/presentation/cli/commands/integration/skills.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAc,MAAM,0BAA0B,CAAC;AAE5E,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAUxC,4FAA4F;AAC5F,MAAM,UAAU,gBAAgB,CAAC,IAAa,EAAE,GAAc;IAC5D,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC;IACvD,IAAI;SACD,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,sEAAsE,CAAC;SACnF,QAAQ,CAAC,MAAM,EAAE,qCAAqC,CAAC;SACvD,MAAM,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;SAC3C,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC;SAC9B,WAAW,CACV,OAAO,EACP,QAAQ,CAAC;QACP,qCAAqC;QACrC,gDAAgD;KACjD,CAAC,CACH;SACA,MAAM,CAAC,KAAK,EAAE,EAAU,EAAE,OAA2C,EAAE,EAAE;QACxE,MAAM,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,EAAE,oBAAoB,EAAE;YAC1D,EAAE;YACF,GAAG,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;SACjE,CAAC,CAAwB,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,oBAAoB,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;AACP,CAAC"}
|