DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Ai Services — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@klarkxy/dsh-ai-services

Ai Services

AI Services:为其他插件提供共享模型路由、有界辅助调用和使用凭据。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @klarkxy/dsh-ai-services@0.1.4
README兼容性版本

兼容性与来源证明

Ai Services 以 @klarkxy/dsh-ai-services 发布,当前版本为 0.1.4。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/10/16

版本

0.1.4stable
2026/9/28
0.1.3stable
2026/9/25
0.1.2stable
2026/9/23
查看其余 2 个版本收起版本
0.1.1stable
2026/9/23
0.1.0stable
2026/9/23

相关插件

正在加载相关插件…

最新版
0.1.4
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
180.5 kB
文件数
21
Surface
any
许可证
SEE LICENSE IN LICENSE
发布源
npm
GitHub
★ 13
周下载
30
最近提交
2026/10/16
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Client Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilities为自定义 pi-ai 提供商声明每个模型的能力(图像输入和推理力度),可直接在 Models 设置卡片中编辑;写入官方 llm-pi-ai 设置命名空间,不更改 DSH 源代码。Plugin@opencode2dsh/dsh-plugin供 DeepSeek Harness (DSH) 使用的免费 OpenCode Zen 模型:原生 dsh-llm 适配器插件,无需 API 密钥。

README

@klarkxy/dsh-ai-services

Shared Cordis service for model-role routing, bounded auxiliary calls, cancellation, and usage receipts. It is a supporting service, not a user-facing feature. Loading it does not start inference.

简体中文

Install

Requires Node.js ≥22 and DSH 0.1.7-rc.2. The host must provide llm, storageDomain, connection, webServer, agents, sessionProjections, and agentDefaultModel.

npm install @klarkxy/dsh-ai-services
dsh plugin --profile web add @klarkxy/dsh-ai-services

This package is a locked core service of the host. Feature plugins call ctx.aiServices.activate(plugin) when they need a model; this package never calls the model by itself.

Routing

Roles weak, normal, strong, and fantasy represent the Quick, Chat, Thinking, and Fantasy tiers: Quick for cheap latency-sensitive auxiliary calls, Chat as the everyday default, Thinking for heavier reasoning, and Fantasy as the highest-cost creative tier. They can bind models from any provider. Built-in plugins never default to Fantasy; it is reserved for explicit user selection. Unbound tiers inherit Chat, falling back to the host default chat model if Chat is unset. The host default is read on each call, so standalone plugins need no application-specific initialization. A missing default chat model fails visibly. An explicit invalid provider/model/reasoning choice fails without switching to another route. Session targets use the native Host projection, the request header, and the host default model; they do not call the removed session.models RPC.

Policy is one storage-domain record with compare-and-swap revision. It does not copy provider credentials. Host compatibility imports use importPurposes to persist missing defaults and a one-time marker atomically.

Auxiliary calls are plain text with no tools. Limits cap input size, output tokens, wall time, attempts, and per-provider concurrency. Interactive work is queued ahead of background work. Native agent-loop requests, when present, occupy the same provider's foreground so background jobs wait. run({ insert: { maxChars } }) supports bounded text candidates; other auxiliary calls still require a successful complete stream.

Usage receipts store token counts when the adapter reports them. Cost is null when unknown. Prompts and secrets are not stored.

Host RPC is /dsh-ai-services (status, update, resolve, usage) and requires the host authorization policy.

API / Exports

  • . — Cordis plugin entry (name, inject, apply), AiServicesRuntime, registerHostRpc, the RPC channel and seat constants, and every contract type re-exported from ./contracts.
  • ./contracts — browser-safe shared contracts with no host implementation.
  • ./host-rpc — registerHostRpc and HostRpcContext for hosts that mount the /dsh-ai-services channel.
  • ./client-utils — web client helpers: NativeSurfaceClient, useNativeSeat, useFeatureRefresh, selectedSessionId.
  • ./insert-output — bounded insert candidate helpers: sanitizeInsert, collectInsertText, createInsertCollector.

AiServices

Feature plugins reach the service as ctx.aiServices:

  • activate(plugin) — returns an AiFeatureScope (registerPurpose, run, dispose) bound to the plugin; disposed when the plugin unloads.
  • importPurposes(migrationId, defaults, roles?) — host-only compatibility entrypoint; persists missing purpose defaults and a one-time marker atomically.
  • getPolicy() / updatePolicy(policy, expectedRevision) — read the policy, or write it with compare-and-swap revision.
  • resolve(purpose, sessionId?, override?) — resolve a purpose to a ResolvedRoute without calling a model.
  • purposes() — every registered PurposeSpec with its owning plugin.
  • usage() — stored usage receipts.

Shared contracts (./contracts)

ExportPurpose
MemoryService, MemoryRecordMemory storage contract implemented by the memory plugin; observations stay candidates until explicitly accepted
TaskContract, TaskCheckpoint, EvidenceRefRequirements-clarification contract and checkpoint shapes shared with the Mood and Recap plugins
CHAT_EVENTS_SLOTChat events seat name (dsh-editor.chat.events)
MODEL_SETTINGS_SLOTModel settings seat name (dsh-editor.settings.models)
AI_RPC_CHANNELHost RPC channel name (/dsh-ai-services)
projectIdFromCwdDerive a project key from the host-validated session directory

From the repository root:

pnpm --filter @klarkxy/dsh-ai-services typecheck
pnpm exec vitest run packages/dsh-ai-services/src
pnpm --filter @klarkxy/dsh-ai-services build

Publishing · License