jumbo-cli 2.8.0 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +1 -0
  2. package/assets/skills/define-jumbo-goals/SKILL.md +2 -0
  3. package/assets/skills/jumbo-design-goal/SKILL.md +123 -0
  4. package/dist/application/context/relations/deactivate/DeactivateRelationCommandHandler.d.ts.map +1 -1
  5. package/dist/application/context/relations/deactivate/DeactivateRelationCommandHandler.js +5 -0
  6. package/dist/application/context/relations/deactivate/DeactivateRelationCommandHandler.js.map +1 -1
  7. package/dist/infrastructure/host/HostBuilder.d.ts.map +1 -1
  8. package/dist/infrastructure/host/HostBuilder.js +4 -6
  9. package/dist/infrastructure/host/HostBuilder.js.map +1 -1
  10. package/dist/infrastructure/local/LocalDatabaseRebuildService.d.ts +9 -13
  11. package/dist/infrastructure/local/LocalDatabaseRebuildService.d.ts.map +1 -1
  12. package/dist/infrastructure/local/LocalDatabaseRebuildService.js +36 -29
  13. package/dist/infrastructure/local/LocalDatabaseRebuildService.js.map +1 -1
  14. package/dist/infrastructure/messaging/ProjectionBusFactory.d.ts +25 -0
  15. package/dist/infrastructure/messaging/ProjectionBusFactory.d.ts.map +1 -0
  16. package/dist/infrastructure/messaging/ProjectionBusFactory.js +242 -0
  17. package/dist/infrastructure/messaging/ProjectionBusFactory.js.map +1 -0
  18. package/dist/presentation/cli/animations/BrailleSpinner.d.ts +31 -0
  19. package/dist/presentation/cli/animations/BrailleSpinner.d.ts.map +1 -0
  20. package/dist/presentation/cli/animations/BrailleSpinner.js +67 -0
  21. package/dist/presentation/cli/animations/BrailleSpinner.js.map +1 -0
  22. package/dist/presentation/cli/animations/GlimmerEffect.d.ts +32 -0
  23. package/dist/presentation/cli/animations/GlimmerEffect.d.ts.map +1 -0
  24. package/dist/presentation/cli/animations/GlimmerEffect.js +55 -0
  25. package/dist/presentation/cli/animations/GlimmerEffect.js.map +1 -0
  26. package/dist/presentation/cli/animations/GradientPalette.d.ts +36 -0
  27. package/dist/presentation/cli/animations/GradientPalette.d.ts.map +1 -0
  28. package/dist/presentation/cli/animations/GradientPalette.js +133 -0
  29. package/dist/presentation/cli/animations/GradientPalette.js.map +1 -0
  30. package/dist/presentation/cli/commands/registry/generated-commands.d.ts.map +1 -1
  31. package/dist/presentation/cli/commands/registry/generated-commands.js +6 -0
  32. package/dist/presentation/cli/commands/registry/generated-commands.js.map +1 -1
  33. package/dist/presentation/cli/commands/work/refine/RefineryDisplay.d.ts +45 -0
  34. package/dist/presentation/cli/commands/work/refine/RefineryDisplay.d.ts.map +1 -0
  35. package/dist/presentation/cli/commands/work/refine/RefineryDisplay.js +100 -0
  36. package/dist/presentation/cli/commands/work/refine/RefineryDisplay.js.map +1 -0
  37. package/dist/presentation/cli/commands/work/refine/work.refine.d.ts +20 -0
  38. package/dist/presentation/cli/commands/work/refine/work.refine.d.ts.map +1 -0
  39. package/dist/presentation/cli/commands/work/refine/work.refine.js +181 -0
  40. package/dist/presentation/cli/commands/work/refine/work.refine.js.map +1 -0
  41. package/dist/presentation/cli/rendering/StyleConfig.d.ts +11 -0
  42. package/dist/presentation/cli/rendering/StyleConfig.d.ts.map +1 -1
  43. package/dist/presentation/cli/rendering/StyleConfig.js +12 -1
  44. package/dist/presentation/cli/rendering/StyleConfig.js.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/infrastructure/local/TemporarySequentialDatabaseRebuildService.d.ts +0 -43
  47. package/dist/infrastructure/local/TemporarySequentialDatabaseRebuildService.d.ts.map +0 -1
  48. package/dist/infrastructure/local/TemporarySequentialDatabaseRebuildService.js +0 -441
  49. package/dist/infrastructure/local/TemporarySequentialDatabaseRebuildService.js.map +0 -1
  50. package/dist/infrastructure/messaging/TemporarySequentialRebuildEventBus.d.ts +0 -37
  51. package/dist/infrastructure/messaging/TemporarySequentialRebuildEventBus.d.ts.map +0 -1
  52. package/dist/infrastructure/messaging/TemporarySequentialRebuildEventBus.js +0 -64
  53. package/dist/infrastructure/messaging/TemporarySequentialRebuildEventBus.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StyleConfig.js","sourceRoot":"","sources":["../../../../src/presentation/cli/rendering/StyleConfig.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAsIH,8BAGC;AAKD,oCAEC;AAKD,gCAMC;AAKD,4BAIC;AAlKD,kDAA0B;AAE1B;;GAEG;AACU,QAAA,MAAM,GAAG;IACpB,iBAAiB;IACjB,OAAO,EAAE,eAAK,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACjC,SAAS,EAAE,eAAK,CAAC,IAAI;IACrB,MAAM,EAAE,eAAK,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC;IAC/B,QAAQ,EAAE,eAAK,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC;IAEjC,gBAAgB;IAChB,OAAO,EAAE,eAAK,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC;IAC/B,KAAK,EAAE,eAAK,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC;IAC7B,OAAO,EAAE,eAAK,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC;IAChC,IAAI,EAAE,eAAK,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAE9B,cAAc;IACd,KAAK,EAAE,eAAK,CAAC,IAAI;IACjB,IAAI,EAAE,eAAK,CAAC,IAAI;IAChB,GAAG,EAAE,eAAK,CAAC,GAAG;IAEd,UAAU;IACV,KAAK,EAAE,eAAK,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC;IAC9B,SAAS,EAAE,eAAK,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC;IAElC,qCAAqC;IACrC,uCAAuC;IACvC,uCAA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AG,CAAC,CAAC,GAAG,eAAO,CAAC,QAAQ,CAAC;AACxE,CAAC;AAED,SAAS,iBAAiB;IACxB,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;IACxC,IAAI,SAAS,EAAE,CAAC;QACd,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnC,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAAE,OAAO,EAAE,GAAG,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jumbo-cli",
3
- "version": "2.8.0",
3
+ "version": "2.10.0",
4
4
  "description": "Memory and Context Orchestration for Coding Agents",
