sinapse-ai 1.11.2 → 1.11.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/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
## [1.11.
|
|
1
|
+
## [1.11.3](https://github.com/caioimori/sinapse-ai/compare/1.11.2...1.11.3) (2026-06-19)
|
|
2
2
|
|
|
3
3
|
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
* **
|
|
5
|
+
* **chrome-brain:** nao abrir o browser em toda sessao (remove hook SessionStart) ([63824bf](https://github.com/caioimori/sinapse-ai/commit/63824bfcaef491cb4012d966a05f2a3c32d944fe))
|
|
6
6
|
|
|
7
7
|
# Changelog
|
|
8
8
|
|
|
@@ -377,12 +377,13 @@ function installHooks() {
|
|
|
377
377
|
const ensureCmd = path.join(binDir, 'chrome-ensure').replace(/\\/g, '/');
|
|
378
378
|
const logCmd = path.join(binDir, 'chrome-brain-log').replace(/\\/g, '/');
|
|
379
379
|
const hookDefs = {
|
|
380
|
-
// SessionStart
|
|
381
|
-
//
|
|
382
|
-
//
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
380
|
+
// NO SessionStart hook on purpose. Launching Chrome at every session start
|
|
381
|
+
// popped a browser window unprompted on boot (bad UX, esp. for new users).
|
|
382
|
+
// The lazy PreToolUse hook below already runs chrome-ensure right before any
|
|
383
|
+
// browser tool call, so Chrome is guaranteed up exactly when (and only when)
|
|
384
|
+
// it's needed — matching the documented design
|
|
385
|
+
// (templates/chrome-brain/rules/chrome-brain-autoload.md:
|
|
386
|
+
// "Chrome connection is guaranteed by PreToolUse hook").
|
|
386
387
|
PreToolUse: [
|
|
387
388
|
{ matcher: 'mcp__chrome-devtools__*', hooks: [{ type: 'command', command: ensureCmd }] },
|
|
388
389
|
{ matcher: 'mcp__claude-in-chrome__*', hooks: [{ type: 'command', command: ensureCmd }] },
|
package/package.json
CHANGED
|
@@ -351,9 +351,9 @@ function mergeHooks() {
|
|
|
351
351
|
const ensureCmd = path.join(binDir, 'chrome-ensure').replace(/\\/g, '/');
|
|
352
352
|
const logCmd = path.join(binDir, 'chrome-brain-log').replace(/\\/g, '/');
|
|
353
353
|
const newHooks = {
|
|
354
|
-
SessionStart
|
|
355
|
-
|
|
356
|
-
|
|
354
|
+
// NO SessionStart hook on purpose — it popped a Chrome window on every boot.
|
|
355
|
+
// The lazy PreToolUse hook below launches Chrome only when a browser tool is
|
|
356
|
+
// actually called ("Chrome connection is guaranteed by PreToolUse hook").
|
|
357
357
|
PreToolUse: [
|
|
358
358
|
{ matcher: 'mcp__chrome-devtools__*', hooks: [{ type: 'command', command: ensureCmd }] },
|
|
359
359
|
{ matcher: 'mcp__claude-in-chrome__*', hooks: [{ type: 'command', command: ensureCmd }] },
|