ThinkFlowLab/dsh-jiuwen-adapter ↗★ 2
@dsh-jiuwen/adapter
Compatibility-first dsh provider powered by a local openjiuwen agent-core sidecar; optional JiuwenSwarm Gateway backend.
同名套件的其他儲存庫
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ThinkFlowLab/dsh-jiuwen-adapter說明文件
閱讀完整 README ↗dsh-jiuwen-adapter
Use Jiuwen as the brain of dsh, with your other dsh plugins still working.
中文 · 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.
| Component | Supported | Tested in CI |
|---|---|---|
| dsh | >=0.2.1-rc.2 =22 | 22, 24 |
| openjiuwen | 0.1.20.post1 (default sidecar) | pinned Python integration tests |
| JiuwenSwarm | optional 0.2.x Gateway | 0.2.7 (legacy live suites) |
The adapter also works in any Cordis app that has an llm service (usage).
Docs
- Quickstart, Configuration, Troubleshooting
- Using it from code and Gateway features, Gateway RPC coverage
- Native agent-core capabilities, dsh integration, Host → Jiuwen sync, Testing, Known issues and test logs
- Publishing to a dsh plugin market, Architecture
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.