agent-zero/plugins/text_editor
frdel a807e2458b Use prototype-based context for plugin settings
Refactor plugin settings to use a per-modal prototype/context instead of binding directly to the global store. Introduces pluginSettingsPrototype (renamed export) and a lightweight instantiate helper (Alpine.magic('instantiate')) to clone the prototype into a modal-local context. Plugin config HTMLs (code_execution, infection_check, memory, text_editor) now bind UI fields to config.* and use context.* for modal-level state and actions; plugin settings components (plugin-settings.html, plugin-configs.html, plugin-settings-store.js, pluginListStore.js) were updated to create and consume the local context and to pass context into nested modals. Documentation and the SKILL guide were updated to describe the new modal contract and usage. This change scopes settings UI state to modal instances, enabling safer local state and easier integration with core-setting wrappers (use context.saveMode = 'core').
2026-03-09 21:19:55 +01:00
..
extensions BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
helpers BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
prompts prompt: reformat patch prompt constraints 2026-03-02 12:22:32 +08:00
tools Refactor extensions to async/sync API 2026-03-06 11:32:08 +01:00
webui Use prototype-based context for plugin settings 2026-03-09 21:19:55 +01:00
default_config.yaml Update default_config.yaml 2026-02-28 15:21:27 +08:00
plugin.yaml Standardize plugin titles and bump history_size 2026-03-08 16:14:24 +01:00