export type WorkspaceLayout = { sandboxCwd: string; /** `undefined` leaves the harness its per-session default. */ workDir: string | undefined; }; /** * Where to root the sandbox, and which directory inside it the session works in. * * The harness gives every session a work directory under the sandbox root and * starts Claude Code there — `cwd: workdir` in the bridge — and it refuses to * use the root itself. Rooted at the project, that means the agent begins in an * empty `claude-code-` directory one level below the working copy it * was asked about. Rooting at the project's parent instead makes the session * work directory *be* the project, so the agent starts where the user is, and * the harness's own artifacts land beside the project rather than in it. * * Falls back to the project when the parent cannot serve — a project at a * filesystem root has no usable name, and a parent we cannot write to would * fail the session at startup. The per-session directory returns in that case, * and `pruneHarnessArtifacts` sweeps it once it is cold. */ export declare function resolveWorkspaceLayout(dir: string): WorkspaceLayout; //# sourceMappingURL=layout.d.ts.map