Commit Graph

365 Commits

Author SHA1 Message Date
saravanakumardb1
8f737adc75 docs: add best practices and new product playbook 2026-02-28 20:50:12 -08:00
saravanakumardb1
022720bf6e feat(admin-dashboard): add edge middleware for API route auth gating 2026-02-28 20:25:42 -08:00
saravanakumardb1
5663ef568a docs: add agent prompts sync guide and workspace anti-patterns 2026-02-28 20:24:24 -08:00
saravanakumardb1
c3885059cf feat(dashboards): add error and not-found pages for admin and tracker dashboards 2026-02-28 20:24:15 -08:00
saravanakumardb1
33160a5daa feat(platform-service): add brains, daily-briefs, reflections, streaks modules 2026-02-28 20:24:06 -08:00
saravanakumardb1
4863b62055 feat(fastify-core): deny CORS by default when origin unset, add graceful shutdown handlers 2026-02-28 20:23:58 -08:00
saravanakumardb1
04f4a5f81e feat(api-client): add timeout, retry with exponential backoff for idempotent requests 2026-02-28 20:23:49 -08:00
saravanakumardb1
a97b730a89 feat(flags): seed default feature flags for all products on startup 2026-02-28 19:33:22 -08:00
saravanakumardb1
711621e3d9 fix(telemetry): add 'native' to ChannelEnum for mobile app clients 2026-02-28 19:26:52 -08:00
saravanakumardb1
1b2a5d5483 fix(platform-service): register 13 missing MindLyst Cosmos containers
Add containers used by MindLyst web API routes to platform-service
cosmos-init so the shared database has a single authoritative registry:

  share_cards, notification_log, analytics_events, brain_packs,
  chat_sessions, ab_experiments, waitlist_entries, email_captures,
  engagement_campaigns, context_triggers, monitoring_reports,
  nudge_state, triage_retries

Note: 'referrals' is intentionally skipped — the growth module already
registers it with /id partition key, but MindLyst uses /userId. This
partition key mismatch requires a separate data migration to reconcile.

All 1141 platform-service tests pass.
2026-02-28 19:23:04 -08:00
saravanakumardb1
ac106ed917 feat(tracker): add product switcher — filter items by any product
- product-config.ts: add getRequestProductId(req) + KNOWN_PRODUCTS
- product-context.tsx: client-side product selection context
- product-switcher.tsx: native select dropdown component
- tracker-client.ts: inject x-product-id header on all API calls
- proxy route: forward x-product-id header to platform-service
- providers.tsx: wrap with ProductProvider
- dashboard/layout.tsx: render ProductSwitcher in top nav
2026-02-28 14:15:18 -08:00
saravanakumardb1
ed7fa3f9a4 feat(admin): add product switcher — filter all data by any product
- product-config.ts: add getRequestProductId(req) helper + KNOWN_PRODUCTS list
- product-context.tsx: new React context storing selected productId in localStorage
- product-switcher.tsx: dropdown component with icons for all 4 products
- api.ts: pass x-product-id header from localStorage on all API calls
- providers.tsx: wrap with ProductProvider
- sidebar-nav.tsx: render ProductSwitcher between logo and nav
- repositories/users.ts + tokens.ts: accept optional productId parameter
- 8 API routes updated: users, auth/login, auth/forgot-password, seed,
  settings/plans, themes/active, analytics/retention, analytics/revenue
