feat(memory): release Mnemo project bridge and schema2 recovery
Official contracts and Windows source CI / windows-source (push) Has been cancelled

This commit is contained in:
Agent Workbench Dev
2026-11-11 03:03:43 +08:00
parent f7705d9634
commit e306f40cae
76 changed files with 10475 additions and 127 deletions
+8
View File
@@ -228,6 +228,11 @@ export class Provider {
return responseDetails;
};
try {
if (body && options.beforePhysicalDispatch) {
await options.beforePhysicalDispatch({ attemptId: receipt.attemptId, body });
signal?.throwIfAborted();
options.beforeDispatch?.({ previousFailure });
}
dispatched = true;
const transport=this.fetcher?null:(this.transport??=new ModelTransport());
if(transport)onProgress?.({phase:'running',transport:transport.profile,attempt,maxAttempts:policy.attempts,wireAttemptId:receipt.attemptId});
@@ -315,6 +320,9 @@ export class Provider {
onProgress?.({ phase: 'completed', attempt, maxAttempts: policy.attempts, durationMs: Date.now() - startedAt, modelIdentity: receipt.modelIdentity });
return result;
} catch (error) {
// No HTTP has been submitted. The runtime can prepare the original
// task without its now-invalid optional remote memory, once.
if (!dispatched && error.code === 'PROJECT_SELECTION_STALE') throw error;
outcome = signal?.aborted ? 'interrupted' : readingStream && !streamTerminalSeen ? 'unknown' : 'failed';
signal?.throwIfAborted();
let diagnostic = connectionFailure(error, { ...context, method:body?'POST':'GET',responseReceived:receipt.httpStatus!==undefined,