/** * Centralized subagent path computation. * * Provides types and a pure function for computing subagent directory paths * based on source type (registry vs non-registry). * * @experimental This API is unstable and may change without notice. */ import { type ExtensionPathSource } from "../extensions/extension-paths.js"; import type { AbsolutePath } from "../utils/path-types.js"; import type { WorkspaceLayout } from "../workspace/layout.js"; /** * Minimal structural discriminant for determining subagent path layout. * * Every acquired ref carries enough source coordinates to derive its * source-qualified canonical path. * * @experimental This API is unstable and may change without notice. */ export type SubagentPathSource = ExtensionPathSource; /** * Computed paths for an installed subagent directory. * * - `canonicalPath`: root of the installed subagent * - `subagentSrcPath`: where actual subagent source files live * * Native packages use `/src`; portable acquired formats use * the source-qualified package root directly when supported. * * @experimental This API is unstable and may change without notice. */ export interface SubagentDirPaths { readonly canonicalPath: AbsolutePath; readonly subagentSrcPath: AbsolutePath; } /** * Content filename for subagent instructions. * * @experimental This API is unstable and may change without notice. */ export declare const subagentContentFilename: (name: string) => string; /** * Content path for subagent instructions. * * @experimental This API is unstable and may change without notice. */ export declare const subagentContentPath: (join: (...paths: string[]) => string, root: string, name: string) => AbsolutePath; export declare const computeSubagentPathsForLayout: (join: (...paths: string[]) => string, layout: WorkspaceLayout, source: SubagentPathSource, sanitizedName: string) => SubagentDirPaths; //# sourceMappingURL=paths.d.ts.map