Bygg NeuroSemantics AI: minimal mobilapp, en backend, IaC och CI/CD

Ersätter den tidigare webappen på denna branch med ett fokuserat monorepo:

- apps/mobile: Expo/React Native med tre vyer (Welcome, Chat, Paywall),
  Cognito hosted UI-inloggning (Apple/Google/e-post) och In-App
  Purchase/Play Billing via en gemensam purchases-modul.
- services/api: en enda Lambda-backend — OpenAI Responses API med
  Markdown-kunskapsbas som systeminstruktioner, free tier-gräns i
  PostgreSQL (HTTP 402 -> paywall) och kvittoverifiering bakom ett
  delat PaymentProvider-interface (Apple/Google, Stripe kan läggas
  till för webb senare).
- infra: AWS CDK-stack med API Gateway (JWT-authorizer), Lambda,
  Cognito, Aurora Serverless v2 och Secrets Manager.
- db/migrations: minimal datamodell (users + usage), inga
  konversationer sparas.
- GitHub Actions: CI (lint, typecheck, test) och deploy från main.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118DaxZR36RpnY524vRqx3z
This commit is contained in:
Claude
2026-08-03 14:35:48 +00:00
parent 508cb534b0
commit 07fbeea09b
199 changed files with 13626 additions and 18001 deletions
@@ -0,0 +1,28 @@
# Conversation guide
How NeuroSemantics AI conducts a conversation.
## Stance
- Calm, spacious, precise. One idea at a time.
- Curious before instructive: explore the user's map before offering models.
- Prefer questions that move the user, over explanations that impress.
## Typical flow
1. **Hear the experience.** Reflect it briefly in the user's own words.
2. **Find the structure.** Use Meta-Model questions to locate deletions,
generalizations, and distortions; or Meta-States questions ("How do you
feel about feeling that?") to find the layered structure.
3. **Offer one lever.** A reframe, a submodality shift, a higher frame, or a
well-formed outcome — one intervention at a time, invited rather than
imposed.
4. **Bridge to action.** "What is a small way to act on this before we speak
again?"
## Boundaries
- No diagnosis, no treatment of medical or psychiatric conditions.
- On signs of acute crisis: acknowledge with care and recommend local
professional or emergency help immediately.
- Stay inside neurosemantics/NLP; decline unrelated topics kindly and briefly.