Files
CatoandClaude 4a1af07415 ModelSheet and ModelChip; a failed turn can carry its way on (0.46.0) (#118)
The model button, the bring-your-own-key sheet and the link under a failed
turn ("Get a pass") were built in Heidi. They are the chat's experience, so
they belong here: ModelChip for the header, ModelSheet driven by the
product's vendor allowlist and key check, and ChatFailure.action/retry so a
transport can say what the reader can do next and when Retry cannot help.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 09:39:11 +01:00

120 lines
3.7 KiB
JSON

{
"name": "@bitbaum/chatkit",
"version": "0.46.0",
"description": "One chat for every product: a composer with a microphone that always works, a thread that does not fight the reader, messages with copy and retry, LLM markdown, and a messenger for people and the agents among them — the fleet's chat standard as a package.",
"license": "MIT",
"author": "Cato",
"homepage": "https://github.com/bitbaum/chatkit#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/bitbaum/chatkit.git"
},
"bugs": {
"url": "https://github.com/bitbaum/chatkit/issues"
},
"keywords": [
"chat",
"composer",
"voice",
"dictation",
"speech-to-text",
"markdown",
"react",
"ai",
"pdf",
"messenger",
"messaging",
"attachments"
],
"type": "module",
"sideEffects": [
"*.css"
],
"packageManager": "pnpm@11.25.0",
"engines": {
"node": ">=20"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"files": [
"dist",
"bin",
"styles.css",
"styles/chat.css",
"styles/messenger.css",
"styles/voice.css"
],
"bin": {
"chatkit-check-file-inputs": "./bin/chatkit-check-file-inputs.mjs",
"chatkit-copy-pdf-assets": "./bin/chatkit-copy-pdf-assets.mjs"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./react": {
"types": "./dist/react/index.d.ts",
"default": "./dist/react/index.js"
},
"./messenger": {
"types": "./dist/react/messenger.d.ts",
"default": "./dist/react/messenger.js"
},
"./audit": {
"types": "./dist/audit.d.ts",
"default": "./dist/audit.js"
},
"./attach": {
"types": "./dist/react/attach.d.ts",
"default": "./dist/react/attach.js"
},
"./pdf": {
"types": "./dist/pdf.d.ts",
"default": "./dist/pdf.js"
},
"./styles.css": "./styles.css",
"./styles/chat.css": "./styles/chat.css",
"./styles/messenger.css": "./styles/messenger.css",
"./styles/voice.css": "./styles/voice.css"
},
"scripts": {
"build": "node scripts/build-chat-css.mjs && rm -rf dist && tsc -p tsconfig.json",
"lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "node --test test/*.test.js",
"check:dist": "git diff --exit-code --stat -- dist",
"verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run build && pnpm test && pnpm run test:browser",
"format": "prettier --write .",
"format:check": "prettier --check .",
"demo": "esbuild demo/demo.tsx --bundle --jsx=automatic --format=iife --define:process.env.NODE_ENV='\"production\"' --outfile=demo/dist/demo.js --log-level=warning && esbuild demo/demo.tsx --bundle --jsx=automatic --format=iife --define:process.env.NODE_ENV='\"development\"' --outfile=demo/dist/demo-dev.js --log-level=warning",
"test:browser": "pnpm run demo && node test/browser.mjs && node test/browser-scroll.mjs && node test/browser-app.mjs && node test/browser-pdf.mjs && node test/browser-field.mjs && node test/browser-messenger.mjs && node test/browser-voice.mjs"
},
"devDependencies": {
"@bitbaum/design-tokens": "^1.7.1",
"@eslint/js": "^10.0.1",
"@types/node": "^26.4.0",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.3",
"esbuild": "^0.28.2",
"eslint": "^10.9.1",
"globals": "^17.11.0",
"playwright": "1.65.0",
"prettier": "^3.9.6",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"react-hook-form": "^7.92.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.68.0"
},
"peerDependencies": {
"react": ">=18"
},
"dependencies": {
"@bitbaum/threadkit": "^0.1.2",
"pdfjs-dist": "^6.4.299"
}
}