agentlife 2.6.0 → 2.6.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -3
  2. 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: 1e4 }).then(() => log(`[agentlife:rehydrate] dispatched to ${agentId}`)).catch((e) => log(`[agentlife:rehydrate] ${agentId} dispatch failed: ${e?.message ?? e}`));
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentlife",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "bun build index.ts --outfile dist/index.js --target node --external openclaw/plugin-sdk",