Repository navigation
Make the ACP providers plugin forkable - #4200
Merged
SawyerHood merged 1 commit intoSep 23, 2026
Merged
Conversation
SawyerHood
force-pushed
the
bb/forkable-18-provider-acp
branch
from
September 23, 2026 17:53
8032177 to
e2c8fef
Compare
SawyerHood
force-pushed
the
bb/forkable-18-provider-acp
branch
from
September 23, 2026 20:40
e2c8fef to
c136231
Compare
SawyerHood
marked this pull request as ready for review
September 23, 2026 21:07
SawyerHood
force-pushed
the
bb/forkable-18-provider-acp
branch
from
September 23, 2026 21:31
c136231 to
bfef38f
Compare
provider-acp imports only the public SDK, but a copy of its directory still failed its tests: its vitest config imported the repository's vitest.shared.ts, and its tests load the SDK test harness, whose optional peers (better-sqlite3, cron-parser, hono) a fork installs without peer resolution. The config now uses defineConfig directly and the plugin declares what its tests load. The public-sdk-only test is gone: the lint rule and the fork check enforce the same boundary, and its check that @bb/plugin-build is a dev dependency fails in a copy, which drops it. tsconfig now covers server.test.ts. The plugin gets a lint script, and its turbo tasks depend on the SDK build. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood
force-pushed
the
bb/forkable-18-provider-acp
branch
from
September 23, 2026 22:10
bfef38f to
aacca1f
Compare
SawyerHood
added a commit
that referenced
this pull request
Sep 23, 2026
## Human comments ## What was wrong Second agent-provider PR in the forkable built-ins stack; it builds on #4200. `plugins/provider-pi` couldn't be copied out: - **App imports:** it imported `Button`, `cn`, and the question form host from `@bb/shared-ui`. - **Workspace test imports:** the delta translation test imported the assembler and `ThreadEvent` from workspace packages. - **Recordings:** the recorded-conformance test replays recordings committed under `packages/provider-bridge-protocol`. - **Lint:** 51 code comments. ## What changed - **App imports:** they go through the registry alias. The question form host comes from the registry flavor over `experimental_useQuestionFormHost` (#4181), so `engines.bbPluginSdk` rises to `>=0.5.22`. The SDK path entries are gone from the tsconfig. - **Test imports:** tests use `experimental_createDeltaAssembler` and `ThreadEvent` from `@get-bb/plugin-sdk/provider-bridge/testing`. - **Recorded conformance:** the test moves to `@bb/provider-parity`, and `docs/provider-bridge-protocol.md` says pi's replay lives there. `@bb/provider-parity#test` now takes `packages/plugin-sdk/src/**` and `packages/plugin-sdk/package.json` as inputs, because the replayed bridges load SDK sources. - **Config and lint:** `defineConfig`, declared peers, and turbo entries; the 51 comments are removed, and the README keeps what the fake pi's header and the Bun test explained. - **App test:** the test that checks pi's answer shortcuts loads the plugin by path under the app's own plugin runtime, because the SDK test runtime backs the question form host with an empty host. - **CI:** the Plugin Fork Check job installs Bun, as the packages test shard does, because a copy runs pi's Bun runtime regression, which requires Bun in CI. ## How you verified - `pnpm exec turbo run typecheck test lint --filter=bb-plugin-provider-pi`; a Bun-only case is skipped without Bun. - `pnpm check:plugin-forks plugins/provider-pi` passes in a copy. - `@bb/provider-parity`, including the moved recorded conformance and the pi parity replays; `apps/app/src/components/plugin` tests; and the server's first-party provider plugin tests. - **Turbo input:** without the new inputs, `turbo --dry=json` reported the same `@bb/provider-parity#test` hash after a change to an SDK source; with them, the hash changes. - **Bundle identity:** `app.css` is byte-identical. An unminified `app.js` differs only in the question-form-host source (the runtime shim became the SDK facade's hook, the same host context) and formatting. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
First of four agent-provider PRs at the top of the forkable built-ins stack; it builds on #4199.
plugins/provider-acpimports only the public SDK, but a copy of its directory failed its tests:vitest.shared.ts;better-sqlite3,cron-parser,hono) weren't declared, and the fork installs without peer resolution.What changed
defineConfig, declared test peers, a lint script, and a turbo test entry that depends on the SDK build. The tsconfig coversserver.test.ts.public-sdk-only.test.tsis gone. The lint rule and the fork check enforce the same boundary, and its dev-dependency assertion fails in a copy. The README now points at those checks.How you verified
pnpm exec turbo run typecheck test lint --filter=bb-plugin-provider-acp. Itsompnative-roots test needs a TMPDIR with no.agentsdirectory above it, as onmain.pnpm check:plugin-forks plugins/provider-acppasses in a copy.@bb/provider-parity(the parity replays of the acp-cursor recordings) and the native-roots golden tests.🤖 Generated with Claude Code