wip(plugins): promptlib 1.5.0 变量/模板节点 + 封面走 promptlib 文件方法

This commit is contained in:
qiqi committed 2026-11-22 16:27:57 +08:00
1 parent c9b8bdf27c
commit a46d874d33
7 files changed
+128 -35

No files matched your search

+6
View File
@@ -49,6 +49,12 @@
putCover: call('putCover'),
coverUrl: call('coverUrl'),
removeCover: call('removeCover'),
// v3.26.36:封面等插件文件的沙箱读写(挂在 promptlib 能力上,避免新增能力权限面)
filePut: call('filePut'),
fileGet: call('fileGet'),
fileList: call('fileList'),
fileRemove: call('fileRemove'),
fileStat: call('fileStat'),
onChanged: function (fn) {
if (typeof fn !== 'function') return function () {}
listeners.push(fn)