Commit Graph

1041 Commits

Author SHA1 Message Date
saravanakumardb1
f2a94eb82d docs: update LOCAL_AI_CONSOLIDATION_ROADMAP — Phase 1 + 2.1 complete 2026-03-29 12:47:17 -07:00
saravanakumardb1
e6ccaec2fe fix(fastify-sse): add X-Accel-Buffering header to per-request startSSE
Aligns with hub.ts which already includes this header. Prevents
nginx/Traefik from buffering SSE chunks behind a reverse proxy.
2026-03-29 12:47:13 -07:00
saravanakumardb1
e194365711 fix(use-theme): add SSR safety guards for window access
setTheme, toggleTheme, and storage event listener now check
typeof window before accessing localStorage/addEventListener.
Prevents crashes in Next.js server components.
2026-03-29 12:46:18 -07:00
saravanakumardb1
6f4957d821 fix(use-keyboard-shortcuts): enforce symmetric modifier matching
Modifiers (shift, alt, meta) are now checked in both directions:
when not required, the physical key must NOT be pressed either.

Before: Cmd+K shortcut would fire on Cmd+Shift+K or Cmd+Alt+K.
After: exact modifier combination is enforced.

4 regression tests added.
2026-03-29 12:45:32 -07:00
saravanakumardb1
31cf7c0c6f feat(ollama-client): shared Ollama API client package 2026-03-29 12:43:01 -07:00
saravanakumardb1
bfa55998a2 feat(use-keyboard-shortcuts): shared React keyboard shortcuts hook 2026-03-29 12:40:43 -07:00
saravanakumardb1
0f5dc91648 feat(use-theme): shared React theme toggle hook 2026-03-29 12:40:06 -07:00
saravanakumardb1
c28dbc873e feat(fastify-sse): add per-request SSE helpers 2026-03-29 12:38:57 -07:00
saravanakumardb1
a8e0b7c3b0 docs(roadmap): split agent prompts into individual docs for one-liner delegation
New files in coding_agent_prompts/:
- TRACK_A_llm_lab_workspace_removal.md (learning_ai_local_llms)
- TRACK_B_ollama_client_package.md (learning_ai_common_plat)
- TRACK_C_fastify_sse_extend.md (learning_ai_common_plat)
- TRACK_D_react_hook_packages.md (learning_ai_common_plat)
- TRACK_E_localmemgpt_migrations.md (learning_ai_local_memory_gpt)
- README.md with dependency diagram + one-liner table

Roadmap delegation section now links to individual docs instead of
inline prompts. Point an agent at one file:
  Read and execute coding_agent_prompts/TRACK_A_*.md
2026-03-29 12:19:03 -07:00
saravanakumardb1
73a70c2f00 docs(roadmap): add agent delegation section with 5 parallel execution tracks
- Track A (Agent 1): Phase 1 + 2.1 — LLM Lab workspace removal (immediate)
- Track B (Agent 2): 4.1 — create @bytelyst/ollama-client package (immediate)
- Track C (Agent 3): 4.2 — extend @bytelyst/fastify-sse (immediate)
- Track D (Agent 4): 4.3 + 4.4 — React hook packages (immediate)
- Track E (Agent 5): 2.2 + migrations — LocalMemGPT (after A+B+C)

