@fragments_awe/ops-mcp 0.14.0 → 0.15.0

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/README.md CHANGED
@@ -47,3 +47,21 @@ npm publish --access public
47
47
  ```
48
48
 
49
49
  发布前同步修改 `backend/internal/opsmcp/version.go` 与 `package.json` 的版本,构建及 prepack 都会验证版本一致。
50
+
51
+ ## 直接调用 ModelHub
52
+
53
+ 更新到 0.15.0 后增加一个 `modelhub` 工具,独立于 Ops 登录和区域绑定。
54
+ 先让 Agent 用 configure 保存 ModelHub 公网地址和用户提供的 Key,再用 models 查 text/image/video 模型。
55
+ generate 只需 model、prompt,可选 images(本机绝对路径或 URL)、图片尺寸或视频时长;不需要填写 protobuf。
56
+ result 用同一 task_id 取结果,支持 wait_seconds=0–60,完成提前返回。
57
+
58
+ Key 位于 `~/.wgops-mcp/modelhub.json`,仅当前用户可读写;生成文件在 `~/.wgops-mcp/modelhub/jobs/`。
59
+ 等待时保持 MCP 连接,失败不自动重提。语音暂不接入。
60
+
61
+ ## 自动发版
62
+
63
+ 相关代码合入 dev 后,`Publish Ops MCP to npm` 自动运行:检查两处版本一致且高于 npm latest,
64
+ 跑测试、编译四平台、验证 npm 包,再使用仓库 Actions Secret NPM_TOKEN 发布并回查 latest 与 gitHead。
65
+ 同一源码提交重跑会跳过已发布版本,其他提交复用已发布版本会失败,要求先提升版本。
66
+ Token 仅在发布步骤注入 NODE_AUTH_TOKEN,不进入安装包;到期后更新仓库 Secret。
67
+ Secret 只需包级发布权限,无需组织管理权限。
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,14 +1,26 @@
1
1
  {
2
2
  "name": "@fragments_awe/ops-mcp",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "WG Ops MCP tools for local AI clients",
5
5
  "license": "UNLICENSED",
6
- "bin": { "ops-mcp": "index.cjs" },
7
- "files": ["index.cjs", "bin/", "README.md"],
8
- "engines": { "node": ">=18" },
9
- "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" },
6
+ "bin": {
7
+ "ops-mcp": "index.cjs"
8
+ },
9
+ "files": [
10
+ "index.cjs",
11
+ "bin/",
12
+ "README.md"
13
+ ],
14
+ "engines": {
15
+ "node": ">=18"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public",
19
+ "registry": "https://registry.npmjs.org/"
20
+ },
10
21
  "scripts": {
11
22
  "test": "node --test launcher.test.cjs",
12
23
  "prepack": "node verify-package.cjs"
13
- }
24
+ },
25
+ "gitHead": "abdb6870b946b6b1f47f48d4e9b3cf2b6fd0f196"
14
26
  }