monomind 1.9.5 → 1.9.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monomind",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
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",
@@ -89,8 +89,9 @@ const initAction = async (ctx) => {
89
89
  return { success: false, exitCode: 1 };
90
90
  }
91
91
  spinner.succeed('Monomind initialized successfully!');
92
- // Trigger background monograph watch (includes initial build on start).
93
- // Only one spawnavoids SQLite BUSY from concurrent build + watch + session-start hook.
92
+ // Start monograph watch for ongoing file-change rebuilds.
93
+ // NOTE: watchAsync uses ignoreInitial:true it does NOT do an initial build.
94
+ // The initial build is handled by initKnowledgeGraph() above via a detached spawn.
94
95
  try {
95
96
  const { spawn } = await import('child_process');
96
97
  const proc = spawn(process.execPath, [process.argv[1], 'monograph', 'watch'], {
@@ -393,6 +393,13 @@ async function initKnowledgeGraph(targetDir, result) {
393
393
  }
394
394
  catch { /* non-fatal */ }
395
395
  const { spawn } = await import('child_process');
396
+ const { openSync } = await import('fs');
397
+ const logPath = path.join(outputDir, 'build.log');
398
+ let logFd = 'ignore';
399
+ try {
400
+ logFd = openSync(logPath, 'a');
401
+ }
402
+ catch { /* non-fatal */ }
396
403
  const script = `
397
404
  import { buildAsync } from ${JSON.stringify('file://' + entryPoint)};
398
405
  import { unlinkSync } from 'fs';
@@ -401,7 +408,7 @@ try { await buildAsync(${JSON.stringify(targetDir)}); } finally {
401
408
  }`;
402
409
  const child = spawn(process.execPath, ['--input-type=module', '--eval', script], {
403
410
  detached: true,
404
- stdio: 'ignore',
411
+ stdio: ['ignore', logFd, logFd],
405
412
  cwd: targetDir,
406
413
  });
407
414
  child.unref();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoes/monomindcli",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
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",