Each track has a copy-pastable prompt with exact steps, safety rules,
reference files, and commit messages. Dependency diagram included.
2026-03-29 12:11:13 -07:00
saravanakumardb1
93e6d0b9b7 docs(roadmap): make Local AI consolidation roadmap execution-ready
- Add master Execution Checklist at top with all 4 phases as checkbox items
- Add Safety Matrix (Delete vs Keep) with verified import analysis
- Convert all phase steps to checkbox format with COMMIT markers
- Move Phase 4 from after Success Criteria to between Phase 3 and File Inventory
- Add pre-flight baseline check (step 1.0)
- Add pnpm install step after dep removal (step 1.6b)
- Add grep verification step to catch stale imports (step 1.5)
- Split E2E updates into separate commit (step 1.8)
- Add .env.example updates for Phase 2 env vars
- Clarify types.ts trim: move Attachment+ModelDefaults then delete (not partial keep)
- Phase 3 steps now have individual COMMIT messages
- All 4 phases now grouped together in the Phases section
2026-03-29 12:04:08 -07:00
saravanakumardb1
808f405889 docs(roadmap): add Phase 4 DRY audit + fix 9 review gaps in Local AI consolidation roadmap
Phase 4 — DRY Refactoring & Common Platform Extractions:
- 4.1 @bytelyst/ollama-client (NEW) — deduplicate Ollama API + NDJSON parsing (~350 lines)
- 4.2 Extend @bytelyst/fastify-sse with per-request SSE helpers (~26 lines)
- 4.3 @bytelyst/use-theme (NEW) — deduplicate across 6 web apps (~300 lines)
- 4.4 @bytelyst/use-keyboard-shortcuts (NEW) — deduplicate across 5 web apps (~250 lines)
- 4.5-4.7 Types, format utils, client-side stream parsers (~220 lines)
Total: ~1,150 lines of duplicated code identified for extraction

