treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:borui1757-cmd/dsh-gate
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
部署前的一道总门:插件自己声明入口,gate 只认退出码。不写死场景,不接管生命周期。
tools/lab.mjs(或 scenarios/*.scenario.mjs)+ 退出码 0。任何插件都能接,不用改 gate。needs 只装被测的那几个钩子(request / pre-step / stream / provider),不克隆整个宿主。缺器官直接报错,不静默降级。gate_run 没有跳过开关——想跳过只能不调它。// 场景文件:声明需要哪些器官
export const needs = ['pre-step', 'provider'];
const host = assemble(needs);
apply(host.ctx, config);
const out = await runTurn(host, { messages });
node lib/run-scenarios.mjs examples/scenarios --jobs=4 # 并行跑场景
node lib/check-contract.mjs # 契约对表
node lib/safe.mjs <项目> [--snapshot <文件>] # 备份 + 跑门 + 汇总
宿主内提供工具:gate_run(dir)。
| 不做 | 原因 |
|---|---|
| 复制真实宿主 | 那是 dsh-testkit / dsh-test-drive 的活 |
| 安装/启动/卸载生命周期 | 同上 |
| 内置测试场景 | 场景属于被测插件 |
| 测存储层/并发/真实模型 | 只有真机能测 |
dsh-plugin testing fault-injection contract-testing fake-host ci-gate deploy-gate scenario sandbox nodejs
0.1.0 —— 器官 + 并行场景 + 契约对表跑通;示例 3 场景 / 10 断言 全绿。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: testing。