fix(coding-agent): suppress process warnings in CLI closes #2404
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
process.title = "pi";
|
process.title = "pi";
|
||||||
|
process.emitWarning = (() => {}) as typeof process.emitWarning;
|
||||||
|
|
||||||
await import("./register-bedrock.js");
|
await import("./register-bedrock.js");
|
||||||
await import("../cli.js");
|
await import("../cli.js");
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
* Test with: npx tsx src/cli-new.ts [args...]
|
* Test with: npx tsx src/cli-new.ts [args...]
|
||||||
*/
|
*/
|
||||||
process.title = "pi";
|
process.title = "pi";
|
||||||
|
process.emitWarning = (() => {}) as typeof process.emitWarning;
|
||||||
|
|
||||||
import { EnvHttpProxyAgent, setGlobalDispatcher } from "undici";
|
import { EnvHttpProxyAgent, setGlobalDispatcher } from "undici";
|
||||||
import { main } from "./main.js";
|
import { main } from "./main.js";
|
||||||
|
|||||||
Reference in New Issue
Block a user