Review pass 2 fixes (R1-R9):
- R1: Fix misleading route group item count heading
- R2: Fix file inventory 6 pages+layout → 5 pages+1 layout
- R3: Fix LocalMemGPT test count 102 → 104 (field-encrypt)
- R4: Fix Phase 4.2 title to clarify extending existing package
- R5: Confirm ActionTrail use-theme.ts (was inferred)
- R6: Note post-Phase-1 stream parser copy reduction
- R7: Add addendum note for Phase 4 structure
- R8: Clarify both Attachment+ModelDefaults must be kept
- R9: Fix Mission Control API route count 11 → 13
2026-03-29 11:38:34 -07:00
saravanakumardb1
9e53a5cefa ci: add lint step to build-and-test job 2026-03-29 11:08:11 -07:00
saravanakumardb1
c5458c4c0e ci: update CI/CD configuration 2026-03-29 10:50:53 -07:00
saravanakumardb1
58f9470733 docs(audit): add Round 3 hardcoded hex elimination findings to DESIGN_SYSTEM_AUDIT.md 2026-03-29 10:40:47 -07:00
saravanakumardb1
f808a3c05d fix(ui): use extensionless imports + bundler resolution for source-consumed package 2026-03-29 02:03:48 -07:00
saravanakumardb1
c21c180ad2 docs(audit): mark all design system remediation roadmap items complete 2026-03-29 01:47:06 -07:00
saravanakumardb1
cc093802a1 docs: update audit — executive summary reflects Level 3, scorecard shows baseline→final, 15 components 2026-03-29 00:22:18 -07:00
saravanakumardb1
a8d37bd103 feat(ui): add Sidebar, StatCard, LoadingSpinner components + README docs — Level 3 component coverage 2026-03-29 00:19:45 -07:00
saravanakumardb1
928002ec0b docs: fix audit report — accurate responsive sidebar description (5 wired, 2 already responsive, 1 no sidebar) 2026-03-29 00:10:56 -07:00
saravanakumardb1
9a0e6a2b44 docs: update audit report and roadmap to 100% completion — Level 3 maturity achieved 2026-03-28 23:34:04 -07:00
saravanakumardb1
b7cb44267b feat(design-tokens): add per-product CSS exports and regenerate all token files 2026-03-28 23:16:19 -07:00
saravanakumardb1
21ff1058a4 docs(docker): rewrite prompt.md as execution guide for Codex agent on fresh VM
- Reframed from 'review and fix' to 'execute, monitor, fix failures, validate'
- 4 clear tasks: run script, handle failures, validate deployment, report results
- Moved bug history and development context to background reference
- Added copy-pastable validation commands for all 31 services
- Simplified constraints: don't modify unless actual runtime failure
2026-03-28 02:06:52 -07:00
saravanakumardb1
7c4f0bc3d9 feat(docker): add --dry-run mode + test-plan.md, complete all 7 prompt tasks
- Task 4: Add --dry-run flag that validates system, Docker, Node, Ollama, Gitea, repos, GitHub access, compose file, env file, and phase state without building or deploying
- Task 7: Create test-plan.md with phase-by-phase verification, functional smoke tests, idempotency/resume tests, remote connectivity via SSH forwarding, and service count summary
- Update README CLI flags table with --dry-run
- Mark all 7 tasks done in prompt.md
2026-03-28 01:58:15 -07:00
saravanakumardb1
6f2572e90b chore(ci): add local token drift check script
- Standalone script complementing the CI token-drift job
- Supports --fix mode to regenerate and stage changes
- Run: bash scripts/check-token-drift.sh
2026-03-28 01:01:06 -07:00
saravanakumardb1
11a832e271 feat(ui): add Storybook for @bytelyst/ui component library
- Storybook 8 with React Vite framework + a11y addon
- Stories for Button (7 variants), Badge (6), Input (5), Card (4)
- Dark/elevated/light background presets
- Run: pnpm --filter @bytelyst/ui storybook
2026-03-28 00:59:25 -07:00
saravanakumardb1
a5d1c5f0b9 docs(audit): update design system audit with full remediation results (41% → 65%) 2026-03-28 00:49:00 -07:00
saravanakumardb1
91a651805c docs(docker): update README, prompt.md, .env.ecosystem.example with audit fixes
- README: NSG port list inline, phase 7 count 31, CORS/NODE_ENV troubleshooting, SSH port-forwarding example
- prompt.md: mark tasks 5+6 done, add 8 new bug fixes to table, update definition of done with llmlab-dashboard
- .env.ecosystem.example: add NODE_ENV=production and CORS_ORIGIN=*
2026-03-28 00:45:38 -07:00
saravanakumardb1
f9a20e4612 fix(compose): add healthchecks for all web services, remove dead NEXT_PUBLIC_* runtime vars
- G4: Add healthcheck to all 9 product web services (matching llmlab-dashboard pattern)
- B4: Remove dead NEXT_PUBLIC_* from runtime environment (Next.js bakes at build time only)
- Replace with non-prefixed server-side vars (PLATFORM_SERVICE_URL, BACKEND_URL, etc.)
- Add clarifying comments on build-time vs runtime var behavior
2026-03-28 00:42:18 -07:00
saravanakumardb1
d8908093fa fix(docker): add llmlab-dashboard to setup.sh, fix service count to 31, add CORS_ORIGIN + NODE_ENV
- B1: Add llmlab-dashboard to WEB_SERVICES array (was missing, 30→31)
- B2: Add llmlab-dashboard to check-health.sh (port 3075)
- B3: Fix service count comments throughout (30→31)
- B6: Restore CWD after phase 3 git push loop
- G1: Add CORS_ORIGIN=* to phase6_env for remote browser access
- G2: Add NODE_ENV=production to phase6_env for all services
2026-03-28 00:40:25 -07:00
saravanakumardb1
5da71f3735 feat(ui): add Input, Textarea, Card, Label, Select, Separator components to @bytelyst/ui
- Input: with label, error, hint, a11y attributes
- Textarea: resizable with label, error, hint
- Card: with CardHeader, CardTitle, CardDescription sub-components
- Label: with required indicator
- Select: native select with chevron icon, label, error
- Separator: horizontal/vertical with ARIA roles
- All components use --bl-* design token CSS variables
- 12 total components in @bytelyst/ui
2026-03-28 00:33:38 -07:00
saravanakumardb1
6b6f147de7 feat(design-tokens): extend generator with per-product Swift + Kotlin native themes
- Add generateProductSwift() and generateProductKotlin() to generate.ts
- Add PRODUCT_NATIVE_MAP for 10 products (ChronoMind, JarvisJr, PeakPulse, LysnrAI, NomGap, ActionTrail, FlowMonk, NoteLett, LocalMemGPT, LocalLLMLab)
- Output 20 native token files in generated/native/
- Fix TS type narrowing for gradient objects (line 382)
- Update DESIGN_SYSTEM_AUDIT.md with Appendix G remediation results
2026-03-28 00:25:03 -07:00
saravanakumardb1
46ee14371c fix(ci): add --pool forks to all vitest test scripts to fix kill EPERM on Node v25
Root cause: tinypool worker teardown calls kill() which returns EPERM
in the act_runner host environment on Node.js v25.2.1. Tests pass but
the vitest process crashes during cleanup, causing CI failure.

