dsh-bridge-plugin
/dsh-bridge-plugin
Pisze i naprawia wtyczkę mostu między kanałem czatu a jądrem DeepSeek Harness, np. OneBot, WeChat lub QQ, obsługując wejście, wyjście i narzędzia.
- Autor
- yschdxm ↗
- Repozytorium
- dsh-her-kernel ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 29.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 29.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pisze i naprawia wtyczkę mostu między kanałem czatu a jądrem DeepSeek Harness, np. OneBot, WeChat lub QQ, obsługując wejście, wyjście i narzędzia.
Oryginalny opis (EN)
Write or debug a DeepSeek Harness channel bridge plugin that connects a chat protocol (OneBot/SnowLuma/NapCat/WeChat/etc.) to dsh-her-kernel. Use when the user wants to add a new channel, fix ingest/outbound/read-receipt, mount tools per character, or design a bridge package. Triggers: 桥接插件, bridge plugin, OneBot bridge, registerChannel, kernel.ingest, QQ bridge, 渠道插件.
Jak działa
- Read first
- Hard rules
- Minimal skeleton
- Ingest payload
- After implement
- Classifier pattern (outbound only)
- Package.json
Podgląd SKILL.md
---
name: dsh-bridge-plugin
description: Write or debug a DeepSeek Harness channel bridge plugin that connects a chat protocol (OneBot/SnowLuma/NapCat/WeChat/etc.) to dsh-her-kernel. Use when the user wants to add a new channel, fix ingest/outbound/read-receipt, mount tools per character, or design a bridge package. Triggers: 桥接插件, bridge plugin, OneBot bridge, registerChannel, kernel.ingest, QQ bridge, 渠道插件.
---
# dsh-bridge-plugin
Write a **channel bridge** for DeepSeek Harness that talks to **dsh-her-kernel**.
Do not put persona/memory/heart logic in the bridge.
## Read first
- Full guide: `docs/bridge-plugin.md` in this package (relative to the kernel repo root).
- Reference implementation: sibling repo `dsh-her-qq-bridge-sl` (`lib/index.js`, `lib/onebot.js`, `lib/classifier.js`).
- Layer docs: `docs/04-notify.html`, `docs/05-session.html`, `docs/07-bridge.html`.
## Hard rules
1. **Messages never enter the agent session from the bridge.** Only `kernel.ingest(msg)` → message store + notify.
2. **Outbound** goes through `kernel.onOutbound` / kernel `sendOutbound` so the kernel can mark read and route to the right character.
3. **Tool results must be lossless JSON** (no `undefined`, no BigInt, no raw protocol blobs unless stringified cleanly).
4. **Do not** edit the kernel’s `cordis.patch.yml` from a bridge. Do not commit tokens.
5. Character must claim `type` in `character.json.channels` to receive messages.
## Minimal skeleton
```js
export const name = 'dsh-my-bridge'
export const inject = ['herKernel']
export function apply(ctx) {
const kernel = ctx.get?.('herKernel') || ctx.herKernel
if (!kernel?.registerChannel) return
kernel.registerChannel({
type: 'my-im',
notify: { dmPriority: true, injectEnabled: true, injectCooldownMinutes: 0, injectDailyCap: 0, injectRespectQuiet: false, format: '工具:{source} 有 {count} 条消息' },
app: { pageSize: 10 },
notes: '用 App 工具收发;正文不会自动送达。',
})
// inbound
onProtocolMessage(async (m) => {
await kernel.ingest({
channel: 'my-im',
target: String(m.from),
sender: m.nick || m.from,
content: m.text || '[图片]',
time: m.ts || Date.now(),
msg_id: String(m.id),
})
})
kernel.onOutbound('my-im', async ({ target, text }) => {
// classify → send
return { ok: await send(target, text) }
})
}
```
## Ingest payload
Required: `channel`, `target`, `content` (non-empty), `msg_id`.
Recommended: `sender`, `sender_id`, `time`, `seq` (real sequence only), `media` (`images` / `faces` / `quote`).
Empty content is dropped. Use `[图片]` placeholders for media-only.
## After implement
1. `node --check` on changed files.
2. Link package into Harness; restart host (not `systemctl stop` on shared hosts unless you know the blast radius).
3. Character `channels` includes your `type`.
4. Send a test message: log `/tmp/kernel-agent.log` for ingest; confirm `messages.db` row and panel unread.
5. Reply via `app_send`: outbound handler runs; local unread clears; call protocol read-receipt if the client has one.
6. Update user-facing docs if behavior changed.
## Classifier pattern (outbound only)
Keyword hard-block + optional LLM judge; return `{ ok:false, blocked:true, reason }` from outbound so the kernel can bounce a structured notice to the agent. Never block inbound.
## Package.json
```json
{
"name": "dsh-my-bridge",
"type": "module",
"main": "lib/index.js",
"dsh": { "bundle": { "patch": "./cordis.patch.yml" } }
}
```
Install in Harness: `"dsh-my-bridge": "link:/path/to/dsh-my-bridge"`.
Wersje
W bazie nie ma innych skilli o nazwie dsh-bridge-plugin.
Migawka bazy z 13.11.2026 · wersja paczki 31c8d8c190da (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100onebot-ops
Opisuje zasady obsługi i używania kanału OneBot (QQ, Lagrange), w którym wiadomości przechodzą przez Channel outbound i deliver, bez udziału narzędzi agenta. - 90dsh-doc
Dostarcza fakty o działaniu DeepSeek Harness, np. o funkcjach, ustawieniach, wtyczkach i narzędziach, a także pomaga przy pakietach i MCP. - 90nia-teams-dsh
Łączy host DeepSeek Harness albo klienta Agent Bridge z czatami Nia Teams i kartami zatwierdzeń w TaskBar, także przy konfiguracji i naprawie. - 100deepseek-harness-setup
Instaluje i obsługuje Everything Claude Code (ECC) na DeepSeek Harness: katalogi skilli, most hooków, generator, ograniczenia zdarzeń i aktualizacje oraz diagnozę niewidocznych skilli i hooków. - 100dsh-plugin-engineering
Buduje, zmienia i naprawia wtyczki DeepSeek Harness: narzędzia, usługi, zdarzenia, konfigurację, adaptery LLM i interfejs klienta. - 100harness-dsh-install
Instaluje Harness Anything i wtyczkę DeepSeek Harness w aplikacji na macOS lub Windows, a potem sprawdza polecenie ha, presety i tutorial.