@oisincoveney/pipeline 1.27.5 → 1.27.7
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/config.d.ts +4 -4
- package/dist/schedule-planner.js +8 -2
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -362,8 +362,8 @@ declare const configSchema: z.ZodObject<{
|
|
|
362
362
|
policy: z.ZodOptional<z.ZodObject<{
|
|
363
363
|
commands: z.ZodOptional<z.ZodEnum<{
|
|
364
364
|
allow: "allow";
|
|
365
|
-
deny: "deny";
|
|
366
365
|
"trusted-only": "trusted-only";
|
|
366
|
+
deny: "deny";
|
|
367
367
|
}>>;
|
|
368
368
|
modules: z.ZodOptional<z.ZodEnum<{
|
|
369
369
|
allow: "allow";
|
|
@@ -387,8 +387,8 @@ declare const configSchema: z.ZodObject<{
|
|
|
387
387
|
}, z.core.$strict>>>;
|
|
388
388
|
default_profile: z.ZodOptional<z.ZodString>;
|
|
389
389
|
mode: z.ZodEnum<{
|
|
390
|
-
local: "local";
|
|
391
390
|
hosted: "hosted";
|
|
391
|
+
local: "local";
|
|
392
392
|
}>;
|
|
393
393
|
provider: z.ZodLiteral<"toolhive">;
|
|
394
394
|
authorization_env: z.ZodDefault<z.ZodString>;
|
|
@@ -431,10 +431,10 @@ declare const configSchema: z.ZodObject<{
|
|
|
431
431
|
}, z.core.$strict>>;
|
|
432
432
|
output: z.ZodOptional<z.ZodObject<{
|
|
433
433
|
format: z.ZodEnum<{
|
|
434
|
-
json_schema: "json_schema";
|
|
435
434
|
text: "text";
|
|
436
435
|
json: "json";
|
|
437
436
|
jsonl: "jsonl";
|
|
437
|
+
json_schema: "json_schema";
|
|
438
438
|
}>;
|
|
439
439
|
repair: z.ZodOptional<z.ZodObject<{
|
|
440
440
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -503,10 +503,10 @@ declare const configSchema: z.ZodObject<{
|
|
|
503
503
|
disabled: "disabled";
|
|
504
504
|
}>>>;
|
|
505
505
|
output_formats: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
506
|
-
json_schema: "json_schema";
|
|
507
506
|
text: "text";
|
|
508
507
|
json: "json";
|
|
509
508
|
jsonl: "jsonl";
|
|
509
|
+
json_schema: "json_schema";
|
|
510
510
|
}>>>;
|
|
511
511
|
rules: z.ZodOptional<z.ZodBoolean>;
|
|
512
512
|
skills: z.ZodOptional<z.ZodBoolean>;
|
package/dist/schedule-planner.js
CHANGED
|
@@ -12,6 +12,7 @@ import matter from "gray-matter";
|
|
|
12
12
|
//#region src/schedule-planner.ts
|
|
13
13
|
const SCHEDULE_KIND = "pipeline-schedule";
|
|
14
14
|
const ID_RE = /^[a-z][a-z0-9-]*$/;
|
|
15
|
+
const SCHEDULE_ID_RE = /^[A-Za-z0-9][A-Za-z0-9_.-]*$/;
|
|
15
16
|
const DESCRIPTION_SECTION_RE = /## Description\s+([\s\S]*?)(?=\n## |\s*$)/;
|
|
16
17
|
const ACCEPTANCE_SECTION_RE = /## Acceptance Criteria\s+([\s\S]*?)(?=\n## |\s*$)/;
|
|
17
18
|
const ACCEPTANCE_ITEM_RE = /^\s*-\s*\[[ xX]\]\s*#?([\w.-]+)\s+(.+)$/;
|
|
@@ -19,6 +20,7 @@ const GENERATED_ID_INVALID_CHARS_RE = /[^a-z0-9]+/g;
|
|
|
19
20
|
const GENERATED_ID_TRIM_HYPHENS_RE = /^-+|-+$/g;
|
|
20
21
|
const STARTS_WITH_ALPHA_RE = /^[a-z]/;
|
|
21
22
|
const LINE_RE = /\r?\n/;
|
|
23
|
+
const MARKDOWN_YAML_FENCE_RE = /```(?:ya?ml)?\s*\r?\n([\s\S]*?)\r?\n```/i;
|
|
22
24
|
const SCHEDULE_PLANNER_REPAIR_ATTEMPTS = 1;
|
|
23
25
|
const SCHEDULE_BUILTINS = [
|
|
24
26
|
"drain-merge",
|
|
@@ -38,7 +40,7 @@ const scheduleArtifactSchema = z.object({
|
|
|
38
40
|
generated_at: z.string().datetime(),
|
|
39
41
|
kind: z.literal(SCHEDULE_KIND),
|
|
40
42
|
root_workflow: z.string().regex(ID_RE),
|
|
41
|
-
schedule_id: z.string().regex(
|
|
43
|
+
schedule_id: z.string().regex(SCHEDULE_ID_RE),
|
|
42
44
|
source_entrypoint: z.string().regex(ID_RE),
|
|
43
45
|
task: z.string().min(1),
|
|
44
46
|
version: z.literal(1),
|
|
@@ -514,9 +516,10 @@ async function planScheduleArtifact(baseline, plannerProfile, options, planningC
|
|
|
514
516
|
].join("\n"));
|
|
515
517
|
}
|
|
516
518
|
function parseGeneratedSchedule(source, sourcePath) {
|
|
519
|
+
const parseableSource = normalizeGeneratedScheduleSource(source);
|
|
517
520
|
try {
|
|
518
521
|
return {
|
|
519
|
-
artifact: canonicalizeGeneratedScheduleIds(parseScheduleArtifact(
|
|
522
|
+
artifact: canonicalizeGeneratedScheduleIds(parseScheduleArtifact(parseableSource, sourcePath)),
|
|
520
523
|
ok: true
|
|
521
524
|
};
|
|
522
525
|
} catch (err) {
|
|
@@ -527,6 +530,9 @@ function parseGeneratedSchedule(source, sourcePath) {
|
|
|
527
530
|
};
|
|
528
531
|
}
|
|
529
532
|
}
|
|
533
|
+
function normalizeGeneratedScheduleSource(source) {
|
|
534
|
+
return MARKDOWN_YAML_FENCE_RE.exec(source)?.[1] ?? source;
|
|
535
|
+
}
|
|
530
536
|
function acceptedGeneratedSchedule(parsed) {
|
|
531
537
|
if (!parsed.ok) return parsed;
|
|
532
538
|
const builtinCheck = generatedBuiltinsSupported(parsed.artifact);
|
package/package.json
CHANGED
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"prepack": "bun run build:cli"
|
|
121
121
|
},
|
|
122
122
|
"type": "module",
|
|
123
|
-
"version": "1.27.
|
|
123
|
+
"version": "1.27.7",
|
|
124
124
|
"description": "Config-driven multi-agent pipeline runner for repository work",
|
|
125
125
|
"main": "./dist/index.js",
|
|
126
126
|
"types": "./dist/index.d.ts",
|