@agentropy/core 0.0.0-bootstrap.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +37 -1
- package/dist/acceptance.d.ts +30 -0
- package/dist/acceptance.js +194 -0
- package/dist/agent.d.ts +284 -0
- package/dist/agent.js +1 -0
- package/dist/capability.d.ts +89 -0
- package/dist/capability.js +1 -0
- package/dist/catalog.d.ts +8 -0
- package/dist/catalog.js +217 -0
- package/dist/communication.d.ts +101 -0
- package/dist/communication.js +1 -0
- package/dist/cron.d.ts +2 -0
- package/dist/cron.js +55 -0
- package/dist/errors.d.ts +326 -0
- package/dist/errors.js +150 -0
- package/dist/implementation.d.ts +31 -0
- package/dist/implementation.js +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +20 -0
- package/dist/lifecycle.d.ts +26 -0
- package/dist/lifecycle.js +101 -0
- package/dist/messaging.d.ts +112 -0
- package/dist/messaging.js +32 -0
- package/dist/providers.d.ts +82 -0
- package/dist/providers.js +5 -0
- package/dist/resolver.d.ts +30 -0
- package/dist/resolver.js +192 -0
- package/dist/schemas.d.ts +420 -0
- package/dist/schemas.js +364 -0
- package/dist/security.d.ts +48 -0
- package/dist/security.js +1 -0
- package/dist/skill.d.ts +52 -0
- package/dist/skill.js +1 -0
- package/dist/store.d.ts +123 -0
- package/dist/store.js +220 -0
- package/dist/telemetry.d.ts +72 -0
- package/dist/telemetry.js +69 -0
- package/dist/tool.d.ts +89 -0
- package/dist/tool.js +1 -0
- package/package.json +38 -5
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
/** JSON Schema 2020-12 documents for Agent v1 rev 7, Tool v1 and Skill v1, plus validation (ADR-0027). */
|
|
2
|
+
import { type ValidateFunction } from 'ajv/dist/2020.js';
|
|
3
|
+
import type { AgentDefinition, JsonSchema } from './agent.js';
|
|
4
|
+
import type { AgentMessage } from './communication.js';
|
|
5
|
+
import type { SkillMetadata } from './skill.js';
|
|
6
|
+
import type { ToolBinding, ToolDescriptor } from './tool.js';
|
|
7
|
+
export declare const CAPABILITY_SELECTION_SCHEMA: {
|
|
8
|
+
readonly $id: "https://agentropy.dev/schemas/v1/capability-selection.json";
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly required: readonly ["id", "versionRange"];
|
|
11
|
+
readonly additionalProperties: false;
|
|
12
|
+
readonly properties: {
|
|
13
|
+
readonly id: {
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly pattern: "^[a-z0-9][a-z0-9._/-]{0,127}$";
|
|
16
|
+
};
|
|
17
|
+
readonly versionRange: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly minLength: 1;
|
|
20
|
+
};
|
|
21
|
+
readonly config: {
|
|
22
|
+
readonly type: "object";
|
|
23
|
+
};
|
|
24
|
+
readonly providerId: {
|
|
25
|
+
readonly type: "string";
|
|
26
|
+
readonly minLength: 1;
|
|
27
|
+
};
|
|
28
|
+
readonly level: {
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly minLength: 1;
|
|
31
|
+
};
|
|
32
|
+
readonly remove: {
|
|
33
|
+
readonly type: "boolean";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const TOOL_SELECTION_SCHEMA: {
|
|
38
|
+
readonly $id: "https://agentropy.dev/schemas/v1/tool-selection.json";
|
|
39
|
+
readonly type: "object";
|
|
40
|
+
readonly required: readonly ["id", "versionRange"];
|
|
41
|
+
readonly additionalProperties: false;
|
|
42
|
+
readonly properties: {
|
|
43
|
+
readonly id: {
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
readonly pattern: "^[a-z0-9][a-z0-9._/-]{0,127}$";
|
|
46
|
+
};
|
|
47
|
+
readonly versionRange: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly minLength: 1;
|
|
50
|
+
};
|
|
51
|
+
readonly required: {
|
|
52
|
+
readonly type: "boolean";
|
|
53
|
+
};
|
|
54
|
+
readonly bindingId: {
|
|
55
|
+
readonly type: "string";
|
|
56
|
+
readonly minLength: 1;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare const SKILL_SELECTION_SCHEMA: {
|
|
61
|
+
readonly $id: "https://agentropy.dev/schemas/v1/skill-selection.json";
|
|
62
|
+
readonly type: "object";
|
|
63
|
+
readonly required: readonly ["id", "versionRange"];
|
|
64
|
+
readonly additionalProperties: false;
|
|
65
|
+
readonly properties: {
|
|
66
|
+
readonly id: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
readonly pattern: "^[a-z0-9][a-z0-9._/-]{0,127}$";
|
|
69
|
+
};
|
|
70
|
+
readonly versionRange: {
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
readonly minLength: 1;
|
|
73
|
+
};
|
|
74
|
+
readonly required: {
|
|
75
|
+
readonly type: "boolean";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export declare const AGENT_DEFINITION_SCHEMA: {
|
|
80
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
81
|
+
readonly $id: "https://agentropy.dev/schemas/v1/agent-definition.json";
|
|
82
|
+
readonly title: "AgentDefinition (Agent v1 revision 7)";
|
|
83
|
+
readonly type: "object";
|
|
84
|
+
readonly required: readonly ["id", "version", "displayName", "profile", "implementation", "inputSchema", "runtimeRequirements", "policyRef"];
|
|
85
|
+
readonly additionalProperties: false;
|
|
86
|
+
readonly properties: {
|
|
87
|
+
readonly id: {
|
|
88
|
+
readonly type: "string";
|
|
89
|
+
readonly pattern: "^[a-z0-9][a-z0-9._/-]{0,127}$";
|
|
90
|
+
};
|
|
91
|
+
readonly version: {
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
readonly pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$";
|
|
94
|
+
};
|
|
95
|
+
readonly displayName: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
readonly minLength: 1;
|
|
98
|
+
readonly maxLength: 200;
|
|
99
|
+
};
|
|
100
|
+
readonly profile: {
|
|
101
|
+
readonly type: "object";
|
|
102
|
+
readonly required: readonly ["id", "version"];
|
|
103
|
+
readonly additionalProperties: false;
|
|
104
|
+
readonly properties: {
|
|
105
|
+
readonly id: {
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
readonly pattern: "^[a-z0-9][a-z0-9._/-]{0,127}$";
|
|
108
|
+
};
|
|
109
|
+
readonly version: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
readonly pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly implementation: {
|
|
116
|
+
readonly type: "object";
|
|
117
|
+
readonly required: readonly ["providerId", "providerVersion", "artifact"];
|
|
118
|
+
readonly additionalProperties: false;
|
|
119
|
+
readonly properties: {
|
|
120
|
+
readonly providerId: {
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
readonly pattern: "^[a-z0-9][a-z0-9._/-]{0,127}$";
|
|
123
|
+
};
|
|
124
|
+
readonly providerVersion: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
readonly pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$";
|
|
127
|
+
};
|
|
128
|
+
readonly artifact: {
|
|
129
|
+
readonly type: "object";
|
|
130
|
+
readonly required: readonly ["id", "version"];
|
|
131
|
+
readonly additionalProperties: false;
|
|
132
|
+
readonly properties: {
|
|
133
|
+
readonly id: {
|
|
134
|
+
readonly type: "string";
|
|
135
|
+
readonly pattern: "^[a-z0-9][a-z0-9._/-]{0,127}$";
|
|
136
|
+
};
|
|
137
|
+
readonly version: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$";
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly inputSchema: {
|
|
146
|
+
readonly type: readonly ["object", "boolean"];
|
|
147
|
+
};
|
|
148
|
+
readonly runtimeRequirements: {
|
|
149
|
+
readonly type: "object";
|
|
150
|
+
readonly required: readonly ["guarantees"];
|
|
151
|
+
readonly additionalProperties: false;
|
|
152
|
+
readonly properties: {
|
|
153
|
+
readonly guarantees: {
|
|
154
|
+
readonly type: "array";
|
|
155
|
+
readonly items: {
|
|
156
|
+
readonly $ref: "capability-selection.json";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
readonly policyRef: {
|
|
162
|
+
readonly type: "object";
|
|
163
|
+
readonly required: readonly ["id", "version"];
|
|
164
|
+
readonly additionalProperties: false;
|
|
165
|
+
readonly properties: {
|
|
166
|
+
readonly id: {
|
|
167
|
+
readonly type: "string";
|
|
168
|
+
readonly pattern: "^[a-z0-9][a-z0-9._/-]{0,127}$";
|
|
169
|
+
};
|
|
170
|
+
readonly version: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
readonly pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$";
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly description: {
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
readonly maxLength: 4000;
|
|
179
|
+
};
|
|
180
|
+
readonly capabilities: {
|
|
181
|
+
readonly type: "array";
|
|
182
|
+
readonly items: {
|
|
183
|
+
readonly $ref: "capability-selection.json";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly skills: {
|
|
187
|
+
readonly type: "array";
|
|
188
|
+
readonly items: {
|
|
189
|
+
readonly $ref: "skill-selection.json";
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
readonly tools: {
|
|
193
|
+
readonly type: "array";
|
|
194
|
+
readonly items: {
|
|
195
|
+
readonly $ref: "tool-selection.json";
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
readonly outputSchema: {
|
|
199
|
+
readonly type: readonly ["object", "boolean"];
|
|
200
|
+
};
|
|
201
|
+
readonly modelRef: {
|
|
202
|
+
readonly type: "object";
|
|
203
|
+
readonly required: readonly ["id", "version"];
|
|
204
|
+
readonly additionalProperties: false;
|
|
205
|
+
readonly properties: {
|
|
206
|
+
readonly id: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly pattern: "^[a-z0-9][a-z0-9._/-]{0,127}$";
|
|
209
|
+
};
|
|
210
|
+
readonly version: {
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
readonly pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$";
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
readonly memoryRef: {
|
|
217
|
+
readonly type: "object";
|
|
218
|
+
readonly required: readonly ["id", "version"];
|
|
219
|
+
readonly additionalProperties: false;
|
|
220
|
+
readonly properties: {
|
|
221
|
+
readonly id: {
|
|
222
|
+
readonly type: "string";
|
|
223
|
+
readonly pattern: "^[a-z0-9][a-z0-9._/-]{0,127}$";
|
|
224
|
+
};
|
|
225
|
+
readonly version: {
|
|
226
|
+
readonly type: "string";
|
|
227
|
+
readonly pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$";
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
readonly communicationRef: {
|
|
232
|
+
readonly type: "object";
|
|
233
|
+
readonly required: readonly ["id", "version"];
|
|
234
|
+
readonly additionalProperties: false;
|
|
235
|
+
readonly properties: {
|
|
236
|
+
readonly id: {
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
readonly pattern: "^[a-z0-9][a-z0-9._/-]{0,127}$";
|
|
239
|
+
};
|
|
240
|
+
readonly version: {
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
readonly pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$";
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
readonly retryPolicy: {
|
|
247
|
+
readonly type: "object";
|
|
248
|
+
readonly required: readonly ["maxAttempts", "backoff"];
|
|
249
|
+
readonly additionalProperties: false;
|
|
250
|
+
readonly properties: {
|
|
251
|
+
readonly maxAttempts: {
|
|
252
|
+
readonly type: "integer";
|
|
253
|
+
readonly minimum: 1;
|
|
254
|
+
readonly maximum: 100;
|
|
255
|
+
};
|
|
256
|
+
readonly backoff: {
|
|
257
|
+
readonly type: "object";
|
|
258
|
+
readonly required: readonly ["initialMs", "maxMs", "multiplier"];
|
|
259
|
+
readonly additionalProperties: false;
|
|
260
|
+
readonly properties: {
|
|
261
|
+
readonly initialMs: {
|
|
262
|
+
readonly type: "integer";
|
|
263
|
+
readonly minimum: 0;
|
|
264
|
+
};
|
|
265
|
+
readonly maxMs: {
|
|
266
|
+
readonly type: "integer";
|
|
267
|
+
readonly minimum: 0;
|
|
268
|
+
};
|
|
269
|
+
readonly multiplier: {
|
|
270
|
+
readonly type: "number";
|
|
271
|
+
readonly minimum: 1;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
export declare const TOOL_DESCRIPTOR_SCHEMA: {
|
|
280
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
281
|
+
readonly $id: "https://agentropy.dev/schemas/v1/tool-descriptor.json";
|
|
282
|
+
readonly type: "object";
|
|
283
|
+
readonly required: readonly ["id", "version", "description", "inputSchema", "effect", "idempotency", "permission"];
|
|
284
|
+
readonly additionalProperties: false;
|
|
285
|
+
readonly properties: {
|
|
286
|
+
readonly id: {
|
|
287
|
+
readonly type: "string";
|
|
288
|
+
readonly pattern: "^[a-z0-9]+(?:[._-][a-z0-9]+)*$";
|
|
289
|
+
readonly maxLength: 128;
|
|
290
|
+
};
|
|
291
|
+
readonly version: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$";
|
|
294
|
+
};
|
|
295
|
+
readonly description: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly minLength: 1;
|
|
298
|
+
readonly maxLength: 2000;
|
|
299
|
+
};
|
|
300
|
+
readonly inputSchema: {
|
|
301
|
+
readonly type: readonly ["object", "boolean"];
|
|
302
|
+
};
|
|
303
|
+
readonly outputSchema: {
|
|
304
|
+
readonly type: readonly ["object", "boolean"];
|
|
305
|
+
};
|
|
306
|
+
readonly effect: {
|
|
307
|
+
readonly enum: readonly ["read", "internal", "external"];
|
|
308
|
+
};
|
|
309
|
+
readonly idempotency: {
|
|
310
|
+
readonly enum: readonly ["idempotent", "keyed", "at-least-once"];
|
|
311
|
+
};
|
|
312
|
+
readonly permission: {
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
readonly minLength: 1;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
export declare const TOOL_BINDING_SCHEMA: {
|
|
319
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
320
|
+
readonly $id: "https://agentropy.dev/schemas/v1/tool-binding.json";
|
|
321
|
+
readonly type: "object";
|
|
322
|
+
readonly required: readonly ["bindingId", "toolId", "toolVersion", "providerId", "providerVersion", "config"];
|
|
323
|
+
readonly additionalProperties: false;
|
|
324
|
+
readonly properties: {
|
|
325
|
+
readonly bindingId: {
|
|
326
|
+
readonly type: "string";
|
|
327
|
+
readonly minLength: 1;
|
|
328
|
+
};
|
|
329
|
+
readonly toolId: {
|
|
330
|
+
readonly type: "string";
|
|
331
|
+
readonly minLength: 1;
|
|
332
|
+
};
|
|
333
|
+
readonly toolVersion: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
readonly pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$";
|
|
336
|
+
};
|
|
337
|
+
readonly providerId: {
|
|
338
|
+
readonly type: "string";
|
|
339
|
+
readonly minLength: 1;
|
|
340
|
+
};
|
|
341
|
+
readonly providerVersion: {
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
readonly pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$";
|
|
344
|
+
};
|
|
345
|
+
readonly config: {
|
|
346
|
+
readonly type: "object";
|
|
347
|
+
};
|
|
348
|
+
readonly credentialRef: {
|
|
349
|
+
readonly type: "string";
|
|
350
|
+
readonly minLength: 1;
|
|
351
|
+
};
|
|
352
|
+
readonly default: {
|
|
353
|
+
readonly type: "boolean";
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
/** Agent Skills specification frontmatter (agentskills.io, 2026-11-05). */
|
|
358
|
+
export declare const SKILL_METADATA_SCHEMA: {
|
|
359
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
360
|
+
readonly $id: "https://agentropy.dev/schemas/v1/skill-metadata.json";
|
|
361
|
+
readonly type: "object";
|
|
362
|
+
readonly required: readonly ["name", "description"];
|
|
363
|
+
readonly additionalProperties: false;
|
|
364
|
+
readonly properties: {
|
|
365
|
+
readonly name: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
readonly minLength: 1;
|
|
368
|
+
readonly maxLength: 64;
|
|
369
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
370
|
+
};
|
|
371
|
+
readonly description: {
|
|
372
|
+
readonly type: "string";
|
|
373
|
+
readonly minLength: 1;
|
|
374
|
+
readonly maxLength: 1024;
|
|
375
|
+
};
|
|
376
|
+
readonly license: {
|
|
377
|
+
readonly type: "string";
|
|
378
|
+
};
|
|
379
|
+
readonly compatibility: {
|
|
380
|
+
readonly type: "string";
|
|
381
|
+
readonly minLength: 1;
|
|
382
|
+
readonly maxLength: 500;
|
|
383
|
+
};
|
|
384
|
+
readonly metadata: {
|
|
385
|
+
readonly type: "object";
|
|
386
|
+
readonly additionalProperties: {
|
|
387
|
+
readonly type: "string";
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
readonly allowedTools: {
|
|
391
|
+
readonly type: "array";
|
|
392
|
+
readonly items: {
|
|
393
|
+
readonly type: "string";
|
|
394
|
+
readonly minLength: 1;
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
/** Compile a user-supplied JSON Schema; an invalid schema is a configuration error, not a data error. */
|
|
400
|
+
export declare function compileUserSchema(schema: JsonSchema, what?: string): ValidateFunction;
|
|
401
|
+
/** Validate a value against a user-supplied schema; throws SchemaViolation. */
|
|
402
|
+
export declare function validateAgainst(schema: JsonSchema, value: unknown, what: string): void;
|
|
403
|
+
/** Structural + semantic validation of an AgentDefinition. Returns the typed value or throws SchemaViolation/InvalidConfiguration. */
|
|
404
|
+
export declare function validateAgentDefinition(value: unknown): AgentDefinition;
|
|
405
|
+
export declare function validateToolDescriptor(value: unknown): ToolDescriptor;
|
|
406
|
+
export declare function validateToolBinding(value: unknown): ToolBinding;
|
|
407
|
+
export declare function validateSkillMetadata(value: unknown): SkillMetadata;
|
|
408
|
+
/**
|
|
409
|
+
* A point in time the scheduler compares as a string (deadlines, timers, timeouts): an ISO-8601 instant with an
|
|
410
|
+
* explicit time zone, returned as UTC `toISOString()` form so string order is time order. Anything else — a date
|
|
411
|
+
* without a zone (local time is ambiguous), free text — is a `SchemaViolation` (FEAT-038.3).
|
|
412
|
+
*/
|
|
413
|
+
export declare function normalizeInstant(value: unknown, what: string): string;
|
|
414
|
+
/** Envelope schema version this build accepts (messaging contract). */
|
|
415
|
+
export declare const MESSAGE_SCHEMA_VERSION = 1;
|
|
416
|
+
/**
|
|
417
|
+
* Boundary validation of an AgentMessage envelope (AC-17): malformed envelopes, an unsupported
|
|
418
|
+
* `schemaVersion` and a command without an idempotency key are rejected with SchemaViolation.
|
|
419
|
+
*/
|
|
420
|
+
export declare function validateAgentMessage(value: unknown): AgentMessage;
|