Skip to content

feat: TanStack AI adapter + API hygiene (minimal exports + drift gates)#43

Merged
bendersej merged 11 commits into
mainfrom
tanstack-tool-calling
Jun 30, 2026
Merged

feat: TanStack AI adapter + API hygiene (minimal exports + drift gates)#43
bendersej merged 11 commits into
mainfrom
tanstack-tool-calling

Conversation

@bendersej

@bendersej bendersej commented Jun 29, 2026

Copy link
Copy Markdown
Member

Summary

  • TanStack AI adapter (@simplepdf/embed/tanstack-ai + react /tanstack-ai) alongside the Vercel /ai-sdk adapter, on the same SDK-agnostic core. Names match the /ai-sdk convention (differentiated by import path); server tool-definitions stay in the React-free core.
  • Strict-minimum public exports: the react root no longer export *s the core or the wire-protocol vocabulary; dropped unused internal helpers (buildEditorDomain, encodeContext, isBridgeResultLike) and the INTERNAL_PROTOCOL leak. Copilot migrated to the core in lockstep.
  • Drift gates: expectTypeOf type-stability assertions (checked by tsc) + an api-extractor API-surface gate (committed etc/*.api.md reports, CI-enforced; UPDATE_API_SNAPSHOT=1 to re-bless an intentional change). @microsoft/api-extractor is a devDependency only.

Versions

@simplepdf/embed: minor. @simplepdf/react-embed-pdf: minor (the /ai-sdk server-defs re-export removal is technically breaking, but the only consumer is copilot, updated in lockstep, so it ships as a minor).

Notes

The top-level product-copy update (advertising the agentic capability in llms.ts) is SimplePDF/simple-pdf#295.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 29, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
simplepdf-webhooks 48e3c7c Commit Preview URL

Branch Preview URL
Jun 30 2026, 07:43 AM

@bendersej bendersej force-pushed the tanstack-tool-calling branch from af3d664 to fb5be50 Compare June 29, 2026 14:33
@bendersej bendersej changed the title feat: TanStack AI adapter for client-side tool calling (/tanstack-ai) feat: TanStack AI adapter + API hygiene (minimal exports + drift gates) Jun 29, 2026
@bendersej bendersej merged commit e91b4c7 into main Jun 30, 2026
4 checks passed
@bendersej bendersej deleted the tanstack-tool-calling branch June 30, 2026 08:22
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