@yemi33/minions 0.1.305 → 0.1.306

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,6 +1,9 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.305 (2026-04-03)
3
+ ## 0.1.306 (2026-04-03)
4
+
5
+ ### Features
6
+ - Add null guards to dashboard.js request handlers
4
7
 
5
8
  ### Fixes
6
9
  - normalize acceptanceCriteria to array (string from doc-chat crashed tick)
package/dashboard.js CHANGED
@@ -845,9 +845,9 @@ const server = http.createServer(async (req, res) => {
845
845
 
846
846
  // Check if verify was created
847
847
  const project = PROJECTS.find(p => {
848
- const plan = JSON.parse(safeRead(activePath) || safeRead(prdPath) || '{}');
849
- return p.name?.toLowerCase() === (plan.project || '').toLowerCase();
850
- }) || PROJECTS[0];
848
+ const plan = safeJson(activePath) || safeJson(prdPath);
849
+ return plan && p.name?.toLowerCase() === (plan.project || '').toLowerCase();
850
+ }) || PROJECTS[0] || null;
851
851
  if (project) {
852
852
  const wiPath = shared.projectWorkItemsPath(project);
853
853
  const items = JSON.parse(safeRead(wiPath) || '[]');
@@ -1037,6 +1037,7 @@ const server = http.createServer(async (req, res) => {
1037
1037
  if (body.project) {
1038
1038
  // Write to project-specific queue
1039
1039
  const targetProject = PROJECTS.find(p => p.name === body.project) || PROJECTS[0];
1040
+ if (!targetProject) return jsonReply(res, 400, { error: 'No projects configured' });
1040
1041
  wiPath = shared.projectWorkItemsPath(targetProject);
1041
1042
  } else {
1042
1043
  // Write to central queue — agent decides which project
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.305",
3
+ "version": "0.1.306",
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"