@nylorun/core 0.33.0-beta → 0.34.0-beta
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/CHANGELOG.md +79 -0
- package/dist/compatibility.d.ts +17 -1
- package/dist/compatibility.js +16 -0
- package/dist/contracts.d.ts +438 -11
- package/dist/contracts.js +196 -16
- package/dist/define.d.ts +1 -1
- package/dist/define.js +1 -1
- package/dist/definition/assemble.d.ts +2 -1
- package/dist/definition/assemble.js +1 -0
- package/dist/definition/from.js +1 -0
- package/dist/definition/manifest.d.ts +2 -1
- package/dist/definition/manifest.js +1 -0
- package/dist/definition/sections.d.ts +1 -1
- package/dist/definition/sections.js +5 -1
- package/dist/definition/variant.d.ts +16 -1
- package/dist/definition/variant.js +81 -3
- package/dist/engine/blocks.d.ts +52 -0
- package/dist/engine/blocks.js +155 -0
- package/dist/engine/explain.d.ts +36 -0
- package/dist/engine/explain.js +108 -0
- package/dist/engine/features.d.ts +28 -0
- package/dist/engine/features.js +34 -0
- package/dist/engine/index.d.ts +14 -0
- package/dist/engine/index.js +14 -0
- package/dist/engine/mcp.d.ts +119 -0
- package/dist/engine/mcp.js +267 -0
- package/dist/engine/names.d.ts +12 -0
- package/dist/engine/names.js +25 -0
- package/dist/engine/preview.d.ts +88 -0
- package/dist/engine/preview.js +119 -0
- package/dist/engine/projection.d.ts +61 -0
- package/dist/engine/projection.js +100 -0
- package/dist/engine/tools.d.ts +108 -0
- package/dist/engine/tools.js +460 -0
- package/dist/folder/compile.d.ts +11 -4
- package/dist/folder/compile.js +123 -13
- package/dist/folder/context.d.ts +5 -0
- package/dist/folder/decompile.js +22 -1
- package/dist/folder/engine.d.ts +70 -0
- package/dist/folder/engine.js +210 -0
- package/dist/folder/nested.js +1 -0
- package/dist/folder/schemas.js +42 -3
- package/dist/harness-api/harness-api.schema.json +11 -4
- package/dist/harness-api/json-schema.js +5 -2
- package/dist/harness-api/messages.d.ts +4 -2
- package/dist/harness-api/messages.js +4 -1
- package/dist/harness-api/schema.d.ts +9 -4
- package/dist/harness-api/schema.js +11 -2
- package/dist/manifest-schemas.js +8 -4
- package/dist/schemas/agent-folder/agent-md.schema.json +79 -3
- package/dist/schemas/agent-folder/runtime.schema.json +13 -1
- package/dist/schemas/agent-manifest.schema.json +139 -1
- package/dist/schemas/harness-manifest.schema.json +124 -1
- package/dist/schemas/runtime-manifest.schema.json +13 -1
- package/dist/types/manifest.d.ts +47 -0
- package/package.json +5 -1
package/dist/contracts.d.ts
CHANGED
|
@@ -47,6 +47,53 @@ export declare const HttpToolTargetSchema: z.ZodObject<{
|
|
|
47
47
|
* needs for itself (the proxy, the trust store, `PATH`, `HOME`) and `NYLORUN_*` are reserved.
|
|
48
48
|
*/
|
|
49
49
|
export declare const ENVIRONMENT_NAME_PATTERN: RegExp;
|
|
50
|
+
export declare const HarnessEngineSchema: z.ZodObject<{
|
|
51
|
+
sandbox: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
52
|
+
bash: "bash";
|
|
53
|
+
edit: "edit";
|
|
54
|
+
glob: "glob";
|
|
55
|
+
grep: "grep";
|
|
56
|
+
read: "read";
|
|
57
|
+
write: "write";
|
|
58
|
+
}>>>;
|
|
59
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
read: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
save: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
outputs: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
toolSearch: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
instructions: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
66
|
+
artifacts_read: "artifacts_read";
|
|
67
|
+
artifacts_save: "artifacts_save";
|
|
68
|
+
connection: "connection";
|
|
69
|
+
memory: "memory";
|
|
70
|
+
outputs: "outputs";
|
|
71
|
+
plan: "plan";
|
|
72
|
+
sandbox: "sandbox";
|
|
73
|
+
skill_folder: "skill_folder";
|
|
74
|
+
skills: "skills";
|
|
75
|
+
tool_search: "tool_search";
|
|
76
|
+
wake: "wake";
|
|
77
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
78
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
79
|
+
name: z.ZodEnum<{
|
|
80
|
+
artifacts_read: "artifacts_read";
|
|
81
|
+
artifacts_save: "artifacts_save";
|
|
82
|
+
connection: "connection";
|
|
83
|
+
memory: "memory";
|
|
84
|
+
outputs: "outputs";
|
|
85
|
+
plan: "plan";
|
|
86
|
+
sandbox: "sandbox";
|
|
87
|
+
skill_folder: "skill_folder";
|
|
88
|
+
skills: "skills";
|
|
89
|
+
tool_search: "tool_search";
|
|
90
|
+
wake: "wake";
|
|
91
|
+
}>;
|
|
92
|
+
version: z.ZodNumber;
|
|
93
|
+
sha256: z.ZodString;
|
|
94
|
+
source: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strict>>>;
|
|
96
|
+
}, z.core.$strict>;
|
|
50
97
|
/**
|
|
51
98
|
* An agent's manifest (manifest v7). Its output is checked against `AgentManifest` here and below
|
|
52
99
|
* (`ManifestDrift`): the hand-written type keeps its read-only fields and its docs.
|
|
@@ -267,6 +314,7 @@ export declare const EnvironmentRecipeSchema: z.ZodObject<{
|
|
|
267
314
|
description: z.ZodOptional<z.ZodString>;
|
|
268
315
|
type: z.ZodLiteral<"bearer">;
|
|
269
316
|
url: z.ZodString;
|
|
317
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
270
318
|
}, z.core.$strict>, z.ZodObject<{
|
|
271
319
|
via: z.ZodOptional<z.ZodString>;
|
|
272
320
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -276,6 +324,7 @@ export declare const EnvironmentRecipeSchema: z.ZodObject<{
|
|
|
276
324
|
description: z.ZodOptional<z.ZodString>;
|
|
277
325
|
type: z.ZodLiteral<"headers">;
|
|
278
326
|
url: z.ZodString;
|
|
327
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
279
328
|
}, z.core.$strict>], "type">>>>;
|
|
280
329
|
}, z.core.$strict>;
|
|
281
330
|
export type EnvironmentRecipe = z.infer<typeof EnvironmentRecipeSchema>;
|
|
@@ -474,6 +523,7 @@ export declare const AgentViewSchema: z.ZodObject<{
|
|
|
474
523
|
description: z.ZodOptional<z.ZodString>;
|
|
475
524
|
type: z.ZodLiteral<"bearer">;
|
|
476
525
|
url: z.ZodString;
|
|
526
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
477
527
|
}, z.core.$strict>, z.ZodObject<{
|
|
478
528
|
via: z.ZodOptional<z.ZodString>;
|
|
479
529
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -483,6 +533,7 @@ export declare const AgentViewSchema: z.ZodObject<{
|
|
|
483
533
|
description: z.ZodOptional<z.ZodString>;
|
|
484
534
|
type: z.ZodLiteral<"headers">;
|
|
485
535
|
url: z.ZodString;
|
|
536
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
486
537
|
}, z.core.$strict>], "type">>>>;
|
|
487
538
|
}, z.core.$strict>;
|
|
488
539
|
limits: z.ZodObject<{
|
|
@@ -984,8 +1035,10 @@ export type CredentialIdentity = z.infer<typeof CredentialIdentitySchema>;
|
|
|
984
1035
|
* `toolPrefix`: what the gateway at `via` puts before each tool name it lists, such as
|
|
985
1036
|
* LiteLLM's `github-` (Host feature `gateway-credentials`). The Runtime lists the server's tools
|
|
986
1037
|
* without it, so tool names, a manifest's `tools` settings and tool policy rules name the server's
|
|
987
|
-
* own tools, and calls a tool by the name the gateway listed.
|
|
988
|
-
*
|
|
1038
|
+
* own tools, and calls a tool by the name the gateway listed. On an Agent's secret, only with
|
|
1039
|
+
* `via`. A manifest's `bearer` or `headers` slot may name it too (Host feature `secret-routing`),
|
|
1040
|
+
* with or without a `via`: it applies whenever the credential's requests go to a `via`, and wins
|
|
1041
|
+
* over the secret's.
|
|
989
1042
|
*/
|
|
990
1043
|
export declare const CredentialToolPrefixSchema: z.ZodString;
|
|
991
1044
|
export declare const RESERVED_ENVIRONMENT_NAMES: ReadonlySet<string>;
|
|
@@ -1077,12 +1130,15 @@ export type PutAgentSecretRequest = z.infer<typeof PutAgentSecretRequestSchema>;
|
|
|
1077
1130
|
/**
|
|
1078
1131
|
* A secret write on an Environment whose manifest declares the secret's slot: only the
|
|
1079
1132
|
* value, `value` (or `headers` for a `headers` slot). Its type and binding come from the slot,
|
|
1080
|
-
* except
|
|
1133
|
+
* except this installation's routing of a `bearer` or `headers` slot (Host feature
|
|
1134
|
+
* `secret-routing`): `via`, where its requests go, which wins over the slot's; and the gateway's
|
|
1135
|
+
* `toolPrefix`, which needs a `via` (the write's or the slot's) and gives way to the slot's.
|
|
1081
1136
|
*/
|
|
1082
1137
|
export declare const PutAgentSecretValueRequestSchema: z.ZodObject<{
|
|
1083
1138
|
requestId: z.ZodOptional<z.ZodString>;
|
|
1084
1139
|
value: z.ZodOptional<z.ZodString>;
|
|
1085
1140
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1141
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1086
1142
|
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1087
1143
|
}, z.core.$strict>;
|
|
1088
1144
|
export type PutAgentSecretValueRequest = z.infer<typeof PutAgentSecretValueRequestSchema>;
|
|
@@ -1091,7 +1147,11 @@ export declare function environmentSecretNameError(type: PutAgentSecretRequest["
|
|
|
1091
1147
|
/**
|
|
1092
1148
|
* One secret an Environment of a kind needs: its type and binding, never its value. The
|
|
1093
1149
|
* value is written into each Environment's vault (`PUT /v1/agents/{id}/secrets/{name}`
|
|
1094
|
-
* with `{ value }`, or `{ headers }` for `headers`), and the binding comes from here.
|
|
1150
|
+
* with `{ value }`, or `{ headers }` for `headers`), and the binding comes from here. A
|
|
1151
|
+
* `bearer` or `headers` slot may name the gateway's `toolPrefix` without a `via`, so a folder
|
|
1152
|
+
* names how tools are listed and each installation binds where requests go (the write's `via`,
|
|
1153
|
+
* Host feature `secret-routing`). At each request the credential's `via` is the secret's, else
|
|
1154
|
+
* the slot's, else none (the slot's `url`), and its tool prefix the slot's, else the secret's.
|
|
1095
1155
|
*/
|
|
1096
1156
|
export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1097
1157
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1115,6 +1175,7 @@ export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1115
1175
|
description: z.ZodOptional<z.ZodString>;
|
|
1116
1176
|
type: z.ZodLiteral<"bearer">;
|
|
1117
1177
|
url: z.ZodString;
|
|
1178
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1118
1179
|
}, z.core.$strict>, z.ZodObject<{
|
|
1119
1180
|
via: z.ZodOptional<z.ZodString>;
|
|
1120
1181
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1124,6 +1185,7 @@ export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1124
1185
|
description: z.ZodOptional<z.ZodString>;
|
|
1125
1186
|
type: z.ZodLiteral<"headers">;
|
|
1126
1187
|
url: z.ZodString;
|
|
1188
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1127
1189
|
}, z.core.$strict>], "type">;
|
|
1128
1190
|
export type EnvironmentSecretSlot = z.infer<typeof EnvironmentSecretSlotSchema>;
|
|
1129
1191
|
/** A manifest's secret slots: at most the Tenant's Runtime limit `environmentSecretSlots`. */
|
|
@@ -1149,6 +1211,7 @@ export declare const EnvironmentSecretSlotsSchema: z.ZodRecord<z.ZodString, z.Zo
|
|
|
1149
1211
|
description: z.ZodOptional<z.ZodString>;
|
|
1150
1212
|
type: z.ZodLiteral<"bearer">;
|
|
1151
1213
|
url: z.ZodString;
|
|
1214
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1152
1215
|
}, z.core.$strict>, z.ZodObject<{
|
|
1153
1216
|
via: z.ZodOptional<z.ZodString>;
|
|
1154
1217
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1158,6 +1221,7 @@ export declare const EnvironmentSecretSlotsSchema: z.ZodRecord<z.ZodString, z.Zo
|
|
|
1158
1221
|
description: z.ZodOptional<z.ZodString>;
|
|
1159
1222
|
type: z.ZodLiteral<"headers">;
|
|
1160
1223
|
url: z.ZodString;
|
|
1224
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1161
1225
|
}, z.core.$strict>], "type">>;
|
|
1162
1226
|
export type EnvironmentSecretSlots = z.infer<typeof EnvironmentSecretSlotsSchema>;
|
|
1163
1227
|
/** The schema version of an agent manifest the Runtime saves at `/v1/agent-manifests/{name}`. */
|
|
@@ -1172,6 +1236,7 @@ export declare const HarnessMemorySchema: z.ZodObject<{
|
|
|
1172
1236
|
read_write: "read_write";
|
|
1173
1237
|
}>>;
|
|
1174
1238
|
instructions: z.ZodOptional<z.ZodString>;
|
|
1239
|
+
index: z.ZodOptional<z.ZodBoolean>;
|
|
1175
1240
|
}, z.core.$strict>;
|
|
1176
1241
|
/**
|
|
1177
1242
|
* `harness.model` (Host feature `agent-model`): the model the agent runs on, `<provider>/<model>`
|
|
@@ -1577,6 +1642,7 @@ export declare const RuntimeSectionSchema: z.ZodObject<{
|
|
|
1577
1642
|
description: z.ZodOptional<z.ZodString>;
|
|
1578
1643
|
type: z.ZodLiteral<"bearer">;
|
|
1579
1644
|
url: z.ZodString;
|
|
1645
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1580
1646
|
}, z.core.$strict>, z.ZodObject<{
|
|
1581
1647
|
via: z.ZodOptional<z.ZodString>;
|
|
1582
1648
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1586,6 +1652,7 @@ export declare const RuntimeSectionSchema: z.ZodObject<{
|
|
|
1586
1652
|
description: z.ZodOptional<z.ZodString>;
|
|
1587
1653
|
type: z.ZodLiteral<"headers">;
|
|
1588
1654
|
url: z.ZodString;
|
|
1655
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1589
1656
|
}, z.core.$strict>], "type">>>;
|
|
1590
1657
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1591
1658
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -1679,6 +1746,7 @@ export declare const AgentManifestV8Schema: z.ZodObject<{
|
|
|
1679
1746
|
description: z.ZodOptional<z.ZodString>;
|
|
1680
1747
|
type: z.ZodLiteral<"bearer">;
|
|
1681
1748
|
url: z.ZodString;
|
|
1749
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1682
1750
|
}, z.core.$strict>, z.ZodObject<{
|
|
1683
1751
|
via: z.ZodOptional<z.ZodString>;
|
|
1684
1752
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1688,6 +1756,7 @@ export declare const AgentManifestV8Schema: z.ZodObject<{
|
|
|
1688
1756
|
description: z.ZodOptional<z.ZodString>;
|
|
1689
1757
|
type: z.ZodLiteral<"headers">;
|
|
1690
1758
|
url: z.ZodString;
|
|
1759
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1691
1760
|
}, z.core.$strict>], "type">>>;
|
|
1692
1761
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1693
1762
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -1801,8 +1870,56 @@ export declare const HarnessManifestFileSchema: z.ZodObject<{
|
|
|
1801
1870
|
read_write: "read_write";
|
|
1802
1871
|
}>>;
|
|
1803
1872
|
instructions: z.ZodOptional<z.ZodString>;
|
|
1873
|
+
index: z.ZodOptional<z.ZodBoolean>;
|
|
1804
1874
|
}, z.core.$strict>>;
|
|
1805
1875
|
model: z.ZodOptional<z.ZodString>;
|
|
1876
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
1877
|
+
sandbox: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1878
|
+
bash: "bash";
|
|
1879
|
+
edit: "edit";
|
|
1880
|
+
glob: "glob";
|
|
1881
|
+
grep: "grep";
|
|
1882
|
+
read: "read";
|
|
1883
|
+
write: "write";
|
|
1884
|
+
}>>>;
|
|
1885
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1886
|
+
read: z.ZodOptional<z.ZodBoolean>;
|
|
1887
|
+
save: z.ZodOptional<z.ZodBoolean>;
|
|
1888
|
+
}, z.core.$strict>>;
|
|
1889
|
+
outputs: z.ZodOptional<z.ZodBoolean>;
|
|
1890
|
+
toolSearch: z.ZodOptional<z.ZodBoolean>;
|
|
1891
|
+
instructions: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1892
|
+
artifacts_read: "artifacts_read";
|
|
1893
|
+
artifacts_save: "artifacts_save";
|
|
1894
|
+
connection: "connection";
|
|
1895
|
+
memory: "memory";
|
|
1896
|
+
outputs: "outputs";
|
|
1897
|
+
plan: "plan";
|
|
1898
|
+
sandbox: "sandbox";
|
|
1899
|
+
skill_folder: "skill_folder";
|
|
1900
|
+
skills: "skills";
|
|
1901
|
+
tool_search: "tool_search";
|
|
1902
|
+
wake: "wake";
|
|
1903
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
1904
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1905
|
+
name: z.ZodEnum<{
|
|
1906
|
+
artifacts_read: "artifacts_read";
|
|
1907
|
+
artifacts_save: "artifacts_save";
|
|
1908
|
+
connection: "connection";
|
|
1909
|
+
memory: "memory";
|
|
1910
|
+
outputs: "outputs";
|
|
1911
|
+
plan: "plan";
|
|
1912
|
+
sandbox: "sandbox";
|
|
1913
|
+
skill_folder: "skill_folder";
|
|
1914
|
+
skills: "skills";
|
|
1915
|
+
tool_search: "tool_search";
|
|
1916
|
+
wake: "wake";
|
|
1917
|
+
}>;
|
|
1918
|
+
version: z.ZodNumber;
|
|
1919
|
+
sha256: z.ZodString;
|
|
1920
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1921
|
+
}, z.core.$strict>>>;
|
|
1922
|
+
}, z.core.$strict>>;
|
|
1806
1923
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1807
1924
|
requires: z.ZodOptional<z.ZodObject<{
|
|
1808
1925
|
sandbox: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1875,6 +1992,7 @@ export declare const RuntimeManifestFileSchema: z.ZodObject<{
|
|
|
1875
1992
|
description: z.ZodOptional<z.ZodString>;
|
|
1876
1993
|
type: z.ZodLiteral<"bearer">;
|
|
1877
1994
|
url: z.ZodString;
|
|
1995
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1878
1996
|
}, z.core.$strict>, z.ZodObject<{
|
|
1879
1997
|
via: z.ZodOptional<z.ZodString>;
|
|
1880
1998
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1884,6 +2002,7 @@ export declare const RuntimeManifestFileSchema: z.ZodObject<{
|
|
|
1884
2002
|
description: z.ZodOptional<z.ZodString>;
|
|
1885
2003
|
type: z.ZodLiteral<"headers">;
|
|
1886
2004
|
url: z.ZodString;
|
|
2005
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1887
2006
|
}, z.core.$strict>], "type">>>;
|
|
1888
2007
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1889
2008
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2010,8 +2129,56 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
|
|
|
2010
2129
|
read_write: "read_write";
|
|
2011
2130
|
}>>;
|
|
2012
2131
|
instructions: z.ZodOptional<z.ZodString>;
|
|
2132
|
+
index: z.ZodOptional<z.ZodBoolean>;
|
|
2013
2133
|
}, z.core.$strict>>;
|
|
2014
2134
|
model: z.ZodOptional<z.ZodString>;
|
|
2135
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
2136
|
+
sandbox: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2137
|
+
bash: "bash";
|
|
2138
|
+
edit: "edit";
|
|
2139
|
+
glob: "glob";
|
|
2140
|
+
grep: "grep";
|
|
2141
|
+
read: "read";
|
|
2142
|
+
write: "write";
|
|
2143
|
+
}>>>;
|
|
2144
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
2145
|
+
read: z.ZodOptional<z.ZodBoolean>;
|
|
2146
|
+
save: z.ZodOptional<z.ZodBoolean>;
|
|
2147
|
+
}, z.core.$strict>>;
|
|
2148
|
+
outputs: z.ZodOptional<z.ZodBoolean>;
|
|
2149
|
+
toolSearch: z.ZodOptional<z.ZodBoolean>;
|
|
2150
|
+
instructions: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
2151
|
+
artifacts_read: "artifacts_read";
|
|
2152
|
+
artifacts_save: "artifacts_save";
|
|
2153
|
+
connection: "connection";
|
|
2154
|
+
memory: "memory";
|
|
2155
|
+
outputs: "outputs";
|
|
2156
|
+
plan: "plan";
|
|
2157
|
+
sandbox: "sandbox";
|
|
2158
|
+
skill_folder: "skill_folder";
|
|
2159
|
+
skills: "skills";
|
|
2160
|
+
tool_search: "tool_search";
|
|
2161
|
+
wake: "wake";
|
|
2162
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
2163
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2164
|
+
name: z.ZodEnum<{
|
|
2165
|
+
artifacts_read: "artifacts_read";
|
|
2166
|
+
artifacts_save: "artifacts_save";
|
|
2167
|
+
connection: "connection";
|
|
2168
|
+
memory: "memory";
|
|
2169
|
+
outputs: "outputs";
|
|
2170
|
+
plan: "plan";
|
|
2171
|
+
sandbox: "sandbox";
|
|
2172
|
+
skill_folder: "skill_folder";
|
|
2173
|
+
skills: "skills";
|
|
2174
|
+
tool_search: "tool_search";
|
|
2175
|
+
wake: "wake";
|
|
2176
|
+
}>;
|
|
2177
|
+
version: z.ZodNumber;
|
|
2178
|
+
sha256: z.ZodString;
|
|
2179
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2180
|
+
}, z.core.$strict>>>;
|
|
2181
|
+
}, z.core.$strict>>;
|
|
2015
2182
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2016
2183
|
requires: z.ZodOptional<z.ZodObject<{
|
|
2017
2184
|
sandbox: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2081,6 +2248,7 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
|
|
|
2081
2248
|
description: z.ZodOptional<z.ZodString>;
|
|
2082
2249
|
type: z.ZodLiteral<"bearer">;
|
|
2083
2250
|
url: z.ZodString;
|
|
2251
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2084
2252
|
}, z.core.$strict>, z.ZodObject<{
|
|
2085
2253
|
via: z.ZodOptional<z.ZodString>;
|
|
2086
2254
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2090,6 +2258,7 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
|
|
|
2090
2258
|
description: z.ZodOptional<z.ZodString>;
|
|
2091
2259
|
type: z.ZodLiteral<"headers">;
|
|
2092
2260
|
url: z.ZodString;
|
|
2261
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2093
2262
|
}, z.core.$strict>], "type">>>;
|
|
2094
2263
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2095
2264
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2191,6 +2360,7 @@ export declare const PutAgentManifestRequestSchema: z.ZodObject<{
|
|
|
2191
2360
|
description: z.ZodOptional<z.ZodString>;
|
|
2192
2361
|
type: z.ZodLiteral<"bearer">;
|
|
2193
2362
|
url: z.ZodString;
|
|
2363
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2194
2364
|
}, z.core.$strict>, z.ZodObject<{
|
|
2195
2365
|
via: z.ZodOptional<z.ZodString>;
|
|
2196
2366
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2200,6 +2370,7 @@ export declare const PutAgentManifestRequestSchema: z.ZodObject<{
|
|
|
2200
2370
|
description: z.ZodOptional<z.ZodString>;
|
|
2201
2371
|
type: z.ZodLiteral<"headers">;
|
|
2202
2372
|
url: z.ZodString;
|
|
2373
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2203
2374
|
}, z.core.$strict>], "type">>>;
|
|
2204
2375
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2205
2376
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2364,6 +2535,7 @@ export declare const AgentManifestViewSchema: z.ZodObject<{
|
|
|
2364
2535
|
description: z.ZodOptional<z.ZodString>;
|
|
2365
2536
|
type: z.ZodLiteral<"bearer">;
|
|
2366
2537
|
url: z.ZodString;
|
|
2538
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2367
2539
|
}, z.core.$strict>, z.ZodObject<{
|
|
2368
2540
|
via: z.ZodOptional<z.ZodString>;
|
|
2369
2541
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2373,6 +2545,7 @@ export declare const AgentManifestViewSchema: z.ZodObject<{
|
|
|
2373
2545
|
description: z.ZodOptional<z.ZodString>;
|
|
2374
2546
|
type: z.ZodLiteral<"headers">;
|
|
2375
2547
|
url: z.ZodString;
|
|
2548
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2376
2549
|
}, z.core.$strict>], "type">>>;
|
|
2377
2550
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2378
2551
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2552,6 +2725,7 @@ export declare const ListAgentManifestsResponseSchema: z.ZodObject<{
|
|
|
2552
2725
|
description: z.ZodOptional<z.ZodString>;
|
|
2553
2726
|
type: z.ZodLiteral<"bearer">;
|
|
2554
2727
|
url: z.ZodString;
|
|
2728
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2555
2729
|
}, z.core.$strict>, z.ZodObject<{
|
|
2556
2730
|
via: z.ZodOptional<z.ZodString>;
|
|
2557
2731
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2561,6 +2735,7 @@ export declare const ListAgentManifestsResponseSchema: z.ZodObject<{
|
|
|
2561
2735
|
description: z.ZodOptional<z.ZodString>;
|
|
2562
2736
|
type: z.ZodLiteral<"headers">;
|
|
2563
2737
|
url: z.ZodString;
|
|
2738
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2564
2739
|
}, z.core.$strict>], "type">>>;
|
|
2565
2740
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2566
2741
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2737,6 +2912,7 @@ export declare const AgentManifestPlanSchema: z.ZodObject<{
|
|
|
2737
2912
|
description: z.ZodOptional<z.ZodString>;
|
|
2738
2913
|
type: z.ZodLiteral<"bearer">;
|
|
2739
2914
|
url: z.ZodString;
|
|
2915
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2740
2916
|
}, z.core.$strict>, z.ZodObject<{
|
|
2741
2917
|
via: z.ZodOptional<z.ZodString>;
|
|
2742
2918
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2746,6 +2922,7 @@ export declare const AgentManifestPlanSchema: z.ZodObject<{
|
|
|
2746
2922
|
description: z.ZodOptional<z.ZodString>;
|
|
2747
2923
|
type: z.ZodLiteral<"headers">;
|
|
2748
2924
|
url: z.ZodString;
|
|
2925
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2749
2926
|
}, z.core.$strict>], "type">>>;
|
|
2750
2927
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2751
2928
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2872,6 +3049,7 @@ export declare const SaveAgentManifestResponseSchema: z.ZodObject<{
|
|
|
2872
3049
|
description: z.ZodOptional<z.ZodString>;
|
|
2873
3050
|
type: z.ZodLiteral<"bearer">;
|
|
2874
3051
|
url: z.ZodString;
|
|
3052
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2875
3053
|
}, z.core.$strict>, z.ZodObject<{
|
|
2876
3054
|
via: z.ZodOptional<z.ZodString>;
|
|
2877
3055
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2881,6 +3059,7 @@ export declare const SaveAgentManifestResponseSchema: z.ZodObject<{
|
|
|
2881
3059
|
description: z.ZodOptional<z.ZodString>;
|
|
2882
3060
|
type: z.ZodLiteral<"headers">;
|
|
2883
3061
|
url: z.ZodString;
|
|
3062
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2884
3063
|
}, z.core.$strict>], "type">>>;
|
|
2885
3064
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2886
3065
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -3157,6 +3336,7 @@ export declare const ForkAgentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3157
3336
|
description: z.ZodOptional<z.ZodString>;
|
|
3158
3337
|
type: z.ZodLiteral<"bearer">;
|
|
3159
3338
|
url: z.ZodString;
|
|
3339
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
3160
3340
|
}, z.core.$strict>, z.ZodObject<{
|
|
3161
3341
|
via: z.ZodOptional<z.ZodString>;
|
|
3162
3342
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -3166,6 +3346,7 @@ export declare const ForkAgentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3166
3346
|
description: z.ZodOptional<z.ZodString>;
|
|
3167
3347
|
type: z.ZodLiteral<"headers">;
|
|
3168
3348
|
url: z.ZodString;
|
|
3349
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
3169
3350
|
}, z.core.$strict>], "type">>>>;
|
|
3170
3351
|
}, z.core.$strict>;
|
|
3171
3352
|
limits: z.ZodObject<{
|
|
@@ -3696,6 +3877,16 @@ export declare const MessageDeliverySchema: z.ZodEnum<{
|
|
|
3696
3877
|
reject: "reject";
|
|
3697
3878
|
}>;
|
|
3698
3879
|
export type MessageDelivery = z.infer<typeof MessageDeliverySchema>;
|
|
3880
|
+
/**
|
|
3881
|
+
* A message's `removeTools` (Host feature `remove-tools`): the tools its turn may not use, by
|
|
3882
|
+
* name. In the root agent and each agent it uses as a tool, a name removes the declared tool of
|
|
3883
|
+
* that name (an agent used as a tool included), `<server>__<tool>` disables an MCP server's tool
|
|
3884
|
+
* (the server's name and the tool's own name on it), and `<server>` every tool of that server.
|
|
3885
|
+
* Applied to the version the turn runs, after a turn's first segment re-pins the session to its
|
|
3886
|
+
* Agent's version; names that version does not have are ignored. Any caller may send it: it
|
|
3887
|
+
* only narrows.
|
|
3888
|
+
*/
|
|
3889
|
+
export declare const RemoveToolsSchema: z.ZodArray<z.ZodString>;
|
|
3699
3890
|
/**
|
|
3700
3891
|
* One part of a user message (protocol 6): text, or a file by artifact id. A file part without
|
|
3701
3892
|
* `version` means the artifact's latest version when the message is accepted; the Runtime pins
|
|
@@ -3719,6 +3910,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3719
3910
|
idempotencyKey: z.ZodString;
|
|
3720
3911
|
type: z.ZodLiteral<"message">;
|
|
3721
3912
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3913
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3722
3914
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3723
3915
|
queue: "queue";
|
|
3724
3916
|
reject: "reject";
|
|
@@ -3729,6 +3921,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3729
3921
|
idempotencyKey: z.ZodString;
|
|
3730
3922
|
type: z.ZodLiteral<"message">;
|
|
3731
3923
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3924
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3732
3925
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3733
3926
|
queue: "queue";
|
|
3734
3927
|
reject: "reject";
|
|
@@ -3739,6 +3932,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3739
3932
|
idempotencyKey: z.ZodString;
|
|
3740
3933
|
type: z.ZodLiteral<"message">;
|
|
3741
3934
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3935
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3742
3936
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3743
3937
|
queue: "queue";
|
|
3744
3938
|
reject: "reject";
|
|
@@ -3763,6 +3957,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
3763
3957
|
idempotencyKey: z.ZodString;
|
|
3764
3958
|
type: z.ZodLiteral<"message">;
|
|
3765
3959
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3960
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3766
3961
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3767
3962
|
queue: "queue";
|
|
3768
3963
|
reject: "reject";
|
|
@@ -3773,6 +3968,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
3773
3968
|
idempotencyKey: z.ZodString;
|
|
3774
3969
|
type: z.ZodLiteral<"message">;
|
|
3775
3970
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3971
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3776
3972
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3777
3973
|
queue: "queue";
|
|
3778
3974
|
reject: "reject";
|
|
@@ -3783,6 +3979,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
3783
3979
|
idempotencyKey: z.ZodString;
|
|
3784
3980
|
type: z.ZodLiteral<"message">;
|
|
3785
3981
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3982
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3786
3983
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3787
3984
|
queue: "queue";
|
|
3788
3985
|
reject: "reject";
|
|
@@ -3818,6 +4015,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
3818
4015
|
idempotencyKey: z.ZodString;
|
|
3819
4016
|
type: z.ZodLiteral<"message">;
|
|
3820
4017
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4018
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3821
4019
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3822
4020
|
queue: "queue";
|
|
3823
4021
|
reject: "reject";
|
|
@@ -3828,6 +4026,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
3828
4026
|
idempotencyKey: z.ZodString;
|
|
3829
4027
|
type: z.ZodLiteral<"message">;
|
|
3830
4028
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4029
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3831
4030
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3832
4031
|
queue: "queue";
|
|
3833
4032
|
reject: "reject";
|
|
@@ -3838,6 +4037,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
3838
4037
|
idempotencyKey: z.ZodString;
|
|
3839
4038
|
type: z.ZodLiteral<"message">;
|
|
3840
4039
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4040
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3841
4041
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3842
4042
|
queue: "queue";
|
|
3843
4043
|
reject: "reject";
|
|
@@ -4778,6 +4978,7 @@ export declare const CommandMessagePayloadSchema: z.ZodObject<{
|
|
|
4778
4978
|
version: z.ZodOptional<z.ZodNumber>;
|
|
4779
4979
|
}, z.core.$strict>], "type">>>;
|
|
4780
4980
|
manifest: z.ZodOptional<z.ZodUnknown>;
|
|
4981
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4781
4982
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
4782
4983
|
queue: "queue";
|
|
4783
4984
|
reject: "reject";
|
|
@@ -5001,6 +5202,125 @@ export declare const ArtifactExportFailedPayloadSchema: z.ZodObject<{
|
|
|
5001
5202
|
name: z.ZodString;
|
|
5002
5203
|
message: z.ZodString;
|
|
5003
5204
|
}, z.core.$loose>;
|
|
5205
|
+
/**
|
|
5206
|
+
* `engine.diagnostic`: our engine met something about the session's agent that the agent's
|
|
5207
|
+
* declarations decide, and says so instead of choosing for it (ADR-100), such as `mcp_tools_inline`:
|
|
5208
|
+
* an agent that does not declare `engine.toolSearch` has MCP tool schemas past the share of the
|
|
5209
|
+
* model's context window at which they would be deferred, and keeps them all in its tool list.
|
|
5210
|
+
*/
|
|
5211
|
+
export declare const EngineDiagnosticPayloadSchema: z.ZodObject<{
|
|
5212
|
+
code: z.ZodString;
|
|
5213
|
+
message: z.ZodString;
|
|
5214
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
5215
|
+
}, z.core.$loose>;
|
|
5216
|
+
/** Where the model a session's turns call comes from (`SessionModelRecord.source`). */
|
|
5217
|
+
export declare const SESSION_MODEL_SOURCES: readonly ["manifest", "session", "tenant"];
|
|
5218
|
+
/**
|
|
5219
|
+
* Why a session's turns call the Tenant's model and not the one its manifest (`harness.model`) or
|
|
5220
|
+
* its own choice (`PUT /v1/sessions/{id}/model`) names: that model's provider is not connected,
|
|
5221
|
+
* its provider's catalog does not list it, or it is no `<provider>/<model>` the Tenant takes.
|
|
5222
|
+
*/
|
|
5223
|
+
export declare const SESSION_MODEL_FALLBACK_REASONS: readonly ["provider_not_connected", "not_in_catalog", "invalid_model"];
|
|
5224
|
+
/**
|
|
5225
|
+
* The model a session's turns call, and why (`model` on `GET /v1/sessions/{id}`, and the
|
|
5226
|
+
* `session.model` event): `source` `manifest` for the model its Agent's version names
|
|
5227
|
+
* (`harness.model`, Host feature `agent-model`), `session` for its own choice, `tenant` for the
|
|
5228
|
+
* Tenant's model. On a fallback to the Tenant's, `reason` says why the model `requested` (by the
|
|
5229
|
+
* manifest or the session) is not used.
|
|
5230
|
+
*/
|
|
5231
|
+
export declare const SessionModelRecordSchema: z.ZodObject<{
|
|
5232
|
+
provider: z.ZodString;
|
|
5233
|
+
model: z.ZodString;
|
|
5234
|
+
source: z.ZodEnum<{
|
|
5235
|
+
manifest: "manifest";
|
|
5236
|
+
session: "session";
|
|
5237
|
+
tenant: "tenant";
|
|
5238
|
+
}>;
|
|
5239
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5240
|
+
invalid_model: "invalid_model";
|
|
5241
|
+
not_in_catalog: "not_in_catalog";
|
|
5242
|
+
provider_not_connected: "provider_not_connected";
|
|
5243
|
+
}>>;
|
|
5244
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
5245
|
+
provider: z.ZodString;
|
|
5246
|
+
model: z.ZodString;
|
|
5247
|
+
by: z.ZodEnum<{
|
|
5248
|
+
manifest: "manifest";
|
|
5249
|
+
session: "session";
|
|
5250
|
+
}>;
|
|
5251
|
+
}, z.core.$strict>>;
|
|
5252
|
+
}, z.core.$strict>;
|
|
5253
|
+
export type SessionModelRecord = z.infer<typeof SessionModelRecordSchema>;
|
|
5254
|
+
/**
|
|
5255
|
+
* `session.model`: the model the session's turns call was set (the session opened, its own model
|
|
5256
|
+
* was chosen or cleared) or changed (at a turn's start: a provider was connected or disconnected,
|
|
5257
|
+
* the Tenant's model changed), fallbacks included. `previous` is what it was, absent at the first.
|
|
5258
|
+
*/
|
|
5259
|
+
export declare const SessionModelPayloadSchema: z.ZodObject<{
|
|
5260
|
+
provider: z.ZodString;
|
|
5261
|
+
model: z.ZodString;
|
|
5262
|
+
source: z.ZodEnum<{
|
|
5263
|
+
manifest: "manifest";
|
|
5264
|
+
session: "session";
|
|
5265
|
+
tenant: "tenant";
|
|
5266
|
+
}>;
|
|
5267
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5268
|
+
invalid_model: "invalid_model";
|
|
5269
|
+
not_in_catalog: "not_in_catalog";
|
|
5270
|
+
provider_not_connected: "provider_not_connected";
|
|
5271
|
+
}>>;
|
|
5272
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
5273
|
+
provider: z.ZodString;
|
|
5274
|
+
model: z.ZodString;
|
|
5275
|
+
by: z.ZodEnum<{
|
|
5276
|
+
manifest: "manifest";
|
|
5277
|
+
session: "session";
|
|
5278
|
+
}>;
|
|
5279
|
+
}, z.core.$strict>>;
|
|
5280
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
5281
|
+
provider: z.ZodString;
|
|
5282
|
+
model: z.ZodString;
|
|
5283
|
+
source: z.ZodEnum<{
|
|
5284
|
+
manifest: "manifest";
|
|
5285
|
+
session: "session";
|
|
5286
|
+
tenant: "tenant";
|
|
5287
|
+
}>;
|
|
5288
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5289
|
+
invalid_model: "invalid_model";
|
|
5290
|
+
not_in_catalog: "not_in_catalog";
|
|
5291
|
+
provider_not_connected: "provider_not_connected";
|
|
5292
|
+
}>>;
|
|
5293
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
5294
|
+
provider: z.ZodString;
|
|
5295
|
+
model: z.ZodString;
|
|
5296
|
+
by: z.ZodEnum<{
|
|
5297
|
+
manifest: "manifest";
|
|
5298
|
+
session: "session";
|
|
5299
|
+
}>;
|
|
5300
|
+
}, z.core.$strict>>;
|
|
5301
|
+
}, z.core.$strict>>;
|
|
5302
|
+
}, z.core.$loose>;
|
|
5303
|
+
/**
|
|
5304
|
+
* `turn.version_kept`: a turn's first segment did not move the session to the version its Agent
|
|
5305
|
+
* runs now (`from` is the version the session keeps, `to` the Agent's). `variant_invalid`: the
|
|
5306
|
+
* turn manifest its message carried is no variant of that version, and the turn runs it on the
|
|
5307
|
+
* version it was accepted for, so the variant never widens what the turn may do. Send the message
|
|
5308
|
+
* again with a variant of the new version, or name the tools with `removeTools`.
|
|
5309
|
+
*/
|
|
5310
|
+
export declare const TurnVersionKeptPayloadSchema: z.ZodObject<{
|
|
5311
|
+
reason: z.ZodEnum<{
|
|
5312
|
+
variant_invalid: "variant_invalid";
|
|
5313
|
+
}>;
|
|
5314
|
+
from: z.ZodObject<{
|
|
5315
|
+
name: z.ZodString;
|
|
5316
|
+
version: z.ZodNumber;
|
|
5317
|
+
}, z.core.$strict>;
|
|
5318
|
+
to: z.ZodObject<{
|
|
5319
|
+
name: z.ZodString;
|
|
5320
|
+
version: z.ZodNumber;
|
|
5321
|
+
}, z.core.$strict>;
|
|
5322
|
+
message: z.ZodString;
|
|
5323
|
+
}, z.core.$loose>;
|
|
5004
5324
|
/** What readying one declared MCP server found (`mcp.discovered`). */
|
|
5005
5325
|
export declare const McpServerOutcomeSchema: z.ZodObject<{
|
|
5006
5326
|
agentId: z.ZodOptional<z.ZodString>;
|
|
@@ -5023,8 +5343,10 @@ export declare const McpServerOutcomeSchema: z.ZodObject<{
|
|
|
5023
5343
|
export type McpServerOutcome = z.infer<typeof McpServerOutcomeSchema>;
|
|
5024
5344
|
/**
|
|
5025
5345
|
* `mcp.discovered`: the session's first turn readied its MCP servers and pinned the tools they
|
|
5026
|
-
* offer, one outcome per declared server. A server that did not connect adds no tools
|
|
5027
|
-
*
|
|
5346
|
+
* offer, one outcome per declared server. A server that did not connect adds no tools until a
|
|
5347
|
+
* later turn's first segment, which tries it again: once it answers, it joins the session's
|
|
5348
|
+
* snapshot and a second `mcp.discovered` names it (`rejoined`, with only the servers that joined).
|
|
5349
|
+
* This is where the model's missing tools show (also `mcpDiagnostics`).
|
|
5028
5350
|
*/
|
|
5029
5351
|
export declare const McpDiscoveredPayloadSchema: z.ZodObject<{
|
|
5030
5352
|
servers: z.ZodArray<z.ZodObject<{
|
|
@@ -5045,6 +5367,7 @@ export declare const McpDiscoveredPayloadSchema: z.ZodObject<{
|
|
|
5045
5367
|
unknownTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5046
5368
|
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5047
5369
|
}, z.core.$loose>>;
|
|
5370
|
+
rejoined: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5048
5371
|
}, z.core.$loose>;
|
|
5049
5372
|
/**
|
|
5050
5373
|
* The event catalog (Durable Streams §9.5): every session event type, its payload schema, its
|
|
@@ -5073,6 +5396,7 @@ export declare const EVENT_CATALOG: {
|
|
|
5073
5396
|
version: z.ZodOptional<z.ZodNumber>;
|
|
5074
5397
|
}, z.core.$strict>], "type">>>;
|
|
5075
5398
|
manifest: z.ZodOptional<z.ZodUnknown>;
|
|
5399
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5076
5400
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
5077
5401
|
queue: "queue";
|
|
5078
5402
|
reject: "reject";
|
|
@@ -5192,6 +5516,72 @@ export declare const EVENT_CATALOG: {
|
|
|
5192
5516
|
readonly source: "api";
|
|
5193
5517
|
readonly version: 1;
|
|
5194
5518
|
};
|
|
5519
|
+
readonly "turn.version_kept": {
|
|
5520
|
+
readonly payload: z.ZodObject<{
|
|
5521
|
+
reason: z.ZodEnum<{
|
|
5522
|
+
variant_invalid: "variant_invalid";
|
|
5523
|
+
}>;
|
|
5524
|
+
from: z.ZodObject<{
|
|
5525
|
+
name: z.ZodString;
|
|
5526
|
+
version: z.ZodNumber;
|
|
5527
|
+
}, z.core.$strict>;
|
|
5528
|
+
to: z.ZodObject<{
|
|
5529
|
+
name: z.ZodString;
|
|
5530
|
+
version: z.ZodNumber;
|
|
5531
|
+
}, z.core.$strict>;
|
|
5532
|
+
message: z.ZodString;
|
|
5533
|
+
}, z.core.$loose>;
|
|
5534
|
+
readonly source: "api";
|
|
5535
|
+
readonly version: 1;
|
|
5536
|
+
};
|
|
5537
|
+
readonly "session.model": {
|
|
5538
|
+
readonly payload: z.ZodObject<{
|
|
5539
|
+
provider: z.ZodString;
|
|
5540
|
+
model: z.ZodString;
|
|
5541
|
+
source: z.ZodEnum<{
|
|
5542
|
+
manifest: "manifest";
|
|
5543
|
+
session: "session";
|
|
5544
|
+
tenant: "tenant";
|
|
5545
|
+
}>;
|
|
5546
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5547
|
+
invalid_model: "invalid_model";
|
|
5548
|
+
not_in_catalog: "not_in_catalog";
|
|
5549
|
+
provider_not_connected: "provider_not_connected";
|
|
5550
|
+
}>>;
|
|
5551
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
5552
|
+
provider: z.ZodString;
|
|
5553
|
+
model: z.ZodString;
|
|
5554
|
+
by: z.ZodEnum<{
|
|
5555
|
+
manifest: "manifest";
|
|
5556
|
+
session: "session";
|
|
5557
|
+
}>;
|
|
5558
|
+
}, z.core.$strict>>;
|
|
5559
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
5560
|
+
provider: z.ZodString;
|
|
5561
|
+
model: z.ZodString;
|
|
5562
|
+
source: z.ZodEnum<{
|
|
5563
|
+
manifest: "manifest";
|
|
5564
|
+
session: "session";
|
|
5565
|
+
tenant: "tenant";
|
|
5566
|
+
}>;
|
|
5567
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5568
|
+
invalid_model: "invalid_model";
|
|
5569
|
+
not_in_catalog: "not_in_catalog";
|
|
5570
|
+
provider_not_connected: "provider_not_connected";
|
|
5571
|
+
}>>;
|
|
5572
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
5573
|
+
provider: z.ZodString;
|
|
5574
|
+
model: z.ZodString;
|
|
5575
|
+
by: z.ZodEnum<{
|
|
5576
|
+
manifest: "manifest";
|
|
5577
|
+
session: "session";
|
|
5578
|
+
}>;
|
|
5579
|
+
}, z.core.$strict>>;
|
|
5580
|
+
}, z.core.$strict>>;
|
|
5581
|
+
}, z.core.$loose>;
|
|
5582
|
+
readonly source: "api";
|
|
5583
|
+
readonly version: 1;
|
|
5584
|
+
};
|
|
5195
5585
|
readonly "message.queued": {
|
|
5196
5586
|
readonly payload: z.ZodObject<{
|
|
5197
5587
|
queuedMessageId: z.ZodString;
|
|
@@ -5452,6 +5842,7 @@ export declare const EVENT_CATALOG: {
|
|
|
5452
5842
|
unknownTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5453
5843
|
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5454
5844
|
}, z.core.$loose>>;
|
|
5845
|
+
rejoined: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5455
5846
|
}, z.core.$loose>;
|
|
5456
5847
|
readonly source: "loop";
|
|
5457
5848
|
readonly version: 1;
|
|
@@ -5473,6 +5864,15 @@ export declare const EVENT_CATALOG: {
|
|
|
5473
5864
|
readonly source: "loop";
|
|
5474
5865
|
readonly version: 1;
|
|
5475
5866
|
};
|
|
5867
|
+
readonly "engine.diagnostic": {
|
|
5868
|
+
readonly payload: z.ZodObject<{
|
|
5869
|
+
code: z.ZodString;
|
|
5870
|
+
message: z.ZodString;
|
|
5871
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
5872
|
+
}, z.core.$loose>;
|
|
5873
|
+
readonly source: "loop";
|
|
5874
|
+
readonly version: 1;
|
|
5875
|
+
};
|
|
5476
5876
|
readonly "environment.state": {
|
|
5477
5877
|
readonly payload: z.ZodObject<{
|
|
5478
5878
|
state: z.ZodEnum<{
|
|
@@ -5686,7 +6086,7 @@ type EventSchemaOf<T extends EventType> = z.ZodObject<typeof eventEnvelope & {
|
|
|
5686
6086
|
/** One schema per event type, keyed by type (the OpenAPI components). */
|
|
5687
6087
|
export declare const EVENT_SCHEMAS: { [T in EventType]: EventSchemaOf<T>; };
|
|
5688
6088
|
/** A session event of a known type, discriminated on `type`. */
|
|
5689
|
-
export declare const SessionEventSchema: z.ZodDiscriminatedUnion<[EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">, ...EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">[]], "type">;
|
|
6089
|
+
export declare const SessionEventSchema: z.ZodDiscriminatedUnion<[EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "engine.diagnostic" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "session.model" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "turn.version_kept" | "wake.booked" | "wake.cancelled">, ...EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "engine.diagnostic" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "session.model" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "turn.version_kept" | "wake.booked" | "wake.cancelled">[]], "type">;
|
|
5690
6090
|
export type SessionEvent = {
|
|
5691
6091
|
[T in EventType]: z.infer<EventSchemaOf<T>>;
|
|
5692
6092
|
}[EventType];
|
|
@@ -5701,7 +6101,7 @@ export type SessionEventOf<T extends EventType> = Extract<SessionEvent, {
|
|
|
5701
6101
|
*/
|
|
5702
6102
|
export declare function parseSessionEvent(value: unknown): SessionEvent | LiveEvent;
|
|
5703
6103
|
export declare const SessionItemsResponseSchema: z.ZodObject<{
|
|
5704
|
-
items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">, ...EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">[]], "type">>;
|
|
6104
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "engine.diagnostic" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "session.model" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "turn.version_kept" | "wake.booked" | "wake.cancelled">, ...EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "engine.diagnostic" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "session.model" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "turn.version_kept" | "wake.booked" | "wake.cancelled">[]], "type">>;
|
|
5705
6105
|
cursor: z.ZodNullable<z.ZodString>;
|
|
5706
6106
|
}, z.core.$strip>;
|
|
5707
6107
|
export type SessionItemsResponse = {
|
|
@@ -6475,6 +6875,7 @@ export declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
6475
6875
|
description: z.ZodOptional<z.ZodString>;
|
|
6476
6876
|
type: z.ZodLiteral<"bearer">;
|
|
6477
6877
|
url: z.ZodString;
|
|
6878
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
6478
6879
|
}, z.core.$strict>, z.ZodObject<{
|
|
6479
6880
|
via: z.ZodOptional<z.ZodString>;
|
|
6480
6881
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -6484,6 +6885,7 @@ export declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
6484
6885
|
description: z.ZodOptional<z.ZodString>;
|
|
6485
6886
|
type: z.ZodLiteral<"headers">;
|
|
6486
6887
|
url: z.ZodString;
|
|
6888
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
6487
6889
|
}, z.core.$strict>], "type">>>>;
|
|
6488
6890
|
}, z.core.$strict>;
|
|
6489
6891
|
limits: z.ZodObject<{
|
|
@@ -6599,6 +7001,28 @@ export declare const SessionViewSchema: z.ZodObject<{
|
|
|
6599
7001
|
closedReason: z.ZodOptional<z.ZodString>;
|
|
6600
7002
|
mcpSnapshot: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6601
7003
|
mcpDiagnostics: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7004
|
+
model: z.ZodNullable<z.ZodObject<{
|
|
7005
|
+
provider: z.ZodString;
|
|
7006
|
+
model: z.ZodString;
|
|
7007
|
+
source: z.ZodEnum<{
|
|
7008
|
+
manifest: "manifest";
|
|
7009
|
+
session: "session";
|
|
7010
|
+
tenant: "tenant";
|
|
7011
|
+
}>;
|
|
7012
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
7013
|
+
invalid_model: "invalid_model";
|
|
7014
|
+
not_in_catalog: "not_in_catalog";
|
|
7015
|
+
provider_not_connected: "provider_not_connected";
|
|
7016
|
+
}>>;
|
|
7017
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
7018
|
+
provider: z.ZodString;
|
|
7019
|
+
model: z.ZodString;
|
|
7020
|
+
by: z.ZodEnum<{
|
|
7021
|
+
manifest: "manifest";
|
|
7022
|
+
session: "session";
|
|
7023
|
+
}>;
|
|
7024
|
+
}, z.core.$strict>>;
|
|
7025
|
+
}, z.core.$strict>>;
|
|
6602
7026
|
waits: z.ZodOptional<z.ZodUnknown>;
|
|
6603
7027
|
error: z.ZodOptional<z.ZodString>;
|
|
6604
7028
|
uncertainEffects: z.ZodArray<z.ZodObject<{
|
|
@@ -6991,8 +7415,9 @@ export type ToolInputCondition = z.infer<typeof ToolInputConditionSchema>;
|
|
|
6991
7415
|
* identity: an MCP tool's own name on its server, or an HTTP tool's declared name; never the name
|
|
6992
7416
|
* a harness gave the model; `*` for any run of characters), `server` (an MCP server's name),
|
|
6993
7417
|
* `kind`, `agent` (the agent that calls it: the agent manifest's name, or the id of an agent used
|
|
6994
|
-
* as a tool or of a flow's agent; never an Agent's id
|
|
6995
|
-
*
|
|
7418
|
+
* as a tool or of a flow's agent; never an Agent's id; the session's root agent's name matches its
|
|
7419
|
+
* subagents' calls too, those of the agents it uses as tools) and `when` (fields of the input, by
|
|
7420
|
+
* dotted path). The strictest matching rule decides: `deny` refuses the call before it is sent,
|
|
6996
7421
|
* `ask` holds it until a person approves it on the session (`approve`), `allow` runs it. A call no
|
|
6997
7422
|
* rule matches runs. Sandbox tools never cross the gate; their network side is egress policy.
|
|
6998
7423
|
*
|
|
@@ -7983,7 +8408,7 @@ export declare const SessionManifestViewSchema: z.ZodObject<{
|
|
|
7983
8408
|
}, z.core.$strict>;
|
|
7984
8409
|
export type SessionManifestView = z.infer<typeof SessionManifestViewSchema>;
|
|
7985
8410
|
export declare const HistoryPageSchema: z.ZodObject<{
|
|
7986
|
-
items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">, ...EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">[]], "type">>;
|
|
8411
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "engine.diagnostic" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "session.model" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "turn.version_kept" | "wake.booked" | "wake.cancelled">, ...EventSchemaOf<"agent.attached" | "artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "engine.diagnostic" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "plan.updated" | "queue.taken" | "session.model" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "turn.version_kept" | "wake.booked" | "wake.cancelled">[]], "type">>;
|
|
7987
8412
|
cursor: z.ZodNullable<z.ZodString>;
|
|
7988
8413
|
tail: z.ZodBoolean;
|
|
7989
8414
|
}, z.core.$strip>;
|
|
@@ -8499,6 +8924,7 @@ export declare const AgentPageSchema: z.ZodObject<{
|
|
|
8499
8924
|
description: z.ZodOptional<z.ZodString>;
|
|
8500
8925
|
type: z.ZodLiteral<"bearer">;
|
|
8501
8926
|
url: z.ZodString;
|
|
8927
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
8502
8928
|
}, z.core.$strict>, z.ZodObject<{
|
|
8503
8929
|
via: z.ZodOptional<z.ZodString>;
|
|
8504
8930
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -8508,6 +8934,7 @@ export declare const AgentPageSchema: z.ZodObject<{
|
|
|
8508
8934
|
description: z.ZodOptional<z.ZodString>;
|
|
8509
8935
|
type: z.ZodLiteral<"headers">;
|
|
8510
8936
|
url: z.ZodString;
|
|
8937
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
8511
8938
|
}, z.core.$strict>], "type">>>>;
|
|
8512
8939
|
}, z.core.$strict>;
|
|
8513
8940
|
limits: z.ZodObject<{
|