jumbo-cli 2.0.1 → 2.0.3
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/LICENSE.txt +661 -661
- package/README.md +239 -239
- package/assets/claude-logo.svg +7 -7
- package/assets/codex-logo.svg +3 -3
- package/assets/cursor-logo.svg +31 -31
- package/assets/mistral-logo.svg +19 -19
- package/assets/skills/codify-jumbo-goal/SKILL.md +116 -116
- package/assets/skills/define-jumbo-goals/SKILL.md +193 -193
- package/assets/skills/refine-jumbo-goals/SKILL.md +156 -156
- package/assets/skills/reject-jumbo-goal/SKILL.md +58 -58
- package/assets/skills/review-jumbo-goal/SKILL.md +94 -94
- package/assets/skills/start-jumbo-goal/SKILL.md +86 -86
- package/assets/vscode-logo.svg +41 -41
- package/dist/domain/project/AgentFileReferenceContent.js +7 -7
- package/dist/domain/project/AgentsMdContent.js +74 -74
- package/dist/domain/project/CopilotInstructionsContent.js +38 -38
- package/dist/infrastructure/context/architecture/define/SqliteArchitectureDefinedProjector.js +5 -5
- package/dist/infrastructure/context/architecture/migrations/001-create-architecture-views.sql +16 -16
- package/dist/infrastructure/context/architecture/migrations/002-drop-dataflow-column.sql +4 -4
- package/dist/infrastructure/context/architecture/update/SqliteArchitectureUpdatedProjector.js +4 -4
- package/dist/infrastructure/context/audience-pains/add/SqliteAudiencePainAddedProjector.js +4 -4
- package/dist/infrastructure/context/audience-pains/migrations/001-create-audience-pain-views.sql +17 -17
- package/dist/infrastructure/context/audience-pains/update/SqliteAudiencePainUpdatedProjector.js +4 -4
- package/dist/infrastructure/context/audiences/add/SqliteAudienceAddedProjector.js +5 -5
- package/dist/infrastructure/context/audiences/migrations/001-create-audience-views.sql +17 -17
- package/dist/infrastructure/context/audiences/remove/SqliteAudienceRemovedProjector.js +6 -6
- package/dist/infrastructure/context/audiences/update/SqliteAudienceUpdatedProjector.js +4 -4
- package/dist/infrastructure/context/components/add/SqliteComponentAddedProjector.js +5 -5
- package/dist/infrastructure/context/components/deprecate/SqliteComponentDeprecatedProjector.js +7 -7
- package/dist/infrastructure/context/components/migrations/001-create-component-views.sql +21 -21
- package/dist/infrastructure/context/components/remove/SqliteComponentRemovedProjector.js +6 -6
- package/dist/infrastructure/context/components/rename/SqliteComponentRenamedProjector.js +4 -4
- package/dist/infrastructure/context/components/undeprecate/SqliteComponentUndeprecatedProjector.js +7 -7
- package/dist/infrastructure/context/components/update/SqliteComponentUpdatedProjector.js +4 -4
- package/dist/infrastructure/context/decisions/add/SqliteDecisionAddedProjector.js +6 -6
- package/dist/infrastructure/context/decisions/migrations/001-create-decision-views.sql +22 -22
- package/dist/infrastructure/context/decisions/restore/SqliteDecisionRestoredProjector.js +9 -9
- package/dist/infrastructure/context/decisions/reverse/SqliteDecisionReversedProjector.js +8 -8
- package/dist/infrastructure/context/decisions/supersede/SqliteDecisionSupersededProjector.js +7 -7
- package/dist/infrastructure/context/decisions/update/SqliteDecisionUpdatedProjector.js +10 -10
- package/dist/infrastructure/context/dependencies/add/SqliteDependencyAddedProjector.js +5 -5
- package/dist/infrastructure/context/dependencies/get/SqliteLegacyDependencyReader.js +5 -5
- package/dist/infrastructure/context/dependencies/migrations/001-create-dependency-views.sql +21 -21
- package/dist/infrastructure/context/dependencies/migrations/002-add-external-dependency-columns.sql +11 -11
- package/dist/infrastructure/context/dependencies/remove/SqliteDependencyRemovedProjector.js +8 -8
- package/dist/infrastructure/context/dependencies/update/SqliteDependencyUpdatedProjector.js +4 -4
- package/dist/infrastructure/context/goals/add/SqliteGoalAddedProjector.js +7 -7
- package/dist/infrastructure/context/goals/approve/SqliteGoalApprovedProjector.js +9 -9
- package/dist/infrastructure/context/goals/block/SqliteGoalBlockedProjector.js +7 -7
- package/dist/infrastructure/context/goals/close/SqliteGoalClosedProjector.js +9 -9
- package/dist/infrastructure/context/goals/codify/SqliteGoalCodifyingStartedProjector.js +9 -9
- package/dist/infrastructure/context/goals/commit/SqliteGoalCommittedProjector.js +9 -9
- package/dist/infrastructure/context/goals/complete/SqliteGoalCompletedProjector.js +9 -9
- package/dist/infrastructure/context/goals/migrate/SqliteGoalStatusMigratedProjector.js +7 -7
- package/dist/infrastructure/context/goals/migrations/001-create-goal-views.sql +20 -20
- package/dist/infrastructure/context/goals/migrations/002-add-embedded-context-columns.sql +11 -11
- package/dist/infrastructure/context/goals/migrations/003-add-next-goal-column.sql +4 -4
- package/dist/infrastructure/context/goals/migrations/004-add-claim-columns.sql +7 -7
- package/dist/infrastructure/context/goals/migrations/005-add-progress-column.sql +4 -4
- package/dist/infrastructure/context/goals/migrations/006-drop-boundaries-and-embedded-context-columns.sql +11 -11
- package/dist/infrastructure/context/goals/migrations/007-add-title-column.sql +2 -2
- package/dist/infrastructure/context/goals/migrations/008-add-prerequisite-goals-column.sql +1 -1
- package/dist/infrastructure/context/goals/migrations/009-add-review-issues-column.sql +1 -1
- package/dist/infrastructure/context/goals/pause/SqliteGoalPausedProjector.js +7 -7
- package/dist/infrastructure/context/goals/qualify/SqliteGoalQualifiedProjector.js +9 -9
- package/dist/infrastructure/context/goals/refine/SqliteGoalRefinedProjector.js +15 -15
- package/dist/infrastructure/context/goals/reject/SqliteGoalRejectedProjector.js +10 -10
- package/dist/infrastructure/context/goals/remove/SqliteGoalRemovedProjector.js +3 -3
- package/dist/infrastructure/context/goals/reset/SqliteGoalResetProjector.js +11 -11
- package/dist/infrastructure/context/goals/resume/SqliteGoalResumedProjector.js +10 -10
- package/dist/infrastructure/context/goals/review/SqliteGoalSubmittedForReviewProjector.js +9 -9
- package/dist/infrastructure/context/goals/start/SqliteGoalStartedProjector.js +9 -9
- package/dist/infrastructure/context/goals/submit/SqliteGoalSubmittedProjector.js +9 -9
- package/dist/infrastructure/context/goals/unblock/SqliteGoalUnblockedProjector.js +7 -7
- package/dist/infrastructure/context/goals/update/SqliteGoalUpdatedProjector.js +4 -4
- package/dist/infrastructure/context/goals/update-progress/SqliteGoalProgressUpdatedProjector.js +8 -8
- package/dist/infrastructure/context/guidelines/add/SqliteGuidelineAddedProjector.js +5 -5
- package/dist/infrastructure/context/guidelines/migrations/001-create-guideline-views.sql +22 -22
- package/dist/infrastructure/context/guidelines/remove/SqliteGuidelineRemovedProjector.js +8 -8
- package/dist/infrastructure/context/guidelines/update/SqliteGuidelineUpdatedProjector.js +4 -4
- package/dist/infrastructure/context/invariants/add/SqliteInvariantAddedProjector.js +5 -5
- package/dist/infrastructure/context/invariants/migrations/001-create-invariant-views.sql +16 -16
- package/dist/infrastructure/context/invariants/remove/SqliteInvariantRemovedProjector.js +2 -2
- package/dist/infrastructure/context/invariants/update/SqliteInvariantUpdatedProjector.js +9 -9
- package/dist/infrastructure/context/project/init/SqliteProjectInitializedProjector.js +5 -5
- package/dist/infrastructure/context/project/migrations/001-create-project-views.sql +13 -13
- package/dist/infrastructure/context/project/migrations/002-drop-boundaries-column.sql +4 -4
- package/dist/infrastructure/context/project/update/SqliteProjectUpdatedProjector.js +4 -4
- package/dist/infrastructure/context/relations/add/SqliteRelationAddedProjector.js +12 -12
- package/dist/infrastructure/context/relations/deactivate/SqliteRelationDeactivatedProjector.js +14 -14
- package/dist/infrastructure/context/relations/migrations/001-create-relation-views.sql +28 -28
- package/dist/infrastructure/context/relations/reactivate/SqliteRelationReactivatedProjector.js +14 -14
- package/dist/infrastructure/context/relations/remove/SqliteRelationRemovedProjector.js +14 -14
- package/dist/infrastructure/context/sessions/end/SqliteSessionEndedProjector.js +8 -8
- package/dist/infrastructure/context/sessions/migrations/001-create-session-views.sql +43 -43
- package/dist/infrastructure/context/sessions/migrations/002-add-goal-lifecycle-columns.sql +7 -7
- package/dist/infrastructure/context/sessions/migrations/003-remove-session-pause-status.sql +8 -8
- package/dist/infrastructure/context/sessions/migrations/004-drop-session-summary-views.sql +5 -5
- package/dist/infrastructure/context/sessions/start/SqliteSessionStartedProjector.js +5 -5
- package/dist/infrastructure/context/value-propositions/add/SqliteValuePropositionAddedProjector.js +5 -5
- package/dist/infrastructure/context/value-propositions/migrations/001-create-value-proposition-views.sql +19 -19
- package/dist/infrastructure/context/value-propositions/remove/SqliteValuePropositionRemovedProjector.js +2 -2
- package/dist/infrastructure/context/value-propositions/update/SqliteValuePropositionUpdatedProjector.js +4 -4
- package/dist/infrastructure/host/workers/migrations/001-create-workers.sql +12 -12
- package/dist/infrastructure/persistence/MigrationRunner.js +10 -10
- package/dist/infrastructure/settings/FsSettingsInitializer.js +25 -25
- package/dist/infrastructure/settings/FsSettingsReader.js +25 -25
- package/dist/infrastructure/telemetry/PostHogTelemetryClient.d.ts +1 -1
- package/dist/infrastructure/telemetry/PostHogTelemetryClient.d.ts.map +1 -1
- package/dist/infrastructure/telemetry/PostHogTelemetryClient.js +7 -1
- package/dist/infrastructure/telemetry/PostHogTelemetryClient.js.map +1 -1
- package/dist/infrastructure/telemetry/PostHogTelemetryConstants.d.ts +2 -2
- package/dist/infrastructure/telemetry/PostHogTelemetryConstants.d.ts.map +1 -1
- package/dist/infrastructure/telemetry/PostHogTelemetryConstants.js +2 -2
- package/dist/infrastructure/telemetry/PostHogTelemetryConstants.js.map +1 -1
- package/dist/presentation/cli/commands/project/init/project.init.d.ts.map +1 -1
- package/dist/presentation/cli/commands/project/init/project.init.js +4 -1
- package/dist/presentation/cli/commands/project/init/project.init.js.map +1 -1
- package/package.json +90 -89
- package/dist/application/context/goals/complete/CompleteGoalCommand.d.ts +0 -8
- package/dist/application/context/goals/complete/CompleteGoalCommand.d.ts.map +0 -1
- package/dist/application/context/goals/complete/CompleteGoalCommand.js +0 -3
- package/dist/application/context/goals/complete/CompleteGoalCommand.js.map +0 -1
- package/dist/application/context/goals/complete/CompleteGoalCommandHandler.d.ts +0 -27
- package/dist/application/context/goals/complete/CompleteGoalCommandHandler.d.ts.map +0 -1
- package/dist/application/context/goals/complete/CompleteGoalCommandHandler.js +0 -52
- package/dist/application/context/goals/complete/CompleteGoalCommandHandler.js.map +0 -1
- package/dist/application/context/goals/complete/CompleteGoalController.d.ts +0 -9
- package/dist/application/context/goals/complete/CompleteGoalController.d.ts.map +0 -1
- package/dist/application/context/goals/complete/CompleteGoalController.js +0 -13
- package/dist/application/context/goals/complete/CompleteGoalController.js.map +0 -1
- package/dist/application/context/goals/complete/CompleteGoalRequest.d.ts +0 -10
- package/dist/application/context/goals/complete/CompleteGoalRequest.d.ts.map +0 -1
- package/dist/application/context/goals/complete/CompleteGoalRequest.js +0 -3
- package/dist/application/context/goals/complete/CompleteGoalRequest.js.map +0 -1
- package/dist/application/context/goals/complete/CompleteGoalResponse.d.ts +0 -17
- package/dist/application/context/goals/complete/CompleteGoalResponse.d.ts.map +0 -1
- package/dist/application/context/goals/complete/CompleteGoalResponse.js +0 -3
- package/dist/application/context/goals/complete/CompleteGoalResponse.js.map +0 -1
- package/dist/application/context/goals/complete/ICompleteGoalGateway.d.ts +0 -6
- package/dist/application/context/goals/complete/ICompleteGoalGateway.d.ts.map +0 -1
- package/dist/application/context/goals/complete/ICompleteGoalGateway.js +0 -3
- package/dist/application/context/goals/complete/ICompleteGoalGateway.js.map +0 -1
- package/dist/application/context/goals/complete/LocalCompleteGoalGateway.d.ts +0 -16
- package/dist/application/context/goals/complete/LocalCompleteGoalGateway.d.ts.map +0 -1
- package/dist/application/context/goals/complete/LocalCompleteGoalGateway.js +0 -49
- package/dist/application/context/goals/complete/LocalCompleteGoalGateway.js.map +0 -1
- package/dist/application/context/project/init/IInitializationProtocol.d.ts +0 -44
- package/dist/application/context/project/init/IInitializationProtocol.d.ts.map +0 -1
- package/dist/application/context/project/init/IInitializationProtocol.js +0 -14
- package/dist/application/context/project/init/IInitializationProtocol.js.map +0 -1
- package/dist/application/context/project/init/InitializationProtocol.d.ts +0 -32
- package/dist/application/context/project/init/InitializationProtocol.d.ts.map +0 -1
- package/dist/application/context/project/init/InitializationProtocol.js +0 -51
- package/dist/application/context/project/init/InitializationProtocol.js.map +0 -1
- package/dist/application/context/relations/get/GetRelationsQueryHandler.d.ts +0 -14
- package/dist/application/context/relations/get/GetRelationsQueryHandler.d.ts.map +0 -1
- package/dist/application/context/relations/get/GetRelationsQueryHandler.js +0 -19
- package/dist/application/context/relations/get/GetRelationsQueryHandler.js.map +0 -1
- package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.d.ts +0 -27
- package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.d.ts.map +0 -1
- package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.js +0 -32
- package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.js.map +0 -1
- package/dist/application/maintenance/repair/IRepairMaintenanceGateway.d.ts +0 -6
- package/dist/application/maintenance/repair/IRepairMaintenanceGateway.d.ts.map +0 -1
- package/dist/application/maintenance/repair/IRepairMaintenanceGateway.js +0 -3
- package/dist/application/maintenance/repair/IRepairMaintenanceGateway.js.map +0 -1
- package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.d.ts +0 -16
- package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.d.ts.map +0 -1
- package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.js +0 -90
- package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.js.map +0 -1
- package/dist/application/maintenance/repair/RepairMaintenanceController.d.ts +0 -9
- package/dist/application/maintenance/repair/RepairMaintenanceController.d.ts.map +0 -1
- package/dist/application/maintenance/repair/RepairMaintenanceController.js +0 -13
- package/dist/application/maintenance/repair/RepairMaintenanceController.js.map +0 -1
- package/dist/application/maintenance/repair/RepairMaintenanceRequest.d.ts +0 -6
- package/dist/application/maintenance/repair/RepairMaintenanceRequest.d.ts.map +0 -1
- package/dist/application/maintenance/repair/RepairMaintenanceRequest.js +0 -3
- package/dist/application/maintenance/repair/RepairMaintenanceRequest.js.map +0 -1
- package/dist/application/maintenance/repair/RepairMaintenanceResponse.d.ts +0 -9
- package/dist/application/maintenance/repair/RepairMaintenanceResponse.d.ts.map +0 -1
- package/dist/application/maintenance/repair/RepairMaintenanceResponse.js +0 -3
- package/dist/application/maintenance/repair/RepairMaintenanceResponse.js.map +0 -1
- package/dist/application/repair/IRepairGateway.d.ts +0 -6
- package/dist/application/repair/IRepairGateway.d.ts.map +0 -1
- package/dist/application/repair/IRepairGateway.js +0 -3
- package/dist/application/repair/IRepairGateway.js.map +0 -1
- package/dist/application/repair/LocalRepairGateway.d.ts +0 -16
- package/dist/application/repair/LocalRepairGateway.d.ts.map +0 -1
- package/dist/application/repair/LocalRepairGateway.js +0 -90
- package/dist/application/repair/LocalRepairGateway.js.map +0 -1
- package/dist/application/repair/RepairController.d.ts +0 -9
- package/dist/application/repair/RepairController.d.ts.map +0 -1
- package/dist/application/repair/RepairController.js +0 -13
- package/dist/application/repair/RepairController.js.map +0 -1
- package/dist/application/repair/RepairRequest.d.ts +0 -6
- package/dist/application/repair/RepairRequest.d.ts.map +0 -1
- package/dist/application/repair/RepairRequest.js +0 -3
- package/dist/application/repair/RepairRequest.js.map +0 -1
- package/dist/application/repair/RepairResponse.d.ts +0 -9
- package/dist/application/repair/RepairResponse.d.ts.map +0 -1
- package/dist/application/repair/RepairResponse.js +0 -3
- package/dist/application/repair/RepairResponse.js.map +0 -1
- package/dist/domain/project/AgentInstructions.d.ts +0 -67
- package/dist/domain/project/AgentInstructions.d.ts.map +0 -1
- package/dist/domain/project/AgentInstructions.js +0 -261
- package/dist/domain/project/AgentInstructions.js.map +0 -1
- package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.d.ts +0 -33
- package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.d.ts.map +0 -1
- package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.js +0 -66
- package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.js.map +0 -1
- package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.d.ts +0 -10
- package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.d.ts.map +0 -1
- package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.js +0 -36
- package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.js.map +0 -1
- package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.d.ts +0 -10
- package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.d.ts.map +0 -1
- package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.js +0 -14
- package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.js.map +0 -1
- package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.d.ts +0 -10
- package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.d.ts.map +0 -1
- package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.js +0 -18
- package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.js.map +0 -1
- package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.d.ts +0 -10
- package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.d.ts.map +0 -1
- package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.js +0 -14
- package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.js.map +0 -1
- package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.d.ts +0 -29
- package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.d.ts.map +0 -1
- package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.js +0 -105
- package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.js.map +0 -1
- package/dist/presentation/cli/commands/goals/complete/goal.complete.d.ts +0 -20
- package/dist/presentation/cli/commands/goals/complete/goal.complete.d.ts.map +0 -1
- package/dist/presentation/cli/commands/goals/complete/goal.complete.js +0 -58
- package/dist/presentation/cli/commands/goals/complete/goal.complete.js.map +0 -1
- package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.d.ts +0 -26
- package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.d.ts.map +0 -1
- package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.js +0 -68
- package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.js.map +0 -1
- package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.d.ts +0 -14
- package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.d.ts.map +0 -1
- package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.js +0 -61
- package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.js.map +0 -1
- package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.d.ts +0 -23
- package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.d.ts.map +0 -1
- package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.js +0 -59
- package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.js.map +0 -1
- package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.d.ts +0 -24
- package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.d.ts.map +0 -1
- package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.js +0 -49
- package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.js.map +0 -1
- package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.d.ts +0 -27
- package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.d.ts.map +0 -1
- package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.js +0 -85
- package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.js.map +0 -1
- package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.d.ts +0 -16
- package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.d.ts.map +0 -1
- package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.js +0 -40
- package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.js.map +0 -1
- package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.d.ts +0 -26
- package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.d.ts.map +0 -1
- package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.js +0 -64
- package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.js.map +0 -1
- package/dist/presentation/cli/commands/repair/RepairOutputBuilder.d.ts +0 -24
- package/dist/presentation/cli/commands/repair/RepairOutputBuilder.d.ts.map +0 -1
- package/dist/presentation/cli/commands/repair/RepairOutputBuilder.js +0 -50
- package/dist/presentation/cli/commands/repair/RepairOutputBuilder.js.map +0 -1
- package/dist/presentation/cli/commands/repair/repair.d.ts +0 -31
- package/dist/presentation/cli/commands/repair/repair.d.ts.map +0 -1
- package/dist/presentation/cli/commands/repair/repair.js +0 -88
- package/dist/presentation/cli/commands/repair/repair.js.map +0 -1
|
@@ -12,15 +12,15 @@ class SqliteGoalApprovedProjector {
|
|
|
12
12
|
this.db = db;
|
|
13
13
|
}
|
|
14
14
|
async applyGoalApproved(event) {
|
|
15
|
-
const stmt = this.db.prepare(`
|
|
16
|
-
UPDATE goal_views
|
|
17
|
-
SET status = ?,
|
|
18
|
-
claimedBy = NULL,
|
|
19
|
-
claimedAt = NULL,
|
|
20
|
-
claimExpiresAt = NULL,
|
|
21
|
-
version = ?,
|
|
22
|
-
updatedAt = ?
|
|
23
|
-
WHERE goalId = ?
|
|
15
|
+
const stmt = this.db.prepare(`
|
|
16
|
+
UPDATE goal_views
|
|
17
|
+
SET status = ?,
|
|
18
|
+
claimedBy = NULL,
|
|
19
|
+
claimedAt = NULL,
|
|
20
|
+
claimExpiresAt = NULL,
|
|
21
|
+
version = ?,
|
|
22
|
+
updatedAt = ?
|
|
23
|
+
WHERE goalId = ?
|
|
24
24
|
`);
|
|
25
25
|
stmt.run(event.payload.status, event.version, event.timestamp, event.aggregateId);
|
|
26
26
|
}
|
|
@@ -12,13 +12,13 @@ class SqliteGoalBlockedProjector {
|
|
|
12
12
|
this.db = db;
|
|
13
13
|
}
|
|
14
14
|
async applyGoalBlocked(event) {
|
|
15
|
-
const stmt = this.db.prepare(`
|
|
16
|
-
UPDATE goal_views
|
|
17
|
-
SET status = ?,
|
|
18
|
-
note = ?,
|
|
19
|
-
version = ?,
|
|
20
|
-
updatedAt = ?
|
|
21
|
-
WHERE goalId = ?
|
|
15
|
+
const stmt = this.db.prepare(`
|
|
16
|
+
UPDATE goal_views
|
|
17
|
+
SET status = ?,
|
|
18
|
+
note = ?,
|
|
19
|
+
version = ?,
|
|
20
|
+
updatedAt = ?
|
|
21
|
+
WHERE goalId = ?
|
|
22
22
|
`);
|
|
23
23
|
stmt.run(event.payload.status, event.payload.note, event.version, event.timestamp, event.aggregateId);
|
|
24
24
|
}
|
|
@@ -15,15 +15,15 @@ class SqliteGoalClosedProjector {
|
|
|
15
15
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
16
16
|
}
|
|
17
17
|
async applyGoalClosed(event) {
|
|
18
|
-
const stmt = this.db.prepare(`
|
|
19
|
-
UPDATE goal_views
|
|
20
|
-
SET status = ?,
|
|
21
|
-
claimedBy = NULL,
|
|
22
|
-
claimedAt = NULL,
|
|
23
|
-
claimExpiresAt = NULL,
|
|
24
|
-
version = ?,
|
|
25
|
-
updatedAt = ?
|
|
26
|
-
WHERE goalId = ?
|
|
18
|
+
const stmt = this.db.prepare(`
|
|
19
|
+
UPDATE goal_views
|
|
20
|
+
SET status = ?,
|
|
21
|
+
claimedBy = NULL,
|
|
22
|
+
claimedAt = NULL,
|
|
23
|
+
claimExpiresAt = NULL,
|
|
24
|
+
version = ?,
|
|
25
|
+
updatedAt = ?
|
|
26
|
+
WHERE goalId = ?
|
|
27
27
|
`);
|
|
28
28
|
stmt.run(event.payload.status, event.version, event.timestamp, event.aggregateId);
|
|
29
29
|
}
|
|
@@ -15,15 +15,15 @@ class SqliteGoalCodifyingStartedProjector {
|
|
|
15
15
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
16
16
|
}
|
|
17
17
|
async applyGoalCodifyingStarted(event) {
|
|
18
|
-
const stmt = this.db.prepare(`
|
|
19
|
-
UPDATE goal_views
|
|
20
|
-
SET status = ?,
|
|
21
|
-
claimedBy = ?,
|
|
22
|
-
claimedAt = ?,
|
|
23
|
-
claimExpiresAt = ?,
|
|
24
|
-
version = ?,
|
|
25
|
-
updatedAt = ?
|
|
26
|
-
WHERE goalId = ?
|
|
18
|
+
const stmt = this.db.prepare(`
|
|
19
|
+
UPDATE goal_views
|
|
20
|
+
SET status = ?,
|
|
21
|
+
claimedBy = ?,
|
|
22
|
+
claimedAt = ?,
|
|
23
|
+
claimExpiresAt = ?,
|
|
24
|
+
version = ?,
|
|
25
|
+
updatedAt = ?
|
|
26
|
+
WHERE goalId = ?
|
|
27
27
|
`);
|
|
28
28
|
stmt.run(event.payload.status, event.payload.claimedBy || null, event.payload.claimedAt || null, event.payload.claimExpiresAt || null, event.version, event.timestamp, event.aggregateId);
|
|
29
29
|
}
|
|
@@ -15,15 +15,15 @@ class SqliteGoalCommittedProjector {
|
|
|
15
15
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
16
16
|
}
|
|
17
17
|
async applyGoalCommitted(event) {
|
|
18
|
-
const stmt = this.db.prepare(`
|
|
19
|
-
UPDATE goal_views
|
|
20
|
-
SET status = ?,
|
|
21
|
-
claimedBy = NULL,
|
|
22
|
-
claimedAt = NULL,
|
|
23
|
-
claimExpiresAt = NULL,
|
|
24
|
-
version = ?,
|
|
25
|
-
updatedAt = ?
|
|
26
|
-
WHERE goalId = ?
|
|
18
|
+
const stmt = this.db.prepare(`
|
|
19
|
+
UPDATE goal_views
|
|
20
|
+
SET status = ?,
|
|
21
|
+
claimedBy = NULL,
|
|
22
|
+
claimedAt = NULL,
|
|
23
|
+
claimExpiresAt = NULL,
|
|
24
|
+
version = ?,
|
|
25
|
+
updatedAt = ?
|
|
26
|
+
WHERE goalId = ?
|
|
27
27
|
`);
|
|
28
28
|
stmt.run(event.payload.status, event.version, event.timestamp, event.aggregateId);
|
|
29
29
|
}
|
|
@@ -14,15 +14,15 @@ class SqliteGoalCompletedProjector {
|
|
|
14
14
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
15
15
|
}
|
|
16
16
|
async applyGoalCompleted(event) {
|
|
17
|
-
const stmt = this.db.prepare(`
|
|
18
|
-
UPDATE goal_views
|
|
19
|
-
SET status = ?,
|
|
20
|
-
claimedBy = NULL,
|
|
21
|
-
claimedAt = NULL,
|
|
22
|
-
claimExpiresAt = NULL,
|
|
23
|
-
version = ?,
|
|
24
|
-
updatedAt = ?
|
|
25
|
-
WHERE goalId = ?
|
|
17
|
+
const stmt = this.db.prepare(`
|
|
18
|
+
UPDATE goal_views
|
|
19
|
+
SET status = ?,
|
|
20
|
+
claimedBy = NULL,
|
|
21
|
+
claimedAt = NULL,
|
|
22
|
+
claimExpiresAt = NULL,
|
|
23
|
+
version = ?,
|
|
24
|
+
updatedAt = ?
|
|
25
|
+
WHERE goalId = ?
|
|
26
26
|
`);
|
|
27
27
|
stmt.run(event.payload.status, event.version, event.timestamp, event.aggregateId);
|
|
28
28
|
}
|
|
@@ -12,13 +12,13 @@ class SqliteGoalStatusMigratedProjector {
|
|
|
12
12
|
this.db = db;
|
|
13
13
|
}
|
|
14
14
|
async applyGoalStatusMigrated(event) {
|
|
15
|
-
const stmt = this.db.prepare(`
|
|
16
|
-
UPDATE goal_views
|
|
17
|
-
SET status = ?,
|
|
18
|
-
version = ?,
|
|
19
|
-
updatedAt = ?
|
|
20
|
-
WHERE goalId = ?
|
|
21
|
-
AND status = ?
|
|
15
|
+
const stmt = this.db.prepare(`
|
|
16
|
+
UPDATE goal_views
|
|
17
|
+
SET status = ?,
|
|
18
|
+
version = ?,
|
|
19
|
+
updatedAt = ?
|
|
20
|
+
WHERE goalId = ?
|
|
21
|
+
AND status = ?
|
|
22
22
|
`);
|
|
23
23
|
stmt.run(event.payload.status, event.version, event.timestamp, event.aggregateId, event.payload.fromStatus);
|
|
24
24
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
-- Goal views table for materialized projections
|
|
2
|
-
-- Namespace: work/goals
|
|
3
|
-
|
|
4
|
-
CREATE TABLE IF NOT EXISTS goal_views (
|
|
5
|
-
goalId TEXT PRIMARY KEY,
|
|
6
|
-
objective TEXT NOT NULL,
|
|
7
|
-
successCriteria TEXT NOT NULL, -- JSON array
|
|
8
|
-
scopeIn TEXT NOT NULL, -- JSON array
|
|
9
|
-
scopeOut TEXT NOT NULL, -- JSON array
|
|
10
|
-
boundaries TEXT NOT NULL, -- JSON array
|
|
11
|
-
status TEXT NOT NULL,
|
|
12
|
-
note TEXT, -- Optional note for status changes
|
|
13
|
-
version INTEGER NOT NULL,
|
|
14
|
-
createdAt TEXT NOT NULL,
|
|
15
|
-
updatedAt TEXT NOT NULL
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
-- Indexes for common queries
|
|
19
|
-
CREATE INDEX IF NOT EXISTS idx_goal_status ON goal_views(status);
|
|
20
|
-
CREATE INDEX IF NOT EXISTS idx_goal_created ON goal_views(createdAt);
|
|
1
|
+
-- Goal views table for materialized projections
|
|
2
|
+
-- Namespace: work/goals
|
|
3
|
+
|
|
4
|
+
CREATE TABLE IF NOT EXISTS goal_views (
|
|
5
|
+
goalId TEXT PRIMARY KEY,
|
|
6
|
+
objective TEXT NOT NULL,
|
|
7
|
+
successCriteria TEXT NOT NULL, -- JSON array
|
|
8
|
+
scopeIn TEXT NOT NULL, -- JSON array
|
|
9
|
+
scopeOut TEXT NOT NULL, -- JSON array
|
|
10
|
+
boundaries TEXT NOT NULL, -- JSON array
|
|
11
|
+
status TEXT NOT NULL,
|
|
12
|
+
note TEXT, -- Optional note for status changes
|
|
13
|
+
version INTEGER NOT NULL,
|
|
14
|
+
createdAt TEXT NOT NULL,
|
|
15
|
+
updatedAt TEXT NOT NULL
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
-- Indexes for common queries
|
|
19
|
+
CREATE INDEX IF NOT EXISTS idx_goal_status ON goal_views(status);
|
|
20
|
+
CREATE INDEX IF NOT EXISTS idx_goal_created ON goal_views(createdAt);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
-- Add embedded context columns to goal_views table
|
|
2
|
-
-- Namespace: work/goals
|
|
3
|
-
|
|
4
|
-
-- Embedded context fields (all stored as JSON, nullable for backward compatibility)
|
|
5
|
-
ALTER TABLE goal_views ADD COLUMN relevantInvariants TEXT; -- JSON array of EmbeddedInvariant
|
|
6
|
-
ALTER TABLE goal_views ADD COLUMN relevantGuidelines TEXT; -- JSON array of EmbeddedGuideline
|
|
7
|
-
ALTER TABLE goal_views ADD COLUMN relevantDependencies TEXT; -- JSON array of EmbeddedDependency
|
|
8
|
-
ALTER TABLE goal_views ADD COLUMN relevantComponents TEXT; -- JSON array of EmbeddedComponent
|
|
9
|
-
ALTER TABLE goal_views ADD COLUMN architecture TEXT; -- JSON object of EmbeddedArchitecture
|
|
10
|
-
ALTER TABLE goal_views ADD COLUMN filesToBeCreated TEXT; -- JSON array of strings
|
|
11
|
-
ALTER TABLE goal_views ADD COLUMN filesToBeChanged TEXT; -- JSON array of strings
|
|
1
|
+
-- Add embedded context columns to goal_views table
|
|
2
|
+
-- Namespace: work/goals
|
|
3
|
+
|
|
4
|
+
-- Embedded context fields (all stored as JSON, nullable for backward compatibility)
|
|
5
|
+
ALTER TABLE goal_views ADD COLUMN relevantInvariants TEXT; -- JSON array of EmbeddedInvariant
|
|
6
|
+
ALTER TABLE goal_views ADD COLUMN relevantGuidelines TEXT; -- JSON array of EmbeddedGuideline
|
|
7
|
+
ALTER TABLE goal_views ADD COLUMN relevantDependencies TEXT; -- JSON array of EmbeddedDependency
|
|
8
|
+
ALTER TABLE goal_views ADD COLUMN relevantComponents TEXT; -- JSON array of EmbeddedComponent
|
|
9
|
+
ALTER TABLE goal_views ADD COLUMN architecture TEXT; -- JSON object of EmbeddedArchitecture
|
|
10
|
+
ALTER TABLE goal_views ADD COLUMN filesToBeCreated TEXT; -- JSON array of strings
|
|
11
|
+
ALTER TABLE goal_views ADD COLUMN filesToBeChanged TEXT; -- JSON array of strings
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Add nextGoalId column to goal_views table for goal chaining
|
|
2
|
-
-- Namespace: work/goals
|
|
3
|
-
|
|
4
|
-
ALTER TABLE goal_views ADD COLUMN nextGoalId TEXT;
|
|
1
|
+
-- Add nextGoalId column to goal_views table for goal chaining
|
|
2
|
+
-- Namespace: work/goals
|
|
3
|
+
|
|
4
|
+
ALTER TABLE goal_views ADD COLUMN nextGoalId TEXT;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
-- Add claim columns to goal_views table
|
|
2
|
-
-- Namespace: work/goals
|
|
3
|
-
-- These columns track which worker has claimed a goal and when the claim expires
|
|
4
|
-
|
|
5
|
-
ALTER TABLE goal_views ADD COLUMN claimedBy TEXT; -- WorkerId of the claiming worker
|
|
6
|
-
ALTER TABLE goal_views ADD COLUMN claimedAt TEXT; -- ISO 8601 timestamp when claim was created
|
|
7
|
-
ALTER TABLE goal_views ADD COLUMN claimExpiresAt TEXT; -- ISO 8601 timestamp when claim expires
|
|
1
|
+
-- Add claim columns to goal_views table
|
|
2
|
+
-- Namespace: work/goals
|
|
3
|
+
-- These columns track which worker has claimed a goal and when the claim expires
|
|
4
|
+
|
|
5
|
+
ALTER TABLE goal_views ADD COLUMN claimedBy TEXT; -- WorkerId of the claiming worker
|
|
6
|
+
ALTER TABLE goal_views ADD COLUMN claimedAt TEXT; -- ISO 8601 timestamp when claim was created
|
|
7
|
+
ALTER TABLE goal_views ADD COLUMN claimExpiresAt TEXT; -- ISO 8601 timestamp when claim expires
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Add progress column to goal_views table for tracking completed sub-tasks
|
|
2
|
-
-- Namespace: work/goals
|
|
3
|
-
|
|
4
|
-
ALTER TABLE goal_views ADD COLUMN progress TEXT; -- JSON array of strings (task descriptions)
|
|
1
|
+
-- Add progress column to goal_views table for tracking completed sub-tasks
|
|
2
|
+
-- Namespace: work/goals
|
|
3
|
+
|
|
4
|
+
ALTER TABLE goal_views ADD COLUMN progress TEXT; -- JSON array of strings (task descriptions)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
-- Drop boundaries and embedded context columns from goal_views table
|
|
2
|
-
-- These fields are no longer part of the Goal read model after domain simplification
|
|
3
|
-
|
|
4
|
-
ALTER TABLE goal_views DROP COLUMN boundaries;
|
|
5
|
-
ALTER TABLE goal_views DROP COLUMN relevantInvariants;
|
|
6
|
-
ALTER TABLE goal_views DROP COLUMN relevantGuidelines;
|
|
7
|
-
ALTER TABLE goal_views DROP COLUMN relevantDependencies;
|
|
8
|
-
ALTER TABLE goal_views DROP COLUMN relevantComponents;
|
|
9
|
-
ALTER TABLE goal_views DROP COLUMN architecture;
|
|
10
|
-
ALTER TABLE goal_views DROP COLUMN filesToBeCreated;
|
|
11
|
-
ALTER TABLE goal_views DROP COLUMN filesToBeChanged;
|
|
1
|
+
-- Drop boundaries and embedded context columns from goal_views table
|
|
2
|
+
-- These fields are no longer part of the Goal read model after domain simplification
|
|
3
|
+
|
|
4
|
+
ALTER TABLE goal_views DROP COLUMN boundaries;
|
|
5
|
+
ALTER TABLE goal_views DROP COLUMN relevantInvariants;
|
|
6
|
+
ALTER TABLE goal_views DROP COLUMN relevantGuidelines;
|
|
7
|
+
ALTER TABLE goal_views DROP COLUMN relevantDependencies;
|
|
8
|
+
ALTER TABLE goal_views DROP COLUMN relevantComponents;
|
|
9
|
+
ALTER TABLE goal_views DROP COLUMN architecture;
|
|
10
|
+
ALTER TABLE goal_views DROP COLUMN filesToBeCreated;
|
|
11
|
+
ALTER TABLE goal_views DROP COLUMN filesToBeChanged;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
-- Add title column to goal_views table
|
|
2
|
-
ALTER TABLE goal_views ADD COLUMN title TEXT NOT NULL DEFAULT '';
|
|
1
|
+
-- Add title column to goal_views table
|
|
2
|
+
ALTER TABLE goal_views ADD COLUMN title TEXT NOT NULL DEFAULT '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
ALTER TABLE goal_views ADD COLUMN prerequisiteGoals TEXT;
|
|
1
|
+
ALTER TABLE goal_views ADD COLUMN prerequisiteGoals TEXT;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
ALTER TABLE goal_views ADD COLUMN reviewIssues TEXT;
|
|
1
|
+
ALTER TABLE goal_views ADD COLUMN reviewIssues TEXT;
|
|
@@ -14,13 +14,13 @@ class SqliteGoalPausedProjector {
|
|
|
14
14
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
15
15
|
}
|
|
16
16
|
async applyGoalPaused(event) {
|
|
17
|
-
const stmt = this.db.prepare(`
|
|
18
|
-
UPDATE goal_views
|
|
19
|
-
SET status = ?,
|
|
20
|
-
note = ?,
|
|
21
|
-
version = ?,
|
|
22
|
-
updatedAt = ?
|
|
23
|
-
WHERE goalId = ?
|
|
17
|
+
const stmt = this.db.prepare(`
|
|
18
|
+
UPDATE goal_views
|
|
19
|
+
SET status = ?,
|
|
20
|
+
note = ?,
|
|
21
|
+
version = ?,
|
|
22
|
+
updatedAt = ?
|
|
23
|
+
WHERE goalId = ?
|
|
24
24
|
`);
|
|
25
25
|
stmt.run(event.payload.status, event.payload.note || null, event.version, event.timestamp, event.aggregateId);
|
|
26
26
|
}
|
|
@@ -14,15 +14,15 @@ class SqliteGoalQualifiedProjector {
|
|
|
14
14
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
15
15
|
}
|
|
16
16
|
async applyGoalQualified(event) {
|
|
17
|
-
const stmt = this.db.prepare(`
|
|
18
|
-
UPDATE goal_views
|
|
19
|
-
SET status = ?,
|
|
20
|
-
claimedBy = NULL,
|
|
21
|
-
claimedAt = NULL,
|
|
22
|
-
claimExpiresAt = NULL,
|
|
23
|
-
version = ?,
|
|
24
|
-
updatedAt = ?
|
|
25
|
-
WHERE goalId = ?
|
|
17
|
+
const stmt = this.db.prepare(`
|
|
18
|
+
UPDATE goal_views
|
|
19
|
+
SET status = ?,
|
|
20
|
+
claimedBy = NULL,
|
|
21
|
+
claimedAt = NULL,
|
|
22
|
+
claimExpiresAt = NULL,
|
|
23
|
+
version = ?,
|
|
24
|
+
updatedAt = ?
|
|
25
|
+
WHERE goalId = ?
|
|
26
26
|
`);
|
|
27
27
|
stmt.run(event.payload.status, event.version, event.timestamp, event.aggregateId);
|
|
28
28
|
}
|
|
@@ -18,25 +18,25 @@ class SqliteGoalRefinedProjector {
|
|
|
18
18
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
19
19
|
}
|
|
20
20
|
async applyGoalRefined(event) {
|
|
21
|
-
const stmt = this.db.prepare(`
|
|
22
|
-
UPDATE goal_views
|
|
23
|
-
SET status = ?,
|
|
24
|
-
version = ?,
|
|
25
|
-
updatedAt = ?
|
|
26
|
-
WHERE goalId = ?
|
|
21
|
+
const stmt = this.db.prepare(`
|
|
22
|
+
UPDATE goal_views
|
|
23
|
+
SET status = ?,
|
|
24
|
+
version = ?,
|
|
25
|
+
updatedAt = ?
|
|
26
|
+
WHERE goalId = ?
|
|
27
27
|
`);
|
|
28
28
|
stmt.run(event.payload.status, event.version, event.timestamp, event.aggregateId);
|
|
29
29
|
}
|
|
30
30
|
async applyGoalRefinementStarted(event) {
|
|
31
|
-
const stmt = this.db.prepare(`
|
|
32
|
-
UPDATE goal_views
|
|
33
|
-
SET status = ?,
|
|
34
|
-
claimedBy = ?,
|
|
35
|
-
claimedAt = ?,
|
|
36
|
-
claimExpiresAt = ?,
|
|
37
|
-
version = ?,
|
|
38
|
-
updatedAt = ?
|
|
39
|
-
WHERE goalId = ?
|
|
31
|
+
const stmt = this.db.prepare(`
|
|
32
|
+
UPDATE goal_views
|
|
33
|
+
SET status = ?,
|
|
34
|
+
claimedBy = ?,
|
|
35
|
+
claimedAt = ?,
|
|
36
|
+
claimExpiresAt = ?,
|
|
37
|
+
version = ?,
|
|
38
|
+
updatedAt = ?
|
|
39
|
+
WHERE goalId = ?
|
|
40
40
|
`);
|
|
41
41
|
stmt.run(event.payload.status, event.payload.claimedBy, event.payload.claimedAt, event.payload.claimExpiresAt, event.version, event.timestamp, event.aggregateId);
|
|
42
42
|
}
|
|
@@ -16,16 +16,16 @@ class SqliteGoalRejectedProjector {
|
|
|
16
16
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
17
17
|
}
|
|
18
18
|
async applyGoalRejected(event) {
|
|
19
|
-
const stmt = this.db.prepare(`
|
|
20
|
-
UPDATE goal_views
|
|
21
|
-
SET status = ?,
|
|
22
|
-
reviewIssues = ?,
|
|
23
|
-
claimedBy = NULL,
|
|
24
|
-
claimedAt = NULL,
|
|
25
|
-
claimExpiresAt = NULL,
|
|
26
|
-
version = ?,
|
|
27
|
-
updatedAt = ?
|
|
28
|
-
WHERE goalId = ?
|
|
19
|
+
const stmt = this.db.prepare(`
|
|
20
|
+
UPDATE goal_views
|
|
21
|
+
SET status = ?,
|
|
22
|
+
reviewIssues = ?,
|
|
23
|
+
claimedBy = NULL,
|
|
24
|
+
claimedAt = NULL,
|
|
25
|
+
claimExpiresAt = NULL,
|
|
26
|
+
version = ?,
|
|
27
|
+
updatedAt = ?
|
|
28
|
+
WHERE goalId = ?
|
|
29
29
|
`);
|
|
30
30
|
stmt.run(event.payload.status, event.payload.reviewIssues, event.version, event.timestamp, event.aggregateId);
|
|
31
31
|
}
|
|
@@ -14,9 +14,9 @@ class SqliteGoalRemovedProjector {
|
|
|
14
14
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
15
15
|
}
|
|
16
16
|
async applyGoalRemoved(event) {
|
|
17
|
-
const stmt = this.db.prepare(`
|
|
18
|
-
DELETE FROM goal_views
|
|
19
|
-
WHERE goalId = ?
|
|
17
|
+
const stmt = this.db.prepare(`
|
|
18
|
+
DELETE FROM goal_views
|
|
19
|
+
WHERE goalId = ?
|
|
20
20
|
`);
|
|
21
21
|
stmt.run(event.aggregateId);
|
|
22
22
|
}
|
|
@@ -14,17 +14,17 @@ class SqliteGoalResetProjector {
|
|
|
14
14
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
15
15
|
}
|
|
16
16
|
async applyGoalReset(event) {
|
|
17
|
-
const stmt = this.db.prepare(`
|
|
18
|
-
UPDATE goal_views
|
|
19
|
-
SET status = ?,
|
|
20
|
-
note = NULL,
|
|
21
|
-
reviewIssues = NULL,
|
|
22
|
-
claimedBy = NULL,
|
|
23
|
-
claimedAt = NULL,
|
|
24
|
-
claimExpiresAt = NULL,
|
|
25
|
-
version = ?,
|
|
26
|
-
updatedAt = ?
|
|
27
|
-
WHERE goalId = ?
|
|
17
|
+
const stmt = this.db.prepare(`
|
|
18
|
+
UPDATE goal_views
|
|
19
|
+
SET status = ?,
|
|
20
|
+
note = NULL,
|
|
21
|
+
reviewIssues = NULL,
|
|
22
|
+
claimedBy = NULL,
|
|
23
|
+
claimedAt = NULL,
|
|
24
|
+
claimExpiresAt = NULL,
|
|
25
|
+
version = ?,
|
|
26
|
+
updatedAt = ?
|
|
27
|
+
WHERE goalId = ?
|
|
28
28
|
`);
|
|
29
29
|
stmt.run(event.payload.status, event.version, event.timestamp, event.aggregateId);
|
|
30
30
|
}
|
|
@@ -14,16 +14,16 @@ class SqliteGoalResumedProjector {
|
|
|
14
14
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
15
15
|
}
|
|
16
16
|
async applyGoalResumed(event) {
|
|
17
|
-
const stmt = this.db.prepare(`
|
|
18
|
-
UPDATE goal_views
|
|
19
|
-
SET status = ?,
|
|
20
|
-
note = ?,
|
|
21
|
-
claimedBy = ?,
|
|
22
|
-
claimedAt = ?,
|
|
23
|
-
claimExpiresAt = ?,
|
|
24
|
-
version = ?,
|
|
25
|
-
updatedAt = ?
|
|
26
|
-
WHERE goalId = ?
|
|
17
|
+
const stmt = this.db.prepare(`
|
|
18
|
+
UPDATE goal_views
|
|
19
|
+
SET status = ?,
|
|
20
|
+
note = ?,
|
|
21
|
+
claimedBy = ?,
|
|
22
|
+
claimedAt = ?,
|
|
23
|
+
claimExpiresAt = ?,
|
|
24
|
+
version = ?,
|
|
25
|
+
updatedAt = ?
|
|
26
|
+
WHERE goalId = ?
|
|
27
27
|
`);
|
|
28
28
|
stmt.run(event.payload.status, event.payload.note || null, event.payload.claimedBy || null, event.payload.claimedAt || null, event.payload.claimExpiresAt || null, event.version, event.timestamp, event.aggregateId);
|
|
29
29
|
}
|
|
@@ -14,15 +14,15 @@ class SqliteGoalSubmittedForReviewProjector {
|
|
|
14
14
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
15
15
|
}
|
|
16
16
|
async applyGoalSubmittedForReview(event) {
|
|
17
|
-
const stmt = this.db.prepare(`
|
|
18
|
-
UPDATE goal_views
|
|
19
|
-
SET status = ?,
|
|
20
|
-
claimedBy = ?,
|
|
21
|
-
claimedAt = ?,
|
|
22
|
-
claimExpiresAt = ?,
|
|
23
|
-
version = ?,
|
|
24
|
-
updatedAt = ?
|
|
25
|
-
WHERE goalId = ?
|
|
17
|
+
const stmt = this.db.prepare(`
|
|
18
|
+
UPDATE goal_views
|
|
19
|
+
SET status = ?,
|
|
20
|
+
claimedBy = ?,
|
|
21
|
+
claimedAt = ?,
|
|
22
|
+
claimExpiresAt = ?,
|
|
23
|
+
version = ?,
|
|
24
|
+
updatedAt = ?
|
|
25
|
+
WHERE goalId = ?
|
|
26
26
|
`);
|
|
27
27
|
stmt.run(event.payload.status, event.payload.claimedBy ?? null, event.payload.claimedAt ?? null, event.payload.claimExpiresAt ?? null, event.version, event.timestamp, event.aggregateId);
|
|
28
28
|
}
|
|
@@ -14,15 +14,15 @@ class SqliteGoalStartedProjector {
|
|
|
14
14
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
15
15
|
}
|
|
16
16
|
async applyGoalStarted(event) {
|
|
17
|
-
const stmt = this.db.prepare(`
|
|
18
|
-
UPDATE goal_views
|
|
19
|
-
SET status = ?,
|
|
20
|
-
claimedBy = ?,
|
|
21
|
-
claimedAt = ?,
|
|
22
|
-
claimExpiresAt = ?,
|
|
23
|
-
version = ?,
|
|
24
|
-
updatedAt = ?
|
|
25
|
-
WHERE goalId = ?
|
|
17
|
+
const stmt = this.db.prepare(`
|
|
18
|
+
UPDATE goal_views
|
|
19
|
+
SET status = ?,
|
|
20
|
+
claimedBy = ?,
|
|
21
|
+
claimedAt = ?,
|
|
22
|
+
claimExpiresAt = ?,
|
|
23
|
+
version = ?,
|
|
24
|
+
updatedAt = ?
|
|
25
|
+
WHERE goalId = ?
|
|
26
26
|
`);
|
|
27
27
|
stmt.run(event.payload.status, event.payload.claimedBy || null, event.payload.claimedAt || null, event.payload.claimExpiresAt || null, event.version, event.timestamp, event.aggregateId);
|
|
28
28
|
}
|
|
@@ -14,15 +14,15 @@ class SqliteGoalSubmittedProjector {
|
|
|
14
14
|
this.mapper = new GoalRecordMapper_js_1.GoalRecordMapper();
|
|
15
15
|
}
|
|
16
16
|
async applyGoalSubmitted(event) {
|
|
17
|
-
const stmt = this.db.prepare(`
|
|
18
|
-
UPDATE goal_views
|
|
19
|
-
SET status = ?,
|
|
20
|
-
claimedBy = NULL,
|
|
21
|
-
claimedAt = NULL,
|
|
22
|
-
claimExpiresAt = NULL,
|
|
23
|
-
version = ?,
|
|
24
|
-
updatedAt = ?
|
|
25
|
-
WHERE goalId = ?
|
|
17
|
+
const stmt = this.db.prepare(`
|
|
18
|
+
UPDATE goal_views
|
|
19
|
+
SET status = ?,
|
|
20
|
+
claimedBy = NULL,
|
|
21
|
+
claimedAt = NULL,
|
|
22
|
+
claimExpiresAt = NULL,
|
|
23
|
+
version = ?,
|
|
24
|
+
updatedAt = ?
|
|
25
|
+
WHERE goalId = ?
|
|
26
26
|
`);
|
|
27
27
|
stmt.run(event.payload.status, event.version, event.timestamp, event.aggregateId);
|
|
28
28
|
}
|
|
@@ -12,13 +12,13 @@ class SqliteGoalUnblockedProjector {
|
|
|
12
12
|
this.db = db;
|
|
13
13
|
}
|
|
14
14
|
async applyGoalUnblocked(event) {
|
|
15
|
-
const stmt = this.db.prepare(`
|
|
16
|
-
UPDATE goal_views
|
|
17
|
-
SET status = ?,
|
|
18
|
-
note = ?,
|
|
19
|
-
version = ?,
|
|
20
|
-
updatedAt = ?
|
|
21
|
-
WHERE goalId = ?
|
|
15
|
+
const stmt = this.db.prepare(`
|
|
16
|
+
UPDATE goal_views
|
|
17
|
+
SET status = ?,
|
|
18
|
+
note = ?,
|
|
19
|
+
version = ?,
|
|
20
|
+
updatedAt = ?
|
|
21
|
+
WHERE goalId = ?
|
|
22
22
|
`);
|
|
23
23
|
stmt.run(event.payload.status, event.payload.note || null, event.version, event.timestamp, event.aggregateId);
|
|
24
24
|
}
|
|
@@ -50,10 +50,10 @@ class SqliteGoalUpdatedProjector {
|
|
|
50
50
|
values.push(event.version, event.timestamp);
|
|
51
51
|
// Add WHERE clause parameter
|
|
52
52
|
values.push(event.aggregateId);
|
|
53
|
-
const stmt = this.db.prepare(`
|
|
54
|
-
UPDATE goal_views
|
|
55
|
-
SET ${updates.join(", ")}
|
|
56
|
-
WHERE goalId = ?
|
|
53
|
+
const stmt = this.db.prepare(`
|
|
54
|
+
UPDATE goal_views
|
|
55
|
+
SET ${updates.join(", ")}
|
|
56
|
+
WHERE goalId = ?
|
|
57
57
|
`);
|
|
58
58
|
stmt.run(...values);
|
|
59
59
|
}
|
package/dist/infrastructure/context/goals/update-progress/SqliteGoalProgressUpdatedProjector.js
CHANGED
|
@@ -13,8 +13,8 @@ class SqliteGoalProgressUpdatedProjector {
|
|
|
13
13
|
}
|
|
14
14
|
async applyGoalProgressUpdated(event) {
|
|
15
15
|
// First, read the current progress array
|
|
16
|
-
const selectStmt = this.db.prepare(`
|
|
17
|
-
SELECT progress FROM goal_views WHERE goalId = ?
|
|
16
|
+
const selectStmt = this.db.prepare(`
|
|
17
|
+
SELECT progress FROM goal_views WHERE goalId = ?
|
|
18
18
|
`);
|
|
19
19
|
const row = selectStmt.get(event.aggregateId);
|
|
20
20
|
// Parse existing progress or start with empty array
|
|
@@ -22,12 +22,12 @@ class SqliteGoalProgressUpdatedProjector {
|
|
|
22
22
|
// Append the new task description
|
|
23
23
|
currentProgress.push(event.payload.taskDescription);
|
|
24
24
|
// Update the goal view with the new progress array
|
|
25
|
-
const updateStmt = this.db.prepare(`
|
|
26
|
-
UPDATE goal_views
|
|
27
|
-
SET progress = ?,
|
|
28
|
-
version = ?,
|
|
29
|
-
updatedAt = ?
|
|
30
|
-
WHERE goalId = ?
|
|
25
|
+
const updateStmt = this.db.prepare(`
|
|
26
|
+
UPDATE goal_views
|
|
27
|
+
SET progress = ?,
|
|
28
|
+
version = ?,
|
|
29
|
+
updatedAt = ?
|
|
30
|
+
WHERE goalId = ?
|
|
31
31
|
`);
|
|
32
32
|
updateStmt.run(JSON.stringify(currentProgress), event.version, event.timestamp, event.aggregateId);
|
|
33
33
|
}
|