Skip to content

feat(server): add backward-compatible unified client - #1301

Closed
AbhinRustagi wants to merge 6 commits into
mainfrom
codex/server-client
Closed

AbhinRustagi wants to merge 6 commits into
mainfrom
codex/server-client

Conversation

@AbhinRustagi

@AbhinRustagi AbhinRustagi commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Adds a single createClient() entry point from @openuidev/server, defaulting to THESYS_API_KEY, with an optional baseUrl. The client exposes completed-output Autofix as openUIClient.autofix.fix({ library, generation, messages, signal }), Completions streaming and persistence under openUIClient.openai.completions, and AI SDK streaming under openUIClient.vercel.ai.

Library specs are supplied per operation and cached by identity. Published standalone helpers retain their signatures and behavior. The client factory is exported as createClient from the package root. Existing Completions persistence is reused; this change adds no storage adapters.

First of two stacked PRs: unified client → Autofix adapters (#1231). Example migration (#1311) and tool execution (#1302) are separate PRs outside the stack.

Validation: existing package tests, typecheck, lint, formatting, build, and package export/type checks pass. The installed consumer app passes 63 contract checks, including 39 production HTTP requests for Autofix and Completions persistence. Checks cover the reviewed input names and namespaces, custom baseUrl routing, all five Autofix adapters, published helper compatibility, storage readback/pagination, and cleanup.

@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
openui-docs Skipped Skipped Oct 7, 2026 8:46am UTC

Request Review

@AbhinRustagi AbhinRustagi changed the title feat: add OpenUI Server Client feat(server): migrate utilities to server clients Oct 5, 2026
@AbhinRustagi
AbhinRustagi added this pull request to stack #1303 October 5, 2026 11:42
@AbhinRustagi
AbhinRustagi removed this pull request from stack #1303 October 6, 2026 09:30
@AbhinRustagi AbhinRustagi changed the title feat(server): migrate utilities to server clients feat(server): add backward-compatible unified client Oct 6, 2026
@AbhinRustagi
AbhinRustagi added this pull request to stack #1309 October 6, 2026 09:31
@AbhinRustagi
AbhinRustagi removed this pull request from stack #1309 October 7, 2026 07:02
@AbhinRustagi
AbhinRustagi added this pull request to stack #1310 October 7, 2026 07:03
Comment thread docs/content/docs/api-reference/index.mdx Outdated
Comment thread docs/content/docs/api-reference/server.mdx Outdated
Comment thread docs/content/docs/api-reference/server.mdx Outdated
Comment thread docs/content/docs/api-reference/server.mdx
Comment thread docs/content/docs/api-reference/server.mdx Outdated
Comment thread docs/content/docs/api-reference/server.mdx Outdated
Comment thread docs/content/docs/api-reference/server.mdx Outdated
Comment thread docs/content/docs/api-reference/server.mdx Outdated
Comment thread docs/content/docs/api-reference/server.mdx Outdated
Comment thread docs/content/docs/autofix.mdx Outdated
@AbhinRustagi
AbhinRustagi removed this pull request from stack #1310 October 7, 2026 08:07
@AbhinRustagi
AbhinRustagi added this pull request to stack #1313 October 7, 2026 08:07
@AbhinRustagi
AbhinRustagi marked this pull request as ready for review October 7, 2026 08:08
Comment thread packages/server/README.md Outdated

This branch was previously deployed

1 inactive deployment
Preview — 2fa840cb Deployed Oct 7, 2026 by vercel[bot]
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