/** * ollama_artifact_list — metadata-only index of pack artifacts on disk. * * Artifact tier, not an atom, not a pack. Turns pack outputs into a * reusable working surface: what exists, when it was made, is it weak, * which pack produced it, which corpus (if any) grounded it. * * Returns ONE metadata record per artifact. Full payloads belong to * artifact_read — listing stays cheap and scan-friendly. * * Identity is (pack, slug). Collisions across dirs surface as warnings * in the response, but every colliding record still appears so the * operator can see the duplication and resolve it. * * Default sort: newest first by created_at, then pack, then slug. * Filter → sort → limit, in that order. */ import { z } from "zod"; import type { Envelope } from "../envelope.js"; import type { RunContext } from "../runContext.js"; import { type ArtifactMetadata, type PackName } from "./artifacts/scan.js"; export declare const artifactListSchema: z.ZodObject<{ pack: z.ZodOptional>; date_after: z.ZodOptional; date_before: z.ZodOptional; weak_only: z.ZodOptional; strong_only: z.ZodOptional; limit: z.ZodOptional; extra_artifact_dirs: z.ZodOptional>; }, z.core.$strip>; export type ArtifactListInput = z.infer; export interface ArtifactListResult { items: ArtifactMetadata[]; /** (pack, slug) pairs present in more than one location. Surfaces so the operator can resolve. */ duplicates: Array<{ pack: PackName; slug: string; paths: string[]; }>; /** Total matches BEFORE limit was applied. */ total_matches: number; } export declare function handleArtifactList(input: ArtifactListInput, ctx: RunContext): Promise>; //# sourceMappingURL=artifactList.d.ts.map