2026-02-28 14:12:15 -08:00
saravanakumardb1
ba2641c552 feat(platform-service): add push notification triggers module (6 endpoints, 22 tests)
- 7 trigger types: streak_risk, fast_milestone, stage_transition, social_invite, weekly_digest, achievement_unlocked, refeeding_reminder
- Built-in templates with variable interpolation
- CRUD + batch create + pending trigger query + status updates + stats
- push_triggers container (TTL 30d)
- 1,112 total platform-service tests passing
2026-02-28 14:10:11 -08:00
saravanakumardb1
20e0ef2201 feat(platform-service): add P2 Product Intelligence modules (5 modules, 61 tests)
- experiments: A/B testing with FNV-1a deterministic variant assignment (7 endpoints, 15 tests)
- analytics: metric ingest + daily/weekly/monthly rollup queries (3 endpoints, 14 tests)
- feedback: in-app bug/feature/praise submission + admin triage (6 endpoints, 14 tests)
- impersonation: admin user impersonation with audit trail (4 endpoints, 6 tests)
- changelog: public product changelog with admin CRUD (6 endpoints, 12 tests)
- 6 new Cosmos containers added to cosmos-init.ts
- All 5 route modules registered in server.ts
- 1,090 total platform-service tests passing
2026-02-28 14:04:07 -08:00
saravanakumardb1
c7c36e74b6 docs: add portable Docker/CI build instructions (prep-consumer.sh) 2026-02-28 13:17:03 -08:00
saravanakumardb1
44f36b0f1d chore: add learning_ai_clock + learning_ai_fastgap to all repo workflows (backup, push, sync) 2026-02-28 12:54:56 -08:00
saravanakumardb1
7d5ed86724 feat: add universal prep-consumer.sh for portable Docker/CI builds + fix tsc errors 2026-02-28 12:32:11 -08:00
saravanakumardb1
7210464019 fix(tracker-web): replace broken webpack alias with transpilePackages — build now succeeds
fix(config): mock Azure SDK in keyvault tests — eliminates timeouts, 26/26 pass in <1s
2026-02-28 12:11:37 -08:00
saravanakumardb1
062d87a93a test(react-auth): add tests for updateUser, onInit, and onInit-null-fallback 2026-02-28 11:48:48 -08:00
saravanakumardb1
1925370604 fix(react-auth): add updateUser to AuthContextValue + provider for local user state mutation 2026-02-28 11:38:27 -08:00
saravanakumardb1
da165a589a refactor(dashboards): wire @bytelyst/telemetry-client into admin-web + tracker-web, add onInit + baseUrl to react-auth 2026-02-28 11:27:57 -08:00
saravanakumardb1
b400c76c0a feat(packages): add @bytelyst/auth-client + telemetry-client, extend react-auth lifecycle
- @bytelyst/auth-client: browser/RN-safe auth API wrapper (17 tests)
- @bytelyst/telemetry-client: shared telemetry with configurable transport (11 tests)
- @bytelyst/react-auth: add register, forgotPw, changePw, deleteAccount, token refresh (10 tests)
- eslint.config: add missing browser globals
2026-02-28 04:49:46 -08:00
saravanakumardb1
4e94ecd721 feat(auth): add forgot-password/change-password API routes to admin dashboard + wire email delivery
Admin dashboard:
- platform-client.ts: Added forgotPasswordViaService, changePasswordViaService, deleteAccountViaService
- app/api/auth/forgot-password/route.ts: New API route proxying to platform-service
- app/api/auth/change-password/route.ts: New API route for authenticated password change

