MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / runKimi

Function runKimi

apps/kimi-code/scripts/native/smoke.mjs:28–41  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

26}
27
28async function runKimi(args) {
29 try {
30 const { stdout, stderr } = await execFileAsync(executablePath, args, {
31 cwd: appRoot,
32 maxBuffer: 1024 * 1024 * 16,
33 });
34 return `${stdout}${stderr}`;
35 } catch (error) {
36 const detail = [error.stdout?.trim(), error.stderr?.trim(), error.message]
37 .filter(Boolean)
38 .join('\n');
39 fail(`Native smoke failed: ${executablePath} ${args.join(' ')}\n${detail}`);
40 }
41}
42
43async function runKimiWithEnv(args, env) {
44 try {

Callers 1

smoke.mjsFile · 0.85

Calls 1

failFunction · 0.70

Tested by

no test coverage detected