5
5
  "keywords": [
6
6
  "cli",
@@ -1,43 +0,0 @@
1
- /**
2
- * TEMPORARY WORKAROUND - DO NOT USE IN PRODUCTION
3
- *
4
- * Infrastructure implementation of database rebuild service with sequential handler execution.
5
- *
6
- * This service addresses a race condition during database rebuild where
7
- * cross-aggregate projection handlers
8
- * attempt to read from projections (e.g., goal_views) while primary handlers
9
- * are still writing to them.
10
- *
11
- * The root cause: InProcessEventBus executes handlers in parallel via Promise.all(),
12
- * which works fine during normal operations but causes issues during rebuild when
13
- * projections don't exist yet.
14
- *
15
- * This service encapsulates ALL the complexity of sequential rebuild:
16
- * - Creating new database connection
17
- * - Running migrations
18
- * - Creating sequential event bus
19
- * - Creating all projectors
20
- * - Creating all handlers
21
- * - Registering handlers
22
- * - Replaying events sequentially
23
- *
24
- * REMOVAL PLAN:
25
- * This will be removed when Epic/Feature/Task redesign is complete. At that time,
26
- * simply swap back to LocalDatabaseRebuildService in bootstrap.ts.
27
- *
28
- * @see LocalDatabaseRebuildService - Normal parallel rebuild (currently has race condition)
29
- */
30
- import Database from "better-sqlite3";
31
- import { ILogger } from "../../application/logging/ILogger.js";
32
- import { IDatabaseRebuildService, DatabaseRebuildResult } from "../../application/maintenance/db/rebuild/IDatabaseRebuildService.js";
33
- import { IEventStore } from "../../application/persistence/IEventStore.js";
34
- export declare class TemporarySequentialDatabaseRebuildService implements IDatabaseRebuildService {
35
- private readonly rootDir;
36
- private readonly db;
37
- private readonly eventStore;
38
- private readonly logger;
39
- private readonly tag;
40
- constructor(rootDir: string, db: Database.Database, eventStore: IEventStore, logger: ILogger);
41
- rebuild(): Promise<DatabaseRebuildResult>;
42
- }
43
- //# sourceMappingURL=TemporarySequentialDatabaseRebuildService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TemporarySequentialDatabaseRebuildService.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/local/TemporarySequentialDatabaseRebuildService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAIH,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AA0I3E,qBAAa,yCAA0C,YAAW,uBAAuB;IAIrF,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,EAAE;IACnB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IANzB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAuB;gBAGxB,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,QAAQ,CAAC,QAAQ,EACrB,UAAU,EAAE,WAAW,EACvB,MAAM,EAAE,OAAO;IAG5B,OAAO,IAAI,OAAO,CAAC,qBAAqB,CAAC;CAgShD"}
@@ -1,441 +0,0 @@
1
- "use strict";
2
- /**
3
- * TEMPORARY WORKAROUND - DO NOT USE IN PRODUCTION
4
- *
5
- * Infrastructure implementation of database rebuild service with sequential handler execution.
6
- *
7
- * This service addresses a race condition during database rebuild where
8
- * cross-aggregate projection handlers
9
- * attempt to read from projections (e.g., goal_views) while primary handlers
10
- * are still writing to them.
11
- *
12
- * The root cause: InProcessEventBus executes handlers in parallel via Promise.all(),
13
- * which works fine during normal operations but causes issues during rebuild when
14
- * projections don't exist yet.
15
- *
16
- * This service encapsulates ALL the complexity of sequential rebuild:
17
- * - Creating new database connection
18
- * - Running migrations
19
- * - Creating sequential event bus
20
- * - Creating all projectors
21
- * - Creating all handlers
22
- * - Registering handlers
23
- * - Replaying events sequentially
24
- *
25
- * REMOVAL PLAN:
26
- * This will be removed when Epic/Feature/Task redesign is complete. At that time,
27
- * simply swap back to LocalDatabaseRebuildService in bootstrap.ts.
28
- *
29
- * @see LocalDatabaseRebuildService - Normal parallel rebuild (currently has race condition)
30
- */
31
- var __importDefault = (this && this.__importDefault) || function (mod) {
32
- return (mod && mod.__esModule) ? mod : { "default": mod };
33
- };
34
- Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.TemporarySequentialDatabaseRebuildService = void 0;
36
- const fs_extra_1 = __importDefault(require("fs-extra"));
37
- const path_1 = __importDefault(require("path"));
38
- const better_sqlite3_1 = __importDefault(require("better-sqlite3"));
39
- const TemporarySequentialRebuildEventBus_js_1 = require("../messaging/TemporarySequentialRebuildEventBus.js");
40
- const MigrationRunner_js_1 = require("../persistence/MigrationRunner.js");
41
- const migrations_config_js_1 = require("../persistence/migrations.config.js");
42
- // Projectors
43
- const SqliteSessionStartedProjector_js_1 = require("../context/sessions/start/SqliteSessionStartedProjector.js");
44
- const SqliteSessionEndedProjector_js_1 = require("../context/sessions/end/SqliteSessionEndedProjector.js");
45
- const SqliteGoalAddedProjector_js_1 = require("../context/goals/add/SqliteGoalAddedProjector.js");
46
- const SqliteGoalStartedProjector_js_1 = require("../context/goals/start/SqliteGoalStartedProjector.js");
47
- const SqliteGoalUpdatedProjector_js_1 = require("../context/goals/update/SqliteGoalUpdatedProjector.js");
48
- const SqliteGoalBlockedProjector_js_1 = require("../context/goals/block/SqliteGoalBlockedProjector.js");
49
- const SqliteGoalUnblockedProjector_js_1 = require("../context/goals/unblock/SqliteGoalUnblockedProjector.js");
50
- const SqliteGoalPausedProjector_js_1 = require("../context/goals/pause/SqliteGoalPausedProjector.js");
51
- const SqliteGoalResumedProjector_js_1 = require("../context/goals/resume/SqliteGoalResumedProjector.js");
52
- const SqliteGoalCompletedProjector_js_1 = require("../context/goals/complete/SqliteGoalCompletedProjector.js");
53
- const SqliteGoalResetProjector_js_1 = require("../context/goals/reset/SqliteGoalResetProjector.js");
54
- const SqliteGoalRemovedProjector_js_1 = require("../context/goals/remove/SqliteGoalRemovedProjector.js");
55
- const SqliteGoalRefinedProjector_js_1 = require("../context/goals/refine/SqliteGoalRefinedProjector.js");
56
- const SqliteGoalProgressUpdatedProjector_js_1 = require("../context/goals/update-progress/SqliteGoalProgressUpdatedProjector.js");
57
- const SqliteGoalSubmittedForReviewProjector_js_1 = require("../context/goals/review/SqliteGoalSubmittedForReviewProjector.js");
58
- const SqliteGoalQualifiedProjector_js_1 = require("../context/goals/qualify/SqliteGoalQualifiedProjector.js");
59
- const SqliteGoalCommittedProjector_js_1 = require("../context/goals/commit/SqliteGoalCommittedProjector.js");
60
- const SqliteArchitectureDefinedProjector_js_1 = require("../context/architecture/define/SqliteArchitectureDefinedProjector.js");
61
- const SqliteArchitectureUpdatedProjector_js_1 = require("../context/architecture/update/SqliteArchitectureUpdatedProjector.js");
62
- const SqliteComponentAddedProjector_js_1 = require("../context/components/add/SqliteComponentAddedProjector.js");
63
- const SqliteComponentUpdatedProjector_js_1 = require("../context/components/update/SqliteComponentUpdatedProjector.js");
64
- const SqliteComponentDeprecatedProjector_js_1 = require("../context/components/deprecate/SqliteComponentDeprecatedProjector.js");
65
- const SqliteComponentUndeprecatedProjector_js_1 = require("../context/components/undeprecate/SqliteComponentUndeprecatedProjector.js");
66
- const SqliteComponentRemovedProjector_js_1 = require("../context/components/remove/SqliteComponentRemovedProjector.js");
67
- const SqliteDependencyAddedProjector_js_1 = require("../context/dependencies/add/SqliteDependencyAddedProjector.js");
68
- const SqliteDependencyUpdatedProjector_js_1 = require("../context/dependencies/update/SqliteDependencyUpdatedProjector.js");
69
- const SqliteDependencyRemovedProjector_js_1 = require("../context/dependencies/remove/SqliteDependencyRemovedProjector.js");
70
- const SqliteDecisionAddedProjector_js_1 = require("../context/decisions/add/SqliteDecisionAddedProjector.js");
71
- const SqliteDecisionUpdatedProjector_js_1 = require("../context/decisions/update/SqliteDecisionUpdatedProjector.js");
72
- const SqliteDecisionReversedProjector_js_1 = require("../context/decisions/reverse/SqliteDecisionReversedProjector.js");
73
- const SqliteDecisionRestoredProjector_js_1 = require("../context/decisions/restore/SqliteDecisionRestoredProjector.js");
74
- const SqliteDecisionSupersededProjector_js_1 = require("../context/decisions/supersede/SqliteDecisionSupersededProjector.js");
75
- const SqliteGuidelineAddedProjector_js_1 = require("../context/guidelines/add/SqliteGuidelineAddedProjector.js");
76
- const SqliteGuidelineUpdatedProjector_js_1 = require("../context/guidelines/update/SqliteGuidelineUpdatedProjector.js");
77
- const SqliteGuidelineRemovedProjector_js_1 = require("../context/guidelines/remove/SqliteGuidelineRemovedProjector.js");
78
- const SqliteInvariantAddedProjector_js_1 = require("../context/invariants/add/SqliteInvariantAddedProjector.js");
79
- const SqliteInvariantUpdatedProjector_js_1 = require("../context/invariants/update/SqliteInvariantUpdatedProjector.js");
80
- const SqliteInvariantRemovedProjector_js_1 = require("../context/invariants/remove/SqliteInvariantRemovedProjector.js");
81
- const SqliteProjectInitializedProjector_js_1 = require("../context/project/init/SqliteProjectInitializedProjector.js");
82
- const SqliteProjectUpdatedProjector_js_1 = require("../context/project/update/SqliteProjectUpdatedProjector.js");
83
- const SqliteAudiencePainAddedProjector_js_1 = require("../context/audience-pains/add/SqliteAudiencePainAddedProjector.js");
84
- const SqliteAudiencePainUpdatedProjector_js_1 = require("../context/audience-pains/update/SqliteAudiencePainUpdatedProjector.js");
85
- const SqliteAudienceAddedProjector_js_1 = require("../context/audiences/add/SqliteAudienceAddedProjector.js");
86
- const SqliteAudienceUpdatedProjector_js_1 = require("../context/audiences/update/SqliteAudienceUpdatedProjector.js");
87
- const SqliteAudienceRemovedProjector_js_1 = require("../context/audiences/remove/SqliteAudienceRemovedProjector.js");
88
- const SqliteValuePropositionAddedProjector_js_1 = require("../context/value-propositions/add/SqliteValuePropositionAddedProjector.js");
89
- const SqliteValuePropositionUpdatedProjector_js_1 = require("../context/value-propositions/update/SqliteValuePropositionUpdatedProjector.js");
90
- const SqliteValuePropositionRemovedProjector_js_1 = require("../context/value-propositions/remove/SqliteValuePropositionRemovedProjector.js");
91
- const SqliteRelationAddedProjector_js_1 = require("../context/relations/add/SqliteRelationAddedProjector.js");
92
- const FsRelationDeactivatedEventStore_js_1 = require("../context/relations/deactivate/FsRelationDeactivatedEventStore.js");
93
- const SqliteRelationDeactivatedProjector_js_1 = require("../context/relations/deactivate/SqliteRelationDeactivatedProjector.js");
94
- const SqliteRelationViewReader_js_1 = require("../context/relations/get/SqliteRelationViewReader.js");
95
- const SqliteRelationReactivatedProjector_js_1 = require("../context/relations/reactivate/SqliteRelationReactivatedProjector.js");
96
- const SqliteRelationRemovedProjector_js_1 = require("../context/relations/remove/SqliteRelationRemovedProjector.js");
97
- const SqliteGoalRejectedProjector_js_1 = require("../context/goals/reject/SqliteGoalRejectedProjector.js");
98
- const SqliteGoalSubmittedProjector_js_1 = require("../context/goals/submit/SqliteGoalSubmittedProjector.js");
99
- const SqliteGoalCodifyingStartedProjector_js_1 = require("../context/goals/codify/SqliteGoalCodifyingStartedProjector.js");
100
- const SqliteGoalClosedProjector_js_1 = require("../context/goals/close/SqliteGoalClosedProjector.js");
101
- const SqliteGoalApprovedProjector_js_1 = require("../context/goals/approve/SqliteGoalApprovedProjector.js");
102
- const SqliteGoalStatusMigratedProjector_js_1 = require("../context/goals/migrate/SqliteGoalStatusMigratedProjector.js");
103
- const SqliteComponentRenamedProjector_js_1 = require("../context/components/rename/SqliteComponentRenamedProjector.js");
104
- const SqliteWorkerIdentifiedProjector_js_1 = require("../host/workers/identify/SqliteWorkerIdentifiedProjector.js");
105
- // Handlers
106
- const SessionStartedEventHandler_js_1 = require("../../application/context/sessions/start/SessionStartedEventHandler.js");
107
- const SessionEndedEventHandler_js_1 = require("../../application/context/sessions/end/SessionEndedEventHandler.js");
108
- const GoalAddedEventHandler_js_1 = require("../../application/context/goals/add/GoalAddedEventHandler.js");
109
- const GoalStartedEventHandler_js_1 = require("../../application/context/goals/start/GoalStartedEventHandler.js");
110
- const GoalUpdatedEventHandler_js_1 = require("../../application/context/goals/update/GoalUpdatedEventHandler.js");
111
- const GoalBlockedEventHandler_js_1 = require("../../application/context/goals/block/GoalBlockedEventHandler.js");
112
- const GoalUnblockedEventHandler_js_1 = require("../../application/context/goals/unblock/GoalUnblockedEventHandler.js");
113
- const GoalPausedEventHandler_js_1 = require("../../application/context/goals/pause/GoalPausedEventHandler.js");
114
- const GoalResumedEventHandler_js_1 = require("../../application/context/goals/resume/GoalResumedEventHandler.js");
115
- const GoalCompletedEventHandler_js_1 = require("../../application/context/goals/complete/GoalCompletedEventHandler.js");
116
- const GoalResetEventHandler_js_1 = require("../../application/context/goals/reset/GoalResetEventHandler.js");
117
- const GoalRemovedEventHandler_js_1 = require("../../application/context/goals/remove/GoalRemovedEventHandler.js");
118
- const GoalRefinedEventHandler_js_1 = require("../../application/context/goals/refine/GoalRefinedEventHandler.js");
119
- const GoalProgressUpdatedEventHandler_js_1 = require("../../application/context/goals/update-progress/GoalProgressUpdatedEventHandler.js");
120
- const GoalSubmittedForReviewEventHandler_js_1 = require("../../application/context/goals/review/GoalSubmittedForReviewEventHandler.js");
121
- const GoalQualifiedEventHandler_js_1 = require("../../application/context/goals/qualify/GoalQualifiedEventHandler.js");
122
- const GoalRefinementStartedEventHandler_js_1 = require("../../application/context/goals/refine/GoalRefinementStartedEventHandler.js");
123
- const GoalCommittedEventHandler_js_1 = require("../../application/context/goals/commit/GoalCommittedEventHandler.js");
124
- const DecisionAddedEventHandler_js_1 = require("../../application/context/decisions/add/DecisionAddedEventHandler.js");
125
- const DecisionUpdatedEventHandler_js_1 = require("../../application/context/decisions/update/DecisionUpdatedEventHandler.js");
126
- const DecisionReversedEventHandler_js_1 = require("../../application/context/decisions/reverse/DecisionReversedEventHandler.js");
127
- const DecisionRestoredEventHandler_js_1 = require("../../application/context/decisions/restore/DecisionRestoredEventHandler.js");
128
- const DecisionSupersededEventHandler_js_1 = require("../../application/context/decisions/supersede/DecisionSupersededEventHandler.js");
129
- const ArchitectureDefinedEventHandler_js_1 = require("../../application/context/architecture/define/ArchitectureDefinedEventHandler.js");
130
- const ArchitectureUpdatedEventHandler_js_1 = require("../../application/context/architecture/update/ArchitectureUpdatedEventHandler.js");
131
- const ComponentAddedEventHandler_js_1 = require("../../application/context/components/add/ComponentAddedEventHandler.js");
132
- const ComponentUpdatedEventHandler_js_1 = require("../../application/context/components/update/ComponentUpdatedEventHandler.js");
133
- const ComponentDeprecatedEventHandler_js_1 = require("../../application/context/components/deprecate/ComponentDeprecatedEventHandler.js");
134
- const ComponentUndeprecatedEventHandler_js_1 = require("../../application/context/components/undeprecate/ComponentUndeprecatedEventHandler.js");
135
- const ComponentRemovedEventHandler_js_1 = require("../../application/context/components/remove/ComponentRemovedEventHandler.js");
136
- const DependencyAddedEventHandler_js_1 = require("../../application/context/dependencies/add/DependencyAddedEventHandler.js");
137
- const DependencyUpdatedEventHandler_js_1 = require("../../application/context/dependencies/update/DependencyUpdatedEventHandler.js");
138
- const DependencyRemovedEventHandler_js_1 = require("../../application/context/dependencies/remove/DependencyRemovedEventHandler.js");
139
- const GuidelineAddedEventHandler_js_1 = require("../../application/context/guidelines/add/GuidelineAddedEventHandler.js");
140
- const GuidelineUpdatedEventHandler_js_1 = require("../../application/context/guidelines/update/GuidelineUpdatedEventHandler.js");
141
- const GuidelineRemovedEventHandler_js_1 = require("../../application/context/guidelines/remove/GuidelineRemovedEventHandler.js");
142
- const InvariantAddedEventHandler_js_1 = require("../../application/context/invariants/add/InvariantAddedEventHandler.js");
143
- const InvariantUpdatedEventHandler_js_1 = require("../../application/context/invariants/update/InvariantUpdatedEventHandler.js");
144
- const InvariantRemovedEventHandler_js_1 = require("../../application/context/invariants/remove/InvariantRemovedEventHandler.js");
145
- const ProjectInitializedEventHandler_js_1 = require("../../application/context/project/init/ProjectInitializedEventHandler.js");
146
- const ProjectUpdatedEventHandler_js_1 = require("../../application/context/project/update/ProjectUpdatedEventHandler.js");
147
- const AudiencePainAddedEventHandler_js_1 = require("../../application/context/audience-pains/add/AudiencePainAddedEventHandler.js");
148
- const AudiencePainUpdatedEventHandler_js_1 = require("../../application/context/audience-pains/update/AudiencePainUpdatedEventHandler.js");
149
- const AudienceAddedEventHandler_js_1 = require("../../application/context/audiences/add/AudienceAddedEventHandler.js");
150
- const AudienceUpdatedEventHandler_js_1 = require("../../application/context/audiences/update/AudienceUpdatedEventHandler.js");
151
- const AudienceRemovedEventHandler_js_1 = require("../../application/context/audiences/remove/AudienceRemovedEventHandler.js");
152
- const ValuePropositionAddedEventHandler_js_1 = require("../../application/context/value-propositions/add/ValuePropositionAddedEventHandler.js");
153
- const ValuePropositionUpdatedEventHandler_js_1 = require("../../application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.js");
154
- const ValuePropositionRemovedEventHandler_js_1 = require("../../application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.js");
155
- const RelationAddedEventHandler_js_1 = require("../../application/context/relations/add/RelationAddedEventHandler.js");
156
- const DeactivateRelationCommandHandler_js_1 = require("../../application/context/relations/deactivate/DeactivateRelationCommandHandler.js");
157
- const RelationDeactivationCascade_js_1 = require("../../application/context/relations/deactivate/RelationDeactivationCascade.js");
158
- const RelationDeactivatedEventHandler_js_1 = require("../../application/context/relations/deactivate/RelationDeactivatedEventHandler.js");
159
- const RelationReactivatedEventHandler_js_1 = require("../../application/context/relations/reactivate/RelationReactivatedEventHandler.js");
160
- const ReactivateRelationCommandHandler_js_1 = require("../../application/context/relations/reactivate/ReactivateRelationCommandHandler.js");
161
- const FsRelationReactivatedEventStore_js_1 = require("../context/relations/reactivate/FsRelationReactivatedEventStore.js");
162
- const RelationReactivationCascade_js_1 = require("../../application/context/relations/reactivate/RelationReactivationCascade.js");
163
- const NoOpRelationMaintenanceGoalRegistrar_js_1 = require("../../application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.js");
164
- const RelationRemovedEventHandler_js_1 = require("../../application/context/relations/remove/RelationRemovedEventHandler.js");
165
- const GoalRejectedEventHandler_js_1 = require("../../application/context/goals/reject/GoalRejectedEventHandler.js");
166
- const GoalSubmittedEventHandler_js_1 = require("../../application/context/goals/submit/GoalSubmittedEventHandler.js");
167
- const GoalCodifyingStartedEventHandler_js_1 = require("../../application/context/goals/codify/GoalCodifyingStartedEventHandler.js");
168
- const GoalClosedEventHandler_js_1 = require("../../application/context/goals/close/GoalClosedEventHandler.js");
169
- const GoalApprovedEventHandler_js_1 = require("../../application/context/goals/approve/GoalApprovedEventHandler.js");
170
- const GoalStatusMigratedEventHandler_js_1 = require("../../application/context/goals/migrate/GoalStatusMigratedEventHandler.js");
171
- const ComponentRenamedEventHandler_js_1 = require("../../application/context/components/rename/ComponentRenamedEventHandler.js");
172
- const WorkerIdentifiedEventHandler_js_1 = require("../../application/host/workers/identify/WorkerIdentifiedEventHandler.js");
173
- class TemporarySequentialDatabaseRebuildService {
174
- constructor(rootDir, db, eventStore, logger) {
175
- this.rootDir = rootDir;
176
- this.db = db;
177
- this.eventStore = eventStore;
178
- this.logger = logger;
179
- this.tag = "[DatabaseRebuild]";
180
- }
181
- async rebuild() {
182
- this.logger.info(`${this.tag} Starting database rebuild`);
183
- const dbPath = path_1.default.join(this.rootDir, "jumbo.db");
184
- // Step 1: Close existing database connection
185
- this.logger.debug(`${this.tag} Closing existing database connection`);
186
- if (this.db && this.db.open) {
187
- this.db.pragma("wal_checkpoint(TRUNCATE)");
188
- this.db.close();
189
- }
190
- // Step 2: Delete the database file
191
- if (await fs_extra_1.default.pathExists(dbPath)) {
192
- this.logger.debug(`${this.tag} Deleting existing database file`, { dbPath });
193
- await fs_extra_1.default.remove(dbPath);
194
- }
195
- // Also remove WAL and SHM files if they exist
196
- const walPath = dbPath + "-wal";
197
- const shmPath = dbPath + "-shm";
198
- if (await fs_extra_1.default.pathExists(walPath)) {
199
- await fs_extra_1.default.remove(walPath);
200
- }
201
- if (await fs_extra_1.default.pathExists(shmPath)) {
202
- await fs_extra_1.default.remove(shmPath);
203
- }
204
- // Step 3: Create new database connection and run migrations
205
- this.logger.debug(`${this.tag} Creating new database and running migrations`);
206
- const newDb = new better_sqlite3_1.default(dbPath);
207
- newDb.pragma("journal_mode = WAL");
208
- const infrastructureDir = path_1.default.resolve(__dirname, "..");
209
- const migrations = (0, migrations_config_js_1.getNamespaceMigrations)(infrastructureDir);
210
- const migrationRunner = new MigrationRunner_js_1.MigrationRunner(newDb);
211
- migrationRunner.runNamespaceMigrations(migrations);
212
- this.logger.debug(`${this.tag} Migrations complete`);
213
- // Step 4: Create sequential event bus
214
- const sequentialEventBus = new TemporarySequentialRebuildEventBus_js_1.TemporarySequentialRebuildEventBus();
215
- // Step 5: Create all projectors
216
- const sessionStartedProjector = new SqliteSessionStartedProjector_js_1.SqliteSessionStartedProjector(newDb);
217
- const sessionEndedProjector = new SqliteSessionEndedProjector_js_1.SqliteSessionEndedProjector(newDb);
218
- const goalAddedProjector = new SqliteGoalAddedProjector_js_1.SqliteGoalAddedProjector(newDb);
219
- const goalStartedProjector = new SqliteGoalStartedProjector_js_1.SqliteGoalStartedProjector(newDb);
220
- const goalUpdatedProjector = new SqliteGoalUpdatedProjector_js_1.SqliteGoalUpdatedProjector(newDb);
221
- const goalBlockedProjector = new SqliteGoalBlockedProjector_js_1.SqliteGoalBlockedProjector(newDb);
222
- const goalUnblockedProjector = new SqliteGoalUnblockedProjector_js_1.SqliteGoalUnblockedProjector(newDb);
223
- const goalPausedProjector = new SqliteGoalPausedProjector_js_1.SqliteGoalPausedProjector(newDb);
224
- const goalResumedProjector = new SqliteGoalResumedProjector_js_1.SqliteGoalResumedProjector(newDb);
225
- const goalCompletedProjector = new SqliteGoalCompletedProjector_js_1.SqliteGoalCompletedProjector(newDb);
226
- const goalResetProjector = new SqliteGoalResetProjector_js_1.SqliteGoalResetProjector(newDb);
227
- const goalRemovedProjector = new SqliteGoalRemovedProjector_js_1.SqliteGoalRemovedProjector(newDb);
228
- const goalRefinedProjector = new SqliteGoalRefinedProjector_js_1.SqliteGoalRefinedProjector(newDb);
229
- const goalProgressUpdatedProjector = new SqliteGoalProgressUpdatedProjector_js_1.SqliteGoalProgressUpdatedProjector(newDb);
230
- const goalSubmittedForReviewProjector = new SqliteGoalSubmittedForReviewProjector_js_1.SqliteGoalSubmittedForReviewProjector(newDb);
231
- const goalQualifiedProjector = new SqliteGoalQualifiedProjector_js_1.SqliteGoalQualifiedProjector(newDb);
232
- const goalCommittedProjector = new SqliteGoalCommittedProjector_js_1.SqliteGoalCommittedProjector(newDb);
233
- const architectureDefinedProjector = new SqliteArchitectureDefinedProjector_js_1.SqliteArchitectureDefinedProjector(newDb);
234
- const architectureUpdatedProjector = new SqliteArchitectureUpdatedProjector_js_1.SqliteArchitectureUpdatedProjector(newDb);
235
- const componentAddedProjector = new SqliteComponentAddedProjector_js_1.SqliteComponentAddedProjector(newDb);
236
- const componentUpdatedProjector = new SqliteComponentUpdatedProjector_js_1.SqliteComponentUpdatedProjector(newDb);
237
- const componentDeprecatedProjector = new SqliteComponentDeprecatedProjector_js_1.SqliteComponentDeprecatedProjector(newDb);
238
- const componentUndeprecatedProjector = new SqliteComponentUndeprecatedProjector_js_1.SqliteComponentUndeprecatedProjector(newDb);
239
- const componentRemovedProjector = new SqliteComponentRemovedProjector_js_1.SqliteComponentRemovedProjector(newDb);
240
- const dependencyAddedProjector = new SqliteDependencyAddedProjector_js_1.SqliteDependencyAddedProjector(newDb);
241
- const dependencyUpdatedProjector = new SqliteDependencyUpdatedProjector_js_1.SqliteDependencyUpdatedProjector(newDb);
242
- const dependencyRemovedProjector = new SqliteDependencyRemovedProjector_js_1.SqliteDependencyRemovedProjector(newDb);
243
- const decisionAddedProjector = new SqliteDecisionAddedProjector_js_1.SqliteDecisionAddedProjector(newDb);
244
- const decisionUpdatedProjector = new SqliteDecisionUpdatedProjector_js_1.SqliteDecisionUpdatedProjector(newDb);
245
- const decisionReversedProjector = new SqliteDecisionReversedProjector_js_1.SqliteDecisionReversedProjector(newDb);
246
- const decisionRestoredProjector = new SqliteDecisionRestoredProjector_js_1.SqliteDecisionRestoredProjector(newDb);
247
- const decisionSupersededProjector = new SqliteDecisionSupersededProjector_js_1.SqliteDecisionSupersededProjector(newDb);
248
- const guidelineAddedProjector = new SqliteGuidelineAddedProjector_js_1.SqliteGuidelineAddedProjector(newDb);
249
- const guidelineUpdatedProjector = new SqliteGuidelineUpdatedProjector_js_1.SqliteGuidelineUpdatedProjector(newDb);
250
- const guidelineRemovedProjector = new SqliteGuidelineRemovedProjector_js_1.SqliteGuidelineRemovedProjector(newDb);
251
- const invariantAddedProjector = new SqliteInvariantAddedProjector_js_1.SqliteInvariantAddedProjector(newDb);
252
- const invariantUpdatedProjector = new SqliteInvariantUpdatedProjector_js_1.SqliteInvariantUpdatedProjector(newDb);
253
- const invariantRemovedProjector = new SqliteInvariantRemovedProjector_js_1.SqliteInvariantRemovedProjector(newDb);
254
- const projectInitializedProjector = new SqliteProjectInitializedProjector_js_1.SqliteProjectInitializedProjector(newDb);
255
- const projectUpdatedProjector = new SqliteProjectUpdatedProjector_js_1.SqliteProjectUpdatedProjector(newDb);
256
- const audiencePainAddedProjector = new SqliteAudiencePainAddedProjector_js_1.SqliteAudiencePainAddedProjector(newDb);
257
- const audiencePainUpdatedProjector = new SqliteAudiencePainUpdatedProjector_js_1.SqliteAudiencePainUpdatedProjector(newDb);
258
- const audienceAddedProjector = new SqliteAudienceAddedProjector_js_1.SqliteAudienceAddedProjector(newDb);
259
- const audienceUpdatedProjector = new SqliteAudienceUpdatedProjector_js_1.SqliteAudienceUpdatedProjector(newDb);
260
- const audienceRemovedProjector = new SqliteAudienceRemovedProjector_js_1.SqliteAudienceRemovedProjector(newDb);
261
- const valuePropositionAddedProjector = new SqliteValuePropositionAddedProjector_js_1.SqliteValuePropositionAddedProjector(newDb);
262
- const valuePropositionUpdatedProjector = new SqliteValuePropositionUpdatedProjector_js_1.SqliteValuePropositionUpdatedProjector(newDb);
263
- const valuePropositionRemovedProjector = new SqliteValuePropositionRemovedProjector_js_1.SqliteValuePropositionRemovedProjector(newDb);
264
- const relationAddedProjector = new SqliteRelationAddedProjector_js_1.SqliteRelationAddedProjector(newDb);
265
- const relationDeactivatedProjector = new SqliteRelationDeactivatedProjector_js_1.SqliteRelationDeactivatedProjector(newDb);
266
- const relationViewReader = new SqliteRelationViewReader_js_1.SqliteRelationViewReader(newDb);
267
- const relationReactivatedProjector = new SqliteRelationReactivatedProjector_js_1.SqliteRelationReactivatedProjector(newDb);
268
- const relationRemovedProjector = new SqliteRelationRemovedProjector_js_1.SqliteRelationRemovedProjector(newDb);
269
- const goalRejectedProjector = new SqliteGoalRejectedProjector_js_1.SqliteGoalRejectedProjector(newDb);
270
- const goalSubmittedProjector = new SqliteGoalSubmittedProjector_js_1.SqliteGoalSubmittedProjector(newDb);
271
- const goalCodifyingStartedProjector = new SqliteGoalCodifyingStartedProjector_js_1.SqliteGoalCodifyingStartedProjector(newDb);
272
- const goalClosedProjector = new SqliteGoalClosedProjector_js_1.SqliteGoalClosedProjector(newDb);
273
- const goalApprovedProjector = new SqliteGoalApprovedProjector_js_1.SqliteGoalApprovedProjector(newDb);
274
- const goalStatusMigratedProjector = new SqliteGoalStatusMigratedProjector_js_1.SqliteGoalStatusMigratedProjector(newDb);
275
- const componentRenamedProjector = new SqliteComponentRenamedProjector_js_1.SqliteComponentRenamedProjector(newDb);
276
- const workerIdentifiedProjector = new SqliteWorkerIdentifiedProjector_js_1.SqliteWorkerIdentifiedProjector(newDb);
277
- const relationDeactivatedEventStore = new FsRelationDeactivatedEventStore_js_1.FsRelationDeactivatedEventStore(this.rootDir, this.logger);
278
- const relationReactivatedEventStore = new FsRelationReactivatedEventStore_js_1.FsRelationReactivatedEventStore(this.rootDir, this.logger);
279
- const deactivateRelationCommandHandler = new DeactivateRelationCommandHandler_js_1.DeactivateRelationCommandHandler(relationDeactivatedEventStore, relationDeactivatedEventStore, sequentialEventBus, relationDeactivatedProjector);
280
- const relationDeactivationCascade = new RelationDeactivationCascade_js_1.RelationDeactivationCascade(relationViewReader, deactivateRelationCommandHandler);
281
- const reactivateRelationCommandHandler = new ReactivateRelationCommandHandler_js_1.ReactivateRelationCommandHandler(relationReactivatedEventStore, relationReactivatedEventStore, sequentialEventBus, relationReactivatedProjector);
282
- const relationReactivationCascade = new RelationReactivationCascade_js_1.RelationReactivationCascade(relationViewReader, reactivateRelationCommandHandler);
283
- const noOpRelationMaintenanceGoalRegistrar = new NoOpRelationMaintenanceGoalRegistrar_js_1.NoOpRelationMaintenanceGoalRegistrar();
284
- // Step 6: Create all handlers
285
- const sessionStartedEventHandler = new SessionStartedEventHandler_js_1.SessionStartedEventHandler(sessionStartedProjector);
286
- const sessionEndedEventHandler = new SessionEndedEventHandler_js_1.SessionEndedEventHandler(sessionEndedProjector);
287
- const goalAddedEventHandler = new GoalAddedEventHandler_js_1.GoalAddedEventHandler(goalAddedProjector);
288
- const goalStartedEventHandler = new GoalStartedEventHandler_js_1.GoalStartedEventHandler(goalStartedProjector);
289
- const goalUpdatedEventHandler = new GoalUpdatedEventHandler_js_1.GoalUpdatedEventHandler(goalUpdatedProjector, noOpRelationMaintenanceGoalRegistrar);
290
- const goalBlockedEventHandler = new GoalBlockedEventHandler_js_1.GoalBlockedEventHandler(goalBlockedProjector);
291
- const goalUnblockedEventHandler = new GoalUnblockedEventHandler_js_1.GoalUnblockedEventHandler(goalUnblockedProjector);
292
- const goalPausedEventHandler = new GoalPausedEventHandler_js_1.GoalPausedEventHandler(goalPausedProjector);
293
- const goalResumedEventHandler = new GoalResumedEventHandler_js_1.GoalResumedEventHandler(goalResumedProjector);
294
- const goalCompletedEventHandler = new GoalCompletedEventHandler_js_1.GoalCompletedEventHandler(goalCompletedProjector);
295
- const goalResetEventHandler = new GoalResetEventHandler_js_1.GoalResetEventHandler(goalResetProjector);
296
- const goalRemovedEventHandler = new GoalRemovedEventHandler_js_1.GoalRemovedEventHandler(goalRemovedProjector, noOpRelationMaintenanceGoalRegistrar);
297
- const goalRefinedEventHandler = new GoalRefinedEventHandler_js_1.GoalRefinedEventHandler(goalRefinedProjector);
298
- const goalProgressUpdatedEventHandler = new GoalProgressUpdatedEventHandler_js_1.GoalProgressUpdatedEventHandler(goalProgressUpdatedProjector);
299
- const goalSubmittedForReviewEventHandler = new GoalSubmittedForReviewEventHandler_js_1.GoalSubmittedForReviewEventHandler(goalSubmittedForReviewProjector);
300
- const goalQualifiedEventHandler = new GoalQualifiedEventHandler_js_1.GoalQualifiedEventHandler(goalQualifiedProjector);
301
- const goalRefinementStartedEventHandler = new GoalRefinementStartedEventHandler_js_1.GoalRefinementStartedEventHandler(goalRefinedProjector);
302
- const goalCommittedEventHandler = new GoalCommittedEventHandler_js_1.GoalCommittedEventHandler(goalCommittedProjector);
303
- const architectureDefinedEventHandler = new ArchitectureDefinedEventHandler_js_1.ArchitectureDefinedEventHandler(architectureDefinedProjector);
304
- const architectureUpdatedEventHandler = new ArchitectureUpdatedEventHandler_js_1.ArchitectureUpdatedEventHandler(architectureUpdatedProjector, noOpRelationMaintenanceGoalRegistrar);
305
- const componentAddedEventHandler = new ComponentAddedEventHandler_js_1.ComponentAddedEventHandler(componentAddedProjector);
306
- const componentUpdatedEventHandler = new ComponentUpdatedEventHandler_js_1.ComponentUpdatedEventHandler(componentUpdatedProjector, noOpRelationMaintenanceGoalRegistrar);
307
- const componentDeprecatedEventHandler = new ComponentDeprecatedEventHandler_js_1.ComponentDeprecatedEventHandler(componentDeprecatedProjector, relationDeactivationCascade, noOpRelationMaintenanceGoalRegistrar);
308
- const componentUndeprecatedEventHandler = new ComponentUndeprecatedEventHandler_js_1.ComponentUndeprecatedEventHandler(componentUndeprecatedProjector, relationReactivationCascade, noOpRelationMaintenanceGoalRegistrar);
309
- const componentRemovedEventHandler = new ComponentRemovedEventHandler_js_1.ComponentRemovedEventHandler(componentRemovedProjector, relationDeactivationCascade, noOpRelationMaintenanceGoalRegistrar);
310
- const dependencyAddedEventHandler = new DependencyAddedEventHandler_js_1.DependencyAddedEventHandler(dependencyAddedProjector);
311
- const dependencyUpdatedEventHandler = new DependencyUpdatedEventHandler_js_1.DependencyUpdatedEventHandler(dependencyUpdatedProjector, noOpRelationMaintenanceGoalRegistrar);
312
- const dependencyRemovedEventHandler = new DependencyRemovedEventHandler_js_1.DependencyRemovedEventHandler(dependencyRemovedProjector, noOpRelationMaintenanceGoalRegistrar);
313
- const decisionAddedEventHandler = new DecisionAddedEventHandler_js_1.DecisionAddedEventHandler(decisionAddedProjector);
314
- const decisionUpdatedEventHandler = new DecisionUpdatedEventHandler_js_1.DecisionUpdatedEventHandler(decisionUpdatedProjector, noOpRelationMaintenanceGoalRegistrar);
315
- const decisionReversedEventHandler = new DecisionReversedEventHandler_js_1.DecisionReversedEventHandler(decisionReversedProjector, relationDeactivationCascade);
316
- const decisionRestoredEventHandler = new DecisionRestoredEventHandler_js_1.DecisionRestoredEventHandler(decisionRestoredProjector, relationReactivationCascade, noOpRelationMaintenanceGoalRegistrar);
317
- const decisionSupersededEventHandler = new DecisionSupersededEventHandler_js_1.DecisionSupersededEventHandler(decisionSupersededProjector, relationDeactivationCascade, noOpRelationMaintenanceGoalRegistrar);
318
- const guidelineAddedEventHandler = new GuidelineAddedEventHandler_js_1.GuidelineAddedEventHandler(guidelineAddedProjector);
319
- const guidelineUpdatedEventHandler = new GuidelineUpdatedEventHandler_js_1.GuidelineUpdatedEventHandler(guidelineUpdatedProjector, noOpRelationMaintenanceGoalRegistrar);
320
- const guidelineRemovedEventHandler = new GuidelineRemovedEventHandler_js_1.GuidelineRemovedEventHandler(guidelineRemovedProjector, noOpRelationMaintenanceGoalRegistrar);
321
- const invariantAddedEventHandler = new InvariantAddedEventHandler_js_1.InvariantAddedEventHandler(invariantAddedProjector);
322
- const invariantUpdatedEventHandler = new InvariantUpdatedEventHandler_js_1.InvariantUpdatedEventHandler(invariantUpdatedProjector, noOpRelationMaintenanceGoalRegistrar);
323
- const invariantRemovedEventHandler = new InvariantRemovedEventHandler_js_1.InvariantRemovedEventHandler(invariantRemovedProjector, noOpRelationMaintenanceGoalRegistrar);
324
- const projectInitializedEventHandler = new ProjectInitializedEventHandler_js_1.ProjectInitializedEventHandler(projectInitializedProjector);
325
- const projectUpdatedEventHandler = new ProjectUpdatedEventHandler_js_1.ProjectUpdatedEventHandler(projectUpdatedProjector, noOpRelationMaintenanceGoalRegistrar);
326
- const audiencePainAddedEventHandler = new AudiencePainAddedEventHandler_js_1.AudiencePainAddedEventHandler(audiencePainAddedProjector);
327
- const audiencePainUpdatedEventHandler = new AudiencePainUpdatedEventHandler_js_1.AudiencePainUpdatedEventHandler(audiencePainUpdatedProjector, noOpRelationMaintenanceGoalRegistrar);
328
- const audienceAddedEventHandler = new AudienceAddedEventHandler_js_1.AudienceAddedEventHandler(audienceAddedProjector);
329
- const audienceUpdatedEventHandler = new AudienceUpdatedEventHandler_js_1.AudienceUpdatedEventHandler(audienceUpdatedProjector, noOpRelationMaintenanceGoalRegistrar);
330
- const audienceRemovedEventHandler = new AudienceRemovedEventHandler_js_1.AudienceRemovedEventHandler(audienceRemovedProjector, noOpRelationMaintenanceGoalRegistrar);
331
- const valuePropositionAddedEventHandler = new ValuePropositionAddedEventHandler_js_1.ValuePropositionAddedEventHandler(valuePropositionAddedProjector);
332
- const valuePropositionUpdatedEventHandler = new ValuePropositionUpdatedEventHandler_js_1.ValuePropositionUpdatedEventHandler(valuePropositionUpdatedProjector, noOpRelationMaintenanceGoalRegistrar);
333
- const valuePropositionRemovedEventHandler = new ValuePropositionRemovedEventHandler_js_1.ValuePropositionRemovedEventHandler(valuePropositionRemovedProjector, noOpRelationMaintenanceGoalRegistrar);
334
- const relationAddedEventHandler = new RelationAddedEventHandler_js_1.RelationAddedEventHandler(relationAddedProjector);
335
- const relationDeactivatedEventHandler = new RelationDeactivatedEventHandler_js_1.RelationDeactivatedEventHandler(relationDeactivatedProjector);
336
- const relationReactivatedEventHandler = new RelationReactivatedEventHandler_js_1.RelationReactivatedEventHandler(relationReactivatedProjector);
337
- const relationRemovedEventHandler = new RelationRemovedEventHandler_js_1.RelationRemovedEventHandler(relationRemovedProjector);
338
- const goalRejectedEventHandler = new GoalRejectedEventHandler_js_1.GoalRejectedEventHandler(goalRejectedProjector);
339
- const goalSubmittedEventHandler = new GoalSubmittedEventHandler_js_1.GoalSubmittedEventHandler(goalSubmittedProjector);
340
- const goalCodifyingStartedEventHandler = new GoalCodifyingStartedEventHandler_js_1.GoalCodifyingStartedEventHandler(goalCodifyingStartedProjector);
341
- const goalClosedEventHandler = new GoalClosedEventHandler_js_1.GoalClosedEventHandler(goalClosedProjector);
342
- const goalApprovedEventHandler = new GoalApprovedEventHandler_js_1.GoalApprovedEventHandler(goalApprovedProjector);
343
- const goalStatusMigratedEventHandler = new GoalStatusMigratedEventHandler_js_1.GoalStatusMigratedEventHandler(goalStatusMigratedProjector);
344
- const componentRenamedEventHandler = new ComponentRenamedEventHandler_js_1.ComponentRenamedEventHandler(componentRenamedProjector);
345
- const workerIdentifiedEventHandler = new WorkerIdentifiedEventHandler_js_1.WorkerIdentifiedEventHandler(workerIdentifiedProjector);
346
- // Step 7: Register all handlers to sequential bus
347
- sequentialEventBus.subscribe("SessionStartedEvent", sessionStartedEventHandler);
348
- sequentialEventBus.subscribe("SessionEndedEvent", sessionEndedEventHandler);
349
- sequentialEventBus.subscribe("GoalAddedEvent", goalAddedEventHandler);
350
- sequentialEventBus.subscribe("GoalStartedEvent", goalStartedEventHandler);
351
- sequentialEventBus.subscribe("GoalUpdatedEvent", goalUpdatedEventHandler);
352
- sequentialEventBus.subscribe("GoalBlockedEvent", goalBlockedEventHandler);
353
- sequentialEventBus.subscribe("GoalUnblockedEvent", goalUnblockedEventHandler);
354
- sequentialEventBus.subscribe("GoalPausedEvent", goalPausedEventHandler);
355
- sequentialEventBus.subscribe("GoalResumedEvent", goalResumedEventHandler);
356
- sequentialEventBus.subscribe("GoalCompletedEvent", goalCompletedEventHandler);
357
- sequentialEventBus.subscribe("GoalResetEvent", goalResetEventHandler);
358
- sequentialEventBus.subscribe("GoalRemovedEvent", goalRemovedEventHandler);
359
- sequentialEventBus.subscribe("GoalRefinedEvent", goalRefinedEventHandler);
360
- sequentialEventBus.subscribe("GoalProgressUpdatedEvent", goalProgressUpdatedEventHandler);
361
- sequentialEventBus.subscribe("GoalSubmittedForReviewEvent", goalSubmittedForReviewEventHandler);
362
- sequentialEventBus.subscribe("GoalQualifiedEvent", goalQualifiedEventHandler);
363
- sequentialEventBus.subscribe("GoalRefinementStartedEvent", goalRefinementStartedEventHandler);
364
- sequentialEventBus.subscribe("GoalCommittedEvent", goalCommittedEventHandler);
365
- sequentialEventBus.subscribe("ArchitectureDefinedEvent", architectureDefinedEventHandler);
366
- sequentialEventBus.subscribe("ArchitectureUpdatedEvent", architectureUpdatedEventHandler);
367
- sequentialEventBus.subscribe("ComponentAddedEvent", componentAddedEventHandler);
368
- sequentialEventBus.subscribe("ComponentUpdatedEvent", componentUpdatedEventHandler);
369
- sequentialEventBus.subscribe("ComponentDeprecatedEvent", componentDeprecatedEventHandler);
370
- sequentialEventBus.subscribe("ComponentUndeprecatedEvent", componentUndeprecatedEventHandler);
371
- sequentialEventBus.subscribe("ComponentRemovedEvent", componentRemovedEventHandler);
372
- sequentialEventBus.subscribe("DependencyAddedEvent", dependencyAddedEventHandler);
373
- sequentialEventBus.subscribe("DependencyUpdatedEvent", dependencyUpdatedEventHandler);
374
- sequentialEventBus.subscribe("DependencyRemovedEvent", dependencyRemovedEventHandler);
375
- sequentialEventBus.subscribe("DecisionAddedEvent", decisionAddedEventHandler);
376
- sequentialEventBus.subscribe("DecisionUpdatedEvent", decisionUpdatedEventHandler);
377
- sequentialEventBus.subscribe("DecisionReversedEvent", decisionReversedEventHandler);
378
- sequentialEventBus.subscribe("DecisionRestoredEvent", decisionRestoredEventHandler);
379
- sequentialEventBus.subscribe("DecisionSupersededEvent", decisionSupersededEventHandler);
380
- sequentialEventBus.subscribe("GuidelineAddedEvent", guidelineAddedEventHandler);
381
- sequentialEventBus.subscribe("GuidelineUpdatedEvent", guidelineUpdatedEventHandler);
382
- sequentialEventBus.subscribe("GuidelineRemovedEvent", guidelineRemovedEventHandler);
383
- sequentialEventBus.subscribe("InvariantAddedEvent", invariantAddedEventHandler);
384
- sequentialEventBus.subscribe("InvariantUpdatedEvent", invariantUpdatedEventHandler);
385
- sequentialEventBus.subscribe("InvariantRemovedEvent", invariantRemovedEventHandler);
386
- sequentialEventBus.subscribe("ProjectInitializedEvent", projectInitializedEventHandler);
387
- sequentialEventBus.subscribe("ProjectUpdatedEvent", projectUpdatedEventHandler);
388
- sequentialEventBus.subscribe("AudiencePainAddedEvent", audiencePainAddedEventHandler);
389
- sequentialEventBus.subscribe("AudiencePainUpdatedEvent", audiencePainUpdatedEventHandler);
390
- sequentialEventBus.subscribe("AudienceAddedEvent", audienceAddedEventHandler);
391
- sequentialEventBus.subscribe("AudienceUpdatedEvent", audienceUpdatedEventHandler);
392
- sequentialEventBus.subscribe("AudienceRemovedEvent", audienceRemovedEventHandler);
393
- sequentialEventBus.subscribe("ValuePropositionAddedEvent", valuePropositionAddedEventHandler);
394
- sequentialEventBus.subscribe("ValuePropositionUpdatedEvent", valuePropositionUpdatedEventHandler);
395
- sequentialEventBus.subscribe("ValuePropositionRemovedEvent", valuePropositionRemovedEventHandler);
396
- sequentialEventBus.subscribe("RelationAddedEvent", relationAddedEventHandler);
397
- sequentialEventBus.subscribe("RelationDeactivatedEvent", relationDeactivatedEventHandler);
398
- sequentialEventBus.subscribe("RelationReactivatedEvent", relationReactivatedEventHandler);
399
- sequentialEventBus.subscribe("RelationRemovedEvent", relationRemovedEventHandler);
400
- sequentialEventBus.subscribe("GoalRejectedEvent", goalRejectedEventHandler);
401
- sequentialEventBus.subscribe("GoalSubmittedEvent", goalSubmittedEventHandler);
402
- sequentialEventBus.subscribe("GoalCodifyingStartedEvent", goalCodifyingStartedEventHandler);
403
- sequentialEventBus.subscribe("GoalClosedEvent", goalClosedEventHandler);
404
- sequentialEventBus.subscribe("GoalApprovedEvent", goalApprovedEventHandler);
405
- sequentialEventBus.subscribe("GoalStatusMigratedEvent", goalStatusMigratedEventHandler);
406
- sequentialEventBus.subscribe("ComponentRenamedEvent", componentRenamedEventHandler);
407
- sequentialEventBus.subscribe("WorkerIdentifiedEvent", workerIdentifiedEventHandler);
408
- // Step 8: Get all events from event store (file-based, still intact)
409
- this.logger.debug(`${this.tag} Loading events from event store`);
410
- const events = await this.eventStore.getAllEvents();
411
- this.logger.info(`${this.tag} Loaded events for replay`, { eventCount: events.length });
412
- // Step 9: Replay each event through the sequential event bus
413
- let processedCount = 0;
414
- for (const event of events) {
415
- try {
416
- await sequentialEventBus.publish(event);
417
- processedCount++;
418
- }
419
- catch (error) {
420
- this.logger.error(`${this.tag} Failed to replay event`, error instanceof Error ? error : undefined, {
421
- eventType: event.type,
422
- aggregateId: event.aggregateId,
423
- processedSoFar: processedCount,
424
- });
425
- throw error;
426
- }
427
- }
428
- // Step 10: Close the new database connection
429
- if (newDb && newDb.open) {
430
- newDb.pragma("wal_checkpoint(TRUNCATE)");
431
- newDb.close();
432
- }
433
- this.logger.info(`${this.tag} Database rebuild complete`, { eventsReplayed: processedCount });
434
- return {
435
- eventsReplayed: processedCount,
436
- success: true,
437
- };
438
- }
439
- }
440
- exports.TemporarySequentialDatabaseRebuildService = TemporarySequentialDatabaseRebuildService;
441
- //# sourceMappingURL=TemporarySequentialDatabaseRebuildService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TemporarySequentialDatabaseRebuildService.js","sourceRoot":"","sources":["../../../src/infrastructure/local/TemporarySequentialDatabaseRebuildService.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;;;;;AAEH,wDAA0B;AAC1B,gDAAwB;AACxB,oEAAsC;AAOtC,8GAAwG;AACxG,0EAAoE;AACpE,8EAA6E;AAE7E,aAAa;AACb,iHAA2G;AAC3G,2GAAqG;AACrG,kGAA4F;AAC5F,wGAAkG;AAClG,yGAAmG;AACnG,wGAAkG;AAClG,8GAAwG;AACxG,sGAAgG;AAChG,yGAAmG;AACnG,+GAAyG;AACzG,oGAA8F;AAC9F,yGAAmG;AACnG,yGAAmG;AACnG,kIAA4H;AAC5H,+HAAyH;AACzH,8GAAwG;AACxG,6GAAuG;AACvG,gIAA0H;AAC1H,gIAA0H;AAC1H,iHAA2G;AAC3G,wHAAkH;AAClH,iIAA2H;AAC3H,uIAAiI;AACjI,wHAAkH;AAClH,qHAA+G;AAC/G,4HAAsH;AACtH,4HAAsH;AACtH,8GAAwG;AACxG,qHAA+G;AAC/G,wHAAkH;AAClH,wHAAkH;AAClH,8HAAwH;AACxH,iHAA2G;AAC3G,wHAAkH;AAClH,wHAAkH;AAClH,iHAA2G;AAC3G,wHAAkH;AAClH,wHAAkH;AAClH,uHAAiH;AACjH,iHAA2G;AAC3G,2HAAqH;AACrH,kIAA4H;AAC5H,8GAAwG;AACxG,qHAA+G;AAC/G,qHAA+G;AAC/G,uIAAiI;AACjI,8IAAwI;AACxI,8IAAwI;AACxI,8GAAwG;AACxG,2HAAqH;AACrH,iIAA2H;AAC3H,sGAAgG;AAChG,iIAA2H;AAC3H,qHAA+G;AAC/G,2GAAqG;AACrG,6GAAuG;AACvG,2HAAqH;AACrH,sGAAgG;AAChG,4GAAsG;AACtG,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