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
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GoalCompleteOutputBuilder = void 0;
|
|
4
|
-
const TerminalOutputBuilder_js_1 = require("../../../output/TerminalOutputBuilder.js");
|
|
5
|
-
/**
|
|
6
|
-
* Specialized builder for goal.complete command output.
|
|
7
|
-
* Encapsulates all output rendering for the complete goal command.
|
|
8
|
-
*
|
|
9
|
-
* Pattern: Output builders contain ALL prompt and output content.
|
|
10
|
-
* Command files must not duplicate or add additional output after calling the builder.
|
|
11
|
-
*/
|
|
12
|
-
class GoalCompleteOutputBuilder {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.builder = new TerminalOutputBuilder_js_1.TerminalOutputBuilder();
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Build deprecation warning output.
|
|
18
|
-
* Advises users to switch to 'jumbo goal codify' + 'jumbo goal close'.
|
|
19
|
-
*/
|
|
20
|
-
buildDeprecationWarning() {
|
|
21
|
-
this.builder.reset();
|
|
22
|
-
this.builder.addPrompt("⚠ Deprecation Notice: 'jumbo goal complete' is deprecated. Use 'jumbo goal codify' followed by 'jumbo goal close' instead.\n" +
|
|
23
|
-
"---");
|
|
24
|
-
return this.builder.build();
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Build output for successful goal completion.
|
|
28
|
-
* Renders learning capture prompt, entity review, and optional next goal information.
|
|
29
|
-
*/
|
|
30
|
-
buildSuccess(response) {
|
|
31
|
-
this.builder.reset();
|
|
32
|
-
// Section 1: Capture new learnings
|
|
33
|
-
this.builder.addPrompt("# Goal Completed - Capture Learnings\n" +
|
|
34
|
-
"@LLM: Reflect on your interaction with the user during this goal.\n" +
|
|
35
|
-
"Did it surface any NEW invariants, guidelines, decisions, components, dependencies, or architectural patterns not yet captured?\n" +
|
|
36
|
-
"Were you corrected in a way that reveals a missing rule?\n" +
|
|
37
|
-
"Only propose additions that are:\n" +
|
|
38
|
-
" - Universal (applicable beyond this specific goal)\n" +
|
|
39
|
-
" - Dense (one sentence, no examples unless the example IS the rule)\n" +
|
|
40
|
-
" - Actionable (changes how code is written or decisions are made)\n" +
|
|
41
|
-
"If nothing qualifies, say so. Avoid restating what's already captured.\n" +
|
|
42
|
-
"Run 'jumbo --help' for command details.");
|
|
43
|
-
// Section 2: Review registered entities for staleness
|
|
44
|
-
this.builder.addPrompt("## Review Registered Entities\n" +
|
|
45
|
-
"@LLM: This goal may have changed the codebase in ways that affect registered entities.\n" +
|
|
46
|
-
"For each entity type below, consider whether any existing registrations need updating based on the work performed.\n\n" +
|
|
47
|
-
"### Components\n" +
|
|
48
|
-
"Did any component descriptions, responsibilities, or paths change? Were any components deprecated or removed?\n" +
|
|
49
|
-
" Update: jumbo component update --id <id> --description \"...\" --responsibility \"...\"\n" +
|
|
50
|
-
" Deprecate: jumbo component deprecate --id <id> --reason \"...\"\n" +
|
|
51
|
-
" Add new: jumbo component add --name \"...\" --type \"...\" --description \"...\" --responsibility \"...\" --path \"...\"\n\n" +
|
|
52
|
-
"### Decisions\n" +
|
|
53
|
-
"Were any architectural decisions made, superseded, or invalidated by this work?\n" +
|
|
54
|
-
" Add: jumbo decision add --title \"...\" --context \"...\" --rationale \"...\"\n" +
|
|
55
|
-
" Update: jumbo decision update --id <id> --rationale \"...\"\n" +
|
|
56
|
-
" Supersede: jumbo decision supersede --id <id> --new-decision-id <new-id>\n\n" +
|
|
57
|
-
"### Invariants\n" +
|
|
58
|
-
"Were any invariants introduced, weakened, strengthened, or made obsolete?\n" +
|
|
59
|
-
" Add: jumbo invariant add --title \"...\" --description \"...\" --enforcement \"...\"\n" +
|
|
60
|
-
" Update: jumbo invariant update --id <id> --description \"...\" --enforcement \"...\"\n" +
|
|
61
|
-
" Remove: jumbo invariant remove --id <id>\n\n" +
|
|
62
|
-
"### Guidelines\n" +
|
|
63
|
-
"Were any coding, testing, or documentation guidelines introduced or changed?\n" +
|
|
64
|
-
" Add: jumbo guideline add --category \"...\" --title \"...\" --description \"...\"\n" +
|
|
65
|
-
" Update: jumbo guideline update --guideline-id <id> --description \"...\"\n" +
|
|
66
|
-
" Remove: jumbo guideline remove --guideline-id <id>\n\n" +
|
|
67
|
-
"### Dependencies\n" +
|
|
68
|
-
"Were any inter-component dependencies added, removed, or changed?\n" +
|
|
69
|
-
" Add: jumbo dependency add --consumer-id <id> --provider-id <id> --contract \"...\"\n" +
|
|
70
|
-
" Update: jumbo dependency update --id <id> --contract \"...\"\n" +
|
|
71
|
-
" Remove: jumbo dependency remove --id <id>\n\n" +
|
|
72
|
-
"### Architecture\n" +
|
|
73
|
-
"Did this work change the architecture style, principles, or patterns?\n" +
|
|
74
|
-
" Update: jumbo architecture update --style \"...\" --principles \"...\"\n\n" +
|
|
75
|
-
"### Relations\n" +
|
|
76
|
-
"Should any new relations be established between entities touched by this goal?\n" +
|
|
77
|
-
" Add: jumbo relation add --from-type <type> --from-id <id> --to-type <type> --to-id <id> --type <type> --strength <level>");
|
|
78
|
-
// Next goal in chain (if exists)
|
|
79
|
-
if (response.nextGoal) {
|
|
80
|
-
this.builder.addPrompt("## Next goal in chain:");
|
|
81
|
-
this.builder.addData({
|
|
82
|
-
goalId: response.nextGoal.goalId,
|
|
83
|
-
objective: response.nextGoal.objective,
|
|
84
|
-
status: response.nextGoal.status,
|
|
85
|
-
});
|
|
86
|
-
this.builder.addPrompt("Start the next goal immediately. Run:\n" +
|
|
87
|
-
` jumbo goal start --id ${response.nextGoal.goalId}`);
|
|
88
|
-
}
|
|
89
|
-
return this.builder.build();
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Build output for goal completion failure.
|
|
93
|
-
* Renders error message when goal completion fails.
|
|
94
|
-
*/
|
|
95
|
-
buildFailureError(error) {
|
|
96
|
-
this.builder.reset();
|
|
97
|
-
this.builder.addPrompt("✗ Failed to complete goal");
|
|
98
|
-
this.builder.addData({
|
|
99
|
-
message: error instanceof Error ? error.message : error
|
|
100
|
-
});
|
|
101
|
-
return this.builder.build();
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
exports.GoalCompleteOutputBuilder = GoalCompleteOutputBuilder;
|
|
105
|
-
//# sourceMappingURL=GoalCompleteOutputBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoalCompleteOutputBuilder.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AAIjF;;;;;;GAMG;AACH,MAAa,yBAAyB;IAGpC;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,gDAAqB,EAAE,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACH,uBAAuB;QACrB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,8HAA8H;YAC9H,KAAK,CACN,CAAC;QACF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,QAA8B;QACzC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAErB,mCAAmC;QACnC,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,wCAAwC;YACxC,qEAAqE;YACrE,mIAAmI;YACnI,4DAA4D;YAC5D,oCAAoC;YACpC,wDAAwD;YACxD,wEAAwE;YACxE,sEAAsE;YACtE,0EAA0E;YAC1E,yCAAyC,CAC1C,CAAC;QAEF,sDAAsD;QACtD,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,iCAAiC;YACjC,0FAA0F;YAC1F,wHAAwH;YACxH,kBAAkB;YAClB,iHAAiH;YACjH,6FAA6F;YAC7F,qEAAqE;YACrE,gIAAgI;YAChI,iBAAiB;YACjB,mFAAmF;YACnF,mFAAmF;YACnF,iEAAiE;YACjE,gFAAgF;YAChF,kBAAkB;YAClB,6EAA6E;YAC7E,0FAA0F;YAC1F,0FAA0F;YAC1F,gDAAgD;YAChD,kBAAkB;YAClB,gFAAgF;YAChF,uFAAuF;YACvF,8EAA8E;YAC9E,0DAA0D;YAC1D,oBAAoB;YACpB,qEAAqE;YACrE,wFAAwF;YACxF,kEAAkE;YAClE,iDAAiD;YACjD,oBAAoB;YACpB,yEAAyE;YACzE,8EAA8E;YAC9E,iBAAiB;YACjB,kFAAkF;YAClF,4HAA4H,CAC7H,CAAC;QAEF,iCAAiC;QACjC,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;YACtB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC;YACjD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;gBACnB,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM;gBAChC,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAAC,SAAS;gBACtC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM;aACjC,CAAC,CAAC;YACH,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,yCAAyC;gBACzC,2BAA2B,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CACtD,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACH,iBAAiB,CAAC,KAAqB;QACrC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YACnB,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;SACxD,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF;AA5GD,8DA4GC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Command: jumbo goal complete
|
|
3
|
-
*
|
|
4
|
-
* @deprecated Use 'jumbo goal codify' followed by 'jumbo goal close' instead.
|
|
5
|
-
* Completes a QUALIFIED goal. Retained for backward compatibility.
|
|
6
|
-
*/
|
|
7
|
-
import { CommandMetadata } from "../../registry/CommandMetadata.js";
|
|
8
|
-
import { IApplicationContainer } from "../../../../../application/host/IApplicationContainer.js";
|
|
9
|
-
/**
|
|
10
|
-
* Command metadata for auto-registration
|
|
11
|
-
*/
|
|
12
|
-
export declare const metadata: CommandMetadata;
|
|
13
|
-
/**
|
|
14
|
-
* Command handler
|
|
15
|
-
* Called by Commander with parsed options
|
|
16
|
-
*/
|
|
17
|
-
export declare function goalComplete(options: {
|
|
18
|
-
id: string;
|
|
19
|
-
}, container: IApplicationContainer): Promise<void>;
|
|
20
|
-
//# sourceMappingURL=goal.complete.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"goal.complete.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/goals/complete/goal.complete.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAIjG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAiBtB,CAAC;AAEF;;;GAGG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EACvB,SAAS,EAAE,qBAAqB,iBAwBjC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CLI Command: jumbo goal complete
|
|
4
|
-
*
|
|
5
|
-
* @deprecated Use 'jumbo goal codify' followed by 'jumbo goal close' instead.
|
|
6
|
-
* Completes a QUALIFIED goal. Retained for backward compatibility.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.metadata = void 0;
|
|
10
|
-
exports.goalComplete = goalComplete;
|
|
11
|
-
const Renderer_js_1 = require("../../../rendering/Renderer.js");
|
|
12
|
-
const GoalCompleteOutputBuilder_js_1 = require("./GoalCompleteOutputBuilder.js");
|
|
13
|
-
/**
|
|
14
|
-
* Command metadata for auto-registration
|
|
15
|
-
*/
|
|
16
|
-
exports.metadata = {
|
|
17
|
-
description: "[deprecated] Mark a qualified goal as completed. Use 'goal codify' + 'goal close' instead.",
|
|
18
|
-
category: "work",
|
|
19
|
-
requiredOptions: [
|
|
20
|
-
{
|
|
21
|
-
flags: "-i, --id <id>",
|
|
22
|
-
description: "ID of the goal to complete"
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
options: [],
|
|
26
|
-
examples: [
|
|
27
|
-
{
|
|
28
|
-
command: "jumbo goal complete --id goal_abc123",
|
|
29
|
-
description: "Complete a qualified goal (deprecated)"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
related: ["goal codify", "goal close"]
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Command handler
|
|
36
|
-
* Called by Commander with parsed options
|
|
37
|
-
*/
|
|
38
|
-
async function goalComplete(options, container) {
|
|
39
|
-
const renderer = Renderer_js_1.Renderer.getInstance();
|
|
40
|
-
try {
|
|
41
|
-
// 1. Emit deprecation warning
|
|
42
|
-
const outputBuilder = new GoalCompleteOutputBuilder_js_1.GoalCompleteOutputBuilder();
|
|
43
|
-
const warning = outputBuilder.buildDeprecationWarning();
|
|
44
|
-
renderer.info(warning.toHumanReadable());
|
|
45
|
-
// 2. Execute via controller
|
|
46
|
-
const response = await container.completeGoalController.handle({
|
|
47
|
-
goalId: options.id,
|
|
48
|
-
});
|
|
49
|
-
// 3. Build and render output using builder pattern
|
|
50
|
-
const output = outputBuilder.buildSuccess(response);
|
|
51
|
-
renderer.info(output.toHumanReadable());
|
|
52
|
-
}
|
|
53
|
-
catch (error) {
|
|
54
|
-
renderer.error("Failed to complete goal", error instanceof Error ? error : String(error));
|
|
55
|
-
process.exit(1);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=goal.complete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"goal.complete.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/goals/complete/goal.complete.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAiCH,oCA0BC;AAvDD,gEAA0D;AAC1D,iFAA2E;AAE3E;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,4FAA4F;IACzG,QAAQ,EAAE,MAAM;IAChB,eAAe,EAAE;QACf;YACE,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,4BAA4B;SAC1C;KACF;IACD,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,sCAAsC;YAC/C,WAAW,EAAE,wCAAwC;SACtD;KACF;IACD,OAAO,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;CACvC,CAAC;AAEF;;;GAGG;AACI,KAAK,UAAU,YAAY,CAChC,OAAuB,EACvB,SAAgC;IAEhC,MAAM,QAAQ,GAAG,sBAAQ,CAAC,WAAW,EAAE,CAAC;IAExC,IAAI,CAAC;QACH,8BAA8B;QAC9B,MAAM,aAAa,GAAG,IAAI,wDAAyB,EAAE,CAAC;QACtD,MAAM,OAAO,GAAG,aAAa,CAAC,uBAAuB,EAAE,CAAC;QACxD,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;QAEzC,4BAA4B;QAC5B,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,sBAAsB,CAAC,MAAM,CAAC;YAC7D,MAAM,EAAE,OAAO,CAAC,EAAE;SACnB,CAAC,CAAC;QAEH,mDAAmD;QACnD,MAAM,MAAM,GAAG,aAAa,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAEpD,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;IAE1C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Command: jumbo db rebuild
|
|
3
|
-
*
|
|
4
|
-
* Rebuilds the materialized views (SQLite database) by replaying all events
|
|
5
|
-
* from the event store. Useful for recovering from database corruption.
|
|
6
|
-
*
|
|
7
|
-
* This command delegates to the application layer for the rebuild operation.
|
|
8
|
-
* All infrastructure concerns (closing connections, deleting files) are
|
|
9
|
-
* handled by the infrastructure layer via dependency inversion.
|
|
10
|
-
*/
|
|
11
|
-
import { CommandMetadata } from "../../../registry/CommandMetadata.js";
|
|
12
|
-
import { IApplicationContainer } from "../../../../../../application/host/IApplicationContainer.js";
|
|
13
|
-
/**
|
|
14
|
-
* Command metadata for auto-registration
|
|
15
|
-
*/
|
|
16
|
-
export declare const metadata: CommandMetadata;
|
|
17
|
-
interface RebuildOptions {
|
|
18
|
-
yes?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Command handler
|
|
22
|
-
* Called by Commander with parsed options
|
|
23
|
-
*/
|
|
24
|
-
export declare function dbRebuild(options: RebuildOptions, container: IApplicationContainer): Promise<void>;
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=db.rebuild.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"db.rebuild.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAGpG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAmBtB,CAAC;AAEF,UAAU,cAAc;IACtB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,qBAAqB,iBAgCxF"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CLI Command: jumbo db rebuild
|
|
4
|
-
*
|
|
5
|
-
* Rebuilds the materialized views (SQLite database) by replaying all events
|
|
6
|
-
* from the event store. Useful for recovering from database corruption.
|
|
7
|
-
*
|
|
8
|
-
* This command delegates to the application layer for the rebuild operation.
|
|
9
|
-
* All infrastructure concerns (closing connections, deleting files) are
|
|
10
|
-
* handled by the infrastructure layer via dependency inversion.
|
|
11
|
-
*/
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.metadata = void 0;
|
|
14
|
-
exports.dbRebuild = dbRebuild;
|
|
15
|
-
const Renderer_js_1 = require("../../../../rendering/Renderer.js");
|
|
16
|
-
/**
|
|
17
|
-
* Command metadata for auto-registration
|
|
18
|
-
*/
|
|
19
|
-
exports.metadata = {
|
|
20
|
-
description: "Rebuild the database from the event store",
|
|
21
|
-
options: [
|
|
22
|
-
{
|
|
23
|
-
flags: "--yes",
|
|
24
|
-
description: "Skip confirmation prompt",
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
examples: [
|
|
28
|
-
{
|
|
29
|
-
command: "jumbo db rebuild",
|
|
30
|
-
description: "Rebuild the database with confirmation prompt",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
command: "jumbo db rebuild --yes",
|
|
34
|
-
description: "Rebuild the database without confirmation",
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
related: [],
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Command handler
|
|
41
|
-
* Called by Commander with parsed options
|
|
42
|
-
*/
|
|
43
|
-
async function dbRebuild(options, container) {
|
|
44
|
-
const renderer = Renderer_js_1.Renderer.getInstance();
|
|
45
|
-
try {
|
|
46
|
-
// Confirm destructive operation
|
|
47
|
-
if (!options.yes) {
|
|
48
|
-
renderer.info("⚠️ WARNING: This will delete and rebuild the database.\n" +
|
|
49
|
-
"All materialized views will be reconstructed from the event store.\n");
|
|
50
|
-
renderer.error("Confirmation required", "Use --yes flag to proceed");
|
|
51
|
-
process.exit(1);
|
|
52
|
-
}
|
|
53
|
-
renderer.info("Starting database rebuild...\n");
|
|
54
|
-
// Delegate to controller — all db lifecycle concerns handled internally
|
|
55
|
-
const response = await container.rebuildDatabaseController.handle({
|
|
56
|
-
skipConfirmation: options.yes,
|
|
57
|
-
});
|
|
58
|
-
// Success output
|
|
59
|
-
renderer.success("Database rebuilt successfully", {
|
|
60
|
-
eventsReplayed: response.eventsReplayed,
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
catch (error) {
|
|
64
|
-
renderer.error("Failed to rebuild database", error instanceof Error ? error : String(error));
|
|
65
|
-
process.exit(1);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=db.rebuild.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"db.rebuild.js","sourceRoot":"","sources":["../../../../../../../src/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAsCH,8BAgCC;AAlED,mEAA6D;AAE7D;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,2CAA2C;IACxD,OAAO,EAAE;QACP;YACE,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,0BAA0B;SACxC;KACF;IACD,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,+CAA+C;SAC7D;QACD;YACE,OAAO,EAAE,wBAAwB;YACjC,WAAW,EAAE,2CAA2C;SACzD;KACF;IACD,OAAO,EAAE,EAAE;CACZ,CAAC;AAMF;;;GAGG;AACI,KAAK,UAAU,SAAS,CAAC,OAAuB,EAAE,SAAgC;IACvF,MAAM,QAAQ,GAAG,sBAAQ,CAAC,WAAW,EAAE,CAAC;IAExC,IAAI,CAAC;QACH,gCAAgC;QAChC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;YACjB,QAAQ,CAAC,IAAI,CACX,2DAA2D;gBAC3D,sEAAsE,CACvE,CAAC;YACF,QAAQ,CAAC,KAAK,CAAC,uBAAuB,EAAE,2BAA2B,CAAC,CAAC;YACrE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,QAAQ,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;QAEhD,wEAAwE;QACxE,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,yBAAyB,CAAC,MAAM,CAAC;YAChE,gBAAgB,EAAE,OAAO,CAAC,GAAG;SAC9B,CAAC,CAAC;QAEH,iBAAiB;QACjB,QAAQ,CAAC,OAAO,CAAC,+BAA+B,EAAE;YAChD,cAAc,EAAE,QAAQ,CAAC,cAAc;SACxC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,KAAK,CACZ,4BAA4B,EAC5B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAC/C,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TerminalOutput } from '../../../output/TerminalOutput.js';
|
|
2
|
-
import { MigrateDependenciesResponse } from '../../../../../application/maintenance/migrate-dependencies/MigrateDependenciesResponse.js';
|
|
3
|
-
/**
|
|
4
|
-
* Specialized builder for dependency migration command output.
|
|
5
|
-
* Encapsulates all output rendering for the migrate-dependencies command.
|
|
6
|
-
*/
|
|
7
|
-
export declare class MigrateDependenciesOutputBuilder {
|
|
8
|
-
private builder;
|
|
9
|
-
constructor();
|
|
10
|
-
buildSuccess(response: MigrateDependenciesResponse): TerminalOutput;
|
|
11
|
-
buildFailureError(error: Error | string): TerminalOutput;
|
|
12
|
-
private formatSkipped;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=MigrateDependenciesOutputBuilder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MigrateDependenciesOutputBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,4FAA4F,CAAC;AAEzI;;;GAGG;AACH,qBAAa,gCAAgC;IAC3C,OAAO,CAAC,OAAO,CAAwB;;IAMvC,YAAY,CAAC,QAAQ,EAAE,2BAA2B,GAAG,cAAc;IA6CnE,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,cAAc;IASxD,OAAO,CAAC,aAAa;CAOtB"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MigrateDependenciesOutputBuilder = void 0;
|
|
4
|
-
const TerminalOutputBuilder_js_1 = require("../../../output/TerminalOutputBuilder.js");
|
|
5
|
-
/**
|
|
6
|
-
* Specialized builder for dependency migration command output.
|
|
7
|
-
* Encapsulates all output rendering for the migrate-dependencies command.
|
|
8
|
-
*/
|
|
9
|
-
class MigrateDependenciesOutputBuilder {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.builder = new TerminalOutputBuilder_js_1.TerminalOutputBuilder();
|
|
12
|
-
}
|
|
13
|
-
buildSuccess(response) {
|
|
14
|
-
this.builder.reset();
|
|
15
|
-
const prefix = response.dryRun ? "[DRY RUN] " : "";
|
|
16
|
-
if (response.totalLegacy === 0) {
|
|
17
|
-
this.builder.addPrompt(`${prefix}No legacy component-coupling dependencies found. Nothing to migrate.`);
|
|
18
|
-
return this.builder.build();
|
|
19
|
-
}
|
|
20
|
-
if (response.converted.length === 0 && response.skipped.length > 0) {
|
|
21
|
-
this.builder.addPrompt(`${prefix}All ${response.totalLegacy} legacy dependencies were skipped.\n\n` +
|
|
22
|
-
this.formatSkipped(response));
|
|
23
|
-
return this.builder.build();
|
|
24
|
-
}
|
|
25
|
-
let output = `${prefix}Migration complete.\n\n` +
|
|
26
|
-
` Legacy dependencies found: ${response.totalLegacy}\n` +
|
|
27
|
-
` Converted to relations: ${response.converted.length}\n` +
|
|
28
|
-
` Skipped: ${response.skipped.length}\n`;
|
|
29
|
-
if (response.converted.length > 0) {
|
|
30
|
-
output += "\nConverted:\n";
|
|
31
|
-
for (const c of response.converted) {
|
|
32
|
-
output += ` ${c.fromEntityId} → ${c.toEntityId} (relation: ${c.relationId})\n`;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (response.skipped.length > 0) {
|
|
36
|
-
output += "\n" + this.formatSkipped(response);
|
|
37
|
-
}
|
|
38
|
-
if (!response.dryRun) {
|
|
39
|
-
output += "\nNext step: Run 'jumbo db rebuild --yes' to rebuild projections.";
|
|
40
|
-
}
|
|
41
|
-
this.builder.addPrompt(output);
|
|
42
|
-
return this.builder.build();
|
|
43
|
-
}
|
|
44
|
-
buildFailureError(error) {
|
|
45
|
-
this.builder.reset();
|
|
46
|
-
this.builder.addPrompt("Failed to migrate dependencies");
|
|
47
|
-
this.builder.addData({
|
|
48
|
-
message: error instanceof Error ? error.message : error
|
|
49
|
-
});
|
|
50
|
-
return this.builder.build();
|
|
51
|
-
}
|
|
52
|
-
formatSkipped(response) {
|
|
53
|
-
let output = "Skipped:\n";
|
|
54
|
-
for (const s of response.skipped) {
|
|
55
|
-
output += ` ${s.dependencyId}: ${s.reason}\n`;
|
|
56
|
-
}
|
|
57
|
-
return output;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.MigrateDependenciesOutputBuilder = MigrateDependenciesOutputBuilder;
|
|
61
|
-
//# sourceMappingURL=MigrateDependenciesOutputBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MigrateDependenciesOutputBuilder.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AAIjF;;;GAGG;AACH,MAAa,gCAAgC;IAG3C;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,gDAAqB,EAAE,CAAC;IAC7C,CAAC;IAED,YAAY,CAAC,QAAqC;QAChD,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAErB,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;QAEnD,IAAI,QAAQ,CAAC,WAAW,KAAK,CAAC,EAAE,CAAC;YAC/B,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,GAAG,MAAM,sEAAsE,CAChF,CAAC;YACF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAC9B,CAAC;QAED,IAAI,QAAQ,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnE,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,GAAG,MAAM,OAAO,QAAQ,CAAC,WAAW,wCAAwC;gBAC5E,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAC7B,CAAC;YACF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAC9B,CAAC;QAED,IAAI,MAAM,GACR,GAAG,MAAM,yBAAyB;YAClC,iCAAiC,QAAQ,CAAC,WAAW,IAAI;YACzD,iCAAiC,QAAQ,CAAC,SAAS,CAAC,MAAM,IAAI;YAC9D,iCAAiC,QAAQ,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC;QAE/D,IAAI,QAAQ,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,gBAAgB,CAAC;YAC3B,KAAK,MAAM,CAAC,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;gBACnC,MAAM,IAAI,KAAK,CAAC,CAAC,YAAY,MAAM,CAAC,CAAC,UAAU,gBAAgB,CAAC,CAAC,UAAU,KAAK,CAAC;YACnF,CAAC;QACH,CAAC;QAED,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChC,MAAM,IAAI,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YACrB,MAAM,IAAI,mEAAmE,CAAC;QAChF,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IAED,iBAAiB,CAAC,KAAqB;QACrC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,gCAAgC,CAAC,CAAC;QACzD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YACnB,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;SACxD,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IAEO,aAAa,CAAC,QAAqC;QACzD,IAAI,MAAM,GAAG,YAAY,CAAC;QAC1B,KAAK,MAAM,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,CAAC,YAAY,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC;QACjD,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AApED,4EAoEC"}
|
package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Command: jumbo dependency migrate
|
|
3
|
-
*
|
|
4
|
-
* Migrates legacy component-coupling dependencies into component relations.
|
|
5
|
-
* Each legacy dependency (consumerId → providerId) becomes a component-to-component
|
|
6
|
-
* relation with type "depends_on". The legacy dependency is then removed.
|
|
7
|
-
*
|
|
8
|
-
* Idempotent: running twice is safe (second run finds no active legacy dependencies).
|
|
9
|
-
*/
|
|
10
|
-
import { CommandMetadata } from "../../registry/CommandMetadata.js";
|
|
11
|
-
import { IApplicationContainer } from "../../../../../application/host/IApplicationContainer.js";
|
|
12
|
-
/**
|
|
13
|
-
* Command metadata for auto-registration
|
|
14
|
-
*/
|
|
15
|
-
export declare const metadata: CommandMetadata;
|
|
16
|
-
/**
|
|
17
|
-
* Command handler
|
|
18
|
-
* Called by Commander with parsed options
|
|
19
|
-
*/
|
|
20
|
-
export declare function dependencyMigrate(options: {
|
|
21
|
-
dryRun?: boolean;
|
|
22
|
-
}, container: IApplicationContainer): Promise<void>;
|
|
23
|
-
//# sourceMappingURL=dependency.migrate.d.ts.map
|
package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dependency.migrate.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAIjG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAoBtB,CAAC;AAEF;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,EAC7B,SAAS,EAAE,qBAAqB,iBAgBjC"}
|
package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CLI Command: jumbo dependency migrate
|
|
4
|
-
*
|
|
5
|
-
* Migrates legacy component-coupling dependencies into component relations.
|
|
6
|
-
* Each legacy dependency (consumerId → providerId) becomes a component-to-component
|
|
7
|
-
* relation with type "depends_on". The legacy dependency is then removed.
|
|
8
|
-
*
|
|
9
|
-
* Idempotent: running twice is safe (second run finds no active legacy dependencies).
|
|
10
|
-
*/
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.metadata = void 0;
|
|
13
|
-
exports.dependencyMigrate = dependencyMigrate;
|
|
14
|
-
const Renderer_js_1 = require("../../../rendering/Renderer.js");
|
|
15
|
-
const MigrateDependenciesOutputBuilder_js_1 = require("./MigrateDependenciesOutputBuilder.js");
|
|
16
|
-
/**
|
|
17
|
-
* Command metadata for auto-registration
|
|
18
|
-
*/
|
|
19
|
-
exports.metadata = {
|
|
20
|
-
description: "Migrate legacy component-coupling dependencies to relations",
|
|
21
|
-
hidden: true,
|
|
22
|
-
options: [
|
|
23
|
-
{
|
|
24
|
-
flags: "--dry-run",
|
|
25
|
-
description: "Preview migration without making changes"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
examples: [
|
|
29
|
-
{
|
|
30
|
-
command: "jumbo dependency migrate",
|
|
31
|
-
description: "Convert all legacy component-coupling dependencies to relations"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
command: "jumbo dependency migrate --dry-run",
|
|
35
|
-
description: "Preview what would be migrated without making changes"
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
related: ["dependency list", "relation add", "db rebuild"],
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Command handler
|
|
42
|
-
* Called by Commander with parsed options
|
|
43
|
-
*/
|
|
44
|
-
async function dependencyMigrate(options, container) {
|
|
45
|
-
const renderer = Renderer_js_1.Renderer.getInstance();
|
|
46
|
-
const outputBuilder = new MigrateDependenciesOutputBuilder_js_1.MigrateDependenciesOutputBuilder();
|
|
47
|
-
try {
|
|
48
|
-
const response = await container.migrateDependenciesCommandHandler.handle({
|
|
49
|
-
dryRun: options.dryRun ?? false,
|
|
50
|
-
});
|
|
51
|
-
const output = outputBuilder.buildSuccess(response);
|
|
52
|
-
renderer.info(output.toHumanReadable());
|
|
53
|
-
}
|
|
54
|
-
catch (error) {
|
|
55
|
-
renderer.error("Failed to migrate dependencies", error instanceof Error ? error : String(error));
|
|
56
|
-
process.exit(1);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=dependency.migrate.js.map
|
package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dependency.migrate.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAoCH,8CAkBC;AAlDD,gEAA0D;AAC1D,+FAAyF;AAEzF;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,6DAA6D;IAC1E,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACP;YACE,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,0CAA0C;SACxD;KACF;IACD,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,0BAA0B;YACnC,WAAW,EAAE,iEAAiE;SAC/E;QACD;YACE,OAAO,EAAE,oCAAoC;YAC7C,WAAW,EAAE,uDAAuD;SACrE;KACF;IACD,OAAO,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,YAAY,CAAC;CAC3D,CAAC;AAEF;;;GAGG;AACI,KAAK,UAAU,iBAAiB,CACrC,OAA6B,EAC7B,SAAgC;IAEhC,MAAM,QAAQ,GAAG,sBAAQ,CAAC,WAAW,EAAE,CAAC;IACxC,MAAM,aAAa,GAAG,IAAI,sEAAgC,EAAE,CAAC;IAE7D,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,iCAAiC,CAAC,MAAM,CAAC;YACxE,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,KAAK;SAChC,CAAC,CAAC;QAEH,MAAM,MAAM,GAAG,aAAa,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QACpD,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;IAC1C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACjG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TerminalOutput } from '../../../output/TerminalOutput.js';
|
|
2
|
-
import { RepairStepResult } from '../../../../../application/maintenance/repair/RepairMaintenanceResponse.js';
|
|
3
|
-
/**
|
|
4
|
-
* Specialized builder for maintenance.repair command output.
|
|
5
|
-
* Encapsulates all output rendering for the repair command.
|
|
6
|
-
*/
|
|
7
|
-
export declare class RepairOutputBuilder {
|
|
8
|
-
private builder;
|
|
9
|
-
constructor();
|
|
10
|
-
/**
|
|
11
|
-
* Build output for successful repair.
|
|
12
|
-
* Renders repair results per step.
|
|
13
|
-
*/
|
|
14
|
-
buildSuccess(steps: RepairStepResult[]): TerminalOutput;
|
|
15
|
-
/**
|
|
16
|
-
* Build output for repair failure.
|
|
17
|
-
*/
|
|
18
|
-
buildFailureError(error: Error | string): TerminalOutput;
|
|
19
|
-
/**
|
|
20
|
-
* Build output when confirmation is required.
|
|
21
|
-
*/
|
|
22
|
-
buildConfirmationRequired(): TerminalOutput;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=RepairOutputBuilder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepairOutputBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4EAA4E,CAAC;AAE9G;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,OAAO,CAAwB;;IAMvC;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,cAAc;IAavD;;OAEG;IACH,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,cAAc;IASxD;;OAEG;IACH,yBAAyB,IAAI,cAAc;CAQ5C"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RepairOutputBuilder = void 0;
|
|
4
|
-
const TerminalOutputBuilder_js_1 = require("../../../output/TerminalOutputBuilder.js");
|
|
5
|
-
/**
|
|
6
|
-
* Specialized builder for maintenance.repair command output.
|
|
7
|
-
* Encapsulates all output rendering for the repair command.
|
|
8
|
-
*/
|
|
9
|
-
class RepairOutputBuilder {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.builder = new TerminalOutputBuilder_js_1.TerminalOutputBuilder();
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Build output for successful repair.
|
|
15
|
-
* Renders repair results per step.
|
|
16
|
-
*/
|
|
17
|
-
buildSuccess(steps) {
|
|
18
|
-
this.builder.reset();
|
|
19
|
-
this.builder.addPrompt("✓ Repair complete");
|
|
20
|
-
this.builder.addData(steps.map(s => ({
|
|
21
|
-
step: s.name,
|
|
22
|
-
status: s.status,
|
|
23
|
-
...(s.detail ? { detail: s.detail } : {}),
|
|
24
|
-
})));
|
|
25
|
-
return this.builder.build();
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Build output for repair failure.
|
|
29
|
-
*/
|
|
30
|
-
buildFailureError(error) {
|
|
31
|
-
this.builder.reset();
|
|
32
|
-
this.builder.addPrompt("✗ Repair failed");
|
|
33
|
-
this.builder.addData({
|
|
34
|
-
message: error instanceof Error ? error.message : error
|
|
35
|
-
});
|
|
36
|
-
return this.builder.build();
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Build output when confirmation is required.
|
|
40
|
-
*/
|
|
41
|
-
buildConfirmationRequired() {
|
|
42
|
-
this.builder.reset();
|
|
43
|
-
this.builder.addPrompt("⚠️ This will update agent configuration files and optionally rebuild the database.\n" +
|
|
44
|
-
"Use --yes flag to proceed.");
|
|
45
|
-
return this.builder.build();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
exports.RepairOutputBuilder = RepairOutputBuilder;
|
|
49
|
-
//# sourceMappingURL=RepairOutputBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepairOutputBuilder.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AAIjF;;;GAGG;AACH,MAAa,mBAAmB;IAG9B;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,gDAAqB,EAAE,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,KAAyB;QACpC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,CAAC,OAAO,CAClB,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACd,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,MAAM,EAAE,CAAC,CAAC,MAAM;YAChB,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC1C,CAAC,CAAC,CACJ,CAAC;QACF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,iBAAiB,CAAC,KAAqB;QACrC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YACnB,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;SACxD,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,yBAAyB;QACvB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,uFAAuF;YACvF,4BAA4B,CAC7B,CAAC;QACF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF;AA/CD,kDA+CC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Command: jumbo maintenance repair (aliased as jumbo repair)
|
|
3
|
-
*
|
|
4
|
-
* Re-injects current-version agent configuration files and optionally
|
|
5
|
-
* rebuilds the database. Use after upgrading Jumbo CLI to bring
|
|
6
|
-
* AGENTS.md, CLAUDE.md, GEMINI.md, copilot-instructions.md, and
|
|
7
|
-
* settings files up to date.
|
|
8
|
-
*/
|
|
9
|
-
import { CommandMetadata } from "../../registry/CommandMetadata.js";
|
|
10
|
-
import { IApplicationContainer } from "../../../../../application/host/IApplicationContainer.js";
|
|
11
|
-
/**
|
|
12
|
-
* Command metadata for auto-registration
|
|
13
|
-
*/
|
|
14
|
-
export declare const metadata: CommandMetadata;
|
|
15
|
-
interface RepairOptions {
|
|
16
|
-
yes?: boolean;
|
|
17
|
-
agents?: boolean;
|
|
18
|
-
settings?: boolean;
|
|
19
|
-
db?: boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Command handler
|
|
23
|
-
* Called by Commander with parsed options
|
|
24
|
-
*/
|
|
25
|
-
export declare function maintenanceRepair(options: RepairOptions, container: IApplicationContainer): Promise<void>;
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=maintenance.repair.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maintenance.repair.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/repair/maintenance.repair.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAIjG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAoCtB,CAAC;AAEF,UAAU,aAAa;IACrB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,OAAO,CAAC;CACd;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,qBAAqB,iBA2B/F"}
|