Files
CatoandClaude Opus 5.5 b53e721fb9 refactor(voice): retire own mic hooks for chatkit; chatkit ^0.45.0 (#1739)
* refactor(voice): retire own mic hooks for chatkit Composer and DictationField

The project card's box is chatkit's Composer (through Loki's wrapper); the
project brief and the command palette are DictationField. The microphone
is now the fleet's: retry of a failed take, browser fallback, problems in
words. Deletes use-whisper-mic, use-mic-composer and use-voice-input, and
the dead transcription-polling branch (the route only returns { text }).

use-voice-conversation stays until chatkit's useVoiceMode can end a turn
on a pause with the server leg, speak unasked lines, barge in by voice,
re-arm on silence and expose the input level.

Site template synced from fleet templates/app main (chatkit ^0.44.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(deps): raise @bitbaum/chatkit to ^0.45.0

DictationField fits any form from 0.45 (controlled, uncontrolled,
react-hook-form). Loki's fields stay controlled; typecheck, lint, the
design check and the composer tests pass unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(widget): chat chunk budget 43 KB for chatkit 0.45

Measured: 42.01 KB gzipped on chatkit 0.42, 42.55 KB on 0.45. The
budget already sat at the old size, so the bump rounded over it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-30 19:41:39 +01:00
..

TITLE

Beta — running, not released.

Run it

pnpm install
cp .env.example .env.local   # fill in DATABASE_URL at least
pnpm run db:migrate          # create the tables
pnpm dev                     # http://localhost:3000

pnpm run verify is the definition of done: format, lint, typecheck, unit tests and a production build. pnpm run test:integration drives sign-up and sign-in against a real Postgres (DATABASE_URL must name a *_test database — the suite recreates its schema).

What is already here

  • Accounts — email and password (with email confirmation when mail is configured), a sign-in link by email, passkeys, two-factor codes, and "Continue with" buttons for the shared bitbaum sign-in and for OrangeCat, each shown only when configured. Roles: customer, helper, professional, staff, admin.
  • Three languages — English, German and French under /en, /de, /fr.
  • Security — a nonce-based Content-Security-Policy, HSTS, no framing, no referrer, camera/microphone/location/payment switched off; rate limits on every sign-in path; provider tokens never stored; secrets sealed at rest.
  • A model — POST /api/ai through @bitbaum/ai-kit, on the shared free chain or the person's own key (Account → Your own model).
  • /api/health — green only when the database answers and accounts work.
  • Roadmap and changelog at /roadmap and /changelog, from ROADMAP.md and CHANGELOG.md via Loki's fleet map.

The environment the app reads is documented in .env.example.

Deploy

Push to main deploys through Loki's shared self-host workflow (.github/workflows/deploy.yml — the only file that knows about our infrastructure). After each deploy, live-check.yml checks the live site from outside.

Made from bitbaum/fleet templates/app. MIT licensed.

Shared building blocks

Review package-plan.json before adding a feature. The root layout composes sitekit chrome, accountkit owns account behavior and screens, and bip-kit renders the journal plus roadmap/changelog. Chat surfaces use chatkit's shared composer and thread through components/chat/SharedChat.tsx. Publish real journal entries as reviewed Markdown in content/blog; drafts stay excluded by bip-kit. Empty records say they are empty. Shared package composition CI checks actual adoption and the release-to-dependency-update-to-deployment path.