/** * New pack operation — scaffolds a new pack directory with manifest. * * @experimental This API is unstable and may change without notice. */ import * as FileSystem from "effect/FileSystem"; import * as Path from "effect/Path"; import type { Handle } from "../../extensions/handle.js"; import type { OperationHandler } from "../../plan/apply-plan.js"; import type { Operation } from "../../plan/plan.js"; import { WorkspaceMutations } from "../../workspace/service-interface.js"; /** * Args for the new pack operation. */ export interface NewPackOperationArgs { /** Pack name (without owner). */ readonly name: string; /** Profile (e.g., "@myorg"). */ readonly owner: Handle; } /** * Scaffold a new pack in the workspace. * * @experimental This API is unstable and may change without notice. */ export type NewPackOperation = Operation<"new-pack", NewPackOperationArgs>; /** * New pack operation handler. * * 1. Compute pack directory path * 2. Check if pack manifest already exists * 3. Create pack directory * 4. Write pack.json manifest */ export declare const newPack: OperationHandler; //# sourceMappingURL=new-pack.d.ts.map