aiworkskills/deepseek-harness-server--packages-dsh-integration1

@dshserver/dsh-integration

OAuth-scoped business tools and authorization guard for DeepSeek Harness

包名
@dshserver/dsh-integration
版本
0.1.0
许可证
MIT
最近更新
2026年8月26日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

配置

部署输入(src/config.ts

名称类型必填默认值说明
brokerUrlstring内部 OAuth Token Exchange 服务地址
tokenEndpointPathstring/internal/oauth/tokenToken Exchange 路径
businessApiUrlstring业务 Resource Server 地址
businessApiAudiencestringurn:dshserver:business-api交换后 Token 的目标资源
runtimeLeaseFilestring当前独立 Runtime 的 0600 租约文件
scopesstring[][]Gateway 验证后写入的 Scope 上限
exposedToolsstring[][]当前 Agent Preset 可见的业务工具白名单
readScopecustomers:read:self | customers:read:team当前角色的数据读取范围
requestTimeoutMsnumber15000初始请求超时,范围 1000120000
writeOperationsEnabledbooleantrue初始写操作总开关
minimumWriteReasonLengthnumber2初始最短变更原因字符数,范围 2200

连接地址、Audience、租约、Scope 和工具白名单属于部署或策略输入,不能由普通用户修改。

租户级设置(src/connector-settings.ts

最后三项同时注册到 DSH 原生 Settings 的 dshserver-integration 命名空间。只有具备 assistant:platform:write 的平台管理员可以写入,保存后同租户的活动 Runtime 立即读取 新值,无需重启。

名称类型默认值取值范围
requestTimeoutMsnumber150001000120000
writeOperationsEnabledbooleantrue
minimumWriteReasonLengthnumber22200

@dshserver/dsh-preferences 通过 DSH 原生插件设置槽位渲染这张配置卡片。

完整配置说明见配置参考