wz-heng/dsh-feishu-bridge5

dsh-feishu-bridge

DSH plugin shell for dsh-feishu-bridge: spawns and supervises the Feishu (Lark) channel bridge's Python process as a managed child of the DSH Host. The bridge itself is unchanged Python — this package only adds the dsh.bundle install path.

AI 분석

核心用途是将飞书通道桥接器集成到 DSH 插件体系中进行统一监管。适合需要将 DSH 对话接入飞书的用户。注意:需用户自行提前安装好 Python 依赖环境。

패키지
dsh-feishu-bridge
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 16.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wz-heng/dsh-feishu-bridge

Configuration reference

Everything is an environment variable. An optional YAML file (path via DSH_FEISHU_BRIDGE_CONFIG, or --config) can supply the non-secret knobs (allowlists, model, provider) — see examples/config.example.yaml. Env vars always win when both are set, and credentials are never read from the YAML file on purpose.

Env varDefaultMeaning
DEEPSEEK_API_KEYRequired. Same var the SDK itself reads.
DEEPSEEK_BASE_URLOptional, for an OpenAI-compatible proxy.
DSH_PROVIDERdeepseek-officialProvider route (see SDK docs).
DSH_MODELdeepseek-v4-flashModel id.
DSH_MAX_TOKENSunsetOptional per-request output cap.
DSH_CORDISunsetPath to a custom Cordis composition; omit to use the bundled default. Mutually exclusive with DSH_APPROVAL_MODE (that mode ships its own composition — see "Remote tool approval").
DSH_SESSION_ROOTunsetWhere the runtime writes its JSONL session logs.
DSH_WORKSPACEcurrent dirThe workspace the agent's tools operate in.
DSH_APPROVAL_MODE01/true/yes/on to require a Feishu Allow/Deny tap before every bash call — see "Remote tool approval".
DSH_APPROVAL_TIMEOUT_SECONDS60How long a pending approval card waits before it's denied automatically (fail-closed).
FEISHU_APP_ID / FEISHU_APP_SECRETBoth required together, or leave both unset.
FEISHU_TRANSPORTwsws (no public URL needed) or webhook.
FEISHU_VERIFICATION_TOKENRequired when FEISHU_TRANSPORT=webhook.
FEISHU_ENCRYPT_KEYunsetRequired when FEISHU_TRANSPORT=webhook — enable "Encrypt Key" for this event subscription in the Feishu console and paste the same value here. Used to verify each request's X-Lark-Signature (see "Security posture").
FEISHU_DOMAINhttps://open.feishu.cnChange for Lark international / a proxy.
FEISHU_ALLOWED_OPEN_IDS(empty)Comma-separated. Required — empty means nobody is authorized.
FEISHU_ALLOWED_CHAT_IDS(empty = no restriction)Comma-separated group allowlist.
DSH_FEISHU_BRIDGE_HOST0.0.0.0HTTP server bind address (health check + webhook route).
DSH_FEISHU_BRIDGE_PORT8788HTTP server port.