档案 91 ——「模型设置」页折行 + 复刻官方交互(插件 0.3.15) · 折行根因不是"窄":原「我已添加的厂家」是 4 列表格(列宽 auto)⇒ 名称/状态/两按钮三处折行同源; 改官方 dsh-client-ui-settings-models 的**卡片行**(rowHead + rowActions margin-left:auto,两侧 nowrap) · 「新增」改官方**两步式**:默认两个虚线按钮 → 点开才出卡片,主字段只剩「API 密钥」 (官方原文:页面从不询问环境变量名);次要字段收进 <details>「自定义设置」 · CSS 数值逐值照抄官方 CSS 模块;顺修「由 admin 配置」「密钥可留空」两处错文案,补删除二次确认 档案 92 —— 官方推荐插件列表按 dsh 版本过滤(插件 0.3.16) · 官方目录不带 dsh 版本字段 ⇒ 逐包查 npm 声明与平台真实版本比,分类 match/none/newer/older/unknown · 默认隐藏「仅兼容更旧版本」,「需更高版本」橙色标注;勾选框为逃生口;说明行给隐藏计数(不静默消失) · ⚠️ 判 satisfies 必须带 includePrerelease(平台是 prerelease,默认语义会把在跑的 dshmarket 之类判成更旧) 档案 93 —— 兼容判定收口(服务器 CI 由红转绿) · 「单测长期红」真相 = 服务器源码落后于 git(本机 48/0 全绿)⇒ 同步即修,非代码问题 · 伞包 @deepseek-ai/dsh 收口到 dsh-install.platformPackageVersion()(它不在自己的 node_modules 里, 原先恒判 null ⇒ 声明在伞包上的"要求更高版本"全被放行);闸门与列表共用同一份版本表 · 闸门判据 A 加 prerelease 兜底:实测抽样 300 里 prerelease-artifact 117 条(≈39% 假阳性, 含在跑的 dshmarket)⇒ 容忍下能满足则只计数(prereleaseOnly)不阻断 校验 · 新增 scripts/verify-dsh-compat.mjs(21 条回归锚点)与 verify-models-dict.mjs / verify-models-render.cjs · verify-platform-admin-section.mjs:断言从旧 UI(表格/下拉「自定义厂家…」)改成断言新 UI (含模拟点击两个新增入口 + 选中目录厂家) · 两个仓库外的动作:服务器 npm run build + ci.sh(CI OK)+ systemctl restart dshs;插件 0.3.16 已铺发 ⚠️ 本提交未包含 src/supervisor/orchestrator.ts —— 那是别人在途的内存配额改动 (BASE 160→448 / MIN 384→512 / MAX 1024→1536 / mcn 128→256),其对应的客户端常量尚未同步, 本机 verify-mem-model 因此有 4 项红;提交后仓库树两边均为旧值,该断言在 HEAD 上一致。
87 lines
2.8 KiB
JSON
87 lines
2.8 KiB
JSON
{
|
|
"name": "dshs",
|
|
"version": "0.1.0",
|
|
"description": "面向公网的多租户 DSH 托管平台:登录审核、每用户隔离的 DSH 环境(主 + 按需守护)、桌面与域名访问。",
|
|
"type": "module",
|
|
"main": "./lib/index.js",
|
|
"exports": {
|
|
".": "./lib/index.js",
|
|
"./runtime": "./lib/runtime.js"
|
|
},
|
|
"bin": {
|
|
"dshs": "./lib/cli.js"
|
|
},
|
|
"files": [
|
|
"lib",
|
|
"web",
|
|
"cordis.patch.yml",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"prepare": "npm run build",
|
|
"dev": "node lib/cli.js",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"verify": "npm run build && node --test test/db.test.mjs test/k8s-spawner.test.mjs test/leader.test.mjs test/local-user-fs.test.mjs test/crash-policy.test.mjs && node scripts/verify-inject.cjs lib/supervisor/proxy.js && node scripts/verify-static.mjs && node scripts/verify-platform-admin-section.mjs && node scripts/verify-mem-model.mjs && node scripts/verify-model-landing.mjs && node scripts/verify-dsh-install.mjs && node scripts/verify-models-dict.mjs && node scripts/verify-models-render.cjs && node scripts/verify-dsh-compat.mjs",
|
|
"test": "npm run build && node --test test/db.test.mjs test/k8s-spawner.test.mjs test/leader.test.mjs test/local-user-fs.test.mjs test/crash-policy.test.mjs && node scripts/verify-inject.cjs lib/supervisor/proxy.js",
|
|
"smoke": "node scripts/smoke.mjs",
|
|
"smoke:admin": "node scripts/smoke-admin.mjs",
|
|
"smoke:auth": "node scripts/smoke-auth.mjs",
|
|
"smoke:fs": "node scripts/smoke-fs.mjs",
|
|
"smoke:file-service": "node scripts/smoke-file-service.mjs",
|
|
"smoke:dsh": "node scripts/smoke-dsh.mjs",
|
|
"smoke:domain": "node scripts/smoke-domain.mjs",
|
|
"smoke:isolation": "node scripts/smoke-isolation.mjs",
|
|
"smoke:subdomain": "node scripts/smoke-subdomain.mjs"
|
|
},
|
|
"dsh": {
|
|
"plugin": true,
|
|
"kind": "server",
|
|
"bundle": {
|
|
"patch": "./cordis.patch.yml"
|
|
}
|
|
},
|
|
"disclosure": {
|
|
"cloud": true,
|
|
"network": [
|
|
"https://api.deepseek.com"
|
|
],
|
|
"apiKeys": [
|
|
{
|
|
"env": "DEEPSEEK_API_KEY",
|
|
"storage": "sqlite-encrypted-ref"
|
|
}
|
|
],
|
|
"permissions": {
|
|
"filesystem": "per-user-0700",
|
|
"network": "egress",
|
|
"env": "read-listed"
|
|
},
|
|
"jurisdiction": [
|
|
"PIPL(CN)"
|
|
],
|
|
"retention": "server"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/rate-limit": "^10.0.0",
|
|
"@fastify/static": "^10.1.3",
|
|
"@kubernetes/client-node": "^2.0.0",
|
|
"better-sqlite3": "^11.10.0",
|
|
"fastify": "^5.0.0",
|
|
"pg": "^8.23.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/better-sqlite3": "^7.6.11",
|
|
"@types/node": "^22.10.0",
|
|
"@types/pg": "^8.23.1",
|
|
"typescript": "^5.7.0"
|
|
},
|
|
"engines": {
|
|
"node": "^22.19.0 || >=24"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://work.alotbuy.com/maogeigei/dsh_shenxian.git"
|
|
}
|
|
}
|