UNPKG

@blundergoat/goat-flow

Version:

AI coding agent harness and local dashboard for Claude Code, OpenAI Codex, Google Antigravity, and GitHub Copilot - setup audits, guardrails, structured skills, deny hooks, and persistent learning loops.

21 lines 881 B
/** * Build an isolated facts view for one audit context from a batch fact bundle. * * @param facts - shared extracted facts reused across aggregate and per-agent audits * @param options - optional agent/profile narrowing for the returned facts view * @returns facts narrowed to the requested agent/profile without mutating the batch bundle */ export function createAuditFactsView(facts, options = {}) { const selectedAgents = options.agentId ? facts.agents.filter((agentFacts) => agentFacts.agent.id === options.agentId) : facts.agents; return { root: facts.root, stack: options.factProfile === "dashboard-summary" ? facts.stack : structuredClone(facts.stack), shared: structuredClone(facts.shared), agents: structuredClone(selectedAgents), }; } //# sourceMappingURL=audit-facts-view.js.map