@tangle-network/sandbox 0.58.4 → 0.58.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +5 -5
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +2 -2
  5. package/dist/{agent-run-outcome-xCHr2-OU.d.ts → agent-run-outcome-1MxGwnx3.d.ts} +1 -1
  6. package/dist/auth/index.d.ts +3 -2
  7. package/dist/auth/index.js +2 -2
  8. package/dist/backend-types-C7b_Gpa0.js +59 -0
  9. package/dist/{browser-interactive-control-controller-1m7jgLeg.d.ts → browser-interactive-control-controller-BzR8sFjo.d.ts} +1 -1
  10. package/dist/{browser-interactive-control-controller-CVGqjPgs.js → browser-interactive-control-controller-DRBQ-jf0.js} +1 -1
  11. package/dist/cli-auth-bundle-CzmAaefZ.js +53 -0
  12. package/dist/cli-auth-bundle-gs7xEnA1.d.ts +33 -0
  13. package/dist/{client-CGy_hRo4.js → client-CyIgS8us.js} +11 -31
  14. package/dist/{client-FSfwsq91.d.ts → client-KFbYYO9V.d.ts} +5 -13
  15. package/dist/collaboration/index.d.ts +1 -1
  16. package/dist/collaboration/index.js +1 -1
  17. package/dist/{collaboration-CSHswAOI.js → collaboration-d8Xcvel7.js} +1 -1
  18. package/dist/core.d.ts +5 -5
  19. package/dist/core.js +4 -4
  20. package/dist/{index-D4u-vv87.d.ts → index-BSCz2Q0v.d.ts} +1 -11
  21. package/dist/{index-D7RBHUmk.d.ts → index-DFXcrGG6.d.ts} +2 -2
  22. package/dist/index.d.ts +11 -11
  23. package/dist/index.js +9 -8
  24. package/dist/intelligence/index.js +1 -1
  25. package/dist/interactive-control.d.ts +1 -1
  26. package/dist/interactive-control.js +1 -1
  27. package/dist/{lines-QsZsBO42.d.ts → lines-DuPzlFrJ.d.ts} +1 -1
  28. package/dist/lines.d.ts +1 -1
  29. package/dist/lines.js +1 -1
  30. package/dist/{local-cli-auth-N1IYywxf.js → local-cli-auth-ChDP5zu4.js} +1 -1
  31. package/dist/{mcp-local-BWsftreI.js → mcp-local-DY1CnWBn.js} +1 -1
  32. package/dist/{preview-DRouZBdQ.d.ts → preview-C9PBEsQH.d.ts} +3 -3
  33. package/dist/{runtime-api-DZy6PuPe.js → runtime-api-BZhd0M3Z.js} +5 -61
  34. package/dist/runtime.d.ts +3 -3
  35. package/dist/runtime.js +3 -3
  36. package/dist/{sandbox-CUTfilZU.js → sandbox-D8HtCO-L.js} +9 -16
  37. package/dist/{sandbox-Cpfr2SpU.d.ts → sandbox-fTLRps4I.d.ts} +4 -4
  38. package/dist/session-gateway/index.d.ts +125 -67
  39. package/dist/session-gateway/index.js +22 -10
  40. package/dist/specs-CnqSWFNT-CHd9ACzP.js +536 -0
  41. package/dist/tangle/index.d.ts +1 -1
  42. package/dist/tangle/index.js +1 -1
  43. package/dist/{tangle-nU1V_G1c.js → tangle-CYGQg5Bf.js} +2 -2
  44. package/dist/{types-C90H0DjS.d.ts → types-B_rwXChV.d.ts} +6 -2
  45. package/package.json +4 -4
  46. package/dist/cli-auth-bundle-0VjPAtKt.js +0 -25
  47. /package/dist/{abort-signal-CgFhjY_v.js → abort-signal-BpYYr4JT.js} +0 -0
  48. /package/dist/{errors-AVpynVrG.d.ts → errors-C6dll8Qf.d.ts} +0 -0
  49. /package/dist/{errors-BkhlSDW-.js → errors-CKl_BSlD.js} +0 -0
  50. /package/dist/{index-C48z7K4r.d.ts → index-BKhRnV0i.d.ts} +0 -0
  51. /package/dist/{line-application-DOg7jrnA.js → line-application-9k30rhb2.js} +0 -0
  52. /package/dist/{preview-operations-BhQ4_CF7.js → preview-operations-CbTiBE-a.js} +0 -0
  53. /package/dist/{terminal-stream-Bf2stNDX.d.ts → terminal-stream-CB2DF-qq.d.ts} +0 -0
