ThinkFlowLab/dsh-jiuwen-adapter ↗★ 2

@dsh-jiuwen/adapter

Compatibility-first dsh provider powered by a local openjiuwen agent-core sidecar; optional JiuwenSwarm Gateway backend.

包名
@dsh-jiuwen/adapter
兼容性
待验证
Harness 依赖范围
>=0.2.1-rc.2 <0.3.0
Cordis 依赖范围
^4.0.5
版本
0.2.0
许可证
Apache-2.0
最近更新
2026年11月10日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ThinkFlowLab/dsh-jiuwen-adapter

dsh-jiuwen-adapter

Use Jiuwen as the brain of dsh, with your other dsh plugins still working.

CI tests guarded

version

dsh range

license

中文 · Quickstart · Config · dsh integration · Changelog


A compatibility-first Cordis provider for dsh. It has two backends.

Agent-core (default). A local openjiuwen DeepAgent sidecar: no Gateway, AgentServer, or JiuwenSwarm installation is required. dsh keeps its UI, sessions, plugins, tool execution and permission checks; agent-core runs the agent loop.

flowchart LR
  D["dsh + plugins"] --> A["jiuwen adapter"] -->|"stdio NDJSON-RPC"| C["Python DeepAgent"]
  C -->|"tool calls"| D
  C --> M["Your model endpoint"]

JiuwenSwarm Gateway. Each turn goes to the JiuwenSwarm Gateway, which runs its own agents, tools and memory. Use this path for team/workflow execution, marketplace operations, or to keep existing Gateway-owned history.

flowchart LR
  D["dsh + plugins"] -->|ctx.llm · provider=jiuwen| A["jiuwen adapter"] -->|"WS chat.send"| G["JiuwenSwarm Gateway :19000"]

Set backend: gateway to use this path. Details: Quickstart and backend migration.

Quickstart

Node ≥22, Python 3.13, and dsh >=0.2.1-rc.2

  • /jiuwen compact, /jiuwen history, /jiuwen mode
  • Destructive actions require confirm, e.g. /jiuwen delete confirm.

Headless positional text is an ordinary model prompt, not a slash-command runner.

Migrating from Gateway

backend: agent-core is now the default; gatewayFallback is false. Existing Gateway history is not imported into the sidecar checkpoint store. Start a fresh dsh session, or retain backend: gateway to keep Gateway-owned history. Team/workflow execution and marketplace operations still need Gateway; unavailable operations are reported explicitly. See backend migration and configuration.

Compatibility

Other dsh plugins must keep working. The adapter is tested against the full dsh agent runtime (dsh-agent, dsh-agent-loop, compaction, subagents, goals, plan mode, a bash sandbox, approvals and user-questions). The same scripted session runs once with jiuwen loaded and once without. Every row of the compat matrix must match, covering events, tool calls, plan exit, goal rounds, auto-compaction, subagents, bash, host event counts, globals and load failures.

ComponentSupportedTested in CI
dsh>=0.2.1-rc.2 =2222, 24
openjiuwen0.1.20.post1 (default sidecar)pinned Python integration tests
JiuwenSwarmoptional 0.2.x Gateway0.2.7 (legacy live suites)

The adapter also works in any Cordis app that has an llm service (usage).

Docs

Development

npm run lint                  # node --check over index.js, src/, bin/, scripts/, test/
npm test                      # unit, mock-gateway and runtime suites
npm run test:coverage         # + coverage floors and the test-count baseline (what CI runs)
npm run test:e2e:offline      # real sidecar + scripted model, no key/network
npm run test:e2e              # live lane: SKIP unless explicitly enabled
npm run test:e2e:live         # real dsh + model, Gateway down; see docs/e2e.md
bash scripts/guard-live.sh    # legacy Gateway nightly guard
npm run compat -- --diff      # with vs. without jiuwen compat matrix (needs DSH_NM=)
npm run market:index          # regenerate market/index.json

Licensed under Apache-2.0.