jumbo-cli 3.1.0 → 3.3.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/README.md +3 -3
- package/assets/skills/codify-jumbo-goal/SKILL.md +0 -6
- package/assets/skills/define-jumbo-goals/SKILL.md +24 -25
- package/assets/skills/jumbo-add-component/SKILL.md +9 -0
- package/assets/skills/jumbo-add-decision/SKILL.md +9 -0
- package/assets/skills/jumbo-add-dependency/SKILL.md +9 -0
- package/assets/skills/jumbo-add-guideline/SKILL.md +9 -0
- package/assets/skills/jumbo-add-invariant/SKILL.md +9 -0
- package/assets/skills/jumbo-design-goal/SKILL.md +1 -1
- package/assets/skills/refine-jumbo-goals/SKILL.md +4 -4
- package/dist/application/agents/AgentInvocation.d.ts +10 -0
- package/dist/application/agents/AgentInvocation.d.ts.map +1 -0
- package/dist/application/agents/AgentInvocation.js +2 -0
- package/dist/application/agents/AgentInvocation.js.map +1 -0
- package/dist/application/agents/IAgentGateway.d.ts +5 -0
- package/dist/application/agents/IAgentGateway.d.ts.map +1 -0
- package/dist/application/agents/IAgentGateway.js +2 -0
- package/dist/application/agents/IAgentGateway.js.map +1 -0
- package/dist/application/context/decisions/get/IDecisionViewReader.d.ts +7 -0
- package/dist/application/context/decisions/get/IDecisionViewReader.d.ts.map +1 -1
- package/dist/application/context/decisions/search/DecisionSearchCriteria.d.ts +17 -0
- package/dist/application/context/decisions/search/DecisionSearchCriteria.d.ts.map +1 -0
- package/dist/application/context/decisions/search/DecisionSearchCriteria.js +12 -0
- package/dist/application/context/decisions/search/DecisionSearchCriteria.js.map +1 -0
- package/dist/application/context/decisions/search/ISearchDecisionsGateway.d.ts +10 -0
- package/dist/application/context/decisions/search/ISearchDecisionsGateway.d.ts.map +1 -0
- package/dist/application/context/decisions/search/ISearchDecisionsGateway.js +6 -0
- package/dist/application/context/decisions/search/ISearchDecisionsGateway.js.map +1 -0
- package/dist/application/context/decisions/search/LocalSearchDecisionsGateway.d.ts +14 -0
- package/dist/application/context/decisions/search/LocalSearchDecisionsGateway.d.ts.map +1 -0
- package/dist/application/context/decisions/search/LocalSearchDecisionsGateway.js +14 -0
- package/dist/application/context/decisions/search/LocalSearchDecisionsGateway.js.map +1 -0
- package/dist/application/context/decisions/search/SearchDecisionsController.d.ts +13 -0
- package/dist/application/context/decisions/search/SearchDecisionsController.d.ts.map +1 -0
- package/dist/application/context/decisions/search/SearchDecisionsController.js +13 -0
- package/dist/application/context/decisions/search/SearchDecisionsController.js.map +1 -0
- package/dist/application/context/decisions/search/SearchDecisionsRequest.d.ts +8 -0
- package/dist/application/context/decisions/search/SearchDecisionsRequest.d.ts.map +1 -0
- package/dist/application/context/decisions/search/SearchDecisionsRequest.js +5 -0
- package/dist/application/context/decisions/search/SearchDecisionsRequest.js.map +1 -0
- package/dist/application/context/decisions/search/SearchDecisionsResponse.d.ts +8 -0
- package/dist/application/context/decisions/search/SearchDecisionsResponse.d.ts.map +1 -0
- package/dist/application/context/decisions/search/SearchDecisionsResponse.js +5 -0
- package/dist/application/context/decisions/search/SearchDecisionsResponse.js.map +1 -0
- package/dist/application/context/dependencies/get/IDependencyViewReader.d.ts +7 -0
- package/dist/application/context/dependencies/get/IDependencyViewReader.d.ts.map +1 -1
- package/dist/application/context/dependencies/search/DependencySearchCriteria.d.ts +22 -0
- package/dist/application/context/dependencies/search/DependencySearchCriteria.d.ts.map +1 -0
- package/dist/application/context/dependencies/search/DependencySearchCriteria.js +12 -0
- package/dist/application/context/dependencies/search/DependencySearchCriteria.js.map +1 -0
- package/dist/application/context/dependencies/search/ISearchDependenciesGateway.d.ts +10 -0
- package/dist/application/context/dependencies/search/ISearchDependenciesGateway.d.ts.map +1 -0
- package/dist/application/context/dependencies/search/ISearchDependenciesGateway.js +6 -0
- package/dist/application/context/dependencies/search/ISearchDependenciesGateway.js.map +1 -0
- package/dist/application/context/dependencies/search/LocalSearchDependenciesGateway.d.ts +14 -0
- package/dist/application/context/dependencies/search/LocalSearchDependenciesGateway.d.ts.map +1 -0
- package/dist/application/context/dependencies/search/LocalSearchDependenciesGateway.js +14 -0
- package/dist/application/context/dependencies/search/LocalSearchDependenciesGateway.js.map +1 -0
- package/dist/application/context/dependencies/search/SearchDependenciesController.d.ts +13 -0
- package/dist/application/context/dependencies/search/SearchDependenciesController.d.ts.map +1 -0
- package/dist/application/context/dependencies/search/SearchDependenciesController.js +13 -0
- package/dist/application/context/dependencies/search/SearchDependenciesController.js.map +1 -0
- package/dist/application/context/dependencies/search/SearchDependenciesRequest.d.ts +8 -0
- package/dist/application/context/dependencies/search/SearchDependenciesRequest.d.ts.map +1 -0
- package/dist/application/context/dependencies/search/SearchDependenciesRequest.js +5 -0
- package/dist/application/context/dependencies/search/SearchDependenciesRequest.js.map +1 -0
- package/dist/application/context/dependencies/search/SearchDependenciesResponse.d.ts +8 -0
- package/dist/application/context/dependencies/search/SearchDependenciesResponse.d.ts.map +1 -0
- package/dist/application/context/dependencies/search/SearchDependenciesResponse.js +5 -0
- package/dist/application/context/dependencies/search/SearchDependenciesResponse.js.map +1 -0
- package/dist/application/context/goals/codify/CodifierProcessManager.d.ts +34 -0
- package/dist/application/context/goals/codify/CodifierProcessManager.d.ts.map +1 -0
- package/dist/application/context/goals/codify/CodifierProcessManager.js +177 -0
- package/dist/application/context/goals/codify/CodifierProcessManager.js.map +1 -0
- package/dist/application/context/goals/refine/RefinerProcessManager.d.ts +28 -0
- package/dist/application/context/goals/refine/RefinerProcessManager.d.ts.map +1 -0
- package/dist/application/context/goals/refine/RefinerProcessManager.js +163 -0
- package/dist/application/context/goals/refine/RefinerProcessManager.js.map +1 -0
- package/dist/application/context/goals/review/ReviewerProcessManager.d.ts +28 -0
- package/dist/application/context/goals/review/ReviewerProcessManager.d.ts.map +1 -0
- package/dist/application/context/goals/review/ReviewerProcessManager.js +174 -0
- package/dist/application/context/goals/review/ReviewerProcessManager.js.map +1 -0
- package/dist/application/context/guidelines/get/IGuidelineViewReader.d.ts +7 -0
- package/dist/application/context/guidelines/get/IGuidelineViewReader.d.ts.map +1 -1
- package/dist/application/context/guidelines/search/GuidelineSearchCriteria.d.ts +17 -0
- package/dist/application/context/guidelines/search/GuidelineSearchCriteria.d.ts.map +1 -0
- package/dist/application/context/guidelines/search/GuidelineSearchCriteria.js +12 -0
- package/dist/application/context/guidelines/search/GuidelineSearchCriteria.js.map +1 -0
- package/dist/application/context/guidelines/search/ISearchGuidelinesGateway.d.ts +10 -0
- package/dist/application/context/guidelines/search/ISearchGuidelinesGateway.d.ts.map +1 -0
- package/dist/application/context/guidelines/search/ISearchGuidelinesGateway.js +6 -0
- package/dist/application/context/guidelines/search/ISearchGuidelinesGateway.js.map +1 -0
- package/dist/application/context/guidelines/search/LocalSearchGuidelinesGateway.d.ts +14 -0
- package/dist/application/context/guidelines/search/LocalSearchGuidelinesGateway.d.ts.map +1 -0
- package/dist/application/context/guidelines/search/LocalSearchGuidelinesGateway.js +14 -0
- package/dist/application/context/guidelines/search/LocalSearchGuidelinesGateway.js.map +1 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesController.d.ts +13 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesController.d.ts.map +1 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesController.js +13 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesController.js.map +1 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesRequest.d.ts +8 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesRequest.d.ts.map +1 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesRequest.js +5 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesRequest.js.map +1 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesResponse.d.ts +8 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesResponse.d.ts.map +1 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesResponse.js +5 -0
- package/dist/application/context/guidelines/search/SearchGuidelinesResponse.js.map +1 -0
- package/dist/application/context/invariants/get/IInvariantViewReader.d.ts +7 -0
- package/dist/application/context/invariants/get/IInvariantViewReader.d.ts.map +1 -1
- package/dist/application/context/invariants/search/ISearchInvariantsGateway.d.ts +10 -0
- package/dist/application/context/invariants/search/ISearchInvariantsGateway.d.ts.map +1 -0
- package/dist/application/context/invariants/search/ISearchInvariantsGateway.js +6 -0
- package/dist/application/context/invariants/search/ISearchInvariantsGateway.js.map +1 -0
- package/dist/application/context/invariants/search/InvariantSearchCriteria.d.ts +14 -0
- package/dist/application/context/invariants/search/InvariantSearchCriteria.d.ts.map +1 -0
- package/dist/application/context/invariants/search/InvariantSearchCriteria.js +11 -0
- package/dist/application/context/invariants/search/InvariantSearchCriteria.js.map +1 -0
- package/dist/application/context/invariants/search/LocalSearchInvariantsGateway.d.ts +14 -0
- package/dist/application/context/invariants/search/LocalSearchInvariantsGateway.d.ts.map +1 -0
- package/dist/application/context/invariants/search/LocalSearchInvariantsGateway.js +14 -0
- package/dist/application/context/invariants/search/LocalSearchInvariantsGateway.js.map +1 -0
- package/dist/application/context/invariants/search/SearchInvariantsController.d.ts +13 -0
- package/dist/application/context/invariants/search/SearchInvariantsController.d.ts.map +1 -0
- package/dist/application/context/invariants/search/SearchInvariantsController.js +13 -0
- package/dist/application/context/invariants/search/SearchInvariantsController.js.map +1 -0
- package/dist/application/context/invariants/search/SearchInvariantsRequest.d.ts +8 -0
- package/dist/application/context/invariants/search/SearchInvariantsRequest.d.ts.map +1 -0
- package/dist/application/context/invariants/search/SearchInvariantsRequest.js +5 -0
- package/dist/application/context/invariants/search/SearchInvariantsRequest.js.map +1 -0
- package/dist/application/context/invariants/search/SearchInvariantsResponse.d.ts +8 -0
- package/dist/application/context/invariants/search/SearchInvariantsResponse.d.ts.map +1 -0
- package/dist/application/context/invariants/search/SearchInvariantsResponse.js +5 -0
- package/dist/application/context/invariants/search/SearchInvariantsResponse.js.map +1 -0
- package/dist/application/context/project/ProjectKnowledgeInventoryView.d.ts +12 -0
- package/dist/application/context/project/ProjectKnowledgeInventoryView.d.ts.map +1 -0
- package/dist/application/context/project/ProjectKnowledgeInventoryView.js +2 -0
- package/dist/application/context/project/ProjectKnowledgeInventoryView.js.map +1 -0
- package/dist/application/context/project/ProjectLifecycleState.d.ts +7 -0
- package/dist/application/context/project/ProjectLifecycleState.d.ts.map +1 -0
- package/dist/application/context/project/ProjectLifecycleState.js +2 -0
- package/dist/application/context/project/ProjectLifecycleState.js.map +1 -0
- package/dist/application/context/project/ProjectSummaryView.d.ts +2 -0
- package/dist/application/context/project/ProjectSummaryView.d.ts.map +1 -1
- package/dist/application/context/project/ProjectView.d.ts +2 -0
- package/dist/application/context/project/ProjectView.d.ts.map +1 -1
- package/dist/application/context/project/query/GetProjectSummaryQueryHandler.d.ts.map +1 -1
- package/dist/application/context/project/query/GetProjectSummaryQueryHandler.js +3 -0
- package/dist/application/context/project/query/GetProjectSummaryQueryHandler.js.map +1 -1
- package/dist/application/context/project/query/IProjectContextReader.d.ts +10 -0
- package/dist/application/context/project/query/IProjectContextReader.d.ts.map +1 -1
- package/dist/application/context/project/query/ProjectLifecycleClassifier.d.ts +9 -0
- package/dist/application/context/project/query/ProjectLifecycleClassifier.d.ts.map +1 -0
- package/dist/application/context/project/query/ProjectLifecycleClassifier.js +18 -0
- package/dist/application/context/project/query/ProjectLifecycleClassifier.js.map +1 -0
- package/dist/application/context/project/query/north-star/ProjectNorthStarView.d.ts +20 -0
- package/dist/application/context/project/query/north-star/ProjectNorthStarView.d.ts.map +1 -0
- package/dist/application/context/project/query/north-star/ProjectNorthStarView.js +2 -0
- package/dist/application/context/project/query/north-star/ProjectNorthStarView.js.map +1 -0
- package/dist/application/context/project/show/IShowProjectGateway.d.ts +6 -0
- package/dist/application/context/project/show/IShowProjectGateway.d.ts.map +1 -0
- package/dist/application/context/project/show/IShowProjectGateway.js +2 -0
- package/dist/application/context/project/show/IShowProjectGateway.js.map +1 -0
- package/dist/application/context/project/show/LocalShowProjectGateway.d.ts +16 -0
- package/dist/application/context/project/show/LocalShowProjectGateway.d.ts.map +1 -0
- package/dist/application/context/project/show/LocalShowProjectGateway.js +32 -0
- package/dist/application/context/project/show/LocalShowProjectGateway.js.map +1 -0
- package/dist/application/context/project/show/ShowProjectController.d.ts +9 -0
- package/dist/application/context/project/show/ShowProjectController.d.ts.map +1 -0
- package/dist/application/context/project/show/ShowProjectController.js +9 -0
- package/dist/application/context/project/show/ShowProjectController.js.map +1 -0
- package/dist/application/context/project/show/ShowProjectRequest.d.ts +4 -0
- package/dist/application/context/project/show/ShowProjectRequest.d.ts.map +1 -0
- package/dist/application/context/project/show/ShowProjectRequest.js +2 -0
- package/dist/application/context/project/show/ShowProjectRequest.js.map +1 -0
- package/dist/application/context/project/show/ShowProjectResponse.d.ts +7 -0
- package/dist/application/context/project/show/ShowProjectResponse.d.ts.map +1 -0
- package/dist/application/context/project/show/ShowProjectResponse.js +2 -0
- package/dist/application/context/project/show/ShowProjectResponse.js.map +1 -0
- package/dist/application/context/sessions/get/SessionContext.d.ts +2 -2
- package/dist/application/context/sessions/get/SessionContextQueryHandler.d.ts +1 -1
- package/dist/application/context/sessions/get/SessionContextQueryHandler.d.ts.map +1 -1
- package/dist/application/context/sessions/get/SessionContextQueryHandler.js +3 -1
- package/dist/application/context/sessions/get/SessionContextQueryHandler.js.map +1 -1
- package/dist/application/context/sessions/start/LocalStartSessionGateway.d.ts +2 -7
- package/dist/application/context/sessions/start/LocalStartSessionGateway.d.ts.map +1 -1
- package/dist/application/context/sessions/start/LocalStartSessionGateway.js +4 -35
- package/dist/application/context/sessions/start/LocalStartSessionGateway.js.map +1 -1
- package/dist/application/context/sessions/start/SessionStartResponse.d.ts +4 -4
- package/dist/application/context/sessions/start/SessionStartResponse.d.ts.map +1 -1
- package/dist/application/daemons/IProcessManager.d.ts +28 -0
- package/dist/application/daemons/IProcessManager.d.ts.map +1 -0
- package/dist/application/daemons/IProcessManager.js +2 -0
- package/dist/application/daemons/IProcessManager.js.map +1 -0
- package/dist/application/daemons/IShutdownSignal.d.ts +5 -0
- package/dist/application/daemons/IShutdownSignal.d.ts.map +1 -0
- package/dist/application/daemons/IShutdownSignal.js +2 -0
- package/dist/application/daemons/IShutdownSignal.js.map +1 -0
- package/dist/application/daemons/ITicker.d.ts +4 -0
- package/dist/application/daemons/ITicker.d.ts.map +1 -0
- package/dist/application/daemons/ITicker.js +2 -0
- package/dist/application/daemons/ITicker.js.map +1 -0
- package/dist/application/daemons/IWorkerDaemonProcessController.d.ts +30 -0
- package/dist/application/daemons/IWorkerDaemonProcessController.d.ts.map +1 -0
- package/dist/application/daemons/IWorkerDaemonProcessController.js +2 -0
- package/dist/application/daemons/IWorkerDaemonProcessController.js.map +1 -0
- package/dist/application/daemons/PollingLoop.d.ts +13 -0
- package/dist/application/daemons/PollingLoop.d.ts.map +1 -0
- package/dist/application/daemons/PollingLoop.js +15 -0
- package/dist/application/daemons/PollingLoop.js.map +1 -0
- package/dist/application/daemons/WorkerDaemonCatalog.d.ts +11 -0
- package/dist/application/daemons/WorkerDaemonCatalog.d.ts.map +1 -0
- package/dist/application/daemons/WorkerDaemonCatalog.js +12 -0
- package/dist/application/daemons/WorkerDaemonCatalog.js.map +1 -0
- package/dist/application/host/IApplicationContainer.d.ts +6 -0
- package/dist/application/host/IApplicationContainer.d.ts.map +1 -1
- package/dist/application/settings/Settings.d.ts +11 -0
- package/dist/application/settings/Settings.d.ts.map +1 -1
- package/dist/cli.js +68 -5
- package/dist/cli.js.map +1 -1
- package/dist/domain/architecture/define/ArchitectureDefinedEvent.d.ts +2 -1
- package/dist/domain/architecture/define/ArchitectureDefinedEvent.d.ts.map +1 -1
- package/dist/domain/architecture/update/ArchitectureUpdatedEvent.d.ts +2 -1
- package/dist/domain/architecture/update/ArchitectureUpdatedEvent.d.ts.map +1 -1
- package/dist/domain/audience-pains/add/AudiencePainAddedEvent.d.ts +2 -1
- package/dist/domain/audience-pains/add/AudiencePainAddedEvent.d.ts.map +1 -1
- package/dist/domain/audience-pains/update/AudiencePainUpdatedEvent.d.ts +2 -1
- package/dist/domain/audience-pains/update/AudiencePainUpdatedEvent.d.ts.map +1 -1
- package/dist/domain/audiences/add/AudienceAddedEvent.d.ts +2 -2
- package/dist/domain/audiences/add/AudienceAddedEvent.d.ts.map +1 -1
- package/dist/domain/audiences/remove/AudienceRemovedEvent.d.ts +2 -1
- package/dist/domain/audiences/remove/AudienceRemovedEvent.d.ts.map +1 -1
- package/dist/domain/audiences/update/AudienceUpdatedEvent.d.ts +2 -2
- package/dist/domain/audiences/update/AudienceUpdatedEvent.d.ts.map +1 -1
- package/dist/domain/components/add/ComponentAddedEvent.d.ts +2 -2
- package/dist/domain/components/add/ComponentAddedEvent.d.ts.map +1 -1
- package/dist/domain/components/deprecate/ComponentDeprecatedEvent.d.ts +2 -2
- package/dist/domain/components/deprecate/ComponentDeprecatedEvent.d.ts.map +1 -1
- package/dist/domain/components/remove/ComponentRemovedEvent.d.ts +2 -2
- package/dist/domain/components/remove/ComponentRemovedEvent.d.ts.map +1 -1
- package/dist/domain/components/update/ComponentUpdatedEvent.d.ts +2 -2
- package/dist/domain/components/update/ComponentUpdatedEvent.d.ts.map +1 -1
- package/dist/domain/goals/unblock/GoalUnblockedEvent.d.ts +2 -2
- package/dist/domain/goals/unblock/GoalUnblockedEvent.d.ts.map +1 -1
- package/dist/domain/guidelines/add/GuidelineAddedEvent.d.ts +2 -2
- package/dist/domain/guidelines/add/GuidelineAddedEvent.d.ts.map +1 -1
- package/dist/domain/guidelines/remove/GuidelineRemovedEvent.d.ts +2 -1
- package/dist/domain/guidelines/remove/GuidelineRemovedEvent.d.ts.map +1 -1
- package/dist/domain/guidelines/update/GuidelineUpdatedEvent.d.ts +2 -2
- package/dist/domain/guidelines/update/GuidelineUpdatedEvent.d.ts.map +1 -1
- package/dist/domain/invariants/add/InvariantAddedEvent.d.ts +2 -1
- package/dist/domain/invariants/add/InvariantAddedEvent.d.ts.map +1 -1
- package/dist/domain/invariants/remove/InvariantRemovedEvent.d.ts +2 -1
- package/dist/domain/invariants/remove/InvariantRemovedEvent.d.ts.map +1 -1
- package/dist/domain/invariants/update/InvariantUpdatedEvent.d.ts +2 -1
- package/dist/domain/invariants/update/InvariantUpdatedEvent.d.ts.map +1 -1
- package/dist/domain/project/Constants.d.ts +7 -0
- package/dist/domain/project/Constants.d.ts.map +1 -1
- package/dist/domain/project/Constants.js +7 -0
- package/dist/domain/project/Constants.js.map +1 -1
- package/dist/domain/project/JumboMdContent.js +1 -1
- package/dist/domain/project/ProjectLifecyle.d.ts +7 -0
- package/dist/domain/project/ProjectLifecyle.d.ts.map +1 -0
- package/dist/domain/project/ProjectLifecyle.js +8 -0
- package/dist/domain/project/ProjectLifecyle.js.map +1 -0
- package/dist/domain/relations/Constants.d.ts +6 -0
- package/dist/domain/relations/Constants.d.ts.map +1 -1
- package/dist/domain/relations/Constants.js +6 -0
- package/dist/domain/relations/Constants.js.map +1 -1
- package/dist/domain/relations/Relation.d.ts +2 -2
- package/dist/domain/relations/Relation.d.ts.map +1 -1
- package/dist/domain/relations/Relation.js +10 -10
- package/dist/domain/relations/Relation.js.map +1 -1
- package/dist/domain/relations/add/RelationAddedEvent.d.ts +2 -2
- package/dist/domain/relations/add/RelationAddedEvent.d.ts.map +1 -1
- package/dist/domain/relations/remove/RelationRemovedEvent.d.ts +2 -2
- package/dist/domain/relations/remove/RelationRemovedEvent.d.ts.map +1 -1
- package/dist/domain/value-propositions/add/ValuePropositionAddedEvent.d.ts +2 -1
- package/dist/domain/value-propositions/add/ValuePropositionAddedEvent.d.ts.map +1 -1
- package/dist/domain/value-propositions/remove/ValuePropositionRemovedEvent.d.ts +2 -1
- package/dist/domain/value-propositions/remove/ValuePropositionRemovedEvent.d.ts.map +1 -1
- package/dist/domain/value-propositions/update/ValuePropositionUpdatedEvent.d.ts +2 -1
- package/dist/domain/value-propositions/update/ValuePropositionUpdatedEvent.d.ts.map +1 -1
- package/dist/infrastructure/agents/AgentCliGateway.d.ts +15 -0
- package/dist/infrastructure/agents/AgentCliGateway.d.ts.map +1 -0
- package/dist/infrastructure/agents/AgentCliGateway.js +102 -0
- package/dist/infrastructure/agents/AgentCliGateway.js.map +1 -0
- package/dist/infrastructure/context/decisions/get/SqliteDecisionViewReader.d.ts +8 -0
- package/dist/infrastructure/context/decisions/get/SqliteDecisionViewReader.d.ts.map +1 -1
- package/dist/infrastructure/context/decisions/get/SqliteDecisionViewReader.js +45 -0
- package/dist/infrastructure/context/decisions/get/SqliteDecisionViewReader.js.map +1 -1
- package/dist/infrastructure/context/decisions/migrations/002-add-decision-search-indexes.sql +11 -0
- package/dist/infrastructure/context/dependencies/get/SqliteDependencyViewReader.d.ts +3 -0
- package/dist/infrastructure/context/dependencies/get/SqliteDependencyViewReader.d.ts.map +1 -1
- package/dist/infrastructure/context/dependencies/get/SqliteDependencyViewReader.js +57 -0
- package/dist/infrastructure/context/dependencies/get/SqliteDependencyViewReader.js.map +1 -1
- package/dist/infrastructure/context/dependencies/migrations/003-add-dependency-search-indexes.sql +12 -0
- package/dist/infrastructure/context/guidelines/get/SqliteGuidelineViewReader.d.ts +8 -0
- package/dist/infrastructure/context/guidelines/get/SqliteGuidelineViewReader.d.ts.map +1 -1
- package/dist/infrastructure/context/guidelines/get/SqliteGuidelineViewReader.js +31 -0
- package/dist/infrastructure/context/guidelines/get/SqliteGuidelineViewReader.js.map +1 -1
- package/dist/infrastructure/context/guidelines/migrations/003-add-guideline-search-indexes.sql +17 -0
- package/dist/infrastructure/context/invariants/get/SqliteInvariantViewReader.d.ts +8 -0
- package/dist/infrastructure/context/invariants/get/SqliteInvariantViewReader.d.ts.map +1 -1
- package/dist/infrastructure/context/invariants/get/SqliteInvariantViewReader.js +31 -0
- package/dist/infrastructure/context/invariants/get/SqliteInvariantViewReader.js.map +1 -1
- package/dist/infrastructure/context/invariants/migrations/003-add-invariant-search-indexes.sql +6 -0
- package/dist/infrastructure/context/project/init/CodexConfigurer.d.ts +19 -6
- package/dist/infrastructure/context/project/init/CodexConfigurer.d.ts.map +1 -1
- package/dist/infrastructure/context/project/init/CodexConfigurer.js +177 -9
- package/dist/infrastructure/context/project/init/CodexConfigurer.js.map +1 -1
- package/dist/infrastructure/context/project/query/SqliteProjectContextReader.d.ts +5 -0
- package/dist/infrastructure/context/project/query/SqliteProjectContextReader.d.ts.map +1 -1
- package/dist/infrastructure/context/project/query/SqliteProjectContextReader.js +34 -2
- package/dist/infrastructure/context/project/query/SqliteProjectContextReader.js.map +1 -1
- package/dist/infrastructure/daemons/IntervalTicker.d.ts +7 -0
- package/dist/infrastructure/daemons/IntervalTicker.d.ts.map +1 -0
- package/dist/infrastructure/daemons/IntervalTicker.js +11 -0
- package/dist/infrastructure/daemons/IntervalTicker.js.map +1 -0
- package/dist/infrastructure/daemons/NodeWorkerDaemonProcessController.d.ts +12 -0
- package/dist/infrastructure/daemons/NodeWorkerDaemonProcessController.d.ts.map +1 -0
- package/dist/infrastructure/daemons/NodeWorkerDaemonProcessController.js +56 -0
- package/dist/infrastructure/daemons/NodeWorkerDaemonProcessController.js.map +1 -0
- package/dist/infrastructure/daemons/ProcessSignalSource.d.ts +10 -0
- package/dist/infrastructure/daemons/ProcessSignalSource.d.ts.map +1 -0
- package/dist/infrastructure/daemons/ProcessSignalSource.js +24 -0
- package/dist/infrastructure/daemons/ProcessSignalSource.js.map +1 -0
- package/dist/infrastructure/host/HostBuilder.d.ts.map +1 -1
- package/dist/infrastructure/host/HostBuilder.js +16 -1
- package/dist/infrastructure/host/HostBuilder.js.map +1 -1
- package/dist/infrastructure/logging/FileLogger.js +1 -1
- package/dist/infrastructure/settings/DefaultSettings.d.ts.map +1 -1
- package/dist/infrastructure/settings/DefaultSettings.js +3 -0
- package/dist/infrastructure/settings/DefaultSettings.js.map +1 -1
- package/dist/infrastructure/settings/FsSettingsInitializer.d.ts.map +1 -1
- package/dist/infrastructure/settings/FsSettingsInitializer.js +6 -0
- package/dist/infrastructure/settings/FsSettingsInitializer.js.map +1 -1
- package/dist/infrastructure/settings/FsSettingsReader.d.ts.map +1 -1
- package/dist/infrastructure/settings/FsSettingsReader.js +10 -0
- package/dist/infrastructure/settings/FsSettingsReader.js.map +1 -1
- package/dist/presentation/cli/AppRunner.d.ts +7 -1
- package/dist/presentation/cli/AppRunner.d.ts.map +1 -1
- package/dist/presentation/cli/AppRunner.js +10 -5
- package/dist/presentation/cli/AppRunner.js.map +1 -1
- package/dist/presentation/cli/CliBootstrapPlan.d.ts +12 -0
- package/dist/presentation/cli/CliBootstrapPlan.d.ts.map +1 -0
- package/dist/presentation/cli/CliBootstrapPlan.js +23 -0
- package/dist/presentation/cli/CliBootstrapPlan.js.map +1 -0
- package/dist/presentation/cli/banner/AnimationFrames.d.ts +6 -1
- package/dist/presentation/cli/banner/AnimationFrames.d.ts.map +1 -1
- package/dist/presentation/cli/banner/AnimationFrames.js +307 -288
- package/dist/presentation/cli/banner/AnimationFrames.js.map +1 -1
- package/dist/presentation/cli/commands/decisions/search/DecisionSearchOutputBuilder.d.ts +17 -0
- package/dist/presentation/cli/commands/decisions/search/DecisionSearchOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/decisions/search/DecisionSearchOutputBuilder.js +90 -0
- package/dist/presentation/cli/commands/decisions/search/DecisionSearchOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/decisions/search/decisions.search.d.ts +22 -0
- package/dist/presentation/cli/commands/decisions/search/decisions.search.d.ts.map +1 -0
- package/dist/presentation/cli/commands/decisions/search/decisions.search.js +93 -0
- package/dist/presentation/cli/commands/decisions/search/decisions.search.js.map +1 -0
- package/dist/presentation/cli/commands/dependencies/search/DependencySearchOutputBuilder.d.ts +16 -0
- package/dist/presentation/cli/commands/dependencies/search/DependencySearchOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/dependencies/search/DependencySearchOutputBuilder.js +85 -0
- package/dist/presentation/cli/commands/dependencies/search/DependencySearchOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/dependencies/search/dependencies.search.d.ts +21 -0
- package/dist/presentation/cli/commands/dependencies/search/dependencies.search.d.ts.map +1 -0
- package/dist/presentation/cli/commands/dependencies/search/dependencies.search.js +111 -0
- package/dist/presentation/cli/commands/dependencies/search/dependencies.search.js.map +1 -0
- package/dist/presentation/cli/commands/guidelines/search/GuidelineSearchOutputBuilder.d.ts +22 -0
- package/dist/presentation/cli/commands/guidelines/search/GuidelineSearchOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/guidelines/search/GuidelineSearchOutputBuilder.js +86 -0
- package/dist/presentation/cli/commands/guidelines/search/GuidelineSearchOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/guidelines/search/guidelines.search.d.ts +21 -0
- package/dist/presentation/cli/commands/guidelines/search/guidelines.search.d.ts.map +1 -0
- package/dist/presentation/cli/commands/guidelines/search/guidelines.search.js +92 -0
- package/dist/presentation/cli/commands/guidelines/search/guidelines.search.js.map +1 -0
- package/dist/presentation/cli/commands/invariants/search/InvariantSearchOutputBuilder.d.ts +22 -0
- package/dist/presentation/cli/commands/invariants/search/InvariantSearchOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/invariants/search/InvariantSearchOutputBuilder.js +79 -0
- package/dist/presentation/cli/commands/invariants/search/InvariantSearchOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/invariants/search/invariants.search.d.ts +20 -0
- package/dist/presentation/cli/commands/invariants/search/invariants.search.d.ts.map +1 -0
- package/dist/presentation/cli/commands/invariants/search/invariants.search.js +80 -0
- package/dist/presentation/cli/commands/invariants/search/invariants.search.js.map +1 -0
- package/dist/presentation/cli/commands/project/show/ProjectShowOutputBuilder.d.ts +14 -0
- package/dist/presentation/cli/commands/project/show/ProjectShowOutputBuilder.d.ts.map +1 -0
- package/dist/presentation/cli/commands/project/show/ProjectShowOutputBuilder.js +84 -0
- package/dist/presentation/cli/commands/project/show/ProjectShowOutputBuilder.js.map +1 -0
- package/dist/presentation/cli/commands/project/show/project.show.d.ts +12 -0
- package/dist/presentation/cli/commands/project/show/project.show.d.ts.map +1 -0
- package/dist/presentation/cli/commands/project/show/project.show.js +59 -0
- package/dist/presentation/cli/commands/project/show/project.show.js.map +1 -0
- package/dist/presentation/cli/commands/registry/generated-commands.d.ts.map +1 -1
- package/dist/presentation/cli/commands/registry/generated-commands.js +30 -0
- package/dist/presentation/cli/commands/registry/generated-commands.js.map +1 -1
- package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.d.ts +1 -1
- package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.js +3 -2
- package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/sessions/start/SessionStartOutputBuilder.d.ts +8 -9
- package/dist/presentation/cli/commands/sessions/start/SessionStartOutputBuilder.d.ts.map +1 -1
- package/dist/presentation/cli/commands/sessions/start/SessionStartOutputBuilder.js +107 -42
- package/dist/presentation/cli/commands/sessions/start/SessionStartOutputBuilder.js.map +1 -1
- package/dist/presentation/cli/commands/sessions/start/SessionStartTextRenderer.d.ts +3 -2
- package/dist/presentation/cli/commands/sessions/start/SessionStartTextRenderer.d.ts.map +1 -1
- package/dist/presentation/cli/commands/sessions/start/SessionStartTextRenderer.js +24 -10
- package/dist/presentation/cli/commands/sessions/start/SessionStartTextRenderer.js.map +1 -1
- package/dist/presentation/cli/commands/sessions/start/session.start.d.ts.map +1 -1
- package/dist/presentation/cli/commands/sessions/start/session.start.js +2 -5
- package/dist/presentation/cli/commands/sessions/start/session.start.js.map +1 -1
- package/dist/presentation/cli/commands/work/shared/AgentSpawner.d.ts +7 -4
- package/dist/presentation/cli/commands/work/shared/AgentSpawner.d.ts.map +1 -1
- package/dist/presentation/cli/commands/work/shared/AgentSpawner.js +11 -4
- package/dist/presentation/cli/commands/work/shared/AgentSpawner.js.map +1 -1
- package/dist/presentation/shared/DesignTokens.d.ts +94 -0
- package/dist/presentation/shared/DesignTokens.d.ts.map +1 -0
- package/dist/presentation/shared/DesignTokens.js +94 -0
- package/dist/presentation/shared/DesignTokens.js.map +1 -0
- package/dist/presentation/tui/Constants.d.ts +18 -0
- package/dist/presentation/tui/Constants.d.ts.map +1 -0
- package/dist/presentation/tui/Constants.js +28 -0
- package/dist/presentation/tui/Constants.js.map +1 -0
- package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.d.ts +6 -0
- package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.d.ts.map +1 -0
- package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.js +18 -0
- package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.js.map +1 -0
- package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.d.ts +4 -0
- package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.d.ts.map +1 -0
- package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.js +9 -0
- package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.js.map +1 -0
- package/dist/presentation/tui/action-dispatch/TuiActionResult.d.ts +8 -0
- package/dist/presentation/tui/action-dispatch/TuiActionResult.d.ts.map +1 -0
- package/dist/presentation/tui/action-dispatch/TuiActionResult.js +2 -0
- package/dist/presentation/tui/action-dispatch/TuiActionResult.js.map +1 -0
- package/dist/presentation/tui/action-dispatch/TuiRequestController.d.ts +4 -0
- package/dist/presentation/tui/action-dispatch/TuiRequestController.d.ts.map +1 -0
- package/dist/presentation/tui/action-dispatch/TuiRequestController.js +2 -0
- package/dist/presentation/tui/action-dispatch/TuiRequestController.js.map +1 -0
- package/dist/presentation/tui/application-shell/Footer.d.ts +12 -0
- package/dist/presentation/tui/application-shell/Footer.d.ts.map +1 -0
- package/dist/presentation/tui/application-shell/Footer.js +41 -0
- package/dist/presentation/tui/application-shell/Footer.js.map +1 -0
- package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.d.ts +16 -0
- package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.d.ts.map +1 -0
- package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.js +10 -0
- package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.js.map +1 -0
- package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.d.ts +3 -0
- package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.d.ts.map +1 -0
- package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.js +4 -0
- package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.js.map +1 -0
- package/dist/presentation/tui/application-shell/Header.d.ts +10 -0
- package/dist/presentation/tui/application-shell/Header.d.ts.map +1 -0
- package/dist/presentation/tui/application-shell/Header.js +45 -0
- package/dist/presentation/tui/application-shell/Header.js.map +1 -0
- package/dist/presentation/tui/application-shell/HeaderConstants.d.ts +6 -0
- package/dist/presentation/tui/application-shell/HeaderConstants.d.ts.map +1 -0
- package/dist/presentation/tui/application-shell/HeaderConstants.js +6 -0
- package/dist/presentation/tui/application-shell/HeaderConstants.js.map +1 -0
- package/dist/presentation/tui/application-shell/NotificationDrawer.d.ts +16 -0
- package/dist/presentation/tui/application-shell/NotificationDrawer.d.ts.map +1 -0
- package/dist/presentation/tui/application-shell/NotificationDrawer.js +56 -0
- package/dist/presentation/tui/application-shell/NotificationDrawer.js.map +1 -0
- package/dist/presentation/tui/application-shell/TuiApp.d.ts +25 -0
- package/dist/presentation/tui/application-shell/TuiApp.d.ts.map +1 -0
- package/dist/presentation/tui/application-shell/TuiApp.js +233 -0
- package/dist/presentation/tui/application-shell/TuiApp.js.map +1 -0
- package/dist/presentation/tui/application-shell/TuiAppConstants.d.ts +18 -0
- package/dist/presentation/tui/application-shell/TuiAppConstants.d.ts.map +1 -0
- package/dist/presentation/tui/application-shell/TuiAppConstants.js +18 -0
- package/dist/presentation/tui/application-shell/TuiAppConstants.js.map +1 -0
- package/dist/presentation/tui/application-shell/TuiApplicationLauncher.d.ts +19 -0
- package/dist/presentation/tui/application-shell/TuiApplicationLauncher.d.ts.map +1 -0
- package/dist/presentation/tui/application-shell/TuiApplicationLauncher.js +46 -0
- package/dist/presentation/tui/application-shell/TuiApplicationLauncher.js.map +1 -0
- package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.d.ts +6 -0
- package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.d.ts.map +1 -0
- package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.js +9 -0
- package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.js.map +1 -0
- package/dist/presentation/tui/billboard/AnimatedBillboard.d.ts +11 -0
- package/dist/presentation/tui/billboard/AnimatedBillboard.d.ts.map +1 -0
- package/dist/presentation/tui/billboard/AnimatedBillboard.js +332 -0
- package/dist/presentation/tui/billboard/AnimatedBillboard.js.map +1 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardPalette.d.ts +31 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardPalette.d.ts.map +1 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardPalette.js +54 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardPalette.js.map +1 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardPhase.d.ts +8 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardPhase.d.ts.map +1 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardPhase.js +7 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardPhase.js.map +1 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.d.ts +2 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.d.ts.map +1 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.js +17 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.js.map +1 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.d.ts +2 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.d.ts.map +1 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.js +10 -0
- package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.js.map +1 -0
- package/dist/presentation/tui/cockpit/AnimatedBanner.d.ts +13 -0
- package/dist/presentation/tui/cockpit/AnimatedBanner.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/AnimatedBanner.js +193 -0
- package/dist/presentation/tui/cockpit/AnimatedBanner.js.map +1 -0
- package/dist/presentation/tui/cockpit/CenteredPrompt.d.ts +10 -0
- package/dist/presentation/tui/cockpit/CenteredPrompt.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CenteredPrompt.js +14 -0
- package/dist/presentation/tui/cockpit/CenteredPrompt.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.d.ts +7 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.js +32 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonEvents.d.ts +14 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonEvents.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonEvents.js +154 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonEvents.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonFrames.d.ts +39 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonFrames.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonFrames.js +186 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonFrames.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanel.d.ts +16 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanel.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanel.js +53 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanel.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.d.ts +12 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.js +12 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.d.ts +10 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.js +2 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitGreeterCopy.d.ts +10 -0
- package/dist/presentation/tui/cockpit/CockpitGreeterCopy.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitGreeterCopy.js +14 -0
- package/dist/presentation/tui/cockpit/CockpitGreeterCopy.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitGreeterView.d.ts +3 -0
- package/dist/presentation/tui/cockpit/CockpitGreeterView.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitGreeterView.js +18 -0
- package/dist/presentation/tui/cockpit/CockpitGreeterView.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.d.ts +4 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.js +4 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadView.d.ts +25 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadView.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadView.js +231 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadView.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.d.ts +3 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.js +17 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.d.ts +9 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.js +12 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.d.ts +12 -0
- package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.js +16 -0
- package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.d.ts +3 -0
- package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.js +23 -0
- package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitScreen.d.ts +21 -0
- package/dist/presentation/tui/cockpit/CockpitScreen.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitScreen.js +59 -0
- package/dist/presentation/tui/cockpit/CockpitScreen.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitScreenCopy.d.ts +7 -0
- package/dist/presentation/tui/cockpit/CockpitScreenCopy.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitScreenCopy.js +7 -0
- package/dist/presentation/tui/cockpit/CockpitScreenCopy.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitScreenDefaults.d.ts +6 -0
- package/dist/presentation/tui/cockpit/CockpitScreenDefaults.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitScreenDefaults.js +6 -0
- package/dist/presentation/tui/cockpit/CockpitScreenDefaults.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.d.ts +12 -0
- package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.js +16 -0
- package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitUnprimedView.d.ts +3 -0
- package/dist/presentation/tui/cockpit/CockpitUnprimedView.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitUnprimedView.js +28 -0
- package/dist/presentation/tui/cockpit/CockpitUnprimedView.js.map +1 -0
- package/dist/presentation/tui/cockpit/DaemonFrameViews.d.ts +17 -0
- package/dist/presentation/tui/cockpit/DaemonFrameViews.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/DaemonFrameViews.js +20 -0
- package/dist/presentation/tui/cockpit/DaemonFrameViews.js.map +1 -0
- package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.d.ts +4 -0
- package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.js +14 -0
- package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.js.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.d.ts +11 -0
- package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.js +15 -0
- package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.js.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.d.ts +4 -0
- package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.js +7 -0
- package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.js.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.d.ts +11 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.js +2 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.js.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.d.ts +11 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.js +2 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.js.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.d.ts +7 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.js +2 -0
- package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.js.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.d.ts +11 -0
- package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.js +15 -0
- package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.js.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.d.ts +4 -0
- package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.js +7 -0
- package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.js.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.d.ts +11 -0
- package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.js +16 -0
- package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.js.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.d.ts +4 -0
- package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.js +7 -0
- package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/ISubprocessManager.d.ts +18 -0
- package/dist/presentation/tui/daemon-subprocesses/ISubprocessManager.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/ISubprocessManager.js +2 -0
- package/dist/presentation/tui/daemon-subprocesses/ISubprocessManager.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.d.ts +11 -0
- package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.js +31 -0
- package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.d.ts +3 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.js +4 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.d.ts +8 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.js +6 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.d.ts +2 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.js +2 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.d.ts +6 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.js +2 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.d.ts +7 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.js +8 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.d.ts +15 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.js +2 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.d.ts +14 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.js +13 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.d.ts +2 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.js +2 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.d.ts +16 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.js +16 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.d.ts +22 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.js +299 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.d.ts +17 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.js +2 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.d.ts +7 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.js +6 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.d.ts +3 -0
- package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.js +6 -0
- package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.js.map +1 -0
- package/dist/presentation/tui/goals/Constants.d.ts +2 -0
- package/dist/presentation/tui/goals/Constants.d.ts.map +1 -0
- package/dist/presentation/tui/goals/Constants.js +2 -0
- package/dist/presentation/tui/goals/Constants.js.map +1 -0
- package/dist/presentation/tui/goals/GoalAuthoringFlow.d.ts +22 -0
- package/dist/presentation/tui/goals/GoalAuthoringFlow.d.ts.map +1 -0
- package/dist/presentation/tui/goals/GoalAuthoringFlow.js +219 -0
- package/dist/presentation/tui/goals/GoalAuthoringFlow.js.map +1 -0
- package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.d.ts +79 -0
- package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.d.ts.map +1 -0
- package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.js +84 -0
- package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.js.map +1 -0
- package/dist/presentation/tui/goals/GoalsScreen.d.ts +3 -0
- package/dist/presentation/tui/goals/GoalsScreen.d.ts.map +1 -0
- package/dist/presentation/tui/goals/GoalsScreen.js +151 -0
- package/dist/presentation/tui/goals/GoalsScreen.js.map +1 -0
- package/dist/presentation/tui/goals/GoalsScreenConstants.d.ts +33 -0
- package/dist/presentation/tui/goals/GoalsScreenConstants.d.ts.map +1 -0
- package/dist/presentation/tui/goals/GoalsScreenConstants.js +41 -0
- package/dist/presentation/tui/goals/GoalsScreenConstants.js.map +1 -0
- package/dist/presentation/tui/index.d.ts +10 -0
- package/dist/presentation/tui/index.d.ts.map +1 -0
- package/dist/presentation/tui/index.js +6 -0
- package/dist/presentation/tui/index.js.map +1 -0
- package/dist/presentation/tui/memory/MemoryScreen.d.ts +3 -0
- package/dist/presentation/tui/memory/MemoryScreen.d.ts.map +1 -0
- package/dist/presentation/tui/memory/MemoryScreen.js +19 -0
- package/dist/presentation/tui/memory/MemoryScreen.js.map +1 -0
- package/dist/presentation/tui/memory/components/ComponentAddFlow.d.ts +14 -0
- package/dist/presentation/tui/memory/components/ComponentAddFlow.d.ts.map +1 -0
- package/dist/presentation/tui/memory/components/ComponentAddFlow.js +46 -0
- package/dist/presentation/tui/memory/components/ComponentAddFlow.js.map +1 -0
- package/dist/presentation/tui/memory/components/ComponentsScreen.d.ts +3 -0
- package/dist/presentation/tui/memory/components/ComponentsScreen.d.ts.map +1 -0
- package/dist/presentation/tui/memory/components/ComponentsScreen.js +21 -0
- package/dist/presentation/tui/memory/components/ComponentsScreen.js.map +1 -0
- package/dist/presentation/tui/memory/decisions/DecisionAddFlow.d.ts +15 -0
- package/dist/presentation/tui/memory/decisions/DecisionAddFlow.d.ts.map +1 -0
- package/dist/presentation/tui/memory/decisions/DecisionAddFlow.js +63 -0
- package/dist/presentation/tui/memory/decisions/DecisionAddFlow.js.map +1 -0
- package/dist/presentation/tui/memory/decisions/DecisionsScreen.d.ts +3 -0
- package/dist/presentation/tui/memory/decisions/DecisionsScreen.d.ts.map +1 -0
- package/dist/presentation/tui/memory/decisions/DecisionsScreen.js +22 -0
- package/dist/presentation/tui/memory/decisions/DecisionsScreen.js.map +1 -0
- package/dist/presentation/tui/memory/dependencies/DependenciesScreen.d.ts +3 -0
- package/dist/presentation/tui/memory/dependencies/DependenciesScreen.d.ts.map +1 -0
- package/dist/presentation/tui/memory/dependencies/DependenciesScreen.js +23 -0
- package/dist/presentation/tui/memory/dependencies/DependenciesScreen.js.map +1 -0
- package/dist/presentation/tui/memory/dependencies/DependencyAddFlow.d.ts +16 -0
- package/dist/presentation/tui/memory/dependencies/DependencyAddFlow.d.ts.map +1 -0
- package/dist/presentation/tui/memory/dependencies/DependencyAddFlow.js +56 -0
- package/dist/presentation/tui/memory/dependencies/DependencyAddFlow.js.map +1 -0
- package/dist/presentation/tui/memory/entity-browser/EntityColumn.d.ts +14 -0
- package/dist/presentation/tui/memory/entity-browser/EntityColumn.d.ts.map +1 -0
- package/dist/presentation/tui/memory/entity-browser/EntityColumn.js +24 -0
- package/dist/presentation/tui/memory/entity-browser/EntityColumn.js.map +1 -0
- package/dist/presentation/tui/memory/entity-browser/EntityDetailView.d.ts +10 -0
- package/dist/presentation/tui/memory/entity-browser/EntityDetailView.d.ts.map +1 -0
- package/dist/presentation/tui/memory/entity-browser/EntityDetailView.js +141 -0
- package/dist/presentation/tui/memory/entity-browser/EntityDetailView.js.map +1 -0
- package/dist/presentation/tui/memory/entity-browser/MemoryEntityScreen.d.ts +13 -0
- package/dist/presentation/tui/memory/entity-browser/MemoryEntityScreen.d.ts.map +1 -0
- package/dist/presentation/tui/memory/entity-browser/MemoryEntityScreen.js +107 -0
- package/dist/presentation/tui/memory/entity-browser/MemoryEntityScreen.js.map +1 -0
- package/dist/presentation/tui/memory/entity-browser/MemoryEntityShapes.d.ts +41 -0
- package/dist/presentation/tui/memory/entity-browser/MemoryEntityShapes.d.ts.map +1 -0
- package/dist/presentation/tui/memory/entity-browser/MemoryEntityShapes.js +2 -0
- package/dist/presentation/tui/memory/entity-browser/MemoryEntityShapes.js.map +1 -0
- package/dist/presentation/tui/memory/guidelines/GuidelineAddFlow.d.ts +15 -0
- package/dist/presentation/tui/memory/guidelines/GuidelineAddFlow.d.ts.map +1 -0
- package/dist/presentation/tui/memory/guidelines/GuidelineAddFlow.js +57 -0
- package/dist/presentation/tui/memory/guidelines/GuidelineAddFlow.js.map +1 -0
- package/dist/presentation/tui/memory/guidelines/GuidelinesScreen.d.ts +3 -0
- package/dist/presentation/tui/memory/guidelines/GuidelinesScreen.d.ts.map +1 -0
- package/dist/presentation/tui/memory/guidelines/GuidelinesScreen.js +22 -0
- package/dist/presentation/tui/memory/guidelines/GuidelinesScreen.js.map +1 -0
- package/dist/presentation/tui/memory/invariants/InvariantAddFlow.d.ts +13 -0
- package/dist/presentation/tui/memory/invariants/InvariantAddFlow.d.ts.map +1 -0
- package/dist/presentation/tui/memory/invariants/InvariantAddFlow.js +41 -0
- package/dist/presentation/tui/memory/invariants/InvariantAddFlow.js.map +1 -0
- package/dist/presentation/tui/memory/invariants/InvariantsScreen.d.ts +3 -0
- package/dist/presentation/tui/memory/invariants/InvariantsScreen.d.ts.map +1 -0
- package/dist/presentation/tui/memory/invariants/InvariantsScreen.js +20 -0
- package/dist/presentation/tui/memory/invariants/InvariantsScreen.js.map +1 -0
- package/dist/presentation/tui/navigation/MegaMenu.d.ts +10 -0
- package/dist/presentation/tui/navigation/MegaMenu.d.ts.map +1 -0
- package/dist/presentation/tui/navigation/MegaMenu.js +179 -0
- package/dist/presentation/tui/navigation/MegaMenu.js.map +1 -0
- package/dist/presentation/tui/navigation/MegaMenuDefinitions.d.ts +17 -0
- package/dist/presentation/tui/navigation/MegaMenuDefinitions.d.ts.map +1 -0
- package/dist/presentation/tui/navigation/MegaMenuDefinitions.js +207 -0
- package/dist/presentation/tui/navigation/MegaMenuDefinitions.js.map +1 -0
- package/dist/presentation/tui/navigation/ScreenDefinitions.d.ts +36 -0
- package/dist/presentation/tui/navigation/ScreenDefinitions.d.ts.map +1 -0
- package/dist/presentation/tui/navigation/ScreenDefinitions.js +12 -0
- package/dist/presentation/tui/navigation/ScreenDefinitions.js.map +1 -0
- package/dist/presentation/tui/navigation/ScreenRouter.d.ts +19 -0
- package/dist/presentation/tui/navigation/ScreenRouter.d.ts.map +1 -0
- package/dist/presentation/tui/navigation/ScreenRouter.js +32 -0
- package/dist/presentation/tui/navigation/ScreenRouter.js.map +1 -0
- package/dist/presentation/tui/project-initialization/Constants.d.ts +140 -0
- package/dist/presentation/tui/project-initialization/Constants.d.ts.map +1 -0
- package/dist/presentation/tui/project-initialization/Constants.js +140 -0
- package/dist/presentation/tui/project-initialization/Constants.js.map +1 -0
- package/dist/presentation/tui/project-initialization/InitFlow.d.ts +24 -0
- package/dist/presentation/tui/project-initialization/InitFlow.d.ts.map +1 -0
- package/dist/presentation/tui/project-initialization/InitFlow.js +650 -0
- package/dist/presentation/tui/project-initialization/InitFlow.js.map +1 -0
- package/dist/presentation/tui/sessions/SessionScreen.d.ts +3 -0
- package/dist/presentation/tui/sessions/SessionScreen.d.ts.map +1 -0
- package/dist/presentation/tui/sessions/SessionScreen.js +79 -0
- package/dist/presentation/tui/sessions/SessionScreen.js.map +1 -0
- package/dist/presentation/tui/state-reading/TuiStateReader.d.ts +58 -0
- package/dist/presentation/tui/state-reading/TuiStateReader.d.ts.map +1 -0
- package/dist/presentation/tui/state-reading/TuiStateReader.js +152 -0
- package/dist/presentation/tui/state-reading/TuiStateReader.js.map +1 -0
- package/dist/presentation/tui/ui-primitives/DetailPane.d.ts +15 -0
- package/dist/presentation/tui/ui-primitives/DetailPane.d.ts.map +1 -0
- package/dist/presentation/tui/ui-primitives/DetailPane.js +12 -0
- package/dist/presentation/tui/ui-primitives/DetailPane.js.map +1 -0
- package/dist/presentation/tui/ui-primitives/KeyBadge.d.ts +11 -0
- package/dist/presentation/tui/ui-primitives/KeyBadge.d.ts.map +1 -0
- package/dist/presentation/tui/ui-primitives/KeyBadge.js +9 -0
- package/dist/presentation/tui/ui-primitives/KeyBadge.js.map +1 -0
- package/dist/presentation/tui/ui-primitives/ListPanel.d.ts +16 -0
- package/dist/presentation/tui/ui-primitives/ListPanel.d.ts.map +1 -0
- package/dist/presentation/tui/ui-primitives/ListPanel.js +16 -0
- package/dist/presentation/tui/ui-primitives/ListPanel.js.map +1 -0
- package/dist/presentation/tui/ui-primitives/ListPanelConstants.d.ts +4 -0
- package/dist/presentation/tui/ui-primitives/ListPanelConstants.d.ts.map +1 -0
- package/dist/presentation/tui/ui-primitives/ListPanelConstants.js +4 -0
- package/dist/presentation/tui/ui-primitives/ListPanelConstants.js.map +1 -0
- package/dist/presentation/tui/ui-primitives/Panel.d.ts +15 -0
- package/dist/presentation/tui/ui-primitives/Panel.d.ts.map +1 -0
- package/dist/presentation/tui/ui-primitives/Panel.js +9 -0
- package/dist/presentation/tui/ui-primitives/Panel.js.map +1 -0
- package/dist/presentation/tui/ui-primitives/SectionHeading.d.ts +8 -0
- package/dist/presentation/tui/ui-primitives/SectionHeading.d.ts.map +1 -0
- package/dist/presentation/tui/ui-primitives/SectionHeading.js +9 -0
- package/dist/presentation/tui/ui-primitives/SectionHeading.js.map +1 -0
- package/dist/presentation/tui/ui-primitives/StatusIndicator.d.ts +9 -0
- package/dist/presentation/tui/ui-primitives/StatusIndicator.d.ts.map +1 -0
- package/dist/presentation/tui/ui-primitives/StatusIndicator.js +21 -0
- package/dist/presentation/tui/ui-primitives/StatusIndicator.js.map +1 -0
- package/dist/presentation/tui/ui-primitives/Tumbler.d.ts +18 -0
- package/dist/presentation/tui/ui-primitives/Tumbler.d.ts.map +1 -0
- package/dist/presentation/tui/ui-primitives/Tumbler.js +102 -0
- package/dist/presentation/tui/ui-primitives/Tumbler.js.map +1 -0
- package/dist/presentation/tui/ui-primitives/TumblerConstants.d.ts +4 -0
- package/dist/presentation/tui/ui-primitives/TumblerConstants.d.ts.map +1 -0
- package/dist/presentation/tui/ui-primitives/TumblerConstants.js +4 -0
- package/dist/presentation/tui/ui-primitives/TumblerConstants.js.map +1 -0
- package/dist/presentation/tui/wizard/Wizard.d.ts +54 -0
- package/dist/presentation/tui/wizard/Wizard.d.ts.map +1 -0
- package/dist/presentation/tui/wizard/Wizard.js +412 -0
- package/dist/presentation/tui/wizard/Wizard.js.map +1 -0
- package/dist/presentation/tui/wizard/WizardConstants.d.ts +27 -0
- package/dist/presentation/tui/wizard/WizardConstants.d.ts.map +1 -0
- package/dist/presentation/tui/wizard/WizardConstants.js +26 -0
- package/dist/presentation/tui/wizard/WizardConstants.js.map +1 -0
- package/dist/presentation/tui/wizard/WizardTextInput.d.ts +12 -0
- package/dist/presentation/tui/wizard/WizardTextInput.d.ts.map +1 -0
- package/dist/presentation/tui/wizard/WizardTextInput.js +39 -0
- package/dist/presentation/tui/wizard/WizardTextInput.js.map +1 -0
- package/dist/presentation/work/codifier.daemon.d.ts +3 -0
- package/dist/presentation/work/codifier.daemon.d.ts.map +1 -0
- package/dist/presentation/work/codifier.daemon.js +94 -0
- package/dist/presentation/work/codifier.daemon.js.map +1 -0
- package/dist/presentation/work/refiner.daemon.d.ts +3 -0
- package/dist/presentation/work/refiner.daemon.d.ts.map +1 -0
- package/dist/presentation/work/refiner.daemon.js +79 -0
- package/dist/presentation/work/refiner.daemon.js.map +1 -0
- package/dist/presentation/work/reviewer.daemon.d.ts +3 -0
- package/dist/presentation/work/reviewer.daemon.d.ts.map +1 -0
- package/dist/presentation/work/reviewer.daemon.js +79 -0
- package/dist/presentation/work/reviewer.daemon.js.map +1 -0
- package/package.json +5 -1
- package/dist/application/context/project/get/ContextualProjectView.d.ts +0 -24
- package/dist/application/context/project/get/ContextualProjectView.d.ts.map +0 -1
- package/dist/application/context/project/get/ContextualProjectView.js +0 -2
- package/dist/application/context/project/get/ContextualProjectView.js.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { SemanticColors, TuiGlyphs } from "../../shared/DesignTokens.js";
|
|
4
|
+
const STATUS_COLORS = {
|
|
5
|
+
active: SemanticColors.success,
|
|
6
|
+
idle: SemanticColors.info,
|
|
7
|
+
off: SemanticColors.muted,
|
|
8
|
+
error: SemanticColors.error,
|
|
9
|
+
};
|
|
10
|
+
export function StatusIndicator({ label, status, }) {
|
|
11
|
+
const color = STATUS_COLORS[status];
|
|
12
|
+
return (React.createElement(Box, null,
|
|
13
|
+
React.createElement(Text, { color: color },
|
|
14
|
+
TuiGlyphs.filledCircle,
|
|
15
|
+
" "),
|
|
16
|
+
React.createElement(Text, { color: SemanticColors.primary },
|
|
17
|
+
label,
|
|
18
|
+
": "),
|
|
19
|
+
React.createElement(Text, { color: color }, status)));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=StatusIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusIndicator.js","sourceRoot":"","sources":["../../../../src/presentation/tui/ui-primitives/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAIzE,MAAM,aAAa,GAAgC;IACjD,MAAM,EAAE,cAAc,CAAC,OAAO;IAC9B,IAAI,EAAE,cAAc,CAAC,IAAI;IACzB,GAAG,EAAE,cAAc,CAAC,KAAK;IACzB,KAAK,EAAE,cAAc,CAAC,KAAK;CAC5B,CAAC;AAOF,MAAM,UAAU,eAAe,CAAC,EAC9B,KAAK,EACL,MAAM,GACe;IACrB,MAAM,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IAEpC,OAAO,CACL,oBAAC,GAAG;QACF,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK;YAAG,SAAS,CAAC,YAAY;gBAAS;QACpD,oBAAC,IAAI,IAAC,KAAK,EAAE,cAAc,CAAC,OAAO;YAAG,KAAK;iBAAU;QACrD,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,IAAG,MAAM,CAAQ,CAC/B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface TumblerItem {
|
|
3
|
+
readonly key: string;
|
|
4
|
+
readonly value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TumblerProps {
|
|
7
|
+
readonly title?: string;
|
|
8
|
+
readonly items: readonly TumblerItem[];
|
|
9
|
+
readonly initialFocusedKey?: string;
|
|
10
|
+
readonly visibleCount?: number;
|
|
11
|
+
readonly maxDisplayLength?: number;
|
|
12
|
+
readonly width?: number;
|
|
13
|
+
readonly isActive?: boolean;
|
|
14
|
+
readonly emptyMessage?: string;
|
|
15
|
+
readonly onFocusedItemChange?: (item: TumblerItem) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function Tumbler({ title, items, initialFocusedKey, visibleCount, maxDisplayLength, width, isActive, emptyMessage, onFocusedItemChange, }: TumblerProps): React.ReactElement;
|
|
18
|
+
//# sourceMappingURL=Tumbler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tumbler.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/ui-primitives/Tumbler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IACvC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CAC5D;AAkFD,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,YAAgB,EAChB,gBAAgB,EAChB,KAAgC,EAChC,QAAe,EACf,YAAuC,EACvC,mBAAmB,GACpB,EAAE,YAAY,GAAG,KAAK,CAAC,YAAY,CA4FnC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import React, { useEffect, useMemo, useState } from "react";
|
|
2
|
+
import { Box, Text, useInput } from "ink";
|
|
3
|
+
import { BaseColors, SemanticColors, TuiGlyphs, TuiLayout, } from "../../shared/DesignTokens.js";
|
|
4
|
+
import { Panel } from "./Panel.js";
|
|
5
|
+
import { TumblerCopy } from "./TumblerConstants.js";
|
|
6
|
+
function normalizeVisibleCount(visibleCount) {
|
|
7
|
+
const wholeCount = Math.max(1, Math.floor(visibleCount));
|
|
8
|
+
return wholeCount % 2 === 0 ? wholeCount + 1 : wholeCount;
|
|
9
|
+
}
|
|
10
|
+
function focusedIndexForKey(items, initialFocusedKey) {
|
|
11
|
+
if (!initialFocusedKey) {
|
|
12
|
+
return 0;
|
|
13
|
+
}
|
|
14
|
+
const requestedIndex = items.findIndex((item) => item.key === initialFocusedKey);
|
|
15
|
+
return requestedIndex < 0 ? 0 : requestedIndex;
|
|
16
|
+
}
|
|
17
|
+
function wrapIndex(index, itemCount) {
|
|
18
|
+
return (index + itemCount) % itemCount;
|
|
19
|
+
}
|
|
20
|
+
function getVisibleRows(items, focusedIndex, visibleCount) {
|
|
21
|
+
if (items.length === 0) {
|
|
22
|
+
return [];
|
|
23
|
+
}
|
|
24
|
+
const normalizedVisibleCount = Math.min(normalizeVisibleCount(visibleCount), items.length);
|
|
25
|
+
const radius = Math.floor(normalizedVisibleCount / 2);
|
|
26
|
+
return Array.from({ length: normalizedVisibleCount }, (_, rowIndex) => {
|
|
27
|
+
const distanceFromFocus = rowIndex - radius;
|
|
28
|
+
return {
|
|
29
|
+
item: items[wrapIndex(focusedIndex + distanceFromFocus, items.length)],
|
|
30
|
+
distanceFromFocus,
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function colorForDistance(distanceFromFocus) {
|
|
35
|
+
const distance = Math.abs(distanceFromFocus);
|
|
36
|
+
if (distance === 0) {
|
|
37
|
+
return SemanticColors.primary;
|
|
38
|
+
}
|
|
39
|
+
if (distance === 1) {
|
|
40
|
+
return BaseColors.shade4;
|
|
41
|
+
}
|
|
42
|
+
return BaseColors.shade6;
|
|
43
|
+
}
|
|
44
|
+
function truncateValue(value, maxDisplayLength) {
|
|
45
|
+
if (maxDisplayLength === undefined) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
const normalizedMaxLength = Math.max(0, Math.floor(maxDisplayLength));
|
|
49
|
+
if (value.length <= normalizedMaxLength) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
if (normalizedMaxLength <= 3) {
|
|
53
|
+
return ".".repeat(normalizedMaxLength);
|
|
54
|
+
}
|
|
55
|
+
return `${value.slice(0, normalizedMaxLength - 3)}...`;
|
|
56
|
+
}
|
|
57
|
+
export function Tumbler({ title, items, initialFocusedKey, visibleCount = 5, maxDisplayLength, width = TuiLayout.listPanelWidth, isActive = true, emptyMessage = TumblerCopy.emptyMessage, onFocusedItemChange, }) {
|
|
58
|
+
const [focusedIndex, setFocusedIndex] = useState(() => focusedIndexForKey(items, initialFocusedKey));
|
|
59
|
+
const normalizedVisibleCount = normalizeVisibleCount(visibleCount);
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
setFocusedIndex((currentIndex) => {
|
|
62
|
+
if (items.length === 0) {
|
|
63
|
+
return 0;
|
|
64
|
+
}
|
|
65
|
+
return Math.min(currentIndex, items.length - 1);
|
|
66
|
+
});
|
|
67
|
+
}, [items.length]);
|
|
68
|
+
useInput((_input, key) => {
|
|
69
|
+
if (items.length === 0) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (key.upArrow) {
|
|
73
|
+
setFocusedIndex((currentIndex) => wrapIndex(currentIndex - 1, items.length));
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (key.downArrow) {
|
|
77
|
+
setFocusedIndex((currentIndex) => wrapIndex(currentIndex + 1, items.length));
|
|
78
|
+
}
|
|
79
|
+
}, { isActive });
|
|
80
|
+
const visibleRows = useMemo(() => getVisibleRows(items, focusedIndex, normalizedVisibleCount), [focusedIndex, items, normalizedVisibleCount]);
|
|
81
|
+
const focusedItem = items[focusedIndex];
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
if (focusedItem) {
|
|
84
|
+
onFocusedItemChange?.(focusedItem);
|
|
85
|
+
}
|
|
86
|
+
}, [focusedItem, onFocusedItemChange]);
|
|
87
|
+
const content = items.length === 0 ? (React.createElement(Text, { color: SemanticColors.muted, italic: true }, emptyMessage)) : (React.createElement(Box, { flexDirection: "column" }, visibleRows.map(({ item, distanceFromFocus }) => {
|
|
88
|
+
const isFocused = distanceFromFocus === 0;
|
|
89
|
+
return (React.createElement(Box, { key: `${item.key}-${distanceFromFocus}` },
|
|
90
|
+
React.createElement(Text, { color: isActive && isFocused
|
|
91
|
+
? BaseColors.brandBlue
|
|
92
|
+
: colorForDistance(distanceFromFocus), bold: isFocused },
|
|
93
|
+
isFocused ? TuiGlyphs.selector : " ",
|
|
94
|
+
" "),
|
|
95
|
+
React.createElement(Text, { color: colorForDistance(distanceFromFocus), bold: isFocused }, truncateValue(item.value, maxDisplayLength))));
|
|
96
|
+
})));
|
|
97
|
+
if (title) {
|
|
98
|
+
return (React.createElement(Panel, { title: title, width: width }, content));
|
|
99
|
+
}
|
|
100
|
+
return (React.createElement(Box, { flexDirection: "column", width: width }, content));
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=Tumbler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tumbler.js","sourceRoot":"","sources":["../../../../src/presentation/tui/ui-primitives/Tumbler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EACL,UAAU,EACV,cAAc,EACd,SAAS,EACT,SAAS,GACV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAmBpD,SAAS,qBAAqB,CAAC,YAAoB;IACjD,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IACzD,OAAO,UAAU,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;AAC5D,CAAC;AAED,SAAS,kBAAkB,CACzB,KAA6B,EAC7B,iBAA0B;IAE1B,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,OAAO,CAAC,CAAC;IACX,CAAC;IAED,MAAM,cAAc,GAAG,KAAK,CAAC,SAAS,CACpC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,iBAAiB,CACzC,CAAC;IACF,OAAO,cAAc,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC;AACjD,CAAC;AAED,SAAS,SAAS,CAAC,KAAa,EAAE,SAAiB;IACjD,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,GAAG,SAAS,CAAC;AACzC,CAAC;AAOD,SAAS,cAAc,CACrB,KAA6B,EAC7B,YAAoB,EACpB,YAAoB;IAEpB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,sBAAsB,GAAG,IAAI,CAAC,GAAG,CACrC,qBAAqB,CAAC,YAAY,CAAC,EACnC,KAAK,CAAC,MAAM,CACb,CAAC;IACF,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC;IAEtD,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE;QACpE,MAAM,iBAAiB,GAAG,QAAQ,GAAG,MAAM,CAAC;QAC5C,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,GAAG,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YACtE,iBAAiB;SAClB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,gBAAgB,CAAC,iBAAyB;IACjD,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC7C,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;QACnB,OAAO,cAAc,CAAC,OAAO,CAAC;IAChC,CAAC;IACD,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;QACnB,OAAO,UAAU,CAAC,MAAM,CAAC;IAC3B,CAAC;IACD,OAAO,UAAU,CAAC,MAAM,CAAC;AAC3B,CAAC;AAED,SAAS,aAAa,CAAC,KAAa,EAAE,gBAAyB;IAC7D,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;QACnC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,mBAAmB,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACtE,IAAI,KAAK,CAAC,MAAM,IAAI,mBAAmB,EAAE,CAAC;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,mBAAmB,IAAI,CAAC,EAAE,CAAC;QAC7B,OAAO,GAAG,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IACzC,CAAC;IAED,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,EACtB,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,YAAY,GAAG,CAAC,EAChB,gBAAgB,EAChB,KAAK,GAAG,SAAS,CAAC,cAAc,EAChC,QAAQ,GAAG,IAAI,EACf,YAAY,GAAG,WAAW,CAAC,YAAY,EACvC,mBAAmB,GACN;IACb,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CACpD,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAC7C,CAAC;IACF,MAAM,sBAAsB,GAAG,qBAAqB,CAAC,YAAY,CAAC,CAAC;IAEnE,SAAS,CAAC,GAAG,EAAE;QACb,eAAe,CAAC,CAAC,YAAY,EAAE,EAAE;YAC/B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACvB,OAAO,CAAC,CAAC;YACX,CAAC;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAEnB,QAAQ,CACN,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;QACd,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC;YAChB,eAAe,CAAC,CAAC,YAAY,EAAE,EAAE,CAC/B,SAAS,CAAC,YAAY,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAC1C,CAAC;YACF,OAAO;QACT,CAAC;QAED,IAAI,GAAG,CAAC,SAAS,EAAE,CAAC;YAClB,eAAe,CAAC,CAAC,YAAY,EAAE,EAAE,CAC/B,SAAS,CAAC,YAAY,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAC1C,CAAC;QACJ,CAAC;IACH,CAAC,EACD,EAAE,QAAQ,EAAE,CACb,CAAC;IAEF,MAAM,WAAW,GAAG,OAAO,CACzB,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,sBAAsB,CAAC,EACjE,CAAC,YAAY,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAC9C,CAAC;IAEF,MAAM,WAAW,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;IACxC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,WAAW,EAAE,CAAC;YAChB,mBAAmB,EAAE,CAAC,WAAW,CAAC,CAAC;QACrC,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAEvC,MAAM,OAAO,GACX,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CACnB,oBAAC,IAAI,IAAC,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,MAAM,UACtC,YAAY,CACR,CACR,CAAC,CAAC,CAAC,CACF,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,IACxB,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE;QAC/C,MAAM,SAAS,GAAG,iBAAiB,KAAK,CAAC,CAAC;QAC1C,OAAO,CACL,oBAAC,GAAG,IAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,iBAAiB,EAAE;YAC1C,oBAAC,IAAI,IACH,KAAK,EACH,QAAQ,IAAI,SAAS;oBACnB,CAAC,CAAC,UAAU,CAAC,SAAS;oBACtB,CAAC,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,EAEzC,IAAI,EAAE,SAAS;gBAEd,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG;gBAAE,GAAG,CACrC;YACP,oBAAC,IAAI,IAAC,KAAK,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAE,SAAS,IAC9D,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC,CACvC,CACH,CACP,CAAC;IACJ,CAAC,CAAC,CACE,CACP,CAAC;IAEJ,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,CACL,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,IAC9B,OAAO,CACF,CACT,CAAC;IACJ,CAAC;IAED,OAAO,CACL,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,KAAK,EAAE,KAAK,IACrC,OAAO,CACJ,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TumblerConstants.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/ui-primitives/TumblerConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;CAEd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TumblerConstants.js","sourceRoot":"","sources":["../../../../src/presentation/tui/ui-primitives/TumblerConstants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,YAAY,EAAE,UAAU;CAChB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type WizardFieldKindValue } from "./WizardConstants.js";
|
|
3
|
+
export interface WizardStepField {
|
|
4
|
+
readonly key: string;
|
|
5
|
+
readonly label: string;
|
|
6
|
+
readonly placeholder?: string;
|
|
7
|
+
readonly kind?: WizardFieldKindValue;
|
|
8
|
+
readonly options?: readonly WizardStepFieldOption[];
|
|
9
|
+
readonly defaultValue?: string;
|
|
10
|
+
readonly required?: boolean;
|
|
11
|
+
readonly validate?: (value: string, values: Record<string, string>) => string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface WizardStepFieldOption {
|
|
14
|
+
readonly value: string;
|
|
15
|
+
readonly label: string;
|
|
16
|
+
}
|
|
17
|
+
export interface WizardStepDefinition {
|
|
18
|
+
readonly title: string;
|
|
19
|
+
readonly description?: string;
|
|
20
|
+
readonly fields: readonly WizardStepField[];
|
|
21
|
+
}
|
|
22
|
+
export interface WizardProps {
|
|
23
|
+
readonly title: string;
|
|
24
|
+
readonly steps: readonly WizardStepDefinition[];
|
|
25
|
+
readonly onConfirm: (values: Record<string, string>) => void;
|
|
26
|
+
readonly onCancel: () => void;
|
|
27
|
+
readonly onBack?: () => void;
|
|
28
|
+
readonly initialStepIndex?: number;
|
|
29
|
+
readonly initialValues?: Readonly<Record<string, string>>;
|
|
30
|
+
readonly dispatchError?: string | null;
|
|
31
|
+
readonly disabled?: boolean;
|
|
32
|
+
readonly progressLabel?: string | WizardProgressLabelResolver;
|
|
33
|
+
readonly extraHints?: readonly WizardFooterHint[];
|
|
34
|
+
readonly onInput?: (input: string, key: WizardInputKey) => boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface WizardFooterHint {
|
|
37
|
+
readonly char: string;
|
|
38
|
+
readonly label: string;
|
|
39
|
+
}
|
|
40
|
+
export type WizardProgressLabelResolver = (currentStepIndex: number, totalSteps: number) => string | undefined;
|
|
41
|
+
export interface WizardInputKey {
|
|
42
|
+
readonly upArrow?: boolean;
|
|
43
|
+
readonly downArrow?: boolean;
|
|
44
|
+
readonly leftArrow?: boolean;
|
|
45
|
+
readonly rightArrow?: boolean;
|
|
46
|
+
readonly return?: boolean;
|
|
47
|
+
readonly escape?: boolean;
|
|
48
|
+
readonly tab?: boolean;
|
|
49
|
+
readonly shift?: boolean;
|
|
50
|
+
readonly ctrl?: boolean;
|
|
51
|
+
readonly meta?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export declare function Wizard({ title, steps, onConfirm, onCancel, onBack, initialStepIndex, initialValues, dispatchError, disabled, progressLabel, extraHints, onInput, }: WizardProps): React.ReactElement;
|
|
54
|
+
//# sourceMappingURL=Wizard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wizard.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/wizard/Wizard.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import React, { useState, useRef, useLayoutEffect } from "react";
|
|
2
|
+
import { Box, Text, useInput, measureElement } from "ink";
|
|
3
|
+
import { BaseColors, SemanticColors, TuiGlyphs, } from "../../shared/DesignTokens.js";
|
|
4
|
+
import { KeyBadge } from "../ui-primitives/KeyBadge.js";
|
|
5
|
+
import { WizardTextInput } from "./WizardTextInput.js";
|
|
6
|
+
import { WizardFieldKind, WizardKeyboardHintCopy, WizardKeyboardHintKey, WizardValidationCopy, } from "./WizardConstants.js";
|
|
7
|
+
const OVERLAY_MIN_WIDTH = 88;
|
|
8
|
+
const YES_NO_VALUES = {
|
|
9
|
+
yes: "yes",
|
|
10
|
+
no: "no",
|
|
11
|
+
};
|
|
12
|
+
export function Wizard({ title, steps, onConfirm, onCancel, onBack, initialStepIndex = 0, initialValues = {}, dispatchError = null, disabled = false, progressLabel, extraHints = [], onInput, }) {
|
|
13
|
+
const boundedInitialStepIndex = Math.min(Math.max(initialStepIndex, 0), Math.max(steps.length - 1, 0));
|
|
14
|
+
const initialValuesWithDefaults = withStepDefaultValues(steps[boundedInitialStepIndex]?.fields ?? [], { ...initialValues });
|
|
15
|
+
const [currentStepIndex, setCurrentStepIndex] = useState(boundedInitialStepIndex);
|
|
16
|
+
const [values, setValues] = useState({
|
|
17
|
+
...initialValuesWithDefaults,
|
|
18
|
+
});
|
|
19
|
+
const valuesRef = useRef({
|
|
20
|
+
...initialValuesWithDefaults,
|
|
21
|
+
});
|
|
22
|
+
const [activeFieldIndex, setActiveFieldIndex] = useState(0);
|
|
23
|
+
const activeFieldRef = useRef(0);
|
|
24
|
+
const stepIndexRef = useRef(boundedInitialStepIndex);
|
|
25
|
+
const [focusedOptionIndexes, setFocusedOptionIndexes] = useState({});
|
|
26
|
+
const focusedOptionIndexesRef = useRef({});
|
|
27
|
+
const [validationErrors, setValidationErrors] = useState({});
|
|
28
|
+
const panelRef = useRef(null);
|
|
29
|
+
const [innerWidth, setInnerWidth] = useState(OVERLAY_MIN_WIDTH - 8);
|
|
30
|
+
const initialValuesKey = JSON.stringify(initialValues);
|
|
31
|
+
useLayoutEffect(() => {
|
|
32
|
+
const nextStepIndex = Math.min(Math.max(initialStepIndex, 0), Math.max(steps.length - 1, 0));
|
|
33
|
+
const nextValues = withStepDefaultValues(steps[nextStepIndex]?.fields ?? [], { ...initialValues });
|
|
34
|
+
stepIndexRef.current = nextStepIndex;
|
|
35
|
+
activeFieldRef.current = 0;
|
|
36
|
+
valuesRef.current = nextValues;
|
|
37
|
+
focusedOptionIndexesRef.current = {};
|
|
38
|
+
setCurrentStepIndex(nextStepIndex);
|
|
39
|
+
setActiveFieldIndex(0);
|
|
40
|
+
setValues({ ...nextValues });
|
|
41
|
+
setFocusedOptionIndexes({});
|
|
42
|
+
setValidationErrors({});
|
|
43
|
+
}, [initialStepIndex, initialValuesKey, steps]);
|
|
44
|
+
useLayoutEffect(() => {
|
|
45
|
+
if (panelRef.current) {
|
|
46
|
+
const { width } = measureElement(panelRef.current);
|
|
47
|
+
const inner = Math.max(1, width - 8);
|
|
48
|
+
if (inner !== innerWidth) {
|
|
49
|
+
setInnerWidth(inner);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const renderedStepIndex = Math.min(Math.max(currentStepIndex, 0), Math.max(steps.length - 1, 0));
|
|
54
|
+
const currentStep = steps[renderedStepIndex];
|
|
55
|
+
const isFirstStep = renderedStepIndex === 0;
|
|
56
|
+
const isLastStep = renderedStepIndex === steps.length - 1;
|
|
57
|
+
const totalSteps = steps.length;
|
|
58
|
+
const currentFields = currentStep.fields;
|
|
59
|
+
const activeField = currentFields[activeFieldIndex];
|
|
60
|
+
const showSpaceToggleHint = activeField?.kind === WizardFieldKind.MULTI_SELECT ||
|
|
61
|
+
activeField?.kind === WizardFieldKind.SINGLE_SELECT ||
|
|
62
|
+
activeField?.kind === WizardFieldKind.YES_NO;
|
|
63
|
+
const showBackHint = !isFirstStep || onBack !== undefined;
|
|
64
|
+
const footerProgressLabel = typeof progressLabel === "function"
|
|
65
|
+
? progressLabel(renderedStepIndex, totalSteps) ??
|
|
66
|
+
`${renderedStepIndex + 1}/${totalSteps}`
|
|
67
|
+
: progressLabel ?? `${renderedStepIndex + 1}/${totalSteps}`;
|
|
68
|
+
const footerProgressWidth = footerProgressLabel.length;
|
|
69
|
+
const footerHintsWidth = Math.max(1, innerWidth - footerProgressWidth - 2);
|
|
70
|
+
const footerHints = [
|
|
71
|
+
...(showBackHint
|
|
72
|
+
? [
|
|
73
|
+
{
|
|
74
|
+
char: WizardKeyboardHintKey.back,
|
|
75
|
+
label: WizardKeyboardHintCopy.back,
|
|
76
|
+
compact: true,
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
: []),
|
|
80
|
+
{
|
|
81
|
+
char: WizardKeyboardHintKey.submit,
|
|
82
|
+
label: disabled
|
|
83
|
+
? WizardKeyboardHintCopy.working
|
|
84
|
+
: isLastStep
|
|
85
|
+
? WizardKeyboardHintCopy.confirm
|
|
86
|
+
: WizardKeyboardHintCopy.next,
|
|
87
|
+
compact: true,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
char: WizardKeyboardHintKey.cancel,
|
|
91
|
+
label: WizardKeyboardHintCopy.cancel,
|
|
92
|
+
compact: true,
|
|
93
|
+
},
|
|
94
|
+
...(currentFields.length > 1
|
|
95
|
+
? [
|
|
96
|
+
{
|
|
97
|
+
char: WizardKeyboardHintKey.field,
|
|
98
|
+
label: WizardKeyboardHintCopy.field,
|
|
99
|
+
compact: true,
|
|
100
|
+
},
|
|
101
|
+
]
|
|
102
|
+
: []),
|
|
103
|
+
...(showSpaceToggleHint
|
|
104
|
+
? [
|
|
105
|
+
{
|
|
106
|
+
char: WizardKeyboardHintKey.toggle,
|
|
107
|
+
label: WizardKeyboardHintCopy.toggle,
|
|
108
|
+
compact: true,
|
|
109
|
+
},
|
|
110
|
+
]
|
|
111
|
+
: []),
|
|
112
|
+
...extraHints.map((hint) => ({ ...hint, compact: true })),
|
|
113
|
+
];
|
|
114
|
+
const clearFieldError = (fieldKey) => {
|
|
115
|
+
if (validationErrors[fieldKey] !== undefined) {
|
|
116
|
+
const next = { ...validationErrors };
|
|
117
|
+
delete next[fieldKey];
|
|
118
|
+
setValidationErrors(next);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
const handleFieldChange = (fieldKey, nextValue) => {
|
|
122
|
+
valuesRef.current = { ...valuesRef.current, [fieldKey]: nextValue };
|
|
123
|
+
setValues({ ...valuesRef.current });
|
|
124
|
+
clearFieldError(fieldKey);
|
|
125
|
+
};
|
|
126
|
+
const handleFocusedOptionIndexChange = (fieldKey, nextIndex) => {
|
|
127
|
+
focusedOptionIndexesRef.current = {
|
|
128
|
+
...focusedOptionIndexesRef.current,
|
|
129
|
+
[fieldKey]: nextIndex,
|
|
130
|
+
};
|
|
131
|
+
setFocusedOptionIndexes({ ...focusedOptionIndexesRef.current });
|
|
132
|
+
};
|
|
133
|
+
useInput((input, key) => {
|
|
134
|
+
if (disabled) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
if (key.escape) {
|
|
138
|
+
onCancel();
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
if (onInput?.(input, key)) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const stepIdx = stepIndexRef.current;
|
|
145
|
+
const step = steps[stepIdx];
|
|
146
|
+
const fields = step.fields;
|
|
147
|
+
const fieldIdx = activeFieldRef.current;
|
|
148
|
+
const activeField = fields[fieldIdx];
|
|
149
|
+
const lastStep = stepIdx === steps.length - 1;
|
|
150
|
+
const navigateBack = () => {
|
|
151
|
+
if (stepIdx > 0) {
|
|
152
|
+
const prevIdx = stepIdx - 1;
|
|
153
|
+
stepIndexRef.current = prevIdx;
|
|
154
|
+
activeFieldRef.current = 0;
|
|
155
|
+
setCurrentStepIndex(prevIdx);
|
|
156
|
+
setActiveFieldIndex(0);
|
|
157
|
+
setValidationErrors({});
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
onBack?.();
|
|
161
|
+
};
|
|
162
|
+
if (key.leftArrow && !input) {
|
|
163
|
+
navigateBack();
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
if (key.tab && !key.shift) {
|
|
167
|
+
if (fieldIdx < fields.length - 1) {
|
|
168
|
+
activeFieldRef.current = fieldIdx + 1;
|
|
169
|
+
setActiveFieldIndex(fieldIdx + 1);
|
|
170
|
+
}
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (key.tab && key.shift) {
|
|
174
|
+
if (fieldIdx > 0) {
|
|
175
|
+
activeFieldRef.current = fieldIdx - 1;
|
|
176
|
+
setActiveFieldIndex(fieldIdx - 1);
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
navigateBack();
|
|
180
|
+
}
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
if (activeField?.kind !== WizardFieldKind.MULTI_SELECT &&
|
|
184
|
+
activeField?.kind !== WizardFieldKind.SINGLE_SELECT &&
|
|
185
|
+
key.upArrow) {
|
|
186
|
+
if (fieldIdx > 0) {
|
|
187
|
+
activeFieldRef.current = fieldIdx - 1;
|
|
188
|
+
setActiveFieldIndex(fieldIdx - 1);
|
|
189
|
+
}
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
if (activeField?.kind !== WizardFieldKind.MULTI_SELECT &&
|
|
193
|
+
activeField?.kind !== WizardFieldKind.SINGLE_SELECT &&
|
|
194
|
+
key.downArrow) {
|
|
195
|
+
if (fieldIdx < fields.length - 1) {
|
|
196
|
+
activeFieldRef.current = fieldIdx + 1;
|
|
197
|
+
setActiveFieldIndex(fieldIdx + 1);
|
|
198
|
+
}
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
if (activeField?.kind === WizardFieldKind.YES_NO) {
|
|
202
|
+
if (input === "y" || input === "Y") {
|
|
203
|
+
handleFieldChange(activeField.key, YES_NO_VALUES.yes);
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
if (input === "n" || input === "N") {
|
|
207
|
+
handleFieldChange(activeField.key, YES_NO_VALUES.no);
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
if (input === " ") {
|
|
211
|
+
handleFieldChange(activeField.key, resolveFieldValue(activeField, valuesRef.current) === YES_NO_VALUES.yes
|
|
212
|
+
? YES_NO_VALUES.no
|
|
213
|
+
: YES_NO_VALUES.yes);
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
if (activeField?.kind === WizardFieldKind.MULTI_SELECT) {
|
|
218
|
+
const options = activeField.options ?? [];
|
|
219
|
+
const currentOptionIndex = focusedOptionIndexesRef.current[activeField.key] ?? 0;
|
|
220
|
+
if (key.upArrow && options.length > 0) {
|
|
221
|
+
handleFocusedOptionIndexChange(activeField.key, Math.max(currentOptionIndex - 1, 0));
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
if (key.downArrow && options.length > 0) {
|
|
225
|
+
handleFocusedOptionIndexChange(activeField.key, Math.min(currentOptionIndex + 1, options.length - 1));
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
if (input === " " && options[currentOptionIndex] !== undefined) {
|
|
229
|
+
handleFieldChange(activeField.key, toggleMultiSelectValue(resolveFieldValue(activeField, valuesRef.current), options[currentOptionIndex].value));
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
if (activeField?.kind === WizardFieldKind.SINGLE_SELECT) {
|
|
234
|
+
const options = activeField.options ?? [];
|
|
235
|
+
const currentOptionIndex = focusedOptionIndexesRef.current[activeField.key] ?? 0;
|
|
236
|
+
if (key.upArrow && options.length > 0) {
|
|
237
|
+
const nextIndex = Math.max(currentOptionIndex - 1, 0);
|
|
238
|
+
handleFocusedOptionIndexChange(activeField.key, nextIndex);
|
|
239
|
+
handleFieldChange(activeField.key, options[nextIndex].value);
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
if (key.downArrow && options.length > 0) {
|
|
243
|
+
const nextIndex = Math.min(currentOptionIndex + 1, options.length - 1);
|
|
244
|
+
handleFocusedOptionIndexChange(activeField.key, nextIndex);
|
|
245
|
+
handleFieldChange(activeField.key, options[nextIndex].value);
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
if (input === " " && options[currentOptionIndex] !== undefined) {
|
|
249
|
+
handleFieldChange(activeField.key, options[currentOptionIndex].value);
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
if (key.return) {
|
|
254
|
+
if (fieldIdx < fields.length - 1) {
|
|
255
|
+
activeFieldRef.current = fieldIdx + 1;
|
|
256
|
+
setActiveFieldIndex(fieldIdx + 1);
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
const currentValues = withStepDefaultValues(fields, valuesRef.current);
|
|
260
|
+
const errors = {};
|
|
261
|
+
for (const field of fields) {
|
|
262
|
+
const fieldValue = resolveFieldValue(field, currentValues);
|
|
263
|
+
if (field.required !== false && fieldValue.trim().length === 0) {
|
|
264
|
+
errors[field.key] = WizardValidationCopy.required;
|
|
265
|
+
continue;
|
|
266
|
+
}
|
|
267
|
+
const validationError = field.validate?.(fieldValue, currentValues);
|
|
268
|
+
if (validationError !== undefined && validationError !== null) {
|
|
269
|
+
errors[field.key] = validationError;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if (Object.keys(errors).length > 0) {
|
|
273
|
+
setValidationErrors(errors);
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
if (lastStep) {
|
|
277
|
+
onConfirm({ ...currentValues });
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
const nextIdx = stepIdx + 1;
|
|
281
|
+
stepIndexRef.current = nextIdx;
|
|
282
|
+
activeFieldRef.current = 0;
|
|
283
|
+
setCurrentStepIndex(nextIdx);
|
|
284
|
+
setActiveFieldIndex(0);
|
|
285
|
+
setValidationErrors({});
|
|
286
|
+
}
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
return (React.createElement(Box, { flexDirection: "column", alignItems: "center", justifyContent: "center", flexGrow: 1 },
|
|
291
|
+
React.createElement(Box, { flexDirection: "column", backgroundColor: BaseColors.black, paddingX: 4, paddingY: 2, minWidth: OVERLAY_MIN_WIDTH, ref: panelRef },
|
|
292
|
+
React.createElement(Box, { flexDirection: "column", gap: 0 },
|
|
293
|
+
React.createElement(Text, { color: SemanticColors.headline, bold: true },
|
|
294
|
+
TuiGlyphs.accentBar,
|
|
295
|
+
" ",
|
|
296
|
+
title)),
|
|
297
|
+
currentStep.description !== undefined && (React.createElement(Box, { marginTop: 1 },
|
|
298
|
+
React.createElement(Text, { color: SemanticColors.secondary, wrap: "wrap" }, currentStep.description))),
|
|
299
|
+
React.createElement(Box, { flexDirection: "column", marginTop: 1, gap: 1 }, currentFields.map((field, fieldIndex) => {
|
|
300
|
+
const fieldValue = resolveFieldValue(field, values);
|
|
301
|
+
const isFocused = fieldIndex === activeFieldIndex;
|
|
302
|
+
if (field.kind === WizardFieldKind.YES_NO) {
|
|
303
|
+
return (React.createElement(WizardYesNoToggle, { key: field.key, label: field.label, value: fieldValue, focused: isFocused, error: validationErrors[field.key] }));
|
|
304
|
+
}
|
|
305
|
+
if (field.kind === WizardFieldKind.MULTI_SELECT) {
|
|
306
|
+
return (React.createElement(WizardMultiSelect, { key: field.key, label: field.label, value: fieldValue, options: field.options ?? [], focused: isFocused, focusedOptionIndex: focusedOptionIndexes[field.key] ?? 0, error: validationErrors[field.key] }));
|
|
307
|
+
}
|
|
308
|
+
if (field.kind === WizardFieldKind.SINGLE_SELECT) {
|
|
309
|
+
return (React.createElement(WizardSingleSelect, { key: field.key, label: field.label, value: fieldValue, options: field.options ?? [], focused: isFocused, focusedOptionIndex: focusedOptionIndexes[field.key] ?? 0, error: validationErrors[field.key] }));
|
|
310
|
+
}
|
|
311
|
+
return (React.createElement(WizardTextInput, { key: field.key, label: field.label, value: fieldValue, placeholder: field.placeholder, focused: isFocused, error: validationErrors[field.key], onChange: (nextValue) => handleFieldChange(field.key, nextValue) }));
|
|
312
|
+
})),
|
|
313
|
+
dispatchError !== null && (React.createElement(Box, { marginTop: 1, width: innerWidth },
|
|
314
|
+
React.createElement(Text, { color: SemanticColors.error, wrap: "wrap" }, dispatchError))),
|
|
315
|
+
React.createElement(Box, { marginTop: 1, width: innerWidth },
|
|
316
|
+
React.createElement(Text, { color: BaseColors.shade5, backgroundColor: BaseColors.black }, TuiGlyphs.divider.repeat(innerWidth))),
|
|
317
|
+
React.createElement(Box, { marginTop: 1, width: innerWidth },
|
|
318
|
+
React.createElement(Box, { width: footerHintsWidth, flexWrap: "wrap", columnGap: 2, rowGap: 0 }, footerHints.map((hint) => (React.createElement(KeyBadge, { key: `${hint.char}-${hint.label}`, char: hint.char, label: hint.label, compact: hint.compact })))),
|
|
319
|
+
React.createElement(Box, { flexGrow: 1 }),
|
|
320
|
+
React.createElement(Box, { width: footerProgressWidth },
|
|
321
|
+
React.createElement(Text, { color: SemanticColors.secondary }, footerProgressLabel))))));
|
|
322
|
+
}
|
|
323
|
+
function WizardSingleSelect({ label, value, options, focused, focusedOptionIndex, error, }) {
|
|
324
|
+
return (React.createElement(Box, { flexDirection: "column", gap: 0 },
|
|
325
|
+
React.createElement(Text, { color: SemanticColors.inputLabel, bold: focused, dimColor: true }, label),
|
|
326
|
+
React.createElement(Box, { flexDirection: "column" }, options.map((option, index) => {
|
|
327
|
+
const optionFocused = focused && index === focusedOptionIndex;
|
|
328
|
+
const selected = value === option.value;
|
|
329
|
+
return (React.createElement(Text, { key: option.value, color: optionFocused ? BaseColors.brandBlue : SemanticColors.primary, bold: optionFocused },
|
|
330
|
+
optionFocused ? TuiGlyphs.selector : " ",
|
|
331
|
+
" (",
|
|
332
|
+
selected ? "x" : " ",
|
|
333
|
+
")",
|
|
334
|
+
" ",
|
|
335
|
+
option.label));
|
|
336
|
+
})),
|
|
337
|
+
error !== undefined && (React.createElement(Box, { marginLeft: 0 },
|
|
338
|
+
React.createElement(Text, { color: SemanticColors.error },
|
|
339
|
+
TuiGlyphs.cross,
|
|
340
|
+
" ",
|
|
341
|
+
error)))));
|
|
342
|
+
}
|
|
343
|
+
function WizardMultiSelect({ label, value, options, focused, focusedOptionIndex, error, }) {
|
|
344
|
+
const selectedValues = parseMultiSelectValue(value);
|
|
345
|
+
return (React.createElement(Box, { flexDirection: "column", gap: 0 },
|
|
346
|
+
React.createElement(Text, { color: SemanticColors.inputLabel, bold: focused, dimColor: true }, label),
|
|
347
|
+
React.createElement(Box, { flexDirection: "column" }, options.map((option, index) => {
|
|
348
|
+
const optionFocused = focused && index === focusedOptionIndex;
|
|
349
|
+
const selected = selectedValues.includes(option.value);
|
|
350
|
+
return (React.createElement(Text, { key: option.value, color: optionFocused ? BaseColors.brandBlue : SemanticColors.primary, bold: optionFocused },
|
|
351
|
+
optionFocused ? TuiGlyphs.selector : " ",
|
|
352
|
+
" [",
|
|
353
|
+
selected ? "x" : " ",
|
|
354
|
+
"]",
|
|
355
|
+
" ",
|
|
356
|
+
option.label));
|
|
357
|
+
})),
|
|
358
|
+
error !== undefined && (React.createElement(Box, { marginLeft: 0 },
|
|
359
|
+
React.createElement(Text, { color: SemanticColors.error },
|
|
360
|
+
TuiGlyphs.cross,
|
|
361
|
+
" ",
|
|
362
|
+
error)))));
|
|
363
|
+
}
|
|
364
|
+
function WizardYesNoToggle({ label, value, focused, error, }) {
|
|
365
|
+
return (React.createElement(Box, { flexDirection: "column", gap: 0 },
|
|
366
|
+
React.createElement(Text, { color: SemanticColors.inputLabel, bold: focused, dimColor: true }, label),
|
|
367
|
+
React.createElement(Box, { gap: 2 },
|
|
368
|
+
React.createElement(WizardYesNoOption, { label: "Yes", selected: value === YES_NO_VALUES.yes, focused: focused }),
|
|
369
|
+
React.createElement(WizardYesNoOption, { label: "No", selected: value !== YES_NO_VALUES.yes, focused: focused })),
|
|
370
|
+
error !== undefined && (React.createElement(Box, { marginLeft: 0 },
|
|
371
|
+
React.createElement(Text, { color: SemanticColors.error },
|
|
372
|
+
TuiGlyphs.cross,
|
|
373
|
+
" ",
|
|
374
|
+
error)))));
|
|
375
|
+
}
|
|
376
|
+
function WizardYesNoOption({ label, selected, focused, }) {
|
|
377
|
+
const color = selected
|
|
378
|
+
? focused
|
|
379
|
+
? BaseColors.brandBlue
|
|
380
|
+
: SemanticColors.primary
|
|
381
|
+
: SemanticColors.muted;
|
|
382
|
+
return (React.createElement(Text, { color: color, bold: selected },
|
|
383
|
+
selected ? TuiGlyphs.selector : " ",
|
|
384
|
+
" ",
|
|
385
|
+
label));
|
|
386
|
+
}
|
|
387
|
+
function resolveFieldValue(field, values) {
|
|
388
|
+
return values[field.key] ?? field.defaultValue ?? "";
|
|
389
|
+
}
|
|
390
|
+
function withStepDefaultValues(fields, values) {
|
|
391
|
+
return fields.reduce((nextValues, field) => {
|
|
392
|
+
if (nextValues[field.key] === undefined &&
|
|
393
|
+
field.defaultValue !== undefined) {
|
|
394
|
+
nextValues[field.key] = field.defaultValue;
|
|
395
|
+
}
|
|
396
|
+
return nextValues;
|
|
397
|
+
}, { ...values });
|
|
398
|
+
}
|
|
399
|
+
function parseMultiSelectValue(value) {
|
|
400
|
+
return value
|
|
401
|
+
.split(",")
|
|
402
|
+
.map((item) => item.trim())
|
|
403
|
+
.filter((item) => item.length > 0);
|
|
404
|
+
}
|
|
405
|
+
function toggleMultiSelectValue(value, optionValue) {
|
|
406
|
+
const selectedValues = parseMultiSelectValue(value);
|
|
407
|
+
const nextValues = selectedValues.includes(optionValue)
|
|
408
|
+
? selectedValues.filter((selectedValue) => selectedValue !== optionValue)
|
|
409
|
+
: [...selectedValues, optionValue];
|
|
410
|
+
return nextValues.join(",");
|
|
411
|
+
}
|
|
412
|
+
//# sourceMappingURL=Wizard.js.map
|