13 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 ebe51fa38e feat(auth): every way in on AccountKit's own screens (#289)
* feat(auth): every way in on AccountKit's own screens

Botsmann signed people in against OrangeCat's GoTrue (auth.users). It now
runs on AccountKit (@bitbaum/accountkit 0.23) with AccountKit's own forms:
/auth/signin offers email and password, an emailed sign-in link, a
passkey, recovery through the mailed link and the second factor;
/auth/signup is sign-up; /account carries the account panel ("Sign-in and
security" in the account menu). "Continue with OrangeCat" and the shared
sign-in show when their clients are set, the link and recovery when mail
is. The GoTrue routes (/api/auth/signin, signup, forgot-password,
resend-verification, profile) and pages (callback, forgot-password,
reset-password, verify-email) and the cookie-session client are gone.

AccountKit's tables live in a host accounts database (drizzle/, loki
accounts-db.conf); the data stays in the botsmann supabase schema, which
every route already read with the service-role client. verifyUser now reads
AccountKit's session; /api/user/profile moves onto it too. New accounts get
uuid ids, and migration 013 drops the person columns' keys to auth.users,
which a new person's id is not in. Nothing is deleted. The profile editor
writes AccountKit's name and image.

Existing people keep their rows: scripts/db/accountkit-people.sql lists
everyone who owns rows with their OrangeCat actor id, and
scripts/db/accountkit-import.sql gives each an account under the same id,
linked to OrangeCat by that actor id, never by address (loki
accountkit-supabase.yml rehearses it rolled back, then imports).

