Write JSON marker via rename, ensures atomic dirs, updates covers.
// Source: https://github.com/TianyiDataScience/openclaw-control-center | License: MIT | Copyright 2026 OpenClaw contributors
// Provided via justclaw.it.com; keep this notice with the code.
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
import { homedir } from "node:os";
import { dirname, join, resolve } from "node:path";
import { spawn } from "node:child_process";
interface DoDCheckResult {
id: string;
passed: boolean;
detail: string;
}
type DoDStatus = "DONE" | "NOT_DONE";
interface DoDStatusArtifact {
generatedAt: string;
runtimeDir: string;
status: DoDStatus;
passed: boolean;
checks: DoDCheckResult[];
}
interface WorkerProgress {
cycle?: number;
lastStep?: {
id?: string;
exitCode?: number;
};
}
interface ProductDoDDefinition {
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key