codingbuddy 4.1.0 → 4.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/dist/src/agent/agent-summary.utils.d.ts +2 -1
- package/dist/src/analyzer/conventions.schemas.d.ts +0 -4
- package/dist/src/analyzer/conventions.schemas.js.map +1 -1
- package/dist/src/analyzer/conventions.types.d.ts +5 -7
- package/dist/src/analyzer/conventions.types.js.map +1 -1
- package/dist/src/analyzer/directory.analyzer.d.ts +1 -1
- package/dist/src/checklist/checklist.schema.d.ts +2 -1
- package/dist/src/cli/cli.d.ts +2 -3
- package/dist/src/cli/cli.js +4 -3
- package/dist/src/cli/cli.js.map +1 -1
- package/dist/src/cli/cli.types.d.ts +3 -0
- package/dist/src/cli/init/claude-settings.utils.d.ts +2 -1
- package/dist/src/cli/init/config.generator.d.ts +0 -2
- package/dist/src/cli/init/config.generator.js +0 -2
- package/dist/src/cli/init/config.generator.js.map +1 -1
- package/dist/src/cli/init/config.writer.d.ts +0 -1
- package/dist/src/cli/init/config.writer.js +0 -1
- package/dist/src/cli/init/config.writer.js.map +1 -1
- package/dist/src/cli/init/init.constants.js +1 -0
- package/dist/src/cli/init/init.constants.js.map +1 -1
- package/dist/src/cli/init/init.wizard.d.ts +2 -1
- package/dist/src/cli/init/prompts/agent-prompt.d.ts +1 -1
- package/dist/src/cli/restart-tui.d.ts +9 -0
- package/dist/src/cli/restart-tui.js +30 -0
- package/dist/src/cli/restart-tui.js.map +1 -0
- package/dist/src/cli/run-tui.d.ts +3 -3
- package/dist/src/cli/run-tui.js +32 -58
- package/dist/src/cli/run-tui.js.map +1 -1
- package/dist/src/config/config.loader.d.ts +0 -2
- package/dist/src/config/config.loader.js +0 -2
- package/dist/src/config/config.loader.js.map +1 -1
- package/dist/src/config/config.schema.d.ts +0 -16
- package/dist/src/config/config.schema.js +7 -7
- package/dist/src/config/config.schema.js.map +1 -1
- package/dist/src/context/context-document.types.d.ts +0 -8
- package/dist/src/context/context-document.types.js +9 -9
- package/dist/src/context/context-document.types.js.map +1 -1
- package/dist/src/context/context-parser.utils.d.ts +1 -9
- package/dist/src/context/context-parser.utils.js +0 -36
- package/dist/src/context/context-parser.utils.js.map +1 -1
- package/dist/src/keyword/keyword.service.js +5 -1
- package/dist/src/keyword/keyword.service.js.map +1 -1
- package/dist/src/keyword/keyword.types.d.ts +3 -7
- package/dist/src/keyword/keyword.types.js +31 -1
- package/dist/src/keyword/keyword.types.js.map +1 -1
- package/dist/src/keyword/patterns/backend.patterns.js +10 -0
- package/dist/src/keyword/patterns/backend.patterns.js.map +1 -1
- package/dist/src/keyword/patterns/context.patterns.js +1 -1
- package/dist/src/keyword/patterns/data-science.patterns.d.ts +2 -0
- package/dist/src/keyword/patterns/data-science.patterns.js +71 -0
- package/dist/src/keyword/patterns/data-science.patterns.js.map +1 -0
- package/dist/src/keyword/patterns/index.d.ts +3 -0
- package/dist/src/keyword/patterns/index.js +7 -1
- package/dist/src/keyword/patterns/index.js.map +1 -1
- package/dist/src/keyword/patterns/intent-pattern-checks.js +24 -0
- package/dist/src/keyword/patterns/intent-pattern-checks.js.map +1 -1
- package/dist/src/keyword/patterns/security.patterns.d.ts +2 -0
- package/dist/src/keyword/patterns/security.patterns.js +106 -0
- package/dist/src/keyword/patterns/security.patterns.js.map +1 -0
- package/dist/src/keyword/patterns/systems.patterns.d.ts +2 -0
- package/dist/src/keyword/patterns/systems.patterns.js +101 -0
- package/dist/src/keyword/patterns/systems.patterns.js.map +1 -0
- package/dist/src/keyword/patterns/test.patterns.d.ts +2 -0
- package/dist/src/keyword/patterns/test.patterns.js +71 -0
- package/dist/src/keyword/patterns/test.patterns.js.map +1 -0
- package/dist/src/keyword/srp-template.d.ts +0 -2
- package/dist/src/keyword/srp-template.js +0 -2
- package/dist/src/keyword/srp-template.js.map +1 -1
- package/dist/src/keyword/strategies/__tests__/strategy-test.utils.d.ts +1 -1
- package/dist/src/keyword/strategies/__tests__/strategy-test.utils.js +4 -0
- package/dist/src/keyword/strategies/__tests__/strategy-test.utils.js.map +1 -1
- package/dist/src/keyword/strategies/act-agent.strategy.js +2 -2
- package/dist/src/keyword/strategies/act-agent.strategy.js.map +1 -1
- package/dist/src/main.js +30 -9
- package/dist/src/main.js.map +1 -1
- package/dist/src/mcp/handlers/index.d.ts +1 -0
- package/dist/src/mcp/handlers/index.js +3 -1
- package/dist/src/mcp/handlers/index.js.map +1 -1
- package/dist/src/mcp/handlers/mode.handler.js +15 -1
- package/dist/src/mcp/handlers/mode.handler.js.map +1 -1
- package/dist/src/mcp/handlers/tui.handler.d.ts +8 -0
- package/dist/src/mcp/handlers/tui.handler.js +50 -0
- package/dist/src/mcp/handlers/tui.handler.js.map +1 -0
- package/dist/src/mcp/mcp.module.js +1 -0
- package/dist/src/mcp/mcp.module.js.map +1 -1
- package/dist/src/rules/rules.types.d.ts +3 -2
- package/dist/src/rules/skill.schema.d.ts +0 -5
- package/dist/src/rules/skill.schema.js +3 -3
- package/dist/src/rules/skill.schema.js.map +1 -1
- package/dist/src/shared/async.utils.d.ts +3 -2
- package/dist/src/shared/file.utils.d.ts +3 -2
- package/dist/src/shared/filesystem.interface.d.ts +0 -10
- package/dist/src/shared/filesystem.interface.js +1 -10
- package/dist/src/shared/filesystem.interface.js.map +1 -1
- package/dist/src/shared/keyword-core.d.ts +2 -1
- package/dist/src/shared/keyword-core.js +3 -1
- package/dist/src/shared/keyword-core.js.map +1 -1
- package/dist/src/shared/language.types.d.ts +2 -1
- package/dist/src/shared/lru-cache.d.ts +2 -6
- package/dist/src/shared/path.utils.d.ts +0 -1
- package/dist/src/shared/path.utils.js +0 -1
- package/dist/src/shared/path.utils.js.map +1 -1
- package/dist/src/shared/pattern-matcher.d.ts +2 -1
- package/dist/src/shared/rules-core.d.ts +3 -2
- package/dist/src/shared/security.utils.d.ts +4 -3
- package/dist/src/shared/validation.constants.d.ts +2 -3
- package/dist/src/shared/validation.constants.js +3 -3
- package/dist/src/shared/validation.constants.js.map +1 -1
- package/dist/src/shared/verbosity.types.d.ts +2 -1
- package/dist/src/shared/version.d.ts +1 -0
- package/dist/src/shared/version.js +5 -0
- package/dist/src/shared/version.js.map +1 -0
- package/dist/src/shared/version.utils.js +2 -14
- package/dist/src/shared/version.utils.js.map +1 -1
- package/dist/src/skill/skill-content.utils.d.ts +0 -1
- package/dist/src/skill/skill-content.utils.js +4 -4
- package/dist/src/skill/skill-content.utils.js.map +1 -1
- package/dist/src/tui/__perf__/memory-stability.spec.js +8 -8
- package/dist/src/tui/__perf__/memory-stability.spec.js.map +1 -1
- package/dist/src/tui/__perf__/rendering-performance.spec.js +13 -13
- package/dist/src/tui/__perf__/rendering-performance.spec.js.map +1 -1
- package/dist/src/tui/components/ActivityVisualizer.d.ts +14 -0
- package/dist/src/tui/components/ActivityVisualizer.js +21 -0
- package/dist/src/tui/components/ActivityVisualizer.js.map +1 -0
- package/dist/src/tui/components/ActivityVisualizer.spec.js +91 -0
- package/dist/src/tui/components/ActivityVisualizer.spec.js.map +1 -0
- package/dist/src/tui/components/ChecklistPanel.d.ts +10 -0
- package/dist/src/tui/components/ChecklistPanel.js +19 -0
- package/dist/src/tui/components/ChecklistPanel.js.map +1 -0
- package/dist/src/tui/components/ChecklistPanel.spec.js +45 -0
- package/dist/src/tui/components/ChecklistPanel.spec.js.map +1 -0
- package/dist/src/tui/components/ContextSection.d.ts +7 -0
- package/dist/src/tui/components/ContextSection.js +24 -0
- package/dist/src/tui/components/ContextSection.js.map +1 -0
- package/dist/src/tui/components/FlowMap.d.ts +12 -0
- package/dist/src/tui/components/FlowMap.js +55 -0
- package/dist/src/tui/components/FlowMap.js.map +1 -0
- package/dist/src/tui/components/FlowMap.spec.js +59 -0
- package/dist/src/tui/components/FlowMap.spec.js.map +1 -0
- package/dist/src/tui/components/FocusedAgentPanel.d.ts +13 -0
- package/dist/src/tui/components/FocusedAgentPanel.js +61 -0
- package/dist/src/tui/components/FocusedAgentPanel.js.map +1 -0
- package/dist/src/tui/components/FocusedAgentPanel.spec.js +109 -0
- package/dist/src/tui/components/FocusedAgentPanel.spec.js.map +1 -0
- package/dist/src/tui/components/HeaderBar.d.ts +11 -0
- package/dist/src/tui/components/HeaderBar.js +51 -0
- package/dist/src/tui/components/HeaderBar.js.map +1 -0
- package/dist/src/tui/components/HeaderBar.spec.js +78 -0
- package/dist/src/tui/components/HeaderBar.spec.js.map +1 -0
- package/dist/src/tui/components/SessionTabBar.d.ts +9 -0
- package/dist/src/tui/components/SessionTabBar.js +15 -0
- package/dist/src/tui/components/SessionTabBar.js.map +1 -0
- package/dist/src/tui/components/SessionTabBar.spec.js +59 -0
- package/dist/src/tui/components/SessionTabBar.spec.js.map +1 -0
- package/dist/src/tui/components/StageHealthBar.d.ts +12 -0
- package/dist/src/tui/components/StageHealthBar.js +69 -0
- package/dist/src/tui/components/StageHealthBar.js.map +1 -0
- package/dist/src/tui/components/StageHealthBar.spec.js +77 -0
- package/dist/src/tui/components/StageHealthBar.spec.js.map +1 -0
- package/dist/src/tui/components/activity-visualizer.pure.d.ts +4 -0
- package/dist/src/tui/components/activity-visualizer.pure.js +133 -0
- package/dist/src/tui/components/activity-visualizer.pure.js.map +1 -0
- package/dist/src/tui/components/checklist-panel.pure.d.ts +2 -0
- package/dist/src/tui/components/checklist-panel.pure.js +18 -0
- package/dist/src/tui/components/checklist-panel.pure.js.map +1 -0
- package/dist/src/tui/components/context-section.pure.d.ts +3 -0
- package/dist/src/tui/components/context-section.pure.js +38 -0
- package/dist/src/tui/components/context-section.pure.js.map +1 -0
- package/dist/src/tui/components/flow-map.pure.d.ts +26 -0
- package/dist/src/tui/components/flow-map.pure.js +354 -0
- package/dist/src/tui/components/flow-map.pure.js.map +1 -0
- package/dist/src/tui/components/focused-agent.pure.d.ts +9 -0
- package/dist/src/tui/components/focused-agent.pure.js +42 -0
- package/dist/src/tui/components/focused-agent.pure.js.map +1 -0
- package/dist/src/tui/components/grid-layout.pure.d.ts +2 -0
- package/dist/src/tui/components/grid-layout.pure.js +72 -0
- package/dist/src/tui/components/grid-layout.pure.js.map +1 -0
- package/dist/src/tui/components/header-bar.pure.d.ts +1 -0
- package/dist/src/tui/components/{header.pure.js → header-bar.pure.js} +1 -7
- package/dist/src/tui/components/header-bar.pure.js.map +1 -0
- package/dist/src/tui/components/index.d.ts +14 -15
- package/dist/src/tui/components/index.js +35 -49
- package/dist/src/tui/components/index.js.map +1 -1
- package/dist/src/tui/components/session-tab-bar.pure.d.ts +9 -0
- package/dist/src/tui/components/session-tab-bar.pure.js +45 -0
- package/dist/src/tui/components/session-tab-bar.pure.js.map +1 -0
- package/dist/src/tui/components/stage-health.pure.d.ts +5 -0
- package/dist/src/tui/components/stage-health.pure.js +63 -0
- package/dist/src/tui/components/stage-health.pure.js.map +1 -0
- package/dist/src/tui/dashboard-app.d.ts +9 -0
- package/dist/src/tui/dashboard-app.js +40 -0
- package/dist/src/tui/dashboard-app.js.map +1 -0
- package/dist/src/tui/dashboard-app.spec.js +144 -0
- package/dist/src/tui/dashboard-app.spec.js.map +1 -0
- package/dist/src/tui/dashboard-types.d.ts +94 -0
- package/dist/src/tui/dashboard-types.js +33 -0
- package/dist/src/tui/dashboard-types.js.map +1 -0
- package/dist/src/tui/eventbus-ui.integration.spec.js +133 -167
- package/dist/src/tui/eventbus-ui.integration.spec.js.map +1 -1
- package/dist/src/tui/events/event-bus.js +1 -1
- package/dist/src/tui/events/event-bus.js.map +1 -1
- package/dist/src/tui/events/index.d.ts +1 -1
- package/dist/src/tui/events/index.js.map +1 -1
- package/dist/src/tui/events/parse-agent.js +1 -26
- package/dist/src/tui/events/parse-agent.js.map +1 -1
- package/dist/src/tui/events/response-event-extractor.d.ts +16 -1
- package/dist/src/tui/events/response-event-extractor.js +181 -2
- package/dist/src/tui/events/response-event-extractor.js.map +1 -1
- package/dist/src/tui/events/tui-interceptor.d.ts +3 -0
- package/dist/src/tui/events/tui-interceptor.js +67 -7
- package/dist/src/tui/events/tui-interceptor.js.map +1 -1
- package/dist/src/tui/events/types.d.ts +46 -2
- package/dist/src/tui/events/types.js +6 -0
- package/dist/src/tui/events/types.js.map +1 -1
- package/dist/src/tui/hooks/index.d.ts +7 -4
- package/dist/src/tui/hooks/index.js +12 -7
- package/dist/src/tui/hooks/index.js.map +1 -1
- package/dist/src/tui/hooks/use-clock.js +3 -3
- package/dist/src/tui/hooks/use-clock.js.map +1 -1
- package/dist/src/tui/hooks/use-dashboard-state.d.ts +52 -0
- package/dist/src/tui/hooks/use-dashboard-state.js +299 -0
- package/dist/src/tui/hooks/use-dashboard-state.js.map +1 -0
- package/dist/src/tui/hooks/use-focus-agent.d.ts +2 -0
- package/dist/src/tui/hooks/use-focus-agent.js +26 -0
- package/dist/src/tui/hooks/use-focus-agent.js.map +1 -0
- package/dist/src/tui/hooks/use-multi-session-state.d.ts +16 -0
- package/dist/src/tui/hooks/use-multi-session-state.js +163 -0
- package/dist/src/tui/hooks/use-multi-session-state.js.map +1 -0
- package/dist/src/tui/hooks/use-terminal-size.d.ts +9 -0
- package/dist/src/tui/hooks/use-terminal-size.js +31 -0
- package/dist/src/tui/hooks/use-terminal-size.js.map +1 -0
- package/dist/src/tui/index.d.ts +12 -4
- package/dist/src/tui/index.js +18 -7
- package/dist/src/tui/index.js.map +1 -1
- package/dist/src/tui/ipc/index.d.ts +5 -2
- package/dist/src/tui/ipc/index.js +5 -5
- package/dist/src/tui/ipc/index.js.map +1 -1
- package/dist/src/tui/ipc/ipc-state-cache.d.ts +1 -0
- package/dist/src/tui/ipc/ipc-state-cache.js +7 -0
- package/dist/src/tui/ipc/ipc-state-cache.js.map +1 -1
- package/dist/src/tui/ipc/multi-session-manager.d.ts +39 -0
- package/dist/src/tui/ipc/multi-session-manager.js +143 -0
- package/dist/src/tui/ipc/multi-session-manager.js.map +1 -0
- package/dist/src/tui/ipc/tui-auto-launcher.d.ts +22 -0
- package/dist/src/tui/ipc/tui-auto-launcher.js +113 -0
- package/dist/src/tui/ipc/tui-auto-launcher.js.map +1 -0
- package/dist/src/tui/multi-session-app.d.ts +6 -0
- package/dist/src/tui/multi-session-app.js +60 -0
- package/dist/src/tui/multi-session-app.js.map +1 -0
- package/dist/src/tui/multi-session-app.spec.js +95 -0
- package/dist/src/tui/multi-session-app.spec.js.map +1 -0
- package/dist/src/tui/transport-tui.integration.spec.js +15 -15
- package/dist/src/tui/transport-tui.integration.spec.js.map +1 -1
- package/dist/src/tui/tui-config.d.ts +3 -2
- package/dist/src/tui/types.d.ts +1 -1
- package/dist/src/tui/types.js +3 -0
- package/dist/src/tui/types.js.map +1 -1
- package/dist/src/tui/utils/color-buffer.d.ts +31 -0
- package/dist/src/tui/utils/color-buffer.js +86 -0
- package/dist/src/tui/utils/color-buffer.js.map +1 -0
- package/dist/src/tui/utils/colors.js.map +1 -1
- package/dist/src/tui/utils/edge-router.d.ts +9 -0
- package/dist/src/tui/utils/edge-router.js +65 -0
- package/dist/src/tui/utils/edge-router.js.map +1 -0
- package/dist/src/tui/utils/index.d.ts +3 -1
- package/dist/src/tui/utils/index.js +21 -4
- package/dist/src/tui/utils/index.js.map +1 -1
- package/dist/src/tui/utils/theme.d.ts +50 -0
- package/dist/src/tui/utils/theme.js +128 -0
- package/dist/src/tui/utils/theme.js.map +1 -0
- package/dist/src/tui-bundle.mjs +6037 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/dist/src/shared/token-counter.d.ts +0 -13
- package/dist/src/shared/token-counter.js +0 -41
- package/dist/src/shared/token-counter.js.map +0 -1
- package/dist/src/tui/app.d.ts +0 -6
- package/dist/src/tui/app.js +0 -20
- package/dist/src/tui/app.js.map +0 -1
- package/dist/src/tui/app.spec.js +0 -226
- package/dist/src/tui/app.spec.js.map +0 -1
- package/dist/src/tui/components/AgentCard.d.ts +0 -6
- package/dist/src/tui/components/AgentCard.js +0 -18
- package/dist/src/tui/components/AgentCard.js.map +0 -1
- package/dist/src/tui/components/AgentCard.spec.js +0 -118
- package/dist/src/tui/components/AgentCard.spec.js.map +0 -1
- package/dist/src/tui/components/AgentGrid.d.ts +0 -7
- package/dist/src/tui/components/AgentGrid.js +0 -20
- package/dist/src/tui/components/AgentGrid.js.map +0 -1
- package/dist/src/tui/components/AgentGrid.spec.js +0 -52
- package/dist/src/tui/components/AgentGrid.spec.js.map +0 -1
- package/dist/src/tui/components/AgentTree.d.ts +0 -7
- package/dist/src/tui/components/AgentTree.js +0 -24
- package/dist/src/tui/components/AgentTree.js.map +0 -1
- package/dist/src/tui/components/AgentTree.spec.js +0 -146
- package/dist/src/tui/components/AgentTree.spec.js.map +0 -1
- package/dist/src/tui/components/CategoryRow.d.ts +0 -9
- package/dist/src/tui/components/CategoryRow.js +0 -15
- package/dist/src/tui/components/CategoryRow.js.map +0 -1
- package/dist/src/tui/components/CategoryRow.spec.js +0 -58
- package/dist/src/tui/components/CategoryRow.spec.js.map +0 -1
- package/dist/src/tui/components/Header.d.ts +0 -6
- package/dist/src/tui/components/Header.js +0 -18
- package/dist/src/tui/components/Header.js.map +0 -1
- package/dist/src/tui/components/Header.spec.js +0 -38
- package/dist/src/tui/components/Header.spec.js.map +0 -1
- package/dist/src/tui/components/ProgressBar.d.ts +0 -7
- package/dist/src/tui/components/ProgressBar.js +0 -12
- package/dist/src/tui/components/ProgressBar.js.map +0 -1
- package/dist/src/tui/components/ProgressBar.spec.js +0 -37
- package/dist/src/tui/components/ProgressBar.spec.js.map +0 -1
- package/dist/src/tui/components/StatusBar.d.ts +0 -8
- package/dist/src/tui/components/StatusBar.js +0 -29
- package/dist/src/tui/components/StatusBar.js.map +0 -1
- package/dist/src/tui/components/StatusBar.spec.js +0 -93
- package/dist/src/tui/components/StatusBar.spec.js.map +0 -1
- package/dist/src/tui/components/agent-card.pure.d.ts +0 -7
- package/dist/src/tui/components/agent-card.pure.js +0 -65
- package/dist/src/tui/components/agent-card.pure.js.map +0 -1
- package/dist/src/tui/components/agent-grid.pure.d.ts +0 -3
- package/dist/src/tui/components/agent-grid.pure.js +0 -35
- package/dist/src/tui/components/agent-grid.pure.js.map +0 -1
- package/dist/src/tui/components/agent-mini-card.pure.d.ts +0 -2
- package/dist/src/tui/components/agent-mini-card.pure.js +0 -17
- package/dist/src/tui/components/agent-mini-card.pure.js.map +0 -1
- package/dist/src/tui/components/agent-tree.pure.d.ts +0 -18
- package/dist/src/tui/components/agent-tree.pure.js +0 -41
- package/dist/src/tui/components/agent-tree.pure.js.map +0 -1
- package/dist/src/tui/components/category-row.pure.d.ts +0 -3
- package/dist/src/tui/components/category-row.pure.js +0 -26
- package/dist/src/tui/components/category-row.pure.js.map +0 -1
- package/dist/src/tui/components/header.pure.d.ts +0 -4
- package/dist/src/tui/components/header.pure.js.map +0 -1
- package/dist/src/tui/components/progress-bar.pure.d.ts +0 -2
- package/dist/src/tui/components/progress-bar.pure.js +0 -21
- package/dist/src/tui/components/progress-bar.pure.js.map +0 -1
- package/dist/src/tui/components/status-bar.pure.d.ts +0 -15
- package/dist/src/tui/components/status-bar.pure.js +0 -83
- package/dist/src/tui/components/status-bar.pure.js.map +0 -1
- package/dist/src/tui/hooks/use-agent-state.d.ts +0 -7
- package/dist/src/tui/hooks/use-agent-state.js +0 -13
- package/dist/src/tui/hooks/use-agent-state.js.map +0 -1
- package/dist/src/tui/hooks/use-agent-state.spec.js +0 -167
- package/dist/src/tui/hooks/use-agent-state.spec.js.map +0 -1
- package/dist/src/tui/hooks/use-event-bus.d.ts +0 -34
- package/dist/src/tui/hooks/use-event-bus.js +0 -91
- package/dist/src/tui/hooks/use-event-bus.js.map +0 -1
- package/dist/src/tui/hooks/use-event-bus.spec.d.ts +0 -1
- package/dist/src/tui/hooks/use-event-bus.spec.js +0 -362
- package/dist/src/tui/hooks/use-event-bus.spec.js.map +0 -1
- package/dist/src/tui/utils/constants.d.ts +0 -3
- package/dist/src/tui/utils/constants.js +0 -15
- package/dist/src/tui/utils/constants.js.map +0 -1
- /package/dist/src/tui/{app.spec.d.ts → components/ActivityVisualizer.spec.d.ts} +0 -0
- /package/dist/src/tui/components/{AgentCard.spec.d.ts → ChecklistPanel.spec.d.ts} +0 -0
- /package/dist/src/tui/components/{AgentGrid.spec.d.ts → FlowMap.spec.d.ts} +0 -0
- /package/dist/src/tui/components/{AgentTree.spec.d.ts → FocusedAgentPanel.spec.d.ts} +0 -0
- /package/dist/src/tui/components/{CategoryRow.spec.d.ts → HeaderBar.spec.d.ts} +0 -0
- /package/dist/src/tui/components/{Header.spec.d.ts → SessionTabBar.spec.d.ts} +0 -0
- /package/dist/src/tui/components/{ProgressBar.spec.d.ts → StageHealthBar.spec.d.ts} +0 -0
- /package/dist/src/tui/{components/StatusBar.spec.d.ts → dashboard-app.spec.d.ts} +0 -0
- /package/dist/src/tui/{hooks/use-agent-state.spec.d.ts → multi-session-app.spec.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface Point {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
}
|
|
5
|
+
export interface PathSegment extends Point {
|
|
6
|
+
char: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function computeEdgePath(from: Point, to: Point): PathSegment[];
|
|
9
|
+
export declare function computeLabelPosition(path: PathSegment[], label: string): Point | null;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.computeEdgePath = computeEdgePath;
|
|
4
|
+
exports.computeLabelPosition = computeLabelPosition;
|
|
5
|
+
function computeEdgePath(from, to) {
|
|
6
|
+
const path = [];
|
|
7
|
+
const midX = Math.floor((from.x + to.x) / 2);
|
|
8
|
+
if (from.y === to.y) {
|
|
9
|
+
const dir = to.x > from.x ? 1 : -1;
|
|
10
|
+
for (let x = from.x; x !== to.x; x += dir) {
|
|
11
|
+
path.push({ x, y: from.y, char: '─' });
|
|
12
|
+
}
|
|
13
|
+
path.push({ x: to.x, y: to.y, char: dir > 0 ? '▸' : '◂' });
|
|
14
|
+
}
|
|
15
|
+
else if (from.x === to.x) {
|
|
16
|
+
const dir = to.y > from.y ? 1 : -1;
|
|
17
|
+
for (let y = from.y; y !== to.y; y += dir) {
|
|
18
|
+
path.push({ x: from.x, y, char: '│' });
|
|
19
|
+
}
|
|
20
|
+
path.push({ x: to.x, y: to.y, char: dir > 0 ? '▾' : '▴' });
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
const dirX = midX > from.x ? 1 : midX < from.x ? -1 : 0;
|
|
24
|
+
if (dirX !== 0) {
|
|
25
|
+
for (let x = from.x; x !== midX; x += dirX) {
|
|
26
|
+
path.push({ x, y: from.y, char: '─' });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const dirY = to.y > from.y ? 1 : -1;
|
|
30
|
+
path.push({
|
|
31
|
+
x: midX,
|
|
32
|
+
y: from.y,
|
|
33
|
+
char: dirX >= 0 ? (dirY > 0 ? '╮' : '╯') : dirY > 0 ? '╭' : '╰',
|
|
34
|
+
});
|
|
35
|
+
for (let y = from.y + dirY; y !== to.y; y += dirY) {
|
|
36
|
+
path.push({ x: midX, y, char: '│' });
|
|
37
|
+
}
|
|
38
|
+
const dirX2 = to.x > midX ? 1 : to.x < midX ? -1 : 0;
|
|
39
|
+
path.push({
|
|
40
|
+
x: midX,
|
|
41
|
+
y: to.y,
|
|
42
|
+
char: dirY > 0 ? (dirX2 >= 0 ? '╰' : '╯') : dirX2 >= 0 ? '╭' : '╮',
|
|
43
|
+
});
|
|
44
|
+
if (dirX2 !== 0) {
|
|
45
|
+
for (let x = midX + dirX2; x !== to.x; x += dirX2) {
|
|
46
|
+
path.push({ x, y: to.y, char: '─' });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (to.x !== midX) {
|
|
50
|
+
path.push({ x: to.x, y: to.y, char: dirX2 >= 0 ? '▸' : '◂' });
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
path[path.length - 1].char = dirY > 0 ? '▾' : '▴';
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return path;
|
|
57
|
+
}
|
|
58
|
+
function computeLabelPosition(path, label) {
|
|
59
|
+
const hSegments = path.filter(p => p.char === '─');
|
|
60
|
+
if (hSegments.length < label.length + 2)
|
|
61
|
+
return null;
|
|
62
|
+
const startIdx = Math.floor((hSegments.length - label.length) / 2);
|
|
63
|
+
return { x: hSegments[startIdx].x, y: hSegments[startIdx].y };
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=edge-router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge-router.js","sourceRoot":"","sources":["../../../../src/tui/utils/edge-router.ts"],"names":[],"mappings":";;AAqBA,0CA4DC;AAKD,oDAKC;AAtED,SAAgB,eAAe,CAAC,IAAW,EAAE,EAAS;IACpD,MAAM,IAAI,GAAkB,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAE7C,IAAI,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC;QAEpB,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACnC,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC;YAC1C,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;QACzC,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,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,CAAC,EAAE,CAAC;AAChE,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { isNerdFontEnabled, getAgentIcon, AGENT_ICONS, type AgentIconEntry } from './icons';
|
|
2
2
|
export { STATUS_COLORS, getStatusColor, getColorDepth, type ColorDepth } from './colors';
|
|
3
|
-
export {
|
|
3
|
+
export { getModeColor } from './theme';
|
|
4
4
|
export { estimateDisplayWidth, truncateToDisplayWidth, padEndDisplayWidth } from './display-width';
|
|
5
|
+
export { ColorBuffer, groupByStyle, type CellStyle, type ColorCell, type StyledSegment, } from './color-buffer';
|
|
6
|
+
export { NEON_COLORS, STATUS_STYLES, STATUS_ICONS, MODE_LABEL_STYLES, STAGE_LABEL_STYLES, EDGE_STYLES, SECTION_DIVIDER_STYLE, LEGEND_STYLE, PROGRESS_BAR_STYLES, GLOBAL_STATE_ICONS, GLOBAL_STATE_COLORS, getStatusStyle, getModeLabelStyle, getStageLabelStyle, } from './theme';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getStageLabelStyle = exports.getModeLabelStyle = exports.getStatusStyle = exports.GLOBAL_STATE_COLORS = exports.GLOBAL_STATE_ICONS = exports.PROGRESS_BAR_STYLES = exports.LEGEND_STYLE = exports.SECTION_DIVIDER_STYLE = exports.EDGE_STYLES = exports.STAGE_LABEL_STYLES = exports.MODE_LABEL_STYLES = exports.STATUS_ICONS = exports.STATUS_STYLES = exports.NEON_COLORS = exports.groupByStyle = exports.ColorBuffer = exports.padEndDisplayWidth = exports.truncateToDisplayWidth = exports.estimateDisplayWidth = exports.getModeColor = exports.getColorDepth = exports.getStatusColor = exports.STATUS_COLORS = exports.AGENT_ICONS = exports.getAgentIcon = exports.isNerdFontEnabled = void 0;
|
|
4
4
|
var icons_1 = require("./icons");
|
|
5
5
|
Object.defineProperty(exports, "isNerdFontEnabled", { enumerable: true, get: function () { return icons_1.isNerdFontEnabled; } });
|
|
6
6
|
Object.defineProperty(exports, "getAgentIcon", { enumerable: true, get: function () { return icons_1.getAgentIcon; } });
|
|
@@ -9,11 +9,28 @@ var colors_1 = require("./colors");
|
|
|
9
9
|
Object.defineProperty(exports, "STATUS_COLORS", { enumerable: true, get: function () { return colors_1.STATUS_COLORS; } });
|
|
10
10
|
Object.defineProperty(exports, "getStatusColor", { enumerable: true, get: function () { return colors_1.getStatusColor; } });
|
|
11
11
|
Object.defineProperty(exports, "getColorDepth", { enumerable: true, get: function () { return colors_1.getColorDepth; } });
|
|
12
|
-
var
|
|
13
|
-
Object.defineProperty(exports, "
|
|
14
|
-
Object.defineProperty(exports, "getModeColor", { enumerable: true, get: function () { return constants_1.getModeColor; } });
|
|
12
|
+
var theme_1 = require("./theme");
|
|
13
|
+
Object.defineProperty(exports, "getModeColor", { enumerable: true, get: function () { return theme_1.getModeColor; } });
|
|
15
14
|
var display_width_1 = require("./display-width");
|
|
16
15
|
Object.defineProperty(exports, "estimateDisplayWidth", { enumerable: true, get: function () { return display_width_1.estimateDisplayWidth; } });
|
|
17
16
|
Object.defineProperty(exports, "truncateToDisplayWidth", { enumerable: true, get: function () { return display_width_1.truncateToDisplayWidth; } });
|
|
18
17
|
Object.defineProperty(exports, "padEndDisplayWidth", { enumerable: true, get: function () { return display_width_1.padEndDisplayWidth; } });
|
|
18
|
+
var color_buffer_1 = require("./color-buffer");
|
|
19
|
+
Object.defineProperty(exports, "ColorBuffer", { enumerable: true, get: function () { return color_buffer_1.ColorBuffer; } });
|
|
20
|
+
Object.defineProperty(exports, "groupByStyle", { enumerable: true, get: function () { return color_buffer_1.groupByStyle; } });
|
|
21
|
+
var theme_2 = require("./theme");
|
|
22
|
+
Object.defineProperty(exports, "NEON_COLORS", { enumerable: true, get: function () { return theme_2.NEON_COLORS; } });
|
|
23
|
+
Object.defineProperty(exports, "STATUS_STYLES", { enumerable: true, get: function () { return theme_2.STATUS_STYLES; } });
|
|
24
|
+
Object.defineProperty(exports, "STATUS_ICONS", { enumerable: true, get: function () { return theme_2.STATUS_ICONS; } });
|
|
25
|
+
Object.defineProperty(exports, "MODE_LABEL_STYLES", { enumerable: true, get: function () { return theme_2.MODE_LABEL_STYLES; } });
|
|
26
|
+
Object.defineProperty(exports, "STAGE_LABEL_STYLES", { enumerable: true, get: function () { return theme_2.STAGE_LABEL_STYLES; } });
|
|
27
|
+
Object.defineProperty(exports, "EDGE_STYLES", { enumerable: true, get: function () { return theme_2.EDGE_STYLES; } });
|
|
28
|
+
Object.defineProperty(exports, "SECTION_DIVIDER_STYLE", { enumerable: true, get: function () { return theme_2.SECTION_DIVIDER_STYLE; } });
|
|
29
|
+
Object.defineProperty(exports, "LEGEND_STYLE", { enumerable: true, get: function () { return theme_2.LEGEND_STYLE; } });
|
|
30
|
+
Object.defineProperty(exports, "PROGRESS_BAR_STYLES", { enumerable: true, get: function () { return theme_2.PROGRESS_BAR_STYLES; } });
|
|
31
|
+
Object.defineProperty(exports, "GLOBAL_STATE_ICONS", { enumerable: true, get: function () { return theme_2.GLOBAL_STATE_ICONS; } });
|
|
32
|
+
Object.defineProperty(exports, "GLOBAL_STATE_COLORS", { enumerable: true, get: function () { return theme_2.GLOBAL_STATE_COLORS; } });
|
|
33
|
+
Object.defineProperty(exports, "getStatusStyle", { enumerable: true, get: function () { return theme_2.getStatusStyle; } });
|
|
34
|
+
Object.defineProperty(exports, "getModeLabelStyle", { enumerable: true, get: function () { return theme_2.getModeLabelStyle; } });
|
|
35
|
+
Object.defineProperty(exports, "getStageLabelStyle", { enumerable: true, get: function () { return theme_2.getStageLabelStyle; } });
|
|
19
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tui/utils/index.ts"],"names":[],"mappings":";;;AAAA,iCAA4F;AAAnF,0GAAA,iBAAiB,OAAA;AAAE,qGAAA,YAAY,OAAA;AAAE,oGAAA,WAAW,OAAA;AAErD,mCAAyF;AAAhF,uGAAA,aAAa,OAAA;AAAE,wGAAA,cAAc,OAAA;AAAE,uGAAA,aAAa,OAAA;AAErD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tui/utils/index.ts"],"names":[],"mappings":";;;AAAA,iCAA4F;AAAnF,0GAAA,iBAAiB,OAAA;AAAE,qGAAA,YAAY,OAAA;AAAE,oGAAA,WAAW,OAAA;AAErD,mCAAyF;AAAhF,uGAAA,aAAa,OAAA;AAAE,wGAAA,cAAc,OAAA;AAAE,uGAAA,aAAa,OAAA;AAErD,iCAAuC;AAA9B,qGAAA,YAAY,OAAA;AAErB,iDAAmG;AAA1F,qHAAA,oBAAoB,OAAA;AAAE,uHAAA,sBAAsB,OAAA;AAAE,mHAAA,kBAAkB,OAAA;AAEzE,+CAMwB;AALtB,2GAAA,WAAW,OAAA;AACX,4GAAA,YAAY,OAAA;AAMd,iCAeiB;AAdf,oGAAA,WAAW,OAAA;AACX,sGAAA,aAAa,OAAA;AACb,qGAAA,YAAY,OAAA;AACZ,0GAAA,iBAAiB,OAAA;AACjB,2GAAA,kBAAkB,OAAA;AAClB,oGAAA,WAAW,OAAA;AACX,8GAAA,qBAAqB,OAAA;AACrB,qGAAA,YAAY,OAAA;AACZ,4GAAA,mBAAmB,OAAA;AACnB,2GAAA,kBAAkB,OAAA;AAClB,4GAAA,mBAAmB,OAAA;AACnB,uGAAA,cAAc,OAAA;AACd,0GAAA,iBAAiB,OAAA;AACjB,2GAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { DashboardNodeStatus, GlobalRunState } from '../dashboard-types';
|
|
2
|
+
import type { Mode } from '../types';
|
|
3
|
+
import type { CellStyle } from './color-buffer';
|
|
4
|
+
export type { CellStyle };
|
|
5
|
+
export declare const NEON_COLORS: Readonly<{
|
|
6
|
+
readonly primary: "cyan";
|
|
7
|
+
readonly secondary: "magenta";
|
|
8
|
+
readonly running: "green";
|
|
9
|
+
readonly warning: "yellow";
|
|
10
|
+
readonly error: "red";
|
|
11
|
+
readonly done: "green";
|
|
12
|
+
readonly inactive: "gray";
|
|
13
|
+
readonly content: "white";
|
|
14
|
+
}>;
|
|
15
|
+
export declare const BORDER_COLORS: Readonly<{
|
|
16
|
+
readonly panel: "cyan";
|
|
17
|
+
}>;
|
|
18
|
+
export declare const STATUS_STYLES: Readonly<Record<DashboardNodeStatus, CellStyle>>;
|
|
19
|
+
export declare const MODE_LABEL_STYLES: Readonly<Record<Mode, CellStyle>>;
|
|
20
|
+
export declare const STAGE_LABEL_STYLES: Readonly<Record<Mode, CellStyle>>;
|
|
21
|
+
export declare const EDGE_STYLES: Readonly<{
|
|
22
|
+
path: CellStyle;
|
|
23
|
+
arrow: CellStyle;
|
|
24
|
+
label: CellStyle;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const SECTION_DIVIDER_STYLE: CellStyle;
|
|
27
|
+
export declare const LEGEND_STYLE: CellStyle;
|
|
28
|
+
export declare const PROGRESS_BAR_STYLES: Readonly<{
|
|
29
|
+
filled: CellStyle;
|
|
30
|
+
empty: CellStyle;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const GLOW_STYLE: CellStyle;
|
|
33
|
+
export declare const PIPELINE_STYLES: Readonly<{
|
|
34
|
+
arrow: CellStyle;
|
|
35
|
+
connector: CellStyle;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const PROGRESS_BAR_CHARS: Readonly<{
|
|
38
|
+
filled: "█";
|
|
39
|
+
empty: "░";
|
|
40
|
+
}>;
|
|
41
|
+
export declare const STATUS_ICONS: Readonly<Record<DashboardNodeStatus, string>>;
|
|
42
|
+
export declare function getStatusStyle(status: DashboardNodeStatus): CellStyle;
|
|
43
|
+
export declare function getModeLabelStyle(mode: Mode, active?: boolean): CellStyle;
|
|
44
|
+
export declare function getStageLabelStyle(stage: Mode): CellStyle;
|
|
45
|
+
export declare const GLOBAL_STATE_ICONS: Readonly<Record<GlobalRunState, string>>;
|
|
46
|
+
export declare const GLOBAL_STATE_COLORS: Readonly<Record<GlobalRunState, string>>;
|
|
47
|
+
export declare function getNodeStatusColor(status: DashboardNodeStatus): string;
|
|
48
|
+
export declare function getModeColor(mode: Mode): string;
|
|
49
|
+
export declare const AGENT_AVATARS: Readonly<Record<string, string>>;
|
|
50
|
+
export declare function getAgentAvatar(agentName: string): string;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENT_AVATARS = exports.GLOBAL_STATE_COLORS = exports.GLOBAL_STATE_ICONS = exports.STATUS_ICONS = exports.PROGRESS_BAR_CHARS = exports.PIPELINE_STYLES = exports.GLOW_STYLE = exports.PROGRESS_BAR_STYLES = exports.LEGEND_STYLE = exports.SECTION_DIVIDER_STYLE = exports.EDGE_STYLES = exports.STAGE_LABEL_STYLES = exports.MODE_LABEL_STYLES = exports.STATUS_STYLES = exports.BORDER_COLORS = exports.NEON_COLORS = void 0;
|
|
4
|
+
exports.getStatusStyle = getStatusStyle;
|
|
5
|
+
exports.getModeLabelStyle = getModeLabelStyle;
|
|
6
|
+
exports.getStageLabelStyle = getStageLabelStyle;
|
|
7
|
+
exports.getNodeStatusColor = getNodeStatusColor;
|
|
8
|
+
exports.getModeColor = getModeColor;
|
|
9
|
+
exports.getAgentAvatar = getAgentAvatar;
|
|
10
|
+
exports.NEON_COLORS = Object.freeze({
|
|
11
|
+
primary: 'cyan',
|
|
12
|
+
secondary: 'magenta',
|
|
13
|
+
running: 'green',
|
|
14
|
+
warning: 'yellow',
|
|
15
|
+
error: 'red',
|
|
16
|
+
done: 'green',
|
|
17
|
+
inactive: 'gray',
|
|
18
|
+
content: 'white',
|
|
19
|
+
});
|
|
20
|
+
exports.BORDER_COLORS = Object.freeze({
|
|
21
|
+
panel: exports.NEON_COLORS.primary,
|
|
22
|
+
});
|
|
23
|
+
exports.STATUS_STYLES = Object.freeze({
|
|
24
|
+
running: { fg: 'green', bold: true },
|
|
25
|
+
idle: { fg: 'gray', dim: true },
|
|
26
|
+
blocked: { fg: 'yellow' },
|
|
27
|
+
error: { fg: 'red', bold: true },
|
|
28
|
+
done: { fg: 'green' },
|
|
29
|
+
});
|
|
30
|
+
exports.MODE_LABEL_STYLES = Object.freeze({
|
|
31
|
+
PLAN: { fg: 'cyan', bold: true },
|
|
32
|
+
ACT: { fg: 'magenta', bold: true },
|
|
33
|
+
EVAL: { fg: 'yellow', bold: true },
|
|
34
|
+
AUTO: { fg: 'green', bold: true },
|
|
35
|
+
});
|
|
36
|
+
exports.STAGE_LABEL_STYLES = exports.MODE_LABEL_STYLES;
|
|
37
|
+
exports.EDGE_STYLES = Object.freeze({
|
|
38
|
+
path: { fg: 'cyan', dim: true },
|
|
39
|
+
arrow: { fg: 'magenta', bold: true },
|
|
40
|
+
label: { fg: 'magenta' },
|
|
41
|
+
});
|
|
42
|
+
exports.SECTION_DIVIDER_STYLE = Object.freeze({ fg: 'magenta' });
|
|
43
|
+
exports.LEGEND_STYLE = Object.freeze({ fg: 'gray', dim: true });
|
|
44
|
+
exports.PROGRESS_BAR_STYLES = Object.freeze({
|
|
45
|
+
filled: { fg: 'magenta' },
|
|
46
|
+
empty: { fg: 'gray', dim: true },
|
|
47
|
+
});
|
|
48
|
+
exports.GLOW_STYLE = Object.freeze({ fg: 'green', dim: true });
|
|
49
|
+
exports.PIPELINE_STYLES = Object.freeze({
|
|
50
|
+
arrow: { fg: 'magenta', bold: true },
|
|
51
|
+
connector: { fg: 'gray', dim: true },
|
|
52
|
+
});
|
|
53
|
+
exports.PROGRESS_BAR_CHARS = Object.freeze({
|
|
54
|
+
filled: '█',
|
|
55
|
+
empty: '░',
|
|
56
|
+
});
|
|
57
|
+
exports.STATUS_ICONS = Object.freeze({
|
|
58
|
+
running: '●',
|
|
59
|
+
idle: '○',
|
|
60
|
+
blocked: '⏸',
|
|
61
|
+
error: '!',
|
|
62
|
+
done: '✓',
|
|
63
|
+
});
|
|
64
|
+
function getStatusStyle(status) {
|
|
65
|
+
return exports.STATUS_STYLES[status] ?? exports.STATUS_STYLES.idle;
|
|
66
|
+
}
|
|
67
|
+
function getModeLabelStyle(mode, active) {
|
|
68
|
+
const base = exports.MODE_LABEL_STYLES[mode] ?? exports.MODE_LABEL_STYLES.PLAN;
|
|
69
|
+
if (active === false) {
|
|
70
|
+
return { fg: base.fg, dim: true };
|
|
71
|
+
}
|
|
72
|
+
return base;
|
|
73
|
+
}
|
|
74
|
+
function getStageLabelStyle(stage) {
|
|
75
|
+
return exports.STAGE_LABEL_STYLES[stage] ?? exports.STAGE_LABEL_STYLES.PLAN;
|
|
76
|
+
}
|
|
77
|
+
exports.GLOBAL_STATE_ICONS = Object.freeze({
|
|
78
|
+
RUNNING: '●',
|
|
79
|
+
IDLE: '○',
|
|
80
|
+
ERROR: '!',
|
|
81
|
+
});
|
|
82
|
+
exports.GLOBAL_STATE_COLORS = Object.freeze({
|
|
83
|
+
RUNNING: 'green',
|
|
84
|
+
IDLE: 'gray',
|
|
85
|
+
ERROR: 'red',
|
|
86
|
+
});
|
|
87
|
+
function getNodeStatusColor(status) {
|
|
88
|
+
return exports.STATUS_STYLES[status]?.fg ?? 'gray';
|
|
89
|
+
}
|
|
90
|
+
function getModeColor(mode) {
|
|
91
|
+
return exports.MODE_LABEL_STYLES[mode]?.fg ?? 'cyan';
|
|
92
|
+
}
|
|
93
|
+
exports.AGENT_AVATARS = Object.freeze({
|
|
94
|
+
'solution-architect': '🏛️',
|
|
95
|
+
architect: '🏗️',
|
|
96
|
+
frontend: '🎨',
|
|
97
|
+
backend: '⚙️',
|
|
98
|
+
security: '🔒',
|
|
99
|
+
test: '🧪',
|
|
100
|
+
performance: '⚡',
|
|
101
|
+
'code-quality': '📏',
|
|
102
|
+
devops: '🚀',
|
|
103
|
+
documentation: '📝',
|
|
104
|
+
accessibility: '♿',
|
|
105
|
+
seo: '🔍',
|
|
106
|
+
observability: '📊',
|
|
107
|
+
migration: '🔄',
|
|
108
|
+
integration: '🔗',
|
|
109
|
+
'event-architecture': '📨',
|
|
110
|
+
mobile: '📱',
|
|
111
|
+
data: '🗄️',
|
|
112
|
+
'ui-ux': '🎯',
|
|
113
|
+
i18n: '🌐',
|
|
114
|
+
'plan-mode': '📋',
|
|
115
|
+
'act-mode': '🔨',
|
|
116
|
+
'eval-mode': '🔬',
|
|
117
|
+
'auto-mode': '🤖',
|
|
118
|
+
});
|
|
119
|
+
function getAgentAvatar(agentName) {
|
|
120
|
+
const lower = agentName.toLowerCase();
|
|
121
|
+
const sortedEntries = Object.entries(exports.AGENT_AVATARS).sort(([a], [b]) => b.length - a.length);
|
|
122
|
+
for (const [keyword, avatar] of sortedEntries) {
|
|
123
|
+
if (lower.includes(keyword))
|
|
124
|
+
return avatar;
|
|
125
|
+
}
|
|
126
|
+
return '🤖';
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../../src/tui/utils/theme.ts"],"names":[],"mappings":";;;AA8HA,wCAEC;AAKD,8CAMC;AAKD,gDAEC;AA0BD,gDAEC;AAKD,oCAEC;AA+BD,wCAOC;AAzMY,QAAA,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,OAAO;CACR,CAAC,CAAC;AAMC,QAAA,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,mBAAW,CAAC,OAAO;CAClB,CAAC,CAAC;AAKC,QAAA,aAAa,GAAqD,MAAM,CAAC,MAAM,CAAC;IAC3F,OAAO,EAAE,EAAE,EAAE,EAAE,OAAO,E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