@raytrace-cli/cli 0.9.0 → 0.11.0

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/bin/raytrace.mjs CHANGED
@@ -10,15 +10,17 @@ Usage: raytrace <command>
10
10
  Get started in the cloud (preview):
11
11
  1. raytrace auth login sign in, or create your account, in the browser
12
12
  2. raytrace sandbox create from a Git repository: upload it to a new sandbox
13
- 3. raytrace connect <sandbox-id> a terminal in it; run claude or codex there
13
+ 3. raytrace connect <sandbox-id> --claude
14
+ a terminal in it, with Claude Code running (or --codex)
14
15
 
15
16
  Cloud sandboxes:
16
17
  raytrace auth login|status|logout your RayTrace sign-in
17
18
  raytrace sandbox create [--name <name>] upload this Git repository to a new sandbox
18
19
  (up to 200 MiB, 25 MiB a file, 20,000 files)
19
- raytrace connect [id] [--claude] a terminal in it; with one sandbox the id is
20
+ raytrace connect [id] [--claude|--codex] a terminal in it; with one sandbox the id is
20
21
  optional (same as: raytrace sandbox shell [id]);
21
- --claude starts Claude Code in it at once
22
+ --claude or --codex starts that agent in it at
23
+ once, without approval prompts
22
24
  raytrace --code <code> beta invite: redeem a code RayTrace gave you for one
23
25
  $10-credit sandbox (signed in first; also: raytrace code <code>)
24
26
  raytrace sandbox list
@@ -27,16 +29,20 @@ Cloud sandboxes:
27
29
  delete it; traces go too unless --keep-traces (paid plans)
28
30
 
29
31
  Use from your editor's agent (VS Code, Cursor, Claude Code, any MCP client):
30
- raytrace mcp MCP server on stdio: sign in, create, list, start,
31
- stop and destroy cloud sandboxes. Add it to your
32
- editor as the command: npx -y @raytrace-cli/cli mcp
32
+ raytrace mcp MCP server on stdio: create, open, list, start, stop
33
+ and destroy local and cloud sandboxes, and run
34
+ commands in cloud ones. Add it to your editor as:
35
+ npx -y @raytrace-cli/cli@latest mcp
36
+ (Claude Code: claude mcp add --scope user raytrace
37
+ -- npx -y @raytrace-cli/cli@latest mcp)
33
38
 
34
39
  Local sandboxes (your project stays on this machine):
35
40
  raytrace sandbox create --local [--name <name>] [--yes]
36
41
  a copy of this Git repository in a gVisor sandbox
37
42
  in a Linux VM here; the name defaults to the folder's.
38
43
  Offers to download Lima if missing (--yes: no prompt)
39
- raytrace connect <name> a terminal in it; run claude there
44
+ raytrace connect <name> [--claude|--codex]
45
+ a terminal in it, optionally with that agent running
40
46
  raytrace sandbox list --local
41
47
  raytrace sandbox start|stop <name>
42
48
  raytrace sandbox destroy <name> [--delete-logs | --keep-logs]
@@ -126,9 +132,10 @@ if (command === 'auth') {
126
132
 
127
133
  // `raytrace connect <id>`: the sandbox's terminal, by the id the dashboard shows.
128
134
  if (command === 'connect') {
129
- const flags = { local: rest.includes('--local'), claude: rest.includes('--claude') };
130
- const args = rest.filter((arg) => arg !== '--local' && arg !== '--claude');
131
- if (args.length > 1 || args[0]?.startsWith('-')) { console.error('Usage: raytrace connect [sandbox-id or local name] [--local] [--claude]'); process.exit(2); }
135
+ const agents = ['claude', 'codex'].filter((agent) => rest.includes(`--${agent}`));
136
+ const flags = { local: rest.includes('--local'), agent: agents[0] };
137
+ const args = rest.filter((arg) => !['--local', '--claude', '--codex'].includes(arg));
138
+ if (args.length > 1 || args[0]?.startsWith('-') || agents.length > 1) { console.error('Usage: raytrace connect [sandbox-id or local name] [--local] [--claude | --codex]'); process.exit(2); }
132
139
  const sandbox = await import('../src/sandbox.mjs');
133
140
  try { await sandbox.shell(args[0], flags); process.exit(0); }
134
141
  catch (error) { console.error(`raytrace connect: ${error.message}`); process.exit(1); }