letagents 0.12.24 → 0.12.25

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.
@@ -200,7 +200,9 @@ export function profileAwareToolServer(server, profile, dependencies = productio
200
200
  return result;
201
201
  });
202
202
  };
203
- return target.tool.call(target, name, ...registration.slice(0, -1), wrapped);
203
+ // Reuse the daemon effect classification for native MCP approval UI.
204
+ // Unknown tools remain mutations; this hint never bypasses the turn fence.
205
+ return target.tool.call(target, name, ...registration.slice(0, -1), { readOnlyHint: !mutation }, wrapped);
204
206
  };
205
207
  },
206
208
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "letagents",
3
- "version": "0.12.24",
3
+ "version": "0.12.25",
4
4
  "description": "Let Agents Chat \u2014 MCP server for AI agent communication",
5
5
  "type": "module",
6
6
  "main": "dist/mcp/server.js",
@@ -845,10 +845,8 @@ export async function ensureRequestedRootsProjected(database, roomId, rootNumber
845
845
  workStartedAt = performance.now();
846
846
  }
847
847
  if (batch.processed === 0) break;
848
- if (performance.now() - foregroundStartedAt >= foregroundTimeBudgetMs) {
849
- if (scheduleOnTimeout) scheduleRequestedRootsRepair(database, roomId, rootNumbers);
850
- throw new LocalThreadRoutingProjectionUnavailableError();
851
- }
848
+ // Recheck completion before enforcing the next batch's deadline. A final
849
+ // committed batch may finish just before a long event-loop yield.
852
850
  }
853
851
  }
854
852