jumbo-cli 2.11.1 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/skills/decompose-architecture-aggregate/SKILL.md +67 -0
- package/dist/application/context/architecture/ArchitectureDeprecationConstants.d.ts +30 -0
- package/dist/application/context/architecture/ArchitectureDeprecationConstants.d.ts.map +1 -0
- package/dist/application/context/architecture/ArchitectureDeprecationConstants.js +29 -0
- package/dist/application/context/architecture/ArchitectureDeprecationConstants.js.map +1 -0
- package/dist/application/context/architecture/ArchitectureView.d.ts +1 -0
- package/dist/application/context/architecture/ArchitectureView.d.ts.map +1 -1
- package/dist/application/context/architecture/define/LocalDefineArchitectureGateway.d.ts.map +1 -1
- package/dist/application/context/architecture/define/LocalDefineArchitectureGateway.js +3 -0
- package/dist/application/context/architecture/define/LocalDefineArchitectureGateway.js.map +1 -1
- package/dist/application/context/architecture/deprecate/ArchitectureDeprecatedEventHandler.d.ts +15 -0
- package/dist/application/context/architecture/deprecate/ArchitectureDeprecatedEventHandler.d.ts.map +1 -0
- package/dist/application/context/architecture/deprecate/ArchitectureDeprecatedEventHandler.js +20 -0
- package/dist/application/context/architecture/deprecate/ArchitectureDeprecatedEventHandler.js.map +1 -0
- package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedEventWriter.d.ts +9 -0
- package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedEventWriter.d.ts.map +1 -0
- package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedEventWriter.js +3 -0
- package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedEventWriter.js.map +1 -0
- package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedProjector.d.ts +9 -0
- package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedProjector.d.ts.map +1 -0
- package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedProjector.js +3 -0
- package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedProjector.js.map +1 -0
- package/dist/application/context/goals/IGoalTitleReader.d.ts +9 -0
- package/dist/application/context/goals/IGoalTitleReader.d.ts.map +1 -0
- package/dist/application/context/goals/IGoalTitleReader.js +3 -0
- package/dist/application/context/goals/IGoalTitleReader.js.map +1 -0
- package/dist/application/context/goals/get/GoalContext.d.ts +1 -3
- package/dist/application/context/goals/get/GoalContext.d.ts.map +1 -1
- package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.d.ts +10 -0
- package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.d.ts.map +1 -0
- package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.js +3 -0
- package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.js.map +1 -0
- package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.d.ts +9 -0
- package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.d.ts.map +1 -0
- package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.js +14 -0
- package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.js.map +1 -0
- package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.d.ts +14 -0
- package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.d.ts.map +1 -0
- package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.js +35 -0
- package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.js.map +1 -0
- package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.d.ts +20 -0
- package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.d.ts.map +1 -0
- package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.js +48 -0
- package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.js.map +1 -0
- package/dist/application/context/sessions/SessionInstructionSignal.d.ts +1 -0
- package/dist/application/context/sessions/SessionInstructionSignal.d.ts.map +1 -1
- package/dist/application/context/sessions/SessionInstructionSignal.js +1 -0
- package/dist/application/context/sessions/SessionInstructionSignal.js.map +1 -1
- package/dist/application/context/sessions/start/LocalStartSessionGateway.d.ts +3 -1
- package/dist/application/context/sessions/start/LocalStartSessionGateway.d.ts.map +1 -1
- package/dist/application/context/sessions/start/LocalStartSessionGateway.js +14 -6
- package/dist/application/context/sessions/start/LocalStartSessionGateway.js.map +1 -1
- package/dist/application/host/IApplicationContainer.d.ts +4 -0
- package/dist/application/host/IApplicationContainer.d.ts.map +1 -1
- package/dist/domain/architecture/Architecture.d.ts +7 -1
- package/dist/domain/architecture/Architecture.d.ts.map +1 -1
- package/dist/domain/architecture/Architecture.js +24 -0
- package/dist/domain/architecture/Architecture.js.map +1 -1
- package/dist/domain/architecture/Constants.d.ts +3 -0
- package/dist/domain/architecture/Constants.d.ts.map +1 -1
- package/dist/domain/architecture/Constants.js +4 -1
- package/dist/domain/architecture/Constants.js.map +1 -1
- package/dist/domain/architecture/EventIndex.d.ts +3 -1
- package/dist/domain/architecture/EventIndex.d.ts.map +1 -1
- package/dist/domain/architecture/EventIndex.js +1 -0
- package/dist/domain/architecture/EventIndex.js.map +1 -1
- package/dist/domain/architecture/deprecate/ArchitectureDeprecatedEvent.d.ts +15 -0
- package/dist/domain/architecture/deprecate/ArchitectureDeprecatedEvent.d.ts.map +1 -0
- package/dist/domain/architecture/deprecate/ArchitectureDeprecatedEvent.js +9 -0
- package/dist/domain/architecture/deprecate/ArchitectureDeprecatedEvent.js.map +1 -0
- package/dist/infrastructure/context/SqliteGoalContextAssembler.d.ts +2 -4
- package/dist/infrastructure/context/SqliteGoalContextAssembler.d.ts.map +1 -1
- package/dist/infrastructure/context/SqliteGoalContextAssembler.js +5 -9
- package/dist/infrastructure/context/SqliteGoalContextAssembler.js.map +1 -1
- package/dist/infrastructure/context/architecture/SqliteArchitectureReader.d.ts.map +1 -1
- package/dist/infrastructure/context/architecture/SqliteArchitectureReader.js +1 -0
- package/dist/infrastructure/context/architecture/SqliteArchitectureReader.js.map +1 -1
- package/dist/infrastructure/context/architecture/define/SqliteArchitectureDefinedProjector.d.ts.map +1 -1
- package/dist/infrastructure/context/architecture/define/SqliteArchitectureDefinedProjector.js +1 -0
- package/dist/infrastructure/context/architecture/define/SqliteArchitectureDefinedProjector.js.map +1 -1
- package/dist/infrastructure/context/architecture/deprecate/FsArchitectureDeprecatedEventStore.d.ts +10 -0
- package/dist/infrastructure/context/architecture/deprecate/FsArchitectureDeprecatedEventStore.d.ts.map +1 -0
- package/dist/infrastructure/context/architecture/deprecate/FsArchitectureDeprecatedEventStore.js +14 -0
- package/dist/infrastructure/context/architecture/deprecate/FsArchitectureDeprecatedEventStore.js.map +1 -0
- package/dist/infrastructure/context/architecture/deprecate/SqliteArchitectureDeprecatedProjector.d.ts +12 -0
- package/dist/infrastructure/context/architecture/deprecate/SqliteArchitectureDeprecatedProjector.d.ts.map +1 -0
- package/dist/infrastructure/context/architecture/deprecate/SqliteArchitectureDeprecatedProjector.js +21 -0
- package/dist/infrastructure/context/architecture/deprecate/SqliteArchitectureDeprecatedProjector.js.map +1 -0
- package/dist/infrastructure/context/architecture/migrations/003-add-deprecated-column.sql +4 -0
- package/dist/infrastructure/context/architecture/update/SqliteArchitectureUpdatedProjector.d.ts.map +1 -1
- package/dist/infrastructure/context/architecture/update/SqliteArchitectureUpdatedProjector.js +1 -0
- package/dist/infrastructure/context/architecture/update/SqliteArchitectureUpdatedProjector.js.map +1 -1
- package/dist/infrastructure/context/goals/SqliteGoalStatusReader.d.ts +3 -1
- package/dist/infrastructure/context/goals/SqliteGoalStatusReader.d.ts.map +1 -1
- package/dist/infrastructure/context/goals/SqliteGoalStatusReader.js +6 -0
- package/dist/infrastructure/context/goals/SqliteGoalStatusReader.js.map +1 -1
- package/dist/infrastructure/host/HostBuilder.d.ts.map +1 -1
- package/dist/infrastructure/host/HostBuilder.js +21 -2
- package/dist/infrastructure/host/HostBuilder.js.map +1 -1
- package/dist/infrastructure/messaging/ProjectionBusFactory.d.ts.map +1 -1
- package/dist/infrastructure/messaging/ProjectionBusFactory.js +3 -0
- package/dist/infrastructure/messaging/ProjectionBusFactory.js.map +1 -1
- package/dist/presentation/cli/commands/architecture/define/architecture.define.d.ts +4 -3
- package/dist/presentation/cli/commands/architecture/define/architecture.define.d.ts.map +1 -1
- package/dist/presentation/cli/commands/architecture/define/architecture.define.js +15 -24
- package/dist/presentation/cli/commands/architecture/define/architecture.define.js.map +1 -1
- package/dist/presentation/cli/commands/architecture/update/architecture.update.d.ts +4 -3
- package/dist/presentation/cli/commands/architecture/update/architecture.update.d.ts.map +1 -1
- package/dist/presentation/cli/commands/architecture/update/architecture.update.js +17 -30
- package/dist/presentation/cli/commands/architecture/update/architecture.update.js.map +1 -1
- package/dist/presentation/cli/commands/architecture/view/architecture.view.d.ts +1 -1
- package/dist/presentation/cli/commands/architecture/view/architecture.view.d.ts.map +1 -1
- package/dist/presentation/cli/commands/architecture/view/architecture.view.js +32 -17
- package/dist/presentation/cli/commands/architecture/view/architecture.view.js.map +1 -1
- package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.js +52 -0
- package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/audience-pains/list/audiencePains.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/audience-pains/list/audiencePains.list.js +9 -33
- package/dist/presentation/cli/commands/audience-pains/list/audiencePains.list.js.map +1 -1
- package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.js +53 -0
- package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/audiences/list/audiences.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/audiences/list/audiences.list.js +9 -33
- package/dist/presentation/cli/commands/audiences/list/audiences.list.js.map +1 -1
- package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.js +62 -0
- package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/components/list/components.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/components/list/components.list.js +9 -48
- package/dist/presentation/cli/commands/components/list/components.list.js.map +1 -1
- package/dist/presentation/cli/commands/components/search/ComponentSearchOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/components/search/ComponentSearchOutputBuilder.js +16 -11
- package/dist/presentation/cli/commands/components/search/ComponentSearchOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/components/search/components.search.js +1 -1
- package/dist/presentation/cli/commands/components/search/components.search.js.map +1 -1
- package/dist/presentation/cli/commands/components/show/ComponentShowOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/components/show/ComponentShowOutputBuilder.js +42 -21
- package/dist/presentation/cli/commands/components/show/ComponentShowOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/components/undeprecate/ComponentUndeprecateOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/components/undeprecate/ComponentUndeprecateOutputBuilder.js +12 -2
- package/dist/presentation/cli/commands/components/undeprecate/ComponentUndeprecateOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.js +73 -0
- package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/decisions/list/decisions.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/decisions/list/decisions.list.js +9 -55
- package/dist/presentation/cli/commands/decisions/list/decisions.list.js.map +1 -1
- package/dist/presentation/cli/commands/decisions/restore/DecisionRestoreOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/decisions/restore/DecisionRestoreOutputBuilder.js +11 -2
- package/dist/presentation/cli/commands/decisions/restore/DecisionRestoreOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.js +67 -0
- package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/dependencies/list/dependencies.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/dependencies/list/dependencies.list.js +21 -71
- package/dist/presentation/cli/commands/dependencies/list/dependencies.list.js.map +1 -1
- package/dist/presentation/cli/commands/evolve/EvolveOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/evolve/EvolveOutputBuilder.js +25 -4
- package/dist/presentation/cli/commands/evolve/EvolveOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/add/GoalAddOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/add/GoalAddOutputBuilder.js +15 -4
- package/dist/presentation/cli/commands/goals/add/GoalAddOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/approve/GoalApproveOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/approve/GoalApproveOutputBuilder.js +18 -21
- package/dist/presentation/cli/commands/goals/approve/GoalApproveOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/approve/goal.approve.js +1 -1
- package/dist/presentation/cli/commands/goals/approve/goal.approve.js.map +1 -1
- package/dist/presentation/cli/commands/goals/block/GoalBlockOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/block/GoalBlockOutputBuilder.js +12 -6
- package/dist/presentation/cli/commands/goals/block/GoalBlockOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/block/goal.block.js +1 -1
- package/dist/presentation/cli/commands/goals/block/goal.block.js.map +1 -1
- package/dist/presentation/cli/commands/goals/close/GoalCloseOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/close/GoalCloseOutputBuilder.js +25 -11
- package/dist/presentation/cli/commands/goals/close/GoalCloseOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/close/goal.close.js +1 -1
- package/dist/presentation/cli/commands/goals/close/goal.close.js.map +1 -1
- package/dist/presentation/cli/commands/goals/codify/GoalCodifyOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/codify/GoalCodifyOutputBuilder.js +78 -63
- package/dist/presentation/cli/commands/goals/codify/GoalCodifyOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/codify/goal.codify.js +1 -1
- package/dist/presentation/cli/commands/goals/codify/goal.codify.js.map +1 -1
- package/dist/presentation/cli/commands/goals/commit/GoalCommitOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/commit/GoalCommitOutputBuilder.js +13 -5
- package/dist/presentation/cli/commands/goals/commit/GoalCommitOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/commit/goal.commit.js +1 -1
- package/dist/presentation/cli/commands/goals/commit/goal.commit.js.map +1 -1
- package/dist/presentation/cli/commands/goals/list/GoalListOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/list/GoalListOutputBuilder.js +20 -10
- package/dist/presentation/cli/commands/goals/list/GoalListOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/pause/GoalPauseOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/pause/GoalPauseOutputBuilder.js +14 -8
- package/dist/presentation/cli/commands/goals/pause/GoalPauseOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/pause/goal.pause.js +2 -2
- package/dist/presentation/cli/commands/goals/pause/goal.pause.js.map +1 -1
- package/dist/presentation/cli/commands/goals/qualify/GoalQualifyOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/qualify/GoalQualifyOutputBuilder.js +19 -20
- package/dist/presentation/cli/commands/goals/qualify/GoalQualifyOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/qualify/goal.qualify.js +1 -1
- package/dist/presentation/cli/commands/goals/qualify/goal.qualify.js.map +1 -1
- package/dist/presentation/cli/commands/goals/refine/GoalRefineOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/refine/GoalRefineOutputBuilder.js +25 -23
- package/dist/presentation/cli/commands/goals/refine/GoalRefineOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/refine/goal.refine.js +6 -5
- package/dist/presentation/cli/commands/goals/refine/goal.refine.js.map +1 -1
- package/dist/presentation/cli/commands/goals/reject/GoalRejectOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/reject/GoalRejectOutputBuilder.js +23 -23
- package/dist/presentation/cli/commands/goals/reject/GoalRejectOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/reject/goal.reject.js +1 -1
- package/dist/presentation/cli/commands/goals/reject/goal.reject.js.map +1 -1
- package/dist/presentation/cli/commands/goals/remove/GoalRemoveOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/remove/GoalRemoveOutputBuilder.js +12 -6
- package/dist/presentation/cli/commands/goals/remove/GoalRemoveOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/remove/goal.remove.js +1 -1
- package/dist/presentation/cli/commands/goals/remove/goal.remove.js.map +1 -1
- package/dist/presentation/cli/commands/goals/reset/GoalResetOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/reset/GoalResetOutputBuilder.js +13 -7
- package/dist/presentation/cli/commands/goals/reset/GoalResetOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/reset/goal.reset.js +1 -1
- package/dist/presentation/cli/commands/goals/reset/goal.reset.js.map +1 -1
- package/dist/presentation/cli/commands/goals/resume/GoalResumeOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/resume/GoalResumeOutputBuilder.js +62 -76
- package/dist/presentation/cli/commands/goals/resume/GoalResumeOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/resume/goal.resume.js +2 -2
- package/dist/presentation/cli/commands/goals/resume/goal.resume.js.map +1 -1
- package/dist/presentation/cli/commands/goals/review/GoalReviewOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/review/GoalReviewOutputBuilder.js +73 -78
- package/dist/presentation/cli/commands/goals/review/GoalReviewOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/review/goal.review.js +1 -1
- package/dist/presentation/cli/commands/goals/review/goal.review.js.map +1 -1
- package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.d.ts +1 -9
- package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.js +57 -132
- package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/show/goal.show.js +1 -1
- package/dist/presentation/cli/commands/goals/show/goal.show.js.map +1 -1
- package/dist/presentation/cli/commands/goals/start/GoalStartOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/start/GoalStartOutputBuilder.js +58 -71
- package/dist/presentation/cli/commands/goals/start/GoalStartOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/start/goal.start.js +2 -2
- package/dist/presentation/cli/commands/goals/start/goal.start.js.map +1 -1
- package/dist/presentation/cli/commands/goals/submit/GoalSubmitOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/submit/GoalSubmitOutputBuilder.js +15 -14
- package/dist/presentation/cli/commands/goals/submit/GoalSubmitOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/submit/goal.submit.js +1 -1
- package/dist/presentation/cli/commands/goals/submit/goal.submit.js.map +1 -1
- package/dist/presentation/cli/commands/goals/unblock/GoalUnblockOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/unblock/GoalUnblockOutputBuilder.js +14 -2
- package/dist/presentation/cli/commands/goals/unblock/GoalUnblockOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/unblock/goal.unblock.js +2 -2
- package/dist/presentation/cli/commands/goals/unblock/goal.unblock.js.map +1 -1
- package/dist/presentation/cli/commands/goals/update/GoalUpdateOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/update/GoalUpdateOutputBuilder.js +10 -2
- package/dist/presentation/cli/commands/goals/update/GoalUpdateOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/update/goal.update.js +4 -4
- package/dist/presentation/cli/commands/goals/update/goal.update.js.map +1 -1
- package/dist/presentation/cli/commands/goals/update-progress/GoalUpdateProgressOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/update-progress/GoalUpdateProgressOutputBuilder.js +16 -8
- package/dist/presentation/cli/commands/goals/update-progress/GoalUpdateProgressOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/goals/update-progress/goal.update-progress.js +1 -1
- package/dist/presentation/cli/commands/goals/update-progress/goal.update-progress.js.map +1 -1
- package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.js +57 -0
- package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/guidelines/list/guidelines.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/guidelines/list/guidelines.list.js +9 -27
- package/dist/presentation/cli/commands/guidelines/list/guidelines.list.js.map +1 -1
- package/dist/presentation/cli/commands/heal/HealOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/heal/HealOutputBuilder.js +18 -6
- package/dist/presentation/cli/commands/heal/HealOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/host/workers/worker.view.d.ts.map +1 -1
- package/dist/presentation/cli/commands/host/workers/worker.view.js +10 -4
- package/dist/presentation/cli/commands/host/workers/worker.view.js.map +1 -1
- package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.js +53 -0
- package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/invariants/list/invariants.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/invariants/list/invariants.list.js +9 -23
- package/dist/presentation/cli/commands/invariants/list/invariants.list.js.map +1 -1
- package/dist/presentation/cli/commands/project/init/project.init.js +8 -8
- package/dist/presentation/cli/commands/project/init/project.init.js.map +1 -1
- package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.d.ts +13 -0
- package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.js +64 -0
- package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/relations/list/relations.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/relations/list/relations.list.js +15 -37
- package/dist/presentation/cli/commands/relations/list/relations.list.js.map +1 -1
- package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.js +61 -0
- package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/sessions/list/sessions.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/sessions/list/sessions.list.js +9 -47
- package/dist/presentation/cli/commands/sessions/list/sessions.list.js.map +1 -1
- package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.d.ts +1 -0
- package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.js +13 -1
- package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.d.ts +9 -0
- package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.js +59 -0
- package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/value-propositions/list/values.list.d.ts.map +1 -1
- package/dist/presentation/cli/commands/value-propositions/list/values.list.js +9 -32
- package/dist/presentation/cli/commands/value-propositions/list/values.list.js.map +1 -1
- package/dist/presentation/cli/commands/work/refine/RefineryDisplay.d.ts.map +1 -1
- package/dist/presentation/cli/commands/work/refine/RefineryDisplay.js +12 -15
- package/dist/presentation/cli/commands/work/refine/RefineryDisplay.js.map +1 -1
- package/dist/presentation/cli/rendering/OutputLayout.d.ts +39 -0
- package/dist/presentation/cli/rendering/OutputLayout.d.ts.map +1 -0
- package/dist/presentation/cli/rendering/OutputLayout.js +81 -0
- package/dist/presentation/cli/rendering/OutputLayout.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: decompose-architecture-aggregate
|
|
3
|
+
description: Use when a project has Architecture data that needs migrating to fine-grained entities (Decisions, Invariants, Components, Dependencies). Guides the agent through reading, mapping, confirming, and executing the migration with user oversight.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Decompose Architecture Aggregate
|
|
7
|
+
|
|
8
|
+
Migrate Architecture entity data to fine-grained entities with user confirmation at each step.
|
|
9
|
+
|
|
10
|
+
The Architecture entity is deprecated. Its sections map to dedicated entity types as defined in `ARCHITECTURE_MIGRATION_MAPPING` (src/application/context/architecture/ArchitectureDeprecationConstants.ts):
|
|
11
|
+
|
|
12
|
+
| Architecture Section | Target Entity | Command |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| patterns | Decisions | `jumbo decision add` |
|
|
15
|
+
| principles | Invariants | `jumbo invariant add` |
|
|
16
|
+
| organization | Invariants | `jumbo invariant add` |
|
|
17
|
+
| dataStores | Components | `jumbo component add` |
|
|
18
|
+
| stack | Dependencies | `jumbo dependency add` |
|
|
19
|
+
|
|
20
|
+
## Protocol
|
|
21
|
+
|
|
22
|
+
### 1. Read Current Architecture
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
jumbo architecture view
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Parse the output. If no Architecture data exists, inform the user and stop.
|
|
29
|
+
|
|
30
|
+
### 2. Build Proposed Mappings
|
|
31
|
+
|
|
32
|
+
For each non-empty section in the Architecture view, build a mapping proposal:
|
|
33
|
+
|
|
34
|
+
- **patterns** — Each pattern becomes a Decision. Draft: `--title`, `--context` (use the pattern description), `--rationale` (why this pattern was chosen, if stated).
|
|
35
|
+
- **principles** — Each principle becomes an Invariant. Draft: `--title`, `--description` (the principle text), `--enforcement` (how it is enforced — ask the user if not obvious from the data).
|
|
36
|
+
- **organization** — Each organization entry becomes an Invariant. Draft: `--title`, `--description` (the organizational rule), `--enforcement` (ask the user if not obvious).
|
|
37
|
+
- **dataStores** — Each data store becomes a Component. Draft: `--name`, `--type` (select from: service, db, queue, ui, lib, api, worker, cache, storage), `--description`, `--responsibility`, `--path` (ask the user if not derivable from the data).
|
|
38
|
+
- **stack** — Each stack entry becomes a Dependency. Draft: `--name`, `--ecosystem` (e.g., npm, pip, maven, service), `--package-name`, `--version-constraint` (if known).
|
|
39
|
+
|
|
40
|
+
### 3. Present Mappings for User Confirmation
|
|
41
|
+
|
|
42
|
+
Present all proposed mappings to the user in a single summary, grouped by target entity type. For each proposed mapping, show:
|
|
43
|
+
|
|
44
|
+
- The source section and original data
|
|
45
|
+
- The target entity type
|
|
46
|
+
- The drafted command with all flags
|
|
47
|
+
|
|
48
|
+
Ask the user to confirm, adjust, skip, or augment each mapping. Do not execute any commands until the user has reviewed the full set.
|
|
49
|
+
|
|
50
|
+
### 4. Execute Confirmed Mappings
|
|
51
|
+
|
|
52
|
+
Execute each confirmed mapping one at a time using the appropriate `jumbo` command:
|
|
53
|
+
|
|
54
|
+
- `jumbo decision add --title "..." --context "..." [--rationale "..."] [--alternative "..."]`
|
|
55
|
+
- `jumbo invariant add --title "..." --description "..." --enforcement "..." [--rationale "..."]`
|
|
56
|
+
- `jumbo component add --name "..." --type "..." --description "..." --responsibility "..." --path "..."`
|
|
57
|
+
- `jumbo dependency add --name "..." --ecosystem "..." --package-name "..." [--version-constraint "..."]`
|
|
58
|
+
|
|
59
|
+
Report the result of each command (success or failure) before proceeding to the next.
|
|
60
|
+
|
|
61
|
+
### 5. Present Summary
|
|
62
|
+
|
|
63
|
+
After all confirmed mappings are processed, present a summary:
|
|
64
|
+
|
|
65
|
+
- Count of entities created per type (Decisions, Invariants, Components, Dependencies)
|
|
66
|
+
- List of skipped items and the reason (user chose to skip, or data was insufficient)
|
|
67
|
+
- Any errors encountered during execution
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constants for Architecture entity deprecation messaging.
|
|
3
|
+
* Used by CLI commands and output builders to display consistent migration guidance.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ARCHITECTURE_MIGRATION_MAPPING: {
|
|
6
|
+
readonly patterns: {
|
|
7
|
+
readonly target: "Decisions";
|
|
8
|
+
readonly command: "jumbo decision add";
|
|
9
|
+
};
|
|
10
|
+
readonly principles: {
|
|
11
|
+
readonly target: "Invariants";
|
|
12
|
+
readonly command: "jumbo invariant add";
|
|
13
|
+
};
|
|
14
|
+
readonly organization: {
|
|
15
|
+
readonly target: "Invariants";
|
|
16
|
+
readonly command: "jumbo invariant add";
|
|
17
|
+
};
|
|
18
|
+
readonly dataStores: {
|
|
19
|
+
readonly target: "Components";
|
|
20
|
+
readonly command: "jumbo component add";
|
|
21
|
+
};
|
|
22
|
+
readonly stack: {
|
|
23
|
+
readonly target: "Dependencies";
|
|
24
|
+
readonly command: "jumbo dependency add";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const ARCHITECTURE_DEPRECATION_NOTICE = "Architecture entity is deprecated and will be removed in v3.";
|
|
28
|
+
export declare const ARCHITECTURE_MIGRATION_TABLE: string;
|
|
29
|
+
export declare const ARCHITECTURE_REJECTION_MESSAGE: string;
|
|
30
|
+
//# sourceMappingURL=ArchitectureDeprecationConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchitectureDeprecationConstants.d.ts","sourceRoot":"","sources":["../../../../src/application/context/architecture/ArchitectureDeprecationConstants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;CAMjC,CAAC;AAEX,eAAO,MAAM,+BAA+B,iEACoB,CAAC;AAEjE,eAAO,MAAM,4BAA4B,QAM7B,CAAC;AAEb,eAAO,MAAM,8BAA8B,QAK/B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Constants for Architecture entity deprecation messaging.
|
|
4
|
+
* Used by CLI commands and output builders to display consistent migration guidance.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ARCHITECTURE_REJECTION_MESSAGE = exports.ARCHITECTURE_MIGRATION_TABLE = exports.ARCHITECTURE_DEPRECATION_NOTICE = exports.ARCHITECTURE_MIGRATION_MAPPING = void 0;
|
|
8
|
+
exports.ARCHITECTURE_MIGRATION_MAPPING = {
|
|
9
|
+
patterns: { target: "Decisions", command: "jumbo decision add" },
|
|
10
|
+
principles: { target: "Invariants", command: "jumbo invariant add" },
|
|
11
|
+
organization: { target: "Invariants", command: "jumbo invariant add" },
|
|
12
|
+
dataStores: { target: "Components", command: "jumbo component add" },
|
|
13
|
+
stack: { target: "Dependencies", command: "jumbo dependency add" },
|
|
14
|
+
};
|
|
15
|
+
exports.ARCHITECTURE_DEPRECATION_NOTICE = "Architecture entity is deprecated and will be removed in v3.";
|
|
16
|
+
exports.ARCHITECTURE_MIGRATION_TABLE = [
|
|
17
|
+
` patterns → ${exports.ARCHITECTURE_MIGRATION_MAPPING.patterns.command}`,
|
|
18
|
+
` principles → ${exports.ARCHITECTURE_MIGRATION_MAPPING.principles.command}`,
|
|
19
|
+
` organization → ${exports.ARCHITECTURE_MIGRATION_MAPPING.organization.command}`,
|
|
20
|
+
` dataStores → ${exports.ARCHITECTURE_MIGRATION_MAPPING.dataStores.command}`,
|
|
21
|
+
` stack → ${exports.ARCHITECTURE_MIGRATION_MAPPING.stack.command}`,
|
|
22
|
+
].join("\n");
|
|
23
|
+
exports.ARCHITECTURE_REJECTION_MESSAGE = [
|
|
24
|
+
exports.ARCHITECTURE_DEPRECATION_NOTICE,
|
|
25
|
+
"Register individual entities instead:",
|
|
26
|
+
"",
|
|
27
|
+
exports.ARCHITECTURE_MIGRATION_TABLE,
|
|
28
|
+
].join("\n");
|
|
29
|
+
//# sourceMappingURL=ArchitectureDeprecationConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchitectureDeprecationConstants.js","sourceRoot":"","sources":["../../../../src/application/context/architecture/ArchitectureDeprecationConstants.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEU,QAAA,8BAA8B,GAAG;IAC5C,QAAQ,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,oBAAoB,EAAE;IAChE,UAAU,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,qBAAqB,EAAE;IACpE,YAAY,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,qBAAqB,EAAE;IACtE,UAAU,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,qBAAqB,EAAE;IACpE,KAAK,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,sBAAsB,EAAE;CAC1D,CAAC;AAEE,QAAA,+BAA+B,GAC1C,8DAA8D,CAAC;AAEpD,QAAA,4BAA4B,GAAG;IAC1C,qBAAqB,sCAA8B,CAAC,QAAQ,CAAC,OAAO,EAAE;IACtE,qBAAqB,sCAA8B,CAAC,UAAU,CAAC,OAAO,EAAE;IACxE,qBAAqB,sCAA8B,CAAC,YAAY,CAAC,OAAO,EAAE;IAC1E,qBAAqB,sCAA8B,CAAC,UAAU,CAAC,OAAO,EAAE;IACxE,qBAAqB,sCAA8B,CAAC,KAAK,CAAC,OAAO,EAAE;CACpE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEA,QAAA,8BAA8B,GAAG;IAC5C,uCAA+B;IAC/B,uCAAuC;IACvC,EAAE;IACF,oCAA4B;CAC7B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArchitectureView.d.ts","sourceRoot":"","sources":["../../../../src/application/context/architecture/ArchitectureView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"ArchitectureView.d.ts","sourceRoot":"","sources":["../../../../src/application/context/architecture/ArchitectureView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
package/dist/application/context/architecture/define/LocalDefineArchitectureGateway.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalDefineArchitectureGateway.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/architecture/define/LocalDefineArchitectureGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAK5D,qBAAa,8BAA+B,YAAW,0BAA0B;IAE7E,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAFR,WAAW,EAAE,+BAA+B,EAC5C,kBAAkB,EAAE,yBAAyB,EAC7C,QAAQ,EAAE,SAAS;IAGhC,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"LocalDefineArchitectureGateway.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/architecture/define/LocalDefineArchitectureGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAK5D,qBAAa,8BAA+B,YAAW,0BAA0B;IAE7E,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAFR,WAAW,EAAE,+BAA+B,EAC5C,kBAAkB,EAAE,yBAAyB,EAC7C,QAAQ,EAAE,SAAS;IAGhC,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAsClG"}
|
|
@@ -13,6 +13,9 @@ class LocalDefineArchitectureGateway {
|
|
|
13
13
|
// Check if architecture already exists (precondition)
|
|
14
14
|
const existingArchitecture = await this.architectureReader.findById('architecture');
|
|
15
15
|
if (existingArchitecture) {
|
|
16
|
+
if (existingArchitecture.deprecated) {
|
|
17
|
+
throw new Error(Constants_js_1.ArchitectureErrorMessages.DEPRECATED);
|
|
18
|
+
}
|
|
16
19
|
throw new Error(Constants_js_1.ArchitectureErrorMessages.ALREADY_DEFINED);
|
|
17
20
|
}
|
|
18
21
|
// 1. Create new aggregate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalDefineArchitectureGateway.js","sourceRoot":"","sources":["../../../../../src/application/context/architecture/define/LocalDefineArchitectureGateway.ts"],"names":[],"mappings":";;;AAMA,qFAA+E;AAC/E,+EAAyF;AAGzF,MAAa,8BAA8B;IACzC,YACmB,WAA4C,EAC5C,kBAA6C,EAC7C,QAAmB;QAFnB,gBAAW,GAAX,WAAW,CAAiC;QAC5C,uBAAkB,GAAlB,kBAAkB,CAA2B;QAC7C,aAAQ,GAAR,QAAQ,CAAW;IACnC,CAAC;IAEJ,KAAK,CAAC,kBAAkB,CAAC,OAAkC;QACzD,sDAAsD;QACtD,MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;QACpF,IAAI,oBAAoB,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,wCAAyB,CAAC,eAAe,CAAC,CAAC;QAC7D,CAAC;QAED,0BAA0B;QAC1B,MAAM,cAAc,GAAG,cAAc,CAAC,CAAC,kCAAkC;QACzE,MAAM,YAAY,GAAG,8BAAY,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAEzD,0CAA0C;QAC1C,MAAM,UAAU,GAA4B,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE;YACvE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC5C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,iCAAiC;QACjC,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAC/B,OAAO,CAAC,WAAW,EACnB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,UAAU,EAClB,UAAU,EACV,OAAO,CAAC,KAAK,CACd,CAAC;QAEF,iCAAiC;QACjC,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAErC,sEAAsE;QACtE,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAEnC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC5B,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"LocalDefineArchitectureGateway.js","sourceRoot":"","sources":["../../../../../src/application/context/architecture/define/LocalDefineArchitectureGateway.ts"],"names":[],"mappings":";;;AAMA,qFAA+E;AAC/E,+EAAyF;AAGzF,MAAa,8BAA8B;IACzC,YACmB,WAA4C,EAC5C,kBAA6C,EAC7C,QAAmB;QAFnB,gBAAW,GAAX,WAAW,CAAiC;QAC5C,uBAAkB,GAAlB,kBAAkB,CAA2B;QAC7C,aAAQ,GAAR,QAAQ,CAAW;IACnC,CAAC;IAEJ,KAAK,CAAC,kBAAkB,CAAC,OAAkC;QACzD,sDAAsD;QACtD,MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;QACpF,IAAI,oBAAoB,EAAE,CAAC;YACzB,IAAI,oBAAoB,CAAC,UAAU,EAAE,CAAC;gBACpC,MAAM,IAAI,KAAK,CAAC,wCAAyB,CAAC,UAAU,CAAC,CAAC;YACxD,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,wCAAyB,CAAC,eAAe,CAAC,CAAC;QAC7D,CAAC;QAED,0BAA0B;QAC1B,MAAM,cAAc,GAAG,cAAc,CAAC,CAAC,kCAAkC;QACzE,MAAM,YAAY,GAAG,8BAAY,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAEzD,0CAA0C;QAC1C,MAAM,UAAU,GAA4B,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE;YACvE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC5C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,iCAAiC;QACjC,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAC/B,OAAO,CAAC,WAAW,EACnB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,UAAU,EAClB,UAAU,EACV,OAAO,CAAC,KAAK,CACd,CAAC;QAEF,iCAAiC;QACjC,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAErC,sEAAsE;QACtE,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAEnC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC5B,CAAC;CACF;AA7CD,wEA6CC"}
|
package/dist/application/context/architecture/deprecate/ArchitectureDeprecatedEventHandler.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IEventHandler } from "../../../messaging/IEventHandler.js";
|
|
2
|
+
import { BaseEvent } from "../../../../domain/BaseEvent.js";
|
|
3
|
+
import { IArchitectureDeprecatedProjector } from "./IArchitectureDeprecatedProjector.js";
|
|
4
|
+
/**
|
|
5
|
+
* Event handler for ArchitectureDeprecatedEvent.
|
|
6
|
+
*
|
|
7
|
+
* Application layer handler that orchestrates projection updates
|
|
8
|
+
* when architecture is deprecated. Subscribes to ArchitectureDeprecatedEvent via event bus.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ArchitectureDeprecatedEventHandler implements IEventHandler {
|
|
11
|
+
private readonly projector;
|
|
12
|
+
constructor(projector: IArchitectureDeprecatedProjector);
|
|
13
|
+
handle(event: BaseEvent): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ArchitectureDeprecatedEventHandler.d.ts.map
|
package/dist/application/context/architecture/deprecate/ArchitectureDeprecatedEventHandler.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchitectureDeprecatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/architecture/deprecate/ArchitectureDeprecatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF;;;;;GAKG;AACH,qBAAa,kCAAmC,YAAW,aAAa;IAC1D,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,gCAAgC;IAElE,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAI9C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArchitectureDeprecatedEventHandler = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Event handler for ArchitectureDeprecatedEvent.
|
|
6
|
+
*
|
|
7
|
+
* Application layer handler that orchestrates projection updates
|
|
8
|
+
* when architecture is deprecated. Subscribes to ArchitectureDeprecatedEvent via event bus.
|
|
9
|
+
*/
|
|
10
|
+
class ArchitectureDeprecatedEventHandler {
|
|
11
|
+
constructor(projector) {
|
|
12
|
+
this.projector = projector;
|
|
13
|
+
}
|
|
14
|
+
async handle(event) {
|
|
15
|
+
const architectureDeprecatedEvent = event;
|
|
16
|
+
await this.projector.applyArchitectureDeprecated(architectureDeprecatedEvent);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ArchitectureDeprecatedEventHandler = ArchitectureDeprecatedEventHandler;
|
|
20
|
+
//# sourceMappingURL=ArchitectureDeprecatedEventHandler.js.map
|
package/dist/application/context/architecture/deprecate/ArchitectureDeprecatedEventHandler.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchitectureDeprecatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/architecture/deprecate/ArchitectureDeprecatedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,kCAAkC;IAC7C,YAA6B,SAA2C;QAA3C,cAAS,GAAT,SAAS,CAAkC;IAAG,CAAC;IAE5E,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,2BAA2B,GAAG,KAAoC,CAAC;QACzE,MAAM,IAAI,CAAC,SAAS,CAAC,2BAA2B,CAAC,2BAA2B,CAAC,CAAC;IAChF,CAAC;CACF;AAPD,gFAOC"}
|
package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedEventWriter.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseEvent } from "../../../../domain/BaseEvent.js";
|
|
2
|
+
import { AppendResult } from "../../../persistence/IEventStore.js";
|
|
3
|
+
/**
|
|
4
|
+
* Port interface for writing ArchitectureDeprecatedEvent to the event store.
|
|
5
|
+
*/
|
|
6
|
+
export interface IArchitectureDeprecatedEventWriter {
|
|
7
|
+
append(event: BaseEvent & Record<string, any>): Promise<AppendResult>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=IArchitectureDeprecatedEventWriter.d.ts.map
|
package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedEventWriter.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IArchitectureDeprecatedEventWriter.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/architecture/deprecate/IArchitectureDeprecatedEventWriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACvE"}
|
package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedEventWriter.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IArchitectureDeprecatedEventWriter.js","sourceRoot":"","sources":["../../../../../src/application/context/architecture/deprecate/IArchitectureDeprecatedEventWriter.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ArchitectureDeprecatedEvent } from "../../../../domain/architecture/deprecate/ArchitectureDeprecatedEvent.js";
|
|
2
|
+
/**
|
|
3
|
+
* Port interface for projecting ArchitectureDeprecatedEvent to the read model.
|
|
4
|
+
* Used by ArchitectureDeprecatedEventHandler to update the projection store.
|
|
5
|
+
*/
|
|
6
|
+
export interface IArchitectureDeprecatedProjector {
|
|
7
|
+
applyArchitectureDeprecated(event: ArchitectureDeprecatedEvent): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=IArchitectureDeprecatedProjector.d.ts.map
|
package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedProjector.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IArchitectureDeprecatedProjector.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/architecture/deprecate/IArchitectureDeprecatedProjector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,0EAA0E,CAAC;AAEvH;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C,2BAA2B,CAAC,KAAK,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChF"}
|
package/dist/application/context/architecture/deprecate/IArchitectureDeprecatedProjector.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IArchitectureDeprecatedProjector.js","sourceRoot":"","sources":["../../../../../src/application/context/architecture/deprecate/IArchitectureDeprecatedProjector.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GoalView } from "./GoalView.js";
|
|
2
|
+
/**
|
|
3
|
+
* Port interface for reading goals by title.
|
|
4
|
+
* Used for deduplication when registering goals programmatically.
|
|
5
|
+
*/
|
|
6
|
+
export interface IGoalTitleReader {
|
|
7
|
+
findByTitle(title: string): Promise<GoalView | null>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=IGoalTitleReader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IGoalTitleReader.d.ts","sourceRoot":"","sources":["../../../../src/application/context/goals/IGoalTitleReader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;CACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IGoalTitleReader.js","sourceRoot":"","sources":["../../../../src/application/context/goals/IGoalTitleReader.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ArchitectureView } from "../../architecture/ArchitectureView.js";
|
|
2
1
|
import { ComponentView } from "../../components/ComponentView.js";
|
|
3
2
|
import { DependencyView } from "../../dependencies/DependencyView.js";
|
|
4
3
|
import { DecisionView } from "../../decisions/DecisionView.js";
|
|
@@ -9,7 +8,7 @@ import { RelatedContext } from "./RelatedContext.js";
|
|
|
9
8
|
* GoalContext - Pure relations container for a goal.
|
|
10
9
|
*
|
|
11
10
|
* Holds only the relation collections that provide context for a goal:
|
|
12
|
-
* components, dependencies, decisions, invariants, guidelines
|
|
11
|
+
* components, dependencies, decisions, invariants, guidelines.
|
|
13
12
|
*
|
|
14
13
|
* Does NOT contain the goal itself. The composed return type
|
|
15
14
|
* ContextualGoalView pairs a GoalView with its GoalContext.
|
|
@@ -24,6 +23,5 @@ export interface GoalContext {
|
|
|
24
23
|
readonly decisions: ReadonlyArray<RelatedContext<DecisionView>>;
|
|
25
24
|
readonly invariants: ReadonlyArray<RelatedContext<InvariantView>>;
|
|
26
25
|
readonly guidelines: ReadonlyArray<RelatedContext<GuidelineView>>;
|
|
27
|
-
readonly architecture: ArchitectureView | null;
|
|
28
26
|
}
|
|
29
27
|
//# sourceMappingURL=GoalContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoalContext.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/get/GoalContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GoalContext.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/get/GoalContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;IAClE,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC;IACrE,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;IAChE,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;IAClE,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;CACnE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EntityTypeValue } from "../../../../domain/relations/Constants.js";
|
|
2
|
+
/**
|
|
3
|
+
* Abstraction for the relation discovery goal registration side-effect.
|
|
4
|
+
* When a new entity is created, implementations register a goal to search
|
|
5
|
+
* defined and refined goals for valid relations to the new entity.
|
|
6
|
+
*/
|
|
7
|
+
export interface IRelationDiscoveryGoalRegistrar {
|
|
8
|
+
execute(entityType: EntityTypeValue, entityId: string): Promise<string | null>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=IRelationDiscoveryGoalRegistrar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IRelationDiscoveryGoalRegistrar.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAE5E;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAChF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IRelationDiscoveryGoalRegistrar.js","sourceRoot":"","sources":["../../../../../src/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IRelationDiscoveryGoalRegistrar } from "./IRelationDiscoveryGoalRegistrar.js";
|
|
2
|
+
/**
|
|
3
|
+
* No-op implementation used during database rebuild (event replay).
|
|
4
|
+
* Event replay must not produce side-effects like creating new goals.
|
|
5
|
+
*/
|
|
6
|
+
export declare class NoOpRelationDiscoveryGoalRegistrar implements IRelationDiscoveryGoalRegistrar {
|
|
7
|
+
execute(): Promise<null>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=NoOpRelationDiscoveryGoalRegistrar.d.ts.map
|
package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoOpRelationDiscoveryGoalRegistrar.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEvF;;;GAGG;AACH,qBAAa,kCAAmC,YAAW,+BAA+B;IAClF,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAG/B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoOpRelationDiscoveryGoalRegistrar = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* No-op implementation used during database rebuild (event replay).
|
|
6
|
+
* Event replay must not produce side-effects like creating new goals.
|
|
7
|
+
*/
|
|
8
|
+
class NoOpRelationDiscoveryGoalRegistrar {
|
|
9
|
+
async execute() {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.NoOpRelationDiscoveryGoalRegistrar = NoOpRelationDiscoveryGoalRegistrar;
|
|
14
|
+
//# sourceMappingURL=NoOpRelationDiscoveryGoalRegistrar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoOpRelationDiscoveryGoalRegistrar.js","sourceRoot":"","sources":["../../../../../src/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,MAAa,kCAAkC;IAC7C,KAAK,CAAC,OAAO;QACX,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAJD,gFAIC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IEventHandler } from "../../../messaging/IEventHandler.js";
|
|
2
|
+
import { BaseEvent } from "../../../../domain/BaseEvent.js";
|
|
3
|
+
import { IRelationDiscoveryGoalRegistrar } from "./IRelationDiscoveryGoalRegistrar.js";
|
|
4
|
+
/**
|
|
5
|
+
* Subscribes to entity-created events and delegates to the relation discovery
|
|
6
|
+
* registrar, which creates a goal for a future session to find and register
|
|
7
|
+
* valid relations to the newly created entity.
|
|
8
|
+
*/
|
|
9
|
+
export declare class RelationDiscoveryEventHandler implements IEventHandler {
|
|
10
|
+
private readonly relationDiscoveryGoalRegistrar;
|
|
11
|
+
constructor(relationDiscoveryGoalRegistrar: IRelationDiscoveryGoalRegistrar);
|
|
12
|
+
handle(event: BaseEvent): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=RelationDiscoveryEventHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationDiscoveryEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/relations/discover/RelationDiscoveryEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAO5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAUvF;;;;GAIG;AACH,qBAAa,6BAA8B,YAAW,aAAa;IAE/D,OAAO,CAAC,QAAQ,CAAC,8BAA8B;gBAA9B,8BAA8B,EAAE,+BAA+B;IAG5E,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAO9C"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelationDiscoveryEventHandler = void 0;
|
|
4
|
+
const Constants_js_1 = require("../../../../domain/components/Constants.js");
|
|
5
|
+
const Constants_js_2 = require("../../../../domain/decisions/Constants.js");
|
|
6
|
+
const Constants_js_3 = require("../../../../domain/dependencies/Constants.js");
|
|
7
|
+
const Constants_js_4 = require("../../../../domain/guidelines/Constants.js");
|
|
8
|
+
const Constants_js_5 = require("../../../../domain/invariants/Constants.js");
|
|
9
|
+
const Constants_js_6 = require("../../../../domain/relations/Constants.js");
|
|
10
|
+
const EVENT_TYPE_TO_ENTITY_TYPE = {
|
|
11
|
+
[Constants_js_1.ComponentEventType.ADDED]: Constants_js_6.EntityType.COMPONENT,
|
|
12
|
+
[Constants_js_2.DecisionEventType.ADDED]: Constants_js_6.EntityType.DECISION,
|
|
13
|
+
[Constants_js_3.DependencyEventType.ADDED]: Constants_js_6.EntityType.DEPENDENCY,
|
|
14
|
+
[Constants_js_4.GuidelineEventType.ADDED]: Constants_js_6.EntityType.GUIDELINE,
|
|
15
|
+
[Constants_js_5.InvariantEventType.ADDED]: Constants_js_6.EntityType.INVARIANT,
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Subscribes to entity-created events and delegates to the relation discovery
|
|
19
|
+
* registrar, which creates a goal for a future session to find and register
|
|
20
|
+
* valid relations to the newly created entity.
|
|
21
|
+
*/
|
|
22
|
+
class RelationDiscoveryEventHandler {
|
|
23
|
+
constructor(relationDiscoveryGoalRegistrar) {
|
|
24
|
+
this.relationDiscoveryGoalRegistrar = relationDiscoveryGoalRegistrar;
|
|
25
|
+
}
|
|
26
|
+
async handle(event) {
|
|
27
|
+
const entityType = EVENT_TYPE_TO_ENTITY_TYPE[event.type];
|
|
28
|
+
if (!entityType) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
await this.relationDiscoveryGoalRegistrar.execute(entityType, event.aggregateId);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.RelationDiscoveryEventHandler = RelationDiscoveryEventHandler;
|
|
35
|
+
//# sourceMappingURL=RelationDiscoveryEventHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationDiscoveryEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/relations/discover/RelationDiscoveryEventHandler.ts"],"names":[],"mappings":";;;AAEA,6EAAgF;AAChF,4EAA8E;AAC9E,+EAAmF;AACnF,6EAAgF;AAChF,6EAAgF;AAChF,4EAAwF;AAGxF,MAAM,yBAAyB,GAAoC;IACjE,CAAC,iCAAkB,CAAC,KAAK,CAAC,EAAE,yBAAU,CAAC,SAAS;IAChD,CAAC,gCAAiB,CAAC,KAAK,CAAC,EAAE,yBAAU,CAAC,QAAQ;IAC9C,CAAC,kCAAmB,CAAC,KAAK,CAAC,EAAE,yBAAU,CAAC,UAAU;IAClD,CAAC,iCAAkB,CAAC,KAAK,CAAC,EAAE,yBAAU,CAAC,SAAS;IAChD,CAAC,iCAAkB,CAAC,KAAK,CAAC,EAAE,yBAAU,CAAC,SAAS;CACjD,CAAC;AAEF;;;;GAIG;AACH,MAAa,6BAA6B;IACxC,YACmB,8BAA+D;QAA/D,mCAA8B,GAA9B,8BAA8B,CAAiC;IAC/E,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,UAAU,GAAG,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,IAAI,CAAC,8BAA8B,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACnF,CAAC;CACF;AAZD,sEAYC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EntityTypeValue } from "../../../../domain/relations/Constants.js";
|
|
2
|
+
import { ILogger } from "../../../logging/ILogger.js";
|
|
3
|
+
import { IGoalTitleReader } from "../../goals/IGoalTitleReader.js";
|
|
4
|
+
import { AddGoalCommandHandler } from "../../goals/add/AddGoalCommandHandler.js";
|
|
5
|
+
import { IRelationDiscoveryGoalRegistrar } from "./IRelationDiscoveryGoalRegistrar.js";
|
|
6
|
+
/**
|
|
7
|
+
* Registers a relation-discovery goal when a new entity is created.
|
|
8
|
+
* The goal directs a future session to search defined and refined goals
|
|
9
|
+
* for valid relations to the entity and register them with Jumbo.
|
|
10
|
+
*
|
|
11
|
+
* Idempotent: skips registration if a goal with the same title already exists.
|
|
12
|
+
*/
|
|
13
|
+
export declare class RelationDiscoveryGoalRegistrar implements IRelationDiscoveryGoalRegistrar {
|
|
14
|
+
private readonly goalTitleReader;
|
|
15
|
+
private readonly addGoalCommandHandler;
|
|
16
|
+
private readonly logger;
|
|
17
|
+
constructor(goalTitleReader: IGoalTitleReader, addGoalCommandHandler: AddGoalCommandHandler, logger: ILogger);
|
|
18
|
+
execute(entityType: EntityTypeValue, entityId: string): Promise<string | null>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=RelationDiscoveryGoalRegistrar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationDiscoveryGoalRegistrar.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/relations/discover/RelationDiscoveryGoalRegistrar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEvF;;;;;;GAMG;AACH,qBAAa,8BAA+B,YAAW,+BAA+B;IAElF,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFN,eAAe,EAAE,gBAAgB,EACjC,qBAAqB,EAAE,qBAAqB,EAC5C,MAAM,EAAE,OAAO;IAG5B,OAAO,CAAC,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAiCrF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelationDiscoveryGoalRegistrar = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Registers a relation-discovery goal when a new entity is created.
|
|
6
|
+
* The goal directs a future session to search defined and refined goals
|
|
7
|
+
* for valid relations to the entity and register them with Jumbo.
|
|
8
|
+
*
|
|
9
|
+
* Idempotent: skips registration if a goal with the same title already exists.
|
|
10
|
+
*/
|
|
11
|
+
class RelationDiscoveryGoalRegistrar {
|
|
12
|
+
constructor(goalTitleReader, addGoalCommandHandler, logger) {
|
|
13
|
+
this.goalTitleReader = goalTitleReader;
|
|
14
|
+
this.addGoalCommandHandler = addGoalCommandHandler;
|
|
15
|
+
this.logger = logger;
|
|
16
|
+
}
|
|
17
|
+
async execute(entityType, entityId) {
|
|
18
|
+
try {
|
|
19
|
+
const title = `Discover relations for ${entityType} ${entityId}`;
|
|
20
|
+
this.logger.debug("Checking for existing relation-discovery goal", { entityType, entityId, title });
|
|
21
|
+
const existingGoal = await this.goalTitleReader.findByTitle(title);
|
|
22
|
+
if (existingGoal) {
|
|
23
|
+
this.logger.info("Relation-discovery goal already exists, skipping registration", {
|
|
24
|
+
entityType,
|
|
25
|
+
entityId,
|
|
26
|
+
existingGoalId: existingGoal.goalId,
|
|
27
|
+
});
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
const { goalId } = await this.addGoalCommandHandler.execute({
|
|
31
|
+
title,
|
|
32
|
+
objective: `Search defined and refined goals for valid relations to the newly created ${entityType} '${entityId}' and register those relations with Jumbo.`,
|
|
33
|
+
successCriteria: [
|
|
34
|
+
`All defined and refined goals have been checked for relevance to ${entityType} '${entityId}'`,
|
|
35
|
+
`Valid relations between goals and the ${entityType} have been registered`,
|
|
36
|
+
],
|
|
37
|
+
});
|
|
38
|
+
this.logger.info("Relation-discovery goal registered", { entityType, entityId, goalId });
|
|
39
|
+
return goalId;
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
this.logger.error("Failed to register relation-discovery goal", error, { entityType, entityId });
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.RelationDiscoveryGoalRegistrar = RelationDiscoveryGoalRegistrar;
|
|
48
|
+
//# sourceMappingURL=RelationDiscoveryGoalRegistrar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationDiscoveryGoalRegistrar.js","sourceRoot":"","sources":["../../../../../src/application/context/relations/discover/RelationDiscoveryGoalRegistrar.ts"],"names":[],"mappings":";;;AAMA;;;;;;GAMG;AACH,MAAa,8BAA8B;IACzC,YACmB,eAAiC,EACjC,qBAA4C,EAC5C,MAAe;QAFf,oBAAe,GAAf,eAAe,CAAkB;QACjC,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,WAAM,GAAN,MAAM,CAAS;IAC/B,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,UAA2B,EAAE,QAAgB;QACzD,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,0BAA0B,UAAU,IAAI,QAAQ,EAAE,CAAC;YAEjE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+CAA+C,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;YAEpG,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACnE,IAAI,YAAY,EAAE,CAAC;gBACjB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+DAA+D,EAAE;oBAChF,UAAU;oBACV,QAAQ;oBACR,cAAc,EAAE,YAAY,CAAC,MAAM;iBACpC,CAAC,CAAC;gBACH,OAAO,IAAI,CAAC;YACd,CAAC;YAED,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;gBAC1D,KAAK;gBACL,SAAS,EAAE,6EAA6E,UAAU,KAAK,QAAQ,4CAA4C;gBAC3J,eAAe,EAAE;oBACf,oEAAoE,UAAU,KAAK,QAAQ,GAAG;oBAC9F,yCAAyC,UAAU,uBAAuB;iBAC3E;aACF,CAAC,CAAC;YAEH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;YAEzF,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,4CAA4C,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC;YACjG,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF;AAxCD,wEAwCC"}
|
|
@@ -3,6 +3,7 @@ export declare const SessionInstructionSignal: {
|
|
|
3
3
|
readonly PRIMITIVE_GAPS_DETECTED: "primitive-gaps-detected";
|
|
4
4
|
readonly PAUSED_GOALS_RESUME: "paused-goals-resume";
|
|
5
5
|
readonly GOAL_SELECTION_PROMPT: "goal-selection-prompt";
|
|
6
|
+
readonly ARCHITECTURE_DEPRECATED: "architecture-deprecated";
|
|
6
7
|
};
|
|
7
8
|
export type SessionInstructionSignalValue = typeof SessionInstructionSignal[keyof typeof SessionInstructionSignal];
|
|
8
9
|
//# sourceMappingURL=SessionInstructionSignal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionInstructionSignal.d.ts","sourceRoot":"","sources":["../../../../src/application/context/sessions/SessionInstructionSignal.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"SessionInstructionSignal.d.ts","sourceRoot":"","sources":["../../../../src/application/context/sessions/SessionInstructionSignal.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;;;;CAM3B,CAAC;AAEX,MAAM,MAAM,6BAA6B,GACvC,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -6,5 +6,6 @@ exports.SessionInstructionSignal = {
|
|
|
6
6
|
PRIMITIVE_GAPS_DETECTED: "primitive-gaps-detected",
|
|
7
7
|
PAUSED_GOALS_RESUME: "paused-goals-resume",
|
|
8
8
|
GOAL_SELECTION_PROMPT: "goal-selection-prompt",
|
|
9
|
+
ARCHITECTURE_DEPRECATED: "architecture-deprecated",
|
|
9
10
|
};
|
|
10
11
|
//# sourceMappingURL=SessionInstructionSignal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionInstructionSignal.js","sourceRoot":"","sources":["../../../../src/application/context/sessions/SessionInstructionSignal.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC,qBAAqB,EAAE,uBAAuB;IAC9C,uBAAuB,EAAE,yBAAyB;IAClD,mBAAmB,EAAE,qBAAqB;IAC1C,qBAAqB,EAAE,uBAAuB;
|
|
1
|
+
{"version":3,"file":"SessionInstructionSignal.js","sourceRoot":"","sources":["../../../../src/application/context/sessions/SessionInstructionSignal.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC,qBAAqB,EAAE,uBAAuB;IAC9C,uBAAuB,EAAE,yBAAyB;IAClD,mBAAmB,EAAE,qBAAqB;IAC1C,qBAAqB,EAAE,uBAAuB;IAC9C,uBAAuB,EAAE,yBAAyB;CAC1C,CAAC"}
|
|
@@ -4,11 +4,13 @@ import { SessionStartResponse } from "./SessionStartResponse.js";
|
|
|
4
4
|
import { StartSessionCommandHandler } from "./StartSessionCommandHandler.js";
|
|
5
5
|
import { SessionContextQueryHandler } from "../get/SessionContextQueryHandler.js";
|
|
6
6
|
import { IBrownfieldStatusReader } from "./IBrownfieldStatusReader.js";
|
|
7
|
+
import { IArchitectureReader } from "../../architecture/IArchitectureReader.js";
|
|
7
8
|
export declare class LocalStartSessionGateway implements IStartSessionGateway {
|
|
8
9
|
private readonly sessionContextQueryHandler;
|
|
9
10
|
private readonly startSessionCommandHandler;
|
|
10
11
|
private readonly brownfieldStatusReader;
|
|
11
|
-
|
|
12
|
+
private readonly architectureReader?;
|
|
13
|
+
constructor(sessionContextQueryHandler: SessionContextQueryHandler, startSessionCommandHandler: StartSessionCommandHandler, brownfieldStatusReader: IBrownfieldStatusReader, architectureReader?: IArchitectureReader | undefined);
|
|
12
14
|
startSession(request: SessionStartRequest): Promise<SessionStartResponse>;
|
|
13
15
|
private buildStartInstructions;
|
|
14
16
|
private hasPrimitiveGaps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalStartSessionGateway.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/sessions/start/LocalStartSessionGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"LocalStartSessionGateway.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/sessions/start/LocalStartSessionGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAIhF,qBAAa,wBAAyB,YAAW,oBAAoB;IAEjE,OAAO,CAAC,QAAQ,CAAC,0BAA0B;IAC3C,OAAO,CAAC,QAAQ,CAAC,0BAA0B;IAC3C,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;gBAHnB,0BAA0B,EAAE,0BAA0B,EACtD,0BAA0B,EAAE,0BAA0B,EACtD,sBAAsB,EAAE,uBAAuB,EAC/C,kBAAkB,CAAC,EAAE,mBAAmB,YAAA;IAGrD,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA6B/E,OAAO,CAAC,sBAAsB;IA4B9B,OAAO,CAAC,gBAAgB;CAYzB"}
|