Commit Graph

11 Commits

Author SHA1 Message Date
end 4cd218f658 fix: correct lifecycle setup and teardown semantics
Guard against double setup when autoload runs dependencies early, tear down
in reverse setup order, roll back on partial failure, and detect circular
Depends chains.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 17:58:00 -07:00
end 1cb207964c improve context ux, prevent duplicate setup & teardown 2025-06-04 17:26:12 -07:00
end 76d6216a9c fix unit tests and error messages 2025-06-04 14:03:53 -07:00
end c3c8a2cafc context helpers, rework logging to support ongoing inheritance
Leaves module logger property as purely an override, pulling logger
information directly from the lifecycle instead.
2025-06-04 13:37:13 -07:00
end 6f9e3731ac add Lifecycle.RequireUnique methods for load-once deps 2025-06-03 16:58:59 -07:00
end ed8137647d full unit testing and fixes
- mapToString is ordered according to setup
- setupSingle & teardownSingle no longer return "ok" states
- teardown functions support errors
- setup and teardown functions receive module
2025-06-03 14:49:00 -07:00
end 891035cf93 add module loaded state 2025-05-30 16:40:31 -07:00
end fc41a6ee5b load dependencies by name instead of reference 2025-05-30 16:18:21 -07:00
end b760b035b4 rename Subsystem -> Module, add NewLifecycleL 2025-05-30 15:41:40 -07:00
end 231561c926 customizable subsystem loggers 2025-05-30 11:15:59 -07:00
end 2f702cccd4 split into separate files 2025-05-30 11:03:44 -07:00