@clearideas/agent-runtime-contracts 0.1.0-alpha.1
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 +201 -0
- package/NOTICE +4 -0
- package/README.md +10 -0
- package/dist/index.d.ts +917 -0
- package/dist/index.js +396 -0
- package/package.json +58 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const AGENT_MANIFEST_SCHEMA_VERSION = "1.0";
|
|
3
|
+
export const AGENT_RUN_MANIFEST_SCHEMA_VERSION = "1.0";
|
|
4
|
+
export const jsonValueSchema = z.lazy(() => z.union([
|
|
5
|
+
z.string(),
|
|
6
|
+
z.number(),
|
|
7
|
+
z.boolean(),
|
|
8
|
+
z.null(),
|
|
9
|
+
z.array(jsonValueSchema),
|
|
10
|
+
z.record(z.string(), jsonValueSchema),
|
|
11
|
+
]));
|
|
12
|
+
export const jsonObjectSchema = z.record(z.string(), jsonValueSchema);
|
|
13
|
+
export const variableStateSchema = z.record(z.string(), jsonValueSchema);
|
|
14
|
+
const RESERVED_VARIABLE_PATH_SEGMENTS = new Set([
|
|
15
|
+
"__proto__",
|
|
16
|
+
"prototype",
|
|
17
|
+
"constructor",
|
|
18
|
+
]);
|
|
19
|
+
export const isSafeVariablePath = (value) => {
|
|
20
|
+
const segments = value.split(".").map((segment) => segment.trim());
|
|
21
|
+
return (segments.length > 0 &&
|
|
22
|
+
segments.every((segment) => segment.length > 0 &&
|
|
23
|
+
!RESERVED_VARIABLE_PATH_SEGMENTS.has(segment.toLowerCase())));
|
|
24
|
+
};
|
|
25
|
+
export const variablePathSchema = z
|
|
26
|
+
.string()
|
|
27
|
+
.min(1)
|
|
28
|
+
.refine(isSafeVariablePath, "Variable paths cannot contain empty or prototype-sensitive segments.");
|
|
29
|
+
export const AGENT_VARIABLE_TYPES = [
|
|
30
|
+
"string",
|
|
31
|
+
"number",
|
|
32
|
+
"boolean",
|
|
33
|
+
"object",
|
|
34
|
+
"array",
|
|
35
|
+
"json",
|
|
36
|
+
];
|
|
37
|
+
export const agentVariableKeySchema = z
|
|
38
|
+
.string()
|
|
39
|
+
.trim()
|
|
40
|
+
.min(1)
|
|
41
|
+
.max(100)
|
|
42
|
+
.refine((value) => !value.includes("."), "Variable keys cannot contain dots; use dot notation only to read properties inside object values.")
|
|
43
|
+
.refine((value) => !RESERVED_VARIABLE_PATH_SEGMENTS.has(value.toLowerCase()), "Variable keys cannot use prototype-sensitive names.");
|
|
44
|
+
export const valueMatchesAgentVariableType = (value, type) => {
|
|
45
|
+
if (type === "array")
|
|
46
|
+
return Array.isArray(value);
|
|
47
|
+
if (type === "object")
|
|
48
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
49
|
+
if (type === "json")
|
|
50
|
+
return value !== null && typeof value === "object";
|
|
51
|
+
return typeof value === type;
|
|
52
|
+
};
|
|
53
|
+
export const agentVariableDefinitionSchema = z
|
|
54
|
+
.strictObject({
|
|
55
|
+
key: agentVariableKeySchema,
|
|
56
|
+
type: z.enum(AGENT_VARIABLE_TYPES),
|
|
57
|
+
value: jsonValueSchema.optional(),
|
|
58
|
+
requiresOverride: z.boolean().optional(),
|
|
59
|
+
description: z.string().optional(),
|
|
60
|
+
metadata: jsonObjectSchema.optional(),
|
|
61
|
+
})
|
|
62
|
+
.superRefine((definition, context) => {
|
|
63
|
+
if (definition.value !== undefined &&
|
|
64
|
+
!valueMatchesAgentVariableType(definition.value, definition.type)) {
|
|
65
|
+
context.addIssue({
|
|
66
|
+
code: "custom",
|
|
67
|
+
path: ["value"],
|
|
68
|
+
message: `Variable ${definition.key} default must be ${definition.type}.`,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export const agentVariableOverrideSchema = z.strictObject({
|
|
73
|
+
key: agentVariableKeySchema,
|
|
74
|
+
value: jsonValueSchema,
|
|
75
|
+
});
|
|
76
|
+
export const agentVariableOverridesSchema = z
|
|
77
|
+
.array(agentVariableOverrideSchema)
|
|
78
|
+
.superRefine((overrides, context) => {
|
|
79
|
+
const keys = new Set();
|
|
80
|
+
overrides.forEach((override, index) => {
|
|
81
|
+
const normalizedKey = override.key.toLowerCase();
|
|
82
|
+
if (keys.has(normalizedKey)) {
|
|
83
|
+
context.addIssue({
|
|
84
|
+
code: "custom",
|
|
85
|
+
path: [index, "key"],
|
|
86
|
+
message: `Duplicate run variable override: ${override.key}`,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
keys.add(normalizedKey);
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
export const parseAgentVariableOverrides = (input) => agentVariableOverridesSchema.parse(input);
|
|
93
|
+
const stepBaseShape = {
|
|
94
|
+
id: z.string().min(1),
|
|
95
|
+
name: z.string().min(1).optional(),
|
|
96
|
+
description: z.string().optional(),
|
|
97
|
+
when: z.string().optional(),
|
|
98
|
+
outputVariable: agentVariableKeySchema.optional(),
|
|
99
|
+
includeInFinalOutput: z.boolean().optional(),
|
|
100
|
+
metadata: jsonObjectSchema.optional(),
|
|
101
|
+
extensions: jsonObjectSchema.optional(),
|
|
102
|
+
};
|
|
103
|
+
const explicitModelReferenceSchema = z.strictObject({
|
|
104
|
+
provider: z.string().min(1),
|
|
105
|
+
model: z.string().min(1),
|
|
106
|
+
options: jsonObjectSchema.optional(),
|
|
107
|
+
});
|
|
108
|
+
const profileModelReferenceSchema = z.strictObject({
|
|
109
|
+
ref: z.string().min(1),
|
|
110
|
+
options: jsonObjectSchema.optional(),
|
|
111
|
+
});
|
|
112
|
+
const modelReferenceSchema = z.union([
|
|
113
|
+
explicitModelReferenceSchema,
|
|
114
|
+
profileModelReferenceSchema,
|
|
115
|
+
]);
|
|
116
|
+
const agentConnectionBindingSchema = z.strictObject({
|
|
117
|
+
ref: z.string().min(1),
|
|
118
|
+
alias: z
|
|
119
|
+
.string()
|
|
120
|
+
.regex(/^[a-z][a-z0-9-]*$/u)
|
|
121
|
+
.optional(),
|
|
122
|
+
tools: z.array(z.string().min(1)).optional(),
|
|
123
|
+
mode: z.enum(["read", "read_write"]).optional(),
|
|
124
|
+
required: z.boolean().optional(),
|
|
125
|
+
});
|
|
126
|
+
export const agentStepSchema = z.lazy(() => z.discriminatedUnion("type", [
|
|
127
|
+
z.strictObject({
|
|
128
|
+
...stepBaseShape,
|
|
129
|
+
type: z.literal("prompt"),
|
|
130
|
+
prompt: z.string(),
|
|
131
|
+
systemPrompt: z.string().optional(),
|
|
132
|
+
model: modelReferenceSchema.optional(),
|
|
133
|
+
outputSchema: jsonObjectSchema.optional(),
|
|
134
|
+
tools: z.array(z.string()).optional(),
|
|
135
|
+
maxOutputTokens: z.number().int().positive().optional(),
|
|
136
|
+
completionPolicy: z
|
|
137
|
+
.strictObject({
|
|
138
|
+
onTruncation: z.enum(["fail", "accept"]).optional(),
|
|
139
|
+
requireOutput: z.boolean().optional(),
|
|
140
|
+
})
|
|
141
|
+
.optional(),
|
|
142
|
+
}),
|
|
143
|
+
z.strictObject({
|
|
144
|
+
...stepBaseShape,
|
|
145
|
+
type: z.literal("loop"),
|
|
146
|
+
loop: z.strictObject({
|
|
147
|
+
source: z.string().optional(),
|
|
148
|
+
delimiter: z.string().optional(),
|
|
149
|
+
itemVariable: variablePathSchema.optional(),
|
|
150
|
+
indexVariable: variablePathSchema.optional(),
|
|
151
|
+
condition: z.string().optional(),
|
|
152
|
+
goal: z.string().optional(),
|
|
153
|
+
outputMode: z.enum(["array", "final"]).optional(),
|
|
154
|
+
resultVariable: variablePathSchema.optional(),
|
|
155
|
+
maxIterations: z.number().int().positive().optional(),
|
|
156
|
+
}),
|
|
157
|
+
steps: z.array(agentStepSchema),
|
|
158
|
+
}),
|
|
159
|
+
z.strictObject({
|
|
160
|
+
...stepBaseShape,
|
|
161
|
+
type: z.literal("webhook"),
|
|
162
|
+
url: z.url(),
|
|
163
|
+
method: z.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]).optional(),
|
|
164
|
+
headers: z.record(z.string(), z.string()).optional(),
|
|
165
|
+
body: jsonValueSchema.optional(),
|
|
166
|
+
timeoutMs: z.number().int().positive().optional(),
|
|
167
|
+
retries: z.number().int().nonnegative().optional(),
|
|
168
|
+
idempotencyKey: z.string().optional(),
|
|
169
|
+
}),
|
|
170
|
+
z.strictObject({
|
|
171
|
+
...stepBaseShape,
|
|
172
|
+
type: z.literal("approval"),
|
|
173
|
+
prompt: z.string(),
|
|
174
|
+
action: z.enum(["pause", "complete", "cancel"]).optional(),
|
|
175
|
+
}),
|
|
176
|
+
z
|
|
177
|
+
.object({
|
|
178
|
+
...stepBaseShape,
|
|
179
|
+
type: z.literal("sub-run"),
|
|
180
|
+
manifest: z.lazy(() => agentManifestSchema).optional(),
|
|
181
|
+
manifestRef: z.string().optional(),
|
|
182
|
+
variableMappings: z
|
|
183
|
+
.record(agentVariableKeySchema, z.string())
|
|
184
|
+
.optional(),
|
|
185
|
+
})
|
|
186
|
+
.strict()
|
|
187
|
+
.refine((value) => value.manifest != null || value.manifestRef != null, {
|
|
188
|
+
message: "A sub-run step requires manifest or manifestRef.",
|
|
189
|
+
}),
|
|
190
|
+
z.strictObject({
|
|
191
|
+
...stepBaseShape,
|
|
192
|
+
type: z.literal("code"),
|
|
193
|
+
language: z.string().min(1),
|
|
194
|
+
code: z.string(),
|
|
195
|
+
timeoutMs: z.number().int().positive().optional(),
|
|
196
|
+
environment: z.record(z.string(), z.string()).optional(),
|
|
197
|
+
}),
|
|
198
|
+
]));
|
|
199
|
+
const validateSiblingStepIds = (steps, context, path) => {
|
|
200
|
+
const seen = new Set();
|
|
201
|
+
steps.forEach((step, index) => {
|
|
202
|
+
if (seen.has(step.id)) {
|
|
203
|
+
context.addIssue({
|
|
204
|
+
code: "custom",
|
|
205
|
+
message: `Duplicate sibling step id: ${step.id}`,
|
|
206
|
+
path: [...path, index, "id"],
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
seen.add(step.id);
|
|
210
|
+
if (step.type === "loop") {
|
|
211
|
+
validateSiblingStepIds(step.steps, context, [...path, index, "steps"]);
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
export const agentManifestSchema = z
|
|
216
|
+
.object({
|
|
217
|
+
schemaVersion: z.literal(AGENT_MANIFEST_SCHEMA_VERSION),
|
|
218
|
+
id: z.string().optional(),
|
|
219
|
+
name: z.string().optional(),
|
|
220
|
+
description: z.string().optional(),
|
|
221
|
+
model: modelReferenceSchema.optional(),
|
|
222
|
+
variables: z.array(agentVariableDefinitionSchema).optional(),
|
|
223
|
+
connections: z.array(agentConnectionBindingSchema).optional(),
|
|
224
|
+
steps: z.array(agentStepSchema),
|
|
225
|
+
limits: z
|
|
226
|
+
.object({
|
|
227
|
+
maxSteps: z.number().int().positive().optional(),
|
|
228
|
+
maxOutputBytes: z.number().int().positive().optional(),
|
|
229
|
+
maxToolCallsPerIteration: z.number().int().positive().optional(),
|
|
230
|
+
providerTimeoutMs: z.number().int().positive().optional(),
|
|
231
|
+
})
|
|
232
|
+
.strict()
|
|
233
|
+
.optional(),
|
|
234
|
+
metadata: jsonObjectSchema.optional(),
|
|
235
|
+
extensions: jsonObjectSchema.optional(),
|
|
236
|
+
})
|
|
237
|
+
.strict()
|
|
238
|
+
.superRefine((manifest, context) => {
|
|
239
|
+
const connectionAliases = new Set();
|
|
240
|
+
manifest.connections?.forEach((connection, index) => {
|
|
241
|
+
const alias = connection.alias ?? connection.ref;
|
|
242
|
+
if (connectionAliases.has(alias)) {
|
|
243
|
+
context.addIssue({
|
|
244
|
+
code: "custom",
|
|
245
|
+
message: `Duplicate connection alias: ${alias}`,
|
|
246
|
+
path: ["connections", index, "alias"],
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
connectionAliases.add(alias);
|
|
250
|
+
});
|
|
251
|
+
validateSiblingStepIds(manifest.steps, context, ["steps"]);
|
|
252
|
+
const variableKeys = new Set();
|
|
253
|
+
manifest.variables?.forEach((definition, index) => {
|
|
254
|
+
const normalizedKey = definition.key.toLowerCase();
|
|
255
|
+
if (variableKeys.has(normalizedKey)) {
|
|
256
|
+
context.addIssue({
|
|
257
|
+
code: "custom",
|
|
258
|
+
message: `Duplicate agent variable: ${definition.key}`,
|
|
259
|
+
path: ["variables", index, "key"],
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
variableKeys.add(normalizedKey);
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
export const AGENT_RUN_EXECUTION_MODES = ["sequential", "parallel"];
|
|
266
|
+
export const agentRunExecutionSchema = z.strictObject({
|
|
267
|
+
mode: z.enum(AGENT_RUN_EXECUTION_MODES),
|
|
268
|
+
maxConcurrency: z.number().int().min(1).max(64).optional(),
|
|
269
|
+
});
|
|
270
|
+
export const agentRunManifestSchema = z.strictObject({
|
|
271
|
+
schemaVersion: z.literal(AGENT_RUN_MANIFEST_SCHEMA_VERSION),
|
|
272
|
+
agent: z.strictObject({
|
|
273
|
+
ref: z.string().trim().min(1),
|
|
274
|
+
}),
|
|
275
|
+
runId: z.string().trim().min(1).optional(),
|
|
276
|
+
variables: agentVariableOverridesSchema.optional(),
|
|
277
|
+
execution: agentRunExecutionSchema.optional(),
|
|
278
|
+
});
|
|
279
|
+
export const artifactRefSchema = z.strictObject({
|
|
280
|
+
id: z.string().min(1),
|
|
281
|
+
name: z.string().min(1),
|
|
282
|
+
mediaType: z.string().min(1),
|
|
283
|
+
uri: z.string().optional(),
|
|
284
|
+
size: z.number().int().nonnegative().optional(),
|
|
285
|
+
sha256: z.string().optional(),
|
|
286
|
+
metadata: jsonObjectSchema.optional(),
|
|
287
|
+
});
|
|
288
|
+
export const modelUsageSchema = z.strictObject({
|
|
289
|
+
inputTokens: z.number().nonnegative().optional(),
|
|
290
|
+
outputTokens: z.number().nonnegative().optional(),
|
|
291
|
+
reasoningTokens: z.number().nonnegative().optional(),
|
|
292
|
+
cachedInputTokens: z.number().nonnegative().optional(),
|
|
293
|
+
cacheWriteTokens: z.number().nonnegative().optional(),
|
|
294
|
+
totalTokens: z.number().nonnegative().optional(),
|
|
295
|
+
estimatedCost: z.number().nonnegative().optional(),
|
|
296
|
+
metadata: jsonObjectSchema.optional(),
|
|
297
|
+
});
|
|
298
|
+
export const runErrorSchema = z.strictObject({
|
|
299
|
+
code: z.string().min(1),
|
|
300
|
+
message: z.string(),
|
|
301
|
+
retryable: z.boolean().optional(),
|
|
302
|
+
details: jsonObjectSchema.optional(),
|
|
303
|
+
stack: z.string().optional(),
|
|
304
|
+
});
|
|
305
|
+
const toolCallSchema = z.strictObject({
|
|
306
|
+
id: z.string().min(1),
|
|
307
|
+
name: z.string().min(1),
|
|
308
|
+
input: jsonObjectSchema,
|
|
309
|
+
stepId: z.string().optional(),
|
|
310
|
+
});
|
|
311
|
+
const toolResultSchema = z.strictObject({
|
|
312
|
+
callId: z.string().min(1),
|
|
313
|
+
name: z.string().min(1),
|
|
314
|
+
output: jsonValueSchema.optional(),
|
|
315
|
+
error: runErrorSchema.optional(),
|
|
316
|
+
artifacts: z.array(artifactRefSchema).optional(),
|
|
317
|
+
metadata: jsonObjectSchema.optional(),
|
|
318
|
+
});
|
|
319
|
+
const contentPartSchema = z.discriminatedUnion("type", [
|
|
320
|
+
z.strictObject({ type: z.literal("text"), text: z.string() }),
|
|
321
|
+
z.strictObject({
|
|
322
|
+
type: z.literal("reasoning"),
|
|
323
|
+
text: z.string().optional(),
|
|
324
|
+
encrypted: z.string().optional(),
|
|
325
|
+
}),
|
|
326
|
+
z.strictObject({ type: z.literal("json"), value: jsonValueSchema }),
|
|
327
|
+
z.strictObject({
|
|
328
|
+
type: z.literal("image"),
|
|
329
|
+
artifact: artifactRefSchema.optional(),
|
|
330
|
+
url: z.string().optional(),
|
|
331
|
+
mediaType: z.string().optional(),
|
|
332
|
+
}),
|
|
333
|
+
z.strictObject({ type: z.literal("file"), artifact: artifactRefSchema }),
|
|
334
|
+
z.strictObject({ type: z.literal("tool-call"), call: toolCallSchema }),
|
|
335
|
+
z.strictObject({ type: z.literal("tool-result"), result: toolResultSchema }),
|
|
336
|
+
]);
|
|
337
|
+
export const transcriptItemSchema = z.strictObject({
|
|
338
|
+
id: z.string().min(1),
|
|
339
|
+
type: z.enum([
|
|
340
|
+
"message",
|
|
341
|
+
"reasoning",
|
|
342
|
+
"tool-call",
|
|
343
|
+
"tool-result",
|
|
344
|
+
"artifact",
|
|
345
|
+
"error",
|
|
346
|
+
]),
|
|
347
|
+
role: z.enum(["system", "user", "assistant", "tool"]).optional(),
|
|
348
|
+
content: z.array(contentPartSchema),
|
|
349
|
+
createdAt: z.iso.datetime({ offset: true }),
|
|
350
|
+
model: z.string().optional(),
|
|
351
|
+
usage: modelUsageSchema.optional(),
|
|
352
|
+
metadata: jsonObjectSchema.optional(),
|
|
353
|
+
});
|
|
354
|
+
const executionCursorSchema = z.strictObject({
|
|
355
|
+
stepIndex: z.number().int().nonnegative(),
|
|
356
|
+
stepId: z.string().optional(),
|
|
357
|
+
stepPath: z.string().optional(),
|
|
358
|
+
loopIteration: z.number().int().nonnegative().optional(),
|
|
359
|
+
childIndex: z.number().int().nonnegative().optional(),
|
|
360
|
+
});
|
|
361
|
+
export const stepResultSchema = z.strictObject({
|
|
362
|
+
stepId: z.string().min(1),
|
|
363
|
+
stepIndex: z.number().int().nonnegative(),
|
|
364
|
+
status: z.literal("completed"),
|
|
365
|
+
output: jsonValueSchema.optional(),
|
|
366
|
+
variables: variableStateSchema.optional(),
|
|
367
|
+
transcript: z.array(transcriptItemSchema).optional(),
|
|
368
|
+
artifacts: z.array(artifactRefSchema).optional(),
|
|
369
|
+
usage: modelUsageSchema.optional(),
|
|
370
|
+
completedAt: z.iso.datetime({ offset: true }),
|
|
371
|
+
metadata: jsonObjectSchema.optional(),
|
|
372
|
+
});
|
|
373
|
+
export const runCheckpointSchema = z.strictObject({
|
|
374
|
+
id: z.string().min(1),
|
|
375
|
+
runId: z.string().min(1),
|
|
376
|
+
sequence: z.number().int().positive().safe(),
|
|
377
|
+
attempt: z.number().int().positive().safe().optional(),
|
|
378
|
+
manifestHash: z.string().min(1),
|
|
379
|
+
contractVersion: z.string().min(1),
|
|
380
|
+
runtimeVersion: z.string().min(1),
|
|
381
|
+
cursor: executionCursorSchema,
|
|
382
|
+
state: variableStateSchema,
|
|
383
|
+
stepResults: z.array(stepResultSchema),
|
|
384
|
+
transcript: z.array(transcriptItemSchema),
|
|
385
|
+
artifacts: z.array(artifactRefSchema),
|
|
386
|
+
activeStepTranscript: z.array(transcriptItemSchema).optional(),
|
|
387
|
+
activeStepArtifacts: z.array(artifactRefSchema).optional(),
|
|
388
|
+
continuation: jsonObjectSchema.optional(),
|
|
389
|
+
createdAt: z.iso.datetime({ offset: true }),
|
|
390
|
+
metadata: jsonObjectSchema.optional(),
|
|
391
|
+
});
|
|
392
|
+
export const parseRunCheckpoint = (input) => runCheckpointSchema.parse(input);
|
|
393
|
+
export const parseAgentManifest = (input) => agentManifestSchema.parse(input);
|
|
394
|
+
export const safeParseAgentManifest = (input) => agentManifestSchema.safeParse(input);
|
|
395
|
+
export const parseAgentRunManifest = (input) => agentRunManifestSchema.parse(input);
|
|
396
|
+
export const safeParseAgentRunManifest = (input) => agentRunManifestSchema.safeParse(input);
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@clearideas/agent-runtime-contracts",
|
|
3
|
+
"version": "0.1.0-alpha.1",
|
|
4
|
+
"description": "Versioned, persistence-independent contracts for Clear Ideas Agent Runtime.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "Clear Ideas Incorporated",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/clearideas/agent-runtime.git",
|
|
10
|
+
"directory": "packages/contracts"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "restricted",
|
|
14
|
+
"provenance": false,
|
|
15
|
+
"registry": "https://registry.npmjs.org/"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"NOTICE",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "dist/index.js",
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"default": "./dist/index.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc -b tsconfig.json --force",
|
|
33
|
+
"type-check": "tsc -p tsconfig.json --noEmit",
|
|
34
|
+
"test": "vitest run --config vitest.config.ts",
|
|
35
|
+
"prepack": "npm run build && node ../../scripts/prepare-package-license.mjs",
|
|
36
|
+
"postpack": "node ../../scripts/cleanup-package-license.mjs"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"zod": "^4.4.3"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"typescript": "^6.0.3",
|
|
43
|
+
"vitest": "^4.0.18"
|
|
44
|
+
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=24"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/clearideas/agent-runtime#readme",
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/clearideas/agent-runtime/issues"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"ai",
|
|
54
|
+
"agents",
|
|
55
|
+
"agent-runtime",
|
|
56
|
+
"workflows"
|
|
57
|
+
]
|
|
58
|
+
}
|