Printable idea sheet
napi_module_barrel
reqlan rq/development/core.rq:21
Katz 0.036
per stack
`crates/reqlan-napi/src/lib.rs` is a barrel: it only declares modules and re-exports the napi items. Logic lives in one module per binding surface.
Modules: `scan.rs` ( scanWorkspace task, createBase ), `analysis.rs` ( NativeAnalysisRuntime ), `sql_db.rs` ( NativeSqlDb ), `workspace_index.rs` ( NativeWorkspaceIndex ), `source.rs` ( parse / extract / local-symbolic source helpers ), `planner.rs` ( barrel / move / delete plan ), `util.rs` ( shared error mappers, wire-JSON helpers ).
Invariants: the JS surface and generated napi `.d.ts` do not change; modules stay flat in `src/` so `rq:...` comment paths keep `../../../reqlan rq` depth; `rq:` doc comments move with their items; `@implementation` refs in reqlan rq point at the module that holds the item, not the barrel.
New analysis bindings must follow rope: engine item in `reqlan-analytical`, `analysis.rs` binding, AnalysisApi facade, and cross-referenced tests.
- implementation
- lib.rs, analysis.rs, planner.rs, scan.rs, source.rs, sql_db.rs, util.rs, workspace_index.rs
- status
- done
Interactive page: napi_module_barrel