feat(promptlib): 封面能力 + 1.1.0 方形网格/长文详情/宽编辑(v3.25.97)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m30s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m30s
This commit is contained in:
1 parent
754c0a39da
commit
1342613ab9
18 files changed
+249
-112
No files matched your search
@@ -6,6 +6,9 @@
|
||||
* insert(text, name) → 在画布视口中心插入提示词节点(插件不碰画布状态)
|
||||
* copy(text) → 走宿主剪贴板(失败有可见提示)
|
||||
* notify(text, type) → 宿主 toast / 提示条
|
||||
* putCover(dataUrl) → 封面入宿主图片库(返回 ref)
|
||||
* coverUrl(ref) → 封面展示地址
|
||||
* removeCover(ref) → 解引用(图片由 GC 回收)
|
||||
* onChanged(fn) → 数据变化(收藏/其它标签页同步/插件自己保存)
|
||||
*
|
||||
* 与 gallery / grouplib 同一套「impl 桥」:capability 在 PluginHost.init 时创建(早于 Workbench 渲染),
|
||||
@@ -41,6 +44,9 @@
|
||||
insert: call('insert'),
|
||||
copy: call('copy'),
|
||||
notify: call('notify'),
|
||||
putCover: call('putCover'),
|
||||
coverUrl: call('coverUrl'),
|
||||
removeCover: call('removeCover'),
|
||||
onChanged: function (fn) {
|
||||
if (typeof fn !== 'function') return function () {}
|
||||
listeners.push(fn)
|
||||
|
||||
Reference in new issue
Block a user