Skip to content
Merged
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
44 changes: 44 additions & 0 deletions .rwx/dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# RWX ad-hoc dispatch triggers (dormant until dispatched via UI/API/CLI).
# Proves the wave-ci rwx-dispatch path end to end without touching push CI.
on:
cli:
init:
commit-sha: ${{ event.git.sha }}
environment: trial
dispatch:
- key: wave-cli-verify
params:
- key: environment
name: Environment label
description: Free-form label recorded in the run title only. No deploys.
default: trial
required: false
init:
commit-sha: ${{ event.git.sha }}
environment: ${{ event.dispatch.params.environment }}

base:
image: ubuntu:24.04
config: rwx/base 1.2.0

tasks:
- key: code
call: git/clone 2.1.0
with:
repository: https://github.com/wave-av/cli.git
ref: ${{ init.commit-sha }}
github-token: ${{ github.token }}

- key: node
call: nodejs/install 1.2.0
with:
node-version: "22.23.2"

- key: verify
use: [code, node]
run: |
npm ci --no-audit --no-fund

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: If the RWX base environment omits dev dependencies, this install cannot run the advertised checks reliably: tsc is missing and npx may fetch an unpinned Vitest. Use npm ci --include=dev --no-audit --no-fund so type-check and tests always use the locked dev toolchain.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .rwx/dispatch.yml, line 40:

<comment>If the RWX base environment omits dev dependencies, this install cannot run the advertised checks reliably: `tsc` is missing and `npx` may fetch an unpinned Vitest. Use `npm ci --include=dev --no-audit --no-fund` so type-check and tests always use the locked dev toolchain.</comment>

<file context>
@@ -0,0 +1,44 @@
+  - key: verify
+    use: [code, node]
+    run: |
+      npm ci --no-audit --no-fund
+      npm run type-check
+      npx vitest run
</file context>
Suggested change
npm ci --no-audit --no-fund
npm ci --include=dev --no-audit --no-fund

npm run type-check
npx vitest run
env:
DISPATCH_ENV: ${{ init.environment }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: Dispatching an environment value does not put it in the run title: this mapping only exports it as unused DISPATCH_ENV, and the dispatch trigger defines no title. Add a dispatch-level title: wave-cli-verify (${{ init.environment }}) and remove or consume the unused environment export.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .rwx/dispatch.yml, line 44:

<comment>Dispatching an `environment` value does not put it in the run title: this mapping only exports it as unused `DISPATCH_ENV`, and the dispatch trigger defines no `title`. Add a dispatch-level `title: wave-cli-verify (${{ init.environment }})` and remove or consume the unused environment export.</comment>

<file context>
@@ -0,0 +1,44 @@
+      npm run type-check
+      npx vitest run
+    env:
+      DISPATCH_ENV: ${{ init.environment }}
</file context>

1 change: 1 addition & 0 deletions capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"billing",
"captions",
"chapters",
"ci",
"clip",
"collab",
"completion",
Expand Down
Loading