@mastra/factory 0.27.0 → 0.28.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +215 -41
- package/dist/boards/board-events.d.ts +34 -0
- package/dist/boards/board-events.d.ts.map +1 -0
- package/dist/boards/board-events.js +50 -0
- package/dist/boards/board-events.js.map +1 -0
- package/dist/boards/board-writes.d.ts +86 -0
- package/dist/boards/board-writes.d.ts.map +1 -0
- package/dist/boards/board-writes.js +252 -0
- package/dist/boards/board-writes.js.map +1 -0
- package/dist/boards/define-board.d.ts +16 -5
- package/dist/boards/define-board.d.ts.map +1 -1
- package/dist/boards/define-board.js +30 -8
- package/dist/boards/define-board.js.map +1 -1
- package/dist/boards/index.js +1 -1
- package/dist/boards/intake-routing.d.ts +30 -6
- package/dist/boards/intake-routing.d.ts.map +1 -1
- package/dist/boards/intake-routing.js +43 -5
- package/dist/boards/intake-routing.js.map +1 -1
- package/dist/boards/legacy-plan-role.d.ts.map +1 -1
- package/dist/boards/legacy-plan-role.js +8 -4
- package/dist/boards/legacy-plan-role.js.map +1 -1
- package/dist/boards/phase-automation.d.ts.map +1 -1
- package/dist/boards/phase-automation.js +7 -2
- package/dist/boards/phase-automation.js.map +1 -1
- package/dist/boards/project-boards.d.ts +18 -7
- package/dist/boards/project-boards.d.ts.map +1 -1
- package/dist/boards/project-boards.js +79 -15
- package/dist/boards/project-boards.js.map +1 -1
- package/dist/boards/stored-board.d.ts +59 -1
- package/dist/boards/stored-board.d.ts.map +1 -1
- package/dist/boards/stored-board.js +219 -7
- package/dist/boards/stored-board.js.map +1 -1
- package/dist/boards/work.js +1 -1
- package/dist/dispatch-wake.d.ts +13 -0
- package/dist/dispatch-wake.d.ts.map +1 -0
- package/dist/dispatch-wake.js +30 -0
- package/dist/dispatch-wake.js.map +1 -0
- package/dist/environment/build-runner.d.ts +1 -1
- package/dist/environment/build-runner.d.ts.map +1 -1
- package/dist/environment/build-runner.js +2 -2
- package/dist/environment/build-workflow.d.ts +1 -1
- package/dist/environment/build-workflow.d.ts.map +1 -1
- package/dist/environment/build-workflow.js +1 -1
- package/dist/environment/build.js +1 -1
- package/dist/factory.d.ts +63 -9
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +237 -59
- package/dist/factory.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -9
- package/dist/integrations/base.d.ts +6 -0
- package/dist/integrations/base.d.ts.map +1 -1
- package/dist/integrations/channel-thread-announcements.d.ts +5 -0
- package/dist/integrations/channel-thread-announcements.d.ts.map +1 -1
- package/dist/integrations/channel-thread-announcements.js +24 -2
- package/dist/integrations/channel-thread-announcements.js.map +1 -1
- package/dist/integrations/github/acceptance-labels.d.ts +4 -0
- package/dist/integrations/github/acceptance-labels.d.ts.map +1 -1
- package/dist/integrations/github/acceptance-labels.js +1 -1
- package/dist/integrations/github/acceptance-labels.js.map +1 -1
- package/dist/integrations/github/default-rules.d.ts +2 -9
- package/dist/integrations/github/default-rules.d.ts.map +1 -1
- package/dist/integrations/github/default-rules.js +7 -6
- package/dist/integrations/github/default-rules.js.map +1 -1
- package/dist/integrations/github/integration.js +2 -2
- package/dist/integrations/github/issue-reconciler.d.ts.map +1 -1
- package/dist/integrations/github/issue-reconciler.js +17 -1
- package/dist/integrations/github/issue-reconciler.js.map +1 -1
- package/dist/integrations/github/review-status-comment.d.ts +61 -0
- package/dist/integrations/github/review-status-comment.d.ts.map +1 -0
- package/dist/integrations/github/review-status-comment.js +217 -0
- package/dist/integrations/github/review-status-comment.js.map +1 -0
- package/dist/integrations/github/review-status-reporter.d.ts +42 -0
- package/dist/integrations/github/review-status-reporter.d.ts.map +1 -0
- package/dist/integrations/github/review-status-reporter.js +100 -0
- package/dist/integrations/github/review-status-reporter.js.map +1 -0
- package/dist/integrations/github/review-status.d.ts +28 -0
- package/dist/integrations/github/review-status.d.ts.map +1 -0
- package/dist/integrations/github/review-status.js +95 -0
- package/dist/integrations/github/review-status.js.map +1 -0
- package/dist/integrations/github/routes.d.ts.map +1 -1
- package/dist/integrations/github/routes.js +19 -21
- package/dist/integrations/github/routes.js.map +1 -1
- package/dist/integrations/github/rules.d.ts +13 -1
- package/dist/integrations/github/rules.d.ts.map +1 -1
- package/dist/integrations/github/rules.js +80 -9
- package/dist/integrations/github/rules.js.map +1 -1
- package/dist/integrations/github/sandbox.js +1 -1
- package/dist/integrations/github/session-subscriptions.js +3 -3
- package/dist/integrations/github/webhook.js +2 -2
- package/dist/integrations/gitlab/default-rules.d.ts +24 -9
- package/dist/integrations/gitlab/default-rules.d.ts.map +1 -1
- package/dist/integrations/gitlab/default-rules.js +4 -4
- package/dist/integrations/gitlab/default-rules.js.map +1 -1
- package/dist/integrations/gitlab/integration.js +2 -2
- package/dist/integrations/gitlab/issue-reconciler.js +1 -1
- package/dist/integrations/gitlab/merge-request-reconciler.js +2 -2
- package/dist/integrations/gitlab/routes.d.ts.map +1 -1
- package/dist/integrations/gitlab/routes.js +2 -4
- package/dist/integrations/gitlab/routes.js.map +1 -1
- package/dist/integrations/gitlab/rules.d.ts +16 -0
- package/dist/integrations/gitlab/rules.d.ts.map +1 -1
- package/dist/integrations/gitlab/rules.js +71 -6
- package/dist/integrations/gitlab/rules.js.map +1 -1
- package/dist/integrations/gitlab/session-subscriptions.js +1 -1
- package/dist/integrations/gitlab/webhook-dispatch.js +1 -1
- package/dist/integrations/incidentio/default-rules.d.ts +1 -9
- package/dist/integrations/incidentio/default-rules.d.ts.map +1 -1
- package/dist/integrations/incidentio/default-rules.js +3 -4
- package/dist/integrations/incidentio/default-rules.js.map +1 -1
- package/dist/integrations/incidentio/integration.js +3 -3
- package/dist/integrations/incidentio/routes.d.ts.map +1 -1
- package/dist/integrations/incidentio/routes.js +1 -4
- package/dist/integrations/incidentio/routes.js.map +1 -1
- package/dist/integrations/incidentio/rules.d.ts +7 -0
- package/dist/integrations/incidentio/rules.d.ts.map +1 -1
- package/dist/integrations/incidentio/rules.js +37 -5
- package/dist/integrations/incidentio/rules.js.map +1 -1
- package/dist/integrations/jira/default-rules.d.ts +1 -9
- package/dist/integrations/jira/default-rules.d.ts.map +1 -1
- package/dist/integrations/jira/default-rules.js +3 -4
- package/dist/integrations/jira/default-rules.js.map +1 -1
- package/dist/integrations/jira/integration.js +2 -2
- package/dist/integrations/jira/routes.d.ts.map +1 -1
- package/dist/integrations/jira/routes.js +2 -5
- package/dist/integrations/jira/routes.js.map +1 -1
- package/dist/integrations/jira/rules.d.ts +7 -0
- package/dist/integrations/jira/rules.d.ts.map +1 -1
- package/dist/integrations/jira/rules.js +37 -5
- package/dist/integrations/jira/rules.js.map +1 -1
- package/dist/integrations/linear/default-rules.d.ts +1 -9
- package/dist/integrations/linear/default-rules.d.ts.map +1 -1
- package/dist/integrations/linear/default-rules.js +3 -4
- package/dist/integrations/linear/default-rules.js.map +1 -1
- package/dist/integrations/linear/integration.js +2 -2
- package/dist/integrations/linear/routes.d.ts +21 -1
- package/dist/integrations/linear/routes.d.ts.map +1 -1
- package/dist/integrations/linear/routes.js +21 -6
- package/dist/integrations/linear/routes.js.map +1 -1
- package/dist/integrations/linear/rules.d.ts +7 -0
- package/dist/integrations/linear/rules.d.ts.map +1 -1
- package/dist/integrations/linear/rules.js +37 -5
- package/dist/integrations/linear/rules.js.map +1 -1
- package/dist/integrations/platform/connect/routes.d.ts +7 -1
- package/dist/integrations/platform/connect/routes.d.ts.map +1 -1
- package/dist/integrations/platform/connect/routes.js +42 -5
- package/dist/integrations/platform/connect/routes.js.map +1 -1
- package/dist/integrations/platform/connect/session-tools.d.ts +7 -0
- package/dist/integrations/platform/connect/session-tools.d.ts.map +1 -0
- package/dist/integrations/platform/connect/session-tools.js +30 -0
- package/dist/integrations/platform/connect/session-tools.js.map +1 -0
- package/dist/integrations/platform/github/event-worker.js +1 -1
- package/dist/integrations/platform/github/integration.d.ts.map +1 -1
- package/dist/integrations/platform/github/integration.js +9 -8
- package/dist/integrations/platform/github/integration.js.map +1 -1
- package/dist/integrations/platform/gitlab/event-worker.js +1 -1
- package/dist/integrations/platform/gitlab/integration.js +2 -2
- package/dist/integrations/platform/incidentio/integration.js +5 -5
- package/dist/integrations/platform/jira/agent-tools.js +1 -1
- package/dist/integrations/platform/jira/integration.js +2 -2
- package/dist/integrations/platform/jira/routes.d.ts.map +1 -1
- package/dist/integrations/platform/jira/routes.js +2 -5
- package/dist/integrations/platform/jira/routes.js.map +1 -1
- package/dist/integrations/platform/linear/event-worker.d.ts +1 -1
- package/dist/integrations/platform/linear/event-worker.d.ts.map +1 -1
- package/dist/integrations/platform/linear/event-worker.js +9 -0
- package/dist/integrations/platform/linear/event-worker.js.map +1 -1
- package/dist/integrations/platform/linear/integration.d.ts.map +1 -1
- package/dist/integrations/platform/linear/integration.js +150 -48
- package/dist/integrations/platform/linear/integration.js.map +1 -1
- package/dist/integrations/slack/channel-reply-processor.d.ts +2 -0
- package/dist/integrations/slack/channel-reply-processor.d.ts.map +1 -1
- package/dist/integrations/slack/channel-reply-processor.js +6 -1
- package/dist/integrations/slack/channel-reply-processor.js.map +1 -1
- package/dist/integrations/slack/chat-tools.d.ts +16 -0
- package/dist/integrations/slack/chat-tools.d.ts.map +1 -0
- package/dist/integrations/slack/chat-tools.js +215 -0
- package/dist/integrations/slack/chat-tools.js.map +1 -0
- package/dist/integrations/slack/connect-route.d.ts.map +1 -1
- package/dist/integrations/slack/connect-route.js +1 -1
- package/dist/integrations/slack/connect-route.js.map +1 -1
- package/dist/integrations/slack/integration.d.ts +19 -3
- package/dist/integrations/slack/integration.d.ts.map +1 -1
- package/dist/integrations/slack/integration.js +27 -8
- package/dist/integrations/slack/integration.js.map +1 -1
- package/dist/integrations/slack/run-error-card.js +1 -1
- package/dist/integrations/slack/share-file-tool.d.ts +8 -0
- package/dist/integrations/slack/share-file-tool.d.ts.map +1 -1
- package/dist/integrations/slack/share-file-tool.js +13 -4
- package/dist/integrations/slack/share-file-tool.js.map +1 -1
- package/dist/integrations/slack/slack.d.ts +12 -10
- package/dist/integrations/slack/slack.d.ts.map +1 -1
- package/dist/integrations/slack/slack.js +113 -46
- package/dist/integrations/slack/slack.js.map +1 -1
- package/dist/integrations/slack/tool-settings.d.ts +26 -0
- package/dist/integrations/slack/tool-settings.d.ts.map +1 -0
- package/dist/integrations/slack/tool-settings.js +35 -0
- package/dist/integrations/slack/tool-settings.js.map +1 -0
- package/dist/integrations/slack/voice-clips.d.ts +32 -0
- package/dist/integrations/slack/voice-clips.d.ts.map +1 -0
- package/dist/integrations/slack/voice-clips.js +201 -0
- package/dist/integrations/slack/voice-clips.js.map +1 -0
- package/dist/integrations/workos/integration.d.ts.map +1 -1
- package/dist/integrations/workos/integration.js +1 -3
- package/dist/integrations/workos/integration.js.map +1 -1
- package/dist/mcp/events.js +1 -1
- package/dist/mcp/routes.js +2 -2
- package/dist/packages/_internals/workspace/dist/index.js +1 -1
- package/dist/routes/attention-activity.js +1 -1
- package/dist/routes/attention-providers.js +2 -2
- package/dist/routes/attention.js +2 -2
- package/dist/routes/automation-runs.d.ts.map +1 -1
- package/dist/routes/automation-runs.js +2 -5
- package/dist/routes/automation-runs.js.map +1 -1
- package/dist/routes/boards.d.ts +8 -6
- package/dist/routes/boards.d.ts.map +1 -1
- package/dist/routes/boards.js +73 -143
- package/dist/routes/boards.js.map +1 -1
- package/dist/routes/config.d.ts.map +1 -1
- package/dist/routes/config.js +6 -11
- package/dist/routes/config.js.map +1 -1
- package/dist/routes/contracts.d.ts +162 -2
- package/dist/routes/contracts.d.ts.map +1 -1
- package/dist/routes/contracts.js +98 -33
- package/dist/routes/contracts.js.map +1 -1
- package/dist/routes/fs.d.ts.map +1 -1
- package/dist/routes/fs.js +2 -5
- package/dist/routes/fs.js.map +1 -1
- package/dist/routes/intake-routes.d.ts.map +1 -1
- package/dist/routes/intake-routes.js +19 -12
- package/dist/routes/intake-routes.js.map +1 -1
- package/dist/routes/intake.d.ts.map +1 -1
- package/dist/routes/intake.js +4 -6
- package/dist/routes/intake.js.map +1 -1
- package/dist/routes/knowledge.d.ts.map +1 -1
- package/dist/routes/knowledge.js +1 -4
- package/dist/routes/knowledge.js.map +1 -1
- package/dist/routes/oauth.d.ts.map +1 -1
- package/dist/routes/oauth.js +1 -4
- package/dist/routes/oauth.js.map +1 -1
- package/dist/routes/projects.d.ts +3 -0
- package/dist/routes/projects.d.ts.map +1 -1
- package/dist/routes/projects.js +42 -28
- package/dist/routes/projects.js.map +1 -1
- package/dist/routes/provider-credentials.d.ts.map +1 -1
- package/dist/routes/provider-credentials.js +6 -0
- package/dist/routes/provider-credentials.js.map +1 -1
- package/dist/routes/route.d.ts +2 -0
- package/dist/routes/route.d.ts.map +1 -1
- package/dist/routes/route.js +5 -1
- package/dist/routes/route.js.map +1 -1
- package/dist/routes/skills.d.ts.map +1 -1
- package/dist/routes/skills.js +2 -5
- package/dist/routes/skills.js.map +1 -1
- package/dist/routes/source-control-sessions.d.ts.map +1 -1
- package/dist/routes/source-control-sessions.js +3 -5
- package/dist/routes/source-control-sessions.js.map +1 -1
- package/dist/routes/source-control-settings.d.ts.map +1 -1
- package/dist/routes/source-control-settings.js +3 -2
- package/dist/routes/source-control-settings.js.map +1 -1
- package/dist/routes/surface.d.ts +3 -1
- package/dist/routes/surface.d.ts.map +1 -1
- package/dist/routes/surface.js +27 -17
- package/dist/routes/surface.js.map +1 -1
- package/dist/routes/telemetry.js +1 -1
- package/dist/routes/voice.d.ts +48 -0
- package/dist/routes/voice.d.ts.map +1 -0
- package/dist/routes/voice.js +248 -0
- package/dist/routes/voice.js.map +1 -0
- package/dist/routes/work-items.d.ts.map +1 -1
- package/dist/routes/work-items.js +9 -12
- package/dist/routes/work-items.js.map +1 -1
- package/dist/rules/decision-applicability.js +1 -1
- package/dist/rules/dispatcher.d.ts +42 -0
- package/dist/rules/dispatcher.d.ts.map +1 -1
- package/dist/rules/dispatcher.js +522 -136
- package/dist/rules/dispatcher.js.map +1 -1
- package/dist/rules/event-rules.d.ts +40 -1
- package/dist/rules/event-rules.d.ts.map +1 -1
- package/dist/rules/event-rules.js +59 -1
- package/dist/rules/event-rules.js.map +1 -1
- package/dist/rules/index.js +1 -1
- package/dist/rules/processor.d.ts +2 -0
- package/dist/rules/processor.d.ts.map +1 -1
- package/dist/rules/processor.js +5 -4
- package/dist/rules/processor.js.map +1 -1
- package/dist/rules/start-coordinator.js +2 -2
- package/dist/rules/terminal-cleanup.js.map +1 -1
- package/dist/rules/tools.js +5 -5
- package/dist/rules/transition-service.d.ts +9 -0
- package/dist/rules/transition-service.d.ts.map +1 -1
- package/dist/rules/transition-service.js +9 -7
- package/dist/rules/transition-service.js.map +1 -1
- package/dist/rules/types.d.ts +54 -3
- package/dist/rules/types.d.ts.map +1 -1
- package/dist/rules/types.js +2 -0
- package/dist/rules/types.js.map +1 -1
- package/dist/rules/validation.d.ts.map +1 -1
- package/dist/rules/validation.js +57 -2
- package/dist/rules/validation.js.map +1 -1
- package/dist/sandbox/session-retirement.js +2 -2
- package/dist/sandbox/session-sandbox.js +1 -1
- package/dist/session/credential-policy.d.ts +2 -2
- package/dist/session/credential-policy.d.ts.map +1 -1
- package/dist/session/credential-policy.js +4 -4
- package/dist/session/credential-policy.js.map +1 -1
- package/dist/session/default-model-hydration.d.ts +2 -2
- package/dist/session/default-model-hydration.d.ts.map +1 -1
- package/dist/session/default-model-hydration.js +4 -4
- package/dist/session/default-model-hydration.js.map +1 -1
- package/dist/session/factory-session.js +3 -3
- package/dist/session/self-review-gate.js +1 -1
- package/dist/session/session-threads.d.ts +8 -0
- package/dist/session/session-threads.d.ts.map +1 -1
- package/dist/session/session-threads.js +11 -1
- package/dist/session/session-threads.js.map +1 -1
- package/dist/session/source-control-tools.js +3 -3
- package/dist/skills/catalog.js +1 -1
- package/dist/storage/domains/audit/actions.d.ts +1 -1
- package/dist/storage/domains/audit/actions.d.ts.map +1 -1
- package/dist/storage/domains/audit/actions.js +2 -1
- package/dist/storage/domains/audit/actions.js.map +1 -1
- package/dist/storage/domains/audit/domain.d.ts.map +1 -1
- package/dist/storage/domains/audit/domain.js +2 -4
- package/dist/storage/domains/audit/domain.js.map +1 -1
- package/dist/storage/domains/boards/base.d.ts +32 -1
- package/dist/storage/domains/boards/base.d.ts.map +1 -1
- package/dist/storage/domains/boards/base.js +155 -8
- package/dist/storage/domains/boards/base.js.map +1 -1
- package/dist/storage/domains/boards/schemas.d.ts.map +1 -1
- package/dist/storage/domains/boards/schemas.js +13 -1
- package/dist/storage/domains/boards/schemas.js.map +1 -1
- package/dist/storage/domains/comments/base.js +3 -3
- package/dist/storage/domains/comments/domain.js +3 -3
- package/dist/storage/domains/comments/routes.d.ts.map +1 -1
- package/dist/storage/domains/comments/routes.js +2 -4
- package/dist/storage/domains/comments/routes.js.map +1 -1
- package/dist/storage/domains/memory-settings/base.d.ts +0 -8
- package/dist/storage/domains/memory-settings/base.d.ts.map +1 -1
- package/dist/storage/domains/memory-settings/base.js +1 -11
- package/dist/storage/domains/memory-settings/base.js.map +1 -1
- package/dist/storage/domains/projects/base.d.ts +6 -0
- package/dist/storage/domains/projects/base.d.ts.map +1 -1
- package/dist/storage/domains/projects/base.js +9 -1
- package/dist/storage/domains/projects/base.js.map +1 -1
- package/dist/storage/domains/source-control/base.d.ts +20 -0
- package/dist/storage/domains/source-control/base.d.ts.map +1 -1
- package/dist/storage/domains/source-control/base.js +42 -0
- package/dist/storage/domains/source-control/base.js.map +1 -1
- package/dist/storage/domains/source-control/inmemory.d.ts +5 -1
- package/dist/storage/domains/source-control/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/source-control/inmemory.js +23 -0
- package/dist/storage/domains/source-control/inmemory.js.map +1 -1
- package/dist/storage/domains/voice-settings/base.d.ts +31 -0
- package/dist/storage/domains/voice-settings/base.d.ts.map +1 -0
- package/dist/storage/domains/voice-settings/base.js +81 -0
- package/dist/storage/domains/voice-settings/base.js.map +1 -0
- package/dist/storage/domains/work-items/base.d.ts +47 -7
- package/dist/storage/domains/work-items/base.d.ts.map +1 -1
- package/dist/storage/domains/work-items/base.js +251 -115
- package/dist/storage/domains/work-items/base.js.map +1 -1
- package/dist/storage/domains/work-items/cards.d.ts +6 -1
- package/dist/storage/domains/work-items/cards.d.ts.map +1 -1
- package/dist/storage/domains/work-items/cards.js +55 -5
- package/dist/storage/domains/work-items/cards.js.map +1 -1
- package/dist/storage/domains/work-items/claimable-work.d.ts +15 -0
- package/dist/storage/domains/work-items/claimable-work.d.ts.map +1 -0
- package/dist/storage/domains/work-items/claimable-work.js +51 -0
- package/dist/storage/domains/work-items/claimable-work.js.map +1 -0
- package/dist/storage/domains/work-items/work-item-schema.d.ts +2 -0
- package/dist/storage/domains/work-items/work-item-schema.d.ts.map +1 -1
- package/dist/storage/domains/work-items/work-item-schema.js +24 -1
- package/dist/storage/domains/work-items/work-item-schema.js.map +1 -1
- package/dist/timing.d.ts +1 -0
- package/dist/timing.d.ts.map +1 -1
- package/dist/timing.js +1 -1
- package/dist/timing.js.map +1 -1
- package/dist/tools/index.js +2 -2
- package/dist/tools/messaging-tools.js +1 -1
- package/dist/tools/read-tools.d.ts +2 -2
- package/dist/tools/read-tools.d.ts.map +1 -1
- package/dist/tools/read-tools.js +10 -9
- package/dist/tools/read-tools.js.map +1 -1
- package/dist/tools/scope.js +1 -1
- package/dist/tools/session-tools.d.ts +1 -1
- package/dist/tools/session-tools.d.ts.map +1 -1
- package/dist/tools/session-tools.js +9 -9
- package/dist/tools/session-tools.js.map +1 -1
- package/dist/tools/sessions-state-processor.d.ts +1 -1
- package/dist/tools/sessions-state-processor.d.ts.map +1 -1
- package/dist/tools/sessions-state-processor.js +9 -2
- package/dist/tools/sessions-state-processor.js.map +1 -1
- package/dist/tools/work-item-tools.js +4 -4
- package/dist/voice/rate-limit.d.ts +13 -0
- package/dist/voice/rate-limit.d.ts.map +1 -0
- package/dist/voice/rate-limit.js +36 -0
- package/dist/voice/rate-limit.js.map +1 -0
- package/dist/voice/realtime.d.ts +13 -0
- package/dist/voice/realtime.d.ts.map +1 -0
- package/dist/voice/realtime.js +56 -0
- package/dist/voice/realtime.js.map +1 -0
- package/dist/voice/transcription.d.ts +51 -0
- package/dist/voice/transcription.d.ts.map +1 -0
- package/dist/voice/transcription.js +112 -0
- package/dist/voice/transcription.js.map +1 -0
- package/dist/work-items/create-work-item.js +2 -2
- package/dist/work-items/decision-actions.js +2 -2
- package/dist/work-items/providers/gitlab.js +1 -1
- package/dist/work-items/providers/incidentio.js +1 -1
- package/dist/work-items/providers/index.js +1 -1
- package/dist/work-items/providers/jira.js +1 -1
- package/dist/work-items/providers/linear.js +1 -1
- package/dist/work-items/split-backfill.d.ts +13 -0
- package/dist/work-items/split-backfill.d.ts.map +1 -0
- package/dist/work-items/split-backfill.js +32 -0
- package/dist/work-items/split-backfill.js.map +1 -0
- package/dist/work-items/split-migration.d.ts +39 -2
- package/dist/work-items/split-migration.d.ts.map +1 -1
- package/dist/work-items/split-migration.js +171 -63
- package/dist/work-items/split-migration.js.map +1 -1
- package/dist/workspace.d.ts +2 -0
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +12 -9
- package/dist/workspace.js.map +1 -1
- package/package.json +10 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inmemory.js","names":[],"sources":["../../../../src/storage/domains/source-control/inmemory.ts"],"sourcesContent":["import { UniqueViolationError } from '@mastra/core/storage';\n\nimport type {\n ConfiguredExternalRepositoryKey,\n CreateProjectSourceControlConnectionInput,\n CreateSourceControlSessionInput,\n ExternalRepositoryProjectTarget,\n LinkProjectRepositoryInput,\n ProjectRepository,\n ProjectSourceControlConnection,\n SessionBranchKey,\n SetProjectRepositoryBuildStatusInput,\n SourceControlInstallation,\n SourceControlRepository,\n SourceControlSession,\n SourceControlSessionVisibility,\n SourceControlSessionRepository,\n SourceControlStorageHandle,\n UpdateProjectRepositoryInput,\n UpsertSessionRepositoryInput,\n UpsertSourceControlInstallationInput,\n UpsertSourceControlRepositoryInput,\n} from './base.js';\n\n/** In-memory provider-scoped source-control handle for route tests. */\nexport class SourceControlStorageInMemory implements SourceControlStorageHandle {\n readonly integrationId: string;\n installationsRows: SourceControlInstallation[] = [];\n repositoriesRows: SourceControlRepository[] = [];\n connectionsRows: ProjectSourceControlConnection[] = [];\n projectRepositoriesRows: ProjectRepository[] = [];\n sessionsRows: SourceControlSession[] = [];\n sessionRepositoriesRows: SourceControlSessionRepository[] = [];\n\n constructor(integrationId = 'github') {\n this.integrationId = integrationId;\n }\n\n readonly installations = {\n list: async ({ orgId }: { orgId: string }): Promise<SourceControlInstallation[]> =>\n this.installationsRows.filter(row => row.orgId === orgId),\n get: async ({ orgId, id }: { orgId: string; id: string }): Promise<SourceControlInstallation | null> =>\n this.installationsRows.find(row => row.orgId === orgId && row.id === id) ?? null,\n findByExternalId: async ({\n orgId,\n externalId,\n }: {\n orgId: string;\n externalId: string;\n }): Promise<SourceControlInstallation | null> =>\n this.installationsRows.find(row => row.orgId === orgId && row.externalId === externalId) ?? null,\n upsert: async (input: UpsertSourceControlInstallationInput): Promise<SourceControlInstallation> => {\n const existing = this.installationsRows.find(\n row => row.orgId === input.orgId && row.externalId === input.externalId,\n );\n if (existing) {\n Object.assign(existing, {\n connectedByUserId: input.connectedByUserId,\n accountName: input.accountName ?? null,\n accountType: input.accountType ?? null,\n providerMetadata: input.providerMetadata ?? {},\n });\n return existing;\n }\n const created: SourceControlInstallation = {\n id: globalThis.crypto.randomUUID(),\n integrationId: this.integrationId,\n orgId: input.orgId,\n connectedByUserId: input.connectedByUserId,\n externalId: input.externalId,\n accountName: input.accountName ?? null,\n accountType: input.accountType ?? null,\n providerMetadata: input.providerMetadata ?? {},\n createdAt: new Date(),\n };\n this.installationsRows.push(created);\n return created;\n },\n delete: async ({ orgId, id }: { orgId: string; id: string }): Promise<boolean> => {\n const index = this.installationsRows.findIndex(row => row.orgId === orgId && row.id === id);\n if (index < 0) return false;\n this.installationsRows.splice(index, 1);\n return true;\n },\n };\n\n readonly repositories = {\n list: async ({ orgId, installationId }: { orgId: string; installationId: string }) => {\n const installation = await this.installations.get({ orgId, id: installationId });\n return installation ? this.repositoriesRows.filter(row => row.installationId === installationId) : [];\n },\n get: async ({ orgId, id }: { orgId: string; id: string }): Promise<SourceControlRepository | null> => {\n const row = this.repositoriesRows.find(candidate => candidate.id === id);\n if (!row) return null;\n return (await this.installations.get({ orgId, id: row.installationId })) ? row : null;\n },\n findByExternalId: async ({\n orgId,\n installationId,\n externalId,\n }: {\n orgId: string;\n installationId: string;\n externalId: string;\n }) => {\n const rows = await this.repositories.list({ orgId, installationId });\n return rows.find(row => row.externalId === externalId) ?? null;\n },\n findBySlug: async ({ orgId, installationId, slug }: { orgId: string; installationId: string; slug: string }) => {\n const rows = await this.repositories.list({ orgId, installationId });\n return rows.find(row => row.slug === slug) ?? null;\n },\n upsert: async ({\n orgId,\n input,\n }: {\n orgId: string;\n input: UpsertSourceControlRepositoryInput;\n }): Promise<SourceControlRepository> => {\n if (!(await this.installations.get({ orgId, id: input.installationId }))) {\n throw new Error('Source-control installation not found');\n }\n const existing = this.repositoriesRows.find(\n row => row.installationId === input.installationId && row.externalId === input.externalId,\n );\n const now = new Date();\n if (existing) {\n Object.assign(existing, {\n slug: input.slug,\n defaultBranch: input.defaultBranch,\n providerMetadata: input.providerMetadata ?? {},\n updatedAt: now,\n });\n return existing;\n }\n const created: SourceControlRepository = {\n id: globalThis.crypto.randomUUID(),\n installationId: input.installationId,\n externalId: input.externalId,\n slug: input.slug,\n defaultBranch: input.defaultBranch,\n providerMetadata: input.providerMetadata ?? {},\n createdAt: now,\n updatedAt: now,\n };\n this.repositoriesRows.push(created);\n return created;\n },\n migrateInstallation: async ({\n orgId,\n id,\n newInstallationId,\n }: {\n orgId: string;\n id: string;\n newInstallationId: string;\n }) => {\n const existing = await this.repositories.get({ orgId, id });\n if (!existing) {\n throw new Error(`Repository ${id} not found in organization ${orgId}`);\n }\n if (!(await this.installations.get({ orgId, id: newInstallationId }))) {\n throw new Error('Source-control installation not found');\n }\n // Check if a repository with the same external_id exists under the new installation\n const conflict = this.repositoriesRows.find(\n row => row.installationId === newInstallationId && row.externalId === existing.externalId,\n );\n if (conflict) {\n // Return the existing repository under the new installation\n return conflict;\n }\n // Update the repository's installation\n existing.installationId = newInstallationId;\n existing.updatedAt = new Date();\n // Migrate dependent connections to the new installation\n for (const conn of this.connectionsRows) {\n if (conn.installationId === existing.installationId) {\n conn.installationId = newInstallationId;\n }\n }\n return existing;\n },\n };\n\n readonly connections = {\n list: async ({ factoryProjectId }: { orgId: string; factoryProjectId: string }) =>\n this.connectionsRows.filter(row => row.factoryProjectId === factoryProjectId),\n get: async ({ orgId, id }: { orgId: string; id: string }): Promise<ProjectSourceControlConnection | null> => {\n const row = this.connectionsRows.find(candidate => candidate.id === id);\n if (!row) return null;\n return (await this.installations.get({ orgId, id: row.installationId })) ? row : null;\n },\n create: async (input: CreateProjectSourceControlConnectionInput): Promise<ProjectSourceControlConnection> => {\n if (!(await this.installations.get({ orgId: input.orgId, id: input.installationId }))) {\n throw new Error('Source-control installation not found');\n }\n const existing = this.connectionsRows.find(\n row =>\n row.factoryProjectId === input.factoryProjectId &&\n row.integrationId === this.integrationId &&\n row.installationId === input.installationId,\n );\n if (existing) return existing;\n const created: ProjectSourceControlConnection = {\n id: globalThis.crypto.randomUUID(),\n factoryProjectId: input.factoryProjectId,\n integrationId: this.integrationId,\n installationId: input.installationId,\n createdByUserId: input.createdByUserId,\n createdAt: new Date(),\n };\n this.connectionsRows.push(created);\n return created;\n },\n delete: async ({ orgId, id }: { orgId: string; id: string }): Promise<boolean> => {\n if (!(await this.connections.get({ orgId, id }))) return false;\n for (const link of this.projectRepositoriesRows.filter(row => row.connectionId === id)) {\n await this.projectRepositories.unlink({ orgId, id: link.id });\n }\n this.connectionsRows.splice(0, this.connectionsRows.length, ...this.connectionsRows.filter(row => row.id !== id));\n return true;\n },\n };\n\n readonly projectRepositories = {\n list: async ({ orgId, connectionId }: { orgId: string; connectionId: string }) =>\n (await this.connections.get({ orgId, id: connectionId }))\n ? this.projectRepositoriesRows.filter(row => row.connectionId === connectionId)\n : [],\n listConfiguredExternalKeys: async (): Promise<ConfiguredExternalRepositoryKey[]> => {\n const keys = new Map<string, ConfiguredExternalRepositoryKey>();\n for (const connection of this.connectionsRows.filter(row => row.integrationId === this.integrationId)) {\n const installation = this.installationsRows.find(row => row.id === connection.installationId);\n if (!installation) continue;\n for (const link of this.projectRepositoriesRows.filter(row => row.connectionId === connection.id)) {\n const repository = this.repositoriesRows.find(row => row.id === link.repositoryId);\n if (!repository) continue;\n keys.set(`${installation.externalId}\\u0000${repository.externalId}`, {\n installationExternalId: installation.externalId,\n repositoryExternalId: repository.externalId,\n });\n }\n }\n return [...keys.values()];\n },\n listByExternalRepository: async ({\n installationExternalId,\n repositoryExternalId,\n }: {\n installationExternalId: string;\n repositoryExternalId: string;\n }): Promise<ExternalRepositoryProjectTarget[]> => {\n const targets: ExternalRepositoryProjectTarget[] = [];\n for (const installation of this.installationsRows.filter(row => row.externalId === installationExternalId)) {\n const repository = this.repositoriesRows.find(\n row => row.installationId === installation.id && row.externalId === repositoryExternalId,\n );\n if (!repository) continue;\n for (const projectRepository of this.projectRepositoriesRows.filter(\n row => row.repositoryId === repository.id,\n )) {\n const connection = this.connectionsRows.find(\n row =>\n row.id === projectRepository.connectionId &&\n row.installationId === installation.id &&\n row.integrationId === this.integrationId,\n );\n if (!connection) continue;\n targets.push({\n orgId: installation.orgId,\n factoryProjectId: connection.factoryProjectId,\n projectRepository,\n });\n }\n }\n return targets;\n },\n listByProject: async ({ orgId, factoryProjectId }: { orgId: string; factoryProjectId: string }) => {\n const connectionIds = new Set(\n (await this.connections.list({ orgId, factoryProjectId }))\n .filter(row => row.integrationId === this.integrationId)\n .map(row => row.id),\n );\n return this.projectRepositoriesRows\n .filter(row => connectionIds.has(row.connectionId))\n .sort((a, b) => a.position - b.position || a.createdAt.getTime() - b.createdAt.getTime());\n },\n get: async ({ orgId, id }: { orgId: string; id: string }): Promise<ProjectRepository | null> => {\n const row = this.projectRepositoriesRows.find(candidate => candidate.id === id);\n if (!row) return null;\n return (await this.connections.get({ orgId, id: row.connectionId })) ? row : null;\n },\n link: async (input: LinkProjectRepositoryInput): Promise<ProjectRepository> => {\n const connection = await this.connections.get({ orgId: input.orgId, id: input.connectionId });\n const repository = await this.repositories.get({ orgId: input.orgId, id: input.repositoryId });\n if (!connection || !repository || repository.installationId !== connection.installationId) {\n throw new Error('Source-control connection or repository not found');\n }\n const existing = this.projectRepositoriesRows.find(\n row => row.connectionId === input.connectionId && row.repositoryId === input.repositoryId,\n );\n if (existing) return existing;\n // Mirrors base.ts: order and dedupe span every connection of the project.\n const siblingConnectionIds = new Set(\n this.connectionsRows.filter(row => row.factoryProjectId === connection.factoryProjectId).map(row => row.id),\n );\n const siblings = this.projectRepositoriesRows.filter(row => siblingConnectionIds.has(row.connectionId));\n const position = 1 + Math.max(0, ...siblings.map(row => row.position));\n const inEnvironment = !siblings.some(\n row =>\n row.inEnvironment &&\n this.repositoriesRows.find(candidate => candidate.id === row.repositoryId)?.slug === repository.slug,\n );\n const now = new Date();\n const created: ProjectRepository = {\n id: globalThis.crypto.randomUUID(),\n connectionId: input.connectionId,\n repositoryId: input.repositoryId,\n createdByUserId: input.createdByUserId,\n branch: input.branch ?? null,\n sandboxProvider: input.sandboxProvider,\n sandboxWorkdir: input.sandboxWorkdir,\n setupCommand: input.setupCommand ?? null,\n teardownCommand: input.teardownCommand ?? null,\n position,\n inEnvironment,\n lastBuildStatus: 'unbuilt',\n lastBuildError: null,\n lastBuiltAt: null,\n createdAt: now,\n updatedAt: now,\n };\n this.projectRepositoriesRows.push(created);\n return created;\n },\n update: async ({\n orgId,\n id,\n input,\n }: {\n orgId: string;\n id: string;\n input: UpdateProjectRepositoryInput;\n }): Promise<ProjectRepository | null> => {\n const row = await this.projectRepositories.get({ orgId, id });\n if (!row) return null;\n Object.assign(row, input, { updatedAt: new Date() });\n return row;\n },\n setBuildStatus: async ({\n orgId,\n id,\n status,\n error,\n builtAt,\n }: SetProjectRepositoryBuildStatusInput): Promise<ProjectRepository | null> => {\n const row = await this.projectRepositories.get({ orgId, id });\n if (!row) return null;\n Object.assign(row, {\n lastBuildStatus: status,\n lastBuildError: error ?? null,\n lastBuiltAt: builtAt ?? null,\n updatedAt: new Date(),\n });\n return row;\n },\n unlink: async ({ orgId, id }: { orgId: string; id: string }): Promise<boolean> => {\n if (!(await this.projectRepositories.get({ orgId, id }))) return false;\n const sessionIds = new Set(this.sessionsRows.filter(row => row.projectRepositoryId === id).map(r => r.sessionId));\n this.sessionRepositoriesRows = this.sessionRepositoriesRows.filter(\n row => row.projectRepositoryId !== id && !sessionIds.has(row.sessionId),\n );\n this.sessionsRows.splice(\n 0,\n this.sessionsRows.length,\n ...this.sessionsRows.filter(row => row.projectRepositoryId !== id),\n );\n this.projectRepositoriesRows.splice(\n 0,\n this.projectRepositoriesRows.length,\n ...this.projectRepositoriesRows.filter(row => row.id !== id),\n );\n return true;\n },\n };\n\n readonly sessions = {\n list: async ({ projectRepositoryId, viewerUserId }: { projectRepositoryId: string; viewerUserId: string }) =>\n this.sessionsRows.filter(\n row =>\n row.projectRepositoryId === projectRepositoryId &&\n (row.visibility !== 'private' || row.userId === viewerUserId),\n ),\n listByProjectRepository: async ({ projectRepositoryId }: { projectRepositoryId: string }) =>\n this.sessionsRows.filter(row => row.projectRepositoryId === projectRepositoryId),\n listByProject: async ({\n orgId,\n factoryProjectId,\n viewerUserId,\n }: {\n orgId: string;\n factoryProjectId: string;\n viewerUserId: string;\n }) => {\n const connectionIds = new Set(\n this.connectionsRows.filter(row => row.factoryProjectId === factoryProjectId).map(row => row.id),\n );\n const linkIds = new Set(\n this.projectRepositoriesRows.filter(row => connectionIds.has(row.connectionId)).map(row => row.id),\n );\n return this.sessionsRows.filter(\n row =>\n row.factoryProjectId === factoryProjectId &&\n row.orgId === orgId &&\n row.projectRepositoryId !== null &&\n linkIds.has(row.projectRepositoryId) &&\n (row.visibility !== 'private' || row.userId === viewerUserId),\n );\n },\n getBySessionId: async (sessionId: string): Promise<SourceControlSession | null> => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (!row) return null;\n // Mirrors base.ts: a session whose project-repository link is gone does not resolve.\n return this.projectRepositoriesRows.some(link => link.id === row.projectRepositoryId) ? row : null;\n },\n listByOrigin: async ({ orgId, originSessionId }: { orgId: string; originSessionId: string }) =>\n this.sessionsRows.filter(\n row =>\n row.orgId === orgId &&\n row.originSessionId === originSessionId &&\n // Mirrors base.ts: only sessions on this integration's links resolve.\n this.projectRepositoriesRows.some(link => link.id === row.projectRepositoryId),\n ),\n rename: async ({ sessionId, title }: { sessionId: string; title: string }): Promise<void> => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (row) {\n row.title = title;\n row.updatedAt = new Date();\n }\n },\n setOriginMuted: async ({ sessionId, muted }: { sessionId: string; muted: boolean }): Promise<void> => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (row) {\n row.originMutedAt = muted ? new Date() : null;\n row.updatedAt = new Date();\n }\n },\n setVisibility: async ({\n sessionId,\n visibility,\n expectedUserId,\n }: {\n sessionId: string;\n visibility: SourceControlSessionVisibility;\n expectedUserId: string;\n }): Promise<SourceControlSession | null> => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (!row || row.userId !== expectedUserId) return null;\n row.visibility = visibility;\n row.updatedAt = new Date();\n return row;\n },\n getForBranch: async (args: SessionBranchKey): Promise<SourceControlSession | null> =>\n this.sessionsRows.find(\n row =>\n ('factoryProjectId' in args\n ? row.factoryProjectId === args.factoryProjectId &&\n // Mirrors base.ts: only sessions on this integration's links resolve.\n this.projectRepositoriesRows.some(link => link.id === row.projectRepositoryId)\n : row.projectRepositoryId === args.projectRepositoryId) &&\n row.userId === args.userId &&\n row.branch === args.branch,\n ) ?? null,\n create: async (input: CreateSourceControlSessionInput): Promise<SourceControlSession> => {\n const link = this.projectRepositoriesRows.find(row => row.id === input.projectRepositoryId);\n const connection = link && this.connectionsRows.find(row => row.id === link.connectionId);\n if (!connection) throw new Error('Project repository not found for this integration.');\n if (input.factoryProjectId !== undefined && input.factoryProjectId !== connection.factoryProjectId) {\n throw new Error('Session factory does not match the repository link.');\n }\n const factoryProjectId = connection.factoryProjectId;\n // Mirrors base.ts: reuse is keyed by the link; another link's branch is a unique violation below.\n const existing = await this.sessions.getForBranch({\n projectRepositoryId: input.projectRepositoryId,\n userId: input.userId,\n branch: input.branch,\n });\n if (existing) return existing;\n // Both checks stay synchronous with the push below so concurrent creates see each other, as a unique index would.\n if (this.sessionsRows.some(row => row.sessionId === input.sessionId)) {\n throw new UniqueViolationError('Source-control session ID already exists');\n }\n if (\n this.sessionsRows.some(\n row =>\n row.factoryProjectId === factoryProjectId && row.userId === input.userId && row.branch === input.branch,\n )\n ) {\n throw new UniqueViolationError('Source-control session branch already exists in this factory');\n }\n const now = new Date();\n const { origin, ...fields } = input;\n const session: SourceControlSession = {\n id: globalThis.crypto.randomUUID(),\n ...fields,\n factoryProjectId,\n title: input.title ?? null,\n visibility: input.visibility ?? 'org',\n originSessionId: origin?.sessionId ?? null,\n originThreadId: origin?.threadId ?? null,\n originMutedAt: null,\n sandboxId: null,\n sandboxWorkdir: null,\n materializedAt: null,\n firstMessageAt: null,\n firstMeaningfulExecAt: null,\n createdAt: now,\n updatedAt: now,\n };\n this.sessionsRows.push(session);\n return session;\n },\n transferOwner: async ({\n sessionId,\n expectedUserId,\n toUserId,\n }: {\n sessionId: string;\n expectedUserId: string;\n toUserId: string;\n }) => {\n const index = this.sessionsRows.findIndex(row => row.sessionId === sessionId);\n const session = this.sessionsRows[index] ?? null;\n if (!session || session.userId !== expectedUserId || session.visibility === 'private') {\n return { status: 'conflict' as const, reason: 'stale_owner' as const, session };\n }\n if (session.userId === toUserId) return { status: 'updated' as const, session };\n // Mirrors base.ts: the branch is unique per repository link and per Factory.\n const branchOwned = this.sessionsRows.some(\n row =>\n row.id !== session.id &&\n row.userId === toUserId &&\n row.branch === session.branch &&\n (row.projectRepositoryId === session.projectRepositoryId ||\n (session.factoryProjectId !== null && row.factoryProjectId === session.factoryProjectId)),\n );\n if (branchOwned) return { status: 'conflict' as const, reason: 'branch_owned' as const, session };\n // A new row, so a caller holding the old one keeps its pre-transfer snapshot like base.ts.\n const updated = { ...session, userId: toUserId, updatedAt: new Date() };\n this.sessionsRows[index] = updated;\n return { status: 'updated' as const, session: updated };\n },\n setSandbox: async ({\n id,\n sandboxId,\n sandboxWorkdir,\n }: {\n id: string;\n sandboxId: string | null;\n sandboxWorkdir: string;\n }) => {\n const row = this.sessionsRows.find(candidate => candidate.id === id);\n if (row) Object.assign(row, { sandboxId, sandboxWorkdir, updatedAt: new Date() });\n },\n markMaterialized: async ({ id }: { id: string }) => {\n const row = this.sessionsRows.find(candidate => candidate.id === id);\n if (row && row.materializedAt === null) Object.assign(row, { materializedAt: new Date(), updatedAt: new Date() });\n },\n markFirstMessage: async ({ sessionId }: { sessionId: string }) => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (row && row.firstMessageAt === null) Object.assign(row, { firstMessageAt: new Date(), updatedAt: new Date() });\n },\n markFirstMeaningfulExec: async ({ sessionId }: { sessionId: string }) => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (row && row.firstMeaningfulExecAt === null) {\n Object.assign(row, { firstMeaningfulExecAt: new Date(), updatedAt: new Date() });\n }\n },\n delete: async (id: string) => {\n const row = this.sessionsRows.find(candidate => candidate.id === id);\n if (row) {\n this.sessionRepositoriesRows = this.sessionRepositoriesRows.filter(r => r.sessionId !== row.sessionId);\n }\n this.sessionsRows.splice(0, this.sessionsRows.length, ...this.sessionsRows.filter(row => row.id !== id));\n },\n };\n\n readonly sessionRepositories = {\n upsert: async (input: UpsertSessionRepositoryInput): Promise<SourceControlSessionRepository> => {\n const now = new Date();\n const existing = this.sessionRepositoriesRows.find(\n row => row.sessionId === input.sessionId && row.projectRepositoryId === input.projectRepositoryId,\n );\n if (existing) {\n if (input.branch !== undefined) {\n existing.branch = input.branch;\n existing.pushedAt = input.pushedAt ?? now;\n } else if (input.pushedAt) {\n existing.pushedAt = input.pushedAt;\n }\n if (input.changeRequestId !== undefined) existing.changeRequestId = input.changeRequestId;\n if (input.changeRequestUrl !== undefined) existing.changeRequestUrl = input.changeRequestUrl;\n existing.updatedAt = now;\n return existing;\n }\n const branch = input.branch ?? input.fallbackBranch;\n if (!branch) throw new Error('A session repository row needs a branch when it is first recorded.');\n const created: SourceControlSessionRepository = {\n id: globalThis.crypto.randomUUID(),\n sessionId: input.sessionId,\n projectRepositoryId: input.projectRepositoryId,\n branch,\n changeRequestId: input.changeRequestId ?? null,\n changeRequestUrl: input.changeRequestUrl ?? null,\n pushedAt: input.pushedAt ?? now,\n updatedAt: now,\n createdAt: now,\n };\n this.sessionRepositoriesRows.push(created);\n return created;\n },\n listBySession: async ({ sessionId }: { sessionId: string }): Promise<SourceControlSessionRepository[]> =>\n this.sessionRepositoriesRows.filter(row => row.sessionId === sessionId),\n };\n}\n"],"mappings":";;;AAyBA,IAAa,+BAAb,MAAgF;CAC9E;CACA,oBAAiD,CAAC;CAClD,mBAA8C,CAAC;CAC/C,kBAAoD,CAAC;CACrD,0BAA+C,CAAC;CAChD,eAAuC,CAAC;CACxC,0BAA4D,CAAC;CAE7D,YAAY,gBAAgB,UAAU;EACpC,KAAK,gBAAgB;CACvB;CAEA,gBAAyB;EACvB,MAAM,OAAO,EAAE,YACb,KAAK,kBAAkB,QAAO,QAAO,IAAI,UAAU,KAAK;EAC1D,KAAK,OAAO,EAAE,OAAO,SACnB,KAAK,kBAAkB,MAAK,QAAO,IAAI,UAAU,SAAS,IAAI,OAAO,EAAE,KAAK;EAC9E,kBAAkB,OAAO,EACvB,OACA,iBAKA,KAAK,kBAAkB,MAAK,QAAO,IAAI,UAAU,SAAS,IAAI,eAAe,UAAU,KAAK;EAC9F,QAAQ,OAAO,UAAoF;GACjG,MAAM,WAAW,KAAK,kBAAkB,MACtC,Q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,MAAM,oEAAoE;GACjG,MAAM,UAA0C;IAC9C,IAAI,WAAW,OAAO,WAAW;IACjC,WAAW,MAAM;IACjB,qBAAqB,MAAM;IAC3B;IACA,iBAAiB,MAAM,mBAAmB;IAC1C,kBAAkB,MAAM,oBAAoB;IAC5C,UAAU,MAAM,YAAY;IAC5B,WAAW;IACX,WAAW;GACb;GACA,KAAK,wBAAwB,KAAK,OAAO;GACzC,OAAO;EACT;EACA,eAAe,OAAO,EAAE,gBACtB,KAAK,wBAAwB,QAAO,QAAO,IAAI,cAAc,SAAS;CAC1E;AACF"}
|
|
1
|
+
{"version":3,"file":"inmemory.js","names":[],"sources":["../../../../src/storage/domains/source-control/inmemory.ts"],"sourcesContent":["import { UniqueViolationError } from '@mastra/core/storage';\n\nimport type {\n ConfiguredExternalRepositoryKey,\n CreateProjectSourceControlConnectionInput,\n CreateSourceControlSessionInput,\n ExternalRepositoryProjectTarget,\n LinkProjectRepositoryInput,\n ProjectConnectionWithRepositories,\n ProjectRepository,\n ProjectSourceControlConnection,\n SessionBranchKey,\n SetProjectRepositoryBuildStatusInput,\n SourceControlInstallation,\n SourceControlRepository,\n SourceControlSession,\n SourceControlSessionVisibility,\n SourceControlSessionRepository,\n SourceControlStorageHandle,\n UpdateProjectRepositoryInput,\n UpsertSessionRepositoryInput,\n UpsertSourceControlInstallationInput,\n UpsertSourceControlRepositoryInput,\n} from './base.js';\n\n/** In-memory provider-scoped source-control handle for route tests. */\nexport class SourceControlStorageInMemory implements SourceControlStorageHandle {\n readonly integrationId: string;\n installationsRows: SourceControlInstallation[] = [];\n repositoriesRows: SourceControlRepository[] = [];\n connectionsRows: ProjectSourceControlConnection[] = [];\n projectRepositoriesRows: ProjectRepository[] = [];\n sessionsRows: SourceControlSession[] = [];\n sessionRepositoriesRows: SourceControlSessionRepository[] = [];\n\n constructor(integrationId = 'github') {\n this.integrationId = integrationId;\n }\n\n readonly installations = {\n list: async ({ orgId }: { orgId: string }): Promise<SourceControlInstallation[]> =>\n this.installationsRows.filter(row => row.orgId === orgId),\n get: async ({ orgId, id }: { orgId: string; id: string }): Promise<SourceControlInstallation | null> =>\n this.installationsRows.find(row => row.orgId === orgId && row.id === id) ?? null,\n findByExternalId: async ({\n orgId,\n externalId,\n }: {\n orgId: string;\n externalId: string;\n }): Promise<SourceControlInstallation | null> =>\n this.installationsRows.find(row => row.orgId === orgId && row.externalId === externalId) ?? null,\n upsert: async (input: UpsertSourceControlInstallationInput): Promise<SourceControlInstallation> => {\n const existing = this.installationsRows.find(\n row => row.orgId === input.orgId && row.externalId === input.externalId,\n );\n if (existing) {\n Object.assign(existing, {\n connectedByUserId: input.connectedByUserId,\n accountName: input.accountName ?? null,\n accountType: input.accountType ?? null,\n providerMetadata: input.providerMetadata ?? {},\n });\n return existing;\n }\n const created: SourceControlInstallation = {\n id: globalThis.crypto.randomUUID(),\n integrationId: this.integrationId,\n orgId: input.orgId,\n connectedByUserId: input.connectedByUserId,\n externalId: input.externalId,\n accountName: input.accountName ?? null,\n accountType: input.accountType ?? null,\n providerMetadata: input.providerMetadata ?? {},\n createdAt: new Date(),\n };\n this.installationsRows.push(created);\n return created;\n },\n delete: async ({ orgId, id }: { orgId: string; id: string }): Promise<boolean> => {\n const index = this.installationsRows.findIndex(row => row.orgId === orgId && row.id === id);\n if (index < 0) return false;\n this.installationsRows.splice(index, 1);\n return true;\n },\n };\n\n readonly repositories = {\n list: async ({ orgId, installationId }: { orgId: string; installationId: string }) => {\n const installation = await this.installations.get({ orgId, id: installationId });\n return installation ? this.repositoriesRows.filter(row => row.installationId === installationId) : [];\n },\n get: async ({ orgId, id }: { orgId: string; id: string }): Promise<SourceControlRepository | null> => {\n const row = this.repositoriesRows.find(candidate => candidate.id === id);\n if (!row) return null;\n return (await this.installations.get({ orgId, id: row.installationId })) ? row : null;\n },\n findByExternalId: async ({\n orgId,\n installationId,\n externalId,\n }: {\n orgId: string;\n installationId: string;\n externalId: string;\n }) => {\n const rows = await this.repositories.list({ orgId, installationId });\n return rows.find(row => row.externalId === externalId) ?? null;\n },\n findBySlug: async ({ orgId, installationId, slug }: { orgId: string; installationId: string; slug: string }) => {\n const rows = await this.repositories.list({ orgId, installationId });\n return rows.find(row => row.slug === slug) ?? null;\n },\n upsert: async ({\n orgId,\n input,\n }: {\n orgId: string;\n input: UpsertSourceControlRepositoryInput;\n }): Promise<SourceControlRepository> => {\n if (!(await this.installations.get({ orgId, id: input.installationId }))) {\n throw new Error('Source-control installation not found');\n }\n const existing = this.repositoriesRows.find(\n row => row.installationId === input.installationId && row.externalId === input.externalId,\n );\n const now = new Date();\n if (existing) {\n Object.assign(existing, {\n slug: input.slug,\n defaultBranch: input.defaultBranch,\n providerMetadata: input.providerMetadata ?? {},\n updatedAt: now,\n });\n return existing;\n }\n const created: SourceControlRepository = {\n id: globalThis.crypto.randomUUID(),\n installationId: input.installationId,\n externalId: input.externalId,\n slug: input.slug,\n defaultBranch: input.defaultBranch,\n providerMetadata: input.providerMetadata ?? {},\n createdAt: now,\n updatedAt: now,\n };\n this.repositoriesRows.push(created);\n return created;\n },\n migrateInstallation: async ({\n orgId,\n id,\n newInstallationId,\n }: {\n orgId: string;\n id: string;\n newInstallationId: string;\n }) => {\n const existing = await this.repositories.get({ orgId, id });\n if (!existing) {\n throw new Error(`Repository ${id} not found in organization ${orgId}`);\n }\n if (!(await this.installations.get({ orgId, id: newInstallationId }))) {\n throw new Error('Source-control installation not found');\n }\n // Check if a repository with the same external_id exists under the new installation\n const conflict = this.repositoriesRows.find(\n row => row.installationId === newInstallationId && row.externalId === existing.externalId,\n );\n if (conflict) {\n // Return the existing repository under the new installation\n return conflict;\n }\n // Update the repository's installation\n existing.installationId = newInstallationId;\n existing.updatedAt = new Date();\n // Migrate dependent connections to the new installation\n for (const conn of this.connectionsRows) {\n if (conn.installationId === existing.installationId) {\n conn.installationId = newInstallationId;\n }\n }\n return existing;\n },\n };\n\n readonly connections = {\n list: async ({ factoryProjectId }: { orgId: string; factoryProjectId: string }) =>\n this.connectionsRows.filter(row => row.factoryProjectId === factoryProjectId),\n listWithRepositories: async ({\n orgId,\n factoryProjectIds,\n }: {\n orgId: string;\n factoryProjectIds: string[];\n }): Promise<ProjectConnectionWithRepositories[]> => {\n const connections: ProjectConnectionWithRepositories[] = [];\n for (const row of this.connectionsRows.filter(candidate =>\n factoryProjectIds.includes(candidate.factoryProjectId),\n )) {\n const installation = await this.installations.get({ orgId, id: row.installationId });\n if (!installation) continue;\n const links = this.projectRepositoriesRows.filter(link => link.connectionId === row.id);\n connections.push({\n ...row,\n installation,\n repositories: await Promise.all(\n links.map(async link => ({\n ...link,\n repository: await this.repositories.get({ orgId, id: link.repositoryId }),\n })),\n ),\n });\n }\n return connections;\n },\n get: async ({ orgId, id }: { orgId: string; id: string }): Promise<ProjectSourceControlConnection | null> => {\n const row = this.connectionsRows.find(candidate => candidate.id === id);\n if (!row) return null;\n return (await this.installations.get({ orgId, id: row.installationId })) ? row : null;\n },\n create: async (input: CreateProjectSourceControlConnectionInput): Promise<ProjectSourceControlConnection> => {\n if (!(await this.installations.get({ orgId: input.orgId, id: input.installationId }))) {\n throw new Error('Source-control installation not found');\n }\n const existing = this.connectionsRows.find(\n row =>\n row.factoryProjectId === input.factoryProjectId &&\n row.integrationId === this.integrationId &&\n row.installationId === input.installationId,\n );\n if (existing) return existing;\n const created: ProjectSourceControlConnection = {\n id: globalThis.crypto.randomUUID(),\n factoryProjectId: input.factoryProjectId,\n integrationId: this.integrationId,\n installationId: input.installationId,\n createdByUserId: input.createdByUserId,\n createdAt: new Date(),\n };\n this.connectionsRows.push(created);\n return created;\n },\n delete: async ({ orgId, id }: { orgId: string; id: string }): Promise<boolean> => {\n if (!(await this.connections.get({ orgId, id }))) return false;\n for (const link of this.projectRepositoriesRows.filter(row => row.connectionId === id)) {\n await this.projectRepositories.unlink({ orgId, id: link.id });\n }\n this.connectionsRows.splice(0, this.connectionsRows.length, ...this.connectionsRows.filter(row => row.id !== id));\n return true;\n },\n };\n\n readonly projectRepositories = {\n list: async ({ orgId, connectionId }: { orgId: string; connectionId: string }) =>\n (await this.connections.get({ orgId, id: connectionId }))\n ? this.projectRepositoriesRows.filter(row => row.connectionId === connectionId)\n : [],\n listConfiguredExternalKeys: async (): Promise<ConfiguredExternalRepositoryKey[]> => {\n const keys = new Map<string, ConfiguredExternalRepositoryKey>();\n for (const connection of this.connectionsRows.filter(row => row.integrationId === this.integrationId)) {\n const installation = this.installationsRows.find(row => row.id === connection.installationId);\n if (!installation) continue;\n for (const link of this.projectRepositoriesRows.filter(row => row.connectionId === connection.id)) {\n const repository = this.repositoriesRows.find(row => row.id === link.repositoryId);\n if (!repository) continue;\n keys.set(`${installation.externalId}\\u0000${repository.externalId}`, {\n installationExternalId: installation.externalId,\n repositoryExternalId: repository.externalId,\n });\n }\n }\n return [...keys.values()];\n },\n listByExternalRepository: async ({\n installationExternalId,\n repositoryExternalId,\n }: {\n installationExternalId: string;\n repositoryExternalId: string;\n }): Promise<ExternalRepositoryProjectTarget[]> => {\n const targets: ExternalRepositoryProjectTarget[] = [];\n for (const installation of this.installationsRows.filter(row => row.externalId === installationExternalId)) {\n const repository = this.repositoriesRows.find(\n row => row.installationId === installation.id && row.externalId === repositoryExternalId,\n );\n if (!repository) continue;\n for (const projectRepository of this.projectRepositoriesRows.filter(\n row => row.repositoryId === repository.id,\n )) {\n const connection = this.connectionsRows.find(\n row =>\n row.id === projectRepository.connectionId &&\n row.installationId === installation.id &&\n row.integrationId === this.integrationId,\n );\n if (!connection) continue;\n targets.push({\n orgId: installation.orgId,\n factoryProjectId: connection.factoryProjectId,\n projectRepository,\n });\n }\n }\n return targets;\n },\n listByProject: async ({ orgId, factoryProjectId }: { orgId: string; factoryProjectId: string }) => {\n const connectionIds = new Set(\n (await this.connections.list({ orgId, factoryProjectId }))\n .filter(row => row.integrationId === this.integrationId)\n .map(row => row.id),\n );\n return this.projectRepositoriesRows\n .filter(row => connectionIds.has(row.connectionId))\n .sort((a, b) => a.position - b.position || a.createdAt.getTime() - b.createdAt.getTime());\n },\n get: async ({ orgId, id }: { orgId: string; id: string }): Promise<ProjectRepository | null> => {\n const row = this.projectRepositoriesRows.find(candidate => candidate.id === id);\n if (!row) return null;\n return (await this.connections.get({ orgId, id: row.connectionId })) ? row : null;\n },\n link: async (input: LinkProjectRepositoryInput): Promise<ProjectRepository> => {\n const connection = await this.connections.get({ orgId: input.orgId, id: input.connectionId });\n const repository = await this.repositories.get({ orgId: input.orgId, id: input.repositoryId });\n if (!connection || !repository || repository.installationId !== connection.installationId) {\n throw new Error('Source-control connection or repository not found');\n }\n const existing = this.projectRepositoriesRows.find(\n row => row.connectionId === input.connectionId && row.repositoryId === input.repositoryId,\n );\n if (existing) return existing;\n // Mirrors base.ts: order and dedupe span every connection of the project.\n const siblingConnectionIds = new Set(\n this.connectionsRows.filter(row => row.factoryProjectId === connection.factoryProjectId).map(row => row.id),\n );\n const siblings = this.projectRepositoriesRows.filter(row => siblingConnectionIds.has(row.connectionId));\n const position = 1 + Math.max(0, ...siblings.map(row => row.position));\n const inEnvironment = !siblings.some(\n row =>\n row.inEnvironment &&\n this.repositoriesRows.find(candidate => candidate.id === row.repositoryId)?.slug === repository.slug,\n );\n const now = new Date();\n const created: ProjectRepository = {\n id: globalThis.crypto.randomUUID(),\n connectionId: input.connectionId,\n repositoryId: input.repositoryId,\n createdByUserId: input.createdByUserId,\n branch: input.branch ?? null,\n sandboxProvider: input.sandboxProvider,\n sandboxWorkdir: input.sandboxWorkdir,\n setupCommand: input.setupCommand ?? null,\n teardownCommand: input.teardownCommand ?? null,\n position,\n inEnvironment,\n lastBuildStatus: 'unbuilt',\n lastBuildError: null,\n lastBuiltAt: null,\n createdAt: now,\n updatedAt: now,\n };\n this.projectRepositoriesRows.push(created);\n return created;\n },\n update: async ({\n orgId,\n id,\n input,\n }: {\n orgId: string;\n id: string;\n input: UpdateProjectRepositoryInput;\n }): Promise<ProjectRepository | null> => {\n const row = await this.projectRepositories.get({ orgId, id });\n if (!row) return null;\n Object.assign(row, input, { updatedAt: new Date() });\n return row;\n },\n setBuildStatus: async ({\n orgId,\n id,\n status,\n error,\n builtAt,\n }: SetProjectRepositoryBuildStatusInput): Promise<ProjectRepository | null> => {\n const row = await this.projectRepositories.get({ orgId, id });\n if (!row) return null;\n Object.assign(row, {\n lastBuildStatus: status,\n lastBuildError: error ?? null,\n lastBuiltAt: builtAt ?? null,\n updatedAt: new Date(),\n });\n return row;\n },\n unlink: async ({ orgId, id }: { orgId: string; id: string }): Promise<boolean> => {\n if (!(await this.projectRepositories.get({ orgId, id }))) return false;\n const sessionIds = new Set(this.sessionsRows.filter(row => row.projectRepositoryId === id).map(r => r.sessionId));\n this.sessionRepositoriesRows = this.sessionRepositoriesRows.filter(\n row => row.projectRepositoryId !== id && !sessionIds.has(row.sessionId),\n );\n this.sessionsRows.splice(\n 0,\n this.sessionsRows.length,\n ...this.sessionsRows.filter(row => row.projectRepositoryId !== id),\n );\n this.projectRepositoriesRows.splice(\n 0,\n this.projectRepositoriesRows.length,\n ...this.projectRepositoriesRows.filter(row => row.id !== id),\n );\n return true;\n },\n };\n\n readonly sessions = {\n list: async ({ projectRepositoryId, viewerUserId }: { projectRepositoryId: string; viewerUserId: string }) =>\n this.sessionsRows.filter(\n row =>\n row.projectRepositoryId === projectRepositoryId &&\n (row.visibility !== 'private' || row.userId === viewerUserId),\n ),\n listByProjectRepository: async ({ projectRepositoryId }: { projectRepositoryId: string }) =>\n this.sessionsRows.filter(row => row.projectRepositoryId === projectRepositoryId),\n listByProject: async ({\n orgId,\n factoryProjectId,\n viewerUserId,\n }: {\n orgId: string;\n factoryProjectId: string;\n viewerUserId: string;\n }) => {\n const connectionIds = new Set(\n this.connectionsRows.filter(row => row.factoryProjectId === factoryProjectId).map(row => row.id),\n );\n const linkIds = new Set(\n this.projectRepositoriesRows.filter(row => connectionIds.has(row.connectionId)).map(row => row.id),\n );\n return this.sessionsRows.filter(\n row =>\n row.factoryProjectId === factoryProjectId &&\n row.orgId === orgId &&\n row.projectRepositoryId !== null &&\n linkIds.has(row.projectRepositoryId) &&\n (row.visibility !== 'private' || row.userId === viewerUserId),\n );\n },\n getBySessionId: async (sessionId: string): Promise<SourceControlSession | null> => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (!row) return null;\n // Mirrors base.ts: a session whose project-repository link is gone does not resolve.\n return this.projectRepositoriesRows.some(link => link.id === row.projectRepositoryId) ? row : null;\n },\n listByOrigin: async ({ orgId, originSessionId }: { orgId: string; originSessionId: string }) =>\n this.sessionsRows.filter(\n row =>\n row.orgId === orgId &&\n row.originSessionId === originSessionId &&\n // Mirrors base.ts: only sessions on this integration's links resolve.\n this.projectRepositoriesRows.some(link => link.id === row.projectRepositoryId),\n ),\n rename: async ({ sessionId, title }: { sessionId: string; title: string }): Promise<void> => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (row) {\n row.title = title;\n row.updatedAt = new Date();\n }\n },\n setOriginMuted: async ({ sessionId, muted }: { sessionId: string; muted: boolean }): Promise<void> => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (row) {\n row.originMutedAt = muted ? new Date() : null;\n row.updatedAt = new Date();\n }\n },\n setVisibility: async ({\n sessionId,\n visibility,\n expectedUserId,\n }: {\n sessionId: string;\n visibility: SourceControlSessionVisibility;\n expectedUserId: string;\n }): Promise<SourceControlSession | null> => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (!row || row.userId !== expectedUserId) return null;\n row.visibility = visibility;\n row.updatedAt = new Date();\n return row;\n },\n getForBranch: async (args: SessionBranchKey): Promise<SourceControlSession | null> =>\n this.sessionsRows.find(\n row =>\n ('factoryProjectId' in args\n ? row.factoryProjectId === args.factoryProjectId &&\n // Mirrors base.ts: only sessions on this integration's links resolve.\n this.projectRepositoriesRows.some(link => link.id === row.projectRepositoryId)\n : row.projectRepositoryId === args.projectRepositoryId) &&\n row.userId === args.userId &&\n row.branch === args.branch,\n ) ?? null,\n create: async (input: CreateSourceControlSessionInput): Promise<SourceControlSession> => {\n const link = this.projectRepositoriesRows.find(row => row.id === input.projectRepositoryId);\n const connection = link && this.connectionsRows.find(row => row.id === link.connectionId);\n if (!connection) throw new Error('Project repository not found for this integration.');\n if (input.factoryProjectId !== undefined && input.factoryProjectId !== connection.factoryProjectId) {\n throw new Error('Session factory does not match the repository link.');\n }\n const factoryProjectId = connection.factoryProjectId;\n // Mirrors base.ts: reuse is keyed by the link; another link's branch is a unique violation below.\n const existing = await this.sessions.getForBranch({\n projectRepositoryId: input.projectRepositoryId,\n userId: input.userId,\n branch: input.branch,\n });\n if (existing) return existing;\n // Both checks stay synchronous with the push below so concurrent creates see each other, as a unique index would.\n if (this.sessionsRows.some(row => row.sessionId === input.sessionId)) {\n throw new UniqueViolationError('Source-control session ID already exists');\n }\n if (\n this.sessionsRows.some(\n row =>\n row.factoryProjectId === factoryProjectId && row.userId === input.userId && row.branch === input.branch,\n )\n ) {\n throw new UniqueViolationError('Source-control session branch already exists in this factory');\n }\n const now = new Date();\n const { origin, ...fields } = input;\n const session: SourceControlSession = {\n id: globalThis.crypto.randomUUID(),\n ...fields,\n factoryProjectId,\n title: input.title ?? null,\n visibility: input.visibility ?? 'org',\n originSessionId: origin?.sessionId ?? null,\n originThreadId: origin?.threadId ?? null,\n originMutedAt: null,\n sandboxId: null,\n sandboxWorkdir: null,\n materializedAt: null,\n firstMessageAt: null,\n firstMeaningfulExecAt: null,\n createdAt: now,\n updatedAt: now,\n };\n this.sessionsRows.push(session);\n return session;\n },\n transferOwner: async ({\n sessionId,\n expectedUserId,\n toUserId,\n }: {\n sessionId: string;\n expectedUserId: string;\n toUserId: string;\n }) => {\n const index = this.sessionsRows.findIndex(row => row.sessionId === sessionId);\n const session = this.sessionsRows[index] ?? null;\n if (!session || session.userId !== expectedUserId || session.visibility === 'private') {\n return { status: 'conflict' as const, reason: 'stale_owner' as const, session };\n }\n if (session.userId === toUserId) return { status: 'updated' as const, session };\n // Mirrors base.ts: the branch is unique per repository link and per Factory.\n const branchOwned = this.sessionsRows.some(\n row =>\n row.id !== session.id &&\n row.userId === toUserId &&\n row.branch === session.branch &&\n (row.projectRepositoryId === session.projectRepositoryId ||\n (session.factoryProjectId !== null && row.factoryProjectId === session.factoryProjectId)),\n );\n if (branchOwned) return { status: 'conflict' as const, reason: 'branch_owned' as const, session };\n // A new row, so a caller holding the old one keeps its pre-transfer snapshot like base.ts.\n const updated = { ...session, userId: toUserId, updatedAt: new Date() };\n this.sessionsRows[index] = updated;\n return { status: 'updated' as const, session: updated };\n },\n setSandbox: async ({\n id,\n sandboxId,\n sandboxWorkdir,\n }: {\n id: string;\n sandboxId: string | null;\n sandboxWorkdir: string;\n }) => {\n const row = this.sessionsRows.find(candidate => candidate.id === id);\n if (row) Object.assign(row, { sandboxId, sandboxWorkdir, updatedAt: new Date() });\n },\n markMaterialized: async ({ id }: { id: string }) => {\n const row = this.sessionsRows.find(candidate => candidate.id === id);\n if (row && row.materializedAt === null) Object.assign(row, { materializedAt: new Date(), updatedAt: new Date() });\n },\n markFirstMessage: async ({ sessionId }: { sessionId: string }) => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (row && row.firstMessageAt === null) Object.assign(row, { firstMessageAt: new Date(), updatedAt: new Date() });\n },\n markFirstMeaningfulExec: async ({ sessionId }: { sessionId: string }) => {\n const row = this.sessionsRows.find(candidate => candidate.sessionId === sessionId);\n if (row && row.firstMeaningfulExecAt === null) {\n Object.assign(row, { firstMeaningfulExecAt: new Date(), updatedAt: new Date() });\n }\n },\n delete: async (id: string) => {\n const row = this.sessionsRows.find(candidate => candidate.id === id);\n if (row) {\n this.sessionRepositoriesRows = this.sessionRepositoriesRows.filter(r => r.sessionId !== row.sessionId);\n }\n this.sessionsRows.splice(0, this.sessionsRows.length, ...this.sessionsRows.filter(row => row.id !== id));\n },\n };\n\n readonly sessionRepositories = {\n upsert: async (input: UpsertSessionRepositoryInput): Promise<SourceControlSessionRepository> => {\n const now = new Date();\n const existing = this.sessionRepositoriesRows.find(\n row => row.sessionId === input.sessionId && row.projectRepositoryId === input.projectRepositoryId,\n );\n if (existing) {\n if (input.branch !== undefined) {\n existing.branch = input.branch;\n existing.pushedAt = input.pushedAt ?? now;\n } else if (input.pushedAt) {\n existing.pushedAt = input.pushedAt;\n }\n if (input.changeRequestId !== undefined) existing.changeRequestId = input.changeRequestId;\n if (input.changeRequestUrl !== undefined) existing.changeRequestUrl = input.changeRequestUrl;\n existing.updatedAt = now;\n return existing;\n }\n const branch = input.branch ?? input.fallbackBranch;\n if (!branch) throw new Error('A session repository row needs a branch when it is first recorded.');\n const created: SourceControlSessionRepository = {\n id: globalThis.crypto.randomUUID(),\n sessionId: input.sessionId,\n projectRepositoryId: input.projectRepositoryId,\n branch,\n changeRequestId: input.changeRequestId ?? null,\n changeRequestUrl: input.changeRequestUrl ?? null,\n pushedAt: input.pushedAt ?? now,\n updatedAt: now,\n createdAt: now,\n };\n this.sessionRepositoriesRows.push(created);\n return created;\n },\n listBySession: async ({ sessionId }: { sessionId: string }): Promise<SourceControlSessionRepository[]> =>\n this.sessionRepositoriesRows.filter(row => row.sessionId === sessionId),\n };\n}\n"],"mappings":";;;AA0BA,IAAa,+BAAb,MAAgF;CAC9E;CACA,oBAAiD,CAAC;CAClD,mBAA8C,CAAC;CAC/C,kBAAoD,CAAC;CACrD,0BAA+C,CAAC;CAChD,eAAuC,CAAC;CACxC,0BAA4D,CAAC;CAE7D,YAAY,gBAAgB,UAAU;EACpC,KAAK,gBAAgB;CACvB;CAEA,gBAAyB;EACvB,MAAM,OAAO,EAAE,YACb,KAAK,kBAAkB,QAAO,QAAO,IAAI,UAAU,KAAK;EAC1D,KAAK,OAAO,EAAE,OAAO,SACnB,KAAK,kBAAkB,MAAK,QAAO,IAAI,UAAU,SAAS,IAAI,OAAO,EAAE,KAAK;EAC9E,kBAAkB,OAAO,EACvB,OACA,iBAKA,KAAK,kBAAkB,MAAK,QAAO,IAAI,UAAU,SAAS,IAAI,eAAe,UAAU,K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,QAAQ,GAAG,KAAK,aAAa,QAAO,QAAO,IAAI,OAAO,EAAE,CAAC;EACzG;CACF;CAEA,sBAA+B;EAC7B,QAAQ,OAAO,UAAiF;GAC9F,MAAM,sBAAM,IAAI,KAAK;GACrB,MAAM,WAAW,KAAK,wBAAwB,MAC5C,QAAO,IAAI,cAAc,MAAM,aAAa,IAAI,wBAAwB,MAAM,mBAChF;GACA,IAAI,UAAU;IACZ,IAAI,MAAM,WAAW,KAAA,GAAW;KAC9B,SAAS,SAAS,MAAM;KACxB,SAAS,WAAW,MAAM,YAAY;IACxC,OAAO,IAAI,MAAM,UACf,SAAS,WAAW,MAAM;IAE5B,IAAI,MAAM,oBAAoB,KAAA,GAAW,SAAS,kBAAkB,MAAM;IAC1E,IAAI,MAAM,qBAAqB,KAAA,GAAW,SAAS,mBAAmB,MAAM;IAC5E,SAAS,YAAY;IACrB,OAAO;GACT;GACA,MAAM,SAAS,MAAM,UAAU,MAAM;GACrC,IAAI,CAAC,QAAQ,MAAM,IAAI,MAAM,oEAAoE;GACjG,MAAM,UAA0C;IAC9C,IAAI,WAAW,OAAO,WAAW;IACjC,WAAW,MAAM;IACjB,qBAAqB,MAAM;IAC3B;IACA,iBAAiB,MAAM,mBAAmB;IAC1C,kBAAkB,MAAM,oBAAoB;IAC5C,UAAU,MAAM,YAAY;IAC5B,WAAW;IACX,WAAW;GACb;GACA,KAAK,wBAAwB,KAAK,OAAO;GACzC,OAAO;EACT;EACA,eAAe,OAAO,EAAE,gBACtB,KAAK,wBAAwB,QAAO,QAAO,IAAI,cAAc,SAAS;CAC1E;AACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FactoryStorageDomain } from '@mastra/core/storage';
|
|
2
|
+
import type { CollectionSchema } from '@mastra/core/storage';
|
|
3
|
+
export interface VoiceSettingsRecord {
|
|
4
|
+
orgId: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
provider: string;
|
|
7
|
+
model: string;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
}
|
|
10
|
+
export declare const VOICE_SETTINGS_SCHEMA: CollectionSchema;
|
|
11
|
+
export declare class VoiceSettingsStorage extends FactoryStorageDomain {
|
|
12
|
+
#private;
|
|
13
|
+
constructor();
|
|
14
|
+
init(): Promise<void>;
|
|
15
|
+
dangerouslyClearAll(): Promise<void>;
|
|
16
|
+
get({ orgId, userId }: {
|
|
17
|
+
orgId: string;
|
|
18
|
+
userId: string;
|
|
19
|
+
}): Promise<VoiceSettingsRecord | null>;
|
|
20
|
+
set({ orgId, userId, provider, model, }: {
|
|
21
|
+
orgId: string;
|
|
22
|
+
userId: string;
|
|
23
|
+
provider: string;
|
|
24
|
+
model: string;
|
|
25
|
+
}): Promise<VoiceSettingsRecord>;
|
|
26
|
+
clear({ orgId, userId }: {
|
|
27
|
+
orgId: string;
|
|
28
|
+
userId: string;
|
|
29
|
+
}): Promise<boolean>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/voice-settings/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAwB,MAAM,sBAAsB,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAqB,MAAM,sBAAsB,CAAC;AAEhF,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,eAAO,MAAM,qBAAqB,EAAE,gBAWnC,CAAC;AAqBF,qBAAa,oBAAqB,SAAQ,oBAAoB;;IAC5D,cAEC;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1B;IAEK,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAEzC;IAMK,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAGnG;IAEK,GAAG,CAAC,EACR,KAAK,EACL,MAAM,EACN,QAAQ,EACR,KAAK,GACN,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAkB/B;IAEK,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAElF;CACF"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { FactoryStorageDomain, UniqueViolationError } from "@mastra/core/storage";
|
|
2
|
+
// src/storage/domains/voice-settings/base.ts
|
|
3
|
+
const VOICE_SETTINGS_SCHEMA = {
|
|
4
|
+
name: "voice_settings",
|
|
5
|
+
columns: {
|
|
6
|
+
id: { type: "uuid-pk" },
|
|
7
|
+
org_id: { type: "text" },
|
|
8
|
+
user_id: { type: "text" },
|
|
9
|
+
provider: { type: "text" },
|
|
10
|
+
model: { type: "text" },
|
|
11
|
+
updated_at: { type: "timestamp" }
|
|
12
|
+
},
|
|
13
|
+
uniqueIndexes: [{
|
|
14
|
+
name: "voice_settings_org_user_key",
|
|
15
|
+
columns: ["org_id", "user_id"]
|
|
16
|
+
}]
|
|
17
|
+
};
|
|
18
|
+
function toRecord(row) {
|
|
19
|
+
return {
|
|
20
|
+
orgId: row.org_id,
|
|
21
|
+
userId: row.user_id,
|
|
22
|
+
provider: row.provider,
|
|
23
|
+
model: row.model,
|
|
24
|
+
updatedAt: row.updated_at
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
var VoiceSettingsStorage = class extends FactoryStorageDomain {
|
|
28
|
+
constructor() {
|
|
29
|
+
super("voice-settings");
|
|
30
|
+
}
|
|
31
|
+
async init() {
|
|
32
|
+
await this.ensureCollections([VOICE_SETTINGS_SCHEMA]);
|
|
33
|
+
}
|
|
34
|
+
async dangerouslyClearAll() {
|
|
35
|
+
await this.ops.deleteMany("voice_settings", {});
|
|
36
|
+
}
|
|
37
|
+
get #db() {
|
|
38
|
+
return this.ops;
|
|
39
|
+
}
|
|
40
|
+
async get({ orgId, userId }) {
|
|
41
|
+
const row = await this.#db.findOne("voice_settings", {
|
|
42
|
+
org_id: orgId,
|
|
43
|
+
user_id: userId
|
|
44
|
+
});
|
|
45
|
+
return row ? toRecord(row) : null;
|
|
46
|
+
}
|
|
47
|
+
async set({ orgId, userId, provider, model }) {
|
|
48
|
+
const values = {
|
|
49
|
+
provider,
|
|
50
|
+
model,
|
|
51
|
+
updated_at: /* @__PURE__ */ new Date()
|
|
52
|
+
};
|
|
53
|
+
const updateExisting = () => this.#db.updateAtomic("voice_settings", {
|
|
54
|
+
org_id: orgId,
|
|
55
|
+
user_id: userId
|
|
56
|
+
}, () => values);
|
|
57
|
+
const updated = await updateExisting();
|
|
58
|
+
if (updated) return toRecord(updated);
|
|
59
|
+
try {
|
|
60
|
+
return toRecord(await this.#db.insertOne("voice_settings", {
|
|
61
|
+
org_id: orgId,
|
|
62
|
+
user_id: userId,
|
|
63
|
+
...values
|
|
64
|
+
}));
|
|
65
|
+
} catch (error) {
|
|
66
|
+
if (!(error instanceof UniqueViolationError)) throw error;
|
|
67
|
+
const row = await updateExisting();
|
|
68
|
+
if (!row) throw error;
|
|
69
|
+
return toRecord(row);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
async clear({ orgId, userId }) {
|
|
73
|
+
return await this.#db.deleteMany("voice_settings", {
|
|
74
|
+
org_id: orgId,
|
|
75
|
+
user_id: userId
|
|
76
|
+
}) > 0;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
export { VOICE_SETTINGS_SCHEMA, VoiceSettingsStorage };
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","names":[],"sources":["../../../../src/storage/domains/voice-settings/base.ts"],"sourcesContent":["import { FactoryStorageDomain, UniqueViolationError } from '@mastra/core/storage';\nimport type { CollectionSchema, FactoryStorageOps } from '@mastra/core/storage';\n\nexport interface VoiceSettingsRecord {\n orgId: string;\n userId: string;\n provider: string;\n model: string;\n updatedAt: Date;\n}\n\nexport const VOICE_SETTINGS_SCHEMA: CollectionSchema = {\n name: 'voice_settings',\n columns: {\n id: { type: 'uuid-pk' },\n org_id: { type: 'text' },\n user_id: { type: 'text' },\n provider: { type: 'text' },\n model: { type: 'text' },\n updated_at: { type: 'timestamp' },\n },\n uniqueIndexes: [{ name: 'voice_settings_org_user_key', columns: ['org_id', 'user_id'] }],\n};\n\ninterface VoiceSettingsDbRow extends Record<string, unknown> {\n id: string;\n org_id: string;\n user_id: string;\n provider: string;\n model: string;\n updated_at: Date;\n}\n\nfunction toRecord(row: VoiceSettingsDbRow): VoiceSettingsRecord {\n return {\n orgId: row.org_id,\n userId: row.user_id,\n provider: row.provider,\n model: row.model,\n updatedAt: row.updated_at,\n };\n}\n\nexport class VoiceSettingsStorage extends FactoryStorageDomain {\n constructor() {\n super('voice-settings');\n }\n\n async init(): Promise<void> {\n await this.ensureCollections([VOICE_SETTINGS_SCHEMA]);\n }\n\n async dangerouslyClearAll(): Promise<void> {\n await this.ops.deleteMany('voice_settings', {});\n }\n\n get #db(): FactoryStorageOps {\n return this.ops;\n }\n\n async get({ orgId, userId }: { orgId: string; userId: string }): Promise<VoiceSettingsRecord | null> {\n const row = await this.#db.findOne<VoiceSettingsDbRow>('voice_settings', { org_id: orgId, user_id: userId });\n return row ? toRecord(row) : null;\n }\n\n async set({\n orgId,\n userId,\n provider,\n model,\n }: {\n orgId: string;\n userId: string;\n provider: string;\n model: string;\n }): Promise<VoiceSettingsRecord> {\n const values = { provider, model, updated_at: new Date() };\n const updateExisting = () =>\n this.#db.updateAtomic<VoiceSettingsDbRow>('voice_settings', { org_id: orgId, user_id: userId }, () => values);\n\n const updated = await updateExisting();\n if (updated) return toRecord(updated);\n\n try {\n return toRecord(\n await this.#db.insertOne<VoiceSettingsDbRow>('voice_settings', { org_id: orgId, user_id: userId, ...values }),\n );\n } catch (error) {\n if (!(error instanceof UniqueViolationError)) throw error;\n const row = await updateExisting();\n if (!row) throw error;\n return toRecord(row);\n }\n }\n\n async clear({ orgId, userId }: { orgId: string; userId: string }): Promise<boolean> {\n return (await this.#db.deleteMany('voice_settings', { org_id: orgId, user_id: userId })) > 0;\n }\n}\n"],"mappings":";;AAWA,MAAa,wBAA0C;CACrD,MAAM;CACN,SAAS;EACP,IAAI,EAAE,MAAM,UAAU;EACtB,QAAQ,EAAE,MAAM,OAAO;EACvB,SAAS,EAAE,MAAM,OAAO;EACxB,UAAU,EAAE,MAAM,OAAO;EACzB,OAAO,EAAE,MAAM,OAAO;EACtB,YAAY,EAAE,MAAM,YAAY;CAClC;CACA,eAAe,CAAC;EAAE,MAAM;EAA+B,SAAS,CAAC,UAAU,SAAS;CAAE,CAAC;AACzF;AAWA,SAAS,SAAS,KAA8C;CAC9D,OAAO;EACL,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,UAAU,IAAI;EACd,OAAO,IAAI;EACX,WAAW,IAAI;CACjB;AACF;AAEA,IAAa,uBAAb,cAA0C,qBAAqB;CAC7D,cAAc;EACZ,MAAM,gBAAgB;CACxB;CAEA,MAAM,OAAsB;EAC1B,MAAM,KAAK,kBAAkB,CAAC,qBAAqB,CAAC;CACtD;CAEA,MAAM,sBAAqC;EACzC,MAAM,KAAK,IAAI,WAAW,kBAAkB,CAAC,CAAC;CAChD;CAEA,IAAI,MAAyB;EAC3B,OAAO,KAAK;CACd;CAEA,MAAM,IAAI,EAAE,OAAO,UAAkF;EACnG,MAAM,MAAM,MAAM,KAAK,IAAI,QAA4B,kBAAkB;GAAE,QAAQ;GAAO,SAAS;EAAO,CAAC;EAC3G,OAAO,MAAM,SAAS,GAAG,IAAI;CAC/B;CAEA,MAAM,IAAI,EACR,OACA,QACA,UACA,SAM+B;EAC/B,MAAM,SAAS;GAAE;GAAU;GAAO,4BAAY,IAAI,KAAK;EAAE;EACzD,MAAM,uBACJ,KAAK,IAAI,aAAiC,kBAAkB;GAAE,QAAQ;GAAO,SAAS;EAAO,SAAS,MAAM;EAE9G,MAAM,UAAU,MAAM,eAAe;EACrC,IAAI,SAAS,OAAO,SAAS,OAAO;EAEpC,IAAI;GACF,OAAO,SACL,MAAM,KAAK,IAAI,UAA8B,kBAAkB;IAAE,QAAQ;IAAO,SAAS;IAAQ,GAAG;GAAO,CAAC,CAC9G;EACF,SAAS,OAAO;GACd,IAAI,EAAE,iBAAiB,uBAAuB,MAAM;GACpD,MAAM,MAAM,MAAM,eAAe;GACjC,IAAI,CAAC,KAAK,MAAM;GAChB,OAAO,SAAS,GAAG;EACrB;CACF;CAEA,MAAM,MAAM,EAAE,OAAO,UAA+D;EAClF,OAAQ,MAAM,KAAK,IAAI,WAAW,kBAAkB;GAAE,QAAQ;GAAO,SAAS;EAAO,CAAC,IAAK;CAC7F;AACF"}
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
import { FactoryStorageDomain } from '@mastra/core/storage';
|
|
11
11
|
import type { CollectionSchema, FactoryStorageOps } from '@mastra/core/storage';
|
|
12
12
|
import type { FactoryTriageType } from '../../../rules/types.js';
|
|
13
|
+
import type { WorkItemSplitReport } from '../../../work-items/split-migration.js';
|
|
14
|
+
import type { FactoryClaimableWorkScope } from './claimable-work.js';
|
|
13
15
|
import type { WorkItemRow as ProviderWorkItemRow, WorkItemDbRecord, WorkItemSourceDbRecord, WorkItemSourceRow } from './work-item-schema.js';
|
|
16
|
+
export type { FactoryClaimableWorkScope } from './claimable-work.js';
|
|
14
17
|
export type WorkItemStage = string;
|
|
15
18
|
export declare function factoryDecisionHash(decision: Record<string, unknown>): string;
|
|
16
19
|
export interface ExternalWorkItemSource {
|
|
@@ -535,6 +538,7 @@ type WorkItemSourceSyncPatch = Partial<Pick<WorkItemSourceRow, 'state' | 'labels
|
|
|
535
538
|
export declare class WorkItemsStorage extends FactoryStorageDomain {
|
|
536
539
|
#private;
|
|
537
540
|
get legacyMode(): boolean;
|
|
541
|
+
get legacyBackfillPending(): boolean;
|
|
538
542
|
constructor();
|
|
539
543
|
/**
|
|
540
544
|
* Wired once at boot. Every write below that changes what this project's
|
|
@@ -543,12 +547,45 @@ export declare class WorkItemsStorage extends FactoryStorageDomain {
|
|
|
543
547
|
*/
|
|
544
548
|
onAttentionChanged(listener: (scope: FactoryAttentionScope) => void): void;
|
|
545
549
|
/**
|
|
546
|
-
*
|
|
547
|
-
*
|
|
548
|
-
*
|
|
550
|
+
* Fires after any committed write leaves a pending start or deferred decision
|
|
551
|
+
* `pending` or `retry`, so an idle dispatcher can wake instead of polling.
|
|
552
|
+
* Listeners run after the write has committed, so a listener that throws is
|
|
553
|
+
* logged and skipped rather than failing the write or the other listeners.
|
|
554
|
+
* Returns a function that removes the listener.
|
|
549
555
|
*/
|
|
556
|
+
onClaimableWork(listener: (scope: FactoryClaimableWorkScope) => void): () => void;
|
|
557
|
+
/**
|
|
558
|
+
* When the next pending start or deferred decision becomes claimable: the earliest
|
|
559
|
+
* `available_at` of a queued row, or `lease_expires_at` of a leased one (a crashed
|
|
560
|
+
* dispatcher's lease is reclaimed once it lapses). `null` when nothing is queued or leased.
|
|
561
|
+
* May be in the past when work is already due.
|
|
562
|
+
*/
|
|
563
|
+
nextClaimableAt(): Promise<Date | null>;
|
|
564
|
+
/** Tells the stale-binding sweep which cards sit in a phase their installed board declares terminal. */
|
|
550
565
|
useTerminalPhasePredicate(isTerminal: (item: Card) => boolean): void;
|
|
551
566
|
init(): Promise<void>;
|
|
567
|
+
/**
|
|
568
|
+
* Copy the legacy cards `isTerminal` rejects, before Factory serves. Terminal cards are left
|
|
569
|
+
* to `backfillLegacyCards`. A no-op once the split finished.
|
|
570
|
+
*/
|
|
571
|
+
migrateOpenLegacyCards(isTerminal: (card: Card) => boolean | Promise<boolean>): Promise<WorkItemSplitReport | null>;
|
|
572
|
+
/**
|
|
573
|
+
* Copy every remaining legacy card, then record the newest legacy row seen before the pass
|
|
574
|
+
* began, so later boots skip rows up to it. Skipped cards are logged and count as done: they
|
|
575
|
+
* conflict with newer split state and a rescan would only skip them again.
|
|
576
|
+
*/
|
|
577
|
+
backfillLegacyCards({ signal }?: {
|
|
578
|
+
signal?: AbortSignal;
|
|
579
|
+
}): Promise<WorkItemSplitReport | null>;
|
|
580
|
+
/**
|
|
581
|
+
* Copy the legacy cards filed for these external records, so a lookup that matches on `list()`
|
|
582
|
+
* finds them. A no-op once the split finished.
|
|
583
|
+
*/
|
|
584
|
+
copyLegacyCards({ orgId, factoryProjectId, sources, }: {
|
|
585
|
+
orgId: string;
|
|
586
|
+
factoryProjectId: string;
|
|
587
|
+
sources: readonly ExternalWorkItemSource[];
|
|
588
|
+
}): Promise<void>;
|
|
552
589
|
/** Refresh source evidence without changing work identity or board concurrency tokens. */
|
|
553
590
|
syncWorkItemSource(params: {
|
|
554
591
|
orgId: string;
|
|
@@ -687,6 +724,11 @@ export declare class WorkItemsStorage extends FactoryStorageDomain {
|
|
|
687
724
|
completeDeferredDecision(identity: FactoryLeaseIdentity, now: Date): Promise<FactoryDeferredDecisionRecord | null>;
|
|
688
725
|
/** Settle a leased decision whose card moved on before it could act: nothing ran, and nothing needs a person. */
|
|
689
726
|
supersedeLeasedDecision(identity: FactoryLeaseIdentity, now: Date): Promise<FactoryDeferredDecisionRecord | null>;
|
|
727
|
+
/**
|
|
728
|
+
* Hand a leased decision back untouched until `availableAt`: it could not act yet and did
|
|
729
|
+
* nothing, so the claim is not an attempt and leaves no error behind.
|
|
730
|
+
*/
|
|
731
|
+
postponeDeferredDecision(identity: FactoryLeaseIdentity, availableAt: Date, now: Date): Promise<FactoryDeferredDecisionRecord | null>;
|
|
690
732
|
failDeferredDecision(input: FactoryDispatchFailureInput): Promise<FactoryDeferredDecisionRecord | null>;
|
|
691
733
|
/** Park a claimed effect for human approval; the dispatcher never claims `proposed` rows. */
|
|
692
734
|
proposeDeferredDecision(identity: FactoryLeaseIdentity, now: Date): Promise<FactoryDeferredDecisionRecord | null>;
|
|
@@ -723,7 +765,6 @@ export declare class WorkItemsStorage extends FactoryStorageDomain {
|
|
|
723
765
|
* left alone. Returns the cards moved; a second run finds none.
|
|
724
766
|
*/
|
|
725
767
|
returnHeldTriageCards(): Promise<Card[]>;
|
|
726
|
-
repairLegacyAttentionState(): Promise<void>;
|
|
727
768
|
/** Requeue the same idempotent terminal effect; non-failed or non-retryable decisions are never rerun. */
|
|
728
769
|
retryDeferredDecision(orgId: string, factoryProjectId: string, decisionId: string, now: Date): Promise<FactoryDeferredDecisionRecord | null>;
|
|
729
770
|
/** Resolve exact active agent authority; partial session matches never authorize. */
|
|
@@ -798,8 +839,8 @@ export declare class WorkItemsStorage extends FactoryStorageDomain {
|
|
|
798
839
|
sessionId: string;
|
|
799
840
|
resourceId: string;
|
|
800
841
|
}): Promise<number>;
|
|
801
|
-
/** List binding history, optionally narrowed to one work
|
|
802
|
-
listRunBindings(orgId: string, factoryProjectId: string, workItemId?: string): Promise<FactoryRunBindingRecord[]>;
|
|
842
|
+
/** List binding history, optionally narrowed to one or some work items. */
|
|
843
|
+
listRunBindings(orgId: string, factoryProjectId: string, workItemId?: string | string[]): Promise<FactoryRunBindingRecord[]>;
|
|
803
844
|
listPendingStarts(orgId: string, factoryProjectId: string): Promise<FactoryPendingStartRecord[]>;
|
|
804
845
|
claimPendingStarts(input: FactoryLeaseClaimInput): Promise<FactoryPendingStartRecord[]>;
|
|
805
846
|
renewPendingStartLease(identity: FactoryLeaseIdentity, leaseExpiresAt: Date): Promise<boolean>;
|
|
@@ -871,5 +912,4 @@ export declare class WorkItemsStorage extends FactoryStorageDomain {
|
|
|
871
912
|
expectedUpdatedAt?: Date;
|
|
872
913
|
}): Promise<Card | null>;
|
|
873
914
|
}
|
|
874
|
-
export {};
|
|
875
915
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/work-items/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,oBAAoB,EAAwB,MAAM,sBAAsB,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAmB,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGjG,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,yBAAyB,CAAC;AAgBjF,OAAO,KAAK,EACV,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAW/B,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAanC,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAE7E;AAaD,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,4FAA4F;AAC5F,eAAO,MAAM,gCAAgC,kCAAkC,CAAC;AAChF,eAAO,MAAM,uCAAuC,qCAAqC,CAAC;AAE1F,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,QAAQ,CAAC,EAAE,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nB;IAED,0DAA0D;IACpD,uBAAuB,CAAC,EAC5B,KAAK,EACL,UAAU,GACX,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAYlC;IAED,uEAAuE;IACjE,wBAAwB,CAAC,EAC7B,KAAK,EACL,gBAAgB,EAChB,SAAS,GACV,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,gBAAgB,EAAE,MAAM,CAAC;QACzB,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAYlC;IAEK,MAAM,CAAC,EACX,KAAK,EACL,EAAE,EACF,cAAqB,EACrB,gBAAgB,EAChB,iBAAiB,GAClB,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,oGAAoG;QACpG,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,yGAAyG;QACzG,iBAAiB,CAAC,EAAE,IAAI,CAAC;KAC1B,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAgCvB;CACF"}
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/work-items/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,oBAAoB,EAAwB,MAAM,sBAAsB,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAmB,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGjG,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,yBAAyB,CAAC;AASjF,OAAO,KAAK,EAAmB,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAenG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EACV,WAAW,IAAI,mBAAmB,EAClC,g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