claude-dev-env 8.114.1 → 8.114.2

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.
@@ -54,6 +54,16 @@ const LEGACY_MANAGED_DENY_ENTRIES = [
54
54
  'MultiEdit($HOME/.claude/code-review-stamps/**)',
55
55
  ];
56
56
  const USER_OWNED_DENY_ENTRY = 'Bash(rm -rf /)';
57
+ const REMINDER_OFF_ENV = {
58
+ CLAUDE_CODE_TODO_REMINDER_MODE: 'off',
59
+ CLAUDE_CODE_SILENT_TURN_REMINDER: '0',
60
+ CLAUDE_CODE_SILENT_TURN_REMINDER_TURNS: '100000',
61
+ };
62
+ const PACKAGE_ENV_DEFAULTS = {
63
+ CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS: '100000',
64
+ PYTHONUTF8: '1',
65
+ ...REMINDER_OFF_ENV,
66
+ };
57
67
 
58
68
  function packageManagedPermissions() {
59
69
  const packageSettings = JSON.parse(readFileSync(PACKAGE_SETTINGS_PATH, 'utf8'));
@@ -275,7 +285,7 @@ test('sandbox uninstall removes only package-owned permission entries and keeps
275
285
  }
276
286
  });
277
287
 
278
- test('package settings.json publishes the session agent, advisor model, auto-compact, auto mode, idle compaction and Python UTF-8 defaults', () => {
288
+ test('package settings.json publishes the session agent, advisor model, auto-compact, auto mode, idle compaction, Python UTF-8 and reminder-off defaults', () => {
279
289
  const packageSettings = JSON.parse(readFileSync(PACKAGE_SETTINGS_PATH, 'utf8'));
280
290
  const settingsDefaults = settingsDefaultsFromPackageSettings(packageSettings);
281
291
  assert.deepEqual(
@@ -283,7 +293,7 @@ test('package settings.json publishes the session agent, advisor model, auto-com
283
293
  ['advisorModel', 'agent', 'autoCompactWindow', 'autoMode', 'env', 'modelSettings'],
284
294
  );
285
295
  assert.equal(settingsDefaults.autoCompactWindow, 350000);
286
- assert.deepEqual(settingsDefaults.env, { CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS: '100000', PYTHONUTF8: '1' });
296
+ assert.deepEqual(settingsDefaults.env, PACKAGE_ENV_DEFAULTS);
287
297
  assert.deepEqual(settingsDefaults.modelSettings, {
288
298
  'claude-haiku-5-5': { autoCompactWindow: 250000 },
289
299
  'claude-haiku-4-5': { autoCompactWindow: 250000 },
@@ -314,7 +324,7 @@ test('a missing default is added and a user-set value is kept', () => {
314
324
  assert.equal(userSettings.advisorModel, 'sonnet');
315
325
  });
316
326
 
317
- test('install adds the idle compaction and Python UTF-8 variables to an env block and keeps a user value on rerun', () => {
327
+ test('install adds the idle compaction, Python UTF-8 and reminder-off variables to an env block and keeps a user value on rerun', () => {
318
328
  const sandboxHome = mkdtempSync(join(tmpdir(), 'cde-settings-defaults-'));
319
329
  try {
320
330
  const settingsPath = join(sandboxHome, '.claude', 'settings.json');
@@ -324,8 +334,7 @@ test('install adds the idle compaction and Python UTF-8 variables to an env bloc
324
334
  assert.equal(firstRun.status, 0, firstRun.stderr);
325
335
  assert.deepEqual(JSON.parse(readFileSync(settingsPath, 'utf8')).env, {
326
336
  EDITOR: 'vim',
327
- CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS: '100000',
328
- PYTHONUTF8: '1',
337
+ ...PACKAGE_ENV_DEFAULTS,
329
338
  });
330
339
  const userChoice = JSON.parse(readFileSync(settingsPath, 'utf8'));
331
340
  userChoice.env.CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS = '300000';
@@ -338,6 +347,43 @@ test('install adds the idle compaction and Python UTF-8 variables to an env bloc
338
347
  }
339
348
  });
340
349
 
350
+ test('a fresh install writes the three reminder-off variables into the user settings env block', () => {
351
+ const sandboxHome = mkdtempSync(join(tmpdir(), 'cde-settings-defaults-'));
352
+ try {
353
+ const install = runInstallerInSandbox(sandboxHome);
354
+ assert.equal(install.status, 0, install.stderr);
355
+ const settingsPath = join(sandboxHome, '.claude', 'settings.json');
356
+ const installedEnv = JSON.parse(readFileSync(settingsPath, 'utf8')).env;
357
+ for (const [variableName, variableValue] of Object.entries(REMINDER_OFF_ENV)) {
358
+ assert.equal(installedEnv[variableName], variableValue, variableName);
359
+ }
360
+ } finally {
361
+ rmSync(sandboxHome, { recursive: true, force: true });
362
+ }
363
+ });
364
+
365
+ test('install leaves reminder-off variables the user already set in place and adds the missing ones', () => {
366
+ const sandboxHome = mkdtempSync(join(tmpdir(), 'cde-settings-defaults-'));
367
+ try {
368
+ const settingsPath = join(sandboxHome, '.claude', 'settings.json');
369
+ mkdirSync(join(sandboxHome, '.claude'), { recursive: true });
370
+ const userEnv = {
371
+ CLAUDE_CODE_TODO_REMINDER_MODE: 'off',
372
+ CLAUDE_CODE_SILENT_TURN_REMINDER: 'false',
373
+ EDITOR: 'vim',
374
+ };
375
+ writeFileSync(settingsPath, JSON.stringify({ env: userEnv }, null, 4) + '\n');
376
+ const install = runInstallerInSandbox(sandboxHome);
377
+ assert.equal(install.status, 0, install.stderr);
378
+ assert.deepEqual(JSON.parse(readFileSync(settingsPath, 'utf8')).env, {
379
+ ...PACKAGE_ENV_DEFAULTS,
380
+ ...userEnv,
381
+ });
382
+ } finally {
383
+ rmSync(sandboxHome, { recursive: true, force: true });
384
+ }
385
+ });
386
+
341
387
  test('install adds advisorModel when missing and keeps a user choice on rerun', () => {
342
388
  const sandboxHome = mkdtempSync(join(tmpdir(), 'cde-settings-defaults-'));
343
389
  try {
@@ -1,11 +1,25 @@
1
1
  import { test } from 'node:test';
2
2
  import { strict as assert } from 'node:assert';
3
+ import { readFileSync } from 'node:fs';
4
+ import { dirname, join } from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
3
6
 
4
7
  import {
5
8
  mergeMissingSettingsDefaults,
6
9
  settingsDefaultsFromPackageSettings,
7
10
  } from './merge_settings_defaults.mjs';
8
11
 
12
+ const PACKAGE_SETTINGS_PATH = join(dirname(fileURLToPath(import.meta.url)), '..', 'settings.json');
13
+ const REMINDER_OFF_ENV = {
14
+ CLAUDE_CODE_TODO_REMINDER_MODE: 'off',
15
+ CLAUDE_CODE_SILENT_TURN_REMINDER: '0',
16
+ CLAUDE_CODE_SILENT_TURN_REMINDER_TURNS: '100000',
17
+ };
18
+
19
+ function packageSettingsDefaults() {
20
+ return settingsDefaultsFromPackageSettings(JSON.parse(readFileSync(PACKAGE_SETTINGS_PATH, 'utf8')));
21
+ }
22
+
9
23
  test('settingsDefaultsFromPackageSettings excludes managed lists', () => {
10
24
  const packageSettings = {
11
25
  permissions: { allow: ['Read'] },
@@ -136,3 +150,27 @@ test('mergeMissingSettingsDefaults should keep a non-object env value as the use
136
150
  assert.deepEqual(targetSettings, { env: userEnv });
137
151
  }
138
152
  });
153
+
154
+ test('package defaults land the three reminder-off variables in a fresh settings object', () => {
155
+ const targetSettings = {};
156
+
157
+ mergeMissingSettingsDefaults(targetSettings, packageSettingsDefaults());
158
+
159
+ for (const [variableName, variableValue] of Object.entries(REMINDER_OFF_ENV)) {
160
+ assert.equal(targetSettings.env[variableName], variableValue, variableName);
161
+ }
162
+ });
163
+
164
+ test('package defaults keep the reminder-off variables a settings file already holds and add the missing one', () => {
165
+ const userEnv = {
166
+ CLAUDE_CODE_SILENT_TURN_REMINDER: 'false',
167
+ CLAUDE_CODE_SILENT_TURN_REMINDER_TURNS: '5',
168
+ EDITOR: 'code',
169
+ };
170
+ const targetSettings = { env: { ...userEnv } };
171
+
172
+ mergeMissingSettingsDefaults(targetSettings, packageSettingsDefaults());
173
+
174
+ assert.deepEqual(targetSettings.env, { ...packageSettingsDefaults().env, ...userEnv });
175
+ assert.equal(targetSettings.env.CLAUDE_CODE_TODO_REMINDER_MODE, 'off');
176
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-dev-env",
3
- "version": "8.114.1",
3
+ "version": "8.114.2",
4
4
  "description": "Claude Code development standards — rules, hooks, agents, commands, and skills",
5
5
  "type": "module",
6
6
  "bin": {
package/settings.json CHANGED
@@ -30,6 +30,9 @@
30
30
  },
31
31
  "env": {
32
32
  "CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS": "100000",
33
+ "CLAUDE_CODE_SILENT_TURN_REMINDER": "0",
34
+ "CLAUDE_CODE_SILENT_TURN_REMINDER_TURNS": "100000",
35
+ "CLAUDE_CODE_TODO_REMINDER_MODE": "off",
33
36
  "PYTHONUTF8": "1"
34
37
  }
35
38
  }