dsh-version-manager 0.1.5 → 0.1.6

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
@@ -21,7 +21,7 @@
21
21
  Desktop: install the release `.tgz` through Extensions → Plugin Management → Add Plugin. For a Web profile you explicitly control:
22
22
 
23
23
  ```sh
24
- dsh plugin --profile web add dsh-version-manager@0.1.5
24
+ dsh plugin --profile web add dsh-version-manager@0.1.6
25
25
  ```
26
26
 
27
27
  Install into an existing Desktop/Web profile and open Version manager. Review inventory and the exact from → to update first; a new empty profile also needs the Web app bundle.
@@ -30,7 +30,7 @@ Install into an existing Desktop/Web profile and open Version manager. Review in
30
30
 
31
31
  | Item | Current source of truth |
32
32
  | --- | --- |
33
- | Source version | `0.1.5` · 以 [package.json](package.json) 为准 |
33
+ | Source version | `0.1.6` · 以 [package.json](package.json) 为准 |
34
34
  | Distribution | `npm` · [Releases](https://github.com/tangyixiao/dsh-version-manager/releases) |
35
35
  | DSH | `>=0.2.2-rc.1` |
36
36
  | Node.js | `>=22` |
package/README.zh-CN.md CHANGED
@@ -21,7 +21,7 @@
21
21
  Desktop:从发行页下载 `.tgz`,在“扩展 → 插件管理 → 添加插件”中安装。命令行示例用于你明确控制的 Web profile:
22
22
 
23
23
  ```sh
24
- dsh plugin --profile web add dsh-version-manager@0.1.5
24
+ dsh plugin --profile web add dsh-version-manager@0.1.6
25
25
  ```
26
26
 
27
27
  在原有 Desktop/Web profile 中安装并打开“版本管理”。先查看清单与更新预览,再确认具体 from → to;新建空 profile 还需要 Web 应用 bundle。
@@ -30,7 +30,7 @@ dsh plugin --profile web add dsh-version-manager@0.1.5
30
30
 
31
31
  | 项目 | 当前依据 |
32
32
  | --- | --- |
33
- | 源码版本 | `0.1.5` · 以 [package.json](package.json) 为准 |
33
+ | 源码版本 | `0.1.6` · 以 [package.json](package.json) 为准 |
34
34
  | 分发方式 | `npm` · [Releases](https://github.com/tangyixiao/dsh-version-manager/releases) |
35
35
  | DSH | `>=0.2.2-rc.1` |
36
36
  | Node.js | `>=22` |
@@ -0,0 +1,17 @@
1
+ # dsh-version-manager 0.1.6
2
+
3
+ ## 简体中文
4
+
5
+ - 修复长包名与本地安装路径挤压表格列宽、导致预发布版本号断行的问题。
6
+ - 为版本、状态和操作列保留稳定空间;长名称与路径省略显示,悬停或展开详情可读取全文。
7
+ - 窄窗口下,插件和 Skill 表格在自身区域内横向滚动,避免撑宽整个页面。
8
+ - 为中英文标签分别预留列宽,保留键盘展开、筛选及更新前确认流程。
9
+ - 继续支持 DSH `>=0.2.2-rc.1` 和 Node.js `>=22`。本次仅调整客户端呈现,不改变宿主写入操作。
10
+
11
+ ## English
12
+
13
+ - Fix long package names and local installation paths squeezing table columns and wrapping prerelease versions.
14
+ - Reserve space for versions, states and actions. Abbreviate long summary text while keeping full values in tooltips and expanded, selectable details.
15
+ - Contain horizontal scrolling within plugin and Skill tables on narrow windows.
16
+ - Account for Chinese and English label widths, preserving keyboard expansion, filtering and update confirmation.
17
+ - Retain DSH `>=0.2.2-rc.1` and Node.js `>=22` support. This release changes client presentation only, without changing host write operations.
package/lib/client.js CHANGED
@@ -78,6 +78,8 @@ window.__ModuleLoader__.load({
78
78
  colLoad: '加载状态',
79
79
  colCompat: '兼容性',
80
80
  colActions: '操作',
81
+ tableScroll: '插件列表,可横向滚动',
82
+ skillTableScroll: 'Skill 列表,可横向滚动',
81
83
  checkVersions: '检查更新',
82
84
  checking: '检查中…',
83
85
  takeSnapshot: '拍快照',
@@ -346,6 +348,8 @@ window.__ModuleLoader__.load({
346
348
  colLoad: 'Load state',
347
349
  colCompat: 'Compatibility',
348
350
  colActions: 'Actions',
351
+ tableScroll: 'Plugin list, scroll horizontally',
352
+ skillTableScroll: 'Skill list, scroll horizontally',
349
353
  checkVersions: 'Check versions',
350
354
  checking: 'Checking…',
351
355
  takeSnapshot: 'Snapshot',
@@ -774,6 +778,19 @@ window.__ModuleLoader__.load({
774
778
 
775
779
  // ------------------------------------------------------------- presentation
776
780
 
781
+ // Bound intrinsic text widths before the browser distributes table space:
782
+ // local tarball paths must not take space away from versions and actions.
783
+ const ELLIPSIS = { display: 'block', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', minWidth: 0 }
784
+
785
+ function TableViewport({ label, children }) {
786
+ return h('div', {
787
+ role: 'region',
788
+ 'aria-label': label,
789
+ tabIndex: 0,
790
+ style: { maxWidth: '100%', overflowX: 'auto', overscrollBehaviorX: 'contain' },
791
+ }, children)
792
+ }
793
+
777
794
  function loadTone(row) {
778
795
  if (row.loadStateAvailable !== true) return 'idle'
779
796
  if (row.loadState === 'failed') return 'fail'
@@ -1210,7 +1227,7 @@ window.__ModuleLoader__.load({
1210
1227
  { style: { borderTop: `1px solid ${COLORS.line}` } },
1211
1228
  h(
1212
1229
  'td',
1213
- { style: { padding: '6px 8px', verticalAlign: 'top' } },
1230
+ { style: { padding: '10px 8px', verticalAlign: 'middle' } },
1214
1231
  h('button', {
1215
1232
  type: 'button',
1216
1233
  onClick: onToggle,
@@ -1219,6 +1236,7 @@ window.__ModuleLoader__.load({
1219
1236
  // Without this the button is announced as "▸ dsh-update-checker",
1220
1237
  // which is a triangle, not a state.
1221
1238
  'aria-label': `${expanded ? t.collapseRow : t.expandRow}: ${row.targetId}`,
1239
+ title: row.targetId,
1222
1240
  style: {
1223
1241
  font: 'inherit',
1224
1242
  background: 'none',
@@ -1227,12 +1245,16 @@ window.__ModuleLoader__.load({
1227
1245
  color: 'inherit',
1228
1246
  cursor: 'pointer',
1229
1247
  textAlign: 'left',
1248
+ display: 'flex',
1249
+ alignItems: 'center',
1250
+ width: '100%',
1251
+ minWidth: 0,
1230
1252
  },
1231
1253
  },
1232
- h('span', { style: { marginRight: 6, opacity: 0.6 } }, expanded ? '▾' : '▸'),
1254
+ h('span', { 'aria-hidden': true, style: { marginRight: 6, opacity: 0.6, flexShrink: 0 } }, expanded ? '▾' : '▸'),
1233
1255
  h(
1234
1256
  'span',
1235
- { style: { fontWeight: 500, wordBreak: 'break-word' } },
1257
+ { style: { ...ELLIPSIS, fontWeight: 500 } },
1236
1258
  row.targetId,
1237
1259
  ),
1238
1260
  ),
@@ -1246,25 +1268,26 @@ window.__ModuleLoader__.load({
1246
1268
  ),
1247
1269
  h(
1248
1270
  'td',
1249
- { style: { padding: '6px 8px', verticalAlign: 'top', fontFamily: 'ui-monospace, monospace', fontSize: 12 } },
1250
- row.installedVersion ?? t.unknown,
1271
+ { style: { padding: '10px 8px', verticalAlign: 'middle', fontFamily: 'ui-monospace, monospace', fontSize: 12 } },
1272
+ h('span', { title: row.installedVersion ?? t.unknown, style: ELLIPSIS }, row.installedVersion ?? t.unknown),
1251
1273
  ),
1252
- h('td', { style: { padding: '6px 8px', verticalAlign: 'top', fontSize: 12, wordBreak: 'break-word' } }, sourceLabel(row, t)),
1274
+ h('td', { style: { padding: '10px 8px', verticalAlign: 'middle', fontSize: 12 } },
1275
+ h('span', { title: sourceLabel(row, t), style: ELLIPSIS }, sourceLabel(row, t))),
1253
1276
  h(
1254
1277
  'td',
1255
- { style: { padding: '6px 8px', verticalAlign: 'top', fontSize: 12, whiteSpace: 'nowrap' } },
1278
+ { style: { padding: '10px 8px', verticalAlign: 'middle', fontSize: 12, whiteSpace: 'nowrap' } },
1256
1279
  h(Dot, { tone: loadTone(row) }),
1257
1280
  loadLabel(row, t),
1258
1281
  ),
1259
1282
  h(
1260
1283
  'td',
1261
- { style: { padding: '6px 8px', verticalAlign: 'top', fontSize: 12, whiteSpace: 'nowrap' } },
1284
+ { style: { padding: '10px 8px', verticalAlign: 'middle', fontSize: 12, whiteSpace: 'nowrap' } },
1262
1285
  h(Dot, { tone: compatTone(row) }),
1263
1286
  compatLabel(row, t),
1264
1287
  ),
1265
1288
  h(
1266
1289
  'td',
1267
- { style: { padding: '6px 8px', verticalAlign: 'top', whiteSpace: 'nowrap' } },
1290
+ { style: { padding: '10px 8px', verticalAlign: 'middle', whiteSpace: 'nowrap' } },
1268
1291
  h(
1269
1292
  'div',
1270
1293
  { style: { display: 'flex', gap: 6, flexWrap: 'nowrap' } },
@@ -1301,6 +1324,9 @@ window.__ModuleLoader__.load({
1301
1324
  h(
1302
1325
  'td',
1303
1326
  { colSpan: 6, style: { padding: '4px 8px 12px 26px', background: COLORS.soft } },
1327
+ h(Field, { label: t.colName, value: row.targetId }),
1328
+ h(Field, { label: t.colVersion, value: row.installedVersion }),
1329
+ h(Field, { label: t.colSource, value: sourceLabel(row, t) }),
1304
1330
  h(Field, { label: t.declared, value: row.declaredSpec }),
1305
1331
  h(Field, {
1306
1332
  label: t.declaredObserved,
@@ -2118,7 +2144,7 @@ window.__ModuleLoader__.load({
2118
2144
 
2119
2145
  const table = h(
2120
2146
  'table',
2121
- { style: { width: '100%', borderCollapse: 'collapse', fontSize: 13, marginTop: 10 } },
2147
+ { style: { width: '100%', minWidth: 880, borderCollapse: 'collapse', fontSize: 13, marginTop: 10 } },
2122
2148
  h(
2123
2149
  'thead',
2124
2150
  null,
@@ -2148,7 +2174,7 @@ window.__ModuleLoader__.load({
2148
2174
  data.provider === null ? null : h('div', { style: { fontSize: 11, opacity: 0.6, marginTop: 6 } }, t.skillsProvider(data.provider)),
2149
2175
  skills.length === 0
2150
2176
  ? h('div', { style: { fontSize: 12, opacity: 0.7, padding: '12px 0' } }, t.skillsEmpty)
2151
- : table,
2177
+ : h(TableViewport, { label: t.skillTableScroll }, table),
2152
2178
  // The Git section is shown even when the catalog is empty: a Skill this
2153
2179
  // plugin manages may not have been scanned yet, and the form is the way
2154
2180
  // to stop relying on that.
@@ -2331,7 +2357,15 @@ window.__ModuleLoader__.load({
2331
2357
 
2332
2358
  const table = h(
2333
2359
  'table',
2334
- { style: { width: '100%', borderCollapse: 'collapse', fontSize: 13 } },
2360
+ { style: { width: '100%', minWidth: language === 'zh' ? 1040 : 1200, tableLayout: 'fixed', borderCollapse: 'collapse', fontSize: 13 } },
2361
+ h('colgroup', null,
2362
+ h('col', { style: { width: '28%' } }),
2363
+ h('col', { style: { width: 164 } }),
2364
+ h('col', null),
2365
+ h('col', { style: { width: language === 'zh' ? 84 : 100 } }),
2366
+ h('col', { style: { width: language === 'zh' ? 112 : 172 } }),
2367
+ h('col', { style: { width: language === 'zh' ? 160 : 210 } }),
2368
+ ),
2335
2369
  h(
2336
2370
  'thead',
2337
2371
  null,
@@ -2365,7 +2399,7 @@ window.__ModuleLoader__.load({
2365
2399
 
2366
2400
  return h(
2367
2401
  'div',
2368
- { style: { padding: '18px 20px 32px', maxWidth: 1100, margin: '0 auto' } },
2402
+ { style: { padding: '18px 20px 32px', width: '100%', minWidth: 0, boxSizing: 'border-box', maxWidth: 1240, margin: '0 auto', overflowWrap: 'anywhere', lineHeight: 1.5 } },
2369
2403
  header,
2370
2404
  state.error === null
2371
2405
  ? null
@@ -2447,7 +2481,7 @@ window.__ModuleLoader__.load({
2447
2481
  ? null
2448
2482
  : visible.length === 0
2449
2483
  ? h('div', { style: { fontSize: 12, opacity: 0.7, padding: '12px 0' } }, t.noNewerVersions)
2450
- : table,
2484
+ : h(TableViewport, { label: t.tableScroll }, table),
2451
2485
  tab !== 'plugins' || state.data === null
2452
2486
  ? null
2453
2487
  : h(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-version-manager",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Version management for DSH plugins and skills: an honest inventory of what is installed, a preview of what an update would change, a verifiable snapshot taken before the change, and a recovery path that is only offered when it can actually work.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -24,7 +24,7 @@
24
24
  "docs/assets",
25
25
  "docs/git-write-safety.md",
26
26
  "docs/guide.en.md",
27
- "docs/release-notes-0.1.5.md"
27
+ "docs/release-notes-0.1.6.md"
28
28
  ],
29
29
  "keywords": [
30
30
  "deepseek",
@@ -1,13 +0,0 @@
1
- # dsh-version-manager 0.1.5
2
-
3
- ## 简体中文
4
-
5
- - 适配 DeepSeek Harness 0.2.2-rc.3,保留原有宿主版本的兼容声明。
6
- - 使用 rc.3 的实际宿主与客户端接口检查,并执行现有离线测试和发布包检查。
7
- - 本次兼容性更新不等同于真实上游模型推理验收。稳定与预览渠道分别发布,预览功能不自动进入稳定渠道。
8
-
9
- ## English
10
-
11
- - Qualify DeepSeek Harness 0.2.2-rc.3 while preserving previously declared host compatibility.
12
- - Check against rc.3 host/client interfaces, existing offline suites, and the packaged release.
13
- - Compatibility qualification does not establish successful upstream model generation. Stable and preview channels remain separate.