19 Commits

Author SHA1 Message Date
75b67f8683 sync: align fat repo structure with metabuilder-small
Remove stale dirs/files superseded by metabuilder-small's reorganization:
- Old YAML entity/seed files (migrated to JSON)
- Root-level workflowui/ (moved to frontends/workflowui/)
- Prisma, Pyodide, old hooks, bun.lock artifacts
- Legacy scratch docs (txt/, docs/, deployment/*.md)
- Stale CI workflows consolidated in small

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 22:46:13 +00:00
862cc29457 various changes 2026-03-09 22:30:41 +00:00
6d86b37d3b feat(dbal): generate Prisma schema for email models
- Updated gen_prisma_schema.js to parse YAML entity schemas
- Generated Prisma models for EmailClient, EmailFolder, EmailMessage, EmailAttachment
- All email models include proper indexes and constraints from YAML definitions
- Schema generation now supports dynamic YAML parsing with fallback to core models
2026-01-23 19:33:07 +00:00
ce7b395d17 fix: Update Prisma schema to Prisma 7 format and add config
CHANGES:
- Removed datasource url from schema (Prisma 7 incompatibility)
- Schema lives at /dbal/shared/prisma/schema.prisma
- Database URL will be provided via environment variable at runtime
- Created .env.local for development (file:./prisma/dev.db)
- Prisma client will create/initialize database on first connection

NOTE: Prisma 7 CLI doesn't support db:push without URL in schema OR config.
The solution is to let the PrismaClient adapter create the database on first connection.

For local development: DATABASE_URL="file:./dbal/development/prisma/dev.db"
For tests: DATABASE_URL="file::memory:" or environment-specific config

Database will be automatically initialized when:
1. getDBALClient() is called with environment config
2. PrismaClient adapter connects to the URL
3. Tables are created from schema on first access

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-15 02:41:30 +00:00
a37e1fdcec refactor: Move Prisma schema to /dbal/shared (source of truth)
The Prisma schema is the single source of truth for the entire system
and should live in shared, not in development-specific location.

MOVED:
- /dbal/development/prisma/schema.prisma → /dbal/shared/prisma/schema.prisma

UPDATED:
- DBAL package.json: db:* scripts reference ../shared/prisma/schema.prisma
- config package.json: schema reference updated
- gen_prisma_schema.js: outputs to shared location

STRUCTURE NOW:
- /dbal/shared/prisma/ - Prisma schema (source of truth)
- /dbal/shared/seeds/ - Seed data (YAML files)
- /dbal/development/ - Uses shared schema via relative path

This ensures:
 Single source of truth for schema
 Schema is shared across all implementations (Phase 2 TypeScript, Phase 3 C++)
 Development just references the shared schema
 Independent deployability maintained

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-15 02:19:44 +00:00
d2aabb6cdb refactor: Move seed and Prisma schema into DBAL (Architecture Restructure Phase 0)
MOVED:
- /seed/ → /dbal/shared/seeds/
  - database/ (installed_packages.yaml, package_permissions.yaml)
  - config/ (bootstrap.yaml, package-repo.yaml)
  - packages/ (core-packages.yaml)
- /prisma/schema.prisma → /dbal/development/prisma/schema.prisma

UPDATED:
- Root package.json: db:* scripts delegate to dbal/development
- Frontend package.json: db:* scripts delegate to dbal/development
- DBAL package.json: Added db:migrate and db:seed scripts
- /dbal/development/src/seeds/index.ts: Updated paths to new seed location
- /dbal/shared/tools/codegen/gen_prisma_schema.js: Output to new schema location
- /config/package.json: Updated schema path references

DELETED:
- /seed/ folder (moved to DBAL)
- /prisma/ folder (moved to DBAL)

BENEFITS:
- DBAL is now self-contained and independently deployable
- Single source of truth for seeds and schema
- Clear separation: database logic in DBAL, frontend in /frontends/
- All db:* commands now go through DBAL, not duplicated in frontend

This restructure is MANDATORY FIRST STEP before CODEBASE_RECOVERY_PLAN execution.
Architecture must be fixed before code cleanup happens.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-15 02:17:58 +00:00
copilot-swe-agent[bot]
eb0289d593 Address code review feedback: fix workflow step ID, improve YAML regex, remove error suppression
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-08 17:40:13 +00:00
copilot-swe-agent[bot]
2e2a0f8218 Fix DBAL codegen to handle multi-document YAML and include sensitive fields with warnings
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-08 17:34:09 +00:00
copilot-swe-agent[bot]
1a3ee146c1 Fix Promise await issues and add sx prop to fakemui components
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-08 16:21:35 +00:00
copilot-swe-agent[bot]
a4169bd56e Add YAML-based type generator for DBAL and generate types.generated.ts
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-08 16:16:46 +00:00
016cd662bf refactor: remove LuaScript entity and related operations 2026-01-07 14:36:19 +00:00
6d8b23e7a6 Refactor code structure for improved readability and maintainability 2026-01-07 14:18:49 +00:00
445f4f4028 Refactor workflow management and validation
- Updated `list_workflows.hpp` to replace `is_active` with `enabled` filter and added `tenant_id` filter.
- Modified sorting logic for workflows based on `created_at` to handle optional values.
- Enhanced `update_workflow.hpp` to include new fields: `nodes`, `edges`, `enabled`, `version`, and `created_at`.
- Removed obsolete `isValidWorkflowTrigger` validation function from `workflow_validation.hpp`.
- Adjusted unit tests in `client_test.cpp` to reflect changes in workflow and page management, including renaming fields and updating assertions.
- Updated Prisma schema in `schema.prisma` to align with new workflow and component models, including changes to data types and attributes.
- Introduced a new script `gen_prisma_schema.js` for generating Prisma schema from DBAL API schemas to maintain synchronization.
2026-01-07 13:43:37 +00:00
copilot-swe-agent[bot]
0ab852d227 Initial plan: Fix README styles documentation
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-03 20:17:49 +00:00
cfa1e5bfee feat: add new icon components including Envelope, ChatCircle, HardDrives, WarningCircle, CheckCircle, XCircle, TrendUp, ShieldWarning, LockKey, Crown, Sparkle, BookOpen, Tree, Broom, Export, UploadSimple, Funnel, FunnelSimple, MapTrifold, PushPinSimple, Buildings, GithubLogo, and GoogleLogo 2025-12-30 12:21:15 +00:00
9507c39f09 fix(types): enhance type safety across various modules and functions 2025-12-30 00:55:05 +00:00
756c48fc83 refactor: modularize cpp build assistant 2025-12-27 18:35:35 +00:00
880544e58d refactor: modularize dbal utilities 2025-12-27 18:21:26 +00:00
copilot-swe-agent[bot]
2180f608fb Restructure dbal folder: development, production, and shared
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:30:57 +00:00