feat(mainjan): integrate daw-lua-mainjan -- replace ctx wiring with capability resolver #128

Open
opened 2026-06-04 19:33:47 +02:00 by michael · 0 comments
Owner

Goal

Integrate daw-lua-mainjan into fragjan as the capability resolver.
Replace the manual ctx wiring pattern with mainjan instances.

Background

Currently fragjan builds ctx manually in adapters/ui and passes it through
all call sites. Every module reference is hardcoded. mainjan replaces this:
each program part registers itself and asks for capabilities by name.

Scope

  • Add daw-lua-mainjan as submodule (lib/daw/mainjan/)
  • Build mainjan instance in main.lua, pass into ctx
  • Register all fragjan cells (core, adapters, commands) on startup
  • Replace hardcoded require() calls with m:ask() where appropriate
  • ctx becomes lean: only runtime data (paths, config, request state)

Acceptance criteria

  • mainjan instance created in main.lua
  • all fragjan adapters registered as cells
  • capability lookups replace manual wiring
  • ctx reduced to runtime data only
  • existing tests pass

References

## Goal Integrate daw-lua-mainjan into fragjan as the capability resolver. Replace the manual ctx wiring pattern with mainjan instances. ## Background Currently fragjan builds ctx manually in adapters/ui and passes it through all call sites. Every module reference is hardcoded. mainjan replaces this: each program part registers itself and asks for capabilities by name. ## Scope - Add daw-lua-mainjan as submodule (lib/daw/mainjan/) - Build mainjan instance in main.lua, pass into ctx - Register all fragjan cells (core, adapters, commands) on startup - Replace hardcoded require() calls with m:ask() where appropriate - ctx becomes lean: only runtime data (paths, config, request state) ## Acceptance criteria - [ ] mainjan instance created in main.lua - [ ] all fragjan adapters registered as cells - [ ] capability lookups replace manual wiring - [ ] ctx reduced to runtime data only - [ ] existing tests pass ## References - DAW/daw-lua-mainjan v0.1.0 - DAW/fragjan#124 -- stateless modules (related) - DAW/fragjan#123 -- no hardcoded module references (related)
michael added this to the Basic Version milestone 2026-06-26 11:38:02 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#128
No description provided.