Pages were served with public, max-age=3600 to every browser, account pages
included: after sign-out the browser showed its cached /account. /account
and /auth/* are now private, no-store. The account menu's trigger has a name.

tests/__tests__/accounts runs the ways in and the import on the committed
migration; browser-smoke.yml's account job rehearses the import and runs
the browser journey against the production build with AccountKit's real
mail caught by a sink.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* fix(auth): send a signed-out visitor to sign in with the router

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* ci(auth): the shared sign-in's button is matched by how it starts

AccountKit 0.24 names only the providers Morulia publishes, so the label
changes with Morulia.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* ci(auth): expect the shared sign-in only once Morulia publishes a provider

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* ci: run the checks on the journey change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 23:27:16 +01:00
CatoandClaude Fable 5.1 bade0a1b8e chore: rename FleetCrown to Loki (#197)
The product was renamed on 2026-09-14: bitbaum/loki, loki.orangecat.ch,
LOKI_* env keys, loki-* units. This repo referenced the old name in
15 files changed, 29 insertions(+), 29 deletions(-).
Email addresses at the old sending domain stay until the new domain is
verified in Resend.


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

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 16:23:24 -07:00
1632e8ed84 docs: sync docs with actual stack (#177)
Verified against package.json / .nvmrc / workflows / husky hooks on main:

- npm → pnpm everywhere (packageManager pnpm@11.25.0); build:ci described
  as `pnpm install --frozen-lockfile`, package-lock.json reference dropped
- Jest → Vitest (test runner is vitest 4)
- Stack tables: Next 14→16, React 18→19, TS 5→6, Tailwind 3→4, Zod 3→4;
  DaisyUI and Framer Motion rows removed (neither installed nor imported)
- Node.js 18+ → 24 (.nvmrc)
- Clone URLs: your-org / g-but → bitbaum
- SSOT.md pre-commit claim → actual husky hook (pnpm exec lint-staged)
- SHARED_CONTEXT deploy section: GitHub Actions now also deploys
  (deploy.yml → shared fleetcrown selfhost-deploy), not "CI only"
- .claude/CLAUDE.md path /home/g/botsmann → /home/g/dev/botsmann

docs/archive/** left untouched — dated historical reports.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 14:43:07 +00:00
Mao NakamotoandCursor b0ee824c2f docs: note FleetCrown widget token is a build-time env
Runtime-only .env after deploy does not emit the Script; CD must have the
token when Next builds.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 12:10:14 +02:00
GandClaude Opus 4.8 26b042cd86 chore(infra): remove Vercel references — self-hosted now (#120)
Botsmann now runs self-hosted on the Hetzner box "bitbaum" behind Caddy
(botsmann.orangecat.ch); Vercel is fully decommissioned.

- CI: rename the "Deploy to Vercel" workflow to a vendor-neutral CI workflow
  (build/lint/test only). Actual deploy runs from .husky/pre-push → Hetzner
  deploy script. Remove vercel.json and the Vercel-only deploy-monitor.sh.
- Docs: rewrite current-setup deploy/hosting text in .claude/CLAUDE.md,
  README badge, docs/COMMANDS.md and docs/SHARED_CONTEXT.md to the self-hosted
  box. Repoint the dead botsmann.vercel.app URL → botsmann.orangecat.ch.
- Code: neutralize "(Vercel)" route-segment comments; reword the warmup cron
  comment; update the demo page tech-stack line to self-hosted.
- Keep: secret-scan guardrail (VERCEL_OIDC_TOKEN) and `env -u VERCEL` in the
  husky hooks, the educational hosting-comparison page, historical docs/archive,
  and executive-docs business/finance planning material (see PR body).

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-28 09:23:49 +02:00
Mao NakamotoandClaude Opus 4.8 1cdbe7108c docs: reflect Next.js 16 / React 19 stack
The framework upgrade (#114) invalidated the stack claims in the live,
authoritative docs. Update them to Next.js 16 / React 19:
- .claude/CLAUDE.md (Overview + Tech Stack table)
- README.md (Frontend table + tree comment)
- docs/SHARED_CONTEXT.md (App Router heading)

Point-in-time/archival docs (audit reports, whitepaper, investor deck) are
left as-is — they were accurate when written. The Vercel/deployment line is
left to the concurrent chore/remove-vercel work.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-26 15:07:56 +02:00
Mao NakamotoandClaude Opus 4.8 1c962f6019 docs: deployment is self-hosted Hetzner, not Vercel
botsmann migrated off Vercel/Neon/Supabase-cloud on 2026-06-12
(commit e612331d). Correct the stale stack table line.

NOTE: vercel.json + scripts/deployment/deploy-monitor.sh + the
.vercel.app README badge + app-code VERCEL_URL refs left intact —
see PR description (vercel.json carries a live /api/rebuild cron that
needs an off-Vercel home before removal).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 20:43:59 +02:00
g-butandClaude Sonnet 4.6 aa515d3d89 chore: fix prettier formatting across 28 files
CI format:check was failing. Auto-formatted all files to match
Prettier config.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 09:45:47 +01:00
g-butandClaude Opus 4.6 2e2563dbb8 Rewrite README with multi-LLM routing and RAG architecture
Surface multi-provider strategy (Ollama/Groq/OpenRouter), 6 domain
professionals, RAG via pgvector with client-side embeddings, 4-layer
prompt injection defense, and custom bot creation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 08:32:21 +01:00
g-butandClaude Opus 4.6 2d5dc85501 refactor: remove dead code, archive historical docs, fix README
- Remove duplicate ApiResponse, apiSuccess, apiError, withErrorHandling,
  requireAuth, ERROR_MESSAGES from lib/api-utils.ts — only verifyUser
  was actually imported anywhere. Response utils SSOT is lib/api/responses.ts
- Archive 14 historical LEX-era design docs to docs/archive/ — docs/
  now has only 9 active reference files (down from 29)
- Remove mock data and placeholder images from Amazon/Ricardo platform
  integrations — functions return [] until real APIs are implemented
- Update platform tests to match actual behavior
- Fix README.md: update backend tech (Groq/OpenRouter), add Supabase
  to prerequisites

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 10:46:04 +01:00
g-butandClaude Opus 4.5 1291bbbb41 docs: update About page, README, and clean up stale documentation
- Rewrite About page with new "AI Professionals" positioning
- Add embodied AI future vision section
- Explain the problem we solve (accessible expert advice)
- Fix 'Artr' typo to 'Muse' in professionals.ts
- Update README with new positioning and professional table
- Delete stale planning docs:
  - .claude/BILLION_DOLLAR_STRATEGY.md
  - .claude/HONEST_REBUILD_PLAN.md
  - .claude/EXPERTISE_REFRESH_PLAN.md
  - .claude/FULL_SITE_AUDIT.md
  - .claude/THREE_TIER_ECOSYSTEM.md
  - .claude/SUPABASE_SETUP.md (duplicate)
  - @fix_plan.md (completed sprint)
  - docs/NAVIGATION_FIX_PLAN.md (completed)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 12:43:38 +01:00
Your Name 8a55e4fb9e feat: Complete deployment automation and modern design overhaul
- Fix header layout to prevent movement when megamenu opens
- Redesign homepage with modern, futuristic aesthetic
- Implement automated deployment with GitHub Actions
- Optimize build process for production deployment
- Add deployment monitoring and verification scripts
- Update README with comprehensive deployment documentation

Breaking changes:
- Header now uses fixed positioning with backdrop blur
- Homepage features gradient backgrounds and glassmorphism effects
- Automated CI/CD pipeline with comprehensive testing and monitoring
2025-10-02 23:46:03 +02:00
cato 0fac605421 Update Nerd AI Research Assistant components and documentation 2025-03-17 14:06:13 +01:00