@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 +1 -1
- package/src/cli/hook.ts +2 -2
- package/src/cli/setup.ts +1 -1
package/package.json
CHANGED
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 {
|