[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-upstash-upstash-box-js":3,"mdc--ggpqto-key":37,"related-repo-upstash-upstash-box-js":5756,"related-org-upstash-upstash-box-js":5765},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":32,"sourceUrl":35,"mdContent":36},"upstash-box-js","build sandboxed environments with Upstash Box","Work with the @upstash\u002Fbox SDK for sandboxed cloud containers with AI agents, shell, filesystem, and git. Use when building with Upstash Box, creating sandboxed environments, running AI agents in containers, or orchestrating parallel boxes.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"upstash","Upstash","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fupstash.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Node.js","node-js","tag",{"name":17,"slug":18,"type":15},"Sandboxing","sandboxing",{"name":20,"slug":21,"type":15},"Agents","agents",{"name":9,"slug":8,"type":15},34,"https:\u002F\u002Fgithub.com\u002Fupstash\u002Fbox","2026-04-06T18:55:14.361763",null,7,[29,30,31],"agent","ai","sandbox",{"repoUrl":24,"stars":23,"forks":27,"topics":33,"description":34},[29,30,31],"TypeScript SDK and CLI for Upstash Box — sandboxed AI coding agents","https:\u002F\u002Fgithub.com\u002Fupstash\u002Fbox\u002Ftree\u002FHEAD\u002Fskills","---\nname: upstash-box-js\ndescription: Work with the @upstash\u002Fbox SDK for sandboxed cloud containers with AI agents, shell, filesystem, and git. Use when building with Upstash Box, creating sandboxed environments, running AI agents in containers, or orchestrating parallel boxes.\n---\n\n# @upstash\u002Fbox SDK\n\nSandboxed cloud containers with built-in AI agents, shell, filesystem, and git.\n\n## Install & Setup\n\n```bash\nnpm install @upstash\u002Fbox\n```\n\nSet `UPSTASH_BOX_API_KEY` env var or pass `apiKey` to constructors.\n\n## Box Lifecycle\n\n```ts\nimport { Box, Agent, ClaudeCode, BoxApiKey } from \"@upstash\u002Fbox\"\n\n\u002F\u002F Create with agent + git + env vars\nconst box = await Box.create({\n  runtime: \"node\", \u002F\u002F \"node\" | \"python\" | \"golang\" | \"ruby\" | \"rust\"\n  agent: {\n    provider: Agent.ClaudeCode, \u002F\u002F Agent.Codex | Agent.OpenCode\n    model: ClaudeCode.Sonnet_4_5,\n    \u002F\u002F apiKey options:\n    \u002F\u002F   omit          → server decides which key to use\n    \u002F\u002F   BoxApiKey.UpstashKey  → use Upstash-provided LLM key\n    \u002F\u002F   BoxApiKey.StoredKey   → use key previously stored via Upstash Console\n    \u002F\u002F   \"sk-...\"      → direct API key string\n    apiKey: BoxApiKey.UpstashKey,\n  },\n  git: { \u002F\u002F all fields optional\n    token: process.env.GITHUB_TOKEN, \u002F\u002F alternatively link your GitHub account via Upstash Console\n    userName: \"Bot\",\n    userEmail: \"bot@example.com\",\n  },\n  env: { DATABASE_URL: \"...\" },\n  skills: [\"upstash\u002Fqstash-js\"], \u002F\u002F GitHub repos as agent skills\n})\n\n\u002F\u002F Reconnect, list, delete, pause\u002Fresume\nconst same = await Box.get(box.id)\nconst all = await Box.list()\nawait box.pause()\nawait box.resume()\nawait box.delete()  \u002F\u002F irreversible\nconst { status } = await box.getStatus()\n```\n\n## Agent Runs\n\n```ts\nimport { z } from \"zod\"\n\n\u002F\u002F Structured output with Zod schema\nconst run = await box.agent.run({\n  prompt: \"Review the code for security issues\",\n  responseSchema: z.object({\n    verdict: z.enum([\"approved\", \"changes_requested\"]),\n    findings: z.array(z.object({\n      severity: z.enum([\"high\", \"medium\", \"low\"]),\n      file: z.string(),\n      issue: z.string(),\n    })),\n  }),\n  timeout: 120_000,\n  maxRetries: 2,\n  onToolUse: (tool) => console.log(tool.name, tool.input),\n})\n\nrun.status  \u002F\u002F \"running\" | \"completed\" | \"failed\" | \"cancelled\" | \"detached\"\nrun.result  \u002F\u002F typed from schema\nrun.cost    \u002F\u002F { inputTokens, outputTokens, computeMs, totalUsd }\n\n\u002F\u002F Streaming\nconst stream = await box.agent.stream({\n  prompt: \"Build a REST API\",\n})\nfor await (const chunk of stream) { console.log(chunk) }\n\n\u002F\u002F Fire-and-forget with webhook\nawait box.agent.run({\n  prompt: \"Run tests\",\n  webhook: { url: \"https:\u002F\u002Fexample.com\u002Fhook\", headers: { Authorization: \"Bearer ...\" } },\n})\n```\n\n## Run Fields\n\nEvery `run` (agent, command, or code) returns a `Run\u003CT>`:\n\n```ts\nconst run = await box.exec.command(\"npm test\")\nrun.id        \u002F\u002F run ID\nrun.status    \u002F\u002F \"completed\" | \"failed\" | ...\nrun.result    \u002F\u002F string output (or typed T with responseSchema)\nrun.exitCode  \u002F\u002F number | null (null for agent runs)\nrun.cost      \u002F\u002F { inputTokens, outputTokens, computeMs, totalUsd }\n\nawait run.cancel()          \u002F\u002F cancel a running run\nconst logs = await run.logs() \u002F\u002F [{ timestamp, level, message }]\n```\n\n## Shell Execution\n\n```ts\n\u002F\u002F Run commands\nconst run = await box.exec.command(\"echo hello && ls -la\")\n\n\u002F\u002F Run code snippets — lang: \"js\" | \"ts\" | \"python\"\nconst run2 = await box.exec.code({ code: \"console.log(1+1)\", lang: \"js\", timeout: 10_000 })\n\n\u002F\u002F Streaming shell\nconst stream = await box.exec.stream(\"npm run build\")\nfor await (const chunk of stream) {\n  \u002F\u002F chunk: { type: \"output\", data } | { type: \"exit\", exitCode, cpuNs }\n}\n```\n\n## Filesystem\n\n```ts\nawait box.files.write({ path: \"\u002Fworkspace\u002Fhome\u002Fapp.js\", content: \"console.log('hi')\" })\nconst content = await box.files.read(\"\u002Fworkspace\u002Fhome\u002Fapp.js\")\nconst entries = await box.files.list(\"\u002Fworkspace\u002Fhome\") \u002F\u002F [{ name, path, size, is_dir, mod_time }]\n\n\u002F\u002F Binary files — use encoding: \"base64\" for read and write\nawait box.files.write({ path: \"\u002Fworkspace\u002Fhome\u002Fimage.png\", content: base64String, encoding: \"base64\" })\nconst b64 = await box.files.read(\"\u002Fworkspace\u002Fhome\u002Fimage.png\", { encoding: \"base64\" })\n\n\u002F\u002F Upload local files, download box files\nawait box.files.upload([{ path: \".\u002Flocal\u002Ffile.txt\", destination: \"\u002Fworkspace\u002Fhome\u002Ffile.txt\" }])\nawait box.files.download({ folder: \".\u002Foutput\" })\n```\n\n## cd \u002F Working Directory\n\nThe SDK tracks `cwd` client-side. All operations (exec, files, git, agent) run relative to it.\n\n```ts\nbox.cwd \u002F\u002F current working directory (starts at \u002Fworkspace\u002Fhome)\nawait box.cd(\"my-repo\")     \u002F\u002F relative to current cwd\nawait box.cd(\"\u002Fworkspace\u002Fhome\u002Fother\") \u002F\u002F absolute path\n```\n\n## Git\n\n```ts\nawait box.git.clone({ repo: \"github.com\u002Forg\u002Frepo\", branch: \"main\" })\nawait box.cd(\"repo\") \u002F\u002F cd into cloned repo\n\nconst status = await box.git.status()\nconst diff = await box.git.diff()\nconst { sha } = await box.git.commit({ message: \"fix: resolve bug\" })\nawait box.git.push({ branch: \"feature\u002Ffix\" })\n\nawait box.git.checkout({ branch: \"release\u002Fv2\" })\nconst pr = await box.git.createPR({ title: \"Fix bug\", body: \"...\", base: \"main\" })\n\u002F\u002F pr: { url, number, title, base }\n\n\u002F\u002F Arbitrary git commands\nconst { output } = await box.git.exec({ args: [\"log\", \"--oneline\", \"-5\"] })\n```\n\n## Snapshots\n\n```ts\n\u002F\u002F Snapshot — checkpoint workspace state\nconst snap = await box.snapshot({ name: \"after-setup\" })\n\u002F\u002F snap: { id, name, box_id, size_bytes, status, created_at }\n\nconst restored = await Box.fromSnapshot(snap.id)\nconst snaps = await box.listSnapshots()\nawait box.deleteSnapshot(snap.id)\n\n```\n\n## EphemeralBox\n\nLightweight, short-lived boxes (max 3 days). No agent or git. Supports exec, files, cd, and snapshots only.\n\n```ts\nimport { EphemeralBox } from \"@upstash\u002Fbox\"\n\nconst ebox = await EphemeralBox.create({\n  runtime: \"python\",\n  ttl: 3600,  \u002F\u002F seconds, max 259200 (3 days)\n  env: { API_KEY: \"...\" },\n})\n\nebox.expiresAt \u002F\u002F unix timestamp when auto-deleted\nawait ebox.exec.command(\"python -c 'print(1+1)'\")\nawait ebox.exec.code({ code: \"print('hi')\", lang: \"python\" })\nawait ebox.files.write({ path: \"\u002Fworkspace\u002Fhome\u002Fdata.json\", content: \"{}\" })\nawait ebox.cd(\"subdir\")\nawait ebox.delete()\n\n\u002F\u002F Restore from snapshot\nconst ebox2 = await EphemeralBox.fromSnapshot(snap.id, { ttl: 7200 })\n```\n\n## Preview URLs\n\nExpose box ports as public URLs with optional auth.\n\n```ts\nconst preview = await box.getPreviewUrl(3000)\n\u002F\u002F preview: { url: \"https:\u002F\u002F{id}-3000.preview.box.upstash.com\", port }\n\nconst authed = await box.getPreviewUrl(3000, { bearerToken: true })\n\u002F\u002F authed: { url, port, token }\n\nconst basic = await box.getPreviewUrl(3000, { basicAuth: true })\n\u002F\u002F basic: { url, port, username, password }\n\nconst { previews } = await box.listPreviews()\nawait box.deletePreview(3000)\n```\n\n## MCP Servers\n\nAttach MCP servers to the box agent.\n\n```ts\nconst box = await Box.create({\n  agent: { provider: Agent.ClaudeCode, model: ClaudeCode.Sonnet_4_5 },\n  mcpServers: [\n    { name: \"fs\", package: \"@modelcontextprotocol\u002Fserver-filesystem\" },\n    { name: \"custom\", url: \"https:\u002F\u002Fmcp.example.com\u002Fsse\", headers: { Authorization: \"...\" } },\n  ],\n})\n```\n\n## Gotchas\n\n- Default working directory is `\u002Fworkspace\u002Fhome`, not `\u002Fhome` or `\u002F`\n- `box.cd()` is client-side tracking — it validates the path exists but doesn't change the box's shell cwd. All SDK methods use it automatically.\n- `EphemeralBox` does NOT support `agent`, `git`, or `preview` — use full `Box` for those\n- `run.exitCode` is `null` for agent runs, only available for exec commands\n- `box.delete()` is irreversible — snapshot first if you need the state\n- Git operations require `git.token` in `BoxConfig` for private repos and PRs\n- `Box.fromSnapshot()` creates a new box — it does not modify the original\n",{"data":38,"body":39},{"name":4,"description":6},{"type":40,"children":41},"root",[42,51,57,64,99,120,126,956,962,1986,1992,2011,2265,2271,2608,2614,3228,3234,3247,3368,3374,4118,4124,4340,4346,4351,4954,4960,4965,5280,5286,5291,5600,5606,5750],{"type":43,"tag":44,"props":45,"children":47},"element","h1",{"id":46},"upstashbox-sdk",[48],{"type":49,"value":50},"text","@upstash\u002Fbox SDK",{"type":43,"tag":52,"props":53,"children":54},"p",{},[55],{"type":49,"value":56},"Sandboxed cloud containers with built-in AI agents, shell, filesystem, and git.",{"type":43,"tag":58,"props":59,"children":61},"h2",{"id":60},"install-setup",[62],{"type":49,"value":63},"Install & Setup",{"type":43,"tag":65,"props":66,"children":71},"pre",{"className":67,"code":68,"language":69,"meta":70,"style":70},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install @upstash\u002Fbox\n","bash","",[72],{"type":43,"tag":73,"props":74,"children":75},"code",{"__ignoreMap":70},[76],{"type":43,"tag":77,"props":78,"children":81},"span",{"class":79,"line":80},"line",1,[82,88,94],{"type":43,"tag":77,"props":83,"children":85},{"style":84},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[86],{"type":49,"value":87},"npm",{"type":43,"tag":77,"props":89,"children":91},{"style":90},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[92],{"type":49,"value":93}," install",{"type":43,"tag":77,"props":95,"children":96},{"style":90},[97],{"type":49,"value":98}," @upstash\u002Fbox\n",{"type":43,"tag":52,"props":100,"children":101},{},[102,104,110,112,118],{"type":49,"value":103},"Set ",{"type":43,"tag":73,"props":105,"children":107},{"className":106},[],[108],{"type":49,"value":109},"UPSTASH_BOX_API_KEY",{"type":49,"value":111}," env var or pass ",{"type":43,"tag":73,"props":113,"children":115},{"className":114},[],[116],{"type":49,"value":117},"apiKey",{"type":49,"value":119}," to constructors.",{"type":43,"tag":58,"props":121,"children":123},{"id":122},"box-lifecycle",[124],{"type":49,"value":125},"Box Lifecycle",{"type":43,"tag":65,"props":127,"children":131},{"className":128,"code":129,"language":130,"meta":70,"style":70},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Box, Agent, ClaudeCode, BoxApiKey } from \"@upstash\u002Fbox\"\n\n\u002F\u002F Create with agent + git + env vars\nconst box = await Box.create({\n  runtime: \"node\", \u002F\u002F \"node\" | \"python\" | \"golang\" | \"ruby\" | \"rust\"\n  agent: {\n    provider: Agent.ClaudeCode, \u002F\u002F Agent.Codex | Agent.OpenCode\n    model: ClaudeCode.Sonnet_4_5,\n    \u002F\u002F apiKey options:\n    \u002F\u002F   omit          → server decides which key to use\n    \u002F\u002F   BoxApiKey.UpstashKey  → use Upstash-provided LLM key\n    \u002F\u002F   BoxApiKey.StoredKey   → use key previously stored via Upstash Console\n    \u002F\u002F   \"sk-...\"      → direct API key string\n    apiKey: BoxApiKey.UpstashKey,\n  },\n  git: { \u002F\u002F all fields optional\n    token: process.env.GITHUB_TOKEN, \u002F\u002F alternatively link your GitHub account via Upstash Console\n    userName: \"Bot\",\n    userEmail: \"bot@example.com\",\n  },\n  env: { DATABASE_URL: \"...\" },\n  skills: [\"upstash\u002Fqstash-js\"], \u002F\u002F GitHub repos as agent skills\n})\n\n\u002F\u002F Reconnect, list, delete, pause\u002Fresume\nconst same = await Box.get(box.id)\nconst all = await Box.list()\nawait box.pause()\nawait box.resume()\nawait box.delete()  \u002F\u002F irreversible\nconst { status } = await box.getStatus()\n","ts",[132],{"type":43,"tag":73,"props":133,"children":134},{"__ignoreMap":70},[135,209,219,229,279,317,335,369,400,409,418,427,436,445,475,484,506,551,581,611,619,663,708,722,730,739,787,826,853,878,909],{"type":43,"tag":77,"props":136,"children":137},{"class":79,"line":80},[138,144,150,156,161,166,170,175,179,184,189,194,199,204],{"type":43,"tag":77,"props":139,"children":141},{"style":140},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[142],{"type":49,"value":143},"import",{"type":43,"tag":77,"props":145,"children":147},{"style":146},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[148],{"type":49,"value":149}," {",{"type":43,"tag":77,"props":151,"children":153},{"style":152},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[154],{"type":49,"value":155}," Box",{"type":43,"tag":77,"props":157,"children":158},{"style":146},[159],{"type":49,"value":160},",",{"type":43,"tag":77,"props":162,"children":163},{"style":152},[164],{"type":49,"value":165}," Agent",{"type":43,"tag":77,"props":167,"children":168},{"style":146},[169],{"type":49,"value":160},{"type":43,"tag":77,"props":171,"children":172},{"style":152},[173],{"type":49,"value":174}," ClaudeCode",{"type":43,"tag":77,"props":176,"children":177},{"style":146},[178],{"type":49,"value":160},{"type":43,"tag":77,"props":180,"children":181},{"style":152},[182],{"type":49,"value":183}," BoxApiKey",{"type":43,"tag":77,"props":185,"children":186},{"style":146},[187],{"type":49,"value":188}," }",{"type":43,"tag":77,"props":190,"children":191},{"style":140},[192],{"type":49,"value":193}," from",{"type":43,"tag":77,"props":195,"children":196},{"style":146},[197],{"type":49,"value":198}," \"",{"type":43,"tag":77,"props":200,"children":201},{"style":90},[202],{"type":49,"value":203},"@upstash\u002Fbox",{"type":43,"tag":77,"props":205,"children":206},{"style":146},[207],{"type":49,"value":208},"\"\n",{"type":43,"tag":77,"props":210,"children":212},{"class":79,"line":211},2,[213],{"type":43,"tag":77,"props":214,"children":216},{"emptyLinePlaceholder":215},true,[217],{"type":49,"value":218},"\n",{"type":43,"tag":77,"props":220,"children":222},{"class":79,"line":221},3,[223],{"type":43,"tag":77,"props":224,"children":226},{"style":225},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[227],{"type":49,"value":228},"\u002F\u002F Create with agent + git + env vars\n",{"type":43,"tag":77,"props":230,"children":232},{"class":79,"line":231},4,[233,239,244,249,254,258,263,269,274],{"type":43,"tag":77,"props":234,"children":236},{"style":235},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[237],{"type":49,"value":238},"const",{"type":43,"tag":77,"props":240,"children":241},{"style":152},[242],{"type":49,"value":243}," box ",{"type":43,"tag":77,"props":245,"children":246},{"style":146},[247],{"type":49,"value":248},"=",{"type":43,"tag":77,"props":250,"children":251},{"style":140},[252],{"type":49,"value":253}," await",{"type":43,"tag":77,"props":255,"children":256},{"style":152},[257],{"type":49,"value":155},{"type":43,"tag":77,"props":259,"children":260},{"style":146},[261],{"type":49,"value":262},".",{"type":43,"tag":77,"props":264,"children":266},{"style":265},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[267],{"type":49,"value":268},"create",{"type":43,"tag":77,"props":270,"children":271},{"style":152},[272],{"type":49,"value":273},"(",{"type":43,"tag":77,"props":275,"children":276},{"style":146},[277],{"type":49,"value":278},"{\n",{"type":43,"tag":77,"props":280,"children":282},{"class":79,"line":281},5,[283,289,294,298,303,308,312],{"type":43,"tag":77,"props":284,"children":286},{"style":285},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[287],{"type":49,"value":288},"  runtime",{"type":43,"tag":77,"props":290,"children":291},{"style":146},[292],{"type":49,"value":293},":",{"type":43,"tag":77,"props":295,"children":296},{"style":146},[297],{"type":49,"value":198},{"type":43,"tag":77,"props":299,"children":300},{"style":90},[301],{"type":49,"value":302},"node",{"type":43,"tag":77,"props":304,"children":305},{"style":146},[306],{"type":49,"value":307},"\"",{"type":43,"tag":77,"props":309,"children":310},{"style":146},[311],{"type":49,"value":160},{"type":43,"tag":77,"props":313,"children":314},{"style":225},[315],{"type":49,"value":316}," \u002F\u002F \"node\" | \"python\" | \"golang\" | \"ruby\" | \"rust\"\n",{"type":43,"tag":77,"props":318,"children":320},{"class":79,"line":319},6,[321,326,330],{"type":43,"tag":77,"props":322,"children":323},{"style":285},[324],{"type":49,"value":325},"  agent",{"type":43,"tag":77,"props":327,"children":328},{"style":146},[329],{"type":49,"value":293},{"type":43,"tag":77,"props":331,"children":332},{"style":146},[333],{"type":49,"value":334}," {\n",{"type":43,"tag":77,"props":336,"children":337},{"class":79,"line":27},[338,343,347,351,355,360,364],{"type":43,"tag":77,"props":339,"children":340},{"style":285},[341],{"type":49,"value":342},"    provider",{"type":43,"tag":77,"props":344,"children":345},{"style":146},[346],{"type":49,"value":293},{"type":43,"tag":77,"props":348,"children":349},{"style":152},[350],{"type":49,"value":165},{"type":43,"tag":77,"props":352,"children":353},{"style":146},[354],{"type":49,"value":262},{"type":43,"tag":77,"props":356,"children":357},{"style":152},[358],{"type":49,"value":359},"ClaudeCode",{"type":43,"tag":77,"props":361,"children":362},{"style":146},[363],{"type":49,"value":160},{"type":43,"tag":77,"props":365,"children":366},{"style":225},[367],{"type":49,"value":368}," \u002F\u002F Agent.Codex | Agent.OpenCode\n",{"type":43,"tag":77,"props":370,"children":372},{"class":79,"line":371},8,[373,378,382,386,390,395],{"type":43,"tag":77,"props":374,"children":375},{"style":285},[376],{"type":49,"value":377},"    model",{"type":43,"tag":77,"props":379,"children":380},{"style":146},[381],{"type":49,"value":293},{"type":43,"tag":77,"props":383,"children":384},{"style":152},[385],{"type":49,"value":174},{"type":43,"tag":77,"props":387,"children":388},{"style":146},[389],{"type":49,"value":262},{"type":43,"tag":77,"props":391,"children":392},{"style":152},[393],{"type":49,"value":394},"Sonnet_4_5",{"type":43,"tag":77,"props":396,"children":397},{"style":146},[398],{"type":49,"value":399},",\n",{"type":43,"tag":77,"props":401,"children":403},{"class":79,"line":402},9,[404],{"type":43,"tag":77,"props":405,"children":406},{"style":225},[407],{"type":49,"value":408},"    \u002F\u002F apiKey options:\n",{"type":43,"tag":77,"props":410,"children":412},{"class":79,"line":411},10,[413],{"type":43,"tag":77,"props":414,"children":415},{"style":225},[416],{"type":49,"value":417},"    \u002F\u002F   omit          → server decides which key to use\n",{"type":43,"tag":77,"props":419,"children":421},{"class":79,"line":420},11,[422],{"type":43,"tag":77,"props":423,"children":424},{"style":225},[425],{"type":49,"value":426},"    \u002F\u002F   BoxApiKey.UpstashKey  → use Upstash-provided LLM key\n",{"type":43,"tag":77,"props":428,"children":430},{"class":79,"line":429},12,[431],{"type":43,"tag":77,"props":432,"children":433},{"style":225},[434],{"type":49,"value":435},"    \u002F\u002F   BoxApiKey.StoredKey   → use key previously stored via Upstash Console\n",{"type":43,"tag":77,"props":437,"children":439},{"class":79,"line":438},13,[440],{"type":43,"tag":77,"props":441,"children":442},{"style":225},[443],{"type":49,"value":444},"    \u002F\u002F   \"sk-...\"      → direct API key string\n",{"type":43,"tag":77,"props":446,"children":448},{"class":79,"line":447},14,[449,454,458,462,466,471],{"type":43,"tag":77,"props":450,"children":451},{"style":285},[452],{"type":49,"value":453},"    apiKey",{"type":43,"tag":77,"props":455,"children":456},{"style":146},[457],{"type":49,"value":293},{"type":43,"tag":77,"props":459,"children":460},{"style":152},[461],{"type":49,"value":183},{"type":43,"tag":77,"props":463,"children":464},{"style":146},[465],{"type":49,"value":262},{"type":43,"tag":77,"props":467,"children":468},{"style":152},[469],{"type":49,"value":470},"UpstashKey",{"type":43,"tag":77,"props":472,"children":473},{"style":146},[474],{"type":49,"value":399},{"type":43,"tag":77,"props":476,"children":478},{"class":79,"line":477},15,[479],{"type":43,"tag":77,"props":480,"children":481},{"style":146},[482],{"type":49,"value":483},"  },\n",{"type":43,"tag":77,"props":485,"children":487},{"class":79,"line":486},16,[488,493,497,501],{"type":43,"tag":77,"props":489,"children":490},{"style":285},[491],{"type":49,"value":492},"  git",{"type":43,"tag":77,"props":494,"children":495},{"style":146},[496],{"type":49,"value":293},{"type":43,"tag":77,"props":498,"children":499},{"style":146},[500],{"type":49,"value":149},{"type":43,"tag":77,"props":502,"children":503},{"style":225},[504],{"type":49,"value":505}," \u002F\u002F all fields optional\n",{"type":43,"tag":77,"props":507,"children":509},{"class":79,"line":508},17,[510,515,519,524,528,533,537,542,546],{"type":43,"tag":77,"props":511,"children":512},{"style":285},[513],{"type":49,"value":514},"    token",{"type":43,"tag":77,"props":516,"children":517},{"style":146},[518],{"type":49,"value":293},{"type":43,"tag":77,"props":520,"children":521},{"style":152},[522],{"type":49,"value":523}," process",{"type":43,"tag":77,"props":525,"children":526},{"style":146},[527],{"type":49,"value":262},{"type":43,"tag":77,"props":529,"children":530},{"style":152},[531],{"type":49,"value":532},"env",{"type":43,"tag":77,"props":534,"children":535},{"style":146},[536],{"type":49,"value":262},{"type":43,"tag":77,"props":538,"children":539},{"style":152},[540],{"type":49,"value":541},"GITHUB_TOKEN",{"type":43,"tag":77,"props":543,"children":544},{"style":146},[545],{"type":49,"value":160},{"type":43,"tag":77,"props":547,"children":548},{"style":225},[549],{"type":49,"value":550}," \u002F\u002F alternatively link your GitHub account via Upstash Console\n",{"type":43,"tag":77,"props":552,"children":554},{"class":79,"line":553},18,[555,560,564,568,573,577],{"type":43,"tag":77,"props":556,"children":557},{"style":285},[558],{"type":49,"value":559},"    userName",{"type":43,"tag":77,"props":561,"children":562},{"style":146},[563],{"type":49,"value":293},{"type":43,"tag":77,"props":565,"children":566},{"style":146},[567],{"type":49,"value":198},{"type":43,"tag":77,"props":569,"children":570},{"style":90},[571],{"type":49,"value":572},"Bot",{"type":43,"tag":77,"props":574,"children":575},{"style":146},[576],{"type":49,"value":307},{"type":43,"tag":77,"props":578,"children":579},{"style":146},[580],{"type":49,"value":399},{"type":43,"tag":77,"props":582,"children":584},{"class":79,"line":583},19,[585,590,594,598,603,607],{"type":43,"tag":77,"props":586,"children":587},{"style":285},[588],{"type":49,"value":589},"    userEmail",{"type":43,"tag":77,"props":591,"children":592},{"style":146},[593],{"type":49,"value":293},{"type":43,"tag":77,"props":595,"children":596},{"style":146},[597],{"type":49,"value":198},{"type":43,"tag":77,"props":599,"children":600},{"style":90},[601],{"type":49,"value":602},"bot@example.com",{"type":43,"tag":77,"props":604,"children":605},{"style":146},[606],{"type":49,"value":307},{"type":43,"tag":77,"props":608,"children":609},{"style":146},[610],{"type":49,"value":399},{"type":43,"tag":77,"props":612,"children":614},{"class":79,"line":613},20,[615],{"type":43,"tag":77,"props":616,"children":617},{"style":146},[618],{"type":49,"value":483},{"type":43,"tag":77,"props":620,"children":622},{"class":79,"line":621},21,[623,628,632,636,641,645,649,654,658],{"type":43,"tag":77,"props":624,"children":625},{"style":285},[626],{"type":49,"value":627},"  env",{"type":43,"tag":77,"props":629,"children":630},{"style":146},[631],{"type":49,"value":293},{"type":43,"tag":77,"props":633,"children":634},{"style":146},[635],{"type":49,"value":149},{"type":43,"tag":77,"props":637,"children":638},{"style":285},[639],{"type":49,"value":640}," DATABASE_URL",{"type":43,"tag":77,"props":642,"children":643},{"style":146},[644],{"type":49,"value":293},{"type":43,"tag":77,"props":646,"children":647},{"style":146},[648],{"type":49,"value":198},{"type":43,"tag":77,"props":650,"children":651},{"style":90},[652],{"type":49,"value":653},"...",{"type":43,"tag":77,"props":655,"children":656},{"style":146},[657],{"type":49,"value":307},{"type":43,"tag":77,"props":659,"children":660},{"style":146},[661],{"type":49,"value":662}," },\n",{"type":43,"tag":77,"props":664,"children":666},{"class":79,"line":665},22,[667,672,676,681,685,690,694,699,703],{"type":43,"tag":77,"props":668,"children":669},{"style":285},[670],{"type":49,"value":671},"  skills",{"type":43,"tag":77,"props":673,"children":674},{"style":146},[675],{"type":49,"value":293},{"type":43,"tag":77,"props":677,"children":678},{"style":152},[679],{"type":49,"value":680}," [",{"type":43,"tag":77,"props":682,"children":683},{"style":146},[684],{"type":49,"value":307},{"type":43,"tag":77,"props":686,"children":687},{"style":90},[688],{"type":49,"value":689},"upstash\u002Fqstash-js",{"type":43,"tag":77,"props":691,"children":692},{"style":146},[693],{"type":49,"value":307},{"type":43,"tag":77,"props":695,"children":696},{"style":152},[697],{"type":49,"value":698},"]",{"type":43,"tag":77,"props":700,"children":701},{"style":146},[702],{"type":49,"value":160},{"type":43,"tag":77,"props":704,"children":705},{"style":225},[706],{"type":49,"value":707}," \u002F\u002F GitHub repos as agent skills\n",{"type":43,"tag":77,"props":709,"children":711},{"class":79,"line":710},23,[712,717],{"type":43,"tag":77,"props":713,"children":714},{"style":146},[715],{"type":49,"value":716},"}",{"type":43,"tag":77,"props":718,"children":719},{"style":152},[720],{"type":49,"value":721},")\n",{"type":43,"tag":77,"props":723,"children":725},{"class":79,"line":724},24,[726],{"type":43,"tag":77,"props":727,"children":728},{"emptyLinePlaceholder":215},[729],{"type":49,"value":218},{"type":43,"tag":77,"props":731,"children":733},{"class":79,"line":732},25,[734],{"type":43,"tag":77,"props":735,"children":736},{"style":225},[737],{"type":49,"value":738},"\u002F\u002F Reconnect, list, delete, pause\u002Fresume\n",{"type":43,"tag":77,"props":740,"children":742},{"class":79,"line":741},26,[743,747,752,756,760,764,768,773,778,782],{"type":43,"tag":77,"props":744,"children":745},{"style":235},[746],{"type":49,"value":238},{"type":43,"tag":77,"props":748,"children":749},{"style":152},[750],{"type":49,"value":751}," same ",{"type":43,"tag":77,"props":753,"children":754},{"style":146},[755],{"type":49,"value":248},{"type":43,"tag":77,"props":757,"children":758},{"style":140},[759],{"type":49,"value":253},{"type":43,"tag":77,"props":761,"children":762},{"style":152},[763],{"type":49,"value":155},{"type":43,"tag":77,"props":765,"children":766},{"style":146},[767],{"type":49,"value":262},{"type":43,"tag":77,"props":769,"children":770},{"style":265},[771],{"type":49,"value":772},"get",{"type":43,"tag":77,"props":774,"children":775},{"style":152},[776],{"type":49,"value":777},"(box",{"type":43,"tag":77,"props":779,"children":780},{"style":146},[781],{"type":49,"value":262},{"type":43,"tag":77,"props":783,"children":784},{"style":152},[785],{"type":49,"value":786},"id)\n",{"type":43,"tag":77,"props":788,"children":790},{"class":79,"line":789},27,[791,795,800,804,808,812,816,821],{"type":43,"tag":77,"props":792,"children":793},{"style":235},[794],{"type":49,"value":238},{"type":43,"tag":77,"props":796,"children":797},{"style":152},[798],{"type":49,"value":799}," all ",{"type":43,"tag":77,"props":801,"children":802},{"style":146},[803],{"type":49,"value":248},{"type":43,"tag":77,"props":805,"children":806},{"style":140},[807],{"type":49,"value":253},{"type":43,"tag":77,"props":809,"children":810},{"style":152},[811],{"type":49,"value":155},{"type":43,"tag":77,"props":813,"children":814},{"style":146},[815],{"type":49,"value":262},{"type":43,"tag":77,"props":817,"children":818},{"style":265},[819],{"type":49,"value":820},"list",{"type":43,"tag":77,"props":822,"children":823},{"style":152},[824],{"type":49,"value":825},"()\n",{"type":43,"tag":77,"props":827,"children":829},{"class":79,"line":828},28,[830,835,840,844,849],{"type":43,"tag":77,"props":831,"children":832},{"style":140},[833],{"type":49,"value":834},"await",{"type":43,"tag":77,"props":836,"children":837},{"style":152},[838],{"type":49,"value":839}," box",{"type":43,"tag":77,"props":841,"children":842},{"style":146},[843],{"type":49,"value":262},{"type":43,"tag":77,"props":845,"children":846},{"style":265},[847],{"type":49,"value":848},"pause",{"type":43,"tag":77,"props":850,"children":851},{"style":152},[852],{"type":49,"value":825},{"type":43,"tag":77,"props":854,"children":856},{"class":79,"line":855},29,[857,861,865,869,874],{"type":43,"tag":77,"props":858,"children":859},{"style":140},[860],{"type":49,"value":834},{"type":43,"tag":77,"props":862,"children":863},{"style":152},[864],{"type":49,"value":839},{"type":43,"tag":77,"props":866,"children":867},{"style":146},[868],{"type":49,"value":262},{"type":43,"tag":77,"props":870,"children":871},{"style":265},[872],{"type":49,"value":873},"resume",{"type":43,"tag":77,"props":875,"children":876},{"style":152},[877],{"type":49,"value":825},{"type":43,"tag":77,"props":879,"children":881},{"class":79,"line":880},30,[882,886,890,894,899,904],{"type":43,"tag":77,"props":883,"children":884},{"style":140},[885],{"type":49,"value":834},{"type":43,"tag":77,"props":887,"children":888},{"style":152},[889],{"type":49,"value":839},{"type":43,"tag":77,"props":891,"children":892},{"style":146},[893],{"type":49,"value":262},{"type":43,"tag":77,"props":895,"children":896},{"style":265},[897],{"type":49,"value":898},"delete",{"type":43,"tag":77,"props":900,"children":901},{"style":152},[902],{"type":49,"value":903},"()  ",{"type":43,"tag":77,"props":905,"children":906},{"style":225},[907],{"type":49,"value":908},"\u002F\u002F irreversible\n",{"type":43,"tag":77,"props":910,"children":912},{"class":79,"line":911},31,[913,917,921,926,930,935,939,943,947,952],{"type":43,"tag":77,"props":914,"children":915},{"style":235},[916],{"type":49,"value":238},{"type":43,"tag":77,"props":918,"children":919},{"style":146},[920],{"type":49,"value":149},{"type":43,"tag":77,"props":922,"children":923},{"style":152},[924],{"type":49,"value":925}," status ",{"type":43,"tag":77,"props":927,"children":928},{"style":146},[929],{"type":49,"value":716},{"type":43,"tag":77,"props":931,"children":932},{"style":146},[933],{"type":49,"value":934}," =",{"type":43,"tag":77,"props":936,"children":937},{"style":140},[938],{"type":49,"value":253},{"type":43,"tag":77,"props":940,"children":941},{"style":152},[942],{"type":49,"value":839},{"type":43,"tag":77,"props":944,"children":945},{"style":146},[946],{"type":49,"value":262},{"type":43,"tag":77,"props":948,"children":949},{"style":265},[950],{"type":49,"value":951},"getStatus",{"type":43,"tag":77,"props":953,"children":954},{"style":152},[955],{"type":49,"value":825},{"type":43,"tag":58,"props":957,"children":959},{"id":958},"agent-runs",[960],{"type":49,"value":961},"Agent Runs",{"type":43,"tag":65,"props":963,"children":965},{"className":128,"code":964,"language":130,"meta":70,"style":70},"import { z } from \"zod\"\n\n\u002F\u002F Structured output with Zod schema\nconst run = await box.agent.run({\n  prompt: \"Review the code for security issues\",\n  responseSchema: z.object({\n    verdict: z.enum([\"approved\", \"changes_requested\"]),\n    findings: z.array(z.object({\n      severity: z.enum([\"high\", \"medium\", \"low\"]),\n      file: z.string(),\n      issue: z.string(),\n    })),\n  }),\n  timeout: 120_000,\n  maxRetries: 2,\n  onToolUse: (tool) => console.log(tool.name, tool.input),\n})\n\nrun.status  \u002F\u002F \"running\" | \"completed\" | \"failed\" | \"cancelled\" | \"detached\"\nrun.result  \u002F\u002F typed from schema\nrun.cost    \u002F\u002F { inputTokens, outputTokens, computeMs, totalUsd }\n\n\u002F\u002F Streaming\nconst stream = await box.agent.stream({\n  prompt: \"Build a REST API\",\n})\nfor await (const chunk of stream) { console.log(chunk) }\n\n\u002F\u002F Fire-and-forget with webhook\nawait box.agent.run({\n  prompt: \"Run tests\",\n  webhook: { url: \"https:\u002F\u002Fexample.com\u002Fhook\", headers: { Authorization: \"Bearer ...\" } },\n})\n",[966],{"type":43,"tag":73,"props":967,"children":968},{"__ignoreMap":70},[969,1006,1013,1021,1070,1099,1132,1201,1247,1330,1364,1396,1413,1430,1452,1473,1555,1566,1573,1594,1615,1636,1643,1651,1700,1728,1739,1810,1817,1825,1860,1888,1974],{"type":43,"tag":77,"props":970,"children":971},{"class":79,"line":80},[972,976,980,985,989,993,997,1002],{"type":43,"tag":77,"props":973,"children":974},{"style":140},[975],{"type":49,"value":143},{"type":43,"tag":77,"props":977,"children":978},{"style":146},[979],{"type":49,"value":149},{"type":43,"tag":77,"props":981,"children":982},{"style":152},[983],{"type":49,"value":984}," z",{"type":43,"tag":77,"props":986,"children":987},{"style":146},[988],{"type":49,"value":188},{"type":43,"tag":77,"props":990,"children":991},{"style":140},[992],{"type":49,"value":193},{"type":43,"tag":77,"props":994,"children":995},{"style":146},[996],{"type":49,"value":198},{"type":43,"tag":77,"props":998,"children":999},{"style":90},[1000],{"type":49,"value":1001},"zod",{"type":43,"tag":77,"props":1003,"children":1004},{"style":146},[1005],{"type":49,"value":208},{"type":43,"tag":77,"props":1007,"children":1008},{"class":79,"line":211},[1009],{"type":43,"tag":77,"props":1010,"children":1011},{"emptyLinePlaceholder":215},[1012],{"type":49,"value":218},{"type":43,"tag":77,"props":1014,"children":1015},{"class":79,"line":221},[1016],{"type":43,"tag":77,"props":1017,"children":1018},{"style":225},[1019],{"type":49,"value":1020},"\u002F\u002F Structured output with Zod schema\n",{"type":43,"tag":77,"props":1022,"children":1023},{"class":79,"line":231},[1024,1028,1033,1037,1041,1045,1049,1053,1057,1062,1066],{"type":43,"tag":77,"props":1025,"children":1026},{"style":235},[1027],{"type":49,"value":238},{"type":43,"tag":77,"props":1029,"children":1030},{"style":152},[1031],{"type":49,"value":1032}," run ",{"type":43,"tag":77,"props":1034,"children":1035},{"style":146},[1036],{"type":49,"value":248},{"type":43,"tag":77,"props":1038,"children":1039},{"style":140},[1040],{"type":49,"value":253},{"type":43,"tag":77,"props":1042,"children":1043},{"style":152},[1044],{"type":49,"value":839},{"type":43,"tag":77,"props":1046,"children":1047},{"style":146},[1048],{"type":49,"value":262},{"type":43,"tag":77,"props":1050,"children":1051},{"style":152},[1052],{"type":49,"value":29},{"type":43,"tag":77,"props":1054,"children":1055},{"style":146},[1056],{"type":49,"value":262},{"type":43,"tag":77,"props":1058,"children":1059},{"style":265},[1060],{"type":49,"value":1061},"run",{"type":43,"tag":77,"props":1063,"children":1064},{"style":152},[1065],{"type":49,"value":273},{"type":43,"tag":77,"props":1067,"children":1068},{"style":146},[1069],{"type":49,"value":278},{"type":43,"tag":77,"props":1071,"children":1072},{"class":79,"line":281},[1073,1078,1082,1086,1091,1095],{"type":43,"tag":77,"props":1074,"children":1075},{"style":285},[1076],{"type":49,"value":1077},"  prompt",{"type":43,"tag":77,"props":1079,"children":1080},{"style":146},[1081],{"type":49,"value":293},{"type":43,"tag":77,"props":1083,"children":1084},{"style":146},[1085],{"type":49,"value":198},{"type":43,"tag":77,"props":1087,"children":1088},{"style":90},[1089],{"type":49,"value":1090},"Review the code for security issues",{"type":43,"tag":77,"props":1092,"children":1093},{"style":146},[1094],{"type":49,"value":307},{"type":43,"tag":77,"props":1096,"children":1097},{"style":146},[1098],{"type":49,"value":399},{"type":43,"tag":77,"props":1100,"children":1101},{"class":79,"line":319},[1102,1107,1111,1115,1119,1124,1128],{"type":43,"tag":77,"props":1103,"children":1104},{"style":285},[1105],{"type":49,"value":1106},"  responseSchema",{"type":43,"tag":77,"props":1108,"children":1109},{"style":146},[1110],{"type":49,"value":293},{"type":43,"tag":77,"props":1112,"children":1113},{"style":152},[1114],{"type":49,"value":984},{"type":43,"tag":77,"props":1116,"children":1117},{"style":146},[1118],{"type":49,"value":262},{"type":43,"tag":77,"props":1120,"children":1121},{"style":265},[1122],{"type":49,"value":1123},"object",{"type":43,"tag":77,"props":1125,"children":1126},{"style":152},[1127],{"type":49,"value":273},{"type":43,"tag":77,"props":1129,"children":1130},{"style":146},[1131],{"type":49,"value":278},{"type":43,"tag":77,"props":1133,"children":1134},{"class":79,"line":27},[1135,1140,1144,1148,1152,1157,1162,1166,1171,1175,1179,1183,1188,1192,1197],{"type":43,"tag":77,"props":1136,"children":1137},{"style":285},[1138],{"type":49,"value":1139},"    verdict",{"type":43,"tag":77,"props":1141,"children":1142},{"style":146},[1143],{"type":49,"value":293},{"type":43,"tag":77,"props":1145,"children":1146},{"style":152},[1147],{"type":49,"value":984},{"type":43,"tag":77,"props":1149,"children":1150},{"style":146},[1151],{"type":49,"value":262},{"type":43,"tag":77,"props":1153,"children":1154},{"style":265},[1155],{"type":49,"value":1156},"enum",{"type":43,"tag":77,"props":1158,"children":1159},{"style":152},[1160],{"type":49,"value":1161},"([",{"type":43,"tag":77,"props":1163,"children":1164},{"style":146},[1165],{"type":49,"value":307},{"type":43,"tag":77,"props":1167,"children":1168},{"style":90},[1169],{"type":49,"value":1170},"approved",{"type":43,"tag":77,"props":1172,"children":1173},{"style":146},[1174],{"type":49,"value":307},{"type":43,"tag":77,"props":1176,"children":1177},{"style":146},[1178],{"type":49,"value":160},{"type":43,"tag":77,"props":1180,"children":1181},{"style":146},[1182],{"type":49,"value":198},{"type":43,"tag":77,"props":1184,"children":1185},{"style":90},[1186],{"type":49,"value":1187},"changes_requested",{"type":43,"tag":77,"props":1189,"children":1190},{"style":146},[1191],{"type":49,"value":307},{"type":43,"tag":77,"props":1193,"children":1194},{"style":152},[1195],{"type":49,"value":1196},"])",{"type":43,"tag":77,"props":1198,"children":1199},{"style":146},[1200],{"type":49,"value":399},{"type":43,"tag":77,"props":1202,"children":1203},{"class":79,"line":371},[1204,1209,1213,1217,1221,1226,1231,1235,1239,1243],{"type":43,"tag":77,"props":1205,"children":1206},{"style":285},[1207],{"type":49,"value":1208},"    findings",{"type":43,"tag":77,"props":1210,"children":1211},{"style":146},[1212],{"type":49,"value":293},{"type":43,"tag":77,"props":1214,"children":1215},{"style":152},[1216],{"type":49,"value":984},{"type":43,"tag":77,"props":1218,"children":1219},{"style":146},[1220],{"type":49,"value":262},{"type":43,"tag":77,"props":1222,"children":1223},{"style":265},[1224],{"type":49,"value":1225},"array",{"type":43,"tag":77,"props":1227,"children":1228},{"style":152},[1229],{"type":49,"value":1230},"(z",{"type":43,"tag":77,"props":1232,"children":1233},{"style":146},[1234],{"type":49,"value":262},{"type":43,"tag":77,"props":1236,"children":1237},{"style":265},[1238],{"type":49,"value":1123},{"type":43,"tag":77,"props":1240,"children":1241},{"style":152},[1242],{"type":49,"value":273},{"type":43,"tag":77,"props":1244,"children":1245},{"style":146},[1246],{"type":49,"value":278},{"type":43,"tag":77,"props":1248,"children":1249},{"class":79,"line":402},[1250,1255,1259,1263,1267,1271,1275,1279,1284,1288,1292,1296,1301,1305,1309,1313,1318,1322,1326],{"type":43,"tag":77,"props":1251,"children":1252},{"style":285},[1253],{"type":49,"value":1254},"      severity",{"type":43,"tag":77,"props":1256,"children":1257},{"style":146},[1258],{"type":49,"value":293},{"type":43,"tag":77,"props":1260,"children":1261},{"style":152},[1262],{"type":49,"value":984},{"type":43,"tag":77,"props":1264,"children":1265},{"style":146},[1266],{"type":49,"value":262},{"type":43,"tag":77,"props":1268,"children":1269},{"style":265},[1270],{"type":49,"value":1156},{"type":43,"tag":77,"props":1272,"children":1273},{"style":152},[1274],{"type":49,"value":1161},{"type":43,"tag":77,"props":1276,"children":1277},{"style":146},[1278],{"type":49,"value":307},{"type":43,"tag":77,"props":1280,"children":1281},{"style":90},[1282],{"type":49,"value":1283},"high",{"type":43,"tag":77,"props":1285,"children":1286},{"style":146},[1287],{"type":49,"value":307},{"type":43,"tag":77,"props":1289,"children":1290},{"style":146},[1291],{"type":49,"value":160},{"type":43,"tag":77,"props":1293,"children":1294},{"style":146},[1295],{"type":49,"value":198},{"type":43,"tag":77,"props":1297,"children":1298},{"style":90},[1299],{"type":49,"value":1300},"medium",{"type":43,"tag":77,"props":1302,"children":1303},{"style":146},[1304],{"type":49,"value":307},{"type":43,"tag":77,"props":1306,"children":1307},{"style":146},[1308],{"type":49,"value":160},{"type":43,"tag":77,"props":1310,"children":1311},{"style":146},[1312],{"type":49,"value":198},{"type":43,"tag":77,"props":1314,"children":1315},{"style":90},[1316],{"type":49,"value":1317},"low",{"type":43,"tag":77,"props":1319,"children":1320},{"style":146},[1321],{"type":49,"value":307},{"type":43,"tag":77,"props":1323,"children":1324},{"style":152},[1325],{"type":49,"value":1196},{"type":43,"tag":77,"props":1327,"children":1328},{"style":146},[1329],{"type":49,"value":399},{"type":43,"tag":77,"props":1331,"children":1332},{"class":79,"line":411},[1333,1338,1342,1346,1350,1355,1360],{"type":43,"tag":77,"props":1334,"children":1335},{"style":285},[1336],{"type":49,"value":1337},"      file",{"type":43,"tag":77,"props":1339,"children":1340},{"style":146},[1341],{"type":49,"value":293},{"type":43,"tag":77,"props":1343,"children":1344},{"style":152},[1345],{"type":49,"value":984},{"type":43,"tag":77,"props":1347,"children":1348},{"style":146},[1349],{"type":49,"value":262},{"type":43,"tag":77,"props":1351,"children":1352},{"style":265},[1353],{"type":49,"value":1354},"string",{"type":43,"tag":77,"props":1356,"children":1357},{"style":152},[1358],{"type":49,"value":1359},"()",{"type":43,"tag":77,"props":1361,"children":1362},{"style":146},[1363],{"type":49,"value":399},{"type":43,"tag":77,"props":1365,"children":1366},{"class":79,"line":420},[1367,1372,1376,1380,1384,1388,1392],{"type":43,"tag":77,"props":1368,"children":1369},{"style":285},[1370],{"type":49,"value":1371},"      issue",{"type":43,"tag":77,"props":1373,"children":1374},{"style":146},[1375],{"type":49,"value":293},{"type":43,"tag":77,"props":1377,"children":1378},{"style":152},[1379],{"type":49,"value":984},{"type":43,"tag":77,"props":1381,"children":1382},{"style":146},[1383],{"type":49,"value":262},{"type":43,"tag":77,"props":1385,"children":1386},{"style":265},[1387],{"type":49,"value":1354},{"type":43,"tag":77,"props":1389,"children":1390},{"style":152},[1391],{"type":49,"value":1359},{"type":43,"tag":77,"props":1393,"children":1394},{"style":146},[1395],{"type":49,"value":399},{"type":43,"tag":77,"props":1397,"children":1398},{"class":79,"line":429},[1399,1404,1409],{"type":43,"tag":77,"props":1400,"children":1401},{"style":146},[1402],{"type":49,"value":1403},"    }",{"type":43,"tag":77,"props":1405,"children":1406},{"style":152},[1407],{"type":49,"value":1408},"))",{"type":43,"tag":77,"props":1410,"children":1411},{"style":146},[1412],{"type":49,"value":399},{"type":43,"tag":77,"props":1414,"children":1415},{"class":79,"line":438},[1416,1421,1426],{"type":43,"tag":77,"props":1417,"children":1418},{"style":146},[1419],{"type":49,"value":1420},"  }",{"type":43,"tag":77,"props":1422,"children":1423},{"style":152},[1424],{"type":49,"value":1425},")",{"type":43,"tag":77,"props":1427,"children":1428},{"style":146},[1429],{"type":49,"value":399},{"type":43,"tag":77,"props":1431,"children":1432},{"class":79,"line":447},[1433,1438,1442,1448],{"type":43,"tag":77,"props":1434,"children":1435},{"style":285},[1436],{"type":49,"value":1437},"  timeout",{"type":43,"tag":77,"props":1439,"children":1440},{"style":146},[1441],{"type":49,"value":293},{"type":43,"tag":77,"props":1443,"children":1445},{"style":1444},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1446],{"type":49,"value":1447}," 120_000",{"type":43,"tag":77,"props":1449,"children":1450},{"style":146},[1451],{"type":49,"value":399},{"type":43,"tag":77,"props":1453,"children":1454},{"class":79,"line":477},[1455,1460,1464,1469],{"type":43,"tag":77,"props":1456,"children":1457},{"style":285},[1458],{"type":49,"value":1459},"  maxRetries",{"type":43,"tag":77,"props":1461,"children":1462},{"style":146},[1463],{"type":49,"value":293},{"type":43,"tag":77,"props":1465,"children":1466},{"style":1444},[1467],{"type":49,"value":1468}," 2",{"type":43,"tag":77,"props":1470,"children":1471},{"style":146},[1472],{"type":49,"value":399},{"type":43,"tag":77,"props":1474,"children":1475},{"class":79,"line":486},[1476,1481,1485,1490,1496,1500,1505,1510,1514,1519,1524,1528,1533,1537,1542,1546,1551],{"type":43,"tag":77,"props":1477,"children":1478},{"style":265},[1479],{"type":49,"value":1480},"  onToolUse",{"type":43,"tag":77,"props":1482,"children":1483},{"style":146},[1484],{"type":49,"value":293},{"type":43,"tag":77,"props":1486,"children":1487},{"style":146},[1488],{"type":49,"value":1489}," (",{"type":43,"tag":77,"props":1491,"children":1493},{"style":1492},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1494],{"type":49,"value":1495},"tool",{"type":43,"tag":77,"props":1497,"children":1498},{"style":146},[1499],{"type":49,"value":1425},{"type":43,"tag":77,"props":1501,"children":1502},{"style":235},[1503],{"type":49,"value":1504}," =>",{"type":43,"tag":77,"props":1506,"children":1507},{"style":152},[1508],{"type":49,"value":1509}," console",{"type":43,"tag":77,"props":1511,"children":1512},{"style":146},[1513],{"type":49,"value":262},{"type":43,"tag":77,"props":1515,"children":1516},{"style":265},[1517],{"type":49,"value":1518},"log",{"type":43,"tag":77,"props":1520,"children":1521},{"style":152},[1522],{"type":49,"value":1523},"(tool",{"type":43,"tag":77,"props":1525,"children":1526},{"style":146},[1527],{"type":49,"value":262},{"type":43,"tag":77,"props":1529,"children":1530},{"style":152},[1531],{"type":49,"value":1532},"name",{"type":43,"tag":77,"props":1534,"children":1535},{"style":146},[1536],{"type":49,"value":160},{"type":43,"tag":77,"props":1538,"children":1539},{"style":152},[1540],{"type":49,"value":1541}," tool",{"type":43,"tag":77,"props":1543,"children":1544},{"style":146},[1545],{"type":49,"value":262},{"type":43,"tag":77,"props":1547,"children":1548},{"style":152},[1549],{"type":49,"value":1550},"input)",{"type":43,"tag":77,"props":1552,"children":1553},{"style":146},[1554],{"type":49,"value":399},{"type":43,"tag":77,"props":1556,"children":1557},{"class":79,"line":508},[1558,1562],{"type":43,"tag":77,"props":1559,"children":1560},{"style":146},[1561],{"type":49,"value":716},{"type":43,"tag":77,"props":1563,"children":1564},{"style":152},[1565],{"type":49,"value":721},{"type":43,"tag":77,"props":1567,"children":1568},{"class":79,"line":553},[1569],{"type":43,"tag":77,"props":1570,"children":1571},{"emptyLinePlaceholder":215},[1572],{"type":49,"value":218},{"type":43,"tag":77,"props":1574,"children":1575},{"class":79,"line":583},[1576,1580,1584,1589],{"type":43,"tag":77,"props":1577,"children":1578},{"style":152},[1579],{"type":49,"value":1061},{"type":43,"tag":77,"props":1581,"children":1582},{"style":146},[1583],{"type":49,"value":262},{"type":43,"tag":77,"props":1585,"children":1586},{"style":152},[1587],{"type":49,"value":1588},"status  ",{"type":43,"tag":77,"props":1590,"children":1591},{"style":225},[1592],{"type":49,"value":1593},"\u002F\u002F \"running\" | \"completed\" | \"failed\" | \"cancelled\" | \"detached\"\n",{"type":43,"tag":77,"props":1595,"children":1596},{"class":79,"line":613},[1597,1601,1605,1610],{"type":43,"tag":77,"props":1598,"children":1599},{"style":152},[1600],{"type":49,"value":1061},{"type":43,"tag":77,"props":1602,"children":1603},{"style":146},[1604],{"type":49,"value":262},{"type":43,"tag":77,"props":1606,"children":1607},{"style":152},[1608],{"type":49,"value":1609},"result  ",{"type":43,"tag":77,"props":1611,"children":1612},{"style":225},[1613],{"type":49,"value":1614},"\u002F\u002F typed from schema\n",{"type":43,"tag":77,"props":1616,"children":1617},{"class":79,"line":621},[1618,1622,1626,1631],{"type":43,"tag":77,"props":1619,"children":1620},{"style":152},[1621],{"type":49,"value":1061},{"type":43,"tag":77,"props":1623,"children":1624},{"style":146},[1625],{"type":49,"value":262},{"type":43,"tag":77,"props":1627,"children":1628},{"style":152},[1629],{"type":49,"value":1630},"cost    ",{"type":43,"tag":77,"props":1632,"children":1633},{"style":225},[1634],{"type":49,"value":1635},"\u002F\u002F { inputTokens, outputTokens, computeMs, totalUsd }\n",{"type":43,"tag":77,"props":1637,"children":1638},{"class":79,"line":665},[1639],{"type":43,"tag":77,"props":1640,"children":1641},{"emptyLinePlaceholder":215},[1642],{"type":49,"value":218},{"type":43,"tag":77,"props":1644,"children":1645},{"class":79,"line":710},[1646],{"type":43,"tag":77,"props":1647,"children":1648},{"style":225},[1649],{"type":49,"value":1650},"\u002F\u002F Streaming\n",{"type":43,"tag":77,"props":1652,"children":1653},{"class":79,"line":724},[1654,1658,1663,1667,1671,1675,1679,1683,1687,1692,1696],{"type":43,"tag":77,"props":1655,"children":1656},{"style":235},[1657],{"type":49,"value":238},{"type":43,"tag":77,"props":1659,"children":1660},{"style":152},[1661],{"type":49,"value":1662}," stream ",{"type":43,"tag":77,"props":1664,"children":1665},{"style":146},[1666],{"type":49,"value":248},{"type":43,"tag":77,"props":1668,"children":1669},{"style":140},[1670],{"type":49,"value":253},{"type":43,"tag":77,"props":1672,"children":1673},{"style":152},[1674],{"type":49,"value":839},{"type":43,"tag":77,"props":1676,"children":1677},{"style":146},[1678],{"type":49,"value":262},{"type":43,"tag":77,"props":1680,"children":1681},{"style":152},[1682],{"type":49,"value":29},{"type":43,"tag":77,"props":1684,"children":1685},{"style":146},[1686],{"type":49,"value":262},{"type":43,"tag":77,"props":1688,"children":1689},{"style":265},[1690],{"type":49,"value":1691},"stream",{"type":43,"tag":77,"props":1693,"children":1694},{"style":152},[1695],{"type":49,"value":273},{"type":43,"tag":77,"props":1697,"children":1698},{"style":146},[1699],{"type":49,"value":278},{"type":43,"tag":77,"props":1701,"children":1702},{"class":79,"line":732},[1703,1707,1711,1715,1720,1724],{"type":43,"tag":77,"props":1704,"children":1705},{"style":285},[1706],{"type":49,"value":1077},{"type":43,"tag":77,"props":1708,"children":1709},{"style":146},[1710],{"type":49,"value":293},{"type":43,"tag":77,"props":1712,"children":1713},{"style":146},[1714],{"type":49,"value":198},{"type":43,"tag":77,"props":1716,"children":1717},{"style":90},[1718],{"type":49,"value":1719},"Build a REST API",{"type":43,"tag":77,"props":1721,"children":1722},{"style":146},[1723],{"type":49,"value":307},{"type":43,"tag":77,"props":1725,"children":1726},{"style":146},[1727],{"type":49,"value":399},{"type":43,"tag":77,"props":1729,"children":1730},{"class":79,"line":741},[1731,1735],{"type":43,"tag":77,"props":1732,"children":1733},{"style":146},[1734],{"type":49,"value":716},{"type":43,"tag":77,"props":1736,"children":1737},{"style":152},[1738],{"type":49,"value":721},{"type":43,"tag":77,"props":1740,"children":1741},{"class":79,"line":789},[1742,1747,1751,1755,1759,1764,1769,1774,1779,1783,1787,1791,1795,1800,1805],{"type":43,"tag":77,"props":1743,"children":1744},{"style":140},[1745],{"type":49,"value":1746},"for",{"type":43,"tag":77,"props":1748,"children":1749},{"style":140},[1750],{"type":49,"value":253},{"type":43,"tag":77,"props":1752,"children":1753},{"style":152},[1754],{"type":49,"value":1489},{"type":43,"tag":77,"props":1756,"children":1757},{"style":235},[1758],{"type":49,"value":238},{"type":43,"tag":77,"props":1760,"children":1761},{"style":152},[1762],{"type":49,"value":1763}," chunk ",{"type":43,"tag":77,"props":1765,"children":1766},{"style":146},[1767],{"type":49,"value":1768},"of",{"type":43,"tag":77,"props":1770,"children":1771},{"style":152},[1772],{"type":49,"value":1773}," stream) ",{"type":43,"tag":77,"props":1775,"children":1776},{"style":146},[1777],{"type":49,"value":1778},"{",{"type":43,"tag":77,"props":1780,"children":1781},{"style":152},[1782],{"type":49,"value":1509},{"type":43,"tag":77,"props":1784,"children":1785},{"style":146},[1786],{"type":49,"value":262},{"type":43,"tag":77,"props":1788,"children":1789},{"style":265},[1790],{"type":49,"value":1518},{"type":43,"tag":77,"props":1792,"children":1793},{"style":285},[1794],{"type":49,"value":273},{"type":43,"tag":77,"props":1796,"children":1797},{"style":152},[1798],{"type":49,"value":1799},"chunk",{"type":43,"tag":77,"props":1801,"children":1802},{"style":285},[1803],{"type":49,"value":1804},") ",{"type":43,"tag":77,"props":1806,"children":1807},{"style":146},[1808],{"type":49,"value":1809},"}\n",{"type":43,"tag":77,"props":1811,"children":1812},{"class":79,"line":828},[1813],{"type":43,"tag":77,"props":1814,"children":1815},{"emptyLinePlaceholder":215},[1816],{"type":49,"value":218},{"type":43,"tag":77,"props":1818,"children":1819},{"class":79,"line":855},[1820],{"type":43,"tag":77,"props":1821,"children":1822},{"style":225},[1823],{"type":49,"value":1824},"\u002F\u002F Fire-and-forget with webhook\n",{"type":43,"tag":77,"props":1826,"children":1827},{"class":79,"line":880},[1828,1832,1836,1840,1844,1848,1852,1856],{"type":43,"tag":77,"props":1829,"children":1830},{"style":140},[1831],{"type":49,"value":834},{"type":43,"tag":77,"props":1833,"children":1834},{"style":152},[1835],{"type":49,"value":839},{"type":43,"tag":77,"props":1837,"children":1838},{"style":146},[1839],{"type":49,"value":262},{"type":43,"tag":77,"props":1841,"children":1842},{"style":152},[1843],{"type":49,"value":29},{"type":43,"tag":77,"props":1845,"children":1846},{"style":146},[1847],{"type":49,"value":262},{"type":43,"tag":77,"props":1849,"children":1850},{"style":265},[1851],{"type":49,"value":1061},{"type":43,"tag":77,"props":1853,"children":1854},{"style":152},[1855],{"type":49,"value":273},{"type":43,"tag":77,"props":1857,"children":1858},{"style":146},[1859],{"type":49,"value":278},{"type":43,"tag":77,"props":1861,"children":1862},{"class":79,"line":911},[1863,1867,1871,1875,1880,1884],{"type":43,"tag":77,"props":1864,"children":1865},{"style":285},[1866],{"type":49,"value":1077},{"type":43,"tag":77,"props":1868,"children":1869},{"style":146},[1870],{"type":49,"value":293},{"type":43,"tag":77,"props":1872,"children":1873},{"style":146},[1874],{"type":49,"value":198},{"type":43,"tag":77,"props":1876,"children":1877},{"style":90},[1878],{"type":49,"value":1879},"Run tests",{"type":43,"tag":77,"props":1881,"children":1882},{"style":146},[1883],{"type":49,"value":307},{"type":43,"tag":77,"props":1885,"children":1886},{"style":146},[1887],{"type":49,"value":399},{"type":43,"tag":77,"props":1889,"children":1891},{"class":79,"line":1890},32,[1892,1897,1901,1905,1910,1914,1918,1923,1927,1931,1936,1940,1944,1949,1953,1957,1962,1966,1970],{"type":43,"tag":77,"props":1893,"children":1894},{"style":285},[1895],{"type":49,"value":1896},"  webhook",{"type":43,"tag":77,"props":1898,"children":1899},{"style":146},[1900],{"type":49,"value":293},{"type":43,"tag":77,"props":1902,"children":1903},{"style":146},[1904],{"type":49,"value":149},{"type":43,"tag":77,"props":1906,"children":1907},{"style":285},[1908],{"type":49,"value":1909}," url",{"type":43,"tag":77,"props":1911,"children":1912},{"style":146},[1913],{"type":49,"value":293},{"type":43,"tag":77,"props":1915,"children":1916},{"style":146},[1917],{"type":49,"value":198},{"type":43,"tag":77,"props":1919,"children":1920},{"style":90},[1921],{"type":49,"value":1922},"https:\u002F\u002Fexample.com\u002Fhook",{"type":43,"tag":77,"props":1924,"children":1925},{"style":146},[1926],{"type":49,"value":307},{"type":43,"tag":77,"props":1928,"children":1929},{"style":146},[1930],{"type":49,"value":160},{"type":43,"tag":77,"props":1932,"children":1933},{"style":285},[1934],{"type":49,"value":1935}," headers",{"type":43,"tag":77,"props":1937,"children":1938},{"style":146},[1939],{"type":49,"value":293},{"type":43,"tag":77,"props":1941,"children":1942},{"style":146},[1943],{"type":49,"value":149},{"type":43,"tag":77,"props":1945,"children":1946},{"style":285},[1947],{"type":49,"value":1948}," Authorization",{"type":43,"tag":77,"props":1950,"children":1951},{"style":146},[1952],{"type":49,"value":293},{"type":43,"tag":77,"props":1954,"children":1955},{"style":146},[1956],{"type":49,"value":198},{"type":43,"tag":77,"props":1958,"children":1959},{"style":90},[1960],{"type":49,"value":1961},"Bearer ...",{"type":43,"tag":77,"props":1963,"children":1964},{"style":146},[1965],{"type":49,"value":307},{"type":43,"tag":77,"props":1967,"children":1968},{"style":146},[1969],{"type":49,"value":188},{"type":43,"tag":77,"props":1971,"children":1972},{"style":146},[1973],{"type":49,"value":662},{"type":43,"tag":77,"props":1975,"children":1977},{"class":79,"line":1976},33,[1978,1982],{"type":43,"tag":77,"props":1979,"children":1980},{"style":146},[1981],{"type":49,"value":716},{"type":43,"tag":77,"props":1983,"children":1984},{"style":152},[1985],{"type":49,"value":721},{"type":43,"tag":58,"props":1987,"children":1989},{"id":1988},"run-fields",[1990],{"type":49,"value":1991},"Run Fields",{"type":43,"tag":52,"props":1993,"children":1994},{},[1995,1997,2002,2004,2010],{"type":49,"value":1996},"Every ",{"type":43,"tag":73,"props":1998,"children":2000},{"className":1999},[],[2001],{"type":49,"value":1061},{"type":49,"value":2003}," (agent, command, or code) returns a ",{"type":43,"tag":73,"props":2005,"children":2007},{"className":2006},[],[2008],{"type":49,"value":2009},"Run\u003CT>",{"type":49,"value":293},{"type":43,"tag":65,"props":2012,"children":2014},{"className":128,"code":2013,"language":130,"meta":70,"style":70},"const run = await box.exec.command(\"npm test\")\nrun.id        \u002F\u002F run ID\nrun.status    \u002F\u002F \"completed\" | \"failed\" | ...\nrun.result    \u002F\u002F string output (or typed T with responseSchema)\nrun.exitCode  \u002F\u002F number | null (null for agent runs)\nrun.cost      \u002F\u002F { inputTokens, outputTokens, computeMs, totalUsd }\n\nawait run.cancel()          \u002F\u002F cancel a running run\nconst logs = await run.logs() \u002F\u002F [{ timestamp, level, message }]\n",[2015],{"type":43,"tag":73,"props":2016,"children":2017},{"__ignoreMap":70},[2018,2080,2101,2122,2143,2164,2184,2191,2222],{"type":43,"tag":77,"props":2019,"children":2020},{"class":79,"line":80},[2021,2025,2029,2033,2037,2041,2045,2050,2054,2059,2063,2067,2072,2076],{"type":43,"tag":77,"props":2022,"children":2023},{"style":235},[2024],{"type":49,"value":238},{"type":43,"tag":77,"props":2026,"children":2027},{"style":152},[2028],{"type":49,"value":1032},{"type":43,"tag":77,"props":2030,"children":2031},{"style":146},[2032],{"type":49,"value":248},{"type":43,"tag":77,"props":2034,"children":2035},{"style":140},[2036],{"type":49,"value":253},{"type":43,"tag":77,"props":2038,"children":2039},{"style":152},[2040],{"type":49,"value":839},{"type":43,"tag":77,"props":2042,"children":2043},{"style":146},[2044],{"type":49,"value":262},{"type":43,"tag":77,"props":2046,"children":2047},{"style":152},[2048],{"type":49,"value":2049},"exec",{"type":43,"tag":77,"props":2051,"children":2052},{"style":146},[2053],{"type":49,"value":262},{"type":43,"tag":77,"props":2055,"children":2056},{"style":265},[2057],{"type":49,"value":2058},"command",{"type":43,"tag":77,"props":2060,"children":2061},{"style":152},[2062],{"type":49,"value":273},{"type":43,"tag":77,"props":2064,"children":2065},{"style":146},[2066],{"type":49,"value":307},{"type":43,"tag":77,"props":2068,"children":2069},{"style":90},[2070],{"type":49,"value":2071},"npm test",{"type":43,"tag":77,"props":2073,"children":2074},{"style":146},[2075],{"type":49,"value":307},{"type":43,"tag":77,"props":2077,"children":2078},{"style":152},[2079],{"type":49,"value":721},{"type":43,"tag":77,"props":2081,"children":2082},{"class":79,"line":211},[2083,2087,2091,2096],{"type":43,"tag":77,"props":2084,"children":2085},{"style":152},[2086],{"type":49,"value":1061},{"type":43,"tag":77,"props":2088,"children":2089},{"style":146},[2090],{"type":49,"value":262},{"type":43,"tag":77,"props":2092,"children":2093},{"style":152},[2094],{"type":49,"value":2095},"id        ",{"type":43,"tag":77,"props":2097,"children":2098},{"style":225},[2099],{"type":49,"value":2100},"\u002F\u002F run ID\n",{"type":43,"tag":77,"props":2102,"children":2103},{"class":79,"line":221},[2104,2108,2112,2117],{"type":43,"tag":77,"props":2105,"children":2106},{"style":152},[2107],{"type":49,"value":1061},{"type":43,"tag":77,"props":2109,"children":2110},{"style":146},[2111],{"type":49,"value":262},{"type":43,"tag":77,"props":2113,"children":2114},{"style":152},[2115],{"type":49,"value":2116},"status    ",{"type":43,"tag":77,"props":2118,"children":2119},{"style":225},[2120],{"type":49,"value":2121},"\u002F\u002F \"completed\" | \"failed\" | ...\n",{"type":43,"tag":77,"props":2123,"children":2124},{"class":79,"line":231},[2125,2129,2133,2138],{"type":43,"tag":77,"props":2126,"children":2127},{"style":152},[2128],{"type":49,"value":1061},{"type":43,"tag":77,"props":2130,"children":2131},{"style":146},[2132],{"type":49,"value":262},{"type":43,"tag":77,"props":2134,"children":2135},{"style":152},[2136],{"type":49,"value":2137},"result    ",{"type":43,"tag":77,"props":2139,"children":2140},{"style":225},[2141],{"type":49,"value":2142},"\u002F\u002F string output (or typed T with responseSchema)\n",{"type":43,"tag":77,"props":2144,"children":2145},{"class":79,"line":281},[2146,2150,2154,2159],{"type":43,"tag":77,"props":2147,"children":2148},{"style":152},[2149],{"type":49,"value":1061},{"type":43,"tag":77,"props":2151,"children":2152},{"style":146},[2153],{"type":49,"value":262},{"type":43,"tag":77,"props":2155,"children":2156},{"style":152},[2157],{"type":49,"value":2158},"exitCode  ",{"type":43,"tag":77,"props":2160,"children":2161},{"style":225},[2162],{"type":49,"value":2163},"\u002F\u002F number | null (null for agent runs)\n",{"type":43,"tag":77,"props":2165,"children":2166},{"class":79,"line":319},[2167,2171,2175,2180],{"type":43,"tag":77,"props":2168,"children":2169},{"style":152},[2170],{"type":49,"value":1061},{"type":43,"tag":77,"props":2172,"children":2173},{"style":146},[2174],{"type":49,"value":262},{"type":43,"tag":77,"props":2176,"children":2177},{"style":152},[2178],{"type":49,"value":2179},"cost      ",{"type":43,"tag":77,"props":2181,"children":2182},{"style":225},[2183],{"type":49,"value":1635},{"type":43,"tag":77,"props":2185,"children":2186},{"class":79,"line":27},[2187],{"type":43,"tag":77,"props":2188,"children":2189},{"emptyLinePlaceholder":215},[2190],{"type":49,"value":218},{"type":43,"tag":77,"props":2192,"children":2193},{"class":79,"line":371},[2194,2198,2203,2207,2212,2217],{"type":43,"tag":77,"props":2195,"children":2196},{"style":140},[2197],{"type":49,"value":834},{"type":43,"tag":77,"props":2199,"children":2200},{"style":152},[2201],{"type":49,"value":2202}," run",{"type":43,"tag":77,"props":2204,"children":2205},{"style":146},[2206],{"type":49,"value":262},{"type":43,"tag":77,"props":2208,"children":2209},{"style":265},[2210],{"type":49,"value":2211},"cancel",{"type":43,"tag":77,"props":2213,"children":2214},{"style":152},[2215],{"type":49,"value":2216},"()          ",{"type":43,"tag":77,"props":2218,"children":2219},{"style":225},[2220],{"type":49,"value":2221},"\u002F\u002F cancel a running run\n",{"type":43,"tag":77,"props":2223,"children":2224},{"class":79,"line":402},[2225,2229,2234,2238,2242,2246,2250,2255,2260],{"type":43,"tag":77,"props":2226,"children":2227},{"style":235},[2228],{"type":49,"value":238},{"type":43,"tag":77,"props":2230,"children":2231},{"style":152},[2232],{"type":49,"value":2233}," logs ",{"type":43,"tag":77,"props":2235,"children":2236},{"style":146},[2237],{"type":49,"value":248},{"type":43,"tag":77,"props":2239,"children":2240},{"style":140},[2241],{"type":49,"value":253},{"type":43,"tag":77,"props":2243,"children":2244},{"style":152},[2245],{"type":49,"value":2202},{"type":43,"tag":77,"props":2247,"children":2248},{"style":146},[2249],{"type":49,"value":262},{"type":43,"tag":77,"props":2251,"children":2252},{"style":265},[2253],{"type":49,"value":2254},"logs",{"type":43,"tag":77,"props":2256,"children":2257},{"style":152},[2258],{"type":49,"value":2259},"() ",{"type":43,"tag":77,"props":2261,"children":2262},{"style":225},[2263],{"type":49,"value":2264},"\u002F\u002F [{ timestamp, level, message }]\n",{"type":43,"tag":58,"props":2266,"children":2268},{"id":2267},"shell-execution",[2269],{"type":49,"value":2270},"Shell Execution",{"type":43,"tag":65,"props":2272,"children":2274},{"className":128,"code":2273,"language":130,"meta":70,"style":70},"\u002F\u002F Run commands\nconst run = await box.exec.command(\"echo hello && ls -la\")\n\n\u002F\u002F Run code snippets — lang: \"js\" | \"ts\" | \"python\"\nconst run2 = await box.exec.code({ code: \"console.log(1+1)\", lang: \"js\", timeout: 10_000 })\n\n\u002F\u002F Streaming shell\nconst stream = await box.exec.stream(\"npm run build\")\nfor await (const chunk of stream) {\n  \u002F\u002F chunk: { type: \"output\", data } | { type: \"exit\", exitCode, cpuNs }\n}\n",[2275],{"type":43,"tag":73,"props":2276,"children":2277},{"__ignoreMap":70},[2278,2286,2346,2353,2361,2483,2490,2498,2558,2593,2601],{"type":43,"tag":77,"props":2279,"children":2280},{"class":79,"line":80},[2281],{"type":43,"tag":77,"props":2282,"children":2283},{"style":225},[2284],{"type":49,"value":2285},"\u002F\u002F Run commands\n",{"type":43,"tag":77,"props":2287,"children":2288},{"class":79,"line":211},[2289,2293,2297,2301,2305,2309,2313,2317,2321,2325,2329,2333,2338,2342],{"type":43,"tag":77,"props":2290,"children":2291},{"style":235},[2292],{"type":49,"value":238},{"type":43,"tag":77,"props":2294,"children":2295},{"style":152},[2296],{"type":49,"value":1032},{"type":43,"tag":77,"props":2298,"children":2299},{"style":146},[2300],{"type":49,"value":248},{"type":43,"tag":77,"props":2302,"children":2303},{"style":140},[2304],{"type":49,"value":253},{"type":43,"tag":77,"props":2306,"children":2307},{"style":152},[2308],{"type":49,"value":839},{"type":43,"tag":77,"props":2310,"children":2311},{"style":146},[2312],{"type":49,"value":262},{"type":43,"tag":77,"props":2314,"children":2315},{"style":152},[2316],{"type":49,"value":2049},{"type":43,"tag":77,"props":2318,"children":2319},{"style":146},[2320],{"type":49,"value":262},{"type":43,"tag":77,"props":2322,"children":2323},{"style":265},[2324],{"type":49,"value":2058},{"type":43,"tag":77,"props":2326,"children":2327},{"style":152},[2328],{"type":49,"value":273},{"type":43,"tag":77,"props":2330,"children":2331},{"style":146},[2332],{"type":49,"value":307},{"type":43,"tag":77,"props":2334,"children":2335},{"style":90},[2336],{"type":49,"value":2337},"echo hello && ls -la",{"type":43,"tag":77,"props":2339,"children":2340},{"style":146},[2341],{"type":49,"value":307},{"type":43,"tag":77,"props":2343,"children":2344},{"style":152},[2345],{"type":49,"value":721},{"type":43,"tag":77,"props":2347,"children":2348},{"class":79,"line":221},[2349],{"type":43,"tag":77,"props":2350,"children":2351},{"emptyLinePlaceholder":215},[2352],{"type":49,"value":218},{"type":43,"tag":77,"props":2354,"children":2355},{"class":79,"line":231},[2356],{"type":43,"tag":77,"props":2357,"children":2358},{"style":225},[2359],{"type":49,"value":2360},"\u002F\u002F Run code snippets — lang: \"js\" | \"ts\" | \"python\"\n",{"type":43,"tag":77,"props":2362,"children":2363},{"class":79,"line":281},[2364,2368,2373,2377,2381,2385,2389,2393,2397,2401,2405,2409,2414,2418,2422,2427,2431,2435,2440,2444,2448,2453,2457,2461,2466,2470,2475,2479],{"type":43,"tag":77,"props":2365,"children":2366},{"style":235},[2367],{"type":49,"value":238},{"type":43,"tag":77,"props":2369,"children":2370},{"style":152},[2371],{"type":49,"value":2372}," run2 ",{"type":43,"tag":77,"props":2374,"children":2375},{"style":146},[2376],{"type":49,"value":248},{"type":43,"tag":77,"props":2378,"children":2379},{"style":140},[2380],{"type":49,"value":253},{"type":43,"tag":77,"props":2382,"children":2383},{"style":152},[2384],{"type":49,"value":839},{"type":43,"tag":77,"props":2386,"children":2387},{"style":146},[2388],{"type":49,"value":262},{"type":43,"tag":77,"props":2390,"children":2391},{"style":152},[2392],{"type":49,"value":2049},{"type":43,"tag":77,"props":2394,"children":2395},{"style":146},[2396],{"type":49,"value":262},{"type":43,"tag":77,"props":2398,"children":2399},{"style":265},[2400],{"type":49,"value":73},{"type":43,"tag":77,"props":2402,"children":2403},{"style":152},[2404],{"type":49,"value":273},{"type":43,"tag":77,"props":2406,"children":2407},{"style":146},[2408],{"type":49,"value":1778},{"type":43,"tag":77,"props":2410,"children":2411},{"style":285},[2412],{"type":49,"value":2413}," code",{"type":43,"tag":77,"props":2415,"children":2416},{"style":146},[2417],{"type":49,"value":293},{"type":43,"tag":77,"props":2419,"children":2420},{"style":146},[2421],{"type":49,"value":198},{"type":43,"tag":77,"props":2423,"children":2424},{"style":90},[2425],{"type":49,"value":2426},"console.log(1+1)",{"type":43,"tag":77,"props":2428,"children":2429},{"style":146},[2430],{"type":49,"value":307},{"type":43,"tag":77,"props":2432,"children":2433},{"style":146},[2434],{"type":49,"value":160},{"type":43,"tag":77,"props":2436,"children":2437},{"style":285},[2438],{"type":49,"value":2439}," lang",{"type":43,"tag":77,"props":2441,"children":2442},{"style":146},[2443],{"type":49,"value":293},{"type":43,"tag":77,"props":2445,"children":2446},{"style":146},[2447],{"type":49,"value":198},{"type":43,"tag":77,"props":2449,"children":2450},{"style":90},[2451],{"type":49,"value":2452},"js",{"type":43,"tag":77,"props":2454,"children":2455},{"style":146},[2456],{"type":49,"value":307},{"type":43,"tag":77,"props":2458,"children":2459},{"style":146},[2460],{"type":49,"value":160},{"type":43,"tag":77,"props":2462,"children":2463},{"style":285},[2464],{"type":49,"value":2465}," timeout",{"type":43,"tag":77,"props":2467,"children":2468},{"style":146},[2469],{"type":49,"value":293},{"type":43,"tag":77,"props":2471,"children":2472},{"style":1444},[2473],{"type":49,"value":2474}," 10_000",{"type":43,"tag":77,"props":2476,"children":2477},{"style":146},[2478],{"type":49,"value":188},{"type":43,"tag":77,"props":2480,"children":2481},{"style":152},[2482],{"type":49,"value":721},{"type":43,"tag":77,"props":2484,"children":2485},{"class":79,"line":319},[2486],{"type":43,"tag":77,"props":2487,"children":2488},{"emptyLinePlaceholder":215},[2489],{"type":49,"value":218},{"type":43,"tag":77,"props":2491,"children":2492},{"class":79,"line":27},[2493],{"type":43,"tag":77,"props":2494,"children":2495},{"style":225},[2496],{"type":49,"value":2497},"\u002F\u002F Streaming shell\n",{"type":43,"tag":77,"props":2499,"children":2500},{"class":79,"line":371},[2501,2505,2509,2513,2517,2521,2525,2529,2533,2537,2541,2545,2550,2554],{"type":43,"tag":77,"props":2502,"children":2503},{"style":235},[2504],{"type":49,"value":238},{"type":43,"tag":77,"props":2506,"children":2507},{"style":152},[2508],{"type":49,"value":1662},{"type":43,"tag":77,"props":2510,"children":2511},{"style":146},[2512],{"type":49,"value":248},{"type":43,"tag":77,"props":2514,"children":2515},{"style":140},[2516],{"type":49,"value":253},{"type":43,"tag":77,"props":2518,"children":2519},{"style":152},[2520],{"type":49,"value":839},{"type":43,"tag":77,"props":2522,"children":2523},{"style":146},[2524],{"type":49,"value":262},{"type":43,"tag":77,"props":2526,"children":2527},{"style":152},[2528],{"type":49,"value":2049},{"type":43,"tag":77,"props":2530,"children":2531},{"style":146},[2532],{"type":49,"value":262},{"type":43,"tag":77,"props":2534,"children":2535},{"style":265},[2536],{"type":49,"value":1691},{"type":43,"tag":77,"props":2538,"children":2539},{"style":152},[2540],{"type":49,"value":273},{"type":43,"tag":77,"props":2542,"children":2543},{"style":146},[2544],{"type":49,"value":307},{"type":43,"tag":77,"props":2546,"children":2547},{"style":90},[2548],{"type":49,"value":2549},"npm run build",{"type":43,"tag":77,"props":2551,"children":2552},{"style":146},[2553],{"type":49,"value":307},{"type":43,"tag":77,"props":2555,"children":2556},{"style":152},[2557],{"type":49,"value":721},{"type":43,"tag":77,"props":2559,"children":2560},{"class":79,"line":402},[2561,2565,2569,2573,2577,2581,2585,2589],{"type":43,"tag":77,"props":2562,"children":2563},{"style":140},[2564],{"type":49,"value":1746},{"type":43,"tag":77,"props":2566,"children":2567},{"style":140},[2568],{"type":49,"value":253},{"type":43,"tag":77,"props":2570,"children":2571},{"style":152},[2572],{"type":49,"value":1489},{"type":43,"tag":77,"props":2574,"children":2575},{"style":235},[2576],{"type":49,"value":238},{"type":43,"tag":77,"props":2578,"children":2579},{"style":152},[2580],{"type":49,"value":1763},{"type":43,"tag":77,"props":2582,"children":2583},{"style":146},[2584],{"type":49,"value":1768},{"type":43,"tag":77,"props":2586,"children":2587},{"style":152},[2588],{"type":49,"value":1773},{"type":43,"tag":77,"props":2590,"children":2591},{"style":146},[2592],{"type":49,"value":278},{"type":43,"tag":77,"props":2594,"children":2595},{"class":79,"line":411},[2596],{"type":43,"tag":77,"props":2597,"children":2598},{"style":225},[2599],{"type":49,"value":2600},"  \u002F\u002F chunk: { type: \"output\", data } | { type: \"exit\", exitCode, cpuNs }\n",{"type":43,"tag":77,"props":2602,"children":2603},{"class":79,"line":420},[2604],{"type":43,"tag":77,"props":2605,"children":2606},{"style":146},[2607],{"type":49,"value":1809},{"type":43,"tag":58,"props":2609,"children":2611},{"id":2610},"filesystem",[2612],{"type":49,"value":2613},"Filesystem",{"type":43,"tag":65,"props":2615,"children":2617},{"className":128,"code":2616,"language":130,"meta":70,"style":70},"await box.files.write({ path: \"\u002Fworkspace\u002Fhome\u002Fapp.js\", content: \"console.log('hi')\" })\nconst content = await box.files.read(\"\u002Fworkspace\u002Fhome\u002Fapp.js\")\nconst entries = await box.files.list(\"\u002Fworkspace\u002Fhome\") \u002F\u002F [{ name, path, size, is_dir, mod_time }]\n\n\u002F\u002F Binary files — use encoding: \"base64\" for read and write\nawait box.files.write({ path: \"\u002Fworkspace\u002Fhome\u002Fimage.png\", content: base64String, encoding: \"base64\" })\nconst b64 = await box.files.read(\"\u002Fworkspace\u002Fhome\u002Fimage.png\", { encoding: \"base64\" })\n\n\u002F\u002F Upload local files, download box files\nawait box.files.upload([{ path: \".\u002Flocal\u002Ffile.txt\", destination: \"\u002Fworkspace\u002Fhome\u002Ffile.txt\" }])\nawait box.files.download({ folder: \".\u002Foutput\" })\n",[2618],{"type":43,"tag":73,"props":2619,"children":2620},{"__ignoreMap":70},[2621,2714,2775,2841,2848,2856,2963,3055,3062,3070,3162],{"type":43,"tag":77,"props":2622,"children":2623},{"class":79,"line":80},[2624,2628,2632,2636,2641,2645,2650,2654,2658,2663,2667,2671,2676,2680,2684,2689,2693,2697,2702,2706,2710],{"type":43,"tag":77,"props":2625,"children":2626},{"style":140},[2627],{"type":49,"value":834},{"type":43,"tag":77,"props":2629,"children":2630},{"style":152},[2631],{"type":49,"value":839},{"type":43,"tag":77,"props":2633,"children":2634},{"style":146},[2635],{"type":49,"value":262},{"type":43,"tag":77,"props":2637,"children":2638},{"style":152},[2639],{"type":49,"value":2640},"files",{"type":43,"tag":77,"props":2642,"children":2643},{"style":146},[2644],{"type":49,"value":262},{"type":43,"tag":77,"props":2646,"children":2647},{"style":265},[2648],{"type":49,"value":2649},"write",{"type":43,"tag":77,"props":2651,"children":2652},{"style":152},[2653],{"type":49,"value":273},{"type":43,"tag":77,"props":2655,"children":2656},{"style":146},[2657],{"type":49,"value":1778},{"type":43,"tag":77,"props":2659,"children":2660},{"style":285},[2661],{"type":49,"value":2662}," path",{"type":43,"tag":77,"props":2664,"children":2665},{"style":146},[2666],{"type":49,"value":293},{"type":43,"tag":77,"props":2668,"children":2669},{"style":146},[2670],{"type":49,"value":198},{"type":43,"tag":77,"props":2672,"children":2673},{"style":90},[2674],{"type":49,"value":2675},"\u002Fworkspace\u002Fhome\u002Fapp.js",{"type":43,"tag":77,"props":2677,"children":2678},{"style":146},[2679],{"type":49,"value":307},{"type":43,"tag":77,"props":2681,"children":2682},{"style":146},[2683],{"type":49,"value":160},{"type":43,"tag":77,"props":2685,"children":2686},{"style":285},[2687],{"type":49,"value":2688}," content",{"type":43,"tag":77,"props":2690,"children":2691},{"style":146},[2692],{"type":49,"value":293},{"type":43,"tag":77,"props":2694,"children":2695},{"style":146},[2696],{"type":49,"value":198},{"type":43,"tag":77,"props":2698,"children":2699},{"style":90},[2700],{"type":49,"value":2701},"console.log('hi')",{"type":43,"tag":77,"props":2703,"children":2704},{"style":146},[2705],{"type":49,"value":307},{"type":43,"tag":77,"props":2707,"children":2708},{"style":146},[2709],{"type":49,"value":188},{"type":43,"tag":77,"props":2711,"children":2712},{"style":152},[2713],{"type":49,"value":721},{"type":43,"tag":77,"props":2715,"children":2716},{"class":79,"line":211},[2717,2721,2726,2730,2734,2738,2742,2746,2750,2755,2759,2763,2767,2771],{"type":43,"tag":77,"props":2718,"children":2719},{"style":235},[2720],{"type":49,"value":238},{"type":43,"tag":77,"props":2722,"children":2723},{"style":152},[2724],{"type":49,"value":2725}," content ",{"type":43,"tag":77,"props":2727,"children":2728},{"style":146},[2729],{"type":49,"value":248},{"type":43,"tag":77,"props":2731,"children":2732},{"style":140},[2733],{"type":49,"value":253},{"type":43,"tag":77,"props":2735,"children":2736},{"style":152},[2737],{"type":49,"value":839},{"type":43,"tag":77,"props":2739,"children":2740},{"style":146},[2741],{"type":49,"value":262},{"type":43,"tag":77,"props":2743,"children":2744},{"style":152},[2745],{"type":49,"value":2640},{"type":43,"tag":77,"props":2747,"children":2748},{"style":146},[2749],{"type":49,"value":262},{"type":43,"tag":77,"props":2751,"children":2752},{"style":265},[2753],{"type":49,"value":2754},"read",{"type":43,"tag":77,"props":2756,"children":2757},{"style":152},[2758],{"type":49,"value":273},{"type":43,"tag":77,"props":2760,"children":2761},{"style":146},[2762],{"type":49,"value":307},{"type":43,"tag":77,"props":2764,"children":2765},{"style":90},[2766],{"type":49,"value":2675},{"type":43,"tag":77,"props":2768,"children":2769},{"style":146},[2770],{"type":49,"value":307},{"type":43,"tag":77,"props":2772,"children":2773},{"style":152},[2774],{"type":49,"value":721},{"type":43,"tag":77,"props":2776,"children":2777},{"class":79,"line":221},[2778,2782,2787,2791,2795,2799,2803,2807,2811,2815,2819,2823,2828,2832,2836],{"type":43,"tag":77,"props":2779,"children":2780},{"style":235},[2781],{"type":49,"value":238},{"type":43,"tag":77,"props":2783,"children":2784},{"style":152},[2785],{"type":49,"value":2786}," entries ",{"type":43,"tag":77,"props":2788,"children":2789},{"style":146},[2790],{"type":49,"value":248},{"type":43,"tag":77,"props":2792,"children":2793},{"style":140},[2794],{"type":49,"value":253},{"type":43,"tag":77,"props":2796,"children":2797},{"style":152},[2798],{"type":49,"value":839},{"type":43,"tag":77,"props":2800,"children":2801},{"style":146},[2802],{"type":49,"value":262},{"type":43,"tag":77,"props":2804,"children":2805},{"style":152},[2806],{"type":49,"value":2640},{"type":43,"tag":77,"props":2808,"children":2809},{"style":146},[2810],{"type":49,"value":262},{"type":43,"tag":77,"props":2812,"children":2813},{"style":265},[2814],{"type":49,"value":820},{"type":43,"tag":77,"props":2816,"children":2817},{"style":152},[2818],{"type":49,"value":273},{"type":43,"tag":77,"props":2820,"children":2821},{"style":146},[2822],{"type":49,"value":307},{"type":43,"tag":77,"props":2824,"children":2825},{"style":90},[2826],{"type":49,"value":2827},"\u002Fworkspace\u002Fhome",{"type":43,"tag":77,"props":2829,"children":2830},{"style":146},[2831],{"type":49,"value":307},{"type":43,"tag":77,"props":2833,"children":2834},{"style":152},[2835],{"type":49,"value":1804},{"type":43,"tag":77,"props":2837,"children":2838},{"style":225},[2839],{"type":49,"value":2840},"\u002F\u002F [{ name, path, size, is_dir, mod_time }]\n",{"type":43,"tag":77,"props":2842,"children":2843},{"class":79,"line":231},[2844],{"type":43,"tag":77,"props":2845,"children":2846},{"emptyLinePlaceholder":215},[2847],{"type":49,"value":218},{"type":43,"tag":77,"props":2849,"children":2850},{"class":79,"line":281},[2851],{"type":43,"tag":77,"props":2852,"children":2853},{"style":225},[2854],{"type":49,"value":2855},"\u002F\u002F Binary files — use encoding: \"base64\" for read and write\n",{"type":43,"tag":77,"props":2857,"children":2858},{"class":79,"line":319},[2859,2863,2867,2871,2875,2879,2883,2887,2891,2895,2899,2903,2908,2912,2916,2920,2924,2929,2933,2938,2942,2946,2951,2955,2959],{"type":43,"tag":77,"props":2860,"children":2861},{"style":140},[2862],{"type":49,"value":834},{"type":43,"tag":77,"props":2864,"children":2865},{"style":152},[2866],{"type":49,"value":839},{"type":43,"tag":77,"props":2868,"children":2869},{"style":146},[2870],{"type":49,"value":262},{"type":43,"tag":77,"props":2872,"children":2873},{"style":152},[2874],{"type":49,"value":2640},{"type":43,"tag":77,"props":2876,"children":2877},{"style":146},[2878],{"type":49,"value":262},{"type":43,"tag":77,"props":2880,"children":2881},{"style":265},[2882],{"type":49,"value":2649},{"type":43,"tag":77,"props":2884,"children":2885},{"style":152},[2886],{"type":49,"value":273},{"type":43,"tag":77,"props":2888,"children":2889},{"style":146},[2890],{"type":49,"value":1778},{"type":43,"tag":77,"props":2892,"children":2893},{"style":285},[2894],{"type":49,"value":2662},{"type":43,"tag":77,"props":2896,"children":2897},{"style":146},[2898],{"type":49,"value":293},{"type":43,"tag":77,"props":2900,"children":2901},{"style":146},[2902],{"type":49,"value":198},{"type":43,"tag":77,"props":2904,"children":2905},{"style":90},[2906],{"type":49,"value":2907},"\u002Fworkspace\u002Fhome\u002Fimage.png",{"type":43,"tag":77,"props":2909,"children":2910},{"style":146},[2911],{"type":49,"value":307},{"type":43,"tag":77,"props":2913,"children":2914},{"style":146},[2915],{"type":49,"value":160},{"type":43,"tag":77,"props":2917,"children":2918},{"style":285},[2919],{"type":49,"value":2688},{"type":43,"tag":77,"props":2921,"children":2922},{"style":146},[2923],{"type":49,"value":293},{"type":43,"tag":77,"props":2925,"children":2926},{"style":152},[2927],{"type":49,"value":2928}," base64String",{"type":43,"tag":77,"props":2930,"children":2931},{"style":146},[2932],{"type":49,"value":160},{"type":43,"tag":77,"props":2934,"children":2935},{"style":285},[2936],{"type":49,"value":2937}," encoding",{"type":43,"tag":77,"props":2939,"children":2940},{"style":146},[2941],{"type":49,"value":293},{"type":43,"tag":77,"props":2943,"children":2944},{"style":146},[2945],{"type":49,"value":198},{"type":43,"tag":77,"props":2947,"children":2948},{"style":90},[2949],{"type":49,"value":2950},"base64",{"type":43,"tag":77,"props":2952,"children":2953},{"style":146},[2954],{"type":49,"value":307},{"type":43,"tag":77,"props":2956,"children":2957},{"style":146},[2958],{"type":49,"value":188},{"type":43,"tag":77,"props":2960,"children":2961},{"style":152},[2962],{"type":49,"value":721},{"type":43,"tag":77,"props":2964,"children":2965},{"class":79,"line":27},[2966,2970,2975,2979,2983,2987,2991,2995,2999,3003,3007,3011,3015,3019,3023,3027,3031,3035,3039,3043,3047,3051],{"type":43,"tag":77,"props":2967,"children":2968},{"style":235},[2969],{"type":49,"value":238},{"type":43,"tag":77,"props":2971,"children":2972},{"style":152},[2973],{"type":49,"value":2974}," b64 ",{"type":43,"tag":77,"props":2976,"children":2977},{"style":146},[2978],{"type":49,"value":248},{"type":43,"tag":77,"props":2980,"children":2981},{"style":140},[2982],{"type":49,"value":253},{"type":43,"tag":77,"props":2984,"children":2985},{"style":152},[2986],{"type":49,"value":839},{"type":43,"tag":77,"props":2988,"children":2989},{"style":146},[2990],{"type":49,"value":262},{"type":43,"tag":77,"props":2992,"children":2993},{"style":152},[2994],{"type":49,"value":2640},{"type":43,"tag":77,"props":2996,"children":2997},{"style":146},[2998],{"type":49,"value":262},{"type":43,"tag":77,"props":3000,"children":3001},{"style":265},[3002],{"type":49,"value":2754},{"type":43,"tag":77,"props":3004,"children":3005},{"style":152},[3006],{"type":49,"value":273},{"type":43,"tag":77,"props":3008,"children":3009},{"style":146},[3010],{"type":49,"value":307},{"type":43,"tag":77,"props":3012,"children":3013},{"style":90},[3014],{"type":49,"value":2907},{"type":43,"tag":77,"props":3016,"children":3017},{"style":146},[3018],{"type":49,"value":307},{"type":43,"tag":77,"props":3020,"children":3021},{"style":146},[3022],{"type":49,"value":160},{"type":43,"tag":77,"props":3024,"children":3025},{"style":146},[3026],{"type":49,"value":149},{"type":43,"tag":77,"props":3028,"children":3029},{"style":285},[3030],{"type":49,"value":2937},{"type":43,"tag":77,"props":3032,"children":3033},{"style":146},[3034],{"type":49,"value":293},{"type":43,"tag":77,"props":3036,"children":3037},{"style":146},[3038],{"type":49,"value":198},{"type":43,"tag":77,"props":3040,"children":3041},{"style":90},[3042],{"type":49,"value":2950},{"type":43,"tag":77,"props":3044,"children":3045},{"style":146},[3046],{"type":49,"value":307},{"type":43,"tag":77,"props":3048,"children":3049},{"style":146},[3050],{"type":49,"value":188},{"type":43,"tag":77,"props":3052,"children":3053},{"style":152},[3054],{"type":49,"value":721},{"type":43,"tag":77,"props":3056,"children":3057},{"class":79,"line":371},[3058],{"type":43,"tag":77,"props":3059,"children":3060},{"emptyLinePlaceholder":215},[3061],{"type":49,"value":218},{"type":43,"tag":77,"props":3063,"children":3064},{"class":79,"line":402},[3065],{"type":43,"tag":77,"props":3066,"children":3067},{"style":225},[3068],{"type":49,"value":3069},"\u002F\u002F Upload local files, download box files\n",{"type":43,"tag":77,"props":3071,"children":3072},{"class":79,"line":411},[3073,3077,3081,3085,3089,3093,3098,3102,3106,3110,3114,3118,3123,3127,3131,3136,3140,3144,3149,3153,3157],{"type":43,"tag":77,"props":3074,"children":3075},{"style":140},[3076],{"type":49,"value":834},{"type":43,"tag":77,"props":3078,"children":3079},{"style":152},[3080],{"type":49,"value":839},{"type":43,"tag":77,"props":3082,"children":3083},{"style":146},[3084],{"type":49,"value":262},{"type":43,"tag":77,"props":3086,"children":3087},{"style":152},[3088],{"type":49,"value":2640},{"type":43,"tag":77,"props":3090,"children":3091},{"style":146},[3092],{"type":49,"value":262},{"type":43,"tag":77,"props":3094,"children":3095},{"style":265},[3096],{"type":49,"value":3097},"upload",{"type":43,"tag":77,"props":3099,"children":3100},{"style":152},[3101],{"type":49,"value":1161},{"type":43,"tag":77,"props":3103,"children":3104},{"style":146},[3105],{"type":49,"value":1778},{"type":43,"tag":77,"props":3107,"children":3108},{"style":285},[3109],{"type":49,"value":2662},{"type":43,"tag":77,"props":3111,"children":3112},{"style":146},[3113],{"type":49,"value":293},{"type":43,"tag":77,"props":3115,"children":3116},{"style":146},[3117],{"type":49,"value":198},{"type":43,"tag":77,"props":3119,"children":3120},{"style":90},[3121],{"type":49,"value":3122},".\u002Flocal\u002Ffile.txt",{"type":43,"tag":77,"props":3124,"children":3125},{"style":146},[3126],{"type":49,"value":307},{"type":43,"tag":77,"props":3128,"children":3129},{"style":146},[3130],{"type":49,"value":160},{"type":43,"tag":77,"props":3132,"children":3133},{"style":285},[3134],{"type":49,"value":3135}," destination",{"type":43,"tag":77,"props":3137,"children":3138},{"style":146},[3139],{"type":49,"value":293},{"type":43,"tag":77,"props":3141,"children":3142},{"style":146},[3143],{"type":49,"value":198},{"type":43,"tag":77,"props":3145,"children":3146},{"style":90},[3147],{"type":49,"value":3148},"\u002Fworkspace\u002Fhome\u002Ffile.txt",{"type":43,"tag":77,"props":3150,"children":3151},{"style":146},[3152],{"type":49,"value":307},{"type":43,"tag":77,"props":3154,"children":3155},{"style":146},[3156],{"type":49,"value":188},{"type":43,"tag":77,"props":3158,"children":3159},{"style":152},[3160],{"type":49,"value":3161},"])\n",{"type":43,"tag":77,"props":3163,"children":3164},{"class":79,"line":420},[3165,3169,3173,3177,3181,3185,3190,3194,3198,3203,3207,3211,3216,3220,3224],{"type":43,"tag":77,"props":3166,"children":3167},{"style":140},[3168],{"type":49,"value":834},{"type":43,"tag":77,"props":3170,"children":3171},{"style":152},[3172],{"type":49,"value":839},{"type":43,"tag":77,"props":3174,"children":3175},{"style":146},[3176],{"type":49,"value":262},{"type":43,"tag":77,"props":3178,"children":3179},{"style":152},[3180],{"type":49,"value":2640},{"type":43,"tag":77,"props":3182,"children":3183},{"style":146},[3184],{"type":49,"value":262},{"type":43,"tag":77,"props":3186,"children":3187},{"style":265},[3188],{"type":49,"value":3189},"download",{"type":43,"tag":77,"props":3191,"children":3192},{"style":152},[3193],{"type":49,"value":273},{"type":43,"tag":77,"props":3195,"children":3196},{"style":146},[3197],{"type":49,"value":1778},{"type":43,"tag":77,"props":3199,"children":3200},{"style":285},[3201],{"type":49,"value":3202}," folder",{"type":43,"tag":77,"props":3204,"children":3205},{"style":146},[3206],{"type":49,"value":293},{"type":43,"tag":77,"props":3208,"children":3209},{"style":146},[3210],{"type":49,"value":198},{"type":43,"tag":77,"props":3212,"children":3213},{"style":90},[3214],{"type":49,"value":3215},".\u002Foutput",{"type":43,"tag":77,"props":3217,"children":3218},{"style":146},[3219],{"type":49,"value":307},{"type":43,"tag":77,"props":3221,"children":3222},{"style":146},[3223],{"type":49,"value":188},{"type":43,"tag":77,"props":3225,"children":3226},{"style":152},[3227],{"type":49,"value":721},{"type":43,"tag":58,"props":3229,"children":3231},{"id":3230},"cd-working-directory",[3232],{"type":49,"value":3233},"cd \u002F Working Directory",{"type":43,"tag":52,"props":3235,"children":3236},{},[3237,3239,3245],{"type":49,"value":3238},"The SDK tracks ",{"type":43,"tag":73,"props":3240,"children":3242},{"className":3241},[],[3243],{"type":49,"value":3244},"cwd",{"type":49,"value":3246}," client-side. All operations (exec, files, git, agent) run relative to it.",{"type":43,"tag":65,"props":3248,"children":3250},{"className":128,"code":3249,"language":130,"meta":70,"style":70},"box.cwd \u002F\u002F current working directory (starts at \u002Fworkspace\u002Fhome)\nawait box.cd(\"my-repo\")     \u002F\u002F relative to current cwd\nawait box.cd(\"\u002Fworkspace\u002Fhome\u002Fother\") \u002F\u002F absolute path\n",[3251],{"type":43,"tag":73,"props":3252,"children":3253},{"__ignoreMap":70},[3254,3276,3323],{"type":43,"tag":77,"props":3255,"children":3256},{"class":79,"line":80},[3257,3262,3266,3271],{"type":43,"tag":77,"props":3258,"children":3259},{"style":152},[3260],{"type":49,"value":3261},"box",{"type":43,"tag":77,"props":3263,"children":3264},{"style":146},[3265],{"type":49,"value":262},{"type":43,"tag":77,"props":3267,"children":3268},{"style":152},[3269],{"type":49,"value":3270},"cwd ",{"type":43,"tag":77,"props":3272,"children":3273},{"style":225},[3274],{"type":49,"value":3275},"\u002F\u002F current working directory (starts at \u002Fworkspace\u002Fhome)\n",{"type":43,"tag":77,"props":3277,"children":3278},{"class":79,"line":211},[3279,3283,3287,3291,3296,3300,3304,3309,3313,3318],{"type":43,"tag":77,"props":3280,"children":3281},{"style":140},[3282],{"type":49,"value":834},{"type":43,"tag":77,"props":3284,"children":3285},{"style":152},[3286],{"type":49,"value":839},{"type":43,"tag":77,"props":3288,"children":3289},{"style":146},[3290],{"type":49,"value":262},{"type":43,"tag":77,"props":3292,"children":3293},{"style":265},[3294],{"type":49,"value":3295},"cd",{"type":43,"tag":77,"props":3297,"children":3298},{"style":152},[3299],{"type":49,"value":273},{"type":43,"tag":77,"props":3301,"children":3302},{"style":146},[3303],{"type":49,"value":307},{"type":43,"tag":77,"props":3305,"children":3306},{"style":90},[3307],{"type":49,"value":3308},"my-repo",{"type":43,"tag":77,"props":3310,"children":3311},{"style":146},[3312],{"type":49,"value":307},{"type":43,"tag":77,"props":3314,"children":3315},{"style":152},[3316],{"type":49,"value":3317},")     ",{"type":43,"tag":77,"props":3319,"children":3320},{"style":225},[3321],{"type":49,"value":3322},"\u002F\u002F relative to current cwd\n",{"type":43,"tag":77,"props":3324,"children":3325},{"class":79,"line":221},[3326,3330,3334,3338,3342,3346,3350,3355,3359,3363],{"type":43,"tag":77,"props":3327,"children":3328},{"style":140},[3329],{"type":49,"value":834},{"type":43,"tag":77,"props":3331,"children":3332},{"style":152},[3333],{"type":49,"value":839},{"type":43,"tag":77,"props":3335,"children":3336},{"style":146},[3337],{"type":49,"value":262},{"type":43,"tag":77,"props":3339,"children":3340},{"style":265},[3341],{"type":49,"value":3295},{"type":43,"tag":77,"props":3343,"children":3344},{"style":152},[3345],{"type":49,"value":273},{"type":43,"tag":77,"props":3347,"children":3348},{"style":146},[3349],{"type":49,"value":307},{"type":43,"tag":77,"props":3351,"children":3352},{"style":90},[3353],{"type":49,"value":3354},"\u002Fworkspace\u002Fhome\u002Fother",{"type":43,"tag":77,"props":3356,"children":3357},{"style":146},[3358],{"type":49,"value":307},{"type":43,"tag":77,"props":3360,"children":3361},{"style":152},[3362],{"type":49,"value":1804},{"type":43,"tag":77,"props":3364,"children":3365},{"style":225},[3366],{"type":49,"value":3367},"\u002F\u002F absolute path\n",{"type":43,"tag":58,"props":3369,"children":3371},{"id":3370},"git",[3372],{"type":49,"value":3373},"Git",{"type":43,"tag":65,"props":3375,"children":3377},{"className":128,"code":3376,"language":130,"meta":70,"style":70},"await box.git.clone({ repo: \"github.com\u002Forg\u002Frepo\", branch: \"main\" })\nawait box.cd(\"repo\") \u002F\u002F cd into cloned repo\n\nconst status = await box.git.status()\nconst diff = await box.git.diff()\nconst { sha } = await box.git.commit({ message: \"fix: resolve bug\" })\nawait box.git.push({ branch: \"feature\u002Ffix\" })\n\nawait box.git.checkout({ branch: \"release\u002Fv2\" })\nconst pr = await box.git.createPR({ title: \"Fix bug\", body: \"...\", base: \"main\" })\n\u002F\u002F pr: { url, number, title, base }\n\n\u002F\u002F Arbitrary git commands\nconst { output } = await box.git.exec({ args: [\"log\", \"--oneline\", \"-5\"] })\n",[3378],{"type":43,"tag":73,"props":3379,"children":3380},{"__ignoreMap":70},[3381,3473,3518,3525,3569,3614,3701,3766,3773,3838,3967,3975,3982,3990],{"type":43,"tag":77,"props":3382,"children":3383},{"class":79,"line":80},[3384,3388,3392,3396,3400,3404,3409,3413,3417,3422,3426,3430,3435,3439,3443,3448,3452,3456,3461,3465,3469],{"type":43,"tag":77,"props":3385,"children":3386},{"style":140},[3387],{"type":49,"value":834},{"type":43,"tag":77,"props":3389,"children":3390},{"style":152},[3391],{"type":49,"value":839},{"type":43,"tag":77,"props":3393,"children":3394},{"style":146},[3395],{"type":49,"value":262},{"type":43,"tag":77,"props":3397,"children":3398},{"style":152},[3399],{"type":49,"value":3370},{"type":43,"tag":77,"props":3401,"children":3402},{"style":146},[3403],{"type":49,"value":262},{"type":43,"tag":77,"props":3405,"children":3406},{"style":265},[3407],{"type":49,"value":3408},"clone",{"type":43,"tag":77,"props":3410,"children":3411},{"style":152},[3412],{"type":49,"value":273},{"type":43,"tag":77,"props":3414,"children":3415},{"style":146},[3416],{"type":49,"value":1778},{"type":43,"tag":77,"props":3418,"children":3419},{"style":285},[3420],{"type":49,"value":3421}," repo",{"type":43,"tag":77,"props":3423,"children":3424},{"style":146},[3425],{"type":49,"value":293},{"type":43,"tag":77,"props":3427,"children":3428},{"style":146},[3429],{"type":49,"value":198},{"type":43,"tag":77,"props":3431,"children":3432},{"style":90},[3433],{"type":49,"value":3434},"github.com\u002Forg\u002Frepo",{"type":43,"tag":77,"props":3436,"children":3437},{"style":146},[3438],{"type":49,"value":307},{"type":43,"tag":77,"props":3440,"children":3441},{"style":146},[3442],{"type":49,"value":160},{"type":43,"tag":77,"props":3444,"children":3445},{"style":285},[3446],{"type":49,"value":3447}," branch",{"type":43,"tag":77,"props":3449,"children":3450},{"style":146},[3451],{"type":49,"value":293},{"type":43,"tag":77,"props":3453,"children":3454},{"style":146},[3455],{"type":49,"value":198},{"type":43,"tag":77,"props":3457,"children":3458},{"style":90},[3459],{"type":49,"value":3460},"main",{"type":43,"tag":77,"props":3462,"children":3463},{"style":146},[3464],{"type":49,"value":307},{"type":43,"tag":77,"props":3466,"children":3467},{"style":146},[3468],{"type":49,"value":188},{"type":43,"tag":77,"props":3470,"children":3471},{"style":152},[3472],{"type":49,"value":721},{"type":43,"tag":77,"props":3474,"children":3475},{"class":79,"line":211},[3476,3480,3484,3488,3492,3496,3500,3505,3509,3513],{"type":43,"tag":77,"props":3477,"children":3478},{"style":140},[3479],{"type":49,"value":834},{"type":43,"tag":77,"props":3481,"children":3482},{"style":152},[3483],{"type":49,"value":839},{"type":43,"tag":77,"props":3485,"children":3486},{"style":146},[3487],{"type":49,"value":262},{"type":43,"tag":77,"props":3489,"children":3490},{"style":265},[3491],{"type":49,"value":3295},{"type":43,"tag":77,"props":3493,"children":3494},{"style":152},[3495],{"type":49,"value":273},{"type":43,"tag":77,"props":3497,"children":3498},{"style":146},[3499],{"type":49,"value":307},{"type":43,"tag":77,"props":3501,"children":3502},{"style":90},[3503],{"type":49,"value":3504},"repo",{"type":43,"tag":77,"props":3506,"children":3507},{"style":146},[3508],{"type":49,"value":307},{"type":43,"tag":77,"props":3510,"children":3511},{"style":152},[3512],{"type":49,"value":1804},{"type":43,"tag":77,"props":3514,"children":3515},{"style":225},[3516],{"type":49,"value":3517},"\u002F\u002F cd into cloned repo\n",{"type":43,"tag":77,"props":3519,"children":3520},{"class":79,"line":221},[3521],{"type":43,"tag":77,"props":3522,"children":3523},{"emptyLinePlaceholder":215},[3524],{"type":49,"value":218},{"type":43,"tag":77,"props":3526,"children":3527},{"class":79,"line":231},[3528,3532,3536,3540,3544,3548,3552,3556,3560,3565],{"type":43,"tag":77,"props":3529,"children":3530},{"style":235},[3531],{"type":49,"value":238},{"type":43,"tag":77,"props":3533,"children":3534},{"style":152},[3535],{"type":49,"value":925},{"type":43,"tag":77,"props":3537,"children":3538},{"style":146},[3539],{"type":49,"value":248},{"type":43,"tag":77,"props":3541,"children":3542},{"style":140},[3543],{"type":49,"value":253},{"type":43,"tag":77,"props":3545,"children":3546},{"style":152},[3547],{"type":49,"value":839},{"type":43,"tag":77,"props":3549,"children":3550},{"style":146},[3551],{"type":49,"value":262},{"type":43,"tag":77,"props":3553,"children":3554},{"style":152},[3555],{"type":49,"value":3370},{"type":43,"tag":77,"props":3557,"children":3558},{"style":146},[3559],{"type":49,"value":262},{"type":43,"tag":77,"props":3561,"children":3562},{"style":265},[3563],{"type":49,"value":3564},"status",{"type":43,"tag":77,"props":3566,"children":3567},{"style":152},[3568],{"type":49,"value":825},{"type":43,"tag":77,"props":3570,"children":3571},{"class":79,"line":281},[3572,3576,3581,3585,3589,3593,3597,3601,3605,3610],{"type":43,"tag":77,"props":3573,"children":3574},{"style":235},[3575],{"type":49,"value":238},{"type":43,"tag":77,"props":3577,"children":3578},{"style":152},[3579],{"type":49,"value":3580}," diff ",{"type":43,"tag":77,"props":3582,"children":3583},{"style":146},[3584],{"type":49,"value":248},{"type":43,"tag":77,"props":3586,"children":3587},{"style":140},[3588],{"type":49,"value":253},{"type":43,"tag":77,"props":3590,"children":3591},{"style":152},[3592],{"type":49,"value":839},{"type":43,"tag":77,"props":3594,"children":3595},{"style":146},[3596],{"type":49,"value":262},{"type":43,"tag":77,"props":3598,"children":3599},{"style":152},[3600],{"type":49,"value":3370},{"type":43,"tag":77,"props":3602,"children":3603},{"style":146},[3604],{"type":49,"value":262},{"type":43,"tag":77,"props":3606,"children":3607},{"style":265},[3608],{"type":49,"value":3609},"diff",{"type":43,"tag":77,"props":3611,"children":3612},{"style":152},[3613],{"type":49,"value":825},{"type":43,"tag":77,"props":3615,"children":3616},{"class":79,"line":319},[3617,3621,3625,3630,3634,3638,3642,3646,3650,3654,3658,3663,3667,3671,3676,3680,3684,3689,3693,3697],{"type":43,"tag":77,"props":3618,"children":3619},{"style":235},[3620],{"type":49,"value":238},{"type":43,"tag":77,"props":3622,"children":3623},{"style":146},[3624],{"type":49,"value":149},{"type":43,"tag":77,"props":3626,"children":3627},{"style":152},[3628],{"type":49,"value":3629}," sha ",{"type":43,"tag":77,"props":3631,"children":3632},{"style":146},[3633],{"type":49,"value":716},{"type":43,"tag":77,"props":3635,"children":3636},{"style":146},[3637],{"type":49,"value":934},{"type":43,"tag":77,"props":3639,"children":3640},{"style":140},[3641],{"type":49,"value":253},{"type":43,"tag":77,"props":3643,"children":3644},{"style":152},[3645],{"type":49,"value":839},{"type":43,"tag":77,"props":3647,"children":3648},{"style":146},[3649],{"type":49,"value":262},{"type":43,"tag":77,"props":3651,"children":3652},{"style":152},[3653],{"type":49,"value":3370},{"type":43,"tag":77,"props":3655,"children":3656},{"style":146},[3657],{"type":49,"value":262},{"type":43,"tag":77,"props":3659,"children":3660},{"style":265},[3661],{"type":49,"value":3662},"commit",{"type":43,"tag":77,"props":3664,"children":3665},{"style":152},[3666],{"type":49,"value":273},{"type":43,"tag":77,"props":3668,"children":3669},{"style":146},[3670],{"type":49,"value":1778},{"type":43,"tag":77,"props":3672,"children":3673},{"style":285},[3674],{"type":49,"value":3675}," message",{"type":43,"tag":77,"props":3677,"children":3678},{"style":146},[3679],{"type":49,"value":293},{"type":43,"tag":77,"props":3681,"children":3682},{"style":146},[3683],{"type":49,"value":198},{"type":43,"tag":77,"props":3685,"children":3686},{"style":90},[3687],{"type":49,"value":3688},"fix: resolve bug",{"type":43,"tag":77,"props":3690,"children":3691},{"style":146},[3692],{"type":49,"value":307},{"type":43,"tag":77,"props":3694,"children":3695},{"style":146},[3696],{"type":49,"value":188},{"type":43,"tag":77,"props":3698,"children":3699},{"style":152},[3700],{"type":49,"value":721},{"type":43,"tag":77,"props":3702,"children":3703},{"class":79,"line":27},[3704,3708,3712,3716,3720,3724,3729,3733,3737,3741,3745,3749,3754,3758,3762],{"type":43,"tag":77,"props":3705,"children":3706},{"style":140},[3707],{"type":49,"value":834},{"type":43,"tag":77,"props":3709,"children":3710},{"style":152},[3711],{"type":49,"value":839},{"type":43,"tag":77,"props":3713,"children":3714},{"style":146},[3715],{"type":49,"value":262},{"type":43,"tag":77,"props":3717,"children":3718},{"style":152},[3719],{"type":49,"value":3370},{"type":43,"tag":77,"props":3721,"children":3722},{"style":146},[3723],{"type":49,"value":262},{"type":43,"tag":77,"props":3725,"children":3726},{"style":265},[3727],{"type":49,"value":3728},"push",{"type":43,"tag":77,"props":3730,"children":3731},{"style":152},[3732],{"type":49,"value":273},{"type":43,"tag":77,"props":3734,"children":3735},{"style":146},[3736],{"type":49,"value":1778},{"type":43,"tag":77,"props":3738,"children":3739},{"style":285},[3740],{"type":49,"value":3447},{"type":43,"tag":77,"props":3742,"children":3743},{"style":146},[3744],{"type":49,"value":293},{"type":43,"tag":77,"props":3746,"children":3747},{"style":146},[3748],{"type":49,"value":198},{"type":43,"tag":77,"props":3750,"children":3751},{"style":90},[3752],{"type":49,"value":3753},"feature\u002Ffix",{"type":43,"tag":77,"props":3755,"children":3756},{"style":146},[3757],{"type":49,"value":307},{"type":43,"tag":77,"props":3759,"children":3760},{"style":146},[3761],{"type":49,"value":188},{"type":43,"tag":77,"props":3763,"children":3764},{"style":152},[3765],{"type":49,"value":721},{"type":43,"tag":77,"props":3767,"children":3768},{"class":79,"line":371},[3769],{"type":43,"tag":77,"props":3770,"children":3771},{"emptyLinePlaceholder":215},[3772],{"type":49,"value":218},{"type":43,"tag":77,"props":3774,"children":3775},{"class":79,"line":402},[3776,3780,3784,3788,3792,3796,3801,3805,3809,3813,3817,3821,3826,3830,3834],{"type":43,"tag":77,"props":3777,"children":3778},{"style":140},[3779],{"type":49,"value":834},{"type":43,"tag":77,"props":3781,"children":3782},{"style":152},[3783],{"type":49,"value":839},{"type":43,"tag":77,"props":3785,"children":3786},{"style":146},[3787],{"type":49,"value":262},{"type":43,"tag":77,"props":3789,"children":3790},{"style":152},[3791],{"type":49,"value":3370},{"type":43,"tag":77,"props":3793,"children":3794},{"style":146},[3795],{"type":49,"value":262},{"type":43,"tag":77,"props":3797,"children":3798},{"style":265},[3799],{"type":49,"value":3800},"checkout",{"type":43,"tag":77,"props":3802,"children":3803},{"style":152},[3804],{"type":49,"value":273},{"type":43,"tag":77,"props":3806,"children":3807},{"style":146},[3808],{"type":49,"value":1778},{"type":43,"tag":77,"props":3810,"children":3811},{"style":285},[3812],{"type":49,"value":3447},{"type":43,"tag":77,"props":3814,"children":3815},{"style":146},[3816],{"type":49,"value":293},{"type":43,"tag":77,"props":3818,"children":3819},{"style":146},[3820],{"type":49,"value":198},{"type":43,"tag":77,"props":3822,"children":3823},{"style":90},[3824],{"type":49,"value":3825},"release\u002Fv2",{"type":43,"tag":77,"props":3827,"children":3828},{"style":146},[3829],{"type":49,"value":307},{"type":43,"tag":77,"props":3831,"children":3832},{"style":146},[3833],{"type":49,"value":188},{"type":43,"tag":77,"props":3835,"children":3836},{"style":152},[3837],{"type":49,"value":721},{"type":43,"tag":77,"props":3839,"children":3840},{"class":79,"line":411},[3841,3845,3850,3854,3858,3862,3866,3870,3874,3879,3883,3887,3892,3896,3900,3905,3909,3913,3918,3922,3926,3930,3934,3938,3943,3947,3951,3955,3959,3963],{"type":43,"tag":77,"props":3842,"children":3843},{"style":235},[3844],{"type":49,"value":238},{"type":43,"tag":77,"props":3846,"children":3847},{"style":152},[3848],{"type":49,"value":3849}," pr ",{"type":43,"tag":77,"props":3851,"children":3852},{"style":146},[3853],{"type":49,"value":248},{"type":43,"tag":77,"props":3855,"children":3856},{"style":140},[3857],{"type":49,"value":253},{"type":43,"tag":77,"props":3859,"children":3860},{"style":152},[3861],{"type":49,"value":839},{"type":43,"tag":77,"props":3863,"children":3864},{"style":146},[3865],{"type":49,"value":262},{"type":43,"tag":77,"props":3867,"children":3868},{"style":152},[3869],{"type":49,"value":3370},{"type":43,"tag":77,"props":3871,"children":3872},{"style":146},[3873],{"type":49,"value":262},{"type":43,"tag":77,"props":3875,"children":3876},{"style":265},[3877],{"type":49,"value":3878},"createPR",{"type":43,"tag":77,"props":3880,"children":3881},{"style":152},[3882],{"type":49,"value":273},{"type":43,"tag":77,"props":3884,"children":3885},{"style":146},[3886],{"type":49,"value":1778},{"type":43,"tag":77,"props":3888,"children":3889},{"style":285},[3890],{"type":49,"value":3891}," title",{"type":43,"tag":77,"props":3893,"children":3894},{"style":146},[3895],{"type":49,"value":293},{"type":43,"tag":77,"props":3897,"children":3898},{"style":146},[3899],{"type":49,"value":198},{"type":43,"tag":77,"props":3901,"children":3902},{"style":90},[3903],{"type":49,"value":3904},"Fix bug",{"type":43,"tag":77,"props":3906,"children":3907},{"style":146},[3908],{"type":49,"value":307},{"type":43,"tag":77,"props":3910,"children":3911},{"style":146},[3912],{"type":49,"value":160},{"type":43,"tag":77,"props":3914,"children":3915},{"style":285},[3916],{"type":49,"value":3917}," body",{"type":43,"tag":77,"props":3919,"children":3920},{"style":146},[3921],{"type":49,"value":293},{"type":43,"tag":77,"props":3923,"children":3924},{"style":146},[3925],{"type":49,"value":198},{"type":43,"tag":77,"props":3927,"children":3928},{"style":90},[3929],{"type":49,"value":653},{"type":43,"tag":77,"props":3931,"children":3932},{"style":146},[3933],{"type":49,"value":307},{"type":43,"tag":77,"props":3935,"children":3936},{"style":146},[3937],{"type":49,"value":160},{"type":43,"tag":77,"props":3939,"children":3940},{"style":285},[3941],{"type":49,"value":3942}," base",{"type":43,"tag":77,"props":3944,"children":3945},{"style":146},[3946],{"type":49,"value":293},{"type":43,"tag":77,"props":3948,"children":3949},{"style":146},[3950],{"type":49,"value":198},{"type":43,"tag":77,"props":3952,"children":3953},{"style":90},[3954],{"type":49,"value":3460},{"type":43,"tag":77,"props":3956,"children":3957},{"style":146},[3958],{"type":49,"value":307},{"type":43,"tag":77,"props":3960,"children":3961},{"style":146},[3962],{"type":49,"value":188},{"type":43,"tag":77,"props":3964,"children":3965},{"style":152},[3966],{"type":49,"value":721},{"type":43,"tag":77,"props":3968,"children":3969},{"class":79,"line":420},[3970],{"type":43,"tag":77,"props":3971,"children":3972},{"style":225},[3973],{"type":49,"value":3974},"\u002F\u002F pr: { url, number, title, base }\n",{"type":43,"tag":77,"props":3976,"children":3977},{"class":79,"line":429},[3978],{"type":43,"tag":77,"props":3979,"children":3980},{"emptyLinePlaceholder":215},[3981],{"type":49,"value":218},{"type":43,"tag":77,"props":3983,"children":3984},{"class":79,"line":438},[3985],{"type":43,"tag":77,"props":3986,"children":3987},{"style":225},[3988],{"type":49,"value":3989},"\u002F\u002F Arbitrary git commands\n",{"type":43,"tag":77,"props":3991,"children":3992},{"class":79,"line":447},[3993,3997,4001,4006,4010,4014,4018,4022,4026,4030,4034,4038,4042,4046,4051,4055,4059,4063,4067,4071,4075,4079,4084,4088,4092,4096,4101,4105,4110,4114],{"type":43,"tag":77,"props":3994,"children":3995},{"style":235},[3996],{"type":49,"value":238},{"type":43,"tag":77,"props":3998,"children":3999},{"style":146},[4000],{"type":49,"value":149},{"type":43,"tag":77,"props":4002,"children":4003},{"style":152},[4004],{"type":49,"value":4005}," output ",{"type":43,"tag":77,"props":4007,"children":4008},{"style":146},[4009],{"type":49,"value":716},{"type":43,"tag":77,"props":4011,"children":4012},{"style":146},[4013],{"type":49,"value":934},{"type":43,"tag":77,"props":4015,"children":4016},{"style":140},[4017],{"type":49,"value":253},{"type":43,"tag":77,"props":4019,"children":4020},{"style":152},[4021],{"type":49,"value":839},{"type":43,"tag":77,"props":4023,"children":4024},{"style":146},[4025],{"type":49,"value":262},{"type":43,"tag":77,"props":4027,"children":4028},{"style":152},[4029],{"type":49,"value":3370},{"type":43,"tag":77,"props":4031,"children":4032},{"style":146},[4033],{"type":49,"value":262},{"type":43,"tag":77,"props":4035,"children":4036},{"style":265},[4037],{"type":49,"value":2049},{"type":43,"tag":77,"props":4039,"children":4040},{"style":152},[4041],{"type":49,"value":273},{"type":43,"tag":77,"props":4043,"children":4044},{"style":146},[4045],{"type":49,"value":1778},{"type":43,"tag":77,"props":4047,"children":4048},{"style":285},[4049],{"type":49,"value":4050}," args",{"type":43,"tag":77,"props":4052,"children":4053},{"style":146},[4054],{"type":49,"value":293},{"type":43,"tag":77,"props":4056,"children":4057},{"style":152},[4058],{"type":49,"value":680},{"type":43,"tag":77,"props":4060,"children":4061},{"style":146},[4062],{"type":49,"value":307},{"type":43,"tag":77,"props":4064,"children":4065},{"style":90},[4066],{"type":49,"value":1518},{"type":43,"tag":77,"props":4068,"children":4069},{"style":146},[4070],{"type":49,"value":307},{"type":43,"tag":77,"props":4072,"children":4073},{"style":146},[4074],{"type":49,"value":160},{"type":43,"tag":77,"props":4076,"children":4077},{"style":146},[4078],{"type":49,"value":198},{"type":43,"tag":77,"props":4080,"children":4081},{"style":90},[4082],{"type":49,"value":4083},"--oneline",{"type":43,"tag":77,"props":4085,"children":4086},{"style":146},[4087],{"type":49,"value":307},{"type":43,"tag":77,"props":4089,"children":4090},{"style":146},[4091],{"type":49,"value":160},{"type":43,"tag":77,"props":4093,"children":4094},{"style":146},[4095],{"type":49,"value":198},{"type":43,"tag":77,"props":4097,"children":4098},{"style":90},[4099],{"type":49,"value":4100},"-5",{"type":43,"tag":77,"props":4102,"children":4103},{"style":146},[4104],{"type":49,"value":307},{"type":43,"tag":77,"props":4106,"children":4107},{"style":152},[4108],{"type":49,"value":4109},"] ",{"type":43,"tag":77,"props":4111,"children":4112},{"style":146},[4113],{"type":49,"value":716},{"type":43,"tag":77,"props":4115,"children":4116},{"style":152},[4117],{"type":49,"value":721},{"type":43,"tag":58,"props":4119,"children":4121},{"id":4120},"snapshots",[4122],{"type":49,"value":4123},"Snapshots",{"type":43,"tag":65,"props":4125,"children":4127},{"className":128,"code":4126,"language":130,"meta":70,"style":70},"\u002F\u002F Snapshot — checkpoint workspace state\nconst snap = await box.snapshot({ name: \"after-setup\" })\n\u002F\u002F snap: { id, name, box_id, size_bytes, status, created_at }\n\nconst restored = await Box.fromSnapshot(snap.id)\nconst snaps = await box.listSnapshots()\nawait box.deleteSnapshot(snap.id)\n\n",[4128],{"type":43,"tag":73,"props":4129,"children":4130},{"__ignoreMap":70},[4131,4139,4210,4218,4225,4271,4308],{"type":43,"tag":77,"props":4132,"children":4133},{"class":79,"line":80},[4134],{"type":43,"tag":77,"props":4135,"children":4136},{"style":225},[4137],{"type":49,"value":4138},"\u002F\u002F Snapshot — checkpoint workspace state\n",{"type":43,"tag":77,"props":4140,"children":4141},{"class":79,"line":211},[4142,4146,4151,4155,4159,4163,4167,4172,4176,4180,4185,4189,4193,4198,4202,4206],{"type":43,"tag":77,"props":4143,"children":4144},{"style":235},[4145],{"type":49,"value":238},{"type":43,"tag":77,"props":4147,"children":4148},{"style":152},[4149],{"type":49,"value":4150}," snap ",{"type":43,"tag":77,"props":4152,"children":4153},{"style":146},[4154],{"type":49,"value":248},{"type":43,"tag":77,"props":4156,"children":4157},{"style":140},[4158],{"type":49,"value":253},{"type":43,"tag":77,"props":4160,"children":4161},{"style":152},[4162],{"type":49,"value":839},{"type":43,"tag":77,"props":4164,"children":4165},{"style":146},[4166],{"type":49,"value":262},{"type":43,"tag":77,"props":4168,"children":4169},{"style":265},[4170],{"type":49,"value":4171},"snapshot",{"type":43,"tag":77,"props":4173,"children":4174},{"style":152},[4175],{"type":49,"value":273},{"type":43,"tag":77,"props":4177,"children":4178},{"style":146},[4179],{"type":49,"value":1778},{"type":43,"tag":77,"props":4181,"children":4182},{"style":285},[4183],{"type":49,"value":4184}," name",{"type":43,"tag":77,"props":4186,"children":4187},{"style":146},[4188],{"type":49,"value":293},{"type":43,"tag":77,"props":4190,"children":4191},{"style":146},[4192],{"type":49,"value":198},{"type":43,"tag":77,"props":4194,"children":4195},{"style":90},[4196],{"type":49,"value":4197},"after-setup",{"type":43,"tag":77,"props":4199,"children":4200},{"style":146},[4201],{"type":49,"value":307},{"type":43,"tag":77,"props":4203,"children":4204},{"style":146},[4205],{"type":49,"value":188},{"type":43,"tag":77,"props":4207,"children":4208},{"style":152},[4209],{"type":49,"value":721},{"type":43,"tag":77,"props":4211,"children":4212},{"class":79,"line":221},[4213],{"type":43,"tag":77,"props":4214,"children":4215},{"style":225},[4216],{"type":49,"value":4217},"\u002F\u002F snap: { id, name, box_id, size_bytes, status, created_at }\n",{"type":43,"tag":77,"props":4219,"children":4220},{"class":79,"line":231},[4221],{"type":43,"tag":77,"props":4222,"children":4223},{"emptyLinePlaceholder":215},[4224],{"type":49,"value":218},{"type":43,"tag":77,"props":4226,"children":4227},{"class":79,"line":281},[4228,4232,4237,4241,4245,4249,4253,4258,4263,4267],{"type":43,"tag":77,"props":4229,"children":4230},{"style":235},[4231],{"type":49,"value":238},{"type":43,"tag":77,"props":4233,"children":4234},{"style":152},[4235],{"type":49,"value":4236}," restored ",{"type":43,"tag":77,"props":4238,"children":4239},{"style":146},[4240],{"type":49,"value":248},{"type":43,"tag":77,"props":4242,"children":4243},{"style":140},[4244],{"type":49,"value":253},{"type":43,"tag":77,"props":4246,"children":4247},{"style":152},[4248],{"type":49,"value":155},{"type":43,"tag":77,"props":4250,"children":4251},{"style":146},[4252],{"type":49,"value":262},{"type":43,"tag":77,"props":4254,"children":4255},{"style":265},[4256],{"type":49,"value":4257},"fromSnapshot",{"type":43,"tag":77,"props":4259,"children":4260},{"style":152},[4261],{"type":49,"value":4262},"(snap",{"type":43,"tag":77,"props":4264,"children":4265},{"style":146},[4266],{"type":49,"value":262},{"type":43,"tag":77,"props":4268,"children":4269},{"style":152},[4270],{"type":49,"value":786},{"type":43,"tag":77,"props":4272,"children":4273},{"class":79,"line":319},[4274,4278,4283,4287,4291,4295,4299,4304],{"type":43,"tag":77,"props":4275,"children":4276},{"style":235},[4277],{"type":49,"value":238},{"type":43,"tag":77,"props":4279,"children":4280},{"style":152},[4281],{"type":49,"value":4282}," snaps ",{"type":43,"tag":77,"props":4284,"children":4285},{"style":146},[4286],{"type":49,"value":248},{"type":43,"tag":77,"props":4288,"children":4289},{"style":140},[4290],{"type":49,"value":253},{"type":43,"tag":77,"props":4292,"children":4293},{"style":152},[4294],{"type":49,"value":839},{"type":43,"tag":77,"props":4296,"children":4297},{"style":146},[4298],{"type":49,"value":262},{"type":43,"tag":77,"props":4300,"children":4301},{"style":265},[4302],{"type":49,"value":4303},"listSnapshots",{"type":43,"tag":77,"props":4305,"children":4306},{"style":152},[4307],{"type":49,"value":825},{"type":43,"tag":77,"props":4309,"children":4310},{"class":79,"line":27},[4311,4315,4319,4323,4328,4332,4336],{"type":43,"tag":77,"props":4312,"children":4313},{"style":140},[4314],{"type":49,"value":834},{"type":43,"tag":77,"props":4316,"children":4317},{"style":152},[4318],{"type":49,"value":839},{"type":43,"tag":77,"props":4320,"children":4321},{"style":146},[4322],{"type":49,"value":262},{"type":43,"tag":77,"props":4324,"children":4325},{"style":265},[4326],{"type":49,"value":4327},"deleteSnapshot",{"type":43,"tag":77,"props":4329,"children":4330},{"style":152},[4331],{"type":49,"value":4262},{"type":43,"tag":77,"props":4333,"children":4334},{"style":146},[4335],{"type":49,"value":262},{"type":43,"tag":77,"props":4337,"children":4338},{"style":152},[4339],{"type":49,"value":786},{"type":43,"tag":58,"props":4341,"children":4343},{"id":4342},"ephemeralbox",[4344],{"type":49,"value":4345},"EphemeralBox",{"type":43,"tag":52,"props":4347,"children":4348},{},[4349],{"type":49,"value":4350},"Lightweight, short-lived boxes (max 3 days). No agent or git. Supports exec, files, cd, and snapshots only.",{"type":43,"tag":65,"props":4352,"children":4354},{"className":128,"code":4353,"language":130,"meta":70,"style":70},"import { EphemeralBox } from \"@upstash\u002Fbox\"\n\nconst ebox = await EphemeralBox.create({\n  runtime: \"python\",\n  ttl: 3600,  \u002F\u002F seconds, max 259200 (3 days)\n  env: { API_KEY: \"...\" },\n})\n\nebox.expiresAt \u002F\u002F unix timestamp when auto-deleted\nawait ebox.exec.command(\"python -c 'print(1+1)'\")\nawait ebox.exec.code({ code: \"print('hi')\", lang: \"python\" })\nawait ebox.files.write({ path: \"\u002Fworkspace\u002Fhome\u002Fdata.json\", content: \"{}\" })\nawait ebox.cd(\"subdir\")\nawait ebox.delete()\n\n\u002F\u002F Restore from snapshot\nconst ebox2 = await EphemeralBox.fromSnapshot(snap.id, { ttl: 7200 })\n",[4355],{"type":43,"tag":73,"props":4356,"children":4357},{"__ignoreMap":70},[4358,4394,4401,4441,4469,4495,4535,4546,4553,4575,4624,4712,4801,4841,4864,4871,4879],{"type":43,"tag":77,"props":4359,"children":4360},{"class":79,"line":80},[4361,4365,4369,4374,4378,4382,4386,4390],{"type":43,"tag":77,"props":4362,"children":4363},{"style":140},[4364],{"type":49,"value":143},{"type":43,"tag":77,"props":4366,"children":4367},{"style":146},[4368],{"type":49,"value":149},{"type":43,"tag":77,"props":4370,"children":4371},{"style":152},[4372],{"type":49,"value":4373}," EphemeralBox",{"type":43,"tag":77,"props":4375,"children":4376},{"style":146},[4377],{"type":49,"value":188},{"type":43,"tag":77,"props":4379,"children":4380},{"style":140},[4381],{"type":49,"value":193},{"type":43,"tag":77,"props":4383,"children":4384},{"style":146},[4385],{"type":49,"value":198},{"type":43,"tag":77,"props":4387,"children":4388},{"style":90},[4389],{"type":49,"value":203},{"type":43,"tag":77,"props":4391,"children":4392},{"style":146},[4393],{"type":49,"value":208},{"type":43,"tag":77,"props":4395,"children":4396},{"class":79,"line":211},[4397],{"type":43,"tag":77,"props":4398,"children":4399},{"emptyLinePlaceholder":215},[4400],{"type":49,"value":218},{"type":43,"tag":77,"props":4402,"children":4403},{"class":79,"line":221},[4404,4408,4413,4417,4421,4425,4429,4433,4437],{"type":43,"tag":77,"props":4405,"children":4406},{"style":235},[4407],{"type":49,"value":238},{"type":43,"tag":77,"props":4409,"children":4410},{"style":152},[4411],{"type":49,"value":4412}," ebox ",{"type":43,"tag":77,"props":4414,"children":4415},{"style":146},[4416],{"type":49,"value":248},{"type":43,"tag":77,"props":4418,"children":4419},{"style":140},[4420],{"type":49,"value":253},{"type":43,"tag":77,"props":4422,"children":4423},{"style":152},[4424],{"type":49,"value":4373},{"type":43,"tag":77,"props":4426,"children":4427},{"style":146},[4428],{"type":49,"value":262},{"type":43,"tag":77,"props":4430,"children":4431},{"style":265},[4432],{"type":49,"value":268},{"type":43,"tag":77,"props":4434,"children":4435},{"style":152},[4436],{"type":49,"value":273},{"type":43,"tag":77,"props":4438,"children":4439},{"style":146},[4440],{"type":49,"value":278},{"type":43,"tag":77,"props":4442,"children":4443},{"class":79,"line":231},[4444,4448,4452,4456,4461,4465],{"type":43,"tag":77,"props":4445,"children":4446},{"style":285},[4447],{"type":49,"value":288},{"type":43,"tag":77,"props":4449,"children":4450},{"style":146},[4451],{"type":49,"value":293},{"type":43,"tag":77,"props":4453,"children":4454},{"style":146},[4455],{"type":49,"value":198},{"type":43,"tag":77,"props":4457,"children":4458},{"style":90},[4459],{"type":49,"value":4460},"python",{"type":43,"tag":77,"props":4462,"children":4463},{"style":146},[4464],{"type":49,"value":307},{"type":43,"tag":77,"props":4466,"children":4467},{"style":146},[4468],{"type":49,"value":399},{"type":43,"tag":77,"props":4470,"children":4471},{"class":79,"line":281},[4472,4477,4481,4486,4490],{"type":43,"tag":77,"props":4473,"children":4474},{"style":285},[4475],{"type":49,"value":4476},"  ttl",{"type":43,"tag":77,"props":4478,"children":4479},{"style":146},[4480],{"type":49,"value":293},{"type":43,"tag":77,"props":4482,"children":4483},{"style":1444},[4484],{"type":49,"value":4485}," 3600",{"type":43,"tag":77,"props":4487,"children":4488},{"style":146},[4489],{"type":49,"value":160},{"type":43,"tag":77,"props":4491,"children":4492},{"style":225},[4493],{"type":49,"value":4494},"  \u002F\u002F seconds, max 259200 (3 days)\n",{"type":43,"tag":77,"props":4496,"children":4497},{"class":79,"line":319},[4498,4502,4506,4510,4515,4519,4523,4527,4531],{"type":43,"tag":77,"props":4499,"children":4500},{"style":285},[4501],{"type":49,"value":627},{"type":43,"tag":77,"props":4503,"children":4504},{"style":146},[4505],{"type":49,"value":293},{"type":43,"tag":77,"props":4507,"children":4508},{"style":146},[4509],{"type":49,"value":149},{"type":43,"tag":77,"props":4511,"children":4512},{"style":285},[4513],{"type":49,"value":4514}," API_KEY",{"type":43,"tag":77,"props":4516,"children":4517},{"style":146},[4518],{"type":49,"value":293},{"type":43,"tag":77,"props":4520,"children":4521},{"style":146},[4522],{"type":49,"value":198},{"type":43,"tag":77,"props":4524,"children":4525},{"style":90},[4526],{"type":49,"value":653},{"type":43,"tag":77,"props":4528,"children":4529},{"style":146},[4530],{"type":49,"value":307},{"type":43,"tag":77,"props":4532,"children":4533},{"style":146},[4534],{"type":49,"value":662},{"type":43,"tag":77,"props":4536,"children":4537},{"class":79,"line":27},[4538,4542],{"type":43,"tag":77,"props":4539,"children":4540},{"style":146},[4541],{"type":49,"value":716},{"type":43,"tag":77,"props":4543,"children":4544},{"style":152},[4545],{"type":49,"value":721},{"type":43,"tag":77,"props":4547,"children":4548},{"class":79,"line":371},[4549],{"type":43,"tag":77,"props":4550,"children":4551},{"emptyLinePlaceholder":215},[4552],{"type":49,"value":218},{"type":43,"tag":77,"props":4554,"children":4555},{"class":79,"line":402},[4556,4561,4565,4570],{"type":43,"tag":77,"props":4557,"children":4558},{"style":152},[4559],{"type":49,"value":4560},"ebox",{"type":43,"tag":77,"props":4562,"children":4563},{"style":146},[4564],{"type":49,"value":262},{"type":43,"tag":77,"props":4566,"children":4567},{"style":152},[4568],{"type":49,"value":4569},"expiresAt ",{"type":43,"tag":77,"props":4571,"children":4572},{"style":225},[4573],{"type":49,"value":4574},"\u002F\u002F unix timestamp when auto-deleted\n",{"type":43,"tag":77,"props":4576,"children":4577},{"class":79,"line":411},[4578,4582,4587,4591,4595,4599,4603,4607,4611,4616,4620],{"type":43,"tag":77,"props":4579,"children":4580},{"style":140},[4581],{"type":49,"value":834},{"type":43,"tag":77,"props":4583,"children":4584},{"style":152},[4585],{"type":49,"value":4586}," ebox",{"type":43,"tag":77,"props":4588,"children":4589},{"style":146},[4590],{"type":49,"value":262},{"type":43,"tag":77,"props":4592,"children":4593},{"style":152},[4594],{"type":49,"value":2049},{"type":43,"tag":77,"props":4596,"children":4597},{"style":146},[4598],{"type":49,"value":262},{"type":43,"tag":77,"props":4600,"children":4601},{"style":265},[4602],{"type":49,"value":2058},{"type":43,"tag":77,"props":4604,"children":4605},{"style":152},[4606],{"type":49,"value":273},{"type":43,"tag":77,"props":4608,"children":4609},{"style":146},[4610],{"type":49,"value":307},{"type":43,"tag":77,"props":4612,"children":4613},{"style":90},[4614],{"type":49,"value":4615},"python -c 'print(1+1)'",{"type":43,"tag":77,"props":4617,"children":4618},{"style":146},[4619],{"type":49,"value":307},{"type":43,"tag":77,"props":4621,"children":4622},{"style":152},[4623],{"type":49,"value":721},{"type":43,"tag":77,"props":4625,"children":4626},{"class":79,"line":420},[4627,4631,4635,4639,4643,4647,4651,4655,4659,4663,4667,4671,4676,4680,4684,4688,4692,4696,4700,4704,4708],{"type":43,"tag":77,"props":4628,"children":4629},{"style":140},[4630],{"type":49,"value":834},{"type":43,"tag":77,"props":4632,"children":4633},{"style":152},[4634],{"type":49,"value":4586},{"type":43,"tag":77,"props":4636,"children":4637},{"style":146},[4638],{"type":49,"value":262},{"type":43,"tag":77,"props":4640,"children":4641},{"style":152},[4642],{"type":49,"value":2049},{"type":43,"tag":77,"props":4644,"children":4645},{"style":146},[4646],{"type":49,"value":262},{"type":43,"tag":77,"props":4648,"children":4649},{"style":265},[4650],{"type":49,"value":73},{"type":43,"tag":77,"props":4652,"children":4653},{"style":152},[4654],{"type":49,"value":273},{"type":43,"tag":77,"props":4656,"children":4657},{"style":146},[4658],{"type":49,"value":1778},{"type":43,"tag":77,"props":4660,"children":4661},{"style":285},[4662],{"type":49,"value":2413},{"type":43,"tag":77,"props":4664,"children":4665},{"style":146},[4666],{"type":49,"value":293},{"type":43,"tag":77,"props":4668,"children":4669},{"style":146},[4670],{"type":49,"value":198},{"type":43,"tag":77,"props":4672,"children":4673},{"style":90},[4674],{"type":49,"value":4675},"print('hi')",{"type":43,"tag":77,"props":4677,"children":4678},{"style":146},[4679],{"type":49,"value":307},{"type":43,"tag":77,"props":4681,"children":4682},{"style":146},[4683],{"type":49,"value":160},{"type":43,"tag":77,"props":4685,"children":4686},{"style":285},[4687],{"type":49,"value":2439},{"type":43,"tag":77,"props":4689,"children":4690},{"style":146},[4691],{"type":49,"value":293},{"type":43,"tag":77,"props":4693,"children":4694},{"style":146},[4695],{"type":49,"value":198},{"type":43,"tag":77,"props":4697,"children":4698},{"style":90},[4699],{"type":49,"value":4460},{"type":43,"tag":77,"props":4701,"children":4702},{"style":146},[4703],{"type":49,"value":307},{"type":43,"tag":77,"props":4705,"children":4706},{"style":146},[4707],{"type":49,"value":188},{"type":43,"tag":77,"props":4709,"children":4710},{"style":152},[4711],{"type":49,"value":721},{"type":43,"tag":77,"props":4713,"children":4714},{"class":79,"line":429},[4715,4719,4723,4727,4731,4735,4739,4743,4747,4751,4755,4759,4764,4768,4772,4776,4780,4784,4789,4793,4797],{"type":43,"tag":77,"props":4716,"children":4717},{"style":140},[4718],{"type":49,"value":834},{"type":43,"tag":77,"props":4720,"children":4721},{"style":152},[4722],{"type":49,"value":4586},{"type":43,"tag":77,"props":4724,"children":4725},{"style":146},[4726],{"type":49,"value":262},{"type":43,"tag":77,"props":4728,"children":4729},{"style":152},[4730],{"type":49,"value":2640},{"type":43,"tag":77,"props":4732,"children":4733},{"style":146},[4734],{"type":49,"value":262},{"type":43,"tag":77,"props":4736,"children":4737},{"style":265},[4738],{"type":49,"value":2649},{"type":43,"tag":77,"props":4740,"children":4741},{"style":152},[4742],{"type":49,"value":273},{"type":43,"tag":77,"props":4744,"children":4745},{"style":146},[4746],{"type":49,"value":1778},{"type":43,"tag":77,"props":4748,"children":4749},{"style":285},[4750],{"type":49,"value":2662},{"type":43,"tag":77,"props":4752,"children":4753},{"style":146},[4754],{"type":49,"value":293},{"type":43,"tag":77,"props":4756,"children":4757},{"style":146},[4758],{"type":49,"value":198},{"type":43,"tag":77,"props":4760,"children":4761},{"style":90},[4762],{"type":49,"value":4763},"\u002Fworkspace\u002Fhome\u002Fdata.json",{"type":43,"tag":77,"props":4765,"children":4766},{"style":146},[4767],{"type":49,"value":307},{"type":43,"tag":77,"props":4769,"children":4770},{"style":146},[4771],{"type":49,"value":160},{"type":43,"tag":77,"props":4773,"children":4774},{"style":285},[4775],{"type":49,"value":2688},{"type":43,"tag":77,"props":4777,"children":4778},{"style":146},[4779],{"type":49,"value":293},{"type":43,"tag":77,"props":4781,"children":4782},{"style":146},[4783],{"type":49,"value":198},{"type":43,"tag":77,"props":4785,"children":4786},{"style":90},[4787],{"type":49,"value":4788},"{}",{"type":43,"tag":77,"props":4790,"children":4791},{"style":146},[4792],{"type":49,"value":307},{"type":43,"tag":77,"props":4794,"children":4795},{"style":146},[4796],{"type":49,"value":188},{"type":43,"tag":77,"props":4798,"children":4799},{"style":152},[4800],{"type":49,"value":721},{"type":43,"tag":77,"props":4802,"children":4803},{"class":79,"line":438},[4804,4808,4812,4816,4820,4824,4828,4833,4837],{"type":43,"tag":77,"props":4805,"children":4806},{"style":140},[4807],{"type":49,"value":834},{"type":43,"tag":77,"props":4809,"children":4810},{"style":152},[4811],{"type":49,"value":4586},{"type":43,"tag":77,"props":4813,"children":4814},{"style":146},[4815],{"type":49,"value":262},{"type":43,"tag":77,"props":4817,"children":4818},{"style":265},[4819],{"type":49,"value":3295},{"type":43,"tag":77,"props":4821,"children":4822},{"style":152},[4823],{"type":49,"value":273},{"type":43,"tag":77,"props":4825,"children":4826},{"style":146},[4827],{"type":49,"value":307},{"type":43,"tag":77,"props":4829,"children":4830},{"style":90},[4831],{"type":49,"value":4832},"subdir",{"type":43,"tag":77,"props":4834,"children":4835},{"style":146},[4836],{"type":49,"value":307},{"type":43,"tag":77,"props":4838,"children":4839},{"style":152},[4840],{"type":49,"value":721},{"type":43,"tag":77,"props":4842,"children":4843},{"class":79,"line":447},[4844,4848,4852,4856,4860],{"type":43,"tag":77,"props":4845,"children":4846},{"style":140},[4847],{"type":49,"value":834},{"type":43,"tag":77,"props":4849,"children":4850},{"style":152},[4851],{"type":49,"value":4586},{"type":43,"tag":77,"props":4853,"children":4854},{"style":146},[4855],{"type":49,"value":262},{"type":43,"tag":77,"props":4857,"children":4858},{"style":265},[4859],{"type":49,"value":898},{"type":43,"tag":77,"props":4861,"children":4862},{"style":152},[4863],{"type":49,"value":825},{"type":43,"tag":77,"props":4865,"children":4866},{"class":79,"line":477},[4867],{"type":43,"tag":77,"props":4868,"children":4869},{"emptyLinePlaceholder":215},[4870],{"type":49,"value":218},{"type":43,"tag":77,"props":4872,"children":4873},{"class":79,"line":486},[4874],{"type":43,"tag":77,"props":4875,"children":4876},{"style":225},[4877],{"type":49,"value":4878},"\u002F\u002F Restore from snapshot\n",{"type":43,"tag":77,"props":4880,"children":4881},{"class":79,"line":508},[4882,4886,4891,4895,4899,4903,4907,4911,4915,4919,4924,4928,4932,4937,4941,4946,4950],{"type":43,"tag":77,"props":4883,"children":4884},{"style":235},[4885],{"type":49,"value":238},{"type":43,"tag":77,"props":4887,"children":4888},{"style":152},[4889],{"type":49,"value":4890}," ebox2 ",{"type":43,"tag":77,"props":4892,"children":4893},{"style":146},[4894],{"type":49,"value":248},{"type":43,"tag":77,"props":4896,"children":4897},{"style":140},[4898],{"type":49,"value":253},{"type":43,"tag":77,"props":4900,"children":4901},{"style":152},[4902],{"type":49,"value":4373},{"type":43,"tag":77,"props":4904,"children":4905},{"style":146},[4906],{"type":49,"value":262},{"type":43,"tag":77,"props":4908,"children":4909},{"style":265},[4910],{"type":49,"value":4257},{"type":43,"tag":77,"props":4912,"children":4913},{"style":152},[4914],{"type":49,"value":4262},{"type":43,"tag":77,"props":4916,"children":4917},{"style":146},[4918],{"type":49,"value":262},{"type":43,"tag":77,"props":4920,"children":4921},{"style":152},[4922],{"type":49,"value":4923},"id",{"type":43,"tag":77,"props":4925,"children":4926},{"style":146},[4927],{"type":49,"value":160},{"type":43,"tag":77,"props":4929,"children":4930},{"style":146},[4931],{"type":49,"value":149},{"type":43,"tag":77,"props":4933,"children":4934},{"style":285},[4935],{"type":49,"value":4936}," ttl",{"type":43,"tag":77,"props":4938,"children":4939},{"style":146},[4940],{"type":49,"value":293},{"type":43,"tag":77,"props":4942,"children":4943},{"style":1444},[4944],{"type":49,"value":4945}," 7200",{"type":43,"tag":77,"props":4947,"children":4948},{"style":146},[4949],{"type":49,"value":188},{"type":43,"tag":77,"props":4951,"children":4952},{"style":152},[4953],{"type":49,"value":721},{"type":43,"tag":58,"props":4955,"children":4957},{"id":4956},"preview-urls",[4958],{"type":49,"value":4959},"Preview URLs",{"type":43,"tag":52,"props":4961,"children":4962},{},[4963],{"type":49,"value":4964},"Expose box ports as public URLs with optional auth.",{"type":43,"tag":65,"props":4966,"children":4968},{"className":128,"code":4967,"language":130,"meta":70,"style":70},"const preview = await box.getPreviewUrl(3000)\n\u002F\u002F preview: { url: \"https:\u002F\u002F{id}-3000.preview.box.upstash.com\", port }\n\nconst authed = await box.getPreviewUrl(3000, { bearerToken: true })\n\u002F\u002F authed: { url, port, token }\n\nconst basic = await box.getPreviewUrl(3000, { basicAuth: true })\n\u002F\u002F basic: { url, port, username, password }\n\nconst { previews } = await box.listPreviews()\nawait box.deletePreview(3000)\n",[4969],{"type":43,"tag":73,"props":4970,"children":4971},{"__ignoreMap":70},[4972,5018,5026,5033,5104,5112,5119,5188,5196,5203,5248],{"type":43,"tag":77,"props":4973,"children":4974},{"class":79,"line":80},[4975,4979,4984,4988,4992,4996,5000,5005,5009,5014],{"type":43,"tag":77,"props":4976,"children":4977},{"style":235},[4978],{"type":49,"value":238},{"type":43,"tag":77,"props":4980,"children":4981},{"style":152},[4982],{"type":49,"value":4983}," preview ",{"type":43,"tag":77,"props":4985,"children":4986},{"style":146},[4987],{"type":49,"value":248},{"type":43,"tag":77,"props":4989,"children":4990},{"style":140},[4991],{"type":49,"value":253},{"type":43,"tag":77,"props":4993,"children":4994},{"style":152},[4995],{"type":49,"value":839},{"type":43,"tag":77,"props":4997,"children":4998},{"style":146},[4999],{"type":49,"value":262},{"type":43,"tag":77,"props":5001,"children":5002},{"style":265},[5003],{"type":49,"value":5004},"getPreviewUrl",{"type":43,"tag":77,"props":5006,"children":5007},{"style":152},[5008],{"type":49,"value":273},{"type":43,"tag":77,"props":5010,"children":5011},{"style":1444},[5012],{"type":49,"value":5013},"3000",{"type":43,"tag":77,"props":5015,"children":5016},{"style":152},[5017],{"type":49,"value":721},{"type":43,"tag":77,"props":5019,"children":5020},{"class":79,"line":211},[5021],{"type":43,"tag":77,"props":5022,"children":5023},{"style":225},[5024],{"type":49,"value":5025},"\u002F\u002F preview: { url: \"https:\u002F\u002F{id}-3000.preview.box.upstash.com\", port }\n",{"type":43,"tag":77,"props":5027,"children":5028},{"class":79,"line":221},[5029],{"type":43,"tag":77,"props":5030,"children":5031},{"emptyLinePlaceholder":215},[5032],{"type":49,"value":218},{"type":43,"tag":77,"props":5034,"children":5035},{"class":79,"line":231},[5036,5040,5045,5049,5053,5057,5061,5065,5069,5073,5077,5081,5086,5090,5096,5100],{"type":43,"tag":77,"props":5037,"children":5038},{"style":235},[5039],{"type":49,"value":238},{"type":43,"tag":77,"props":5041,"children":5042},{"style":152},[5043],{"type":49,"value":5044}," authed ",{"type":43,"tag":77,"props":5046,"children":5047},{"style":146},[5048],{"type":49,"value":248},{"type":43,"tag":77,"props":5050,"children":5051},{"style":140},[5052],{"type":49,"value":253},{"type":43,"tag":77,"props":5054,"children":5055},{"style":152},[5056],{"type":49,"value":839},{"type":43,"tag":77,"props":5058,"children":5059},{"style":146},[5060],{"type":49,"value":262},{"type":43,"tag":77,"props":5062,"children":5063},{"style":265},[5064],{"type":49,"value":5004},{"type":43,"tag":77,"props":5066,"children":5067},{"style":152},[5068],{"type":49,"value":273},{"type":43,"tag":77,"props":5070,"children":5071},{"style":1444},[5072],{"type":49,"value":5013},{"type":43,"tag":77,"props":5074,"children":5075},{"style":146},[5076],{"type":49,"value":160},{"type":43,"tag":77,"props":5078,"children":5079},{"style":146},[5080],{"type":49,"value":149},{"type":43,"tag":77,"props":5082,"children":5083},{"style":285},[5084],{"type":49,"value":5085}," bearerToken",{"type":43,"tag":77,"props":5087,"children":5088},{"style":146},[5089],{"type":49,"value":293},{"type":43,"tag":77,"props":5091,"children":5093},{"style":5092},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[5094],{"type":49,"value":5095}," true",{"type":43,"tag":77,"props":5097,"children":5098},{"style":146},[5099],{"type":49,"value":188},{"type":43,"tag":77,"props":5101,"children":5102},{"style":152},[5103],{"type":49,"value":721},{"type":43,"tag":77,"props":5105,"children":5106},{"class":79,"line":281},[5107],{"type":43,"tag":77,"props":5108,"children":5109},{"style":225},[5110],{"type":49,"value":5111},"\u002F\u002F authed: { url, port, token }\n",{"type":43,"tag":77,"props":5113,"children":5114},{"class":79,"line":319},[5115],{"type":43,"tag":77,"props":5116,"children":5117},{"emptyLinePlaceholder":215},[5118],{"type":49,"value":218},{"type":43,"tag":77,"props":5120,"children":5121},{"class":79,"line":27},[5122,5126,5131,5135,5139,5143,5147,5151,5155,5159,5163,5167,5172,5176,5180,5184],{"type":43,"tag":77,"props":5123,"children":5124},{"style":235},[5125],{"type":49,"value":238},{"type":43,"tag":77,"props":5127,"children":5128},{"style":152},[5129],{"type":49,"value":5130}," basic ",{"type":43,"tag":77,"props":5132,"children":5133},{"style":146},[5134],{"type":49,"value":248},{"type":43,"tag":77,"props":5136,"children":5137},{"style":140},[5138],{"type":49,"value":253},{"type":43,"tag":77,"props":5140,"children":5141},{"style":152},[5142],{"type":49,"value":839},{"type":43,"tag":77,"props":5144,"children":5145},{"style":146},[5146],{"type":49,"value":262},{"type":43,"tag":77,"props":5148,"children":5149},{"style":265},[5150],{"type":49,"value":5004},{"type":43,"tag":77,"props":5152,"children":5153},{"style":152},[5154],{"type":49,"value":273},{"type":43,"tag":77,"props":5156,"children":5157},{"style":1444},[5158],{"type":49,"value":5013},{"type":43,"tag":77,"props":5160,"children":5161},{"style":146},[5162],{"type":49,"value":160},{"type":43,"tag":77,"props":5164,"children":5165},{"style":146},[5166],{"type":49,"value":149},{"type":43,"tag":77,"props":5168,"children":5169},{"style":285},[5170],{"type":49,"value":5171}," basicAuth",{"type":43,"tag":77,"props":5173,"children":5174},{"style":146},[5175],{"type":49,"value":293},{"type":43,"tag":77,"props":5177,"children":5178},{"style":5092},[5179],{"type":49,"value":5095},{"type":43,"tag":77,"props":5181,"children":5182},{"style":146},[5183],{"type":49,"value":188},{"type":43,"tag":77,"props":5185,"children":5186},{"style":152},[5187],{"type":49,"value":721},{"type":43,"tag":77,"props":5189,"children":5190},{"class":79,"line":371},[5191],{"type":43,"tag":77,"props":5192,"children":5193},{"style":225},[5194],{"type":49,"value":5195},"\u002F\u002F basic: { url, port, username, password }\n",{"type":43,"tag":77,"props":5197,"children":5198},{"class":79,"line":402},[5199],{"type":43,"tag":77,"props":5200,"children":5201},{"emptyLinePlaceholder":215},[5202],{"type":49,"value":218},{"type":43,"tag":77,"props":5204,"children":5205},{"class":79,"line":411},[5206,5210,5214,5219,5223,5227,5231,5235,5239,5244],{"type":43,"tag":77,"props":5207,"children":5208},{"style":235},[5209],{"type":49,"value":238},{"type":43,"tag":77,"props":5211,"children":5212},{"style":146},[5213],{"type":49,"value":149},{"type":43,"tag":77,"props":5215,"children":5216},{"style":152},[5217],{"type":49,"value":5218}," previews ",{"type":43,"tag":77,"props":5220,"children":5221},{"style":146},[5222],{"type":49,"value":716},{"type":43,"tag":77,"props":5224,"children":5225},{"style":146},[5226],{"type":49,"value":934},{"type":43,"tag":77,"props":5228,"children":5229},{"style":140},[5230],{"type":49,"value":253},{"type":43,"tag":77,"props":5232,"children":5233},{"style":152},[5234],{"type":49,"value":839},{"type":43,"tag":77,"props":5236,"children":5237},{"style":146},[5238],{"type":49,"value":262},{"type":43,"tag":77,"props":5240,"children":5241},{"style":265},[5242],{"type":49,"value":5243},"listPreviews",{"type":43,"tag":77,"props":5245,"children":5246},{"style":152},[5247],{"type":49,"value":825},{"type":43,"tag":77,"props":5249,"children":5250},{"class":79,"line":420},[5251,5255,5259,5263,5268,5272,5276],{"type":43,"tag":77,"props":5252,"children":5253},{"style":140},[5254],{"type":49,"value":834},{"type":43,"tag":77,"props":5256,"children":5257},{"style":152},[5258],{"type":49,"value":839},{"type":43,"tag":77,"props":5260,"children":5261},{"style":146},[5262],{"type":49,"value":262},{"type":43,"tag":77,"props":5264,"children":5265},{"style":265},[5266],{"type":49,"value":5267},"deletePreview",{"type":43,"tag":77,"props":5269,"children":5270},{"style":152},[5271],{"type":49,"value":273},{"type":43,"tag":77,"props":5273,"children":5274},{"style":1444},[5275],{"type":49,"value":5013},{"type":43,"tag":77,"props":5277,"children":5278},{"style":152},[5279],{"type":49,"value":721},{"type":43,"tag":58,"props":5281,"children":5283},{"id":5282},"mcp-servers",[5284],{"type":49,"value":5285},"MCP Servers",{"type":43,"tag":52,"props":5287,"children":5288},{},[5289],{"type":49,"value":5290},"Attach MCP servers to the box agent.",{"type":43,"tag":65,"props":5292,"children":5294},{"className":128,"code":5293,"language":130,"meta":70,"style":70},"const box = await Box.create({\n  agent: { provider: Agent.ClaudeCode, model: ClaudeCode.Sonnet_4_5 },\n  mcpServers: [\n    { name: \"fs\", package: \"@modelcontextprotocol\u002Fserver-filesystem\" },\n    { name: \"custom\", url: \"https:\u002F\u002Fmcp.example.com\u002Fsse\", headers: { Authorization: \"...\" } },\n  ],\n})\n",[5295],{"type":43,"tag":73,"props":5296,"children":5297},{"__ignoreMap":70},[5298,5337,5404,5421,5480,5577,5589],{"type":43,"tag":77,"props":5299,"children":5300},{"class":79,"line":80},[5301,5305,5309,5313,5317,5321,5325,5329,5333],{"type":43,"tag":77,"props":5302,"children":5303},{"style":235},[5304],{"type":49,"value":238},{"type":43,"tag":77,"props":5306,"children":5307},{"style":152},[5308],{"type":49,"value":243},{"type":43,"tag":77,"props":5310,"children":5311},{"style":146},[5312],{"type":49,"value":248},{"type":43,"tag":77,"props":5314,"children":5315},{"style":140},[5316],{"type":49,"value":253},{"type":43,"tag":77,"props":5318,"children":5319},{"style":152},[5320],{"type":49,"value":155},{"type":43,"tag":77,"props":5322,"children":5323},{"style":146},[5324],{"type":49,"value":262},{"type":43,"tag":77,"props":5326,"children":5327},{"style":265},[5328],{"type":49,"value":268},{"type":43,"tag":77,"props":5330,"children":5331},{"style":152},[5332],{"type":49,"value":273},{"type":43,"tag":77,"props":5334,"children":5335},{"style":146},[5336],{"type":49,"value":278},{"type":43,"tag":77,"props":5338,"children":5339},{"class":79,"line":211},[5340,5344,5348,5352,5357,5361,5365,5369,5373,5377,5382,5386,5390,5394,5399],{"type":43,"tag":77,"props":5341,"children":5342},{"style":285},[5343],{"type":49,"value":325},{"type":43,"tag":77,"props":5345,"children":5346},{"style":146},[5347],{"type":49,"value":293},{"type":43,"tag":77,"props":5349,"children":5350},{"style":146},[5351],{"type":49,"value":149},{"type":43,"tag":77,"props":5353,"children":5354},{"style":285},[5355],{"type":49,"value":5356}," provider",{"type":43,"tag":77,"props":5358,"children":5359},{"style":146},[5360],{"type":49,"value":293},{"type":43,"tag":77,"props":5362,"children":5363},{"style":152},[5364],{"type":49,"value":165},{"type":43,"tag":77,"props":5366,"children":5367},{"style":146},[5368],{"type":49,"value":262},{"type":43,"tag":77,"props":5370,"children":5371},{"style":152},[5372],{"type":49,"value":359},{"type":43,"tag":77,"props":5374,"children":5375},{"style":146},[5376],{"type":49,"value":160},{"type":43,"tag":77,"props":5378,"children":5379},{"style":285},[5380],{"type":49,"value":5381}," model",{"type":43,"tag":77,"props":5383,"children":5384},{"style":146},[5385],{"type":49,"value":293},{"type":43,"tag":77,"props":5387,"children":5388},{"style":152},[5389],{"type":49,"value":174},{"type":43,"tag":77,"props":5391,"children":5392},{"style":146},[5393],{"type":49,"value":262},{"type":43,"tag":77,"props":5395,"children":5396},{"style":152},[5397],{"type":49,"value":5398},"Sonnet_4_5 ",{"type":43,"tag":77,"props":5400,"children":5401},{"style":146},[5402],{"type":49,"value":5403},"},\n",{"type":43,"tag":77,"props":5405,"children":5406},{"class":79,"line":221},[5407,5412,5416],{"type":43,"tag":77,"props":5408,"children":5409},{"style":285},[5410],{"type":49,"value":5411},"  mcpServers",{"type":43,"tag":77,"props":5413,"children":5414},{"style":146},[5415],{"type":49,"value":293},{"type":43,"tag":77,"props":5417,"children":5418},{"style":152},[5419],{"type":49,"value":5420}," [\n",{"type":43,"tag":77,"props":5422,"children":5423},{"class":79,"line":231},[5424,5429,5433,5437,5441,5446,5450,5454,5459,5463,5467,5472,5476],{"type":43,"tag":77,"props":5425,"children":5426},{"style":146},[5427],{"type":49,"value":5428},"    {",{"type":43,"tag":77,"props":5430,"children":5431},{"style":285},[5432],{"type":49,"value":4184},{"type":43,"tag":77,"props":5434,"children":5435},{"style":146},[5436],{"type":49,"value":293},{"type":43,"tag":77,"props":5438,"children":5439},{"style":146},[5440],{"type":49,"value":198},{"type":43,"tag":77,"props":5442,"children":5443},{"style":90},[5444],{"type":49,"value":5445},"fs",{"type":43,"tag":77,"props":5447,"children":5448},{"style":146},[5449],{"type":49,"value":307},{"type":43,"tag":77,"props":5451,"children":5452},{"style":146},[5453],{"type":49,"value":160},{"type":43,"tag":77,"props":5455,"children":5456},{"style":285},[5457],{"type":49,"value":5458}," package",{"type":43,"tag":77,"props":5460,"children":5461},{"style":146},[5462],{"type":49,"value":293},{"type":43,"tag":77,"props":5464,"children":5465},{"style":146},[5466],{"type":49,"value":198},{"type":43,"tag":77,"props":5468,"children":5469},{"style":90},[5470],{"type":49,"value":5471},"@modelcontextprotocol\u002Fserver-filesystem",{"type":43,"tag":77,"props":5473,"children":5474},{"style":146},[5475],{"type":49,"value":307},{"type":43,"tag":77,"props":5477,"children":5478},{"style":146},[5479],{"type":49,"value":662},{"type":43,"tag":77,"props":5481,"children":5482},{"class":79,"line":281},[5483,5487,5491,5495,5499,5504,5508,5512,5516,5520,5524,5529,5533,5537,5541,5545,5549,5553,5557,5561,5565,5569,5573],{"type":43,"tag":77,"props":5484,"children":5485},{"style":146},[5486],{"type":49,"value":5428},{"type":43,"tag":77,"props":5488,"children":5489},{"style":285},[5490],{"type":49,"value":4184},{"type":43,"tag":77,"props":5492,"children":5493},{"style":146},[5494],{"type":49,"value":293},{"type":43,"tag":77,"props":5496,"children":5497},{"style":146},[5498],{"type":49,"value":198},{"type":43,"tag":77,"props":5500,"children":5501},{"style":90},[5502],{"type":49,"value":5503},"custom",{"type":43,"tag":77,"props":5505,"children":5506},{"style":146},[5507],{"type":49,"value":307},{"type":43,"tag":77,"props":5509,"children":5510},{"style":146},[5511],{"type":49,"value":160},{"type":43,"tag":77,"props":5513,"children":5514},{"style":285},[5515],{"type":49,"value":1909},{"type":43,"tag":77,"props":5517,"children":5518},{"style":146},[5519],{"type":49,"value":293},{"type":43,"tag":77,"props":5521,"children":5522},{"style":146},[5523],{"type":49,"value":198},{"type":43,"tag":77,"props":5525,"children":5526},{"style":90},[5527],{"type":49,"value":5528},"https:\u002F\u002Fmcp.example.com\u002Fsse",{"type":43,"tag":77,"props":5530,"children":5531},{"style":146},[5532],{"type":49,"value":307},{"type":43,"tag":77,"props":5534,"children":5535},{"style":146},[5536],{"type":49,"value":160},{"type":43,"tag":77,"props":5538,"children":5539},{"style":285},[5540],{"type":49,"value":1935},{"type":43,"tag":77,"props":5542,"children":5543},{"style":146},[5544],{"type":49,"value":293},{"type":43,"tag":77,"props":5546,"children":5547},{"style":146},[5548],{"type":49,"value":149},{"type":43,"tag":77,"props":5550,"children":5551},{"style":285},[5552],{"type":49,"value":1948},{"type":43,"tag":77,"props":5554,"children":5555},{"style":146},[5556],{"type":49,"value":293},{"type":43,"tag":77,"props":5558,"children":5559},{"style":146},[5560],{"type":49,"value":198},{"type":43,"tag":77,"props":5562,"children":5563},{"style":90},[5564],{"type":49,"value":653},{"type":43,"tag":77,"props":5566,"children":5567},{"style":146},[5568],{"type":49,"value":307},{"type":43,"tag":77,"props":5570,"children":5571},{"style":146},[5572],{"type":49,"value":188},{"type":43,"tag":77,"props":5574,"children":5575},{"style":146},[5576],{"type":49,"value":662},{"type":43,"tag":77,"props":5578,"children":5579},{"class":79,"line":319},[5580,5585],{"type":43,"tag":77,"props":5581,"children":5582},{"style":152},[5583],{"type":49,"value":5584},"  ]",{"type":43,"tag":77,"props":5586,"children":5587},{"style":146},[5588],{"type":49,"value":399},{"type":43,"tag":77,"props":5590,"children":5591},{"class":79,"line":27},[5592,5596],{"type":43,"tag":77,"props":5593,"children":5594},{"style":146},[5595],{"type":49,"value":716},{"type":43,"tag":77,"props":5597,"children":5598},{"style":152},[5599],{"type":49,"value":721},{"type":43,"tag":58,"props":5601,"children":5603},{"id":5602},"gotchas",[5604],{"type":49,"value":5605},"Gotchas",{"type":43,"tag":5607,"props":5608,"children":5609},"ul",{},[5610,5637,5648,5688,5707,5718,5739],{"type":43,"tag":5611,"props":5612,"children":5613},"li",{},[5614,5616,5621,5623,5629,5631],{"type":49,"value":5615},"Default working directory is ",{"type":43,"tag":73,"props":5617,"children":5619},{"className":5618},[],[5620],{"type":49,"value":2827},{"type":49,"value":5622},", not ",{"type":43,"tag":73,"props":5624,"children":5626},{"className":5625},[],[5627],{"type":49,"value":5628},"\u002Fhome",{"type":49,"value":5630}," or ",{"type":43,"tag":73,"props":5632,"children":5634},{"className":5633},[],[5635],{"type":49,"value":5636},"\u002F",{"type":43,"tag":5611,"props":5638,"children":5639},{},[5640,5646],{"type":43,"tag":73,"props":5641,"children":5643},{"className":5642},[],[5644],{"type":49,"value":5645},"box.cd()",{"type":49,"value":5647}," is client-side tracking — it validates the path exists but doesn't change the box's shell cwd. All SDK methods use it automatically.",{"type":43,"tag":5611,"props":5649,"children":5650},{},[5651,5656,5658,5663,5665,5670,5672,5678,5680,5686],{"type":43,"tag":73,"props":5652,"children":5654},{"className":5653},[],[5655],{"type":49,"value":4345},{"type":49,"value":5657}," does NOT support ",{"type":43,"tag":73,"props":5659,"children":5661},{"className":5660},[],[5662],{"type":49,"value":29},{"type":49,"value":5664},", ",{"type":43,"tag":73,"props":5666,"children":5668},{"className":5667},[],[5669],{"type":49,"value":3370},{"type":49,"value":5671},", or ",{"type":43,"tag":73,"props":5673,"children":5675},{"className":5674},[],[5676],{"type":49,"value":5677},"preview",{"type":49,"value":5679}," — use full ",{"type":43,"tag":73,"props":5681,"children":5683},{"className":5682},[],[5684],{"type":49,"value":5685},"Box",{"type":49,"value":5687}," for those",{"type":43,"tag":5611,"props":5689,"children":5690},{},[5691,5697,5699,5705],{"type":43,"tag":73,"props":5692,"children":5694},{"className":5693},[],[5695],{"type":49,"value":5696},"run.exitCode",{"type":49,"value":5698}," is ",{"type":43,"tag":73,"props":5700,"children":5702},{"className":5701},[],[5703],{"type":49,"value":5704},"null",{"type":49,"value":5706}," for agent runs, only available for exec commands",{"type":43,"tag":5611,"props":5708,"children":5709},{},[5710,5716],{"type":43,"tag":73,"props":5711,"children":5713},{"className":5712},[],[5714],{"type":49,"value":5715},"box.delete()",{"type":49,"value":5717}," is irreversible — snapshot first if you need the state",{"type":43,"tag":5611,"props":5719,"children":5720},{},[5721,5723,5729,5731,5737],{"type":49,"value":5722},"Git operations require ",{"type":43,"tag":73,"props":5724,"children":5726},{"className":5725},[],[5727],{"type":49,"value":5728},"git.token",{"type":49,"value":5730}," in ",{"type":43,"tag":73,"props":5732,"children":5734},{"className":5733},[],[5735],{"type":49,"value":5736},"BoxConfig",{"type":49,"value":5738}," for private repos and PRs",{"type":43,"tag":5611,"props":5740,"children":5741},{},[5742,5748],{"type":43,"tag":73,"props":5743,"children":5745},{"className":5744},[],[5746],{"type":49,"value":5747},"Box.fromSnapshot()",{"type":49,"value":5749}," creates a new box — it does not modify the original",{"type":43,"tag":5751,"props":5752,"children":5753},"style",{},[5754],{"type":49,"value":5755},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":5757,"total":80},[5758],{"slug":4,"name":4,"fn":5,"description":6,"org":5759,"tags":5760,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5761,5762,5763,5764],{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"items":5766,"total":583},[5767,5785,5800,5812,5826,5845,5860,5875,5890,5905,5912,5926],{"slug":5768,"name":5768,"fn":5769,"description":5770,"org":5771,"tags":5772,"stars":5782,"repoUrl":5783,"updatedAt":5784},"context7-cli","manage documentation and skills with ctx7","Use the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions \"ctx7\" or \"context7\", needs current docs for any library, wants to install\u002Fsearch\u002Fgenerate skills, or needs to set up Context7 for their AI coding agent.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5773,5776,5779],{"name":5774,"slug":5775,"type":15},"CLI","cli",{"name":5777,"slug":5778,"type":15},"Documentation","documentation",{"name":5780,"slug":5781,"type":15},"Knowledge Management","knowledge-management",60095,"https:\u002F\u002Fgithub.com\u002Fupstash\u002Fcontext7","2026-04-06T18:55:02.689254",{"slug":5786,"name":5786,"fn":5787,"description":5788,"org":5789,"tags":5790,"stars":5782,"repoUrl":5783,"updatedAt":5799},"context7-docs","fetch documentation and code examples","Fetch up-to-date documentation and code examples for any library, framework, SDK, CLI tool, or cloud service. Use whenever the user asks about a specific library — even well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot — because training data may not reflect recent API changes or version updates.\nAlways use for: API syntax questions, configuration options, version migration issues, \"how do I\" questions mentioning a library name, debugging that involves library-specific behavior, setup instructions, and CLI tool usage.\nUse even when you think you know the answer. Do not rely on training data for API details, signatures, or configuration options — they are frequently out of date. Prefer this over web search for library documentation.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5791,5792,5793,5796],{"name":5774,"slug":5775,"type":15},{"name":5777,"slug":5778,"type":15},{"name":5794,"slug":5795,"type":15},"Reference","reference",{"name":5797,"slug":5798,"type":15},"SDK","sdk","2026-07-28T05:35:31.125695",{"slug":5801,"name":5801,"fn":5802,"description":5803,"org":5804,"tags":5805,"stars":5782,"repoUrl":5783,"updatedAt":5811},"context7-mcp","retrieve library documentation via MCP","This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5806,5807,5808],{"name":5777,"slug":5778,"type":15},{"name":5780,"slug":5781,"type":15},{"name":5809,"slug":5810,"type":15},"MCP","mcp","2026-07-28T05:35:32.109879",{"slug":5813,"name":5813,"fn":5814,"description":5815,"org":5816,"tags":5817,"stars":5782,"repoUrl":5783,"updatedAt":5825},"find-docs","retrieve documentation for developer technologies","Retrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the user asks about a specific library, framework, SDK, CLI tool, or cloud service — even for well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot. Your training data may not reflect recent API changes or version updates.\nAlways use for: API syntax questions, configuration options, version migration issues, \"how do I\" questions mentioning a library name, debugging that involves library-specific behavior, setup instructions, and CLI tool usage.\nUse even when you think you know the answer — do not rely on training data for API details, signatures, or configuration options as they are frequently outdated. Always verify against current docs. Prefer this over web search for library documentation and API details.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5818,5819,5822],{"name":5777,"slug":5778,"type":15},{"name":5820,"slug":5821,"type":15},"Research","research",{"name":5823,"slug":5824,"type":15},"Search","search","2026-07-28T05:35:30.135004",{"slug":5827,"name":5827,"fn":5828,"description":5829,"org":5830,"tags":5831,"stars":5842,"repoUrl":5843,"updatedAt":5844},"upstash-ratelimit-ts","implement Redis rate limiting with Upstash","Lightweight guidance for using the Redis Rate Limit TypeScript SDK, including setup steps, basic usage, and pointers to advanced algorithm, features, pricing, and traffic‑protection docs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5832,5835,5838,5841],{"name":5833,"slug":5834,"type":15},"Performance","performance",{"name":5836,"slug":5837,"type":15},"Redis","redis",{"name":5839,"slug":5840,"type":15},"TypeScript","typescript",{"name":9,"slug":8,"type":15},2043,"https:\u002F\u002Fgithub.com\u002Fupstash\u002Fratelimit-js","2026-04-06T18:55:05.25459",{"slug":5846,"name":5846,"fn":5847,"description":5848,"org":5849,"tags":5850,"stars":5857,"repoUrl":5858,"updatedAt":5859},"redis-js","manage serverless Redis with Upstash","Work with the Upstash Redis JavaScript\u002FTypeScript SDK for serverless Redis operations. Use for caching, session storage, rate limiting, leaderboards, full-text search (querying, filtering, aggregating with @upstash\u002Fredis search extension), and all Redis data structures. Supports automatic serialization\u002Fdeserialization of JavaScript types. Search also available via @upstash\u002Fsearch-redis and @upstash\u002Fsearch-ioredis adapters for TCP clients.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5851,5852,5853,5856],{"name":13,"slug":14,"type":15},{"name":5836,"slug":5837,"type":15},{"name":5854,"slug":5855,"type":15},"Serverless","serverless",{"name":9,"slug":8,"type":15},959,"https:\u002F\u002Fgithub.com\u002Fupstash\u002Fredis-js","2026-04-06T18:55:06.549589",{"slug":5861,"name":5861,"fn":5862,"description":5863,"org":5864,"tags":5865,"stars":5872,"repoUrl":5873,"updatedAt":5874},"qstash-js","manage serverless messaging with QStash","Work with the QStash JavaScript\u002FTypeScript SDK for serverless messaging, scheduling. Use when publishing messages to HTTP endpoints, creating schedules, managing queues, verifying incoming messages in serverless environments.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5866,5869,5870,5871],{"name":5867,"slug":5868,"type":15},"Messaging","messaging",{"name":13,"slug":14,"type":15},{"name":5854,"slug":5855,"type":15},{"name":9,"slug":8,"type":15},268,"https:\u002F\u002Fgithub.com\u002Fupstash\u002Fqstash-js","2026-04-06T18:55:07.811408",{"slug":5876,"name":5876,"fn":5877,"description":5878,"org":5879,"tags":5880,"stars":5887,"repoUrl":5888,"updatedAt":5889},"upstash-workflow-js","build serverless workflows with Upstash","Lightweight guidance for using the Upstash Workflow SDK to define, trigger, and manage workflows. Use this Skill whenever a user wants to create workflow endpoints, run steps, or interact with the Upstash Workflow client.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5881,5882,5883,5884],{"name":13,"slug":14,"type":15},{"name":5854,"slug":5855,"type":15},{"name":9,"slug":8,"type":15},{"name":5885,"slug":5886,"type":15},"Workflow Automation","workflow-automation",150,"https:\u002F\u002Fgithub.com\u002Fupstash\u002Fworkflow-js","2026-04-06T18:55:09.106744",{"slug":5891,"name":5891,"fn":5892,"description":5893,"org":5894,"tags":5895,"stars":5902,"repoUrl":5903,"updatedAt":5904},"upstash-vector-js","implement vector search with Upstash","Provides quick-start guidance and a unified entry point for Vector features, SDK usage, and integrations. Use when users ask how to work with Vector, its TS SDK, features, or supported frameworks.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5896,5899,5900,5901],{"name":5897,"slug":5898,"type":15},"AI Infrastructure","ai-infrastructure",{"name":13,"slug":14,"type":15},{"name":5823,"slug":5824,"type":15},{"name":9,"slug":8,"type":15},70,"https:\u002F\u002Fgithub.com\u002Fupstash\u002Fvector-js","2026-04-06T18:55:10.452627",{"slug":4,"name":4,"fn":5,"description":6,"org":5906,"tags":5907,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5908,5909,5910,5911],{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"slug":5913,"name":5913,"fn":5914,"description":5915,"org":5916,"tags":5917,"stars":665,"repoUrl":5924,"updatedAt":5925},"upstash-search-js","implement search features with Upstash","Entry point for documentation skills covering Upstash Search quick starts, core concepts, and TypeScript SDK usage. Use when a user asks how to get started, how indexing works, or how to use the TS client.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5918,5921,5922,5923],{"name":5919,"slug":5920,"type":15},"API Development","api-development",{"name":13,"slug":14,"type":15},{"name":5823,"slug":5824,"type":15},{"name":9,"slug":8,"type":15},"https:\u002F\u002Fgithub.com\u002Fupstash\u002Fsearch-js","2026-04-06T18:55:11.769669",{"slug":8,"name":8,"fn":5927,"description":5928,"org":5929,"tags":5930,"stars":477,"repoUrl":5937,"updatedAt":5938},"build applications with Upstash SDKs","Work with any Upstash TypeScript\u002FJavaScript SDK including Redis, Box, QStash, Workflow, Vector, Search and Ratelimit. Use when the user is working with any Upstash product or SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5931,5934,5935,5936],{"name":5932,"slug":5933,"type":15},"Database","database",{"name":5836,"slug":5837,"type":15},{"name":5854,"slug":5855,"type":15},{"name":9,"slug":8,"type":15},"https:\u002F\u002Fgithub.com\u002Fupstash\u002Fskills","2026-04-06T18:55:15.67714"]