@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/README.md +517 -308
- package/bin/raytrace.mjs +17 -10
- package/dist/dashboard/assets/index-DepcI8Fi.js +38 -0
- package/dist/dashboard/index.html +1 -1
- package/package.json +1 -1
- package/proxy/capture-health.mjs +30 -0
- package/proxy/capture-health.test.mjs +44 -0
- package/proxy/evidence-schema.test.mjs +10 -3
- package/proxy/evidence-store.mjs +44 -7
- package/proxy/evidence-store.test.mjs +1 -4
- package/proxy/gvisor-forwarder.mjs +84 -45
- package/proxy/gvisor-forwarder.test.mjs +70 -5
- package/proxy/init-evidence-db.mjs +3 -2
- package/proxy/raytace-proxy.mjs +14 -5
- package/proxy/schema/capture_health.sql +14 -0
- package/proxy/trace-view.mjs +25 -9
- package/proxy/trace-view.test.mjs +20 -0
- package/src/agents.mjs +7 -0
- package/src/commands.mjs +4 -4
- package/src/local-sandbox.mjs +4 -3
- package/src/mcp.mjs +35 -26
- package/src/paths.mjs +8 -1
- package/src/proxy-process.mjs +1 -1
- package/src/sandbox.mjs +6 -4
- package/worker/sandbox/collector.py +55 -7
- package/worker/sandbox/projects.py +25 -7
- package/worker/sandbox/viewer.py +59 -15
- package/dist/dashboard/assets/index-TqrxOY-Y.js +0 -38
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>
|
|
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]
|
|
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
|
|
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:
|
|
31
|
-
|
|
32
|
-
|
|
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>
|
|
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
|
|
130
|
-
const
|
|
131
|
-
|
|
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); }
|