@nylorun/core 0.32.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 +91 -0
- package/dist/compatibility.d.ts +17 -1
- package/dist/compatibility.js +16 -0
- package/dist/contracts.d.ts +447 -11
- package/dist/contracts.js +211 -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<{
|
|
@@ -919,6 +970,9 @@ export declare const TenantEnvironmentsConfigSchema: z.ZodObject<{
|
|
|
919
970
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
920
971
|
stopGrace: z.ZodOptional<z.ZodString>;
|
|
921
972
|
}, z.core.$strict>>;
|
|
973
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
974
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
975
|
+
}, z.core.$strict>>;
|
|
922
976
|
placement: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
923
977
|
hosts: z.ZodArray<z.ZodEnum<{
|
|
924
978
|
"harness-container": "harness-container";
|
|
@@ -945,6 +999,9 @@ export declare const PutTenantEnvironmentsRequestSchema: z.ZodObject<{
|
|
|
945
999
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
946
1000
|
stopGrace: z.ZodOptional<z.ZodString>;
|
|
947
1001
|
}, z.core.$strict>>;
|
|
1002
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
1003
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1004
|
+
}, z.core.$strict>>;
|
|
948
1005
|
placement: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
949
1006
|
hosts: z.ZodArray<z.ZodEnum<{
|
|
950
1007
|
"harness-container": "harness-container";
|
|
@@ -978,8 +1035,10 @@ export type CredentialIdentity = z.infer<typeof CredentialIdentitySchema>;
|
|
|
978
1035
|
* `toolPrefix`: what the gateway at `via` puts before each tool name it lists, such as
|
|
979
1036
|
* LiteLLM's `github-` (Host feature `gateway-credentials`). The Runtime lists the server's tools
|
|
980
1037
|
* without it, so tool names, a manifest's `tools` settings and tool policy rules name the server's
|
|
981
|
-
* own tools, and calls a tool by the name the gateway listed.
|
|
982
|
-
*
|
|
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.
|
|
983
1042
|
*/
|
|
984
1043
|
export declare const CredentialToolPrefixSchema: z.ZodString;
|
|
985
1044
|
export declare const RESERVED_ENVIRONMENT_NAMES: ReadonlySet<string>;
|
|
@@ -1071,12 +1130,15 @@ export type PutAgentSecretRequest = z.infer<typeof PutAgentSecretRequestSchema>;
|
|
|
1071
1130
|
/**
|
|
1072
1131
|
* A secret write on an Environment whose manifest declares the secret's slot: only the
|
|
1073
1132
|
* value, `value` (or `headers` for a `headers` slot). Its type and binding come from the slot,
|
|
1074
|
-
* 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.
|
|
1075
1136
|
*/
|
|
1076
1137
|
export declare const PutAgentSecretValueRequestSchema: z.ZodObject<{
|
|
1077
1138
|
requestId: z.ZodOptional<z.ZodString>;
|
|
1078
1139
|
value: z.ZodOptional<z.ZodString>;
|
|
1079
1140
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1141
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1080
1142
|
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1081
1143
|
}, z.core.$strict>;
|
|
1082
1144
|
export type PutAgentSecretValueRequest = z.infer<typeof PutAgentSecretValueRequestSchema>;
|
|
@@ -1085,7 +1147,11 @@ export declare function environmentSecretNameError(type: PutAgentSecretRequest["
|
|
|
1085
1147
|
/**
|
|
1086
1148
|
* One secret an Environment of a kind needs: its type and binding, never its value. The
|
|
1087
1149
|
* value is written into each Environment's vault (`PUT /v1/agents/{id}/secrets/{name}`
|
|
1088
|
-
* 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.
|
|
1089
1155
|
*/
|
|
1090
1156
|
export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1091
1157
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1109,6 +1175,7 @@ export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1109
1175
|
description: z.ZodOptional<z.ZodString>;
|
|
1110
1176
|
type: z.ZodLiteral<"bearer">;
|
|
1111
1177
|
url: z.ZodString;
|
|
1178
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1112
1179
|
}, z.core.$strict>, z.ZodObject<{
|
|
1113
1180
|
via: z.ZodOptional<z.ZodString>;
|
|
1114
1181
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1118,6 +1185,7 @@ export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1118
1185
|
description: z.ZodOptional<z.ZodString>;
|
|
1119
1186
|
type: z.ZodLiteral<"headers">;
|
|
1120
1187
|
url: z.ZodString;
|
|
1188
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1121
1189
|
}, z.core.$strict>], "type">;
|
|
1122
1190
|
export type EnvironmentSecretSlot = z.infer<typeof EnvironmentSecretSlotSchema>;
|
|
1123
1191
|
/** A manifest's secret slots: at most the Tenant's Runtime limit `environmentSecretSlots`. */
|
|
@@ -1143,6 +1211,7 @@ export declare const EnvironmentSecretSlotsSchema: z.ZodRecord<z.ZodString, z.Zo
|
|
|
1143
1211
|
description: z.ZodOptional<z.ZodString>;
|
|
1144
1212
|
type: z.ZodLiteral<"bearer">;
|
|
1145
1213
|
url: z.ZodString;
|
|
1214
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1146
1215
|
}, z.core.$strict>, z.ZodObject<{
|
|
1147
1216
|
via: z.ZodOptional<z.ZodString>;
|
|
1148
1217
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1152,6 +1221,7 @@ export declare const EnvironmentSecretSlotsSchema: z.ZodRecord<z.ZodString, z.Zo
|
|
|
1152
1221
|
description: z.ZodOptional<z.ZodString>;
|
|
1153
1222
|
type: z.ZodLiteral<"headers">;
|
|
1154
1223
|
url: z.ZodString;
|
|
1224
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1155
1225
|
}, z.core.$strict>], "type">>;
|
|
1156
1226
|
export type EnvironmentSecretSlots = z.infer<typeof EnvironmentSecretSlotsSchema>;
|
|
1157
1227
|
/** The schema version of an agent manifest the Runtime saves at `/v1/agent-manifests/{name}`. */
|
|
@@ -1166,6 +1236,7 @@ export declare const HarnessMemorySchema: z.ZodObject<{
|
|
|
1166
1236
|
read_write: "read_write";
|
|
1167
1237
|
}>>;
|
|
1168
1238
|
instructions: z.ZodOptional<z.ZodString>;
|
|
1239
|
+
index: z.ZodOptional<z.ZodBoolean>;
|
|
1169
1240
|
}, z.core.$strict>;
|
|
1170
1241
|
/**
|
|
1171
1242
|
* `harness.model` (Host feature `agent-model`): the model the agent runs on, `<provider>/<model>`
|
|
@@ -1571,6 +1642,7 @@ export declare const RuntimeSectionSchema: z.ZodObject<{
|
|
|
1571
1642
|
description: z.ZodOptional<z.ZodString>;
|
|
1572
1643
|
type: z.ZodLiteral<"bearer">;
|
|
1573
1644
|
url: z.ZodString;
|
|
1645
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1574
1646
|
}, z.core.$strict>, z.ZodObject<{
|
|
1575
1647
|
via: z.ZodOptional<z.ZodString>;
|
|
1576
1648
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1580,6 +1652,7 @@ export declare const RuntimeSectionSchema: z.ZodObject<{
|
|
|
1580
1652
|
description: z.ZodOptional<z.ZodString>;
|
|
1581
1653
|
type: z.ZodLiteral<"headers">;
|
|
1582
1654
|
url: z.ZodString;
|
|
1655
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1583
1656
|
}, z.core.$strict>], "type">>>;
|
|
1584
1657
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1585
1658
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -1673,6 +1746,7 @@ export declare const AgentManifestV8Schema: z.ZodObject<{
|
|
|
1673
1746
|
description: z.ZodOptional<z.ZodString>;
|
|
1674
1747
|
type: z.ZodLiteral<"bearer">;
|
|
1675
1748
|
url: z.ZodString;
|
|
1749
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1676
1750
|
}, z.core.$strict>, z.ZodObject<{
|
|
1677
1751
|
via: z.ZodOptional<z.ZodString>;
|
|
1678
1752
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1682,6 +1756,7 @@ export declare const AgentManifestV8Schema: z.ZodObject<{
|
|
|
1682
1756
|
description: z.ZodOptional<z.ZodString>;
|
|
1683
1757
|
type: z.ZodLiteral<"headers">;
|
|
1684
1758
|
url: z.ZodString;
|
|
1759
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1685
1760
|
}, z.core.$strict>], "type">>>;
|
|
1686
1761
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1687
1762
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -1795,8 +1870,56 @@ export declare const HarnessManifestFileSchema: z.ZodObject<{
|
|
|
1795
1870
|
read_write: "read_write";
|
|
1796
1871
|
}>>;
|
|
1797
1872
|
instructions: z.ZodOptional<z.ZodString>;
|
|
1873
|
+
index: z.ZodOptional<z.ZodBoolean>;
|
|
1798
1874
|
}, z.core.$strict>>;
|
|
1799
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>>;
|
|
1800
1923
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1801
1924
|
requires: z.ZodOptional<z.ZodObject<{
|
|
1802
1925
|
sandbox: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1869,6 +1992,7 @@ export declare const RuntimeManifestFileSchema: z.ZodObject<{
|
|
|
1869
1992
|
description: z.ZodOptional<z.ZodString>;
|
|
1870
1993
|
type: z.ZodLiteral<"bearer">;
|
|
1871
1994
|
url: z.ZodString;
|
|
1995
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1872
1996
|
}, z.core.$strict>, z.ZodObject<{
|
|
1873
1997
|
via: z.ZodOptional<z.ZodString>;
|
|
1874
1998
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1878,6 +2002,7 @@ export declare const RuntimeManifestFileSchema: z.ZodObject<{
|
|
|
1878
2002
|
description: z.ZodOptional<z.ZodString>;
|
|
1879
2003
|
type: z.ZodLiteral<"headers">;
|
|
1880
2004
|
url: z.ZodString;
|
|
2005
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1881
2006
|
}, z.core.$strict>], "type">>>;
|
|
1882
2007
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1883
2008
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2004,8 +2129,56 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
|
|
|
2004
2129
|
read_write: "read_write";
|
|
2005
2130
|
}>>;
|
|
2006
2131
|
instructions: z.ZodOptional<z.ZodString>;
|
|
2132
|
+
index: z.ZodOptional<z.ZodBoolean>;
|
|
2007
2133
|
}, z.core.$strict>>;
|
|
2008
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>>;
|
|
2009
2182
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2010
2183
|
requires: z.ZodOptional<z.ZodObject<{
|
|
2011
2184
|
sandbox: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2075,6 +2248,7 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
|
|
|
2075
2248
|
description: z.ZodOptional<z.ZodString>;
|
|
2076
2249
|
type: z.ZodLiteral<"bearer">;
|
|
2077
2250
|
url: z.ZodString;
|
|
2251
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2078
2252
|
}, z.core.$strict>, z.ZodObject<{
|
|
2079
2253
|
via: z.ZodOptional<z.ZodString>;
|
|
2080
2254
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2084,6 +2258,7 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
|
|
|
2084
2258
|
description: z.ZodOptional<z.ZodString>;
|
|
2085
2259
|
type: z.ZodLiteral<"headers">;
|
|
2086
2260
|
url: z.ZodString;
|
|
2261
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2087
2262
|
}, z.core.$strict>], "type">>>;
|
|
2088
2263
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2089
2264
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2185,6 +2360,7 @@ export declare const PutAgentManifestRequestSchema: z.ZodObject<{
|
|
|
2185
2360
|
description: z.ZodOptional<z.ZodString>;
|
|
2186
2361
|
type: z.ZodLiteral<"bearer">;
|
|
2187
2362
|
url: z.ZodString;
|
|
2363
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2188
2364
|
}, z.core.$strict>, z.ZodObject<{
|
|
2189
2365
|
via: z.ZodOptional<z.ZodString>;
|
|
2190
2366
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2194,6 +2370,7 @@ export declare const PutAgentManifestRequestSchema: z.ZodObject<{
|
|
|
2194
2370
|
description: z.ZodOptional<z.ZodString>;
|
|
2195
2371
|
type: z.ZodLiteral<"headers">;
|
|
2196
2372
|
url: z.ZodString;
|
|
2373
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2197
2374
|
}, z.core.$strict>], "type">>>;
|
|
2198
2375
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2199
2376
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2358,6 +2535,7 @@ export declare const AgentManifestViewSchema: z.ZodObject<{
|
|
|
2358
2535
|
description: z.ZodOptional<z.ZodString>;
|
|
2359
2536
|
type: z.ZodLiteral<"bearer">;
|
|
2360
2537
|
url: z.ZodString;
|
|
2538
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2361
2539
|
}, z.core.$strict>, z.ZodObject<{
|
|
2362
2540
|
via: z.ZodOptional<z.ZodString>;
|
|
2363
2541
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2367,6 +2545,7 @@ export declare const AgentManifestViewSchema: z.ZodObject<{
|
|
|
2367
2545
|
description: z.ZodOptional<z.ZodString>;
|
|
2368
2546
|
type: z.ZodLiteral<"headers">;
|
|
2369
2547
|
url: z.ZodString;
|
|
2548
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2370
2549
|
}, z.core.$strict>], "type">>>;
|
|
2371
2550
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2372
2551
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2546,6 +2725,7 @@ export declare const ListAgentManifestsResponseSchema: z.ZodObject<{
|
|
|
2546
2725
|
description: z.ZodOptional<z.ZodString>;
|
|
2547
2726
|
type: z.ZodLiteral<"bearer">;
|
|
2548
2727
|
url: z.ZodString;
|
|
2728
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2549
2729
|
}, z.core.$strict>, z.ZodObject<{
|
|
2550
2730
|
via: z.ZodOptional<z.ZodString>;
|
|
2551
2731
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2555,6 +2735,7 @@ export declare const ListAgentManifestsResponseSchema: z.ZodObject<{
|
|
|
2555
2735
|
description: z.ZodOptional<z.ZodString>;
|
|
2556
2736
|
type: z.ZodLiteral<"headers">;
|
|
2557
2737
|
url: z.ZodString;
|
|
2738
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2558
2739
|
}, z.core.$strict>], "type">>>;
|
|
2559
2740
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2560
2741
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2731,6 +2912,7 @@ export declare const AgentManifestPlanSchema: z.ZodObject<{
|
|
|
2731
2912
|
description: z.ZodOptional<z.ZodString>;
|
|
2732
2913
|
type: z.ZodLiteral<"bearer">;
|
|
2733
2914
|
url: z.ZodString;
|
|
2915
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2734
2916
|
}, z.core.$strict>, z.ZodObject<{
|
|
2735
2917
|
via: z.ZodOptional<z.ZodString>;
|
|
2736
2918
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2740,6 +2922,7 @@ export declare const AgentManifestPlanSchema: z.ZodObject<{
|
|
|
2740
2922
|
description: z.ZodOptional<z.ZodString>;
|
|
2741
2923
|
type: z.ZodLiteral<"headers">;
|
|
2742
2924
|
url: z.ZodString;
|
|
2925
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2743
2926
|
}, z.core.$strict>], "type">>>;
|
|
2744
2927
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2745
2928
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2866,6 +3049,7 @@ export declare const SaveAgentManifestResponseSchema: z.ZodObject<{
|
|
|
2866
3049
|
description: z.ZodOptional<z.ZodString>;
|
|
2867
3050
|
type: z.ZodLiteral<"bearer">;
|
|
2868
3051
|
url: z.ZodString;
|
|
3052
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2869
3053
|
}, z.core.$strict>, z.ZodObject<{
|
|
2870
3054
|
via: z.ZodOptional<z.ZodString>;
|
|
2871
3055
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2875,6 +3059,7 @@ export declare const SaveAgentManifestResponseSchema: z.ZodObject<{
|
|
|
2875
3059
|
description: z.ZodOptional<z.ZodString>;
|
|
2876
3060
|
type: z.ZodLiteral<"headers">;
|
|
2877
3061
|
url: z.ZodString;
|
|
3062
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2878
3063
|
}, z.core.$strict>], "type">>>;
|
|
2879
3064
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2880
3065
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -3151,6 +3336,7 @@ export declare const ForkAgentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3151
3336
|
description: z.ZodOptional<z.ZodString>;
|
|
3152
3337
|
type: z.ZodLiteral<"bearer">;
|
|
3153
3338
|
url: z.ZodString;
|
|
3339
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
3154
3340
|
}, z.core.$strict>, z.ZodObject<{
|
|
3155
3341
|
via: z.ZodOptional<z.ZodString>;
|
|
3156
3342
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -3160,6 +3346,7 @@ export declare const ForkAgentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3160
3346
|
description: z.ZodOptional<z.ZodString>;
|
|
3161
3347
|
type: z.ZodLiteral<"headers">;
|
|
3162
3348
|
url: z.ZodString;
|
|
3349
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
3163
3350
|
}, z.core.$strict>], "type">>>>;
|
|
3164
3351
|
}, z.core.$strict>;
|
|
3165
3352
|
limits: z.ZodObject<{
|
|
@@ -3690,6 +3877,16 @@ export declare const MessageDeliverySchema: z.ZodEnum<{
|
|
|
3690
3877
|
reject: "reject";
|
|
3691
3878
|
}>;
|
|
3692
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>;
|
|
3693
3890
|
/**
|
|
3694
3891
|
* One part of a user message (protocol 6): text, or a file by artifact id. A file part without
|
|
3695
3892
|
* `version` means the artifact's latest version when the message is accepted; the Runtime pins
|
|
@@ -3713,6 +3910,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3713
3910
|
idempotencyKey: z.ZodString;
|
|
3714
3911
|
type: z.ZodLiteral<"message">;
|
|
3715
3912
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3913
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3716
3914
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3717
3915
|
queue: "queue";
|
|
3718
3916
|
reject: "reject";
|
|
@@ -3723,6 +3921,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3723
3921
|
idempotencyKey: z.ZodString;
|
|
3724
3922
|
type: z.ZodLiteral<"message">;
|
|
3725
3923
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3924
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3726
3925
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3727
3926
|
queue: "queue";
|
|
3728
3927
|
reject: "reject";
|
|
@@ -3733,6 +3932,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3733
3932
|
idempotencyKey: z.ZodString;
|
|
3734
3933
|
type: z.ZodLiteral<"message">;
|
|
3735
3934
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3935
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3736
3936
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3737
3937
|
queue: "queue";
|
|
3738
3938
|
reject: "reject";
|
|
@@ -3757,6 +3957,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
3757
3957
|
idempotencyKey: z.ZodString;
|
|
3758
3958
|
type: z.ZodLiteral<"message">;
|
|
3759
3959
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3960
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3760
3961
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3761
3962
|
queue: "queue";
|
|
3762
3963
|
reject: "reject";
|
|
@@ -3767,6 +3968,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
3767
3968
|
idempotencyKey: z.ZodString;
|
|
3768
3969
|
type: z.ZodLiteral<"message">;
|
|
3769
3970
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3971
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3770
3972
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3771
3973
|
queue: "queue";
|
|
3772
3974
|
reject: "reject";
|
|
@@ -3777,6 +3979,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
3777
3979
|
idempotencyKey: z.ZodString;
|
|
3778
3980
|
type: z.ZodLiteral<"message">;
|
|
3779
3981
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3982
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3780
3983
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3781
3984
|
queue: "queue";
|
|
3782
3985
|
reject: "reject";
|
|
@@ -3812,6 +4015,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
3812
4015
|
idempotencyKey: z.ZodString;
|
|
3813
4016
|
type: z.ZodLiteral<"message">;
|
|
3814
4017
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4018
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3815
4019
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3816
4020
|
queue: "queue";
|
|
3817
4021
|
reject: "reject";
|
|
@@ -3822,6 +4026,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
3822
4026
|
idempotencyKey: z.ZodString;
|
|
3823
4027
|
type: z.ZodLiteral<"message">;
|
|
3824
4028
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4029
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3825
4030
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3826
4031
|
queue: "queue";
|
|
3827
4032
|
reject: "reject";
|
|
@@ -3832,6 +4037,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
3832
4037
|
idempotencyKey: z.ZodString;
|
|
3833
4038
|
type: z.ZodLiteral<"message">;
|
|
3834
4039
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4040
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3835
4041
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3836
4042
|
queue: "queue";
|
|
3837
4043
|
reject: "reject";
|
|
@@ -4772,6 +4978,7 @@ export declare const CommandMessagePayloadSchema: z.ZodObject<{
|
|
|
4772
4978
|
version: z.ZodOptional<z.ZodNumber>;
|
|
4773
4979
|
}, z.core.$strict>], "type">>>;
|
|
4774
4980
|
manifest: z.ZodOptional<z.ZodUnknown>;
|
|
4981
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4775
4982
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
4776
4983
|
queue: "queue";
|
|
4777
4984
|
reject: "reject";
|
|
@@ -4995,6 +5202,125 @@ export declare const ArtifactExportFailedPayloadSchema: z.ZodObject<{
|
|
|
4995
5202
|
name: z.ZodString;
|
|
4996
5203
|
message: z.ZodString;
|
|
4997
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>;
|
|
4998
5324
|
/** What readying one declared MCP server found (`mcp.discovered`). */
|
|
4999
5325
|
export declare const McpServerOutcomeSchema: z.ZodObject<{
|
|
5000
5326
|
agentId: z.ZodOptional<z.ZodString>;
|
|
@@ -5017,8 +5343,10 @@ export declare const McpServerOutcomeSchema: z.ZodObject<{
|
|
|
5017
5343
|
export type McpServerOutcome = z.infer<typeof McpServerOutcomeSchema>;
|
|
5018
5344
|
/**
|
|
5019
5345
|
* `mcp.discovered`: the session's first turn readied its MCP servers and pinned the tools they
|
|
5020
|
-
* offer, one outcome per declared server. A server that did not connect adds no tools
|
|
5021
|
-
*
|
|
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`).
|
|
5022
5350
|
*/
|
|
5023
5351
|
export declare const McpDiscoveredPayloadSchema: z.ZodObject<{
|
|
5024
5352
|
servers: z.ZodArray<z.ZodObject<{
|
|
@@ -5039,6 +5367,7 @@ export declare const McpDiscoveredPayloadSchema: z.ZodObject<{
|
|
|
5039
5367
|
unknownTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5040
5368
|
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5041
5369
|
}, z.core.$loose>>;
|
|
5370
|
+
rejoined: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5042
5371
|
}, z.core.$loose>;
|
|
5043
5372
|
/**
|
|
5044
5373
|
* The event catalog (Durable Streams §9.5): every session event type, its payload schema, its
|
|
@@ -5067,6 +5396,7 @@ export declare const EVENT_CATALOG: {
|
|
|
5067
5396
|
version: z.ZodOptional<z.ZodNumber>;
|
|
5068
5397
|
}, z.core.$strict>], "type">>>;
|
|
5069
5398
|
manifest: z.ZodOptional<z.ZodUnknown>;
|
|
5399
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5070
5400
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
5071
5401
|
queue: "queue";
|
|
5072
5402
|
reject: "reject";
|
|
@@ -5186,6 +5516,72 @@ export declare const EVENT_CATALOG: {
|
|
|
5186
5516
|
readonly source: "api";
|
|
5187
5517
|
readonly version: 1;
|
|
5188
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
|
+
};
|
|
5189
5585
|
readonly "message.queued": {
|
|
5190
5586
|
readonly payload: z.ZodObject<{
|
|
5191
5587
|
queuedMessageId: z.ZodString;
|
|
@@ -5446,6 +5842,7 @@ export declare const EVENT_CATALOG: {
|
|
|
5446
5842
|
unknownTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5447
5843
|
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5448
5844
|
}, z.core.$loose>>;
|
|
5845
|
+
rejoined: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5449
5846
|
}, z.core.$loose>;
|
|
5450
5847
|
readonly source: "loop";
|
|
5451
5848
|
readonly version: 1;
|
|
@@ -5467,6 +5864,15 @@ export declare const EVENT_CATALOG: {
|
|
|
5467
5864
|
readonly source: "loop";
|
|
5468
5865
|
readonly version: 1;
|
|
5469
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
|
+
};
|
|
5470
5876
|
readonly "environment.state": {
|
|
5471
5877
|
readonly payload: z.ZodObject<{
|
|
5472
5878
|
state: z.ZodEnum<{
|
|
@@ -5680,7 +6086,7 @@ type EventSchemaOf<T extends EventType> = z.ZodObject<typeof eventEnvelope & {
|
|
|
5680
6086
|
/** One schema per event type, keyed by type (the OpenAPI components). */
|
|
5681
6087
|
export declare const EVENT_SCHEMAS: { [T in EventType]: EventSchemaOf<T>; };
|
|
5682
6088
|
/** A session event of a known type, discriminated on `type`. */
|
|
5683
|
-
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">;
|
|
5684
6090
|
export type SessionEvent = {
|
|
5685
6091
|
[T in EventType]: z.infer<EventSchemaOf<T>>;
|
|
5686
6092
|
}[EventType];
|
|
@@ -5695,7 +6101,7 @@ export type SessionEventOf<T extends EventType> = Extract<SessionEvent, {
|
|
|
5695
6101
|
*/
|
|
5696
6102
|
export declare function parseSessionEvent(value: unknown): SessionEvent | LiveEvent;
|
|
5697
6103
|
export declare const SessionItemsResponseSchema: z.ZodObject<{
|
|
5698
|
-
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">>;
|
|
5699
6105
|
cursor: z.ZodNullable<z.ZodString>;
|
|
5700
6106
|
}, z.core.$strip>;
|
|
5701
6107
|
export type SessionItemsResponse = {
|
|
@@ -6106,6 +6512,9 @@ export declare const SeedTenantConfigRequestSchema: z.ZodObject<{
|
|
|
6106
6512
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
6107
6513
|
stopGrace: z.ZodOptional<z.ZodString>;
|
|
6108
6514
|
}, z.core.$strict>>;
|
|
6515
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
6516
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6517
|
+
}, z.core.$strict>>;
|
|
6109
6518
|
placement: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6110
6519
|
hosts: z.ZodArray<z.ZodEnum<{
|
|
6111
6520
|
"harness-container": "harness-container";
|
|
@@ -6466,6 +6875,7 @@ export declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
6466
6875
|
description: z.ZodOptional<z.ZodString>;
|
|
6467
6876
|
type: z.ZodLiteral<"bearer">;
|
|
6468
6877
|
url: z.ZodString;
|
|
6878
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
6469
6879
|
}, z.core.$strict>, z.ZodObject<{
|
|
6470
6880
|
via: z.ZodOptional<z.ZodString>;
|
|
6471
6881
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -6475,6 +6885,7 @@ export declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
6475
6885
|
description: z.ZodOptional<z.ZodString>;
|
|
6476
6886
|
type: z.ZodLiteral<"headers">;
|
|
6477
6887
|
url: z.ZodString;
|
|
6888
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
6478
6889
|
}, z.core.$strict>], "type">>>>;
|
|
6479
6890
|
}, z.core.$strict>;
|
|
6480
6891
|
limits: z.ZodObject<{
|
|
@@ -6590,6 +7001,28 @@ export declare const SessionViewSchema: z.ZodObject<{
|
|
|
6590
7001
|
closedReason: z.ZodOptional<z.ZodString>;
|
|
6591
7002
|
mcpSnapshot: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6592
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>>;
|
|
6593
7026
|
waits: z.ZodOptional<z.ZodUnknown>;
|
|
6594
7027
|
error: z.ZodOptional<z.ZodString>;
|
|
6595
7028
|
uncertainEffects: z.ZodArray<z.ZodObject<{
|
|
@@ -6982,8 +7415,9 @@ export type ToolInputCondition = z.infer<typeof ToolInputConditionSchema>;
|
|
|
6982
7415
|
* identity: an MCP tool's own name on its server, or an HTTP tool's declared name; never the name
|
|
6983
7416
|
* a harness gave the model; `*` for any run of characters), `server` (an MCP server's name),
|
|
6984
7417
|
* `kind`, `agent` (the agent that calls it: the agent manifest's name, or the id of an agent used
|
|
6985
|
-
* as a tool or of a flow's agent; never an Agent's id
|
|
6986
|
-
*
|
|
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,
|
|
6987
7421
|
* `ask` holds it until a person approves it on the session (`approve`), `allow` runs it. A call no
|
|
6988
7422
|
* rule matches runs. Sandbox tools never cross the gate; their network side is egress policy.
|
|
6989
7423
|
*
|
|
@@ -7974,7 +8408,7 @@ export declare const SessionManifestViewSchema: z.ZodObject<{
|
|
|
7974
8408
|
}, z.core.$strict>;
|
|
7975
8409
|
export type SessionManifestView = z.infer<typeof SessionManifestViewSchema>;
|
|
7976
8410
|
export declare const HistoryPageSchema: z.ZodObject<{
|
|
7977
|
-
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">>;
|
|
7978
8412
|
cursor: z.ZodNullable<z.ZodString>;
|
|
7979
8413
|
tail: z.ZodBoolean;
|
|
7980
8414
|
}, z.core.$strip>;
|
|
@@ -8490,6 +8924,7 @@ export declare const AgentPageSchema: z.ZodObject<{
|
|
|
8490
8924
|
description: z.ZodOptional<z.ZodString>;
|
|
8491
8925
|
type: z.ZodLiteral<"bearer">;
|
|
8492
8926
|
url: z.ZodString;
|
|
8927
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
8493
8928
|
}, z.core.$strict>, z.ZodObject<{
|
|
8494
8929
|
via: z.ZodOptional<z.ZodString>;
|
|
8495
8930
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -8499,6 +8934,7 @@ export declare const AgentPageSchema: z.ZodObject<{
|
|
|
8499
8934
|
description: z.ZodOptional<z.ZodString>;
|
|
8500
8935
|
type: z.ZodLiteral<"headers">;
|
|
8501
8936
|
url: z.ZodString;
|
|
8937
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
8502
8938
|
}, z.core.$strict>], "type">>>>;
|
|
8503
8939
|
}, z.core.$strict>;
|
|
8504
8940
|
limits: z.ZodObject<{
|