@fuxi-ailabs/dsh-score
v1.2.0
Published
DSH scoring host: export/import the current Session into Insight, then read, recompute or semantically review its scorecard
Readme
@fuxi-ailabs/dsh-score
DSH 打分 Host 插件,负责「导入 + 打分」。
/score:默认先刷新导出并导入当前会话,再读取、重算或语义评审评分卡。/score --no-import:只读取 Insight 中已有评分卡,跳过导入。- 状态接口:
GET /api/dsh-score/status?sessionId=<sid>。 - 运行时接口:
GET /api/dsh-score/runtime-status。 - 导入并打分接口:
POST /api/dsh-score/session。 - 评分卡只读数据口:
GET /api/dsh-score/scorecard?taskId=<sid>。
浏览器 UI 在独立的 @fuxi-ailabs/dsh-score-ux 中;本包不包含客户端资源,也不注册
观测命令。
安装
pnpm --filter @fuxi-ailabs/dsh-score pack
pnpm --filter @fuxi-ailabs/dsh-score-ux pack/score
/score 刷新导入后读卡
/score --sid <sid> 指定会话
/score --no-import 跳过导入,只读已有卡
/score --recalc 强制重算确定性层
/score --semantic 语义评审(唯一 LLM 入口)
/score --probe-provider 探测语义评审 provider
/score --confirm D2.destructive=fine 人工确认疑似项
/score --bench <0-100> 填 CANN-Bench 总分
/score --open 打开 Insight 评分页
/score --json 保存整卡 JSON
/score --no-cover 跳过覆盖度对账
/score --base <url> 指定 Insight 基址
/score --status 只探活确定性读卡与重算不调用 LLM;只有显式使用 --semantic 才会请求 Insight 的语义评审接口。
配置
- id: dsh-score
name: '@fuxi-ailabs/dsh-score'
config:
insightBase: "http://127.0.0.1:21025"
portFile: null
framework: dsh
includeDescendants: true
coverToleranceMs: 2000
probeTimeoutMs: 1500
requestTimeoutMs: 60000
semanticTimeoutMs: 300000
# 评分卡 JSON 落点(--json)
outputRoot: "~/.dsh-insight/dsh-score"
openBrowser: false
openTarget: scoring
provider: null
borrowDshProvider: true
dshProvider:
apiKeyRef: DEEPSEEK_API_KEY
baseUrl: "https://api.deepseek.com"
model: "deepseek-flash"
# 导入当前会话(与评分输出目录分开)
sessionImport:
outputRoot: "~/.dsh-insight/dsh-export"
insightBin: context-insight
autoInstall: true
autoStart: true
runtime:
packageName: context-insight
version: 0.2.41
installRoot: "~/.dsh-insight/runtime"
npmBin: npm
registry: "https://registry.npmjs.org/"
installTimeoutMs: 1200000
startTimeoutMs: 180000
includeDescendants: true
source: dsh-native
importTimeoutMs: 120000Web 接口
GET /api/dsh-score/status?sessionId=<sid>
GET /api/dsh-score/runtime-status
POST /api/dsh-score/session {"sessionId":"<sid>","semantic":false}
GET /api/dsh-score/scorecard?taskId=<sid>&cover=1POST /api/dsh-score/session 会先导入当前会话,再返回紧凑评分卡和评分页 URL;
semantic: true 时在同一链路中执行语义评审。
