@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.
63 lines • 2.87 kB
TypeScript
import type { Manifest, ManifestCheckReport, ManifestJson, ObservedFacts } from "./types.js";
export { validateSkillReferenceSchema, getRequiredInstructionSections, } from "./manifest-json.js";
/**
* Validate manifest facts against the values observed from live code.
*
* In packaged installs the `src/` tree isn't shipped (package.json `files`
* ships only `dist/` + `workflow/`), so source-derived drift checks for
* static facts (`dashboard_views`) would always trip against empty observed
* values. That fact was validated at publish time - here we trust the
* manifest and skip it. Preset count is derived from the shipped preset
* catalog, and skill-canonical drift is still checked because `SKILL_NAMES`
* ships in `dist/`.
*
* @param json - Parsed manifest JSON from `workflow/manifest.json`.
* @param observed - Facts observed from the current source or packaged install.
*/
export declare function validateManifest(json: ManifestJson, observed: ObservedFacts): void;
/**
* Compose the resolved manifest from validated JSON and observed facts.
*
* @param json - Manifest JSON that has already passed `validateManifest`.
* @param observed - Current facts used to fill derived fields.
* @returns Resolved manifest used by CLI, dashboard, and prompt composers.
*/
export declare function composeManifest(json: ManifestJson, observed: ObservedFacts): Manifest;
/**
* Return the canonical template-file list for one skill.
*
* @param name - Canonical skill name from `SKILL_NAMES`.
* @returns `SKILL.md` plus manifest-declared reference files for that skill.
*/
export declare function getSkillFiles(name: string): string[];
/**
* Return unique installed skill roots declared by the manifest-backed agents.
*
* @returns Deduplicated skill-root paths with trailing slashes removed.
*/
export declare function getInstalledSkillRoots(): string[];
/**
* Load, validate, and cache the resolved workflow manifest.
*
* @returns Resolved manifest for the current package/workspace.
*/
export declare function loadManifest(): Manifest;
/** Clear the module-level cache (tests only). */
export declare function resetManifestCache(): void;
/**
* Run internal consistency validation for `goat-flow manifest --check`.
*
* Reports `ManifestValidationError` because the CLI needs a structured result;
* unexpected errors still throw so operational failures are not hidden.
*
* @returns Pass/fail report with manifest-drift findings.
*/
export declare function checkManifest(): ManifestCheckReport;
/**
* Render the resolved manifest as a compact Markdown table. Used by `goat-flow manifest`.
*
* @param manifest - Resolved manifest to present.
* @returns Markdown summary of derived facts and agent surfaces.
*/
export declare function renderManifestMarkdown(manifest: Manifest): string;
//# sourceMappingURL=manifest.d.ts.map