monomind 1.9.2 → 1.9.3

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.2",
3
+ "version": "1.9.3",
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",
@@ -10,7 +10,7 @@ export function generateSettings(options) {
10
10
  const settings = {};
11
11
  // Add hooks if enabled
12
12
  if (options.components.settings) {
13
- settings.hooks = generateHooksConfig(options.hooks);
13
+ settings.hooks = generateHooksConfig(options.hooks, options.components.graphify);
14
14
  }
15
15
  // Add statusLine configuration if enabled
16
16
  if (options.statusline.enabled) {
@@ -174,6 +174,15 @@ function hookHandlerCmd(subcommand) {
174
174
  function autoMemoryCmd(subcommand) {
175
175
  return hookCmd('.claude/helpers/auto-memory-hook.mjs', subcommand);
176
176
  }
177
+ /** Shorthand for standalone CJS helper scripts (no subcommand) */
178
+ function standaloneHelperCmd(script) {
179
+ if (IS_WINDOWS) {
180
+ return `cmd /c node %CLAUDE_PROJECT_DIR%/.claude/helpers/${script}`;
181
+ }
182
+ // eslint-disable-next-line no-template-curly-in-string
183
+ const dir = '${CLAUDE_PROJECT_DIR:-.}';
184
+ return `sh -c 'exec node "${dir}/.claude/helpers/${script}"'`;
185
+ }
177
186
  /**
178
187
  * Generate statusLine configuration for Claude Code
179
188
  * Uses local helper script for cross-platform compatibility (no npx cold-start)
@@ -197,7 +206,7 @@ function generateStatusLineConfig(_options) {
197
206
  * All hooks invoke scripts directly via `node <script> <subcommand>`,
198
207
  * working identically on Windows, macOS, and Linux.
199
208
  */
200
- function generateHooksConfig(config) {
209
+ function generateHooksConfig(config, graphify = true) {
201
210
  const hooks = {};
202
211
  // Node.js scripts handle errors internally via try/catch.
203
212
  // No shell-level error suppression needed (2>/dev/null || true breaks Windows).
@@ -265,24 +274,33 @@ function generateHooksConfig(config) {
265
274
  },
266
275
  ];
267
276
  }
268
- // SessionStart — restore session state + import auto memory
277
+ // SessionStart — restore session state + import auto memory + build knowledge graph
269
278
  if (config.sessionStart) {
270
- hooks.SessionStart = [
279
+ const sessionStartHooks = [
271
280
  {
272
- hooks: [
273
- {
274
- type: 'command',
275
- command: hookHandlerCmd('session-restore'),
276
- timeout: 15000,
277
- },
278
- {
279
- type: 'command',
280
- command: autoMemoryCmd('import'),
281
- timeout: 8000,
282
- },
283
- ],
281
+ type: 'command',
282
+ command: hookHandlerCmd('session-restore'),
283
+ timeout: 15000,
284
+ },
285
+ {
286
+ type: 'command',
287
+ command: autoMemoryCmd('import'),
288
+ timeout: 8000,
284
289
  },
285
290
  ];
291
+ if (graphify) {
292
+ sessionStartHooks.push({
293
+ type: 'command',
294
+ command: standaloneHelperCmd('graphify-freshen.cjs'),
295
+ timeout: 5000,
296
+ });
297
+ }
298
+ sessionStartHooks.push({
299
+ type: 'command',
300
+ command: standaloneHelperCmd('control-start.cjs'),
301
+ timeout: 5000,
302
+ });
303
+ hooks.SessionStart = [{ hooks: sessionStartHooks }];
286
304
  }
287
305
  // SessionEnd — persist session state
288
306
  if (config.sessionStart) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoes/monomindcli",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
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",