fix: wire sentinel sync helpers
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user