@scopeide/cli 0.1.1 → 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.
Files changed (2) hide show
  1. package/dist/index.js +40 -21
  2. 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
@@ -81,11 +82,13 @@ IMPORTANT: Protect secrets and credentials.
81
82
 
82
83
  // ../../packages/shared/src/plans.ts
83
84
  var PLANS = {
84
- free: { label: "Free", priceUsd: 0, monthlyCredits: 1e5, providers: ["deepseek", "openrouter", "groq", "custom", "mock"] },
85
- go: { label: "Go", priceUsd: 1, monthlyCredits: 1e6, providers: ["deepseek", "openai", "openrouter", "groq", "custom", "mock"] },
86
- goat: { label: "Goat", priceUsd: 10, monthlyCredits: 8e6, providers: ["deepseek", "openai", "anthropic", "openrouter", "groq", "custom", "mock"] },
87
- pro: { label: "Pro", priceUsd: 20, monthlyCredits: 16e6, providers: ["deepseek", "openai", "anthropic", "openrouter", "groq", "custom", "mock"] },
88
- max10: { label: "Max 10\xD7", priceUsd: 100, monthlyCredits: 8e7, providers: ["deepseek", "openai", "anthropic", "openrouter", "groq", "custom", "mock"] }
85
+ // Credits are priced off our provider cost (about $0.10 per 1M tokens on every model, multiplier 1), keeping >= 3x margin at full use.
86
+ // Weekly cap = 40% and 5-hour cap = 12% of the month, so a busy day is fine but one account cannot drain a month in an afternoon.
87
+ free: { label: "Free", priceUsd: 0, monthlyCredits: 2e6, weeklyCredits: 8e5, fiveHourCredits: 25e4, providers: ["deepseek", "openrouter", "groq", "custom", "mock"] },
88
+ go: { label: "Go", priceUsd: 5, monthlyCredits: 15e6, weeklyCredits: 6e6, fiveHourCredits: 18e5, providers: ["deepseek", "openai", "openrouter", "groq", "custom", "mock"] },
89
+ goat: { label: "Goat", priceUsd: 10, monthlyCredits: 3e7, weeklyCredits: 12e6, fiveHourCredits: 36e5, providers: ["deepseek", "openai", "anthropic", "openrouter", "groq", "custom", "mock"] },
90
+ pro: { label: "Pro", priceUsd: 20, monthlyCredits: 6e7, weeklyCredits: 24e6, fiveHourCredits: 72e5, providers: ["deepseek", "openai", "anthropic", "openrouter", "groq", "custom", "mock"] },
91
+ max10: { label: "Max", priceUsd: 100, monthlyCredits: 3e8, weeklyCredits: 12e7, fiveHourCredits: 36e6, providers: ["deepseek", "openai", "anthropic", "openrouter", "groq", "custom", "mock"] }
89
92
  };
90
93
  var PLAN_IDS = Object.keys(PLANS);
91
94
  var WEEKLY_SHARE_OF_MONTH = 7 / 30;
