refactor(kernel)!: rename @e2e-dev/integrations to @e2e-dev/kernel

Merged
OK
2mo ago
+65-78

What and why

  • @e2e-dev/integrations/kernel becomes its own package, @e2e-dev/kernel. Integrations are now one package per hosted service, named after the service, the same way @e2e-dev/github already works.
  • Each package can make its vendor SDK and engine required peers. Before, one package held every integration, so every SDK had to be an optional peer that nothing checks at install time.
  • Each service gets its own version and changelog, so a breaking change in one integration doesn't bump the others.
  • packages/integrations is renamed to packages/kernel and src/kernel/* moves up into src/. The package has only the root . export.
  • @onkernel/sdk and @e2e-dev/web go from optional to required peers.
  • The two pending changesets now target @e2e-dev/kernel. @e2e-dev/integrations has only been published as a canary, so no stable release is affected.
  • AGENTS.md documents the one-package-per-service rule and adds @e2e-dev/integrations to the retired names.
- npm install --save-dev @e2e-dev/integrations @onkernel/sdk
- import { kernel } from '@e2e-dev/integrations/kernel';
+ npm install --save-dev @e2e-dev/kernel @onkernel/sdk
+ import { kernel } from '@e2e-dev/kernel';

After the first @e2e-dev/kernel publish, deprecate the canary by hand: npm deprecate @e2e-dev/integrations "moved to @e2e-dev/kernel".

Verified

Ran it locally: yes

  • Packed e2e, @e2e-dev/web, and @e2e-dev/kernel into a scratch project in /tmp and installed @onkernel/sdk@0.113.0 and playwright. The config uses import { kernel } from '@e2e-dev/kernel'.
  • import('@e2e-dev/kernel') exports [ 'kernel' ]. @e2e-dev/kernel/kernel fails with ERR_PACKAGE_PATH_NOT_EXPORTED.
  • With no API key set, npx e2e run tests/home.e2e.ts loads the config and reaches the provider:
    ERROR  infrastructure error ENGINE_FAILURE (launch)
    browser provider "kernel" could not lease a browser: KERNEL_API_KEY is not set while preparing engine web for target "kernel"
    
  • Not run against a live Kernel browser: no KERNEL_API_KEY on this machine. Only paths and exports changed; provider code is untouched.

Checklist

  • Changeset added (pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only.
  • Breaking change: title carries !, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md). N/A for the warning window: the old name only ever shipped as a canary.
  • Docs updated in the same PR: the docs/**/*.mdx page for the behavior, and skills/e2e/ if the skill describes it.
  • Contract change: emitted .d.ts reviewed, tests/types/sdk-types.ts updated; wire change edits the schema and both fixtures.
  • Engine contract change (e2e/engine): changesets for e2e, @e2e-dev/web, and @e2e-dev/mobile.

Devin Review