build / build-and-scan (push) Waiting to run
文档库:目录改为编号制(01-规范/02-架构设计/03-数据库/04-调整方案/
05-交接单/06-ops/07-scripts/08-skills/09-archive),顶层散文件归入 01-规范/;
INDEX.md 与 docs-manifest.json 重刷(档案 146 篇);旧目录名引用全量对齐。
IM 线:src/im/**(SDK / hub / store / presence / ws / gateway-token)、
src/web/routes/im.ts、src/db/plugin-data/**、src/supervisor/plugin-assembly.ts
及对应 test/**。
插件线:poc/{im-agent-bridge,im-connection-gateway,im-conversation-tabs,
business-plugins-im,carbon-mcp-probe}、src/web/routes/{sessions,overlay-device}.ts、
src/net/relay/{device-grant,instance-credential}.ts。
仓库卫生:清出 40 个历史误入库 / 已改名文件(34 个交接单归档 + 6 个旧结构,
本地均有副本);dsh-server-docs/.gitignore 补 tmp/;交接单不入库(政策)。
86 lines
4.2 KiB
JSON
86 lines
4.2 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",
|
|
"check:layering": "node scripts/check-layering.mjs",
|
|
"verify": "npm run build && node scripts/check-layering.mjs && node --test test/db.test.mjs test/register-guard.test.mjs test/i18n-brand.test.mjs test/local-user-fs.test.mjs test/remote-user-fs.test.mjs test/crash-policy.test.mjs test/locale-pref.test.mjs test/worker-provision.test.mjs test/reachability.test.mjs test/instance-port.test.mjs test/instance-credential.test.mjs test/relay.test.mjs test/remote-spawner.test.mjs test/overlay-network.test.mjs test/overlay-device.test.mjs test/overlay-auth.test.mjs test/overlay-bootstrap.test.mjs test/im-store.test.mjs test/im-agent.test.mjs test/im-sdk.test.mjs test/im-ui.test.mjs test/im-connection-backend.test.mjs test/im-presence-ingest.test.mjs test/im-gateway-access.test.mjs test/plugin-data.test.mjs test/plugin-assembly.test.mjs test/plugin-shared-catalog.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/register-guard.test.mjs test/i18n-brand.test.mjs test/local-user-fs.test.mjs test/remote-user-fs.test.mjs test/crash-policy.test.mjs test/reachability.test.mjs test/instance-port.test.mjs test/instance-credential.test.mjs test/relay.test.mjs test/remote-spawner.test.mjs test/overlay-network.test.mjs test/overlay-device.test.mjs test/overlay-auth.test.mjs test/overlay-bootstrap.test.mjs test/overlay-identity.test.mjs test/relay-failover.test.mjs test/overlay-jitter.test.mjs test/im-store.test.mjs test/im-agent.test.mjs test/im-sdk.test.mjs test/im-ui.test.mjs test/im-connection-backend.test.mjs test/im-presence-ingest.test.mjs test/im-gateway-access.test.mjs test/plugin-data.test.mjs test/plugin-assembly.test.mjs test/plugin-shared-catalog.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"
|
|
}
|
|
}
|