/** * The name to give a server-side agent the deploy route has to create for a * project that was never linked (a gallery-template clone). * * The honest answer is the agent's own `defineAgent({ name })`, which the * canvas extraction already surfaces as `graph.manifestName` — and which the * registry stores as `definitionSlug` and `sapiom.json` caches as `name`. Read * through the fingerprint cache (core/canvas-cache.ts), so this is normally * free: the canvas renders on bind, so the extraction is already warm. * * Never throws and never blocks a deploy: any failure (no `node_modules` yet, * a bundle error, the check process timing out) comes back as null and the * caller falls back to a weaker name source. */ import { extractWorkflowGraphCached, type CachedExtractionOptions } from "./canvas-cache.js"; export type ManifestNameInspection = { status: "found"; name: string; } | { status: "absent"; } /** `retryable`: the same unchanged source could still name this agent. */ | { status: "failed"; retryable: boolean; }; export type ManifestNameInspectionOptions = CachedExtractionOptions; /** * Inspect the declared manifest name while preserving the difference between * a valid unnamed agent and an extraction failure. Inventory uses the richer * result to avoid warning for the normal unnamed case, and `retryable` to * decide whether the failure can still be cleared without a source edit. */ export declare function inspectManifestName(projectDir: string, extract?: typeof extractWorkflowGraphCached, options?: ManifestNameInspectionOptions): Promise; export declare function resolveManifestName(projectDir: string, extract?: typeof extractWorkflowGraphCached): Promise; //# sourceMappingURL=definition-name.d.ts.map