@oisincoveney/pipeline 3.4.1 → 3.6.0
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/defaults/pipeline.yaml
CHANGED
|
@@ -52,8 +52,31 @@ hooks:
|
|
|
52
52
|
runner_command:
|
|
53
53
|
environment:
|
|
54
54
|
setup:
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
# Environment bootstrap (dependency install, toolchain pinning, codegen) is
|
|
56
|
+
# OWNED BY THE TARGET REPO and is REQUIRED — moka does not guess it. The
|
|
57
|
+
# repo's own CI already encodes the correct sequence (package manager,
|
|
58
|
+
# mise/asdf/nvm toolchains, generated clients), which moka cannot reliably
|
|
59
|
+
# reproduce. moka runs the repo's declared entrypoint here: an executable
|
|
60
|
+
# .moka/bootstrap.sh, or a "moka:setup" package.json script. If the repo
|
|
61
|
+
# declares neither, the run fails loudly rather than silently under-
|
|
62
|
+
# provisioning the workspace.
|
|
63
|
+
- command: sh
|
|
64
|
+
args:
|
|
65
|
+
- -c
|
|
66
|
+
- |
|
|
67
|
+
if [ -f .moka/bootstrap.sh ]; then
|
|
68
|
+
echo "moka: running repo bootstrap (.moka/bootstrap.sh)"
|
|
69
|
+
sh .moka/bootstrap.sh
|
|
70
|
+
elif [ -f package.json ] && grep -q '"moka:setup"' package.json; then
|
|
71
|
+
echo "moka: running repo bootstrap (npm run moka:setup)"
|
|
72
|
+
npm run moka:setup
|
|
73
|
+
else
|
|
74
|
+
echo "moka: repo environment bootstrap is REQUIRED but was not found." >&2
|
|
75
|
+
echo "Add an executable .moka/bootstrap.sh (or a 'moka:setup' package.json script)" >&2
|
|
76
|
+
echo "that installs dependencies and any toolchain/codegen this repo needs." >&2
|
|
77
|
+
echo "moka does not guess dependency/toolchain setup." >&2
|
|
78
|
+
exit 1
|
|
79
|
+
fi
|
|
57
80
|
# Set up package-owned pipeline support + the opencode model registration
|
|
58
81
|
# (.opencode/opencode.json, which declares the gpt-5.5-* reasoning selectors)
|
|
59
82
|
# on every run, so opencode-backed agents in the pod resolve their models
|
|
@@ -5,7 +5,7 @@ import { submitMoka } from "../moka-submit.js";
|
|
|
5
5
|
import { Option } from "commander";
|
|
6
6
|
//#region src/cli/submit-options.ts
|
|
7
7
|
function addMokaSubmitOptions(command) {
|
|
8
|
-
return addRunnerArgoOptions(command.option("--quick", "submit the compact graph").option("--command", "treat input after -- as explicit argv").option("--schedule <path>", "approved schedule YAML to submit").option("--event-url <url>", "runner event sink URL").option("--task <text>", "task description for command-mode metadata"), { kubeconfig: true });
|
|
8
|
+
return addRunnerArgoOptions(command.option("--quick", "submit the compact graph").option("--command", "treat input after -- as explicit argv").option("--schedule <path>", "approved schedule YAML to submit").option("--event-url <url>", "runner event sink URL").option("--open-pr", "append an open-pull-request delivery node (preview-labelled PR)").option("--task <text>", "task description for command-mode metadata"), { kubeconfig: true });
|
|
9
9
|
}
|
|
10
10
|
function runMokaSubmitFromCli(input, flags) {
|
|
11
11
|
const cwd = process.env.PIPELINE_TARGET_PATH ?? process.cwd();
|
|
@@ -35,6 +35,7 @@ function mokaCommonSubmitOptions(input) {
|
|
|
35
35
|
const momokaya = input.globalConfig?.momokaya;
|
|
36
36
|
return {
|
|
37
37
|
config: input.config,
|
|
38
|
+
delivery: { pullRequest: input.flags.openPr === true },
|
|
38
39
|
eventUrl: input.eventUrl,
|
|
39
40
|
eventAuthSecretKey: momokaya?.submit.eventAuthSecretKey,
|
|
40
41
|
eventAuthSecretName: momokaya?.submit.eventAuthSecretName,
|
package/dist/config/schemas.d.ts
CHANGED
|
@@ -481,8 +481,8 @@ declare const configSchema: z.ZodObject<{
|
|
|
481
481
|
schedules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
482
482
|
description: z.ZodOptional<z.ZodString>;
|
|
483
483
|
baseline: z.ZodEnum<{
|
|
484
|
-
quick: "quick";
|
|
485
484
|
execute: "execute";
|
|
485
|
+
quick: "quick";
|
|
486
486
|
}>;
|
|
487
487
|
max_parallel_nodes: z.ZodOptional<z.ZodNumber>;
|
|
488
488
|
node_catalog: z.ZodOptional<z.ZodString>;
|
package/dist/moka-submit.d.ts
CHANGED
|
@@ -160,8 +160,8 @@ declare const mokaSubmitOptionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
160
160
|
}, z.core.$strict>>;
|
|
161
161
|
serviceAccountName: z.ZodOptional<z.ZodString>;
|
|
162
162
|
mode: z.ZodEnum<{
|
|
163
|
-
full: "full";
|
|
164
163
|
quick: "quick";
|
|
164
|
+
full: "full";
|
|
165
165
|
}>;
|
|
166
166
|
schedulePath: z.ZodOptional<z.ZodString>;
|
|
167
167
|
scheduleYaml: z.ZodOptional<z.ZodString>;
|
|
@@ -43,8 +43,8 @@ declare const runnerDeliverySchema: z.ZodObject<{
|
|
|
43
43
|
declare const mokaSubmissionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
44
|
kind: z.ZodLiteral<"graph">;
|
|
45
45
|
mode: z.ZodEnum<{
|
|
46
|
-
full: "full";
|
|
47
46
|
quick: "quick";
|
|
47
|
+
full: "full";
|
|
48
48
|
}>;
|
|
49
49
|
}, z.core.$strict>, z.ZodObject<{
|
|
50
50
|
argv: z.ZodArray<z.ZodString>;
|
|
@@ -104,8 +104,8 @@ declare const runnerCommandPayloadSchema: z.ZodObject<{
|
|
|
104
104
|
submission: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
105
105
|
kind: z.ZodLiteral<"graph">;
|
|
106
106
|
mode: z.ZodEnum<{
|
|
107
|
-
full: "full";
|
|
108
107
|
quick: "quick";
|
|
108
|
+
full: "full";
|
|
109
109
|
}>;
|
|
110
110
|
}, z.core.$strict>, z.ZodObject<{
|
|
111
111
|
argv: z.ZodArray<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"prepack": "bun run build:cli"
|
|
127
127
|
},
|
|
128
128
|
"type": "module",
|
|
129
|
-
"version": "3.
|
|
129
|
+
"version": "3.6.0",
|
|
130
130
|
"description": "Config-driven multi-agent pipeline runner for repository work",
|
|
131
131
|
"main": "./dist/index.js",
|
|
132
132
|
"types": "./dist/index.d.ts",
|