@yemi33/minions 0.1.120 → 0.1.121

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.121 (2026-04-01)
4
+
5
+ ### Dashboard
6
+ - dashboard.js
7
+
3
8
  ## 0.1.120 (2026-04-01)
4
9
 
5
10
  ### Dashboard
package/dashboard.js CHANGED
@@ -3095,7 +3095,11 @@ What would you like to discuss or change? When you're happy, say "approve" and I
3095
3095
  }
3096
3096
 
3097
3097
  safeWrite(configPath, config);
3098
- return jsonReply(res, 200, { ok: true, message: 'Settings saved. Restart engine for changes to take full effect.' });
3098
+ // Refresh in-memory CONFIG so subsequent reads see the update
3099
+ reloadConfig();
3100
+ invalidateStatusCache();
3101
+ console.log('[settings] Saved config.json — engine keys:', Object.keys(config.engine || {}));
3102
+ return jsonReply(res, 200, { ok: true, message: 'Settings saved. Engine picks up changes on next tick.' });
3099
3103
  } catch (e) { return jsonReply(res, 500, { error: e.message }); }
3100
3104
  }
3101
3105
 
@@ -3332,6 +3336,16 @@ What would you like to discuss or change? When you're happy, say "approve" and I
3332
3336
  return jsonReply(res, 200, { ok: true, file: path.basename(filePath) });
3333
3337
  }},
3334
3338
 
3339
+ { method: 'POST', path: '/api/agents/charter', desc: 'Save agent charter', params: 'agent, content', handler: async (req, res) => {
3340
+ const body = await readBody(req);
3341
+ if (!body.agent || body.content == null) return jsonReply(res, 400, { error: 'agent and content required' });
3342
+ const agentId = body.agent.replace(/[^a-zA-Z0-9_-]/g, '');
3343
+ const charterDir = path.join(MINIONS_DIR, 'agents', agentId);
3344
+ if (!fs.existsSync(charterDir)) fs.mkdirSync(charterDir, { recursive: true });
3345
+ safeWrite(path.join(charterDir, 'charter.md'), body.content);
3346
+ invalidateStatusCache();
3347
+ return jsonReply(res, 200, { ok: true });
3348
+ }},
3335
3349
  { method: 'POST', path: '/api/agents/steer', desc: 'Inject steering message into a running agent', params: 'agent, message', handler: async (req, res) => {
3336
3350
  const body = await readBody(req);
3337
3351
  const { agent: agentId, message } = body;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.120",
3
+ "version": "0.1.121",
4
4
  "description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
5
5
  "bin": {
6
6
  "minions": "bin/minions.js"