@windagency/valora 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -33
- package/data/agents/registry.json +3 -0
- package/data/commands/create-backlog.md +20 -8
- package/data/prompts/07_documentation/generate-backlog-artifacts.md +197 -0
- package/dist/cleanup/coordinator.d.ts.map +1 -1
- package/dist/cleanup/coordinator.js +1 -1
- package/dist/cleanup/coordinator.js.map +1 -1
- package/dist/cli/autocomplete.d.ts.map +1 -1
- package/dist/cli/autocomplete.js +2 -2
- package/dist/cli/autocomplete.js.map +1 -1
- package/dist/cli/command-executor.d.ts +1 -1
- package/dist/cli/command-executor.d.ts.map +1 -1
- package/dist/cli/command-executor.js +23 -6
- package/dist/cli/command-executor.js.map +1 -1
- package/dist/cli/command-templates.d.ts.map +1 -1
- package/dist/cli/command-templates.js +1 -1
- package/dist/cli/command-templates.js.map +1 -1
- package/dist/cli/command-validator.d.ts.map +1 -1
- package/dist/cli/command-validator.js +1 -1
- package/dist/cli/command-validator.js.map +1 -1
- package/dist/cli/commands/dashboard.d.ts.map +1 -1
- package/dist/cli/commands/dashboard.js +3 -3
- package/dist/cli/commands/dashboard.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/explore.d.ts.map +1 -1
- package/dist/cli/commands/explore.js +127 -28
- package/dist/cli/commands/explore.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +1 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/execution-coordinator.d.ts +20 -0
- package/dist/cli/execution-coordinator.d.ts.map +1 -1
- package/dist/cli/execution-coordinator.js +99 -14
- package/dist/cli/execution-coordinator.js.map +1 -1
- package/dist/cli/first-run-setup.d.ts.map +1 -1
- package/dist/cli/first-run-setup.js +2 -2
- package/dist/cli/first-run-setup.js.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/session-manager.d.ts +6 -0
- package/dist/cli/session-manager.d.ts.map +1 -1
- package/dist/cli/session-manager.js +31 -0
- package/dist/cli/session-manager.js.map +1 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/di/container.d.ts.map +1 -1
- package/dist/di/container.js +4 -1
- package/dist/di/container.js.map +1 -1
- package/dist/executor/agent-loader.d.ts.map +1 -1
- package/dist/executor/agent-loader.js +1 -1
- package/dist/executor/agent-loader.js.map +1 -1
- package/dist/executor/command-discovery.d.ts.map +1 -1
- package/dist/executor/command-discovery.js +1 -1
- package/dist/executor/command-discovery.js.map +1 -1
- package/dist/executor/dry-run-cache.d.ts.map +1 -1
- package/dist/executor/dry-run-cache.js.map +1 -1
- package/dist/executor/dry-run-strategy.d.ts.map +1 -1
- package/dist/executor/dry-run-strategy.js.map +1 -1
- package/dist/executor/hook-execution.service.d.ts.map +1 -1
- package/dist/executor/hook-execution.service.js +2 -2
- package/dist/executor/hook-execution.service.js.map +1 -1
- package/dist/executor/input-pre-resolver.d.ts.map +1 -1
- package/dist/executor/input-pre-resolver.js.map +1 -1
- package/dist/executor/pipeline-events.d.ts +1 -1
- package/dist/executor/pipeline-events.d.ts.map +1 -1
- package/dist/executor/pipeline-events.js.map +1 -1
- package/dist/executor/pipeline.d.ts +5 -0
- package/dist/executor/pipeline.d.ts.map +1 -1
- package/dist/executor/pipeline.js +22 -1
- package/dist/executor/pipeline.js.map +1 -1
- package/dist/executor/project-guidance-loader.d.ts.map +1 -1
- package/dist/executor/project-guidance-loader.js +1 -1
- package/dist/executor/project-guidance-loader.js.map +1 -1
- package/dist/executor/prompt-loader.d.ts.map +1 -1
- package/dist/executor/prompt-loader.js +1 -1
- package/dist/executor/prompt-loader.js.map +1 -1
- package/dist/executor/stage-executor.d.ts +42 -3
- package/dist/executor/stage-executor.d.ts.map +1 -1
- package/dist/executor/stage-executor.js +237 -22
- package/dist/executor/stage-executor.js.map +1 -1
- package/dist/executor/stage-output-cache.d.ts.map +1 -1
- package/dist/executor/stage-output-cache.js +1 -1
- package/dist/executor/stage-output-cache.js.map +1 -1
- package/dist/executor/tool-execution.service.d.ts.map +1 -1
- package/dist/executor/tool-execution.service.js +7 -2
- package/dist/executor/tool-execution.service.js.map +1 -1
- package/dist/executor/tools/dry-run-simulator.service.d.ts.map +1 -1
- package/dist/executor/tools/dry-run-simulator.service.js.map +1 -1
- package/dist/executor/tools/search-tools.service.d.ts.map +1 -1
- package/dist/executor/tools/search-tools.service.js +1 -1
- package/dist/executor/tools/search-tools.service.js.map +1 -1
- package/dist/executor/tools/session-tools.service.d.ts.map +1 -1
- package/dist/executor/tools/session-tools.service.js.map +1 -1
- package/dist/exploration/container-manager.d.ts.map +1 -1
- package/dist/exploration/container-manager.js +1 -1
- package/dist/exploration/container-manager.js.map +1 -1
- package/dist/exploration/dashboard-controls.d.ts +1 -1
- package/dist/exploration/dashboard-controls.d.ts.map +1 -1
- package/dist/exploration/dashboard-controls.js +6 -1
- package/dist/exploration/dashboard-controls.js.map +1 -1
- package/dist/exploration/dashboard-metrics.d.ts +1 -1
- package/dist/exploration/dashboard-metrics.d.ts.map +1 -1
- package/dist/exploration/dashboard-metrics.js.map +1 -1
- package/dist/exploration/dashboard-ui.d.ts +1 -1
- package/dist/exploration/dashboard-ui.d.ts.map +1 -1
- package/dist/exploration/dashboard-ui.js +5 -0
- package/dist/exploration/dashboard-ui.js.map +1 -1
- package/dist/exploration/execution-modes.d.ts +3 -5
- package/dist/exploration/execution-modes.d.ts.map +1 -1
- package/dist/exploration/execution-modes.js +66 -50
- package/dist/exploration/execution-modes.js.map +1 -1
- package/dist/exploration/exploration-events.d.ts +1 -1
- package/dist/exploration/exploration-events.d.ts.map +1 -1
- package/dist/exploration/exploration-events.js.map +1 -1
- package/dist/exploration/exploration-state.d.ts +4 -0
- package/dist/exploration/exploration-state.d.ts.map +1 -1
- package/dist/exploration/exploration-state.js +18 -0
- package/dist/exploration/exploration-state.js.map +1 -1
- package/dist/exploration/merge-orchestrator.d.ts.map +1 -1
- package/dist/exploration/merge-orchestrator.js +1 -1
- package/dist/exploration/merge-orchestrator.js.map +1 -1
- package/dist/exploration/orchestrator.d.ts +1 -0
- package/dist/exploration/orchestrator.d.ts.map +1 -1
- package/dist/exploration/orchestrator.js +9 -4
- package/dist/exploration/orchestrator.js.map +1 -1
- package/dist/exploration/resource-allocator.d.ts +4 -0
- package/dist/exploration/resource-allocator.d.ts.map +1 -1
- package/dist/exploration/resource-allocator.js +27 -1
- package/dist/exploration/resource-allocator.js.map +1 -1
- package/dist/exploration/result-comparator.d.ts.map +1 -1
- package/dist/exploration/result-comparator.js +3 -2
- package/dist/exploration/result-comparator.js.map +1 -1
- package/dist/exploration/safety-validator.d.ts.map +1 -1
- package/dist/exploration/safety-validator.js +3 -3
- package/dist/exploration/safety-validator.js.map +1 -1
- package/dist/exploration/shared-volume-manager.d.ts.map +1 -1
- package/dist/exploration/shared-volume-manager.js +1 -1
- package/dist/exploration/shared-volume-manager.js.map +1 -1
- package/dist/exploration/worktree-manager-secure.d.ts.map +1 -1
- package/dist/exploration/worktree-manager-secure.js +6 -4
- package/dist/exploration/worktree-manager-secure.js.map +1 -1
- package/dist/exploration/worktree-manager.d.ts.map +1 -1
- package/dist/exploration/worktree-manager.js +4 -2
- package/dist/exploration/worktree-manager.js.map +1 -1
- package/dist/llm/providers/anthropic.provider.d.ts.map +1 -1
- package/dist/llm/providers/anthropic.provider.js +2 -2
- package/dist/llm/providers/anthropic.provider.js.map +1 -1
- package/dist/llm/providers/google.provider.d.ts.map +1 -1
- package/dist/llm/providers/google.provider.js.map +1 -1
- package/dist/llm/providers/openai.provider.d.ts.map +1 -1
- package/dist/llm/providers/openai.provider.js +2 -2
- package/dist/llm/providers/openai.provider.js.map +1 -1
- package/dist/mcp/mcp-approval-cache.service.d.ts.map +1 -1
- package/dist/mcp/mcp-approval-cache.service.js +1 -1
- package/dist/mcp/mcp-approval-cache.service.js.map +1 -1
- package/dist/mcp/mcp-audit-logger.service.d.ts +11 -1
- package/dist/mcp/mcp-audit-logger.service.d.ts.map +1 -1
- package/dist/mcp/mcp-audit-logger.service.js +145 -1
- package/dist/mcp/mcp-audit-logger.service.js.map +1 -1
- package/dist/mcp/mcp-client-manager.service.d.ts.map +1 -1
- package/dist/mcp/mcp-client-manager.service.js +1 -3
- package/dist/mcp/mcp-client-manager.service.js.map +1 -1
- package/dist/mcp/sampling-service.d.ts.map +1 -1
- package/dist/mcp/sampling-service.js.map +1 -1
- package/dist/mcp/server-manager.d.ts +1 -1
- package/dist/mcp/server-manager.d.ts.map +1 -1
- package/dist/mcp/server-manager.js +1 -4
- package/dist/mcp/server-manager.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tool-mapping.service.d.ts +1 -1
- package/dist/mcp/tool-mapping.service.d.ts.map +1 -1
- package/dist/mcp/tool-mapping.service.js +1 -1
- package/dist/mcp/tool-mapping.service.js.map +1 -1
- package/dist/mcp/tool-registry.d.ts.map +1 -1
- package/dist/mcp/tool-registry.js.map +1 -1
- package/dist/output/logger.d.ts.map +1 -1
- package/dist/output/logger.js +12 -6
- package/dist/output/logger.js.map +1 -1
- package/dist/output/pipeline-emitter.d.ts +9 -1
- package/dist/output/pipeline-emitter.d.ts.map +1 -1
- package/dist/output/pipeline-emitter.js +20 -0
- package/dist/output/pipeline-emitter.js.map +1 -1
- package/dist/output/retention-manager.d.ts.map +1 -1
- package/dist/output/retention-manager.js +1 -1
- package/dist/output/retention-manager.js.map +1 -1
- package/dist/output/welcome-banner.d.ts.map +1 -1
- package/dist/output/welcome-banner.js +1 -0
- package/dist/output/welcome-banner.js.map +1 -1
- package/dist/package.json +8 -1
- package/dist/services/agent-capability-matcher.service.d.ts +11 -2
- package/dist/services/agent-capability-matcher.service.d.ts.map +1 -1
- package/dist/services/agent-capability-matcher.service.js +71 -40
- package/dist/services/agent-capability-matcher.service.js.map +1 -1
- package/dist/services/agent-capability-registry.service.d.ts.map +1 -1
- package/dist/services/agent-capability-registry.service.js +1 -1
- package/dist/services/agent-capability-registry.service.js.map +1 -1
- package/dist/services/agent-selection-analytics.service.d.ts +8 -0
- package/dist/services/agent-selection-analytics.service.d.ts.map +1 -1
- package/dist/services/agent-selection-analytics.service.js +17 -0
- package/dist/services/agent-selection-analytics.service.js.map +1 -1
- package/dist/services/context-analyzer.service.d.ts.map +1 -1
- package/dist/services/context-analyzer.service.js +1 -1
- package/dist/services/context-analyzer.service.js.map +1 -1
- package/dist/services/document-path-resolver.service.d.ts.map +1 -1
- package/dist/services/document-path-resolver.service.js +1 -1
- package/dist/services/document-path-resolver.service.js.map +1 -1
- package/dist/services/document-writer.service.d.ts.map +1 -1
- package/dist/services/document-writer.service.js +1 -1
- package/dist/services/document-writer.service.js.map +1 -1
- package/dist/services/dynamic-agent-resolver.service.d.ts +8 -1
- package/dist/services/dynamic-agent-resolver.service.d.ts.map +1 -1
- package/dist/services/dynamic-agent-resolver.service.js +51 -28
- package/dist/services/dynamic-agent-resolver.service.js.map +1 -1
- package/dist/services/git-stash-protection.service.d.ts.map +1 -1
- package/dist/services/git-stash-protection.service.js +1 -1
- package/dist/services/git-stash-protection.service.js.map +1 -1
- package/dist/services/idempotency-store.service.d.ts.map +1 -1
- package/dist/services/idempotency-store.service.js +1 -1
- package/dist/services/idempotency-store.service.js.map +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/index.js.map +1 -1
- package/dist/services/task-classifier.service.d.ts +22 -3
- package/dist/services/task-classifier.service.d.ts.map +1 -1
- package/dist/services/task-classifier.service.js +83 -44
- package/dist/services/task-classifier.service.js.map +1 -1
- package/dist/session/retention-manager.d.ts.map +1 -1
- package/dist/session/retention-manager.js +2 -2
- package/dist/session/retention-manager.js.map +1 -1
- package/dist/session/session-exporter.d.ts.map +1 -1
- package/dist/session/session-exporter.js +1 -1
- package/dist/session/session-exporter.js.map +1 -1
- package/dist/session/store.d.ts.map +1 -1
- package/dist/session/store.js +4 -3
- package/dist/session/store.js.map +1 -1
- package/dist/session/worktree-stats-tracker.d.ts +34 -0
- package/dist/session/worktree-stats-tracker.d.ts.map +1 -0
- package/dist/session/worktree-stats-tracker.js +116 -0
- package/dist/session/worktree-stats-tracker.js.map +1 -0
- package/dist/types/agent.types.d.ts +12 -2
- package/dist/types/agent.types.d.ts.map +1 -1
- package/dist/types/command.types.d.ts +14 -1
- package/dist/types/command.types.d.ts.map +1 -1
- package/dist/types/command.types.js.map +1 -1
- package/dist/types/exploration.types.d.ts +2 -1
- package/dist/types/exploration.types.d.ts.map +1 -1
- package/dist/types/mcp-client.types.d.ts +76 -0
- package/dist/types/mcp-client.types.d.ts.map +1 -1
- package/dist/types/pipeline.types.d.ts +19 -1
- package/dist/types/pipeline.types.d.ts.map +1 -1
- package/dist/types/pipeline.types.js +2 -0
- package/dist/types/pipeline.types.js.map +1 -1
- package/dist/types/session.types.d.ts +19 -0
- package/dist/types/session.types.d.ts.map +1 -1
- package/dist/ui/dashboard/components/header.d.ts +6 -0
- package/dist/ui/dashboard/components/header.d.ts.map +1 -0
- package/dist/ui/dashboard/components/header.js +10 -0
- package/dist/ui/dashboard/components/header.js.map +1 -0
- package/dist/ui/dashboard/components/help-bar.d.ts +11 -0
- package/dist/ui/dashboard/components/help-bar.d.ts.map +1 -0
- package/dist/ui/dashboard/components/help-bar.js +10 -0
- package/dist/ui/dashboard/components/help-bar.js.map +1 -0
- package/dist/ui/dashboard/components/tab-bar.d.ts +9 -0
- package/dist/ui/dashboard/components/tab-bar.d.ts.map +1 -0
- package/dist/ui/dashboard/components/tab-bar.js +20 -0
- package/dist/ui/dashboard/components/tab-bar.js.map +1 -0
- package/dist/ui/dashboard/detail-panels/command-history-panel.d.ts +9 -0
- package/dist/ui/dashboard/detail-panels/command-history-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/detail-panels/command-history-panel.js +13 -0
- package/dist/ui/dashboard/detail-panels/command-history-panel.js.map +1 -0
- package/dist/ui/dashboard/detail-panels/exploration-info-panel.d.ts +9 -0
- package/dist/ui/dashboard/detail-panels/exploration-info-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/detail-panels/exploration-info-panel.js +39 -0
- package/dist/ui/dashboard/detail-panels/exploration-info-panel.js.map +1 -0
- package/dist/ui/dashboard/detail-panels/optimization-panel.d.ts +9 -0
- package/dist/ui/dashboard/detail-panels/optimization-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/detail-panels/optimization-panel.js +53 -0
- package/dist/ui/dashboard/detail-panels/optimization-panel.js.map +1 -0
- package/dist/ui/dashboard/detail-panels/quality-panel.d.ts +9 -0
- package/dist/ui/dashboard/detail-panels/quality-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/detail-panels/quality-panel.js +90 -0
- package/dist/ui/dashboard/detail-panels/quality-panel.js.map +1 -0
- package/dist/ui/dashboard/detail-panels/running-task-panel.d.ts +9 -0
- package/dist/ui/dashboard/detail-panels/running-task-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/detail-panels/running-task-panel.js +11 -0
- package/dist/ui/dashboard/detail-panels/running-task-panel.js.map +1 -0
- package/dist/ui/dashboard/detail-panels/session-info-panel.d.ts +9 -0
- package/dist/ui/dashboard/detail-panels/session-info-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/detail-panels/session-info-panel.js +12 -0
- package/dist/ui/dashboard/detail-panels/session-info-panel.js.map +1 -0
- package/dist/ui/dashboard/detail-panels/token-usage-panel.d.ts +9 -0
- package/dist/ui/dashboard/detail-panels/token-usage-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/detail-panels/token-usage-panel.js +23 -0
- package/dist/ui/dashboard/detail-panels/token-usage-panel.js.map +1 -0
- package/dist/ui/dashboard/detail-panels/tool-calls-panel.d.ts +9 -0
- package/dist/ui/dashboard/detail-panels/tool-calls-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/detail-panels/tool-calls-panel.js +12 -0
- package/dist/ui/dashboard/detail-panels/tool-calls-panel.js.map +1 -0
- package/dist/ui/dashboard/detail-panels/worktree-stats-panel.d.ts +9 -0
- package/dist/ui/dashboard/detail-panels/worktree-stats-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/detail-panels/worktree-stats-panel.js +20 -0
- package/dist/ui/dashboard/detail-panels/worktree-stats-panel.js.map +1 -0
- package/dist/ui/dashboard/hooks/use-dashboard-data.d.ts +11 -0
- package/dist/ui/dashboard/hooks/use-dashboard-data.d.ts.map +1 -0
- package/dist/ui/dashboard/hooks/use-dashboard-data.js +105 -0
- package/dist/ui/dashboard/hooks/use-dashboard-data.js.map +1 -0
- package/dist/ui/dashboard/hooks/use-metrics-data.d.ts +66 -0
- package/dist/ui/dashboard/hooks/use-metrics-data.d.ts.map +1 -0
- package/dist/ui/dashboard/hooks/use-metrics-data.js +224 -0
- package/dist/ui/dashboard/hooks/use-metrics-data.js.map +1 -0
- package/dist/ui/dashboard/hooks/use-navigation.d.ts +25 -0
- package/dist/ui/dashboard/hooks/use-navigation.d.ts.map +1 -0
- package/dist/ui/dashboard/hooks/use-navigation.js +70 -0
- package/dist/ui/dashboard/hooks/use-navigation.js.map +1 -0
- package/dist/ui/dashboard/index.d.ts +34 -0
- package/dist/ui/dashboard/index.d.ts.map +1 -0
- package/dist/ui/dashboard/index.js +39 -0
- package/dist/ui/dashboard/index.js.map +1 -0
- package/dist/ui/dashboard/panels/active-sessions-panel.d.ts +10 -0
- package/dist/ui/dashboard/panels/active-sessions-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/panels/active-sessions-panel.js +24 -0
- package/dist/ui/dashboard/panels/active-sessions-panel.js.map +1 -0
- package/dist/ui/dashboard/panels/background-tasks-panel.d.ts +9 -0
- package/dist/ui/dashboard/panels/background-tasks-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/panels/background-tasks-panel.js +19 -0
- package/dist/ui/dashboard/panels/background-tasks-panel.js.map +1 -0
- package/dist/ui/dashboard/panels/metrics-summary-panel.d.ts +9 -0
- package/dist/ui/dashboard/panels/metrics-summary-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/panels/metrics-summary-panel.js +11 -0
- package/dist/ui/dashboard/panels/metrics-summary-panel.js.map +1 -0
- package/dist/ui/dashboard/panels/recent-commands-panel.d.ts +9 -0
- package/dist/ui/dashboard/panels/recent-commands-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/panels/recent-commands-panel.js +15 -0
- package/dist/ui/dashboard/panels/recent-commands-panel.js.map +1 -0
- package/dist/ui/dashboard/panels/server-metrics-panel.d.ts +9 -0
- package/dist/ui/dashboard/panels/server-metrics-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/panels/server-metrics-panel.js +11 -0
- package/dist/ui/dashboard/panels/server-metrics-panel.js.map +1 -0
- package/dist/ui/dashboard/panels/system-health-panel.d.ts +9 -0
- package/dist/ui/dashboard/panels/system-health-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/panels/system-health-panel.js +13 -0
- package/dist/ui/dashboard/panels/system-health-panel.js.map +1 -0
- package/dist/ui/dashboard/panels/worktree-diagram-panel.d.ts +9 -0
- package/dist/ui/dashboard/panels/worktree-diagram-panel.d.ts.map +1 -0
- package/dist/ui/dashboard/panels/worktree-diagram-panel.js +25 -0
- package/dist/ui/dashboard/panels/worktree-diagram-panel.js.map +1 -0
- package/dist/ui/dashboard/types.d.ts +65 -0
- package/dist/ui/dashboard/types.d.ts.map +1 -0
- package/dist/ui/dashboard/types.js +5 -0
- package/dist/ui/dashboard/types.js.map +1 -0
- package/dist/ui/dashboard/utils/format-helpers.d.ts +28 -0
- package/dist/ui/dashboard/utils/format-helpers.d.ts.map +1 -0
- package/dist/ui/dashboard/utils/format-helpers.js +86 -0
- package/dist/ui/dashboard/utils/format-helpers.js.map +1 -0
- package/dist/ui/dashboard/views/agent-analytics-view.d.ts +9 -0
- package/dist/ui/dashboard/views/agent-analytics-view.d.ts.map +1 -0
- package/dist/ui/dashboard/views/agent-analytics-view.js +35 -0
- package/dist/ui/dashboard/views/agent-analytics-view.js.map +1 -0
- package/dist/ui/dashboard/views/audit-log-view.d.ts +9 -0
- package/dist/ui/dashboard/views/audit-log-view.d.ts.map +1 -0
- package/dist/ui/dashboard/views/audit-log-view.js +14 -0
- package/dist/ui/dashboard/views/audit-log-view.js.map +1 -0
- package/dist/ui/dashboard/views/cache-stats-view.d.ts +9 -0
- package/dist/ui/dashboard/views/cache-stats-view.d.ts.map +1 -0
- package/dist/ui/dashboard/views/cache-stats-view.js +13 -0
- package/dist/ui/dashboard/views/cache-stats-view.js.map +1 -0
- package/dist/ui/dashboard/views/dashboard-view.d.ts +10 -0
- package/dist/ui/dashboard/views/dashboard-view.d.ts.map +1 -0
- package/dist/ui/dashboard/views/dashboard-view.js +17 -0
- package/dist/ui/dashboard/views/dashboard-view.js.map +1 -0
- package/dist/ui/dashboard/views/performance-view.d.ts +9 -0
- package/dist/ui/dashboard/views/performance-view.d.ts.map +1 -0
- package/dist/ui/dashboard/views/performance-view.js +19 -0
- package/dist/ui/dashboard/views/performance-view.js.map +1 -0
- package/dist/ui/dashboard/views/session-details-view.d.ts +13 -0
- package/dist/ui/dashboard/views/session-details-view.d.ts.map +1 -0
- package/dist/ui/dashboard/views/session-details-view.js +70 -0
- package/dist/ui/dashboard/views/session-details-view.js.map +1 -0
- package/dist/ui/dashboard-tui.d.ts +4 -29
- package/dist/ui/dashboard-tui.d.ts.map +1 -1
- package/dist/ui/dashboard-tui.js +111 -328
- package/dist/ui/dashboard-tui.js.map +1 -1
- package/dist/ui/tui-adapter.d.ts.map +1 -1
- package/dist/ui/tui-adapter.js +0 -1
- package/dist/ui/tui-adapter.js.map +1 -1
- package/dist/utils/base-retention-manager.d.ts.map +1 -1
- package/dist/utils/base-retention-manager.js +1 -1
- package/dist/utils/base-retention-manager.js.map +1 -1
- package/dist/utils/domain-keyword-registry.d.ts.map +1 -1
- package/dist/utils/domain-keyword-registry.js +112 -84
- package/dist/utils/domain-keyword-registry.js.map +1 -1
- package/dist/utils/file-lock.d.ts.map +1 -1
- package/dist/utils/file-lock.js +1 -1
- package/dist/utils/file-lock.js.map +1 -1
- package/dist/utils/heap-profiler.d.ts.map +1 -1
- package/dist/utils/heap-profiler.js +1 -1
- package/dist/utils/heap-profiler.js.map +1 -1
- package/dist/utils/performance-profiler.d.ts.map +1 -1
- package/dist/utils/performance-profiler.js +2 -2
- package/dist/utils/performance-profiler.js.map +1 -1
- package/dist/utils/resource-monitor.d.ts.map +1 -1
- package/dist/utils/resource-monitor.js +1 -1
- package/dist/utils/resource-monitor.js.map +1 -1
- package/dist/utils/safe-exec.d.ts.map +1 -1
- package/dist/utils/safe-exec.js.map +1 -1
- package/dist/utils/tracing.d.ts.map +1 -1
- package/dist/utils/tracing.js.map +1 -1
- package/package.json +8 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"running-task-panel.js","sourceRoot":"","sources":["../../../../src/ui/dashboard/detail-panels/running-task-panel.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC;AAC5B,8HAA8H;AAC9H,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;AAE1B,wGAAwG;AACxG,MAAM,UAAU,gBAAgB,CAAC,EAAE,OAAO,EAAE,SAAS,EAA0C;IAC9F,OAAO,CACN,MAAC,GAAG,IAAC,WAAW,EAAC,QAAQ,EAAC,WAAW,EAAC,OAAO,EAAC,aAAa,EAAC,QAAQ,EAAC,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,aAChG,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,QAAQ,oCAElB,EACP,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YAChB,MAAC,IAAI,4BACK,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,OAAO,GAAQ,IACtC,GACF,EACN,MAAC,IAAI,4BACK,KAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,YAAE,gBAAgB,CAAC,SAAS,CAAC,GAAQ,IAC5D,EACP,KAAC,IAAI,IAAC,QAAQ,0JAAuC,IAChD,CACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session Information Panel
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import type { Session } from '../../../types/session.types.js';
|
|
6
|
+
export declare function SessionInfoPanel({ session }: {
|
|
7
|
+
session: Session;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=session-info-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-info-panel.d.ts","sourceRoot":"","sources":["../../../../src/ui/dashboard/detail-panels/session-info-panel.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAWnD,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA2CrF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { getContextColor, getStatusColor } from '../../dashboard/utils/format-helpers.js';
|
|
3
|
+
import { getTUIAdapter } from '../../tui-adapter.interface.js';
|
|
4
|
+
import { formatNumber } from '../../../utils/number-format.js';
|
|
5
|
+
const tui = getTUIAdapter();
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Box and Text are React components which require PascalCase
|
|
7
|
+
const { Box, Text } = tui;
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- React components must use PascalCase
|
|
9
|
+
export function SessionInfoPanel({ session }) {
|
|
10
|
+
return (_jsxs(Box, { borderColor: "white", borderStyle: "round", flexDirection: "column", marginBottom: 1, paddingX: 1, children: [_jsx(Text, { bold: true, color: "cyan", children: "Session Information" }), _jsxs(Text, { children: ["Session ID: ", _jsx(Text, { color: "cyan", children: session.session_id })] }), _jsxs(Text, { children: ["Status: ", _jsx(Text, { color: getStatusColor(session.status), children: session.status.toUpperCase() })] }), _jsxs(Text, { children: ["Created: ", _jsx(Text, { color: "yellow", children: new Date(session.created_at).toLocaleString() })] }), _jsxs(Text, { children: ["Last Updated: ", _jsx(Text, { color: "yellow", children: new Date(session.updated_at).toLocaleString() })] }), session.total_tokens_used != null && session.total_tokens_used > 0 && (_jsxs(Text, { children: ["Total Tokens: ", _jsx(Text, { color: "cyan", children: formatNumber(session.total_tokens_used) })] })), session.context_window && (_jsxs(_Fragment, { children: [_jsxs(Text, { children: ["Context Window:", ' ', _jsxs(Text, { color: getContextColor(session.context_window.utilization_percent), children: [session.context_window.utilization_percent.toFixed(1), "%"] }), _jsxs(Text, { dimColor: true, children: [' ', "(", formatNumber(session.context_window.tokens_used), " /", ' ', formatNumber(session.context_window.context_window_size), ")"] })] }), _jsxs(Text, { children: ["Model: ", _jsx(Text, { color: "cyan", children: session.context_window.model })] })] }))] }));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=session-info-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-info-panel.js","sourceRoot":"","sources":["../../../../src/ui/dashboard/detail-panels/session-info-panel.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAA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IAAI,IAAC,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,cAAc,CAAC,mBAAmB,CAAC,aACtE,OAAO,CAAC,cAAc,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,SAChD,EACP,MAAC,IAAI,IAAC,QAAQ,mBACZ,GAAG,OACF,YAAY,CAAC,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,QAAI,GAAG,EACxD,YAAY,CAAC,OAAO,CAAC,cAAc,CAAC,mBAAmB,CAAC,SACnD,IACD,EACP,MAAC,IAAI,0BACG,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,OAAO,CAAC,cAAc,CAAC,KAAK,GAAQ,IACzD,IACL,CACH,IACI,CACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token Usage Panel - Token usage breakdown + trend
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import type { Session } from '../../../types/session.types.js';
|
|
6
|
+
export declare function TokenUsagePanel({ session }: {
|
|
7
|
+
session: Session;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=token-usage-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-usage-panel.d.ts","sourceRoot":"","sources":["../../../../src/ui/dashboard/detail-panels/token-usage-panel.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAWnD,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAkEpF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Sparkline } from '../../../exploration/dashboard-metrics.js';
|
|
3
|
+
import { getTUIAdapter } from '../../tui-adapter.interface.js';
|
|
4
|
+
import { formatNumber } from '../../../utils/number-format.js';
|
|
5
|
+
const tui = getTUIAdapter();
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Box and Text are React components which require PascalCase
|
|
7
|
+
const { Box, Text } = tui;
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- React components must use PascalCase
|
|
9
|
+
export function TokenUsagePanel({ session }) {
|
|
10
|
+
const commandsWithTokens = session.commands.filter((cmd) => cmd.tokens_used != null && cmd.tokens_used > 0);
|
|
11
|
+
const totalTokens = session.total_tokens_used ?? 0;
|
|
12
|
+
const tokenValues = commandsWithTokens.map((cmd) => cmd.tokens_used);
|
|
13
|
+
const maxTokens = tokenValues.length > 0 ? Math.max(...tokenValues) : 1;
|
|
14
|
+
return (_jsxs(Box, { borderColor: "white", borderStyle: "round", flexDirection: "column", marginBottom: 1, paddingX: 1, children: [_jsx(Text, { bold: true, color: "cyan", children: "Token Usage" }), _jsx(Box, { flexDirection: "column", marginTop: 1, children: _jsxs(Box, { children: [_jsx(Text, { dimColor: true, children: "Total Tokens: " }), _jsx(Text, { bold: true, color: "cyan", children: formatNumber(totalTokens) }), session.context_window && (_jsxs(_Fragment, { children: [_jsx(Text, { dimColor: true, children: " Context: " }), _jsxs(Text, { bold: true, color: session.context_window.utilization_percent > 80 ? 'red' : 'green', children: [session.context_window.utilization_percent.toFixed(1), "%"] }), _jsx(Text, { dimColor: true, children: " Model: " }), _jsx(Text, { color: "cyan", children: session.context_window.model })] }))] }) }), commandsWithTokens.length > 0 && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { dimColor: true, children: "Per-Command Usage:" }), commandsWithTokens
|
|
15
|
+
.slice(-10)
|
|
16
|
+
.reverse()
|
|
17
|
+
.map((cmd, index) => {
|
|
18
|
+
const barWidth = 20;
|
|
19
|
+
const filled = Math.max(1, Math.floor((cmd.tokens_used / maxTokens) * barWidth));
|
|
20
|
+
return (_jsxs(Box, { children: [_jsx(Text, { color: cmd.success ? 'green' : 'red', children: cmd.success ? '✓' : '✗' }), _jsxs(Text, { children: [' ', (cmd.command.length > 15 ? cmd.command.substring(0, 12) + '...' : cmd.command).padEnd(15)] }), _jsx(Text, { color: "cyan", children: '█'.repeat(filled) }), _jsx(Text, { dimColor: true, children: '░'.repeat(barWidth - filled) }), _jsxs(Text, { children: [" ", formatNumber(cmd.tokens_used)] })] }, index));
|
|
21
|
+
})] })), tokenValues.length > 1 && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { dimColor: true, children: "Token Usage Trend:" }), _jsx(Sparkline, { color: "cyan", data: tokenValues, height: 3, width: 30 })] })), commandsWithTokens.length === 0 && _jsx(Text, { dimColor: true, children: "No token usage recorded" })] }));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=token-usage-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-usage-panel.js","sourceRoot":"","sources":["../../../../src/ui/dashboard/detail-panels/token-usage-panel.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC;AAC5B,8HAA8H;AAC9H,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;AAE1B,wGAAwG;AACxG,MAAM,UAAU,eAAe,CAAC,EAAE,OAAO,EAAwB;IAChE,MAAM,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,IAAI,GAAG,CAAC,WAAW,GAAG,CAAC,CAAC,C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CAAC,IAAI,CAC1B,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,SAAS,EAAE,CAAC,aACvC,KAAC,IAAI,IAAC,QAAQ,yCAA0B,EACxC,KAAC,SAAS,IAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,GAAI,IAC9D,CACN,EAEA,kBAAkB,CAAC,MAAM,KAAK,CAAC,IAAI,KAAC,IAAI,IAAC,QAAQ,8CAA+B,IAC5E,CACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Session Panel - Detailed view for session details
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import type { MCPDashboardMetrics } from '../../../types/mcp-client.types.js';
|
|
6
|
+
export declare function MCPSessionPanel({ metrics }: {
|
|
7
|
+
metrics: MCPDashboardMetrics;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=tool-calls-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-calls-panel.d.ts","sourceRoot":"","sources":["../../../../src/ui/dashboard/detail-panels/tool-calls-panel.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAWlE,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,mBAAmB,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA0EhG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Sparkline } from '../../../exploration/dashboard-metrics.js';
|
|
3
|
+
import { formatAge } from '../../dashboard/utils/format-helpers.js';
|
|
4
|
+
import { getTUIAdapter } from '../../tui-adapter.interface.js';
|
|
5
|
+
const tui = getTUIAdapter();
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Box and Text are React components which require PascalCase
|
|
7
|
+
const { Box, Text } = tui;
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- React components must use PascalCase
|
|
9
|
+
export function MCPSessionPanel({ metrics }) {
|
|
10
|
+
return (_jsxs(Box, { borderColor: "magenta", borderStyle: "round", flexDirection: "column", marginBottom: 1, paddingX: 1, children: [_jsx(Text, { bold: true, color: "magenta", children: "MCP Analytics" }), _jsx(Box, { flexDirection: "column", marginTop: 1, children: _jsxs(Box, { children: [_jsx(Text, { dimColor: true, children: "Total Calls: " }), _jsx(Text, { bold: true, color: "cyan", children: metrics.totalToolCalls }), _jsx(Text, { dimColor: true, children: " Errors: " }), _jsx(Text, { bold: true, color: metrics.totalErrors > 0 ? 'red' : 'green', children: metrics.totalErrors }), _jsx(Text, { dimColor: true, children: " Avg: " }), _jsxs(Text, { bold: true, color: "cyan", children: [metrics.avgDurationMs.toFixed(0), "ms"] })] }) }), metrics.durationTrend.length > 0 && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { dimColor: true, children: "Duration Trend:" }), _jsx(Sparkline, { color: "cyan", data: metrics.durationTrend, height: 3, width: 30 })] })), metrics.servers.length > 0 && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { dimColor: true, children: "Servers:" }), metrics.servers.map((server) => (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: server.isConnected ? 'green' : 'red', children: server.isConnected ? '●' : '○' }), _jsxs(Text, { bold: true, children: [" ", server.serverId] }), _jsxs(Text, { dimColor: true, children: [' ', "(", server.totalCalls, " calls, ", (server.successRate * 100).toFixed(0), "%,", ' ', server.avgDurationMs.toFixed(0), "ms avg)"] })] }), server.toolBreakdown.slice(0, 3).map((tool) => (_jsxs(Box, { children: [_jsxs(Text, { dimColor: true, children: [" \u2514 ", tool.toolName] }), _jsxs(Text, { dimColor: true, children: [' ', tool.calls, "x ", (tool.successRate * 100).toFixed(0), "% ", tool.avgDurationMs.toFixed(0), "ms"] })] }, tool.toolName)))] }, server.serverId)))] })), metrics.recentToolCalls.length > 0 && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { dimColor: true, children: "Recent Calls:" }), metrics.recentToolCalls.slice(0, 5).map((call, index) => (_jsxs(Box, { children: [_jsx(Text, { bold: true, color: call.success ? 'green' : 'red', children: call.success ? '✓' : '✗' }), _jsxs(Text, { children: [" ", call.toolName] }), _jsxs(Text, { dimColor: true, children: [' ', call.durationMs, "ms ", formatAge(call.timestamp.toISOString())] })] }, index)))] }))] }));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=tool-calls-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-calls-panel.js","sourceRoot":"","sources":["../../../../src/ui/dashboard/detail-panels/tool-calls-panel.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC;AAC5B,8HAA8H;AAC9H,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;AAE1B,wGAAwG;AACxG,MAAM,UAAU,eAAe,CAAC,EAAE,OAAO,EAAoC;IAC5E,OAAO,CACN,MAAC,GAAG,IAAC,WAAW,EAAC,SAAS,EAAC,WAAW,EAAC,OAAO,EAAC,aAAa,EAAC,QAAQ,EAAC,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,aACjG,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,SAAS,8BAEnB,EACP,KAAC,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,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,YAC9C,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GACnB,EACP,MAAC,IAAI,oBAAG,IAAI,CAAC,QAAQ,IAAQ,EAC7B,MAAC,IAAI,IAAC,QAAQ,mBACZ,GAAG,EACH,IAAI,CAAC,UAAU,SAAK,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,IACtD,KARE,KAAK,CAST,CACN,CAAC,IACG,CACN,IACI,CACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worktree Stats Panel
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import type { WorktreeUsageStats } from '../../../types/session.types.js';
|
|
6
|
+
export declare function WorktreeStatsPanel({ stats }: {
|
|
7
|
+
stats: WorktreeUsageStats;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=worktree-stats-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worktree-stats-panel.d.ts","sourceRoot":"","sources":["../../../../src/ui/dashboard/detail-panels/worktree-stats-panel.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAU9D,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,kBAAkB,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAsD9F"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { formatDurationMs } from '../../dashboard/utils/format-helpers.js';
|
|
3
|
+
import { getTUIAdapter } from '../../tui-adapter.interface.js';
|
|
4
|
+
const tui = getTUIAdapter();
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Box and Text are React components which require PascalCase
|
|
6
|
+
const { Box, Text } = tui;
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- React components must use PascalCase
|
|
8
|
+
export function WorktreeStatsPanel({ stats }) {
|
|
9
|
+
return (_jsxs(Box, { borderColor: "yellow", borderStyle: "round", flexDirection: "column", marginBottom: 1, paddingX: 1, children: [_jsx(Text, { bold: true, color: "yellow", children: "Worktree Usage" }), _jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsxs(Box, { children: [_jsx(Text, { dimColor: true, children: "Created: " }), _jsx(Text, { bold: true, children: stats.total_created }), _jsx(Text, { children: " " }), _jsx(Text, { dimColor: true, children: "Max Concurrent: " }), _jsx(Text, { bold: true, children: stats.max_concurrent })] }), _jsxs(Box, { children: [_jsx(Text, { dimColor: true, children: "Total Duration: " }), _jsx(Text, { bold: true, color: "cyan", children: formatDurationMs(stats.total_duration_ms) })] }), stats.exploration_ids.length > 0 && (_jsxs(Box, { children: [_jsx(Text, { dimColor: true, children: "Explorations: " }), _jsx(Text, { color: "cyan", children: stats.exploration_ids.join(', ') })] }))] }), stats.worktree_summaries.length > 0 && (_jsx(Box, { flexDirection: "column", marginTop: 1, children: stats.worktree_summaries.map((summary, index) => {
|
|
10
|
+
const statusIcon = summary.status === 'completed' ? '\u2713' : summary.status === 'failed' ? '\u2717' : '\u25cb';
|
|
11
|
+
const statusColor = summary.status === 'completed' ? 'green' : summary.status === 'failed' ? 'red' : 'yellow';
|
|
12
|
+
const duration = summary.duration_ms != null
|
|
13
|
+
? formatDurationMs(summary.duration_ms)
|
|
14
|
+
: summary.status === 'failed'
|
|
15
|
+
? 'fail'
|
|
16
|
+
: '';
|
|
17
|
+
return (_jsxs(Box, { children: [_jsx(Text, { color: statusColor, children: statusIcon }), _jsx(Text, { children: " " }), _jsx(Text, { children: summary.branch_name }), duration && _jsxs(Text, { dimColor: true, children: [" ", duration] })] }, index));
|
|
18
|
+
}) }))] }));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=worktree-stats-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worktree-stats-panel.js","sourceRoot":"","sources":["../../../../src/ui/dashboard/detail-panels/worktree-stats-panel.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC;AAC5B,8HAA8H;AAC9H,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;AAE1B,wGAAwG;AACxG,MAAM,UAAU,kBAAkB,CAAC,EAAE,KAAK,EAAiC;IAC1E,OAAO,CACN,MAAC,GAAG,IAAC,WAAW,EAAC,QAAQ,EAAC,WAAW,EAAC,OAAO,EAAC,aAAa,EAAC,QAAQ,EAAC,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,aAChG,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,QAAQ,+BAElB,EACP,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,SAAS,EAAE,CAAC,aACvC,MAAC,GAAG,eACH,KAAC,IAAI,IAAC,QAAQ,gCAAiB,EAC/B,KAAC,IAAI,IAAC,IAAI,kBAAE,KAAK,CAAC,aAAa,GAAQ,EACvC,KAAC,IAAI,oBAAS,EACd,KAAC,IAAI,IAAC,QAAQ,uCAAwB,EACtC,KAAC,IAAI,IAAC,IAAI,kBAAE,KAAK,CAAC,cAAc,GAAQ,IACnC,EACN,MAAC,GAAG,eACH,KAAC,IAAI,IAAC,QAAQ,uCAAwB,EACtC,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,MAAM,YACrB,gBAAgB,CAAC,KAA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Q,IAAI,MAAC,IAAI,IAAC,QAAQ,wBAAG,QAAQ,IAAQ,KAJrC,KAAK,CAKT,CACN,CAAC;gBACH,CAAC,CAAC,GACG,CACN,IACI,CACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard data fetching hook
|
|
3
|
+
*/
|
|
4
|
+
import type { DashboardData } from '../../dashboard/types.js';
|
|
5
|
+
import { SessionStore } from '../../../session/store.js';
|
|
6
|
+
export declare function useDashboardData(): {
|
|
7
|
+
data: DashboardData;
|
|
8
|
+
fetchData: () => Promise<void>;
|
|
9
|
+
sessionStore: SessionStore;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=use-dashboard-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-dashboard-data.d.ts","sourceRoot":"","sources":["../../../../src/ui/dashboard/hooks/use-dashboard-data.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAkB,aAAa,EAAuC,MAAM,oBAAoB,CAAC;AAK7G,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAiB7C,wBAAgB,gBAAgB,IAAI;IACnC,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,YAAY,EAAE,YAAY,CAAC;CAC3B,CA0FA"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard data fetching hook
|
|
3
|
+
*/
|
|
4
|
+
import { useCallback, useState } from 'react';
|
|
5
|
+
import { ExplorationStateManager } from '../../../exploration/exploration-state.js';
|
|
6
|
+
import { WorktreeManager } from '../../../exploration/worktree-manager.js';
|
|
7
|
+
import { getMCPAuditLogger } from '../../../mcp/mcp-audit-logger.service.js';
|
|
8
|
+
import { SessionStore } from '../../../session/store.js';
|
|
9
|
+
const INITIAL_DATA = {
|
|
10
|
+
activeSessions: [],
|
|
11
|
+
backgroundTasks: [],
|
|
12
|
+
mcpMetrics: null,
|
|
13
|
+
metricsSummary: null,
|
|
14
|
+
recentCommands: [],
|
|
15
|
+
systemHealth: {
|
|
16
|
+
apiStatus: 'healthy',
|
|
17
|
+
diskUsage: '0 MB',
|
|
18
|
+
sessionsCount: 0,
|
|
19
|
+
uptime: 0
|
|
20
|
+
},
|
|
21
|
+
worktrees: []
|
|
22
|
+
};
|
|
23
|
+
export function useDashboardData() {
|
|
24
|
+
const [startTime] = useState(() => Date.now());
|
|
25
|
+
const [data, setData] = useState(INITIAL_DATA);
|
|
26
|
+
const [sessionStore] = useState(() => new SessionStore());
|
|
27
|
+
const [worktreeManager] = useState(() => new WorktreeManager());
|
|
28
|
+
const [explorationStateManager] = useState(() => new ExplorationStateManager());
|
|
29
|
+
const fetchData = useCallback(async () => {
|
|
30
|
+
try {
|
|
31
|
+
const [sessions, rawWorktrees, activeExplorations] = await Promise.all([
|
|
32
|
+
sessionStore.listSessions(),
|
|
33
|
+
worktreeManager.listWorktrees().catch(() => []),
|
|
34
|
+
explorationStateManager.getActiveExplorations().catch(() => [])
|
|
35
|
+
]);
|
|
36
|
+
const worktreeEntries = rawWorktrees.map((wt, index) => {
|
|
37
|
+
const isExploration = wt.branch?.startsWith('exploration/') ?? false;
|
|
38
|
+
const matchingExploration = isExploration
|
|
39
|
+
? activeExplorations.find((exp) => wt.branch?.includes(exp.id))
|
|
40
|
+
: undefined;
|
|
41
|
+
return {
|
|
42
|
+
branch: wt.branch ?? '(detached)',
|
|
43
|
+
commit: wt.commit?.substring(0, 7) ?? '',
|
|
44
|
+
explorationId: matchingExploration?.id,
|
|
45
|
+
explorationStatus: matchingExploration?.status,
|
|
46
|
+
explorationTask: matchingExploration?.task,
|
|
47
|
+
isExploration,
|
|
48
|
+
isMainWorktree: index === 0,
|
|
49
|
+
path: wt.path,
|
|
50
|
+
prunable: wt.prunable
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
const activeSessions = sessions.slice(0, 10);
|
|
54
|
+
const recentCommands = sessions
|
|
55
|
+
.slice(0, 10)
|
|
56
|
+
.filter((s) => s.last_command)
|
|
57
|
+
.map((s) => ({
|
|
58
|
+
agent: 'default',
|
|
59
|
+
command: s.last_command,
|
|
60
|
+
status: s.status === 'failed' ? 'failed' : s.status === 'active' ? 'running' : 'success',
|
|
61
|
+
timestamp: s.updated_at
|
|
62
|
+
}))
|
|
63
|
+
.sort((a, b) => new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime())
|
|
64
|
+
.slice(0, 5);
|
|
65
|
+
const totalBytes = sessions.reduce((sum, s) => sum + (s.size_bytes || 0), 0);
|
|
66
|
+
const mb = (totalBytes / 1024 / 1024).toFixed(2);
|
|
67
|
+
const seenIds = new Set();
|
|
68
|
+
const backgroundTasks = sessions
|
|
69
|
+
.filter((s) => {
|
|
70
|
+
if (s.status !== 'active' || seenIds.has(s.session_id))
|
|
71
|
+
return false;
|
|
72
|
+
seenIds.add(s.session_id);
|
|
73
|
+
return true;
|
|
74
|
+
})
|
|
75
|
+
.map((s) => ({
|
|
76
|
+
id: s.session_id,
|
|
77
|
+
name: s.current_command ? `${s.session_id}: ${s.current_command}` : s.session_id,
|
|
78
|
+
progress: -1,
|
|
79
|
+
startedAt: s.updated_at,
|
|
80
|
+
status: 'running'
|
|
81
|
+
}));
|
|
82
|
+
const rawMcpMetrics = getMCPAuditLogger().getDashboardMetrics();
|
|
83
|
+
const mcpMetrics = rawMcpMetrics.totalToolCalls === 0 ? null : rawMcpMetrics;
|
|
84
|
+
setData((prev) => ({
|
|
85
|
+
...prev,
|
|
86
|
+
activeSessions,
|
|
87
|
+
backgroundTasks,
|
|
88
|
+
mcpMetrics,
|
|
89
|
+
recentCommands,
|
|
90
|
+
systemHealth: {
|
|
91
|
+
apiStatus: 'healthy',
|
|
92
|
+
diskUsage: `${mb} MB`,
|
|
93
|
+
sessionsCount: sessions.length,
|
|
94
|
+
uptime: Date.now() - startTime
|
|
95
|
+
},
|
|
96
|
+
worktrees: worktreeEntries
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
catch {
|
|
100
|
+
// Silent fail for refresh errors
|
|
101
|
+
}
|
|
102
|
+
}, [sessionStore, worktreeManager, explorationStateManager, startTime]);
|
|
103
|
+
return { data, fetchData, sessionStore };
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=use-dashboard-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-dashboard-data.js","sourceRoot":"","sources":["../../../../src/ui/dashboard/hooks/use-dashboard-data.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAI9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,YAAY,GAAkB;IACnC,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,EAAE;IACnB,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,EAAE;IAClB,YAAY,EAAE;QACb,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,MAAM;QACjB,aAAa,EAAE,CAAC;QAChB,MAAM,EAAE,CAAC;KACT;IACD,SAAS,EAAE,EAAE;CACb,CAAC;AAEF,MAAM,UAAU,gBAAgB;IAK/B,MAAM,CAAC,SAAS,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAgB,YAAY,CAAC,CAAC;IAC9D,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAA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AE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;iBAC9B;gBACD,SAAS,EAAE,eAAe;aAC1B,CAAC,CAAC,CAAC;QACL,CAAC;QAAC,MAAM,CAAC;YACR,iCAAiC;QAClC,CAAC;IACF,CAAC,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,SAAS,CAAC,CAAC,CAAC;IAExE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Metrics data fetching hook - per-tab data with tiered refresh rates
|
|
3
|
+
*/
|
|
4
|
+
import type { DashboardTab, MetricsSummary } from '../../dashboard/types.js';
|
|
5
|
+
import { type AgentSelectionMetrics } from '../../../services/agent-selection-analytics.service.js';
|
|
6
|
+
import { type CounterMetric, type GaugeMetric, type HistogramMetric, type MetricsSnapshot } from '../../../utils/metrics-collector.js';
|
|
7
|
+
export interface AgentAnalyticsData {
|
|
8
|
+
metrics: AgentSelectionMetrics | null;
|
|
9
|
+
successMetrics: null | {
|
|
10
|
+
accuracy: number;
|
|
11
|
+
completionRate: number;
|
|
12
|
+
insights: string[];
|
|
13
|
+
performance: number;
|
|
14
|
+
userSatisfaction: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface AuditData {
|
|
18
|
+
entries: Array<{
|
|
19
|
+
details?: Record<string, unknown>;
|
|
20
|
+
duration_ms?: number;
|
|
21
|
+
error?: string;
|
|
22
|
+
operation: string;
|
|
23
|
+
serverId: string;
|
|
24
|
+
success: boolean;
|
|
25
|
+
timestamp: Date;
|
|
26
|
+
toolName?: string;
|
|
27
|
+
}>;
|
|
28
|
+
stats: {
|
|
29
|
+
byOperation: Record<string, number>;
|
|
30
|
+
byServer: Record<string, number>;
|
|
31
|
+
successRate: number;
|
|
32
|
+
totalEntries: number;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface CacheData {
|
|
36
|
+
dryRunCache: {
|
|
37
|
+
entries: Array<{
|
|
38
|
+
ageMs: number;
|
|
39
|
+
commandName: string;
|
|
40
|
+
key: string;
|
|
41
|
+
}>;
|
|
42
|
+
size: number;
|
|
43
|
+
};
|
|
44
|
+
stageOutputCache: {
|
|
45
|
+
entries: Array<{
|
|
46
|
+
ageMs: number;
|
|
47
|
+
savedTime_ms: number;
|
|
48
|
+
stageId: string;
|
|
49
|
+
}>;
|
|
50
|
+
size: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export interface PerformanceData {
|
|
54
|
+
counters: CounterMetric[];
|
|
55
|
+
gauges: GaugeMetric[];
|
|
56
|
+
histograms: HistogramMetric[];
|
|
57
|
+
snapshot: MetricsSnapshot | null;
|
|
58
|
+
}
|
|
59
|
+
export declare function useMetricsData(activeTab: DashboardTab): {
|
|
60
|
+
agentData: AgentAnalyticsData;
|
|
61
|
+
auditData: AuditData;
|
|
62
|
+
cacheData: CacheData;
|
|
63
|
+
computeMetricsSummary: () => Promise<MetricsSummary | null>;
|
|
64
|
+
performanceData: PerformanceData;
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=use-metrics-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-metrics-data.d.ts","sourceRoot":"","sources":["../../../../src/ui/dashboard/hooks/use-metrics-data.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKvE,OAAO,EAAE,KAAK,qBAAqB,EAA8B,MAAM,4CAA4C,CAAC;AAEpH,OAAO,EACN,KAAK,aAAa,EAClB,KAAK,WAAW,EAEhB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,kBAAkB;IAClC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACtC,cAAc,EAAE,IAAI,GAAG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aAAa,EAAE,CAAC;IAC1B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,QAAQ,EAAE,eAAe,GAAG,IAAI,CAAC;CACjC;AAgCD,wBAAgB,cAAc,CAAC,SAAS,EAAE,YAAY,GAAG;IACxD,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,qBAAqB,EAAE,MAAM,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5D,eAAe,EAAE,eAAe,CAAC;CACjC,CA0HA"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Metrics data fetching hook - per-tab data with tiered refresh rates
|
|
3
|
+
*/
|
|
4
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
5
|
+
import { getDryRunCache } from '../../../executor/dry-run-cache.js';
|
|
6
|
+
import { getStageOutputCache } from '../../../executor/stage-output-cache.js';
|
|
7
|
+
import { getMCPAuditLogger } from '../../../mcp/mcp-audit-logger.service.js';
|
|
8
|
+
import { getAgentSelectionAnalytics } from '../../../services/agent-selection-analytics.service.js';
|
|
9
|
+
import { SessionStore } from '../../../session/store.js';
|
|
10
|
+
import { getMetricsCollector } from '../../../utils/metrics-collector.js';
|
|
11
|
+
const REFRESH_RATES = {
|
|
12
|
+
agents: 5000,
|
|
13
|
+
audit: 3000,
|
|
14
|
+
cache: 5000,
|
|
15
|
+
overview: 1000,
|
|
16
|
+
performance: 2000
|
|
17
|
+
};
|
|
18
|
+
export function useMetricsData(activeTab) {
|
|
19
|
+
const [performanceData, setPerformanceData] = useState({
|
|
20
|
+
counters: [],
|
|
21
|
+
gauges: [],
|
|
22
|
+
histograms: [],
|
|
23
|
+
snapshot: null
|
|
24
|
+
});
|
|
25
|
+
const [agentData, setAgentData] = useState({
|
|
26
|
+
metrics: null,
|
|
27
|
+
successMetrics: null
|
|
28
|
+
});
|
|
29
|
+
const [cacheData, setCacheData] = useState({
|
|
30
|
+
dryRunCache: { entries: [], size: 0 },
|
|
31
|
+
stageOutputCache: { entries: [], size: 0 }
|
|
32
|
+
});
|
|
33
|
+
const [auditData, setAuditData] = useState({
|
|
34
|
+
entries: [],
|
|
35
|
+
stats: { byOperation: {}, byServer: {}, successRate: 0, totalEntries: 0 }
|
|
36
|
+
});
|
|
37
|
+
const intervalRef = useRef(null);
|
|
38
|
+
const fetchPerformance = useCallback(() => {
|
|
39
|
+
try {
|
|
40
|
+
const snapshot = getMetricsCollector().getSnapshot();
|
|
41
|
+
setPerformanceData({
|
|
42
|
+
counters: snapshot.counters,
|
|
43
|
+
gauges: snapshot.gauges,
|
|
44
|
+
histograms: snapshot.histograms,
|
|
45
|
+
snapshot
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
// Silent fail
|
|
50
|
+
}
|
|
51
|
+
}, []);
|
|
52
|
+
const fetchAgents = useCallback(() => {
|
|
53
|
+
try {
|
|
54
|
+
const analytics = getAgentSelectionAnalytics();
|
|
55
|
+
const metrics = analytics.getMetrics(24);
|
|
56
|
+
const successMetrics = analytics.getSuccessMetrics(168);
|
|
57
|
+
setAgentData({ metrics, successMetrics });
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
// Silent fail
|
|
61
|
+
}
|
|
62
|
+
}, []);
|
|
63
|
+
const fetchCache = useCallback(() => {
|
|
64
|
+
try {
|
|
65
|
+
const dryRunStats = getDryRunCache().getStats();
|
|
66
|
+
const stageStats = getStageOutputCache().getStats();
|
|
67
|
+
setCacheData({
|
|
68
|
+
dryRunCache: dryRunStats,
|
|
69
|
+
stageOutputCache: stageStats
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
// Silent fail
|
|
74
|
+
}
|
|
75
|
+
}, []);
|
|
76
|
+
const fetchAudit = useCallback(() => {
|
|
77
|
+
try {
|
|
78
|
+
const logger = getMCPAuditLogger();
|
|
79
|
+
const entries = logger.getRecentEntries(100);
|
|
80
|
+
const stats = logger.getStats();
|
|
81
|
+
setAuditData({ entries, stats });
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
// Silent fail
|
|
85
|
+
}
|
|
86
|
+
}, []);
|
|
87
|
+
const computeMetricsSummary = useCallback(() => {
|
|
88
|
+
return buildMetricsSummary();
|
|
89
|
+
}, []);
|
|
90
|
+
// Set up polling for active tab
|
|
91
|
+
useEffect(() => {
|
|
92
|
+
if (intervalRef.current) {
|
|
93
|
+
clearInterval(intervalRef.current);
|
|
94
|
+
intervalRef.current = null;
|
|
95
|
+
}
|
|
96
|
+
const fetchForTab = () => {
|
|
97
|
+
switch (activeTab) {
|
|
98
|
+
case 'agents':
|
|
99
|
+
fetchAgents();
|
|
100
|
+
break;
|
|
101
|
+
case 'audit':
|
|
102
|
+
fetchAudit();
|
|
103
|
+
break;
|
|
104
|
+
case 'cache':
|
|
105
|
+
fetchCache();
|
|
106
|
+
break;
|
|
107
|
+
case 'performance':
|
|
108
|
+
fetchPerformance();
|
|
109
|
+
break;
|
|
110
|
+
default:
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
// Fetch immediately
|
|
115
|
+
fetchForTab();
|
|
116
|
+
// Set up interval
|
|
117
|
+
const rate = REFRESH_RATES[activeTab];
|
|
118
|
+
if (activeTab !== 'overview') {
|
|
119
|
+
intervalRef.current = setInterval(fetchForTab, rate);
|
|
120
|
+
}
|
|
121
|
+
return () => {
|
|
122
|
+
if (intervalRef.current) {
|
|
123
|
+
clearInterval(intervalRef.current);
|
|
124
|
+
intervalRef.current = null;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}, [activeTab, fetchPerformance, fetchAgents, fetchCache, fetchAudit]);
|
|
128
|
+
return { agentData, auditData, cacheData, computeMetricsSummary, performanceData };
|
|
129
|
+
}
|
|
130
|
+
function accumulateCommandMetrics(cmd, acc) {
|
|
131
|
+
if (cmd.optimization_metrics)
|
|
132
|
+
accumulateOptimizationMetrics(cmd.optimization_metrics, acc);
|
|
133
|
+
if (cmd.quality_metrics)
|
|
134
|
+
accumulateQualityMetrics(cmd.quality_metrics, acc);
|
|
135
|
+
if (cmd.error)
|
|
136
|
+
acc.errors++;
|
|
137
|
+
}
|
|
138
|
+
function accumulateOptimizationMetrics(opt, acc) {
|
|
139
|
+
if (opt.early_exit_triggered)
|
|
140
|
+
acc.earlyExits++;
|
|
141
|
+
if (opt.pattern_detected)
|
|
142
|
+
acc.patterns++;
|
|
143
|
+
acc.timeSavedMinutes += opt.time_saved_minutes ?? 0;
|
|
144
|
+
}
|
|
145
|
+
function accumulateQualityMetrics(q, acc) {
|
|
146
|
+
if (q.review_score != null) {
|
|
147
|
+
acc.reviewScoreSum += q.review_score;
|
|
148
|
+
acc.reviewScoreCount++;
|
|
149
|
+
}
|
|
150
|
+
acc.toolFailures += q.tool_failures ?? 0;
|
|
151
|
+
acc.toolLoopExhaustions += q.tool_loop_exhaustions ?? 0;
|
|
152
|
+
}
|
|
153
|
+
async function aggregateSessionMetrics(sessionStore, recentSessions) {
|
|
154
|
+
const acc = {
|
|
155
|
+
earlyExits: 0,
|
|
156
|
+
errors: 0,
|
|
157
|
+
patterns: 0,
|
|
158
|
+
reviewScoreCount: 0,
|
|
159
|
+
reviewScoreSum: 0,
|
|
160
|
+
timeSavedMinutes: 0,
|
|
161
|
+
toolFailures: 0,
|
|
162
|
+
toolLoopExhaustions: 0
|
|
163
|
+
};
|
|
164
|
+
for (const s of recentSessions.slice(0, 5)) {
|
|
165
|
+
try {
|
|
166
|
+
const full = await sessionStore.loadSession(s.session_id);
|
|
167
|
+
for (const cmd of full.commands) {
|
|
168
|
+
accumulateCommandMetrics(cmd, acc);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
catch {
|
|
172
|
+
// Skip sessions that fail to load
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return acc;
|
|
176
|
+
}
|
|
177
|
+
async function buildMetricsSummary() {
|
|
178
|
+
try {
|
|
179
|
+
const sessionStore = new SessionStore();
|
|
180
|
+
const sessions = await sessionStore.listSessions();
|
|
181
|
+
const recentSessions = sessions.slice(0, 20);
|
|
182
|
+
let totalCommands = 0;
|
|
183
|
+
let totalTokens = 0;
|
|
184
|
+
let summaryErrors = 0;
|
|
185
|
+
for (const s of recentSessions) {
|
|
186
|
+
totalCommands += s.command_count;
|
|
187
|
+
totalTokens += s.total_tokens_used ?? 0;
|
|
188
|
+
if (s.status === 'failed')
|
|
189
|
+
summaryErrors++;
|
|
190
|
+
}
|
|
191
|
+
const detailed = await aggregateSessionMetrics(sessionStore, recentSessions);
|
|
192
|
+
const dryRunStats = getDryRunCache().getStats();
|
|
193
|
+
const stageStats = getStageOutputCache().getStats();
|
|
194
|
+
const totalCacheEntries = dryRunStats.size + stageStats.size;
|
|
195
|
+
const cacheHitRate = totalCacheEntries > 0 ? Math.min(100, totalCacheEntries * 10) : 0;
|
|
196
|
+
const counters = getMetricsCollector().getSnapshot().counters;
|
|
197
|
+
// Current-session counters (in-memory, reset each process start)
|
|
198
|
+
const sessionLoopExhaustions = counters
|
|
199
|
+
.filter((c) => c.name === 'tool_loop_exhausted')
|
|
200
|
+
.reduce((sum, c) => sum + c.value, 0);
|
|
201
|
+
const sessionToolFailures = counters
|
|
202
|
+
.filter((c) => c.name === 'tool_execution_failed')
|
|
203
|
+
.reduce((sum, c) => sum + c.value, 0);
|
|
204
|
+
// Historical totals from persisted session quality_metrics (cross-session)
|
|
205
|
+
const toolLoopExhaustions = sessionLoopExhaustions + detailed.toolLoopExhaustions;
|
|
206
|
+
const toolExecutionFailures = sessionToolFailures + detailed.toolFailures;
|
|
207
|
+
return {
|
|
208
|
+
avgReviewScore: detailed.reviewScoreCount > 0 ? detailed.reviewScoreSum / detailed.reviewScoreCount : 0,
|
|
209
|
+
cacheHitRate,
|
|
210
|
+
earlyExits: detailed.earlyExits,
|
|
211
|
+
errors: summaryErrors + detailed.errors,
|
|
212
|
+
patterns: detailed.patterns,
|
|
213
|
+
timeSavedMinutes: detailed.timeSavedMinutes,
|
|
214
|
+
toolExecutionFailures,
|
|
215
|
+
toolLoopExhaustions,
|
|
216
|
+
totalCommands,
|
|
217
|
+
totalTokens
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
catch {
|
|
221
|
+
return null;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=use-metrics-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-metrics-data.js","sourceRoot":"","sources":["../../../../src/ui/dashboard/hooks/use-metrics-data.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAIjE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAA8B,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACpH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAGN,mBAAmB,EAGnB,MAAM,yBAAyB,CAAC;AA4CjC,MAAM,aAAa,GAAiC;IACnD,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;CACjB,CAAC;AAwBF,MAAM,UAAU,cAAc,CAAC,SAAuB;IAOrD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAkB;QACvE,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,EAAE;QACV,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,IAAI;KACd,CAAC,CAAC;IAE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