Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/opencode2-real-adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
paths:
- "src/source/opencode2/**"
- "scripts/fixtures/opencode2-real-adapter-probe.js"
- "scripts/opencode2-loop-status-canary.mjs"
- ".github/workflows/opencode2-real-adapter.yml"
push:
branches: [main]
paths:
- "src/source/opencode2/**"
- "scripts/fixtures/opencode2-real-adapter-probe.js"
- "scripts/opencode2-loop-status-canary.mjs"
- ".github/workflows/opencode2-real-adapter.yml"

permissions:
Expand All @@ -19,7 +21,7 @@ permissions:
jobs:
adapter:
runs-on: ubuntu-latest
timeout-minutes: 10
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -66,10 +68,10 @@ jobs:
if [ -f "$OPENCODE_LOOP_V2_MARKER" ]; then
cat "$OPENCODE_LOOP_V2_MARKER"
node -e 'const fs=require("node:fs"); const value=JSON.parse(fs.readFileSync(process.argv[1],"utf8")); if(value.id!=="bybrawe.opencode-loop.v2.experimental" || value.activated!==true || value.commandTransform!==true || value.eventSubscribe!==true || value.sessionPrompt!==true) process.exit(1)' "$OPENCODE_LOOP_V2_MARKER"
exit 0
break
fi
sleep 0.2
done
cat "$RUNNER_TEMP/opencode2-real-command.json" >&2 || true
cat "$RUNNER_TEMP/opencode2-real-plugin.json" >&2 || true
exit 1
test -f "$OPENCODE_LOOP_V2_MARKER"
- name: Run real V2 loop status canary
run: node scripts/opencode2-loop-status-canary.mjs
10 changes: 10 additions & 0 deletions .github/workflows/v2-lifecycle-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
- "scripts/v2-event-stream-contract-test.mjs"
- "scripts/v2-host-contract-test.mjs"
- "scripts/v2-plugin-sentinel-test.mjs"
- "scripts/v2-runtime-adapter-test.mjs"
- "scripts/v2-loop-status-test.mjs"
- ".github/workflows/v2-lifecycle-contract.yml"
push:
branches: [main]
Expand All @@ -19,6 +21,8 @@ on:
- "scripts/v2-event-stream-contract-test.mjs"
- "scripts/v2-host-contract-test.mjs"
- "scripts/v2-plugin-sentinel-test.mjs"
- "scripts/v2-runtime-adapter-test.mjs"
- "scripts/v2-loop-status-test.mjs"
- ".github/workflows/v2-lifecycle-contract.yml"

permissions:
Expand All @@ -43,11 +47,17 @@ jobs:
- run: npm ci
- run: node --check src/source/opencode2/event-bridge.js
- run: node --check src/source/opencode2/host-contract.js
- run: node --check src/source/opencode2/runtime-adapter.js
- run: node --check src/source/opencode2/status.js
- run: node --check src/source/opencode2/experimental.js
- run: node --check scripts/v2-event-bridge-test.mjs
- run: node --check scripts/v2-event-stream-contract-test.mjs
- run: node --check scripts/v2-host-contract-test.mjs
- run: node --check scripts/v2-runtime-adapter-test.mjs
- run: node --check scripts/v2-loop-status-test.mjs
- run: node scripts/v2-event-bridge-test.mjs
- run: node scripts/v2-event-stream-contract-test.mjs
- run: node scripts/v2-host-contract-test.mjs
- run: node scripts/v2-plugin-sentinel-test.mjs
- run: node scripts/v2-runtime-adapter-test.mjs
- run: node scripts/v2-loop-status-test.mjs
Loading
Loading