5 Commits

Author SHA1 Message Date
nichenqin
e9e3b03153 feat(field-dependency): introduce field dependency core package
- Added a new package `@teable/v2-field-dependency-core` to manage field dependencies, including edge-building and parsing functionalities.
- Implemented various utility functions for constructing dependency edges, parsing options, and extracting condition field IDs.
- Created comprehensive tests for the new functionalities, ensuring robust validation of field dependency chains and edge cases.
- Enhanced existing packages to integrate with the new field dependency core, improving overall architecture and maintainability.

These changes establish a foundational structure for managing field dependencies, facilitating better data relationships and computations across the system.
2026-01-14 22:35:29 +08:00
nichenqin
e56ff34926 refactor(v2-devtools): migrate to Effect CLI and add records query commands
- Migrate from oclif to Effect CLI framework
- Add records query commands (application layer and underlying database)
- Refactor debug-data package to include raw record store
- Update SKILL.md with new commands and psql preference note
- Remove oclif-specific base classes and utilities

New commands:
- records list: Query records via application layer (stored/computed mode)
- records get: Get single record via application layer
- underlying records: Query records directly from PostgreSQL
- underlying record: Get single record directly from PostgreSQL

Architecture changes:
- Add IDebugRecordStore port and PostgresDebugRecordStore adapter
- Add DebugDataService.getRawRecords/getRawRecord methods
- Use Effect Layers for dependency injection in devtools

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-01-14 22:35:20 +08:00
nichenqin
e45576246e fix(command-explain): properly quote schema.table in DELETE SQL
The DELETE statement was incorrectly quoting schema.table as a single
identifier ("schema.table") instead of properly quoting each part
separately ("schema"."table"), causing EXPLAIN to fail with
"relation does not exist" error.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 22:35:19 +08:00
nichenqin
c43d2058eb feat(mock-records): add mock data generation capabilities for Teable v2
- Introduced a new package for generating mock/fake data for Teable v2 tables.
- Implemented CLI commands for generating test data, seeding tables, and creating sample records.
- Added support for reproducible data generation using seeds and dry-run options for previewing data.
- Enhanced documentation to guide users on how to utilize the mock records generator effectively.
- Integrated with existing dependencies and ensured compatibility with localhost PostgreSQL connections for security.
2026-01-14 22:35:19 +08:00
nichenqin
99bb67b9ee feat(debug-data): introduce read-only debug access and field relationship reporting
- Added a new package for debug data access, providing read-only access to base/table/field metadata.
- Implemented field relationship reporting using dependency graph data.
- Created CLI for executing debug queries and generating reports.
- Established service and adapter layers for metadata and field relation graph access.
- Integrated with existing core services and updated dependency management.
- Enhanced documentation and architecture notes for clarity on package responsibilities.
2026-01-14 22:35:19 +08:00