@barnum/barnum 0.0.0-main-da2f51a0 → 0.0.0-main-19c6493d
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/artifacts/linux-arm64/barnum +0 -0
- package/artifacts/linux-x64/barnum +0 -0
- package/artifacts/macos-arm64/barnum +0 -0
- package/artifacts/macos-x64/barnum +0 -0
- package/artifacts/win-x64/barnum.exe +0 -0
- package/barnum-config-schema.json +0 -41
- package/barnum-config-schema.zod.ts +0 -12
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -273,35 +273,6 @@
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
},
|
|
276
|
-
"SchemaLink": {
|
|
277
|
-
"description": "Reference to an external JSON Schema file.",
|
|
278
|
-
"type": "object",
|
|
279
|
-
"required": [
|
|
280
|
-
"link"
|
|
281
|
-
],
|
|
282
|
-
"properties": {
|
|
283
|
-
"link": {
|
|
284
|
-
"description": "Relative path to the JSON Schema file (e.g., `\"schemas/task.json\"`).",
|
|
285
|
-
"type": "string"
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
"SchemaRef": {
|
|
290
|
-
"description": "A JSON Schema for validating task payloads. Can be provided inline or loaded from a file.\n\n- Inline: write the JSON Schema object directly, e.g. `{\"type\": \"object\", \"properties\": {...}}` - Linked: `{\"link\": \"path/to/schema.json\"}` to load from a file (path relative to config file)",
|
|
291
|
-
"anyOf": [
|
|
292
|
-
{
|
|
293
|
-
"description": "Reference to an external JSON Schema file. The path is relative to the config file's directory.",
|
|
294
|
-
"allOf": [
|
|
295
|
-
{
|
|
296
|
-
"$ref": "#/definitions/SchemaLink"
|
|
297
|
-
}
|
|
298
|
-
]
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"description": "Inline JSON Schema object (any valid JSON Schema)."
|
|
302
|
-
}
|
|
303
|
-
]
|
|
304
|
-
},
|
|
305
276
|
"StepFile": {
|
|
306
277
|
"description": "A named step in the workflow. Steps are the nodes of the task graph.\n\nThe `finally` hook runs after the task **and all of its descendant tasks** complete.",
|
|
307
278
|
"type": "object",
|
|
@@ -355,18 +326,6 @@
|
|
|
355
326
|
"$ref": "#/definitions/StepOptions"
|
|
356
327
|
}
|
|
357
328
|
]
|
|
358
|
-
},
|
|
359
|
-
"value_schema": {
|
|
360
|
-
"description": "JSON Schema that validates the `value` payload for tasks on this step. When set, tasks whose `value` doesn't conform are rejected. When omitted, any JSON value is accepted.",
|
|
361
|
-
"default": null,
|
|
362
|
-
"anyOf": [
|
|
363
|
-
{
|
|
364
|
-
"$ref": "#/definitions/SchemaRef"
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"type": "null"
|
|
368
|
-
}
|
|
369
|
-
]
|
|
370
329
|
}
|
|
371
330
|
},
|
|
372
331
|
"additionalProperties": false
|
|
@@ -52,15 +52,6 @@ const Options = z.object({
|
|
|
52
52
|
timeout: z.number().int().nonnegative().nullable().optional().default(null).describe("Timeout in seconds for each task (None = no timeout)."),
|
|
53
53
|
}).strict().describe("Global runtime options for task execution. All fields have sensible defaults.");
|
|
54
54
|
|
|
55
|
-
const SchemaLink = z.object({
|
|
56
|
-
link: z.string().describe("Relative path to the JSON Schema file (e.g., `\"schemas/task.json\"`)."),
|
|
57
|
-
}).describe("Reference to an external JSON Schema file.");
|
|
58
|
-
|
|
59
|
-
const SchemaRef = z.union([
|
|
60
|
-
SchemaLink.describe("Reference to an external JSON Schema file. The path is relative to the config file's directory."),
|
|
61
|
-
z.any().describe("Inline JSON Schema object (any valid JSON Schema)."),
|
|
62
|
-
]).describe("A JSON Schema for validating task payloads. Can be provided inline or loaded from a file.\n\n- Inline: write the JSON Schema object directly, e.g. `{\"type\": \"object\", \"properties\": {...}}` - Linked: `{\"link\": \"path/to/schema.json\"}` to load from a file (path relative to config file)");
|
|
63
|
-
|
|
64
55
|
const StepOptions = z.object({
|
|
65
56
|
max_retries: z.number().int().nonnegative().nullable().optional().default(null).describe("Maximum retries for tasks on this step (overrides global `max_retries`)."),
|
|
66
57
|
retry_on_invalid_response: z.boolean().nullable().optional().default(null).describe("Whether to retry when an agent returns an invalid response on this step (overrides global `retry_on_invalid_response`)."),
|
|
@@ -74,7 +65,6 @@ const StepFile = z.object({
|
|
|
74
65
|
name: z.string().describe("Unique name for this step (e.g., `\"Analyze\"`, `\"Implement\"`, `\"Review\"`). This is the string used as `kind` when creating tasks: `{\"kind\": \"ThisStepName\", \"value\": {...}}`."),
|
|
75
66
|
next: z.array(z.string()).optional().default([]).describe("Step names this step is allowed to spawn follow-up tasks on. Each string must match the `name` of another step in this config. An empty array means this is a terminal step (no follow-ups)."),
|
|
76
67
|
options: StepOptions.optional().default({"max_retries": null, "retry_on_invalid_response": null, "retry_on_timeout": null, "timeout": null}).describe("Per-step options that override the global `options`. Only the fields you set here take effect; everything else falls through to the global defaults."),
|
|
77
|
-
value_schema: SchemaRef.nullable().optional().default(null).describe("JSON Schema that validates the `value` payload for tasks on this step. When set, tasks whose `value` doesn't conform are rejected. When omitted, any JSON value is accepted."),
|
|
78
68
|
}).strict().describe("A named step in the workflow. Steps are the nodes of the task graph.\n\nThe `finally` hook runs after the task **and all of its descendant tasks** complete.");
|
|
79
69
|
|
|
80
70
|
export const configFileSchema = z.object({
|
|
@@ -92,8 +82,6 @@ export type ActionFile = z.infer<typeof ActionFile>;
|
|
|
92
82
|
export type HookCommand = z.infer<typeof HookCommand>;
|
|
93
83
|
export type FinallyHook = z.infer<typeof FinallyHook>;
|
|
94
84
|
export type Options = z.infer<typeof Options>;
|
|
95
|
-
export type SchemaLink = z.infer<typeof SchemaLink>;
|
|
96
|
-
export type SchemaRef = z.infer<typeof SchemaRef>;
|
|
97
85
|
export type StepOptions = z.infer<typeof StepOptions>;
|
|
98
86
|
export type StepFile = z.infer<typeof StepFile>;
|
|
99
87
|
|