Skip to content

refactor!: trim the barrel and deprecate the 0.1 provider id - #15

Merged
TheGreatAxios merged 1 commit into
cl-9317-openai-responses-extract-stream-parsing-intofrom
cl-9211-openai-responses-export-one-plain-factory-and-one-provider
Sep 27, 2026
Merged

TheGreatAxios merged 1 commit into
cl-9317-openai-responses-extract-stream-parsing-intofrom
cl-9211-openai-responses-export-one-plain-factory-and-one-provider

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The barrel exports createOpenAIResponsesAdapter, responsesAdapterFactory, responsesAdapterFactories, ResponsesQuirks, ResponsesHooks, OPENAI_RESPONSES_PROVIDER and OPENAI_COMPATIBLE_RESPONSES_PROVIDER.
  • OPENAI_COMPATIBLE_RESPONSES_PROVIDER is marked @deprecated (removed in 0.3.0). responsesAdapterFactories maps both ids to createOpenAIResponsesAdapter, so sources stored under openai-compatible-responses resolve and run with no host change.
  • isResponsesStreamTerminal leaves the public surface; the terminal check stays wired into the adapter.
  • An e2e test runs a source with the old provider id through responsesAdapterFactories and runInference.
  • Bumps the version to 0.2.0: removing a public export is breaking.
  • Stacked on refactor: extract stream parsing into its own protocol module #14.

Verification

  • bun run check (typecheck, lint, format, 40 pass, 2 skip) and bun run build pass.

Closes CL-9211
Closes CL-9214

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed origin/main..HEAD. Public surface matches the intent; no stale references to removed exports remain (grep clean outside the internal definition). check and build pass. No outstanding findings.

@TheGreatAxios
TheGreatAxios force-pushed the cl-9211-openai-responses-export-one-plain-factory-and-one-provider branch from bd94054 to c9e112f Compare September 25, 2026 13:50
@TheGreatAxios
TheGreatAxios changed the base branch from main to cl-9317-openai-responses-extract-stream-parsing-into September 25, 2026 13:50
@TheGreatAxios
TheGreatAxios force-pushed the cl-9211-openai-responses-export-one-plain-factory-and-one-provider branch 3 times, most recently from ebb27bc to 7901989 Compare September 25, 2026 22:48
Drop isResponsesStreamTerminal from the package surface; the terminal
check stays wired into the adapter. OPENAI_COMPATIBLE_RESPONSES_PROVIDER
stays exported, marked deprecated for removal in 0.3.0, and
responsesAdapterFactories keeps mapping both ids to
createOpenAIResponsesAdapter, so stored 0.1 sources resolve with no host
change. An e2e test runs a source under the old id through that record.
Removing a public export is breaking, so the version moves to 0.2.0.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9211-openai-responses-export-one-plain-factory-and-one-provider branch from 7901989 to e063e9e Compare September 26, 2026 01:33
@TheGreatAxios TheGreatAxios changed the title Export one plain factory and one provider id refactor!: trim the barrel and deprecate the 0.1 provider id Sep 26, 2026
@TheGreatAxios
TheGreatAxios added this pull request to stack #19 September 26, 2026 01:58
@TheGreatAxios
TheGreatAxios merged commit 0394d11 into main Sep 27, 2026
1 check 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