-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathcli.ts
More file actions
21 lines (16 loc) · 722 Bytes
/
Copy pathcli.ts
File metadata and controls
21 lines (16 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env node
/** DisCo CLI process entry point. */
import { isolateDisCoProcessFromPiEnvironment } from "./cli/pi-environment-isolation.ts";
process.env.DISCO_CODING_AGENT = "true";
process.emitWarning = (() => {}) as typeof process.emitWarning;
isolateDisCoProcessFromPiEnvironment();
const [{ APP_NAME }, { configureHttpDispatcher }, { main }] = await Promise.all([
import("./config.ts"),
import("./core/http-dispatcher.ts"),
import("./main.ts"),
]);
process.title = APP_NAME;
// Configure undici's global dispatcher before provider SDKs issue requests.
// Runtime settings are applied once SettingsManager has loaded global/project settings.
configureHttpDispatcher();
await main(process.argv.slice(2));