@oisincoveney/pipeline 1.27.5 → 1.27.6
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 +6 -6
- package/dist/schedule-planner.js +6 -1
- 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>;
|
|
@@ -452,7 +452,6 @@ declare const configSchema: z.ZodObject<{
|
|
|
452
452
|
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
453
453
|
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
454
454
|
tools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
455
|
-
task: "task";
|
|
456
455
|
read: "read";
|
|
457
456
|
list: "list";
|
|
458
457
|
grep: "grep";
|
|
@@ -460,6 +459,7 @@ declare const configSchema: z.ZodObject<{
|
|
|
460
459
|
bash: "bash";
|
|
461
460
|
edit: "edit";
|
|
462
461
|
write: "write";
|
|
462
|
+
task: "task";
|
|
463
463
|
}>>>;
|
|
464
464
|
}, z.core.$strict>>>;
|
|
465
465
|
runner_command: z.ZodDefault<z.ZodObject<{
|
|
@@ -503,15 +503,14 @@ 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>;
|
|
513
513
|
tools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
514
|
-
task: "task";
|
|
515
514
|
read: "read";
|
|
516
515
|
list: "list";
|
|
517
516
|
grep: "grep";
|
|
@@ -519,6 +518,7 @@ declare const configSchema: z.ZodObject<{
|
|
|
519
518
|
bash: "bash";
|
|
520
519
|
edit: "edit";
|
|
521
520
|
write: "write";
|
|
521
|
+
task: "task";
|
|
522
522
|
}>>>;
|
|
523
523
|
}, z.core.$strict>;
|
|
524
524
|
command: z.ZodOptional<z.ZodString>;
|
package/dist/schedule-planner.js
CHANGED
|
@@ -19,6 +19,7 @@ const GENERATED_ID_INVALID_CHARS_RE = /[^a-z0-9]+/g;
|
|
|
19
19
|
const GENERATED_ID_TRIM_HYPHENS_RE = /^-+|-+$/g;
|
|
20
20
|
const STARTS_WITH_ALPHA_RE = /^[a-z]/;
|
|
21
21
|
const LINE_RE = /\r?\n/;
|
|
22
|
+
const MARKDOWN_YAML_FENCE_RE = /^\s*```(?:ya?ml)?\s*\r?\n([\s\S]*?)\r?\n```\s*$/i;
|
|
22
23
|
const SCHEDULE_PLANNER_REPAIR_ATTEMPTS = 1;
|
|
23
24
|
const SCHEDULE_BUILTINS = [
|
|
24
25
|
"drain-merge",
|
|
@@ -514,9 +515,10 @@ async function planScheduleArtifact(baseline, plannerProfile, options, planningC
|
|
|
514
515
|
].join("\n"));
|
|
515
516
|
}
|
|
516
517
|
function parseGeneratedSchedule(source, sourcePath) {
|
|
518
|
+
const parseableSource = normalizeGeneratedScheduleSource(source);
|
|
517
519
|
try {
|
|
518
520
|
return {
|
|
519
|
-
artifact: canonicalizeGeneratedScheduleIds(parseScheduleArtifact(
|
|
521
|
+
artifact: canonicalizeGeneratedScheduleIds(parseScheduleArtifact(parseableSource, sourcePath)),
|
|
520
522
|
ok: true
|
|
521
523
|
};
|
|
522
524
|
} catch (err) {
|
|
@@ -527,6 +529,9 @@ function parseGeneratedSchedule(source, sourcePath) {
|
|
|
527
529
|
};
|
|
528
530
|
}
|
|
529
531
|
}
|
|
532
|
+
function normalizeGeneratedScheduleSource(source) {
|
|
533
|
+
return MARKDOWN_YAML_FENCE_RE.exec(source)?.[1] ?? source;
|
|
534
|
+
}
|
|
530
535
|
function acceptedGeneratedSchedule(parsed) {
|
|
531
536
|
if (!parsed.ok) return parsed;
|
|
532
537
|
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.6",
|
|
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",
|