fischer-agentkit/src/agentkit/skills
chiguyong bbbf9cd40a feat(bitable): add bitable companion service with full P0-P2 fixes
Bitable is a multi-dimensional table companion service that runs alongside
the main AgentKit server. It provides structured data storage with formula
fields, views, and ingestion pipelines.

Major components:
- Domain models (Pydantic v2): Table, Field, Record, View, RecalcTask
- SQLAlchemy 2 async ORM with independent bitable PostgreSQL schema
- Formula engine: AST parser, DAG, Kahn topological sort, safe eval
- RecalcWorker: atomic task claiming (FOR UPDATE SKIP LOCKED), topo-order
  processing, stale-threshold reaper for crash recovery
- REST API (/api/v1/bitable): tables, fields, records, views, files
- BitableTool: agent-facing tool with batch chunking (500/batch)
- CLI: agentkit bitable subcommands (create, list, import-excel, etc.)
- Frontend: Vue 3 + vxe-table grid with field management, views, filters
- Ingestion: Excel (openpyxl), database reflection, API collector

Security fixes (ce-code-review P0 + ce-debug P1):
- SQL injection prevention (field_id validation, parameterized queries)
- IDOR protection (_check_table_ownership on all table-level endpoints)
- SSRF prevention (URL scheme + private IP validation in parse_excel_url)
- OOM prevention (streaming file upload, batch delete, batch insert)
- Atomic recalc task claiming (FOR UPDATE SKIP LOCKED)
- Formula engine cache invalidation on field changes
- Composite cursor pagination for non-id sort orders
- Batch upsert (eliminates N+1 queries)
- Sync I/O offloaded to thread pool in async contexts
- Internal token auth (X-Internal-Token, hmac.compare_digest)
- PK unique index enforcement

Test coverage: 88 unit tests (95 skipped without Docker)
2026-06-25 01:09:59 +08:00
..
__init__.py feat(phase1): implement core kernel and experience foundation (U1-U5) 2026-06-09 23:57:03 +08:00
base.py feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
geo_pipeline.py feat(pipeline): U6 step-level retry with exponential backoff and saga compensation 2026-06-07 17:26:07 +08:00
loader.py feat(skills): SkillHarness 前置条件 + 风险守卫学习增强 2026-06-24 18:56:51 +08:00
pipeline.py fix(review): address all 14 P2 advisory findings 2026-06-06 18:20:46 +08:00
registry.py feat(phase1): implement core kernel and experience foundation (U1-U5) 2026-06-09 23:57:03 +08:00
schema.py feat(phase1): implement core kernel and experience foundation (U1-U5) 2026-06-09 23:57:03 +08:00
skill_detail.py refactor: simplify code across U1-U7 (bug fix + efficiency + reuse + quality) 2026-06-24 22:35:52 +08:00
skill_md.py fix(review): address all 14 P2 advisory findings 2026-06-06 18:20:46 +08:00