@univerjs-pro/mcp 0.10.8-nightly.202509200616 → 0.10.9-experimental.20250925-61b61a0
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/types/controllers/config.schema.d.ts +1 -1
- package/lib/types/controllers/mcp-connection.controller.d.ts +5 -5
- package/lib/types/controllers/mcp-tool-registry.controller.d.ts +3 -3
- package/lib/types/facade/f-event.d.ts +150 -0
- package/lib/types/facade/f-univer.d.ts +18 -0
- package/lib/types/facade/index.d.ts +2 -0
- package/lib/types/index.d.ts +2 -1
- package/lib/types/services/mcp-event.service.d.ts +86 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
- package/lib/types/services/mcp-ui-event.service.d.ts +0 -84
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x395a5f=_0x5c59;function _0x5c59(_0x1a6ef8,_0x518b0b){const _0x434055=_0x4340();return _0x5c59=function(_0x5c59b8,_0x5a64ba){_0x5c59b8=_0x5c59b8-0x6a;let _0x54d528=_0x434055[_0x5c59b8];return _0x54d528;},_0x5c59(_0x1a6ef8,_0x518b0b);}(function(_0x3d7ccf,_0x4b9dc5){const _0x361b44=_0x5c59,_0x24355d=_0x3d7ccf();while(!![]){try{const _0x3a69d2=parseInt(_0x361b44(0x77))/0x1+-parseInt(_0x361b44(0x70))/0x2*(parseInt(_0x361b44(0x74))/0x3)+-parseInt(_0x361b44(0x8a))/0x4+-parseInt(_0x361b44(0x6a))/0x5*(-parseInt(_0x361b44(0x78))/0x6)+-parseInt(_0x361b44(0x72))/0x7*(parseInt(_0x361b44(0x82))/0x8)+-parseInt(_0x361b44(0x76))/0x9+-parseInt(_0x361b44(0x83))/0xa*(-parseInt(_0x361b44(0x6e))/0xb);if(_0x3a69d2===_0x4b9dc5)break;else _0x24355d['push'](_0x24355d['shift']());}catch(_0x2e6063){_0x24355d['push'](_0x24355d['shift']());}}}(_0x4340,0xad3d8));function _0x4340(){const _0x3f23c5=['1738990wiVzrh','getAllTools','14efxwDN','executeTool','3QaPYdP','McpConnectionStatusChanged','2420262cwPvSq','647142jlBXJQ','1280946NtWYZL','McpToolCallReceived','_initialize','getAllMCPTools','event$','validateMCPToolCall','subscribe','Event','McpToolCallExecuted','disconnect','2553240RGJpOq','80AgbHoK','_registerMCPFacadeEvents','McpToolCallFailed','_injector','registerEventHandler','validateToolCall','type','779128DEWbvb','extend','fireEvent','getMCPConnectionStatus','5nyqwDH','get','data','getConnectionStatus','2503138FzhJNd','disconnectMCP'];_0x4340=function(){return _0x3f23c5;};return _0x4340();}import{MCPEventId as _0x244de3,MCPEventService as _0x13168f,IMCPToolRegistry as _0x45f8ab,MCPConnectionController as _0x2f966d}from'@univerjs-pro/mcp';import{FEventName as _0x1a0ec8,FUniver as _0x4d6ea6}from'@univerjs/core/facade';import{toDisposable as _0x3dde5a}from'@univerjs/core';class d{get[_0x395a5f(0x75)](){const _0x42bf48=_0x395a5f;return _0x244de3[_0x42bf48(0x75)];}get[_0x395a5f(0x79)](){return _0x244de3['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x56b23a=_0x395a5f;return _0x244de3[_0x56b23a(0x80)];}get[_0x395a5f(0x85)](){const _0x326fbc=_0x395a5f;return _0x244de3[_0x326fbc(0x85)];}}_0x1a0ec8[_0x395a5f(0x8b)](d);class M extends _0x4d6ea6{[_0x395a5f(0x7a)](_0x518fa6){this['_registerMCPFacadeEvents'](_0x518fa6);}[_0x395a5f(0x84)](_0x129e62){const _0x22192c=_0x395a5f,_0x309456=_0x129e62[_0x22192c(0x6b)](_0x13168f);this[_0x22192c(0x87)](this[_0x22192c(0x7f)]['McpConnectionStatusChanged'],()=>_0x3dde5a(_0x309456['event$'][_0x22192c(0x7e)](_0x5d559b=>{const _0x5cfea7=_0x22192c;_0x5d559b[_0x5cfea7(0x89)]===_0x244de3[_0x5cfea7(0x75)]&&this[_0x5cfea7(0x8c)](this['Event']['McpConnectionStatusChanged'],_0x5d559b[_0x5cfea7(0x6c)]);}))),this[_0x22192c(0x87)](this[_0x22192c(0x7f)][_0x22192c(0x79)],()=>_0x3dde5a(_0x309456[_0x22192c(0x7c)][_0x22192c(0x7e)](_0x55779a=>{const _0x582074=_0x22192c;_0x55779a[_0x582074(0x89)]===_0x244de3['McpToolCallReceived']&&this[_0x582074(0x8c)](this['Event'][_0x582074(0x79)],_0x55779a[_0x582074(0x6c)]);}))),this[_0x22192c(0x87)](this['Event']['McpToolCallExecuted'],()=>_0x3dde5a(_0x309456[_0x22192c(0x7c)]['subscribe'](_0x4545f8=>{const _0x538b68=_0x22192c;_0x4545f8[_0x538b68(0x89)]===_0x244de3[_0x538b68(0x80)]&&this[_0x538b68(0x8c)](this['Event']['McpToolCallExecuted'],_0x4545f8[_0x538b68(0x6c)]);}))),this['registerEventHandler'](this[_0x22192c(0x7f)]['McpToolCallFailed'],()=>_0x3dde5a(_0x309456[_0x22192c(0x7c)][_0x22192c(0x7e)](_0xa1f228=>{const _0x3c2594=_0x22192c;_0xa1f228[_0x3c2594(0x89)]===_0x244de3[_0x3c2594(0x85)]&&this[_0x3c2594(0x8c)](this[_0x3c2594(0x7f)][_0x3c2594(0x85)],_0xa1f228[_0x3c2594(0x6c)]);})));}[_0x395a5f(0x7d)](_0x2e75db,_0x19e6e0){const _0x9cb65f=_0x395a5f;return this[_0x9cb65f(0x86)][_0x9cb65f(0x6b)](_0x45f8ab)[_0x9cb65f(0x88)](_0x2e75db,_0x19e6e0);}[_0x395a5f(0x7b)](){const _0x860736=_0x395a5f;return this['_injector'][_0x860736(0x6b)](_0x45f8ab)[_0x860736(0x71)]();}['callMCPTool'](_0x5d2d08,_0x725a28){const _0x4133ab=_0x395a5f;return this[_0x4133ab(0x86)][_0x4133ab(0x6b)](_0x45f8ab)[_0x4133ab(0x73)](_0x5d2d08,_0x725a28);}[_0x395a5f(0x8d)](){const _0x3fd5bd=_0x395a5f;return this['_injector'][_0x3fd5bd(0x6b)](_0x2f966d)[_0x3fd5bd(0x6d)]();}['connectMCP'](){const _0x11ad8d=_0x395a5f;this[_0x11ad8d(0x86)][_0x11ad8d(0x6b)](_0x2f966d)['connect']();}[_0x395a5f(0x6f)](){const _0x51593b=_0x395a5f;this[_0x51593b(0x86)][_0x51593b(0x6b)](_0x2f966d)[_0x51593b(0x81)]();}}_0x4d6ea6[_0x395a5f(0x8b)](M);
|