@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theagilemonkeys/facility",
3
- "version": "0.11.2",
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: {{PROVISION_CMD}}
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: {{PROVISION_CMD}}
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: {{PROVISION_CMD}}
189
+ run: |
190
+ {{PROVISION_RUN}}
190
191
 
191
192
  - name: Capture /builder delivery baseline
192
193
  id: builder-start
@@ -109,7 +109,8 @@ jobs:
109
109
  # The doctor verifies before pushing, so it gets the same provisioned
110
110
  # world as the crew.
111
111
  - name: Provision environment
112
- run: {{PROVISION_CMD}}
112
+ run: |
113
+ {{PROVISION_RUN}}
113
114
 
114
115
  {{ANTHROPIC_AUTH_SETUP}}
115
116
 
@@ -48,7 +48,8 @@ jobs:
48
48
  {{TOOLCHAIN_STEPS_CONDITIONAL}}
49
49
  - name: Provision environment
50
50
  if: steps.workflow-change.outputs.changed != 'true'
51
- run: {{PROVISION_CMD}}
51
+ run: |
52
+ {{PROVISION_RUN}}
52
53
 
53
54
  - name: Capture review baseline
54
55
  id: review-start