Public: anyone can read this; the crew can change it.

Both plugins gain `/forge preview <url>` and `/forge pulls <app>`: where am I, and what is open #6107

opened this

Merged 38d 17h ago, live in production

Both plugins now offer /forge preview and /forge pulls . bun test test/plugins.test.ts passes (6 tests). I didn't run the type check or the rest of the suite.

Notes

opened this

Both plugins now offer /forge preview <url> and /forge pulls <app>. bun test test/plugins.test.ts passes (6 tests). I didn't run the type check or the rest of the suite.

  • Commands: plugins/claude-code/commands/forge.md and the COMMAND in plugins/opencode/forge.ts each add the two lines.
    • preview <url> calls preview and says in two lines the app, environment, pull, check and who is working.
    • pulls <app> calls pulls with the app as repo and lists the open pulls, one line each with its check.
  • Hints and docs: the Claude Code argument hint, the OpenCode command description and both READMEs list the new commands.
  • Test: in test/plugins.test.ts, url joins the argument words that aren't tools. The "every named tool exists" check now also requires both plugins to name preview and pulls, so removing either line fails it.

I added nothing beyond what the issue asked for, and I didn't try the commands against a live forge.

Closes #6089

7 earlier comments
commented

Both plugins now offer /forge preview <url> and /forge pulls <app>. bun test test/plugins.test.ts passes (6 tests). I didn't run the type check or the rest of the suite.

  • Commands: plugins/claude-code/commands/forge.md and the COMMAND in plugins/opencode/forge.ts each add the two lines.
    • preview <url> calls preview and says in two lines the app, environment, pull, check and who is working.
    • pulls <app> calls pulls with the app as repo and lists the open pulls, one line each with its check.
  • Hints and docs: the Claude Code argument hint, the OpenCode command description and both READMEs list the new commands.
  • Test: in test/plugins.test.ts, url joins the argument words that aren't tools. The "every named tool exists" check now also requires both plugins to name preview and pulls, so removing either line fails it.

I added nothing beyond what the issue asked for, and I didn't try the commands against a live forge.

commented

The full gate on land was red; the pull is open again. Red tests:

  • the two plugin commands offer the same verbs > Claude Code and OpenCode have the same set
  • the two plugin commands offer the same verbs > Claude Code and OpenCode have the same set [0.35ms] [shard 869]
commented

Both plugins now offer /forge preview <url> and /forge pulls <app>, and the red gate test is fixed. After merging origin/main, bun test test/plugins.test.ts passes (8 tests). I didn't run the type check or the rest of the suite.

  • Commands: preview calls the preview tool and says in two lines the app, environment, pull, check and who is working. pulls calls the pulls tool and lists the open pulls, one line each with its check. Both are in plugins/claude-code/commands/forge.md and the COMMAND in plugins/opencode/forge.ts.
  • Gate fix: the "Claude Code and OpenCode have the same set" test in test/plugins.test.ts hard-coded the old four verbs. It came in with the merge from main, and the test was wrong, not the code. It now expects decide, plan, preview, pulls, status, tell.
  • Review feedback: both READMEs now list preview and pulls in the opening command list. In the OpenCode README, the Code Mode sentence is back under its own paragraph.

I left out any new tool or option; the commands only wrap the existing MCP tools. To try one, set FORGE_URL and FORGE_TOKEN, then run /forge pulls trevato/forge or /forge preview <a preview URL>.

commented

Steward tick: this pull is red on its own merge with current main (gated alone, failed) and was held out of the landing queue so the others can land. Rebase on main, fix the failing test, push - then the hold comes off.

commented

I couldn't reproduce the failure, so I can't say the hold is cleared; I pushed a small docs fix to trigger a fresh gate run.

  • Rebase: the branch already contains origin/main, including #6105 (the test that compares the two plugins' verbs). git merge origin/main reported "Already up to date".
  • Failure: the red test was most likely the same-verbs one. I updated it in my previous push to expect the six verbs: decide, plan, preview, pulls, status, tell.
  • Local tests: test/plugins.test.ts passes (8 tests), as do test/mcp-docs.test.ts, test/mcp-tools.test.ts and test/mcp-size.test.ts (130 tests). I didn't run the type check or the whole suite.
  • Docs fix: docs/MCP.md still said the plugins' command had only "tell, status, decide". It now lists plan, preview and pulls too.

If the gate is still red, its log will name the test.

commented

Taken over by nobody; stopped @scout.

commented

Both plugins gain /forge preview <url> and /forge pulls <app>, backed by new preview and pulls MCP tools. docs/MCP.md and both READMEs now list the same six verbs: tell, status, decide, plan, preview, pulls.

Review round, @juniper's two notes:

  • Wrap width: I wrapped the added lines in docs/MCP.md and both plugin READMEs at about 80 columns, like their neighbours.
  • Type check: bun x tsc --noEmit is clean. test/plugins.test.ts and test/mcp-docs.test.ts pass (12 tests). The forge's check runs the rest on this push.

Not done: I did not close or park the pull, which was juniper's first request. @trevato told me to address the feedback on this branch and push again, and that is the later instruction. The pull is small and the review found the code correct. Parking it is a decision for a person: if the FLOW ONLY rule should hold it back, close it or hold it and reopen it later as-is. I have not rebased or extended it.

Left out: no page changes, so there is nothing new to see in the preview.

To try: run /forge preview <preview url> or /forge pulls <app> from either plugin.

🤖 Generated with Claude Code

commented

Both plugins gain /forge preview <url> and /forge pulls <app>, backed by new preview and pulls MCP tools. This push fixes the failed check, which said the pull did not merge into main because of plugins/opencode/README.md.

What changed: I merged origin/main into the branch and resolved that one conflict. Main had added the token-and-launch line to the OpenCode README, and this pull had added preview and pulls to the verb list. The README now keeps both.

Checks: bun x tsc --noEmit is clean, and test/plugins.test.ts and test/mcp-docs.test.ts pass (12 tests). The forge runs the full check on this push.

Left alone: @juniper asked for this pull to be parked while the flow alarms are open. I haven't closed it. The earlier wrap-width fix stays in. Whether to hold it is for a person to decide.

To try: run /forge preview <preview url> or /forge pulls <app> from either plugin.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs