feat: implement @flint/adapter-openai-compat + v1.0 milestones#2
Merged
Conversation
…, handle error events
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…treaming usage values Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Ignore stray landlord job output dirs in biome.json - Suppress noDefaultExport in VitePress config (framework requires it) - Replace unnecessary continue, non-null assertions, and bracket literals - Auto-fix import ordering and formatting across landlord + openai-compat - Extract byRole.get() to local variable in resolveOrder to avoid unsafe optional chain Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
@flint/adapter-openai-compat:call(),stream()(SSE with error-event handling, buffer flush, tool call delta accumulation), message normalization for all Flint content types, HTTP/network error propagation viaAdapterError. 31 tests passing.flintsubpaths,docs/STABILITY.mdsemver policy,BREAKING_CHANGES.md..github/workflows/publish.yml), npm version + CI badges in README.docs/index.md, anddocs/adapters/openai-compat.md.Test Plan
pnpm test(flint: 263, adapter-openai-compat: 31, adapter-anthropic: 25, graph: 19, landlord: 39)pnpm typecheckpnpm buildflint, addNPM_TOKENsecret, runpnpm changesetfor v1.0.0, merge the Changesets "Version Packages" PR to trigger publishv1.0.0viagh release createNotes
adapter-openai-compatomitscountfrom the adapter object;flint'scount()primitive falls back toapproxCountautomatically (same pattern asadapter-anthropic)'stop_sequence'is intentionally absent — OpenAI collapses stop-sequence and natural end intofinish_reason: 'stop'; narrowed return type documents this🤖 Generated with Claude Code