@scopeide/cli 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import dns from "dns";
|
|
3
3
|
import net from "net";
|
|
4
|
+
import { createRequire } from "module";
|
|
4
5
|
import { Command, Option } from "commander";
|
|
5
6
|
|
|
6
7
|
// ../../packages/shared/src/brand.ts
|
|
@@ -5499,7 +5500,8 @@ if (typeof dns.setDefaultResultOrder === "function") {
|
|
|
5499
5500
|
if (typeof net.setDefaultAutoSelectFamily === "function") {
|
|
5500
5501
|
net.setDefaultAutoSelectFamily(false);
|
|
5501
5502
|
}
|
|
5502
|
-
var
|
|
5503
|
+
var { version } = createRequire(import.meta.url)("../package.json");
|
|
5504
|
+
var program = new Command(BRAND.bin).description(`${BRAND.name} \u2014 CLI coding agent`).version(version);
|
|
5503
5505
|
function runOptions(cmd) {
|
|
5504
5506
|
return cmd.option("-p, --prompt <text>", "run a single prompt headlessly").option("--model <id>", "model id (see `models`)").option("--max-steps <n>", "model calls per run (default 25, max 100)", (v) => Number.parseInt(v, 10)).option("--max-tokens <n>", "soft token budget for one run (default 300000)", (v) => Number.parseInt(v, 10)).option("--cascade", "start with the cheap default model; escalate to a stronger one only if the attempt fails").option("--effort <level>", "low (default) or high: high goes straight to the strongest model your plan allows").option("--escalate-to <id>", "model to escalate to (default: strongest on your plan, or SCOPE_ESCALATION_MODEL)").option("--verify <cmd>", "with --cascade: a shell command (e.g. 'pnpm test'); if it fails the strong model takes over").option("--plan", "plan mode: read-only exploration; prints a step-by-step plan instead of editing").option("-c, --continue", "continue the most recent session of this project").option("-r, --resume [id]", "resume a session by id (or pick one from a list)").option("--output-format <fmt>", "headless output: text (default), json (one result object) or stream-json (event lines)").option("--append-system-prompt <text>", "extra instructions added to the system prompt").option("--yolo", "auto-approve tool calls (dangerous shell is still blocked)").addOption(new Option("--allow-all", "dev only: disable project-root restrictions").hideHelp());
|
|
5505
5507
|
}
|