aipic-mcp-stdio 1.1.0 → 1.1.1

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/index.js CHANGED
@@ -25,7 +25,7 @@ const policy = require('./tool-policy');
25
25
 
26
26
  const PROTOCOL_VERSION = '2025-06-18';
27
27
  const SERVER_NAME = 'aipic-mcp-stdio';
28
- const SERVER_VERSION = '1.1.0';
28
+ const SERVER_VERSION = '1.1.1';
29
29
  const ENDPOINT_FILENAME = 'aipic-mcp-endpoint.json';
30
30
  /** 客户端 productName(electron-builder.yml),userData 目录名即此值 */
31
31
  const PRODUCT_NAME = 'NetdiskAIPhoto';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aipic-mcp-stdio",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "stdio <-> HTTP proxy for the Baidu Netdisk AI Photo (NetdiskAIPhoto) local MCP server",
5
5
  "keywords": [
6
6
  "mcp",
@@ -22,5 +22,11 @@
22
22
  "index.js",
23
23
  "tool-policy.js"
24
24
  ],
25
- "dependencies": {}
25
+ "dependencies": {},
26
+ "scripts": {
27
+ "verify": "node verify.js",
28
+ "verify:all": "node verify.js --all",
29
+ "check:tools": "node check-tool-sync.js",
30
+ "prepack": "node check-tool-sync.js"
31
+ }
26
32
  }
package/tool-policy.js CHANGED
@@ -31,14 +31,17 @@ const DESTRUCTIVE_TOOLS = new Set([
31
31
  ]);
32
32
 
33
33
  /**
34
- * 已知会让客户端崩溃的工具:曾稳定触发 SIGABRT(libaipic 的 std::mutex)并留下孤儿进程,
34
+ * 已知会让客户端崩溃的工具:曾稳定触发 SIGABRT 并留下孤儿进程,
35
35
  * 崩溃后 MCP 服务不恢复而 endpoint 文件仍在。
36
36
  *
37
- * 原 aipic_control_export_tasks 的「第二个崩溃入口」经真机复现未触发(完成/失败/暂停任务
38
- * × type 0/1/2 全不崩,retry 还能正常恢复 PAUSED),已移出 unsafe、归入 write(控制导出
39
- * 任务状态属写操作)。若后续出现崩溃,再回填此名单。
37
+ * - aipic_mark_filter_best:aipic_modify_filelist_item 对筛图(type=1)写 select_status 会触发
38
+ * aipic-host 延迟 40~90s 抛未捕获 C++ 异常 → SIGABRT(三次实测复现,栈一致,offset 0x104e00
39
+ * 附近)。native 未修前一律拦下。
40
+ * - 原 aipic_control_export_tasks 的「第二个崩溃入口」经真机复现未触发(完成/失败/暂停任务
41
+ * × type 0/1/2 全不崩,retry 还能正常恢复 PAUSED),已移出 unsafe、归入 write(控制导出
42
+ * 任务状态属写操作)。若后续出现崩溃,再回填此名单。
40
43
  */
41
- const UNSAFE_TOOLS = new Set([]);
44
+ const UNSAFE_TOOLS = new Set(['aipic_mark_filter_best']);
42
45
 
43
46
  /** 会写入数据的工具:需要串行执行,避免并发写 workspace / filecache 互相踩 */
44
47
  const WRITE_TOOLS = new Set([
@@ -70,7 +73,6 @@ const WRITE_TOOLS = new Set([
70
73
  'aipic_stop_filter',
71
74
  'aipic_pause_filter',
72
75
  'aipic_resume_filter',
73
- 'aipic_mark_filter_best',
74
76
  // 在线选片
75
77
  'aipic_select_switch_state',
76
78
  'aipic_match_source',
package/README.md DELETED
@@ -1,8 +0,0 @@
1
- # aipic-mcp-stdio
2
-
3
- 百度网盘AI修图(NetdiskAIPhoto)本地 MCP 服务的 stdio ↔ HTTP 代理,供库库AI 等宿主通过 `npx -y aipic-mcp-stdio` 拉起。
4
-
5
- 按当前平台/架构自动选择对应的预编译二进制(optionalDependencies):
6
-
7
- - `aipic-mcp-stdio-darwin-arm64` — macOS Apple Silicon
8
- - `aipic-mcp-stdio-win32-x64` — Windows x64