@univerjs-pro/mcp 0.10.8 → 0.10.9-nightly.202509260614
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/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2299f8=_0x7d9e;(function(_0x3a30cc,_0x3abc69){const _0x5c3dc3=_0x7d9e,_0x61291f=_0x3a30cc();while(!![]){try{const _0x5ec740=parseInt(_0x5c3dc3(0xe4))/0x1*(parseInt(_0x5c3dc3(0xfa))/0x2)+-parseInt(_0x5c3dc3(0xfe))/0x3*(-parseInt(_0x5c3dc3(0xf8))/0x4)+parseInt(_0x5c3dc3(0xf2))/0x5*(parseInt(_0x5c3dc3(0x106))/0x6)+-parseInt(_0x5c3dc3(0xf3))/0x7*(-parseInt(_0x5c3dc3(0xe3))/0x8)+parseInt(_0x5c3dc3(0xf9))/0x9+parseInt(_0x5c3dc3(0xe9))/0xa+-parseInt(_0x5c3dc3(0xec))/0xb;if(_0x5ec740===_0x3abc69)break;else _0x61291f['push'](_0x61291f['shift']());}catch(_0x153b69){_0x61291f['push'](_0x61291f['shift']());}}}(_0x47bf,0x36d2c));import{MCPEventId as _0x2c4e1a,MCPEventService as _0x556b05,IMCPToolRegistry as _0x13c6e9,MCPConnectionController as _0x173f51}from'@univerjs-pro/mcp';import{FEventName as _0x26e343,FUniver as _0x5ee23b}from'@univerjs/core/facade';function _0x47bf(){const _0x3550a6=['_injector','Event','getAllTools','executeTool','registerEventHandler','6Zaqkit','getConnectionStatus','8rzKjSb','54652BCGgLz','McpToolCallReceived','type','subscribe','disconnectMCP','3469400YGlxUB','get','getMCPConnectionStatus','11949432jeUkUL','validateMCPToolCall','connectMCP','fireEvent','_registerMCPFacadeEvents','McpToolCallExecuted','570085YzdcuU','806029ZydlBb','data','event$','McpConnectionStatusChanged','getAllMCPTools','26904hHTJgh','3850866bnbuvm','10dTYnhI','connect','extend','callMCPTool','15sKMyvb','McpToolCallFailed','disconnect'];_0x47bf=function(){return _0x3550a6;};return _0x47bf();}import{toDisposable as _0x241d62}from'@univerjs/core';class d{get[_0x2299f8(0xf6)](){const _0x82b291=_0x2299f8;return _0x2c4e1a[_0x82b291(0xf6)];}get[_0x2299f8(0xe5)](){const _0x1dec5d=_0x2299f8;return _0x2c4e1a[_0x1dec5d(0xe5)];}get[_0x2299f8(0xf1)](){const _0x515620=_0x2299f8;return _0x2c4e1a[_0x515620(0xf1)];}get['McpToolCallFailed'](){const _0x4ee76c=_0x2299f8;return _0x2c4e1a[_0x4ee76c(0xff)];}}function _0x7d9e(_0x387b3d,_0x55441d){const _0x47bf0e=_0x47bf();return _0x7d9e=function(_0x7d9e6b,_0x3bfe86){_0x7d9e6b=_0x7d9e6b-0xe2;let _0xae6e5=_0x47bf0e[_0x7d9e6b];return _0xae6e5;},_0x7d9e(_0x387b3d,_0x55441d);}_0x26e343[_0x2299f8(0xfc)](d);class M extends _0x5ee23b{['_initialize'](_0x1a5cbe){const _0x32883d=_0x2299f8;this[_0x32883d(0xf0)](_0x1a5cbe);}[_0x2299f8(0xf0)](_0x50126d){const _0x72adf5=_0x2299f8,_0x31c754=_0x50126d[_0x72adf5(0xea)](_0x556b05);this[_0x72adf5(0x105)](this[_0x72adf5(0x102)][_0x72adf5(0xf6)],()=>_0x241d62(_0x31c754[_0x72adf5(0xf5)][_0x72adf5(0xe7)](_0x1e2ca3=>{const _0x21ca35=_0x72adf5;_0x1e2ca3[_0x21ca35(0xe6)]===_0x2c4e1a[_0x21ca35(0xf6)]&&this[_0x21ca35(0xef)](this[_0x21ca35(0x102)][_0x21ca35(0xf6)],_0x1e2ca3['data']);}))),this[_0x72adf5(0x105)](this['Event'][_0x72adf5(0xe5)],()=>_0x241d62(_0x31c754[_0x72adf5(0xf5)]['subscribe'](_0x1c5ef9=>{const _0x5498b8=_0x72adf5;_0x1c5ef9[_0x5498b8(0xe6)]===_0x2c4e1a[_0x5498b8(0xe5)]&&this[_0x5498b8(0xef)](this[_0x5498b8(0x102)][_0x5498b8(0xe5)],_0x1c5ef9[_0x5498b8(0xf4)]);}))),this[_0x72adf5(0x105)](this['Event'][_0x72adf5(0xf1)],()=>_0x241d62(_0x31c754[_0x72adf5(0xf5)][_0x72adf5(0xe7)](_0x1ddcf5=>{const _0x644b20=_0x72adf5;_0x1ddcf5[_0x644b20(0xe6)]===_0x2c4e1a[_0x644b20(0xf1)]&&this[_0x644b20(0xef)](this[_0x644b20(0x102)][_0x644b20(0xf1)],_0x1ddcf5['data']);}))),this[_0x72adf5(0x105)](this[_0x72adf5(0x102)]['McpToolCallFailed'],()=>_0x241d62(_0x31c754['event$'][_0x72adf5(0xe7)](_0xe27a0d=>{const _0x233286=_0x72adf5;_0xe27a0d[_0x233286(0xe6)]===_0x2c4e1a[_0x233286(0xff)]&&this['fireEvent'](this['Event'][_0x233286(0xff)],_0xe27a0d[_0x233286(0xf4)]);})));}[_0x2299f8(0xed)](_0x4c4224,_0x390968){const _0x3bccb2=_0x2299f8;return this['_injector'][_0x3bccb2(0xea)](_0x13c6e9)['validateToolCall'](_0x4c4224,_0x390968);}[_0x2299f8(0xf7)](){const _0x4b756f=_0x2299f8;return this[_0x4b756f(0x101)][_0x4b756f(0xea)](_0x13c6e9)[_0x4b756f(0x103)]();}[_0x2299f8(0xfd)](_0x5a86e3,_0x4ec339){const _0x924c67=_0x2299f8;return this['_injector'][_0x924c67(0xea)](_0x13c6e9)[_0x924c67(0x104)](_0x5a86e3,_0x4ec339);}[_0x2299f8(0xeb)](){const _0x39f758=_0x2299f8;return this['_injector'][_0x39f758(0xea)](_0x173f51)[_0x39f758(0xe2)]();}[_0x2299f8(0xee)](){const _0x19f835=_0x2299f8;this[_0x19f835(0x101)]['get'](_0x173f51)[_0x19f835(0xfb)]();}[_0x2299f8(0xe8)](){const _0x4f8e60=_0x2299f8;this[_0x4f8e60(0x101)][_0x4f8e60(0xea)](_0x173f51)[_0x4f8e60(0x100)]();}}_0x5ee23b['extend'](M);
|