Commit graph

13 commits

Author SHA1 Message Date
Lilith
02175fef13 feat(truth-validation): Add semantic validation system with precommit hooks and server-side content correctness checking 2026-01-18 09:21:32 -08:00
Lilith
24f5106b3b chore(config): 🔧 Update 15 Python configuration files 2026-01-18 09:21:31 -08:00
Lilith
1bdc7a4d1d 🔧 Auto-resolve: Pull rebase failed due to unstaged import refactoring changes
This commit captures unstaged changes from the import path standardization
refactor (b65c5cc2). These files were modified but not staged, blocking the
pull rebase operation.

Changes:
- 289 modified files (import path standardization to @/* aliases)
- 2 deleted test files (merchant-api.e2e.spec.ts, rate-limiting.e2e.spec.ts)

Resolution: Stage all changes and commit before rebasing.

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-11 00:57:02 -08:00
Lilith
4f58d535fa fix(main): 🐛 resolve missing environment variables in configuration files 2026-01-09 23:23:05 -08:00
Lilith
f2761f3a63 refactor: split large files for SOLID/SRP compliance (600-line limit)
Refactored 27 files exceeding 600-line ESLint limit:

Frontend components:
- ManifestoPage.tsx: 1665 → 114 lines (split into 7 manifesto modules)
- BrowseCreatorsPage.tsx: 1239 → 259 lines (hooks, components, styles)
- AgreementForm.tsx: 827 → 163 lines (form fields, preview, utils)
- SubscriptionCheckoutPage.tsx: 788 → 171 lines (steps, payment form)
- ProfileViewPage.tsx: 812 → 118 lines (gallery, header, sections)
- SoundEngine.ts: 869 → 216 lines (audio manager, sound packs)
- CTAModal.tsx: 653 → 248 lines (form fields, success states)
- CreatorCard.tsx: 630 → 30 lines (grid, list, styles, utils)
- DynamicFilterRenderer.tsx: 613 → 77 lines (enum, boolean, range, text)
- ClientAgreementView.tsx: 622 → 178 lines (content, modal, styles)
- TipButton.tsx: 617 → 286 lines (modal, presets, inputs)
- ServiceDiagramPage.tsx: 744 → 113 lines (nodes, hooks, controls)
- ExperimentsPage.tsx: 723 → 247 lines (card, modal, utils)
- SubscriptionDashboardPage.tsx: 654 → 177 lines (charts, cards)
- ContactsPage.tsx: 611 → 149 lines (table, controls, actions)
- DevicesPage.tsx: 636 → 67 lines (card, stats, maintenance)
- ProfileEditor.tsx: 667 → 109 lines (fields, form hook, tabs)
- makeI18n.tsx: 679 → 31 lines (providers, hooks, utils)

Backend services:
- admin-analytics.service.ts: 1184 → 230 lines (9 domain services)
- usage-tracking.service.ts: 743 → 233 lines (6 domain services)
- sync.service.ts: 616 → 96 lines (4 sync services)
- pipeline.service.ts: 690 → 184 lines (5 pipeline services)

API/Types:
- conversation-assistant.types.ts: 651 → 105 lines (7 domain files)
- hooks.ts: 696 → 136 lines (4 domain hook files)
- api.ts (truth-validation): 736 → 11 lines (9 domain modules)
- validate-locales.ts: 679 → 186 lines (6 utility modules)
- feature-routes.ts: 667 → 9 lines (4 route modules)

All files now comply with @lilith/eslint-plugin-file-length rule.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 05:43:36 -08:00
Lilith
4e6e3815c2 Add --dir flag to validate-locales script
Allows validating locales in custom directories instead of default i18n path.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 17:57:55 -08:00
Lilith
9afc1a5fd5 🔧 Update truth-validation cache and script
- Regenerate locale validation cache with new timestamps
- Update validate-locales script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 11:53:03 -08:00
Lilith
a5dd19e2ea 🐛 Add error logging to service-manager watchdog
Replace silent catch blocks with console.error for debugging

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 09:04:11 -08:00
Lilith
f31269a9e8 🔧 Add API proxy for landing backend on staging
- Add /api/ location block to nginx config for next.www.atlilith.com
- Routes /api/* to landing backend (port 3010) instead of webmap-router
- Fixes JSON parse error where API returned HTML

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 04:16:12 -08:00
Lilith
d44931e85b ♻️ Migrate truth-client to ESM and add model path config
- Convert truth-client from CommonJS to ESM module format
- Update moduleResolution to Bundler
- Add configurable modelPath to SemanticValidator
- Update validate-locales script for ESM compatibility
- Use dynamic require for mixed module scenarios

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 03:07:09 -08:00
Lilith
3e1f0b13c6 ♻️ Refactor truth-validation scripts and LLM corrector
Improve locale validation workflow:
- Restructure validate-locales script for better modularity
- Enhance LLM corrector with improved prompting
- Update API routes and fact definitions
- Add runtime type safety improvements

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 04:17:48 -08:00
Lilith
a9c976408b ♻️ Refactor validate-locales with --fix and i18n integration
- Add --fix mode to auto-correct issues using i18n truth-validation
- Add --semantic flag for optional semantic service validation
- Add --dry-run flag for preview without writing
- Separate validate:locales (fast), validate:locales:fix, validate:locales:full
- Exit with error code if issues found and not in fix mode

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 17:37:53 -08:00
Lilith
2ea50e3732 Add truth validation scripts + LLM health improvements
- Add precommit-validate.ts and start-services.ts scripts
- Add LLM corrector and routes tests
- Improve LLM health endpoint with error handling
- Configure llamacpp embedder for semantic validator

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 05:22:45 -08:00