@agentic15.com/agentic15-claude-zen 5.0.5 → 5.0.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.
package/README.md CHANGED
@@ -220,6 +220,7 @@ Starts next task
220
220
  | `npx agentic15 task status` | View current progress |
221
221
  | `npx agentic15 commit` | Commit, push, and create PR |
222
222
  | `npx agentic15 sync` | Sync with main branch after PR merge |
223
+ | `npx agentic15 update-settings` | Update `.claude/settings.json` from latest framework |
223
224
  | `npx agentic15 visual-test <url>` | Capture UI screenshots and console errors |
224
225
  | `npx agentic15 auth` | Configure GitHub authentication |
225
226
 
@@ -291,8 +292,12 @@ Framework files live in `node_modules` and are automatically updated:
291
292
  # Upgrade to latest version
292
293
  npm install @agentic15.com/agentic15-claude-zen@latest
293
294
 
295
+ # Update settings.json to latest framework version
296
+ npx agentic15 update-settings
297
+
294
298
  # Or to a specific version
295
299
  npm install @agentic15.com/agentic15-claude-zen@5.0.0
300
+ npx agentic15 update-settings
296
301
  ```
297
302
 
298
303
  **What gets updated:**
@@ -305,6 +310,8 @@ npm install @agentic15.com/agentic15-claude-zen@5.0.0
305
310
  - ✅ Your plans and tasks in `.claude/plans/`
306
311
  - ✅ Your local settings in `.claude/settings.local.json`
307
312
 
313
+ **Note:** After upgrading, run `npx agentic15 update-settings` to update your `.claude/settings.json` with the latest framework configuration. Your existing settings will be backed up to `.claude/settings.json.backup`.
314
+
308
315
  </td>
309
316
  </tr>
310
317
  </table>
package/bin/agentic15.js CHANGED
@@ -8,6 +8,7 @@ import { StatusCommand } from '../src/cli/StatusCommand.js';
8
8
  import { PlanCommand } from '../src/cli/PlanCommand.js';
9
9
  import { VisualTestCommand } from '../src/cli/VisualTestCommand.js';
10
10
  import { SyncCommand } from '../src/cli/SyncCommand.js';
11
+ import { UpdateSettingsCommand } from '../src/cli/UpdateSettingsCommand.js';
11
12
 
12
13
  const program = new Command();
13
14
 
@@ -62,4 +63,10 @@ program
62
63
  .description('Switch to main branch, pull latest changes, and cleanup feature branch')
63
64
  .action(() => SyncCommand.execute());
64
65
 
66
+ // Update settings.json from framework
67
+ program
68
+ .command('update-settings')
69
+ .description('Update .claude/settings.json from latest framework version')
70
+ .action(() => UpdateSettingsCommand.execute());
71
+
65
72
  program.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentic15.com/agentic15-claude-zen",
3
- "version": "5.0.5",
3
+ "version": "5.0.7",
4
4
  "description": "Structured AI-assisted development framework for Claude Code with enforced quality standards",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -55,6 +55,7 @@
55
55
  "node": ">=18.0.0"
56
56
  },
57
57
  "dependencies": {
58
+ "@octokit/rest": "^21.0.2",
58
59
  "commander": "^12.1.0"
59
60
  },
60
61
  "devDependencies": {
@@ -0,0 +1,50 @@
1
+ import { cpSync, existsSync } from 'fs';
2
+ import { join, dirname } from 'path';
3
+ import { fileURLToPath } from 'url';
4
+
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = dirname(__filename);
7
+
8
+ /**
9
+ * UpdateSettingsCommand - Update .claude/settings.json from framework
10
+ *
11
+ * Copies the latest framework settings.json to user's .claude directory
12
+ */
13
+ export class UpdateSettingsCommand {
14
+ static async execute() {
15
+ console.log('\n🔄 Updating .claude/settings.json from framework\n');
16
+
17
+ const targetPath = join(process.cwd(), '.claude', 'settings.json');
18
+ const frameworkPath = join(__dirname, '..', '..', 'framework', 'settings.json');
19
+
20
+ // Check if framework settings exists
21
+ if (!existsSync(frameworkPath)) {
22
+ console.log('❌ Framework settings.json not found');
23
+ console.log(' Expected: node_modules/@agentic15.com/agentic15-claude-zen/framework/settings.json\n');
24
+ process.exit(1);
25
+ }
26
+
27
+ // Check if target directory exists
28
+ if (!existsSync(join(process.cwd(), '.claude'))) {
29
+ console.log('❌ .claude directory not found');
30
+ console.log(' Are you in the project root directory?\n');
31
+ process.exit(1);
32
+ }
33
+
34
+ // Backup existing settings if it exists
35
+ if (existsSync(targetPath)) {
36
+ const backupPath = join(process.cwd(), '.claude', 'settings.json.backup');
37
+ console.log('📦 Backing up current settings.json to settings.json.backup');
38
+ cpSync(targetPath, backupPath);
39
+ }
40
+
41
+ // Copy framework settings
42
+ console.log('📋 Copying latest framework settings.json');
43
+ cpSync(frameworkPath, targetPath);
44
+
45
+ console.log('\n✅ Settings updated successfully!');
46
+ console.log(' Updated: .claude/settings.json');
47
+ console.log(' Backup: .claude/settings.json.backup (if previous file existed)\n');
48
+ console.log('💡 Note: Your .claude/settings.local.json overrides are preserved\n');
49
+ }
50
+ }