relay-dsh-plugin-semantic-router
其他 活跃维护

relay-dsh-plugin-semantic-router

yangbobo2021/relay-dsh-plugin-semantic-router

轻量级事件路由插件,为Relay引入语义匹配机制。通过理解消息意图自动选择处理链,省去手工配置硬编码规则,让复杂事件分发更贴合真实语义。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
163 KB
仓库大小
2 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:yangbobo2021/relay-dsh-plugin-semantic-router
git clone https://github.com/yangbobo2021/relay-dsh-plugin-semantic-router.git
git clone git@github.com:yangbobo2021/relay-dsh-plugin-semantic-router.git
README.md main

Relay Semantic Router for DeepSeek Harness

Stable 0.2.3 is verified on official DSH 0.1.5-rc.2 and 0.1.6-alpha.1. No implementation adaptation was required; its peer metadata declares both exact releases. Install it from npm · Compatibility evidence.

Release channels: latest → 0.2.3; next → 0.2.4-rc.1.

npx @deepseek-ai/dsh@0.1.6-alpha.1 plugin --profile web add relay-dsh-plugin-events@next relay-dsh-plugin-semantic-router@next
npx @deepseek-ai/dsh@0.1.6-alpha.1 web

DSH compatibility

English | 中文

relay-dsh-plugin-semantic-router registers a recall-oriented model Router with
relay-dsh-plugin-events. It decides deliver, escalate, or dismiss from a
normalized Event and compact active-Wait snapshot. It stores nothing and never
admits a DSH Session itself.

The older internal npm channel remains available for integration testing and
does not carry this compatibility guarantee. Use the exact 0.2.1
versions in the latest-DSH command above; do not substitute @internal.

dsh plugin --profile web add --save-exact \
  relay-dsh-plugin-events@internal \
  relay-dsh-plugin-semantic-router@internal

Configure, replace, or disable an existing DSH LLM route from DSH Settings → Waiting
events. Environment variables RELAY_ROUTER_PROVIDER and RELAY_ROUTER_MODEL are
startup fallbacks. Missing or disabled configuration is a visible contained state;
Events continues exact fallback routing without restart.

Build this repository with DSH_ROOT pointing to a prepared official DSH checkout:
npm ci --ignore-scripts && npm run verify && npm pack. Install the resulting
tarballs together. The npm package includes built lib/; raw GitHub source does
not. Each model attempt is bounded to at most 60 seconds, with 1–3 attempts.
Unloading cancels the active request without starting another retry.

See SPEC.md and delivery scenarios.
Tested official DSH references: 0.1.1-rc.2 at
b150a551b8d465e31e418e1b2eaf5e79bbb7d28e, 0.1.2-alpha.2 at
0a53fb55bea101816fa226bb964ae2bed71c343b, and 0.1.2-alpha.3 at dd6322d604e00eec1ba5e0c8541159906a21094a.