@link-assistant/hive-mind 1.30.2 → 1.30.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 +6 -0
- package/package.json +1 -1
- package/src/instrument.mjs +8 -2
- package/src/solve.config.lib.mjs +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @link-assistant/hive-mind
|
|
2
2
|
|
|
3
|
+
## 1.30.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1fc6a15: Disable Sentry error tracking by default for maximum user privacy. Users must now explicitly opt in with `--sentry` flag or `HIVE_MIND_SENTRY=true` env var. This guarantees 100% privacy by default — no usage data is sent to Sentry unless the user chooses to enable it.
|
|
8
|
+
|
|
3
9
|
## 1.30.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
package/src/instrument.mjs
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
// Check if Sentry should be disabled
|
|
5
5
|
const shouldDisableSentry = () => {
|
|
6
|
-
// Check for --no-sentry flag
|
|
6
|
+
// Check for --no-sentry flag (explicit opt-out)
|
|
7
7
|
if (process.argv.includes('--no-sentry')) {
|
|
8
8
|
return true;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
// Check for environment variable
|
|
11
|
+
// Check for environment variable disable flags
|
|
12
12
|
if (process.env.HIVE_MIND_NO_SENTRY === 'true' || process.env.DISABLE_SENTRY === 'true') {
|
|
13
13
|
return true;
|
|
14
14
|
}
|
|
@@ -30,6 +30,12 @@ const shouldDisableSentry = () => {
|
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
// Sentry is disabled by default for user privacy.
|
|
34
|
+
// It must be explicitly enabled with the --sentry flag or HIVE_MIND_SENTRY=true env var.
|
|
35
|
+
if (!process.argv.includes('--sentry') && process.env.HIVE_MIND_SENTRY !== 'true') {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
|
|
33
39
|
return false;
|
|
34
40
|
};
|
|
35
41
|
|
package/src/solve.config.lib.mjs
CHANGED
|
@@ -245,8 +245,8 @@ export const SOLVE_OPTION_DEFINITIONS = {
|
|
|
245
245
|
},
|
|
246
246
|
sentry: {
|
|
247
247
|
type: 'boolean',
|
|
248
|
-
description: 'Enable Sentry error tracking and monitoring (use --
|
|
249
|
-
default:
|
|
248
|
+
description: 'Enable Sentry error tracking and monitoring (disabled by default for privacy; use --sentry to enable)',
|
|
249
|
+
default: false,
|
|
250
250
|
},
|
|
251
251
|
'auto-cleanup': {
|
|
252
252
|
type: 'boolean',
|