**背景**:这些改动原属本工作区另外几个会话(T01/T02 等),**那些会话已被用户删除** ⇒
工作树里的成果处于"无主"状态,一次错误 checkout / 覆盖即**永久丢失** ⇒ 代入库保全。
口径遵循本项目**先例**(`39a1f2e` / `b617cdb`:**别人的活,代入库并在提交信息里注明**)。
**内容**:档案 101「能力管理」改名 + 页内 tab 分页|档案 102 语言切换搬入「用户设置」|
`07-实例UI分区登记表.md`|`scripts/find-ui*.mjs`(UI 元素定位工具)|`poc/portal-entry/`(0.5.3)|
`src/web/locale-pref.ts` + `home-files.ts`(语言偏好持久化)|`test/locale-pref.test.mjs`|
`package.json`|`BRIEF.md` / `INDEX.md` / `docs-manifest.json` / `03-路线图与待办.md` / 档案 100 增量。
**已做最小健全性检查**(⚠️ **未跑完整构建 / 单测** —— 那是原会话的验收职责,本次只求"不丢"):
- JSON 合法:`package.json` / `poc/business-plugins/package.json` / `docs-manifest.json` ✓
- 4 个 TS 文件 `{}`/`()` 配平 ✓;新增文件均非空 ✓
- 规模:13 文件改动 +340/−210,新增 12 条
**未 push**(按 §4 提交边界:用户说"提交",未说"推送")。
85 lines
2.7 KiB
JSON
85 lines
2.7 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/local-user-fs.test.mjs test/crash-policy.test.mjs test/locale-pref.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 && node scripts/verify-my-skills.mjs && node scripts/verify-portal-entry.mjs",
|
|
"test": "npm run build && node --test test/db.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: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",
|
|
"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"
|
|
}
|
|
}
|