@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.
- package/dist/config-schema.mjs +24 -1
- package/dist/config-schema.mjs.map +1 -1
- package/dist/config.mjs +24 -1
- package/dist/config.mjs.map +1 -1
- package/dist/index.d.ts +718 -5
- package/dist/index.mjs +3960 -2085
- package/dist/index.mjs.map +1 -1
- package/dist/resume-strategies.mjs.map +1 -1
- package/dist/session-presence.mjs +24 -1
- package/dist/session-presence.mjs.map +1 -1
- package/dist/{sessions-DMzCgTVy.d.ts → sessions-DHSLsPHA.d.ts} +69 -0
- package/dist/user-presets.d.ts +1 -1
- package/package.json +13 -13
|
@@ -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';
|
|
@@ -2180,6 +2183,15 @@ var init_sandbox_agent_session_proxy = __esm({
|
|
|
2180
2183
|
init_sandbox_ledger();
|
|
2181
2184
|
}
|
|
2182
2185
|
});
|
|
2186
|
+
var init_device_sandbox_bridge = __esm({
|
|
2187
|
+
"src/device-sandbox-bridge.ts"() {
|
|
2188
|
+
}
|
|
2189
|
+
});
|
|
2190
|
+
var init_device = __esm({
|
|
2191
|
+
"src/sandbox-providers/device.ts"() {
|
|
2192
|
+
init_device_sandbox_bridge();
|
|
2193
|
+
}
|
|
2194
|
+
});
|
|
2183
2195
|
var init_sandbox_app_serve = __esm({
|
|
2184
2196
|
"src/sandbox-app-serve.ts"() {
|
|
2185
2197
|
}
|
|
@@ -2246,6 +2258,7 @@ var init_session_spawn = __esm({
|
|
|
2246
2258
|
init_inference_binding();
|
|
2247
2259
|
init_mcp_credential_deps();
|
|
2248
2260
|
init_sandbox_agent_session_proxy();
|
|
2261
|
+
init_device();
|
|
2249
2262
|
init_sandbox_ledger();
|
|
2250
2263
|
init_sandbox_app_serve();
|
|
2251
2264
|
init_sandbox_adapters();
|
|
@@ -2549,6 +2562,16 @@ var init_agent_start_schema = __esm({
|
|
|
2549
2562
|
])
|
|
2550
2563
|
).optional().describe(
|
|
2551
2564
|
`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")}`
|
|
2565
|
+
),
|
|
2566
|
+
// CONTROLLER-INTERNAL (issue #1647) — NOT for tool callers. The device
|
|
2567
|
+
// sandbox proxy (`bootSandboxAgentSession`, session-spawn.ts) stamps it
|
|
2568
|
+
// when it forwards an explicit `workspaceSlug` across the /device-spawn
|
|
2569
|
+
// bridge, so the TARGET daemon's `agent_start` treats the slug as
|
|
2570
|
+
// bridge-ffi: registry-first, no active-workspace fallback — an
|
|
2571
|
+
// unresolvable slug fails loudly (`device_bridge_workspace_unknown`)
|
|
2572
|
+
// instead of silently landing wherever the target happens to have active.
|
|
2573
|
+
deviceBridge: mcpBool.optional().describe(
|
|
2574
|
+
"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."
|
|
2552
2575
|
)
|
|
2553
2576
|
};
|
|
2554
2577
|
agentStartInputSchema = z.object(agentStartInputShape);
|