@plainconceptsplatform/workflows 0.28.23 → 0.28.25

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.
@@ -112,10 +112,16 @@ for (const file of readdirSync(workflowDirectory)) {
112
112
  }
113
113
  const patched = content
114
114
  .replace(/^(# This file was automatically generated by gh-aw[^\n]*\n)/m, `$1${SENTINEL}\n`)
115
- .replaceAll("opencode run --print-logs --log-level DEBUG", "opencode run --log-level INFO")
116
- .replaceAll("opencode run --print-logs --log-level INFO", "opencode run --log-level INFO")
117
- .replaceAll("opencode run --log-level ERROR", "opencode run --log-level INFO")
118
- .replaceAll("--log-level DEBUG", "--log-level INFO")
115
+ // The engine command is normalized to one shape:
116
+ // - OPENCODE_DISABLE_MODELS_FETCH=1: opencode otherwise fetches its model
117
+ // registry from https://models.opencode.ai/api.json at startup and blocks
118
+ // bootstrap on it. Inside the awf sandbox that host is not on the egress
119
+ // allowlist, so the fetch hangs and every agent run stalls right after
120
+ // "init" until the runner kills it. The forge provider declares its models
121
+ // explicitly, so the remote registry is not needed here.
122
+ // - --print-logs + a non-silent level: stripping --print-logs and forcing
123
+ // ERROR hid every engine log, so a stalled bootstrap looked like silence.
124
+ .replace(/opencode run(?: --print-logs)? --log-level (?:DEBUG|ERROR|INFO)/g, "OPENCODE_DISABLE_MODELS_FETCH=1 opencode run --print-logs --log-level INFO")
119
125
  .replace(/GH_AW_INFO_MODEL: "[^"]*"/g, 'GH_AW_INFO_MODEL: "per-agent"')
120
126
  .replace(/OPENCODE_MODEL: [^\n]+/g, "OPENCODE_MODEL: ''")
121
127
  .replace(/GH_AW_INFO_MODEL_COSTS: '[^']*'/g, 'GH_AW_INFO_MODEL_COSTS: \'{"providers":{}}\'')
@@ -6,6 +6,10 @@ network:
6
6
  allowed:
7
7
  - defaults
8
8
  - forge.plainconcepts.com
9
+ # opencode fetches its model registry from models.opencode.ai at startup; without
10
+ # this host on the allowlist the fetch blocks bootstrap and the run stalls after
11
+ # "init" until the runner kills it. The apex "opencode.ai" is not enough.
12
+ - models.opencode.ai
9
13
  - node
10
14
  - github
11
15
  - dotnet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plainconceptsplatform/workflows",
3
- "version": "0.28.23",
3
+ "version": "0.28.25",
4
4
  "description": "Install and update Platform GitHub agentic workflows.",
5
5
  "keywords": [
6
6
  "github-actions",