@@ -496,13 +499,18 @@ var PARTS_DEFAULTS = {
496
499
  intro: "",
497
500
  searchPlaceholder: "Search the docs",
498
501
  sections: [
499
- { id: "intro", category: "Get Started", title: "Introduction", badge: "", body: "# Introduction\n\n{name} is a coding agent for your terminal. It reads your project, makes small verified edits, runs your tests, and remembers your conventions.\n\n- Works with the models available on your plan (see **Models**).\n- Every request costs *credits*; your plan includes a monthly allowance (see **Plans** and **Credits**).\n- Your code is sent only to the model provider that answers your request.\n\nNew here? Go to **Quickstart**.\n" },
500
- { id: "quickstart", category: "Get Started", title: "Quickstart", badge: "", body: '# Quickstart\n\n1. Install the CLI:\n\n```\n{install}\n```\n\n2. Log in (opens your browser):\n\n```\n{bin} login\n```\n\n3. Check the setup:\n\n```\n{bin} doctor\n```\n\n4. Start a session in your project:\n\n```\ncd your-project && {bin}\n```\n\nOr run one prompt and exit:\n\n```\n{bin} -p "add input validation to the signup form"\n```\n\nPrefer an API key? Create one under **API Keys** in your dashboard and `export FORGE_API_KEY=...`.\n' },
501
- { id: "run-modes", category: "Get Started", title: "Run modes", badge: "", body: '# Run modes\n\n- **Interactive** (`{bin}` or `{bin} chat`): a conversation in your terminal. The agent asks before editing files or running commands.\n- **Headless** (`{bin} -p "..."`): one prompt, then exit. Good for scripts and CI. Add `--output-format json` for machine-readable output.\n- **Plan mode** (`--plan`): read-only exploration; prints a step-by-step plan and changes nothing.\n- **Auto-approve** (`--yolo`): runs tools without asking. Dangerous shell commands are still blocked.\n- **Cascade** (`--cascade`): start with the cheap default model and escalate to a stronger one only if the attempt fails. Combine with `--verify "pnpm test"`.\n- **Resume** (`-c` / `-r [id]`): continue the latest session or pick one.\n' },
502
- { id: "cli-reference", category: "CLI Reference", title: "Commands", badge: "", body: '# Commands\n\n| Command | What it does |\n|---|---|\n| `{bin}` / `{bin} chat` | interactive session in the current directory |\n| `{bin} -p "<prompt>"` | run one prompt headlessly |\n| `{bin} login` / `logout` | log in via browser / remove the stored token |\n| `{bin} models [id]` | list models on your plan, or set the default |\n| `{bin} usage` | show remaining credits |\n| `{bin} init` | create `{dir}/skills.md` and `memory.md` |\n| `{bin} skills list` / `add "<rule>"` | project rules applied to every run |\n| `{bin} taste push` / `pull <ns/name>` / `list` | share skills and memory with your team |\n| `{bin} mcp list` / `add` / `remove` / `trust` | MCP servers the agent can use |\n| `{bin} hooks list` / `trust` | PreToolUse / PostToolUse hooks |\n| `{bin} doctor` | check node, git, login, MCP and hooks |\n\n## Options for runs\n\n- `--model <id>`: pick a model (see **Models**)\n- `--max-steps <n>`, `--max-tokens <n>`: limits for one run\n- `--effort low|high`, `--cascade`, `--escalate-to <id>`, `--verify <cmd>`\n- `--plan`, `--yolo`, `-c`, `-r [id]`\n- `--append-system-prompt <text>`: extra instructions for this run\n- `--local`: skip the gateway and use a local key\n' },
503
- { id: "skills", category: "Customize", title: "Skills & memory", badge: "", body: '# Skills and memory\n\nPut your conventions in `{dir}/skills.md`. It is plain text, lives in your repository, and is loaded into every session, so the whole team shares it.\n\n```\n{bin} skills add "Use pnpm, not npm"\n{bin} skills list\n```\n\n`{dir}/memory.md` holds notes the agent should remember about the project. Share both with `{bin} taste push` and `{bin} taste pull <namespace>/<name>`.\n' },
504
- { id: "mcp", category: "Customize", title: "MCP servers", badge: "", body: "# MCP servers\n\nConnect tools such as databases or issue trackers through the Model Context Protocol.\n\n```\n{bin} mcp add files npx -y @modelcontextprotocol/server-filesystem .\n{bin} mcp list\n```\n\nServers are stored in `{dir}/mcp.json`. Review and approve a project's servers with `{bin} mcp trust` before the agent uses them.\n" },
505
- { id: "hooks", category: "Customize", title: "Hooks", badge: "", body: "# Hooks\n\nHooks are commands that run before or after a tool call, for example to block risky commands or run a formatter. They live in `{dir}/hooks.json`.\n\n```\n{bin} hooks list\n{bin} hooks trust\n```\n" },
502
+ { id: "intro", category: "Overview", title: "Introduction", badge: "", body: "# Introduction\n\n{name} is an AI coding agent. It reads your project, makes small verified edits, runs your tests, and remembers your conventions. You can use it in two ways, with the same account, plan and credits:\n\n| | Desktop app | CLI |\n|---|---|---|\n| What it is | A full code editor with the agent built in | A terminal tool you run in any project |\n| Best for | Day-to-day coding with inline diffs, a terminal and Git in one window | Terminals, SSH sessions, scripts and CI |\n| Install | [Download](/download) for macOS, Windows or Linux | `{install}` |\n| Start | Open the app and sign in | `{bin} login`, then `{bin}` |\n\nNot sure which to pick? Start with the **Desktop app** if you want an editor, or the **CLI** if you live in the terminal. You can use both.\n\n- Works with the models available on your plan (see **Models**).\n- Every request costs *credits*; your plan includes a monthly allowance (see **Plans** and **Credits**).\n- Your code is sent only to the model provider that answers your request.\n" },
503
+ { id: "download", category: "Desktop App", title: "Install the app", badge: "App", body: "# Install the desktop app\n\n1. Open the [download page](/download) and pick your system (it highlights the one it detects).\n2. Install it. On **macOS**, open the `.dmg` and drag {name} to Applications (Apple Silicon or Intel). On **Windows**, run the `.exe` installer (x64 or ARM64). On **Linux**, use the `.AppImage` (any distro) or the `.deb` (Debian / Ubuntu).\n3. Open {name} and choose **Sign in**. Your browser opens, you approve the device, and the app is connected to your account.\n4. Use **File > Open Folder** to open a project. The chat panel on the right is where you talk to the agent.\n\nRequirements: macOS 12 or later, Windows 10 or later, or a 64-bit Linux with glibc 2.31+ (Ubuntu 20.04+).\n" },
504
+ { id: "desktop-overview", category: "Desktop App", title: "Using the app", badge: "App", body: "# Using the app\n\nThe window has three areas:\n\n- **Left, Explorer**: your files, Git changes (stage, commit, revert) and chat threads.\n- **Center, editor**: tabs, syntax highlighting for 25+ languages, search and replace, and an integrated terminal (`Cmd/Ctrl+J`).\n- **Right, agent chat**: describe a task. Select code in the editor and choose **Add selection to chat** to give the agent exact context. Attach images and use `@` to mention files.\n\n## Reviewing the agent's edits\n\nWhen the agent changes a file, it opens in the editor and the changes show **inline** against the previous version. Each chunk has **Accept** and **Reject**, plus **Accept all** and **Reject all**. Shell commands the agent wants to run ask for your approval first.\n\n## Choosing a model\n\nPick a model from the chat panel. The list shows the models on your plan; a model's credit multiplier decides how fast it uses your allowance (see **Models**).\n" },
505
+ { id: "desktop-shortcuts", category: "Desktop App", title: "Keyboard shortcuts", badge: "App", body: "# Keyboard shortcuts\n\nUse `Cmd` on macOS and `Ctrl` on Windows and Linux.\n\n| Shortcut | Action |\n|---|---|\n| `Cmd/Ctrl+Shift+P` | Command palette |\n| `Cmd/Ctrl+P` | Quick open a file (`file:42` jumps to a line) |\n| `Cmd/Ctrl+Shift+F` | Search and replace across files |\n| `Cmd/Ctrl+O` | Open folder |\n| `Cmd/Ctrl+S` | Save |\n| `Cmd/Ctrl+B` | Toggle sidebar |\n| `Cmd/Ctrl+Alt+B` | Toggle chat |\n| `Cmd/Ctrl+J` | Toggle terminal |\n| `Cmd/Ctrl+Shift+V` | Markdown preview |\n| `Cmd/Ctrl+,` | Settings |\n" },
506
+ { id: "desktop-ssh", category: "Desktop App", title: "Remote SSH", badge: "App", body: "# Remote development over SSH\n\nWork on a server the way you work locally. Click the **`><`** button at the left of the status bar, or run **Remote-SSH: Connect to Host** from the command palette.\n\n1. Pick a host from your `~/.ssh/config`, or type `user@host:port`.\n2. Choose the folder to open on the server.\n3. The Explorer, editor, Git, terminal and the **AI agent** all run on the server. The interface and the model stay on your machine.\n\nYour SSH keys, agent and `ProxyJump` settings are used first; you are asked for a password only if they fail. The server needs a POSIX shell, `git`, `find`, `grep`, `xargs` and `base64`. Project MCP servers, hooks and `{dir}` skills files are not available in remote workspaces.\n" },
507
+ { id: "quickstart", category: "CLI", title: "Install & quickstart", badge: "CLI", body: '# CLI quickstart\n\nRequires Node.js 22 or later.\n\n1. Install the CLI:\n\n```\n{install}\n```\n\n2. Log in (opens your browser):\n\n```\n{bin} login\n```\n\n3. Check the setup:\n\n```\n{bin} doctor\n```\n\n4. Start a session in your project:\n\n```\ncd your-project && {bin}\n```\n\nOr run one prompt and exit:\n\n```\n{bin} -p "add input validation to the signup form"\n```\n\nFor scripts and CI, create an API key under **API Keys** in your dashboard and set it as `SCOPE_API_KEY` instead of logging in.\n' },
508
+ { id: "run-modes", category: "CLI", title: "Run modes", badge: "CLI", body: '# Run modes\n\n- **Interactive** (`{bin}` or `{bin} chat`): a conversation in your terminal. The agent asks before editing files or running commands.\n- **Headless** (`{bin} -p "..."`): one prompt, then exit. Good for scripts and CI. Add `--output-format json` for machine-readable output. Piped input works too: `cat error.log | {bin} -p "why did this fail?"`.\n- **Plan mode** (`--plan`): read-only exploration; prints a step-by-step plan and changes nothing.\n- **Auto-approve** (`--yolo`): runs tools without asking. Dangerous shell commands are still blocked.\n- **Cascade** (`--cascade`): start with the cheap default model and escalate to a stronger one only if the attempt fails. Combine with `--verify "pnpm test"`.\n- **Resume** (`-c` / `-r [id]`): continue the latest session or pick one.\n' },
509
+ { id: "cli-reference", category: "CLI", title: "Commands", badge: "CLI", body: '# Commands\n\n| Command | What it does |\n|---|---|\n| `{bin}` / `{bin} chat` | interactive session in the current directory |\n| `{bin} -p "<prompt>"` | run one prompt headlessly |\n| `{bin} login` / `logout` | log in via browser / remove the stored token |\n| `{bin} models [id]` | list models on your plan, or set the default |\n| `{bin} usage` | show remaining credits |\n| `{bin} init` | create `{dir}/skills.md` and `memory.md` |\n| `{bin} skills list` / `add "<rule>"` | project rules applied to every run |\n| `{bin} taste push` / `pull <ns/name>` / `list` | share skills and memory with your team |\n| `{bin} mcp list` / `add` / `remove` / `trust` | MCP servers the agent can use |\n| `{bin} hooks list` / `trust` | PreToolUse / PostToolUse hooks |\n| `{bin} doctor` | check node, git, login, MCP and hooks |\n\n## Options for runs\n\n- `--model <id>`: pick a model (see **Models**)\n- `--max-steps <n>`, `--max-tokens <n>`: limits for one run\n- `--effort low|high`, `--cascade`, `--escalate-to <id>`, `--verify <cmd>`\n- `--plan`, `--yolo`, `-c`, `-r [id]`\n- `--output-format text|json|stream-json`\n- `--append-system-prompt <text>`: extra instructions for this run\n' },
510
+ { id: "cli-slash", category: "CLI", title: "Slash commands & keys", badge: "CLI", body: "# Slash commands and keys\n\nType these inside an interactive session. Press `Tab` to complete.\n\n| Command | What it does |\n|---|---|\n| `/clear`, `/new` | start a fresh session with clean context |\n| `/model [id]`, `/models` | switch the active model, or list models on your plan |\n| `/status` | session info, plan and model |\n| `/context` | token usage in the current context |\n| `/skills`, `/memory` | browse or add project skills and memory |\n| `/usage` | credits, requests and token usage |\n| `/effort [level]` | set the reasoning effort |\n| `/copy`, `/export [format]` | copy the last answer, or export the transcript |\n| `/init` | create `{dir}/skills.md` and `memory.md` |\n| `/exit`, `/quit` | leave the session |\n\n## Keys\n\n- `@path`: attach a file to your message, for example `@src/index.ts`\n- `!cmd`: run a shell command directly, for example `!git status`\n- `Esc`: interrupt the current turn. `Up` / `Down`: prompt history. `Ctrl+D`: exit on an empty prompt.\n" },
511
+ { id: "skills", category: "Customize", title: "Skills & memory", badge: "App + CLI", body: '# Skills and memory\n\nPut your conventions in `{dir}/skills.md`. It is plain text, lives in your repository, and is loaded into every session in both the app and the CLI, so the whole team shares it.\n\n```\n{bin} skills add "Use pnpm, not npm"\n{bin} skills list\n```\n\n`{dir}/memory.md` holds notes the agent should remember about the project. Share both with `{bin} taste push` and `{bin} taste pull <namespace>/<name>`.\n' },
512
+ { id: "mcp", category: "Customize", title: "MCP servers", badge: "App + CLI", body: "# MCP servers\n\nConnect tools such as databases or issue trackers through the Model Context Protocol. Add them with the CLI; the desktop app uses the same project configuration.\n\n```\n{bin} mcp add files npx -y @modelcontextprotocol/server-filesystem .\n{bin} mcp list\n```\n\nServers are stored in `{dir}/mcp.json`. Review and approve a project's servers with `{bin} mcp trust` before the agent uses them.\n" },
513
+ { id: "hooks", category: "Customize", title: "Hooks", badge: "App + CLI", body: "# Hooks\n\nHooks are commands that run before or after a tool call, for example to block risky commands or run a formatter. They live in `{dir}/hooks.json`.\n\n```\n{bin} hooks list\n{bin} hooks trust\n```\n" },
506
514
  { id: "plans", category: "Plans & Billing", title: "Plans", badge: "", body: "# Plans\n\nCurrent plans, straight from the billing system:\n\n{{plans}}\n\nUpgrade, downgrade or cancel from **Billing** in your dashboard.\n" },
507
515
  { id: "credits", category: "Plans & Billing", title: "Credits & limits", badge: "", body: "# Credits and limits\n\nEach request uses **credits** = (prompt tokens + completion tokens) x the model's credit multiplier. Your plan includes a monthly allowance; it resets with your billing period. Coupon codes add bonus credits on top.\n\nTo keep usage even, every plan also has a **5-hour** and a **weekly** cap. They are rolling windows: credits you used free up gradually as they age out, so there is no single reset time. Check `{bin} usage` or the **Usage** page for what is left.\n\nWhen a cap is reached, requests return `402` (`credits_exhausted`, `weekly_limit` or `five_hour_limit`) with a `retry-after` header, until credits free up or you upgrade.\n\n{{limits}}\n" },
508
516
  { id: "deals", category: "Plans & Billing", title: "Deals", badge: "", body: "# Deals\n\n{{deals}}\n" },
@@ -757,19 +765,19 @@ var SITE_DEFAULTS = {
757
765
  pricingHero: {
758
766
  pill: "// Transparent Pricing.",
759
767
  title: "A plan for every kind of code. Pick yours.",
760
- text: "Swap, upgrade, or cancel whenever.",
761
- checks: ["Cancel anytime", "Never trained on your code"]
768
+ text: "Every model on every plan. Higher plans simply give you more tokens.",
769
+ checks: ["Cancel anytime", "Never trained on your code", "Paid plans launching soon"]
762
770
  },
763
771
  pricingTabs: [
764
772
  {
765
773
  id: "individuals",
766
774
  label: "For Individuals",
767
775
  cards: [
768
- card({ planId: "free", badge: "No card needed", description: "Try Scope IDE with the default open models. Upgrade when you need more.", features: ["DeepSeek default model", "Scope Desktop IDE & Web Studio", "Full codebase indexing", "Community support"], ctaLabel: "Start Free" }),
769
- card({ planId: "go", badge: "Entry", description: "Lots of code for a small price. Perfect for getting started.", features: ["DeepSeek and OpenAI models", "Scope Desktop IDE & Companion CLI", "Usage analytics", "Community & email support"] }),
770
- card({ planId: "goat", badge: "Most Popular", popular: true, description: "Best value for daily builders.", features: ["Adds Claude Haiku and Sonnet", "Higher rate limits", "Priority email support"] }),
771
- card({ planId: "pro", description: "For professional developers shipping complex apps daily.", features: ["Twice the credits of Goat", "Higher rate limits", `Team skills syncing ({dir}/skills.md)`] }),
772
- card({ planId: "max10", description: "For power users and agency leads.", features: ["Ten times the credits of Goat", "Highest rate limits", "Direct support channel"] })
776
+ card({ planId: "free", badge: "No card needed", usage: "1 credit = 1 token on every model", description: "Try Scope with every model and a monthly starter allowance.", features: ["2M credits every month", "All models included", "Desktop app, CLI and API", "Community support"], ctaLabel: "Start Free" }),
777
+ card({ planId: "go", badge: "Entry", usage: "1 credit = 1 token on every model", description: "A steady daily driver for side projects and learning.", features: ["15M credits every month", "All models included", "Usage analytics", "Community & email support"] }),
778
+ card({ planId: "goat", badge: "Most Popular", popular: true, usage: "1 credit = 1 token on every model", description: "Best value for developers who code every day.", features: ["30M credits every month", "All models included", "Higher rate limits", "Priority email support"] }),
779
+ card({ planId: "pro", usage: "1 credit = 1 token on every model", description: "For professionals shipping complex apps every day.", features: ["60M credits every month", "All models included", "Team skills syncing ({dir}/skills.md)", "Higher rate limits"] }),
780
+ card({ planId: "max10", usage: "1 credit = 1 token on every model", description: "For heavy agent workloads, agencies and small teams.", features: ["300M credits every month", "All models included", "Highest rate limits", "Direct support channel"] })
773
781
  ]
774
782
  },
775
783
  {
@@ -802,6 +810,8 @@ var SITE_DEFAULTS = {
802
810
  title: "Questions, answered.",
803
811
  text: "Everything that usually comes up before a developer or team installs.",
804
812
  items: [
813
+ { q: "How do credits work?", a: "1 credit equals 1 token (prompt plus completion) on every model. Tokens served from the provider's cache use a quarter of a credit. Your allowance resets every month, and weekly and 5-hour limits keep usage smooth." },
814
+ { q: "Can I upgrade today?", a: "Paid plans are opening soon. Everyone starts on the Free plan, and we will announce here when upgrades are available." },
805
815
  { q: "Is my code used for training?", a: "No. {name} never trains foundational models on your code. All codebase indexing and interactions remain strictly private." },
806
816
  { q: "How do teams share conventions and skills?", a: "Conventions live in your repository in {dir}/skills.md. Because they are plain text files committed to your repository, team members stay in sync through regular Git commits." }
807
817
  ]
@@ -2980,7 +2990,15 @@ async function models(modelToSet) {
2980
2990
  }
2981
2991
  const r = await api("/v1/models");
2982
2992
  console.log(cs("cli.commands.models_on_your_0_plan", "Models on your {0} plan:", r.plan));
2983
- for (const m of r.data) console.log(cs("cli.commands.0_1_2_x_3", "{0} {1} x{2} credits/token {3}", m.id === cfg.defaultModel ? "*" : " ", m.id.padEnd(28), m.multiplier, m.vision ? "[images]" : ""));
2993
+ const activeDefault = cfg.defaultModel || r.default;
2994
+ for (const m of r.data) {
2995
+ const isDef = m.id === activeDefault;
2996
+ const isServerDef = m.id === r.default;
2997
+ const tag = isServerDef ? " [default]" : "";
2998
+ console.log(cs("cli.commands.0_1_2_x_3", "{0} {1} x{2} credits/token {3}", isDef ? "*" : " ", (m.id + tag).padEnd(32), m.multiplier, m.vision ? "[images]" : ""));
2999
+ }
3000
+ if (r.default) console.log(`
3001
+ Server default: ${r.default}`);
2984
3002
  if (r.data.some((m) => m.vision)) console.log(cs("cli.commands.images_can_read_images_attach", "\n[images] = can read images (attach with @file.png, drag a file in, or Ctrl+V)"));
2985
3003
  if (!r.data.length) console.log(cs("cli.commands.no_models_available_the_server", "No models are available for your account right now."));
2986
3004
  }
@@ -5482,7 +5500,8 @@ if (typeof dns.setDefaultResultOrder === "function") {
5482
5500
  if (typeof net.setDefaultAutoSelectFamily === "function") {
5483
5501
  net.setDefaultAutoSelectFamily(false);
5484
5502
  }
5485
- var program = new Command(BRAND.bin).description(`${BRAND.name} \u2014 CLI coding agent`).version("0.1.1");
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);
5486
5505
  function runOptions(cmd) {
5487
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());
5488
5507
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scopeide/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Scope — the AI coding agent for your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",