[codex] Polish app-server APIs and examples - #9
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Polishes
codex-jsas a Codex-aligned SDK and replaces the old examples with a canonical local Node example plus a by-the-book Cloudflare Worker + Durable Object + Vite React example.What Changed
@jrkropp/codex-js/server:createCodexAppServercreateCodexAppServerConnectiondefineDynamicTooldefineDynamicToolsetdynamicToolResponsebespoke_event_handlingterminology toapp_server_event_mapping.examples/node-local: local Vite + Node WebSocket app-server example.examples/cloudflare: Vite React + Cloudflare Worker + Durable Object example with one-time WebSocket tickets, SQLite-backed thread state, hibernating WebSockets, and dynamic tools..dev.varslocally,wrangler secret putfor deploys, generated Worker types, andsecrets.requiredin Wrangler config.0.3.0for the pre-1.0 API/example polish release.Validation
pnpm checkpnpm release:preflightNPM_TOKEN=local-preflight pnpm release:preflightpnpm --filter @jrkropp/codex-js-cloudflare-example cf:types:checkpnpm --filter @jrkropp/codex-js-cloudflare-example typecheckpnpm --filter @jrkropp/codex-js-cloudflare-example testpnpm --filter @jrkropp/codex-js-cloudflare-example deploy:dry-runRelease Notes
No changeset file is included because package versions are already set to
0.3.0and both published npm packages are currently below that version. The main release workflow should publish@jrkropp/codex-js@0.3.0and@jrkropp/codex-js-react@0.3.0directly after this lands.