@theagilemonkeys/facility 0.11.2 → 0.11.3
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/package.json +1 -1
- package/src/init.mjs +8 -0
- package/templates/workflows/facility-address-review.yml +2 -1
- package/templates/workflows/facility-codex.yml +2 -1
- package/templates/workflows/facility-crew.yml +2 -1
- package/templates/workflows/facility-doctor.yml +2 -1
- package/templates/workflows/facility-review.yml +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theagilemonkeys/facility",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "Run an AI crew on your GitHub repo: agents that plan before building, build to your standard, verify on a provisioned environment, and never merge their own work.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
package/src/init.mjs
CHANGED
|
@@ -125,6 +125,13 @@ function checksList(checks) {
|
|
|
125
125
|
return lines.join("\n");
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
// The provision command is interpolated into a YAML block scalar, not a bare
|
|
129
|
+
// scalar: a command containing ": " (and the no-provision fallback below does)
|
|
130
|
+
// otherwise renders a workflow GitHub cannot parse.
|
|
131
|
+
function provisionRun(command) {
|
|
132
|
+
return command.split("\n").map((line) => ` ${line}`).join("\n");
|
|
133
|
+
}
|
|
134
|
+
|
|
128
135
|
function checksRun(checks) {
|
|
129
136
|
if (checks.length) return checks.map((command) => ` ${command}`).join("\n");
|
|
130
137
|
return [
|
|
@@ -406,6 +413,7 @@ export async function init(flags, pkgRoot, version) {
|
|
|
406
413
|
CODEX_ARCHITECT_REPO_LANE: "true",
|
|
407
414
|
CODEX_BUILDER_REPO_LANE: "true",
|
|
408
415
|
PROVISION_CMD: provisionCmd,
|
|
416
|
+
PROVISION_RUN: provisionRun(provisionCmd),
|
|
409
417
|
CHECKS_INLINE: checksInline,
|
|
410
418
|
CHECKS_RUN: checksRun(checks),
|
|
411
419
|
CHECKS_LIST: checksList(checks),
|
|
@@ -61,7 +61,8 @@ jobs:
|
|
|
61
61
|
# Provisioned job site, so the agent can verify before pushing.
|
|
62
62
|
- name: Provision environment
|
|
63
63
|
if: steps.workflow-change.outputs.changed != 'true'
|
|
64
|
-
run:
|
|
64
|
+
run: |
|
|
65
|
+
{{PROVISION_RUN}}
|
|
65
66
|
|
|
66
67
|
{{ANTHROPIC_AUTH_SETUP_CONDITIONAL}}
|
|
67
68
|
|
|
@@ -155,7 +155,8 @@ jobs:
|
|
|
155
155
|
{{TOOLCHAIN_STEPS}}
|
|
156
156
|
- name: Provision environment
|
|
157
157
|
if: steps.resolve.outputs.run == 'true'
|
|
158
|
-
run:
|
|
158
|
+
run: |
|
|
159
|
+
{{PROVISION_RUN}}
|
|
159
160
|
|
|
160
161
|
- name: Install pinned Codex CLI
|
|
161
162
|
if: steps.resolve.outputs.run == 'true'
|
|
@@ -186,7 +186,8 @@ jobs:
|
|
|
186
186
|
# cannot verify will defer; a provisioned one finishes.
|
|
187
187
|
- name: Provision environment
|
|
188
188
|
if: steps.requested-agent.outputs.run == 'true'
|
|
189
|
-
run:
|
|
189
|
+
run: |
|
|
190
|
+
{{PROVISION_RUN}}
|
|
190
191
|
|
|
191
192
|
- name: Capture /builder delivery baseline
|
|
192
193
|
id: builder-start
|