@oisincoveney/pipeline 1.27.7 → 1.27.9
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 +2 -2
- package/dist/config.js +5 -0
- package/dist/run-state/git-refs.js +10 -5
- package/dist/runner-command/run.js +1 -0
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -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<{
|
|
@@ -511,7 +511,6 @@ declare const configSchema: z.ZodObject<{
|
|
|
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/config.js
CHANGED
|
@@ -329,6 +329,11 @@ hooks:
|
|
|
329
329
|
- id: generated-defaults-audit
|
|
330
330
|
function: generated-defaults-audit
|
|
331
331
|
failure: fail
|
|
332
|
+
runner_command:
|
|
333
|
+
environment:
|
|
334
|
+
setup:
|
|
335
|
+
- command: pnpm
|
|
336
|
+
args: [install, --frozen-lockfile]
|
|
332
337
|
scheduler:
|
|
333
338
|
commands:
|
|
334
339
|
quick:
|
|
@@ -27,6 +27,7 @@ async function prepareRunnerGitWorkspace(payload, options = {}) {
|
|
|
27
27
|
return worktreePath;
|
|
28
28
|
}
|
|
29
29
|
async function mergeDependencyRefs(input) {
|
|
30
|
+
await configureGitCommitter(input.worktreePath, input.committer);
|
|
30
31
|
for (const nodeId of input.dependencyNodeIds) {
|
|
31
32
|
const ref = runnerGitRefs(input.payload, nodeId).nodeRef;
|
|
32
33
|
await runGit(input.worktreePath, [
|
|
@@ -54,6 +55,7 @@ async function commitAndPushNodeRef(input) {
|
|
|
54
55
|
}
|
|
55
56
|
async function promoteFinalRef(input) {
|
|
56
57
|
await mergeDependencyRefs({
|
|
58
|
+
committer: input.committer,
|
|
57
59
|
dependencyNodeIds: input.sourceNodeIds,
|
|
58
60
|
payload: input.payload,
|
|
59
61
|
worktreePath: input.worktreePath
|
|
@@ -74,6 +76,14 @@ async function commitChangesIfNeeded(worktreePath, nodeId, committer) {
|
|
|
74
76
|
"--untracked-files=all"
|
|
75
77
|
])).trim().length === 0) return;
|
|
76
78
|
await runGit(worktreePath, ["add", "--all"]);
|
|
79
|
+
await configureGitCommitter(worktreePath, committer);
|
|
80
|
+
await runGit(worktreePath, [
|
|
81
|
+
"commit",
|
|
82
|
+
"-m",
|
|
83
|
+
`pipeline: ${nodeId}`
|
|
84
|
+
]);
|
|
85
|
+
}
|
|
86
|
+
async function configureGitCommitter(worktreePath, committer) {
|
|
77
87
|
await runGit(worktreePath, [
|
|
78
88
|
"config",
|
|
79
89
|
"--local",
|
|
@@ -86,11 +96,6 @@ async function commitChangesIfNeeded(worktreePath, nodeId, committer) {
|
|
|
86
96
|
"user.email",
|
|
87
97
|
committer.email
|
|
88
98
|
]);
|
|
89
|
-
await runGit(worktreePath, [
|
|
90
|
-
"commit",
|
|
91
|
-
"-m",
|
|
92
|
-
`pipeline: ${nodeId}`
|
|
93
|
-
]);
|
|
94
99
|
}
|
|
95
100
|
async function runGit(cwd, args) {
|
|
96
101
|
const { stdout } = await execGit("git", args, {
|
|
@@ -49,6 +49,7 @@ async function runRunnerCommand(rawOptions = {}) {
|
|
|
49
49
|
const node = findPlannedNode(compiled.plan.topologicalOrder, descriptor.nodeId);
|
|
50
50
|
if (!node) throw new Error(`Argo task '${descriptor.nodeId}' is not declared in workflow '${compiled.workflowId}'`);
|
|
51
51
|
await mergeDependencyRefs({
|
|
52
|
+
committer: compiled.config.runner_command.git.committer,
|
|
52
53
|
dependencyNodeIds: node.needs,
|
|
53
54
|
payload,
|
|
54
55
|
worktreePath
|
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.9",
|
|
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",
|