Skip to content

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

Draft
AbhinRustagi wants to merge 1 commit into
mainfrom
codex/server-client
Draft

AbhinRustagi wants to merge 1 commit 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. The client exposes completed-output Autofix as client.autofix.fix({ library, response, messages, signal }), Completions streaming and persistence under client.completions, and AI SDK streaming under client.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 three dependent PRs: unified client → Autofix adapters (#1231) → tool executor (#1302).

Validation: existing package tests, typecheck, lint, formatting, and build pass. Inline mocked checks cover configuration, lazy library initialization, completed-output repair, Completions persistence, and legacy helper signatures/error behavior. No new test files.

@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
openui-docs Ready Ready Preview Oct 6, 2026 9:40am 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

This branch was successfully deployed

1 active deployment
Preview — 0193db39 Deployed Oct 6, 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.

1 participant