@suifei/dsh-ai-team 0.4.46 → 0.4.47

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.47 - 2026-11-12
4
+
5
+ **批 14:右侧提示不再丢失**
6
+
7
+ - `sayRight` 写入的 `rightNote` 只在 Thread 面板打开时渲染:交接文档路径、归档失败、批量取消失败汇总这类消息,在面板关闭时**等于丢失**。现在同一句同时推一条 toast(可见),右侧面板照旧。
8
+ - 测试:`node --test` **245 通过 / 1 跳过**(新增 1 例结构契约:`sayRight` 必须同时走 `pushToast`)。
9
+
3
10
  ## 0.4.46 - 2026-11-12
4
11
 
5
12
  **SDK 符合性核对(用 cordis_inspect 读运行时契约)+ 修复预设名解析**
package/client.js CHANGED
@@ -3063,7 +3063,12 @@ window.__ModuleLoader__.load({
3063
3063
  const followingOf = (card) => (Object.prototype.hasOwnProperty.call(follows, card.id) ? follows[card.id] : Boolean(card.following));
3064
3064
 
3065
3065
  function say(text) { setNote(text); }
3066
- function sayRight(text) { setRightNote(text); }
3066
+ function sayRight(text) {
3067
+ setRightNote(text);
3068
+ // 右侧提示只在 Thread 面板打开时可见:交接文档路径、归档失败、批量取消
3069
+ // 汇总这类消息在面板关闭时等于丢失。同一句话再走 toast,保证用户看得到。
3070
+ try { pushToast(String(text ?? '')); } catch { /* toast is best effort */ }
3071
+ }
3067
3072
  function pushToast(text) {
3068
3073
  if (!text) return;
3069
3074
  const id = Date.now() + ':' + Math.random().toString(36).slice(2, 6);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suifei/dsh-ai-team",
3
- "version": "0.4.46",
3
+ "version": "0.4.47",
4
4
  "type": "module",
5
5
  "description": "文渊阁 (Wenyuan Pavilion) — AI Team mode for DeepSeek Harness: concurrent projects, owned tasks, threads, inbox and an append-only team ledger",
6
6
  "license": "MIT",