@windagency/valora 2.0.2 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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 +10 -0
- package/dist/executor/tool-execution.service.d.ts.map +1 -1
- package/dist/executor/tool-execution.service.js +31 -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
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
19
|
<p align="center">
|
|
20
|
-
<img src="https://img.shields.io/badge/version-2.
|
|
20
|
+
<img src="https://img.shields.io/badge/version-2.1.1-blue?style=flat-square" alt="Version" />
|
|
21
21
|
<img src="https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen?style=flat-square&logo=node.js" alt="Node" />
|
|
22
22
|
<img src="https://img.shields.io/badge/typescript-5.x-3178c6?style=flat-square&logo=typescript" alt="TypeScript" />
|
|
23
23
|
<img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="License" />
|
|
@@ -88,23 +88,6 @@ _\*When available in Cursor_
|
|
|
88
88
|
<tr valign="top">
|
|
89
89
|
<td width="50%">
|
|
90
90
|
|
|
91
|
-
### 🔄 8-Phase Development Lifecycle
|
|
92
|
-
|
|
93
|
-
Complete workflow automation:
|
|
94
|
-
|
|
95
|
-
```plaintext
|
|
96
|
-
Initialisation → Task Prep → Planning
|
|
97
|
-
↓
|
|
98
|
-
Implementation → Validation → Review
|
|
99
|
-
↓
|
|
100
|
-
Commit & PR → Feedback Loop
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
Each phase has dedicated commands and agents optimised for the task.
|
|
104
|
-
|
|
105
|
-
</td>
|
|
106
|
-
<td width="50%">
|
|
107
|
-
|
|
108
91
|
### 💎 Model Optimisation
|
|
109
92
|
|
|
110
93
|
Strategic AI model assignment for cost efficiency:
|
|
@@ -117,11 +100,47 @@ Strategic AI model assignment for cost efficiency:
|
|
|
117
100
|
|
|
118
101
|
**31% strategic • 31% execution • 38% fast**
|
|
119
102
|
|
|
103
|
+
</td>
|
|
104
|
+
<td width="50%">
|
|
105
|
+
|
|
106
|
+
### 🔒 Security & Compliance
|
|
107
|
+
|
|
108
|
+
Enterprise-grade security controls:
|
|
109
|
+
|
|
110
|
+
- **Supply Chain Hardening** — Frozen lockfile, blocked install scripts, vulnerability overrides, Dependabot
|
|
111
|
+
- **User Approval Flow** — Interactive consent before connections
|
|
112
|
+
- **Risk Assessment** — Low/Medium/High/Critical classification
|
|
113
|
+
- **Tool Filtering** — Allowlist and blocklist per server
|
|
114
|
+
- **Audit Logging** — Complete operation trail
|
|
115
|
+
- **Session Caching** — Remember approvals per session
|
|
116
|
+
|
|
120
117
|
</td>
|
|
121
118
|
</tr>
|
|
122
119
|
<tr valign="top">
|
|
123
120
|
<td width="50%">
|
|
124
121
|
|
|
122
|
+
### 🌳 Worktree Dashboard & Statistics
|
|
123
|
+
|
|
124
|
+
Live visibility into parallel explorations:
|
|
125
|
+
|
|
126
|
+
- **Worktree Diagram Panel** — Real-time tree view of git worktrees in the `valora dash` dashboard
|
|
127
|
+
- **Exploration Status** — Color-coded branches with status icons (▶ running, ✓ completed, ✗ failed)
|
|
128
|
+
- **Session-Exploration Linking** — Explorations create linked sessions; the dashboard shows exploration details (task, worktrees, status) in the session details view
|
|
129
|
+
- **Worktree Usage Stats** — Per-session tracking of worktree creation, concurrency, and duration
|
|
130
|
+
|
|
131
|
+
```plaintext
|
|
132
|
+
┌─ Git Worktrees (3) ──────────┐
|
|
133
|
+
│ ● main abc1234 │
|
|
134
|
+
│ ├── exploration/exp-abc-jwt │
|
|
135
|
+
│ │ def5678 ▶ RUNNING │
|
|
136
|
+
│ └── feature/new-api │
|
|
137
|
+
│ ghi9012 │
|
|
138
|
+
└──────────────────────────────┘
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
</td>
|
|
142
|
+
<td width="50%">
|
|
143
|
+
|
|
125
144
|
### 🔌 External MCP Integration
|
|
126
145
|
|
|
127
146
|
Connect to **15 external MCP servers** with user approval:
|
|
@@ -135,20 +154,6 @@ Connect to **15 external MCP servers** with user approval:
|
|
|
135
154
|
| Data | MongoDB, Elastic |
|
|
136
155
|
| Observability | Grafana, DeepResearch |
|
|
137
156
|
|
|
138
|
-
</td>
|
|
139
|
-
<td width="50%">
|
|
140
|
-
|
|
141
|
-
### 🔒 Security & Compliance
|
|
142
|
-
|
|
143
|
-
Enterprise-grade security controls:
|
|
144
|
-
|
|
145
|
-
- **Supply Chain Hardening** — Frozen lockfile, blocked install scripts, vulnerability overrides, Dependabot
|
|
146
|
-
- **User Approval Flow** — Interactive consent before connections
|
|
147
|
-
- **Risk Assessment** — Low/Medium/High/Critical classification
|
|
148
|
-
- **Tool Filtering** — Allowlist and blocklist per server
|
|
149
|
-
- **Audit Logging** — Complete operation trail
|
|
150
|
-
- **Session Caching** — Remember approvals per session
|
|
151
|
-
|
|
152
157
|
</td>
|
|
153
158
|
</tr>
|
|
154
159
|
</table>
|
|
@@ -171,7 +176,7 @@ npm install -g @windagency/valora # npm
|
|
|
171
176
|
|
|
172
177
|
# Verify installation
|
|
173
178
|
valora --version
|
|
174
|
-
# Should output: 2.
|
|
179
|
+
# Should output: 2.1.1
|
|
175
180
|
```
|
|
176
181
|
|
|
177
182
|
### Project Setup
|
|
@@ -399,6 +404,8 @@ valora/ # npm package root
|
|
|
399
404
|
│ ├── llm/ # LLM provider integrations
|
|
400
405
|
│ ├── mcp/ # MCP server implementation
|
|
401
406
|
│ ├── session/ # Session management
|
|
407
|
+
│ │ └── worktree-stats-tracker.ts # Worktree usage statistics
|
|
408
|
+
│ ├── ui/ # Terminal UI (dashboard, panels)
|
|
402
409
|
│ ├── utils/ # Utilities & path resolution
|
|
403
410
|
│ └── ...
|
|
404
411
|
├── data/ # Built-in resources (shipped with package)
|
|
@@ -565,9 +565,12 @@
|
|
|
565
565
|
"selectionCriteria": [
|
|
566
566
|
"accessibility-files",
|
|
567
567
|
"code-files",
|
|
568
|
+
"config-files",
|
|
568
569
|
"design-files",
|
|
569
570
|
"documentation-files",
|
|
570
571
|
"react-imports",
|
|
572
|
+
"type-definitions",
|
|
573
|
+
"typescript-files",
|
|
571
574
|
"ui-mockups",
|
|
572
575
|
"ux-research"
|
|
573
576
|
],
|
|
@@ -108,6 +108,8 @@ Transform a **Product Requirements Document (PRD)** into a **prioritized, action
|
|
|
108
108
|
4. **Review**: Validate backlog completeness and quality
|
|
109
109
|
5. **Generate**: Create backlog artifacts and documentation
|
|
110
110
|
|
|
111
|
+
The generated backlog includes **stage gates** — mandatory review and test checkpoints between execution phases, ensuring the team validates quality and correctness before advancing to the next phase.
|
|
112
|
+
|
|
111
113
|
## Input Arguments
|
|
112
114
|
|
|
113
115
|
**Available arguments** (accessible via `$ARGUMENTS`):
|
|
@@ -157,7 +159,9 @@ After successful pipeline execution, the following files are created:
|
|
|
157
159
|
|
|
158
160
|
- Executive summary with coverage score and statistics
|
|
159
161
|
- Task distribution (by priority, domain, phase)
|
|
162
|
+
- Stage gates summary table (one gate per phase transition)
|
|
160
163
|
- Complete task list with all metadata (ID, title, description, acceptance criteria, dependencies, etc.)
|
|
164
|
+
- Stage gate blocks between phases (exit criteria, required tests, reviewers)
|
|
161
165
|
- Dependency graph (Mermaid diagram)
|
|
162
166
|
- Timeline projection and critical path
|
|
163
167
|
- Recommended starting tasks
|
|
@@ -214,9 +218,10 @@ After successful execution, display handoff summary to user:
|
|
|
214
218
|
4. ✅ All tasks have complete metadata (description, acceptance criteria, effort, dependencies)
|
|
215
219
|
5. ✅ Dependency graph is acyclic (no circular dependencies)
|
|
216
220
|
6. ✅ No task exceeds 5-day effort threshold
|
|
217
|
-
7. ✅
|
|
218
|
-
8. ✅
|
|
219
|
-
9. ✅
|
|
221
|
+
7. ✅ Stage gates generated between each phase (exit criteria, required tests, reviewers)
|
|
222
|
+
8. ✅ Primary backlog file created at `knowledge-base/BACKLOG.md`
|
|
223
|
+
9. ✅ Supporting files updated (TODO.md, CHANGELOG.md, backup)
|
|
224
|
+
10. ✅ User receives clear handoff summary with next steps
|
|
220
225
|
|
|
221
226
|
---
|
|
222
227
|
|
|
@@ -337,11 +342,18 @@ Print the following summary at command completion:
|
|
|
337
342
|
| P1 (High) | [N] | [X] SP |
|
|
338
343
|
| P2 (Medium) | [N] | [X] SP |
|
|
339
344
|
|
|
340
|
-
### Phases
|
|
341
|
-
|
|
342
|
-
1. **
|
|
343
|
-
|
|
344
|
-
|
|
345
|
+
### Phases & Stage Gates
|
|
346
|
+
|
|
347
|
+
1. **Phase 0 – Foundation**: [N] tasks
|
|
348
|
+
→ 🔍 Gate 0→1: CI green, infra up, core models approved
|
|
349
|
+
2. **Phase 1 – Core Backend**: [N] tasks
|
|
350
|
+
→ 🔍 Gate 1→2: APIs documented, integration tests pass
|
|
351
|
+
3. **Phase 2 – Core Frontend**: [N] tasks
|
|
352
|
+
→ 🔍 Gate 2→3: UX sign-off, component tests pass
|
|
353
|
+
4. **Phase 3 – Integration & Features**: [N] tasks
|
|
354
|
+
→ 🔍 Gate 3→4: E2E suite green, feature sign-off
|
|
355
|
+
5. **Phase 4 – Quality & Production Readiness**: [N] tasks
|
|
356
|
+
→ 🔍 Gate 4→Release: Security audit, regression pass, SLOs met
|
|
345
357
|
|
|
346
358
|
### Documents Generated
|
|
347
359
|
|
|
@@ -191,6 +191,20 @@ Create `knowledge-base/BACKLOG.md` with following structure:
|
|
|
191
191
|
|
|
192
192
|
---
|
|
193
193
|
|
|
194
|
+
## 🚦 Stage Gates
|
|
195
|
+
|
|
196
|
+
Stage gates are mandatory checkpoints between phases. Each gate defines the review and test criteria that MUST pass before the next phase begins.
|
|
197
|
+
|
|
198
|
+
| Gate | After Phase | Review Focus | Automated Tests Required | Key Manual Tests |
|
|
199
|
+
| -------------------- | ------------- | --------------------------------------------------- | -------------------------------------------- | ----------------------------------------------------- |
|
|
200
|
+
| **Gate 0 → 1** | Foundation | Infra up, CI/CD green, core models merged | Unit tests, lint, smoke test | Fresh env setup, DB schema check, config validation |
|
|
201
|
+
| **Gate 1 → 2** | Core Backend | APIs documented, auth working, data layer tested | Integration tests, API contract validation | API explorer walkthrough, auth flow, edge-case inputs |
|
|
202
|
+
| **Gate 2 → 3** | Core Frontend | UI components reviewed, mock API removed | Component tests, visual regression baseline | Cross-browser walkthrough, accessibility, forms |
|
|
203
|
+
| **Gate 3 → 4** | Integration | E2E flows verified, third-party integrations stable | E2E suite green, load test baseline | Core user journeys, role-based access, rollback drill |
|
|
204
|
+
| **Gate 4 → Release** | Quality | Security audit done, docs complete, SLOs met | Full regression pass, performance benchmarks | Runbook walkthrough, monitoring alert drill, sec spot |
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
194
208
|
## 📋 Complete Task List
|
|
195
209
|
|
|
196
210
|
### Phase 0: Foundation
|
|
@@ -229,6 +243,189 @@ Create `knowledge-base/BACKLOG.md` with following structure:
|
|
|
229
243
|
|
|
230
244
|
---
|
|
231
245
|
|
|
246
|
+
> ### 🔍 Stage Gate 0 → 1: Foundation Review
|
|
247
|
+
>
|
|
248
|
+
> **Must pass before starting Phase 1.**
|
|
249
|
+
>
|
|
250
|
+
> **Exit Criteria**:
|
|
251
|
+
>
|
|
252
|
+
> - [ ] All Phase 0 tasks marked Done
|
|
253
|
+
> - [ ] CI/CD pipeline green on main branch
|
|
254
|
+
> - [ ] Development environment reproducible from scratch (README verified)
|
|
255
|
+
> - [ ] Core data models reviewed and approved
|
|
256
|
+
> - [ ] Base infrastructure deployed to staging
|
|
257
|
+
>
|
|
258
|
+
> **Tests Required**:
|
|
259
|
+
>
|
|
260
|
+
> - [ ] All unit tests pass (`pnpm test:suite:unit` or equivalent)
|
|
261
|
+
> - [ ] Linting and type checks clean
|
|
262
|
+
> - [ ] Smoke test: application starts without errors
|
|
263
|
+
>
|
|
264
|
+
> **🧑 Manual Testing — How to verify as a human**:
|
|
265
|
+
>
|
|
266
|
+
> 1. **Fresh environment setup**: Clone the repo on a clean machine (or container), follow the README step by step, and confirm the app starts with no extra steps needed. Note any missing instructions.
|
|
267
|
+
> 2. **Database / schema check**: Connect to the local database with a GUI tool (e.g. TablePlus, pgAdmin, DBeaver) and verify all core tables/collections exist with the expected columns and constraints.
|
|
268
|
+
> 3. **CI/CD pipeline**: Open the CI dashboard (GitHub Actions, GitLab CI, etc.), trigger a build on main, and confirm it completes green end-to-end.
|
|
269
|
+
> 4. **Infrastructure smoke test**: Open the staging URL in a browser and confirm the application responds (200 OK on `/health` or equivalent). Check logs for startup errors.
|
|
270
|
+
> 5. **Config & secrets**: Verify `.env.example` is up-to-date and that the app refuses to start with a missing required variable (test by removing one value).
|
|
271
|
+
>
|
|
272
|
+
> **Reviewers**: Tech Lead + Product Owner
|
|
273
|
+
>
|
|
274
|
+
> ---
|
|
275
|
+
|
|
276
|
+
### Phase 1: Core Backend
|
|
277
|
+
|
|
278
|
+
[Tasks grouped by phase — repeat task format from Phase 0]
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
> ### 🔍 Stage Gate 1 → 2: Backend Review
|
|
283
|
+
>
|
|
284
|
+
> **Must pass before starting Phase 2.**
|
|
285
|
+
>
|
|
286
|
+
> **Exit Criteria**:
|
|
287
|
+
>
|
|
288
|
+
> - [ ] All Phase 1 tasks marked Done
|
|
289
|
+
> - [ ] All API endpoints documented (OpenAPI/Swagger or equivalent)
|
|
290
|
+
> - [ ] Authentication and authorization working end-to-end
|
|
291
|
+
> - [ ] Data layer integration tested
|
|
292
|
+
>
|
|
293
|
+
> **Tests Required**:
|
|
294
|
+
>
|
|
295
|
+
> - [ ] Integration tests pass for all backend services
|
|
296
|
+
> - [ ] API contract validated (schema tests or consumer-driven contracts)
|
|
297
|
+
> - [ ] Security review: no critical vulnerabilities in backend
|
|
298
|
+
>
|
|
299
|
+
> **🧑 Manual Testing — How to verify as a human**:
|
|
300
|
+
>
|
|
301
|
+
> 1. **API explorer**: Open the Swagger/OpenAPI UI (e.g. `http://localhost:3000/api-docs`) and call each endpoint manually. Verify responses match the documented schema, including error cases (missing fields, wrong types).
|
|
302
|
+
> 2. **Authentication flow**: Using a REST client (Postman, Insomnia, or `curl`):
|
|
303
|
+
> - Register a new user → confirm 201 and token returned.
|
|
304
|
+
> - Log in with valid credentials → confirm token.
|
|
305
|
+
> - Call a protected endpoint without a token → confirm 401.
|
|
306
|
+
> - Call with an expired/invalid token → confirm 401.
|
|
307
|
+
> - Call with a token that lacks the required role → confirm 403.
|
|
308
|
+
> 3. **Data persistence**: Create a resource via the API, restart the server, then fetch it again and confirm it persists correctly.
|
|
309
|
+
> 4. **Edge cases**: Send payloads with missing required fields, extra unknown fields, and boundary values (empty strings, very long strings, negative numbers) — confirm the API returns consistent, descriptive 4xx errors.
|
|
310
|
+
> 5. **Logs review**: Tail the server logs during the above steps and confirm no unexpected stack traces or unhandled errors appear.
|
|
311
|
+
>
|
|
312
|
+
> **Reviewers**: Tech Lead + Security Reviewer
|
|
313
|
+
>
|
|
314
|
+
> ---
|
|
315
|
+
|
|
316
|
+
### Phase 2: Core Frontend
|
|
317
|
+
|
|
318
|
+
[Tasks grouped by phase — repeat task format from Phase 0]
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
> ### 🔍 Stage Gate 2 → 3: Frontend Review
|
|
323
|
+
>
|
|
324
|
+
> **Must pass before starting Phase 3.**
|
|
325
|
+
>
|
|
326
|
+
> **Exit Criteria**:
|
|
327
|
+
>
|
|
328
|
+
> - [ ] All Phase 2 tasks marked Done
|
|
329
|
+
> - [ ] All UI components reviewed (UX sign-off)
|
|
330
|
+
> - [ ] Mock API removed or feature-flagged off
|
|
331
|
+
> - [ ] Accessibility baseline met (WCAG AA minimum)
|
|
332
|
+
>
|
|
333
|
+
> **Tests Required**:
|
|
334
|
+
>
|
|
335
|
+
> - [ ] Component/unit tests pass for all UI components
|
|
336
|
+
> - [ ] Visual regression baseline captured
|
|
337
|
+
> - [ ] Cross-browser smoke test (latest Chrome, Firefox, Safari)
|
|
338
|
+
>
|
|
339
|
+
> **🧑 Manual Testing — How to verify as a human**:
|
|
340
|
+
>
|
|
341
|
+
> 1. **Visual walkthrough**: Open the app in Chrome, Firefox, and Safari. Navigate through every screen implemented so far. Compare against design mockups (Figma/Zeplin) and flag visual discrepancies.
|
|
342
|
+
> 2. **Responsive layout**: Resize the browser window (or use DevTools device emulation) across mobile (375px), tablet (768px), and desktop (1280px+). Confirm no layout breaks or overflow.
|
|
343
|
+
> 3. **Mock API removed**: Open DevTools → Network tab. Perform key user actions and confirm all requests hit a real backend URL, not localhost mock handlers or hardcoded JSON fixtures.
|
|
344
|
+
> 4. **Accessibility check**: Using the browser's built-in accessibility tree (Chrome DevTools → Accessibility) or the axe DevTools extension, run a scan on each main page and confirm no critical violations.
|
|
345
|
+
> 5. **Keyboard navigation**: Tab through every interactive element on each screen. Confirm focus is always visible and logical order is maintained. Test Enter/Space to activate buttons and links.
|
|
346
|
+
> 6. **Form validation**: Submit every form with empty fields, invalid formats (bad email, short password), and boundary values. Confirm inline error messages appear and are screen-reader-friendly (aria-describedby).
|
|
347
|
+
>
|
|
348
|
+
> **Reviewers**: Tech Lead + UX Designer + Product Owner
|
|
349
|
+
>
|
|
350
|
+
> ---
|
|
351
|
+
|
|
352
|
+
### Phase 3: Integration & Features
|
|
353
|
+
|
|
354
|
+
[Tasks grouped by phase — repeat task format from Phase 0]
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
> ### 🔍 Stage Gate 3 → 4: Integration Review
|
|
359
|
+
>
|
|
360
|
+
> **Must pass before starting Phase 4.**
|
|
361
|
+
>
|
|
362
|
+
> **Exit Criteria**:
|
|
363
|
+
>
|
|
364
|
+
> - [ ] All Phase 3 tasks marked Done
|
|
365
|
+
> - [ ] All major E2E user flows verified in staging
|
|
366
|
+
> - [ ] Third-party integrations stable (no critical failures in 48h)
|
|
367
|
+
> - [ ] Feature completeness sign-off from Product Owner
|
|
368
|
+
>
|
|
369
|
+
> **Tests Required**:
|
|
370
|
+
>
|
|
371
|
+
> - [ ] Full E2E test suite green in staging environment
|
|
372
|
+
> - [ ] Load test baseline established (define SLOs)
|
|
373
|
+
> - [ ] Rollback procedure verified
|
|
374
|
+
>
|
|
375
|
+
> **🧑 Manual Testing — How to verify as a human**:
|
|
376
|
+
>
|
|
377
|
+
> 1. **Core user journeys** (walk through each as a real user on staging):
|
|
378
|
+
> - Happy path: complete the primary workflow from start to finish (e.g. sign up → configure → use main feature → sign out).
|
|
379
|
+
> - Error recovery: simulate failures mid-flow (e.g. disconnect network, submit invalid data) and confirm the app recovers gracefully without data loss.
|
|
380
|
+
> - Re-entry: leave mid-flow, return later, and confirm state is preserved where expected.
|
|
381
|
+
> 2. **Third-party integrations**: Trigger each external integration manually (e.g. send a payment, fire a webhook, receive an email). Confirm the expected side-effect occurs and the UI reflects the outcome.
|
|
382
|
+
> 3. **Cross-feature interactions**: Test features that share data or state — confirm changes in one area are correctly reflected elsewhere (e.g. update a profile → verify the header avatar updates).
|
|
383
|
+
> 4. **Role-based access**: Log in as each user role (admin, regular user, read-only, etc.) and confirm each role sees only the features and data it should.
|
|
384
|
+
> 5. **Rollback drill**: Follow the documented rollback procedure in a staging environment. Confirm the previous version is restored and data integrity is maintained. Record the time taken.
|
|
385
|
+
>
|
|
386
|
+
> **Reviewers**: Tech Lead + Product Owner + QA Lead
|
|
387
|
+
>
|
|
388
|
+
> ---
|
|
389
|
+
|
|
390
|
+
### Phase 4: Quality & Production Readiness
|
|
391
|
+
|
|
392
|
+
[Tasks grouped by phase — repeat task format from Phase 0]
|
|
393
|
+
|
|
394
|
+
---
|
|
395
|
+
|
|
396
|
+
> ### 🔍 Stage Gate 4 → Release: Production Readiness Review
|
|
397
|
+
>
|
|
398
|
+
> **Must pass before production release.**
|
|
399
|
+
>
|
|
400
|
+
> **Exit Criteria**:
|
|
401
|
+
>
|
|
402
|
+
> - [ ] All Phase 4 tasks marked Done
|
|
403
|
+
> - [ ] Security audit completed (no critical/high findings open)
|
|
404
|
+
> - [ ] User documentation complete and reviewed
|
|
405
|
+
> - [ ] SLOs defined and monitoring dashboards live
|
|
406
|
+
> - [ ] On-call runbook written
|
|
407
|
+
>
|
|
408
|
+
> **Tests Required**:
|
|
409
|
+
>
|
|
410
|
+
> - [ ] Full regression suite passes on production-like environment
|
|
411
|
+
> - [ ] Performance benchmarks meet SLOs (latency, throughput, error rate)
|
|
412
|
+
> - [ ] Disaster recovery / backup restore tested
|
|
413
|
+
>
|
|
414
|
+
> **🧑 Manual Testing — How to verify as a human**:
|
|
415
|
+
>
|
|
416
|
+
> 1. **Full regression walkthrough**: Using the production-like environment, walk through every major user flow end-to-end as a first-time user. Use the user documentation as your only guide — if the docs are unclear or incomplete, flag them.
|
|
417
|
+
> 2. **Performance feel**: Navigate through the app and note any screen that feels slow to load or interact with. Open DevTools → Network and Performance tabs. Flag any page load > 3s or interaction > 300ms for investigation.
|
|
418
|
+
> 3. **Monitoring & alerting**: Trigger a known error (e.g. call a bad endpoint, simulate a slow query) and confirm:
|
|
419
|
+
> - The error appears in the monitoring dashboard within 1–2 minutes.
|
|
420
|
+
> - The configured alert fires (Slack, PagerDuty, email, etc.).
|
|
421
|
+
> 4. **Security spot check**: As a logged-in user, manually attempt to access another user's data by modifying IDs in URLs or request bodies. Confirm the API returns 403/404 and does not leak data.
|
|
422
|
+
> 5. **Backup restore drill**: Restore the latest backup to an isolated environment. Confirm the app starts, data is intact, and the most recent known records are present.
|
|
423
|
+
> 6. **Runbook walkthrough**: A team member who did NOT write the runbook follows it cold to simulate an on-call incident. Note any steps that are unclear, missing, or outdated.
|
|
424
|
+
>
|
|
425
|
+
> **Reviewers**: Tech Lead + Security + Product Owner + Ops/DevOps
|
|
426
|
+
>
|
|
427
|
+
> ---
|
|
428
|
+
|
|
232
429
|
[Repeat for all tasks, grouped by phase]
|
|
233
430
|
|
|
234
431
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../src/cleanup/coordinator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../src/cleanup/coordinator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,EAAwB,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGlF,OAAO,EAA+B,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAWjG;;;GAGG;AACH,wBAAsB,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC,CAyCjE;AA6ED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,gBAAgB,GAAG,IAAI,CAEhE;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,GAAG,uBAAuB,CAE3E;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAgC/C"}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* This module manages both log and session cleanup schedulers from a single
|
|
5
5
|
* entry point, ensuring consistent initialization and lifecycle management.
|
|
6
6
|
*/
|
|
7
|
+
import path from 'path';
|
|
7
8
|
import { getConfigLoader } from '../config/loader.js';
|
|
8
9
|
import { CleanupScheduler } from '../output/cleanup-scheduler.js';
|
|
9
10
|
import { getLogger } from '../output/logger.js';
|
|
10
11
|
import { RetentionManager } from '../output/retention-manager.js';
|
|
11
|
-
import path from 'path';
|
|
12
12
|
import { SessionCleanupScheduler } from '../session/cleanup-scheduler.js';
|
|
13
13
|
import { SessionRetentionManager } from '../session/retention-manager.js';
|
|
14
14
|
import { SessionStore } from '../session/store.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator.js","sourceRoot":"","sources":["../../src/cleanup/coordinator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"coordinator.js","sourceRoot":"","sources":["../../src/cleanup/coordinator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAwB,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAwB,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAA+B,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACjG,OAAO,EAAE,uBAAuB,EAA+B,MAAM,2BAA2B,CAAC;AACjG,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,6BAA6B;AAC7B,IAAI,mBAAmB,GAA4B,IAAI,CAAC;AACxD,IAAI,uBAAuB,GAAmC,IAAI,CAAC;AACnE,IAAI,aAAa,GAAG,KAAK,CAAC;AAC1B,IAAI,qBAAqB,GAAyB,IAAI,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B;IAChD,6CAA6C;IAC7C,IAAI,aAAa,EAAE,CAAC;QACnB,OAAO;IACR,CAAC;IAED,gDAAgD;IAChD,IAAI,qBAAqB,EAAE,CAAC;QAC3B,OAAO,qBAAqB,CAAC;IAC9B,CAAC;IAED,uBAAuB;IACvB,qBAAqB,GAAG,CAAC,KAAK,IAAI,EAAE;QACnC,IAAI,CAAC;YACJ,MAA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AAC;IACtB,qBAAqB,GAAG,IAAI,CAAC;AAC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../src/cli/autocomplete.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../src/cli/autocomplete.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAEhD,qBAAa,qBAAqB;IACjC,OAAO,CAAC,aAAa,CAAgB;gBAEzB,aAAa,CAAC,EAAE,aAAa;IAIzC;;OAEG;IACH,WAAW,IAAI,IAAI,GAAG,SAAS;IAO/B;;OAEG;YACW,WAAW;IAKzB;;OAEG;YACW,sBAAsB;IAoEpC;;OAEG;YACW,qBAAqB;IAuDnC;;OAEG;YACW,sBAAsB;IAuDpC;;OAEG;IACG,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAejD;;OAEG;IACH,OAAO,CAAC,cAAc;IAiBtB;;OAEG;IACG,OAAO,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAiC/C;;OAEG;IACH,OAAO,CAAC,2BAA2B;IA2CnC;;OAEG;IACG,SAAS,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IA2BjD;;OAEG;IACG,WAAW,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC;IAiBtD;;OAEG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAwC7B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAuCxE"}
|
package/dist/cli/autocomplete.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates completion scripts for bash, zsh, and fish shells
|
|
5
5
|
*/
|
|
6
|
-
import { CommandLoader } from '../executor/command-loader.js';
|
|
7
6
|
import * as fs from 'fs/promises';
|
|
8
7
|
import * as os from 'os';
|
|
8
|
+
import * as path from 'path';
|
|
9
|
+
import { CommandLoader } from '../executor/command-loader.js';
|
|
9
10
|
import { getColorAdapter } from '../output/color-adapter.interface.js';
|
|
10
11
|
import { getConsoleOutput } from '../output/console-output.js';
|
|
11
|
-
import * as path from 'path';
|
|
12
12
|
export class AutocompleteGenerator {
|
|
13
13
|
commandLoader;
|
|
14
14
|
constructor(commandLoader) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.js","sourceRoot":"","sources":["../../src/cli/autocomplete.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"autocomplete.js","sourceRoot":"","sources":["../../src/cli/autocomplete.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAMzD,MAAM,OAAO,qBAAqB;IACzB,aAAa,CAAgB;IAErC,YAAY,aAA6B;QACxC,IAAI,CAAC,aAAa,GAAG,aAAa,IAAI,IAAI,aAAa,EAAE,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,WAAW;QACV,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,OAA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AAC,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { CommandIsolationExecutor } from '../executor/command-isolation.executor
|
|
|
11
11
|
import { CommandLoader } from '../executor/command-loader.js';
|
|
12
12
|
import { PipelineExecutor } from '../executor/pipeline.js';
|
|
13
13
|
import { PromptLoader } from '../executor/prompt-loader.js';
|
|
14
|
-
import { AgentSelectionAnalyticsService, type DynamicAgentResolverService } from '../services/index.js';
|
|
14
|
+
import { type AgentSelectionAnalyticsService, type DynamicAgentResolverService } from '../services/index.js';
|
|
15
15
|
import { SessionLifecycle } from '../session/lifecycle.js';
|
|
16
16
|
import { DocumentOutputProcessor } from './document-output-processor.js';
|
|
17
17
|
import { CLIProviderResolver } from './provider-resolver.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-executor.d.ts","sourceRoot":"","sources":["../../src/cli/command-executor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAI1D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKtD,OAAO,EACN,8BAA8B,
|
|
1
|
+
{"version":3,"file":"command-executor.d.ts","sourceRoot":"","sources":["../../src/cli/command-executor.ts"],"names":[],"mappings":"AAAA;;;GAGG;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OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,aAAa,CAAC;IAwG5F;;OAEG;YACW,oBAAoB;IA+BlC;;OAEG;YACW,sBAAsB;IAapC;;OAEG;YACW,mBAAmB;IAiBjC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAwB3B;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAIvC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAY7B;;OAEG;YACW,sBAAsB;IAoBpC;;OAEG;YACW,qBAAqB;IAqBnC;;OAEG;YACW,kBAAkB;IAmBhC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAkD1B;;;OAGG;IACH,OAAO,CAAC,yBAAyB;IAkBjC;;;OAGG;IACH,OAAO,CAAC,8BAA8B;IAoCtC;;;OAGG;IACH,OAAO,CAAC,yBAAyB;CA8BjC"}
|
|
@@ -12,7 +12,7 @@ import { StageExecutor } from '../executor/stage-executor.js';
|
|
|
12
12
|
import { getConsoleOutput } from '../output/console-output.js';
|
|
13
13
|
import { getRenderer } from '../output/markdown.js';
|
|
14
14
|
import { createGitStashProtection } from '../services/git-stash-protection.service.js';
|
|
15
|
-
import {
|
|
15
|
+
import { DocumentDetectorService, DocumentPathResolverService, DocumentTemplateService, DocumentWriterService, getAgentSelectionAnalytics } from '../services/index.js';
|
|
16
16
|
import { SessionLifecycle } from '../session/lifecycle.js';
|
|
17
17
|
import { SessionStore } from '../session/store.js';
|
|
18
18
|
import { getPromptAdapter } from '../ui/prompt-adapter.interface.js';
|
|
@@ -159,7 +159,7 @@ export class CommandExecutor {
|
|
|
159
159
|
// Enable analytics by default for agent selection tracking, or use config flag
|
|
160
160
|
const analyticsEnabled = config.features?.agent_selection_analytics ?? true;
|
|
161
161
|
if (analyticsEnabled) {
|
|
162
|
-
const analyticsService =
|
|
162
|
+
const analyticsService = getAgentSelectionAnalytics();
|
|
163
163
|
this.analyticsService = analyticsService;
|
|
164
164
|
// Update coordinator with analytics service
|
|
165
165
|
if (this.executionCoordinator) {
|
|
@@ -361,7 +361,7 @@ export class CommandExecutor {
|
|
|
361
361
|
async handleSuccessfulResult(ctx) {
|
|
362
362
|
this.resultPresenter.displaySuccess(ctx.commandName, ctx.result.outputs, ctx.duration, ctx.sessionManager.getSession().session_id, ctx.resolvedCommand.command.agent, ctx.resolvedCommand.command.model, ctx.tokenBreakdown, ctx.totalSessionTokens);
|
|
363
363
|
if (ctx.isDryRun) {
|
|
364
|
-
await this.
|
|
364
|
+
await this.sessionManager.completeSession();
|
|
365
365
|
return ctx.result;
|
|
366
366
|
}
|
|
367
367
|
return this.processDocumentOutput(ctx);
|
|
@@ -380,7 +380,7 @@ export class CommandExecutor {
|
|
|
380
380
|
await this.sessionLifecycle.fail(failedResult.error);
|
|
381
381
|
return failedResult;
|
|
382
382
|
}
|
|
383
|
-
await this.
|
|
383
|
+
await this.sessionManager.completeSession();
|
|
384
384
|
return ctx.result;
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
@@ -394,9 +394,26 @@ export class CommandExecutor {
|
|
|
394
394
|
* Update session state after execution (history, context, caches)
|
|
395
395
|
*/
|
|
396
396
|
updateSessionState(commandName, options, result, duration, tokenBreakdown, sessionManager) {
|
|
397
|
-
// Extract
|
|
397
|
+
// Extract optimisation and quality metrics from outputs
|
|
398
398
|
const optimizationMetrics = result.outputs['optimization_metrics'];
|
|
399
|
-
const
|
|
399
|
+
const baseQualityMetrics = result.outputs['quality_metrics'];
|
|
400
|
+
// Aggregate tool failure and loop exhaustion counts from per-stage execution quality metadata
|
|
401
|
+
// and merge them into the quality metrics so they persist in the session store.
|
|
402
|
+
const toolFailures = result.stages.reduce((sum, s) => {
|
|
403
|
+
const eq = s.metadata?.['executionQuality'];
|
|
404
|
+
return sum + (typeof eq?.['toolFailureCount'] === 'number' ? eq['toolFailureCount'] : 0);
|
|
405
|
+
}, 0);
|
|
406
|
+
const toolLoopExhaustions = result.stages.reduce((sum, s) => {
|
|
407
|
+
const eq = s.metadata?.['executionQuality'];
|
|
408
|
+
return sum + (eq?.['wasLoopExhausted'] === true ? 1 : 0);
|
|
409
|
+
}, 0);
|
|
410
|
+
const qualityMetrics = toolFailures > 0 || toolLoopExhaustions > 0
|
|
411
|
+
? {
|
|
412
|
+
...baseQualityMetrics,
|
|
413
|
+
tool_failures: toolFailures || undefined,
|
|
414
|
+
tool_loop_exhaustions: toolLoopExhaustions || undefined
|
|
415
|
+
}
|
|
416
|
+
: baseQualityMetrics;
|
|
400
417
|
sessionManager.addCommand(commandName, options.args, options.flags, result.outputs, result.success, duration, result.error, tokenBreakdown.total, optimizationMetrics, qualityMetrics);
|
|
401
418
|
sessionManager.mergeContext(result.outputs);
|
|
402
419
|
this.saveLoaderCachesToSession(sessionManager);
|