@nylorun/core 0.33.0-beta → 0.35.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 +85 -0
- package/dist/compatibility.d.ts +25 -1
- package/dist/compatibility.js +24 -0
- package/dist/contracts.d.ts +749 -17
- package/dist/contracts.js +360 -22
- 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 +54 -0
- package/dist/engine/blocks.js +162 -0
- package/dist/engine/explain.d.ts +36 -0
- package/dist/engine/explain.js +113 -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 +26 -0
- package/dist/engine/preview.d.ts +93 -0
- package/dist/engine/preview.js +120 -0
- package/dist/engine/projection.d.ts +63 -0
- package/dist/engine/projection.js +109 -0
- package/dist/engine/tools.d.ts +118 -0
- package/dist/engine/tools.js +508 -0
- package/dist/folder/compile.d.ts +11 -4
- package/dist/folder/compile.js +126 -13
- package/dist/folder/context.d.ts +5 -0
- package/dist/folder/decompile.js +22 -1
- package/dist/folder/engine.d.ts +73 -0
- package/dist/folder/engine.js +224 -0
- package/dist/folder/nested.js +6 -0
- package/dist/folder/schemas.js +47 -3
- package/dist/harness-api/harness-api.schema.json +29 -7
- package/dist/harness-api/json-schema.js +6 -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 +15 -4
- package/dist/harness-api/schema.js +20 -4
- package/dist/manifest-schemas.js +9 -4
- package/dist/schemas/agent-folder/agent-md.schema.json +84 -3
- package/dist/schemas/agent-folder/runtime.schema.json +34 -1
- package/dist/schemas/agent-manifest.schema.json +166 -1
- package/dist/schemas/harness-manifest.schema.json +130 -1
- package/dist/schemas/runtime-manifest.schema.json +34 -1
- package/dist/types/manifest.d.ts +49 -0
- package/package.json +5 -1
package/dist/contracts.d.ts
CHANGED
|
@@ -47,6 +47,56 @@ 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
|
+
triggers: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
instructions: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
67
|
+
artifacts_read: "artifacts_read";
|
|
68
|
+
artifacts_save: "artifacts_save";
|
|
69
|
+
connection: "connection";
|
|
70
|
+
memory: "memory";
|
|
71
|
+
outputs: "outputs";
|
|
72
|
+
plan: "plan";
|
|
73
|
+
sandbox: "sandbox";
|
|
74
|
+
skill_folder: "skill_folder";
|
|
75
|
+
skills: "skills";
|
|
76
|
+
tool_search: "tool_search";
|
|
77
|
+
triggers: "triggers";
|
|
78
|
+
wake: "wake";
|
|
79
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
80
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
|
+
name: z.ZodEnum<{
|
|
82
|
+
artifacts_read: "artifacts_read";
|
|
83
|
+
artifacts_save: "artifacts_save";
|
|
84
|
+
connection: "connection";
|
|
85
|
+
memory: "memory";
|
|
86
|
+
outputs: "outputs";
|
|
87
|
+
plan: "plan";
|
|
88
|
+
sandbox: "sandbox";
|
|
89
|
+
skill_folder: "skill_folder";
|
|
90
|
+
skills: "skills";
|
|
91
|
+
tool_search: "tool_search";
|
|
92
|
+
triggers: "triggers";
|
|
93
|
+
wake: "wake";
|
|
94
|
+
}>;
|
|
95
|
+
version: z.ZodNumber;
|
|
96
|
+
sha256: z.ZodString;
|
|
97
|
+
source: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, z.core.$strict>>>;
|
|
99
|
+
}, z.core.$strict>;
|
|
50
100
|
/**
|
|
51
101
|
* An agent's manifest (manifest v7). Its output is checked against `AgentManifest` here and below
|
|
52
102
|
* (`ManifestDrift`): the hand-written type keeps its read-only fields and its docs.
|
|
@@ -172,6 +222,11 @@ export declare const EnvironmentLimitsSchema: z.ZodObject<{
|
|
|
172
222
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
173
223
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
174
224
|
}, z.core.$strict>>;
|
|
225
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
227
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
}, z.core.$strict>>;
|
|
175
230
|
}, z.core.$strict>;
|
|
176
231
|
export type EnvironmentLimits = z.infer<typeof EnvironmentLimitsSchema>;
|
|
177
232
|
/**
|
|
@@ -244,6 +299,11 @@ export declare const EnvironmentRecipeSchema: z.ZodObject<{
|
|
|
244
299
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
245
300
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
246
301
|
}, z.core.$strict>>;
|
|
302
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
303
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
}, z.core.$strict>>;
|
|
247
307
|
}, z.core.$strict>>;
|
|
248
308
|
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
249
309
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -267,6 +327,7 @@ export declare const EnvironmentRecipeSchema: z.ZodObject<{
|
|
|
267
327
|
description: z.ZodOptional<z.ZodString>;
|
|
268
328
|
type: z.ZodLiteral<"bearer">;
|
|
269
329
|
url: z.ZodString;
|
|
330
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
270
331
|
}, z.core.$strict>, z.ZodObject<{
|
|
271
332
|
via: z.ZodOptional<z.ZodString>;
|
|
272
333
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -276,6 +337,7 @@ export declare const EnvironmentRecipeSchema: z.ZodObject<{
|
|
|
276
337
|
description: z.ZodOptional<z.ZodString>;
|
|
277
338
|
type: z.ZodLiteral<"headers">;
|
|
278
339
|
url: z.ZodString;
|
|
340
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
279
341
|
}, z.core.$strict>], "type">>>>;
|
|
280
342
|
}, z.core.$strict>;
|
|
281
343
|
export type EnvironmentRecipe = z.infer<typeof EnvironmentRecipeSchema>;
|
|
@@ -451,6 +513,11 @@ export declare const AgentViewSchema: z.ZodObject<{
|
|
|
451
513
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
452
514
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
453
515
|
}, z.core.$strict>>;
|
|
516
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
517
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
518
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
519
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
520
|
+
}, z.core.$strict>>;
|
|
454
521
|
}, z.core.$strict>>;
|
|
455
522
|
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
456
523
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -474,6 +541,7 @@ export declare const AgentViewSchema: z.ZodObject<{
|
|
|
474
541
|
description: z.ZodOptional<z.ZodString>;
|
|
475
542
|
type: z.ZodLiteral<"bearer">;
|
|
476
543
|
url: z.ZodString;
|
|
544
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
477
545
|
}, z.core.$strict>, z.ZodObject<{
|
|
478
546
|
via: z.ZodOptional<z.ZodString>;
|
|
479
547
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -483,6 +551,7 @@ export declare const AgentViewSchema: z.ZodObject<{
|
|
|
483
551
|
description: z.ZodOptional<z.ZodString>;
|
|
484
552
|
type: z.ZodLiteral<"headers">;
|
|
485
553
|
url: z.ZodString;
|
|
554
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
486
555
|
}, z.core.$strict>], "type">>>>;
|
|
487
556
|
}, z.core.$strict>;
|
|
488
557
|
limits: z.ZodObject<{
|
|
@@ -644,7 +713,7 @@ export declare const MemoryUpdatedPayloadSchema: z.ZodObject<{
|
|
|
644
713
|
version: z.ZodNumber;
|
|
645
714
|
}, z.core.$strict>>;
|
|
646
715
|
}, z.core.$loose>;
|
|
647
|
-
export declare const AGENT_EVENT_TYPES: readonly ["agent.created", "agent.attached", "agent.detached", "agent.deleted", "agent.running", "agent.suspended", "agent.relaunched", "agent.lost", "agent.reset", "agent.failed", "agent.forked", "agent.outdated", "agent.version_changed", "agent.start_failed", "agent.egress", "agent.run", "agent.trigger_paused", "agent.trigger_resumed", "agent.trigger_secret_rotated", "agent.memory_updated"];
|
|
716
|
+
export declare const AGENT_EVENT_TYPES: readonly ["agent.created", "agent.attached", "agent.detached", "agent.deleted", "agent.running", "agent.suspended", "agent.relaunched", "agent.lost", "agent.reset", "agent.failed", "agent.forked", "agent.outdated", "agent.version_changed", "agent.start_failed", "agent.egress", "agent.run", "agent.trigger_paused", "agent.trigger_resumed", "agent.trigger_secret_rotated", "agent.trigger_created", "agent.trigger_updated", "agent.trigger_deleted", "agent.memory_updated"];
|
|
648
717
|
export type AgentEventType = (typeof AGENT_EVENT_TYPES)[number];
|
|
649
718
|
/** The payload of each Agent lifecycle event. */
|
|
650
719
|
export declare const AGENT_EVENT_PAYLOADS: {
|
|
@@ -797,6 +866,39 @@ export declare const AGENT_EVENT_PAYLOADS: {
|
|
|
797
866
|
readonly "agent.trigger_secret_rotated": z.ZodObject<{
|
|
798
867
|
triggerId: z.ZodString;
|
|
799
868
|
}, z.core.$loose>;
|
|
869
|
+
/**
|
|
870
|
+
* An agent made a trigger with the `triggers` tool (D83), or replaced one with the same id
|
|
871
|
+
* (`agent.trigger_updated`): the session whose agent made it (`sessionId`), the session it runs
|
|
872
|
+
* in (`session`), its title and its next run.
|
|
873
|
+
*/
|
|
874
|
+
readonly "agent.trigger_created": z.ZodObject<{
|
|
875
|
+
triggerId: z.ZodString;
|
|
876
|
+
kind: z.ZodEnum<{
|
|
877
|
+
at: "at";
|
|
878
|
+
schedule: "schedule";
|
|
879
|
+
}>;
|
|
880
|
+
sessionId: z.ZodString;
|
|
881
|
+
session: z.ZodString;
|
|
882
|
+
title: z.ZodOptional<z.ZodString>;
|
|
883
|
+
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
884
|
+
}, z.core.$loose>;
|
|
885
|
+
readonly "agent.trigger_updated": z.ZodObject<{
|
|
886
|
+
triggerId: z.ZodString;
|
|
887
|
+
kind: z.ZodEnum<{
|
|
888
|
+
at: "at";
|
|
889
|
+
schedule: "schedule";
|
|
890
|
+
}>;
|
|
891
|
+
sessionId: z.ZodString;
|
|
892
|
+
session: z.ZodString;
|
|
893
|
+
title: z.ZodOptional<z.ZodString>;
|
|
894
|
+
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
895
|
+
}, z.core.$loose>;
|
|
896
|
+
/** A trigger an agent made was deleted: by an agent of `sessionId`, or over the API (`principal`). */
|
|
897
|
+
readonly "agent.trigger_deleted": z.ZodObject<{
|
|
898
|
+
triggerId: z.ZodString;
|
|
899
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
900
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
901
|
+
}, z.core.$loose>;
|
|
800
902
|
/** A turn changed the Agent's memories (`memory.updated` in its session): which, and how. */
|
|
801
903
|
readonly "agent.memory_updated": z.ZodObject<{
|
|
802
904
|
effectId: z.ZodString;
|
|
@@ -841,9 +943,12 @@ export declare const AgentEventSchema: z.ZodObject<{
|
|
|
841
943
|
"agent.running": "agent.running";
|
|
842
944
|
"agent.start_failed": "agent.start_failed";
|
|
843
945
|
"agent.suspended": "agent.suspended";
|
|
946
|
+
"agent.trigger_created": "agent.trigger_created";
|
|
947
|
+
"agent.trigger_deleted": "agent.trigger_deleted";
|
|
844
948
|
"agent.trigger_paused": "agent.trigger_paused";
|
|
845
949
|
"agent.trigger_resumed": "agent.trigger_resumed";
|
|
846
950
|
"agent.trigger_secret_rotated": "agent.trigger_secret_rotated";
|
|
951
|
+
"agent.trigger_updated": "agent.trigger_updated";
|
|
847
952
|
"agent.version_changed": "agent.version_changed";
|
|
848
953
|
}>;
|
|
849
954
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -874,9 +979,12 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
|
|
|
874
979
|
"agent.running": "agent.running";
|
|
875
980
|
"agent.start_failed": "agent.start_failed";
|
|
876
981
|
"agent.suspended": "agent.suspended";
|
|
982
|
+
"agent.trigger_created": "agent.trigger_created";
|
|
983
|
+
"agent.trigger_deleted": "agent.trigger_deleted";
|
|
877
984
|
"agent.trigger_paused": "agent.trigger_paused";
|
|
878
985
|
"agent.trigger_resumed": "agent.trigger_resumed";
|
|
879
986
|
"agent.trigger_secret_rotated": "agent.trigger_secret_rotated";
|
|
987
|
+
"agent.trigger_updated": "agent.trigger_updated";
|
|
880
988
|
"agent.version_changed": "agent.version_changed";
|
|
881
989
|
}>;
|
|
882
990
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -984,8 +1092,10 @@ export type CredentialIdentity = z.infer<typeof CredentialIdentitySchema>;
|
|
|
984
1092
|
* `toolPrefix`: what the gateway at `via` puts before each tool name it lists, such as
|
|
985
1093
|
* LiteLLM's `github-` (Host feature `gateway-credentials`). The Runtime lists the server's tools
|
|
986
1094
|
* 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
|
-
*
|
|
1095
|
+
* own tools, and calls a tool by the name the gateway listed. On an Agent's secret, only with
|
|
1096
|
+
* `via`. A manifest's `bearer` or `headers` slot may name it too (Host feature `secret-routing`),
|
|
1097
|
+
* with or without a `via`: it applies whenever the credential's requests go to a `via`, and wins
|
|
1098
|
+
* over the secret's.
|
|
989
1099
|
*/
|
|
990
1100
|
export declare const CredentialToolPrefixSchema: z.ZodString;
|
|
991
1101
|
export declare const RESERVED_ENVIRONMENT_NAMES: ReadonlySet<string>;
|
|
@@ -1077,12 +1187,15 @@ export type PutAgentSecretRequest = z.infer<typeof PutAgentSecretRequestSchema>;
|
|
|
1077
1187
|
/**
|
|
1078
1188
|
* A secret write on an Environment whose manifest declares the secret's slot: only the
|
|
1079
1189
|
* value, `value` (or `headers` for a `headers` slot). Its type and binding come from the slot,
|
|
1080
|
-
* except
|
|
1190
|
+
* except this installation's routing of a `bearer` or `headers` slot (Host feature
|
|
1191
|
+
* `secret-routing`): `via`, where its requests go, which wins over the slot's; and the gateway's
|
|
1192
|
+
* `toolPrefix`, which needs a `via` (the write's or the slot's) and gives way to the slot's.
|
|
1081
1193
|
*/
|
|
1082
1194
|
export declare const PutAgentSecretValueRequestSchema: z.ZodObject<{
|
|
1083
1195
|
requestId: z.ZodOptional<z.ZodString>;
|
|
1084
1196
|
value: z.ZodOptional<z.ZodString>;
|
|
1085
1197
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1198
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1086
1199
|
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1087
1200
|
}, z.core.$strict>;
|
|
1088
1201
|
export type PutAgentSecretValueRequest = z.infer<typeof PutAgentSecretValueRequestSchema>;
|
|
@@ -1091,7 +1204,11 @@ export declare function environmentSecretNameError(type: PutAgentSecretRequest["
|
|
|
1091
1204
|
/**
|
|
1092
1205
|
* One secret an Environment of a kind needs: its type and binding, never its value. The
|
|
1093
1206
|
* 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.
|
|
1207
|
+
* with `{ value }`, or `{ headers }` for `headers`), and the binding comes from here. A
|
|
1208
|
+
* `bearer` or `headers` slot may name the gateway's `toolPrefix` without a `via`, so a folder
|
|
1209
|
+
* names how tools are listed and each installation binds where requests go (the write's `via`,
|
|
1210
|
+
* Host feature `secret-routing`). At each request the credential's `via` is the secret's, else
|
|
1211
|
+
* the slot's, else none (the slot's `url`), and its tool prefix the slot's, else the secret's.
|
|
1095
1212
|
*/
|
|
1096
1213
|
export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1097
1214
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1115,6 +1232,7 @@ export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1115
1232
|
description: z.ZodOptional<z.ZodString>;
|
|
1116
1233
|
type: z.ZodLiteral<"bearer">;
|
|
1117
1234
|
url: z.ZodString;
|
|
1235
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1118
1236
|
}, z.core.$strict>, z.ZodObject<{
|
|
1119
1237
|
via: z.ZodOptional<z.ZodString>;
|
|
1120
1238
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1124,6 +1242,7 @@ export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1124
1242
|
description: z.ZodOptional<z.ZodString>;
|
|
1125
1243
|
type: z.ZodLiteral<"headers">;
|
|
1126
1244
|
url: z.ZodString;
|
|
1245
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1127
1246
|
}, z.core.$strict>], "type">;
|
|
1128
1247
|
export type EnvironmentSecretSlot = z.infer<typeof EnvironmentSecretSlotSchema>;
|
|
1129
1248
|
/** A manifest's secret slots: at most the Tenant's Runtime limit `environmentSecretSlots`. */
|
|
@@ -1149,6 +1268,7 @@ export declare const EnvironmentSecretSlotsSchema: z.ZodRecord<z.ZodString, z.Zo
|
|
|
1149
1268
|
description: z.ZodOptional<z.ZodString>;
|
|
1150
1269
|
type: z.ZodLiteral<"bearer">;
|
|
1151
1270
|
url: z.ZodString;
|
|
1271
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1152
1272
|
}, z.core.$strict>, z.ZodObject<{
|
|
1153
1273
|
via: z.ZodOptional<z.ZodString>;
|
|
1154
1274
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1158,6 +1278,7 @@ export declare const EnvironmentSecretSlotsSchema: z.ZodRecord<z.ZodString, z.Zo
|
|
|
1158
1278
|
description: z.ZodOptional<z.ZodString>;
|
|
1159
1279
|
type: z.ZodLiteral<"headers">;
|
|
1160
1280
|
url: z.ZodString;
|
|
1281
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1161
1282
|
}, z.core.$strict>], "type">>;
|
|
1162
1283
|
export type EnvironmentSecretSlots = z.infer<typeof EnvironmentSecretSlotsSchema>;
|
|
1163
1284
|
/** The schema version of an agent manifest the Runtime saves at `/v1/agent-manifests/{name}`. */
|
|
@@ -1172,6 +1293,7 @@ export declare const HarnessMemorySchema: z.ZodObject<{
|
|
|
1172
1293
|
read_write: "read_write";
|
|
1173
1294
|
}>>;
|
|
1174
1295
|
instructions: z.ZodOptional<z.ZodString>;
|
|
1296
|
+
index: z.ZodOptional<z.ZodBoolean>;
|
|
1175
1297
|
}, z.core.$strict>;
|
|
1176
1298
|
/**
|
|
1177
1299
|
* `harness.model` (Host feature `agent-model`): the model the agent runs on, `<provider>/<model>`
|
|
@@ -1233,7 +1355,17 @@ export declare function triggerKindOf(trigger: Trigger): Exclude<TriggerKind, "w
|
|
|
1233
1355
|
* `manual`, or `new` for one an upgrade added), `completed` is an `at` that ran.
|
|
1234
1356
|
*/
|
|
1235
1357
|
export declare const TRIGGER_STATUSES: readonly ["active", "paused", "completed"];
|
|
1236
|
-
/**
|
|
1358
|
+
/**
|
|
1359
|
+
* Where a trigger's definition comes from (D83): `manifest` (the version's `runtime.triggers`),
|
|
1360
|
+
* `agent` (made by an agent of the Agent's sessions with the `triggers` tool, kept by the Agent)
|
|
1361
|
+
* or `wake` (a session's booked wake, never listed).
|
|
1362
|
+
*/
|
|
1363
|
+
export declare const TRIGGER_ORIGINS: readonly ["manifest", "agent", "wake"];
|
|
1364
|
+
export type TriggerOrigin = (typeof TRIGGER_ORIGINS)[number];
|
|
1365
|
+
/**
|
|
1366
|
+
* `GET /v1/agents/{id}/triggers`: one trigger, from its manifest entry (or, for one an agent made,
|
|
1367
|
+
* its own definition) and the Agent's state.
|
|
1368
|
+
*/
|
|
1237
1369
|
export declare const TriggerViewSchema: z.ZodObject<{
|
|
1238
1370
|
id: z.ZodString;
|
|
1239
1371
|
kind: z.ZodEnum<{
|
|
@@ -1242,6 +1374,13 @@ export declare const TriggerViewSchema: z.ZodObject<{
|
|
|
1242
1374
|
wake: "wake";
|
|
1243
1375
|
webhook: "webhook";
|
|
1244
1376
|
}>;
|
|
1377
|
+
origin: z.ZodEnum<{
|
|
1378
|
+
agent: "agent";
|
|
1379
|
+
manifest: "manifest";
|
|
1380
|
+
wake: "wake";
|
|
1381
|
+
}>;
|
|
1382
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1383
|
+
createdSessionId: z.ZodNullable<z.ZodString>;
|
|
1245
1384
|
status: z.ZodEnum<{
|
|
1246
1385
|
active: "active";
|
|
1247
1386
|
completed: "completed";
|
|
@@ -1256,6 +1395,7 @@ export declare const TriggerViewSchema: z.ZodObject<{
|
|
|
1256
1395
|
lastRunAt: z.ZodNullable<z.ZodString>;
|
|
1257
1396
|
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
1258
1397
|
secretSet: z.ZodOptional<z.ZodBoolean>;
|
|
1398
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
1259
1399
|
}, z.core.$strict>;
|
|
1260
1400
|
export type TriggerView = z.infer<typeof TriggerViewSchema>;
|
|
1261
1401
|
export declare const TriggerListSchema: z.ZodObject<{
|
|
@@ -1267,6 +1407,13 @@ export declare const TriggerListSchema: z.ZodObject<{
|
|
|
1267
1407
|
wake: "wake";
|
|
1268
1408
|
webhook: "webhook";
|
|
1269
1409
|
}>;
|
|
1410
|
+
origin: z.ZodEnum<{
|
|
1411
|
+
agent: "agent";
|
|
1412
|
+
manifest: "manifest";
|
|
1413
|
+
wake: "wake";
|
|
1414
|
+
}>;
|
|
1415
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1416
|
+
createdSessionId: z.ZodNullable<z.ZodString>;
|
|
1270
1417
|
status: z.ZodEnum<{
|
|
1271
1418
|
active: "active";
|
|
1272
1419
|
completed: "completed";
|
|
@@ -1281,8 +1428,88 @@ export declare const TriggerListSchema: z.ZodObject<{
|
|
|
1281
1428
|
lastRunAt: z.ZodNullable<z.ZodString>;
|
|
1282
1429
|
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
1283
1430
|
secretSet: z.ZodOptional<z.ZodBoolean>;
|
|
1431
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
1284
1432
|
}, z.core.$strict>>;
|
|
1285
1433
|
}, z.core.$strict>;
|
|
1434
|
+
/** `in` of the `triggers` tool (D83): a delay in minutes, hours or days, such as `30m`, `2h`, `1d`. */
|
|
1435
|
+
export declare const TRIGGER_DELAY_PATTERN: RegExp;
|
|
1436
|
+
/** The longest title an agent gives a trigger it makes. */
|
|
1437
|
+
export declare const TRIGGER_TITLE_MAX = 80;
|
|
1438
|
+
/** Where an agent-made trigger runs: the calling session (`this`), or a session of its own (`own`). */
|
|
1439
|
+
export declare const TRIGGER_TOOL_SESSIONS: readonly ["this", "own"];
|
|
1440
|
+
/**
|
|
1441
|
+
* A call of the `triggers` tool (D83), which the Runtime serves for an agent whose version
|
|
1442
|
+
* declares `engine.triggers`: `list` the triggers the calling session made; `create` one (or
|
|
1443
|
+
* replace the session's own with the same `id`) with exactly one of `schedule` (with `timezone`),
|
|
1444
|
+
* `at` or `in`, the `session` it runs in and its `prompt`; `delete` one by `id`.
|
|
1445
|
+
*/
|
|
1446
|
+
export declare const TriggerToolInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1447
|
+
command: z.ZodLiteral<"list">;
|
|
1448
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1449
|
+
command: z.ZodLiteral<"create">;
|
|
1450
|
+
id: z.ZodString;
|
|
1451
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
1453
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1454
|
+
at: z.ZodOptional<z.ZodISODateTime>;
|
|
1455
|
+
in: z.ZodOptional<z.ZodString>;
|
|
1456
|
+
session: z.ZodEnum<{
|
|
1457
|
+
own: "own";
|
|
1458
|
+
this: "this";
|
|
1459
|
+
}>;
|
|
1460
|
+
prompt: z.ZodString;
|
|
1461
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1462
|
+
command: z.ZodLiteral<"delete">;
|
|
1463
|
+
id: z.ZodString;
|
|
1464
|
+
}, z.core.$strict>], "command">;
|
|
1465
|
+
export type TriggerToolInput = z.infer<typeof TriggerToolInputSchema>;
|
|
1466
|
+
/** One trigger as the `triggers` tool lists it. */
|
|
1467
|
+
export declare const TriggerToolItemSchema: z.ZodObject<{
|
|
1468
|
+
id: z.ZodString;
|
|
1469
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1470
|
+
status: z.ZodEnum<{
|
|
1471
|
+
active: "active";
|
|
1472
|
+
completed: "completed";
|
|
1473
|
+
paused: "paused";
|
|
1474
|
+
}>;
|
|
1475
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
1476
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1477
|
+
at: z.ZodOptional<z.ZodString>;
|
|
1478
|
+
session: z.ZodString;
|
|
1479
|
+
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
1480
|
+
prompt: z.ZodString;
|
|
1481
|
+
}, z.core.$strict>;
|
|
1482
|
+
/** What a `triggers` call answers: the trigger made, the list, or the one deleted. */
|
|
1483
|
+
export declare const TriggerToolOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1484
|
+
id: z.ZodString;
|
|
1485
|
+
status: z.ZodEnum<{
|
|
1486
|
+
active: "active";
|
|
1487
|
+
completed: "completed";
|
|
1488
|
+
paused: "paused";
|
|
1489
|
+
}>;
|
|
1490
|
+
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
1491
|
+
session: z.ZodString;
|
|
1492
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1493
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
1494
|
+
id: z.ZodString;
|
|
1495
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1496
|
+
status: z.ZodEnum<{
|
|
1497
|
+
active: "active";
|
|
1498
|
+
completed: "completed";
|
|
1499
|
+
paused: "paused";
|
|
1500
|
+
}>;
|
|
1501
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
1502
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1503
|
+
at: z.ZodOptional<z.ZodString>;
|
|
1504
|
+
session: z.ZodString;
|
|
1505
|
+
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
1506
|
+
prompt: z.ZodString;
|
|
1507
|
+
}, z.core.$strict>>;
|
|
1508
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1509
|
+
id: z.ZodString;
|
|
1510
|
+
deleted: z.ZodLiteral<true>;
|
|
1511
|
+
}, z.core.$strict>]>;
|
|
1512
|
+
export type TriggerToolOutput = z.infer<typeof TriggerToolOutputSchema>;
|
|
1286
1513
|
/**
|
|
1287
1514
|
* What a run came to: `started` a turn, `queued` a message behind a running turn,
|
|
1288
1515
|
* `skipped` (nothing started: `overlap`, `rate_limited`, `paused`) or `failed` (`queue_full`,
|
|
@@ -1314,6 +1541,78 @@ export declare const TriggerRunSchema: z.ZodObject<{
|
|
|
1314
1541
|
queuedMessageId: z.ZodNullable<z.ZodString>;
|
|
1315
1542
|
}, z.core.$strict>;
|
|
1316
1543
|
export type TriggerRun = z.infer<typeof TriggerRunSchema>;
|
|
1544
|
+
/**
|
|
1545
|
+
* One run on the Tenant's runs stream (D83, `GET /v1/runs/stream`): a run of any Agent's
|
|
1546
|
+
* triggers, as `TriggerRunSchema` has it, with its Agent and its trigger's origin and title. A
|
|
1547
|
+
* run may arrive twice (after a crash between append and mark); a reader drops a `runId` it has
|
|
1548
|
+
* seen.
|
|
1549
|
+
*/
|
|
1550
|
+
export declare const TenantRunSchema: z.ZodObject<{
|
|
1551
|
+
runId: z.ZodString;
|
|
1552
|
+
agentId: z.ZodString;
|
|
1553
|
+
triggerId: z.ZodString;
|
|
1554
|
+
kind: z.ZodEnum<{
|
|
1555
|
+
at: "at";
|
|
1556
|
+
schedule: "schedule";
|
|
1557
|
+
wake: "wake";
|
|
1558
|
+
webhook: "webhook";
|
|
1559
|
+
}>;
|
|
1560
|
+
status: z.ZodEnum<{
|
|
1561
|
+
failed: "failed";
|
|
1562
|
+
queued: "queued";
|
|
1563
|
+
skipped: "skipped";
|
|
1564
|
+
started: "started";
|
|
1565
|
+
}>;
|
|
1566
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1567
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1568
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1569
|
+
queuedMessageId: z.ZodNullable<z.ZodString>;
|
|
1570
|
+
dueAt: z.ZodString;
|
|
1571
|
+
firedAt: z.ZodString;
|
|
1572
|
+
late: z.ZodBoolean;
|
|
1573
|
+
origin: z.ZodEnum<{
|
|
1574
|
+
agent: "agent";
|
|
1575
|
+
manifest: "manifest";
|
|
1576
|
+
wake: "wake";
|
|
1577
|
+
}>;
|
|
1578
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1579
|
+
}, z.core.$strict>;
|
|
1580
|
+
export type TenantRun = z.infer<typeof TenantRunSchema>;
|
|
1581
|
+
/** One event of `GET /v1/runs/stream` (`event: run`): the run, and the cursor to resume after it. */
|
|
1582
|
+
export declare const TenantRunEventSchema: z.ZodObject<{
|
|
1583
|
+
cursor: z.ZodString;
|
|
1584
|
+
run: z.ZodObject<{
|
|
1585
|
+
runId: z.ZodString;
|
|
1586
|
+
agentId: z.ZodString;
|
|
1587
|
+
triggerId: z.ZodString;
|
|
1588
|
+
kind: z.ZodEnum<{
|
|
1589
|
+
at: "at";
|
|
1590
|
+
schedule: "schedule";
|
|
1591
|
+
wake: "wake";
|
|
1592
|
+
webhook: "webhook";
|
|
1593
|
+
}>;
|
|
1594
|
+
status: z.ZodEnum<{
|
|
1595
|
+
failed: "failed";
|
|
1596
|
+
queued: "queued";
|
|
1597
|
+
skipped: "skipped";
|
|
1598
|
+
started: "started";
|
|
1599
|
+
}>;
|
|
1600
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1601
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1602
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1603
|
+
queuedMessageId: z.ZodNullable<z.ZodString>;
|
|
1604
|
+
dueAt: z.ZodString;
|
|
1605
|
+
firedAt: z.ZodString;
|
|
1606
|
+
late: z.ZodBoolean;
|
|
1607
|
+
origin: z.ZodEnum<{
|
|
1608
|
+
agent: "agent";
|
|
1609
|
+
manifest: "manifest";
|
|
1610
|
+
wake: "wake";
|
|
1611
|
+
}>;
|
|
1612
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1613
|
+
}, z.core.$strict>;
|
|
1614
|
+
}, z.core.$strict>;
|
|
1615
|
+
export type TenantRunEvent = z.infer<typeof TenantRunEventSchema>;
|
|
1317
1616
|
/** `GET /v1/agents/{id}/runs`: runs, newest first. */
|
|
1318
1617
|
export declare const TriggerRunPageSchema: z.ZodObject<{
|
|
1319
1618
|
runs: z.ZodArray<z.ZodObject<{
|
|
@@ -1554,6 +1853,11 @@ export declare const RuntimeSectionSchema: z.ZodObject<{
|
|
|
1554
1853
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1555
1854
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1556
1855
|
}, z.core.$strict>>;
|
|
1856
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
1857
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1858
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
1859
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
1860
|
+
}, z.core.$strict>>;
|
|
1557
1861
|
}, z.core.$strict>>;
|
|
1558
1862
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1559
1863
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1577,6 +1881,7 @@ export declare const RuntimeSectionSchema: z.ZodObject<{
|
|
|
1577
1881
|
description: z.ZodOptional<z.ZodString>;
|
|
1578
1882
|
type: z.ZodLiteral<"bearer">;
|
|
1579
1883
|
url: z.ZodString;
|
|
1884
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1580
1885
|
}, z.core.$strict>, z.ZodObject<{
|
|
1581
1886
|
via: z.ZodOptional<z.ZodString>;
|
|
1582
1887
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1586,6 +1891,7 @@ export declare const RuntimeSectionSchema: z.ZodObject<{
|
|
|
1586
1891
|
description: z.ZodOptional<z.ZodString>;
|
|
1587
1892
|
type: z.ZodLiteral<"headers">;
|
|
1588
1893
|
url: z.ZodString;
|
|
1894
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1589
1895
|
}, z.core.$strict>], "type">>>;
|
|
1590
1896
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1591
1897
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -1656,6 +1962,11 @@ export declare const AgentManifestV8Schema: z.ZodObject<{
|
|
|
1656
1962
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1657
1963
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1658
1964
|
}, z.core.$strict>>;
|
|
1965
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
1966
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1967
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
1968
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
1969
|
+
}, z.core.$strict>>;
|
|
1659
1970
|
}, z.core.$strict>>;
|
|
1660
1971
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1661
1972
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1679,6 +1990,7 @@ export declare const AgentManifestV8Schema: z.ZodObject<{
|
|
|
1679
1990
|
description: z.ZodOptional<z.ZodString>;
|
|
1680
1991
|
type: z.ZodLiteral<"bearer">;
|
|
1681
1992
|
url: z.ZodString;
|
|
1993
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1682
1994
|
}, z.core.$strict>, z.ZodObject<{
|
|
1683
1995
|
via: z.ZodOptional<z.ZodString>;
|
|
1684
1996
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1688,6 +2000,7 @@ export declare const AgentManifestV8Schema: z.ZodObject<{
|
|
|
1688
2000
|
description: z.ZodOptional<z.ZodString>;
|
|
1689
2001
|
type: z.ZodLiteral<"headers">;
|
|
1690
2002
|
url: z.ZodString;
|
|
2003
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1691
2004
|
}, z.core.$strict>], "type">>>;
|
|
1692
2005
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1693
2006
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -1801,8 +2114,59 @@ export declare const HarnessManifestFileSchema: z.ZodObject<{
|
|
|
1801
2114
|
read_write: "read_write";
|
|
1802
2115
|
}>>;
|
|
1803
2116
|
instructions: z.ZodOptional<z.ZodString>;
|
|
2117
|
+
index: z.ZodOptional<z.ZodBoolean>;
|
|
1804
2118
|
}, z.core.$strict>>;
|
|
1805
2119
|
model: z.ZodOptional<z.ZodString>;
|
|
2120
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
2121
|
+
sandbox: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2122
|
+
bash: "bash";
|
|
2123
|
+
edit: "edit";
|
|
2124
|
+
glob: "glob";
|
|
2125
|
+
grep: "grep";
|
|
2126
|
+
read: "read";
|
|
2127
|
+
write: "write";
|
|
2128
|
+
}>>>;
|
|
2129
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
2130
|
+
read: z.ZodOptional<z.ZodBoolean>;
|
|
2131
|
+
save: z.ZodOptional<z.ZodBoolean>;
|
|
2132
|
+
}, z.core.$strict>>;
|
|
2133
|
+
outputs: z.ZodOptional<z.ZodBoolean>;
|
|
2134
|
+
toolSearch: z.ZodOptional<z.ZodBoolean>;
|
|
2135
|
+
triggers: z.ZodOptional<z.ZodBoolean>;
|
|
2136
|
+
instructions: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
2137
|
+
artifacts_read: "artifacts_read";
|
|
2138
|
+
artifacts_save: "artifacts_save";
|
|
2139
|
+
connection: "connection";
|
|
2140
|
+
memory: "memory";
|
|
2141
|
+
outputs: "outputs";
|
|
2142
|
+
plan: "plan";
|
|
2143
|
+
sandbox: "sandbox";
|
|
2144
|
+
skill_folder: "skill_folder";
|
|
2145
|
+
skills: "skills";
|
|
2146
|
+
tool_search: "tool_search";
|
|
2147
|
+
triggers: "triggers";
|
|
2148
|
+
wake: "wake";
|
|
2149
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
2150
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2151
|
+
name: z.ZodEnum<{
|
|
2152
|
+
artifacts_read: "artifacts_read";
|
|
2153
|
+
artifacts_save: "artifacts_save";
|
|
2154
|
+
connection: "connection";
|
|
2155
|
+
memory: "memory";
|
|
2156
|
+
outputs: "outputs";
|
|
2157
|
+
plan: "plan";
|
|
2158
|
+
sandbox: "sandbox";
|
|
2159
|
+
skill_folder: "skill_folder";
|
|
2160
|
+
skills: "skills";
|
|
2161
|
+
tool_search: "tool_search";
|
|
2162
|
+
triggers: "triggers";
|
|
2163
|
+
wake: "wake";
|
|
2164
|
+
}>;
|
|
2165
|
+
version: z.ZodNumber;
|
|
2166
|
+
sha256: z.ZodString;
|
|
2167
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2168
|
+
}, z.core.$strict>>>;
|
|
2169
|
+
}, z.core.$strict>>;
|
|
1806
2170
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1807
2171
|
requires: z.ZodOptional<z.ZodObject<{
|
|
1808
2172
|
sandbox: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1852,6 +2216,11 @@ export declare const RuntimeManifestFileSchema: z.ZodObject<{
|
|
|
1852
2216
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1853
2217
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1854
2218
|
}, z.core.$strict>>;
|
|
2219
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
2220
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
2221
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
2222
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
2223
|
+
}, z.core.$strict>>;
|
|
1855
2224
|
}, z.core.$strict>>;
|
|
1856
2225
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1857
2226
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1875,6 +2244,7 @@ export declare const RuntimeManifestFileSchema: z.ZodObject<{
|
|
|
1875
2244
|
description: z.ZodOptional<z.ZodString>;
|
|
1876
2245
|
type: z.ZodLiteral<"bearer">;
|
|
1877
2246
|
url: z.ZodString;
|
|
2247
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1878
2248
|
}, z.core.$strict>, z.ZodObject<{
|
|
1879
2249
|
via: z.ZodOptional<z.ZodString>;
|
|
1880
2250
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1884,6 +2254,7 @@ export declare const RuntimeManifestFileSchema: z.ZodObject<{
|
|
|
1884
2254
|
description: z.ZodOptional<z.ZodString>;
|
|
1885
2255
|
type: z.ZodLiteral<"headers">;
|
|
1886
2256
|
url: z.ZodString;
|
|
2257
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1887
2258
|
}, z.core.$strict>], "type">>>;
|
|
1888
2259
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1889
2260
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2010,8 +2381,59 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
|
|
|
2010
2381
|
read_write: "read_write";
|
|
2011
2382
|
}>>;
|
|
2012
2383
|
instructions: z.ZodOptional<z.ZodString>;
|
|
2384
|
+
index: z.ZodOptional<z.ZodBoolean>;
|
|
2013
2385
|
}, z.core.$strict>>;
|
|
2014
2386
|
model: z.ZodOptional<z.ZodString>;
|
|
2387
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
2388
|
+
sandbox: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2389
|
+
bash: "bash";
|
|
2390
|
+
edit: "edit";
|
|
2391
|
+
glob: "glob";
|
|
2392
|
+
grep: "grep";
|
|
2393
|
+
read: "read";
|
|
2394
|
+
write: "write";
|
|
2395
|
+
}>>>;
|
|
2396
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
2397
|
+
read: z.ZodOptional<z.ZodBoolean>;
|
|
2398
|
+
save: z.ZodOptional<z.ZodBoolean>;
|
|
2399
|
+
}, z.core.$strict>>;
|
|
2400
|
+
outputs: z.ZodOptional<z.ZodBoolean>;
|
|
2401
|
+
toolSearch: z.ZodOptional<z.ZodBoolean>;
|
|
2402
|
+
triggers: z.ZodOptional<z.ZodBoolean>;
|
|
2403
|
+
instructions: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
2404
|
+
artifacts_read: "artifacts_read";
|
|
2405
|
+
artifacts_save: "artifacts_save";
|
|
2406
|
+
connection: "connection";
|
|
2407
|
+
memory: "memory";
|
|
2408
|
+
outputs: "outputs";
|
|
2409
|
+
plan: "plan";
|
|
2410
|
+
sandbox: "sandbox";
|
|
2411
|
+
skill_folder: "skill_folder";
|
|
2412
|
+
skills: "skills";
|
|
2413
|
+
tool_search: "tool_search";
|
|
2414
|
+
triggers: "triggers";
|
|
2415
|
+
wake: "wake";
|
|
2416
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
2417
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2418
|
+
name: z.ZodEnum<{
|
|
2419
|
+
artifacts_read: "artifacts_read";
|
|
2420
|
+
artifacts_save: "artifacts_save";
|
|
2421
|
+
connection: "connection";
|
|
2422
|
+
memory: "memory";
|
|
2423
|
+
outputs: "outputs";
|
|
2424
|
+
plan: "plan";
|
|
2425
|
+
sandbox: "sandbox";
|
|
2426
|
+
skill_folder: "skill_folder";
|
|
2427
|
+
skills: "skills";
|
|
2428
|
+
tool_search: "tool_search";
|
|
2429
|
+
triggers: "triggers";
|
|
2430
|
+
wake: "wake";
|
|
2431
|
+
}>;
|
|
2432
|
+
version: z.ZodNumber;
|
|
2433
|
+
sha256: z.ZodString;
|
|
2434
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2435
|
+
}, z.core.$strict>>>;
|
|
2436
|
+
}, z.core.$strict>>;
|
|
2015
2437
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2016
2438
|
requires: z.ZodOptional<z.ZodObject<{
|
|
2017
2439
|
sandbox: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2058,6 +2480,11 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
|
|
|
2058
2480
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
2059
2481
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
2060
2482
|
}, z.core.$strict>>;
|
|
2483
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
2484
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
2485
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
2486
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
2487
|
+
}, z.core.$strict>>;
|
|
2061
2488
|
}, z.core.$strict>>;
|
|
2062
2489
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2063
2490
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2081,6 +2508,7 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
|
|
|
2081
2508
|
description: z.ZodOptional<z.ZodString>;
|
|
2082
2509
|
type: z.ZodLiteral<"bearer">;
|
|
2083
2510
|
url: z.ZodString;
|
|
2511
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2084
2512
|
}, z.core.$strict>, z.ZodObject<{
|
|
2085
2513
|
via: z.ZodOptional<z.ZodString>;
|
|
2086
2514
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2090,6 +2518,7 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
|
|
|
2090
2518
|
description: z.ZodOptional<z.ZodString>;
|
|
2091
2519
|
type: z.ZodLiteral<"headers">;
|
|
2092
2520
|
url: z.ZodString;
|
|
2521
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2093
2522
|
}, z.core.$strict>], "type">>>;
|
|
2094
2523
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2095
2524
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2168,6 +2597,11 @@ export declare const PutAgentManifestRequestSchema: z.ZodObject<{
|
|
|
2168
2597
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
2169
2598
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
2170
2599
|
}, z.core.$strict>>;
|
|
2600
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
2601
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
2602
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
2603
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
2604
|
+
}, z.core.$strict>>;
|
|
2171
2605
|
}, z.core.$strict>>;
|
|
2172
2606
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2173
2607
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2191,6 +2625,7 @@ export declare const PutAgentManifestRequestSchema: z.ZodObject<{
|
|
|
2191
2625
|
description: z.ZodOptional<z.ZodString>;
|
|
2192
2626
|
type: z.ZodLiteral<"bearer">;
|
|
2193
2627
|
url: z.ZodString;
|
|
2628
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2194
2629
|
}, z.core.$strict>, z.ZodObject<{
|
|
2195
2630
|
via: z.ZodOptional<z.ZodString>;
|
|
2196
2631
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2200,6 +2635,7 @@ export declare const PutAgentManifestRequestSchema: z.ZodObject<{
|
|
|
2200
2635
|
description: z.ZodOptional<z.ZodString>;
|
|
2201
2636
|
type: z.ZodLiteral<"headers">;
|
|
2202
2637
|
url: z.ZodString;
|
|
2638
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2203
2639
|
}, z.core.$strict>], "type">>>;
|
|
2204
2640
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2205
2641
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2341,6 +2777,11 @@ export declare const AgentManifestViewSchema: z.ZodObject<{
|
|
|
2341
2777
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
2342
2778
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
2343
2779
|
}, z.core.$strict>>;
|
|
2780
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
2781
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
2782
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
2783
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
2784
|
+
}, z.core.$strict>>;
|
|
2344
2785
|
}, z.core.$strict>>;
|
|
2345
2786
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2346
2787
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2364,6 +2805,7 @@ export declare const AgentManifestViewSchema: z.ZodObject<{
|
|
|
2364
2805
|
description: z.ZodOptional<z.ZodString>;
|
|
2365
2806
|
type: z.ZodLiteral<"bearer">;
|
|
2366
2807
|
url: z.ZodString;
|
|
2808
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2367
2809
|
}, z.core.$strict>, z.ZodObject<{
|
|
2368
2810
|
via: z.ZodOptional<z.ZodString>;
|
|
2369
2811
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2373,6 +2815,7 @@ export declare const AgentManifestViewSchema: z.ZodObject<{
|
|
|
2373
2815
|
description: z.ZodOptional<z.ZodString>;
|
|
2374
2816
|
type: z.ZodLiteral<"headers">;
|
|
2375
2817
|
url: z.ZodString;
|
|
2818
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2376
2819
|
}, z.core.$strict>], "type">>>;
|
|
2377
2820
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2378
2821
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2529,6 +2972,11 @@ export declare const ListAgentManifestsResponseSchema: z.ZodObject<{
|
|
|
2529
2972
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
2530
2973
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
2531
2974
|
}, z.core.$strict>>;
|
|
2975
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
2976
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
2977
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
2978
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
2979
|
+
}, z.core.$strict>>;
|
|
2532
2980
|
}, z.core.$strict>>;
|
|
2533
2981
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2534
2982
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2552,6 +3000,7 @@ export declare const ListAgentManifestsResponseSchema: z.ZodObject<{
|
|
|
2552
3000
|
description: z.ZodOptional<z.ZodString>;
|
|
2553
3001
|
type: z.ZodLiteral<"bearer">;
|
|
2554
3002
|
url: z.ZodString;
|
|
3003
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2555
3004
|
}, z.core.$strict>, z.ZodObject<{
|
|
2556
3005
|
via: z.ZodOptional<z.ZodString>;
|
|
2557
3006
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2561,6 +3010,7 @@ export declare const ListAgentManifestsResponseSchema: z.ZodObject<{
|
|
|
2561
3010
|
description: z.ZodOptional<z.ZodString>;
|
|
2562
3011
|
type: z.ZodLiteral<"headers">;
|
|
2563
3012
|
url: z.ZodString;
|
|
3013
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2564
3014
|
}, z.core.$strict>], "type">>>;
|
|
2565
3015
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2566
3016
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2714,6 +3164,11 @@ export declare const AgentManifestPlanSchema: z.ZodObject<{
|
|
|
2714
3164
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
2715
3165
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
2716
3166
|
}, z.core.$strict>>;
|
|
3167
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
3168
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
3169
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
3170
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
3171
|
+
}, z.core.$strict>>;
|
|
2717
3172
|
}, z.core.$strict>>;
|
|
2718
3173
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2719
3174
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2737,6 +3192,7 @@ export declare const AgentManifestPlanSchema: z.ZodObject<{
|
|
|
2737
3192
|
description: z.ZodOptional<z.ZodString>;
|
|
2738
3193
|
type: z.ZodLiteral<"bearer">;
|
|
2739
3194
|
url: z.ZodString;
|
|
3195
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2740
3196
|
}, z.core.$strict>, z.ZodObject<{
|
|
2741
3197
|
via: z.ZodOptional<z.ZodString>;
|
|
2742
3198
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2746,6 +3202,7 @@ export declare const AgentManifestPlanSchema: z.ZodObject<{
|
|
|
2746
3202
|
description: z.ZodOptional<z.ZodString>;
|
|
2747
3203
|
type: z.ZodLiteral<"headers">;
|
|
2748
3204
|
url: z.ZodString;
|
|
3205
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2749
3206
|
}, z.core.$strict>], "type">>>;
|
|
2750
3207
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2751
3208
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -2849,6 +3306,11 @@ export declare const SaveAgentManifestResponseSchema: z.ZodObject<{
|
|
|
2849
3306
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
2850
3307
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
2851
3308
|
}, z.core.$strict>>;
|
|
3309
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
3310
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
3311
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
3312
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
3313
|
+
}, z.core.$strict>>;
|
|
2852
3314
|
}, z.core.$strict>>;
|
|
2853
3315
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2854
3316
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2872,6 +3334,7 @@ export declare const SaveAgentManifestResponseSchema: z.ZodObject<{
|
|
|
2872
3334
|
description: z.ZodOptional<z.ZodString>;
|
|
2873
3335
|
type: z.ZodLiteral<"bearer">;
|
|
2874
3336
|
url: z.ZodString;
|
|
3337
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2875
3338
|
}, z.core.$strict>, z.ZodObject<{
|
|
2876
3339
|
via: z.ZodOptional<z.ZodString>;
|
|
2877
3340
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -2881,6 +3344,7 @@ export declare const SaveAgentManifestResponseSchema: z.ZodObject<{
|
|
|
2881
3344
|
description: z.ZodOptional<z.ZodString>;
|
|
2882
3345
|
type: z.ZodLiteral<"headers">;
|
|
2883
3346
|
url: z.ZodString;
|
|
3347
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
2884
3348
|
}, z.core.$strict>], "type">>>;
|
|
2885
3349
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2886
3350
|
schedule: z.ZodOptional<z.ZodString>;
|
|
@@ -3134,6 +3598,11 @@ export declare const ForkAgentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3134
3598
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
3135
3599
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
3136
3600
|
}, z.core.$strict>>;
|
|
3601
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
3602
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
3603
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
3604
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
3605
|
+
}, z.core.$strict>>;
|
|
3137
3606
|
}, z.core.$strict>>;
|
|
3138
3607
|
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3139
3608
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3157,6 +3626,7 @@ export declare const ForkAgentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3157
3626
|
description: z.ZodOptional<z.ZodString>;
|
|
3158
3627
|
type: z.ZodLiteral<"bearer">;
|
|
3159
3628
|
url: z.ZodString;
|
|
3629
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
3160
3630
|
}, z.core.$strict>, z.ZodObject<{
|
|
3161
3631
|
via: z.ZodOptional<z.ZodString>;
|
|
3162
3632
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -3166,6 +3636,7 @@ export declare const ForkAgentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3166
3636
|
description: z.ZodOptional<z.ZodString>;
|
|
3167
3637
|
type: z.ZodLiteral<"headers">;
|
|
3168
3638
|
url: z.ZodString;
|
|
3639
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
3169
3640
|
}, z.core.$strict>], "type">>>>;
|
|
3170
3641
|
}, z.core.$strict>;
|
|
3171
3642
|
limits: z.ZodObject<{
|
|
@@ -3696,6 +4167,16 @@ export declare const MessageDeliverySchema: z.ZodEnum<{
|
|
|
3696
4167
|
reject: "reject";
|
|
3697
4168
|
}>;
|
|
3698
4169
|
export type MessageDelivery = z.infer<typeof MessageDeliverySchema>;
|
|
4170
|
+
/**
|
|
4171
|
+
* A message's `removeTools` (Host feature `remove-tools`): the tools its turn may not use, by
|
|
4172
|
+
* name. In the root agent and each agent it uses as a tool, a name removes the declared tool of
|
|
4173
|
+
* that name (an agent used as a tool included), `<server>__<tool>` disables an MCP server's tool
|
|
4174
|
+
* (the server's name and the tool's own name on it), and `<server>` every tool of that server.
|
|
4175
|
+
* Applied to the version the turn runs, after a turn's first segment re-pins the session to its
|
|
4176
|
+
* Agent's version; names that version does not have are ignored. Any caller may send it: it
|
|
4177
|
+
* only narrows.
|
|
4178
|
+
*/
|
|
4179
|
+
export declare const RemoveToolsSchema: z.ZodArray<z.ZodString>;
|
|
3699
4180
|
/**
|
|
3700
4181
|
* One part of a user message (protocol 6): text, or a file by artifact id. A file part without
|
|
3701
4182
|
* `version` means the artifact's latest version when the message is accepted; the Runtime pins
|
|
@@ -3719,6 +4200,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3719
4200
|
idempotencyKey: z.ZodString;
|
|
3720
4201
|
type: z.ZodLiteral<"message">;
|
|
3721
4202
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4203
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3722
4204
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3723
4205
|
queue: "queue";
|
|
3724
4206
|
reject: "reject";
|
|
@@ -3729,6 +4211,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3729
4211
|
idempotencyKey: z.ZodString;
|
|
3730
4212
|
type: z.ZodLiteral<"message">;
|
|
3731
4213
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4214
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3732
4215
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3733
4216
|
queue: "queue";
|
|
3734
4217
|
reject: "reject";
|
|
@@ -3739,6 +4222,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3739
4222
|
idempotencyKey: z.ZodString;
|
|
3740
4223
|
type: z.ZodLiteral<"message">;
|
|
3741
4224
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4225
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3742
4226
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3743
4227
|
queue: "queue";
|
|
3744
4228
|
reject: "reject";
|
|
@@ -3763,6 +4247,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
3763
4247
|
idempotencyKey: z.ZodString;
|
|
3764
4248
|
type: z.ZodLiteral<"message">;
|
|
3765
4249
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4250
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3766
4251
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3767
4252
|
queue: "queue";
|
|
3768
4253
|
reject: "reject";
|
|
@@ -3773,6 +4258,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
3773
4258
|
idempotencyKey: z.ZodString;
|
|
3774
4259
|
type: z.ZodLiteral<"message">;
|
|
3775
4260
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4261
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3776
4262
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3777
4263
|
queue: "queue";
|
|
3778
4264
|
reject: "reject";
|
|
@@ -3783,6 +4269,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
3783
4269
|
idempotencyKey: z.ZodString;
|
|
3784
4270
|
type: z.ZodLiteral<"message">;
|
|
3785
4271
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4272
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3786
4273
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3787
4274
|
queue: "queue";
|
|
3788
4275
|
reject: "reject";
|
|
@@ -3818,6 +4305,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
3818
4305
|
idempotencyKey: z.ZodString;
|
|
3819
4306
|
type: z.ZodLiteral<"message">;
|
|
3820
4307
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4308
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3821
4309
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3822
4310
|
queue: "queue";
|
|
3823
4311
|
reject: "reject";
|
|
@@ -3828,6 +4316,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
3828
4316
|
idempotencyKey: z.ZodString;
|
|
3829
4317
|
type: z.ZodLiteral<"message">;
|
|
3830
4318
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4319
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3831
4320
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3832
4321
|
queue: "queue";
|
|
3833
4322
|
reject: "reject";
|
|
@@ -3838,6 +4327,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
3838
4327
|
idempotencyKey: z.ZodString;
|
|
3839
4328
|
type: z.ZodLiteral<"message">;
|
|
3840
4329
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
4330
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3841
4331
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3842
4332
|
queue: "queue";
|
|
3843
4333
|
reject: "reject";
|
|
@@ -4778,6 +5268,7 @@ export declare const CommandMessagePayloadSchema: z.ZodObject<{
|
|
|
4778
5268
|
version: z.ZodOptional<z.ZodNumber>;
|
|
4779
5269
|
}, z.core.$strict>], "type">>>;
|
|
4780
5270
|
manifest: z.ZodOptional<z.ZodUnknown>;
|
|
5271
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4781
5272
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
4782
5273
|
queue: "queue";
|
|
4783
5274
|
reject: "reject";
|
|
@@ -5001,6 +5492,125 @@ export declare const ArtifactExportFailedPayloadSchema: z.ZodObject<{
|
|
|
5001
5492
|
name: z.ZodString;
|
|
5002
5493
|
message: z.ZodString;
|
|
5003
5494
|
}, z.core.$loose>;
|
|
5495
|
+
/**
|
|
5496
|
+
* `engine.diagnostic`: our engine met something about the session's agent that the agent's
|
|
5497
|
+
* declarations decide, and says so instead of choosing for it (ADR-100), such as `mcp_tools_inline`:
|
|
5498
|
+
* an agent that does not declare `engine.toolSearch` has MCP tool schemas past the share of the
|
|
5499
|
+
* model's context window at which they would be deferred, and keeps them all in its tool list.
|
|
5500
|
+
*/
|
|
5501
|
+
export declare const EngineDiagnosticPayloadSchema: z.ZodObject<{
|
|
5502
|
+
code: z.ZodString;
|
|
5503
|
+
message: z.ZodString;
|
|
5504
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
5505
|
+
}, z.core.$loose>;
|
|
5506
|
+
/** Where the model a session's turns call comes from (`SessionModelRecord.source`). */
|
|
5507
|
+
export declare const SESSION_MODEL_SOURCES: readonly ["manifest", "session", "tenant"];
|
|
5508
|
+
/**
|
|
5509
|
+
* Why a session's turns call the Tenant's model and not the one its manifest (`harness.model`) or
|
|
5510
|
+
* its own choice (`PUT /v1/sessions/{id}/model`) names: that model's provider is not connected,
|
|
5511
|
+
* its provider's catalog does not list it, or it is no `<provider>/<model>` the Tenant takes.
|
|
5512
|
+
*/
|
|
5513
|
+
export declare const SESSION_MODEL_FALLBACK_REASONS: readonly ["provider_not_connected", "not_in_catalog", "invalid_model"];
|
|
5514
|
+
/**
|
|
5515
|
+
* The model a session's turns call, and why (`model` on `GET /v1/sessions/{id}`, and the
|
|
5516
|
+
* `session.model` event): `source` `manifest` for the model its Agent's version names
|
|
5517
|
+
* (`harness.model`, Host feature `agent-model`), `session` for its own choice, `tenant` for the
|
|
5518
|
+
* Tenant's model. On a fallback to the Tenant's, `reason` says why the model `requested` (by the
|
|
5519
|
+
* manifest or the session) is not used.
|
|
5520
|
+
*/
|
|
5521
|
+
export declare const SessionModelRecordSchema: z.ZodObject<{
|
|
5522
|
+
provider: z.ZodString;
|
|
5523
|
+
model: z.ZodString;
|
|
5524
|
+
source: z.ZodEnum<{
|
|
5525
|
+
manifest: "manifest";
|
|
5526
|
+
session: "session";
|
|
5527
|
+
tenant: "tenant";
|
|
5528
|
+
}>;
|
|
5529
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5530
|
+
invalid_model: "invalid_model";
|
|
5531
|
+
not_in_catalog: "not_in_catalog";
|
|
5532
|
+
provider_not_connected: "provider_not_connected";
|
|
5533
|
+
}>>;
|
|
5534
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
5535
|
+
provider: z.ZodString;
|
|
5536
|
+
model: z.ZodString;
|
|
5537
|
+
by: z.ZodEnum<{
|
|
5538
|
+
manifest: "manifest";
|
|
5539
|
+
session: "session";
|
|
5540
|
+
}>;
|
|
5541
|
+
}, z.core.$strict>>;
|
|
5542
|
+
}, z.core.$strict>;
|
|
5543
|
+
export type SessionModelRecord = z.infer<typeof SessionModelRecordSchema>;
|
|
5544
|
+
/**
|
|
5545
|
+
* `session.model`: the model the session's turns call was set (the session opened, its own model
|
|
5546
|
+
* was chosen or cleared) or changed (at a turn's start: a provider was connected or disconnected,
|
|
5547
|
+
* the Tenant's model changed), fallbacks included. `previous` is what it was, absent at the first.
|
|
5548
|
+
*/
|
|
5549
|
+
export declare const SessionModelPayloadSchema: z.ZodObject<{
|
|
5550
|
+
provider: z.ZodString;
|
|
5551
|
+
model: z.ZodString;
|
|
5552
|
+
source: z.ZodEnum<{
|
|
5553
|
+
manifest: "manifest";
|
|
5554
|
+
session: "session";
|
|
5555
|
+
tenant: "tenant";
|
|
5556
|
+
}>;
|
|
5557
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5558
|
+
invalid_model: "invalid_model";
|
|
5559
|
+
not_in_catalog: "not_in_catalog";
|
|
5560
|
+
provider_not_connected: "provider_not_connected";
|
|
5561
|
+
}>>;
|
|
5562
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
5563
|
+
provider: z.ZodString;
|
|
5564
|
+
model: z.ZodString;
|
|
5565
|
+
by: z.ZodEnum<{
|
|
5566
|
+
manifest: "manifest";
|
|
5567
|
+
session: "session";
|
|
5568
|
+
}>;
|
|
5569
|
+
}, z.core.$strict>>;
|
|
5570
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
5571
|
+
provider: z.ZodString;
|
|
5572
|
+
model: z.ZodString;
|
|
5573
|
+
source: z.ZodEnum<{
|
|
5574
|
+
manifest: "manifest";
|
|
5575
|
+
session: "session";
|
|
5576
|
+
tenant: "tenant";
|
|
5577
|
+
}>;
|
|
5578
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5579
|
+
invalid_model: "invalid_model";
|
|
5580
|
+
not_in_catalog: "not_in_catalog";
|
|
5581
|
+
provider_not_connected: "provider_not_connected";
|
|
5582
|
+
}>>;
|
|
5583
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
5584
|
+
provider: z.ZodString;
|
|
5585
|
+
model: z.ZodString;
|
|
5586
|
+
by: z.ZodEnum<{
|
|
5587
|
+
manifest: "manifest";
|
|
5588
|
+
session: "session";
|
|
5589
|
+
}>;
|
|
5590
|
+
}, z.core.$strict>>;
|
|
5591
|
+
}, z.core.$strict>>;
|
|
5592
|
+
}, z.core.$loose>;
|
|
5593
|
+
/**
|
|
5594
|
+
* `turn.version_kept`: a turn's first segment did not move the session to the version its Agent
|
|
5595
|
+
* runs now (`from` is the version the session keeps, `to` the Agent's). `variant_invalid`: the
|
|
5596
|
+
* turn manifest its message carried is no variant of that version, and the turn runs it on the
|
|
5597
|
+
* version it was accepted for, so the variant never widens what the turn may do. Send the message
|
|
5598
|
+
* again with a variant of the new version, or name the tools with `removeTools`.
|
|
5599
|
+
*/
|
|
5600
|
+
export declare const TurnVersionKeptPayloadSchema: z.ZodObject<{
|
|
5601
|
+
reason: z.ZodEnum<{
|
|
5602
|
+
variant_invalid: "variant_invalid";
|
|
5603
|
+
}>;
|
|
5604
|
+
from: z.ZodObject<{
|
|
5605
|
+
name: z.ZodString;
|
|
5606
|
+
version: z.ZodNumber;
|
|
5607
|
+
}, z.core.$strict>;
|
|
5608
|
+
to: z.ZodObject<{
|
|
5609
|
+
name: z.ZodString;
|
|
5610
|
+
version: z.ZodNumber;
|
|
5611
|
+
}, z.core.$strict>;
|
|
5612
|
+
message: z.ZodString;
|
|
5613
|
+
}, z.core.$loose>;
|
|
5004
5614
|
/** What readying one declared MCP server found (`mcp.discovered`). */
|
|
5005
5615
|
export declare const McpServerOutcomeSchema: z.ZodObject<{
|
|
5006
5616
|
agentId: z.ZodOptional<z.ZodString>;
|
|
@@ -5023,8 +5633,10 @@ export declare const McpServerOutcomeSchema: z.ZodObject<{
|
|
|
5023
5633
|
export type McpServerOutcome = z.infer<typeof McpServerOutcomeSchema>;
|
|
5024
5634
|
/**
|
|
5025
5635
|
* `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
|
-
*
|
|
5636
|
+
* offer, one outcome per declared server. A server that did not connect adds no tools until a
|
|
5637
|
+
* later turn's first segment, which tries it again: once it answers, it joins the session's
|
|
5638
|
+
* snapshot and a second `mcp.discovered` names it (`rejoined`, with only the servers that joined).
|
|
5639
|
+
* This is where the model's missing tools show (also `mcpDiagnostics`).
|
|
5028
5640
|
*/
|
|
5029
5641
|
export declare const McpDiscoveredPayloadSchema: z.ZodObject<{
|
|
5030
5642
|
servers: z.ZodArray<z.ZodObject<{
|
|
@@ -5045,6 +5657,7 @@ export declare const McpDiscoveredPayloadSchema: z.ZodObject<{
|
|
|
5045
5657
|
unknownTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5046
5658
|
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5047
5659
|
}, z.core.$loose>>;
|
|
5660
|
+
rejoined: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5048
5661
|
}, z.core.$loose>;
|
|
5049
5662
|
/**
|
|
5050
5663
|
* The event catalog (Durable Streams §9.5): every session event type, its payload schema, its
|
|
@@ -5073,6 +5686,7 @@ export declare const EVENT_CATALOG: {
|
|
|
5073
5686
|
version: z.ZodOptional<z.ZodNumber>;
|
|
5074
5687
|
}, z.core.$strict>], "type">>>;
|
|
5075
5688
|
manifest: z.ZodOptional<z.ZodUnknown>;
|
|
5689
|
+
removeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5076
5690
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
5077
5691
|
queue: "queue";
|
|
5078
5692
|
reject: "reject";
|
|
@@ -5192,6 +5806,72 @@ export declare const EVENT_CATALOG: {
|
|
|
5192
5806
|
readonly source: "api";
|
|
5193
5807
|
readonly version: 1;
|
|
5194
5808
|
};
|
|
5809
|
+
readonly "turn.version_kept": {
|
|
5810
|
+
readonly payload: z.ZodObject<{
|
|
5811
|
+
reason: z.ZodEnum<{
|
|
5812
|
+
variant_invalid: "variant_invalid";
|
|
5813
|
+
}>;
|
|
5814
|
+
from: z.ZodObject<{
|
|
5815
|
+
name: z.ZodString;
|
|
5816
|
+
version: z.ZodNumber;
|
|
5817
|
+
}, z.core.$strict>;
|
|
5818
|
+
to: z.ZodObject<{
|
|
5819
|
+
name: z.ZodString;
|
|
5820
|
+
version: z.ZodNumber;
|
|
5821
|
+
}, z.core.$strict>;
|
|
5822
|
+
message: z.ZodString;
|
|
5823
|
+
}, z.core.$loose>;
|
|
5824
|
+
readonly source: "api";
|
|
5825
|
+
readonly version: 1;
|
|
5826
|
+
};
|
|
5827
|
+
readonly "session.model": {
|
|
5828
|
+
readonly payload: z.ZodObject<{
|
|
5829
|
+
provider: z.ZodString;
|
|
5830
|
+
model: z.ZodString;
|
|
5831
|
+
source: z.ZodEnum<{
|
|
5832
|
+
manifest: "manifest";
|
|
5833
|
+
session: "session";
|
|
5834
|
+
tenant: "tenant";
|
|
5835
|
+
}>;
|
|
5836
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5837
|
+
invalid_model: "invalid_model";
|
|
5838
|
+
not_in_catalog: "not_in_catalog";
|
|
5839
|
+
provider_not_connected: "provider_not_connected";
|
|
5840
|
+
}>>;
|
|
5841
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
5842
|
+
provider: z.ZodString;
|
|
5843
|
+
model: z.ZodString;
|
|
5844
|
+
by: z.ZodEnum<{
|
|
5845
|
+
manifest: "manifest";
|
|
5846
|
+
session: "session";
|
|
5847
|
+
}>;
|
|
5848
|
+
}, z.core.$strict>>;
|
|
5849
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
5850
|
+
provider: z.ZodString;
|
|
5851
|
+
model: z.ZodString;
|
|
5852
|
+
source: z.ZodEnum<{
|
|
5853
|
+
manifest: "manifest";
|
|
5854
|
+
session: "session";
|
|
5855
|
+
tenant: "tenant";
|
|
5856
|
+
}>;
|
|
5857
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5858
|
+
invalid_model: "invalid_model";
|
|
5859
|
+
not_in_catalog: "not_in_catalog";
|
|
5860
|
+
provider_not_connected: "provider_not_connected";
|
|
5861
|
+
}>>;
|
|
5862
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
5863
|
+
provider: z.ZodString;
|
|
5864
|
+
model: z.ZodString;
|
|
5865
|
+
by: z.ZodEnum<{
|
|
5866
|
+
manifest: "manifest";
|
|
5867
|
+
session: "session";
|
|
5868
|
+
}>;
|
|
5869
|
+
}, z.core.$strict>>;
|
|
5870
|
+
}, z.core.$strict>>;
|
|
5871
|
+
}, z.core.$loose>;
|
|
5872
|
+
readonly source: "api";
|
|
5873
|
+
readonly version: 1;
|
|
5874
|
+
};
|
|
5195
5875
|
readonly "message.queued": {
|
|
5196
5876
|
readonly payload: z.ZodObject<{
|
|
5197
5877
|
queuedMessageId: z.ZodString;
|
|
@@ -5452,6 +6132,7 @@ export declare const EVENT_CATALOG: {
|
|
|
5452
6132
|
unknownTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5453
6133
|
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5454
6134
|
}, z.core.$loose>>;
|
|
6135
|
+
rejoined: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5455
6136
|
}, z.core.$loose>;
|
|
5456
6137
|
readonly source: "loop";
|
|
5457
6138
|
readonly version: 1;
|
|
@@ -5473,6 +6154,15 @@ export declare const EVENT_CATALOG: {
|
|
|
5473
6154
|
readonly source: "loop";
|
|
5474
6155
|
readonly version: 1;
|
|
5475
6156
|
};
|
|
6157
|
+
readonly "engine.diagnostic": {
|
|
6158
|
+
readonly payload: z.ZodObject<{
|
|
6159
|
+
code: z.ZodString;
|
|
6160
|
+
message: z.ZodString;
|
|
6161
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
6162
|
+
}, z.core.$loose>;
|
|
6163
|
+
readonly source: "loop";
|
|
6164
|
+
readonly version: 1;
|
|
6165
|
+
};
|
|
5476
6166
|
readonly "environment.state": {
|
|
5477
6167
|
readonly payload: z.ZodObject<{
|
|
5478
6168
|
state: z.ZodEnum<{
|
|
@@ -5686,7 +6376,7 @@ type EventSchemaOf<T extends EventType> = z.ZodObject<typeof eventEnvelope & {
|
|
|
5686
6376
|
/** One schema per event type, keyed by type (the OpenAPI components). */
|
|
5687
6377
|
export declare const EVENT_SCHEMAS: { [T in EventType]: EventSchemaOf<T>; };
|
|
5688
6378
|
/** 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">;
|
|
6379
|
+
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
6380
|
export type SessionEvent = {
|
|
5691
6381
|
[T in EventType]: z.infer<EventSchemaOf<T>>;
|
|
5692
6382
|
}[EventType];
|
|
@@ -5701,7 +6391,7 @@ export type SessionEventOf<T extends EventType> = Extract<SessionEvent, {
|
|
|
5701
6391
|
*/
|
|
5702
6392
|
export declare function parseSessionEvent(value: unknown): SessionEvent | LiveEvent;
|
|
5703
6393
|
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">>;
|
|
6394
|
+
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
6395
|
cursor: z.ZodNullable<z.ZodString>;
|
|
5706
6396
|
}, z.core.$strip>;
|
|
5707
6397
|
export type SessionItemsResponse = {
|
|
@@ -6452,6 +7142,11 @@ export declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
6452
7142
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
6453
7143
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
6454
7144
|
}, z.core.$strict>>;
|
|
7145
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
7146
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
7147
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
7148
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
7149
|
+
}, z.core.$strict>>;
|
|
6455
7150
|
}, z.core.$strict>>;
|
|
6456
7151
|
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6457
7152
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6475,6 +7170,7 @@ export declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
6475
7170
|
description: z.ZodOptional<z.ZodString>;
|
|
6476
7171
|
type: z.ZodLiteral<"bearer">;
|
|
6477
7172
|
url: z.ZodString;
|
|
7173
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
6478
7174
|
}, z.core.$strict>, z.ZodObject<{
|
|
6479
7175
|
via: z.ZodOptional<z.ZodString>;
|
|
6480
7176
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -6484,6 +7180,7 @@ export declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
6484
7180
|
description: z.ZodOptional<z.ZodString>;
|
|
6485
7181
|
type: z.ZodLiteral<"headers">;
|
|
6486
7182
|
url: z.ZodString;
|
|
7183
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
6487
7184
|
}, z.core.$strict>], "type">>>>;
|
|
6488
7185
|
}, z.core.$strict>;
|
|
6489
7186
|
limits: z.ZodObject<{
|
|
@@ -6599,6 +7296,28 @@ export declare const SessionViewSchema: z.ZodObject<{
|
|
|
6599
7296
|
closedReason: z.ZodOptional<z.ZodString>;
|
|
6600
7297
|
mcpSnapshot: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6601
7298
|
mcpDiagnostics: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7299
|
+
model: z.ZodNullable<z.ZodObject<{
|
|
7300
|
+
provider: z.ZodString;
|
|
7301
|
+
model: z.ZodString;
|
|
7302
|
+
source: z.ZodEnum<{
|
|
7303
|
+
manifest: "manifest";
|
|
7304
|
+
session: "session";
|
|
7305
|
+
tenant: "tenant";
|
|
7306
|
+
}>;
|
|
7307
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
7308
|
+
invalid_model: "invalid_model";
|
|
7309
|
+
not_in_catalog: "not_in_catalog";
|
|
7310
|
+
provider_not_connected: "provider_not_connected";
|
|
7311
|
+
}>>;
|
|
7312
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
7313
|
+
provider: z.ZodString;
|
|
7314
|
+
model: z.ZodString;
|
|
7315
|
+
by: z.ZodEnum<{
|
|
7316
|
+
manifest: "manifest";
|
|
7317
|
+
session: "session";
|
|
7318
|
+
}>;
|
|
7319
|
+
}, z.core.$strict>>;
|
|
7320
|
+
}, z.core.$strict>>;
|
|
6602
7321
|
waits: z.ZodOptional<z.ZodUnknown>;
|
|
6603
7322
|
error: z.ZodOptional<z.ZodString>;
|
|
6604
7323
|
uncertainEffects: z.ZodArray<z.ZodObject<{
|
|
@@ -6987,12 +7706,15 @@ export declare const ToolInputConditionSchema: z.ZodObject<{
|
|
|
6987
7706
|
export type ToolInputCondition = z.infer<typeof ToolInputConditionSchema>;
|
|
6988
7707
|
/**
|
|
6989
7708
|
* One rule of the Tenant's tool policy, applied at the Tool Gate to every MCP and HTTP tool call
|
|
6990
|
-
* of every harness
|
|
6991
|
-
*
|
|
6992
|
-
*
|
|
6993
|
-
* `
|
|
6994
|
-
*
|
|
6995
|
-
*
|
|
7709
|
+
* of every harness, and to the operations the Runtime serves itself (`kind: "runtime"`, D83). A
|
|
7710
|
+
* rule matches a call when every selector it sets matches: `tool` (the tool's identity: an MCP
|
|
7711
|
+
* tool's own name on its server, an HTTP tool's declared name, or a runtime operation:
|
|
7712
|
+
* `triggers`, `memory`, `schedule_wake`; never the name a harness gave the model; `*` for any run
|
|
7713
|
+
* of characters), `server` (an MCP server's name), `kind` (a runtime operation matches only a rule
|
|
7714
|
+
* that names `kind: "runtime"`), `agent` (the agent that calls it: the agent manifest's name, or the id of an agent used
|
|
7715
|
+
* as a tool or of a flow's agent; never an Agent's id; the session's root agent's name matches its
|
|
7716
|
+
* subagents' calls too, those of the agents it uses as tools) and `when` (fields of the input, by
|
|
7717
|
+
* dotted path). The strictest matching rule decides: `deny` refuses the call before it is sent,
|
|
6996
7718
|
* `ask` holds it until a person approves it on the session (`approve`), `allow` runs it. A call no
|
|
6997
7719
|
* rule matches runs. Sandbox tools never cross the gate; their network side is egress policy.
|
|
6998
7720
|
*
|
|
@@ -7010,6 +7732,7 @@ export declare const ToolRuleSchema: z.ZodObject<{
|
|
|
7010
7732
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
7011
7733
|
http: "http";
|
|
7012
7734
|
mcp: "mcp";
|
|
7735
|
+
runtime: "runtime";
|
|
7013
7736
|
}>>;
|
|
7014
7737
|
agent: z.ZodOptional<z.ZodString>;
|
|
7015
7738
|
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -7038,6 +7761,7 @@ export declare const PutToolPolicyRequestSchema: z.ZodObject<{
|
|
|
7038
7761
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
7039
7762
|
http: "http";
|
|
7040
7763
|
mcp: "mcp";
|
|
7764
|
+
runtime: "runtime";
|
|
7041
7765
|
}>>;
|
|
7042
7766
|
agent: z.ZodOptional<z.ZodString>;
|
|
7043
7767
|
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -7066,6 +7790,7 @@ export declare const ToolPolicySchema: z.ZodObject<{
|
|
|
7066
7790
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
7067
7791
|
http: "http";
|
|
7068
7792
|
mcp: "mcp";
|
|
7793
|
+
runtime: "runtime";
|
|
7069
7794
|
}>>;
|
|
7070
7795
|
agent: z.ZodOptional<z.ZodString>;
|
|
7071
7796
|
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -7983,7 +8708,7 @@ export declare const SessionManifestViewSchema: z.ZodObject<{
|
|
|
7983
8708
|
}, z.core.$strict>;
|
|
7984
8709
|
export type SessionManifestView = z.infer<typeof SessionManifestViewSchema>;
|
|
7985
8710
|
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">>;
|
|
8711
|
+
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
8712
|
cursor: z.ZodNullable<z.ZodString>;
|
|
7988
8713
|
tail: z.ZodBoolean;
|
|
7989
8714
|
}, z.core.$strip>;
|
|
@@ -8476,6 +9201,11 @@ export declare const AgentPageSchema: z.ZodObject<{
|
|
|
8476
9201
|
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
8477
9202
|
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
8478
9203
|
}, z.core.$strict>>;
|
|
9204
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
9205
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
9206
|
+
minIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
9207
|
+
runsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
9208
|
+
}, z.core.$strict>>;
|
|
8479
9209
|
}, z.core.$strict>>;
|
|
8480
9210
|
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8481
9211
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8499,6 +9229,7 @@ export declare const AgentPageSchema: z.ZodObject<{
|
|
|
8499
9229
|
description: z.ZodOptional<z.ZodString>;
|
|
8500
9230
|
type: z.ZodLiteral<"bearer">;
|
|
8501
9231
|
url: z.ZodString;
|
|
9232
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
8502
9233
|
}, z.core.$strict>, z.ZodObject<{
|
|
8503
9234
|
via: z.ZodOptional<z.ZodString>;
|
|
8504
9235
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -8508,6 +9239,7 @@ export declare const AgentPageSchema: z.ZodObject<{
|
|
|
8508
9239
|
description: z.ZodOptional<z.ZodString>;
|
|
8509
9240
|
type: z.ZodLiteral<"headers">;
|
|
8510
9241
|
url: z.ZodString;
|
|
9242
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
8511
9243
|
}, z.core.$strict>], "type">>>>;
|
|
8512
9244
|
}, z.core.$strict>;
|
|
8513
9245
|
limits: z.ZodObject<{
|