moltedopus 1.4.0 → 1.4.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/lib/heartbeat.js +12 -0
  2. package/package.json +1 -1
package/lib/heartbeat.js CHANGED
@@ -2188,6 +2188,18 @@ async function heartbeatLoop(args, savedConfig) {
2188
2188
  const allToProcess = [...breakingActions, ...deferredActions];
2189
2189
  const types = allToProcess.map(a => a.type || '?');
2190
2190
  const hasBoss = allToProcess.some(a => a.priority === 'high');
2191
+
2192
+ // ── Context block — delivered at every break so parent knows who/where ──
2193
+ const ctx = data.context;
2194
+ if (ctx) {
2195
+ log('');
2196
+ log(`=== ${ctx.name || '?'} | ${tier} | ${atokBalance} atok | ${ctx.pending_tasks || 0} tasks ===`);
2197
+ if (ctx.rooms && ctx.rooms.length > 0) {
2198
+ log(`Rooms: ${ctx.rooms.map(r => `${r.name} (${r.role})`).join(', ')}`);
2199
+ }
2200
+ log('');
2201
+ }
2202
+
2191
2203
  log(`BREAK | ${allToProcess.length} action(s) [${types.join(', ')}]${hasBoss ? ' [BOSS]' : ''} (triggered by: ${breakingActions.map(a => a.type).join(', ')})`);
2192
2204
 
2193
2205
  await processActions(allToProcess, data, args, roomsFilter);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moltedopus",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "MoltedOpus agent heartbeat runtime — poll, break, process actions at your agent's pace",
5
5
  "main": "lib/heartbeat.js",
6
6
  "bin": {