@agentproto/runtime 4.1.0 → 5.1.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/catalog-models.d.ts +1 -1
- package/dist/catalog-models.mjs.map +1 -1
- package/dist/config-schema.d.ts +1 -1
- package/dist/config-schema.mjs +86 -2
- package/dist/config-schema.mjs.map +1 -1
- package/dist/config.d.ts +27 -2
- package/dist/config.mjs +86 -2
- package/dist/config.mjs.map +1 -1
- package/dist/index.d.ts +1024 -151
- package/dist/index.mjs +4811 -739
- package/dist/index.mjs.map +1 -1
- package/dist/session-presence.mjs +86 -2
- package/dist/session-presence.mjs.map +1 -1
- package/dist/{spawn-defaults-CZj39Znq.d.ts → spawn-defaults-wQV9AeiG.d.ts} +12 -0
- package/dist/user-presets.d.ts +5 -0
- package/dist/user-presets.mjs +1 -0
- package/dist/user-presets.mjs.map +1 -1
- package/docs/mcp-tools/agent_start.md +18 -0
- package/package.json +11 -11
|
@@ -1934,6 +1934,29 @@ var init_worktree_identity = __esm({
|
|
|
1934
1934
|
z.object({ worktreeId: z.string() });
|
|
1935
1935
|
}
|
|
1936
1936
|
});
|
|
1937
|
+
var init_mcp_imports = __esm({
|
|
1938
|
+
"src/mcp-imports.ts"() {
|
|
1939
|
+
}
|
|
1940
|
+
});
|
|
1941
|
+
var bundleIdSchema, bundleSchema;
|
|
1942
|
+
var init_bundles = __esm({
|
|
1943
|
+
"src/bundles.ts"() {
|
|
1944
|
+
init_mcp_imports();
|
|
1945
|
+
bundleIdSchema = z.string().regex(/^[a-z0-9][a-z0-9-]*$/, "id must be lowercase kebab-case (letters, digits, hyphens)");
|
|
1946
|
+
bundleSchema = z.object({
|
|
1947
|
+
id: bundleIdSchema,
|
|
1948
|
+
label: z.string().min(1),
|
|
1949
|
+
description: z.string().min(1).optional(),
|
|
1950
|
+
mcpImports: z.array(z.string().min(1)),
|
|
1951
|
+
includeDaemon: z.boolean().optional(),
|
|
1952
|
+
skills: z.array(z.string().min(1))
|
|
1953
|
+
});
|
|
1954
|
+
z.object({
|
|
1955
|
+
version: z.literal(1),
|
|
1956
|
+
bundles: z.array(bundleSchema)
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
});
|
|
1937
1960
|
var init_catalog_models = __esm({
|
|
1938
1961
|
"src/catalog-models.ts"() {
|
|
1939
1962
|
init_spawn_defaults();
|
|
@@ -2137,10 +2160,13 @@ var init_sandbox_adapters = __esm({
|
|
|
2137
2160
|
var init_session_spawn = __esm({
|
|
2138
2161
|
"src/session-spawn.ts"() {
|
|
2139
2162
|
init_sessions();
|
|
2163
|
+
init_transcript_writer();
|
|
2140
2164
|
init_workspaces_config();
|
|
2141
2165
|
init_config();
|
|
2142
2166
|
init_worktree_identity();
|
|
2143
2167
|
init_spawn_defaults();
|
|
2168
|
+
init_bundles();
|
|
2169
|
+
init_mcp_imports();
|
|
2144
2170
|
init_launch_config();
|
|
2145
2171
|
init_claude_code_oauth_source();
|
|
2146
2172
|
init_providers_store();
|
|
@@ -2286,6 +2312,9 @@ var init_agent_start_schema = __esm({
|
|
|
2286
2312
|
notifyParentOnCrash: mcpBool.optional().describe(
|
|
2287
2313
|
`Notify this session's parent directly (in-band) if it later crashes. Independent of the global \`notifyUrl\` webhook, which fires either way. ${help("notifyParentOnCrash")}`
|
|
2288
2314
|
),
|
|
2315
|
+
sentinel: mcpBool.optional().describe(
|
|
2316
|
+
`Set false to opt this spawn OUT of sentinel auto-link: a PR this session opens will never get an automatic AIP-60 sentinel watching it, regardless of the daemon's \`sentinel.autoWatchPrs\` config. ${help("sentinel")}`
|
|
2317
|
+
),
|
|
2289
2318
|
allowSharedCwd: mcpBool.optional().describe(
|
|
2290
2319
|
"Acknowledge running a nested spawn in the parent's dirty working tree, silencing the shared-dirty-cwd warning. Only relevant with no `worktree`/`sandbox`; default false = warn."
|
|
2291
2320
|
),
|
|
@@ -2300,6 +2329,12 @@ var init_agent_start_schema = __esm({
|
|
|
2300
2329
|
skills: jsonTolerant(z.array(z.string())).optional().describe(
|
|
2301
2330
|
`Normalized skill ids for this session (e.g. ['agentproto']). REPLACES (not unions) config defaults when set. Adapters with no \`skills\` option (e.g. claude-code) ignore it. ${help("skills")}`
|
|
2302
2331
|
),
|
|
2332
|
+
bundles: jsonTolerant(z.array(z.string())).optional().describe(
|
|
2333
|
+
`Capability bundle ids (\`bundle_list\`) to attach \u2014 each expands to its imported MCPs (mounted as native MCP servers, never via the mcp_imported_* indirection) + skills, and optionally the daemon's own /mcp. REPLACES (not unions) config defaults when set. ${help("bundles")}`
|
|
2334
|
+
),
|
|
2335
|
+
daemonMount: mcpBool.optional().describe(
|
|
2336
|
+
`Explicitly mount the daemon's own scoped /mcp gateway for this spawn \u2014 the only way an adapter outside the default self-mount set (opencode, codex, gemini, \u2026) gets it. Default false. ${help("daemonMount")}`
|
|
2337
|
+
),
|
|
2303
2338
|
model: z.string().optional().describe(
|
|
2304
2339
|
"Model identifier to pass to the adapter. For claude-code, applied via session/set_config_option \u2014 NOT a CLI flag."
|
|
2305
2340
|
),
|
|
@@ -2472,6 +2507,7 @@ var init_user_presets = __esm({
|
|
|
2472
2507
|
contextProfile: z.string().min(1).optional(),
|
|
2473
2508
|
cwd: z.string().min(1).optional(),
|
|
2474
2509
|
skills: z.array(z.string().min(1)).optional(),
|
|
2510
|
+
bundles: z.array(z.string().min(1)).optional(),
|
|
2475
2511
|
browser: z.union([z.literal("headless"), z.literal(false)]).optional()
|
|
2476
2512
|
});
|
|
2477
2513
|
z.object({
|
|
@@ -2564,6 +2600,11 @@ var init_session_observer = __esm({
|
|
|
2564
2600
|
"src/session-observer.ts"() {
|
|
2565
2601
|
}
|
|
2566
2602
|
});
|
|
2603
|
+
var init_session_artifacts = __esm({
|
|
2604
|
+
"src/session-artifacts.ts"() {
|
|
2605
|
+
init_transcript_writer();
|
|
2606
|
+
}
|
|
2607
|
+
});
|
|
2567
2608
|
var DEFAULT_TITLER_MODEL;
|
|
2568
2609
|
var init_session_titler = __esm({
|
|
2569
2610
|
"src/session-titler.ts"() {
|
|
@@ -2639,6 +2680,7 @@ var init_sessions = __esm({
|
|
|
2639
2680
|
init_session_observer();
|
|
2640
2681
|
init_tool_presenter();
|
|
2641
2682
|
init_transcript_writer();
|
|
2683
|
+
init_session_artifacts();
|
|
2642
2684
|
init_session_titler();
|
|
2643
2685
|
init_resume_context_digest();
|
|
2644
2686
|
init_conversation_index();
|
|
@@ -2722,7 +2764,9 @@ var init_config_schema = __esm({
|
|
|
2722
2764
|
skills: z.array(z.string()).optional(),
|
|
2723
2765
|
options: optionsMapSchema.optional(),
|
|
2724
2766
|
auth: defaultsAdapterAuthConfigSchema.optional(),
|
|
2725
|
-
contextContinuity: contextContinuityPolicySchema.optional()
|
|
2767
|
+
contextContinuity: contextContinuityPolicySchema.optional(),
|
|
2768
|
+
bundles: z.array(z.string()).optional(),
|
|
2769
|
+
daemonMount: z.boolean().optional()
|
|
2726
2770
|
}).passthrough();
|
|
2727
2771
|
mcpDefaultsConfigSchema = z.object({
|
|
2728
2772
|
deferredTools: deferredToolsConfigSchema.optional()
|
|
@@ -2731,6 +2775,7 @@ var init_config_schema = __esm({
|
|
|
2731
2775
|
skills: z.array(z.string()).optional(),
|
|
2732
2776
|
options: optionsMapSchema.optional(),
|
|
2733
2777
|
adapters: z.record(z.string(), defaultsAdapterConfigSchema).optional(),
|
|
2778
|
+
bundles: z.array(z.string()).optional(),
|
|
2734
2779
|
contextContinuity: contextContinuityPolicySchema.optional(),
|
|
2735
2780
|
defaultRoleDepthCutoff: z.number().optional(),
|
|
2736
2781
|
maxGrantableDelegation: z.number().optional(),
|
|
@@ -2772,7 +2817,8 @@ var init_config_schema = __esm({
|
|
|
2772
2817
|
}).passthrough();
|
|
2773
2818
|
featuresConfigSchema = z.object({
|
|
2774
2819
|
pty: z.boolean().optional(),
|
|
2775
|
-
llmEndpoint: z.boolean().optional()
|
|
2820
|
+
llmEndpoint: z.boolean().optional(),
|
|
2821
|
+
deviceInferenceShare: z.boolean().optional()
|
|
2776
2822
|
}).passthrough();
|
|
2777
2823
|
worktreesConfigSchema = z.object({
|
|
2778
2824
|
root: z.string().optional(),
|
|
@@ -3112,6 +3158,15 @@ var init_config_schema = __esm({
|
|
|
3112
3158
|
label: "Default options",
|
|
3113
3159
|
help: "AIP-45 options auto-applied to every agent_start spawn."
|
|
3114
3160
|
},
|
|
3161
|
+
{
|
|
3162
|
+
path: "defaults.bundles",
|
|
3163
|
+
schema: strArray,
|
|
3164
|
+
apply: "hot",
|
|
3165
|
+
writable: true,
|
|
3166
|
+
section: "defaults",
|
|
3167
|
+
label: "Default capability bundles",
|
|
3168
|
+
help: "Bundle ids (bundle_list) auto-attached to every agent_start spawn (unioned with per-adapter bundles)."
|
|
3169
|
+
},
|
|
3115
3170
|
{
|
|
3116
3171
|
path: "defaults.defaultRoleDepthCutoff",
|
|
3117
3172
|
schema: num,
|
|
@@ -3338,6 +3393,25 @@ var init_config_schema = __esm({
|
|
|
3338
3393
|
label: "Adapter default options",
|
|
3339
3394
|
help: "AIP-45 options auto-applied to spawns of this adapter."
|
|
3340
3395
|
},
|
|
3396
|
+
{
|
|
3397
|
+
path: "defaults.adapters.*.bundles",
|
|
3398
|
+
schema: strArray,
|
|
3399
|
+
apply: "hot",
|
|
3400
|
+
writable: true,
|
|
3401
|
+
section: "harnesses",
|
|
3402
|
+
label: "Adapter default capability bundles",
|
|
3403
|
+
help: "Bundle ids (bundle_list) auto-attached to spawns of this adapter (unioned with the global default)."
|
|
3404
|
+
},
|
|
3405
|
+
{
|
|
3406
|
+
path: "defaults.adapters.*.daemonMount",
|
|
3407
|
+
schema: z.boolean(),
|
|
3408
|
+
apply: "hot",
|
|
3409
|
+
writable: true,
|
|
3410
|
+
section: "harnesses",
|
|
3411
|
+
label: "Adapter daemon self-mount opt-in",
|
|
3412
|
+
help: "Explicitly mount the daemon's own scoped /mcp for spawns of this adapter, for harnesses outside the default self-mount allowlist (opencode, codex, gemini, \u2026).",
|
|
3413
|
+
default: false
|
|
3414
|
+
},
|
|
3341
3415
|
{
|
|
3342
3416
|
path: "defaults.adapters.*.contextContinuity",
|
|
3343
3417
|
schema: contextContinuityPolicySchema,
|
|
@@ -3581,6 +3655,16 @@ var init_config_schema = __esm({
|
|
|
3581
3655
|
label: "LLM Endpoint feature",
|
|
3582
3656
|
help: "Enable the local LLM Endpoint proxy sidecar (route + MCP tools + child-process lifecycle).",
|
|
3583
3657
|
default: false
|
|
3658
|
+
},
|
|
3659
|
+
{
|
|
3660
|
+
path: "features.deviceInferenceShare",
|
|
3661
|
+
schema: bool,
|
|
3662
|
+
apply: "restart",
|
|
3663
|
+
writable: true,
|
|
3664
|
+
section: "daemon",
|
|
3665
|
+
label: "Device inference sharing",
|
|
3666
|
+
help: "Expose this daemon's local inference endpoint(s) to a paired HOST-scoped controller. Toggle via `agentproto devices share-inference on|off`.",
|
|
3667
|
+
default: false
|
|
3584
3668
|
}
|
|
3585
3669
|
];
|
|
3586
3670
|
}
|