refactor(plugins): remove the version 1 provider plugin contract (#3759)

Merged
TH
3d ago
+679-1072

Summary

Part of #3759 (section 1). Removes the version 1 provider plugin contract from 0.22. 40 files: +679/−1072.

  • Deletes the v1 loader adapter, the manifest module, and the manifest-driven store branches. Discovery reads the ./agent-device export, else the root export; entry containment is kept.
  • Drops the manifest fallbacks from credential fingerprints and connect capabilities; both read the plugin inventory / primed registry only.
  • Drops install-time provider collision checks; the registry settles a duplicate id by first claim.
  • Removes the v1 build entry and agentDevicePlugin manifest from @agent-device/testmu and @agent-device/revyl; the publish guard now keys on the ./agent-device export.
  • Reduces the test-kit fixtures to v2 shapes and rewrites the affected tests. plugins.md carries the migration note; ADR 0034 states the current truth.

Validation

At head f27396742f (base 2b2eb83131, origin/0.22):

  • pnpm install --frozen-lockfile, pnpm build, pnpm format, pnpm check:quick, pnpm check:doc-prose: pass.
  • Focused vitest run --project unit-core over plugins, test-kit, provider packages, provider policy, connect, daemon composition, ADR guard: 637 tests pass.
  • fallow audit --base 2b2eb83131: pass; its one clone group is inherited (pre-existing proxy/tsdown duplication).
  • pnpm check:affected --run --full --base origin/0.22 --head f27396742f: passed, exactCommit: true, clean checkout; 41 checks passed, 25 skipped as GitHub-authoritative or parked workflow_dispatch lanes. Selection was fail-open (full set), not narrowed.

Limits

No v1 shims, compatibility fallbacks, or provider-name hacks. The v2 factory and ./agent-device contract, fixed plugin set, first-claim and error isolation are unchanged. No managed-client, ambient-SDK, BrowserStack or Maestro work here.