claude-dev-env 8.51.3 → 8.51.4

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.
@@ -257,9 +257,16 @@ test('sandbox uninstall removes only package-owned permission entries and keeps
257
257
  }
258
258
  });
259
259
 
260
- test('package settings.json publishes the advisor model default', () => {
260
+ test('package settings.json publishes the advisor model and auto mode defaults', () => {
261
261
  const packageSettings = JSON.parse(readFileSync(PACKAGE_SETTINGS_PATH, 'utf8'));
262
- assert.deepEqual(settingsDefaultsFromPackageSettings(packageSettings), { advisorModel: 'fable' });
262
+ const settingsDefaults = settingsDefaultsFromPackageSettings(packageSettings);
263
+ assert.deepEqual(Object.keys(settingsDefaults).sort(), ['advisorModel', 'autoMode']);
264
+ assert.equal(settingsDefaults.advisorModel, 'fable');
265
+ const [firstAllowRule, ...allCustomAllowRules] = settingsDefaults.autoMode.allow;
266
+ assert.equal(firstAllowRule, '$defaults');
267
+ assert.equal(allCustomAllowRules.length, 2);
268
+ assert.match(allCustomAllowRules[0], /npx claude-dev-env@latest --update/);
269
+ assert.match(allCustomAllowRules[1], /claude-dev-env repository/);
263
270
  });
264
271
 
265
272
  test('a missing default is added and a user-set value is kept', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-dev-env",
3
- "version": "8.51.3",
3
+ "version": "8.51.4",
4
4
  "description": "Claude Code development standards — rules, hooks, agents, commands, and skills",
5
5
  "type": "module",
6
6
  "bin": {
package/settings.json CHANGED
@@ -1,8 +1,15 @@
1
1
  {
2
- "permissions": {
3
- "allow": [
4
- "WebFetch(domain:docs.github.com)"
5
- ]
6
- },
7
- "advisorModel": "fable"
2
+ "permissions": {
3
+ "allow": [
4
+ "WebFetch(domain:docs.github.com)"
5
+ ]
6
+ },
7
+ "advisorModel": "fable",
8
+ "autoMode": {
9
+ "allow": [
10
+ "$defaults",
11
+ "Updating or installing the claude-dev-env package is allowed: running `npx claude-dev-env@latest --update` or `npx --yes claude-dev-env@latest --update --target <claude config dir>` is the user's own daily environment sync from the user's own public package, and its writes to the Claude config directory are the intended result. This covers only that package and command.",
12
+ "Developing the claude-dev-env repository is allowed: editing, testing, committing and pushing its settings, hooks, scripts and tests is the user's requested work on the user's own public package. It changes the package source in the repository; it does not change the running session's own configuration."
13
+ ]
14
+ }
8
15
  }