MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / resolveVercelContexts

Function resolveVercelContexts

scripts/web-env/shared.ts:183–203  ·  view source on GitHub ↗
(tempDirectory: string)

Source from the content-addressed store, hash-verified

181 'exec',
182 'vercel',
183 ...args,
184 '--scope',
185 'kilocode',
186 '--non-interactive',
187 '--no-color',
188 '--cwd',
189 context.cwd,
190 ];
191 const child = spawn('pnpm', commandArgs, {
192 cwd: findRepoRoot(),
193 env: {
194 ...process.env,
195 VERCEL_ORG_ID: context.orgId,
196 VERCEL_PROJECT_ID: context.project,
197 },
198 stdio: ['ignore', 'pipe', 'pipe'],
199 });
200 const stdout: Buffer[] = [];
201 const stderr: Buffer[] = [];
202 let outputBytes = 0;
203 let settled = false;
204
205 const fail = (error: Error) => {
206 if (settled) return;

Callers 2

mainFunction · 0.85
shared.test.tsFile · 0.85

Calls 5

vercelFunction · 0.85
vercelAccessErrorFunction · 0.85
stringValueFunction · 0.85
parseJsonFunction · 0.70
isRecordFunction · 0.70

Tested by

no test coverage detected