claude-cli-advanced-starter-pack 1.0.7 → 1.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-cli-advanced-starter-pack",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Advanced Claude Code CLI toolkit - agents, hooks, skills, MCP servers, phased development, and GitHub integration",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1607,7 +1607,58 @@ export async function runInit(options = {}) {
1607
1607
  writeFileSync(settingsPath, generateSettingsJson(projectName), 'utf8');
1608
1608
  console.log(chalk.green(' ✓ Created settings.json'));
1609
1609
  } else {
1610
- console.log(chalk.blue(' ○ settings.json exists (preserved)'));
1610
+ // Merge update check hook into existing settings.json
1611
+ try {
1612
+ const existingSettings = JSON.parse(readFileSync(settingsPath, 'utf8'));
1613
+ let settingsUpdated = false;
1614
+
1615
+ // Ensure hooks object exists
1616
+ if (!existingSettings.hooks) {
1617
+ existingSettings.hooks = {};
1618
+ }
1619
+
1620
+ // Add UserPromptSubmit hook for update checking if not present
1621
+ if (!existingSettings.hooks.UserPromptSubmit) {
1622
+ existingSettings.hooks.UserPromptSubmit = [
1623
+ {
1624
+ matcher: '',
1625
+ hooks: [
1626
+ {
1627
+ type: 'command',
1628
+ command: 'node .claude/hooks/ccasp-update-check.js',
1629
+ },
1630
+ ],
1631
+ },
1632
+ ];
1633
+ settingsUpdated = true;
1634
+ } else {
1635
+ // Check if update check hook already exists
1636
+ const hasUpdateHook = existingSettings.hooks.UserPromptSubmit.some(
1637
+ (h) => h.hooks?.some((hook) => hook.command?.includes('ccasp-update-check'))
1638
+ );
1639
+ if (!hasUpdateHook) {
1640
+ existingSettings.hooks.UserPromptSubmit.push({
1641
+ matcher: '',
1642
+ hooks: [
1643
+ {
1644
+ type: 'command',
1645
+ command: 'node .claude/hooks/ccasp-update-check.js',
1646
+ },
1647
+ ],
1648
+ });
1649
+ settingsUpdated = true;
1650
+ }
1651
+ }
1652
+
1653
+ if (settingsUpdated) {
1654
+ writeFileSync(settingsPath, JSON.stringify(existingSettings, null, 2), 'utf8');
1655
+ console.log(chalk.green(' ✓ Updated settings.json (added update check hook)'));
1656
+ } else {
1657
+ console.log(chalk.blue(' ○ settings.json exists (preserved)'));
1658
+ }
1659
+ } catch (error) {
1660
+ console.log(chalk.blue(' ○ settings.json exists (preserved)'));
1661
+ }
1611
1662
  }
1612
1663
 
1613
1664
  if (!existsSync(settingsLocalPath)) {
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "releases": [
3
3
  {
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "date": "2026-01-30",
6
- "summary": "Release notes pending",
7
- "highlights": [],
6
+ "summary": "Fix: settings.json hook merging for existing projects",
7
+ "highlights": [
8
+ "Init now merges update check hook into existing settings.json",
9
+ "Existing projects get automatic update notifications"
10
+ ],
8
11
  "newFeatures": {
9
12
  "commands": [],
10
13
  "agents": [],
@@ -15,6 +18,30 @@
15
18
  "breaking": [],
16
19
  "deprecated": []
17
20
  },
21
+ {
22
+ "version": "1.0.7",
23
+ "date": "2026-01-30",
24
+ "summary": "Automatic update notifications with startup hook",
25
+ "highlights": [
26
+ "Startup hook checks npm for updates automatically",
27
+ "Dynamic menu header with version and [NEW UPDATE] badge",
28
+ "One-key update with [N] in menu"
29
+ ],
30
+ "newFeatures": {
31
+ "commands": [],
32
+ "agents": [],
33
+ "skills": [],
34
+ "hooks": [
35
+ {
36
+ "name": "ccasp-update-check",
37
+ "description": "Checks npm for updates on Claude startup"
38
+ }
39
+ ],
40
+ "other": []
41
+ },
42
+ "breaking": [],
43
+ "deprecated": []
44
+ },
18
45
  {
19
46
  "version": "1.0.6",
20
47
  "date": "2026-01-30",