feat(sdk): context introspection — available_contexts and context_history #383
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
Extend context introspection beyond
current_context()so addons can list all registered contexts and query recent transition history.Current state (PARTIAL)
current_context()works and returns a full snapshot (id, label, color, toolbars, breadcrumb, breadcrumbColors). Missing:available_contexts()to list registered contextscontext_history()to get recent transitionsAddonRegistry.contexts()maps context IDs to providing addon names but is not exposed through the SDKProposed API
Implementation notes
available_contexts(): expose registered ContextDefinitions from EditingContextResolver via kcsdk bindingcontext_history(): add a ring buffer in EditingContextResolver that records transitions with timestampskindred_sdk/context.pyRoadmap
v0.2.0 — SDK Core