dsh-triage 0.3.1 → 0.3.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 +66 -32
- package/client.js +378 -69
- package/dist/audit-data.d.ts +6 -0
- package/dist/audit-data.d.ts.map +1 -1
- package/dist/audit-data.js +1 -0
- package/dist/audit-data.js.map +1 -1
- package/dist/cli.js +46 -8
- package/dist/cli.js.map +1 -1
- package/dist/host-upgrade-route.d.ts +39 -0
- package/dist/host-upgrade-route.d.ts.map +1 -0
- package/dist/host-upgrade-route.js +65 -0
- package/dist/host-upgrade-route.js.map +1 -0
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +117 -6
- package/dist/host.js.map +1 -1
- package/dist/serve.js +21 -21
- package/dist/serve.js.map +1 -1
- package/dist/summary.js +28 -28
- package/dist/summary.js.map +1 -1
- package/package.json +4 -4
package/client.js
CHANGED
|
@@ -38,8 +38,17 @@ window.__ModuleLoader__.load({
|
|
|
38
38
|
const inject = ['slots', 'locale', 'modules']
|
|
39
39
|
/** The read-only route built in R51. One place, so a rename cannot drift between halves. */
|
|
40
40
|
const SUMMARY_URL = '/compat-triage/summary'
|
|
41
|
+
/** T-818: the on-demand four-bucket answer, selected by a query on the route that works. */
|
|
42
|
+
const UPGRADE_URL = '/compat-triage/summary?upgrade=1'
|
|
41
43
|
/** How many issues a settings tab may show before it stops being a settings tab. */
|
|
42
44
|
const ISSUES_SHOWN = 3
|
|
45
|
+
/** T-818: the four buckets and the count field each one reads. */
|
|
46
|
+
const UPGRADE_COUNT_KEY = {
|
|
47
|
+
'would-be-denied': 'would_be_denied',
|
|
48
|
+
'cannot-tell': 'cannot_tell',
|
|
49
|
+
improved: 'improved',
|
|
50
|
+
'likely-fine': 'likely_fine',
|
|
51
|
+
}
|
|
43
52
|
/**
|
|
44
53
|
* The pure views, kept so the vm test can render them without a React runtime (see
|
|
45
54
|
* `views()` at the bottom). They are NOT part of the Host contract: the Host only calls
|
|
@@ -49,30 +58,97 @@ window.__ModuleLoader__.load({
|
|
|
49
58
|
|
|
50
59
|
const zh = {
|
|
51
60
|
tab: '分诊台',
|
|
52
|
-
title: '
|
|
53
|
-
hint: '
|
|
54
|
-
counts: '
|
|
55
|
-
|
|
56
|
-
|
|
61
|
+
title: '插件分诊台 · 本地兼容性诊断',
|
|
62
|
+
hint: '由本地诊断引擎提供分析结果,与终端 CLI 输出保持同源。',
|
|
63
|
+
counts: '配置项 {rows} · 已分析 {judged} · 正常 {go} · 存在异常 {denied} · 未明确 {unknown}',
|
|
64
|
+
/** Count table (R55): one row per number, so a reader compares values instead of parsing a sentence. */
|
|
65
|
+
countColumns: ['诊断项', '数量', '说明'],
|
|
66
|
+
countLabels: {
|
|
67
|
+
rows: '配置项总数',
|
|
68
|
+
judged: '已分析',
|
|
69
|
+
go: '正常',
|
|
70
|
+
denied: '存在异常',
|
|
71
|
+
unknown: '未明确',
|
|
72
|
+
collisions: '标识冲突',
|
|
73
|
+
duplicates: '多版本重复',
|
|
74
|
+
},
|
|
75
|
+
countMeanings: {
|
|
76
|
+
rows: '已在 Profile 中声明的插件配置条目',
|
|
77
|
+
judged: '具备依赖声明并已完成推演的条目',
|
|
78
|
+
go: '版本规则匹配正常,可正常加载',
|
|
79
|
+
denied: '依赖版本不满足,启动加载时将被拦截',
|
|
80
|
+
unknown: '未显式声明依赖区间(不作盲目推断)',
|
|
81
|
+
collisions: '多个插件争抢同一 Entry ID',
|
|
82
|
+
duplicates: '同一插件检测到多个不同版本副本',
|
|
83
|
+
},
|
|
84
|
+
issueColumns: ['#', '插件', '结论', '修复'],
|
|
85
|
+
nextColumns: ['操作项', '执行命令'],
|
|
86
|
+
none: '—',
|
|
87
|
+
issues: '待处理问题',
|
|
88
|
+
noIssues: '未检测到兼容性异常或冲突。',
|
|
57
89
|
reason: '原因',
|
|
58
|
-
unknownSuffix: '
|
|
59
|
-
more: '
|
|
60
|
-
next: '
|
|
61
|
-
source: '
|
|
90
|
+
unknownSuffix: '注:未显式声明依赖区间的插件按规则归入“未明确”,不盲目推定为兼容。',
|
|
91
|
+
more: '另有 {n} 项未在当前摘要中显示。',
|
|
92
|
+
next: '下一步建议',
|
|
93
|
+
source: '数据来源于本地只读接口 /compat-triage/summary,与 `dsh-triage status` 同源。',
|
|
62
94
|
reload: '刷新',
|
|
63
95
|
copy: '复制',
|
|
64
96
|
failed: '读取失败',
|
|
65
|
-
pending: '
|
|
66
|
-
unreachable: '
|
|
67
|
-
noWeb: '
|
|
68
|
-
empty: '
|
|
69
|
-
errorEmpty: '
|
|
97
|
+
pending: '正在加载诊断数据…',
|
|
98
|
+
unreachable: '未能获取诊断结果(本地接口无响应),请检查服务状态。',
|
|
99
|
+
noWeb: '当前环境未启用 Web 模块,请在终端执行 `dsh-triage status`。',
|
|
100
|
+
empty: '未检测到已安装插件,通常是主目录或 Profile 路径指定有误。',
|
|
101
|
+
errorEmpty: '诊断接口未返回 summary 数据,暂无法展示指标。',
|
|
102
|
+
upgradeButton: '升级预检',
|
|
103
|
+
upgradeTitle: '升级预检 · 目标 {version}',
|
|
104
|
+
upgradeHint: '点击后才读取 npm 的 next 标签;只判声明层,不是运行期实测。',
|
|
105
|
+
upgradePending: '正在读取 npm 并推演…',
|
|
106
|
+
upgradeOffline: '读取 npm 失败(离线或网络不可用)——不显示任何桶,避免把“读不到”当成“不会坏”。',
|
|
107
|
+
upgradeBucketColumns: ['桶', '数量', '意思'],
|
|
108
|
+
upgradeBucketLabels: {
|
|
109
|
+
'would-be-denied': '会被拒',
|
|
110
|
+
'cannot-tell': '判不了',
|
|
111
|
+
improved: '会变好',
|
|
112
|
+
'likely-fine': '像没事',
|
|
113
|
+
},
|
|
114
|
+
upgradeBucketMeanings: {
|
|
115
|
+
'would-be-denied': '目标版本的准入规则会拒绝这一行/包',
|
|
116
|
+
'cannot-tell': '声明不足或目标还没发布,证据不够',
|
|
117
|
+
improved: '今天被拒、目标放行——目标版本会放行它',
|
|
118
|
+
'likely-fine': '声明上不冲突——不等于升级后能跑',
|
|
119
|
+
},
|
|
120
|
+
upgradeMore: '另有 {n} 个单元未列出。',
|
|
121
|
+
upgradeBoundary: '只判声明层;不是运行期实测,也不改你的 profile。',
|
|
122
|
+
upgradeSource: '数据来源于本地只读接口 /compat-triage/upgrade(点击后读取 npm next)。',
|
|
123
|
+
upgradeBack: '返回现状',
|
|
70
124
|
}
|
|
71
125
|
const en = {
|
|
72
126
|
tab: 'Triage',
|
|
73
127
|
title: 'Triage · will this setup break?',
|
|
74
128
|
hint: 'The conclusion is computed on the host by the same engine as the CLI; this tab only displays it.',
|
|
75
129
|
counts: 'rows {rows} · judged {judged} · fine {go} · will break {denied} · cannot tell {unknown}',
|
|
130
|
+
countColumns: ['Item', 'Count', 'Meaning'],
|
|
131
|
+
countLabels: {
|
|
132
|
+
rows: 'rows',
|
|
133
|
+
judged: 'judged',
|
|
134
|
+
go: 'fine',
|
|
135
|
+
denied: 'will break',
|
|
136
|
+
unknown: 'cannot tell',
|
|
137
|
+
collisions: 'collisions',
|
|
138
|
+
duplicates: 'duplicates',
|
|
139
|
+
},
|
|
140
|
+
countMeanings: {
|
|
141
|
+
rows: 'declared',
|
|
142
|
+
judged: 'judged',
|
|
143
|
+
go: 'admitted',
|
|
144
|
+
denied: 'dropped at start-up',
|
|
145
|
+
unknown: 'not a pass',
|
|
146
|
+
collisions: 'two plugins claim one row id',
|
|
147
|
+
duplicates: 'the same package installed twice',
|
|
148
|
+
},
|
|
149
|
+
issueColumns: ['#', 'Plugin', 'Conclusion', 'Fix'],
|
|
150
|
+
nextColumns: ['If you want', 'Run'],
|
|
151
|
+
none: '—',
|
|
76
152
|
issues: 'What needs you',
|
|
77
153
|
noIssues: 'Nothing here needs your hands.',
|
|
78
154
|
reason: 'reason',
|
|
@@ -88,6 +164,28 @@ window.__ModuleLoader__.load({
|
|
|
88
164
|
noWeb: 'This profile serves no web surface, so the route does not exist. Use `dsh-triage status` in a terminal.',
|
|
89
165
|
empty: 'This home/profile yields zero plugin rows — usually --dsh-home / --profile points somewhere else.',
|
|
90
166
|
errorEmpty: 'The route returned no summary field, so no numbers are shown.',
|
|
167
|
+
upgradeButton: 'Upgrade check',
|
|
168
|
+
upgradeTitle: 'Upgrade check · target {version}',
|
|
169
|
+
upgradeHint: 'The npm next tag is read only after you click; this judges the declaration layer, not a runtime measurement.',
|
|
170
|
+
upgradePending: 'Reading npm and judging the target…',
|
|
171
|
+
upgradeOffline: 'The npm read failed (offline or unreachable). No buckets are shown: "could not read" is not "nothing will break".',
|
|
172
|
+
upgradeBucketColumns: ['Bucket', 'Count', 'Meaning'],
|
|
173
|
+
upgradeBucketLabels: {
|
|
174
|
+
'would-be-denied': 'will be denied',
|
|
175
|
+
'cannot-tell': 'cannot tell',
|
|
176
|
+
improved: 'improved',
|
|
177
|
+
'likely-fine': 'likely fine',
|
|
178
|
+
},
|
|
179
|
+
upgradeBucketMeanings: {
|
|
180
|
+
'would-be-denied': 'the target runtime would deny this row/package',
|
|
181
|
+
'cannot-tell': 'not enough declaration or the target is unpublished',
|
|
182
|
+
improved: 'denied today, admitted at the target — the target would let it through',
|
|
183
|
+
'likely-fine': 'no declaration conflict — not a promise that it runs',
|
|
184
|
+
},
|
|
185
|
+
upgradeMore: '{n} more units not listed.',
|
|
186
|
+
upgradeBoundary: 'Declaration layer only; not a runtime measurement, and it does not touch your profile.',
|
|
187
|
+
upgradeSource: 'Read from /compat-triage/upgrade after a click; the host reads the npm next tag.',
|
|
188
|
+
upgradeBack: 'Back to status',
|
|
91
189
|
}
|
|
92
190
|
|
|
93
191
|
/** Fill `{name}` placeholders. A missing value becomes `?`, never `0`. */
|
|
@@ -132,32 +230,108 @@ window.__ModuleLoader__.load({
|
|
|
132
230
|
const jsx = jsxRuntime.jsx
|
|
133
231
|
const jsxs = jsxRuntime.jsxs
|
|
134
232
|
|
|
135
|
-
/**
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
children
|
|
149
|
-
jsx('
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
233
|
+
/**
|
|
234
|
+
* ONE TABLE PRIMITIVE (R55). The Host's stylesheet does not style our markup, and a borderless
|
|
235
|
+
* table with no padding renders as run-together columns, so a minimal amount of layout is
|
|
236
|
+
* inlined here. Inline styles are presentation only: if the page's CSP drops them, the table
|
|
237
|
+
* is still a table (thead/tbody/tr/th/td) and every number is still in its own cell.
|
|
238
|
+
*/
|
|
239
|
+
const CELL = { padding: '4px 10px 4px 0', textAlign: 'left', verticalAlign: 'top' }
|
|
240
|
+
const HEAD = { ...CELL, fontWeight: 600, whiteSpace: 'nowrap', borderBottom: '1px solid rgba(127,127,127,0.35)' }
|
|
241
|
+
|
|
242
|
+
function matrix(headers, rows, attrs) {
|
|
243
|
+
return jsxs('table', {
|
|
244
|
+
...(attrs || {}),
|
|
245
|
+
style: { borderCollapse: 'collapse', margin: '4px 0 10px', width: '100%' },
|
|
246
|
+
children: [
|
|
247
|
+
jsx('thead', {
|
|
248
|
+
children: jsx('tr', {
|
|
249
|
+
children: headers.map((label, column) =>
|
|
250
|
+
jsx('th', { 'data-col': String(column), style: HEAD, children: String(label) }),
|
|
251
|
+
),
|
|
252
|
+
}),
|
|
154
253
|
}),
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
254
|
+
jsx('tbody', {
|
|
255
|
+
children: rows.map((cells, index) =>
|
|
256
|
+
jsx('tr', {
|
|
257
|
+
'data-row': String(index),
|
|
258
|
+
children: cells.map((cell, column) => jsx('td', { 'data-col': String(column), style: CELL, children: cell })),
|
|
259
|
+
}),
|
|
260
|
+
),
|
|
261
|
+
}),
|
|
262
|
+
],
|
|
263
|
+
})
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Counts as three columns. `data-count-label` / `data-count-value` let the recorder read the
|
|
268
|
+
* numbers back as pairs instead of scraping a sentence.
|
|
269
|
+
*
|
|
270
|
+
* COLLISIONS AND DUPLICATES ONLY APPEAR WHEN THEY EXIST (R55): the headline counts them as
|
|
271
|
+
* "things that will go wrong" ("有 2 个东西会出问题"), so a table that only showed `会坏 1`
|
|
272
|
+
* contradicted the sentence above it — found by looking at the mixed demo, not by a test.
|
|
273
|
+
*/
|
|
274
|
+
function countsTable(counts, copy) {
|
|
275
|
+
const order = [
|
|
276
|
+
['rows', counts.rows],
|
|
277
|
+
['judged', counts.judged],
|
|
278
|
+
['go', counts.go],
|
|
279
|
+
['denied', counts.denied],
|
|
280
|
+
['unknown', counts.unknown],
|
|
281
|
+
['collisions', counts.collisions],
|
|
282
|
+
['duplicates', counts.duplicateCopies],
|
|
283
|
+
].filter(([, value]) => typeof value === 'number')
|
|
284
|
+
const rows = order
|
|
285
|
+
.filter(([key, value]) => (key === 'collisions' || key === 'duplicates') ? Number(value) > 0 : true)
|
|
286
|
+
.map(([key, value]) => [
|
|
287
|
+
jsx('span', { 'data-count-label': key, children: copy.countLabels[key] }),
|
|
288
|
+
jsx('strong', { 'data-count-value': key, children: String(value) }),
|
|
289
|
+
jsx('span', { 'data-count-meaning': key, children: copy.countMeanings[key] }),
|
|
290
|
+
])
|
|
291
|
+
return matrix(copy.countColumns, rows, { 'data-triage-counts': '1' })
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* One row per issue: what it is, then the engine's own reason on a second line inside the same
|
|
296
|
+
* cell. Five columns did not fit a settings dialog; the reason belongs under the conclusion it
|
|
297
|
+
* explains, not in a column of its own.
|
|
298
|
+
*/
|
|
299
|
+
function issuesTable(issues, copy) {
|
|
300
|
+
const rows = issues.map((issue, index) => [
|
|
301
|
+
String(index + 1),
|
|
302
|
+
jsx('code', { children: String(issue.id) }),
|
|
303
|
+
jsxs('span', {
|
|
304
|
+
'data-issue-kind': String(issue.kind),
|
|
305
|
+
children: [
|
|
306
|
+
jsx('span', { children: String(issue.plain) }),
|
|
307
|
+
typeof issue.line === 'string' && issue.line !== ''
|
|
308
|
+
? jsx('span', {
|
|
309
|
+
style: { display: 'block', opacity: 0.75, fontSize: '0.9em' },
|
|
310
|
+
children: `${copy.reason}: ${issue.line}`,
|
|
311
|
+
})
|
|
312
|
+
: null,
|
|
313
|
+
].filter((node) => node !== null),
|
|
314
|
+
}),
|
|
315
|
+
typeof issue.fix === 'string' && issue.fix !== ''
|
|
316
|
+
? jsx('button', {
|
|
317
|
+
type: 'button',
|
|
318
|
+
'data-copy-fix': String(issue.id),
|
|
319
|
+
style: { whiteSpace: 'nowrap' },
|
|
320
|
+
onClick: () => copyText(issue.fix),
|
|
321
|
+
children: copy.copy,
|
|
322
|
+
})
|
|
323
|
+
: copy.none,
|
|
324
|
+
])
|
|
325
|
+
return matrix(copy.issueColumns, rows, { 'data-triage-issues': String(issues.length) })
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/** Two columns: what you want to do, and the command. No prose in between. */
|
|
329
|
+
function nextTable(steps, copy) {
|
|
330
|
+
const rows = steps.map((step) => [String(step.label), jsx('code', { children: String(step.command) })])
|
|
331
|
+
return matrix(copy.nextColumns, rows)
|
|
158
332
|
}
|
|
159
333
|
|
|
160
|
-
function summaryView(summary, copy, onRefresh) {
|
|
334
|
+
function summaryView(summary, copy, onRefresh, onUpgrade) {
|
|
161
335
|
const counts = summary && summary.counts ? summary.counts : null
|
|
162
336
|
const children = [jsx('h3', { children: copy.title }), jsx('p', { children: copy.hint })]
|
|
163
337
|
children.push(
|
|
@@ -167,18 +341,7 @@ window.__ModuleLoader__.load({
|
|
|
167
341
|
}),
|
|
168
342
|
)
|
|
169
343
|
if (counts !== null) {
|
|
170
|
-
children.push(
|
|
171
|
-
jsx('p', {
|
|
172
|
-
'data-triage-counts': '1',
|
|
173
|
-
children: fill(copy.counts, {
|
|
174
|
-
rows: counts.rows,
|
|
175
|
-
judged: counts.judged,
|
|
176
|
-
go: counts.go,
|
|
177
|
-
denied: counts.denied,
|
|
178
|
-
unknown: counts.unknown,
|
|
179
|
-
}),
|
|
180
|
-
}),
|
|
181
|
-
)
|
|
344
|
+
children.push(countsTable(counts, copy))
|
|
182
345
|
// Zero rows is not a clean profile: it is usually the wrong home. Say so (R49's lesson).
|
|
183
346
|
if (counts.rows === 0) children.push(jsx('p', { children: copy.empty }))
|
|
184
347
|
}
|
|
@@ -186,30 +349,24 @@ window.__ModuleLoader__.load({
|
|
|
186
349
|
if (issues.length === 0) children.push(jsx('p', { children: copy.noIssues }))
|
|
187
350
|
else {
|
|
188
351
|
children.push(jsx('h4', { children: copy.issues }))
|
|
189
|
-
children.push(
|
|
190
|
-
jsxs('ul', {
|
|
191
|
-
'data-triage-issues': String(issues.length),
|
|
192
|
-
children: issues.map((issue, index) => issueRow(issue, copy, index)),
|
|
193
|
-
}),
|
|
194
|
-
)
|
|
352
|
+
children.push(issuesTable(issues, copy))
|
|
195
353
|
if (summary.more > 0) children.push(jsx('p', { children: fill(copy.more, { n: summary.more }) }))
|
|
196
354
|
}
|
|
197
355
|
if (counts !== null && counts.unknown > 0) children.push(jsx('p', { children: copy.unknownSuffix }))
|
|
198
356
|
if (summary && Array.isArray(summary.next) && summary.next.length > 0) {
|
|
199
357
|
children.push(jsx('h4', { children: copy.next }))
|
|
200
|
-
children.push(
|
|
201
|
-
jsxs('ul', {
|
|
202
|
-
children: summary.next.map((step) =>
|
|
203
|
-
jsxs('li', {
|
|
204
|
-
// A separator is written INTO the line, not left to the Host's CSS: in the real
|
|
205
|
-
// page the label and the command rendered as one run-together string ("逐行归因dsh-triage why").
|
|
206
|
-
children: [jsx('span', { children: `${String(step.label)} — ` }), jsx('code', { children: String(step.command) })],
|
|
207
|
-
}),
|
|
208
|
-
),
|
|
209
|
-
}),
|
|
210
|
-
)
|
|
358
|
+
children.push(nextTable(summary.next, copy))
|
|
211
359
|
}
|
|
212
360
|
children.push(jsx('p', { children: copy.source }))
|
|
361
|
+
// T-818: the second screen is on demand. This button is the only thing that reads npm.
|
|
362
|
+
children.push(
|
|
363
|
+
jsx('button', {
|
|
364
|
+
type: 'button',
|
|
365
|
+
'data-triage-action': 'upgrade',
|
|
366
|
+
onClick: onUpgrade,
|
|
367
|
+
children: copy.upgradeButton,
|
|
368
|
+
}),
|
|
369
|
+
)
|
|
213
370
|
children.push(jsx('button', { type: 'button', onClick: onRefresh, children: copy.reload }))
|
|
214
371
|
return jsxs('div', { 'data-triage-tab': 'summary', children })
|
|
215
372
|
}
|
|
@@ -233,7 +390,55 @@ window.__ModuleLoader__.load({
|
|
|
233
390
|
return jsxs('div', { 'data-triage-tab': 'error', 'data-triage-kind': String(kind), children })
|
|
234
391
|
}
|
|
235
392
|
|
|
236
|
-
|
|
393
|
+
/**
|
|
394
|
+
* T-818: four buckets, each with `data-upgrade-bucket` / `data-upgrade-count` so the recorder
|
|
395
|
+
* can read them as pairs. The words come from the Host's copy; nothing is counted here.
|
|
396
|
+
*/
|
|
397
|
+
function upgradeView(result, copy, onBack) {
|
|
398
|
+
const upgrade = result && result.upgrade ? result.upgrade : null
|
|
399
|
+
const target = upgrade && upgrade.target && upgrade.target.version ? String(upgrade.target.version) : '?'
|
|
400
|
+
const children = [jsx('h3', { children: fill(copy.upgradeTitle, { version: target }) }), jsx('p', { children: copy.upgradeHint })]
|
|
401
|
+
if (upgrade && upgrade.counts) {
|
|
402
|
+
const rows = ['would-be-denied', 'cannot-tell', 'improved', 'likely-fine'].map((bucket) => {
|
|
403
|
+
const count = upgrade.counts[UPGRADE_COUNT_KEY[bucket]] ?? 0
|
|
404
|
+
return [
|
|
405
|
+
jsx('span', { 'data-upgrade-label': bucket, children: copy.upgradeBucketLabels[bucket] }),
|
|
406
|
+
jsx('strong', { 'data-upgrade-bucket': bucket, 'data-upgrade-count': String(count), children: String(count) }),
|
|
407
|
+
jsx('span', { children: copy.upgradeBucketMeanings[bucket] }),
|
|
408
|
+
]
|
|
409
|
+
})
|
|
410
|
+
children.push(matrix(copy.upgradeBucketColumns, rows, { 'data-triage-upgrade': '1' }))
|
|
411
|
+
if (upgrade.more > 0) children.push(jsx('p', { children: fill(copy.upgradeMore, { n: upgrade.more }) }))
|
|
412
|
+
}
|
|
413
|
+
children.push(jsx('p', { children: copy.upgradeBoundary }))
|
|
414
|
+
children.push(jsx('p', { children: copy.upgradeSource }))
|
|
415
|
+
children.push(jsx('button', { type: 'button', onClick: onBack, children: copy.upgradeBack }))
|
|
416
|
+
return jsxs('div', { 'data-triage-tab': 'upgrade', children })
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/** Offline / unreadable is its own sentence, never a zero-filled bucket table. */
|
|
420
|
+
function upgradeFailureView(status, result, copy, onBack) {
|
|
421
|
+
const loading = status === 'loading'
|
|
422
|
+
const children = [jsx('h3', { children: copy.upgradeButton }), jsx('p', { children: copy.upgradeHint })]
|
|
423
|
+
if (loading) children.push(jsx('p', { children: copy.upgradePending }))
|
|
424
|
+
else children.push(jsx('p', { children: copy.upgradeOffline }))
|
|
425
|
+
if (result && result.detail) children.push(jsx('p', { children: `${copy.failed}: ${String(result.detail)}` }))
|
|
426
|
+
children.push(jsx('button', { type: 'button', onClick: onBack, children: copy.upgradeBack }))
|
|
427
|
+
/*
|
|
428
|
+
* R62: "still reading the registry" and "the read failed" used to share one mark
|
|
429
|
+
* (`data-triage-tab="upgrade-error"`), so any observer that asked "is there an error view?"
|
|
430
|
+
* answered yes while the answer was still on the wire — the R61 harness did exactly that and
|
|
431
|
+
* reported a hung fetch. Two states, two marks. The kind attribute keeps `loading` as well,
|
|
432
|
+
* so a probe that only reads `data-triage-kind` still cannot mistake it for a verdict.
|
|
433
|
+
*/
|
|
434
|
+
return jsxs('div', {
|
|
435
|
+
'data-triage-tab': loading ? 'upgrade-loading' : 'upgrade-error',
|
|
436
|
+
'data-triage-kind': String(result && result.kind ? result.kind : status),
|
|
437
|
+
children,
|
|
438
|
+
})
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
return { summaryView, failureView, upgradeView, upgradeFailureView }
|
|
237
442
|
}
|
|
238
443
|
|
|
239
444
|
/**
|
|
@@ -248,6 +453,8 @@ window.__ModuleLoader__.load({
|
|
|
248
453
|
return function CompatTriageTab(props) {
|
|
249
454
|
const copy = props.copy
|
|
250
455
|
const [state, setState] = useState({ status: 'idle', result: null })
|
|
456
|
+
const [screen, setScreen] = useState('summary')
|
|
457
|
+
const [upgrade, setUpgrade] = useState({ status: 'idle', result: null })
|
|
251
458
|
const load = useCallback(() => {
|
|
252
459
|
let cancelled = false
|
|
253
460
|
setState((previous) => ({ ...previous, status: 'loading' }))
|
|
@@ -268,12 +475,40 @@ window.__ModuleLoader__.load({
|
|
|
268
475
|
cancelled = true
|
|
269
476
|
}
|
|
270
477
|
}, [props])
|
|
478
|
+
/*
|
|
479
|
+
* T-818: the upgrade screen is opened by the button, never by mount. Calling this function is
|
|
480
|
+
* the only thing in the tab that causes an npm read.
|
|
481
|
+
*/
|
|
482
|
+
const loadUpgrade = useCallback(() => {
|
|
483
|
+
let cancelled = false
|
|
484
|
+
setScreen('upgrade')
|
|
485
|
+
setUpgrade({ status: 'loading', result: null })
|
|
486
|
+
Promise.resolve()
|
|
487
|
+
.then(() => props.loadUpgrade())
|
|
488
|
+
.then((result) => {
|
|
489
|
+
if (cancelled) return
|
|
490
|
+
setUpgrade({ status: result && result.ok ? 'ready' : 'failed', result })
|
|
491
|
+
})
|
|
492
|
+
.catch((error) => {
|
|
493
|
+
if (cancelled) return
|
|
494
|
+
setUpgrade({ status: 'failed', result: { ok: false, kind: 'thrown', detail: String((error && error.message) || error) } })
|
|
495
|
+
})
|
|
496
|
+
return () => {
|
|
497
|
+
cancelled = true
|
|
498
|
+
}
|
|
499
|
+
}, [props])
|
|
271
500
|
useEffect(() => load(), [load])
|
|
501
|
+
if (screen === 'upgrade') {
|
|
502
|
+
if (upgrade.status !== 'ready' || upgrade.result === null || upgrade.result.ok !== true || !upgrade.result.upgrade) {
|
|
503
|
+
return views.upgradeFailureView(upgrade.status, upgrade.result, copy, () => setScreen('summary'))
|
|
504
|
+
}
|
|
505
|
+
return views.upgradeView(upgrade.result, copy, () => setScreen('summary'))
|
|
506
|
+
}
|
|
272
507
|
const result = state.result
|
|
273
508
|
if (state.status !== 'ready' || result === null || result.ok !== true || result.summary === null) {
|
|
274
509
|
return views.failureView(state.status === 'idle' ? null : result, copy, load)
|
|
275
510
|
}
|
|
276
|
-
return views.summaryView(result.summary, copy, load)
|
|
511
|
+
return views.summaryView(result.summary, copy, load, loadUpgrade)
|
|
277
512
|
}
|
|
278
513
|
}
|
|
279
514
|
|
|
@@ -332,6 +567,13 @@ window.__ModuleLoader__.load({
|
|
|
332
567
|
* a test double) falls back to English, which is also what `summary.en` is for.
|
|
333
568
|
*/
|
|
334
569
|
const activeLocale = t('tab') === zh.tab ? 'zh' : 'en'
|
|
570
|
+
/*
|
|
571
|
+
* STRUCTURED COPY COMES FROM THE DICTIONARY, NOT FROM `t()` (R55): `t()` is the Host's string
|
|
572
|
+
* binding — feeding it arrays and objects to get column labels back would be relying on
|
|
573
|
+
* behaviour nobody promised. Tables need labels, so they are read from the dictionary this
|
|
574
|
+
* plugin registered, for the same locale `t()` just reported.
|
|
575
|
+
*/
|
|
576
|
+
const dict = activeLocale === 'zh' ? zh : en
|
|
335
577
|
const injected = () => ({
|
|
336
578
|
locale: activeLocale,
|
|
337
579
|
copy: {
|
|
@@ -339,6 +581,12 @@ window.__ModuleLoader__.load({
|
|
|
339
581
|
title: t('title'),
|
|
340
582
|
hint: t('hint'),
|
|
341
583
|
counts: t('counts'),
|
|
584
|
+
countColumns: dict.countColumns,
|
|
585
|
+
countLabels: dict.countLabels,
|
|
586
|
+
countMeanings: dict.countMeanings,
|
|
587
|
+
issueColumns: dict.issueColumns,
|
|
588
|
+
nextColumns: dict.nextColumns,
|
|
589
|
+
none: dict.none,
|
|
342
590
|
issues: t('issues'),
|
|
343
591
|
noIssues: t('noIssues'),
|
|
344
592
|
reason: t('reason'),
|
|
@@ -354,6 +602,18 @@ window.__ModuleLoader__.load({
|
|
|
354
602
|
noWeb: t('noWeb'),
|
|
355
603
|
empty: t('empty'),
|
|
356
604
|
errorEmpty: t('errorEmpty'),
|
|
605
|
+
upgradeButton: t('upgradeButton'),
|
|
606
|
+
upgradeTitle: t('upgradeTitle'),
|
|
607
|
+
upgradeHint: t('upgradeHint'),
|
|
608
|
+
upgradePending: t('upgradePending'),
|
|
609
|
+
upgradeOffline: t('upgradeOffline'),
|
|
610
|
+
upgradeBucketColumns: dict.upgradeBucketColumns,
|
|
611
|
+
upgradeBucketLabels: dict.upgradeBucketLabels,
|
|
612
|
+
upgradeBucketMeanings: dict.upgradeBucketMeanings,
|
|
613
|
+
upgradeMore: t('upgradeMore'),
|
|
614
|
+
upgradeBoundary: t('upgradeBoundary'),
|
|
615
|
+
upgradeSource: t('upgradeSource'),
|
|
616
|
+
upgradeBack: t('upgradeBack'),
|
|
357
617
|
},
|
|
358
618
|
/*
|
|
359
619
|
* FACTS FROM THE HOST, NOT JUDGEMENTS MADE HERE (铁律 1). The route answers with the
|
|
@@ -410,6 +670,55 @@ window.__ModuleLoader__.load({
|
|
|
410
670
|
}
|
|
411
671
|
return publishData({ ok: true, kind: null, summary, detail: null })
|
|
412
672
|
},
|
|
673
|
+
/*
|
|
674
|
+
* T-818: fetched only when the person clicks "升级预检". A route that is missing (404) or a
|
|
675
|
+
* registry that cannot be read (502/504) produces a sentence, never a zero-filled bucket table.
|
|
676
|
+
*/
|
|
677
|
+
loadUpgrade: async () => {
|
|
678
|
+
const publishUpgrade = (result) => {
|
|
679
|
+
try {
|
|
680
|
+
if (typeof window === 'object' && window !== null) {
|
|
681
|
+
window.__dshTriage = {
|
|
682
|
+
...(window.__dshTriage || {}),
|
|
683
|
+
upgrade: {
|
|
684
|
+
ok: result.ok,
|
|
685
|
+
kind: result.kind ?? null,
|
|
686
|
+
target: result.upgrade && result.upgrade.target ? result.upgrade.target.version : null,
|
|
687
|
+
counts: result.upgrade && result.upgrade.counts ? result.upgrade.counts : null,
|
|
688
|
+
},
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
} catch {
|
|
692
|
+
// The marker is diagnostic only; the screen still works without it.
|
|
693
|
+
}
|
|
694
|
+
return result
|
|
695
|
+
}
|
|
696
|
+
let response
|
|
697
|
+
try {
|
|
698
|
+
response = await fetch(UPGRADE_URL, {
|
|
699
|
+
credentials: 'include',
|
|
700
|
+
headers: { accept: 'application/json' },
|
|
701
|
+
})
|
|
702
|
+
} catch (error) {
|
|
703
|
+
return publishUpgrade({ ok: false, kind: 'thrown', upgrade: null, detail: String((error && error.message) || error) })
|
|
704
|
+
}
|
|
705
|
+
if (!response.ok) {
|
|
706
|
+
const kind = response.status === 404 ? 'route-missing' : 'http'
|
|
707
|
+
let detail = `HTTP ${response.status}`
|
|
708
|
+
try {
|
|
709
|
+
const body = await response.json()
|
|
710
|
+
if (body && typeof body.error === 'string') detail = `${response.status}: ${body.error}`
|
|
711
|
+
} catch {
|
|
712
|
+
// A non-JSON error body is still an error; the status is the fact we have.
|
|
713
|
+
}
|
|
714
|
+
return publishUpgrade({ ok: false, kind, upgrade: null, detail })
|
|
715
|
+
}
|
|
716
|
+
const payload = await response.json()
|
|
717
|
+
if (!payload || !payload.counts || !payload.target) {
|
|
718
|
+
return publishUpgrade({ ok: false, kind: 'no-upgrade', upgrade: null, detail: null })
|
|
719
|
+
}
|
|
720
|
+
return publishUpgrade({ ok: true, kind: null, upgrade: payload, detail: null })
|
|
721
|
+
},
|
|
413
722
|
})
|
|
414
723
|
slots.inject('settings.plugins.tab', () =>
|
|
415
724
|
slots.register(
|
|
@@ -432,7 +741,7 @@ window.__ModuleLoader__.load({
|
|
|
432
741
|
const registered = register(ctx, require)
|
|
433
742
|
publishMarker(
|
|
434
743
|
registered
|
|
435
|
-
? { registered: true, slot: 'settings.plugins.tab', id: NS, route: SUMMARY_URL }
|
|
744
|
+
? { registered: true, slot: 'settings.plugins.tab', id: NS, route: SUMMARY_URL, upgrade: UPGRADE_URL }
|
|
436
745
|
: { registered: false, reason: 'contract-missing', id: NS },
|
|
437
746
|
)
|
|
438
747
|
return registered
|
package/dist/audit-data.d.ts
CHANGED
|
@@ -35,6 +35,12 @@ export interface AuditData {
|
|
|
35
35
|
readonly duplicates: readonly DuplicateCopy[];
|
|
36
36
|
readonly duplicateFindings: readonly DuplicateCopy[];
|
|
37
37
|
readonly rows: Awaited<ReturnType<typeof resolveRows>>;
|
|
38
|
+
/** Bundle layers as the composition loader read them (R61: the upgrade route reuses this scan). */
|
|
39
|
+
readonly bundles: readonly {
|
|
40
|
+
readonly name: string;
|
|
41
|
+
readonly version: string | null;
|
|
42
|
+
readonly manifest: unknown | null;
|
|
43
|
+
}[];
|
|
38
44
|
readonly rowVerdicts: readonly Verdict[];
|
|
39
45
|
readonly presetDeclarations: readonly PresetDeclaration[];
|
|
40
46
|
readonly snapshot: InventorySnapshot | null;
|
package/dist/audit-data.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-data.d.ts","sourceRoot":"","sources":["../src/audit-data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAIL,qBAAqB,EAWrB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACb,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAChF,OAAO,EAAwC,WAAW,EAAE,MAAM,WAAW,CAAA;AAE7E,8FAA8F;AAC9F,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,OAAO,EAAE,SAAS;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,EAAE,CAAA;IACvE,QAAQ,CAAC,UAAU,EAAE,SAAS,iBAAiB,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,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I,EAAE,SAAS,EACf,OAAO,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACvD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA8EzB;AAED,4FAA4F;AAC5F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,UAAU,CAOnE"}
|
package/dist/audit-data.js
CHANGED
|
@@ -76,6 +76,7 @@ export async function loadAuditData(input) {
|
|
|
76
76
|
duplicates,
|
|
77
77
|
duplicateFindings,
|
|
78
78
|
rows,
|
|
79
|
+
bundles: composition.layers.map((layer) => ({ name: layer.name, version: layer.version ?? null, manifest: layer.manifest ?? null })),
|
|
79
80
|
rowVerdicts,
|
|
80
81
|
presetDeclarations,
|
|
81
82
|
snapshot,
|
package/dist/audit-data.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-data.js","sourceRoot":"","sources":["../src/audit-data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,SAAS,EACT,UAAU,EACV,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,GAOzB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAsB,MAAM,qBAAqB,CAAA;AAChF,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"audit-data.js","sourceRoot":"","sources":["../src/audit-data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;A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