Platform-service (from prior session):
- auth/routes.ts: Added /auth/change-password and DELETE /auth/account endpoints, wired email verification on register
- auth/types.ts: Added ChangePasswordSchema and DeleteAccountSchema
- delivery/subscribers.ts: Updated password reset subscriber, added email verification subscriber
- delivery/channels/email.ts: Added ByteLyst email API provider (sendViaBytelyst)
- delivery/types.ts: Added 'bytelyst' provider
- events/types.ts: Added resetToken/displayName to user.password_reset, added user.email_verification_requested event
2026-02-28 04:17:04 -08:00
saravanakumardb1
e3e332cee6 docs: update documentation 2026-02-28 03:28:48 -08:00
saravanakumardb1
e6eee35544 docs: fix stale references to consolidated services and migrated dashboards 2026-02-28 03:06:44 -08:00
saravanakumardb1
27f271d983 feat(platform): add P1 operational maturity modules — sessions, maintenance, exports, IP rules
- modules/sessions: device session tracking, revoke one/all, admin force-revoke (9 tests)
- modules/maintenance: 4 modes (off/read_only/maintenance/emergency), bypass roles/IPs, scheduled windows (14 tests)
- modules/exports: GDPR data export jobs for users/audit/telemetry/usage/subscriptions/licenses (10 tests)
- modules/ip-rules: IP allow/deny with CIDR matching, temporary blocks with expiry (10 tests)
- cosmos-init: 4 new containers (sessions, ip_rules, export_jobs, maintenance_windows)
- 1029 platform-service tests passing across 74 test files
2026-02-28 02:47:22 -08:00
saravanakumardb1
069d1ffda9 docs: add 19 reusable AI coding agent skills + sessions module scaffold 2026-02-28 02:41:22 -08:00
saravanakumardb1
662d417267 feat(platform): add email delivery module, wire event bus into auth, update roadmap
- modules/delivery: 8 email templates, renderer, SendGrid/Postmark/console adapters, dispatcher, delivery log, 21 tests
- modules/delivery/subscribers: event bus listeners for user.created, password_reset, email_verified
- auth/routes: emit bus events on register, forgot-password, verify-email (fire-and-forget)
- cosmos-init: delivery_log container (pk /pk, 90d TTL)
- roadmap: updated inventory (30 modules, 14 packages, 988 tests), marked P0 items complete
- 988 platform-service + 14 events = 1002 total tests passing
2026-02-28 02:36:58 -08:00
saravanakumardb1
772f428967 feat(platform): add P0 foundational modules — event bus, scheduled jobs, password reset, email verification, status page 2026-02-28 02:29:08 -08:00
saravanakumardb1
0e468f74ea docs: update AGENTS.md — add dashboards/ to monorepo layout 2026-02-28 02:19:50 -08:00
saravanakumardb1
2d54795c30 feat(dashboards): migrate admin + tracker dashboards to common-plat as product-agnostic
- Copy admin-dashboard-web → dashboards/admin-web
- Copy tracker-dashboard-web → dashboards/tracker-web
- Update pnpm-workspace.yaml to include dashboards/*
- Replace file: refs with workspace:* for @bytelyst/* packages
- Replace all hardcoded LysnrAI/lysnn.com branding with generic platform refs
- Make telemetry use NEXT_PUBLIC_PRODUCT_ID / PRODUCT_ID env vars
- Update mock credentials, seed data, invitation codes, placeholders
- Update READMEs, e2e tests, unit tests for product-agnostic content
- Both dashboards pass tsc --noEmit clean
2026-02-28 02:17:35 -08:00
saravanakumardb1
9a5e93bf05 feat(nomgap): add social-fasting + meal-log modules (47 tests, 2 Cosmos containers) 2026-02-28 00:37:46 -08:00
saravanakumardb1
5e8f133816 feat(webhooks): add webhook subscriptions module — 15 event types, HMAC signing, retry delivery 2026-02-28 00:27:32 -08:00
saravanakumardb1
b4237acaa2 feat(chronomind): add routines, households, shared-timers modules (88 new tests, 847 total) 2026-02-28 00:05:18 -08:00
saravanakumardb1
eae39cbd4e chore(windsurf): refresh chat history archive snapshot
- Updated repo docs and workflows from all 4 repos
- Stats: 50 conversations (540M), 45 memories, 182 tracker dirs, 1810 edit history entries
- Gitignore launchd log files
2026-02-28 00:04:09 -08:00
saravanakumardb1
1a4b3c1fb3 move oss_llm/ from learning_ai_2nd_brain 2026-02-28 00:03:37 -08:00
saravanakumardb1
a32978f9c3 feat(windsurf): add chat history archive auto-refresh tooling
- refresh.sh: idempotent script, auto-discovers repos, updates symlinks + copies docs/workflows
- launchd plist: scheduled daily at 11 PM + on login
- /refresh-chat-history workflow for on-demand Cascade runs
- README updated with auto-refresh docs and full data inventory
- Repo docs and workflows refreshed from all 4 repos
2026-02-28 00:02:04 -08:00
saravanakumardb1
c1a1f86cd6 feat(timers): add timer CRUD endpoints for ChronoMind cloud sync (42 new tests, 759 total) 2026-02-27 23:48:31 -08:00
saravanakumardb1
89b6588e1d feat(extraction): add timer-parse built-in task for ChronoMind NL parsing — 6 classes, 3 examples 2026-02-27 23:16:27 -08:00
saravanakumardb1
1744bcf63f feat(api): NomGap fasting modules — sessions CRUD + stats, 14 built-in protocols + custom CRUD, body stages + autophagy confidence (47 new tests, 717 total) 2026-02-27 22:32:28 -08:00
saravanakumardb1
d333b23326 chore(workflows): add learning_ai_clock to all repo_* workspace workflows
Updated all 5 repo_ workflows to cover all 4 workspace repos:
- repo_sync-repos.md
- repo_push-repos.md
- repo_backup-and-push.md
- repo_backup-main-branch.md
- repo_commit-workspace.md
2026-02-27 17:19:58 -08:00
saravanakumardb1
a09529c441 ci: update CI/CD configuration 2026-02-27 17:09:57 -08:00
saravanakumardb1
9f2bd0877f fix: correct gitignore path for APPS/ and remove accidental submodule ref
- Fix .gitignore: __LOCAL_LLMs/APPS/ → APPS/ (relative to .gitignore location)
- Remove accidentally staged voicebox embedded git repo from index
2026-02-27 17:09:26 -08:00
saravanakumardb1
41e7a125da chore: update project files 2026-02-27 17:09:25 -08:00
saravanakumardb1
e5acd1dc26 fix(mission-control): dedupe whisper binaries and clean WSL package metadata
Prevent duplicate React keys by de-duplicating whisper binary names and improve WSL package reporting so system metadata shows stable, user-friendly versions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-22 18:03:59 -08:00
saravanakumardb1
a7790b7115 chore(local-llms): add WSL Ollama connectivity test script
Add a helper script to quickly verify Ollama reachability across localhost, WSL gateway, and nameserver paths to speed up Windows+WSL troubleshooting.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-22 16:46:18 -08:00
saravanakumardb1
112341e162 fix(local-llms): harden WSL setup and dashboard Ollama connectivity
Stabilize Windows+WSL setup by fixing script line-ending pitfalls, WSL Ollama host detection, and dashboard startup behavior so models are detected reliably in Mission Control.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-22 16:44:58 -08:00
saravanakumardb1
6dca1bd6f1 docs(windows): rename mac-vs-windows → all-machines-comparison, add 4-machine tables
- Renamed mac-vs-windows-comparison.md → all-machines-comparison.md
- Added Fleet Overview table (all 4 machines at a glance)
- Added All Machines — Hardware Comparison (4-column ASCII table)
- Added All Machines — AI/ML Capability (inference, TTS, fine-tuning, OpenClaw, Voicebox)
- Added All Machines — Software Development (iOS, CUDA, Docker, portability)
- Added All Machines — Recommended Roles (PRIMARY/SECONDARY per workload)
- Added All Machines — Cost & Power (purchase, electricity, fleet totals)
- Preserved original Mac vs Razer deep-dive sections below
- Updated README.md file reference
2026-02-22 15:47:44 -08:00
saravanakumardb1
9f6c216d0f docs(voicebox): add setup guide for local voice cloning studio
Covers: what it is, architecture diagram, prerequisites (Python 3.12,
Bun, Rust), step-by-step install for macOS and WSL2, running backend
+ web frontend, first use (model download, voice profiles, story editor),
Make commands reference, platform performance table, troubleshooting
(proxy workaround, MPS/CUDA, transformers conflict), file structure,
and relevance to LysnrAI
2026-02-22 15:45:32 -08:00
saravanakumardb1
c50f271e1c docs(windows): flesh out Dell P16s spec with full hardware details + use cases
Expanded from 7-line raw system info to full spec document:
- CPU (Ryzen 7 PRO 7840U Zen 4, 8c/16t, AVX-512, NPU)
- GPU (Radeon 780M RDNA 3 iGPU, DirectML/ROCm)
- RAM (32GB DDR5, 24GB usable, VRAM allocation explained)
- Capabilities assessment (dev workstation, light AI, remote dev)
- AI/ML section (Ollama CPU, ROCm experimental, Ryzen AI NPU)
- Portable dev setup diagram + OpenClaw client use case
- 4-machine comparison table
- Optimization tips (reclaim RAM from iGPU, WSL2 memory limit)
- BIOS recommendations
2026-02-22 15:43:20 -08:00