@univerjs-pro/mcp 0.12.0 → 0.12.1-nightly.202511221011
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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x558678=_0x1769;(function(_0x3af92a,_0x31e9d6){const _0x5d84ab=_0x1769,_0x196dd9=_0x3af92a();while(!![]){try{const _0x257b03=parseInt(_0x5d84ab(0x70))/0x1+parseInt(_0x5d84ab(0x6a))/0x2+-parseInt(_0x5d84ab(0x72))/0x3+-parseInt(_0x5d84ab(0x68))/0x4+-parseInt(_0x5d84ab(0x75))/0x5*(parseInt(_0x5d84ab(0x81))/0x6)+-parseInt(_0x5d84ab(0x7e))/0x7*(parseInt(_0x5d84ab(0x8a))/0x8)+-parseInt(_0x5d84ab(0x6b))/0x9*(-parseInt(_0x5d84ab(0x71))/0xa);if(_0x257b03===_0x31e9d6)break;else _0x196dd9['push'](_0x196dd9['shift']());}catch(_0x306b95){_0x196dd9['push'](_0x196dd9['shift']());}}}(_0x3d9a,0x33c00));import{MCPEventId as _0x51b352,MCPEventService as _0x394a9b,IMCPToolRegistry as _0x2988af,MCPConnectionController as _0x2cc124}from'@univerjs-pro/mcp';import{FEventName as _0x24ad74,FUniver as _0x34f002}from'@univerjs/core/facade';import{toDisposable as _0x229816}from'@univerjs/core';class d{get[_0x558678(0x88)](){const _0x3a002f=_0x558678;return _0x51b352[_0x3a002f(0x88)];}get[_0x558678(0x86)](){return _0x51b352['McpToolCallReceived'];}get[_0x558678(0x78)](){const _0x577095=_0x558678;return _0x51b352[_0x577095(0x78)];}get[_0x558678(0x82)](){const _0x34cbb3=_0x558678;return _0x51b352[_0x34cbb3(0x82)];}}function _0x3d9a(){const _0xa852df=['_initialize','subscribe','extend','validateMCPToolCall','getAllTools','57169bkmjkP','Event','disconnect','66GgWIUs','McpToolCallFailed','callMCPTool','fireEvent','data','McpToolCallReceived','_injector','McpConnectionStatusChanged','executeTool','64GINVFt','getMCPConnectionStatus','919560tOXetD','type','243880zCdkgd','2367RamnvV','disconnectMCP','get','registerEventHandler','event$','364472waokNb','11630wlixqE','219945AqLTrR','_registerMCPFacadeEvents','connect','96260tRffnd','getAllMCPTools','connectMCP','McpToolCallExecuted'];_0x3d9a=function(){return _0xa852df;};return _0x3d9a();}function _0x1769(_0x58b4fb,_0x4a62c7){const _0x3d9ac1=_0x3d9a();return _0x1769=function(_0x176956,_0x3aec2f){_0x176956=_0x176956-0x68;let _0x23b564=_0x3d9ac1[_0x176956];return _0x23b564;},_0x1769(_0x58b4fb,_0x4a62c7);}_0x24ad74[_0x558678(0x7b)](d);class M extends _0x34f002{[_0x558678(0x79)](_0x2b94c4){const _0x2178db=_0x558678;this[_0x2178db(0x73)](_0x2b94c4);}[_0x558678(0x73)](_0x2f5523){const _0x250c66=_0x558678,_0x49178e=_0x2f5523[_0x250c66(0x6d)](_0x394a9b);this[_0x250c66(0x6e)](this[_0x250c66(0x7f)][_0x250c66(0x88)],()=>_0x229816(_0x49178e['event$'][_0x250c66(0x7a)](_0x82996e=>{const _0x59c2bb=_0x250c66;_0x82996e[_0x59c2bb(0x69)]===_0x51b352['McpConnectionStatusChanged']&&this[_0x59c2bb(0x84)](this[_0x59c2bb(0x7f)][_0x59c2bb(0x88)],_0x82996e['data']);}))),this[_0x250c66(0x6e)](this[_0x250c66(0x7f)][_0x250c66(0x86)],()=>_0x229816(_0x49178e['event$'][_0x250c66(0x7a)](_0x54d6ce=>{const _0x4b3dbc=_0x250c66;_0x54d6ce['type']===_0x51b352[_0x4b3dbc(0x86)]&&this[_0x4b3dbc(0x84)](this[_0x4b3dbc(0x7f)]['McpToolCallReceived'],_0x54d6ce['data']);}))),this['registerEventHandler'](this[_0x250c66(0x7f)][_0x250c66(0x78)],()=>_0x229816(_0x49178e[_0x250c66(0x6f)][_0x250c66(0x7a)](_0x390bf3=>{const _0x43a120=_0x250c66;_0x390bf3[_0x43a120(0x69)]===_0x51b352[_0x43a120(0x78)]&&this[_0x43a120(0x84)](this['Event'][_0x43a120(0x78)],_0x390bf3[_0x43a120(0x85)]);}))),this[_0x250c66(0x6e)](this[_0x250c66(0x7f)][_0x250c66(0x82)],()=>_0x229816(_0x49178e[_0x250c66(0x6f)][_0x250c66(0x7a)](_0x29762e=>{const _0x3945a2=_0x250c66;_0x29762e['type']===_0x51b352[_0x3945a2(0x82)]&&this[_0x3945a2(0x84)](this[_0x3945a2(0x7f)][_0x3945a2(0x82)],_0x29762e[_0x3945a2(0x85)]);})));}[_0x558678(0x7c)](_0x5d4167,_0x50a919){const _0x4c8966=_0x558678;return this[_0x4c8966(0x87)][_0x4c8966(0x6d)](_0x2988af)['validateToolCall'](_0x5d4167,_0x50a919);}[_0x558678(0x76)](){const _0x311b5d=_0x558678;return this[_0x311b5d(0x87)][_0x311b5d(0x6d)](_0x2988af)[_0x311b5d(0x7d)]();}[_0x558678(0x83)](_0x5527c7,_0x363cc5){const _0x515d7f=_0x558678;return this[_0x515d7f(0x87)][_0x515d7f(0x6d)](_0x2988af)[_0x515d7f(0x89)](_0x5527c7,_0x363cc5);}[_0x558678(0x8b)](){const _0x21fc7e=_0x558678;return this['_injector'][_0x21fc7e(0x6d)](_0x2cc124)['getConnectionStatus']();}[_0x558678(0x77)](){const _0x2faa92=_0x558678;this[_0x2faa92(0x87)]['get'](_0x2cc124)[_0x2faa92(0x74)]();}[_0x558678(0x6c)](){const _0x53fecd=_0x558678;this[_0x53fecd(0x87)][_0x53fecd(0x6d)](_0x2cc124)[_0x53fecd(0x80)]();}}_0x34f002[_0x558678(0x7b)](M);
|