import { readdirSync, readFileSync, writeFileSync } from "node:fs";
import { homedir } from "node:os";
import { spawnWithCapture } from "../utils/spawn_capture.js";
export function createDefaultCoreDeps() {
    return {
        clock: {
            now: () => Date.now(),
        },
        fs: {
            readFile: (path) => readFileSync(path, "utf-8"),
            writeFile: (path, content) => {
                writeFileSync(path, content, "utf-8");
            },
            listDir: (path) => readdirSync(path),
        },
        spawn: spawnWithCapture,
        env: {
            cwd: () => process.cwd(),
            home: () => homedir(),
            platform: () => process.platform,
            nodeVersion: () => process.version,
            env: () => process.env,
        },
    };
}
//# sourceMappingURL=deps.js.map