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 |
|---|---|---|---|---|---|---|
Smart glasses support** | When Meta Orion ships | Expo camera abstraction allows input source swap |
| **BIM/Digital Twin integration** | Phase 3 | Enterprise building data; context injection layer supports it |
| **White-labeling** ... | aucta | TECH-SPEC.md | Markdown | e794baf14bb809d0eaddcbc1064340358b48bcdff6af28622d13e63696013e5f | 20 | 896 |
-kit generate && bunx drizzle-kit migrate
```
---
_This document is the engineering baseline for **Aucta**. For business strategy, regulatory compliance, investor material, and risk management, see [LEGAL-ADMIN.md](./LEGAL-ADMIN.md). For AI agent development guidelines, see [AGENTS.md](./AGENTS.md). For spec-driven d... | aucta | TECH-SPEC.md | Markdown | b400c8655fc3c9d718f9875ffec18036e7c9ed17eafa6fa75b32e28dba987245 | 21 | 106 |
{
"extends": "./packages/config/tsconfig.base.json",
"compilerOptions": {
"noEmit": true
},
"include": [],
"references": [{ "path": "packages/shared" }, { "path": "packages/config" }]
}
| aucta | tsconfig.json | JSON | 38bde0b2b29b01756cd33e8293b12b07691d5c141a050b45a76011fb393c7cb9 | 0 | 68 |
{
"$schema": "https://turborepo.dev/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"typecheck": {
"dependsOn": ["^build"]
},
"lint": {},
"test": {
"dependsOn": ["^build"]
},
"dev": {
"cache": false,
"persiste... | aucta | turbo.json | JSON | c236d860c3140043fb556c202fb8811f7712ecbc8433e06eb3901cd752319ee2 | 0 | 115 |
# Aucta V2 Technical Specification
> **Generated:** 2026-04-11
> **Branch:** `clean/v2-foundation`
> **Base Commit:** `3d936f9` (reset to v1 foundation)
> **Purpose:** Complete blueprint for V2 development milestones
---
## Table of Contents
1. [Post-Reset Repo State](#1-post-reset-repo-state)
2. [Build Results](#2... | aucta | V2-TECHSPEC.md | Markdown | 6ee1e928864d343043528fb3eee369cb71d4f2adfe45d7e3d7262aba468cb505 | 0 | 896 |
.md # Development guide (do/don't, boundaries, examples)
TECH-SPEC.md # V1 technical specification (reference)
LEGAL-ADMIN.md # Business/regulatory documentation
```
### Codebase Statistics
| Metric | Count |
|--------|-------|
| Total TypeScript source lines | ~9,516... | aucta | V2-TECHSPEC.md | Markdown | ccfd4a4bdf813baaddcfd810dfb250f0687d443698e51a54c53ad0dfd33f9c76 | 1 | 896 |
.3 | Correct per spec recommendation |
---
## 3. Cal.com Gap Analysis
Research source: analysis of `github.com/calcom/cal.com` main branch (April 2026).
### CRITICAL Priority Gaps
| # | Pattern | Cal.com | Aucta V1 Gap | V2 Action |
|---|---------|---------|--------------|-----------|
| 1 | **Service layer** | Str... | aucta | V2-TECHSPEC.md | Markdown | 12f68ad04cf39de29a11e50013840bedd791d48ff0d8274384102876f58ea6d0 | 2 | 896 |
createServices()`) per-request in tRPC context. No DI container — manual factories are simpler and sufficient at this scale. |
| 9 | **Shared tsconfig package** | `@calcom/tsconfig` with base, nextjs, react-library configs. | `@aucta/config` has base, library, app configs but is underutilized. No Expo-specific or Next.... | aucta | V2-TECHSPEC.md | Markdown | ee6f2e4dcf404cbb542c4e0c9bdb3394b4eb513bfcfcd4dc90ecbbb860c1816d | 3 | 896 |
# Auth, rate-limit, org-scope, error-converter, audit
```
#### 4.2 BaseTenantRepository
Create a generic base class that injects `organizationId` into every query:
```
packages/db/src/repositories/
base-tenant.repository.ts # Abstract base with tenantWhere()
session.repository.ts # Extends BaseTenantRe... | aucta | V2-TECHSPEC.md | Markdown | e22b9993c004fa3f760e8a718a3f295e41c5b338f12c0d518ca845022d53b0f5 | 4 | 896 |
)_ | HIGH |
| v5 | Alpha (12 releases, Mar-Apr 2026) | `alpha` | VERY HIGH |
Key findings:
- v4 may be superseded by v5 before reaching stable
- Neither v4 nor v5 supports Tailwind CSS v4 (both require TW v3 via NativeWind v4)
- v4 dropped `@legendapp/motion` for most components in favor of `react-native-reanimated`
-... | aucta | V2-TECHSPEC.md | Markdown | 6dce2326b34a63c0fcb11021ca8657668ce23621f0052a452685dcb502978298 | 5 | 896 |
.ts` | Minimal CI test fixtures |
| `packages/shared/src/env.ts` | Zod-validated environment variables |
| `.husky/pre-commit` | Lint-staged hook |
| `.lintstagedrc.json` | Staged file formatting config |
| `renovate.json` | Dependency update automation |
| `.github/dependabot.yml` | Security vulnerability alerts |
##... | aucta | V2-TECHSPEC.md | Markdown | 441980fb35e0c4981b4dda67a739940c45aa7ad6fca725f14a270875b3f883b6 | 6 | 896 |
with new activeOrganizationId
```
All org-scoped API calls read `activeOrganizationId` from the session. The tRPC context factory (Section 4.3) uses this to construct the `TenantContext`.
### 7.4 Invite Flow (Dashboard → Mobile)
Owner generates invite on dashboard → technician enters code in mobile app.
**Dashboard... | aucta | V2-TECHSPEC.md | Markdown | 04c84fa1c5fbe2c25da723e909b863a5a4eb6c670d57df4b40cab81ee5aa6bf9 | 7 | 896 |
storage: SecureStore,
}),
organizationClient(),
],
});
```
Session tokens stored in iOS Keychain / Android Keystore via `expo-secure-store`. No cookies on mobile — the Expo plugin handles token persistence automatically.
---
## 8. Milestone Task Plan
### Milestone 1a: Architecture (Foundation Refactor)
*... | aucta | V2-TECHSPEC.md | Markdown | 6b3f616c657716939f8f877b504b5950f156ed544abac2cf9d0bef9d32105c0e | 8 | 896 |
`bun run dx`)
- Env validation fails fast on missing secrets
- Structured logging in server
### Milestone 2: Dashboard & Infrastructure
**Goal:** Build the Next.js web dashboard. Add observability. Set up deployment pipelines.
| # | Task | Priority | Effort |
|---|------|----------|--------|
| 2.1 | Scaffold apps/we... | aucta | V2-TECHSPEC.md | Markdown | b7d49a51740a48e2c38de0ed4f8555418664e7091476156790ecc7ac5261253f | 9 | 896 |
--------|--------|
| **Technology Stack** | Replace the full tech stack dump with a concise summary table (15-20 rows max) and a pointer to TECH-SPEC.md for details. Keep version pins and critical gotchas inline. |
| **Conventions** | Populate with established patterns: service-repository pattern, DTO boundaries, Error... | aucta | V2-TECHSPEC.md | Markdown | 837b22e30ec5f2bc7fe6dfc898bd8d3a8acd03f97e2301e9385accf724af2861 | 10 | 896 |
Done
### Per-Task DoD
Every task is complete when ALL of the following are true:
- [ ] Code compiles (`bun run typecheck` passes for affected packages)
- [ ] All existing tests pass (`bun run test`)
- [ ] New code has tests (minimum 80% coverage for new files)
- [ ] Biome check passes (`bun run check`)
- [ ] No hard... | aucta | V2-TECHSPEC.md | Markdown | 52bdadb40fba58b39b7f3442b5d5deeb791310cace53987c86a84252c3101ea1 | 11 | 896 |
, feedback, invitations, members, audit_logs, org_settings.
Global tables: error_codes, equipment_models, subscription_plans, system_config.
### 12.3 Audit Logging
Two layers:
1. **Better Auth dash() plugin** -- automatic auth event logging (sign-in, sign-out, password changes, org/member events).
2. **Custom audit_... | aucta | V2-TECHSPEC.md | Markdown | 088c9370e2c2337d8a0472f38b2826797889091d7d426670400b97b587152658 | 12 | 896 |
api')`)
- Per-request child loggers with correlation ID
- PII redaction: `authorization`, `cookie`, `password`, `token`, `apiKey`, `email`
- JSON format in production, pretty-print in development
### 13.3 Custom Spans
Instrument the tRPC -> Service -> Repository chain with OpenTelemetry spans:
- `withSpan('session.cr... | aucta | V2-TECHSPEC.md | Markdown | ffe9c6247c140c227fa7df4c0b8558d615a4a4c752e53746ff31ca0674174402 | 13 | 896 |
/db/src/seed/staging.ts` -- Anonymized production-like data
Scripts: `db:seed:dev`, `db:seed:ci`, `db:reset` (push + seed).
### 14.4 Database Branching
Neon branch-per-PR for preview deployments:
- On PR open: Create Neon branch (instant, copy-on-write), run migrations, inject DATABASE_URL into Vercel preview
- On P... | aucta | V2-TECHSPEC.md | Markdown | 79f5ed8bcbd2b59894bc6027606851312596d621216631fb07c88204356457ad | 14 | 896 |
Qdrant vector search |
| Dashboard analytics | Real-time Postgres |
| Team management | Server auth verification |
| Sign in / sign up | Auth flow |
### 15.6 Background Handling
- **iOS:** `UIBackgroundModes: ["audio"]` for continued recording. WebSocket drops after ~30s in background. Reconnect on foreground.
- **An... | aucta | V2-TECHSPEC.md | Markdown | 79197d07345c93cfe22dd96463aee8d289e462f855663a6fb59ffadc9c02bf85 | 15 | 896 |
:** Dependency vulnerability check (best-effort, combined with Dependabot)
- Schedule: On push/PR to main + weekly Monday cron
---
## 17. Scalability
### 17.1 Session Mode Architecture
**Decision:** Sessions start audio-only by default. Video is activated on explicit technician request.
**Rationale:**
- **Cost:** ... | aucta | V2-TECHSPEC.md | Markdown | 920b35ed367083809a8e56df8caae787ef112e1701141110d611faff59765ccf | 16 | 896 |
$106,500/mo | ~$183,000/mo |
With audio-only default and Gemini 3.1 Flash Live, costs drop further to ~$90/mo at 100 daily sessions.
### 17.3 Cost Optimization
1. **Use newest model:** Gemini 3.1 Flash Live Preview is ~4x cheaper. Monitor for GA.
2. **Audio-only default:** Sessions start audio-only (15-min limit, no... | aucta | V2-TECHSPEC.md | Markdown | 81625aeb1a3992f4019d26cf1144cf84e20a0a58cf6d496b58afac8cff50b146 | 17 | 794 |
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
projects: ["packages/*", "apps/mobile"],
},
});
| aucta | vitest.config.ts | TypeScript | bd0e2650f0dbef78f5ba7b9cf734266fcfaa61b41cb6e15e3d9cda20739640fe | 0 | 40 |
{
"version": 1,
"lastRunAtMs": 1775293737817,
"turnsSinceLastRun": 1,
"lastTranscriptMtimeMs": 1775293737686.8508,
"lastProcessedGenerationId": "ce1d7467-83d7-4f0b-90ce-a7e362d8540a",
"trialStartedAtMs": null
}
| aucta | .cursor/hooks/state/continual-learning.json | JSON | 9668b7d64782ab51b391ad7a84d8dbf7284959ed63b11eab42b46e60f52e364d | 0 | 50 |
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: Lint, Typecheck, Test
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: acti... | aucta | .github/workflows/ci.yml | YAML | 2e60d9203f0326a251a168df6ebcfd89e1ceb0fe5e573d15478f4437d541670c | 0 | 156 |
# Build, Test & Development Commands
## Development Commands
- `bun install` — Install all workspace dependencies
- `bun run dev` — Start all dev servers via Turborepo
- `bun run dev --filter apps/web` — Start dashboard only
- `bun run dev --filter apps/mobile` — Start mobile only
- `bunx inngest-cli dev` — Start Inn... | aucta | agents/commands.md | Markdown | 5c40644764a978eb990fb6af58871dec3b757965739b44c712e2856ffffa129d | 0 | 609 |
# Knowledge Base — Domain & Product-Specific Information
This file contains domain knowledge about the Aucta product and codebase. For coding rules, see [`rules/`](rules/).
## Session Lifecycle
An AI session goes through these states:
```
IDLE → CONNECTING → ACTIVE → DISCONNECTED → RECONNECTING → ACTIVE
... | aucta | agents/knowledge-base.md | Markdown | f5baeda2046987019cf484b960d3155b3744ab2acf03f43b4cce288d096578c4 | 0 | 896 |
, `prompt.ts` (Gemini function declaration), `types.ts` (Zod schemas), and a co-located test file.
## Knowledge Base Confidence Levels
Articles have one of four confidence levels:
| Level | Source | Dashboard Badge | AI Attribution |
|-------|--------|----------------|---------------|
| `unverified` | AI-extracted f... | aucta | agents/knowledge-base.md | Markdown | 69d7a43aa6392be21406a2e795531dfdfeb8c685735924472754e89a9f8e59c7 | 1 | 896 |
+ (4.3.x)
- New Architecture (Fabric) enabled — default in Expo SDK 55
- `nativewind/babel` plugin in `babel.config.js`
- Tailwind v4 CSS-first config
Use `className` prop on all React Native components. Never use inline `style` objects on mobile.
## Regulatory Context
- **EU AI Act Art. 50:** Non-dismissible AI ind... | aucta | agents/knowledge-base.md | Markdown | f903952594f44a288a9deb1d3e810adae869b0eff6c27bc5d275fe66088341b8 | 2 | 165 |
# Aucta Agent Documentation Index
- **[../AGENTS.md](../AGENTS.md)** — Main guide (structure, tech stack, commands, boundaries)
- **[commands.md](commands.md)** — Full CLI command reference
- **[knowledge-base.md](knowledge-base.md)** — Domain knowledge, business rules, product specifics
## Rules Index
### Architect... | aucta | agents/README.md | Markdown | bc15d33888d60e8181f5c97030d6b45cede53c8dc1b4704c50e5d67a762be0d3 | 0 | 480 |
---
title: packages/ vs apps/modules/ Boundaries
impact: HIGH
tags: architecture, boundaries, imports
---
## packages/ vs apps/modules/ Boundaries
**Impact: HIGH**
Shared packages contain framework-agnostic code. App-specific code that depends on tRPC hooks, React Navigation, or Next.js APIs lives in `apps/{app}/mod... | aucta | agents/rules/architecture-feature-boundaries.md | Markdown | 403512205b38dfda062a352ea59d788f3906edb14cfaff3cd362c245c6144cf2 | 0 | 400 |
---
title: Auth Checks in page.tsx, Never in layout.tsx
impact: HIGH
tags: architecture, auth, next.js
---
## Auth Checks in page.tsx, Never in layout.tsx
**Impact: HIGH**
Permission and auth checks belong in `page.tsx`, never in `layout.tsx`. Layouts are shared across routes and re-render on navigation — putting au... | aucta | agents/rules/architecture-page-level-auth.md | Markdown | b86eb64b7fd64626ccef51a83d5141962cb96992668b6c9a776bf841b58cda1c | 0 | 344 |
---
title: Organize Code by Domain Using Vertical Slices
impact: CRITICAL
tags: architecture, vertical-slices, organization
---
## Organize Code by Domain Using Vertical Slices
**Impact: CRITICAL**
The codebase is organized by domain, not by technical layer. Each package or feature directory is a self-contained vert... | aucta | agents/rules/architecture-vertical-slices.md | Markdown | 836f8c6413fba3104e9f06c93ec5f24592851f85c889e9f0c292cf6f3cec8330 | 0 | 245 |
---
title: Git and CI Workflow
impact: HIGH
tags: git, ci, workflow
---
## Git and CI Workflow
**Impact: HIGH**
### Push Before Checking CI
Always push committed changes to the remote before waiting for CI status. CI runs on the remote repository state, not local commits.
**Proper sequence:**
1. Commit locally
2. ... | aucta | agents/rules/ci-git-workflow.md | Markdown | 4f608837095d88c1058ce57558a237a5ad581ca862cf4dbd9954e40b3b43f119 | 0 | 334 |
---
title: Hold Each Other Accountable for Quality
impact: MEDIUM
tags: culture, accountability, quality, teamwork
---
## Hold Each Other Accountable for Quality
**Impact: MEDIUM**
Cutting corners feels faster in the moment but creates problems that slow everyone down later. Every shortcut one person takes becomes e... | aucta | agents/rules/culture-accountability.md | Markdown | 0717e41a83feaf4c77f04c605233bf35431ca05b43b57b05e3b2f0d2ca8c9e48 | 0 | 313 |
---
title: Schema Changes and Migration Workflow
impact: HIGH
tags: data, drizzle, migrations, schema
---
## Schema Changes and Migration Workflow
**Impact: HIGH**
Schema changes require a disciplined workflow. Never modify the database directly.
**Workflow:**
1. Edit the schema in `packages/db/src/schema/`
2. Run... | aucta | agents/rules/data-drizzle-migrations.md | Markdown | ace670ec77cd6d2d4b7a9b8415f9a7e1e111a3a253f0638187a0869899408dc5 | 0 | 258 |
---
title: Use DTOs at Every Architectural Boundary
impact: CRITICAL
tags: data, dto, boundaries, security, types
---
## Use DTOs at Every Architectural Boundary
**Impact: CRITICAL**
Drizzle row types must never leak to the frontend. Explicit DTOs at every boundary prevent technology coupling, security risks, and fr... | aucta | agents/rules/data-dto-boundaries.md | Markdown | e52f287843882cfbfb1c3f5677b56e34502514f7e1b1e24ffd297b023c39afd2 | 0 | 488 |
---
title: Isolate Database Access Behind Repositories
impact: CRITICAL
tags: data, repository, drizzle, orm, isolation
---
## Isolate Database Access Behind Repositories
**Impact: CRITICAL**
Database access must go through Repository classes. Drizzle ORM calls must never appear in services, tRPC routers, or UI code... | aucta | agents/rules/data-repository-pattern.md | Markdown | f53b3e09d3c19d115e319603ed77127ae558316b1a54fad4bd69d1288f50d55b | 0 | 436 |
---
title: Use Constructor Injection for Loose Coupling
impact: HIGH
tags: patterns, dependency-injection, testing, coupling
---
## Use Constructor Injection for Loose Coupling
**Impact: HIGH**
Services and repositories receive their dependencies through constructor injection. This enables testing with mocks, build-... | aucta | agents/rules/patterns-dependency-injection.md | Markdown | 75c9f541899ed4bccc04185c8d492b253d4fbfdc74e8e02148ec3fe3a285cbe0 | 0 | 429 |
---
title: Only Comment Why, Never What
impact: MEDIUM
tags: quality, comments, readability
---
## Only Comment Why, Never What
**Impact: MEDIUM**
Comments should explain non-obvious intent, trade-offs, or constraints. Never narrate what code does — the code itself communicates that.
**Bad comments (narrating what)... | aucta | agents/rules/quality-code-comments.md | Markdown | b73a96e332b05a4219e2b3470fd646ed00074d60253defeed5298c32c0b395e8 | 0 | 302 |
---
title: Error Handling Patterns
impact: HIGH
tags: errors, trpc, services, repositories
---
## Error Handling Patterns
**Impact: HIGH**
Use descriptive errors with context. Use `ErrorWithCode` in services and repositories; use `TRPCError` only in tRPC routers.
### Descriptive Errors
```typescript
// Good — desc... | aucta | agents/rules/quality-error-handling.md | Markdown | 461f769bd13cb3cc35eec830d0719a2a49ea152dac04ae40aab818d449fe3be2 | 0 | 502 |
---
title: PR Creation Best Practices
impact: HIGH
tags: pull-request, code-review, workflow
---
## PR Creation Best Practices
**Impact: HIGH**
### Draft Mode
Create pull requests in draft mode by default. A human reviewer marks it as ready for review.
### PR Title
Use conventional commits: `feat:`, `fix:`, `refa... | aucta | agents/rules/quality-pr-creation.md | Markdown | e0ea2472ffe041425138e2995f663a99270f31952536120a18e246e81afd9b53 | 0 | 340 |
---
title: Prioritize Clarity Over Cleverness
impact: HIGH
tags: quality, simplicity, readability
---
## Prioritize Clarity Over Cleverness
**Impact: HIGH**
Code should be easy to read and understand on first pass. Simple systems reduce cognitive load for every engineer and every AI agent working in the codebase.
*... | aucta | agents/rules/quality-simplicity.md | Markdown | 42dceb69f4bf3e8e12c6820b706a7c35a3161d0450971f5e9208edb12a56fa2b | 0 | 350 |
---
title: Maintain 80%+ Test Coverage for New Code
impact: HIGH
tags: testing, coverage, quality
---
## Maintain 80%+ Test Coverage for New Code
**Impact: HIGH**
Every PR must have near-80%+ test coverage for the code it introduces or modifies. If you add 50 lines of new code, those lines must be covered by tests.
... | aucta | agents/rules/testing-coverage-requirements.md | Markdown | 5c566cf9f4ee4255785fba6d3e16785fbf99dd82155d064a3bc2d8f33fa8bf5d | 0 | 448 |
{
"expo": {
"name": "Aucta",
"slug": "aucta",
"version": "0.1.0",
"scheme": "aucta",
"orientation": "default",
"userInterfaceStyle": "automatic",
"icon": "./assets/icon.png",
"splash": {
"backgroundColor": "#FFFFFF"
},
"ios": {
"supportsTablet": false,
"bundle... | aucta | apps/mobile/app.json | JSON | 79affd79e55d6ec0b4addefa2ffa44ee090b72a7a983b677320eaef13af54193 | 0 | 246 |
module.exports = function (api) {
api.cache(true);
return {
presets: [
["babel-preset-expo", { jsxImportSource: "nativewind" }],
"nativewind/babel",
],
};
};
| aucta | apps/mobile/babel.config.js | JavaScript | bfab7dc5cc4cde2199ae2e7f999b4a9a708d6e30c75a24648723d67d4e9def3a | 0 | 51 |
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--color-background: #FFFFFF;
--color-surface: #F8FAFC;
--color-accent: #2563EB;
--color-destructive: #DC2626;
--color-text-primary: #0F172A;
--color-text-secondary: #475569;
--color-border-default: #E2E8F0;
... | aucta | apps/mobile/global.css | CSS | 1ce0c27a5efa772a1b392d883580989eb075da12c3d610c23382cedaf65e082f | 0 | 193 |
const { getDefaultConfig } = require("expo/metro-config");
const { withNativeWind } = require("nativewind/metro");
const path = require("path");
const projectRoot = __dirname;
const monorepoRoot = path.resolve(projectRoot, "../..");
const config = getDefaultConfig(projectRoot);
config.watchFolders = [monorepoRoot];
... | aucta | apps/mobile/metro.config.js | JavaScript | 84cecd3eee88f70d92e1454862fd9978f764403080ff1efeefcd90a50cd180b2 | 0 | 131 |
/// <reference types="nativewind/types" />
| aucta | apps/mobile/nativewind-env.d.ts | TypeScript | ba93dc3eac6e58df36919fd4905c4cf02cae566cbb7849c3e3de3451f8ac28ff | 0 | 14 |
{
"name": "mobile",
"version": "0.1.0",
"private": true,
"main": "expo-router/entry",
"scripts": {
"start": "expo start",
"dev": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
"typecheck": "tsc --noEmit",
"test": "vitest run"
},
"dependencies": {
... | aucta | apps/mobile/package.json | JSON | dca28e02b754e59d637efc057240cc6fd3839c6f035cfa3d0ae0e19b18109eac | 0 | 718 |
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./providers/**/*.{ts,tsx}",
"./stores/**/*.{ts,tsx}",
"./hooks/**/*.{ts,tsx}",
"./lib/**/*.{ts,tsx}",
],
presets: [require("nativewind/preset")],
theme: {
e... | aucta | apps/mobile/tailwind.config.js | JavaScript | 8c5d49335e254cbd4d3fd8d31bb79ec4f9dd9451164e18bd8eb641b520ab294c | 0 | 580 |
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true,
"paths": {
"@/*": ["./*"]
}
},
"include": ["**/*.ts", "**/*.tsx", "nativewind-env.d.ts"]
}
| aucta | apps/mobile/tsconfig.json | JSON | b349f75dca14ac4e001390f843e29772e22281bb6cb4c5f16dfc3b862581a692 | 0 | 79 |
import { defineProject } from "vitest/config";
export default defineProject({
test: {
name: "mobile",
environment: "node",
include: [
"stores/**/*.test.ts",
"hooks/**/*.test.ts",
"lib/**/*.test.ts",
],
},
});
| aucta | apps/mobile/vitest.config.ts | TypeScript | b6af27f08bcc9453f49244010656f0c76db7df309dd31e7a0f5c5ea8ae7bbf63 | 0 | 80 |
import { Stack } from "expo-router";
import { SessionProvider, useSession } from "@/providers/session-provider";
import { TRPCProviderWrapper } from "@/providers/trpc-provider";
import { LoadingSpinner } from "@/components/common/LoadingSpinner";
import "@/global.css";
export default function RootLayout() {
return (... | aucta | apps/mobile/app/_layout.tsx | TypeScript | 6c538c61fe28ed1f161229497524ed097b2b92083dbb45c4e4a7a146232f3e72 | 0 | 212 |
import { Stack } from "expo-router";
export default function AppLayout() {
return (
<Stack screenOptions={{ headerShown: false }}>
<Stack.Screen name="(tabs)" />
<Stack.Screen
name="session"
options={{
headerShown: false,
animation: "fade",
gestureEnabled... | aucta | apps/mobile/app/(app)/_layout.tsx | TypeScript | 54d03b605e6b6b5b8de3aecd90c873b5c65cddc2c440f33b78d39fa3bb9b0393 | 0 | 114 |
import { useCallback } from "react";
import { useLocalSearchParams, useRouter } from "expo-router";
import { FeedbackScreen } from "@/components/session/FeedbackScreen";
export default function FeedbackRoute() {
const { sessionId } = useLocalSearchParams<{ sessionId: string }>();
const router = useRouter();
con... | aucta | apps/mobile/app/(app)/feedback.tsx | TypeScript | a60a6d0601f6ad5905ad67a82ac09adfcbad89871417121385bf508ff0519f25 | 0 | 128 |
import { SessionScreen } from "@/components/session/SessionScreen";
export default function SessionRoute() {
return <SessionScreen />;
}
| aucta | apps/mobile/app/(app)/session.tsx | TypeScript | 1cbfc6017ddc7a2f0544f31a2e5bdd3ecd7d5d8c9b2db7eb1203c42c770e3488 | 0 | 29 |
import { Tabs } from "expo-router";
import { Home, Settings } from "lucide-react-native";
export default function TabLayout() {
return (
<Tabs
screenOptions={{
headerShown: false,
tabBarActiveTintColor: "#2563EB",
tabBarInactiveTintColor: "#475569",
tabBarLabelStyle: { fontS... | aucta | apps/mobile/app/(app)/(tabs)/_layout.tsx | TypeScript | 8e460af94ba70ab6c81a77eb245ec1794e8e16cddcf4f7c1c9ad71f60a6e55ca | 0 | 196 |
import { View, Text, Pressable } from "react-native";
import { useRouter } from "expo-router";
import { useCallback, useEffect, useState } from "react";
import { ScreenContainer } from "@/components/common/ScreenContainer";
import { LastSessionCard } from "@/components/home/LastSessionCard";
import { useSession } from ... | aucta | apps/mobile/app/(app)/(tabs)/index.tsx | TypeScript | 03e99eb47a889e65db2b0d265a37bcfaddf4a59d9391b8671282e0b8f7964f89 | 0 | 667 |
import { useState } from "react";
import {
View,
Text,
Pressable,
ScrollView,
Alert,
useColorScheme,
} from "react-native";
import { ScreenContainer } from "@/components/common/ScreenContainer";
import { useSession } from "@/providers/session-provider";
import { authClient } from "@/lib/auth-client";
import... | aucta | apps/mobile/app/(app)/(tabs)/settings.tsx | TypeScript | 82144d6e67ea1ebf94d74dab97992348b4b1ea70268580e3aa061c1928411dc1 | 0 | 896 |
}
</Text>
</View>
)}
</View>
</View>
{/* Section 2: Appearance */}
<View className="gap-sm">
<Text className="text-label text-text-secondary px-xs">
Appearance
</Text>
<View className="rounded-lg bg-su... | aucta | apps/mobile/app/(app)/(tabs)/settings.tsx | TypeScript | cbd662c480ad38d19a92d538badc4ea3f8fab59ccb0ad675e51df069f1cd1c0d | 1 | 591 |
import { Stack } from "expo-router";
export default function AuthLayout() {
return (
<Stack screenOptions={{ headerShown: false }}>
<Stack.Screen name="login" />
<Stack.Screen name="sign-up" />
<Stack.Screen name="org-choice" />
<Stack.Screen name="create-org" />
<Stack.Screen name=... | aucta | apps/mobile/app/(auth)/_layout.tsx | TypeScript | a1a3afbf1771002844878a37fd9a54c056b24c7967f6c92a857ff8fb380341a3 | 0 | 115 |
import { useState } from "react";
import {
View,
Text,
TextInput,
Pressable,
ActivityIndicator,
KeyboardAvoidingView,
Platform,
ScrollView,
} from "react-native";
import { ScreenContainer } from "@/components/common/ScreenContainer";
import { useTRPC } from "@/lib/api";
import { useMutation } from "@tan... | aucta | apps/mobile/app/(auth)/create-org.tsx | TypeScript | a831ab67b2066e7b938e94af56f94b99b9dce64cff5286fb9d11ef1d7126878f | 0 | 896 |
(errors).length === 0;
}
async function handleCreate() {
setError(null);
if (!validate()) return;
if (!industryType) return;
createOrgMutation.mutate({
name: name.trim(),
industryType,
location: location.trim(),
});
}
const isLoading = createOrgMutation.isPending;
ret... | aucta | apps/mobile/app/(auth)/create-org.tsx | TypeScript | 0ed71b764fd1ac4e25c3a9e475b37d15066aa5bce33b63e04d1369395cc1a6a7 | 1 | 896 |
-body text-text-primary bg-background ${
fieldErrors.location
? "border-destructive"
: "border-border-default"
}`}
placeholder="Frankfurt, Germany"
placeholderTextColor="#94A3B8"
value={location}
... | aucta | apps/mobile/app/(auth)/create-org.tsx | TypeScript | 84e17c5ce4c25bce4fde447b819cbff2835da2e8de745771ff77796a595ccd2f | 2 | 280 |
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { router } from "expo-router";
import { ScanLine } from "lucide-react-native";
import { useState } from "react";
import { Pressable, Text, View } from "react-native";
import { InviteCodeInput } from "@/components/auth/InviteCodeInput";
import {... | aucta | apps/mobile/app/(auth)/join-org.tsx | TypeScript | 0fa4434171fa9cabd062598f0cf7a29f8833c2c38d17b6d6d8ef43346098646f | 0 | 896 |
items-center justify-center gap-sm rounded-lg border border-border-default bg-surface"
accessibilityLabel="Scan QR Code"
accessibilityRole="button"
>
<ScanLine color="#2563EB" size={24} />
<Text className="text-body font-semibold text-text-primary">Scan QR Code</Text>
... | aucta | apps/mobile/app/(auth)/join-org.tsx | TypeScript | 62aa7a42f27bbb7a9afd3f31c988bd80c914b94fc07afd9ac69fd1b931bc1cb0 | 1 | 91 |
import { useState } from "react";
import {
View,
Text,
Pressable,
ActivityIndicator,
} from "react-native";
import { router, useLocalSearchParams } from "expo-router";
import { Building2, Users, Shield } from "lucide-react-native";
import { ScreenContainer } from "@/components/common/ScreenContainer";
import { ... | aucta | apps/mobile/app/(auth)/join-preview.tsx | TypeScript | 8d57ca3afe85c5c692915ab2658a97a7257ec4f0eee82e4f90b7d36273dbbb06 | 0 | 896 |
/Text>
</View>
<View className="flex-row items-center gap-sm">
<Shield color="#475569" size={16} />
<Text className="text-label text-text-secondary">
Role: {roleLabel}
</Text>
</View>
<View className="flex-row items-center gap-s... | aucta | apps/mobile/app/(auth)/join-preview.tsx | TypeScript | 8a7fd6d44172688cb8496a7081a3628cb54353c07851dc678b5d5d8702e2518f | 1 | 363 |
import { useState, useRef } from "react";
import {
View,
Text,
TextInput,
Pressable,
ActivityIndicator,
KeyboardAvoidingView,
Platform,
ScrollView,
} from "react-native";
import { Link, router } from "expo-router";
import { ScreenContainer } from "@/components/common/ScreenContainer";
import { authClien... | aucta | apps/mobile/app/(auth)/login.tsx | TypeScript | 0f6cd9b007ea2b423b8a980e57b33c5ba09bec39c6bac6bdb0938e5545dde895 | 0 | 896 |
destructive">{error}</Text>
)}
<View className="gap-sm">
<Text className="text-label text-text-primary">Email</Text>
<TextInput
className={`h-[48px] rounded-lg border px-md text-body text-text-primary bg-background ${
fieldErrors.ema... | aucta | apps/mobile/app/(auth)/login.tsx | TypeScript | aa289e0dc4f3b742f29803a40c4cbe6dbe9f8c6b7d4e52e24a02253e72010a98 | 1 | 668 |
import { View, Text, Pressable } from "react-native";
import { router } from "expo-router";
import { Building2, Users } from "lucide-react-native";
import { ScreenContainer } from "@/components/common/ScreenContainer";
export default function OrgChoiceScreen() {
return (
<ScreenContainer>
<View className="... | aucta | apps/mobile/app/(auth)/org-choice.tsx | TypeScript | 0b072796a9d0a8fe50b09ca72893352176a27c39f99cdc3aedbb29b719a06dc4 | 0 | 407 |
import { useState, useRef } from "react";
import {
View,
Text,
TextInput,
Pressable,
ActivityIndicator,
KeyboardAvoidingView,
Platform,
ScrollView,
} from "react-native";
import { Link, router } from "expo-router";
import { ScreenContainer } from "@/components/common/ScreenContainer";
import { authClien... | aucta | apps/mobile/app/(auth)/sign-up.tsx | TypeScript | 726e9f0f361ca488d8f4a28f32366432d8d2ee1b27c77f404a71daccf1f91d31 | 0 | 896 |
: "height"}
className="flex-1"
>
<ScrollView
contentContainerClassName="flex-1 justify-center"
keyboardShouldPersistTaps="handled"
>
<View className="gap-lg">
<Text className="text-heading text-text-primary">
Create your account
... | aucta | apps/mobile/app/(auth)/sign-up.tsx | TypeScript | 004bc1bda7fe8d0ef7f92d8b864198d582909e1a37a6fbb6047118df738c5013 | 1 | 896 |
="text-body text-text-secondary">
Already have an account?{" "}
<Text className="text-accent font-semibold">Log In</Text>
</Text>
</Pressable>
</Link>
</View>
</View>
</ScrollView>
</KeyboardAvoid... | aucta | apps/mobile/app/(auth)/sign-up.tsx | TypeScript | 7eb0d68b957950d08946c8937f8214f5f6c30b42b5a5f0b0a593d993f69290a0 | 2 | 75 |
import { useState, useRef, useCallback, useEffect } from "react";
import {
View,
Text,
TextInput,
Pressable,
Animated,
} from "react-native";
interface InviteCodeInputProps {
onComplete: (code: string) => void;
error?: string;
isLoading?: boolean;
}
const CODE_LENGTH = 6;
export function InviteCodeIn... | aucta | apps/mobile/components/auth/InviteCodeInput.tsx | TypeScript | 17627d83ab6df25facf4e9b66b57f4ff27ac181e3add195f99418ad3c7833a7b | 0 | 709 |
import { useState } from "react";
import { View, Text, Pressable, StyleSheet } from "react-native";
import { CameraView, useCameraPermissions } from "expo-camera";
interface QRScannerProps {
onScan: (code: string) => void;
onCancel: () => void;
}
export function QRScanner({ onScan, onCancel }: QRScannerProps) {
... | aucta | apps/mobile/components/auth/QRScanner.tsx | TypeScript | 642ef2817181eb84aa77a6b831998888fe0597317abe7f1673a00d17896d0d9e | 0 | 896 |
text-white">Cancel</Text>
</Pressable>
<Pressable
onPress={onCancel}
className="min-h-[44px] items-center justify-center"
accessibilityLabel="Enter code manually"
accessibilityRole="link"
>
<Text className="text-label text-white/7... | aucta | apps/mobile/components/auth/QRScanner.tsx | TypeScript | a4dbfc86f342c5e584a83a50d339d64b65e0c7e5a86a0e74a1709cb53b53184f | 1 | 233 |
import { ActivityIndicator, View } from "react-native";
import { lightColors } from "@/constants/colors";
interface LoadingSpinnerProps {
size?: "small" | "large";
}
export function LoadingSpinner({ size = "large" }: LoadingSpinnerProps) {
return (
<View className="flex-1 items-center justify-center bg-backgr... | aucta | apps/mobile/components/common/LoadingSpinner.tsx | TypeScript | 8890941946bc67399335d4c2bb38e124094060d45e83748b180fbef125862b78 | 0 | 100 |
import { SafeAreaView } from "react-native-safe-area-context";
interface ScreenContainerProps {
children: React.ReactNode;
className?: string;
}
export function ScreenContainer({ children, className }: ScreenContainerProps) {
return (
<SafeAreaView className={`flex-1 bg-background px-md ${className ?? ""}`}... | aucta | apps/mobile/components/common/ScreenContainer.tsx | TypeScript | 37e8758abd63037954f5b4ae6d47cad026f3f045a51bf3f5ea0fa9e8e212cef8 | 0 | 83 |
import { useState, useEffect } from "react";
import { View, Text } from "react-native";
import { getLastSession, type CachedSession } from "@/lib/storage/session-cache";
function formatDuration(ms: number): string {
const totalSeconds = Math.floor(ms / 1000);
const minutes = Math.floor(totalSeconds / 60);
const ... | aucta | apps/mobile/components/home/LastSessionCard.tsx | TypeScript | 9886172cfc57b929600cc48b158f5bba4e61b1f67c1b61a58ba1e931b3ccb5d9 | 0 | 706 |
import { View, Text, Pressable, Modal } from "react-native";
import { ShieldAlert } from "lucide-react-native";
import { ScreenContainer } from "@/components/common/ScreenContainer";
interface AIDisclosureModalProps {
visible: boolean;
onAccept: () => void;
}
export function AIDisclosureModal({ visible, onAccept ... | aucta | apps/mobile/components/session/AIDisclosureModal.tsx | TypeScript | 04452f509bc65f7ea8b9f6da0b451d4f995c70c443c7fa43d449682651a2ea06 | 0 | 299 |
import { View, Text } from "react-native";
/**
* Non-dismissible "AI" pill badge visible during the entire session.
* Satisfies EU AI Act Art. 50 transparency requirement (COMP-01).
* zIndex 9999 ensures it renders above all other UI elements.
* Position is controlled by the parent SessionHUD.
*/
export function ... | aucta | apps/mobile/components/session/AIIndicator.tsx | TypeScript | dd3013af2291178e07c1884de42b674d9be7150ddb802250e6bf3a6055633a8f | 0 | 151 |
import { View } from "react-native";
import { Mic } from "lucide-react-native";
import Animated, {
useAnimatedStyle,
useSharedValue,
withRepeat,
withTiming,
withDelay,
Easing,
cancelAnimation,
FadeIn,
FadeOut,
} from "react-native-reanimated";
import { useEffect } from "react";
interface AudioIndicat... | aucta | apps/mobile/components/session/AudioIndicator.tsx | TypeScript | 2adc91fd75c36073f128763fc5cd4691cfb4d18b93fb4afad7403f5cfef3de2c | 0 | 454 |
import { View, Text, Pressable } from "react-native";
import Animated, { FadeIn } from "react-native-reanimated";
interface ConnectionLostOverlayProps {
onStartNew: () => void;
}
export function ConnectionLostOverlay({ onStartNew }: ConnectionLostOverlayProps) {
return (
<Animated.View
className="absolu... | aucta | apps/mobile/components/session/ConnectionLostOverlay.tsx | TypeScript | 60b07fd20034350c39b3442fd13ce0d18ddf457e4102f718681ac189afeb1616 | 0 | 264 |
import { View, Text } from "react-native";
import Animated, {
useAnimatedStyle,
useSharedValue,
withRepeat,
withTiming,
Easing,
cancelAnimation,
} from "react-native-reanimated";
import { useEffect } from "react";
interface ConnectionStatusProps {
quality: "connected" | "reconnecting" | "lost";
}
const ... | aucta | apps/mobile/components/session/ConnectionStatus.tsx | TypeScript | 15b6c5f52fa19ed81832adc5282a4ebfa9d088676284439d736c59d3224dbdfd | 0 | 386 |
import { View, Text, Pressable } from "react-native";
import Animated, { FadeIn, SlideInDown } from "react-native-reanimated";
interface EndSessionDialogProps {
visible: boolean;
onConfirm: () => void;
onCancel: () => void;
}
export function EndSessionDialog({
visible,
onConfirm,
onCancel,
}: EndSessionDi... | aucta | apps/mobile/components/session/EndSessionDialog.tsx | TypeScript | 5d4c86a2904e1bd4701b24da5dc9fe26f441571dca67d45fb91159661389d09d | 0 | 414 |
import { useState, useEffect, useCallback } from "react";
import { View, Text, TextInput, Pressable, ScrollView } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
import { useTRPC } from "@/lib/api";
import { useMutation, useQuery } from "@tanstack/react-query";
import { useSessionSto... | aucta | apps/mobile/components/session/FeedbackScreen.tsx | TypeScript | ad3d60c28b3aeefa37fa0a87d9112a17e8991d75e9ad82226f5576e885378343 | 0 | 896 |
p-lg mt-lg">
<Text className="text-label text-text-secondary mb-sm">
Session Recap
</Text>
<View className="gap-xs">
<RecapRow
label="Duration"
value={recap ? formatDuration(recap.durationMs) : "--"}
/>
<RecapRow
... | aucta | apps/mobile/components/session/FeedbackScreen.tsx | TypeScript | f33034d8ebed2190b6e6387ee683b2104f75a90459036f0005ac39086716d8bc | 1 | 641 |
import { View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { AIIndicator } from "./AIIndicator";
import { ConnectionStatus } from "./ConnectionStatus";
import { AudioIndicator } from "./AudioIndicator";
import { StopButton } from "./StopButton";
interface SessionHUD... | aucta | apps/mobile/components/session/SessionHUD.tsx | TypeScript | 0001ae5c78565de018f232e009fe2c8915248bdd971b153a62b5406008623109 | 0 | 587 |
import { useRef, useState, useCallback, useEffect } from "react";
import { View, StyleSheet, useWindowDimensions } from "react-native";
import { CameraView } from "expo-camera";
import { useRouter } from "expo-router";
import { useSessionStore } from "@/stores/session-store";
import { useGeminiSession } from "@/hooks/u... | aucta | apps/mobile/components/session/SessionScreen.tsx | TypeScript | ca5a585b668759170f543f957264a2deae2bb771669ef875b66f62798e46b9cf | 0 | 896 |
style={StyleSheet.absoluteFill}
/>
)}
{/* HUD overlay (absolute fill, on top of camera) */}
{disclosureAccepted && status !== "idle" && status !== "completed" && (
<SessionHUD
orientation={orientation}
connectionQuality={connectionQuality}
isAISpeaking={i... | aucta | apps/mobile/components/session/SessionScreen.tsx | TypeScript | 5e47e725d7f8e2ea9dce2820ce0c239b09eb24eac523f9a50cd056957a6f11fc | 1 | 312 |
import { View, Pressable } from "react-native";
import { useCallback } from "react";
interface StarRatingProps {
value: number;
onChange: (rating: number) => void;
size?: number;
}
/**
* 1-5 star rating input. Each star has a 56x56dp minimum
* touch target for glove-friendly interaction (UX-01).
*/
export fu... | aucta | apps/mobile/components/session/StarRating.tsx | TypeScript | d568ec2a907301a838ca577553808c7df00e68a1ae57775115dcd11fd4a2e6db | 0 | 495 |
import { Pressable } from "react-native";
import { X } from "lucide-react-native";
interface StopButtonProps {
onPress: () => void;
}
export function StopButton({ onPress }: StopButtonProps) {
return (
<Pressable
onPress={onPress}
className="w-[56px] h-[56px] rounded-full bg-destructive items-cent... | aucta | apps/mobile/components/session/StopButton.tsx | TypeScript | 31419060f48c4b6fd9402917368b5a295f13b021966834858b3762e1dba3a92e | 0 | 140 |
export const lightColors = {
background: "#FFFFFF",
surface: "#F8FAFC",
accent: "#2563EB",
destructive: "#DC2626",
textPrimary: "#0F172A",
textSecondary: "#475569",
textOnAccent: "#FFFFFF",
borderDefault: "#E2E8F0",
borderFocus: "#2563EB",
} as const;
export const darkColors = {
background: "#0F172... | aucta | apps/mobile/constants/colors.ts | TypeScript | 2b2e5d3373345505d674ca00358f2722b2de01074216cc3909cbb59eea59e754 | 0 | 250 |
import { lightColors, darkColors } from "./colors";
export type ThemeMode = "light" | "dark" | "system";
export const themes = {
light: lightColors,
dark: darkColors,
} as const;
// Touch target sizes per UI-SPEC / UX-01
export const TOUCH_TARGETS = {
PRIMARY: 56, // 56x56dp for primary actions
SECONDARY: 44... | aucta | apps/mobile/constants/theme.ts | TypeScript | 4bd01744010134579273a89ffd6be3011296de6efd076b7313ba43201a401ee1 | 0 | 143 |
import { useEffect } from "react";
import { Platform } from "react-native";
/**
* Manages background audio lifecycle for active sessions.
*
* Android: Creates a foreground service notification via @notifee/react-native
* to keep the audio pipeline alive when the app is backgrounded (D-08).
*
* iOS: Background au... | aucta | apps/mobile/hooks/useBackgroundAudio.ts | TypeScript | 1a72499dff14af9dfe873ed6447cfcd470bca0f829f744c627438366da990d2e | 0 | 386 |
import { describe, it, expect, vi, beforeEach, type Mock } from "vitest";
import { MockWebSocket } from "../lib/gemini/__mocks__/websocket";
import { GeminiConnection } from "../lib/gemini/connection";
import type { GeminiConnectionDeps } from "../lib/gemini/connection";
import { AudioPlayback } from "../lib/gemini/aud... | aucta | apps/mobile/hooks/useGeminiSession.test.ts | TypeScript | 27d70b59eb5f4612c00ec36020cc3c6a2b17c0f204ee15d52d30f7c80843e83a | 0 | 896 |
(jpegBase64: string) => {
connection.sendVideo(jpegBase64);
},
});
// 2. Create connection with deps wired to pipeline
const deps: GeminiConnectionDeps = {
onAudioData: (pcmBase64: string) => {
playback.enqueueChunk(pcmBase64);
useSessionStore.getState().... | aucta | apps/mobile/hooks/useGeminiSession.test.ts | TypeScript | 05c512f05847341f204fed0f97ce321938647fb96cb61b407f5ba081397600a3 | 1 | 896 |
),
onResumptionUpdate: vi.fn(),
onGoAway: vi.fn(),
onSetupComplete: vi.fn(),
onDisconnect: vi.fn(),
onError: vi.fn(),
};
connectionInstance = new GeminiConnection(deps);
connectionInstance.connect({
token: "test-token",
model: "gemini-2.5-flash-... | aucta | apps/mobile/hooks/useGeminiSession.test.ts | TypeScript | 536e61e2a610464d46062b402c03151b4105e855b73147265ad2f009b08a0efc | 2 | 896 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.