fix: wire sentinel sync helpers

This commit is contained in:
Codex
2026-07-03 05:32:13 +00:00
parent 89cde4fb80
commit 8945adec1b
3 changed files with 19 additions and 9 deletions
@@ -825,6 +825,10 @@ export function rendered(ok: boolean, command: string, text: string): RenderedCl
return { ok, command, renderedText: `${text.trimEnd()}\n`, contentType: "text/plain" };
}
export function sentinelProgressEvent(event: string, payload: Record<string, unknown>): void {
console.error(JSON.stringify({ event, at: new Date().toISOString(), ...payload, valuesRedacted: true }));
}
export function readConfigFile(file: string): unknown {
if (file.startsWith("/") || file.includes("..") || !file.startsWith("config/")) throw new Error(`unsafe configRef file: ${file}`);
const abs = rootPath(file);