@agentproto/runtime 5.5.0 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,9 +17,12 @@ import '@agentproto/plugin-local-browser';
17
17
  import '@modelcontextprotocol/sdk/types.js';
18
18
  import '@agentproto/provider-kit';
19
19
  import '@agentproto/llm-endpoint';
20
+ import 'http';
21
+ import 'net';
22
+ import 'stream';
23
+ import 'stream/promises';
20
24
  import '@modelcontextprotocol/sdk/client/index.js';
21
25
  import '@modelcontextprotocol/sdk/client/streamableHttp.js';
22
- import 'net';
23
26
  import { SandboxSpecSchema } from '@agentproto/sandbox';
24
27
  import { CatalogProviderSchema } from '@agentproto/model-catalog';
25
28
  import '@agentproto/app-client/runner-select';
@@ -2195,6 +2198,15 @@ var init_sandbox_agent_session_proxy = __esm({
2195
2198
  init_sandbox_ledger();
2196
2199
  }
2197
2200
  });
2201
+ var init_device_sandbox_bridge = __esm({
2202
+ "src/device-sandbox-bridge.ts"() {
2203
+ }
2204
+ });
2205
+ var init_device = __esm({
2206
+ "src/sandbox-providers/device.ts"() {
2207
+ init_device_sandbox_bridge();
2208
+ }
2209
+ });
2198
2210
  var init_sandbox_app_serve = __esm({
2199
2211
  "src/sandbox-app-serve.ts"() {
2200
2212
  }
@@ -2261,6 +2273,7 @@ var init_session_spawn = __esm({
2261
2273
  init_inference_binding();
2262
2274
  init_mcp_credential_deps();
2263
2275
  init_sandbox_agent_session_proxy();
2276
+ init_device();
2264
2277
  init_sandbox_ledger();
2265
2278
  init_sandbox_app_serve();
2266
2279
  init_sandbox_adapters();
@@ -2564,6 +2577,16 @@ var init_agent_start_schema = __esm({
2564
2577
  ])
2565
2578
  ).optional().describe(
2566
2579
  `Isolate this session in its OWN git worktree instead of \`cwd\`. \`true\` provisions one on a fresh \`wt/<slug>\` branch; \`{ slug, base, async }\` pins details. ROOT spawns only (rejected on a nested spawn \u2014 use \`sandbox\` there); ignored when \`cwd\` isn't a git repo. NOT auto-removed on session close \u2014 tear down with \`agentproto worktree rm\`. ${help("worktree")}`
2580
+ ),
2581
+ // CONTROLLER-INTERNAL (issue #1647) — NOT for tool callers. The device
2582
+ // sandbox proxy (`bootSandboxAgentSession`, session-spawn.ts) stamps it
2583
+ // when it forwards an explicit `workspaceSlug` across the /device-spawn
2584
+ // bridge, so the TARGET daemon's `agent_start` treats the slug as
2585
+ // bridge-ffi: registry-first, no active-workspace fallback — an
2586
+ // unresolvable slug fails loudly (`device_bridge_workspace_unknown`)
2587
+ // instead of silently landing wherever the target happens to have active.
2588
+ deviceBridge: mcpBool.optional().describe(
2589
+ "Internal: set by the controller's device-sandbox bridge when this spawn crossed a device pairing. Do not set \u2014 an explicit `workspaceSlug` that the target daemon has not registered fails instead of falling back to its active workspace."
2567
2590
  )
2568
2591
  };
2569
2592
  agentStartInputSchema = z.object(agentStartInputShape);