mirror of
https://github.com/bitbaum/ai-kit.git
synced 2026-12-04 05:30:38 +01:00
The owner of this fleet read the name `ai-ration` and could not tell what the package did. That is not a cosmetic complaint. An unreadable name is a cost paid at every install decision, and this package had exactly ONE adopter while five repos that skipped it — botsmann, evig, kivvi, orangecat, truthseeker — were all taken down together on 2026-08-26 by a retired model id, which is precisely the failure `chain` and `catalog` exist to prevent. "Ration" named one of five modules and hid the other four. Renamed, and widened to match how an app actually thinks about this. Adding an AI feature looks like one decision and is really four — which model, is it still there, what do the 429s mean, who gets the free tier — plus filling forms. Get any one wrong and it fails identically from outside: the assistant is broken. AOZ is the proof: it adopted the form half, hand-rolled the rest because that was a second decision nobody made, and then reported "KI-Assistent nicht konfiguriert" on a deployment whose key was valid. So `ai-forms` is re-exported from the root and from ./forms, ./react and ./server. It is NOT absorbed: it works, four apps run it, and it is genuinely useful outside this fleet. Swallowing it would break four repos to satisfy a filing system. React stays on its own subpath as an optional peer so importing ai-kit on a server never pulls in a UI library. threadkit and limitkit are deliberately NOT merged. Neither has anything to do with AI — an app throttling its login form should not install a model catalogue to do it. Four new tests cover the merge itself, because the merge IS the feature: without them a broken re-export quietly turns this back into ai-ration under a friendlier name and nothing else here would notice. BREAKING CHANGE: the package is now `ai-kit`. Import from 'ai-kit'. The GitHub repo is renamed; existing `github:maonakamoto/ai-ration` installs continue to resolve through GitHub's redirect. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
11 lines
498 B
TypeScript
11 lines
498 B
TypeScript
/**
|
|
* The form-assist route factory, re-exported from `ai-forms/server`.
|
|
*
|
|
* This is the piece that explains the fleet's adoption numbers. `ai-forms` is
|
|
* the most-adopted shared package here, and it is also the only one that ships
|
|
* real machinery rather than decisions alone — AOZ imports this factory and the
|
|
* React hook, and nothing else. A package that hands you a working route gets
|
|
* installed; one that hands you advice about routes does not.
|
|
*/
|
|
export * from "ai-forms/server";
|