refactor(kernel)!: rename @e2e-dev/integrations to @e2e-dev/kernel
Merged
OK
2mo ago+65+65+01234567890123456789-78-78-01234567890123456789
What and why
@e2e-dev/integrations/kernelbecomes its own package,@e2e-dev/kernel. Integrations are now one package per hosted service, named after the service, the same way@e2e-dev/githubalready 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/integrationsis renamed topackages/kernelandsrc/kernel/*moves up intosrc/. The package has only the root.export.@onkernel/sdkand@e2e-dev/webgo from optional to required peers.- The two pending changesets now target
@e2e-dev/kernel.@e2e-dev/integrationshas 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/integrationsto 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/kernelinto a scratch project in/tmpand installed@onkernel/sdk@0.113.0andplaywright. The config usesimport { kernel } from '@e2e-dev/kernel'. import('@e2e-dev/kernel')exports[ 'kernel' ].@e2e-dev/kernel/kernelfails withERR_PACKAGE_PATH_NOT_EXPORTED.- With no API key set,
npx e2e run tests/home.e2e.tsloads 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_KEYon 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/**/*.mdxpage for the behavior, andskills/e2e/if the skill describes it. - Contract change: emitted
.d.tsreviewed,tests/types/sdk-types.tsupdated; wire change edits the schema and both fixtures. - Engine contract change (
e2e/engine): changesets fore2e,@e2e-dev/web, and@e2e-dev/mobile.