nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ropon/dsh-plugin-clawrouters
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
ClawRouters for DeepSeek Harness: install one DSH bundle, configure one API key in the Web UI, and use chat, image generation, video generation, and web search.
ClawRouters exposes multiple AI capabilities behind one OpenAI-compatible API and one credential. This plugin maps those capabilities into DSH's plugin-native seams instead of adding a separate application:
clawrouters / auto — OpenAI-compatible chat route, including image input.clawrouters_image_generate — generates images and stores them as durable DSH image attachments.clawrouters_video_generate — submits and polls a video task, then returns the signed result URL.clawrouters_web_search — returns structured titles, snippets, and source URLs without replacing DSH's existing generic web_search provider.Requirements: DeepSeek Harness 0.1.0-rc.6 or newer and pnpm on PATH.
Install the tagged GitHub release into the Web profile:
dsh plugin --profile web add github:ropon/dsh-plugin-clawrouters#v0.1.1
dsh web
The repository commits its built lib/ output, so a GitHub installation does not need pnpm allowBuilds or run an install-time build script.
To try a local checkout during development:
dsh plugin --profile web add .
dsh web
The Web UI stores the secret through DSH's credential service under CLAWROUTERS_API_KEY; it is not written into settings.yaml. The chat route and all three tools resolve that same credential on every call, so key rotation applies without rebuilding the plugin.
You can also provide the key through the launch environment:
export CLAWROUTERS_API_KEY='...'
dsh web
This repository is a DSH bundle. cordis.patch.yml does two things:
clawrouters provider profile to DSH's built-in generic llm-pi-ai adapter. Reusing its existing llm-pi-ai settings namespace makes the stock Models page render the ClawRouters credential card—no browser patch or fork is required.dsh-plugin-clawrouters function plugin, which registers the image, video, and search tools into ctx.tools and uses ctx.attachments when that optional service is present.The default API base is https://www.clawrouters.com/api/v1. Tool deployment defaults can be overridden in a later profile patch by targeting id: clawrouters-tools.
- id: clawrouters-tools
config:
apiKeyEnv: CLAWROUTERS_API_KEY
baseURL: https://www.clawrouters.com/api/v1
imageModel: auto
videoModel: auto
imageTimeoutMs: 600000
videoTimeoutMs: 1800000
searchTimeoutMs: 30000
videoPollIntervalMs: 5000
| Capability | ClawRouters API |
|---|---|
| Chat | POST /chat/completions via DSH's pi-ai adapter |
| Image | POST /images/generations |
| Video | POST /videos, compatibility fallback to POST /videos/generations, then GET /videos/{id} |
| Search | POST /search |
Every direct provider request includes the DSH attribution User-Agent and the bearer credential. Image URLs are accepted only over HTTP(S), decoded, format-checked, validated by DSH's attachment policy, and persisted before the tool result is appended. Video result URLs are restricted to HTTP(S).
pnpm install
pnpm check
The test suite covers image persistence, video polling, structured search results, authentication headers, and a bundle-shape smoke check. Built output is committed because DSH supports installing bundles directly from GitHub.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: ai-agent。