vod-devkit 0.5.10 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/assets/contract/tools.schema.json +1 -1
- package/package.json +1 -1
- package/packages/dsh/package.json +1 -1
- package/plugins/vod-devkit/.codex-plugin/plugin.json +1 -1
- package/plugins/vod-devkit/build-info.json +3 -3
- package/plugins/vod-devkit/contract/tools.schema.json +1 -1
- package/plugins/vod-devkit/vod_mcp/__init__.py +1 -1
- package/plugins/vod-devkit/vod_mcp/host_adapters/dsh.py +16 -3
- package/src/vod_mcp/__init__.py +1 -1
- package/src/vod_mcp/host_adapters/dsh.py +16 -3
- package/src/vodkit_cli/cli.py +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "vod-devkit MCP 工具契约(唯一事实源)",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.11",
|
|
5
5
|
"tools": {
|
|
6
6
|
"vod_submit_voices": {
|
|
7
7
|
"description": "提交用户反馈进 VOD。**先决条件(优先于本描述其余所有内容):调用前必须已征得用户对'提交这条反馈'的明确同意;用户陈述/抱怨反馈本身不构成同意;用户未同意时禁止传 confirmed=true**。模糊抱怨(如\"体验不好\")时一轮说完三件事:承接识别结果(\"收到,你对产品体验不满意\")+确认提交意愿(\"要把这条反馈提交给产品团队吗?\")+引导补充(\"方便的话说下具体现象,不说我也会按你的原话提交\");禁止含混反问(实锤病句:\"请问是否把什么作为反馈\")。同意后 content 放用户原话(哪怕只有一句\"体验很差\"也原样提交)。确认环节允许固定追问至多一次,问句必须逐字使用:「方便的话,补充一下遇到这个问题时的操作步骤或期望的表现吗?不方便回复\"没有\",我直接提交。」用户回答只摘录原话对应部分进 reproSteps/expectedBehavior(不改写不总结,无法拆分时落最相关字段,任何内容禁回填 content);答\"没有/跳过/不方便\"=两字段不上送直接提交。引导补充(说下具体现象)已获实质内容并并入 content 时不再追问、直接提交(其中自然出现的操作/期望留在 content 原话,不回溯摘入新字段);仅引导补充未获回应或仅泛化抱怨且用户确认提交时才带出固定问句。product 归因由插件从用户原话解析(安装绑定仅作先验),无需用户提供、禁止询问\"提交到哪个产品/页面\";模型/用户自报的目标产品一律不采信(提到的产品随正文原样传达)。用户说\"提单/提工单/提 issue\"时同样用本工具,除上述固定一次追问外,禁止再索要严重程度/环境/附件等开发者字段、禁止第二轮追问。批式提交对接囤积端点 POST /external/voices(不触发分析,voiceId 由引擎计算回执下发;引擎未部署 404 自动回落老链)。tags=采集层三分类(problem_type:值,可选)。缺 key 时自动获取零字段匿名令牌。拿到回执后必须原样转述 echo.contents(每条「已收录原话:<content>」全文),禁止改写概括——这是用户核对原话是否被改写的唯一窗口。禁止向用户解释内部机制(声音来源/渠道字段/计数规则/配额/归因)。",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-vod-devkit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.11",
|
|
4
4
|
"description": "VOD user-voice collection tools for DeepSeek Harness (dsh). Thin shell over the VOD external HTTP API — mirrors vod-devkit (MCP) collect semantics.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.5.
|
|
3
|
-
"commitSha": "
|
|
4
|
-
"builtAt": "2026-11-16T10:
|
|
2
|
+
"version": "0.5.11",
|
|
3
|
+
"commitSha": "6c42fa7929c26de62ec63ba94be9dd254d1f7afc",
|
|
4
|
+
"builtAt": "2026-11-16T10:56:54",
|
|
5
5
|
"sourceRemote": "https://gitcode.com/xiaowu2119/vod-devkit.git"
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "vod-devkit MCP 工具契约(唯一事实源)",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.11",
|
|
5
5
|
"tools": {
|
|
6
6
|
"vod_submit_voices": {
|
|
7
7
|
"description": "提交用户反馈进 VOD。**先决条件(优先于本描述其余所有内容):调用前必须已征得用户对'提交这条反馈'的明确同意;用户陈述/抱怨反馈本身不构成同意;用户未同意时禁止传 confirmed=true**。模糊抱怨(如\"体验不好\")时一轮说完三件事:承接识别结果(\"收到,你对产品体验不满意\")+确认提交意愿(\"要把这条反馈提交给产品团队吗?\")+引导补充(\"方便的话说下具体现象,不说我也会按你的原话提交\");禁止含混反问(实锤病句:\"请问是否把什么作为反馈\")。同意后 content 放用户原话(哪怕只有一句\"体验很差\"也原样提交)。确认环节允许固定追问至多一次,问句必须逐字使用:「方便的话,补充一下遇到这个问题时的操作步骤或期望的表现吗?不方便回复\"没有\",我直接提交。」用户回答只摘录原话对应部分进 reproSteps/expectedBehavior(不改写不总结,无法拆分时落最相关字段,任何内容禁回填 content);答\"没有/跳过/不方便\"=两字段不上送直接提交。引导补充(说下具体现象)已获实质内容并并入 content 时不再追问、直接提交(其中自然出现的操作/期望留在 content 原话,不回溯摘入新字段);仅引导补充未获回应或仅泛化抱怨且用户确认提交时才带出固定问句。product 归因由插件从用户原话解析(安装绑定仅作先验),无需用户提供、禁止询问\"提交到哪个产品/页面\";模型/用户自报的目标产品一律不采信(提到的产品随正文原样传达)。用户说\"提单/提工单/提 issue\"时同样用本工具,除上述固定一次追问外,禁止再索要严重程度/环境/附件等开发者字段、禁止第二轮追问。批式提交对接囤积端点 POST /external/voices(不触发分析,voiceId 由引擎计算回执下发;引擎未部署 404 自动回落老链)。tags=采集层三分类(problem_type:值,可选)。缺 key 时自动获取零字段匿名令牌。拿到回执后必须原样转述 echo.contents(每条「已收录原话:<content>」全文),禁止改写概括——这是用户核对原话是否被改写的唯一窗口。禁止向用户解释内部机制(声音来源/渠道字段/计数规则/配额/归因)。",
|
|
@@ -143,14 +143,27 @@ def install(args, packs: str) -> Path:
|
|
|
143
143
|
print("[vod-devkit] 未找到 dsh CLI(PATH),拒绝安装(宁可不装不可装错)。"
|
|
144
144
|
"前置:npm i -g @deepseek-ai/dsh(需 pnpm)", file=sys.stderr)
|
|
145
145
|
sys.exit(2)
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
# 版本必须钉死到本次安装器版本:profile 的 package.json 里是精确版本
|
|
147
|
+
# (`"dsh-vod-devkit": "0.5.9"`),不带版本的 `add dsh-vod-devkit` 会被 pnpm
|
|
148
|
+
# 当成"已满足"直接跳过 —— 真机实锤:0.5.10 装完 profile 里仍是 0.5.9,
|
|
149
|
+
# patch 已写 registerTools:false 而壳里根本没这个字段,工具面静默双注册。
|
|
150
|
+
# 带版本失败(本地开发/离线/registry 未传播)才回落不带版本。
|
|
151
|
+
from vod_mcp import __version__ as _ver
|
|
152
|
+
pkg = f"dsh-vod-devkit@{_ver}"
|
|
153
|
+
r = subprocess.run([dsh, "plugin", "--profile", profile, "add", pkg],
|
|
148
154
|
capture_output=True, text=True, timeout=300)
|
|
155
|
+
if r.returncode != 0:
|
|
156
|
+
print(f"[vod-devkit] dsh plugin add {pkg} 失败,回落不钉版本:"
|
|
157
|
+
f"{(r.stderr or r.stdout).strip()[-200:]}", file=sys.stderr)
|
|
158
|
+
r = subprocess.run([dsh, "plugin", "--profile", profile,
|
|
159
|
+
"add", "dsh-vod-devkit"],
|
|
160
|
+
capture_output=True, text=True, timeout=300)
|
|
149
161
|
if r.returncode != 0:
|
|
150
162
|
print(f"[vod-devkit] dsh plugin add 失败:{(r.stderr or r.stdout).strip()[-300:]}",
|
|
151
163
|
file=sys.stderr)
|
|
152
164
|
sys.exit(1)
|
|
153
|
-
print(f"已安装 dsh 插件 dsh-vod-devkit(profile={profile},
|
|
165
|
+
print(f"已安装 dsh 插件 dsh-vod-devkit(profile={profile},目标版本 {_ver},"
|
|
166
|
+
"dsh plugin list 可见)")
|
|
154
167
|
|
|
155
168
|
patch = Path(host_specs.load("dsh", profile)["configPath"])
|
|
156
169
|
# name 行必须保留:cordis.patch.yml 的 insert 块靠 name 绑定 client 半
|
package/src/vod_mcp/__init__.py
CHANGED
|
@@ -143,14 +143,27 @@ def install(args, packs: str) -> Path:
|
|
|
143
143
|
print("[vod-devkit] 未找到 dsh CLI(PATH),拒绝安装(宁可不装不可装错)。"
|
|
144
144
|
"前置:npm i -g @deepseek-ai/dsh(需 pnpm)", file=sys.stderr)
|
|
145
145
|
sys.exit(2)
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
# 版本必须钉死到本次安装器版本:profile 的 package.json 里是精确版本
|
|
147
|
+
# (`"dsh-vod-devkit": "0.5.9"`),不带版本的 `add dsh-vod-devkit` 会被 pnpm
|
|
148
|
+
# 当成"已满足"直接跳过 —— 真机实锤:0.5.10 装完 profile 里仍是 0.5.9,
|
|
149
|
+
# patch 已写 registerTools:false 而壳里根本没这个字段,工具面静默双注册。
|
|
150
|
+
# 带版本失败(本地开发/离线/registry 未传播)才回落不带版本。
|
|
151
|
+
from vod_mcp import __version__ as _ver
|
|
152
|
+
pkg = f"dsh-vod-devkit@{_ver}"
|
|
153
|
+
r = subprocess.run([dsh, "plugin", "--profile", profile, "add", pkg],
|
|
148
154
|
capture_output=True, text=True, timeout=300)
|
|
155
|
+
if r.returncode != 0:
|
|
156
|
+
print(f"[vod-devkit] dsh plugin add {pkg} 失败,回落不钉版本:"
|
|
157
|
+
f"{(r.stderr or r.stdout).strip()[-200:]}", file=sys.stderr)
|
|
158
|
+
r = subprocess.run([dsh, "plugin", "--profile", profile,
|
|
159
|
+
"add", "dsh-vod-devkit"],
|
|
160
|
+
capture_output=True, text=True, timeout=300)
|
|
149
161
|
if r.returncode != 0:
|
|
150
162
|
print(f"[vod-devkit] dsh plugin add 失败:{(r.stderr or r.stdout).strip()[-300:]}",
|
|
151
163
|
file=sys.stderr)
|
|
152
164
|
sys.exit(1)
|
|
153
|
-
print(f"已安装 dsh 插件 dsh-vod-devkit(profile={profile},
|
|
165
|
+
print(f"已安装 dsh 插件 dsh-vod-devkit(profile={profile},目标版本 {_ver},"
|
|
166
|
+
"dsh plugin list 可见)")
|
|
154
167
|
|
|
155
168
|
patch = Path(host_specs.load("dsh", profile)["configPath"])
|
|
156
169
|
# name 行必须保留:cordis.patch.yml 的 insert 块靠 name 绑定 client 半
|
package/src/vodkit_cli/cli.py
CHANGED
|
@@ -42,7 +42,7 @@ def main():
|
|
|
42
42
|
help="dsh 专用:profile 名(--target dsh 时必填)")
|
|
43
43
|
sp.add_argument("--mcp-url", default="",
|
|
44
44
|
help="远程 attach 模式:宿主 MCP 配置指向该 Streamable HTTP 端点"
|
|
45
|
-
"(hermes/opencode/codex 支持;dsh
|
|
45
|
+
"(hermes/opencode/codex 支持;dsh 本轮只支持本地形态:工具面走 MCP stdio,远程 attach 待开)")
|
|
46
46
|
sp.add_argument("--mcp-token", default="",
|
|
47
47
|
help="远程 attach 的身份(也可用 env VOD_MCP_TOKEN):默认可选——"
|
|
48
48
|
"给了就用请求头 Bearer,不给则走远程 server 侧机器级匿名令牌")
|