agents-relay 2.0.219 → 2.0.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,6 +92,27 @@ export class LocalAuthorityDurableStore {
|
|
|
92
92
|
priority: 200,
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
+
/** Host-owned mobile Review is a SQLite lifecycle fact, never a GitHub
|
|
96
|
+
* projection. Use the same authoritative host-invocation ledger as the
|
|
97
|
+
* preview CLI and do not acknowledge a decision without durable storage. */
|
|
98
|
+
async recordHostInvocationEvent(delivery, outcome, fingerprint) {
|
|
99
|
+
if (!this.authority.recordHostInvocationEvent)
|
|
100
|
+
throw new Error('SQLite host invocation event ledger unavailable');
|
|
101
|
+
await this.authority.recordHostInvocationEvent(delivery, outcome, fingerprint);
|
|
102
|
+
}
|
|
103
|
+
async hasHostInvocationDecision(jobId, taskId, invocationId, fingerprint) {
|
|
104
|
+
if (!this.authority.hasHostInvocationDecision)
|
|
105
|
+
throw new Error('SQLite host invocation decision ledger unavailable');
|
|
106
|
+
return this.authority.hasHostInvocationDecision(jobId, taskId, invocationId, fingerprint);
|
|
107
|
+
}
|
|
108
|
+
async recordHostInvocationDecision(delivery, fingerprint) {
|
|
109
|
+
if (!this.authority.recordHostInvocationDecision)
|
|
110
|
+
throw new Error('SQLite host invocation decision ledger unavailable');
|
|
111
|
+
const receipt = await this.authority.recordHostInvocationDecision(delivery, fingerprint);
|
|
112
|
+
if (receipt.outcome === 'accepted')
|
|
113
|
+
publishLocalCommit(await this.load(delivery.jobId));
|
|
114
|
+
return receipt;
|
|
115
|
+
}
|
|
95
116
|
async recordExecutionProcess(record) {
|
|
96
117
|
await this.authority.recordExecutionProcess(record);
|
|
97
118
|
}
|