@yemi33/minions 0.1.83 → 0.1.85
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 +10 -0
- package/dashboard/js/render-kb.js +12 -0
- package/dashboard.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
// render-kb.js — Knowledge base rendering functions extracted from dashboard.html
|
|
2
2
|
|
|
3
|
+
const KB_CAT_LABELS = {
|
|
4
|
+
architecture: 'Architecture', conventions: 'Conventions',
|
|
5
|
+
'project-notes': 'Project Notes', 'build-reports': 'Build Reports',
|
|
6
|
+
reviews: 'Reviews', learnings: 'Learnings', decisions: 'Decisions',
|
|
7
|
+
incidents: 'Incidents', 'api-notes': 'API Notes',
|
|
8
|
+
};
|
|
9
|
+
const KB_CAT_ICONS = {
|
|
10
|
+
architecture: '\u{1F3D7}', conventions: '\u{1F4CF}',
|
|
11
|
+
'project-notes': '\u{1F4DD}', 'build-reports': '\u{1F6E0}',
|
|
12
|
+
reviews: '\u{1F50D}', learnings: '\u{1F4A1}', decisions: '\u{2696}',
|
|
13
|
+
incidents: '\u{1F6A8}', 'api-notes': '\u{1F517}',
|
|
14
|
+
};
|
|
3
15
|
let _kbActiveTab = 'all';
|
|
4
16
|
|
|
5
17
|
async function refreshKnowledgeBase() {
|
package/dashboard.js
CHANGED
|
@@ -259,7 +259,7 @@ setInterval(() => {
|
|
|
259
259
|
// ── Command Center: session state + helpers ─────────────────────────────────
|
|
260
260
|
|
|
261
261
|
const CC_SESSION_EXPIRY_MS = 2 * 60 * 60 * 1000; // 2 hours
|
|
262
|
-
const CC_SESSION_MAX_TURNS =
|
|
262
|
+
const CC_SESSION_MAX_TURNS = Infinity;
|
|
263
263
|
let ccSession = { sessionId: null, createdAt: null, lastActiveAt: null, turnCount: 0 };
|
|
264
264
|
let ccInFlight = false;
|
|
265
265
|
let ccInFlightSince = 0; // timestamp — auto-release stuck guard
|
|
@@ -538,7 +538,7 @@ function updateSession(store, key, sessionId, existing) {
|
|
|
538
538
|
* @param {number} opts.maxTurns - Max tool-use turns
|
|
539
539
|
* @param {string} opts.allowedTools - Comma-separated tool list
|
|
540
540
|
*/
|
|
541
|
-
async function ccCall(message, { store = 'cc', sessionKey, extraContext, label = 'command-center', timeout = 900000, maxTurns =
|
|
541
|
+
async function ccCall(message, { store = 'cc', sessionKey, extraContext, label = 'command-center', timeout = 900000, maxTurns = 50, allowedTools = 'Bash,Read,Write,Edit,Glob,Grep,WebFetch,WebSearch', skipStatePreamble = false, model = 'sonnet' } = {}) {
|
|
542
542
|
const existing = resolveSession(store, sessionKey);
|
|
543
543
|
let sessionId = existing ? existing.sessionId : null;
|
|
544
544
|
|
|
@@ -623,7 +623,7 @@ async function ccDocCall({ message, document, title, filePath, selection, canEdi
|
|
|
623
623
|
store: 'doc', sessionKey: filePath || title,
|
|
624
624
|
extraContext: docContext, label: 'doc-chat',
|
|
625
625
|
timeout: isRich ? 300000 : 60000,
|
|
626
|
-
maxTurns: isRich ?
|
|
626
|
+
maxTurns: isRich ? 50 : 1,
|
|
627
627
|
model: isRich ? 'sonnet' : 'haiku',
|
|
628
628
|
allowedTools: isRich ? 'Read,Glob,Grep' : '',
|
|
629
629
|
skipStatePreamble: !isRich,
|
package/package.json
CHANGED