Skip to content

Commit 6b83e58

Browse files
committed
feat(plugins): introduce plugin API 20 for new ui surface
ui.markdown and the new input submitOnEnter and scroll stickToBottom, onScroll and scrollToBottomRev props expand the plugin UI contract. Plugins that rely on them can declare plugin_api = 20, so an older shell rejects them at load instead of failing at runtime. Declaration only, matching the API 18/19 precedent; the manifest range check in plugin_registry enforces it. Assisted-by: Fable 5 (main session), claude-code v2.1.217
1 parent 3a9a6db commit 6b83e58

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/scripting/plugin_api.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ namespace scripting {
1919
inline constexpr std::uint32_t kServiceLifecyclePluginApiVersion = 17;
2020
inline constexpr std::uint32_t kPanelFrameTickPluginApiVersion = 18;
2121
inline constexpr std::uint32_t kFormatTimeTimezonePluginApiVersion = 19;
22-
inline constexpr std::uint32_t kCurrentPluginApiVersion = kFormatTimeTimezonePluginApiVersion;
22+
inline constexpr std::uint32_t kPluginUiPropsPluginApiVersion = 20;
23+
inline constexpr std::uint32_t kCurrentPluginApiVersion = kPluginUiPropsPluginApiVersion;
2324

2425
static_assert(kOldestSupportedPluginApiVersion <= kCurrentPluginApiVersion);
2526

0 commit comments

Comments
 (0)