@claude-code-hooks/cli 0.1.11 → 0.1.12

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/cli.js +13 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-code-hooks/cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
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",
@@ -31,7 +31,7 @@
31
31
  "@claude-code-hooks/security": "^0.1.8",
32
32
  "@claude-code-hooks/secrets": "^0.1.9",
33
33
  "@claude-code-hooks/sound": "^0.2.12",
34
- "@claude-code-hooks/notification": "0.1.5"
34
+ "@claude-code-hooks/notification": "^0.1.6"
35
35
  },
36
36
  "keywords": [
37
37
  "claude",
@@ -39,4 +39,4 @@
39
39
  "hooks",
40
40
  "wizard"
41
41
  ]
42
- }
42
+ }
package/src/cli.js CHANGED
@@ -14,7 +14,8 @@ import {
14
14
  isCancel,
15
15
  cancel,
16
16
  note,
17
- spinner
17
+ spinner,
18
+ updateSettings
18
19
  } from '@clack/prompts';
19
20
 
20
21
  // Enable keypress events so we can intercept Backspace
@@ -36,6 +37,16 @@ import {
36
37
  detectLanguage
37
38
  } from '@claude-code-hooks/core';
38
39
 
40
+ // Apply localized messages for Clack prompts (cancel, error)
41
+ if (detectLanguage() !== 'en') {
42
+ updateSettings({
43
+ messages: {
44
+ cancel: t('common.cancelled'),
45
+ error: t('common.error')
46
+ }
47
+ });
48
+ }
49
+
39
50
  import { buildSettingsSnippet } from './snippet.js';
40
51
 
41
52
  // In-workspace imports (when running from monorepo) and normal Node resolution
@@ -181,6 +192,7 @@ async function main() {
181
192
  message: `${pc.dim(t('cli.stepFormat', { n: 3 }))} ${t('cli.step3SelectPackages')}`,
182
193
  options: packageOptions,
183
194
  required: true,
195
+ validate: (v) => (!v || v.length === 0) ? t('common.selectAtLeastOne') : true,
184
196
  signal: pkgsCtrl.signal
185
197
  })
186
198
  );