/** * Optimization Pack (pack.json v1) — the shareable envelope. * * See docs/optimization-packs.md. A pack bundles data-type parts (prompts, * skills, memory) and code-type parts (components, workflows) described by a * single pack.json, with a content-addressed integrity digest so a pack cannot * be silently modified in transit. * * This module parses/validates pack.json and computes/verifies integrity. It is * pure (no bundle mutation); import wiring lives elsewhere. */ export declare const EVO_PACK_FORMAT = 1; export interface EvoPackPrompt { target: "system" | "append-system"; file: string; } export interface EvoPackSkill { name: string; dir: string; } export interface EvoPackMemory { file: string; } export interface EvoPackComponent { surface: string; abi: string; id: string; artifact: string; capabilities: string[]; } export interface EvoPackWorkflow { id: string; trigger: string; abi: string; artifact: string; capabilities: string[]; } export interface EvoPackContents { prompts: EvoPackPrompt[]; skills: EvoPackSkill[]; memory: EvoPackMemory[]; components: EvoPackComponent[]; workflows: EvoPackWorkflow[]; } export interface EvoPackManifest { packFormat: 1; name: string; version: string; author?: string; description?: string; contents: EvoPackContents; requiresAbis: string[]; requiresCapabilities: string[]; integrity?: string; } /** * Parse and validate a pack.json manifest. Fail-closed: any malformed field * rejects the whole manifest rather than silently dropping it. */ export declare function parseEvoPackManifest(raw: unknown): EvoPackManifest; /** * Content-addressed integrity over the canonical pack: the manifest (minus its * own integrity field) plus a sorted map of every referenced file's sha256. Any * change to the manifest or any referenced byte changes the digest. */ export declare function computeEvoPackIntegrity(packDir: string, manifest: EvoPackManifest): Promise; export interface EvoPackIntegrityResult { ok: boolean; expected: string | undefined; actual: string; } /** Verify a pack's declared integrity against its actual contents. */ export declare function verifyEvoPackIntegrity(packDir: string, manifest: EvoPackManifest): Promise; /** Load, parse, and integrity-check a pack directory's pack.json. */ export declare function loadEvoPack(packDir: string): Promise<{ manifest: EvoPackManifest; integrity: EvoPackIntegrityResult; }>; //# sourceMappingURL=pack.d.ts.map