Catch up to pingdotgg/main (82a9bcc7), resolving 16 conflicts while
preserving the WSL parallel-backend feature set.
Upstream's codex wave normalized Effect services repo-wide: inlined
*Shape interfaces into Context.Service classes, converted errors to
Schema.TaggedErrorClass, switched to namespace imports, and split
make + layer. Our branch keeps DesktopBackendPool + a per-instance
factory (upstream's singleton DesktopBackendManager service does not
exist in this tree).
Resolutions:
- DesktopBackendManager.ts: kept ours (factory model; upstream's
singleton rewrite does not apply). Re-deleted the superseded
single-instance DesktopBackendOutputLog.ts and its test.
- DesktopObservability / DesktopBackendConfiguration /
DesktopLocalEnvironmentAuth / DesktopApp / DesktopWindow /
DesktopAppSettings: adopted upstream's normalized structure (inline
service shapes, TaggedErrorClass, make + layer, namespace imports,
DesktopShutdown module, OTLP tracing) while preserving our WSL
additions (per-instance log factory, pool-based bearer auth, splash
and handleBackendReady(httpBaseUrl), WSL settings methods).
- client-runtime EnvironmentRegistry: namespace imports + kept our
reconcilePlatform / registerPlatform / networkStatus.
- web primary environment: adopted upstream's Schema error classes;
kept PRIMARY_LOCAL_ENVIRONMENT_ID and the plural
getLocalEnvironmentBootstraps path.
- Tests: applied the repo-wide *Shape to X["Service"] removal across
desktop tests; converted singular getLocalEnvironmentBootstrap stubs
to our plural form; refreshed DesktopAppSettings stubs with the WSL
methods; restored our factory-based DesktopBackendManager test.
Verified: desktop + web + client-runtime typecheck clean; affected
desktop + web tests pass. The 15 remaining desktop test failures are
pre-existing Windows-only path-separator assertions (forward vs back
slash) and pass on the Linux CI.
Client Runtime
Shared client behavior for web and mobile. Public APIs are organized by package subpath. The package intentionally has no root export.
Public subpaths
| Subpath | Responsibility |
|---|---|
authorization |
Bearer and DPoP authorization plus token persistence contracts |
connection |
Targets, catalog, supervision, retries, registry, and onboarding |
environment |
Environment identity, descriptors, endpoints, and scoped keys |
errors |
Shared client error inspection |
operations |
Multi-step application workflows |
operations/projects |
Multi-step project creation workflows |
platform |
Platform capability and persistence service contracts |
relay |
Managed relay API and environment discovery |
rpc |
HTTP/RPC clients, protocol, sessions, and subscriptions |
state/<domain> |
Focused shared state, retention, reducers, and Atom constructors |
Dependency direction
Platform applications provide platform services. connection composes those
capabilities with authorization, relay, and rpc to supervise environment
sessions. Independent state modules consume the connection registry and expose
focused state or Atom constructors to application-owned runtimes.
Applications should import the narrowest relevant subpath. There is no broad
state export: use domain paths such as state/shell, state/threads,
state/terminal, or state/vcs. Subpath indices and explicitly exported domain
files are public API boundaries; all other files remain implementation details.