@univerjs-pro/mcp 0.12.4-experimental.20251210-29c379a → 0.12.4-insiders.20251211-c28f914

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/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x25cf(_0x2ce09b,_0x27a708){_0x2ce09b=_0x2ce09b-0x186;const _0x2268e0=_0x2268();let _0x25cf73=_0x2268e0[_0x2ce09b];return _0x25cf73;}(function(_0x1fa4dd,_0x3e9285){const _0x2533d0=_0x25cf,_0x249946=_0x1fa4dd();while(!![]){try{const _0x4cad5c=parseInt(_0x2533d0(0x198))/0x1*(-parseInt(_0x2533d0(0x1a4))/0x2)+-parseInt(_0x2533d0(0x1a6))/0x3+parseInt(_0x2533d0(0x18d))/0x4*(parseInt(_0x2533d0(0x19e))/0x5)+-parseInt(_0x2533d0(0x1af))/0x6+-parseInt(_0x2533d0(0x19c))/0x7+parseInt(_0x2533d0(0x194))/0x8+-parseInt(_0x2533d0(0x1ab))/0x9*(-parseInt(_0x2533d0(0x1aa))/0xa);if(_0x4cad5c===_0x3e9285)break;else _0x249946['push'](_0x249946['shift']());}catch(_0x247723){_0x249946['push'](_0x249946['shift']());}}}(_0x2268,0x23678),function(_0x404c04,_0x5ae534){const _0x204ac5=_0x25cf;typeof exports==_0x204ac5(0x186)&&typeof module<'u'?_0x5ae534(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x204ac5(0x1a5)]?define(['@univerjs-pro/mcp',_0x204ac5(0x193),_0x204ac5(0x18e)],_0x5ae534):(_0x404c04=typeof globalThis<'u'?globalThis:_0x404c04||self,_0x5ae534(_0x404c04[_0x204ac5(0x1a7)],_0x404c04['UniverCoreFacade'],_0x404c04[_0x204ac5(0x1b1)]));}(this,function(_0x279309,_0x5691ca,_0x7fd234){'use strict';const _0x38c81c=_0x25cf;class _0x576511{get[_0x38c81c(0x189)](){const _0x28b27f=_0x38c81c;return _0x279309[_0x28b27f(0x1a3)][_0x28b27f(0x189)];}get[_0x38c81c(0x18a)](){const _0x5f0fa4=_0x38c81c;return _0x279309[_0x5f0fa4(0x1a3)]['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x41f1e7=_0x38c81c;return _0x279309[_0x41f1e7(0x1a3)][_0x41f1e7(0x1ae)];}get[_0x38c81c(0x19f)](){const _0x503e0d=_0x38c81c;return _0x279309[_0x503e0d(0x1a3)][_0x503e0d(0x19f)];}}_0x5691ca['FEventName'][_0x38c81c(0x188)](_0x576511);class _0x508399 extends _0x5691ca[_0x38c81c(0x1a9)]{[_0x38c81c(0x1b2)](_0xa9ee01){const _0x687b1=_0x38c81c;this[_0x687b1(0x1a2)](_0xa9ee01);}[_0x38c81c(0x1a2)](_0x1207cf){const _0x118030=_0x38c81c,_0xf32acc=_0x1207cf[_0x118030(0x19d)](_0x279309[_0x118030(0x18b)]);this[_0x118030(0x190)](this[_0x118030(0x18f)][_0x118030(0x189)],()=>_0x7fd234['toDisposable'](_0xf32acc[_0x118030(0x195)][_0x118030(0x1a8)](_0x290d21=>{const _0x14f1ee=_0x118030;_0x290d21[_0x14f1ee(0x187)]===_0x279309[_0x14f1ee(0x1a3)][_0x14f1ee(0x189)]&&this[_0x14f1ee(0x199)](this[_0x14f1ee(0x18f)][_0x14f1ee(0x189)],_0x290d21[_0x14f1ee(0x197)]);}))),this[_0x118030(0x190)](this[_0x118030(0x18f)]['McpToolCallReceived'],()=>_0x7fd234[_0x118030(0x192)](_0xf32acc['event$'][_0x118030(0x1a8)](_0x4c0118=>{const _0x73f0ac=_0x118030;_0x4c0118[_0x73f0ac(0x187)]===_0x279309['MCPEventId'][_0x73f0ac(0x18a)]&&this[_0x73f0ac(0x199)](this[_0x73f0ac(0x18f)][_0x73f0ac(0x18a)],_0x4c0118[_0x73f0ac(0x197)]);}))),this[_0x118030(0x190)](this[_0x118030(0x18f)][_0x118030(0x1ae)],()=>_0x7fd234[_0x118030(0x192)](_0xf32acc[_0x118030(0x195)][_0x118030(0x1a8)](_0x2aad02=>{const _0xa6e771=_0x118030;_0x2aad02[_0xa6e771(0x187)]===_0x279309[_0xa6e771(0x1a3)][_0xa6e771(0x1ae)]&&this['fireEvent'](this['Event'][_0xa6e771(0x1ae)],_0x2aad02[_0xa6e771(0x197)]);}))),this[_0x118030(0x190)](this[_0x118030(0x18f)]['McpToolCallFailed'],()=>_0x7fd234['toDisposable'](_0xf32acc[_0x118030(0x195)]['subscribe'](_0x59a0a2=>{const _0x2fc027=_0x118030;_0x59a0a2[_0x2fc027(0x187)]===_0x279309[_0x2fc027(0x1a3)][_0x2fc027(0x19f)]&&this[_0x2fc027(0x199)](this['Event']['McpToolCallFailed'],_0x59a0a2[_0x2fc027(0x197)]);})));}[_0x38c81c(0x191)](_0x3a7512,_0x1cf491){const _0x4d367d=_0x38c81c;return this[_0x4d367d(0x1b3)][_0x4d367d(0x19d)](_0x279309[_0x4d367d(0x1a1)])['validateToolCall'](_0x3a7512,_0x1cf491);}[_0x38c81c(0x1a0)](){const _0x21b909=_0x38c81c;return this[_0x21b909(0x1b3)][_0x21b909(0x19d)](_0x279309[_0x21b909(0x1a1)])[_0x21b909(0x19b)]();}[_0x38c81c(0x1b0)](_0x3873cf,_0x43abe3){const _0x550b00=_0x38c81c;return this[_0x550b00(0x1b3)][_0x550b00(0x19d)](_0x279309[_0x550b00(0x1a1)])['executeTool'](_0x3873cf,_0x43abe3);}[_0x38c81c(0x1ac)](){const _0x32e28c=_0x38c81c;return this[_0x32e28c(0x1b3)][_0x32e28c(0x19d)](_0x279309[_0x32e28c(0x19a)])['getConnectionStatus']();}['connectMCP'](){const _0x1c3073=_0x38c81c;this[_0x1c3073(0x1b3)][_0x1c3073(0x19d)](_0x279309['MCPConnectionController'])[_0x1c3073(0x18c)]();}[_0x38c81c(0x196)](){const _0x41dcb3=_0x38c81c;this['_injector'][_0x41dcb3(0x19d)](_0x279309[_0x41dcb3(0x19a)])[_0x41dcb3(0x1ad)]();}}_0x5691ca[_0x38c81c(0x1a9)]['extend'](_0x508399);}));function _0x2268(){const _0x264d80=['24JUJUDx','@univerjs/core','Event','registerEventHandler','validateMCPToolCall','toDisposable','@univerjs/core/facade','2072608IogLBf','event$','disconnectMCP','data','1trvmsH','fireEvent','MCPConnectionController','getAllTools','103943HSXjbp','get','45315nGdhyr','McpToolCallFailed','getAllMCPTools','IMCPToolRegistry','_registerMCPFacadeEvents','MCPEventId','503566iRcrTH','amd','226614fjvRDz','UniverProMcp','subscribe','FUniver','187270TDqgcN','153vOKZxO','getMCPConnectionStatus','disconnect','McpToolCallExecuted','867762yehjKo','callMCPTool','UniverCore','_initialize','_injector','object','type','extend','McpConnectionStatusChanged','McpToolCallReceived','MCPEventService','connect'];_0x2268=function(){return _0x264d80;};return _0x2268();}
1
+ function _0x2c1b(_0xd7fa5b,_0x3c82b1){_0xd7fa5b=_0xd7fa5b-0x8d;const _0x1f4132=_0x1f41();let _0x2c1be1=_0x1f4132[_0xd7fa5b];return _0x2c1be1;}(function(_0x863c4c,_0x4e5d87){const _0x4d49c2=_0x2c1b,_0x2d76e6=_0x863c4c();while(!![]){try{const _0x195d96=parseInt(_0x4d49c2(0xb9))/0x1*(parseInt(_0x4d49c2(0xbc))/0x2)+-parseInt(_0x4d49c2(0xad))/0x3*(parseInt(_0x4d49c2(0x90))/0x4)+-parseInt(_0x4d49c2(0xaf))/0x5*(-parseInt(_0x4d49c2(0x9e))/0x6)+parseInt(_0x4d49c2(0xab))/0x7*(-parseInt(_0x4d49c2(0x97))/0x8)+parseInt(_0x4d49c2(0xa6))/0x9+-parseInt(_0x4d49c2(0xb6))/0xa+parseInt(_0x4d49c2(0xa9))/0xb;if(_0x195d96===_0x4e5d87)break;else _0x2d76e6['push'](_0x2d76e6['shift']());}catch(_0x28a259){_0x2d76e6['push'](_0x2d76e6['shift']());}}}(_0x1f41,0x55b44),function(_0x3cb511,_0x38175b){const _0x52809f=_0x2c1b;typeof exports==_0x52809f(0xbb)&&typeof module<'u'?_0x38175b(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x52809f(0x93)]?define([_0x52809f(0xa0),'@univerjs/core/facade',_0x52809f(0x9d)],_0x38175b):(_0x3cb511=typeof globalThis<'u'?globalThis:_0x3cb511||self,_0x38175b(_0x3cb511['UniverProMcp'],_0x3cb511[_0x52809f(0xb3)],_0x3cb511[_0x52809f(0xb1)]));}(this,function(_0x2491db,_0xc275e2,_0x4a3d61){'use strict';const _0x4aa35a=_0x2c1b;class _0x4b0c41{get['McpConnectionStatusChanged'](){const _0x40c5ce=_0x2c1b;return _0x2491db[_0x40c5ce(0xb8)]['McpConnectionStatusChanged'];}get[_0x4aa35a(0xbd)](){const _0x17f073=_0x4aa35a;return _0x2491db[_0x17f073(0xb8)][_0x17f073(0xbd)];}get[_0x4aa35a(0x9a)](){const _0x4e2661=_0x4aa35a;return _0x2491db[_0x4e2661(0xb8)][_0x4e2661(0x9a)];}get[_0x4aa35a(0xa5)](){const _0x1b97ba=_0x4aa35a;return _0x2491db[_0x1b97ba(0xb8)][_0x1b97ba(0xa5)];}}_0xc275e2[_0x4aa35a(0x9b)][_0x4aa35a(0x94)](_0x4b0c41);class _0x44cbc6 extends _0xc275e2[_0x4aa35a(0x8e)]{[_0x4aa35a(0x91)](_0x2342e3){const _0x19e77a=_0x4aa35a;this[_0x19e77a(0xb4)](_0x2342e3);}['_registerMCPFacadeEvents'](_0x4c5d03){const _0x434f77=_0x4aa35a,_0x7e1d0c=_0x4c5d03[_0x434f77(0xb7)](_0x2491db[_0x434f77(0xba)]);this[_0x434f77(0xa7)](this['Event'][_0x434f77(0xa1)],()=>_0x4a3d61[_0x434f77(0xac)](_0x7e1d0c[_0x434f77(0x99)][_0x434f77(0xaa)](_0x378fac=>{const _0x4745f9=_0x434f77;_0x378fac[_0x4745f9(0x96)]===_0x2491db[_0x4745f9(0xb8)][_0x4745f9(0xa1)]&&this[_0x4745f9(0x98)](this[_0x4745f9(0xa2)]['McpConnectionStatusChanged'],_0x378fac[_0x4745f9(0xb2)]);}))),this[_0x434f77(0xa7)](this[_0x434f77(0xa2)][_0x434f77(0xbd)],()=>_0x4a3d61[_0x434f77(0xac)](_0x7e1d0c['event$'][_0x434f77(0xaa)](_0xbe31e6=>{const _0xb9a90c=_0x434f77;_0xbe31e6[_0xb9a90c(0x96)]===_0x2491db[_0xb9a90c(0xb8)][_0xb9a90c(0xbd)]&&this[_0xb9a90c(0x98)](this['Event']['McpToolCallReceived'],_0xbe31e6[_0xb9a90c(0xb2)]);}))),this[_0x434f77(0xa7)](this[_0x434f77(0xa2)][_0x434f77(0x9a)],()=>_0x4a3d61[_0x434f77(0xac)](_0x7e1d0c[_0x434f77(0x99)]['subscribe'](_0x2b3ce4=>{const _0x25eec2=_0x434f77;_0x2b3ce4['type']===_0x2491db[_0x25eec2(0xb8)]['McpToolCallExecuted']&&this[_0x25eec2(0x98)](this['Event'][_0x25eec2(0x9a)],_0x2b3ce4[_0x25eec2(0xb2)]);}))),this['registerEventHandler'](this[_0x434f77(0xa2)][_0x434f77(0xa5)],()=>_0x4a3d61[_0x434f77(0xac)](_0x7e1d0c[_0x434f77(0x99)][_0x434f77(0xaa)](_0x509b7d=>{const _0x576274=_0x434f77;_0x509b7d[_0x576274(0x96)]===_0x2491db[_0x576274(0xb8)][_0x576274(0xa5)]&&this[_0x576274(0x98)](this[_0x576274(0xa2)][_0x576274(0xa5)],_0x509b7d['data']);})));}[_0x4aa35a(0x95)](_0x144d73,_0x3a223a){const _0x28b3b9=_0x4aa35a;return this[_0x28b3b9(0xb0)][_0x28b3b9(0xb7)](_0x2491db[_0x28b3b9(0xa8)])[_0x28b3b9(0xa3)](_0x144d73,_0x3a223a);}['getAllMCPTools'](){const _0x46f15b=_0x4aa35a;return this[_0x46f15b(0xb0)]['get'](_0x2491db[_0x46f15b(0xa8)])[_0x46f15b(0x8d)]();}['callMCPTool'](_0x444793,_0x5de8fa){const _0x3f6fd0=_0x4aa35a;return this[_0x3f6fd0(0xb0)][_0x3f6fd0(0xb7)](_0x2491db[_0x3f6fd0(0xa8)])[_0x3f6fd0(0x9f)](_0x444793,_0x5de8fa);}[_0x4aa35a(0x9c)](){const _0x12a083=_0x4aa35a;return this[_0x12a083(0xb0)][_0x12a083(0xb7)](_0x2491db['MCPConnectionController'])[_0x12a083(0xa4)]();}[_0x4aa35a(0xae)](){const _0x4565d5=_0x4aa35a;this[_0x4565d5(0xb0)]['get'](_0x2491db[_0x4565d5(0x8f)])[_0x4565d5(0xb5)]();}['disconnectMCP'](){const _0x285084=_0x4aa35a;this[_0x285084(0xb0)][_0x285084(0xb7)](_0x2491db[_0x285084(0x8f)])[_0x285084(0x92)]();}}_0xc275e2[_0x4aa35a(0x8e)][_0x4aa35a(0x94)](_0x44cbc6);}));function _0x1f41(){const _0x353cee=['McpConnectionStatusChanged','Event','validateToolCall','getConnectionStatus','McpToolCallFailed','964359QfhUkP','registerEventHandler','IMCPToolRegistry','7658233xKeNvB','subscribe','3580199oqgQxe','toDisposable','879234qnEPed','connectMCP','10BkYtrG','_injector','UniverCore','data','UniverCoreFacade','_registerMCPFacadeEvents','connect','5618070TPLbdi','get','MCPEventId','18ofyfyQ','MCPEventService','object','60756jXpgmH','McpToolCallReceived','getAllTools','FUniver','MCPConnectionController','8cLZdee','_initialize','disconnect','amd','extend','validateMCPToolCall','type','8BSYeIH','fireEvent','event$','McpToolCallExecuted','FEventName','getMCPConnectionStatus','@univerjs/core','1980918ZpWtgQ','executeTool','@univerjs-pro/mcp'];_0x1f41=function(){return _0x353cee;};return _0x1f41();}