jumbo-cli 3.1.0 → 3.2.1
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 +1 -1
- 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 +171 -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 +147 -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 +161 -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/project/JumboMdContent.js +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 +82 -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/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/action-dispatch/TuiActionDispatcher.d.ts +12 -0
- package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.d.ts.map +1 -0
- package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.js +21 -0
- package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.js.map +1 -0
- package/dist/presentation/tui/application-shell/Footer.d.ts +16 -0
- package/dist/presentation/tui/application-shell/Footer.d.ts.map +1 -0
- package/dist/presentation/tui/application-shell/Footer.js +37 -0
- package/dist/presentation/tui/application-shell/Footer.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 +44 -0
- package/dist/presentation/tui/application-shell/Header.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 +230 -0
- package/dist/presentation/tui/application-shell/TuiApp.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/billboard/AnimatedBillboard.d.ts +11 -0
- package/dist/presentation/tui/billboard/AnimatedBillboard.d.ts.map +1 -0
- package/dist/presentation/tui/billboard/AnimatedBillboard.js +406 -0
- package/dist/presentation/tui/billboard/AnimatedBillboard.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 +8 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.js +33 -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 +146 -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 +183 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonFrames.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanel.d.ts +27 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanel.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanel.js +108 -0
- package/dist/presentation/tui/cockpit/CockpitDaemonPanel.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 +17 -0
- package/dist/presentation/tui/cockpit/CockpitGreeterView.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 +217 -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 +16 -0
- package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.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 +22 -0
- package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.js.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitScreen.d.ts +20 -0
- package/dist/presentation/tui/cockpit/CockpitScreen.d.ts.map +1 -0
- package/dist/presentation/tui/cockpit/CockpitScreen.js +55 -0
- package/dist/presentation/tui/cockpit/CockpitScreen.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 +27 -0
- package/dist/presentation/tui/cockpit/CockpitUnprimedView.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/ISubprocessManager.d.ts +42 -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 +30 -0
- package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.js.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.d.ts +8 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.d.ts.map +1 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.js +10 -0
- package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.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 +257 -0
- package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.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 +227 -0
- package/dist/presentation/tui/goals/GoalAuthoringFlow.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 +159 -0
- package/dist/presentation/tui/goals/GoalsScreen.js.map +1 -0
- package/dist/presentation/tui/index.d.ts +8 -0
- package/dist/presentation/tui/index.d.ts.map +1 -0
- package/dist/presentation/tui/index.js +5 -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 +13 -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 +17 -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 +18 -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 +19 -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 +21 -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 +85 -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 +80 -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 +18 -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 +16 -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 +164 -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 +162 -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 +31 -0
- package/dist/presentation/tui/navigation/ScreenRouter.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 +629 -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 +38 -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 +150 -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 +15 -0
- package/dist/presentation/tui/ui-primitives/ListPanel.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 +101 -0
- package/dist/presentation/tui/ui-primitives/Tumbler.js.map +1 -0
- package/dist/presentation/tui/wizard/Wizard.d.ts +53 -0
- package/dist/presentation/tui/wizard/Wizard.d.ts.map +1 -0
- package/dist/presentation/tui/wizard/Wizard.js +385 -0
- package/dist/presentation/tui/wizard/Wizard.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 +75 -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 +60 -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 +60 -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 @@
|
|
|
1
|
+
{"version":3,"file":"CenteredPrompt.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/cockpit/CenteredPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,MAAM,EACN,MAAM,EACN,SAAS,GACV,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,CAe1C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { SemanticColors } from "../../shared/DesignTokens.js";
|
|
4
|
+
import { KeyBadge } from "../ui-primitives/KeyBadge.js";
|
|
5
|
+
export function CenteredPrompt({ keyChar, prefix, suffix, secondary, }) {
|
|
6
|
+
return (React.createElement(Box, { flexDirection: "column", alignItems: "center", width: "100%" },
|
|
7
|
+
React.createElement(Box, { alignItems: "center" },
|
|
8
|
+
React.createElement(Text, { color: SemanticColors.primary }, prefix),
|
|
9
|
+
React.createElement(KeyBadge, { char: keyChar }),
|
|
10
|
+
React.createElement(Text, { color: SemanticColors.primary }, suffix)),
|
|
11
|
+
secondary !== undefined && (React.createElement(Box, { marginTop: 1 },
|
|
12
|
+
React.createElement(Text, { color: SemanticColors.muted }, secondary)))));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=CenteredPrompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CenteredPrompt.js","sourceRoot":"","sources":["../../../../src/presentation/tui/cockpit/CenteredPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AASxD,MAAM,UAAU,cAAc,CAAC,EAC7B,OAAO,EACP,MAAM,EACN,MAAM,EACN,SAAS,GACW;IACpB,OAAO,CACL,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,UAAU,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM;QAC1D,oBAAC,GAAG,IAAC,UAAU,EAAC,QAAQ;YACtB,oBAAC,IAAI,IAAC,KAAK,EAAE,cAAc,CAAC,OAAO,IAAG,MAAM,CAAQ;YACpD,oBAAC,QAAQ,IAAC,IAAI,EAAE,OAAO,GAAI;YAC3B,oBAAC,IAAI,IAAC,KAAK,EAAE,cAAc,CAAC,OAAO,IAAG,MAAM,CAAQ,CAChD;QACL,SAAS,KAAK,SAAS,IAAI,CAC1B,oBAAC,GAAG,IAAC,SAAS,EAAE,CAAC;YACf,oBAAC,IAAI,IAAC,KAAK,EAAE,cAAc,CAAC,KAAK,IAAG,SAAS,CAAQ,CACjD,CACP,CACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TuiDaemonConfig, TuiDaemonConfigs, TuiDaemonName } from "../daemon-subprocesses/ISubprocessManager.js";
|
|
2
|
+
export declare const COCKPIT_DAEMON_FOCUS_ORDER: readonly ["refiner", "reviewer", "codifier"];
|
|
3
|
+
export declare function getNextFocusedDaemon(currentDaemon: TuiDaemonName): TuiDaemonName;
|
|
4
|
+
export declare function nextAgentConfig(config: TuiDaemonConfig): TuiDaemonConfig;
|
|
5
|
+
export declare function nextPollConfig(config: TuiDaemonConfig): TuiDaemonConfig;
|
|
6
|
+
export declare function nextRetryConfig(config: TuiDaemonConfig): TuiDaemonConfig;
|
|
7
|
+
export declare function nextDaemonConfigs(configs: TuiDaemonConfigs, selectedDaemon: TuiDaemonName, nextConfig: (config: TuiDaemonConfig) => TuiDaemonConfig): TuiDaemonConfigs;
|
|
8
|
+
//# sourceMappingURL=CockpitDaemonConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CockpitDaemonConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/cockpit/CockpitDaemonConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAErH,eAAO,MAAM,0BAA0B,8CAAkF,CAAC;AAM1H,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,aAAa,GAAG,aAAa,CAOhF;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe,CAIxE;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe,CAIvE;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe,CAIxE;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,gBAAgB,EACzB,cAAc,EAAE,aAAa,EAC7B,UAAU,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,eAAe,GACvD,gBAAgB,CAKlB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const COCKPIT_DAEMON_FOCUS_ORDER = ["refiner", "reviewer", "codifier"];
|
|
2
|
+
const AGENT_OPTIONS = ["codex", "claude", "gemini", "copilot", "cursor", "vibe"];
|
|
3
|
+
const POLL_INTERVAL_OPTIONS_MS = [10000, 30000, 60000, 120000];
|
|
4
|
+
const RETRY_OPTIONS = [1, 2, 3, 5];
|
|
5
|
+
export function getNextFocusedDaemon(currentDaemon) {
|
|
6
|
+
const currentIndex = COCKPIT_DAEMON_FOCUS_ORDER.indexOf(currentDaemon);
|
|
7
|
+
const nextIndex = currentIndex === -1
|
|
8
|
+
? 0
|
|
9
|
+
: (currentIndex + 1) % COCKPIT_DAEMON_FOCUS_ORDER.length;
|
|
10
|
+
return COCKPIT_DAEMON_FOCUS_ORDER[nextIndex];
|
|
11
|
+
}
|
|
12
|
+
export function nextAgentConfig(config) {
|
|
13
|
+
const currentIndex = AGENT_OPTIONS.indexOf(config.agentId);
|
|
14
|
+
const nextIndex = currentIndex === -1 ? 0 : (currentIndex + 1) % AGENT_OPTIONS.length;
|
|
15
|
+
return { ...config, agentId: AGENT_OPTIONS[nextIndex] };
|
|
16
|
+
}
|
|
17
|
+
export function nextPollConfig(config) {
|
|
18
|
+
const currentIndex = POLL_INTERVAL_OPTIONS_MS.indexOf(config.pollIntervalMs);
|
|
19
|
+
const nextIndex = currentIndex === -1 ? 0 : (currentIndex + 1) % POLL_INTERVAL_OPTIONS_MS.length;
|
|
20
|
+
return { ...config, pollIntervalMs: POLL_INTERVAL_OPTIONS_MS[nextIndex] };
|
|
21
|
+
}
|
|
22
|
+
export function nextRetryConfig(config) {
|
|
23
|
+
const currentIndex = RETRY_OPTIONS.indexOf(config.maxRetries);
|
|
24
|
+
const nextIndex = currentIndex === -1 ? 0 : (currentIndex + 1) % RETRY_OPTIONS.length;
|
|
25
|
+
return { ...config, maxRetries: RETRY_OPTIONS[nextIndex] };
|
|
26
|
+
}
|
|
27
|
+
export function nextDaemonConfigs(configs, selectedDaemon, nextConfig) {
|
|
28
|
+
return {
|
|
29
|
+
...configs,
|
|
30
|
+
[selectedDaemon]: nextConfig(configs[selectedDaemon]),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=CockpitDaemonConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CockpitDaemonConfiguration.js","sourceRoot":"","sources":["../../../../src/presentation/tui/cockpit/CockpitDaemonConfiguration.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAA6C,CAAC;AAE1H,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAC1F,MAAM,wBAAwB,GAAG,CAAC,KAAM,EAAE,KAAM,EAAE,KAAM,EAAE,MAAO,CAAU,CAAC;AAC5E,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU,CAAC;AAE5C,MAAM,UAAU,oBAAoB,CAAC,aAA4B;IAC/D,MAAM,YAAY,GAAG,0BAA0B,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACvE,MAAM,SAAS,GAAG,YAAY,KAAK,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;QACH,CAAC,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,GAAG,0BAA0B,CAAC,MAAM,CAAC;IAE3D,OAAO,0BAA0B,CAAC,SAAS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,cAAc,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;KACtD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TuiDaemonName, TuiSubprocessSnapshot } from "../daemon-subprocesses/ISubprocessManager.js";
|
|
2
|
+
export interface DaemonEventRow {
|
|
3
|
+
readonly key: string;
|
|
4
|
+
readonly source: string;
|
|
5
|
+
readonly category: string;
|
|
6
|
+
readonly timestampMs: number;
|
|
7
|
+
readonly message: string;
|
|
8
|
+
readonly color: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function findDaemonStatus(statuses: readonly TuiSubprocessSnapshot[], name: TuiDaemonName): TuiSubprocessSnapshot;
|
|
11
|
+
export declare function getDaemonEventRows(snapshots: readonly TuiSubprocessSnapshot[], observedAtMs: number): readonly DaemonEventRow[];
|
|
12
|
+
export declare function appendDaemonEventRows(currentRows: readonly DaemonEventRow[], nextRows: readonly DaemonEventRow[]): readonly DaemonEventRow[];
|
|
13
|
+
export declare function formatDaemonEventRow(row: DaemonEventRow): string;
|
|
14
|
+
//# sourceMappingURL=CockpitDaemonEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CockpitDaemonEvents.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/cockpit/CockpitDaemonEvents.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,aAAa,EACb,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAOtD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,SAAS,qBAAqB,EAAE,EAC1C,IAAI,EAAE,aAAa,GAClB,qBAAqB,CASvB;AAED,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,SAAS,qBAAqB,EAAE,EAC3C,YAAY,EAAE,MAAM,GACnB,SAAS,cAAc,EAAE,CAM3B;AAED,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,SAAS,cAAc,EAAE,EACtC,QAAQ,EAAE,SAAS,cAAc,EAAE,GAClC,SAAS,cAAc,EAAE,CAW3B;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,CAIhE"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { BaseColors } from "../../shared/DesignTokens.js";
|
|
2
|
+
import { DEFAULT_WORKER_DAEMON_CONFIG } from "../../../application/daemons/WorkerDaemonCatalog.js";
|
|
3
|
+
const RENDERED_DAEMON_EVENT_LIMIT = 10;
|
|
4
|
+
const DAEMON_EVENT_SOURCE_WIDTH = 8;
|
|
5
|
+
const DAEMON_EVENT_CATEGORY_WIDTH = 12;
|
|
6
|
+
export function findDaemonStatus(statuses, name) {
|
|
7
|
+
return statuses.find((status) => status.name === name) ?? {
|
|
8
|
+
name,
|
|
9
|
+
status: "stopped",
|
|
10
|
+
config: DEFAULT_WORKER_DAEMON_CONFIG,
|
|
11
|
+
stdout: [],
|
|
12
|
+
stderr: [],
|
|
13
|
+
events: [],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export function getDaemonEventRows(snapshots, observedAtMs) {
|
|
17
|
+
const rows = snapshots.flatMap((snapshot) => getSnapshotEventRows(snapshot, observedAtMs));
|
|
18
|
+
return rows
|
|
19
|
+
.sort((left, right) => right.timestampMs - left.timestampMs)
|
|
20
|
+
.slice(0, RENDERED_DAEMON_EVENT_LIMIT);
|
|
21
|
+
}
|
|
22
|
+
export function appendDaemonEventRows(currentRows, nextRows) {
|
|
23
|
+
const currentKeys = new Set(currentRows.map((row) => row.key));
|
|
24
|
+
const appendedRows = nextRows.filter((row) => !currentKeys.has(row.key));
|
|
25
|
+
if (appendedRows.length === 0) {
|
|
26
|
+
return currentRows;
|
|
27
|
+
}
|
|
28
|
+
return [...currentRows, ...appendedRows]
|
|
29
|
+
.sort((left, right) => right.timestampMs - left.timestampMs)
|
|
30
|
+
.slice(0, RENDERED_DAEMON_EVENT_LIMIT);
|
|
31
|
+
}
|
|
32
|
+
export function formatDaemonEventRow(row) {
|
|
33
|
+
const message = row.message.length > 0 ? ` ${row.message}` : "";
|
|
34
|
+
return `${formatEventTimestamp(row.timestampMs)} ${row.source.padEnd(DAEMON_EVENT_SOURCE_WIDTH)} ${row.category.padEnd(DAEMON_EVENT_CATEGORY_WIDTH)}${message}`;
|
|
35
|
+
}
|
|
36
|
+
function getSnapshotEventRows(snapshot, observedAtMs) {
|
|
37
|
+
const eventRows = snapshot.events
|
|
38
|
+
.map((event, eventIndex) => toDaemonEventRow(snapshot, event, eventIndex, observedAtMs));
|
|
39
|
+
const lifecycleRow = getLifecycleEventRow(snapshot, eventRows.length, observedAtMs);
|
|
40
|
+
if (lifecycleRow === undefined) {
|
|
41
|
+
return eventRows;
|
|
42
|
+
}
|
|
43
|
+
return [...eventRows, lifecycleRow];
|
|
44
|
+
}
|
|
45
|
+
function getLifecycleEventRow(snapshot, eventIndex, observedAtMs) {
|
|
46
|
+
if (snapshot.status === "running" && snapshot.stopRequested === true) {
|
|
47
|
+
return createDaemonEventRow(snapshot, "stopping", eventIndex, observedAtMs);
|
|
48
|
+
}
|
|
49
|
+
if (snapshot.status === "running" && snapshot.events.length === 0) {
|
|
50
|
+
return createDaemonEventRow(snapshot, "starting", eventIndex, observedAtMs);
|
|
51
|
+
}
|
|
52
|
+
if (snapshot.status === "failed") {
|
|
53
|
+
return createDaemonEventRow(snapshot, "failed", eventIndex, observedAtMs);
|
|
54
|
+
}
|
|
55
|
+
if (snapshot.status === "stopped"
|
|
56
|
+
&& (snapshot.stopRequested === true || snapshot.exitCode !== undefined || snapshot.exitSignal !== undefined)) {
|
|
57
|
+
return createDaemonEventRow(snapshot, "stopped", eventIndex, observedAtMs);
|
|
58
|
+
}
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
function createDaemonEventRow(snapshot, status, eventIndex, observedAtMs) {
|
|
62
|
+
return toDaemonEventRow(snapshot, {
|
|
63
|
+
daemon: snapshot.name,
|
|
64
|
+
status,
|
|
65
|
+
errorMessage: snapshot.stderr[snapshot.stderr.length - 1],
|
|
66
|
+
exitCode: snapshot.exitCode ?? undefined,
|
|
67
|
+
}, eventIndex, observedAtMs);
|
|
68
|
+
}
|
|
69
|
+
function toDaemonEventRow(snapshot, event, eventIndex, observedAtMs) {
|
|
70
|
+
const status = normalizeDaemonEventStatus(event.status);
|
|
71
|
+
const timestampMs = event.timestampMs ?? observedAtMs;
|
|
72
|
+
const key = event.timestampMs === undefined
|
|
73
|
+
? `${snapshot.name}-lifecycle-${status}-${snapshot.pid ?? "none"}-${snapshot.exitCode ?? "none"}-${snapshot.stopRequested ?? false}`
|
|
74
|
+
: `${snapshot.name}-${eventIndex}-${event.status}-${event.goalId ?? "none"}-${timestampMs}`;
|
|
75
|
+
return {
|
|
76
|
+
key,
|
|
77
|
+
source: normalizeDaemonEventSource(snapshot, event),
|
|
78
|
+
category: normalizeDaemonEventCategory(event, status),
|
|
79
|
+
timestampMs,
|
|
80
|
+
message: formatDaemonEventMessage(snapshot, event),
|
|
81
|
+
color: getDaemonEventColor(status),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function normalizeDaemonEventStatus(status) {
|
|
85
|
+
if (status === "starting" || status === "stopping" || status === "stopped" || status === "failed" || status === "idle" || status === "processing" || status === "completed" || status === "skipped" || status === "exhausted" || status === "codifying") {
|
|
86
|
+
return status;
|
|
87
|
+
}
|
|
88
|
+
return "processing";
|
|
89
|
+
}
|
|
90
|
+
function formatEventTimestamp(timestampMs) {
|
|
91
|
+
const date = new Date(timestampMs);
|
|
92
|
+
const hours = String(date.getHours()).padStart(2, "0");
|
|
93
|
+
const minutes = String(date.getMinutes()).padStart(2, "0");
|
|
94
|
+
const seconds = String(date.getSeconds()).padStart(2, "0");
|
|
95
|
+
return `${hours}:${minutes}:${seconds}`;
|
|
96
|
+
}
|
|
97
|
+
function normalizeDaemonEventSource(snapshot, event) {
|
|
98
|
+
return truncateTail(event.source ?? event.daemon ?? snapshot.name, DAEMON_EVENT_SOURCE_WIDTH);
|
|
99
|
+
}
|
|
100
|
+
function normalizeDaemonEventCategory(event, status) {
|
|
101
|
+
return truncateTail(event.category ?? status, DAEMON_EVENT_CATEGORY_WIDTH);
|
|
102
|
+
}
|
|
103
|
+
function formatDaemonEventMessage(snapshot, event) {
|
|
104
|
+
const parts = [
|
|
105
|
+
event.message === undefined || event.message.trim().length === 0 ? undefined : event.message.trim(),
|
|
106
|
+
event.goalId === undefined ? undefined : shortGoalId(event.goalId),
|
|
107
|
+
formatAttemptDetails(event),
|
|
108
|
+
formatExitDetails(event),
|
|
109
|
+
event.errorMessage ?? snapshot.stderr[snapshot.stderr.length - 1],
|
|
110
|
+
].filter((part) => part !== undefined && part.length > 0);
|
|
111
|
+
return truncateTail(parts.join(" "), 52);
|
|
112
|
+
}
|
|
113
|
+
function formatAttemptDetails(event) {
|
|
114
|
+
if (event.attempt === undefined && event.maxRetries === undefined) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
return `${event.attempt ?? "-"}/${event.maxRetries ?? "-"}`;
|
|
118
|
+
}
|
|
119
|
+
function formatExitDetails(event) {
|
|
120
|
+
return event.exitCode === undefined ? undefined : `exit ${event.exitCode}`;
|
|
121
|
+
}
|
|
122
|
+
function getDaemonEventColor(status) {
|
|
123
|
+
if (status === "failed") {
|
|
124
|
+
return BaseColors.brandRed;
|
|
125
|
+
}
|
|
126
|
+
if (status === "completed") {
|
|
127
|
+
return BaseColors.brandGreen;
|
|
128
|
+
}
|
|
129
|
+
if (status === "skipped" || status === "exhausted") {
|
|
130
|
+
return BaseColors.brandYellow;
|
|
131
|
+
}
|
|
132
|
+
if (status === "processing" || status === "codifying" || status === "starting" || status === "stopping") {
|
|
133
|
+
return BaseColors.brandBlue;
|
|
134
|
+
}
|
|
135
|
+
return BaseColors.shade4;
|
|
136
|
+
}
|
|
137
|
+
function shortGoalId(goalId) {
|
|
138
|
+
if (goalId === undefined) {
|
|
139
|
+
return "-";
|
|
140
|
+
}
|
|
141
|
+
return goalId.length > 8 ? goalId.slice(0, 8) : goalId;
|
|
142
|
+
}
|
|
143
|
+
function truncateTail(text, max) {
|
|
144
|
+
return text.length <= max ? text : text.slice(0, max - 3) + "...";
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=CockpitDaemonEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CockpitDaemonEvents.js","sourceRoot":"","sources":["../../../../src/presentation/tui/cockpit/CockpitDaemonEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAO1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AAEnG,MAAM,2BAA2B,GAAG,EAAE,CAAC;AACvC,MAAM,yBAAyB,GAAG,CAAC,CAAC;AACpC,MAAM,2BAA2B,GAAG,EAAE,CAAC;AAWvC,MAAM,UAAU,gBAAgB,CAC9B,QAA0C,EAC1C,IAAmB;IAEnB,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI;QACxD,IAAI;QACJ,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,4BAA4B;QACpC,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,EAAE;KACX,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,SAA2C,EAC3C,YAAoB;IAEpB,MAAM,IAAI,GAAG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essSnapshot } from "../daemon-subprocesses/ISubprocessManager.js";
|
|
2
|
+
export interface GlyphStyle {
|
|
3
|
+
readonly color: string;
|
|
4
|
+
readonly dimColor?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export type GlyphColorMap = Readonly<Record<string, string>>;
|
|
7
|
+
export type GlyphPalette = readonly string[];
|
|
8
|
+
export interface GlyphCell {
|
|
9
|
+
readonly glyph: string;
|
|
10
|
+
readonly color: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const RENDERED_DAEMON_FRAME_HEIGHT = 5;
|
|
13
|
+
export declare const DAEMON_PANEL_CONTENT_WIDTH = 35;
|
|
14
|
+
export declare const REFINER_FRAME_COUNT = 9;
|
|
15
|
+
export declare const REVIEWER_FRAME_COUNT = 6;
|
|
16
|
+
export declare const CODIFIER_FRAME_COUNT = 6;
|
|
17
|
+
export declare const DEFAULT_REFINER_FRAME_DURATION_MS = 500;
|
|
18
|
+
export declare const DEFAULT_REVIEWER_FRAME_DURATION_MS = 350;
|
|
19
|
+
export declare const DEFAULT_CODIFIER_FRAME_DURATION_MS = 200;
|
|
20
|
+
export declare const DEFAULT_RANDOM_GLYPH_COLORS: readonly ["#f5f3ee", "#d5d3cf", "#b6b4b1", "#b6b4b1", "#7b7a77", "#5f5e5c", "#444442", "#2b2b2a"];
|
|
21
|
+
export declare const DEFAULT_CODIFIER_GLYPH_COLORS: GlyphColorMap;
|
|
22
|
+
export declare function getRenderedDaemonFrame<T>(frame: readonly T[]): readonly T[];
|
|
23
|
+
export declare function getRenderedFrameIndex(snapshot: TuiSubprocessSnapshot, animatedFrameIndex: number): number;
|
|
24
|
+
export declare function isDaemonStatusLine(lineIndex: number): boolean;
|
|
25
|
+
export declare function getGlyphCellLinePrefix(line: readonly GlyphCell[], statusLabel: string, lineIndex: number): readonly GlyphCell[];
|
|
26
|
+
export declare function getGlyphCellLineSuffix(line: readonly GlyphCell[], statusLabel: string, lineIndex: number): readonly GlyphCell[];
|
|
27
|
+
export declare function getGlyphLinePrefix(line: string, statusLabel: string, lineIndex: number): string;
|
|
28
|
+
export declare function getGlyphLineSuffix(line: string, statusLabel: string, lineIndex: number): string;
|
|
29
|
+
export declare function getCodifierFrame(index: number): string[];
|
|
30
|
+
export declare function getReviewerFrame(index: number, glyphPalette: GlyphPalette): GlyphCell[][];
|
|
31
|
+
export declare function getRefinerFrame(index: number, glyphPalette: GlyphPalette): GlyphCell[][];
|
|
32
|
+
export declare function getGlyphCellSegments(line: readonly GlyphCell[], snapshot: TuiSubprocessSnapshot): Array<{
|
|
33
|
+
text: string;
|
|
34
|
+
color: string;
|
|
35
|
+
}>;
|
|
36
|
+
export declare function getStyledGlyphSegments(line: string, glyphColors: GlyphColorMap, snapshot: TuiSubprocessSnapshot): Array<GlyphStyle & {
|
|
37
|
+
text: string;
|
|
38
|
+
}>;
|
|
39
|
+
//# sourceMappingURL=CockpitDaemonFrames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CockpitDaemonFrames.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/cockpit/CockpitDaemonFrames.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAE1F,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAC7D,MAAM,MAAM,YAAY,GAAG,SAAS,MAAM,EAAE,CAAC;AAE7C,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AASD,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eA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E,EAAE,CAEf;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,YAAY,GACzB,SAAS,EAAE,EAAE,CAEf;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,SAAS,SAAS,EAAE,EAC1B,QAAQ,EAAE,qBAAqB,GAC9B,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAgBxC;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,aAAa,EAC1B,QAAQ,EAAE,qBAAqB,GAC9B,KAAK,CAAC,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAwBtC"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { BaseColors } from "../../shared/DesignTokens.js";
|
|
2
|
+
export const RENDERED_DAEMON_FRAME_HEIGHT = 5;
|
|
3
|
+
export const DAEMON_PANEL_CONTENT_WIDTH = 35;
|
|
4
|
+
export const REFINER_FRAME_COUNT = 9;
|
|
5
|
+
export const REVIEWER_FRAME_COUNT = 6;
|
|
6
|
+
export const CODIFIER_FRAME_COUNT = 6;
|
|
7
|
+
export const DEFAULT_REFINER_FRAME_DURATION_MS = 500;
|
|
8
|
+
export const DEFAULT_REVIEWER_FRAME_DURATION_MS = 350;
|
|
9
|
+
export const DEFAULT_CODIFIER_FRAME_DURATION_MS = 200;
|
|
10
|
+
const RANDOM_GLYPH_GRID_HEIGHT = 10;
|
|
11
|
+
const CODIFIER_GRID_HEIGHT = 10;
|
|
12
|
+
const CODIFIER_GROUP_LENGTH = 4;
|
|
13
|
+
const CODIFIER_ROW_REPEAT_COUNT = 7;
|
|
14
|
+
const DEFAULT_CODIFIER_GLYPH_STYLE = {
|
|
15
|
+
color: BaseColors.shade3,
|
|
16
|
+
dimColor: false,
|
|
17
|
+
};
|
|
18
|
+
const REFINER_GLYPHS = ["•"];
|
|
19
|
+
const REVIEWER_GLYPHS = ["─", "│", "■", "▢"];
|
|
20
|
+
const CODIFIER_ALPHANUMERIC_GLYPHS = [
|
|
21
|
+
..."ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
|
|
22
|
+
];
|
|
23
|
+
export const DEFAULT_RANDOM_GLYPH_COLORS = [
|
|
24
|
+
BaseColors.tint1,
|
|
25
|
+
BaseColors.primary,
|
|
26
|
+
BaseColors.shade1,
|
|
27
|
+
BaseColors.shade2,
|
|
28
|
+
BaseColors.shade3,
|
|
29
|
+
BaseColors.shade4,
|
|
30
|
+
BaseColors.shade5,
|
|
31
|
+
BaseColors.shade6,
|
|
32
|
+
];
|
|
33
|
+
export const DEFAULT_CODIFIER_GLYPH_COLORS = {
|
|
34
|
+
"█": BaseColors.shade1,
|
|
35
|
+
"░": BaseColors.shade2,
|
|
36
|
+
};
|
|
37
|
+
const REFINER_GLYPH_FRAME_CONFIG = {
|
|
38
|
+
frameCount: REFINER_FRAME_COUNT,
|
|
39
|
+
gridWidth: DAEMON_PANEL_CONTENT_WIDTH,
|
|
40
|
+
gridHeight: RANDOM_GLYPH_GRID_HEIGHT,
|
|
41
|
+
glyphs: REFINER_GLYPHS,
|
|
42
|
+
};
|
|
43
|
+
const REVIEWER_GLYPH_FRAME_CONFIG = {
|
|
44
|
+
frameCount: REVIEWER_FRAME_COUNT,
|
|
45
|
+
gridWidth: DAEMON_PANEL_CONTENT_WIDTH,
|
|
46
|
+
gridHeight: RANDOM_GLYPH_GRID_HEIGHT,
|
|
47
|
+
glyphs: REVIEWER_GLYPHS,
|
|
48
|
+
};
|
|
49
|
+
export function getRenderedDaemonFrame(frame) {
|
|
50
|
+
return frame.slice(0, RENDERED_DAEMON_FRAME_HEIGHT);
|
|
51
|
+
}
|
|
52
|
+
export function getRenderedFrameIndex(snapshot, animatedFrameIndex) {
|
|
53
|
+
return snapshot.status === "running" ? animatedFrameIndex : 0;
|
|
54
|
+
}
|
|
55
|
+
export function isDaemonStatusLine(lineIndex) {
|
|
56
|
+
return lineIndex === Math.floor(RENDERED_DAEMON_FRAME_HEIGHT / 2);
|
|
57
|
+
}
|
|
58
|
+
export function getGlyphCellLinePrefix(line, statusLabel, lineIndex) {
|
|
59
|
+
if (!isDaemonStatusLine(lineIndex)) {
|
|
60
|
+
return line;
|
|
61
|
+
}
|
|
62
|
+
return line.slice(0, getDaemonStatusOverlayStart(line.length, statusLabel));
|
|
63
|
+
}
|
|
64
|
+
export function getGlyphCellLineSuffix(line, statusLabel, lineIndex) {
|
|
65
|
+
if (!isDaemonStatusLine(lineIndex)) {
|
|
66
|
+
return [];
|
|
67
|
+
}
|
|
68
|
+
return line.slice(getDaemonStatusOverlayEnd(line.length, statusLabel));
|
|
69
|
+
}
|
|
70
|
+
export function getGlyphLinePrefix(line, statusLabel, lineIndex) {
|
|
71
|
+
if (!isDaemonStatusLine(lineIndex)) {
|
|
72
|
+
return line;
|
|
73
|
+
}
|
|
74
|
+
return line.slice(0, getDaemonStatusOverlayStart(line.length, statusLabel));
|
|
75
|
+
}
|
|
76
|
+
export function getGlyphLineSuffix(line, statusLabel, lineIndex) {
|
|
77
|
+
if (!isDaemonStatusLine(lineIndex)) {
|
|
78
|
+
return "";
|
|
79
|
+
}
|
|
80
|
+
return line.slice(getDaemonStatusOverlayEnd(line.length, statusLabel));
|
|
81
|
+
}
|
|
82
|
+
export function getCodifierFrame(index) {
|
|
83
|
+
if (index < 0 || index >= CODIFIER_FRAME_COUNT) {
|
|
84
|
+
return ["error"];
|
|
85
|
+
}
|
|
86
|
+
const random = createSeededRandom(createSeed(index + CODIFIER_FRAME_COUNT, DAEMON_PANEL_CONTENT_WIDTH * CODIFIER_GRID_HEIGHT));
|
|
87
|
+
return Array.from({ length: CODIFIER_GRID_HEIGHT }, () => {
|
|
88
|
+
const groups = new Set();
|
|
89
|
+
while (groups.size < CODIFIER_ROW_REPEAT_COUNT) {
|
|
90
|
+
groups.add(Array.from({ length: CODIFIER_GROUP_LENGTH }, () => pickRandomValue(CODIFIER_ALPHANUMERIC_GLYPHS, random)).join(""));
|
|
91
|
+
}
|
|
92
|
+
return Array.from(groups).map((group) => `${group}.`).join("");
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
export function getReviewerFrame(index, glyphPalette) {
|
|
96
|
+
return getRandomGlyphFrame(index, glyphPalette, REVIEWER_GLYPH_FRAME_CONFIG);
|
|
97
|
+
}
|
|
98
|
+
export function getRefinerFrame(index, glyphPalette) {
|
|
99
|
+
return getRandomGlyphFrame(index, glyphPalette, REFINER_GLYPH_FRAME_CONFIG);
|
|
100
|
+
}
|
|
101
|
+
export function getGlyphCellSegments(line, snapshot) {
|
|
102
|
+
const segments = [];
|
|
103
|
+
for (const cell of line) {
|
|
104
|
+
const color = getDaemonGlyphColor(snapshot, cell.color);
|
|
105
|
+
const previousSegment = segments[segments.length - 1];
|
|
106
|
+
if (previousSegment !== undefined && previousSegment.color === color) {
|
|
107
|
+
previousSegment.text += cell.glyph;
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
segments.push({ text: cell.glyph, color });
|
|
111
|
+
}
|
|
112
|
+
return segments;
|
|
113
|
+
}
|
|
114
|
+
export function getStyledGlyphSegments(line, glyphColors, snapshot) {
|
|
115
|
+
const segments = [];
|
|
116
|
+
for (const character of line) {
|
|
117
|
+
const glyphStyle = getGlyphStyle(character, glyphColors, snapshot);
|
|
118
|
+
const previousSegment = segments[segments.length - 1];
|
|
119
|
+
if (previousSegment !== undefined
|
|
120
|
+
&& previousSegment.color === glyphStyle.color
|
|
121
|
+
&& previousSegment.dimColor === glyphStyle.dimColor) {
|
|
122
|
+
previousSegment.text += character;
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
segments.push({
|
|
126
|
+
text: character,
|
|
127
|
+
color: glyphStyle.color,
|
|
128
|
+
dimColor: glyphStyle.dimColor,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
return segments;
|
|
132
|
+
}
|
|
133
|
+
function getRandomGlyphFrame(index, glyphPalette, config) {
|
|
134
|
+
if (index < 0 || index >= config.frameCount) {
|
|
135
|
+
return [[{ glyph: "error", color: DEFAULT_CODIFIER_GLYPH_STYLE.color }]];
|
|
136
|
+
}
|
|
137
|
+
const glyphGrid = createRandomGlyphGrid(index, glyphPalette, config);
|
|
138
|
+
return Array.from({ length: config.gridHeight }, (_, rowIndex) => {
|
|
139
|
+
const start = rowIndex * config.gridWidth;
|
|
140
|
+
return glyphGrid.slice(start, start + config.gridWidth);
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
function getDaemonStatusOverlayStart(lineLength, statusLabel) {
|
|
144
|
+
return Math.max(0, Math.floor((lineLength - statusLabel.length) / 2));
|
|
145
|
+
}
|
|
146
|
+
function getDaemonStatusOverlayEnd(lineLength, statusLabel) {
|
|
147
|
+
return Math.min(lineLength, getDaemonStatusOverlayStart(lineLength, statusLabel) + statusLabel.length);
|
|
148
|
+
}
|
|
149
|
+
function getGlyphStyle(character, glyphColors, snapshot) {
|
|
150
|
+
const color = glyphColors[character];
|
|
151
|
+
if (color === undefined) {
|
|
152
|
+
return {
|
|
153
|
+
...DEFAULT_CODIFIER_GLYPH_STYLE,
|
|
154
|
+
color: getDaemonGlyphColor(snapshot, DEFAULT_CODIFIER_GLYPH_STYLE.color),
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
return { color: getDaemonGlyphColor(snapshot, color) };
|
|
158
|
+
}
|
|
159
|
+
function getDaemonGlyphColor(snapshot, animatedColor) {
|
|
160
|
+
return snapshot.status === "running" ? animatedColor : BaseColors.shade6;
|
|
161
|
+
}
|
|
162
|
+
function createRandomGlyphGrid(frameIndex, glyphPalette, config) {
|
|
163
|
+
const gridSize = config.gridWidth * config.gridHeight;
|
|
164
|
+
const random = createSeededRandom(createSeed(frameIndex, gridSize));
|
|
165
|
+
return Array.from({ length: gridSize }, () => ({
|
|
166
|
+
glyph: pickRandomValue(config.glyphs, random),
|
|
167
|
+
color: pickRandomValue(glyphPalette, random),
|
|
168
|
+
}));
|
|
169
|
+
}
|
|
170
|
+
function createSeed(frameIndex, gridSize) {
|
|
171
|
+
return (frameIndex + 1) * 1009 + gridSize * 9176;
|
|
172
|
+
}
|
|
173
|
+
function createSeededRandom(seed) {
|
|
174
|
+
let state = seed >>> 0;
|
|
175
|
+
return () => {
|
|
176
|
+
state = (state * 1664525 + 1013904223) >>> 0;
|
|
177
|
+
return state / 0x100000000;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
function pickRandomValue(values, random) {
|
|
181
|
+
return values[Math.floor(random() * values.length)];
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=CockpitDaemonFrames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CockpitDaemonFrames.js","sourceRoot":"","sources":["../../../../src/presentation/tui/cockpit/CockpitDaemonFrames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAuB1D,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC;AAC9C,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAC7C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AACrC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AACtC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AACtC,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,CAAC;AACrD,MAAM,CAAC,MAAM,kCAAkC,GAAG,GAAG,CAAC;AACtD,MAAM,CAAC,MAAM,kCAAkC,GAAG,GAAG,CAAC;AAEtD,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAChC,MAAM,yBAAyB,GAAG,CAAC,CAAC;AACpC,MAAM,4BAA4B,GAAe;IAC/C,KAAK,EAAE,UAAU,CA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,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TuiDaemonConfig, TuiDaemonName, TuiSubprocessSnapshot } from "../daemon-subprocesses/ISubprocessManager.js";
|
|
3
|
+
import { type GlyphCell, type GlyphColorMap } from "./CockpitDaemonFrames.js";
|
|
4
|
+
export declare function CockpitDaemonPanel({ title, snapshot, pendingConfig, selected, configuring, infoVisible, children, }: {
|
|
5
|
+
readonly title: string;
|
|
6
|
+
readonly snapshot: TuiSubprocessSnapshot;
|
|
7
|
+
readonly pendingConfig: TuiDaemonConfig;
|
|
8
|
+
readonly selected: boolean;
|
|
9
|
+
readonly configuring: boolean;
|
|
10
|
+
readonly infoVisible: boolean;
|
|
11
|
+
readonly children: React.ReactNode;
|
|
12
|
+
}): React.ReactElement;
|
|
13
|
+
export declare function GlyphCellDaemonFrame({ frame, frameIndex, snapshot, }: {
|
|
14
|
+
readonly frame: readonly (readonly GlyphCell[])[];
|
|
15
|
+
readonly frameIndex: number;
|
|
16
|
+
readonly snapshot: TuiSubprocessSnapshot;
|
|
17
|
+
}): React.ReactElement;
|
|
18
|
+
export declare function CodifierDaemonFrame({ frame, frameIndex, glyphColors, snapshot, }: {
|
|
19
|
+
readonly frame: readonly string[];
|
|
20
|
+
readonly frameIndex: number;
|
|
21
|
+
readonly glyphColors: GlyphColorMap;
|
|
22
|
+
readonly snapshot: TuiSubprocessSnapshot;
|
|
23
|
+
}): React.ReactElement;
|
|
24
|
+
export declare function DaemonInfoOverlay({ name, }: {
|
|
25
|
+
readonly name: TuiDaemonName;
|
|
26
|
+
}): React.ReactElement;
|
|
27
|
+
//# sourceMappingURL=CockpitDaemonPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CockpitDaemonPanel.d.ts","sourceRoot":"","sources":["../../../../src/pres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