You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: make withPostgres/withClickHouse return pipe-compatible providers
Previously withPostgres and withClickHouse returned a Layer, requiring
callers to wrap every call site with Effect.provide(). They also accepted
(client, orgId, ...layers) which was hard to type correctly with variadic
layer arguments.
New signature: (layer, client, orgId?) => pipe-compatible function via
Effect.provide internally. Call sites can now use effect.pipe(withPostgres(...))
directly without the outer Effect.provide wrapper.
- Rename withClickHouse to the same shape as withPostgres
- Migrate all call sites in apps/web and apps/api to the new signature
- Consolidate auth functions to withPostgres instead of multiple
Effect.provide(RepositoryLive) + Effect.provide(SqlClientLive) chains
- Switch exchangeCliSession from adminClient to scoped postgresClient
since API key creation is org-scoped
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments