teapot-coding-agent 0.37.132 → 0.37.133

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/master.js CHANGED
@@ -1628,6 +1628,20 @@ When this task is done (or truly blocked), call finish() with a summary for @${p
1628
1628
  heapUsedMb: +(mu.heapUsed / 1048576).toFixed(1),
1629
1629
  heapTotalMb: +(mu.heapTotal / 1048576).toFixed(1),
1630
1630
  externalMb: +(mu.external / 1048576).toFixed(1),
1631
+ /**
1632
+ * The rest of the picture, because RSS alone says "something is big" and nothing else.
1633
+ *
1634
+ * MEASURED on the operator's machine: `rss 805 · heap 250 · total 316 · ext 5.7` — i.e. ~490MB outside the JS
1635
+ * heap with almost no external memory. That points at V8's untracked space and pages freed-but-not-returned
1636
+ * rather than a JS leak, and these three fields are what tells the two apart next time:
1637
+ * - `arrayBuffersMb` big → Buffers are held (a read, a pty, a response);
1638
+ * - `messagesInMemory` big → conversations are held (agents whose sessions are loaded);
1639
+ * - both small while RSS stays high → allocator fragmentation, not a leak.
1640
+ */
1641
+ arrayBuffersMb: +(mu.arrayBuffers / 1048576).toFixed(1),
1642
+ messagesInMemory: [...this.agents.values()].reduce((n, a) => n + a.conversation.length, 0),
1643
+ // a session that has been read into memory: this is the count that makes "messagesInMemory" interpretable
1644
+ loadedSessions: [...this.agents.values()].filter((a) => a.conversation.length > 0).length,
1631
1645
  cpuMsTotal: Math.round((cu.user + cu.system) / 1000),
1632
1646
  loadavg1: +(os.loadavg()[0]).toFixed(2),
1633
1647
  agents: [...this.agents.values()].map((a) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teapot-coding-agent",
3
- "version": "0.37.132",
3
+ "version": "0.37.133",
4
4
  "description": "A lightweight, always-on multi-agent harness for AI coding agents",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-or-later",