agentlife 1.3.1 → 1.3.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.
Files changed (2) hide show
  1. package/dist/index.js +16 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1608,6 +1608,10 @@ var VISION_MIN_MEMORY_CHARS = 200;
1608
1608
  var BOOTSTRAP_COOLDOWN_MS = 10 * 60 * 1000;
1609
1609
  var lastBootstrapSentAt = 0;
1610
1610
  var lastWarmupSentAt = 0;
1611
+ function resetBootstrapCooldown() {
1612
+ lastBootstrapSentAt = 0;
1613
+ lastWarmupSentAt = 0;
1614
+ }
1611
1615
  async function ensureVisionPosters(state, runtime, log, options = {}) {
1612
1616
  if (!state.surfaceDb) {
1613
1617
  log("[agentlife] ensureVisionPosters: skipped — surfaceDb not initialized");
@@ -7276,6 +7280,18 @@ function register(api) {
7276
7280
  respond(false, { code: "internal_error", message: e?.message ?? String(e) });
7277
7281
  }
7278
7282
  }, { scope: "operator.read" });
7283
+ api.registerGatewayMethod("agentlife.vision.retryWarmup", async ({ respond }) => {
7284
+ try {
7285
+ if (!currentState) {
7286
+ return respond(false, { error: "plugin state not initialized" });
7287
+ }
7288
+ resetBootstrapCooldown();
7289
+ const result = await ensureVisionPosters(currentState, api.runtime, console.log);
7290
+ respond(true, result);
7291
+ } catch (e) {
7292
+ respond(false, { code: "internal_error", message: e?.message ?? String(e) });
7293
+ }
7294
+ }, { scope: "operator.read" });
7279
7295
  }
7280
7296
  export {
7281
7297
  register as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentlife",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "bun build index.ts --outfile dist/index.js --target node --external openclaw/plugin-sdk",