@yemi33/minions 0.1.603 → 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 +7 -1
- package/dashboard.js +8 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.605 (2026-04-08)
|
|
4
4
|
|
|
5
5
|
### Fixes
|
|
6
|
+
- parse ---DOCUMENT--- before ===ACTIONS=== in doc-chat responses
|
|
7
|
+
|
|
8
|
+
## 0.1.604 (2026-04-08)
|
|
9
|
+
|
|
10
|
+
### Fixes
|
|
11
|
+
- revert doc-chat session key to stable filePath || title
|
|
6
12
|
- doc-chat session key collision and model passthrough
|
|
7
13
|
|
|
8
14
|
## 0.1.602 (2026-04-08)
|
package/dashboard.js
CHANGED
|
@@ -757,8 +757,8 @@ async function ccCall(message, { store = 'cc', sessionKey, extraContext, label =
|
|
|
757
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
|
-
// Session key:
|
|
761
|
-
const sessionKey = filePath ||
|
|
760
|
+
// Session key: filePath is stable and unique; title is the fallback for read-only Q&A
|
|
761
|
+
const sessionKey = filePath || title;
|
|
762
762
|
const result = await ccCall(message, {
|
|
763
763
|
store: 'doc', sessionKey,
|
|
764
764
|
extraContext: docContext, label: 'doc-chat',
|
|
@@ -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
|
-
|
|
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
|
|
778
|
-
|
|
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.
|
|
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"
|