mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-04 04:07:20 +01:00
The owner's finding, 2026-11-06: every product installs the shared packages
and the text boxes people type in are still made by hand, with no microphone;
two comment systems were written in one week. This gives the two remaining
shapes of "a person types words" a component, so there is nothing to build
locally.
- DictationField: a labelled text area (or one line) with the composer's
microphone — Web Speech, the recording fallback, the take with its timer,
kept for a retry — appending to what is there; 16px, 44px targets.
Optional improve={{ run, suggestions }}: one tap or say/type what to change;
working, failure and Undo in words, the text untouched on failure. No model
call or prompt here; run is the app's.
- CommentThread: oldest first, the box is Composer, a transport the app
implements (post, optional remove), optimistic removal rolled back with a
message, a refused post keeps the draft, text not markup, a sign-in link
for a signed-out reader, times in a stated timeZone.
- VoiceBar/VoiceProblem are one implementation shared by Composer and the
field; Composer behaves as before.
- Styles after the ChatApp boundary: the embedded sheet keeps its budget.
- test/browser-field.mjs + fixture page; render tests; README; 0.23.0.
verify: format, lint, typecheck, build, 142 unit tests, and all five browser
suites (the four existing ones unchanged) pass.
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD
Co-authored-by: Claude <noreply@anthropic.com>
107 lines
3.0 KiB
JSON
107 lines
3.0 KiB
JSON
{
|
|
"name": "@bitbaum/chatkit",
|
|
"version": "0.23.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, and LLM markdown — 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"
|
|
],
|
|
"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"
|
|
],
|
|
"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"
|
|
},
|
|
"./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"
|
|
},
|
|
"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",
|
|
"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"
|
|
},
|
|
"devDependencies": {
|
|
"@bitbaum/design-tokens": "^1.5.2",
|
|
"@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.64.1",
|
|
"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"
|
|
},
|
|
"dependencies": {
|
|
"pdfjs-dist": "^6.4.299"
|
|
}
|
|
}
|