Files
openclaw/src/cli/config-set-dryrun.ts
Gio Della-Libera 489cab2738 fix(config): add --dry-run support to unset (#81895)
* Add config unset dry-run

Add --dry-run support to config unset, including JSON output and allow-exec validation parity with config set/patch dry-run handling.

* Refresh checks after proof update

* fix(config): address unset dry-run review

Return structured JSON when config unset dry-run misses a path and validate broad secret provider/default unsets against affected SecretRefs.
2026-05-16 11:09:42 -07:00

23 lines
538 B
TypeScript

export type ConfigSetDryRunInputMode = "value" | "json" | "builder" | "unset";
export type ConfigSetDryRunError = {
kind: "missing-path" | "schema" | "resolvability";
message: string;
ref?: string;
};
export type ConfigSetDryRunResult = {
ok: boolean;
operations: number;
configPath: string;
inputModes: ConfigSetDryRunInputMode[];
checks: {
schema: boolean;
resolvability: boolean;
resolvabilityComplete: boolean;
};
refsChecked: number;
skippedExecRefs: number;
errors?: ConfigSetDryRunError[];
};