@yemi33/minions 0.1.852 → 0.1.853

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,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.852 (2026-04-11)
3
+ ## 0.1.853 (2026-04-11)
4
4
 
5
5
  ### Features
6
6
  - execute CC actions server-side (dispatch, note, knowledge)
@@ -13,6 +13,7 @@
13
13
  - stale PRD shows Regenerate PRD + Resume as-is buttons
14
14
 
15
15
  ### Fixes
16
+ - 3 bugs in server-side CC action execution
16
17
  - PID file leak in indirect spawn + kb-sweep race condition (#821)
17
18
  - KB create modal stays open on API error for retry
18
19
  - steering resume failure no longer silently marked as SUCCESS
@@ -706,7 +706,6 @@ function _tagServerExecuted(actions, actionResults) {
706
706
  }
707
707
  }
708
708
 
709
-
710
709
  async function ccExecuteAction(action, targetTabId) {
711
710
  var status = document.createElement('div');
712
711
  status.style.cssText = 'padding:4px 10px;border-radius:4px;font-size:10px;align-self:flex-start;border:1px dashed var(--border);color:var(--muted)';
package/dashboard.js CHANGED
@@ -592,7 +592,7 @@ async function executeCCActions(actions) {
592
592
  items.push({
593
593
  id, title: action.title || 'Untitled', type: workType,
594
594
  priority: action.priority || 'medium', description: action.description || '',
595
- status: 'pending', created: new Date().toISOString(),
595
+ status: WI_STATUS.PENDING, created: new Date().toISOString(),
596
596
  createdBy: 'command-center', project,
597
597
  ...(action.agents?.length ? { preferred_agent: action.agents[0] } : {}),
598
598
  });
@@ -607,7 +607,9 @@ async function executeCCActions(actions) {
607
607
  break;
608
608
  }
609
609
  case 'knowledge': {
610
+ const validCategories = ['architecture', 'conventions', 'project-notes', 'build-reports', 'reviews'];
610
611
  const category = action.category || 'project-notes';
612
+ if (!validCategories.includes(category)) { results.push({ type: 'knowledge', error: 'Invalid category: ' + category }); break; }
611
613
  const slug = shared.slugify(action.title || 'entry');
612
614
  const kbDir = path.join(MINIONS_DIR, 'knowledge', category);
613
615
  if (!fs.existsSync(kbDir)) fs.mkdirSync(kbDir, { recursive: true });
@@ -616,8 +618,8 @@ async function executeCCActions(actions) {
616
618
  break;
617
619
  }
618
620
  default:
619
- // For action types that map 1:1 to API endpoints, flag as client-executed
620
- results.push({ type: action.type, ok: true, clientExecuted: false });
621
+ // Server didn't handle frontend must execute
622
+ results.push({ type: action.type });
621
623
  break;
622
624
  }
623
625
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.852",
3
+ "version": "0.1.853",
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"