@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
package/dist/config.mjs
CHANGED
|
@@ -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';
|
|
@@ -2190,6 +2193,15 @@ var init_sandbox_agent_session_proxy = __esm({
|
|
|
2190
2193
|
init_sandbox_ledger();
|
|
2191
2194
|
}
|
|
2192
2195
|
});
|
|
2196
|
+
var init_device_sandbox_bridge = __esm({
|
|
2197
|
+
"src/device-sandbox-bridge.ts"() {
|
|
2198
|
+
}
|
|
2199
|
+
});
|
|
2200
|
+
var init_device = __esm({
|
|
2201
|
+
"src/sandbox-providers/device.ts"() {
|
|
2202
|
+
init_device_sandbox_bridge();
|
|
2203
|
+
}
|
|
2204
|
+
});
|
|
2193
2205
|
var init_sandbox_app_serve = __esm({
|
|
2194
2206
|
"src/sandbox-app-serve.ts"() {
|
|
2195
2207
|
}
|
|
@@ -2256,6 +2268,7 @@ var init_session_spawn = __esm({
|
|
|
2256
2268
|
init_inference_binding();
|
|
2257
2269
|
init_mcp_credential_deps();
|
|
2258
2270
|
init_sandbox_agent_session_proxy();
|
|
2271
|
+
init_device();
|
|
2259
2272
|
init_sandbox_ledger();
|
|
2260
2273
|
init_sandbox_app_serve();
|
|
2261
2274
|
init_sandbox_adapters();
|
|
@@ -2559,6 +2572,16 @@ var init_agent_start_schema = __esm({
|
|
|
2559
2572
|
])
|
|
2560
2573
|
).optional().describe(
|
|
2561
2574
|
`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")}`
|
|
2575
|
+
),
|
|
2576
|
+
// CONTROLLER-INTERNAL (issue #1647) — NOT for tool callers. The device
|
|
2577
|
+
// sandbox proxy (`bootSandboxAgentSession`, session-spawn.ts) stamps it
|
|
2578
|
+
// when it forwards an explicit `workspaceSlug` across the /device-spawn
|
|
2579
|
+
// bridge, so the TARGET daemon's `agent_start` treats the slug as
|
|
2580
|
+
// bridge-ffi: registry-first, no active-workspace fallback — an
|
|
2581
|
+
// unresolvable slug fails loudly (`device_bridge_workspace_unknown`)
|
|
2582
|
+
// instead of silently landing wherever the target happens to have active.
|
|
2583
|
+
deviceBridge: mcpBool.optional().describe(
|
|
2584
|
+
"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."
|
|
2562
2585
|
)
|
|
2563
2586
|
};
|
|
2564
2587
|
agentStartInputSchema = z.object(agentStartInputShape);
|