dsh-model-health 0.2.1 → 0.2.4
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 +10 -6
- package/dist/client.js +704 -713
- package/dist/index.js +280 -277
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ dsh plugin --profile web add dsh-model-health
|
|
|
23
23
|
git clone https://github.com/oxlyn/dsh-model-health.git
|
|
24
24
|
cd dsh-model-health
|
|
25
25
|
pnpm install
|
|
26
|
-
pnpm run build #
|
|
26
|
+
pnpm run build # tsdown → dist/index.js (ESM) + dist/client.js (IIFE)
|
|
27
27
|
|
|
28
28
|
# 在插件的父目录执行(dsh plugin add 的相对路径锚定调用目录):
|
|
29
29
|
cd ..
|
|
@@ -70,7 +70,7 @@ dsh --profile web --dump-config | grep dsh-model-health # 配置层含本行
|
|
|
70
70
|
│ - 解析 DSH credential service 获取 API Key │
|
|
71
71
|
└──────────────────────────────────────────────────────────────────┘
|
|
72
72
|
│ fetch
|
|
73
|
-
┌─ client 侧 src/client.
|
|
73
|
+
┌─ client 侧 src/client.tsx(TSX,浏览器端模块)────────────────────┐
|
|
74
74
|
│ - 通过 settings.section slot 注入「模型健康」面板 │
|
|
75
75
|
│ - React(宿主提供)渲染表格 + 状态徽章 + hover 错误提示 │
|
|
76
76
|
│ - 「测试全部」:worker pool 限并发 6,逐个更新行状态 │
|
|
@@ -96,10 +96,14 @@ pnpm run build # 构建 dist/
|
|
|
96
96
|
|
|
97
97
|
```
|
|
98
98
|
dsh-model-health/
|
|
99
|
-
├── src/index.ts
|
|
100
|
-
├── src/
|
|
101
|
-
├──
|
|
102
|
-
|
|
99
|
+
├── src/index.ts # host 入口:tool + HTTP 路由接线
|
|
100
|
+
├── src/host/ # host 实现:config / models / markdown / http / model-test
|
|
101
|
+
├── src/client.tsx # client 入口壳:注入 React,装配插件导出
|
|
102
|
+
├── src/client/ # client 实现:types / runtime / i18n / storage / api /
|
|
103
|
+
│ # styles / columns / use-test-results / apply
|
|
104
|
+
│ └── components/ # ModelListSection / StatusCell / ErrorTooltip
|
|
105
|
+
├── cordis.patch.yml # bundle 层声明(id/name 走包名解析)
|
|
106
|
+
└── dist/ # 构建产物(发布包含在 files 字段中)
|
|
103
107
|
```
|
|
104
108
|
|
|
105
109
|
## 依赖锁定 / Dependencies
|