@univerjs-pro/mcp 0.15.0-insiders.20251227-c108ce3 → 0.15.0-insiders.20260107-3441c7a

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.
@@ -1,6 +1,6 @@
1
1
  import { Disposable, IConfigService, ILogService, Injector } from '@univerjs/core';
2
- import { z } from 'zod';
3
2
  import { MCPEventService } from '../services/mcp-event.service';
3
+ import { z } from '../utils/zod';
4
4
  /**
5
5
  * MCP Tool definition interface
6
6
  */
@@ -6,3 +6,4 @@ export { type IMCPTool, IMCPToolRegistry, MCPToolRegistryController } from './co
6
6
  export { UniverMCPPlugin } from './plugin';
7
7
  export { MCPEventId } from './services/mcp-event.service';
8
8
  export { MCPEventService } from './services/mcp-event.service';
9
+ export { z } from './utils/zod';
@@ -0,0 +1 @@
1
+ export { z } from 'zod';
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x1793(_0x1ff735,_0x1d35d0){_0x1ff735=_0x1ff735-0xa2;const _0x504f1a=_0x504f();let _0x1793e4=_0x504f1a[_0x1ff735];return _0x1793e4;}(function(_0x21eb54,_0x1cda18){const _0xc45fc9=_0x1793,_0x44e6ff=_0x21eb54();while(!![]){try{const _0x511ec2=-parseInt(_0xc45fc9(0xc7))/0x1*(-parseInt(_0xc45fc9(0xbf))/0x2)+-parseInt(_0xc45fc9(0xb2))/0x3+-parseInt(_0xc45fc9(0xa7))/0x4*(-parseInt(_0xc45fc9(0xad))/0x5)+-parseInt(_0xc45fc9(0xae))/0x6+parseInt(_0xc45fc9(0xa3))/0x7*(-parseInt(_0xc45fc9(0xc5))/0x8)+parseInt(_0xc45fc9(0xc6))/0x9*(-parseInt(_0xc45fc9(0xb1))/0xa)+parseInt(_0xc45fc9(0xc9))/0xb;if(_0x511ec2===_0x1cda18)break;else _0x44e6ff['push'](_0x44e6ff['shift']());}catch(_0x573cc5){_0x44e6ff['push'](_0x44e6ff['shift']());}}}(_0x504f,0x60bd0),function(_0x542aaa,_0x5530e6){const _0x136a12=_0x1793;typeof exports==_0x136a12(0xb0)&&typeof module<'u'?_0x5530e6(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x136a12(0xc8)]?define(['@univerjs-pro/mcp','@univerjs/core/facade',_0x136a12(0xb9)],_0x5530e6):(_0x542aaa=typeof globalThis<'u'?globalThis:_0x542aaa||self,_0x5530e6(_0x542aaa[_0x136a12(0xcf)],_0x542aaa[_0x136a12(0xc3)],_0x542aaa['UniverCore']));}(this,function(_0x11d1ce,_0xdfa0fd,_0x358be9){'use strict';const _0x25d1be=_0x1793;class _0x57308f{get[_0x25d1be(0xbc)](){const _0x227478=_0x25d1be;return _0x11d1ce[_0x227478(0xaa)]['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x2c654f=_0x25d1be;return _0x11d1ce[_0x2c654f(0xaa)][_0x2c654f(0xb4)];}get[_0x25d1be(0xc4)](){const _0x4fab61=_0x25d1be;return _0x11d1ce[_0x4fab61(0xaa)][_0x4fab61(0xc4)];}get[_0x25d1be(0xc0)](){const _0x2981e2=_0x25d1be;return _0x11d1ce[_0x2981e2(0xaa)][_0x2981e2(0xc0)];}}_0xdfa0fd[_0x25d1be(0xba)][_0x25d1be(0xa6)](_0x57308f);class _0x3aff2f extends _0xdfa0fd[_0x25d1be(0xab)]{[_0x25d1be(0xd0)](_0x4f7a51){const _0x419ec8=_0x25d1be;this[_0x419ec8(0xcb)](_0x4f7a51);}[_0x25d1be(0xcb)](_0x51304c){const _0x4457cb=_0x25d1be,_0x1bf4e6=_0x51304c[_0x4457cb(0xac)](_0x11d1ce[_0x4457cb(0xbd)]);this[_0x4457cb(0xcd)](this[_0x4457cb(0xa2)]['McpConnectionStatusChanged'],()=>_0x358be9['toDisposable'](_0x1bf4e6[_0x4457cb(0xd1)]['subscribe'](_0x38e00a=>{const _0x17fcf5=_0x4457cb;_0x38e00a[_0x17fcf5(0xd2)]===_0x11d1ce['MCPEventId']['McpConnectionStatusChanged']&&this[_0x17fcf5(0xca)](this[_0x17fcf5(0xa2)]['McpConnectionStatusChanged'],_0x38e00a['data']);}))),this['registerEventHandler'](this[_0x4457cb(0xa2)]['McpToolCallReceived'],()=>_0x358be9[_0x4457cb(0xb3)](_0x1bf4e6[_0x4457cb(0xd1)][_0x4457cb(0xc2)](_0x325c6c=>{const _0x23aa4c=_0x4457cb;_0x325c6c[_0x23aa4c(0xd2)]===_0x11d1ce[_0x23aa4c(0xaa)]['McpToolCallReceived']&&this[_0x23aa4c(0xca)](this['Event'][_0x23aa4c(0xb4)],_0x325c6c[_0x23aa4c(0xaf)]);}))),this[_0x4457cb(0xcd)](this['Event'][_0x4457cb(0xc4)],()=>_0x358be9[_0x4457cb(0xb3)](_0x1bf4e6[_0x4457cb(0xd1)][_0x4457cb(0xc2)](_0x182837=>{const _0x4249dd=_0x4457cb;_0x182837['type']===_0x11d1ce[_0x4249dd(0xaa)][_0x4249dd(0xc4)]&&this[_0x4249dd(0xca)](this['Event'][_0x4249dd(0xc4)],_0x182837[_0x4249dd(0xaf)]);}))),this[_0x4457cb(0xcd)](this[_0x4457cb(0xa2)]['McpToolCallFailed'],()=>_0x358be9[_0x4457cb(0xb3)](_0x1bf4e6[_0x4457cb(0xd1)][_0x4457cb(0xc2)](_0x516e3d=>{const _0x5df40a=_0x4457cb;_0x516e3d[_0x5df40a(0xd2)]===_0x11d1ce[_0x5df40a(0xaa)][_0x5df40a(0xc0)]&&this[_0x5df40a(0xca)](this['Event'][_0x5df40a(0xc0)],_0x516e3d[_0x5df40a(0xaf)]);})));}[_0x25d1be(0xb8)](_0x3425f8,_0x144cb0){const _0x2c8206=_0x25d1be;return this[_0x2c8206(0xce)]['get'](_0x11d1ce[_0x2c8206(0xa4)])['validateToolCall'](_0x3425f8,_0x144cb0);}[_0x25d1be(0xa9)](){const _0x21dac1=_0x25d1be;return this[_0x21dac1(0xce)]['get'](_0x11d1ce['IMCPToolRegistry'])[_0x21dac1(0xbe)]();}[_0x25d1be(0xb5)](_0x469f27,_0x4ff8f5){const _0x3b5655=_0x25d1be;return this[_0x3b5655(0xce)]['get'](_0x11d1ce[_0x3b5655(0xa4)])[_0x3b5655(0xc1)](_0x469f27,_0x4ff8f5);}['getMCPConnectionStatus'](){const _0x1ddd00=_0x25d1be;return this[_0x1ddd00(0xce)]['get'](_0x11d1ce['MCPConnectionController'])[_0x1ddd00(0xa5)]();}[_0x25d1be(0xa8)](){const _0x46f579=_0x25d1be;this[_0x46f579(0xce)][_0x46f579(0xac)](_0x11d1ce['MCPConnectionController'])[_0x46f579(0xbb)]();}[_0x25d1be(0xb7)](){const _0x220213=_0x25d1be;this[_0x220213(0xce)][_0x220213(0xac)](_0x11d1ce[_0x220213(0xb6)])[_0x220213(0xcc)]();}}_0xdfa0fd[_0x25d1be(0xab)][_0x25d1be(0xa6)](_0x3aff2f);}));function _0x504f(){const _0x103f52=['Event','7PXxtCk','IMCPToolRegistry','getConnectionStatus','extend','108976GBVmvz','connectMCP','getAllMCPTools','MCPEventId','FUniver','get','55cLwqvD','4095522nXFHpE','data','object','10ljiWlq','450168JXyEsb','toDisposable','McpToolCallReceived','callMCPTool','MCPConnectionController','disconnectMCP','validateMCPToolCall','@univerjs/core','FEventName','connect','McpConnectionStatusChanged','MCPEventService','getAllTools','195230qSCmza','McpToolCallFailed','executeTool','subscribe','UniverCoreFacade','McpToolCallExecuted','3900920QEGJZR','704007rOXLxn','2OlJKRP','amd','14297877BjQrjK','fireEvent','_registerMCPFacadeEvents','disconnect','registerEventHandler','_injector','UniverProMcp','_initialize','event$','type'];_0x504f=function(){return _0x103f52;};return _0x504f();}
1
+ function _0x18f8(_0x4fedab,_0x22810d){_0x4fedab=_0x4fedab-0x116;const _0x6d57b8=_0x6d57();let _0x18f835=_0x6d57b8[_0x4fedab];return _0x18f835;}(function(_0x1fa421,_0x1427c8){const _0x409dc1=_0x18f8,_0x28776b=_0x1fa421();while(!![]){try{const _0x69a2b1=-parseInt(_0x409dc1(0x13d))/0x1*(parseInt(_0x409dc1(0x124))/0x2)+parseInt(_0x409dc1(0x12b))/0x3*(-parseInt(_0x409dc1(0x11c))/0x4)+parseInt(_0x409dc1(0x146))/0x5*(-parseInt(_0x409dc1(0x13b))/0x6)+-parseInt(_0x409dc1(0x137))/0x7*(parseInt(_0x409dc1(0x136))/0x8)+parseInt(_0x409dc1(0x12d))/0x9*(parseInt(_0x409dc1(0x131))/0xa)+parseInt(_0x409dc1(0x11f))/0xb*(parseInt(_0x409dc1(0x125))/0xc)+parseInt(_0x409dc1(0x11b))/0xd;if(_0x69a2b1===_0x1427c8)break;else _0x28776b['push'](_0x28776b['shift']());}catch(_0x24972d){_0x28776b['push'](_0x28776b['shift']());}}}(_0x6d57,0x75be4),function(_0x160c2e,_0x28e5d6){const _0x4b8df7=_0x18f8;typeof exports==_0x4b8df7(0x116)&&typeof module<'u'?_0x28e5d6(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4b8df7(0x133)&&define[_0x4b8df7(0x11a)]?define([_0x4b8df7(0x12a),_0x4b8df7(0x139),_0x4b8df7(0x142)],_0x28e5d6):(_0x160c2e=typeof globalThis<'u'?globalThis:_0x160c2e||self,_0x28e5d6(_0x160c2e[_0x4b8df7(0x141)],_0x160c2e[_0x4b8df7(0x12c)],_0x160c2e[_0x4b8df7(0x14a)]));}(this,function(_0xaf535e,_0x25c035,_0x2a42f7){'use strict';const _0x12874a=_0x18f8;class _0x38b7ed{get[_0x12874a(0x130)](){const _0x35a041=_0x12874a;return _0xaf535e[_0x35a041(0x120)][_0x35a041(0x130)];}get[_0x12874a(0x123)](){const _0x196895=_0x12874a;return _0xaf535e[_0x196895(0x120)][_0x196895(0x123)];}get[_0x12874a(0x147)](){const _0x48de8e=_0x12874a;return _0xaf535e[_0x48de8e(0x120)][_0x48de8e(0x147)];}get[_0x12874a(0x13f)](){const _0x482b18=_0x12874a;return _0xaf535e[_0x482b18(0x120)][_0x482b18(0x13f)];}}_0x25c035[_0x12874a(0x118)]['extend'](_0x38b7ed);class _0xbb1c6e extends _0x25c035['FUniver']{[_0x12874a(0x138)](_0x492ce2){const _0x145673=_0x12874a;this[_0x145673(0x13c)](_0x492ce2);}[_0x12874a(0x13c)](_0x15e9ba){const _0x34e57=_0x12874a,_0x3dd9f2=_0x15e9ba[_0x34e57(0x145)](_0xaf535e[_0x34e57(0x13e)]);this[_0x34e57(0x12e)](this[_0x34e57(0x119)][_0x34e57(0x130)],()=>_0x2a42f7[_0x34e57(0x148)](_0x3dd9f2[_0x34e57(0x140)][_0x34e57(0x11e)](_0x9d345e=>{const _0x42fcb3=_0x34e57;_0x9d345e[_0x42fcb3(0x13a)]===_0xaf535e[_0x42fcb3(0x120)][_0x42fcb3(0x130)]&&this['fireEvent'](this[_0x42fcb3(0x119)][_0x42fcb3(0x130)],_0x9d345e[_0x42fcb3(0x134)]);}))),this[_0x34e57(0x12e)](this[_0x34e57(0x119)][_0x34e57(0x123)],()=>_0x2a42f7['toDisposable'](_0x3dd9f2[_0x34e57(0x140)][_0x34e57(0x11e)](_0x162e70=>{const _0xb70c44=_0x34e57;_0x162e70[_0xb70c44(0x13a)]===_0xaf535e[_0xb70c44(0x120)][_0xb70c44(0x123)]&&this['fireEvent'](this['Event'][_0xb70c44(0x123)],_0x162e70[_0xb70c44(0x134)]);}))),this['registerEventHandler'](this[_0x34e57(0x119)][_0x34e57(0x147)],()=>_0x2a42f7[_0x34e57(0x148)](_0x3dd9f2[_0x34e57(0x140)][_0x34e57(0x11e)](_0x8c926f=>{const _0x58a687=_0x34e57;_0x8c926f['type']===_0xaf535e[_0x58a687(0x120)][_0x58a687(0x147)]&&this['fireEvent'](this[_0x58a687(0x119)][_0x58a687(0x147)],_0x8c926f['data']);}))),this[_0x34e57(0x12e)](this[_0x34e57(0x119)]['McpToolCallFailed'],()=>_0x2a42f7[_0x34e57(0x148)](_0x3dd9f2[_0x34e57(0x140)][_0x34e57(0x11e)](_0x129b45=>{const _0x574412=_0x34e57;_0x129b45[_0x574412(0x13a)]===_0xaf535e[_0x574412(0x120)][_0x574412(0x13f)]&&this[_0x574412(0x129)](this[_0x574412(0x119)][_0x574412(0x13f)],_0x129b45[_0x574412(0x134)]);})));}[_0x12874a(0x117)](_0x2040db,_0x161b67){const _0x357d39=_0x12874a;return this['_injector'][_0x357d39(0x145)](_0xaf535e[_0x357d39(0x122)])[_0x357d39(0x143)](_0x2040db,_0x161b67);}[_0x12874a(0x14b)](){const _0x59e5e9=_0x12874a;return this[_0x59e5e9(0x144)][_0x59e5e9(0x145)](_0xaf535e[_0x59e5e9(0x122)])['getAllTools']();}[_0x12874a(0x149)](_0x1f6154,_0x38fab6){const _0x2ed323=_0x12874a;return this['_injector'][_0x2ed323(0x145)](_0xaf535e[_0x2ed323(0x122)])[_0x2ed323(0x12f)](_0x1f6154,_0x38fab6);}[_0x12874a(0x14c)](){const _0x31faab=_0x12874a;return this[_0x31faab(0x144)][_0x31faab(0x145)](_0xaf535e[_0x31faab(0x132)])[_0x31faab(0x121)]();}[_0x12874a(0x128)](){const _0x207446=_0x12874a;this[_0x207446(0x144)][_0x207446(0x145)](_0xaf535e['MCPConnectionController'])[_0x207446(0x127)]();}['disconnectMCP'](){const _0x4b1b2d=_0x12874a;this['_injector'][_0x4b1b2d(0x145)](_0xaf535e[_0x4b1b2d(0x132)])[_0x4b1b2d(0x135)]();}}_0x25c035[_0x12874a(0x11d)][_0x12874a(0x126)](_0xbb1c6e);}));function _0x6d57(){const _0x451c34=['object','validateMCPToolCall','FEventName','Event','amd','29422731sTxczi','16jVhMqf','FUniver','subscribe','44TWRKZk','MCPEventId','getConnectionStatus','IMCPToolRegistry','McpToolCallReceived','278iaBtTa','1485504LoxYYu','extend','connect','connectMCP','fireEvent','@univerjs-pro/mcp','520683QuVame','UniverCoreFacade','27YeavqE','registerEventHandler','executeTool','McpConnectionStatusChanged','545120XyfSXu','MCPConnectionController','function','data','disconnect','28040KdPZYG','553dyrFrU','_initialize','@univerjs/core/facade','type','516bePHmV','_registerMCPFacadeEvents','5336kVLPaT','MCPEventService','McpToolCallFailed','event$','UniverProMcp','@univerjs/core','validateToolCall','_injector','get','42260Ykctsd','McpToolCallExecuted','toDisposable','callMCPTool','UniverCore','getAllMCPTools','getMCPConnectionStatus'];_0x6d57=function(){return _0x451c34;};return _0x6d57();}