@@ -0,0 +1,536 @@
1
+ import { n as BACKEND_TYPE } from "./backend-types-C7b_Gpa0.js";
2
+ import { agentProfileSchema as agentProfileSchema$1 } from "@tangle-network/agent-interface";
3
+ import { z } from "zod";
4
+ //#region ../../../packages/cli-agent-registry/dist/specs-CnqSWFNT.mjs
5
+ const { $schema: _jsonSchemaDialect, ...agentProfileJsonSchema } = z.toJSONSchema(agentProfileSchema$1, {
6
+ io: "input",
7
+ unrepresentable: "any"
8
+ });
9
+ z.globalRegistry.add(agentProfileSchema$1, {
10
+ id: "AgentProfile",
11
+ ...agentProfileJsonSchema
12
+ });
13
+ const CLI_AGENT_SPECS = [
14
+ {
15
+ name: BACKEND_TYPE.OPENCODE,
16
+ messageStorageDir: ".opencode",
17
+ displayName: "OpenCode Agent",
18
+ description: "OpenCode CLI coding agent with native sessions, profiles, tools, and MCP.",
19
+ envVars: {
20
+ apiKey: "OPENCODE_MODEL_API_KEY",
21
+ model: "OPENCODE_MODEL_NAME",
22
+ baseUrl: "OPENCODE_MODEL_BASE_URL",
23
+ extras: {
24
+ OPENCODE_MODEL_PROVIDER: {
25
+ parser: "string",
26
+ role: "provider"
27
+ },
28
+ OPENCODE_MODEL_MODE: {
29
+ parser: "string",
30
+ role: "mode"
31
+ }
32
+ }
33
+ },
34
+ capabilities: {
35
+ streaming: true,
36
+ toolUse: true,
37
+ reasoning: true,
38
+ multimodal: true,
39
+ contextWindow: 2e5,
40
+ mcp: true,
41
+ runtimeAttachments: { mcp: true },
42
+ sessions: true,
43
+ configurable: true,
44
+ interactions: [
45
+ "permission",
46
+ "question",
47
+ "plan"
48
+ ],
49
+ imageInput: true
50
+ },
51
+ hostPassthroughEnvVars: [
52
+ "OPENCODE_MODEL_MODE",
53
+ "OPENCODE_CODEX_PLUGIN_VERSION",
54
+ "OPENCODE_EXPERIMENTAL_NATIVE_LLM"
55
+ ],
56
+ interactiveSeededPrompt: true,
57
+ builtinTools: [
58
+ {
59
+ id: "apply_patch",
60
+ name: "Apply Patch",
61
+ description: "Apply a unified-diff patch to files"
62
+ },
63
+ {
64
+ id: "bash",
65
+ name: "Bash",
66
+ description: "Execute bash commands"
67
+ },
68
+ {
69
+ id: "codesearch",
70
+ name: "Code Search",
71
+ description: "Search code across the workspace"
72
+ },
73
+ {
74
+ id: "edit",
75
+ name: "Edit",
76
+ description: "Edit a file with string replacement"
77
+ },
78
+ {
79
+ id: "glob",
80
+ name: "Glob",
81
+ description: "Find files by glob pattern"
82
+ },
83
+ {
84
+ id: "grep",
85
+ name: "Grep",
86
+ description: "Search file contents using regular expressions"
87
+ },
88
+ {
89
+ id: "question",
90
+ name: "Question",
91
+ description: "Ask the user a question and wait for the answer"
92
+ },
93
+ {
94
+ id: "read",
95
+ name: "Read",
96
+ description: "Read file contents"
97
+ },
98
+ {
99
+ id: "skill",
100
+ name: "Skill",
101
+ description: "Invoke an installed skill"
102
+ },
103
+ {
104
+ id: "task",
105
+ name: "Task",
106
+ description: "Delegate a task to a subagent"
107
+ },
108
+ {
109
+ id: "todowrite",
110
+ name: "Todo Write",
111
+ description: "Maintain the turn's todo list"
112
+ },
113
+ {
114
+ id: "webfetch",
115
+ name: "Webfetch",
116
+ description: "Fetch and read web content"
117
+ },
118
+ {
119
+ id: "websearch",
120
+ name: "Websearch",
121
+ description: "Search the web"
122
+ },
123
+ {
124
+ id: "write",
125
+ name: "Write",
126
+ description: "Write content to a file"
127
+ }
128
+ ],
129
+ runtime: {
130
+ redactsHostEnv: true,
131
+ supportsToolDisabledTurns: true
132
+ },
133
+ cliAuthHome: { kind: "inherit-home" },
134
+ hasCliAuth: false
135
+ },
136
+ {
137
+ name: BACKEND_TYPE.CLAUDE_CODE,
138
+ runtime: {},
139
+ messageStorageDir: ".claude-code",
140
+ displayName: "Claude Code",
141
+ description: "Anthropic Claude Code CLI-based agent backend.",
142
+ envVars: {
143
+ apiKey: "ANTHROPIC_API_KEY",
144
+ model: "CLAUDE_CODE_MODEL_NAME",
145
+ authMode: "CLAUDE_CODE_AUTH_MODE",
146
+ authFiles: "CLAUDE_CODE_AUTH_FILES_JSON",
147
+ oauthToken: "CLAUDE_CODE_OAUTH_TOKEN",
148
+ baseUrl: "ANTHROPIC_BASE_URL"
149
+ },
150
+ defaultModel: "anthropic/claude-opus-5",
151
+ modelWire: "anthropic-messages",
152
+ capabilities: {
153
+ streaming: true,
154
+ toolUse: true,
155
+ reasoning: true,
156
+ multimodal: true,
157
+ contextWindow: 2e5,
158
+ mcp: true,
159
+ runtimeAttachments: { mcp: true },
160
+ sessions: true,
161
+ configurable: true,
162
+ interactions: [
163
+ "permission",
164
+ "question",
165
+ "plan"
166
+ ],
167
+ imageInput: true
168
+ },
169
+ securityCapabilities: [
170
+ "SYS_PTRACE",
171
+ "SETUID",
172
+ "SETGID",
173
+ "DAC_OVERRIDE",
174
+ "CHOWN",
175
+ "FOWNER"
176
+ ],
177
+ interactiveSeededPrompt: true,
178
+ cliAuthHome: {
179
+ kind: "agent-home",
180
+ uid: 1e3,
181
+ home: "/home/agent"
182
+ },
183
+ hasCliAuth: true,
184
+ byoOAuth: true
185
+ },
186
+ {
187
+ name: BACKEND_TYPE.KIMI_CODE,
188
+ messageStorageDir: ".kimi-code",
189
+ displayName: "Kimi Code",
190
+ description: "Moonshot AI Kimi Code CLI — headless non-interactive mode via `kimi --print --output-format stream-json --prompt ...`. Defaults to OAuth (Kimi Code subscription) with credentials materialized from the host-managed ~/.kimi/credentials/kimi-code.json; falls back to MOONSHOT_API_KEY when an apiKey is supplied.",
191
+ envVars: {
192
+ apiKey: "MOONSHOT_API_KEY",
193
+ model: "KIMI_CODE_MODEL_NAME",
194
+ authMode: "KIMI_CODE_AUTH_MODE",
195
+ authFiles: "KIMI_CODE_AUTH_FILES_JSON"
196
+ },
197
+ capabilities: {
198
+ streaming: true,
199
+ toolUse: true,
200
+ reasoning: true,
201
+ multimodal: true,
202
+ contextWindow: 262144,
203
+ mcp: false,
204
+ runtimeAttachments: { mcp: true },
205
+ sessions: true,
206
+ configurable: true,
207
+ interactions: [],
208
+ imageInput: false
209
+ },
210
+ cliAuthHome: { kind: "inherit-home" },
211
+ hasCliAuth: true
212
+ },
213
+ {
214
+ name: BACKEND_TYPE.CODEX,
215
+ messageStorageDir: ".codex",
216
+ displayName: "Codex",
217
+ description: "OpenAI Codex CLI-based agent backend.",
218
+ envVars: {
219
+ apiKey: "OPENAI_API_KEY",
220
+ model: "CODEX_MODEL_NAME",
221
+ authMode: "CODEX_AUTH_MODE",
222
+ authFiles: "CODEX_AUTH_FILES_JSON",
223
+ baseUrl: "OPENAI_BASE_URL"
224
+ },
225
+ defaultModel: "openai/gpt-5.6-luna",
226
+ modelWire: "openai-responses",
227
+ capabilities: {
228
+ streaming: true,
229
+ toolUse: true,
230
+ reasoning: false,
231
+ multimodal: true,
232
+ contextWindow: 128e3,
233
+ mcp: false,
234
+ sessions: true,
235
+ configurable: false,
236
+ runtimeAttachments: { mcp: true },
237
+ interactions: [
238
+ "permission",
239
+ "question",
240
+ "plan"
241
+ ],
242
+ imageInput: true
243
+ },
244
+ interactiveSeededPrompt: true,
245
+ cliAuthHome: { kind: "inherit-home" },
246
+ hasCliAuth: true,
247
+ byoOAuth: true
248
+ },
249
+ {
250
+ name: BACKEND_TYPE.AMP,
251
+ messageStorageDir: ".amp-sessions",
252
+ displayName: "AMP (Sourcegraph)",
253
+ description: "Sourcegraph AMP CLI-based agent backend.",
254
+ envVars: {
255
+ apiKey: "AMP_API_KEY",
256
+ model: "AMP_MODEL_NAME",
257
+ authMode: "AMP_AUTH_MODE",
258
+ authFiles: "AMP_AUTH_FILES_JSON"
259
+ },
260
+ capabilities: {
261
+ streaming: true,
262
+ toolUse: true,
263
+ reasoning: false,
264
+ multimodal: false,
265
+ contextWindow: 128e3,
266
+ mcp: false,
267
+ sessions: true,
268
+ configurable: false,
269
+ interactions: [],
270
+ imageInput: false
271
+ },
272
+ cliAuthHome: { kind: "inherit-home" },
273
+ hasCliAuth: true
274
+ },
275
+ {
276
+ name: BACKEND_TYPE.FACTORY_DROIDS,
277
+ messageStorageDir: ".factory-droids",
278
+ displayName: "Factory Droids",
279
+ description: "Factory Droids CLI-based agent backend.",
280
+ envVars: { apiKey: "FACTORY_API_KEY" },
281
+ capabilities: {
282
+ streaming: true,
283
+ toolUse: true,
284
+ reasoning: false,
285
+ multimodal: false,
286
+ contextWindow: 128e3,
287
+ mcp: false,
288
+ sessions: true,
289
+ configurable: false,
290
+ interactions: ["question"],
291
+ imageInput: false
292
+ },
293
+ cliAuthHome: { kind: "inherit-home" },
294
+ hasCliAuth: true
295
+ },
296
+ {
297
+ name: BACKEND_TYPE.PI,
298
+ runtime: {},
299
+ messageStorageDir: ".pi/agent",
300
+ displayName: "Pi",
301
+ description: "Pi CLI backend. Managed OpenAI-compatible model tuples use one private runtime HOME models.json and the shared Pi model schema.",
302
+ envVars: {
303
+ apiKey: "OPENCODE_MODEL_API_KEY",
304
+ model: "TANGLE_ROUTER_MODEL",
305
+ baseUrl: "TANGLE_ROUTER_BASE_URL"
306
+ },
307
+ capabilities: {
308
+ streaming: true,
309
+ toolUse: true,
310
+ reasoning: true,
311
+ multimodal: false,
312
+ contextWindow: 128e3,
313
+ mcp: true,
314
+ sessions: true,
315
+ configurable: true,
316
+ interactions: ["permission"],
317
+ runtimeAttachments: { mcp: true },
318
+ imageInput: false
319
+ },
320
+ interactiveSeededPrompt: true,
321
+ cliAuthHome: { kind: "inherit-home" },
322
+ hasCliAuth: true
323
+ },
324
+ {
325
+ name: BACKEND_TYPE.PRIME,
326
+ messageStorageDir: ".prime-provider",
327
+ displayName: "Prime Agent (PrimeIntellect)",
328
+ description: "PrimeIntellect-ai/prime-agent — IPython-first coding agent (pi hard fork, fork line 0.7.x) driven over its native ACP mode. Model tuple travels via backend.model into a per-session materialized models.json, never env; the adapter pins PRIME_AGENT_CODING_AGENT_DIR to an isolated per-session agent dir (fail-closed harness-state isolation).",
329
+ envVars: {},
330
+ hostPassthroughEnvVars: ["PRIME_AGENT_INSTALL_UV", "PRIME_AGENT_KERNEL_PYTHON"],
331
+ capabilities: {
332
+ streaming: true,
333
+ toolUse: true,
334
+ reasoning: true,
335
+ multimodal: true,
336
+ contextWindow: 128e3,
337
+ mcp: false,
338
+ sessions: true,
339
+ configurable: true,
340
+ interactions: [],
341
+ imageInput: true
342
+ },
343
+ cliAuthHome: { kind: "inherit-home" },
344
+ hasCliAuth: false
345
+ },
346
+ {
347
+ name: BACKEND_TYPE.HERMES,
348
+ messageStorageDir: ".hermes-agent",
349
+ displayName: "Hermes Agent (Nous Research)",
350
+ description: "Open-source self-improving CLI agent. Persistent memory and skills live in $HERMES_HOME (pinned to the per-session workspace mount, not the read-only in-box $HOME) across same-tenant snapshot resumes — the learning loop is the differentiator. Provider-pluggable; defaults to OpenRouter via Tangle Router.",
351
+ envVars: {
352
+ apiKey: "HERMES_API_KEY",
353
+ model: "HERMES_MODEL_NAME",
354
+ authMode: "HERMES_AUTH_MODE",
355
+ authFiles: "HERMES_AUTH_FILES_JSON",
356
+ baseUrl: "HERMES_BASE_URL",
357
+ extras: { HERMES_INFERENCE_PROVIDER: { parser: "string" } }
358
+ },
359
+ capabilities: {
360
+ streaming: false,
361
+ toolUse: true,
362
+ reasoning: false,
363
+ multimodal: false,
364
+ contextWindow: 2e5,
365
+ mcp: true,
366
+ sessions: true,
367
+ configurable: true,
368
+ interactions: [],
369
+ imageInput: true
370
+ },
371
+ cliAuthHome: { kind: "inherit-home" },
372
+ hasCliAuth: true
373
+ },
374
+ {
375
+ name: BACKEND_TYPE.FORGE,
376
+ messageStorageDir: ".forge-agent",
377
+ displayName: "Forge (forgecode.dev)",
378
+ description: "Rust-built multi-provider coding agent from tailcallhq/forgecode. Speaks anthropic/openai/openrouter/gemini/deepseek/kimi + local providers (ollama, lm_studio, llama_cpp). Credentials live in ~/.forge/.credentials.json, materialized via the standard authFiles pipeline — no interactive `forge provider login` required.",
379
+ envVars: {
380
+ apiKey: "FORGE_API_KEY",
381
+ model: "FORGE_MODEL_ID",
382
+ authMode: "FORGE_AUTH_MODE",
383
+ authFiles: "FORGE_AUTH_FILES_JSON",
384
+ extras: {
385
+ FORGE_SESSION__PROVIDER_ID: { parser: "string" },
386
+ FORGE_SESSION__MODEL_ID: { parser: "string" },
387
+ FORGE_AGENT_ID: { parser: "string" }
388
+ }
389
+ },
390
+ capabilities: {
391
+ streaming: false,
392
+ toolUse: true,
393
+ reasoning: true,
394
+ multimodal: false,
395
+ contextWindow: 2e5,
396
+ mcp: true,
397
+ sessions: true,
398
+ configurable: true,
399
+ interactions: [],
400
+ imageInput: false
401
+ },
402
+ cliAuthHome: { kind: "inherit-home" },
403
+ hasCliAuth: true
404
+ },
405
+ {
406
+ name: BACKEND_TYPE.OPENCLAW,
407
+ messageStorageDir: ".openclaw-agent",
408
+ displayName: "OpenClaw (Orchestrator)",
409
+ description: "Orchestrator-tier CLI agent that dispatches to underlying coding-agent CLIs (claude-cli, codex-cli, gemini-cli) via its built-in cliBackends plugin model. Use this when you want one entry point that intelligently routes tasks to the right coding harness.",
410
+ envVars: {
411
+ apiKey: "OPENCODE_MODEL_API_KEY",
412
+ model: "TANGLE_ROUTER_MODEL",
413
+ baseUrl: "TANGLE_ROUTER_BASE_URL",
414
+ authMode: "OPENCLAW_AUTH_MODE",
415
+ authFiles: "OPENCLAW_AUTH_FILES_JSON"
416
+ },
417
+ capabilities: {
418
+ streaming: false,
419
+ toolUse: true,
420
+ reasoning: true,
421
+ multimodal: true,
422
+ contextWindow: 2e5,
423
+ mcp: true,
424
+ sessions: true,
425
+ configurable: true,
426
+ interactions: [],
427
+ imageInput: false
428
+ },
429
+ cliAuthHome: { kind: "inherit-home" },
430
+ hasCliAuth: true
431
+ },
432
+ {
433
+ name: BACKEND_TYPE.NANOCLAW,
434
+ messageStorageDir: ".nanoclaw-agent",
435
+ displayName: "NanoClaw",
436
+ description: "NanoClaw local socket bridge. Requires a running NanoClaw install and uses its `pnpm run chat` CLI channel; the adapter does not manage NanoClaw's Docker/service lifecycle.",
437
+ envVars: {
438
+ apiKey: "OPENCODE_MODEL_API_KEY",
439
+ model: "TANGLE_ROUTER_MODEL",
440
+ authMode: "NANOCLAW_AUTH_MODE",
441
+ baseUrl: "TANGLE_ROUTER_BASE_URL",
442
+ extras: {
443
+ NANOCLAW_PROJECT_ROOT: { parser: "string" },
444
+ NANOCLAW_NATIVE_CREDENTIALS: { parser: "string" },
445
+ OPENCODE_MODEL_PROVIDER: {
446
+ parser: "string",
447
+ role: "provider"
448
+ }
449
+ }
450
+ },
451
+ capabilities: {
452
+ streaming: false,
453
+ toolUse: true,
454
+ reasoning: true,
455
+ multimodal: false,
456
+ contextWindow: 2e5,
457
+ mcp: false,
458
+ sessions: true,
459
+ configurable: true,
460
+ interactions: [],
461
+ imageInput: false
462
+ },
463
+ cliAuthHome: { kind: "inherit-home" },
464
+ hasCliAuth: false
465
+ },
466
+ {
467
+ name: BACKEND_TYPE.ACP,
468
+ messageStorageDir: ".acp-agent",
469
+ displayName: "ACP Bridge (multi-agent)",
470
+ description: "Generic Agent Client Protocol bridge — fronts any ACP-compliant agent binary (claude-agent-acp, codex-acp, gemini, openclaw acp, ...). Pick the backing agent via config.subAgent. One TypeScript adapter, many supported coding harnesses.",
471
+ envVars: { authFiles: "ACP_AUTH_FILES_JSON" },
472
+ capabilities: {
473
+ streaming: true,
474
+ toolUse: true,
475
+ reasoning: true,
476
+ multimodal: false,
477
+ contextWindow: 2e5,
478
+ mcp: false,
479
+ sessions: true,
480
+ configurable: true,
481
+ interactions: ["permission"],
482
+ imageInput: false
483
+ },
484
+ cliAuthHome: { kind: "inherit-home" },
485
+ hasCliAuth: true
486
+ },
487
+ {
488
+ name: BACKEND_TYPE.CURSOR,
489
+ messageStorageDir: ".cursor-sdk-sessions",
490
+ displayName: "Cursor Agent SDK",
491
+ description: "Cursor Agent SDK backend. Runs Cursor's local agent against the sandbox workspace via @cursor/sdk, using CURSOR_API_KEY or backend.model.apiKey for authentication.",
492
+ envVars: {
493
+ apiKey: "CURSOR_API_KEY",
494
+ model: "CURSOR_MODEL_NAME"
495
+ },
496
+ capabilities: {
497
+ streaming: true,
498
+ toolUse: true,
499
+ reasoning: true,
500
+ multimodal: true,
501
+ contextWindow: 2e5,
502
+ mcp: true,
503
+ sessions: true,
504
+ configurable: true,
505
+ interactions: [],
506
+ imageInput: true
507
+ },
508
+ cliAuthHome: { kind: "inherit-home" },
509
+ hasCliAuth: false
510
+ },
511
+ {
512
+ name: BACKEND_TYPE.CLI_BASE,
513
+ displayName: "CLI Base (no agent)",
514
+ description: "Bare sandbox without an AI agent backend. Use when you want the workspace, tools, and SSH access but no LLM dispatch.",
515
+ envVars: {},
516
+ capabilities: {
517
+ streaming: false,
518
+ toolUse: false,
519
+ reasoning: false,
520
+ multimodal: false,
521
+ contextWindow: 0,
522
+ mcp: false,
523
+ sessions: false,
524
+ configurable: false,
525
+ interactions: [],
526
+ imageInput: false
527
+ },
528
+ cliAuthHome: { kind: "inherit-home" },
529
+ hasCliAuth: false
530
+ }
531
+ ];
532
+ function getSpec(name) {
533
+ return CLI_AGENT_SPECS.find((spec) => spec.name === name);
534
+ }
535
+ //#endregion
536
+ export { getSpec as t };
@@ -1,2 +1,2 @@
1
- import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-D7RBHUmk.js";
1
+ import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-DFXcrGG6.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig };
@@ -1,2 +1,2 @@
1
- import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-nU1V_G1c.js";
1
+ import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-CYGQg5Bf.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient };
@@ -1,5 +1,5 @@
1
- import { _ as parseErrorResponse } from "./errors-BkhlSDW-.js";
2
- import { n as createSandboxInstanceFromResponse } from "./sandbox-CUTfilZU.js";
1
+ import { _ as parseErrorResponse } from "./errors-CKl_BSlD.js";
2
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-D8HtCO-L.js";
3
3
  //#region src/tangle/abi.ts
