Skip to content

refactor(synapse): adopt the shared @omnidotdev/providers/ai client - #11

Merged
coopbri merged 1 commit into
masterfrom
feat/adopt-shared-synapse-client
Nov 2, 2026
Merged

coopbri merged 1 commit into
masterfrom
feat/adopt-shared-synapse-client

Conversation

@coopbri

@coopbri coopbri commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Description

Replaces facet-api's hand-rolled Synapse /v1/messages client with the fleet's shared createSynapseClient (@omnidotdev/providers/ai, added in providers #37), so the request/parse logic lives in one place. The local lib/synapse/client.ts is now a thin binding (Facet config → shared client) that preserves the callSynapse(input, options?) surface, so the generate route and the per-user-key provisioner path are unchanged.

Bumps the @omnidotdev/providers git pin from #5909b95 to #f381fbc (the commit that ships /ai). The 2-month delta touches billing/ and auth/, which facet-api uses, so this was done carefully: tsc, the full 70-test suite (credit store + auth guards + generate route), knip, and build are all green against the bump — billing/auth usage is unaffected at the type and test level.

Testing

  • bunx tsc --noEmit: clean (verifies the providers delta is type-compatible)
  • bun test: 70 pass
  • bun biome check, bun knip, bun run build: green

Replace facet-api's hand-rolled Synapse /v1/messages client with the fleet's
shared createSynapseClient, so the request/parse logic lives in one place. The
local module is now a thin binding over it (Facet config -> client) that
preserves the callSynapse(input, options?) surface, so the generate route and
the per-user-key provisioner path are unchanged. Bump the @omnidotdev/providers
git pin to the commit that ships the /ai module; tsc, the full 70-test suite,
knip, and build are green against the bump (billing/auth usage unaffected).
@coopbri
coopbri merged commit 905541d into master Nov 2, 2026
3 checks passed
@coopbri
coopbri deleted the feat/adopt-shared-synapse-client branch November 2, 2026 20:08
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant