buberlo/dsh-jev--packages-dsh-jev ↗★ 25

@buberlo/dsh-jev

基于Jev的DSH决策层行为映射插件。 已于2026年10月停更,仅建议旧版本DSH用户参考仓库说明。

包名
@buberlo/dsh-jev
兼容性
待验证
Harness 依赖范围
^0.1.6-alpha.2
Cordis 依赖范围
^4.0.2
版本
0.1.4
许可证
MIT
最近更新
2026年10月3日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:buberlo/dsh-jev#830a14dc58917aa83928a79996dd078bfc1dc5be&path:packages/dsh-jev

@buberlo/dsh-jev

[!WARNING] Discontinued (October 2026). This package receives no further releases; 0.1.4 is the last version, tested only against DeepSeek Harness 0.1.6-alpha.x. For Jev in DSH or MCP hosts, please use jevcore (jevcore, jevcore-dsh, jevcore-mcp). See the repository README for details.

The Jev decision layer plugin and bundle for DeepSeek Harness (DSH).

DSH plans, calls tools, and runs them. Jev makes the small, fast decisions in between — and this plugin maps those decisions onto supported DSH behavior. It can only narrow or gate, never widen a permission.

pre-step  ──▶ Jev: which tools are relevant?   ──▶ tools.restrict
tool call ──▶ Jev: is this call safe to run?   ──▶ ask / hold / deny
result    ──▶ deterministic loop guard (no model)
request   ──▶ Jev: which configured model?     ──▶ verified route

Install

dsh plugin --profile  add @buberlo/dsh-jev@0.1.4
dsh --profile  --dump-config   # shows the "# == @buberlo/dsh-jev" layer

0.1.4 is the registry release (npm view 2026-09-23, latest). Its dependency on @buberlo/jev-core is ^0.1.4. Do not install @0.1.2 or @0.1.3: those tarballs still use a literal workspace:^, and npm install fails (EUNSUPPORTEDPROTOCOL). 0.1.3 was abandoned after a staged-version conflict (E409).

The bundle inserts one row; defaults are provider: mock + mode: shadow: deterministic, offline, and behavior-neutral.

Configure

- id: jev
  name: '@buberlo/dsh-jev'
  config:
    provider: mock            # mock | live
    mode: shadow              # off | shadow | enforce
    selection:                # dynamic tool preselection
      enabled: true
      alwaysAllow: [read_file]
      categories:
        files: 'Reading or writing workspace files'
        tests: 'Running or inspecting tests'
      toolCategories:
        read_file: [files]
        run_tests: [tests]
    assessment:               # per-call semantic check
      enabled: true
      onFailure: ask          # ask | hold  (never an allow)
    skills:
      enabled: true
    modelRouting:
      enabled: false
      routes:
        fast: { provider: deepseek-official, model: deepseek-v4-flash }
        reasoning: { provider: deepseek-official, model: deepseek-v4-pro }

Live API — two explicit settings, never implicit:

    provider: live
    mode: shadow              # live + shadow still transmits state
    apiKey: !!js process.env.TYPESAFE_API_KEY

Web client

In a web/desktop profile the bundle ships a configuration page on the Plugins page: provider, live mode selector, a write-only API key field, and the five feature toggles. Writes go to the host settings document and reconfigure the running service immediately.

What it does

Extension pointDecision
agent/pre-steptool selection across independent categories; scoped tools.restrict, recomputed every turn
tools/pre-executecall assessment: task fit, missing information, explicit restriction conflict
tools/result + tools/guardbounded loop detection; identical repeated calls are denied
agent/requestmodel routing to a configured route, only when verified available
ctx.skillsat most one skill hint per turn; bodies are never auto-loaded

Guarantees

  • No implicit live access. provider: live without an explicit key fails at plugin load.
  • No model-derived permissions. Failures, timeouts, stale snapshots, and validation errors produce ask/hold.
  • No premature allow. The listener always delegates first and composes monotonically; later policies are never skipped.
  • No widening. A Jev selection intersects with existing restrictions.
  • No stale decisions, no cache. Decisions are bound to a turn/catalog snapshot; changed arguments are assessed again.
  • Bounded data. Only task text, tool metadata, and bounded/redacted arguments leave the process.

Documentation

  • Project:
  • docs/policy.md · docs/architecture.md · docs/upstream-compatibility.md
  • docs/getting-started.md · docs/skills.md · docs/publishing.md

License

MIT