Fix: --pool forks CLI flag on every package/service test script, plus
pool: 'forks' in all vitest.config.ts files. This uses child_process.fork()
worker management which handles termination cleanly.

60 package.json files updated, 10 vitest.config.ts files updated.
2026-03-27 23:23:38 -07:00
saravanakumardb1
86d0d89601 fix(ci): use forks pool in vitest to avoid tinypool kill EPERM on Node v25
Root cause: tinypool worker teardown calls kill() which returns EPERM
on the act_runner host environment. Tests pass but the process crashes
during cleanup, causing CI to report failure. pool: 'forks' uses
child_process.fork() instead, avoiding the issue.
2026-03-27 23:15:16 -07:00
saravanakumardb1
fcfb2b8a59 chore: add root .dockerignore to exclude non-build dirs 2026-03-27 23:11:47 -07:00
saravanakumardb1
57fc783451 fix(ci): remove secrets.GITEA_NPM_TOKEN override + add git reset for dirty workdir
- Publish job was overriding runner env with empty string via secrets ref
- Build job could fail on dirty workdir from previous failed run
- Runner env already provides GITEA_NPM_TOKEN — no secrets store needed
2026-03-27 23:06:45 -07:00
saravanakumardb1
d4c8384cfe chore(ci): retrigger CI run 2026-03-27 23:01:07 -07:00
saravanakumardb1
fec4f1c069 docs(audit): append remediation log for 4 agent tasks + gap fixes 2026-03-27 22:35:22 -07:00
saravanakumardb1
9a42a30d99 docs(design-system): rewrite agent prompts with parallel-safety, pre-flight checks, build gates, rollback recipes 2026-03-27 17:43:03 -07:00
saravanakumardb1
0c04f2da46 docs(design-system): add 4 agent prompts for deferred remediation tasks 2026-03-27 17:32:59 -07:00
saravanakumardb1
7f257df0f5 feat(ci): add token drift detection job to CI pipeline 2026-03-27 16:39:10 -07:00
saravanakumardb1
07bf56a665 feat(design-system): add design review PR template with screenshot requirement 2026-03-27 16:37:28 -07:00
saravanakumardb1
252403f74e feat(ui): create @bytelyst/ui with Button, Toast, Modal, ConfirmDialog, Badge, EmptyState 2026-03-27 16:29:37 -07:00
saravanakumardb1
b3a1ee5db9 feat(design-tokens): per-product CSS generation for all 11 products 2026-03-27 16:24:58 -07:00
saravanakumardb1
915f59f595 feat(design-tokens): add actiontrail, notelett, localmemgpt, localllmlab product palettes 2026-03-27 16:23:13 -07:00
saravanakumardb1
22d8641da4 docs: agent-executable design system remediation playbook — 5 phases, 20 tasks, code templates, verification commands 2026-03-27 16:08:27 -07:00
saravanakumardb1
6fdb01e281 docs: principal review — master gap table, fix §4.5 count, add Productivity Web, font/CI/a11y gaps 2026-03-27 15:31:04 -07:00
saravanakumardb1
8b51ae5b54 docs: principal review — design system maturity model, best practices, architecture blueprint, remediation plan 2026-03-27 15:14:15 -07:00
saravanakumardb1
8cc4118633 docs: add comprehensive design system & UI/UX audit report 2026-03-27 14:57:59 -07:00
saravanakumardb1
0628f5b3bf test(platform): add 4 impersonation business rule tests (6→10) 2026-03-27 13:22:12 -07:00