text
stringlengths
3
8.33k
repo
stringclasses
52 values
path
stringlengths
6
141
language
stringclasses
35 values
sha
stringlengths
64
64
chunk_index
int32
0
273
n_tokens
int32
1
896
import React from "react"; import { AbsoluteFill, useCurrentFrame, interpolate } from "remotion"; interface SubtitleOverlayProps { text: string; } export const SubtitleOverlay: React.FC<SubtitleOverlayProps> = ({ text }) => { const frame = useCurrentFrame(); const opacity = interpolate(frame, [0, 5], [0, 1], {...
ai-video
templates/remotion-project/src/compositions/SubtitleOverlay.tsx
TypeScript
c4a2c3b9a8a9ad23ab99a735475210920e52e1962af760bd6dd91b83ce6b192a
0
234
import React from "react"; import { AbsoluteFill, Audio, Sequence } from "remotion"; import type { VideoAssemblyProps } from "../lib/props-schema"; import { getSegmentStartFrame } from "../lib/timing"; import { ClipSequence } from "./ClipSequence"; import { SubtitleOverlay } from "./SubtitleOverlay"; export const Vide...
ai-video
templates/remotion-project/src/compositions/VideoAssembly.tsx
TypeScript
d78c136bf911b531eafe340097224fc8969dc19c44daccddc2bd1f0519269e3b
0
308
import { z } from "zod"; export const SegmentSchema = z.object({ src: z.string(), durationFrames: z.number().positive(), trimStartFrames: z.number().nonnegative().default(0), trimEndFrames: z.number().nonnegative().default(8), }); export const SubtitleSchema = z.object({ text: z.string(), startFrame: z.nu...
ai-video
templates/remotion-project/src/lib/props-schema.ts
TypeScript
f2c07f34595844060e9d5b3f6d6ccc44f6607f146efeb460849ce99cdd30c9fb
0
287
export function secondsToFrames(seconds: number, fps: number): number { return Math.round(seconds * fps); } export function framesToSeconds(frames: number, fps: number): number { return frames / fps; } export function calculateTotalDuration( segments: { durationFrames: number; trimStartFrames: number; trimEndFr...
ai-video
templates/remotion-project/src/lib/timing.ts
TypeScript
bd7c5250ccc24f62fc36cea366ac404b7e99e4136ca999fc7ff8c5eab42ee091
0
270
{ "mode": "yolo", "depth": "standard", "parallelization": true, "commit_docs": true, "model_profile": "quality", "workflow": { "research": true, "plan_check": true, "verifier": true } }
asai
.planning/config.json
JSON
f9ed87bcaa598dccef0783ef5d44ed5d748f492bd98a4debabf004e6a028b66b
0
61
# ASAI KI-Lernplattform ## What This Is An interactive AI/ML education platform for German-speaking students aged 15-20 in the DACH region. Combines discovery-based learning, Socratic AI tutoring, and browser-based ML experimentation — all running offline-first on school Chromebooks with full EU compliance. ## Core ...
asai
.planning/PROJECT.md
Markdown
490f4543d3d60c7a647184029d6e4d03f6917a7828bbcb229c46b86b32131deb
0
896
---| | Bun + Elysia over Node + Express | Type-safe Eden client, faster runtime | — Pending | | Azure OpenAI EU over OpenAI US | DSGVO compliance requires EU data residency | — Pending | | JupyterLite over server-side Jupyter | Offline execution, no server costs per user | — Pending | | PWA over native apps | Chromeboo...
asai
.planning/PROJECT.md
Markdown
1b39c6695058df3a1e62e0f91985ed6fee814137948c5da2bc0ffac74f314488
1
155
# Requirements: ASAI KI-Lernplattform **Defined:** 2026-01-27 **Core Value:** Students can learn AI/ML concepts interactively through a Socratic AI tutor that guides without giving answers, while teachers maintain full oversight and override capability. ## v1 Requirements Requirements for pilot MVP release. Each map...
asai
.planning/REQUIREMENTS.md
Markdown
b405f677d7ff39906f4e5eb6dc64056db48baf1f32fea15724fbd09946f44aa2
0
896
*: User sees clear indicator of online/offline status - [ ] **OFLN-10**: Large assets (Pyodide ~180MB) load progressively ### LMS Integration - [ ] **LMS-01**: Platform registers as LTI 1.3 tool with Moodle - [ ] **LMS-02**: Platform registers as LTI 1.3 tool with Microsoft Teams - [ ] **LMS-03**: User can launch pla...
asai
.planning/REQUIREMENTS.md
Markdown
07014a765d8229a9f8063ba68fe8bac50470691768dfd0d147cbb3ba67c5eeef
1
896
- **LESS-12**: Visual ML model inspector for neural networks - **LESS-13**: Extended content library (30+ lessons) - **LESS-14**: Lessons cover unsupervised learning ### Collaboration - **COLB-01**: Student can request peer help on exercise - **COLB-02**: Teacher moderates peer help requests ## Out of Scope Explici...
asai
.planning/REQUIREMENTS.md
Markdown
5b1469ff5a3373871c6b993726986eac00eb00e445245ec192749baef8f3e405
2
896
Pending | | LESS-01 | Phase 4 | Pending | | LESS-02 | Phase 4 | Pending | | LESS-03 | Phase 4 | Pending | | LESS-04 | Phase 4 | Pending | | LESS-05 | Phase 4 | Pending | | LESS-06 | Phase 4 | Pending | | LESS-07 | Phase 4 | Pending | | LESS-08 | Phase 4 | Pending | | LESS-09 | Phase 4 | Pending | | LESS-10 | Phase 4 | ...
asai
.planning/REQUIREMENTS.md
Markdown
5abcc125bd43ad73e11ff1e75b4d995bba2bf08fcfd08f3a20642d077010d0c9
3
270
# Roadmap: ASAI KI-Lernplattform ## Overview This roadmap delivers an offline-first PWA for teaching AI/ML concepts to German-speaking secondary students (ages 15-20) through interactive browser-based Python execution and Socratic AI tutoring. The journey progresses from foundational infrastructure (monorepo + PWA ar...
asai
.planning/ROADMAP.md
Markdown
d7dde7aca380e5e9889c469b3c0d35cccd0563f79a48796a698de2c1693a913d
0
896
when reconnected **Depends on**: Phase 1 **Requirements**: OFLN-02, OFLN-03, OFLN-04, OFLN-05, OFLN-06, OFLN-07, OFLN-08 **Success Criteria** (what must be TRUE): 1. User can view and navigate through cached lessons without internet connection 2. User's lesson progress is saved to IndexedDB when offline and syncs a...
asai
.planning/ROADMAP.md
Markdown
60feb38fd90963622546943ce084babf4356322b0d176737dff925c9746bc069
1
896
student per lesson 3. Teacher can view complete AI conversation history for any student with flagging capability 4. Teacher can manually adjust student lesson progress or override AI difficulty recommendations 5. Teacher dashboard loads in under 2 seconds for classes with 30+ students **Plans**: TBD Plans: - [ ]...
asai
.planning/ROADMAP.md
Markdown
1a4bde0784d67f120ce5185ae86142d4253f3e50e236695e586d6c7700d0eb22
2
773
# Project State ## Project Reference See: .planning/PROJECT.md (updated 2026-01-27) **Core value:** Students can learn AI/ML concepts interactively through a Socratic AI tutor that guides without giving answers, while teachers maintain full oversight and override capability. **Current focus:** Phase 1 - Foundation ...
asai
.planning/STATE.md
Markdown
cc2c414432b8b5e6579e47158baf00ba1b899e31a44d9e382f91868267c5ee75
0
714
# Architecture Research **Domain:** AI/ML Education Platform **Researched:** 2026-01-27 **Confidence:** MEDIUM ## Standard Architecture ### System Overview ``` ┌─────────────────────────────────────────────────────────────────────────┐ │ PRESENTATION LAYER │ ├──...
asai
.planning/research/ARCHITECTURE.md
Markdown
599bae762f72ed3652f6a71fe4e60abeee4cb276669d3083bdfe8efc3be43f6a
0
896
│ └──────┬─────┘ └────────┬────────┘ └───────┬────────┘ │ │ │ │ │ │ ├─────────┼──────────────────┼─────────────────────┼───────────────────────┤ │ BUSINESS LAYER │ ├─────────┼──────...
asai
.planning/research/ARCHITECTURE.md
Markdown
ec873ccd0513f6229bfbd2bac7cd6e3a300faec0c0d2f1ccb501da606cd525e9
1
896
───────────────────────────────┘ │ └─────────────────────────────────────────────┘ ``` ### Component Responsibilities | Component | Responsibility | Typical Implementation | |-----------|----------------|------------------------| | **apps/web** | Student/Teacher UI, PWA shell, offline-first client | Next.js...
asai
.planning/research/ARCHITECTURE.md
Markdown
c8cd30eaa29c49f138c160f1f036db6d724786657caafa05b3fd95335fe123d8
2
896
SQL migrations │ │ │ └── client.ts # Database client setup │ │ └── package.json │ │ │ ├── ai-tutor/ # RAG implementation │ │ ├── src/ │ │ │ ├── embeddings/ # Embedding generation │ │ │ ├── retrieval/ # Vector search │ │ │ ├── prompts/ # Prompt temp...
asai
.planning/research/ARCHITECTURE.md
Markdown
0636b5e6af22bbc0c144d7fcc5ee1c6436606789867ff32a814212d197d7b56e
3
896
: [ { urlPattern: /^https:\/\/api\.asai\.com\/lessons/, handler: 'CacheFirst', // Serve from cache, fallback to network }, { urlPattern: /^https:\/\/api\.asai\.com\/progress/, handler: 'NetworkFirst', // Try network, fallback to cache } ], }) // Queue offline mutations self....
asai
.planning/research/ARCHITECTURE.md
Markdown
3941412c484fd7a6f3a3004bd6b87a9880bf0861723c58200d87813721cfdc67
4
896
.ts import { validateJWT, extractClaims } from './validator' export async function handleLTILaunch(request: Request) { const { id_token, state } = await request.formData() // 1. Validate JWT from platform const payload = await validateJWT(id_token, { issuer: process.env.LTI_ISSUER, clientId: process.env...
asai
.planning/research/ARCHITECTURE.md
Markdown
7ef6bd13de8cedcb10bd7716e0f947b4967cdd745dc1cef7b1f8b6fe4ecc12e1
5
896
Student clicks lesson] (apps/web) ↓ [Eden Treaty GET /lessons/:id] (type-safe) ↓ [Elysia route handler] (apps/api) ↓ [Query lesson data + check progress] (packages/database) ↓ [Return lesson content + metadata] ↓ [Render lesson UI + embed JupyterLite] (apps/web) ↓ [Student completes exercise] ...
asai
.planning/research/ARCHITECTURE.md
Markdown
69ab93cc5f5f70b437a67825a56b8da6fd904f06a8ac99f5ff7e5406475492ac
6
896
, lazy-load non-essential kernels - **Fix:** Pre-warm IndexedDB with starter notebooks (install via Service Worker) 3. **Third bottleneck: PostgreSQL writes during peak usage** - All students submitting progress at end of class period - **Fix:** Write buffering in Redis, async batch inserts - **Fix:** Read...
asai
.planning/research/ARCHITECTURE.md
Markdown
998fc15289985d62346a25e3b5435e1ac70903191d921f153a951e4837103399
7
896
-------------------|-------| | **LMS (via LTI 1.3)** | OAuth2/OIDC flow for launch, JWT validation, OAuth2 for grade passback | Each LMS instance requires separate registration. Store platform keys securely. | | **Vector Database** | HTTP API with API key (Pinecone, Weaviate) or self-hosted (Qdrant) | Keep embeddings a...
asai
.planning/research/ARCHITECTURE.md
Markdown
1be174bee388ca021ef2b1ce1903db49fb63e1824d94b910bd680aa820d706fe
8
896
work standalone. Needs research phase. 8. **Teacher Dashboard Phase** - ✅ Student progress views - ✅ AI interaction logs - ✅ Manual grade override - **Why eighth:** Builds on all previous features. Read-heavy, may need optimizations. ### Critical Path **Must build in order:** 1. Foundation → Authenticati...
asai
.planning/research/ARCHITECTURE.md
Markdown
4b01df2da71047b9706b1f16a3154efc24ac5ddba04734e5aff83a89c3b20d55
9
416
# Feature Research **Domain:** AI/ML Education Platform (Secondary Education, DACH Region) **Researched:** 2026-01-27 **Confidence:** MEDIUM ## Feature Landscape ### Table Stakes (Users Expect These) Features users assume exist. Missing these = product feels incomplete. | Feature | Why Expected | Complexity | Note...
asai
.planning/research/FEATURES.md
Markdown
5a42d400d1714b699efe855d7587ef0d9432e4beb45825ec3777dd6369630803
0
896
Requested, Often Problematic) Features that seem good but create problems. | Feature | Why Requested | Why Problematic | Alternative | |---------|---------------|-----------------|-------------| | Full ChatGPT-style AI (gives answers) | Students want quick answers | Defeats learning objective; students copy without u...
asai
.planning/research/FEATURES.md
Markdown
af16578c2fdb263f7e734eba4a83e36514b0318d817fa8f3dff1b45cd890be71
1
896
Local + LTI 1.3)** - Schools require LMS integration, offline requires local accounts - [x] **Interactive Code Editor (Monaco/CodeMirror)** - Core learning interface for Python - [x] **Browser Python Execution (Pyodide)** - Run Python without servers, enables offline - [x] **Basic ML Libraries (NumPy, Pandas, scikit-le...
asai
.planning/research/FEATURES.md
Markdown
b72c7e6eddafb9b040c393deb74147391b290304a0c1cce4fd0697ac9f34e2c7
2
896
| | Misconception Detection | MEDIUM | HIGH | P3 | | Teacher Analytics | MEDIUM | MEDIUM | P3 | | Deep Learning Content | LOW | HIGH | P3 | | Custom Content Authoring | LOW | HIGH | P3 | **Priority key:** - P1: Must have for launch (validate core hypothesis) - P2: Should have, add when feasible (enhance validated conc...
asai
.planning/research/FEATURES.md
Markdown
9d36535c5254184aef82fab5c717a2fb0dfa294a253cef463934975817541b2e
3
832
# Pitfalls Research: AI/ML Education Platform **Domain:** AI/ML Education Platform (PWA, Chromebook-first, Offline-first) **Researched:** 2026-01-27 **Confidence:** MEDIUM > This research focuses on pitfalls specific to: Turborepo + Bun + Elysia stack, PWA offline-first with large assets (JupyterLite ~180MB), RAG for...
asai
.planning/research/PITFALLS.md
Markdown
8cee1692177a36049b4a97a0a2e9e5fef82a4597a5454144059bb8761637a221
0
896
estimate.quota) * 100; if (percentUsed > 80) { // Critical: Warn user, trigger cleanup } else if (percentUsed > 60) { // Warning: Suggest export/backup } } ``` 3. **Auto-export to LMS via LTI:** - Save student work to Moodle/Teams after each notebook run - Use LTI Assignment and Grade Services for...
asai
.planning/research/PITFALLS.md
Markdown
1f5f37f80cf2acd08a212c6500370b8aa849dafd0b382a41e12f5f6b041704de
1
896
with questions, not answers" - Provide "Flag inappropriate response" button - Display interaction count: "Asked 5 questions so far" **Warning signs:** - User feedback: "The AI just told me the answer" - Short conversations (student got answer immediately) - High completion rate without genuine learning signals -...
asai
.planning/research/PITFALLS.md
Markdown
32e2fe4b7c36f3a598595553dd7d1cd7f2a53df3e430c21904f1a13bb869825e
2
896
`typescript // BAD: Simple role names (deprecated) if (roles.includes('Instructor')) { ... } // GOOD: Full vocabulary URIs const INSTRUCTOR_ROLE = 'http://purl.imsglobal.org/vocab/lis/v2/membership#Instructor'; if (roles.includes(INSTRUCTOR_ROLE)) { ... } ``` **Warning signs:** - Intermittent authentication failures ...
asai
.planning/research/PITFALLS.md
Markdown
be034679a8205899a0452103c98079bd4072fbe41b9321160a18d2b70ac66ae3
3
896
Why it happens:** Turborepo optimizes for fast local dev, not deployment. Each app can version independently, but shared packages (`@repo/ui`, `@repo/database`) must stay synchronized. Bun's symlink-based workspaces differ from npm's hoisting, causing "works locally, fails in production." **How to avoid:** 1. **Enforc...
asai
.planning/research/PITFALLS.md
Markdown
0cd22bd14b0527cfe512bd3388050892c1069ee1a12f2c7b41b9656c0ce315d6
4
896
; const percentUsed = (used / limit) * 100; if (percentUsed > 80) { // Warn user: "Memory low, save your work" } } } ``` 2. **Single kernel instance (not per-notebook):** ```typescript // BAD: New kernel per notebook notebooks.forEach(nb => nb.kernel = new Pyodide()); // GOOD: Shared kernel, isol...
asai
.planning/research/PITFALLS.md
Markdown
47b8a180d90075ddb5ebed8d1bc29e728f010266eb1b7e3dab0366d51cef77e5
5
896
file I/O | Cannot deploy to Cloudflare/Vercel | Never in shared code | --- ## Integration Gotchas Common mistakes when connecting to external services. | Integration | Common Mistake | Correct Approach | |-------------|----------------|------------------| | **Moodle LTI** | Using HTTP redirect URI | All URLs must b...
asai
.planning/research/PITFALLS.md
Markdown
a85f2e9fa3fd6f5465a748cc2cc343bfbb37419291c4e0a8781152dbfa728e78
6
896
| DSGVO Article 5 violation | Anonymize `studentId`, implement data retention limits | | **CORS wildcard `*` for LTI** | Any site can impersonate LMS | Allowlist specific platform origins | | **No rate limiting on AI endpoints** | Resource exhaustion, €€€ OpenAI bills | Rate limit: 10 requests/min per student | | **Emb...
asai
.planning/research/PITFALLS.md
Markdown
fa9a022189964a7ff6828885135d20ab8b7017c45426d385bf9449df9d324191
7
896
** | LOW | Implement cache versioning, delete old caches, request persistent storage | | **LTI JWT signature failure** | MEDIUM | Rotate platform public keys, clear nonce cache, re-fetch JWKS endpoint | | **Student work lost in IndexedDB** | HIGH | No recovery - implement LMS backup immediately, communicate data loss |...
asai
.planning/research/PITFALLS.md
Markdown
9d75093f5f0b1b1db869bd91bb46b6a5d018efb840ef0944795e431e9b3e59ca
8
891
# Technology Stack **Project:** ASAI - AI/ML Education Platform **Researched:** 2026-01-27 **Confidence:** HIGH ## Core Stack (Pre-selected) These technologies were chosen before research and form the foundation: | Technology | Version | Purpose | Why Selected | |------------|---------|---------|--------------| | *...
asai
.planning/research/STACK.md
Markdown
4ed9a4a2f5b3dd5639f5e2365f0dac7ffb48cb4fa33307531658b75044770108
0
896
kernel. Supports ipywidgets, matplotlib, plotly. Runs via static file hosting (no server needed). IndexedDB for file storage. | **Recommendation:** Use **JupyterLite** for full notebook experience (AI/ML education benefits from rich notebook UI). Use **Pyodide** directly only if you need custom Python integration with...
asai
.planning/research/STACK.md
Markdown
e5b5c85f777121a4beb650d0f308895ce19916263ca1478c8c50217d17f86a02
1
896
database | Industry standard relational database. Works with Drizzle ORM. Supports pgvector for embeddings if needed. EU region hosting available. | | **postgres.js** | Latest | PostgreSQL driver | High-performance Postgres client. Works natively with Bun. Drizzle ORM recommended driver. Prepared statements by default....
asai
.planning/research/STACK.md
Markdown
2635bcde02c194148248b055094c53c9285127596c51376e148f8722a893ecef
2
896
# Validation & Type Safety | Library | Version | Purpose | Why Recommended | |---------|---------|---------|-----------------| | **Zod** | v4+ | Schema validation | TypeScript-first. Zero dependencies. 2KB gzipped. Static type inference. JSON Schema conversion. Integrates with React Hook Form. Elysia supports Zod nati...
asai
.planning/research/STACK.md
Markdown
261b56b06b4695fe47a0ee3839e6a2f728540ef78dac0e17457b1b95c4cddcfc
3
896
# Add to public/ folder or use iframe embed ``` ### LTI 1.3 ```bash pnpm add ltijs ``` ### RAG & AI ```bash pnpm add langchain @langchain/azure-openai @azure/openai @azure/search-documents ``` ### Database ```bash pnpm add postgres dotenv pnpm add -D drizzle-kit ``` ### Authentication ```bash pnpm add next-auth...
asai
.planning/research/STACK.md
Markdown
42f49214bc36fee8085302c59a377b32ccd2bc0d2aeacfae0e7cc202dcd75f4c
4
896
compatible but 5-10x faster. No reason to use Jest with Bun runtime. | | Linting | ESLint + Prettier | Biome | ESLint/Prettier is battle-tested. Biome is faster but newer (less plugin ecosystem). | | State Management | TanStack Query | SWR | TanStack Query has more features (mutations, optimistic updates, better DevToo...
asai
.planning/research/STACK.md
Markdown
48133522cebc447d93c24061cbb560e6d8d9f67afa476006701ffb2c38cc3288
5
896
data) + JupyterLite (for notebooks) Sync: TanStack Query with background sync + Dexie.Cloud (optional) Service Worker: @serwist/next (caching strategies) ``` **Why:** TanStack Query handles server state with offline persistence. Dexie stores offline mutations. Serwist caches static assets and API responses. ### Patte...
asai
.planning/research/STACK.md
Markdown
872f28b495aae8100df1a5649a6fb89ea063bed3139278ed9a5e8b2703095094
6
896
gaps. **Solution:** - Option A: Run ltijs in separate Node.js process (reverse proxy from main app) - Option B: Test ltijs thoroughly with Bun. If it works, mount in Elysia. - Option C: Use ltijs with Node.js only for LTI endpoints, rest of app uses Bun. **Recommendation:** Start with Option B (test with Bun). Fallba...
asai
.planning/research/STACK.md
Markdown
f57a94c6f0054e1675fbed992e695e206a4bccbbf77d48b3b01af29ee464a193
7
896
# Project Research Summary **Project:** ASAI - AI/ML Education Platform **Domain:** Educational Technology (Secondary Education, DACH Region) **Researched:** 2026-01-27 **Confidence:** MEDIUM ## Executive Summary ASAI is an offline-first PWA for teaching AI/ML concepts to secondary students (ages 15-20) in the DACH ...
asai
.planning/research/SUMMARY.md
Markdown
5789cde521f9b2e42f8aa34350ba76ba73b842654e6dcae656cf2d075eaba8aa
0
896
+ (v1.0 beta available but stick to stable) ### Expected Features **Must have (table stakes):** - User Authentication (LTI 1.3 SSO + local accounts) - schools require LMS integration, offline requires local auth - Interactive Code Editor (Monaco/CodeMirror) - browser-based Python coding is core to ML education - Brow...
asai
.planning/research/SUMMARY.md
Markdown
9cac9a3848d698fe1954206b7158479fae6e553466a1a26af07908e054e72d95
1
896
App`, web imports for Eden client. Breaking changes caught at compile time. - **Offline-first PWA**: Service Worker cache strategies (shell cache, content cache, sync queue). IndexedDB for offline mutations. Background Sync API for queued requests. - **RAG with guardrails**: Embed → Retrieve → Generate → Validate (safe...
asai
.planning/research/SUMMARY.md
Markdown
7ae0b60ba82eb45279800e54e06cf8dbf6ba438c311cc23f278e290a7f64876e
2
896
on monorepo communication working. PWA offline strategy must be architected from day one (cannot retrofit after users have corrupted cache states). Storage strategy is foundational for JupyterLite integration. **Delivers:** - Turborepo structure with apps/packages separation - Elysia API with Eden Treaty type export -...
asai
.planning/research/SUMMARY.md
Markdown
1ae083c35e47f0d5ad08a39116db9daf8085e3d525582d9f32489c4636529937
3
896
*Avoids pitfalls:** - Socratic AI giving answers (#3) - validation layers, RAG filtering - EU AI Act compliance (#5) - transparency disclosure, audit logs **Research flag:** NEEDS RESEARCH - Socratic prompt engineering, RAG retrieval filtering, LangChain.js with Azure OpenAI, response validation patterns. Use `/gsd:re...
asai
.planning/research/SUMMARY.md
Markdown
e95afbf44246abf12178716f7497a0245af070bbe627643c44f705065abf7029
4
896
System → AI Tutor (AI needs content to reference) **Can parallelize:** - Notebook Environment (Phase 2) + LTI Integration (Phase 3) - independent features - AI Tutor (Phase 4) + Assignment System (Phase 5) - if basic content seeded manually **Defer to end:** - Teacher Dashboard (Phase 7) - needs data from prior phase...
asai
.planning/research/SUMMARY.md
Markdown
76c7acd5600d5f3e4edb625e331bfec75b7d1b877cc4796f57d0008b9e79ca3f
5
896
. Bun has Express compatibility layer but needs testing. **Fallback:** Run ltijs in separate Node.js process with reverse proxy from main Elysia app (Option A from STACK.md). Validate in Phase 3 planning. - **Chromebook performance:** 180MB JupyterLite bundle on 4GB RAM Chromebooks with 50-100MB storage quota is tight...
asai
.planning/research/SUMMARY.md
Markdown
0ab2e4dd537e6861bf8fa9ad1217465a2c833b2c23ddaa405311c7f721d7489a
6
896
) - ltijs: https://github.com/Cvmcosta/ltijs (v5.9.5, IMS Global LTI Advantage Complete Certified) - Serwist: https://serwist.pages.dev/ (Workbox fork, Next.js PWA integration) - Dexie.js: https://dexie.org/ (v4.0, IndexedDB wrapper) - shadcn/ui: https://ui.shadcn.com/ (React 19 + Next.js 15 compatibility) - TanStack Q...
asai
.planning/research/SUMMARY.md
Markdown
86095a60c5aa23f66ff9b8b6db4fe1ed16000219bc6e3caa2de3f210eddcb805
7
505
# Dependencies node_modules/ # Logs logs *.log npm-debug.log* yarn-debug.log* lerna-debug.log* .pnpm-debug.log* # Runtime data pids *.pid *.seed *.pid.lock # Coverage coverage *.lcov .nyc_output # TypeScript cache *.tsbuildinfo # Turborepo .turbo/ # Next.js .next/ out/ # Expo .expo/ dist/ *.jks *.p8 *.p12 *.key ...
aucta
.gitignore
Git Ignore
ad0d1b2ce85e57c5bb2e35aa3cc077aaa995182636833c0a4ffecd8dd83e5be4
0
293
# Aucta Development Guide for AI Agents You are a senior Aucta engineer working in a Bun/Turborepo monorepo. You prioritize type safety, org-level data isolation, and small, reviewable diffs. The product is a real-time AI copilot for HVAC technicians — safety-critical context matters. ## Do - Use Zod DTOs at every b...
aucta
AGENTS.md
Markdown
0fc1b6776673e8063540c79b08100a045cb5a6f282d1d434202d1f4f48071fe1
0
896
Use raw SQL queries (use Drizzle ORM query builder) ## Project Structure ``` apps/mobile/ # Expo SDK 55 (technician-facing) apps/web/ # Next.js 16 (owner/manager dashboard) modules/ # Web-specific code (tRPC hooks, components) packages/ai/ ...
aucta
AGENTS.md
Markdown
8bc527d7d996913ef25822a70959bb3f6019234d415315ea6fa49db8ee499b6d
1
896
} from "@aucta/shared/schemas/session"; import { SessionRepository } from "@aucta/ai/session/sessionRepository"; // Bad — regular import for types, barrel imports import { SessionDTO } from "@aucta/shared"; import { SessionRepository } from "@aucta/ai"; ``` ## PR Checklist - [ ] Title follows conventional commits: `...
aucta
AGENTS.md
Markdown
b6f92b7f97ac885652b8b9b9669befbd1ed43e07108d3b856f058a5e252c683c
2
631
{ "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json", "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }, "files": { "ignoreUnknown": false, "includes": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.json", "**/*.css"] }, "formatter": { "enabled": t...
aucta
biome.json
JSON
f242ac6ceec991b203ded3ddd80fbeeb4d54a6f72ed327b08544aed7944c5b16
0
232
agents.md <!-- GSD:project-start source:PROJECT.md --> ## Project **Aucta** Aucta is a real-time AI copilot for HVAC technicians. The mobile app streams camera video and microphone audio directly to Google's Gemini 2.5 Flash Live API via WebSocket. Gemini reasons over the multimodal input, calls domain-specific tool...
aucta
CLAUDE.md
Markdown
1b3bd1121efab8bbe549d31fb80a7a57a873b9bb43e94cd3d509d25f4a7f3fd7
0
896
routing, typed routes, deep linking. Comes with SDK 55. New features: Colors API, Apple Zoom transition, SplitView. | HIGH | | **NativeWind** | **4.2.3 (stable) or 5.0.0-preview.3 (preview)** | Mobile styling | **CRITICAL GOTCHA: v5 is NOT stable.** v5.0.0-preview.3 is a pre-release with active bug fixes (broken export...
aucta
CLAUDE.md
Markdown
d6ca50d6201bde0c1f31dc3a7a886fbbfd44fa9a0dc5ce77ccf19a52c21070da
1
896
unified `error` parameter replaces `errorMap`/`message`/`invalid_type_error`). New: `z.toJSONSchema()`, `z.email()` top-level, metadata registries, file schemas. | HIGH | | **Drizzle ORM** | 0.45.x | ORM | 7.4KB footprint, sub-500ms serverless cold starts. v0.45.2 has a critical security fix for `sql.identifier()` esca...
aucta
CLAUDE.md
Markdown
34f9c2ed9dbed109260472c2d8fbfe5046c3208621584c4b379e99a4267d453d
2
896
(captures text + diagrams as images). ColBERT-style late interaction. **CRITICAL GOTCHA: Python-only library.** No JavaScript SDK. Requires a Python sidecar service for embedding generation. See Architecture section. | MEDIUM | ### Infrastructure & Deployment | Technology | Version | Purpose | Why | Confidence | |-----...
aucta
CLAUDE.md
Markdown
d92c59f4aebd4e9f5155a1206bf8afac04a2745ba5abb091944f9657e38e9367
3
896
# Version-Specific Gotchas ### CRITICAL: NativeWind v5 is Preview, Not Stable ### CRITICAL: Gemini 2.5 Flash Live is "Preview" - Ephemeral tokens: 1 use, 1-minute new-session window, 30-minute message window - Session reconnection via `sessionResumption` has a ~2-minute disconnection window (per TECH-SPEC) - Audio inpu...
aucta
CLAUDE.md
Markdown
ee94989ad738e469210dd88df0df91ac9baedc4ae78e75d871852c9118fd32f4
4
896
Redis infra needed). BullMQ requires a Redis instance and a worker process. Trigger.dev is good but less mature. | | Vector DB | Qdrant | Pinecone / Weaviate / pgvector | Qdrant: multivector support (ColBERT native), EU hosting, generous free tier, open-source. Pinecone: no EU region until recently, proprietary. Weavia...
aucta
CLAUDE.md
Markdown
682cf354b97b4f5862d42001936d08a29346674dadb004f7ac090a8d7aa16588
5
896
| | **@google/generative-ai** | Legacy SDK. Replaced by `@google/genai` which is the unified SDK supporting Live API, ephemeral tokens, and all current features. | | **NativeWind v5 (for now)** | v5.0.0-preview.3 is not stable. Start with v4.2.3. Upgrade when v5 reaches RC or stable. | ## Installation # Root dev depend...
aucta
CLAUDE.md
Markdown
e1e6d1d7a2a4a6abbdd22fdb555cc536aac27a34c287ff7add100b5bcc813fca
6
896
/releases (v4.1.2) - ColPali: https://github.com/illuin-tech/colpali (Python, pip install colpali-engine) - Qdrant multivector docs: https://qdrant.tech/documentation/concepts/vectors/ (multivector since v1.10, max_sim comparator) - Qdrant releases: https://github.com/qdrant/qdrant/releases (v1.17.1) - Next.js blog: ht...
aucta
CLAUDE.md
Markdown
df23e3362938ea69cf009de74c83b8267fff30fb9c35ec61f253f5d30fd1f74b
7
597
{ "cli": { "version": ">= 15.0.0", "appVersionSource": "remote" }, "build": { "development": { "developmentClient": true, "distribution": "internal", "ios": { "simulator": true } }, "preview": { "distribution": "internal" }, "production": {} }, ...
aucta
eas.json
JSON
a7e0e6a10682b9c764a9bb024705df70776f7b5b95dd1b40a66fee73fa501950
0
99
# Aucta ## Legal, Regulatory & Business Strategy — Business Case, Compliance & Investor Readiness **Product:** Aucta — HVAC AI Copilot for technicians and field teams. **Version:** 3.0 **Date:** April 3, 2026 **Status:** Foundation / Pre-Development **Audience:** Founding team, legal counsel, investors, business dev...
aucta
LEGAL-ADMIN.md
Markdown
8403f8ff6be2e9a025265d26675d4c184708ab1bf1aee706753ec7953d66c1f7
0
896
audit trail | | **Insurance Provider** | Risk assessment | Evidence of standardized procedures; reduced incident rates | ### 2.3 Internal to Our Company | Role | Surface | What They Need | |------|---------|----------------| | **Sales/BD** | CRM + landing page analytics | Lead tracking, conversion metrics, demo sched...
aucta
LEGAL-ADMIN.md
Markdown
40a5e3672010ca8f9a14bd34f61e209d2e137ee54947be5c7129ca2ec512b46f
1
896
-time visual reasoning.** Not pre-authored SOPs. The AI sees the actual equipment and adapts. 2. **Automatic multilingual support.** No configuration needed. The technician speaks; the AI responds in their language. 30 HD voices, 24 languages. 3. **Real-time tool calling.** The AI calls domain-specific tools mid-conver...
aucta
LEGAL-ADMIN.md
Markdown
cf19defa9f7c57ecaffa5913b34e27d93043d47b8d53de118c9826ff67af7728
2
896
exportable records for regulatory/insurance audits --- ## 5. Regulatory Architecture ### 5.1 GDPR (DSGVO) — Mandatory, Austria-Based As an Austria-based SaaS processing personal data of EU residents, GDPR compliance is non-negotiable and affects every architectural decision. **Data Classification:** | Data Type |...
aucta
LEGAL-ADMIN.md
Markdown
e718d79ed35c30353521aeba81840c6b87ba3dddc071cd295fb8324ecd2382ee
3
896
), not a provider of an AI system. **Risk classification:** **Limited risk (transparency obligations)**. The product does not involve biometric identification, critical infrastructure control, employment decisions, or any Annex III category. It provides guidance and recommendations; it does not make autonomous decisio...
aucta
LEGAL-ADMIN.md
Markdown
e48e967aadcd250821444d9343eb87e596000449089a0e13da124e2aa7aa3878
4
896
(KSchG) - **Legal counsel review required before launch** ### 5.5 EU Data Act The EU Data Act became applicable on **September 12, 2025** and is **regulatory tailwind** for this product. **Strategic opportunity:** - Connected HVAC products placed on market after September 12, 2026 must provide **"access by design"**...
aucta
LEGAL-ADMIN.md
Markdown
9abb7e8771c93cd96d1279b6481375b0be3fb42d3cb720a04c59454e1d30828f
5
896
sector revenue (2024): EUR 7.135B (WKO Statistik) - 4,182 apprentices in Austrian SHL (January 2025, WKO Statistik) - SAM calculation: 54,413 companies x avg 5 technicians x EUR 29/month x 12 = **~EUR 95M ARR** **SOM — Vienna/Austria Initial Focus:** - Conservative (5% penetration in 3 years): ~380 companies, ~EUR 660...
aucta
LEGAL-ADMIN.md
Markdown
5332aacbdc239b3a8637eb6cd84003c07ee3a96e2ff7c278976a95b35e6d0f92
6
896
-|-------|-----------| | **Rebar** | Series A (2024) | $14M | AI HVAC quoting/estimating from blueprints | Direct HVAC + AI; back-office, not field | | **WorkHero** | Seed (2025) | $5M | AI back-office for small HVAC contractors | Direct HVAC + AI; Navitas Capital + ServiceTitan angel | | **Netic AI** | Series B (2026)...
aucta
LEGAL-ADMIN.md
Markdown
e1ce283b6f9b90a485ab23803810c2cd4963854f7d325a304907a7535d9a0914
7
896
**Trade press:** Articles in Austrian HVAC publications (Kälte Klima Aktuell, HLK) - Convert pilot users to paid Professional tier ### 10.3 Phase 3: DACH Expansion (Months 18+) - Expand to Germany (35,000+ HVAC companies) and Switzerland - i18n + multilingual AI already in place - Leverage Austrian case studies for D...
aucta
LEGAL-ADMIN.md
Markdown
fb3c65a48b0f49cdc39ca6d1ea5c7850cf06592c30acbc1b49323e3559ed533e
8
896
Medium | Medium | Validate with customer interviews; monitor AI cost per session closely; consider value-based pricing tiers; XOi charges $99/user/month as upper anchor | --- ## 13. Open Questions — Resolved ### Q1: Session Recording Consent **Resolution:** Implement opt-in session recording with explicit per-sessi...
aucta
LEGAL-ADMIN.md
Markdown
9369dafeff4a03a963711b25bac19b508def7dd66413fbc58edd75e527abde34
9
781
{ "name": "aucta", "private": true, "workspaces": [ "apps/*", "packages/*" ], "scripts": { "typecheck": "turbo typecheck", "lint": "turbo lint", "test": "turbo test", "dev": "turbo dev", "build": "turbo build", "format": "biome format --write .", "check": "biome check --fix...
aucta
package.json
JSON
c3bab526cf75fcbb86033f0922af31a79dab232f68143d8b7896f44b854a2877
0
192
# Spec-Driven Development Workflow This workflow is **opt-in**. Use it when explicitly requested by saying "use spec-driven development" or "follow the spec workflow". It complements GSD phases — use specs for complex features that benefit from a written design document before planning/execution. ## Design Documents ...
aucta
SPEC-WORKFLOW.md
Markdown
62377d0f69d406a69605b5be27d754eb767e97ada6b99aedc760716a2fd85c2f
0
852
# Aucta ## Technical Specification — Engineering Baseline **Product:** Aucta — HVAC AI Copilot for technicians and field teams. **Version:** 3.0 **Date:** April 3, 2026 **Status:** Foundation / Pre-Development **Audience:** Engineering team, department leads, technical stakeholders --- ## 1. Product Overview **Au...
aucta
TECH-SPEC.md
Markdown
be1b58a6aaf561803be9d622af5adeb714d4a536b0ea4083d0daffd6874084db
0
896
updated in real time via tRPC subscriptions (SSE) - Today's key numbers: sessions completed, total AI time, estimated cost - Week/month trends: session volume, avg duration, language distribution - Alerts: low-rated sessions, unusually long sessions, connection failures - Revenue opportunities: aggregated replacement/u...
aucta
TECH-SPEC.md
Markdown
49b8a111bf0359c72bcc207b0de2a7e18455e5e0a204bd96b3237052cbf089ba
1
896
.ts # Tool description for Gemini function declaration │ ├── types.ts # Zod input/output schemas │ └── lookupErrorCode.test.ts ├── getEquipmentSpecs/ │ ├── index.ts │ ├── prompt.ts │ └── types.ts ├── getWiringDiagram/ ├── calculateRefrigerantCharge/ ├── checkSafetyRecall...
aucta
TECH-SPEC.md
Markdown
3de71eec61f1e853000d3e82264297e02c1b6d7e6b8a0c250c68d85a24e8d392
2
896
responses so the AI can gracefully inform the technician ### 3.2 Session Orchestration Engine (`packages/ai/session/`) Modeled on Claude Code's `QueryEngine.ts` — the central coordinator for LLM interactions. ``` packages/ai/session/ ├── orchestrator.ts # SessionOrchestrator class — full session lifecyc...
aucta
TECH-SPEC.md
Markdown
8c67a55522cd7554bd3d99d1326449af5522f08bb58d1aec51a1fa337c0ded23
3
896
─ reranker.ts # Cross-encoder reranking for precision │ └── contextBuilder.ts # Build prompt context from retrieved articles ├── verify/ │ ├── verificationQueue.ts # Queue of AI-generated knowledge awaiting verification │ ├── expertReview.ts # Senior technician review/approval wor...
aucta
TECH-SPEC.md
Markdown
e26bf45770b7e8b5e0216b60bfa0ca5e9a6b96b1a907db0bda8e1469d304c6b7
4
896
improvement):** - LLM audits wiki for inconsistencies, imputes missing data - Identifies coverage gaps: "No articles for Mitsubishi PUMY series" - Suggests new article candidates from cross-referencing session patterns - Tracks article utility: which articles are retrieved most, which correlate with positive session f...
aucta
TECH-SPEC.md
Markdown
2cf37b6a188b31dc1b525945955439b3bffd8b2aa516af4217c39cd23392be9b
5
896
** Role definition, safety-first mandate, language adaptation rules, explicit AI disclosure 2. **HVAC expertise + safety rules:** Domain knowledge, troubleshooting frameworks, F-Gas EU 2024/573 references, lockout/tagout, emergency response protocols 3. **Organization overlay:** Company-specific instructions from dashb...
aucta
TECH-SPEC.md
Markdown
3f44e5b008c0c8cab2da4276975204bee27bc46221217000d0a7f423bd47a623
6
896
; owners can see everything in their org - No cross-org data access is possible through the API ### 5.4 Rate Limiting Implemented as tRPC middleware using `@upstash/ratelimit`: | Endpoint | Strategy | Limit | | ------------------------------ | ----------------------- | -----...
aucta
TECH-SPEC.md
Markdown
4eedd3e74c15f907953b96f0363d04dd318a514e44a7a07265492541136c6964
7
896
** | NW 5.0.0-preview.3 + TW 4.2.x | Unified Tailwind v4 across web + mobile | | Dashboard components | **shadcn/ui** | CLI v4 | Copy-paste ownership, Radix primitives, accessible ...
aucta
TECH-SPEC.md
Markdown
43e179de48236d36f4114a6f01c162136fd3b6e18a938b70826e58d956452c4a
8
896
`org:team:invite`, `org:team:manage`, `org:settings:edit`, `org:billing:manage`, `org:analytics:view`, `org:analytics:export`, `org:knowledge:verify`. ### 6.5 AI / Real-Time | Decision | Tool | Version | Why ...
aucta
TECH-SPEC.md
Markdown
223ba71c875b7e5754b96bc51bd5cc92059fae22461c0316bf85e32b6c123e86
9
896
------------ | ------------------------------------------------------ | | Analytics + feature flags | **PostHog** (self-hostable) | Web 1.364.x / RN 4.39.x | Replaces 3 paid services; unlimited flags on free tier | | Error tracking | **Sentry** | Next.js 10.47.x / RN 8.7.x | First...
aucta
TECH-SPEC.md
Markdown
2b239db6b5f157bf96b1466a5d460734dea35a3bf28a15adffd20fe8201bea1d
10
896
/ # Auth screens (login, signup, join-org) │ │ │ ├── (app)/ # Authenticated screens │ │ │ │ ├── session/ # Live AI session │ │ │ │ ├── history/ # Past sessions │ │ │ │ └── settings/ # Preferences │ ...
aucta
TECH-SPEC.md
Markdown
d96c8db774ee8f9caa076b8c18a80adda63c0b6cab5b57a123139837ea439a55
11
896
── prompts/ # System prompt fragments │ │ │ ├── core.ts │ │ │ ├── hvacExpertise.ts │ │ │ ├── safety.ts │ │ │ ├── aiActTransparency.ts │ │ │ └── builder.ts │ │ └── agents/ # Specialized sub-agents (Phase 2) │ │ ...
aucta
TECH-SPEC.md
Markdown
72f3bdf785ada7d23f4a05bdf0d0f244b18a50c1dedac944b6f398e159a3ce2d
12
896
md # Legal/administrative companion │ ├── ARCHITECTURE.md │ ├── API.md │ └── DEPLOYMENT.md │ ├── AGENTS.md # Main agent guide — Do/Don't, Boundaries, PR checklist ├── CLAUDE.md # Pointer to AGENTS.md (auto-loaded by Claude Code) ├...
aucta
TECH-SPEC.md
Markdown
05abc7483273dd6fec95d935bc2d6af306fa74a7e39857556b4ced0c76ab5d24
13
896
) Drizzle row types never leak to the frontend. Explicit Zod-validated DTOs at every architectural boundary: ``` Repository (Drizzle types) → DTO → Service → DTO → tRPC Router → Client ``` DTOs live in `packages/shared/src/dto/` and are validated with Zod. Use string literal unions instead of Drizzle enums to stay O...
aucta
TECH-SPEC.md
Markdown
48f2d84b285ec688539f3fb9b4d9b916214f503910eab7a8fb3b24c06d0dffb3
14
896
───────│ │ │ 7. token + config │ │ │ │ │ <─────────────────────────│ │ │ 8. { token, sessionId, │ │ │ tools, config } │ ...
aucta
TECH-SPEC.md
Markdown
577f28fa3a0d4890a6b09a0ac4f104e1e7d1d5c7a5d7c95616bd75c6085a3dfd
15
896
2.3B parameters, Apache 2.0) via Google AI Edge LiteRT runs on the phone's NPU. Provides basic guidance, safety lookups, and cached knowledge queries without connectivity. Seamless handoff back to Gemini Live when connectivity returns. --- ## 9. Database Schema All tables managed via Drizzle ORM. Better Auth manages...
aucta
TECH-SPEC.md
Markdown
d18e73275f1e68148a3644951ac3c741acb8fbd55cd3b99b0eefd65e3eacbe7f
16
896
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `knowledge_articles` | The wi...
aucta
TECH-SPEC.md
Markdown
b08f6c2c6dbb7044fde5d915eff0475e7e0b0e56b8b28fd5c3e2e8a9a0329c99
17
896
for usage tracking | | 6 | `gdpr.export` | `gdpr/export-requested` | Package all org data as JSON/CSV → upload to Vercel Blob → email download link | | 7 | `gdpr.delete` | `gdpr/deletion-requested` | Cascade delete pers...
aucta
TECH-SPEC.md
Markdown
b0c3739c5096091add7caa70ba9867384b406eb973898032b54b72175e87a0c9
18
896
-write, isolated test data) - If `apps/mobile/**` or `packages/**` changed: trigger EAS Build (preview profile) **On release tag:** - EAS Build production profile - App store submission via EAS Submit --- ## 13. Testing Strategy | Layer | Tool | What Gets Tested ...
aucta
TECH-SPEC.md
Markdown
ee029703c53d6f1d09b214699687e18270334fcf0a44ea9fef67660a43ab1b94
19
896