Files
ai-kit/package.json
T
0b6df336d8 feat!: 1.0.0 — so a caret range can finally do its job (#46)
Eleven repos depend on this package and they sit on five different versions,
from 0.6.2 to 0.15.0, while the registry serves 0.16.0 to none of them. That is
not neglect and the automation is not broken.

A caret range on a pre-1.0 version does not cross a minor: `^0.13.0` means at
least 0.13.0 and below 0.14.0, because semver treats a 0.x minor as breaking.
Dependabot runs weekly in every one of those repos, correctly classifies each
0.x minor as a breaking change, and correctly routes it to its own pull request
for a human to read. That is the right policy for a breaking change and the
wrong outcome for a package whose minors have been additive in practice. The
version numbering defeated the process.

1.0.0 ends it by construction. Afterwards `^1.x` admits every later minor,
Dependabot groups them with the routine bumps, and CI is the gate that makes
taking them safe rather than brave.

No code changes. The surface is byte-identical to 0.16.0 — this release exists
to change what a range means, and bundling behaviour into it would make the one
upgrade everybody must eyeball harder to eyeball.

The upgrade TO 1.0.0 is a real one for old consumers: coming from 0.6.x crosses
ten minors of a package that was permitted to break at each. Each repo runs its
own suite. That cost is paid once.

README gains a Versioning section stating the promise from here (minors
additive, majors carry a migration note) and the rule that keeps drift
uninteresting: perishable data — model ids rot in weeks — stays in the
environment and in live catalogue fetches, never in a release.


Claude-Session: https://claude.ai/code/session_01CAfKwM1oUSA9tU9fgdhfdf

Co-authored-by: Cato <georgy.butaev@revamp-it.ch>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 09:01:31 -07:00

109 lines
3.0 KiB
JSON

{
"name": "@bitbaum/ai-kit",
"version": "1.0.0",
"description": "One install for the AI layer of an app: which model to call, what to do when the vendor retires it, how to walk the fallback chain and know when none of it worked, how to read the three kinds of 429, a fair daily budget across users, headless AI form filling \u2014 and now the model registry (one SSOT for every callable id, with the paid/free boundary as a field) and the grounding harness (facts, contract, deterministic fabrication check).",
"license": "MIT",
"author": "Mao Nakamoto",
"homepage": "https://github.com/bitbaum/ai-kit#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/bitbaum/ai-kit.git"
},
"bugs": {
"url": "https://github.com/bitbaum/ai-kit/issues"
},
"keywords": [
"ai",
"llm",
"form-fill",
"fallback",
"failover",
"health-check",
"free-tier",
"rate-limit",
"quota",
"fair-share",
"groq",
"openrouter"
],
"type": "module",
"sideEffects": false,
"packageManager": "pnpm@11.25.0",
"engines": {
"node": ">=20"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"files": [
"dist",
"dist-cjs",
"src"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./forms": {
"types": "./dist/forms.d.ts",
"default": "./dist/forms.js"
},
"./react": {
"types": "./dist/react.d.ts",
"default": "./dist/react.js"
},
"./server": {
"types": "./dist/server.d.ts",
"default": "./dist/server.js"
},
"./registry": {
"types": "./dist/registry.d.ts",
"require": "./dist-cjs/registry.js",
"default": "./dist/registry.js"
},
"./web": {
"types": "./dist/web/index.d.ts",
"default": "./dist/web/index.js"
},
"./grounding": {
"types": "./dist/grounding/index.d.ts",
"require": "./dist-cjs/grounding/index.js",
"default": "./dist/grounding/index.js"
}
},
"scripts": {
"build": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json && node -e \"require('fs').writeFileSync('dist-cjs/package.json', JSON.stringify({type:'commonjs'})+'\\n')\"",
"lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "node --test test/*.test.js",
"check:catalog": "pnpm run build && node scripts/check-catalog.mjs",
"smoke": "pnpm run build && node scripts/smoke.mjs",
"verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run build && pnpm test",
"prepare": "pnpm run build",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^26.4.1",
"eslint": "^10.9.1",
"globals": "^17.12.0",
"prettier": "3.9.6",
"typescript": "^6.0.3",
"typescript-eslint": "^8.69.0"
},
"dependencies": {
"ai-forms": "^0.1.2"
},
"peerDependencies": {
"react": ">=18"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
}
}