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 密钥等敏感数据有严格安全和授权要求的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xinvxueyuan/cordis-plugin-secret配置(Config)
| 字段 | 默认 | 说明 |
|---|---|---|
requestTimeoutMs | 300000 | 单个 secret_request 等待人工确认的上限(也是工具 timeoutMs 的基础,工具自身总在上层超时前返回)。 |
maxPendingRequests | 4 | 同时等待人工确认的授权请求数上限,超出返回 TOO_MANY_PENDING。 |
attachTtlMs | 1800000 | 人类已填入、但从未随消息发送的附加项在内存里保留多久(30 分钟)后被丢弃。暂存从不等于授权:等待期间不注入任何变量,这个上界正是"值不会在长命进程里无限期滞留"的保证。 |
maxAttachmentsPerSession | 8 | 单个会话同时可持有的已登记附加项上限。 |
四个键都必须是正整数:schema 的 .default() 之外,assertConfig 再手工兜一层(非正整数直接抛错)。
2) 创建 annotated + GPG 签名 tag(私钥仅在本机使用;本机需能完成 GPG 签名)
git tag -s v0.2.0 -m "v0.2.0"