Skip to content

Update lang-core & cli to move to spec generation#811

Merged
AbhinRustagi merged 19 commits into
mainfrom
abhin/th-2332-update-openuicli-generate-to-output-spec-prompt
Jul 24, 2026
Merged

Update lang-core & cli to move to spec generation#811
AbhinRustagi merged 19 commits into
mainfrom
abhin/th-2332-update-openuicli-generate-to-output-spec-prompt

Conversation

@AbhinRustagi

@AbhinRustagi AbhinRustagi commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Closes TH-2332

lang-core

  1. Deprecates the existing generateSystemPrompt(spec: PromptSpec) function in favour of a new generateSystemPrompt(spec: { library: LibrarySpec, promptOptions?: SystemPromptOptions }) function
    • The new function is overloaded which checks for both types and return the response accordingly.
    • The old version will be dropped in next major release
  2. Adds exports for the new types

CLI

  1. Changes the behaviour of the existing generate command to now output both the system prompt file (for backwards compatibility) and the spec file.
    • The output is generated by the generate-worker.ts now which joins the prompt & spec by a SEPARATION_DELIMITER which is split during the write or stdout.

react-lang

  1. Re-exports the new types from lang-core

docs

  1. Updated CLI API Reference
  2. Updated Guides that reference the old generatePrompt() or createResponsesInstructions() for @openuidev/thesys-server

@AbhinRustagi AbhinRustagi changed the title Abhin/th 2332 update openuicli generate to output spec prompt Update lang-core & cli to move to spec generation Jul 22, 2026
@AbhinRustagi
AbhinRustagi marked this pull request as ready for review July 22, 2026 17:22
abhithesys
abhithesys previously approved these changes Jul 24, 2026
…prompt' of github.com:thesysdev/openui into abhin/th-2332-update-openuicli-generate-to-output-spec-prompt
@AbhinRustagi
AbhinRustagi merged commit 269d259 into main Jul 24, 2026
23 checks passed
@AbhinRustagi
AbhinRustagi deleted the abhin/th-2332-update-openuicli-generate-to-output-spec-prompt branch July 24, 2026 14:32
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