agentlife 2.6.0 → 2.6.2
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/dist/index.js +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3493,10 +3493,9 @@ function dispatchRehydrate(state, runtime, log = console.log) {
|
|
|
3493
3493
|
const params = JSON.stringify({
|
|
3494
3494
|
sessionKey: buildAgentSessionKey(agentId),
|
|
3495
3495
|
message: REHYDRATE_PROMPT,
|
|
3496
|
-
idempotencyKey: `rehydrate-${agentId}-${bootId}
|
|
3497
|
-
timeoutSeconds: 0
|
|
3496
|
+
idempotencyKey: `rehydrate-${agentId}-${bootId}`
|
|
3498
3497
|
});
|
|
3499
|
-
state.runCommand(["openclaw", "gateway", "call", "chat.send", "--params", params], { timeoutMs:
|
|
3498
|
+
state.runCommand(["openclaw", "gateway", "call", "chat.send", "--params", params], { timeoutMs: 60000 }).then((result) => log(`[agentlife:rehydrate] ${agentId} dispatched: code=${result?.code ?? "?"}`)).catch((e) => log(`[agentlife:rehydrate] ${agentId} dispatch failed: ${e?.message ?? e}`));
|
|
3500
3499
|
}
|
|
3501
3500
|
log(`[agentlife:rehydrate] dispatched rehydrate to ${orphaned.length} orphaned agent(s): ${orphaned.join(", ")}`);
|
|
3502
3501
|
}
|
|
@@ -8539,6 +8538,7 @@ function register(api) {
|
|
|
8539
8538
|
}
|
|
8540
8539
|
loadRegistryFromDisk(state2).catch((e) => console.warn("[agentlife] eager registry load failed:", e?.message));
|
|
8541
8540
|
}
|
|
8541
|
+
registerBootstrapHook(api, state2);
|
|
8542
8542
|
registerSurfacesService(api, state2);
|
|
8543
8543
|
api.registerService({
|
|
8544
8544
|
id: "agentlife-provisioning",
|
|
@@ -8581,7 +8581,6 @@ function register(api) {
|
|
|
8581
8581
|
}
|
|
8582
8582
|
});
|
|
8583
8583
|
initFollowupSystem(api, state2);
|
|
8584
|
-
registerBootstrapHook(api, state2);
|
|
8585
8584
|
registerPromptStateHook(api, state2);
|
|
8586
8585
|
registerWidgetPushTool(api, state2);
|
|
8587
8586
|
registerActivityHooks(api, state2);
|