From a3b608379a440538ac01e6fbc6a25b82b4f2403d Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 6 Mar 2026 01:14:04 -0500 Subject: [PATCH] config: expose operator policy snapshot metadata --- src/config/types.openclaw.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/config/types.openclaw.ts b/src/config/types.openclaw.ts index 0a818419557..50e844db53b 100644 --- a/src/config/types.openclaw.ts +++ b/src/config/types.openclaw.ts @@ -128,6 +128,15 @@ export type LegacyConfigIssue = { message: string; }; +export type ConfigOperatorPolicySnapshot = { + path: string; + exists: boolean; + valid: boolean; + lockedPaths: string[]; + issues: ConfigValidationIssue[]; + warnings: ConfigValidationIssue[]; +}; + export type ConfigFileSnapshot = { path: string; exists: boolean; @@ -145,4 +154,5 @@ export type ConfigFileSnapshot = { issues: ConfigValidationIssue[]; warnings: ConfigValidationIssue[]; legacyIssues: LegacyConfigIssue[]; + policy?: ConfigOperatorPolicySnapshot; };