Skip to content

feat: implement @flint/adapter-openai-compat + v1.0 milestones#2

Merged
DizzyMii merged 12 commits into
mainfrom
feat/landlord
Apr 22, 2026
Merged

feat: implement @flint/adapter-openai-compat + v1.0 milestones#2
DizzyMii merged 12 commits into
mainfrom
feat/landlord

Conversation

@DizzyMii

@DizzyMii DizzyMii commented Apr 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Milestone 0.1 — Fully implements @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 via AdapterError. 31 tests passing.
  • Milestone 0.2 — API hardening: CI workflow (Node 20 + 22 matrix), exports integrity assertions for all flint subpaths, docs/STABILITY.md semver policy, BREAKING_CHANGES.md.
  • Milestone 0.3 — Publish infrastructure: Changesets publish workflow (.github/workflows/publish.yml), npm version + CI badges in README.
  • Milestone 1.0 prep — Removed all v0 warning language from README, docs/index.md, and docs/adapters/openai-compat.md.

Test Plan

  • All 377 tests pass: pnpm test (flint: 263, adapter-openai-compat: 31, adapter-anthropic: 25, graph: 19, landlord: 39)
  • Typecheck clean: pnpm typecheck
  • Build succeeds: pnpm build
  • Manual: create npm org flint, add NPM_TOKEN secret, run pnpm changeset for v1.0.0, merge the Changesets "Version Packages" PR to trigger publish
  • Post-publish: create GitHub Release v1.0.0 via gh release create

Notes

  • adapter-openai-compat omits count from the adapter object; flint's count() primitive falls back to approxCount automatically (same pattern as adapter-anthropic)
  • Stop reason 'stop_sequence' is intentionally absent — OpenAI collapses stop-sequence and natural end into finish_reason: 'stop'; narrowed return type documents this
  • Task 9 (GitHub Release) is post-publish and requires manual npm org setup first

🤖 Generated with Claude Code

DizzyMii and others added 12 commits April 22, 2026 10:22
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>
@DizzyMii DizzyMii merged commit c174bbc into main Apr 22, 2026
2 checks passed
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