aipic-mcp-stdio 1.1.1 → 1.1.2

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.1';
28
+ const SERVER_VERSION = '1.1.2';
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.1",
3
+ "version": "1.1.2",
4
4
  "description": "stdio <-> HTTP proxy for the Baidu Netdisk AI Photo (NetdiskAIPhoto) local MCP server",
5
5
  "keywords": [
6
6
  "mcp",
package/tool-policy.js CHANGED
@@ -34,14 +34,13 @@ const DESTRUCTIVE_TOOLS = new Set([
34
34
  * 已知会让客户端崩溃的工具:曾稳定触发 SIGABRT 并留下孤儿进程,
35
35
  * 崩溃后 MCP 服务不恢复而 endpoint 文件仍在。
36
36
  *
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
- * 任务状态属写操作)。若后续出现崩溃,再回填此名单。
37
+ * 当前名单为空。历史:
38
+ * - aipic_mark_filter_best 曾因 ffiCall「回调触发即 unregister」导致 native 二次回调(40~90s 后)
39
+ * 打到已释放 trampoline 而崩客户端;已改用常驻回调(见 ai-pick/mark.ts)并移出 unsafe、归入 write。
40
+ * - aipic_control_export_tasks 经真机复现未触发崩溃,已移出 unsafe、归入 write。
41
+ * 若后续出现崩溃,再回填此名单。
43
42
  */
44
- const UNSAFE_TOOLS = new Set(['aipic_mark_filter_best']);
43
+ const UNSAFE_TOOLS = new Set([]);
45
44
 
46
45
  /** 会写入数据的工具:需要串行执行,避免并发写 workspace / filecache 互相踩 */
47
46
  const WRITE_TOOLS = new Set([
@@ -73,6 +72,7 @@ const WRITE_TOOLS = new Set([
73
72
  'aipic_stop_filter',
74
73
  'aipic_pause_filter',
75
74
  'aipic_resume_filter',
75
+ 'aipic_mark_filter_best',
76
76
  // 在线选片
77
77
  'aipic_select_switch_state',
78
78
  'aipic_match_source',