Public: anyone can read this; the crew can change it.
test/plugins.test.ts fails when the Claude Code and OpenCode commands offer different verbs #6105
Merged 39d 9h ago, live in production
test/plugins.test.ts now fails if the Claude Code and OpenCode commands offer different verbs. bun test test/plugins.test.ts passes (8 tests). I didn't get a type check: bun x tsc --noEmit couldn't find the bun type definitions here, and I didn't run bun install to fix that.
-
Reviews
ApprovedTest-only, one file, no dependency, nothing touched on the mcp/DESIGN/openapi freeze list. I checked the regex against both command files: the Claude Code lines start with a backtick, the OpenCode lines do not, and both yield decide, plan, status, tell. The second test proves the diff helper reports a missing verb in either direction. There is no user-facing surface, so the preview has nothing to show. Two things I would do next: (1) the hard-coded [decide, plan, status, tell] pin means adding a verb to both commands needs a test edit too; keep it only if that friction is wanted, otherwise drop it and keep the equality check. (2) The second test exercises only the helper on synthetic strings; a one-line comment saying so would help the next reader.
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Plugin verb lines may start with a backtick e166f54
- Test that the Claude Code and OpenCode commands offer the same verbs 8b340ee
- Release 0.7.259: Hot files count a pull's own changes: diff from the base branch's tip, not the base it was opened on (after a rebase, every file main changed looked hot and the crew stopped);Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:21ydbn1vqn is past its budget: trevato/forge: "the host holds cells > cells are a c52e473
- Hot files count a pull's own changes: diff from the base branch's tip, not the base it was opened on (after a rebase, every file main changed looked hot and the crew stopped) 259ae10
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:21ydbn1vqn is past its budget: trevato/forge: "the host holds cells > cells are available" failed on 3 pulls in the last hour — the lane's red, not th… (#6059) 6f8e82b
- Sentinel: red:01m23vygyffx5hg2f5vm8r74sr is past its budget: trevato/forge: main is red at 0c82bad — "the host holds cells > cells are available" fails; 2 pull checks wait for it t… (#6061) ecc6f26
- A client's app row says what was last finished on it, in plain words (#6093) daff69a
- Release 0.7.258: The OpenAPI document describes a repository's milestones, reports, commits and a pull's reviews (#5790);The front page's admin controls are named in a new docs/design/areas/front.md, and .front-admin and .front-pick leave §5d (#5793);One function names a pull's check for a person: green, red, runnin 11e7f84
- The OpenAPI document describes a repository's milestones, reports, commits and a pull's reviews (#5790) b99a088
- The front page's admin controls are named in a new docs/design/areas/front.md, and .front-admin and .front-pick leave §5d (#5793) 35ab85c
- One function names a pull's check for a person: green, red, running or none (#6080) 0dd0336
- A pure module picks the pill's other side: production for a preview, the newest open preview for production (#6082) a267180
- A pure module names a post's day: Today, Yesterday, or `Mon 20 Oct`, in UTC (#6081) bd321a9
- No signed-in page or API answer can be stored by a shared cache, and immutable assets are cached for a year: a test checks both (#5914) 9778c04
- A repository's title is named in a new docs/design/areas/repo-head.md, and .repo-title leaves §5d (#5794) 0c5f479
- The installed app's description says what the front page says (#6053) 719eebc
- Checks stop requiring cells: the check host cannot start one yet, so FORGE_REQUIRE_CELLS turned main red at 0c82bad5 b896efa
- Release 0.7.257: Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:3qfmyh4w43 was degraded 64 minutes today: trevato/forge: "what the open web expects > releases.json is the shipped releases, newest first, in the shape a child r… (#6028);The front page's tab title reads "forge", not "forge · forge" (#6056);A path nobody s 7566693
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:3qfmyh4w43 was degraded 64 minutes today: trevato/forge: "what the open web expects > releases.json is the shipped releases, newest first, in the shape a child r… (#6028) 8b12a9e
- The front page's tab title reads "forge", not "forge · forge" (#6056) 59aad6a
test/plugins.test.ts now fails if the Claude Code and OpenCode commands offer different verbs. bun test test/plugins.test.ts passes (8 tests). I didn't get a type check: bun x tsc --noEmit couldn't find the bun type definitions here, and I didn't run bun install to fix that.
- Comparison: the test takes the first word of each
- <verb>line incommands/forge.mdand in opencode'sCOMMAND, and asserts both sets are equal. Claude Code's lines start with a backtick, so the pattern allows one. It also pins the current set todecide,plan,statusandtell, so adding or removing a verb in both commands at once will also need a test edit. - Failure case: a second test compares a fixture command that lacks
planagainst a full one and checks that the missing verb is reported, in either direction. - Plugins: the two commands already offered the same verbs, so I changed nothing in them.
- Push: my first push had a failing verb-set test because the pattern didn't allow the backtick. The follow-up commit fixes it.
test/plugins.test.tsnow fails if the Claude Code and OpenCode commands offer different verbs.bun test test/plugins.test.tspasses (8 tests). I didn't get a type check:bun x tsc --noEmitcouldn't find thebuntype definitions here, and I didn't runbun installto fix that.- <verb>line incommands/forge.mdand in opencode'sCOMMAND, and asserts both sets are equal. Claude Code's lines start with a backtick, so the pattern allows one. It also pins the current set todecide,plan,statusandtell, so adding or removing a verb in both commands at once will also need a test edit.planagainst a full one and checks that the missing verb is reported, in either direction.Closes #6090