Files
chatkit/package.json
T
CatoandClaude e669991a4f fix(replies): a heading the model writes over the reply buttons is never drawn (0.15.1) (#29)
Models end answers with their own "**Quick follow-up options**" (or
"Suggested replies", "Mögliche Rückfragen:", ...) right above the
quick_replies block; drawn over chatkit's buttons it reads as an empty
section (live on substrata.orangecat.ch).

- extractReplies drops the last block before the replies when it is a
  heading or a bold/italic-only line of at most six words with no sentence
  punctuation but a closing colon, plus an adjacent --- rule. Shape and
  position, no word list, so every language. A bold sentence stays.
- Streaming ({ streaming: true }, passed by ChatThread) holds back a last
  line that could still become such a label, so it never flashes.
- dropReplyLabel is exported; ChatThread applies it to app-supplied replies.
- REPLIES_INSTRUCTION: no heading or label before the block.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 13:28:57 +02:00

96 lines
2.6 KiB
JSON

{
"name": "@bitbaum/chatkit",
"version": "0.15.1",
"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, and LLM markdown \u2014 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"
],
"type": "module",
"sideEffects": [
"*.css"
],
"packageManager": "pnpm@11.25.0",
"engines": {
"node": ">=20"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"files": [
"dist",
"bin",
"styles.css"
],
"bin": {
"chatkit-check-file-inputs": "./bin/chatkit-check-file-inputs.mjs"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./react": {
"types": "./dist/react/index.d.ts",
"default": "./dist/react/index.js"
},
"./audit": {
"types": "./dist/audit.d.ts",
"default": "./dist/audit.js"
},
"./attach": {
"types": "./dist/react/attach.d.ts",
"default": "./dist/react/attach.js"
},
"./styles.css": "./styles.css"
},
"scripts": {
"build": "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",
"test:browser": "pnpm run demo && node test/browser.mjs"
},
"devDependencies": {
"@bitbaum/design-tokens": "^1.1.0",
"@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.63.0",
"prettier": "^3.9.6",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"typescript": "^6.0.3",
"typescript-eslint": "^8.68.0"
},
"peerDependencies": {
"react": ">=18"
}
}