@univerjs-pro/sheets-mcp 0.12.2 → 0.12.3-experimental.20251205-e439e48

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.
@@ -50,12 +50,12 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
50
50
  sub_type: z.ZodOptional<z.ZodEnum<{
51
51
  number: "number";
52
52
  text: "text";
53
- formula: "formula";
54
53
  uniqueValues: "uniqueValues";
55
54
  duplicateValues: "duplicateValues";
56
55
  rank: "rank";
57
56
  timePeriod: "timePeriod";
58
57
  average: "average";
58
+ formula: "formula";
59
59
  }>>;
60
60
  operator: z.ZodOptional<z.ZodEnum<{
61
61
  endsWith: "endsWith";
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x27b7ea,_0x4e6558){const _0x5dfecc=_0x45fa,_0x19442e=_0x27b7ea();while(!![]){try{const _0x55b4b1=-parseInt(_0x5dfecc(0x10d))/0x1*(-parseInt(_0x5dfecc(0x107))/0x2)+parseInt(_0x5dfecc(0x131))/0x3+parseInt(_0x5dfecc(0x10c))/0x4+-parseInt(_0x5dfecc(0x103))/0x5+-parseInt(_0x5dfecc(0x10a))/0x6+-parseInt(_0x5dfecc(0x109))/0x7+parseInt(_0x5dfecc(0x128))/0x8*(-parseInt(_0x5dfecc(0x12d))/0x9);if(_0x55b4b1===_0x4e6558)break;else _0x19442e['push'](_0x19442e['shift']());}catch(_0x1381f7){_0x19442e['push'](_0x19442e['shift']());}}}(_0x3547,0x9bd64),function(_0x1c1acc,_0x42a883){const _0xb71727=_0x45fa;typeof exports==_0xb71727(0x126)&&typeof module<'u'?_0x42a883(require('@univerjs/core/facade'),require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade'),require('@univerjs/sheets/facade'),require('@univerjs-pro/sheets-mcp'),require('@univerjs/core')):typeof define==_0xb71727(0x123)&&define[_0xb71727(0x127)]?define(['@univerjs/core/facade',_0xb71727(0x10f),'@univerjs/sheets-data-validation/facade',_0xb71727(0x122),_0xb71727(0x10b),_0xb71727(0x12f)],_0x42a883):(_0x1c1acc=typeof globalThis<'u'?globalThis:_0x1c1acc||self,_0x42a883(_0x1c1acc[_0xb71727(0x12b)],_0x1c1acc[_0xb71727(0x11e)],_0x1c1acc[_0xb71727(0x114)],_0x1c1acc[_0xb71727(0x106)],_0x1c1acc[_0xb71727(0x101)],_0x1c1acc[_0xb71727(0x100)]));}(this,function(_0x38b0bd,_0x23ac3e,_0x2f7e6e,_0x345678,_0x1c445c,_0x1e5582){'use strict';const _0x26a536=_0x45fa;class _0xf32de5 extends _0x38b0bd[_0x26a536(0x113)]{async[_0x26a536(0x11a)](){const _0x5d651b=_0x26a536;return this[_0x5d651b(0x120)]()[_0x5d651b(0x11a)]();}}_0x38b0bd[_0x26a536(0x113)][_0x26a536(0x121)](_0xf32de5);class _0x1091d7 extends _0x345678['FWorkbook']{async[_0x26a536(0x11a)](){const _0x2ff565=_0x26a536,_0x573183=this[_0x2ff565(0x102)](),_0x534b19=await this[_0x2ff565(0x11d)]();return{'formulaErrors':_0x573183,'dataValidationErrors':_0x534b19};}}_0x345678[_0x26a536(0x129)][_0x26a536(0x121)](_0x1091d7);class _0x382eaf extends _0x345678['FWorksheet']{async[_0x26a536(0x118)](){const _0xf359e9=_0x26a536,_0x42a591=this[_0xf359e9(0x124)]['get'](_0x1c445c[_0xf359e9(0x104)]),_0x5a9bbc=this[_0xf359e9(0x111)](0x0,0x0,this[_0xf359e9(0x115)]()+0x1,this[_0xf359e9(0x132)]()+0x1)[_0xf359e9(0x125)]();return await _0x42a591['getAllFormulaUsages'](_0x5a9bbc);}async[_0x26a536(0x12e)](){const _0x3d5ec5=_0x26a536;return(await this[_0x3d5ec5(0x118)]())[_0x3d5ec5(0x108)](_0x1c445c['toA1']);}}_0x345678[_0x26a536(0x110)][_0x26a536(0x121)](_0x382eaf);class _0x253bf4 extends _0x345678['FRange']{async[_0x26a536(0x118)](){const _0x5c783c=_0x26a536,_0x903d07=this[_0x5c783c(0x124)]['get'](_0x1c445c[_0x5c783c(0x104)]),_0x571137=(({startRow:_0x4da22d,endRow:_0x178252,startColumn:_0xdc8b0a,endColumn:_0x1a39c4})=>{const _0x22777d=_0x5c783c,_0x4832d6=[];for(let _0x54b3c4=_0x4da22d;_0x54b3c4<=_0x178252;_0x54b3c4++){const _0x12c43d=[];for(let _0x4a600c=_0xdc8b0a;_0x4a600c<=_0x1a39c4;_0x4a600c++)_0x12c43d[_0x22777d(0x105)](this['_worksheet'][_0x22777d(0x117)](_0x54b3c4,_0x4a600c));_0x4832d6[_0x22777d(0x105)](_0x12c43d);}return _0x4832d6;})({'startRow':0x0,'endRow':this[_0x5c783c(0x10e)]['getMaxRows'](),'startColumn':0x0,'endColumn':this['_worksheet']['getMaxColumns']()}),_0x6147da=await _0x903d07[_0x5c783c(0x11f)](_0x571137),_0x2f6c92=this[_0x5c783c(0x111)](),_0x53c4e7=[];for(let _0x23fdd9=0x0;_0x23fdd9<_0x6147da['length'];_0x23fdd9++){const _0x4cceed=_0x6147da[_0x23fdd9],_0x395a81=_0x4cceed[_0x5c783c(0x12a)],_0x13bb3a=[];for(let _0x5e9f46=0x0;_0x5e9f46<_0x395a81[_0x5c783c(0x112)];_0x5e9f46++){const _0x3e3ee6=_0x395a81[_0x5e9f46],_0x47688b=_0x1e5582[_0x5c783c(0x119)](_0x3e3ee6,_0x2f6c92);_0x47688b&&_0x13bb3a[_0x5c783c(0x105)](_0x47688b);}if(_0x13bb3a[_0x5c783c(0x112)]>0x0){_0x4cceed[_0x5c783c(0x12a)]=_0x13bb3a;const _0x364105=_0x13bb3a[0x0],_0x5b7ec8=_0x364105[_0x5c783c(0x116)]-_0x2f6c92[_0x5c783c(0x116)],_0x1ac06d=_0x364105[_0x5c783c(0x11c)]-_0x2f6c92[_0x5c783c(0x11c)];_0x4cceed[_0x5c783c(0x11b)]=await _0x903d07[_0x5c783c(0x130)](_0x4cceed[_0x5c783c(0x11b)],_0x5b7ec8,_0x1ac06d),_0x53c4e7[_0x5c783c(0x105)](_0x4cceed);}}return _0x53c4e7;}async[_0x26a536(0x12e)](){const _0x5c9af1=_0x26a536;return(await this[_0x5c9af1(0x118)]())[_0x5c9af1(0x108)](_0x1c445c[_0x5c9af1(0x12c)]);}}_0x345678['FRange'][_0x26a536(0x121)](_0x253bf4);}));function _0x45fa(_0x59a556,_0x492427){const _0x354733=_0x3547();return _0x45fa=function(_0x45fab8,_0x3d7cb3){_0x45fab8=_0x45fab8-0x100;let _0x464d9e=_0x354733[_0x45fab8];return _0x464d9e;},_0x45fa(_0x59a556,_0x492427);}function _0x3547(){const _0x181275=['getRange','length','FUniver','UniverSheetsDataValidationFacade','getMaxRows','startRow','getCellRaw','getFormulaUsages','getIntersectRange','getLintErrors','formula','startColumn','getAllDataValidationErrorAsync','UniverSheetsFormulaFacade','getAllFormulaUsages','getActiveWorkbook','extend','@univerjs/sheets/facade','function','_injector','getCellDataGrid','object','amd','7688hWceha','FWorkbook','filledRanges','UniverCoreFacade','toA1','16938WUCMVk','getFormulaUsagesAsA1','@univerjs/core','moveFormulaRefOffset','3273168XuTdmf','getMaxColumns','UniverCore','UniverProSheetsMcp','getAllFormulaError','2362315xZaVtm','IFormulaUsageAnalyzer','push','UniverSheetsFacade','431932YIOuOc','map','665679bcuHoh','1055082dkEsfO','@univerjs-pro/sheets-mcp','4941588oENNJl','4nKAXux','_worksheet','@univerjs/sheets-formula/facade','FWorksheet'];_0x3547=function(){return _0x181275;};return _0x3547();}
1
+ (function(_0x54a5f7,_0x207ad9){const _0x15471b=_0x24f8,_0x18a6de=_0x54a5f7();while(!![]){try{const _0x2c20ce=-parseInt(_0x15471b(0x18c))/0x1+-parseInt(_0x15471b(0x1a9))/0x2+-parseInt(_0x15471b(0x1ab))/0x3*(-parseInt(_0x15471b(0x1a7))/0x4)+parseInt(_0x15471b(0x19b))/0x5+-parseInt(_0x15471b(0x1bd))/0x6*(-parseInt(_0x15471b(0x1b4))/0x7)+-parseInt(_0x15471b(0x1b9))/0x8+parseInt(_0x15471b(0x18d))/0x9;if(_0x2c20ce===_0x207ad9)break;else _0x18a6de['push'](_0x18a6de['shift']());}catch(_0x7ee9dc){_0x18a6de['push'](_0x18a6de['shift']());}}}(_0x3019,0x6e48a),function(_0x47a338,_0x3ed5d8){const _0x210c91=_0x24f8;typeof exports==_0x210c91(0x191)&&typeof module<'u'?_0x3ed5d8(require('@univerjs/core/facade'),require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade'),require('@univerjs/sheets/facade'),require('@univerjs-pro/sheets-mcp'),require('@univerjs/core')):typeof define==_0x210c91(0x18e)&&define[_0x210c91(0x1a1)]?define([_0x210c91(0x198),_0x210c91(0x1b1),_0x210c91(0x19a),_0x210c91(0x19f),_0x210c91(0x1b7),_0x210c91(0x1be)],_0x3ed5d8):(_0x47a338=typeof globalThis<'u'?globalThis:_0x47a338||self,_0x3ed5d8(_0x47a338[_0x210c91(0x1af)],_0x47a338[_0x210c91(0x190)],_0x47a338[_0x210c91(0x19d)],_0x47a338['UniverSheetsFacade'],_0x47a338[_0x210c91(0x1b3)],_0x47a338[_0x210c91(0x1ae)]));}(this,function(_0xc4e66a,_0x1141f6,_0x5e0ffc,_0x4b72f8,_0x30ef12,_0x1c4048){'use strict';const _0x39d5f2=_0x24f8;class _0x18cac3 extends _0xc4e66a[_0x39d5f2(0x1ba)]{async[_0x39d5f2(0x194)](){const _0x60d453=_0x39d5f2;return this[_0x60d453(0x1b6)]()[_0x60d453(0x194)]();}}_0xc4e66a[_0x39d5f2(0x1ba)][_0x39d5f2(0x1b5)](_0x18cac3);class _0x22a693 extends _0x4b72f8['FWorkbook']{async[_0x39d5f2(0x194)](){const _0x213605=_0x39d5f2,_0x200f8f=this[_0x213605(0x19e)](),_0x22baa4=await this[_0x213605(0x1bf)]();return{'formulaErrors':_0x200f8f,'dataValidationErrors':_0x22baa4};}}_0x4b72f8[_0x39d5f2(0x19c)][_0x39d5f2(0x1b5)](_0x22a693);class _0x161e49 extends _0x4b72f8[_0x39d5f2(0x1a8)]{async[_0x39d5f2(0x196)](){const _0x51e315=_0x39d5f2,_0x4e4a9a=this[_0x51e315(0x1b8)][_0x51e315(0x1a4)](_0x30ef12[_0x51e315(0x1b0)]),_0x226b39=this[_0x51e315(0x1bb)](0x0,0x0,this[_0x51e315(0x1a2)]()+0x1,this[_0x51e315(0x1ac)]()+0x1)[_0x51e315(0x1ad)]();return await _0x4e4a9a[_0x51e315(0x1aa)](_0x226b39);}async[_0x39d5f2(0x1b2)](){const _0x596007=_0x39d5f2;return(await this[_0x596007(0x196)]())[_0x596007(0x195)](_0x30ef12[_0x596007(0x1a5)]);}}_0x4b72f8[_0x39d5f2(0x1a8)]['extend'](_0x161e49);class _0x5e3a1f extends _0x4b72f8[_0x39d5f2(0x18f)]{async['getFormulaUsages'](){const _0x22a5eb=_0x39d5f2,_0x55d4bd=this[_0x22a5eb(0x1b8)][_0x22a5eb(0x1a4)](_0x30ef12[_0x22a5eb(0x1b0)]),_0x562206=(({startRow:_0x3e1b9c,endRow:_0x3214c2,startColumn:_0x374fe6,endColumn:_0x3656b8})=>{const _0x5ebdb3=_0x22a5eb,_0x41729c=[];for(let _0x2b2a02=_0x3e1b9c;_0x2b2a02<=_0x3214c2;_0x2b2a02++){const _0xbfc334=[];for(let _0x5d4229=_0x374fe6;_0x5d4229<=_0x3656b8;_0x5d4229++)_0xbfc334[_0x5ebdb3(0x1bc)](this['_worksheet'][_0x5ebdb3(0x197)](_0x2b2a02,_0x5d4229));_0x41729c[_0x5ebdb3(0x1bc)](_0xbfc334);}return _0x41729c;})({'startRow':0x0,'endRow':this['_worksheet'][_0x22a5eb(0x1a2)](),'startColumn':0x0,'endColumn':this[_0x22a5eb(0x1a0)][_0x22a5eb(0x1ac)]()}),_0x15b03e=await _0x55d4bd[_0x22a5eb(0x1aa)](_0x562206),_0x1f26a1=this[_0x22a5eb(0x1bb)](),_0xc9c3c8=[];for(let _0x4786a4=0x0;_0x4786a4<_0x15b03e[_0x22a5eb(0x192)];_0x4786a4++){const _0x4b647f=_0x15b03e[_0x4786a4],_0x85235e=_0x4b647f[_0x22a5eb(0x1a6)],_0x44f5ff=[];for(let _0x3a06d2=0x0;_0x3a06d2<_0x85235e['length'];_0x3a06d2++){const _0x489d2f=_0x85235e[_0x3a06d2],_0x543dee=_0x1c4048['getIntersectRange'](_0x489d2f,_0x1f26a1);_0x543dee&&_0x44f5ff[_0x22a5eb(0x1bc)](_0x543dee);}if(_0x44f5ff[_0x22a5eb(0x192)]>0x0){_0x4b647f[_0x22a5eb(0x1a6)]=_0x44f5ff;const _0x20978f=_0x44f5ff[0x0],_0x45e222=_0x20978f[_0x22a5eb(0x199)]-_0x1f26a1[_0x22a5eb(0x199)],_0x24ee18=_0x20978f[_0x22a5eb(0x193)]-_0x1f26a1[_0x22a5eb(0x193)];_0x4b647f[_0x22a5eb(0x1a3)]=await _0x55d4bd['moveFormulaRefOffset'](_0x4b647f[_0x22a5eb(0x1a3)],_0x45e222,_0x24ee18),_0xc9c3c8[_0x22a5eb(0x1bc)](_0x4b647f);}}return _0xc9c3c8;}async[_0x39d5f2(0x1b2)](){const _0x2de428=_0x39d5f2;return(await this['getFormulaUsages']())['map'](_0x30ef12[_0x2de428(0x1a5)]);}}_0x4b72f8[_0x39d5f2(0x18f)]['extend'](_0x5e3a1f);}));function _0x24f8(_0x6a13c2,_0x513956){_0x6a13c2=_0x6a13c2-0x18c;const _0x3019cf=_0x3019();let _0x24f8ca=_0x3019cf[_0x6a13c2];return _0x24f8ca;}function _0x3019(){const _0x40a70c=['map','getFormulaUsages','getCellRaw','@univerjs/core/facade','startRow','@univerjs/sheets-data-validation/facade','1378945KHPkYa','FWorkbook','UniverSheetsDataValidationFacade','getAllFormulaError','@univerjs/sheets/facade','_worksheet','amd','getMaxRows','formula','get','toA1','filledRanges','2254676CnLohp','FWorksheet','1007366qtFihi','getAllFormulaUsages','3KuhjsF','getMaxColumns','getCellDataGrid','UniverCore','UniverCoreFacade','IFormulaUsageAnalyzer','@univerjs/sheets-formula/facade','getFormulaUsagesAsA1','UniverProSheetsMcp','6944gwJPNv','extend','getActiveWorkbook','@univerjs-pro/sheets-mcp','_injector','6391736XfwwSg','FUniver','getRange','push','2130DGYOqH','@univerjs/core','getAllDataValidationErrorAsync','255690eaLgQl','7365996bnWIXX','function','FRange','UniverSheetsFormulaFacade','object','length','startColumn','getLintErrors'];_0x3019=function(){return _0x40a70c;};return _0x3019();}