@adea-ai/runtime-sdk 1.11.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter.d.ts +156 -129
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +54 -1
- package/dist/adapter.js.map +1 -1
- package/dist/agent-plugins.d.ts +4 -4
- package/dist/capabilities.d.ts +55 -55
- package/dist/compatibility.d.ts +47 -47
- package/dist/compatibility.js.map +1 -1
- package/dist/eligibility.d.ts +86 -86
- package/dist/fixtures.d.ts +12 -12
- package/dist/fixtures.js.map +1 -1
- package/dist/health.d.ts +35 -35
- package/dist/health.d.ts.map +1 -1
- package/dist/health.js.map +1 -1
- package/dist/inventory.d.ts.map +1 -1
- package/dist/mock.d.ts.map +1 -1
- package/dist/mock.js.map +1 -1
- package/dist/models.d.ts +59 -59
- package/dist/registry.d.ts +43 -43
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js.map +1 -1
- package/dist/routing.d.ts +74 -74
- package/dist/routing.d.ts.map +1 -1
- package/dist/sessions.d.ts +48 -48
- package/dist/sessions.d.ts.map +1 -1
- package/dist/sessions.js.map +1 -1
- package/dist/transport.d.ts +2 -2
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js.map +1 -1
- package/package.json +3 -3
package/dist/adapter.d.ts
CHANGED
|
@@ -38,30 +38,30 @@ export declare const RuntimeAdapterInspectionSchema: z.ZodObject<{
|
|
|
38
38
|
}>;
|
|
39
39
|
capabilities: z.ZodArray<z.ZodObject<{
|
|
40
40
|
name: z.ZodEnum<{
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"tool.call": "tool.call";
|
|
44
|
-
"tool.parallel": "tool.parallel";
|
|
45
|
-
"output.structured": "output.structured";
|
|
41
|
+
"execution.cancel": "execution.cancel";
|
|
42
|
+
"execution.child": "execution.child";
|
|
46
43
|
"filesystem.read": "filesystem.read";
|
|
47
44
|
"filesystem.write": "filesystem.write";
|
|
45
|
+
"interaction.approval": "interaction.approval";
|
|
46
|
+
"interaction.user-input": "interaction.user-input";
|
|
47
|
+
"model.select": "model.select";
|
|
48
|
+
"output.structured": "output.structured";
|
|
48
49
|
"project.read": "project.read";
|
|
49
50
|
"project.write": "project.write";
|
|
50
|
-
"execution.cancel": "execution.cancel";
|
|
51
|
-
"interaction.user-input": "interaction.user-input";
|
|
52
|
-
"interaction.approval": "interaction.approval";
|
|
53
|
-
"session.create": "session.create";
|
|
54
|
-
"session.list": "session.list";
|
|
55
|
-
"session.resume": "session.resume";
|
|
56
51
|
"session.close": "session.close";
|
|
52
|
+
"session.create": "session.create";
|
|
57
53
|
"session.history": "session.history";
|
|
54
|
+
"session.list": "session.list";
|
|
58
55
|
"session.load": "session.load";
|
|
59
|
-
"
|
|
60
|
-
"
|
|
56
|
+
"session.resume": "session.resume";
|
|
57
|
+
"stream.events": "stream.events";
|
|
58
|
+
"stream.output": "stream.output";
|
|
59
|
+
"tool.call": "tool.call";
|
|
60
|
+
"tool.parallel": "tool.parallel";
|
|
61
61
|
}>;
|
|
62
62
|
support: z.ZodEnum<{
|
|
63
|
-
supported: "supported";
|
|
64
63
|
degraded: "degraded";
|
|
64
|
+
supported: "supported";
|
|
65
65
|
unsupported: "unsupported";
|
|
66
66
|
}>;
|
|
67
67
|
limitations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -71,9 +71,9 @@ export declare const RuntimeAdapterInspectionSchema: z.ZodObject<{
|
|
|
71
71
|
versions: z.ZodArray<z.ZodString>;
|
|
72
72
|
skills: z.ZodBoolean;
|
|
73
73
|
mcpTransports: z.ZodArray<z.ZodEnum<{
|
|
74
|
+
sse: "sse";
|
|
74
75
|
stdio: "stdio";
|
|
75
76
|
"streamable-http": "streamable-http";
|
|
76
|
-
sse: "sse";
|
|
77
77
|
}>>;
|
|
78
78
|
}, z.core.$strict>>;
|
|
79
79
|
observedAt: z.ZodISODateTime;
|
|
@@ -85,92 +85,92 @@ export declare const RuntimeAdapterInspectionSchema: z.ZodObject<{
|
|
|
85
85
|
ineligible: "ineligible";
|
|
86
86
|
}>;
|
|
87
87
|
missingRequired: z.ZodArray<z.ZodEnum<{
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"tool.call": "tool.call";
|
|
91
|
-
"tool.parallel": "tool.parallel";
|
|
92
|
-
"output.structured": "output.structured";
|
|
88
|
+
"execution.cancel": "execution.cancel";
|
|
89
|
+
"execution.child": "execution.child";
|
|
93
90
|
"filesystem.read": "filesystem.read";
|
|
94
91
|
"filesystem.write": "filesystem.write";
|
|
92
|
+
"interaction.approval": "interaction.approval";
|
|
93
|
+
"interaction.user-input": "interaction.user-input";
|
|
94
|
+
"model.select": "model.select";
|
|
95
|
+
"output.structured": "output.structured";
|
|
95
96
|
"project.read": "project.read";
|
|
96
97
|
"project.write": "project.write";
|
|
97
|
-
"execution.cancel": "execution.cancel";
|
|
98
|
-
"interaction.user-input": "interaction.user-input";
|
|
99
|
-
"interaction.approval": "interaction.approval";
|
|
100
|
-
"session.create": "session.create";
|
|
101
|
-
"session.list": "session.list";
|
|
102
|
-
"session.resume": "session.resume";
|
|
103
98
|
"session.close": "session.close";
|
|
99
|
+
"session.create": "session.create";
|
|
104
100
|
"session.history": "session.history";
|
|
101
|
+
"session.list": "session.list";
|
|
105
102
|
"session.load": "session.load";
|
|
106
|
-
"
|
|
107
|
-
"execution.child": "execution.child";
|
|
108
|
-
}>>;
|
|
109
|
-
insufficientRequired: z.ZodArray<z.ZodEnum<{
|
|
110
|
-
"stream.output": "stream.output";
|
|
103
|
+
"session.resume": "session.resume";
|
|
111
104
|
"stream.events": "stream.events";
|
|
105
|
+
"stream.output": "stream.output";
|
|
112
106
|
"tool.call": "tool.call";
|
|
113
107
|
"tool.parallel": "tool.parallel";
|
|
114
|
-
|
|
108
|
+
}>>;
|
|
109
|
+
insufficientRequired: z.ZodArray<z.ZodEnum<{
|
|
110
|
+
"execution.cancel": "execution.cancel";
|
|
111
|
+
"execution.child": "execution.child";
|
|
115
112
|
"filesystem.read": "filesystem.read";
|
|
116
113
|
"filesystem.write": "filesystem.write";
|
|
114
|
+
"interaction.approval": "interaction.approval";
|
|
115
|
+
"interaction.user-input": "interaction.user-input";
|
|
116
|
+
"model.select": "model.select";
|
|
117
|
+
"output.structured": "output.structured";
|
|
117
118
|
"project.read": "project.read";
|
|
118
119
|
"project.write": "project.write";
|
|
119
|
-
"execution.cancel": "execution.cancel";
|
|
120
|
-
"interaction.user-input": "interaction.user-input";
|
|
121
|
-
"interaction.approval": "interaction.approval";
|
|
122
|
-
"session.create": "session.create";
|
|
123
|
-
"session.list": "session.list";
|
|
124
|
-
"session.resume": "session.resume";
|
|
125
120
|
"session.close": "session.close";
|
|
121
|
+
"session.create": "session.create";
|
|
126
122
|
"session.history": "session.history";
|
|
123
|
+
"session.list": "session.list";
|
|
127
124
|
"session.load": "session.load";
|
|
128
|
-
"
|
|
129
|
-
"execution.child": "execution.child";
|
|
130
|
-
}>>;
|
|
131
|
-
missingOptional: z.ZodArray<z.ZodEnum<{
|
|
132
|
-
"stream.output": "stream.output";
|
|
125
|
+
"session.resume": "session.resume";
|
|
133
126
|
"stream.events": "stream.events";
|
|
127
|
+
"stream.output": "stream.output";
|
|
134
128
|
"tool.call": "tool.call";
|
|
135
129
|
"tool.parallel": "tool.parallel";
|
|
136
|
-
|
|
130
|
+
}>>;
|
|
131
|
+
missingOptional: z.ZodArray<z.ZodEnum<{
|
|
132
|
+
"execution.cancel": "execution.cancel";
|
|
133
|
+
"execution.child": "execution.child";
|
|
137
134
|
"filesystem.read": "filesystem.read";
|
|
138
135
|
"filesystem.write": "filesystem.write";
|
|
136
|
+
"interaction.approval": "interaction.approval";
|
|
137
|
+
"interaction.user-input": "interaction.user-input";
|
|
138
|
+
"model.select": "model.select";
|
|
139
|
+
"output.structured": "output.structured";
|
|
139
140
|
"project.read": "project.read";
|
|
140
141
|
"project.write": "project.write";
|
|
141
|
-
"execution.cancel": "execution.cancel";
|
|
142
|
-
"interaction.user-input": "interaction.user-input";
|
|
143
|
-
"interaction.approval": "interaction.approval";
|
|
144
|
-
"session.create": "session.create";
|
|
145
|
-
"session.list": "session.list";
|
|
146
|
-
"session.resume": "session.resume";
|
|
147
142
|
"session.close": "session.close";
|
|
143
|
+
"session.create": "session.create";
|
|
148
144
|
"session.history": "session.history";
|
|
145
|
+
"session.list": "session.list";
|
|
149
146
|
"session.load": "session.load";
|
|
150
|
-
"
|
|
151
|
-
"execution.child": "execution.child";
|
|
152
|
-
}>>;
|
|
153
|
-
degradedOptional: z.ZodArray<z.ZodEnum<{
|
|
154
|
-
"stream.output": "stream.output";
|
|
147
|
+
"session.resume": "session.resume";
|
|
155
148
|
"stream.events": "stream.events";
|
|
149
|
+
"stream.output": "stream.output";
|
|
156
150
|
"tool.call": "tool.call";
|
|
157
151
|
"tool.parallel": "tool.parallel";
|
|
158
|
-
|
|
152
|
+
}>>;
|
|
153
|
+
degradedOptional: z.ZodArray<z.ZodEnum<{
|
|
154
|
+
"execution.cancel": "execution.cancel";
|
|
155
|
+
"execution.child": "execution.child";
|
|
159
156
|
"filesystem.read": "filesystem.read";
|
|
160
157
|
"filesystem.write": "filesystem.write";
|
|
158
|
+
"interaction.approval": "interaction.approval";
|
|
159
|
+
"interaction.user-input": "interaction.user-input";
|
|
160
|
+
"model.select": "model.select";
|
|
161
|
+
"output.structured": "output.structured";
|
|
161
162
|
"project.read": "project.read";
|
|
162
163
|
"project.write": "project.write";
|
|
163
|
-
"execution.cancel": "execution.cancel";
|
|
164
|
-
"interaction.user-input": "interaction.user-input";
|
|
165
|
-
"interaction.approval": "interaction.approval";
|
|
166
|
-
"session.create": "session.create";
|
|
167
|
-
"session.list": "session.list";
|
|
168
|
-
"session.resume": "session.resume";
|
|
169
164
|
"session.close": "session.close";
|
|
165
|
+
"session.create": "session.create";
|
|
170
166
|
"session.history": "session.history";
|
|
167
|
+
"session.list": "session.list";
|
|
171
168
|
"session.load": "session.load";
|
|
172
|
-
"
|
|
173
|
-
"
|
|
169
|
+
"session.resume": "session.resume";
|
|
170
|
+
"stream.events": "stream.events";
|
|
171
|
+
"stream.output": "stream.output";
|
|
172
|
+
"tool.call": "tool.call";
|
|
173
|
+
"tool.parallel": "tool.parallel";
|
|
174
174
|
}>>;
|
|
175
175
|
}, z.core.$strict>>;
|
|
176
176
|
}, z.core.$strict>;
|
|
@@ -188,8 +188,8 @@ export declare const RuntimeUsageAccountingSchema: z.ZodObject<{
|
|
|
188
188
|
schemaVersion: z.ZodLiteral<1>;
|
|
189
189
|
sourceId: z.ZodString;
|
|
190
190
|
fundingSource: z.ZodEnum<{
|
|
191
|
-
hq_managed: "hq_managed";
|
|
192
191
|
external_subscription: "external_subscription";
|
|
192
|
+
hq_managed: "hq_managed";
|
|
193
193
|
}>;
|
|
194
194
|
currency: z.ZodLiteral<"USD">;
|
|
195
195
|
chargedMicrounits: z.ZodNumber;
|
|
@@ -208,8 +208,8 @@ export declare const RuntimeUsageSchema: z.ZodObject<{
|
|
|
208
208
|
schemaVersion: z.ZodLiteral<1>;
|
|
209
209
|
sourceId: z.ZodString;
|
|
210
210
|
fundingSource: z.ZodEnum<{
|
|
211
|
-
hq_managed: "hq_managed";
|
|
212
211
|
external_subscription: "external_subscription";
|
|
212
|
+
hq_managed: "hq_managed";
|
|
213
213
|
}>;
|
|
214
214
|
currency: z.ZodLiteral<"USD">;
|
|
215
215
|
chargedMicrounits: z.ZodNumber;
|
|
@@ -240,8 +240,8 @@ export declare const RuntimeExecutionResultSchema: z.ZodObject<{
|
|
|
240
240
|
schemaVersion: z.ZodLiteral<1>;
|
|
241
241
|
sourceId: z.ZodString;
|
|
242
242
|
fundingSource: z.ZodEnum<{
|
|
243
|
-
hq_managed: "hq_managed";
|
|
244
243
|
external_subscription: "external_subscription";
|
|
244
|
+
hq_managed: "hq_managed";
|
|
245
245
|
}>;
|
|
246
246
|
currency: z.ZodLiteral<"USD">;
|
|
247
247
|
chargedMicrounits: z.ZodNumber;
|
|
@@ -260,30 +260,30 @@ export declare const RuntimeExecutionResultSchema: z.ZodObject<{
|
|
|
260
260
|
export declare const RuntimeErrorSchema: z.ZodObject<{
|
|
261
261
|
code: z.ZodString;
|
|
262
262
|
classification: z.ZodEnum<{
|
|
263
|
-
unsupported: "unsupported";
|
|
264
|
-
unknown: "unknown";
|
|
265
|
-
unavailable: "unavailable";
|
|
266
|
-
validation: "validation";
|
|
267
|
-
conflict: "conflict";
|
|
268
|
-
timeout: "timeout";
|
|
269
263
|
cancelled: "cancelled";
|
|
270
|
-
|
|
264
|
+
conflict: "conflict";
|
|
271
265
|
infrastructure: "infrastructure";
|
|
266
|
+
runtime: "runtime";
|
|
267
|
+
timeout: "timeout";
|
|
268
|
+
unavailable: "unavailable";
|
|
269
|
+
unknown: "unknown";
|
|
270
|
+
unsupported: "unsupported";
|
|
271
|
+
validation: "validation";
|
|
272
272
|
}>;
|
|
273
273
|
message: z.ZodString;
|
|
274
274
|
retryable: z.ZodBoolean;
|
|
275
275
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
276
276
|
}, z.core.$strict>;
|
|
277
277
|
export declare const RuntimeExecutionStateSchema: z.ZodEnum<{
|
|
278
|
-
unknown: "unknown";
|
|
279
|
-
completed: "completed";
|
|
280
|
-
cancelled: "cancelled";
|
|
281
|
-
starting: "starting";
|
|
282
|
-
running: "running";
|
|
283
278
|
awaiting_input: "awaiting_input";
|
|
279
|
+
cancelled: "cancelled";
|
|
284
280
|
cancelling: "cancelling";
|
|
281
|
+
completed: "completed";
|
|
285
282
|
failed: "failed";
|
|
283
|
+
running: "running";
|
|
284
|
+
starting: "starting";
|
|
286
285
|
timed_out: "timed_out";
|
|
286
|
+
unknown: "unknown";
|
|
287
287
|
}>;
|
|
288
288
|
export declare const RuntimeExecutionStatusSchema: z.ZodObject<{
|
|
289
289
|
handle: z.ZodObject<{
|
|
@@ -293,15 +293,15 @@ export declare const RuntimeExecutionStatusSchema: z.ZodObject<{
|
|
|
293
293
|
startedAt: z.ZodISODateTime;
|
|
294
294
|
}, z.core.$strict>;
|
|
295
295
|
state: z.ZodEnum<{
|
|
296
|
-
unknown: "unknown";
|
|
297
|
-
completed: "completed";
|
|
298
|
-
cancelled: "cancelled";
|
|
299
|
-
starting: "starting";
|
|
300
|
-
running: "running";
|
|
301
296
|
awaiting_input: "awaiting_input";
|
|
297
|
+
cancelled: "cancelled";
|
|
302
298
|
cancelling: "cancelling";
|
|
299
|
+
completed: "completed";
|
|
303
300
|
failed: "failed";
|
|
301
|
+
running: "running";
|
|
302
|
+
starting: "starting";
|
|
304
303
|
timed_out: "timed_out";
|
|
304
|
+
unknown: "unknown";
|
|
305
305
|
}>;
|
|
306
306
|
observedAt: z.ZodISODateTime;
|
|
307
307
|
result: z.ZodOptional<z.ZodObject<{
|
|
@@ -319,8 +319,8 @@ export declare const RuntimeExecutionStatusSchema: z.ZodObject<{
|
|
|
319
319
|
schemaVersion: z.ZodLiteral<1>;
|
|
320
320
|
sourceId: z.ZodString;
|
|
321
321
|
fundingSource: z.ZodEnum<{
|
|
322
|
-
hq_managed: "hq_managed";
|
|
323
322
|
external_subscription: "external_subscription";
|
|
323
|
+
hq_managed: "hq_managed";
|
|
324
324
|
}>;
|
|
325
325
|
currency: z.ZodLiteral<"USD">;
|
|
326
326
|
chargedMicrounits: z.ZodNumber;
|
|
@@ -348,8 +348,8 @@ export declare const RuntimeExecutionStatusSchema: z.ZodObject<{
|
|
|
348
348
|
schemaVersion: z.ZodLiteral<1>;
|
|
349
349
|
sourceId: z.ZodString;
|
|
350
350
|
fundingSource: z.ZodEnum<{
|
|
351
|
-
hq_managed: "hq_managed";
|
|
352
351
|
external_subscription: "external_subscription";
|
|
352
|
+
hq_managed: "hq_managed";
|
|
353
353
|
}>;
|
|
354
354
|
currency: z.ZodLiteral<"USD">;
|
|
355
355
|
chargedMicrounits: z.ZodNumber;
|
|
@@ -359,15 +359,15 @@ export declare const RuntimeExecutionStatusSchema: z.ZodObject<{
|
|
|
359
359
|
error: z.ZodOptional<z.ZodObject<{
|
|
360
360
|
code: z.ZodString;
|
|
361
361
|
classification: z.ZodEnum<{
|
|
362
|
-
unsupported: "unsupported";
|
|
363
|
-
unknown: "unknown";
|
|
364
|
-
unavailable: "unavailable";
|
|
365
|
-
validation: "validation";
|
|
366
|
-
conflict: "conflict";
|
|
367
|
-
timeout: "timeout";
|
|
368
362
|
cancelled: "cancelled";
|
|
369
|
-
|
|
363
|
+
conflict: "conflict";
|
|
370
364
|
infrastructure: "infrastructure";
|
|
365
|
+
runtime: "runtime";
|
|
366
|
+
timeout: "timeout";
|
|
367
|
+
unavailable: "unavailable";
|
|
368
|
+
unknown: "unknown";
|
|
369
|
+
unsupported: "unsupported";
|
|
370
|
+
validation: "validation";
|
|
371
371
|
}>;
|
|
372
372
|
message: z.ZodString;
|
|
373
373
|
retryable: z.ZodBoolean;
|
|
@@ -379,11 +379,11 @@ export declare const RuntimeExecutionProgressSchema: z.ZodObject<{
|
|
|
379
379
|
sequence: z.ZodNumber;
|
|
380
380
|
occurredAt: z.ZodISODateTime;
|
|
381
381
|
type: z.ZodEnum<{
|
|
382
|
+
artifact: "artifact";
|
|
383
|
+
interaction: "interaction";
|
|
382
384
|
output: "output";
|
|
383
|
-
usage: "usage";
|
|
384
385
|
status: "status";
|
|
385
|
-
|
|
386
|
-
artifact: "artifact";
|
|
386
|
+
usage: "usage";
|
|
387
387
|
}>;
|
|
388
388
|
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
389
389
|
}, z.core.$strict>;
|
|
@@ -393,39 +393,54 @@ export declare const RuntimeExecutionPlanSnapshotSchema: z.ZodObject<{
|
|
|
393
393
|
contentDigest: z.ZodString;
|
|
394
394
|
runtimeRequirements: z.ZodArray<z.ZodObject<{
|
|
395
395
|
capability: z.ZodEnum<{
|
|
396
|
-
"
|
|
397
|
-
"
|
|
398
|
-
"tool.call": "tool.call";
|
|
399
|
-
"tool.parallel": "tool.parallel";
|
|
400
|
-
"output.structured": "output.structured";
|
|
396
|
+
"execution.cancel": "execution.cancel";
|
|
397
|
+
"execution.child": "execution.child";
|
|
401
398
|
"filesystem.read": "filesystem.read";
|
|
402
399
|
"filesystem.write": "filesystem.write";
|
|
400
|
+
"interaction.approval": "interaction.approval";
|
|
401
|
+
"interaction.user-input": "interaction.user-input";
|
|
402
|
+
"model.select": "model.select";
|
|
403
|
+
"output.structured": "output.structured";
|
|
403
404
|
"project.read": "project.read";
|
|
404
405
|
"project.write": "project.write";
|
|
405
|
-
"execution.cancel": "execution.cancel";
|
|
406
|
-
"interaction.user-input": "interaction.user-input";
|
|
407
|
-
"interaction.approval": "interaction.approval";
|
|
408
|
-
"session.create": "session.create";
|
|
409
|
-
"session.list": "session.list";
|
|
410
|
-
"session.resume": "session.resume";
|
|
411
406
|
"session.close": "session.close";
|
|
407
|
+
"session.create": "session.create";
|
|
412
408
|
"session.history": "session.history";
|
|
409
|
+
"session.list": "session.list";
|
|
413
410
|
"session.load": "session.load";
|
|
414
|
-
"
|
|
415
|
-
"
|
|
411
|
+
"session.resume": "session.resume";
|
|
412
|
+
"stream.events": "stream.events";
|
|
413
|
+
"stream.output": "stream.output";
|
|
414
|
+
"tool.call": "tool.call";
|
|
415
|
+
"tool.parallel": "tool.parallel";
|
|
416
416
|
}>;
|
|
417
417
|
necessity: z.ZodEnum<{
|
|
418
418
|
optional: "optional";
|
|
419
419
|
required: "required";
|
|
420
420
|
}>;
|
|
421
421
|
minimumSupport: z.ZodDefault<z.ZodEnum<{
|
|
422
|
-
supported: "supported";
|
|
423
422
|
degraded: "degraded";
|
|
423
|
+
supported: "supported";
|
|
424
424
|
}>>;
|
|
425
425
|
}, z.core.$strip>>;
|
|
426
426
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
427
|
+
/** Allocation under an accepted allowance; not prepaid funds or charge authority. */
|
|
428
|
+
export declare const RuntimeAttemptBudgetAuthoritySchema: z.ZodReadonly<z.ZodObject<{
|
|
429
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
430
|
+
workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
|
|
431
|
+
executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
|
|
432
|
+
attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
|
|
433
|
+
executionPlanId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"ExecutionPlan ID">, string>>;
|
|
434
|
+
executionPlanDigest: z.ZodString;
|
|
435
|
+
reservationKey: z.ZodString;
|
|
436
|
+
currency: z.ZodLiteral<"USD">;
|
|
437
|
+
maximumMicrounits: z.ZodNumber;
|
|
438
|
+
maximumTokens: z.ZodNumber;
|
|
439
|
+
}, z.core.$strict>>;
|
|
440
|
+
export type RuntimeAttemptBudgetAuthority = z.output<typeof RuntimeAttemptBudgetAuthoritySchema>;
|
|
427
441
|
export declare const RuntimeStartRequestSchema: z.ZodObject<{
|
|
428
442
|
attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
|
|
443
|
+
executionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>>;
|
|
429
444
|
idempotencyKey: z.ZodString;
|
|
430
445
|
executionPlan: z.ZodObject<{
|
|
431
446
|
schemaVersion: z.ZodNumber;
|
|
@@ -433,37 +448,49 @@ export declare const RuntimeStartRequestSchema: z.ZodObject<{
|
|
|
433
448
|
contentDigest: z.ZodString;
|
|
434
449
|
runtimeRequirements: z.ZodArray<z.ZodObject<{
|
|
435
450
|
capability: z.ZodEnum<{
|
|
436
|
-
"
|
|
437
|
-
"
|
|
438
|
-
"tool.call": "tool.call";
|
|
439
|
-
"tool.parallel": "tool.parallel";
|
|
440
|
-
"output.structured": "output.structured";
|
|
451
|
+
"execution.cancel": "execution.cancel";
|
|
452
|
+
"execution.child": "execution.child";
|
|
441
453
|
"filesystem.read": "filesystem.read";
|
|
442
454
|
"filesystem.write": "filesystem.write";
|
|
455
|
+
"interaction.approval": "interaction.approval";
|
|
456
|
+
"interaction.user-input": "interaction.user-input";
|
|
457
|
+
"model.select": "model.select";
|
|
458
|
+
"output.structured": "output.structured";
|
|
443
459
|
"project.read": "project.read";
|
|
444
460
|
"project.write": "project.write";
|
|
445
|
-
"execution.cancel": "execution.cancel";
|
|
446
|
-
"interaction.user-input": "interaction.user-input";
|
|
447
|
-
"interaction.approval": "interaction.approval";
|
|
448
|
-
"session.create": "session.create";
|
|
449
|
-
"session.list": "session.list";
|
|
450
|
-
"session.resume": "session.resume";
|
|
451
461
|
"session.close": "session.close";
|
|
462
|
+
"session.create": "session.create";
|
|
452
463
|
"session.history": "session.history";
|
|
464
|
+
"session.list": "session.list";
|
|
453
465
|
"session.load": "session.load";
|
|
454
|
-
"
|
|
455
|
-
"
|
|
466
|
+
"session.resume": "session.resume";
|
|
467
|
+
"stream.events": "stream.events";
|
|
468
|
+
"stream.output": "stream.output";
|
|
469
|
+
"tool.call": "tool.call";
|
|
470
|
+
"tool.parallel": "tool.parallel";
|
|
456
471
|
}>;
|
|
457
472
|
necessity: z.ZodEnum<{
|
|
458
473
|
optional: "optional";
|
|
459
474
|
required: "required";
|
|
460
475
|
}>;
|
|
461
476
|
minimumSupport: z.ZodDefault<z.ZodEnum<{
|
|
462
|
-
supported: "supported";
|
|
463
477
|
degraded: "degraded";
|
|
478
|
+
supported: "supported";
|
|
464
479
|
}>>;
|
|
465
480
|
}, z.core.$strip>>;
|
|
466
481
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
482
|
+
attemptBudget: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
483
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
484
|
+
workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
|
|
485
|
+
executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"execution ID">, string>>;
|
|
486
|
+
attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
|
|
487
|
+
executionPlanId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"ExecutionPlan ID">, string>>;
|
|
488
|
+
executionPlanDigest: z.ZodString;
|
|
489
|
+
reservationKey: z.ZodString;
|
|
490
|
+
currency: z.ZodLiteral<"USD">;
|
|
491
|
+
maximumMicrounits: z.ZodNumber;
|
|
492
|
+
maximumTokens: z.ZodNumber;
|
|
493
|
+
}, z.core.$strict>>>;
|
|
467
494
|
}, z.core.$strict>;
|
|
468
495
|
export declare const RuntimeInputRequestSchema: z.ZodObject<{
|
|
469
496
|
interactionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"interaction ID">, string>>;
|
|
@@ -490,9 +517,9 @@ export declare const RuntimeSessionOperationSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
490
517
|
operation: z.ZodLiteral<"list">;
|
|
491
518
|
}, z.core.$strict>, z.ZodObject<{
|
|
492
519
|
operation: z.ZodEnum<{
|
|
493
|
-
resume: "resume";
|
|
494
|
-
load: "load";
|
|
495
520
|
close: "close";
|
|
521
|
+
load: "load";
|
|
522
|
+
resume: "resume";
|
|
496
523
|
}>;
|
|
497
524
|
sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>;
|
|
498
525
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -503,10 +530,10 @@ export declare const RuntimeSessionOperationSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
503
530
|
}, z.core.$strict>], "operation">;
|
|
504
531
|
export declare const RuntimeSessionResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
505
532
|
operation: z.ZodEnum<{
|
|
533
|
+
close: "close";
|
|
506
534
|
create: "create";
|
|
507
|
-
resume: "resume";
|
|
508
535
|
load: "load";
|
|
509
|
-
|
|
536
|
+
resume: "resume";
|
|
510
537
|
}>;
|
|
511
538
|
session: z.ZodObject<{
|
|
512
539
|
sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>;
|
|
@@ -537,9 +564,9 @@ export declare const RuntimeSessionResultSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
537
564
|
observedAt: z.ZodISODateTime;
|
|
538
565
|
}, z.core.$strict>;
|
|
539
566
|
completeness: z.ZodEnum<{
|
|
540
|
-
unavailable: "unavailable";
|
|
541
567
|
complete: "complete";
|
|
542
568
|
partial: "partial";
|
|
569
|
+
unavailable: "unavailable";
|
|
543
570
|
}>;
|
|
544
571
|
limitations: z.ZodArray<z.ZodString>;
|
|
545
572
|
entries: z.ZodArray<z.ZodObject<{
|
package/dist/adapter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAA;AAS1B,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;kBAkB9B,CAAA;AAaX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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O,EAAE,oBAAoB,GAC5B,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAClC,MAAM,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAA;IACvE,SAAS,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC1E,OAAO,CAAC,SAAS,EAAE,uBAAuB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAA;IAC1E,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACvD;AAED,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,cAAc,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAA;IACvD,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;IAE5D,YAAY,UAAU,EAAE,YAAY,EAQnC;IAED,MAAM,IAAI,YAAY,CAQrB;CACF;AAED,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,wBAAwB,CAAC,cAAc,CAAC,EACtD,YAAY,EAAE,SAAS,qBAAqB,EAAE,GAC7C,oBAAoB,CAEtB"}
|
package/dist/adapter.js
CHANGED
|
@@ -228,13 +228,66 @@ export const RuntimeExecutionPlanSnapshotSchema = z
|
|
|
228
228
|
runtimeRequirements: CapabilityRequirementSetSchema,
|
|
229
229
|
})
|
|
230
230
|
.catchall(z.unknown());
|
|
231
|
+
/** Allocation under an accepted allowance; not prepaid funds or charge authority. */
|
|
232
|
+
export const RuntimeAttemptBudgetAuthoritySchema = z
|
|
233
|
+
.object({
|
|
234
|
+
schemaVersion: z.literal(1),
|
|
235
|
+
workspaceId: IdentifierSchemas.workspaceId,
|
|
236
|
+
executionId: IdentifierSchemas.executionId,
|
|
237
|
+
attemptId: IdentifierSchemas.attemptId,
|
|
238
|
+
executionPlanId: IdentifierSchemas.executionPlanId,
|
|
239
|
+
executionPlanDigest: DigestSchema,
|
|
240
|
+
reservationKey: z.string().min(1).max(256),
|
|
241
|
+
currency: z.literal('USD'),
|
|
242
|
+
maximumMicrounits: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
|
|
243
|
+
maximumTokens: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
|
|
244
|
+
})
|
|
245
|
+
.strict()
|
|
246
|
+
.readonly();
|
|
247
|
+
const RuntimeBudgetPlanScopeSchema = z.object({
|
|
248
|
+
correlation: z.object({ workspaceId: IdentifierSchemas.workspaceId }),
|
|
249
|
+
constraints: z.object({
|
|
250
|
+
limits: z.object({
|
|
251
|
+
budget: z.object({
|
|
252
|
+
currency: z.literal('USD'),
|
|
253
|
+
maximumMicrounits: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
|
|
254
|
+
}),
|
|
255
|
+
tokens: z.object({
|
|
256
|
+
maximumTotal: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
|
|
257
|
+
}),
|
|
258
|
+
}),
|
|
259
|
+
}),
|
|
260
|
+
});
|
|
231
261
|
export const RuntimeStartRequestSchema = z
|
|
232
262
|
.object({
|
|
233
263
|
attemptId: IdentifierSchemas.attemptId,
|
|
264
|
+
executionId: IdentifierSchemas.executionId.optional(),
|
|
234
265
|
idempotencyKey: IdempotencyKeySchema,
|
|
235
266
|
executionPlan: RuntimeExecutionPlanSnapshotSchema,
|
|
267
|
+
attemptBudget: RuntimeAttemptBudgetAuthoritySchema.optional(),
|
|
236
268
|
})
|
|
237
|
-
.strict()
|
|
269
|
+
.strict()
|
|
270
|
+
.superRefine((request, context) => {
|
|
271
|
+
const authority = request.attemptBudget;
|
|
272
|
+
if (authority === undefined)
|
|
273
|
+
return;
|
|
274
|
+
const plan = RuntimeBudgetPlanScopeSchema.safeParse(request.executionPlan);
|
|
275
|
+
if (!plan.success ||
|
|
276
|
+
authority.workspaceId !== plan.data.correlation.workspaceId ||
|
|
277
|
+
authority.executionId !== request.executionId ||
|
|
278
|
+
authority.attemptId !== request.attemptId ||
|
|
279
|
+
authority.executionPlanId !== request.executionPlan.executionPlanId ||
|
|
280
|
+
authority.executionPlanDigest !== request.executionPlan.contentDigest ||
|
|
281
|
+
authority.reservationKey !== `runtime-attempt:${request.attemptId}` ||
|
|
282
|
+
authority.maximumMicrounits > plan.data.constraints.limits.budget.maximumMicrounits ||
|
|
283
|
+
authority.maximumTokens > plan.data.constraints.limits.tokens.maximumTotal) {
|
|
284
|
+
context.addIssue({
|
|
285
|
+
code: 'custom',
|
|
286
|
+
path: ['attemptBudget'],
|
|
287
|
+
message: 'Runtime attempt authority must match the pinned start identity and ceilings',
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
});
|
|
238
291
|
export const RuntimeInputRequestSchema = z
|
|
239
292
|
.object({
|
|
240
293
|
interactionId: IdentifierSchemas.interactionId,
|