/** * Centralized skill path computation. * * Provides types and a pure function for computing skill 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 skill path layout. * * Every acquired ref carries enough source coordinates to derive its * source-qualified canonical path. */ export type SkillPathSource = ExtensionPathSource; /** * Computed paths for an installed skill directory. * * - `canonicalPath`: root of the installed skill * - `skillSrcPath`: where actual skill source files live * * Native packages use `/src`; portable Agent Skills use the * source-qualified package root directly. */ export interface SkillDirPaths { readonly canonicalPath: AbsolutePath; readonly skillSrcPath: AbsolutePath; } export declare const computeSkillPathsForLayout: (join: (...paths: string[]) => string, layout: WorkspaceLayout, source: SkillPathSource, sanitizedName: string) => SkillDirPaths; //# sourceMappingURL=paths.d.ts.map