From f46951469e49305c3ac538811da74f76e4d9fdd1 Mon Sep 17 00:00:00 2001 From: elliotllliu <55885132+elliotllliu@users.noreply.github.com> Date: Sun, 15 Mar 2026 21:10:28 +0000 Subject: [PATCH] fix: use typed .env() method for git prompt suppression Replace the untyped `env` constructor option in `simpleGit()` with the typed `.env()` method chain. The `env` property is not part of simple-git's `SimpleGitOptions` interface, causing a TypeScript overload mismatch. Before (untyped): simpleGit({ timeout: ..., env: { GIT_TERMINAL_PROMPT: '0' } }) After (typed): simpleGit({ timeout: ... }).env('GIT_TERMINAL_PROMPT', '0') `GIT_TERMINAL_PROMPT=0` still suppresses interactive prompts during clone. Closes #618 --- src/git.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/git.ts b/src/git.ts index fff86f58..0cb9b0d0 100644 --- a/src/git.ts +++ b/src/git.ts @@ -23,8 +23,7 @@ export async function cloneRepo(url: string, ref?: string): Promise { const tempDir = await mkdtemp(join(tmpdir(), 'skills-')); const git = simpleGit({ timeout: { block: CLONE_TIMEOUT_MS }, - env: { ...process.env, GIT_TERMINAL_PROMPT: '0' }, - }); + }).env('GIT_TERMINAL_PROMPT', '0'); const cloneOptions = ref ? ['--depth', '1', '--branch', ref] : ['--depth', '1']; try {