promptlib 1.14.14:提示词模板节点补输入端口(参考图可接入)
validate / validate (push) Canceled after 0s

This commit is contained in:
qiqi committed 2026-12-03 16:25:38 +08:00
1 parent 87aa7c5251
commit 4683c1dec2
3 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@iwb-plugin/promptlib",
"private": true,
"version": "1.14.13",
"version": "1.14.14",
"description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供",
"ibwPlugin": {
"id": "promptlib",
+3 -2
View File
@@ -2270,7 +2270,7 @@
global.IWBPluginHost.register({
id: 'promptlib',
name: '提示词库',
version: '1.14.13',
version: '1.14.14',
apiVersion: 1,
capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvas', 'canvasWrite', 'nodeActions', 'commands'],
data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 },
@@ -2557,7 +2557,8 @@
}
if (ctx.nodes && typeof ctx.nodes.register === 'function') {
try {
ctx.nodes.register({ id: 'ptpl', title: '提示词模板', defaults: { outKind: 'prompt' }, ports: { in: false, out: true }, height: 360, render: renderTplNode })
// 2026-12-03(用户):补输入端口 —— 参考图节点可以接到模板上(宿主的 nodeRefsOf 会把入边 ref 透传给下游生图)。
ctx.nodes.register({ id: 'ptpl', title: '提示词模板', defaults: { outKind: 'prompt' }, ports: { in: true, out: true }, height: 360, render: renderTplNode })
} catch (e) {
try { ctx.storage && ctx.storage.set('lastError', 'node:' + String((e && e.message) || e)) } catch (e2) { /* ignore */ }
}
+2
View File
@@ -226,6 +226,8 @@ ok('v1.15.0 只有「内容含花括号」才拦同步,摘要给出明确原
ok('v1.15.0 节点输入框 20 行上限 + 展开/收起 + 双击回填',
/var NIN_LINES = 20/.test(src) && /iwb-plp-nmore/.test(src) &&
/nk\.addEventListener\('dblclick'/.test(src) && /st\.defOf\(v\.key\)/.test(src))
ok('v1.15.2 提示词模板节点有输入端口(参考图可接入)',
/id: 'ptpl'[\s\S]{0,200}ports: \{ in: true, out: true \}/.test(src))
ok('v1.15.1 编辑词例点空白不关闭 + 关闭前「未保存」确认',
src.includes('maskClose: false') && src.includes('confirmClose: function (done)') && src.includes('有未保存的修改,确定放弃?'))
ok('v1.15.1 打开即自适应:空值按 placeholder 量高 + 宽度变化重测',