mr-memory 3.11.0 → 3.11.1
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.
- package/auto-consolidate.js +4 -0
- package/auto-consolidate.ts +5 -1
- package/package.json +1 -1
package/auto-consolidate.js
CHANGED
|
@@ -212,6 +212,10 @@ export async function runAutoConsolidate(options) {
|
|
|
212
212
|
sessionKey,
|
|
213
213
|
message: consolidationMessage(tier),
|
|
214
214
|
deliver: false,
|
|
215
|
+
// The gateway's `agent` method requires idempotencyKey on some
|
|
216
|
+
// deployments (and auto-generates it on others); always send a
|
|
217
|
+
// fresh one per run attempt so both validate.
|
|
218
|
+
idempotencyKey: randomUUID(),
|
|
215
219
|
});
|
|
216
220
|
const waited = await options.runtime.waitForRun({ runId, timeoutMs: RUN_TIMEOUT_MS });
|
|
217
221
|
status = waited.status;
|
package/auto-consolidate.ts
CHANGED
|
@@ -49,7 +49,7 @@ export type ReflectionDebtBlock = {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
type SubagentRuntime = {
|
|
52
|
-
run: (params: { sessionKey: string; message: string; deliver?: boolean; lane?: string }) => Promise<{ runId: string }>;
|
|
52
|
+
run: (params: { sessionKey: string; message: string; deliver?: boolean; lane?: string; idempotencyKey?: string }) => Promise<{ runId: string }>;
|
|
53
53
|
waitForRun: (params: { runId: string; timeoutMs?: number }) => Promise<{ status: string; error?: string }>;
|
|
54
54
|
deleteSession: (params: { sessionKey: string; deleteTranscript?: boolean }) => Promise<void>;
|
|
55
55
|
};
|
|
@@ -215,6 +215,10 @@ export async function runAutoConsolidate(options: AutoConsolidateOptions): Promi
|
|
|
215
215
|
sessionKey,
|
|
216
216
|
message: consolidationMessage(tier),
|
|
217
217
|
deliver: false,
|
|
218
|
+
// The gateway's `agent` method requires idempotencyKey on some
|
|
219
|
+
// deployments (and auto-generates it on others); always send a
|
|
220
|
+
// fresh one per run attempt so both validate.
|
|
221
|
+
idempotencyKey: randomUUID(),
|
|
218
222
|
});
|
|
219
223
|
const waited = await options.runtime.waitForRun({ runId, timeoutMs: RUN_TIMEOUT_MS });
|
|
220
224
|
status = waited.status;
|
package/package.json
CHANGED