wezard 2.2.1 → 2.2.2

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
@@ -105,7 +105,7 @@ wezard init
105
105
 
106
106
  一个绑定了聊天的会话叫一个 **wizard**:有自己的终端、工作区、名字和职责,知道还有谁在,也叫得动它们。名字**全局唯一**,写作 `.name`——不管它住在哪个群,在任何群里都叫得到。
107
107
 
108
- ![多 wizard 协同](images/demo.png)
108
+ ![多 wizard 协同](images/wizards.png)
109
109
 
110
110
  **创建**
111
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wezard",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Bridge Claude Code and WeCom: PreToolUse approval cards + bidirectional tmux session mirror with image paste",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/web/chat.css CHANGED
@@ -114,7 +114,7 @@ button { font: inherit; color: inherit }
114
114
  }
115
115
  .sp-btn:hover, .sp.open .sp-btn { background: var(--paper); color: var(--ink) }
116
116
  /* 箭头用边框画, 不用 ▾ 字形 —— 字形贴着基线, 放大后总是偏下。 */
117
- .sp-btn .car { flex: none; display: grid; place-items: center; width: 18px; height: 18px; transition: transform .15s }
117
+ .sp-btn .car { flex: none; display: grid; place-items: center; width: 16px; height: 16px; transition: transform .15s }
118
118
  .sp-btn .car::before { content: ""; border: 5px solid transparent; border-top: 6px solid var(--faint); border-bottom: 0 }
119
119
  .sp.open .sp-btn .car { transform: rotate(180deg) }
120
120
  .sp-list {
package/web/chat.js CHANGED
@@ -611,10 +611,11 @@
611
611
  r.chat ? ['🏠', r.chat, 'home'] : null,
612
612
  born ? ['🐣', fmtClock(born), '出生于 ' + fmtDay(born)] : null
613
613
  ].filter(Boolean).map(function (f) { return '<span title="' + esc(f[2]) + '">' + f[0] + ' ' + esc(f[1]) + '</span>'; });
614
+ // 只有一段 session 也挂选择器 —— 它同时是「现在看的是哪一段」的标签, 不该随段数忽隐忽现。
614
615
  $('#rb-who').innerHTML =
615
616
  '<div class="id"><span class="av">' + esc(r.label) + '</span>' +
616
617
  '<span class="l"><span class="nl"><span class="cp" title="' + esc('复制 ' + nameOf(r.id)) + '">' + nm(r.id, r.name) + '</span>' + (r.kind === 'wizard' ? '<span id="rb-st"></span>' : '') +
617
- '<span id="rb-sp">' + (R.sessions.length > 1 ? sessPicker() : '') + '</span></span>' +
618
+ '<span id="rb-sp">' + (R.sessions.length ? sessPicker() : '') + '</span></span>' +
618
619
  (facts.length ? '<span class="facts">' + facts.join('') + '</span>' : '') + '</span></div>' +
619
620
  (r.description ? '<p class="job">' + esc(r.description) + '</p>' : '');
620
621
  paintStatus();