/** * Workspace utilities — prepare session directories and write skaile.yaml. */ import type { CreateAgentSessionOptions } from "./types.js"; /** * Prepare a workspace directory for a session. Returns the path and cleanup fn. * * If `opts.workspaceDir` is set, that directory is created (if needed) and returned * with no cleanup. Otherwise a unique temporary directory (`skaile-sdk-*` under the * OS temp dir) is created via `mkdtempSync`; the cleanup function removes it on * session stop unless `keepWorkspace` is true. * * @param opts - Session creation options providing `workspaceDir` and `keepWorkspace`. * @returns An object with the resolved `dir` path and an optional `cleanup` function. * @docLink packages/sdk/concepts#workspace-helpers */ export declare function prepareWorkspace(opts: CreateAgentSessionOptions): { dir: string; cleanup: (() => void) | undefined; }; /** * Write skaile.yaml from inline {@link CreateAgentSessionOptions}. * * Only writes if `agent`, `mounts`, or `connectors` are provided and no `skaile.yaml` * already exists in `dir` (existing config takes precedence). Connector `adapter` fields * are mapped to the `driver` field expected by the core runtime. * * @param dir - Absolute path to the workspace directory. * @param opts - Session options containing agent config, mounts, and connectors to serialize. * @docLink packages/sdk/concepts#workspace-helpers */ export declare function writeSkaileYaml(dir: string, opts: CreateAgentSessionOptions): void; //# sourceMappingURL=workspace.d.ts.map