Skip to content

feat(hosted): hostedTenantFromEnv — env→HostedTenant for selfImprove (0.83.0)#227

Merged
drewstone merged 1 commit into
mainfrom
feat/hosted-tenant-from-env
Jun 5, 2026
Merged

feat(hosted): hostedTenantFromEnv — env→HostedTenant for selfImprove (0.83.0)#227
drewstone merged 1 commit into
mainfrom
feat/hosted-tenant-from-env

Conversation

@drewstone
Copy link
Copy Markdown
Contributor

The last ergonomic that makes selfImprove a complete one-call surface for a product upgrade. selfImprove takes a HostedTenant config; products read hosted config from env. hostedClientFromEnv had the env→tenant logic but returns a client, not the config. Extract hostedTenantFromEnv (and hostedClientFromEnv now composes it — DRY), so a product passes hostedTenant: hostedTenantFromEnv({ tenantId }) when collapsing its loop onto selfImprove, instead of hand-rolling the env map.

Fails soft (undefined) when unconfigured — hosted ingest stays off until the env is set.

  • pnpm test1895 passed (+4: tenant-from-env, fail-soft, overrides-win, client-composes-it)
  • Additive on /hosted; hostedClientFromEnv behavior unchanged
  • Also genericizes the 0.81.0 changelog entry

Release 0.83.0 (lockstep). Tag v0.83.0 publishes.

selfImprove takes a HostedTenant config; products read hosted config from env.
hostedClientFromEnv already had the env→tenant logic but returns a client, not
the config. Extract hostedTenantFromEnv (hostedClientFromEnv now composes it) so
a product passes hostedTenant: hostedTenantFromEnv({ tenantId }) when collapsing
its loop onto selfImprove — instead of hand-rolling the env map. Fails soft
(undefined) when unconfigured.

chore(release): 0.83.0 (lockstep). Also genericize the 0.81.0 changelog entry.
Copy link
Copy Markdown
Contributor

@tangletools tangletools left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DRY env→tenant helper; hostedClientFromEnv composes it; fails soft. 1895 green. Approving.

@drewstone drewstone merged commit dd2ed73 into main Jun 5, 2026
1 check passed
@drewstone drewstone deleted the feat/hosted-tenant-from-env branch June 5, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants