xinvxueyuan/cordis-plugin-secret ↗★ 0

@xinvxueyuan/cordis-plugin-secret

Cordis (DeepSeek Harness) plugin: secrets travel between a human and the agent in both directions — the agent asks, or the human attaches one to their own message — and the agent only ever receives an opaque session-scoped variable name (DSH_SECRET_*), never the value 适合对 API 密钥等敏感数据有严格安全和授权要求的用户。

Package
@xinvxueyuan/cordis-plugin-secret
Compatibility
Unverified
Harness peer range
^0.2.0-rc.2
Cordis peer range
^4.0.4
Version
0.2.0
License
Apache-2.0
Last updated
Oct 6, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xinvxueyuan/cordis-plugin-secret

配置(Config)

字段默认说明
requestTimeoutMs300000单个 secret_request 等待人工确认的上限(也是工具 timeoutMs 的基础,工具自身总在上层超时前返回)。
maxPendingRequests4同时等待人工确认的授权请求数上限,超出返回 TOO_MANY_PENDING。
attachTtlMs1800000人类已填入、但从未随消息发送的附加项在内存里保留多久(30 分钟)后被丢弃。暂存从不等于授权:等待期间不注入任何变量,这个上界正是"值不会在长命进程里无限期滞留"的保证。
maxAttachmentsPerSession8单个会话同时可持有的已登记附加项上限。

四个键都必须是正整数:schema 的 .default() 之外,assertConfig 再手工兜一层(非正整数直接抛错)。

2) 创建 annotated + GPG 签名 tag(私钥仅在本机使用;本机需能完成 GPG 签名)

git tag -s v0.2.0 -m "v0.2.0"