Patch Changes
-
443482a: Prepare the agents server and server conformance test packages for public npm publication.
The agents server package now publishes its Drizzle migration files alongside the built entrypoints so installed servers can run database migrations outside the monorepo.
-
08e85a0: Refactor agents-server HTTP routing around a single
globalRouterentrypoint passed a flatTenantContext.The
ElectricAgentsServerclass now owns lifecycle setup only and dispatches each request through an OSS-only wrapper router that layers dashboard and mock-agent routes overglobalRouter.fetch(request, tenantContext). This prepares the exportedglobalRouterfor library-mode use by callers that build tenant context outside the OSS server class without pulling in the bundled UI or mock agent.Breaking change: entity RPC URLs moved from
/:type/:instanceId/...to/_electric/entities/:type/:instanceId/.... This affects entity spawn/get/head/delete, send, fork, tag, and schedule endpoints. The root namespace is now durable-streams pass-through, with no reserved entity control routes.Breaking change: the
@electric-ax/agents-serverpackage root now only exports the library-mode routing assembly surface: DB setup helpers,AgentsHost,StreamClient,globalRouter,TenantContext,GlobalRoutes,EntityBridgeCoordinator, and tenant helpers. OSS server classes, subrouters, entity-manager internals, scheduler/wake-registry internals, schema helpers, and entity response helpers are no longer root exports.The runtime server client, bundled agents-server UI, and conformance tests have been updated for the new route layout. Agents-server control-plane routes now use shared TypeBox/Ajv body validation.