dsh-plugin-inspiration-workbench 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,6 +38,10 @@ DSH 一次只能打开一个会话:想同时看三条线的进展,只能来
38
38
  |---|---|
39
39
  | ![fanout](docs/screenshots/pipeline-fanout.png) | ![note target](docs/screenshots/pipeline-note.png) |
40
40
 
41
+ | 便签投递带标题和时间戳 |
42
+ |---|
43
+ | ![note template](docs/screenshots/pipeline-note-template.png) |
44
+
41
45
  ---
42
46
 
43
47
  ## 功能 / Features
@@ -46,7 +50,7 @@ DSH 一次只能打开一个会话:想同时看三条线的进展,只能来
46
50
  - 侧栏会话行的 `+` 把会话加成卡片;侧栏点击行为不变
47
51
  - 拖动 / 缩放 / 叠成一摞 / 双击居中 / 点空白平移 / ⌘+滚轮缩放
48
52
  - **命名画布**:保存当前这面墙、切换回之前保存的画布、覆盖 / 删除;数据存 Host,刷新不丢
49
- - **流水线**:从卡片右侧端口拖一条线到另一张卡即建立;**一条卡可连多个下游**(扇出),下游可以是会话卡,也可以是**便签卡**(结果直接追加进去);点连线切换「自动发送 / 只填草稿」或删除
53
+ - **流水线**:从卡片右侧端口拖一条线到另一张卡即建立;**一条卡可连多个下游**(扇出),下游可以是会话卡,也可以是**便签卡**(结果按 `## 来自「卡片名」 · 时间` 的分块追加进去);点连线切换「自动发送 / 只填草稿」或删除
50
54
  - 卡片头部操作常驻显示(流水线 / 大纲 / 搜索 / ⋯ / 关闭),次要操作用「⋯」收纳,窄卡片也不挤
51
55
  - 便签卡(随手记)、钉住位置、未读圆点、复制为 Markdown、在原生会话打开
52
56
 
package/lib/client.js CHANGED
@@ -3967,7 +3967,8 @@ function createBoard({ host, adapter, approvals, t: t2, onOpenSession }) {
3967
3967
  if (!targetCard) continue;
3968
3968
  const area = targetCard.el?.querySelector(".iwb-note-input");
3969
3969
  if (!area) continue;
3970
- area.value = area.value ? area.value.replace(/\s*$/, "\n\n") + text : text;
3970
+ const block = t2("pipe.noteBlock").replace("{title}", card.title || t2("untitled")).replace("{time}", canvasStamp()).replace("{text}", text);
3971
+ area.value = area.value.trim() ? area.value.replace(/\s*$/, "\n\n") + block : block;
3971
3972
  area.dispatchEvent(new Event("input", { bubbles: true }));
3972
3973
  targetCard.pipeDepth = depth;
3973
3974
  card.pipedFingerprints[key] = fingerprint;
@@ -6219,6 +6220,7 @@ var zh = {
6219
6220
  "pipe.already": "\u5DF2\u7ECF\u8FDE\u8FC7\u300C{name}\u300D\u4E86",
6220
6221
  "pipe.multi": "\u2192 {n} \u4E2A\u4E0B\u6E38",
6221
6222
  "pipe.noted": "\u7ED3\u679C\u5DF2\u8FFD\u52A0\u5230\u4FBF\u7B7E\u300C{name}\u300D",
6223
+ "pipe.noteBlock": "## \u6765\u81EA\u300C{title}\u300D \xB7 {time}\n\n{text}",
6222
6224
  "pipe.noteTarget": "\u6D41\u6C34\u7EBF \u2192 \u4FBF\u7B7E",
6223
6225
  "pipe.noteHint": "\u4E0B\u6E38\u662F\u4FBF\u7B7E\uFF1A\u8DD1\u5B8C\u628A\u7ED3\u679C\u8FFD\u52A0\u8FDB\u53BB\uFF0C\u4E0D\u53D1\u9001",
6224
6226
  "pipe.removeNote": "\u5220\u9664\u8FD9\u6761\u4FBF\u7B7E\u6D41\u6C34\u7EBF",
@@ -6510,6 +6512,7 @@ var en = {
6510
6512
  "pipe.already": "\u201C{name}\u201D is already connected",
6511
6513
  "pipe.multi": "\u2192 {n} downstream",
6512
6514
  "pipe.noted": "Result appended to note \u201C{name}\u201D",
6515
+ "pipe.noteBlock": "## From \u201C{title}\u201D \xB7 {time}\n\n{text}",
6513
6516
  "pipe.noteTarget": "Pipeline \u2192 note",
6514
6517
  "pipe.noteHint": "Note downstream: the result is appended, never sent",
6515
6518
  "pipe.removeNote": "Remove this note pipeline",