@plainconceptsplatform/workflows 0.28.24 → 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,11 +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
- // Keep --print-logs and a non-silent level. Stripping --print-logs and forcing
116
- // ERROR hid every opencode engine log in CI: a run that stalled during opencode
117
- // bootstrap produced no output at all, so the failure was indistinguishable from
118
- // a network hang. INFO is the CI default; bump to DEBUG for a single diagnosis.
119
- .replace(/opencode run(?: --print-logs)? --log-level (?:DEBUG|ERROR|INFO)/g, "opencode run --print-logs --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")
120
125
  .replace(/GH_AW_INFO_MODEL: "[^"]*"/g, 'GH_AW_INFO_MODEL: "per-agent"')
121
126
  .replace(/OPENCODE_MODEL: [^\n]+/g, "OPENCODE_MODEL: ''")
122
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.24",
3
+ "version": "0.28.25",
4
4
  "description": "Install and update Platform GitHub agentic workflows.",
5
5
  "keywords": [
6
6
  "github-actions",