fix(audit): expose verified visit exports and export-only recovery

This commit is contained in:
2026-10-20 21:20:06 +01:00
parent f87e1ed488
commit ca78b24f47
14 changed files with 359 additions and 59 deletions
+8
View File
@@ -115,6 +115,14 @@ export class PipelinesRepository {
return response.run_detail;
}
/** Export the exact recorded visit again; never invokes its model or tools. */
async repairSessionExport(id, sequence) {
if (!Number.isSafeInteger(id) || id<1 || !Number.isSafeInteger(sequence) || sequence<1) throw new ProtocolError("An exact run and visit are required.");
const response=await this.#client.call({type:Protocol.REPAIR_SESSION_EXPORT,run_id:id,export_sequence:sequence});
if (!response.run_detail) throw new ProtocolError("The server returned no run detail.");
return response.run_detail;
}
/**
* Asks the server to push this connection the live run state it displays
* (R10, also the source of L5's notifications). Send-only, mirroring