jumbo-cli 2.0.1 → 2.0.2
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/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 +89 -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,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"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CLI Command: jumbo maintenance repair (aliased as jumbo repair)
|
|
4
|
-
*
|
|
5
|
-
* Re-injects current-version agent configuration files and optionally
|
|
6
|
-
* rebuilds the database. Use after upgrading Jumbo CLI to bring
|
|
7
|
-
* AGENTS.md, CLAUDE.md, GEMINI.md, copilot-instructions.md, and
|
|
8
|
-
* settings files up to date.
|
|
9
|
-
*/
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.metadata = void 0;
|
|
12
|
-
exports.maintenanceRepair = maintenanceRepair;
|
|
13
|
-
const Renderer_js_1 = require("../../../rendering/Renderer.js");
|
|
14
|
-
const RepairOutputBuilder_js_1 = require("./RepairOutputBuilder.js");
|
|
15
|
-
/**
|
|
16
|
-
* Command metadata for auto-registration
|
|
17
|
-
*/
|
|
18
|
-
exports.metadata = {
|
|
19
|
-
description: "Repair agent configuration files and optionally rebuild the database",
|
|
20
|
-
topLevelAliases: ["repair"],
|
|
21
|
-
options: [
|
|
22
|
-
{
|
|
23
|
-
flags: "--yes",
|
|
24
|
-
description: "Skip confirmation prompt",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
flags: "--no-agents",
|
|
28
|
-
description: "Skip agent file repair (AGENTS.md, CLAUDE.md, GEMINI.md, etc.)",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
flags: "--no-settings",
|
|
32
|
-
description: "Skip settings file repair",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
flags: "--no-db",
|
|
36
|
-
description: "Skip database rebuild",
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
examples: [
|
|
40
|
-
{
|
|
41
|
-
command: "jumbo repair --yes",
|
|
42
|
-
description: "Repair all configuration files and rebuild database",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
command: "jumbo repair --yes --no-db",
|
|
46
|
-
description: "Repair configuration files only (skip database rebuild)",
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
command: "jumbo repair --yes --no-agents --no-settings",
|
|
50
|
-
description: "Only rebuild the database",
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
related: ["db rebuild", "project init"],
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Command handler
|
|
57
|
-
* Called by Commander with parsed options
|
|
58
|
-
*/
|
|
59
|
-
async function maintenanceRepair(options, container) {
|
|
60
|
-
const renderer = Renderer_js_1.Renderer.getInstance();
|
|
61
|
-
const outputBuilder = new RepairOutputBuilder_js_1.RepairOutputBuilder();
|
|
62
|
-
try {
|
|
63
|
-
// Confirm operation
|
|
64
|
-
if (!options.yes) {
|
|
65
|
-
const output = outputBuilder.buildConfirmationRequired();
|
|
66
|
-
renderer.info(output.toHumanReadable());
|
|
67
|
-
process.exit(1);
|
|
68
|
-
}
|
|
69
|
-
// Commander inverts --no-X flags: --no-agents sets options.agents = false
|
|
70
|
-
const response = await container.repairMaintenanceController.handle({
|
|
71
|
-
doAgents: options.agents !== false,
|
|
72
|
-
doSettings: options.settings !== false,
|
|
73
|
-
doDb: options.db !== false,
|
|
74
|
-
});
|
|
75
|
-
// Render results
|
|
76
|
-
const output = outputBuilder.buildSuccess(response.steps);
|
|
77
|
-
renderer.info(output.toHumanReadable());
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
const output = outputBuilder.buildFailureError(error instanceof Error ? error : String(error));
|
|
81
|
-
renderer.info(output.toHumanReadable());
|
|
82
|
-
process.exit(1);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=maintenance.repair.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maintenance.repair.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/repair/maintenance.repair.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AA2DH,8CA2BC;AAlFD,gEAA0D;AAC1D,qEAA+D;AAE/D;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,sEAAsE;IACnF,eAAe,EAAE,CAAC,QAAQ,CAAC;IAC3B,OAAO,EAAE;QACP;YACE,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,0BAA0B;SACxC;QACD;YACE,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,gEAAgE;SAC9E;QACD;YACE,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,2BAA2B;SACzC;QACD;YACE,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,uBAAuB;SACrC;KACF;IACD,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,oBAAoB;YAC7B,WAAW,EAAE,qDAAqD;SACnE;QACD;YACE,OAAO,EAAE,4BAA4B;YACrC,WAAW,EAAE,yDAAyD;SACvE;QACD;YACE,OAAO,EAAE,8CAA8C;YACvD,WAAW,EAAE,2BAA2B;SACzC;KACF;IACD,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,CAAC;CACxC,CAAC;AASF;;;GAGG;AACI,KAAK,UAAU,iBAAiB,CAAC,OAAsB,EAAE,SAAgC;IAC9F,MAAM,QAAQ,GAAG,sBAAQ,CAAC,WAAW,EAAE,CAAC;IACxC,MAAM,aAAa,GAAG,IAAI,4CAAmB,EAAE,CAAC;IAEhD,IAAI,CAAC;QACH,oBAAoB;QACpB,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;YACjB,MAAM,MAAM,GAAG,aAAa,CAAC,yBAAyB,EAAE,CAAC;YACzD,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;YACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,0EAA0E;QAC1E,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,2BAA2B,CAAC,MAAM,CAAC;YAClE,QAAQ,EAAE,OAAO,CAAC,MAAM,KAAK,KAAK;YAClC,UAAU,EAAE,OAAO,CAAC,QAAQ,KAAK,KAAK;YACtC,IAAI,EAAE,OAAO,CAAC,EAAE,KAAK,KAAK;SAC3B,CAAC,CAAC;QAEH,iBAAiB;QACjB,MAAM,MAAM,GAAG,aAAa,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC1D,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;IAC1C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,MAAM,GAAG,aAAa,CAAC,iBAAiB,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/F,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;QACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TerminalOutput } from '../../../output/TerminalOutput.js';
|
|
2
|
-
import { UpgradeResponse } from '../../../../../application/maintenance/upgrade/UpgradeResponse.js';
|
|
3
|
-
/**
|
|
4
|
-
* Specialized builder for upgrade command output.
|
|
5
|
-
* Encapsulates all output rendering for the upgrade command.
|
|
6
|
-
*
|
|
7
|
-
* Pattern: Output builders contain ALL prompt and output content.
|
|
8
|
-
* Command files must not duplicate or add additional output after calling the builder.
|
|
9
|
-
*/
|
|
10
|
-
export declare class UpgradeOutputBuilder {
|
|
11
|
-
private builder;
|
|
12
|
-
constructor();
|
|
13
|
-
buildSuccess(response: UpgradeResponse): TerminalOutput;
|
|
14
|
-
buildFailureError(error: Error | string): TerminalOutput;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=UpgradeOutputBuilder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UpgradeOutputBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AAEpG;;;;;;GAMG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,OAAO,CAAwB;;IAMvC,YAAY,CAAC,QAAQ,EAAE,eAAe,GAAG,cAAc;IAoBvD,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,cAAc;CAQzD"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpgradeOutputBuilder = void 0;
|
|
4
|
-
const TerminalOutputBuilder_js_1 = require("../../../output/TerminalOutputBuilder.js");
|
|
5
|
-
/**
|
|
6
|
-
* Specialized builder for upgrade command output.
|
|
7
|
-
* Encapsulates all output rendering for the upgrade 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 UpgradeOutputBuilder {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.builder = new TerminalOutputBuilder_js_1.TerminalOutputBuilder();
|
|
15
|
-
}
|
|
16
|
-
buildSuccess(response) {
|
|
17
|
-
this.builder.reset();
|
|
18
|
-
if (response.migratedGoals === 0) {
|
|
19
|
-
this.builder.addPrompt("No goals require migration. All statuses are already up to date.\n\n" +
|
|
20
|
-
"Next step: Run 'jumbo db rebuild --yes' to rebuild projections.");
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
this.builder.addPrompt(`Migration complete.\n\n` +
|
|
24
|
-
` Goals migrated: ${response.migratedGoals}\n` +
|
|
25
|
-
` Events appended: ${response.eventsAppended}\n\n` +
|
|
26
|
-
"Next step: Run 'jumbo db rebuild --yes' to rebuild projections.");
|
|
27
|
-
}
|
|
28
|
-
return this.builder.build();
|
|
29
|
-
}
|
|
30
|
-
buildFailureError(error) {
|
|
31
|
-
this.builder.reset();
|
|
32
|
-
this.builder.addPrompt("Failed to upgrade");
|
|
33
|
-
this.builder.addData({
|
|
34
|
-
message: error instanceof Error ? error.message : error
|
|
35
|
-
});
|
|
36
|
-
return this.builder.build();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.UpgradeOutputBuilder = UpgradeOutputBuilder;
|
|
40
|
-
//# sourceMappingURL=UpgradeOutputBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UpgradeOutputBuilder.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AAIjF;;;;;;GAMG;AACH,MAAa,oBAAoB;IAG/B;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,gDAAqB,EAAE,CAAC;IAC7C,CAAC;IAED,YAAY,CAAC,QAAyB;QACpC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAErB,IAAI,QAAQ,CAAC,aAAa,KAAK,CAAC,EAAE,CAAC;YACjC,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,sEAAsE;gBACtE,iEAAiE,CAClE,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,yBAAyB;gBACzB,uBAAuB,QAAQ,CAAC,aAAa,IAAI;gBACjD,uBAAuB,QAAQ,CAAC,cAAc,MAAM;gBACpD,iEAAiE,CAClE,CAAC;QACJ,CAAC;QAED,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,mBAAmB,CAAC,CAAC;QAC5C,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;AAnCD,oDAmCC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Command: jumbo db upgrade (alias: jumbo upgrade)
|
|
3
|
-
*
|
|
4
|
-
* Migrates goal event streams from v1 to v2 status naming.
|
|
5
|
-
* Appends GoalStatusMigratedEvent for goals with legacy status values:
|
|
6
|
-
* 'to-do' → 'defined'
|
|
7
|
-
* 'qualified' → 'approved'
|
|
8
|
-
* 'completed' → 'done'
|
|
9
|
-
*
|
|
10
|
-
* Idempotent: running twice is safe (second run finds no legacy statuses).
|
|
11
|
-
*/
|
|
12
|
-
import { CommandMetadata } from "../../registry/CommandMetadata.js";
|
|
13
|
-
import { IApplicationContainer } from "../../../../../application/host/IApplicationContainer.js";
|
|
14
|
-
/**
|
|
15
|
-
* Command metadata for auto-registration
|
|
16
|
-
*/
|
|
17
|
-
export declare const metadata: CommandMetadata;
|
|
18
|
-
/**
|
|
19
|
-
* Command handler
|
|
20
|
-
* Called by Commander with parsed options
|
|
21
|
-
*/
|
|
22
|
-
export declare function dbUpgrade(options: {
|
|
23
|
-
from: string;
|
|
24
|
-
to: string;
|
|
25
|
-
}, container: IApplicationContainer): Promise<void>;
|
|
26
|
-
//# sourceMappingURL=db.upgrade.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"db.upgrade.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/upgrade/db.upgrade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAIjG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAsBtB,CAAC;AAEF;;;GAGG;AACH,wBAAsB,SAAS,CAC7B,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EACrC,SAAS,EAAE,qBAAqB,iBAiBjC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CLI Command: jumbo db upgrade (alias: jumbo upgrade)
|
|
4
|
-
*
|
|
5
|
-
* Migrates goal event streams from v1 to v2 status naming.
|
|
6
|
-
* Appends GoalStatusMigratedEvent for goals with legacy status values:
|
|
7
|
-
* 'to-do' → 'defined'
|
|
8
|
-
* 'qualified' → 'approved'
|
|
9
|
-
* 'completed' → 'done'
|
|
10
|
-
*
|
|
11
|
-
* Idempotent: running twice is safe (second run finds no legacy statuses).
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.metadata = void 0;
|
|
15
|
-
exports.dbUpgrade = dbUpgrade;
|
|
16
|
-
const Renderer_js_1 = require("../../../rendering/Renderer.js");
|
|
17
|
-
const UpgradeOutputBuilder_js_1 = require("./UpgradeOutputBuilder.js");
|
|
18
|
-
/**
|
|
19
|
-
* Command metadata for auto-registration
|
|
20
|
-
*/
|
|
21
|
-
exports.metadata = {
|
|
22
|
-
description: "Upgrade event store to v2 status naming",
|
|
23
|
-
hidden: true,
|
|
24
|
-
requiredOptions: [
|
|
25
|
-
{
|
|
26
|
-
flags: "--from <version>",
|
|
27
|
-
description: "Source version (e.g., v1)"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
flags: "--to <version>",
|
|
31
|
-
description: "Target version (e.g., v2)"
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
options: [],
|
|
35
|
-
examples: [
|
|
36
|
-
{
|
|
37
|
-
command: "jumbo upgrade --from v1 --to v2",
|
|
38
|
-
description: "Migrate goal statuses to v2 naming"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
related: ["db rebuild"],
|
|
42
|
-
topLevelAliases: ["upgrade"],
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Command handler
|
|
46
|
-
* Called by Commander with parsed options
|
|
47
|
-
*/
|
|
48
|
-
async function dbUpgrade(options, container) {
|
|
49
|
-
const renderer = Renderer_js_1.Renderer.getInstance();
|
|
50
|
-
const outputBuilder = new UpgradeOutputBuilder_js_1.UpgradeOutputBuilder();
|
|
51
|
-
try {
|
|
52
|
-
const response = await container.upgradeCommandHandler.handle({
|
|
53
|
-
from: options.from,
|
|
54
|
-
to: options.to,
|
|
55
|
-
});
|
|
56
|
-
const output = outputBuilder.buildSuccess(response);
|
|
57
|
-
renderer.info(output.toHumanReadable());
|
|
58
|
-
}
|
|
59
|
-
catch (error) {
|
|
60
|
-
renderer.error("Failed to upgrade", error instanceof Error ? error : String(error));
|
|
61
|
-
process.exit(1);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=db.upgrade.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"db.upgrade.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/maintenance/upgrade/db.upgrade.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAsCH,8BAmBC;AArDD,gEAA0D;AAC1D,uEAAiE;AAEjE;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,yCAAyC;IACtD,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE;QACf;YACE,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,2BAA2B;SACzC;QACD;YACE,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,2BAA2B;SACzC;KACF;IACD,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,iCAAiC;YAC1C,WAAW,EAAE,oCAAoC;SAClD;KACF;IACD,OAAO,EAAE,CAAC,YAAY,CAAC;IACvB,eAAe,EAAE,CAAC,SAAS,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACI,KAAK,UAAU,SAAS,CAC7B,OAAqC,EACrC,SAAgC;IAEhC,MAAM,QAAQ,GAAG,sBAAQ,CAAC,WAAW,EAAE,CAAC;IACxC,MAAM,aAAa,GAAG,IAAI,8CAAoB,EAAE,CAAC;IAEjD,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,qBAAqB,CAAC,MAAM,CAAC;YAC5D,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,EAAE,EAAE,OAAO,CAAC,EAAE;SACf,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,mBAAmB,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACpF,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/repair/RepairResponse.js';
|
|
3
|
-
/**
|
|
4
|
-
* Specialized builder for 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/repair/RepairOutputBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAEpF;;;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;CAS5C"}
|
|
@@ -1,50 +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 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 (including template-managed skills) and optionally rebuild the database.\n" +
|
|
44
|
-
"Template-managed skills may be overwritten to the latest template version; user-created skills are preserved.\n" +
|
|
45
|
-
"Use --yes flag to proceed.");
|
|
46
|
-
return this.builder.build();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.RepairOutputBuilder = RepairOutputBuilder;
|
|
50
|
-
//# sourceMappingURL=RepairOutputBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepairOutputBuilder.js","sourceRoot":"","sources":["../../../../../src/presentation/cli/commands/repair/RepairOutputBuilder.ts"],"names":[],"mappings":";;;AAAA,oFAA8E;AAI9E;;;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,2HAA2H;YAC3H,iHAAiH;YACjH,4BAA4B,CAC7B,CAAC;QACF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF;AAhDD,kDAgDC"}
|