@univerjs-pro/mcp 0.12.2-nightly.202511241159 → 0.12.2-nightly.202511290905

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/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x465b(){const _0x42bf29=['MCPEventId','disconnect','McpConnectionStatusChanged','1497013tZuRrI','Event','117897pBckpk','MCPEventService','validateToolCall','371HibOhh','get','subscribe','McpToolCallExecuted','FUniver','12DfLURl','connectMCP','_initialize','5wkiEGf','getMCPConnectionStatus','McpToolCallFailed','event$','2638572DoqvcO','toDisposable','getAllMCPTools','fireEvent','extend','IMCPToolRegistry','getAllTools','294327Yurzno','callMCPTool','registerEventHandler','executeTool','MCPConnectionController','4897064PojGCG','_injector','getConnectionStatus','3204FEcRln','connect','type','validateMCPToolCall','_registerMCPFacadeEvents','data','540DwsPhC','McpToolCallReceived','4133916oReZyp'];_0x465b=function(){return _0x42bf29;};return _0x465b();}const _0x3a6180=_0x19e4;(function(_0x16ab1f,_0x26e2eb){const _0xa76bbb=_0x19e4,_0x21e836=_0x16ab1f();while(!![]){try{const _0x493a1a=-parseInt(_0xa76bbb(0x16e))/0x1*(-parseInt(_0xa76bbb(0x189))/0x2)+parseInt(_0xa76bbb(0x16b))/0x3*(-parseInt(_0xa76bbb(0x173))/0x4)+parseInt(_0xa76bbb(0x176))/0x5*(parseInt(_0xa76bbb(0x17a))/0x6)+-parseInt(_0xa76bbb(0x195))/0x7+parseInt(_0xa76bbb(0x186))/0x8+parseInt(_0xa76bbb(0x191))/0x9+-parseInt(_0xa76bbb(0x18f))/0xa*(parseInt(_0xa76bbb(0x181))/0xb);if(_0x493a1a===_0x26e2eb)break;else _0x21e836['push'](_0x21e836['shift']());}catch(_0x475068){_0x21e836['push'](_0x21e836['shift']());}}}(_0x465b,0x504df));function _0x19e4(_0x1195ba,_0x13460f){const _0x465bbc=_0x465b();return _0x19e4=function(_0x19e429,_0x1c1f86){_0x19e429=_0x19e429-0x16a;let _0x1825cb=_0x465bbc[_0x19e429];return _0x1825cb;},_0x19e4(_0x1195ba,_0x13460f);}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get['McpConnectionStatusChanged'](){const _0x91877d=_0x19e4;return e[_0x91877d(0x192)][_0x91877d(0x194)];}get[_0x3a6180(0x190)](){const _0x269932=_0x3a6180;return e[_0x269932(0x192)][_0x269932(0x190)];}get['McpToolCallExecuted'](){const _0x466f51=_0x3a6180;return e['MCPEventId'][_0x466f51(0x171)];}get[_0x3a6180(0x178)](){const _0x1e5e27=_0x3a6180;return e['MCPEventId'][_0x1e5e27(0x178)];}}i['FEventName'][_0x3a6180(0x17e)](r);class s extends i[_0x3a6180(0x172)]{[_0x3a6180(0x175)](_0x4b21e2){this['_registerMCPFacadeEvents'](_0x4b21e2);}[_0x3a6180(0x18d)](_0x4f9222){const _0xc34e85=_0x3a6180,_0x198f26=_0x4f9222['get'](e[_0xc34e85(0x16c)]);this['registerEventHandler'](this[_0xc34e85(0x16a)]['McpConnectionStatusChanged'],()=>l[_0xc34e85(0x17b)](_0x198f26['event$'][_0xc34e85(0x170)](_0x4e342a=>{const _0x20b3be=_0xc34e85;_0x4e342a[_0x20b3be(0x18b)]===e[_0x20b3be(0x192)][_0x20b3be(0x194)]&&this[_0x20b3be(0x17d)](this[_0x20b3be(0x16a)]['McpConnectionStatusChanged'],_0x4e342a[_0x20b3be(0x18e)]);}))),this[_0xc34e85(0x183)](this[_0xc34e85(0x16a)][_0xc34e85(0x190)],()=>l['toDisposable'](_0x198f26[_0xc34e85(0x179)]['subscribe'](_0x59388c=>{const _0x163ad9=_0xc34e85;_0x59388c['type']===e['MCPEventId'][_0x163ad9(0x190)]&&this[_0x163ad9(0x17d)](this[_0x163ad9(0x16a)][_0x163ad9(0x190)],_0x59388c['data']);}))),this['registerEventHandler'](this[_0xc34e85(0x16a)][_0xc34e85(0x171)],()=>l['toDisposable'](_0x198f26[_0xc34e85(0x179)]['subscribe'](_0x156abb=>{const _0x1006e6=_0xc34e85;_0x156abb[_0x1006e6(0x18b)]===e[_0x1006e6(0x192)][_0x1006e6(0x171)]&&this[_0x1006e6(0x17d)](this[_0x1006e6(0x16a)]['McpToolCallExecuted'],_0x156abb[_0x1006e6(0x18e)]);}))),this[_0xc34e85(0x183)](this['Event'][_0xc34e85(0x178)],()=>l['toDisposable'](_0x198f26['event$'][_0xc34e85(0x170)](_0x45264c=>{const _0x51686b=_0xc34e85;_0x45264c[_0x51686b(0x18b)]===e[_0x51686b(0x192)][_0x51686b(0x178)]&&this[_0x51686b(0x17d)](this['Event'][_0x51686b(0x178)],_0x45264c[_0x51686b(0x18e)]);})));}[_0x3a6180(0x18c)](_0x420d24,_0x2abad2){const _0x331ec6=_0x3a6180;return this[_0x331ec6(0x187)][_0x331ec6(0x16f)](e['IMCPToolRegistry'])[_0x331ec6(0x16d)](_0x420d24,_0x2abad2);}[_0x3a6180(0x17c)](){const _0x8f3003=_0x3a6180;return this[_0x8f3003(0x187)]['get'](e[_0x8f3003(0x17f)])[_0x8f3003(0x180)]();}[_0x3a6180(0x182)](_0x4ba07e,_0x192ad5){const _0x1d9f02=_0x3a6180;return this['_injector'][_0x1d9f02(0x16f)](e[_0x1d9f02(0x17f)])[_0x1d9f02(0x184)](_0x4ba07e,_0x192ad5);}[_0x3a6180(0x177)](){const _0x2c6890=_0x3a6180;return this[_0x2c6890(0x187)][_0x2c6890(0x16f)](e[_0x2c6890(0x185)])[_0x2c6890(0x188)]();}[_0x3a6180(0x174)](){const _0xb91e3e=_0x3a6180;this[_0xb91e3e(0x187)]['get'](e[_0xb91e3e(0x185)])[_0xb91e3e(0x18a)]();}['disconnectMCP'](){const _0xaaf925=_0x3a6180;this[_0xaaf925(0x187)]['get'](e['MCPConnectionController'])[_0xaaf925(0x193)]();}}i['FUniver']['extend'](s);
1
+ 'use strict';const _0x38f963=_0x1b4b;function _0x36db(){const _0x58e666=['get','2165312OFggbR','connect','registerEventHandler','executeTool','_injector','MCPEventService','McpToolCallFailed','subscribe','453sMwsDa','FEventName','164843glZunP','_registerMCPFacadeEvents','getAllTools','Event','IMCPToolRegistry','validateToolCall','event$','_initialize','MCPEventId','McpToolCallReceived','1629550encDWD','McpConnectionStatusChanged','fireEvent','type','9192VblcMy','data','MCPConnectionController','2VZOHQb','toDisposable','FUniver','McpToolCallExecuted','disconnect','282479fHBdAl','getAllMCPTools','3921579MvmfrD','6632930meLzlX','validateMCPToolCall','6oPHIgO'];_0x36db=function(){return _0x58e666;};return _0x36db();}(function(_0x74f195,_0x1f9d54){const _0x5cf35c=_0x1b4b,_0x89ccfc=_0x74f195();while(!![]){try{const _0x481d5f=parseInt(_0x5cf35c(0x91))/0x1*(parseInt(_0x5cf35c(0x8c))/0x2)+parseInt(_0x5cf35c(0x79))/0x3*(parseInt(_0x5cf35c(0x89))/0x4)+-parseInt(_0x5cf35c(0x85))/0x5*(parseInt(_0x5cf35c(0x6f))/0x6)+parseInt(_0x5cf35c(0x7b))/0x7+-parseInt(_0x5cf35c(0x71))/0x8+-parseInt(_0x5cf35c(0x93))/0x9+parseInt(_0x5cf35c(0x94))/0xa;if(_0x481d5f===_0x1f9d54)break;else _0x89ccfc['push'](_0x89ccfc['shift']());}catch(_0x44c449){_0x89ccfc['push'](_0x89ccfc['shift']());}}}(_0x36db,0x4556e));function _0x1b4b(_0x3d9d94,_0x2518fd){const _0x36dbd9=_0x36db();return _0x1b4b=function(_0x1b4bad,_0x33796d){_0x1b4bad=_0x1b4bad-0x6f;let _0x53adb5=_0x36dbd9[_0x1b4bad];return _0x53adb5;},_0x1b4b(_0x3d9d94,_0x2518fd);}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get['McpConnectionStatusChanged'](){const _0x5e0634=_0x1b4b;return e[_0x5e0634(0x83)][_0x5e0634(0x86)];}get[_0x38f963(0x84)](){const _0x35ec69=_0x38f963;return e[_0x35ec69(0x83)][_0x35ec69(0x84)];}get[_0x38f963(0x8f)](){const _0x9f75ed=_0x38f963;return e[_0x9f75ed(0x83)][_0x9f75ed(0x8f)];}get['McpToolCallFailed'](){const _0x13452f=_0x38f963;return e[_0x13452f(0x83)][_0x13452f(0x77)];}}i[_0x38f963(0x7a)]['extend'](r);class s extends i[_0x38f963(0x8e)]{[_0x38f963(0x82)](_0xf05fba){const _0x21f58a=_0x38f963;this[_0x21f58a(0x7c)](_0xf05fba);}[_0x38f963(0x7c)](_0x2b8b7b){const _0x3fa7b6=_0x38f963,_0x901073=_0x2b8b7b['get'](e[_0x3fa7b6(0x76)]);this[_0x3fa7b6(0x73)](this[_0x3fa7b6(0x7e)][_0x3fa7b6(0x86)],()=>l[_0x3fa7b6(0x8d)](_0x901073['event$'][_0x3fa7b6(0x78)](_0x900728=>{const _0x3663f1=_0x3fa7b6;_0x900728[_0x3663f1(0x88)]===e[_0x3663f1(0x83)][_0x3663f1(0x86)]&&this['fireEvent'](this[_0x3663f1(0x7e)][_0x3663f1(0x86)],_0x900728[_0x3663f1(0x8a)]);}))),this[_0x3fa7b6(0x73)](this[_0x3fa7b6(0x7e)][_0x3fa7b6(0x84)],()=>l[_0x3fa7b6(0x8d)](_0x901073[_0x3fa7b6(0x81)][_0x3fa7b6(0x78)](_0x1c29b1=>{const _0x5c4a29=_0x3fa7b6;_0x1c29b1[_0x5c4a29(0x88)]===e[_0x5c4a29(0x83)]['McpToolCallReceived']&&this['fireEvent'](this[_0x5c4a29(0x7e)][_0x5c4a29(0x84)],_0x1c29b1[_0x5c4a29(0x8a)]);}))),this[_0x3fa7b6(0x73)](this['Event']['McpToolCallExecuted'],()=>l[_0x3fa7b6(0x8d)](_0x901073[_0x3fa7b6(0x81)][_0x3fa7b6(0x78)](_0xcc5d7f=>{const _0x396181=_0x3fa7b6;_0xcc5d7f[_0x396181(0x88)]===e['MCPEventId']['McpToolCallExecuted']&&this[_0x396181(0x87)](this[_0x396181(0x7e)][_0x396181(0x8f)],_0xcc5d7f[_0x396181(0x8a)]);}))),this[_0x3fa7b6(0x73)](this['Event'][_0x3fa7b6(0x77)],()=>l[_0x3fa7b6(0x8d)](_0x901073[_0x3fa7b6(0x81)][_0x3fa7b6(0x78)](_0x1f5279=>{const _0x19b52b=_0x3fa7b6;_0x1f5279[_0x19b52b(0x88)]===e[_0x19b52b(0x83)][_0x19b52b(0x77)]&&this[_0x19b52b(0x87)](this[_0x19b52b(0x7e)][_0x19b52b(0x77)],_0x1f5279[_0x19b52b(0x8a)]);})));}[_0x38f963(0x95)](_0x5dfbb8,_0x2101ba){const _0x3d462a=_0x38f963;return this[_0x3d462a(0x75)][_0x3d462a(0x70)](e[_0x3d462a(0x7f)])[_0x3d462a(0x80)](_0x5dfbb8,_0x2101ba);}[_0x38f963(0x92)](){const _0x567d0b=_0x38f963;return this[_0x567d0b(0x75)][_0x567d0b(0x70)](e[_0x567d0b(0x7f)])[_0x567d0b(0x7d)]();}['callMCPTool'](_0x58057d,_0x509cc1){const _0x52579a=_0x38f963;return this[_0x52579a(0x75)]['get'](e['IMCPToolRegistry'])[_0x52579a(0x74)](_0x58057d,_0x509cc1);}['getMCPConnectionStatus'](){const _0x445610=_0x38f963;return this[_0x445610(0x75)][_0x445610(0x70)](e['MCPConnectionController'])['getConnectionStatus']();}['connectMCP'](){const _0x707e48=_0x38f963;this[_0x707e48(0x75)][_0x707e48(0x70)](e[_0x707e48(0x8b)])[_0x707e48(0x72)]();}['disconnectMCP'](){const _0x51ac66=_0x38f963;this[_0x51ac66(0x75)]['get'](e[_0x51ac66(0x8b)])[_0x51ac66(0x90)]();}}i[_0x38f963(0x8e)]['extend'](s);