@claude-code-hooks/cli 0.1.0 → 0.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-code-hooks/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Wizard CLI to set up and manage @claude-code-hooks packages for Claude Code.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/beefiker/claude-code-hooks/tree/main/packages/cli",
@@ -27,10 +27,10 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@clack/prompts": "^1.0.0",
30
- "@claude-code-hooks/core": "0.1.1",
31
- "@claude-code-hooks/security": "0.1.2",
32
- "@claude-code-hooks/secrets": "0.1.2",
33
- "@claude-code-hooks/sound": "0.2.6"
30
+ "@claude-code-hooks/core": "0.1.2",
31
+ "@claude-code-hooks/security": "0.1.3",
32
+ "@claude-code-hooks/secrets": "0.1.3",
33
+ "@claude-code-hooks/sound": "0.2.7"
34
34
  },
35
35
  "keywords": [
36
36
  "claude",
package/src/cli.js CHANGED
@@ -64,13 +64,13 @@ async function ensureProjectOnlyConfig(projectDir, selected, perPackageConfig) {
64
64
 
65
65
  async function maybeWriteSnippet(projectDir, snippetObj) {
66
66
  const ok = await confirm({
67
- message: `Write snippet file to ${pc.bold(path.join(projectDir, 'claude-hooks.snippet.json'))}?`,
67
+ message: `Write snippet file to ${pc.bold(path.join(projectDir, 'claude-code-hooks.snippet.json'))}?`,
68
68
  initialValue: false
69
69
  });
70
70
  if (isCancel(ok)) return;
71
71
  if (!ok) return;
72
72
 
73
- const filePath = path.join(projectDir, 'claude-hooks.snippet.json');
73
+ const filePath = path.join(projectDir, 'claude-code-hooks.snippet.json');
74
74
  await fs.writeFile(filePath, JSON.stringify(snippetObj, null, 2) + '\n');
75
75
  note(filePath, 'Wrote snippet');
76
76
  }
@@ -129,7 +129,7 @@ async function main() {
129
129
  if (target === 'global') files.push(configPathForScope('global', projectDir));
130
130
  if (target === 'projectOnly') {
131
131
  files.push(path.join(projectDir, CONFIG_FILENAME));
132
- files.push(path.join(projectDir, 'claude-hooks.snippet.json (optional)'));
132
+ files.push(path.join(projectDir, 'claude-code-hooks.snippet.json (optional)'));
133
133
  }
134
134
 
135
135
  note(
@@ -151,7 +151,7 @@ async function main() {
151
151
  const s = spinner();
152
152
  s.start('Writing project config...');
153
153
 
154
- // perPackage.*.projectConfigSection is shaped for claude-hooks.config.json sections.
154
+ // perPackage.*.projectConfigSection is shaped for claude-code-hooks.config.json sections.
155
155
  const projectCfg = await ensureProjectOnlyConfig(projectDir, selected, {
156
156
  security: perPackage.security?.projectConfigSection,
157
157
  secrets: perPackage.secrets?.projectConfigSection,
package/src/snippet.js CHANGED
@@ -19,7 +19,7 @@ export function buildSettingsSnippet({ projectDir, selected, packagePlans }) {
19
19
  }
20
20
 
21
21
  // Include a comment-like pointer to project config path (JSON doesn't support comments, so we use a metadata key).
22
- const cfgPath = path.join(projectDir, 'claude-hooks.config.json');
22
+ const cfgPath = path.join(projectDir, 'claude-code-hooks.config.json');
23
23
 
24
24
  return {
25
25
  "__generated_by": "@claude-code-hooks/cli",