Fix JD01 web observe GC and legacy cleanup

This commit is contained in:
Codex
2026-07-01 03:39:24 +00:00
parent 09edf61fcf
commit 1bc2dd3d69
9 changed files with 1448 additions and 21 deletions
+7 -2
View File
@@ -116,7 +116,7 @@ export interface NodeWebProbeScreenshotOptions {
commandTimeoutSeconds: number;
}
export type NodeWebProbeObserveAction = "start" | "status" | "command" | "stop" | "collect" | "analyze";
export type NodeWebProbeObserveAction = "start" | "status" | "command" | "stop" | "collect" | "analyze" | "gc";
export type NodeWebProbeObserveCommandType =
| "login"
@@ -176,10 +176,15 @@ export interface NodeWebProbeObserveOptions {
screenshotIntervalMs: number;
observerRefreshIntervalMs: number;
maxSamples: number;
maxRunSeconds: number;
commandTimeoutSeconds: number;
waitMs: number;
tailLines: number;
maxFiles: number;
gcKeepHours: number;
gcLimit: number;
confirm: boolean;
dryRun: boolean;
collectView: NodeWebProbeObserveCollectView;
collectFile: string | null;
collectFinding: string | null;
@@ -612,7 +617,7 @@ export async function runNodeDelegatedDomain(config: Config, domain: DelegatedNo
if (scoped.originalArgs.includes("--full")) return withNodeRuntimeControlPlaneStatusFullRendered(result, scoped);
return withNodeRuntimeControlPlaneStatusRendered(result, scoped);
}
if (scoped.action === "apply" || scoped.action === "trigger-current" || scoped.action === "refresh" || scoped.action === "sync" || scoped.action === "runtime-migration" || scoped.action === "cleanup-runs") {
if (scoped.action === "apply" || scoped.action === "trigger-current" || scoped.action === "refresh" || scoped.action === "sync" || scoped.action === "runtime-migration" || scoped.action === "cleanup-runs" || scoped.action === "cleanup-released-pvs" || scoped.action === "cleanup-legacy-docker-images" || scoped.action === "cleanup-legacy-docker-registry-volume") {
if (scoped.confirm && !scoped.dryRun && !scoped.wait) return startNodeDelegatedJob(scoped);
return nodeRuntimeControlPlaneRun(scoped);
}