5 Commits
Author SHA1 Message Date
CatoandClaude a44fb929bd feat(auth): every way in on AccountKit's own screens (#655)
/auth/login, /auth/register and /auth/forgot-password are AccountKit's
forms: password, passkey, an email sign-in link, recovery, Sign in with
OrangeCat and the shared bitbaum sign-in, each when its env is set.
/dashboard/security carries AccountKit's account panel (password,
passkeys, two-step sign-in, linked sign-ins, deletion). compat passes
screens: 'accountkit' (AccountKit 0.20).

AccountKit is the only credential writer. evig's /api/auth/register,
forgot-password, reset-password and verify-email and
/api/user/change-password are removed: they shadowed AccountKit's
endpoints of the same names. Kept, as AccountKit hooks or evig's own code:
the per-account lockout, the 6-digit address code (it replaces
AccountKit's confirmation mail), IT-Hilfe's claim link (now an AccountKit
reset token, old links honoured), the team invitation claim, the HR hire,
staff permissions and referral credit. Deletion is refused for a super
admin and for a person on kept records.

Migration 143 (additive, idempotent) makes the panel's rename and
deletion reach users. The e2e job imports the seeded accounts before the
journeys and runs a browser journey through every method, with mail
caught by a sink.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 01:39:27 +01:00
CatoandClaude Opus 5.5 acc2353a2f docs: regenerate API docs, archive dated records, fix live docs (#574)
* docs: regenerate API documentation from src/app/api (329 routes)

The generator only recognised `export async function GET`, so every route
exported as a guarded const (`export const GET = withAdmin(...)`) or a
destructured re-export was missing: the doc listed 116 endpoints, many of
them since renamed or removed, against 329 route files today. Teach it the
other two export shapes and the withAuth/withAdmin guards, and regenerate
both copies.

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

* docs: archive dated audits, compliance trackers and migration proposals

Moves point-in-time records into docs/archive/ (with a README saying they
describe the day they were written): the 2026-01 dev-guide compliance
plan, codebase audit, DRY/SSOT and Phase 1 fix logs, the 2026-02 overnight
cross-project plan, the 2026-07-02 audit report, the 2026-07-06 Shopware
migration plan and system migration strategy, and CODE_AUDIT.md.

CODE_AUDIT.md was listed in .claude/CLAUDE.md, .gemini/GEMINI.md and
docs/README.md as the current list of issues to fix while its own banner
called it a historical snapshot; those entries now point at
docs/AUDIT_BACKLOG_2026-08.md, the list of findings still open. docs/README
also stops linking api/, legacy/ and reference/, which do not exist.

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

* docs: archive closed trackers and docs for removed code

Into docs/archive/: ARCHITECTURE_DEBT (status CLOSED 2026-06-30),
DATABASE_AUDIT (Neon, pre-cutover), UPGRADE_PLAN (2026-06-03 snapshot;
Tailwind 4 and React 19 are done), MIGRATION_PLAN_QQQ5 and
PROFILES_SSOT_PLAN (both executed: migrations 105 and 121/122),
production-ready-checklist (Frauenfeld plan that never shipped), and three
docs whose code is gone: PROJECT_PAGES_GUIDE (src/components/projects and
the per-project pages, now one [slug] route), RevampCopilot (no
src/features/chatbot) and projects/upcycling (the /projects/upcycling
pages and businessPlan messages are no longer in the tree).

Inbound references follow the move, including three code comments.
SHARED_CONTEXT and COMMANDS stop describing the upcycling mini-site as
live; COMMANDS drops db:migrate-users, which is not a script.

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

* docs: correct live docs against the tree

- BLOG_SYSTEM: rewritten from the code. There is no TinaCMS and no
  content/submissions; posts merge content/posts/*.md with blog_posts, and
  submissions are blog_submissions rows reviewed by staff.
- installation guide: rewritten. There is no cms-api, no
  docker-compose.dev.yml and no default admin password; setup is
  services:up, db:migrate, setup-admins, dev.
- RELIABILITY: migration 005b (not 005), no ENABLE_CMS gate, prod facts.
- RESPONSIVE_DESIGN_SYSTEM: ResponsiveSection/Hero/Heading were removed;
  document Section, PageHero and Heading instead.
- DEAD_CODE: the /api/repairers and /api/it-hilfe/helpers proxies and the
  routes.helpers alias are deleted, not 410; fix a stale line range.
- DEV_GUIDE, AGENTS, claude/cursor/gemini guides, .cursorrules:
  DEVELOPMENT_GUIDELINES.md never existed here; protected files are in
  .claude/CLAUDE.md. src/config/site.ts -> org.ts/urls.ts; Next.js 16.
- src/middleware.ts -> src/proxy.ts; components/ui/Button.tsx ->
  src/components/ui/button.tsx; reference page paths.
- docs-paths baseline 68 -> 6, as the check asks when the count falls.

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

* docs: fix dead links in package and example READMEs

ai-native-cms-core linked a Next.js plugin, a CLI and docs/quick-start.md
that do not exist in this repo; ai-native-cms-react has no README; the
saldo README pointed at the repo root instead of the implementation in
src/lib/team/saldo.ts.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 14:10:38 +02:00
Cato 6c94ad5f25 Stop briefing agents with retired Revamp-IT facts. (#560)
Staff is the is_staff column, and production is one app on Hetzner. The agent brief, the auth doc, and the generated API page still said otherwise, so the next session kept reopening closed work. lint:claims fails the build if those sentences come back.
2026-10-14 05:23:24 -07:00
g-butandClaude Opus 4.6 3419caaa69 docs: update all documentation and configuration for post-Medusa architecture
Remove all Medusa-specific documentation (MEDUSA_*.md, SETUP_*.md,
README_MEDUSA.md, AI_AGENT_QUICK_REFERENCE.md, REVAMPIT_SHOP_*.md).
Update remaining docs, README, AGENTS.md, CLAUDE.md, env examples,
sitemap, and agent config files to reflect the simplified architecture
without Medusa dependency. Replace Medusa.js with WooCommerce in
service offerings documentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 11:44:25 +01:00
g-butandClaude Opus 4.5 ba9970d23c feat: Add HIRN AI RAG system with multi-provider support
Implements a complete RAG (Retrieval-Augmented Generation) system for
the admin dashboard with:

Core RAG Engine:
- Document ingestion with smart chunking (preserves complete functions/classes)
- pgvector-based semantic search with HNSW index
- Ollama embeddings (nomic-embed-text, 768 dimensions)
- Automatic content hashing for change detection

Multi-Provider AI Support:
- Ollama (local, default)
- Groq, OpenAI, Anthropic, Google, xAI, OpenRouter
- Per-user provider preferences stored in database
- Fallback chain for reliability

Auto-Documentation:
- Database schema extraction and indexing (62 tables)
- API route auto-documentation (116 endpoints)
- Generated docs stored in docs/ for reference

Admin Interface:
- Chat UI with context display
- Provider selector with API key management
- Document browser and stats
- Conversation history

Scripts:
- hirn-ingest.ts: Main document ingestion
- hirn-ingest-schema.ts: Database schema ingestion
- hirn-ingest-api-routes.ts: API documentation generator
- test-hirn-retrieval.ts: Retrieval testing
- test-hirn-chat.ts: Chat pipeline testing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 01:50:20 +01:00