nFlow Session 8 β Custom Node Creator (Final)
See krystv/nflow/docs/SESSION_HANDOFF.md for full details.
Compile Fixes Applied
Session 8 included a static analysis pass (no sandbox available) that identified and fixed:
user_nodes.rsβ removed unused imports at module level (Dim/Disclosure/DType)user_nodes.rsβ_registryparameter renamed to suppress unused-variable warninguser_nodes.rsβ testmake_passthrough_ucmutremovednfl.rsβ removed unusedUserCompositeStoreimportview.rsβ removed invalidpub use ExecCoverageView as ExecCoverageViewAlias(compile error)view.rsβ removed duplicateRunResultView2
Key Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β UserComposite (IR) β
β uid: "user.mamba_ssm" colour: "#a855f7" β
β ports_in/out, attrs, inner_graph: Graph β
β paper_url: "https://arxiv.org/abs/2312.00752" β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β infer_user_composite()
ββββββββββββββββββββΌββββββββββββββββββββ
β Session.run_inference β
β op.starts_with("user.") β β
β clone inner_graph + seed inputs + β
β run inference + read output types β
ββββββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββΌββββββββββββββββββββ
β redb (embedded database) β
β global_nodes | recent_files | β
β app_settings β
ββββββββββββββββββββββββββββββββββββββββ
Expected Test Count After Sandbox
~187 total = 174 (before) + 5 (UserComposite IR) + 3 (redb) + 5 (user_nodes inference)
Next Priorities
- Sandbox compile verification
- Codegen lowering for user composites
- Double-click β editor tab in Editor canvas
- CompositePropertiesPanel (port/attr schema editor)
- redb path using
app_data_dir() - npm build verification