@yemi33/minions 0.1.602 → 0.1.604

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.604 (2026-04-08)
4
+
5
+ ### Fixes
6
+ - revert doc-chat session key to stable filePath || title
7
+ - doc-chat session key collision and model passthrough
8
+
3
9
  ## 0.1.602 (2026-04-08)
4
10
 
5
11
  ### Features
@@ -211,6 +211,7 @@ async function _processQaMessage(message, selection) {
211
211
  title: capturedDocContext.title,
212
212
  selection: selection,
213
213
  filePath: capturedFilePath || null,
214
+ model: window._lastStatus?.autoMode?.ccModel || undefined,
214
215
  }),
215
216
  });
216
217
  const data = await res.json();
package/dashboard.js CHANGED
@@ -754,13 +754,15 @@ async function ccCall(message, { store = 'cc', sessionKey, extraContext, label =
754
754
  }
755
755
 
756
756
  // Doc-specific wrapper — adds document context, parses ---DOCUMENT---
757
- async function ccDocCall({ message, document, title, filePath, selection, canEdit, isJson }) {
757
+ async function ccDocCall({ message, document, title, filePath, selection, canEdit, isJson, model }) {
758
758
  const docContext = `## Document Context\n**${title || 'Document'}**${filePath ? ' (`' + filePath + '`)' : ''}${isJson ? ' (JSON)' : ''}\n${selection ? '\n**Selected text:**\n> ' + selection.slice(0, 1500) + '\n' : ''}\n\`\`\`\n${document.slice(0, 20000)}\n\`\`\`\n${canEdit ? '\nIf editing: respond with your explanation, then `---DOCUMENT---` on its own line, then the COMPLETE updated file.' : '\n(Read-only — answer questions only.)'}`;
759
759
 
760
- // All doc-chats use Sonnet with full tools and minions state same brain as Command Center
760
+ // Session key: filePath is stable and unique; title is the fallback for read-only Q&A
761
+ const sessionKey = filePath || title;
761
762
  const result = await ccCall(message, {
762
- store: 'doc', sessionKey: filePath || title,
763
+ store: 'doc', sessionKey,
763
764
  extraContext: docContext, label: 'doc-chat',
765
+ ...(model ? { model } : {}),
764
766
  });
765
767
 
766
768
  if (result.code !== 0 || !result.text) {
@@ -2751,6 +2753,7 @@ What would you like to discuss or change? When you're happy, say "approve" and I
2751
2753
  const { answer, content, actions } = await ccDocCall({
2752
2754
  message: body.message, document: currentContent, title: body.title,
2753
2755
  filePath: body.filePath, selection: body.selection, canEdit, isJson,
2756
+ model: body.model || undefined,
2754
2757
  });
2755
2758
 
2756
2759
  if (!content) return jsonReply(res, 200, { ok: true, answer, edited: false, actions });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.602",
3
+ "version": "0.1.604",
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"