@yemi33/minions 0.1.604 → 0.1.605

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.605 (2026-04-08)
4
+
5
+ ### Fixes
6
+ - parse ---DOCUMENT--- before ===ACTIONS=== in doc-chat responses
7
+
3
8
  ## 0.1.604 (2026-04-08)
4
9
 
5
10
  ### Fixes
package/dashboard.js CHANGED
@@ -770,16 +770,17 @@ async function ccDocCall({ message, document, title, filePath, selection, canEdi
770
770
  return { answer: 'Failed to process request. Try again.', content: null, actions: [] };
771
771
  }
772
772
 
773
- const { text: stripped, actions } = parseCCActions(result.text);
774
-
775
- const delimIdx = stripped.indexOf('---DOCUMENT---');
773
+ // Parse ---DOCUMENT--- BEFORE actions document content may contain ===ACTIONS=== literally
774
+ const delimIdx = result.text.indexOf('---DOCUMENT---');
776
775
  if (delimIdx >= 0) {
777
- const answer = stripped.slice(0, delimIdx).trim();
778
- let content = stripped.slice(delimIdx + '---DOCUMENT---'.length).trim();
776
+ const answerPart = result.text.slice(0, delimIdx).trim();
777
+ const { text: answer, actions } = parseCCActions(answerPart);
778
+ let content = result.text.slice(delimIdx + '---DOCUMENT---'.length).trim();
779
779
  content = content.replace(/^```\w*\n?/, '').replace(/\n?```$/, '').trim();
780
780
  return { answer, content, actions };
781
781
  }
782
782
 
783
+ const { text: stripped, actions } = parseCCActions(result.text);
783
784
  return { answer: stripped, content: null, actions };
784
785
  }
785
786
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.604",
3
+ "version": "0.1.605",
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"