claude-git-hooks 2.19.0 → 2.21.0

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.
@@ -5,7 +5,7 @@
5
5
  * Three consumers read from this registry:
6
6
  * 1. bin/claude-hooks — routing (replaces switch/case)
7
7
  * 2. installCompletions() — generates shell completion scripts at install time
8
- * 3. showStaticHelp() — can derive help text from metadata
8
+ * 3. showStaticHelp() — generates help text from this registry
9
9
  *
10
10
  * Adding a new command = adding one entry here.
11
11
  * Completions auto-update for every user at next install.
@@ -115,6 +115,21 @@ export const commands = [
115
115
  completion: "git branch --format='%(refname:short)'"
116
116
  }
117
117
  },
118
+ {
119
+ name: 'analyze-pr',
120
+ description: 'Analyze a GitHub PR with team guidelines',
121
+ handler: async () => (await import('./commands/analyze-pr.js')).runAnalyzePr,
122
+ args: { name: 'pr-url' },
123
+ flags: {
124
+ '--preset': {
125
+ description: 'Override preset selection',
126
+ takesValue: true,
127
+ values: PRESET_NAMES
128
+ },
129
+ '--model': { description: 'Claude model override', takesValue: true },
130
+ '--dry-run': { description: 'Analyze without posting comments' }
131
+ }
132
+ },
118
133
  {
119
134
  name: 'create-pr',
120
135
  description: 'Create PR with auto-generated metadata',
@@ -129,6 +144,11 @@ export const commands = [
129
144
  description: 'Configure GitHub token for PR creation',
130
145
  handler: async () => (await import('./commands/setup-github.js')).runSetupGitHub
131
146
  },
147
+ {
148
+ name: 'setup-linear',
149
+ description: 'Configure Linear token for ticket enrichment',
150
+ handler: async () => (await import('./commands/setup-linear.js')).runSetupLinear
151
+ },
132
152
  {
133
153
  name: 'presets',
134
154
  description: 'List all available presets',
@@ -184,6 +204,11 @@ export const commands = [
184
204
  '--release': { description: 'Mark as released' }
185
205
  }
186
206
  },
207
+ {
208
+ name: 'batch-info',
209
+ description: 'Show intelligent diff-analysis orchestration configuration and speed telemetry',
210
+ handler: async () => (await import('./commands/diff-batch-info.js')).runDiffBatchInfo
211
+ },
187
212
  {
188
213
  name: 'telemetry',
189
214
  description: 'View or clear telemetry data',