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,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"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Command: 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, managed
|
|
7
|
-
* template skills, and settings files up to date.
|
|
8
|
-
*
|
|
9
|
-
* Skill ownership boundary:
|
|
10
|
-
* - Skills from assets/skills/ are Jumbo-managed and may be overwritten on repair
|
|
11
|
-
* - User-created skills (directories not in assets/skills/) are preserved
|
|
12
|
-
*/
|
|
13
|
-
import { CommandMetadata } from "../registry/CommandMetadata.js";
|
|
14
|
-
import { IApplicationContainer } from "../../../../application/host/IApplicationContainer.js";
|
|
15
|
-
/**
|
|
16
|
-
* Command metadata for auto-registration
|
|
17
|
-
*/
|
|
18
|
-
export declare const metadata: CommandMetadata;
|
|
19
|
-
interface RepairOptions {
|
|
20
|
-
yes?: boolean;
|
|
21
|
-
agents?: boolean;
|
|
22
|
-
settings?: boolean;
|
|
23
|
-
db?: boolean;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Command handler
|
|
27
|
-
* Called by Commander with parsed options
|
|
28
|
-
*/
|
|
29
|
-
export declare function repair(options: RepairOptions, container: IApplicationContainer): Promise<void>;
|
|
30
|
-
export {};
|
|
31
|
-
//# sourceMappingURL=repair.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repair.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/cli/commands/repair/repair.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAI9F;;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,MAAM,CAAC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,qBAAqB,iBA2BpF"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CLI Command: 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, managed
|
|
8
|
-
* template skills, and settings files up to date.
|
|
9
|
-
*
|
|
10
|
-
* Skill ownership boundary:
|
|
11
|
-
* - Skills from assets/skills/ are Jumbo-managed and may be overwritten on repair
|
|
12
|
-
* - User-created skills (directories not in assets/skills/) are preserved
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.metadata = void 0;
|
|
16
|
-
exports.repair = repair;
|
|
17
|
-
const Renderer_js_1 = require("../../rendering/Renderer.js");
|
|
18
|
-
const RepairOutputBuilder_js_1 = require("./RepairOutputBuilder.js");
|
|
19
|
-
/**
|
|
20
|
-
* Command metadata for auto-registration
|
|
21
|
-
*/
|
|
22
|
-
exports.metadata = {
|
|
23
|
-
description: "Repair agent configuration files and optionally rebuild the database",
|
|
24
|
-
options: [
|
|
25
|
-
{
|
|
26
|
-
flags: "--yes",
|
|
27
|
-
description: "Skip confirmation prompt",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
flags: "--no-agents",
|
|
31
|
-
description: "Skip agent file repair (AGENTS.md, CLAUDE.md, GEMINI.md, managed template skills, etc.)",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
flags: "--no-settings",
|
|
35
|
-
description: "Skip settings file repair",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
flags: "--no-db",
|
|
39
|
-
description: "Skip database rebuild",
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
examples: [
|
|
43
|
-
{
|
|
44
|
-
command: "jumbo repair --yes",
|
|
45
|
-
description: "Repair all configuration files and rebuild database",
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
command: "jumbo repair --yes --no-db",
|
|
49
|
-
description: "Repair configuration files only (skip database rebuild)",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
command: "jumbo repair --yes --no-agents --no-settings",
|
|
53
|
-
description: "Only rebuild the database",
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
related: ["db rebuild", "project init"],
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Command handler
|
|
60
|
-
* Called by Commander with parsed options
|
|
61
|
-
*/
|
|
62
|
-
async function repair(options, container) {
|
|
63
|
-
const renderer = Renderer_js_1.Renderer.getInstance();
|
|
64
|
-
const outputBuilder = new RepairOutputBuilder_js_1.RepairOutputBuilder();
|
|
65
|
-
try {
|
|
66
|
-
// Confirm operation
|
|
67
|
-
if (!options.yes) {
|
|
68
|
-
const output = outputBuilder.buildConfirmationRequired();
|
|
69
|
-
renderer.info(output.toHumanReadable());
|
|
70
|
-
process.exit(1);
|
|
71
|
-
}
|
|
72
|
-
// Commander inverts --no-X flags: --no-agents sets options.agents = false
|
|
73
|
-
const response = await container.repairController.handle({
|
|
74
|
-
doAgents: options.agents !== false,
|
|
75
|
-
doSettings: options.settings !== false,
|
|
76
|
-
doDb: options.db !== false,
|
|
77
|
-
});
|
|
78
|
-
// Render results
|
|
79
|
-
const output = outputBuilder.buildSuccess(response.steps);
|
|
80
|
-
renderer.info(output.toHumanReadable());
|
|
81
|
-
}
|
|
82
|
-
catch (error) {
|
|
83
|
-
const output = outputBuilder.buildFailureError(error instanceof Error ? error : String(error));
|
|
84
|
-
renderer.info(output.toHumanReadable());
|
|
85
|
-
process.exit(1);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
//# sourceMappingURL=repair.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repair.js","sourceRoot":"","sources":["../../../../../src/presentation/cli/commands/repair/repair.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AA2DH,wBA2BC;AAlFD,6DAAuD;AACvD,qEAA+D;AAE/D;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,sEAAsE;IACnF,OAAO,EAAE;QACP;YACE,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,0BAA0B;SACxC;QACD;YACE,KAAK,EAAE,aAAa;YACpB,WAAW,EACT,yFAAyF;SAC5F;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,MAAM,CAAC,OAAsB,EAAE,SAAgC;IACnF,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,gBAAgB,CAAC,MAAM,CAAC;YACvD,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"}
|