feat(sdk): context lifecycle callbacks — on_context_enter / on_context_exit #381
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add declarative lifecycle hooks so addons can react to context transitions without connecting to raw FreeCAD signals.
Current state (PARTIAL)
contextChangedsignal exists in C++ (EditingContextResolver) and is exposed to Python via kcsdk pybind11 bindings. However:on_context_enter()/on_context_exit()hooks for addonsProposed API
Callbacks receive the full
EditingContextsnapshot (id, label, color, toolbars, breadcrumb).Implementation notes
contextChangedsignalon_context_enter(),on_context_exit()tokindred_sdk/context.py"*"form for addons that need global awarenessRoadmap
v0.2.0 — SDK Core