4
4
  /**
5
5
  * Tangle Contract ABI Definitions
@@ -1,4 +1,5 @@
1
- import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-Bf2stNDX.js";
1
+ import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-CB2DF-qq.js";
2
+ import { t as CliAuthReference } from "./cli-auth-bundle-gs7xEnA1.js";
2
3
  import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
3
4
  import { AgentExactRunControlRef, AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, AgentRuntimeAttachments, HarnessType, ReasoningEffort, SandboxSizePreset } from "@tangle-network/agent-interface";
4
5
  import { z } from "zod";
@@ -3180,6 +3181,8 @@ interface SandboxResourceUsage {
3180
3181
  * proxy's SSE header-stripping cannot affect this document.
3181
3182
  */
3182
3183
  interface SandboxRuntimeCapabilities {
3184
+ /** Named native subscription references supported by the deployed Sidecar. */
3185
+ cliAuthReferences?: boolean;
3183
3186
  /** Native raw evidence wire version compiled into the serving Sidecar. */
3184
3187
  nativeSessionCaptureVersion?: number;
3185
3188
  /** Dispatch providers covered by the serving Sidecar capture boundary. */
@@ -5157,7 +5160,8 @@ interface BackendConfig {
5157
5160
  * provider's API key. Caller-owned auth by reference: no Router key is
5158
5161
  * minted and the named provider is kept.
5159
5162
  */
5160
- apiKeyEnv?: string; /** Authentication mode for CLI-native backends */
5163
+ apiKeyEnv?: string; /** Named stored-secret reference for native subscription authentication. */
5164
+ cliAuth?: CliAuthReference; /** Authentication mode for CLI-native backends */
5161
5165
  authMode?: "api-key" | "oauth"; /** Auth files to write into the sandbox home directory before CLI startup */
5162
5166
  authFiles?: Array<{
5163
5167
  path: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.58.4",
3
+ "version": "0.58.7",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -147,10 +147,10 @@
147
147
  "vitest": "^4.1.5",
148
148
  "ws": "^8.20.0",
149
149
  "yjs": "13.6.30",
150
- "@tangle-network/agent-profile-materialize": "0.20.5",
151
150
  "@repo/shared": "0.0.0",
152
- "@tangle-network/runtime-contracts": "0.10.1",
153
- "@tangle-network/cli-agent-registry": "0.4.15",
151
+ "@tangle-network/agent-profile-materialize": "0.20.5",
152
+ "@tangle-network/cli-agent-registry": "0.4.17",
153
+ "@tangle-network/runtime-contracts": "0.11.0",
154
154
  "@tangle-network/sse-core": "0.0.0"
155
155
  },
156
156
  "scripts": {
@@ -1,25 +0,0 @@
1
- //#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle.mjs
2
- const DEFAULT_MODE = 384;
3
- const AUTH_BUNDLE_PATHS = Object.freeze({
4
- codex: ".codex/auth.json",
5
- "claude-code": ".claude/.credentials.json"
6
- });
7
- /** Convert a native credential JSON bundle without reading host credentials. */
8
- function materializeCliAuthBundle(backendType, rawBundle) {
9
- if (backendType !== "codex" && backendType !== "claude-code") throw new Error("CLI auth bundle is not supported for the selected backend");
10
- if (typeof rawBundle !== "string") throw new Error("CLI auth bundle must be a JSON object");
11
- let value;
12
- try {
13
- value = JSON.parse(rawBundle);
14
- } catch {
15
- throw new Error("CLI auth bundle must be a JSON object");
16
- }
17
- if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("CLI auth bundle must be a JSON object");
18
- return [{
19
- path: AUTH_BUNDLE_PATHS[backendType],
20
- content: rawBundle,
21
- mode: DEFAULT_MODE
22
- }];
23
- }
24
- //#endregion
25
- export { materializeCliAuthBundle as n, AUTH_BUNDLE_PATHS as t };
File without changes