(extraEnv: Record<string, string | undefined> = {})
| 20 | } |
| 21 | |
| 22 | function createClient(extraEnv: Record<string, string | undefined> = {}): CopilotClient { |
| 23 | return new CopilotClient({ |
| 24 | workingDirectory: workDir, |
| 25 | env: { |
| 26 | ...env, |
| 27 | ...extraEnv, |
| 28 | }, |
| 29 | logLevel: "error", |
| 30 | connection: RuntimeConnection.forStdio({ path: process.env.COPILOT_CLI_PATH }), |
| 31 | gitHubToken: DEFAULT_GITHUB_TOKEN, |
| 32 | }); |
| 33 | } |
| 34 | |
| 35 | async function createIsolatedStartedClient(): Promise<{ |
| 36 | client: CopilotClient; |
no outgoing calls
no test coverage detected
searching dependent graphs…