@backendkit-labs/agent-coding 0.28.5 → 0.30.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 +4 -0
- package/dist/__tests__/cli-baseline.test.d.ts +2 -0
- package/dist/__tests__/cli-baseline.test.d.ts.map +1 -0
- package/dist/__tests__/cli-baseline.test.js +114 -0
- package/dist/__tests__/cli-baseline.test.js.map +1 -0
- package/dist/__tests__/context-hooks.test.d.ts +2 -0
- package/dist/__tests__/context-hooks.test.d.ts.map +1 -0
- package/dist/__tests__/context-hooks.test.js +21 -0
- package/dist/__tests__/context-hooks.test.js.map +1 -0
- package/dist/__tests__/createCodingEngine.forwarding.test.js +2 -1
- package/dist/__tests__/createCodingEngine.forwarding.test.js.map +1 -1
- package/dist/__tests__/sandbox.test.js +1 -1
- package/dist/__tests__/sandbox.test.js.map +1 -1
- package/dist/__tests__/workspace-trust.test.js +7 -5
- package/dist/__tests__/workspace-trust.test.js.map +1 -1
- package/dist/agents/AgentLoader.d.ts.map +1 -1
- package/dist/agents/AgentLoader.js +2 -1
- package/dist/agents/AgentLoader.js.map +1 -1
- package/dist/cli/agent-discovery/AgentPackageLoader.d.ts +22 -0
- package/dist/cli/agent-discovery/AgentPackageLoader.d.ts.map +1 -0
- package/dist/cli/agent-discovery/AgentPackageLoader.js +100 -0
- package/dist/cli/agent-discovery/AgentPackageLoader.js.map +1 -0
- package/dist/cli/agent-discovery/RemoteAgentRegistry.d.ts +31 -0
- package/dist/cli/agent-discovery/RemoteAgentRegistry.d.ts.map +1 -0
- package/dist/cli/agent-discovery/RemoteAgentRegistry.js +106 -0
- package/dist/cli/agent-discovery/RemoteAgentRegistry.js.map +1 -0
- package/dist/cli/agent-discovery/__tests__/RemoteAgentRegistry.ssrf.test.d.ts +2 -0
- package/dist/cli/agent-discovery/__tests__/RemoteAgentRegistry.ssrf.test.d.ts.map +1 -0
- package/dist/cli/agent-discovery/__tests__/RemoteAgentRegistry.ssrf.test.js +34 -0
- package/dist/cli/agent-discovery/__tests__/RemoteAgentRegistry.ssrf.test.js.map +1 -0
- package/dist/cli/agent-discovery/__tests__/discoverAgents.test.d.ts +2 -0
- package/dist/cli/agent-discovery/__tests__/discoverAgents.test.d.ts.map +1 -0
- package/dist/cli/agent-discovery/__tests__/discoverAgents.test.js +147 -0
- package/dist/cli/agent-discovery/__tests__/discoverAgents.test.js.map +1 -0
- package/dist/cli/agent-discovery/__tests__/download-guard.test.d.ts +2 -0
- package/dist/cli/agent-discovery/__tests__/download-guard.test.d.ts.map +1 -0
- package/dist/cli/agent-discovery/__tests__/download-guard.test.js +47 -0
- package/dist/cli/agent-discovery/__tests__/download-guard.test.js.map +1 -0
- package/dist/cli/agent-discovery/discoverAgents.d.ts +21 -0
- package/dist/cli/agent-discovery/discoverAgents.d.ts.map +1 -0
- package/dist/cli/agent-discovery/discoverAgents.js +74 -0
- package/dist/cli/agent-discovery/discoverAgents.js.map +1 -0
- package/dist/cli/agent-discovery/download-guard.d.ts +20 -0
- package/dist/cli/agent-discovery/download-guard.d.ts.map +1 -0
- package/dist/cli/agent-discovery/download-guard.js +84 -0
- package/dist/cli/agent-discovery/download-guard.js.map +1 -0
- package/dist/cli/agent-discovery/index.d.ts +5 -0
- package/dist/cli/agent-discovery/index.d.ts.map +1 -0
- package/dist/cli/agent-discovery/index.js +12 -0
- package/dist/cli/agent-discovery/index.js.map +1 -0
- package/dist/cli/agent-discovery/types.d.ts +48 -0
- package/dist/cli/agent-discovery/types.d.ts.map +1 -0
- package/dist/cli/agent-discovery/types.js +3 -0
- package/dist/cli/agent-discovery/types.js.map +1 -0
- package/dist/cli/bootstrap/GlobalSeed.d.ts +46 -0
- package/dist/cli/bootstrap/GlobalSeed.d.ts.map +1 -0
- package/dist/cli/bootstrap/GlobalSeed.js +285 -0
- package/dist/cli/bootstrap/GlobalSeed.js.map +1 -0
- package/dist/cli/bootstrap/config.d.ts +24 -0
- package/dist/cli/bootstrap/config.d.ts.map +1 -0
- package/dist/cli/bootstrap/config.js +71 -0
- package/dist/cli/bootstrap/config.js.map +1 -0
- package/dist/cli/checkpoint/index.d.ts +17 -0
- package/dist/cli/checkpoint/index.d.ts.map +1 -0
- package/dist/cli/checkpoint/index.js +207 -0
- package/dist/cli/checkpoint/index.js.map +1 -0
- package/dist/cli/commands/builtin.d.ts +7 -0
- package/dist/cli/commands/builtin.d.ts.map +1 -0
- package/dist/cli/commands/builtin.js +962 -0
- package/dist/cli/commands/builtin.js.map +1 -0
- package/dist/cli/context/__tests__/formatPipeline.test.d.ts +2 -0
- package/dist/cli/context/__tests__/formatPipeline.test.d.ts.map +1 -0
- package/dist/cli/context/__tests__/formatPipeline.test.js +25 -0
- package/dist/cli/context/__tests__/formatPipeline.test.js.map +1 -0
- package/dist/cli/context/index.d.ts +8 -0
- package/dist/cli/context/index.d.ts.map +1 -0
- package/dist/cli/context/index.js +8 -0
- package/dist/cli/context/index.js.map +1 -0
- package/dist/cli/context/pipeline.d.ts +46 -0
- package/dist/cli/context/pipeline.d.ts.map +1 -0
- package/dist/cli/context/pipeline.js +112 -0
- package/dist/cli/context/pipeline.js.map +1 -0
- package/dist/cli/context/stages/stage-instructions.d.ts +12 -0
- package/dist/cli/context/stages/stage-instructions.d.ts.map +1 -0
- package/dist/cli/context/stages/stage-instructions.js +76 -0
- package/dist/cli/context/stages/stage-instructions.js.map +1 -0
- package/dist/cli/context/stages/stage-lessons.d.ts +13 -0
- package/dist/cli/context/stages/stage-lessons.d.ts.map +1 -0
- package/dist/cli/context/stages/stage-lessons.js +83 -0
- package/dist/cli/context/stages/stage-lessons.js.map +1 -0
- package/dist/cli/context/stages/stage-manifest.d.ts +11 -0
- package/dist/cli/context/stages/stage-manifest.d.ts.map +1 -0
- package/dist/cli/context/stages/stage-manifest.js +62 -0
- package/dist/cli/context/stages/stage-manifest.js.map +1 -0
- package/dist/cli/context/stages/stage-project.d.ts +10 -0
- package/dist/cli/context/stages/stage-project.d.ts.map +1 -0
- package/dist/cli/context/stages/stage-project.js +55 -0
- package/dist/cli/context/stages/stage-project.js.map +1 -0
- package/dist/cli/context/stages/stage-session.d.ts +12 -0
- package/dist/cli/context/stages/stage-session.d.ts.map +1 -0
- package/dist/cli/context/stages/stage-session.js +69 -0
- package/dist/cli/context/stages/stage-session.js.map +1 -0
- package/dist/cli/file-sources.d.ts +17 -0
- package/dist/cli/file-sources.d.ts.map +1 -0
- package/dist/cli/file-sources.js +42 -0
- package/dist/cli/file-sources.js.map +1 -0
- package/dist/cli/index.d.ts +26 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +55 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/skills/__tests__/SkillLoader.test.d.ts +2 -0
- package/dist/cli/skills/__tests__/SkillLoader.test.d.ts.map +1 -0
- package/dist/cli/skills/__tests__/SkillLoader.test.js +285 -0
- package/dist/cli/skills/__tests__/SkillLoader.test.js.map +1 -0
- package/dist/cli/skills/__tests__/SkillManager.safety.test.d.ts +2 -0
- package/dist/cli/skills/__tests__/SkillManager.safety.test.d.ts.map +1 -0
- package/dist/cli/skills/__tests__/SkillManager.safety.test.js +87 -0
- package/dist/cli/skills/__tests__/SkillManager.safety.test.js.map +1 -0
- package/dist/cli/skills/__tests__/stack.test.d.ts +2 -0
- package/dist/cli/skills/__tests__/stack.test.d.ts.map +1 -0
- package/dist/cli/skills/__tests__/stack.test.js +81 -0
- package/dist/cli/skills/__tests__/stack.test.js.map +1 -0
- package/dist/cli/skills/loader.d.ts +42 -0
- package/dist/cli/skills/loader.d.ts.map +1 -0
- package/dist/cli/skills/loader.js +158 -0
- package/dist/cli/skills/loader.js.map +1 -0
- package/dist/cli/skills/manager.d.ts +97 -0
- package/dist/cli/skills/manager.d.ts.map +1 -0
- package/dist/cli/skills/manager.js +304 -0
- package/dist/cli/skills/manager.js.map +1 -0
- package/dist/cli/skills/parse-md-skill.d.ts +14 -0
- package/dist/cli/skills/parse-md-skill.d.ts.map +1 -0
- package/dist/cli/skills/parse-md-skill.js +86 -0
- package/dist/cli/skills/parse-md-skill.js.map +1 -0
- package/dist/cli/skills/providers/github.d.ts +21 -0
- package/dist/cli/skills/providers/github.d.ts.map +1 -0
- package/dist/cli/skills/providers/github.js +146 -0
- package/dist/cli/skills/providers/github.js.map +1 -0
- package/dist/cli/skills/providers/index.d.ts +6 -0
- package/dist/cli/skills/providers/index.d.ts.map +1 -0
- package/dist/cli/skills/providers/index.js +12 -0
- package/dist/cli/skills/providers/index.js.map +1 -0
- package/dist/cli/skills/providers/local.d.ts +16 -0
- package/dist/cli/skills/providers/local.d.ts.map +1 -0
- package/dist/cli/skills/providers/local.js +91 -0
- package/dist/cli/skills/providers/local.js.map +1 -0
- package/dist/cli/skills/providers/obsidian.d.ts +31 -0
- package/dist/cli/skills/providers/obsidian.d.ts.map +1 -0
- package/dist/cli/skills/providers/obsidian.js +141 -0
- package/dist/cli/skills/providers/obsidian.js.map +1 -0
- package/dist/cli/skills/providers/skills-sh.d.ts +32 -0
- package/dist/cli/skills/providers/skills-sh.d.ts.map +1 -0
- package/dist/cli/skills/providers/skills-sh.js +53 -0
- package/dist/cli/skills/providers/skills-sh.js.map +1 -0
- package/dist/cli/skills/providers/types.d.ts +25 -0
- package/dist/cli/skills/providers/types.d.ts.map +1 -0
- package/dist/cli/skills/providers/types.js +3 -0
- package/dist/cli/skills/providers/types.js.map +1 -0
- package/dist/cli/skills/safe-name.d.ts +2 -0
- package/dist/cli/skills/safe-name.d.ts.map +1 -0
- package/dist/cli/skills/safe-name.js +22 -0
- package/dist/cli/skills/safe-name.js.map +1 -0
- package/dist/cli/skills/stack.d.ts +3 -0
- package/dist/cli/skills/stack.d.ts.map +1 -0
- package/dist/cli/skills/stack.js +64 -0
- package/dist/cli/skills/stack.js.map +1 -0
- package/dist/cli/skills/types.d.ts +28 -0
- package/dist/cli/skills/types.d.ts.map +1 -0
- package/dist/cli/skills/types.js +3 -0
- package/dist/cli/skills/types.js.map +1 -0
- package/dist/cli/trust/__tests__/workspace-trust.test.d.ts +2 -0
- package/dist/cli/trust/__tests__/workspace-trust.test.d.ts.map +1 -0
- package/dist/cli/trust/__tests__/workspace-trust.test.js +252 -0
- package/dist/cli/trust/__tests__/workspace-trust.test.js.map +1 -0
- package/dist/cli/trust/workspace-trust.d.ts +49 -0
- package/dist/cli/trust/workspace-trust.d.ts.map +1 -0
- package/dist/cli/trust/workspace-trust.js +163 -0
- package/dist/cli/trust/workspace-trust.js.map +1 -0
- package/dist/cli/workspace/index.d.ts +68 -0
- package/dist/cli/workspace/index.d.ts.map +1 -0
- package/dist/cli/workspace/index.js +231 -0
- package/dist/cli/workspace/index.js.map +1 -0
- package/dist/context-hooks.d.ts +11 -0
- package/dist/context-hooks.d.ts.map +1 -0
- package/dist/context-hooks.js +23 -0
- package/dist/context-hooks.js.map +1 -0
- package/dist/context-services.d.ts +12 -0
- package/dist/context-services.d.ts.map +1 -0
- package/dist/context-services.js +20 -0
- package/dist/context-services.js.map +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -12
- package/dist/index.js.map +1 -1
- package/dist/orchestration/capability-matrix.d.ts +1 -1
- package/dist/orchestration/capability-matrix.d.ts.map +1 -1
- package/dist/pipeline/__tests__/AgentEngine.orchestratorFailure.test.d.ts +2 -0
- package/dist/pipeline/__tests__/AgentEngine.orchestratorFailure.test.d.ts.map +1 -0
- package/dist/pipeline/__tests__/AgentEngine.orchestratorFailure.test.js +42 -0
- package/dist/pipeline/__tests__/AgentEngine.orchestratorFailure.test.js.map +1 -0
- package/dist/pipeline/__tests__/coding-pipeline-hooks.test.d.ts +2 -0
- package/dist/pipeline/__tests__/coding-pipeline-hooks.test.d.ts.map +1 -0
- package/dist/pipeline/__tests__/coding-pipeline-hooks.test.js +64 -0
- package/dist/pipeline/__tests__/coding-pipeline-hooks.test.js.map +1 -0
- package/dist/pipeline/__tests__/engine-brief.test.d.ts +2 -0
- package/dist/pipeline/__tests__/engine-brief.test.d.ts.map +1 -0
- package/dist/pipeline/__tests__/engine-brief.test.js +159 -0
- package/dist/pipeline/__tests__/engine-brief.test.js.map +1 -0
- package/dist/pipeline/__tests__/qa-orchestrator.test.d.ts +2 -0
- package/dist/pipeline/__tests__/qa-orchestrator.test.d.ts.map +1 -0
- package/dist/pipeline/__tests__/qa-orchestrator.test.js +276 -0
- package/dist/pipeline/__tests__/qa-orchestrator.test.js.map +1 -0
- package/dist/pipeline/coding-pipeline-hooks.d.ts +28 -0
- package/dist/pipeline/coding-pipeline-hooks.d.ts.map +1 -0
- package/dist/pipeline/coding-pipeline-hooks.js +91 -0
- package/dist/pipeline/coding-pipeline-hooks.js.map +1 -0
- package/dist/pipeline/index.d.ts +13 -0
- package/dist/pipeline/index.d.ts.map +1 -0
- package/dist/pipeline/index.js +44 -0
- package/dist/pipeline/index.js.map +1 -0
- package/dist/pipeline/orchestration/__tests__/agent-id-consistency.test.d.ts +11 -0
- package/dist/pipeline/orchestration/__tests__/agent-id-consistency.test.d.ts.map +1 -0
- package/dist/pipeline/orchestration/__tests__/agent-id-consistency.test.js +105 -0
- package/dist/pipeline/orchestration/__tests__/agent-id-consistency.test.js.map +1 -0
- package/dist/pipeline/orchestration/__tests__/fsm-commit-skipped.test.d.ts +2 -0
- package/dist/pipeline/orchestration/__tests__/fsm-commit-skipped.test.d.ts.map +1 -0
- package/dist/pipeline/orchestration/__tests__/fsm-commit-skipped.test.js +21 -0
- package/dist/pipeline/orchestration/__tests__/fsm-commit-skipped.test.js.map +1 -0
- package/dist/pipeline/orchestration/__tests__/fsm-critical-path.test.d.ts +9 -0
- package/dist/pipeline/orchestration/__tests__/fsm-critical-path.test.d.ts.map +1 -0
- package/dist/pipeline/orchestration/__tests__/fsm-critical-path.test.js +101 -0
- package/dist/pipeline/orchestration/__tests__/fsm-critical-path.test.js.map +1 -0
- package/dist/pipeline/orchestration/__tests__/fsm-rework-and-regression.test.d.ts +2 -0
- package/dist/pipeline/orchestration/__tests__/fsm-rework-and-regression.test.d.ts.map +1 -0
- package/dist/pipeline/orchestration/__tests__/fsm-rework-and-regression.test.js +54 -0
- package/dist/pipeline/orchestration/__tests__/fsm-rework-and-regression.test.js.map +1 -0
- package/dist/pipeline/orchestration/__tests__/intent-detector-llm.test.d.ts +2 -0
- package/dist/pipeline/orchestration/__tests__/intent-detector-llm.test.d.ts.map +1 -0
- package/dist/pipeline/orchestration/__tests__/intent-detector-llm.test.js +57 -0
- package/dist/pipeline/orchestration/__tests__/intent-detector-llm.test.js.map +1 -0
- package/dist/pipeline/orchestration/__tests__/intent-detector-scores.test.d.ts +9 -0
- package/dist/pipeline/orchestration/__tests__/intent-detector-scores.test.d.ts.map +1 -0
- package/dist/pipeline/orchestration/__tests__/intent-detector-scores.test.js +43 -0
- package/dist/pipeline/orchestration/__tests__/intent-detector-scores.test.js.map +1 -0
- package/dist/pipeline/orchestration/__tests__/reflection-cycle.test.d.ts +10 -0
- package/dist/pipeline/orchestration/__tests__/reflection-cycle.test.d.ts.map +1 -0
- package/dist/pipeline/orchestration/__tests__/reflection-cycle.test.js +264 -0
- package/dist/pipeline/orchestration/__tests__/reflection-cycle.test.js.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-ci-blocker.d.ts +31 -0
- package/dist/pipeline/orchestration/audit/audit-ci-blocker.d.ts.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-ci-blocker.js +120 -0
- package/dist/pipeline/orchestration/audit/audit-ci-blocker.js.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-finding-tracer.d.ts +33 -0
- package/dist/pipeline/orchestration/audit/audit-finding-tracer.d.ts.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-finding-tracer.js +126 -0
- package/dist/pipeline/orchestration/audit/audit-finding-tracer.js.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-lessons-learned.d.ts +27 -0
- package/dist/pipeline/orchestration/audit/audit-lessons-learned.d.ts.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-lessons-learned.js +155 -0
- package/dist/pipeline/orchestration/audit/audit-lessons-learned.js.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-pending-issues.d.ts +21 -0
- package/dist/pipeline/orchestration/audit/audit-pending-issues.d.ts.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-pending-issues.js +110 -0
- package/dist/pipeline/orchestration/audit/audit-pending-issues.js.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-reflection-bridge.d.ts +39 -0
- package/dist/pipeline/orchestration/audit/audit-reflection-bridge.d.ts.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-reflection-bridge.js +65 -0
- package/dist/pipeline/orchestration/audit/audit-reflection-bridge.js.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-report-renderer.d.ts +30 -0
- package/dist/pipeline/orchestration/audit/audit-report-renderer.d.ts.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-report-renderer.js +249 -0
- package/dist/pipeline/orchestration/audit/audit-report-renderer.js.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-report-version-manager.d.ts +52 -0
- package/dist/pipeline/orchestration/audit/audit-report-version-manager.d.ts.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-report-version-manager.js +144 -0
- package/dist/pipeline/orchestration/audit/audit-report-version-manager.js.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-silent-gates-buffer.d.ts +37 -0
- package/dist/pipeline/orchestration/audit/audit-silent-gates-buffer.d.ts.map +1 -0
- package/dist/pipeline/orchestration/audit/audit-silent-gates-buffer.js +129 -0
- package/dist/pipeline/orchestration/audit/audit-silent-gates-buffer.js.map +1 -0
- package/dist/pipeline/orchestration/audit/index.d.ts +17 -0
- package/dist/pipeline/orchestration/audit/index.d.ts.map +1 -0
- package/dist/pipeline/orchestration/audit/index.js +26 -0
- package/dist/pipeline/orchestration/audit/index.js.map +1 -0
- package/dist/pipeline/orchestration/audit/types.d.ts +79 -0
- package/dist/pipeline/orchestration/audit/types.d.ts.map +1 -0
- package/dist/pipeline/orchestration/audit/types.js +10 -0
- package/dist/pipeline/orchestration/audit/types.js.map +1 -0
- package/dist/pipeline/orchestration/audit-reporter.d.ts +133 -0
- package/dist/pipeline/orchestration/audit-reporter.d.ts.map +1 -0
- package/dist/pipeline/orchestration/audit-reporter.js +322 -0
- package/dist/pipeline/orchestration/audit-reporter.js.map +1 -0
- package/dist/pipeline/orchestration/config-loader.d.ts +51 -0
- package/dist/pipeline/orchestration/config-loader.d.ts.map +1 -0
- package/dist/pipeline/orchestration/config-loader.js +215 -0
- package/dist/pipeline/orchestration/config-loader.js.map +1 -0
- package/dist/pipeline/orchestration/domain-detector.d.ts +36 -0
- package/dist/pipeline/orchestration/domain-detector.d.ts.map +1 -0
- package/dist/pipeline/orchestration/domain-detector.js +157 -0
- package/dist/pipeline/orchestration/domain-detector.js.map +1 -0
- package/dist/pipeline/orchestration/fsm.d.ts +92 -0
- package/dist/pipeline/orchestration/fsm.d.ts.map +1 -0
- package/dist/pipeline/orchestration/fsm.js +243 -0
- package/dist/pipeline/orchestration/fsm.js.map +1 -0
- package/dist/pipeline/orchestration/gate-resolver.d.ts +52 -0
- package/dist/pipeline/orchestration/gate-resolver.d.ts.map +1 -0
- package/dist/pipeline/orchestration/gate-resolver.js +120 -0
- package/dist/pipeline/orchestration/gate-resolver.js.map +1 -0
- package/dist/pipeline/orchestration/index.d.ts +16 -0
- package/dist/pipeline/orchestration/index.d.ts.map +1 -0
- package/dist/pipeline/orchestration/index.js +32 -0
- package/dist/pipeline/orchestration/index.js.map +1 -0
- package/dist/pipeline/orchestration/intent-detector.d.ts +37 -0
- package/dist/pipeline/orchestration/intent-detector.d.ts.map +1 -0
- package/dist/pipeline/orchestration/intent-detector.js +248 -0
- package/dist/pipeline/orchestration/intent-detector.js.map +1 -0
- package/dist/pipeline/orchestration/keyword-match.d.ts +17 -0
- package/dist/pipeline/orchestration/keyword-match.d.ts.map +1 -0
- package/dist/pipeline/orchestration/keyword-match.js +26 -0
- package/dist/pipeline/orchestration/keyword-match.js.map +1 -0
- package/dist/pipeline/orchestration/orchestrator.d.ts +158 -0
- package/dist/pipeline/orchestration/orchestrator.d.ts.map +1 -0
- package/dist/pipeline/orchestration/orchestrator.js +414 -0
- package/dist/pipeline/orchestration/orchestrator.js.map +1 -0
- package/dist/pipeline/orchestration/policy-engine.d.ts +54 -0
- package/dist/pipeline/orchestration/policy-engine.d.ts.map +1 -0
- package/dist/pipeline/orchestration/policy-engine.js +278 -0
- package/dist/pipeline/orchestration/policy-engine.js.map +1 -0
- package/dist/pipeline/orchestration/risk-scorer.d.ts +38 -0
- package/dist/pipeline/orchestration/risk-scorer.d.ts.map +1 -0
- package/dist/pipeline/orchestration/risk-scorer.js +145 -0
- package/dist/pipeline/orchestration/risk-scorer.js.map +1 -0
- package/dist/pipeline/orchestration/task-context.d.ts +205 -0
- package/dist/pipeline/orchestration/task-context.d.ts.map +1 -0
- package/dist/pipeline/orchestration/task-context.js +162 -0
- package/dist/pipeline/orchestration/task-context.js.map +1 -0
- package/dist/pipeline/orchestration/types.d.ts +111 -0
- package/dist/pipeline/orchestration/types.d.ts.map +1 -0
- package/dist/pipeline/orchestration/types.js +37 -0
- package/dist/pipeline/orchestration/types.js.map +1 -0
- package/dist/pipeline/qa/__tests__/QAService.test.d.ts +2 -0
- package/dist/pipeline/qa/__tests__/QAService.test.d.ts.map +1 -0
- package/dist/pipeline/qa/__tests__/QAService.test.js +170 -0
- package/dist/pipeline/qa/__tests__/QAService.test.js.map +1 -0
- package/dist/pipeline/qa/__tests__/QAService.verdict.test.d.ts +2 -0
- package/dist/pipeline/qa/__tests__/QAService.verdict.test.d.ts.map +1 -0
- package/dist/pipeline/qa/__tests__/QAService.verdict.test.js +39 -0
- package/dist/pipeline/qa/__tests__/QAService.verdict.test.js.map +1 -0
- package/dist/pipeline/qa/index.d.ts +3 -0
- package/dist/pipeline/qa/index.d.ts.map +1 -0
- package/dist/pipeline/qa/index.js +6 -0
- package/dist/pipeline/qa/index.js.map +1 -0
- package/dist/pipeline/qa/qa-service.d.ts +33 -0
- package/dist/pipeline/qa/qa-service.d.ts.map +1 -0
- package/dist/pipeline/qa/qa-service.js +239 -0
- package/dist/pipeline/qa/qa-service.js.map +1 -0
- package/dist/pipeline/qa-orchestrator.d.ts +60 -0
- package/dist/pipeline/qa-orchestrator.d.ts.map +1 -0
- package/dist/pipeline/qa-orchestrator.js +177 -0
- package/dist/pipeline/qa-orchestrator.js.map +1 -0
- package/dist/pipeline/reflection/domains/agent-domain.d.ts +40 -0
- package/dist/pipeline/reflection/domains/agent-domain.d.ts.map +1 -0
- package/dist/pipeline/reflection/domains/agent-domain.js +161 -0
- package/dist/pipeline/reflection/domains/agent-domain.js.map +1 -0
- package/dist/pipeline/reflection/domains/audit-domain.d.ts +46 -0
- package/dist/pipeline/reflection/domains/audit-domain.d.ts.map +1 -0
- package/dist/pipeline/reflection/domains/audit-domain.js +241 -0
- package/dist/pipeline/reflection/domains/audit-domain.js.map +1 -0
- package/dist/pipeline/reflection/domains/bootstrap-domain.d.ts +40 -0
- package/dist/pipeline/reflection/domains/bootstrap-domain.d.ts.map +1 -0
- package/dist/pipeline/reflection/domains/bootstrap-domain.js +156 -0
- package/dist/pipeline/reflection/domains/bootstrap-domain.js.map +1 -0
- package/dist/pipeline/reflection/domains/commit-domain.d.ts +40 -0
- package/dist/pipeline/reflection/domains/commit-domain.d.ts.map +1 -0
- package/dist/pipeline/reflection/domains/commit-domain.js +174 -0
- package/dist/pipeline/reflection/domains/commit-domain.js.map +1 -0
- package/dist/pipeline/reflection/domains/test-domain.d.ts +40 -0
- package/dist/pipeline/reflection/domains/test-domain.d.ts.map +1 -0
- package/dist/pipeline/reflection/domains/test-domain.js +194 -0
- package/dist/pipeline/reflection/domains/test-domain.js.map +1 -0
- package/dist/pipeline/reflection/historical-loader.d.ts +105 -0
- package/dist/pipeline/reflection/historical-loader.d.ts.map +1 -0
- package/dist/pipeline/reflection/historical-loader.js +462 -0
- package/dist/pipeline/reflection/historical-loader.js.map +1 -0
- package/dist/pipeline/reflection/hooks/agent-hook.d.ts +72 -0
- package/dist/pipeline/reflection/hooks/agent-hook.d.ts.map +1 -0
- package/dist/pipeline/reflection/hooks/agent-hook.js +98 -0
- package/dist/pipeline/reflection/hooks/agent-hook.js.map +1 -0
- package/dist/pipeline/reflection/hooks/audit-hook.d.ts +72 -0
- package/dist/pipeline/reflection/hooks/audit-hook.d.ts.map +1 -0
- package/dist/pipeline/reflection/hooks/audit-hook.js +112 -0
- package/dist/pipeline/reflection/hooks/audit-hook.js.map +1 -0
- package/dist/pipeline/reflection/hooks/bootstrap-hook.d.ts +71 -0
- package/dist/pipeline/reflection/hooks/bootstrap-hook.d.ts.map +1 -0
- package/dist/pipeline/reflection/hooks/bootstrap-hook.js +97 -0
- package/dist/pipeline/reflection/hooks/bootstrap-hook.js.map +1 -0
- package/dist/pipeline/reflection/hooks/commit-hook.d.ts +63 -0
- package/dist/pipeline/reflection/hooks/commit-hook.d.ts.map +1 -0
- package/dist/pipeline/reflection/hooks/commit-hook.js +90 -0
- package/dist/pipeline/reflection/hooks/commit-hook.js.map +1 -0
- package/dist/pipeline/reflection/hooks/test-hook.d.ts +65 -0
- package/dist/pipeline/reflection/hooks/test-hook.d.ts.map +1 -0
- package/dist/pipeline/reflection/hooks/test-hook.js +99 -0
- package/dist/pipeline/reflection/hooks/test-hook.js.map +1 -0
- package/dist/pipeline/reflection/lessons-memo-generator.d.ts +60 -0
- package/dist/pipeline/reflection/lessons-memo-generator.d.ts.map +1 -0
- package/dist/pipeline/reflection/lessons-memo-generator.js +286 -0
- package/dist/pipeline/reflection/lessons-memo-generator.js.map +1 -0
- package/dist/store/ProjectStore.d.ts +1 -1
- package/dist/store/ProjectStore.d.ts.map +1 -1
- package/dist/store/ProjectStore.js +2 -1
- package/dist/store/ProjectStore.js.map +1 -1
- package/dist/store/types.d.ts +28 -0
- package/dist/store/types.d.ts.map +1 -0
- package/dist/store/types.js +3 -0
- package/dist/store/types.js.map +1 -0
- package/dist/tools/__tests__/command-parser.test.js +1 -1
- package/dist/tools/__tests__/command-parser.test.js.map +1 -1
- package/dist/tools/__tests__/declared-facts.test.d.ts +2 -0
- package/dist/tools/__tests__/declared-facts.test.d.ts.map +1 -0
- package/dist/tools/__tests__/declared-facts.test.js +21 -0
- package/dist/tools/__tests__/declared-facts.test.js.map +1 -0
- package/dist/tools/__tests__/package-install.test.d.ts +2 -0
- package/dist/tools/__tests__/package-install.test.d.ts.map +1 -0
- package/dist/tools/__tests__/package-install.test.js +56 -0
- package/dist/tools/__tests__/package-install.test.js.map +1 -0
- package/dist/tools/__tests__/save-tools.secrets.test.js +1 -1
- package/dist/tools/__tests__/save-tools.secrets.test.js.map +1 -1
- package/dist/tools/edit-file.d.ts.map +1 -1
- package/dist/tools/edit-file.js +1 -0
- package/dist/tools/edit-file.js.map +1 -1
- package/dist/tools/list-directory.d.ts.map +1 -1
- package/dist/tools/list-directory.js +1 -0
- package/dist/tools/list-directory.js.map +1 -1
- package/dist/tools/package-install.d.ts +11 -0
- package/dist/tools/package-install.d.ts.map +1 -0
- package/dist/tools/package-install.js +112 -0
- package/dist/tools/package-install.js.map +1 -0
- package/dist/tools/read-file.d.ts.map +1 -1
- package/dist/tools/read-file.js +1 -0
- package/dist/tools/read-file.js.map +1 -1
- package/dist/tools/run-command.d.ts.map +1 -1
- package/dist/tools/run-command.js +5 -1
- package/dist/tools/run-command.js.map +1 -1
- package/dist/tools/save-audit.d.ts.map +1 -1
- package/dist/tools/save-audit.js +7 -6
- package/dist/tools/save-audit.js.map +1 -1
- package/dist/tools/save-context.d.ts.map +1 -1
- package/dist/tools/save-context.js +3 -2
- package/dist/tools/save-context.js.map +1 -1
- package/dist/tools/save-learning.d.ts.map +1 -1
- package/dist/tools/save-learning.js +4 -3
- package/dist/tools/save-learning.js.map +1 -1
- package/dist/tools/save-user-preference.d.ts.map +1 -1
- package/dist/tools/save-user-preference.js +3 -2
- package/dist/tools/save-user-preference.js.map +1 -1
- package/dist/tools/search-files.d.ts.map +1 -1
- package/dist/tools/search-files.js +1 -0
- package/dist/tools/search-files.js.map +1 -1
- package/dist/tools/update-session.d.ts.map +1 -1
- package/dist/tools/update-session.js +3 -2
- package/dist/tools/update-session.js.map +1 -1
- package/dist/tools/write-file.d.ts.map +1 -1
- package/dist/tools/write-file.js +1 -0
- package/dist/tools/write-file.js.map +1 -1
- package/package.json +71 -44
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @description AuditReportRenderer — Renderiza informes Markdown de auditoría.
|
|
4
|
+
*
|
|
5
|
+
* Responsabilidades:
|
|
6
|
+
* - Renderizar informe de gate individual (renderGateReport)
|
|
7
|
+
* - Renderizar informe final multi-gate (renderFinalReport)
|
|
8
|
+
* - Construir resumen ejecutivo (buildExecutiveSummary)
|
|
9
|
+
* - Calcular hash SHA-256 de integridad
|
|
10
|
+
*/
|
|
11
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
15
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(o, k2, desc);
|
|
18
|
+
}) : (function(o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
}));
|
|
22
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
23
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
24
|
+
}) : function(o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
28
|
+
var ownKeys = function(o) {
|
|
29
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
30
|
+
var ar = [];
|
|
31
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
32
|
+
return ar;
|
|
33
|
+
};
|
|
34
|
+
return ownKeys(o);
|
|
35
|
+
};
|
|
36
|
+
return function (mod) {
|
|
37
|
+
if (mod && mod.__esModule) return mod;
|
|
38
|
+
var result = {};
|
|
39
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
40
|
+
__setModuleDefault(result, mod);
|
|
41
|
+
return result;
|
|
42
|
+
};
|
|
43
|
+
})();
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.AuditReportRenderer = void 0;
|
|
46
|
+
const crypto = __importStar(require("crypto"));
|
|
47
|
+
// ── Helpers ──────────────────────────────────────────────────────────────────
|
|
48
|
+
function calculateHash(content) {
|
|
49
|
+
return crypto.createHash('sha256').update(content, 'utf-8').digest('hex');
|
|
50
|
+
}
|
|
51
|
+
// ── AuditReportRenderer ──────────────────────────────────────────────────────
|
|
52
|
+
class AuditReportRenderer {
|
|
53
|
+
/**
|
|
54
|
+
* @description Renderiza un informe de gate individual en Markdown.
|
|
55
|
+
*/
|
|
56
|
+
renderGateReport(record, version, fecha, task) {
|
|
57
|
+
const findingsTable = record.hallazgos.length > 0
|
|
58
|
+
? `| ID | Dimension | Finding | Severity | Evidence | Recommendation | Responsible Agent |\n` +
|
|
59
|
+
`|----|-----------|---------|----------|----------|----------------|-------------------|\n` +
|
|
60
|
+
record.hallazgos.map(h => `| ${h.id} | ${h.dimension} | ${h.hallazgo} | **${h.severidad}** | ${h.evidencia} | ${h.recomendacion} | ${h.agenteResponsable} |`).join('\n')
|
|
61
|
+
: '*No findings*';
|
|
62
|
+
const content = `---
|
|
63
|
+
title: "Gate Report: ${record.gate}"
|
|
64
|
+
version: "${version}"
|
|
65
|
+
date: "${fecha}"
|
|
66
|
+
type: "gate"
|
|
67
|
+
auditor: "${record.agente}"
|
|
68
|
+
verdict: "${record.veredicto}"
|
|
69
|
+
tags:
|
|
70
|
+
- audit
|
|
71
|
+
- gate
|
|
72
|
+
- ${record.gate.toLowerCase().replace(/\s+/g, '-')}
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
# 📋 Gate Report: ${record.gate}
|
|
76
|
+
|
|
77
|
+
> **Auditor:** ${record.agente}
|
|
78
|
+
> **Date:** ${fecha}
|
|
79
|
+
> **Report version:** ${version}
|
|
80
|
+
> **Verdict:** ${record.veredicto === 'GO' ? '✅ APPROVED' : record.veredicto === 'NO-GO condicional' ? '⚠️ CONDITIONALLY APPROVED' : '❌ NOT APPROVED'}
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Findings Matrix
|
|
85
|
+
|
|
86
|
+
${findingsTable}
|
|
87
|
+
|
|
88
|
+
${record.notas ? `\n## Notes\n\n${record.notas}\n` : ''}
|
|
89
|
+
${task ? `## Task Context\n\n- **Prompt:** ${task.rawPrompt}\n- **Type:** ${task.actionType}\n- **Domain(s):** ${task.domains.join(', ')}\n- **Risk Level:** ${task.riskLevel}\n` : ''}
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
*Auto-generated by the audit pipeline*
|
|
94
|
+
`;
|
|
95
|
+
return this.wrapWithIntegrity(content, version, fecha);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @description Renderiza el informe final multi-gate en Markdown.
|
|
99
|
+
*/
|
|
100
|
+
renderFinalReport(report, version, fecha) {
|
|
101
|
+
const findingsMatrix = report.gates.flatMap(g => g.hallazgos.map(h => ({ gate: g.gate, ...h })));
|
|
102
|
+
const reportContentForHash = JSON.stringify(report);
|
|
103
|
+
const totalHash = calculateHash(reportContentForHash);
|
|
104
|
+
const findingsTable = findingsMatrix.length > 0
|
|
105
|
+
? `| ID | Gate | Dimension | Finding | Severity | Evidence | Recommendation | Agent |\n` +
|
|
106
|
+
`|----|------|-----------|---------|----------|----------|----------------|-------|\n` +
|
|
107
|
+
findingsMatrix.map(h => `| ${h.id} | ${h.gate} | ${h.dimension} | ${h.hallazgo} | **${h.severidad}** | ${h.evidencia} | ${h.recomendacion} | ${h.agenteResponsable} |`).join('\n')
|
|
108
|
+
: '*No findings across any gate*';
|
|
109
|
+
const riesgosTable = report.riesgos.length > 0
|
|
110
|
+
? `| Risk | Probability | Impact | Mitigation |\n` +
|
|
111
|
+
`|------|-------------|--------|------------|\n` +
|
|
112
|
+
report.riesgos.map(r => `| ${r.riesgo} | ${r.probabilidad} | ${r.impacto} | ${r.mitigacion} |`).join('\n')
|
|
113
|
+
: '*No accumulated risks*';
|
|
114
|
+
const inmediatos = findingsMatrix.filter(h => h.severidad === 'critical' || h.severidad === 'high');
|
|
115
|
+
const cortoPlazo = findingsMatrix.filter(h => h.severidad === 'medium');
|
|
116
|
+
const medioPlazo = findingsMatrix.filter(h => h.severidad === 'low');
|
|
117
|
+
const remediacion = `
|
|
118
|
+
### 🔴 Immediate (${inmediatos.length})
|
|
119
|
+
${inmediatos.length > 0
|
|
120
|
+
? inmediatos.map(h => `- **${h.id}** (${h.gate}): ${h.hallazgo} → ${h.recomendacion} (_${h.agenteResponsable}_)`).join('\n')
|
|
121
|
+
: '*No critical or high findings pending*'}
|
|
122
|
+
|
|
123
|
+
### 🟡 Short term (${cortoPlazo.length})
|
|
124
|
+
${cortoPlazo.length > 0
|
|
125
|
+
? cortoPlazo.map(h => `- **${h.id}** (${h.gate}): ${h.hallazgo} → ${h.recomendacion}`).join('\n')
|
|
126
|
+
: '*No medium findings pending*'}
|
|
127
|
+
|
|
128
|
+
### 🟢 Medium term (${medioPlazo.length})
|
|
129
|
+
${medioPlazo.length > 0
|
|
130
|
+
? medioPlazo.map(h => `- **${h.id}** (${h.gate}): ${h.hallazgo} → ${h.recomendacion}`).join('\n')
|
|
131
|
+
: '*No low findings pending*'}
|
|
132
|
+
`;
|
|
133
|
+
const veredictoBlock = report.veredictoFinal === 'GO'
|
|
134
|
+
? `\`\`\`\n┌─────────────────────────────────────────────────────────────┐\n│ │\n│ ✅ ✅ ✅ ✅ │\n│ 🏷️ 🏗️ 🔐 🔍 │\n│ │\n│ 🚀 READY TO COMMIT │\n│ │\n│ Sprint: ${report.sprint.name} │\n│ ${report.sprint.newFiles.length + report.sprint.modifiedFiles.length} files · 0 blockers · 0 vulnerabilities │\n│ │\n└─────────────────────────────────────────────────────────────┘\n\`\`\``
|
|
135
|
+
: `\`\`\`\n┌─────────────────────────────────────────────────────────────┐\n│ │\n│ ⚠️ ⚠️ ⚠️ │\n│ 🏷️ 🏗️ 🔐 🔍 │\n│ │\n│ ⛔ NOT READY TO COMMIT │\n│ │\n│ Sprint: ${report.sprint.name} │\n│ ${inmediatos.length} blocker(s) · ${cortoPlazo.length} pending │\n│ │\n└─────────────────────────────────────────────────────────────┘\n\`\`\``;
|
|
136
|
+
const content = `---
|
|
137
|
+
title: "Final Multi-Gate Report: ${report.sprint.name}"
|
|
138
|
+
version: "${version}"
|
|
139
|
+
date: "${fecha}"
|
|
140
|
+
type: "final-report"
|
|
141
|
+
sprint: "${report.sprint.name}"
|
|
142
|
+
verdict: "${report.veredictoFinal}"
|
|
143
|
+
hash_total: "${totalHash}"
|
|
144
|
+
tags:
|
|
145
|
+
- audit
|
|
146
|
+
- final-report
|
|
147
|
+
- ${report.sprint.name.toLowerCase().replace(/\s+/g, '-')}
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
# 📋 Final Multi-Gate Report
|
|
151
|
+
## Sprint: ${report.sprint.name}
|
|
152
|
+
|
|
153
|
+
> **Project version:** ${report.sprint.version}
|
|
154
|
+
> **Report version:** ${version}
|
|
155
|
+
> **Report date:** ${fecha}
|
|
156
|
+
> **SHA-256 total:** \`${totalHash}\`
|
|
157
|
+
> **Sprint purpose:** ${report.sprint.purpose}
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
${this.buildExecutiveSummary(report.sprint, report.veredictoFinal, report.gates)}
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## 📊 Findings Matrix by Dimension
|
|
166
|
+
|
|
167
|
+
${findingsTable}
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## 📈 Top ${Math.min(report.riesgos.length, 5)} Accumulated Risks
|
|
172
|
+
|
|
173
|
+
${riesgosTable}
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## 🛠️ Prioritized Remediation Plan
|
|
178
|
+
|
|
179
|
+
${remediacion}
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## ✅ Final Multi-Gate Verdict
|
|
184
|
+
|
|
185
|
+
${veredictoBlock}
|
|
186
|
+
|
|
187
|
+
### Summary for Commit Message
|
|
188
|
+
|
|
189
|
+
\`\`\`
|
|
190
|
+
${report.sprint.name}: ${report.sprint.purpose}
|
|
191
|
+
|
|
192
|
+
${report.sprint.newFiles.map(f => `- ${f}`).join('\n')}
|
|
193
|
+
${report.sprint.modifiedFiles.map(f => `- ${f}`).join('\n')}
|
|
194
|
+
\`\`\`
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## 📎 Gate History
|
|
199
|
+
|
|
200
|
+
| Date | Gate | Auditor | Verdict |
|
|
201
|
+
|------|------|---------|---------|
|
|
202
|
+
${report.gates.map(g => `| ${g.fecha} | ${g.gate} | ${g.agente} | ${g.veredicto} |`).join('\n')}
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
*Auto-generated by the audit pipeline*
|
|
207
|
+
*Participating agents: ${[...new Set(report.gates.map(g => g.agente))].join(', ')}*
|
|
208
|
+
*Last updated: ${report.fecha} UTC*
|
|
209
|
+
`;
|
|
210
|
+
return this.wrapWithIntegrity(content, version, fecha);
|
|
211
|
+
}
|
|
212
|
+
// ── Resumen Ejecutivo ─────────────────────────────────────────────────────
|
|
213
|
+
/**
|
|
214
|
+
* @description Construye el resumen ejecutivo del sprint.
|
|
215
|
+
*/
|
|
216
|
+
buildExecutiveSummary(sprint, veredictoFinal, gates) {
|
|
217
|
+
const gatesSummary = gates.map(g => `| ${g.gate} | ${g.veredicto === 'GO' ? '✅' : g.veredicto === 'NO-GO condicional' ? '⚠️' : '❌'} ${g.veredicto} | ${g.agente} |`).join('\n');
|
|
218
|
+
return `
|
|
219
|
+
## 🧭 Executive Summary
|
|
220
|
+
|
|
221
|
+
| Gate | Status | Auditor |
|
|
222
|
+
|------|--------|---------|
|
|
223
|
+
${gatesSummary}
|
|
224
|
+
| 🚀 **Final Verdict** | **${veredictoFinal === 'GO' ? '✅ READY TO COMMIT' : veredictoFinal === 'NO-GO condicional' ? '⚠️ CONDITIONAL NO-GO' : '❌ NO-GO'}** | — |
|
|
225
|
+
|
|
226
|
+
### 📦 Sprint Changes (${sprint.newFiles.length + sprint.modifiedFiles.length} files)
|
|
227
|
+
|
|
228
|
+
**Purpose:** ${sprint.purpose}
|
|
229
|
+
|
|
230
|
+
**🔵 New files (${sprint.newFiles.length}):**
|
|
231
|
+
${sprint.newFiles.map(f => `- \`${f}\``).join('\n')}
|
|
232
|
+
|
|
233
|
+
**🟡 Modified files (${sprint.modifiedFiles.length}):**
|
|
234
|
+
${sprint.modifiedFiles.map(f => `- \`${f}\``).join('\n')}
|
|
235
|
+
|
|
236
|
+
**🧪 Tests:** ${sprint.testCount} tests · ${sprint.testTime}
|
|
237
|
+
`;
|
|
238
|
+
}
|
|
239
|
+
// ── Integridad ─────────────────────────────────────────────────────────────
|
|
240
|
+
/**
|
|
241
|
+
* @description Envuelve el contenido con hash SHA-256 y metadatos de integridad.
|
|
242
|
+
*/
|
|
243
|
+
wrapWithIntegrity(content, version, fecha) {
|
|
244
|
+
const hash = calculateHash(content);
|
|
245
|
+
return `**SHA-256:** \`${hash}\` \n**Report version:** ${version} \n**Date:** ${fecha} \n\n---\n\n${content}`;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
exports.AuditReportRenderer = AuditReportRenderer;
|
|
249
|
+
//# sourceMappingURL=audit-report-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-report-renderer.js","sourceRoot":"","sources":["../../../../src/pipeline/orchestration/audit/audit-report-renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAAiC;AAUjC,gFAAgF;AAEhF,SAAS,aAAa,CAAC,OAAe;IACpC,OAAO,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5E,CAAC;AAED,gFAAgF;AAEhF,MAAa,mBAAmB;IAC9B;;OAEG;IACH,gBAAgB,CACd,MAAkB,EAClB,OAAe,EACf,KAAa,EACb,IAAkB;QAElB,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC;YAC/C,CAAC,CAAC,2FAA2F;gBAC3F,2FAA2F;gBAC3F,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CACvB,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,SAAS,MAAM,CAAC,CAAC,aAAa,MAAM,CAAC,CAAC,iBAAiB,IAAI,CACnI,CAAC,IAAI,CAAC,IAAI,CAAC;YACd,CAAC,CAAC,eAAe,CAAC;QAEpB,MAAM,OAAO,GAAG;uBACG,MAAM,CAAC,IAAI;YACtB,OAAO;SACV,KAAK;;YAEF,MAAM,CAAC,MAAM;YACb,MAAM,CAAC,SAAS;;;;MAItB,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;;;oBAGhC,MAAM,CAAC,IAAI;;iBAEd,MAAM,CAAC,MAAM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,iBAAiB,CAAC,OAAe,EAAE,OAAe,EAAE,KAAa;QACvE,MAAM,IAAI,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;QACpC,OAAO,kBAAkB,IAAI,6BAA6B,OAAO,iBAAiB,KAAK,gBAAgB,OAAO,EAAE,CAAC;IACnH,CAAC;CACF;AAhOD,kDAgOC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description AuditReportVersionManager — Gestiona el versionado semántico
|
|
3
|
+
* de los informes de auditoría.
|
|
4
|
+
*
|
|
5
|
+
* **Esquema de versionado:**
|
|
6
|
+
* - Gate individual → incrementa patch (v1.0.0 → v1.0.1)
|
|
7
|
+
* - Informe final → incrementa minor (v1.0.0 → v1.1.0)
|
|
8
|
+
* - Reset manual → incrementa major (v1.0.0 → v2.0.0)
|
|
9
|
+
*
|
|
10
|
+
* El estado se persiste en un archivo JSON dentro del directorio de auditorías.
|
|
11
|
+
*/
|
|
12
|
+
export interface AuditReportVersion {
|
|
13
|
+
major: number;
|
|
14
|
+
minor: number;
|
|
15
|
+
patch: number;
|
|
16
|
+
lastUpdated: string;
|
|
17
|
+
reportCount: number;
|
|
18
|
+
}
|
|
19
|
+
export declare class AuditReportVersionManager {
|
|
20
|
+
private docsDir;
|
|
21
|
+
private version;
|
|
22
|
+
constructor(docsDir: string);
|
|
23
|
+
/**
|
|
24
|
+
* @description Carga la versión desde disco. Si no existe, retorna v1.0.0.
|
|
25
|
+
*/
|
|
26
|
+
load(): Promise<AuditReportVersion>;
|
|
27
|
+
/**
|
|
28
|
+
* @description Persiste la versión actual en disco.
|
|
29
|
+
*/
|
|
30
|
+
save(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* @description Retorna la versión como string "v{major}.{minor}.{patch}".
|
|
33
|
+
*/
|
|
34
|
+
getVersionString(): string;
|
|
35
|
+
/**
|
|
36
|
+
* @description Retorna el objeto de versión actual.
|
|
37
|
+
*/
|
|
38
|
+
getVersion(): AuditReportVersion;
|
|
39
|
+
/**
|
|
40
|
+
* @description Incrementa patch (gate individual).
|
|
41
|
+
*/
|
|
42
|
+
incrementPatch(): void;
|
|
43
|
+
/**
|
|
44
|
+
* @description Incrementa minor y resetea patch (informe final).
|
|
45
|
+
*/
|
|
46
|
+
incrementMinor(): void;
|
|
47
|
+
/**
|
|
48
|
+
* @description Incrementa major y resetea minor y patch (reset manual).
|
|
49
|
+
*/
|
|
50
|
+
incrementMajor(): void;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=audit-report-version-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-report-version-manager.d.ts","sourceRoot":"","sources":["../../../../src/pipeline/orchestration/audit/audit-report-version-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAYH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAaD,qBAAa,yBAAyB;IACpC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,OAAO,CAAqB;gBAExB,OAAO,EAAE,MAAM;IAa3B;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAkBzC;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ3B;;OAEG;IACH,gBAAgB,IAAI,MAAM;IAI1B;;OAEG;IACH,UAAU,IAAI,kBAAkB;IAMhC;;OAEG;IACH,cAAc,IAAI,IAAI;IAKtB;;OAEG;IACH,cAAc,IAAI,IAAI;IAMtB;;OAEG;IACH,cAAc,IAAI,IAAI;CAMvB"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @description AuditReportVersionManager — Gestiona el versionado semántico
|
|
4
|
+
* de los informes de auditoría.
|
|
5
|
+
*
|
|
6
|
+
* **Esquema de versionado:**
|
|
7
|
+
* - Gate individual → incrementa patch (v1.0.0 → v1.0.1)
|
|
8
|
+
* - Informe final → incrementa minor (v1.0.0 → v1.1.0)
|
|
9
|
+
* - Reset manual → incrementa major (v1.0.0 → v2.0.0)
|
|
10
|
+
*
|
|
11
|
+
* El estado se persiste en un archivo JSON dentro del directorio de auditorías.
|
|
12
|
+
*/
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.AuditReportVersionManager = void 0;
|
|
48
|
+
const path = __importStar(require("path"));
|
|
49
|
+
const fs = __importStar(require("fs/promises"));
|
|
50
|
+
const agent_core_1 = require("@backendkit-labs/agent-core");
|
|
51
|
+
// ── Constantes ───────────────────────────────────────────────────────────────
|
|
52
|
+
const VERSION_FILE = '.audit-report-version.json';
|
|
53
|
+
// ── Helpers ──────────────────────────────────────────────────────────────────
|
|
54
|
+
function getFormattedDate() {
|
|
55
|
+
return new Date()
|
|
56
|
+
.toISOString()
|
|
57
|
+
.replace('T', ' ')
|
|
58
|
+
.replace(/\.\d{3}Z/, ' UTC');
|
|
59
|
+
}
|
|
60
|
+
// ── AuditReportVersionManager ────────────────────────────────────────────────
|
|
61
|
+
class AuditReportVersionManager {
|
|
62
|
+
docsDir;
|
|
63
|
+
version;
|
|
64
|
+
constructor(docsDir) {
|
|
65
|
+
this.docsDir = docsDir;
|
|
66
|
+
this.version = {
|
|
67
|
+
major: 1,
|
|
68
|
+
minor: 0,
|
|
69
|
+
patch: 0,
|
|
70
|
+
lastUpdated: getFormattedDate(),
|
|
71
|
+
reportCount: 0,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
// ── Carga / Persistencia ──────────────────────────────────────────────────
|
|
75
|
+
/**
|
|
76
|
+
* @description Carga la versión desde disco. Si no existe, retorna v1.0.0.
|
|
77
|
+
*/
|
|
78
|
+
async load() {
|
|
79
|
+
try {
|
|
80
|
+
const versionPath = path.join(this.docsDir, VERSION_FILE);
|
|
81
|
+
const content = await fs.readFile(versionPath, 'utf-8');
|
|
82
|
+
const parsed = JSON.parse(content);
|
|
83
|
+
this.version = {
|
|
84
|
+
major: parsed.major ?? 1,
|
|
85
|
+
minor: parsed.minor ?? 0,
|
|
86
|
+
patch: parsed.patch ?? 0,
|
|
87
|
+
lastUpdated: parsed.lastUpdated ?? getFormattedDate(),
|
|
88
|
+
reportCount: parsed.reportCount ?? 0,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
catch {
|
|
92
|
+
this.version = { major: 1, minor: 0, patch: 0, lastUpdated: getFormattedDate(), reportCount: 0 };
|
|
93
|
+
}
|
|
94
|
+
return this.version;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @description Persiste la versión actual en disco.
|
|
98
|
+
*/
|
|
99
|
+
async save() {
|
|
100
|
+
const versionPath = path.join(this.docsDir, VERSION_FILE);
|
|
101
|
+
this.version.lastUpdated = getFormattedDate();
|
|
102
|
+
await (0, agent_core_1.atomicWrite)(versionPath, JSON.stringify(this.version, null, 2));
|
|
103
|
+
}
|
|
104
|
+
// ── Getters ───────────────────────────────────────────────────────────────
|
|
105
|
+
/**
|
|
106
|
+
* @description Retorna la versión como string "v{major}.{minor}.{patch}".
|
|
107
|
+
*/
|
|
108
|
+
getVersionString() {
|
|
109
|
+
return `v${this.version.major}.${this.version.minor}.${this.version.patch}`;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @description Retorna el objeto de versión actual.
|
|
113
|
+
*/
|
|
114
|
+
getVersion() {
|
|
115
|
+
return { ...this.version };
|
|
116
|
+
}
|
|
117
|
+
// ── Incrementos ───────────────────────────────────────────────────────────
|
|
118
|
+
/**
|
|
119
|
+
* @description Incrementa patch (gate individual).
|
|
120
|
+
*/
|
|
121
|
+
incrementPatch() {
|
|
122
|
+
this.version.patch += 1;
|
|
123
|
+
this.version.reportCount += 1;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @description Incrementa minor y resetea patch (informe final).
|
|
127
|
+
*/
|
|
128
|
+
incrementMinor() {
|
|
129
|
+
this.version.minor += 1;
|
|
130
|
+
this.version.patch = 0;
|
|
131
|
+
this.version.reportCount += 1;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @description Incrementa major y resetea minor y patch (reset manual).
|
|
135
|
+
*/
|
|
136
|
+
incrementMajor() {
|
|
137
|
+
this.version.major += 1;
|
|
138
|
+
this.version.minor = 0;
|
|
139
|
+
this.version.patch = 0;
|
|
140
|
+
this.version.reportCount += 1;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.AuditReportVersionManager = AuditReportVersionManager;
|
|
144
|
+
//# sourceMappingURL=audit-report-version-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-report-version-manager.js","sourceRoot":"","sources":["../../../../src/pipeline/orchestration/audit/audit-report-version-manager.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA6B;AAC7B,gDAAkC;AAClC,4DAA0D;AAE1D,gFAAgF;AAEhF,MAAM,YAAY,GAAG,4BAA4B,CAAC;AAYlD,gFAAgF;AAEhF,SAAS,gBAAgB;IACvB,OAAO,IAAI,IAAI,EAAE;SACd,WAAW,EAAE;SACb,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC;SACjB,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AACjC,CAAC;AAED,gFAAgF;AAEhF,MAAa,yBAAyB;IAC5B,OAAO,CAAS;IAChB,OAAO,CAAqB;IAEpC,YAAY,OAAe;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG;YACb,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,CAAC;YACR,WAAW,EAAE,gBAAgB,EAAE;YAC/B,WAAW,EAAE,CAAC;SACf,CAAC;IACJ,CAAC;IAED,6EAA6E;IAE7E;;OAEG;IACH,KAAK,CAAC,IAAI;QACR,IAAI,CAAC;YACH,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC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,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;IAED,6EAA6E;IAE7E;;OAEG;IACH,cAAc;QACZ,IAAI,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC;QACxB,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,cAAc;QACZ,IAAI,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC;QACxB,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,cAAc;QACZ,IAAI,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC;QACxB,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,CAAC,CAAC;IAChC,CAAC;CACF;AA3FD,8DA2FC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description AuditSilentGatesBuffer — Buffer diario de auto-gates silenciosos.
|
|
3
|
+
*
|
|
4
|
+
* Los auto-gates que son GO sin hallazgos se acumulan en un buffer en memoria
|
|
5
|
+
* en lugar de persistir archivos individuales. Al final del día (o del sprint),
|
|
6
|
+
* se genera un único reporte consolidado.
|
|
7
|
+
*
|
|
8
|
+
* Esto reduce drásticamente el ruido: de 130+ archivos individuales a 1 reporte diario.
|
|
9
|
+
*/
|
|
10
|
+
import { SilentGateRecord, GateVeredict } from './types';
|
|
11
|
+
export declare class AuditSilentGatesBuffer {
|
|
12
|
+
private docsDir;
|
|
13
|
+
private silentGates;
|
|
14
|
+
constructor(docsDir: string);
|
|
15
|
+
/**
|
|
16
|
+
* @description Agrega un gate silencioso al buffer.
|
|
17
|
+
*/
|
|
18
|
+
add(gate: string, agente: string, fecha: string, veredicto: GateVeredict, notas?: string): void;
|
|
19
|
+
/**
|
|
20
|
+
* @description Limpia el buffer de gates silenciosos.
|
|
21
|
+
*/
|
|
22
|
+
clear(): void;
|
|
23
|
+
/**
|
|
24
|
+
* @description Retorna una copia de los gates silenciosos acumulados.
|
|
25
|
+
*/
|
|
26
|
+
getAll(): SilentGateRecord[];
|
|
27
|
+
/**
|
|
28
|
+
* @description Retorna la cantidad de gates silenciosos acumulados.
|
|
29
|
+
*/
|
|
30
|
+
get count(): number;
|
|
31
|
+
/**
|
|
32
|
+
* @description Genera un reporte Markdown consolidado con todos los auto-gates
|
|
33
|
+
* silenciosos acumulados. Retorna la ruta del archivo, o null si no hay gates.
|
|
34
|
+
*/
|
|
35
|
+
generateDailyReport(fecha?: string): Promise<string | null>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=audit-silent-gates-buffer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-silent-gates-buffer.d.ts","sourceRoot":"","sources":["../../../../src/pipeline/orchestration/audit/audit-silent-gates-buffer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAIzD,qBAAa,sBAAsB;IACjC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAA0B;gBAEjC,OAAO,EAAE,MAAM;IAM3B;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAI/F;;OAEG;IACH,KAAK,IAAI,IAAI;IAMb;;OAEG;IACH,MAAM,IAAI,gBAAgB,EAAE;IAI5B;;OAEG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;IAID;;;OAGG;IACG,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CA0ClE"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @description AuditSilentGatesBuffer — Buffer diario de auto-gates silenciosos.
|
|
4
|
+
*
|
|
5
|
+
* Los auto-gates que son GO sin hallazgos se acumulan en un buffer en memoria
|
|
6
|
+
* en lugar de persistir archivos individuales. Al final del día (o del sprint),
|
|
7
|
+
* se genera un único reporte consolidado.
|
|
8
|
+
*
|
|
9
|
+
* Esto reduce drásticamente el ruido: de 130+ archivos individuales a 1 reporte diario.
|
|
10
|
+
*/
|
|
11
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
15
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(o, k2, desc);
|
|
18
|
+
}) : (function(o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
}));
|
|
22
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
23
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
24
|
+
}) : function(o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
28
|
+
var ownKeys = function(o) {
|
|
29
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
30
|
+
var ar = [];
|
|
31
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
32
|
+
return ar;
|
|
33
|
+
};
|
|
34
|
+
return ownKeys(o);
|
|
35
|
+
};
|
|
36
|
+
return function (mod) {
|
|
37
|
+
if (mod && mod.__esModule) return mod;
|
|
38
|
+
var result = {};
|
|
39
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
40
|
+
__setModuleDefault(result, mod);
|
|
41
|
+
return result;
|
|
42
|
+
};
|
|
43
|
+
})();
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.AuditSilentGatesBuffer = void 0;
|
|
46
|
+
const path = __importStar(require("path"));
|
|
47
|
+
const fs = __importStar(require("fs/promises"));
|
|
48
|
+
// ── AuditSilentGatesBuffer ───────────────────────────────────────────────────
|
|
49
|
+
class AuditSilentGatesBuffer {
|
|
50
|
+
docsDir;
|
|
51
|
+
silentGates = [];
|
|
52
|
+
constructor(docsDir) {
|
|
53
|
+
this.docsDir = docsDir;
|
|
54
|
+
}
|
|
55
|
+
// ── Mutadores ──────────────────────────────────────────────────────────────
|
|
56
|
+
/**
|
|
57
|
+
* @description Agrega un gate silencioso al buffer.
|
|
58
|
+
*/
|
|
59
|
+
add(gate, agente, fecha, veredicto, notas) {
|
|
60
|
+
this.silentGates.push({ gate, agente, fecha, veredicto, notas });
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @description Limpia el buffer de gates silenciosos.
|
|
64
|
+
*/
|
|
65
|
+
clear() {
|
|
66
|
+
this.silentGates = [];
|
|
67
|
+
}
|
|
68
|
+
// ── Getters ───────────────────────────────────────────────────────────────
|
|
69
|
+
/**
|
|
70
|
+
* @description Retorna una copia de los gates silenciosos acumulados.
|
|
71
|
+
*/
|
|
72
|
+
getAll() {
|
|
73
|
+
return this.silentGates.map(sg => ({ ...sg }));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @description Retorna la cantidad de gates silenciosos acumulados.
|
|
77
|
+
*/
|
|
78
|
+
get count() {
|
|
79
|
+
return this.silentGates.length;
|
|
80
|
+
}
|
|
81
|
+
// ── Reporte diario ────────────────────────────────────────────────────────
|
|
82
|
+
/**
|
|
83
|
+
* @description Genera un reporte Markdown consolidado con todos los auto-gates
|
|
84
|
+
* silenciosos acumulados. Retorna la ruta del archivo, o null si no hay gates.
|
|
85
|
+
*/
|
|
86
|
+
async generateDailyReport(fecha) {
|
|
87
|
+
if (this.silentGates.length === 0)
|
|
88
|
+
return null;
|
|
89
|
+
const today = fecha ?? new Date().toISOString().split('T')[0];
|
|
90
|
+
const content = [
|
|
91
|
+
'---',
|
|
92
|
+
'tags: [audit, auto-gates, silent]',
|
|
93
|
+
`date: ${today}`,
|
|
94
|
+
`total_auto_gates: ${this.silentGates.length}`,
|
|
95
|
+
'---',
|
|
96
|
+
'',
|
|
97
|
+
`# 📦 Daily Auto-Gates Report — ${today}`,
|
|
98
|
+
'',
|
|
99
|
+
'> This report groups all auto-approved gates with no findings.',
|
|
100
|
+
'',
|
|
101
|
+
'---',
|
|
102
|
+
'',
|
|
103
|
+
'## Summary',
|
|
104
|
+
'',
|
|
105
|
+
`- **Total auto-gates today:** ${this.silentGates.length}`,
|
|
106
|
+
`- **Last gate:** ${this.silentGates[this.silentGates.length - 1]?.gate ?? 'N/A'}`,
|
|
107
|
+
`- **Time range:** ${this.silentGates[0]?.fecha ?? 'N/A'} → ${this.silentGates[this.silentGates.length - 1]?.fecha ?? 'N/A'}`,
|
|
108
|
+
'',
|
|
109
|
+
'---',
|
|
110
|
+
'',
|
|
111
|
+
'## Auto-Gates List',
|
|
112
|
+
'',
|
|
113
|
+
'| # | Gate | Agent | Date | Notes |',
|
|
114
|
+
'|---|------|-------|------|-------|',
|
|
115
|
+
...this.silentGates.map((sg, i) => `| ${i + 1} | ${sg.gate} | ${sg.agente} | ${sg.fecha} | ${sg.notas ?? '—'} |`),
|
|
116
|
+
'',
|
|
117
|
+
'---',
|
|
118
|
+
'',
|
|
119
|
+
'*Auto-generated by the audit pipeline*',
|
|
120
|
+
].join('\n');
|
|
121
|
+
await fs.mkdir(this.docsDir, { recursive: true });
|
|
122
|
+
const filename = `auto-gates-${today}.md`;
|
|
123
|
+
const filePath = path.join(this.docsDir, filename);
|
|
124
|
+
await fs.writeFile(filePath, content, 'utf-8');
|
|
125
|
+
return filePath;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.AuditSilentGatesBuffer = AuditSilentGatesBuffer;
|
|
129
|
+
//# sourceMappingURL=audit-silent-gates-buffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-silent-gates-buffer.js","sourceRoot":"","sources":["../../../../src/pipeline/orchestration/audit/audit-silent-gates-buffer.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA6B;AAC7B,gDAAkC;AAGlC,gFAAgF;AAEhF,MAAa,sBAAsB;IACzB,OAAO,CAAS;IAChB,WAAW,GAAuB,EAAE,CAAC;IAE7C,YAAY,OAAe;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,8EAA8E;IAE9E;;OAEG;IACH,GAAG,CAAC,IAAY,EAAE,MAAc,EAAE,KAAa,EAAE,SAAuB,EAAE,KAAc;QACtF,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,CAAC;IAED,6EAA6E;IAE7E;;OAEG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;IACjD,CAAC;IAED;;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