@delegance/claude-autopilot 1.2.1 → 1.2.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": "@delegance/claude-autopilot",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "description": "Claude Code automation pipeline: spec \u2192 plan \u2192 implement \u2192 validate \u2192 PR",
6
6
  "keywords": [
package/src/cli/hook.ts CHANGED
@@ -28,13 +28,13 @@ function findGitDir(cwd: string): string | null {
28
28
 
29
29
  export async function runHook(
30
30
  sub: string,
31
- options: { cwd?: string; force?: boolean } = {},
31
+ options: { cwd?: string; force?: boolean; silent?: boolean } = {},
32
32
  ): Promise<number> {
33
33
  const cwd = options.cwd ?? process.cwd();
34
34
  const gitDir = findGitDir(cwd);
35
35
 
36
36
  if (!gitDir) {
37
- console.error('[hook] not inside a git repository');
37
+ if (!options.silent) console.error('[hook] not inside a git repository');
38
38
  return 1;
39
39
  }
40
40
 
package/src/cli/setup.ts CHANGED
@@ -70,7 +70,7 @@ export async function runSetup(options: SetupOptions = {}): Promise<void> {
70
70
  console.log(` ${PASS} Created autopilot.config.yaml`);
71
71
 
72
72
  if (!options.skipHook) {
73
- const hookCode = await runHook('install', { cwd });
73
+ const hookCode = await runHook('install', { cwd, silent: true });
74
74
  if (hookCode === 0) {
75
75
  console.log(` ${PASS} Installed pre-push git hook`);
76
76
  } else {