altimate-code
altimate-code copied to clipboard
feat: [Phase 1] altimate-core direct napi-rs bindings — 41 methods
Phase 1: altimate-core Direct napi-rs Bindings
Parent: #214 Depends on: Phase 0
What
Replace 41 Python bridge methods with direct calls to @altimateai/altimate-core npm package (napi-rs Node.js bindings for the Rust SQL engine).
Sub-tasks
- [ ] Verify
@altimateai/altimate-corenpm API matches Pythonguard.pysignatures - [ ] Audit IFF/QUALIFY transpile pre/post processing in
guard.py - [ ] Add
@altimateai/altimate-coredependency - [ ] Create
native/altimate-core.ts— 33 method wrappers - [ ] Create
native/schema-resolver.ts— Schema.fromFile/fromJson/fromDdl - [ ] Create
native/sql/analyze.ts— lint + semantics + safety composite - [ ] Create
native/sql/optimize.ts— rewrite + lint composite - [ ] Create
native/sql/translate.ts— transpile with IFF/QUALIFY transforms - [ ] Create
native/sql/{format,fix,rewrite,diff,lineage}.ts - [ ] Register all 41 methods in dispatcher
- [ ] Shadow mode parity tests (fuzzy comparison)
- [ ]
ALTIMATE_NATIVE_ONLY=1passes for all 41 methods
Methods (41 total)
33 altimate_core.* + 8 composite sql.* (analyze, optimize, translate, format, fix, rewrite, diff, lineage.check)
Completed in PR #221.