monomind 1.10.32 → 1.10.33
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.
|
@@ -6,7 +6,7 @@ module.exports = {
|
|
|
6
6
|
var intelligence = hCtx.intelligence;
|
|
7
7
|
var args = hCtx.args;
|
|
8
8
|
if (intelligence && intelligence.stats) {
|
|
9
|
-
await Promise.resolve(intelligence.stats(args.includes('--json')));
|
|
9
|
+
try { await Promise.resolve(intelligence.stats(args.includes('--json'))); } catch (e) { /* non-fatal */ }
|
|
10
10
|
} else {
|
|
11
11
|
console.log('[WARN] Intelligence module not available. Run session-restore first.');
|
|
12
12
|
}
|
|
@@ -1164,14 +1164,25 @@ function readMode() {
|
|
|
1164
1164
|
return 'full'; // default
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
|
+
// ─── Testability export (when required as a module, not run as CLI) ──────────
|
|
1168
|
+
if (require.main !== module) {
|
|
1169
|
+
module.exports = {
|
|
1170
|
+
readJSON, safeStat, modelLabel,
|
|
1171
|
+
getSecurityStatus, getSwarmStatus, getADRStatus,
|
|
1172
|
+
getHooksStatus, getActiveAgent, getAgentDBStats,
|
|
1173
|
+
getLearningStats, getTestStats, getIntegrationStatus,
|
|
1174
|
+
generateJSON,
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1167
1178
|
// ─── Main ───────────────────────────────────────────────────────
|
|
1168
|
-
if (process.argv.includes('--json')) {
|
|
1179
|
+
if (require.main === module && process.argv.includes('--json')) {
|
|
1169
1180
|
console.log(JSON.stringify(generateJSON(), null, 2));
|
|
1170
|
-
} else if (process.argv.includes('--compact')) {
|
|
1181
|
+
} else if (require.main === module && process.argv.includes('--compact')) {
|
|
1171
1182
|
console.log(JSON.stringify(generateJSON()));
|
|
1172
|
-
} else if (process.argv.includes('--single-line')) {
|
|
1183
|
+
} else if (require.main === module && process.argv.includes('--single-line')) {
|
|
1173
1184
|
console.log(generateStatusline());
|
|
1174
|
-
} else if (process.argv.includes('--toggle')) {
|
|
1185
|
+
} else if (require.main === module && process.argv.includes('--toggle')) {
|
|
1175
1186
|
// Toggle mode and print the new view
|
|
1176
1187
|
const current = readMode();
|
|
1177
1188
|
const next = current === 'compact' ? 'full' : 'compact';
|
|
@@ -1184,7 +1195,7 @@ if (process.argv.includes('--json')) {
|
|
|
1184
1195
|
} else {
|
|
1185
1196
|
console.log(generateDashboard());
|
|
1186
1197
|
}
|
|
1187
|
-
} else {
|
|
1198
|
+
} else if (require.main === module) {
|
|
1188
1199
|
// Default: respect mode state file
|
|
1189
1200
|
const mode = readMode();
|
|
1190
1201
|
if (mode === 'compact') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monomind",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.33",
|
|
4
4
|
"description": "Monomind - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monoes/monomindcli",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Monomind CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|