sinapse-ai 7.4.6 → 7.4.7

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.
@@ -7,8 +7,8 @@
7
7
  # - SHA256 hashes for change detection
8
8
  # - File types for categorization
9
9
  #
10
- version: 7.4.6
11
- generated_at: "2026-03-29T05:05:29.249Z"
10
+ version: 7.4.7
11
+ generated_at: "2026-03-29T07:44:02.128Z"
12
12
  generator: scripts/generate-install-manifest.js
13
13
  file_count: 1101
14
14
  files:
@@ -342,14 +342,19 @@ function installScripts(chromePath, platform) {
342
342
  function installHooks() {
343
343
  step('Merging hooks into ~/.claude/settings.json...');
344
344
 
345
+ const binDir = detectPlatform() === 'windows'
346
+ ? path.join(SINAPSE_DIR, 'bin')
347
+ : SCRIPTS_DIR;
348
+ const ensureCmd = path.join(binDir, 'chrome-ensure').replace(/\\/g, '/');
349
+ const logCmd = path.join(binDir, 'chrome-brain-log').replace(/\\/g, '/');
345
350
  const hookDefs = {
346
351
  PreToolUse: [
347
- { matcher: 'mcp__chrome-devtools__*', hooks: [{ type: 'command', command: 'chrome-ensure' }] },
348
- { matcher: 'mcp__claude-in-chrome__*', hooks: [{ type: 'command', command: 'chrome-ensure' }] },
352
+ { matcher: 'mcp__chrome-devtools__*', hooks: [{ type: 'command', command: ensureCmd }] },
353
+ { matcher: 'mcp__claude-in-chrome__*', hooks: [{ type: 'command', command: ensureCmd }] },
349
354
  ],
350
355
  PostToolUse: [
351
- { matcher: 'mcp__chrome-devtools__*', hooks: [{ type: 'command', command: 'chrome-brain-log' }] },
352
- { matcher: 'mcp__claude-in-chrome__*', hooks: [{ type: 'command', command: 'chrome-brain-log' }] },
356
+ { matcher: 'mcp__chrome-devtools__*', hooks: [{ type: 'command', command: logCmd }] },
357
+ { matcher: 'mcp__claude-in-chrome__*', hooks: [{ type: 'command', command: logCmd }] },
353
358
  ],
354
359
  };
355
360
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinapse-ai",
3
- "version": "7.4.6",
3
+ "version": "7.4.7",
4
4
  "description": "SINAPSE AI: Framework de orquestracao de IA — 18 squads, 175 agentes especializados",
5
5
  "bin": {
6
6
  "sinapse": "bin/sinapse.js",
@@ -347,14 +347,17 @@ function writeJson(filePath, data) {
347
347
  * Preserves all existing hooks — only replaces entries with matching matchers.
348
348
  */
349
349
  function mergeHooks() {
350
+ const binDir = getBinDir(detectOS());
351
+ const ensureCmd = path.join(binDir, 'chrome-ensure').replace(/\\/g, '/');
352
+ const logCmd = path.join(binDir, 'chrome-brain-log').replace(/\\/g, '/');
350
353
  const newHooks = {
351
354
  PreToolUse: [
352
- { matcher: 'mcp__chrome-devtools__*', hooks: [{ type: 'command', command: 'chrome-ensure' }] },
353
- { matcher: 'mcp__claude-in-chrome__*', hooks: [{ type: 'command', command: 'chrome-ensure' }] },
355
+ { matcher: 'mcp__chrome-devtools__*', hooks: [{ type: 'command', command: ensureCmd }] },
356
+ { matcher: 'mcp__claude-in-chrome__*', hooks: [{ type: 'command', command: ensureCmd }] },
354
357
  ],
355
358
  PostToolUse: [
356
- { matcher: 'mcp__chrome-devtools__*', hooks: [{ type: 'command', command: 'chrome-brain-log' }] },
357
- { matcher: 'mcp__claude-in-chrome__*', hooks: [{ type: 'command', command: 'chrome-brain-log' }] },
359
+ { matcher: 'mcp__chrome-devtools__*', hooks: [{ type: 'command', command: logCmd }] },
360
+ { matcher: 'mcp__claude-in-chrome__*', hooks: [{ type: 'command', command: logCmd }] },
358
361
  ],
359
362
  };
360
363