dsh-wb-desk 0.1.0 → 0.1.1

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
@@ -3,6 +3,13 @@
3
3
  本文件记录本插件的重要改动。格式参考 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),
4
4
  版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
5
5
 
6
+ ## [0.1.1] - 2026-11-20
7
+
8
+ ### 变更
9
+
10
+ - 本地产物列表:工作区分组行显示该工作区所有产物的总大小。
11
+ - 本地产物列表:会话分组标题去掉「会话」前缀,直接显示会话标题。
12
+
6
13
  ## [0.1.0] - 2026-11-19
7
14
 
8
15
  首个公开版本。
package/client.js CHANGED
@@ -491,6 +491,11 @@ window.__ModuleLoader__.load({
491
491
  }
492
492
  return m
493
493
  }, [artifacts])
494
+ /* 产物大小:优先 /artifacts 的 stat,落库文件回退全库元信息 */
495
+ const artSize = (a) => (
496
+ typeof a.size === 'number' ? a.size
497
+ : (a.libPath ? (treeMeta[a.libPath]?.size ?? allMeta[a.libPath]?.size) : undefined)
498
+ ) || 0
494
499
  /* 统一取元信息:树(我的资料)→ 全库(含 inbox)→ 产物台账/索引 */
495
500
  const metaFor = (p, abs) => (
496
501
  abs ? artifactsMeta[normPath(p)]
@@ -1213,6 +1218,7 @@ window.__ModuleLoader__.load({
1213
1218
  : artifactGroups.map(g => {
1214
1219
  const wsOpen = openGroups.has('ws:' + g.ws)
1215
1220
  const wsCount = g.sessions.reduce((n, s) => n + s.items.length, 0)
1221
+ const wsSize = g.sessions.reduce((n, s) => n + s.items.reduce((m, a) => m + artSize(a), 0), 0)
1216
1222
  return h('div', { key: g.ws },
1217
1223
  h('div', { className: 'wb-row wb-row-group', onClick: () => toggleGroup('ws:' + g.ws) },
1218
1224
  h('span', { className: 'wb-chevron' + (wsOpen ? ' open' : '') }, Icon.chevron(14)),
@@ -1223,7 +1229,7 @@ window.__ModuleLoader__.load({
1223
1229
  h('span', { className: 'wb-col wb-col-type' }),
1224
1230
  h('span', { className: 'wb-col wb-col-author' }),
1225
1231
  h('span', { className: 'wb-col wb-col-time' }, fmtTime(Date.parse(g.latest) || 0)),
1226
- h('span', { className: 'wb-col wb-col-size' }),
1232
+ h('span', { className: 'wb-col wb-col-size' }, wsSize ? fmtSize(wsSize) : ''),
1227
1233
  h('span', { className: 'wb-col-actions' })),
1228
1234
  wsOpen && g.sessions.map(s => {
1229
1235
  const sOpen = openGroups.has('s:' + g.ws + ' ' + s.sid)
@@ -1232,7 +1238,7 @@ window.__ModuleLoader__.load({
1232
1238
  h('span', { className: 'wb-chevron' + (sOpen ? ' open' : '') }, Icon.chevron(14)),
1233
1239
  h('span', { className: 'wb-col-name' },
1234
1240
  Icon.robot(18),
1235
- h('span', { className: 'wb-filename' }, '会话 ' + s.sid),
1241
+ h('span', { className: 'wb-filename' }, s.sid),
1236
1242
  h('span', { className: 'wb-pill' }, s.items.length + ' 个产物')),
1237
1243
  h('span', { className: 'wb-col wb-col-type' }),
1238
1244
  h('span', { className: 'wb-col wb-col-author' }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-wb-desk",
3
3
  "displayName": "DSH 资料库",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "Agent 原生产物空间:分级写入(新建自动归位 / 修改待确认)+ 固定修订引用。对标 WorkBuddy 资料库的 DSH 插件。",
6
6
  "author": "elegant01",
7
7
  "type": "module",