@univerjs-pro/sheets-mcp 0.12.3-experimental.20251205-8c9a6bf → 0.12.3-nightly.202512060617

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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5bf296=_0x300a;(function(_0x2f52e9,_0x406c80){const _0x4ead82=_0x300a,_0x47aba7=_0x2f52e9();while(!![]){try{const _0x5eebf=parseInt(_0x4ead82(0x11e))/0x1*(-parseInt(_0x4ead82(0x10d))/0x2)+parseInt(_0x4ead82(0x119))/0x3+parseInt(_0x4ead82(0x101))/0x4+-parseInt(_0x4ead82(0x100))/0x5*(parseInt(_0x4ead82(0x10f))/0x6)+-parseInt(_0x4ead82(0x10b))/0x7*(-parseInt(_0x4ead82(0x106))/0x8)+parseInt(_0x4ead82(0x115))/0x9+-parseInt(_0x4ead82(0x10a))/0xa*(parseInt(_0x4ead82(0x114))/0xb);if(_0x5eebf===_0x406c80)break;else _0x47aba7['push'](_0x47aba7['shift']());}catch(_0x13d0e9){_0x47aba7['push'](_0x47aba7['shift']());}}}(_0x8562,0x596b7));import{FUniver as _0x1857c7}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x136e1c,FWorksheet as _0x34d587,FRange as _0x19693f}from'@univerjs/sheets/facade';function _0x300a(_0x4433eb,_0x128605){_0x4433eb=_0x4433eb-0x100;const _0x8562b1=_0x8562();let _0x300a9b=_0x8562b1[_0x4433eb];return _0x300a9b;}import{IFormulaUsageAnalyzer as _0x9a2964,toA1 as _0x60a8b6}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x252f61}from'@univerjs/core';class C extends _0x1857c7{async[_0x5bf296(0x118)](){const _0x285770=_0x5bf296;return this[_0x285770(0x117)]()[_0x285770(0x118)]();}}_0x1857c7['extend'](C);class U extends _0x136e1c{async[_0x5bf296(0x118)](){const _0x29717a=_0x5bf296,_0x3d88e3=this[_0x29717a(0x103)](),_0x283916=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x3d88e3,'dataValidationErrors':_0x283916};}}function _0x8562(){const _0x404e17=['getAllFormulaError','push','formula','5282360gWJYGn','getCellRaw','getFormulaUsagesAsA1','extend','2172400TNfqCG','7ZnzVVG','_injector','106MeHEMw','startRow','8016QaBMHE','get','getMaxColumns','getRange','getAllFormulaUsages','22NTQWTq','1403226GqHSpr','startColumn','getActiveWorkbook','getLintErrors','887778YVFuTM','getMaxRows','_worksheet','getCellDataGrid','getFormulaUsages','9189RvVnlT','160crBErf','873508YBfYPI','filledRanges'];_0x8562=function(){return _0x404e17;};return _0x8562();}_0x136e1c[_0x5bf296(0x109)](U);class k extends _0x34d587{async[_0x5bf296(0x11d)](){const _0x40c57d=_0x5bf296,_0x190092=this['_injector'][_0x40c57d(0x110)](_0x9a2964),_0x5ad674=this[_0x40c57d(0x112)](0x0,0x0,this[_0x40c57d(0x11a)]()+0x1,this[_0x40c57d(0x111)]()+0x1)[_0x40c57d(0x11c)]();return await _0x190092['getAllFormulaUsages'](_0x5ad674);}async[_0x5bf296(0x108)](){const _0x161881=_0x5bf296;return(await this[_0x161881(0x11d)]())['map'](_0x60a8b6);}}_0x34d587[_0x5bf296(0x109)](k);class y extends _0x19693f{async['getFormulaUsages'](){const _0x25b85a=_0x5bf296,_0x117e3d=this[_0x25b85a(0x10c)]['get'](_0x9a2964),_0x5c5e26=(({startRow:_0x512707,endRow:_0x545149,startColumn:_0x419da3,endColumn:_0x3859d9})=>{const _0x1ec5e4=_0x25b85a,_0x46c50c=[];for(let _0x1487c5=_0x512707;_0x1487c5<=_0x545149;_0x1487c5++){const _0x36f8e3=[];for(let _0x402c6f=_0x419da3;_0x402c6f<=_0x3859d9;_0x402c6f++)_0x36f8e3[_0x1ec5e4(0x104)](this[_0x1ec5e4(0x11b)][_0x1ec5e4(0x107)](_0x1487c5,_0x402c6f));_0x46c50c[_0x1ec5e4(0x104)](_0x36f8e3);}return _0x46c50c;})({'startRow':0x0,'endRow':this[_0x25b85a(0x11b)][_0x25b85a(0x11a)](),'startColumn':0x0,'endColumn':this[_0x25b85a(0x11b)]['getMaxColumns']()}),_0x2c743a=await _0x117e3d[_0x25b85a(0x113)](_0x5c5e26),_0x367951=this['getRange'](),_0x122f45=[];for(let _0x48a4c9=0x0;_0x48a4c9<_0x2c743a['length'];_0x48a4c9++){const _0x210edf=_0x2c743a[_0x48a4c9],_0x399519=_0x210edf['filledRanges'],_0x1728fd=[];for(let _0x366898=0x0;_0x366898<_0x399519['length'];_0x366898++){const _0x5ef8b6=_0x399519[_0x366898],_0x3050e9=_0x252f61(_0x5ef8b6,_0x367951);_0x3050e9&&_0x1728fd['push'](_0x3050e9);}if(_0x1728fd['length']>0x0){_0x210edf[_0x25b85a(0x102)]=_0x1728fd;const _0x24b1ff=_0x1728fd[0x0],_0x414ba9=_0x24b1ff[_0x25b85a(0x10e)]-_0x367951['startRow'],_0x23cc96=_0x24b1ff[_0x25b85a(0x116)]-_0x367951[_0x25b85a(0x116)];_0x210edf[_0x25b85a(0x105)]=await _0x117e3d['moveFormulaRefOffset'](_0x210edf[_0x25b85a(0x105)],_0x414ba9,_0x23cc96),_0x122f45[_0x25b85a(0x104)](_0x210edf);}}return _0x122f45;}async['getFormulaUsagesAsA1'](){const _0x5e8a0f=_0x5bf296;return(await this[_0x5e8a0f(0x11d)]())['map'](_0x60a8b6);}}_0x19693f[_0x5bf296(0x109)](y);
1
+ const _0x39a5d0=_0xfcc2;(function(_0x201a09,_0x63f2ad){const _0x586ee3=_0xfcc2,_0x3a176f=_0x201a09();while(!![]){try{const _0x903866=parseInt(_0x586ee3(0x1f9))/0x1+parseInt(_0x586ee3(0x20a))/0x2+parseInt(_0x586ee3(0x202))/0x3*(parseInt(_0x586ee3(0x20e))/0x4)+parseInt(_0x586ee3(0x209))/0x5*(-parseInt(_0x586ee3(0x1fd))/0x6)+parseInt(_0x586ee3(0x201))/0x7*(-parseInt(_0x586ee3(0x211))/0x8)+-parseInt(_0x586ee3(0x1f5))/0x9+parseInt(_0x586ee3(0x200))/0xa;if(_0x903866===_0x63f2ad)break;else _0x3a176f['push'](_0x3a176f['shift']());}catch(_0x1be032){_0x3a176f['push'](_0x3a176f['shift']());}}}(_0x4dbb,0xcfb07));import{FUniver as _0x4f5c75}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x5b7ed3,FWorksheet as _0x417bee,FRange as _0x299018}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x228f13,toA1 as _0x4d0b0c}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x3c749f}from'@univerjs/core';class C extends _0x4f5c75{async['getLintErrors'](){const _0x497f3b=_0xfcc2;return this[_0x497f3b(0x203)]()[_0x497f3b(0x208)]();}}_0x4f5c75[_0x39a5d0(0x213)](C);function _0xfcc2(_0x1f81c4,_0x4e23c7){_0x1f81c4=_0x1f81c4-0x1f4;const _0x4dbb82=_0x4dbb();let _0xfcc218=_0x4dbb82[_0x1f81c4];return _0xfcc218;}class U extends _0x5b7ed3{async[_0x39a5d0(0x208)](){const _0x2acd8f=_0x39a5d0,_0x23ec84=this[_0x2acd8f(0x1f7)](),_0x4ec1ad=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x23ec84,'dataValidationErrors':_0x4ec1ad};}}_0x5b7ed3['extend'](U);class k extends _0x417bee{async[_0x39a5d0(0x1fb)](){const _0xc20dd9=_0x39a5d0,_0x27f89d=this[_0xc20dd9(0x205)][_0xc20dd9(0x1fe)](_0x228f13),_0x2940a9=this[_0xc20dd9(0x210)](0x0,0x0,this[_0xc20dd9(0x1ff)]()+0x1,this[_0xc20dd9(0x20d)]()+0x1)[_0xc20dd9(0x1f4)]();return await _0x27f89d[_0xc20dd9(0x204)](_0x2940a9);}async['getFormulaUsagesAsA1'](){const _0x1d3b7e=_0x39a5d0;return(await this[_0x1d3b7e(0x1fb)]())[_0x1d3b7e(0x206)](_0x4d0b0c);}}_0x417bee[_0x39a5d0(0x213)](k);class y extends _0x299018{async[_0x39a5d0(0x1fb)](){const _0x1e1de6=_0x39a5d0,_0x21e045=this[_0x1e1de6(0x205)][_0x1e1de6(0x1fe)](_0x228f13),_0x5bd7c8=(({startRow:_0xab25ca,endRow:_0x228cdb,startColumn:_0x1e7ced,endColumn:_0xf9ffb4})=>{const _0x1d2ebf=_0x1e1de6,_0x3bb637=[];for(let _0x1ff41d=_0xab25ca;_0x1ff41d<=_0x228cdb;_0x1ff41d++){const _0x226a5=[];for(let _0x58f50f=_0x1e7ced;_0x58f50f<=_0xf9ffb4;_0x58f50f++)_0x226a5['push'](this[_0x1d2ebf(0x20b)][_0x1d2ebf(0x1fc)](_0x1ff41d,_0x58f50f));_0x3bb637[_0x1d2ebf(0x20c)](_0x226a5);}return _0x3bb637;})({'startRow':0x0,'endRow':this[_0x1e1de6(0x20b)][_0x1e1de6(0x1ff)](),'startColumn':0x0,'endColumn':this[_0x1e1de6(0x20b)][_0x1e1de6(0x20d)]()}),_0x50a824=await _0x21e045[_0x1e1de6(0x204)](_0x5bd7c8),_0x5d6245=this[_0x1e1de6(0x210)](),_0xcb81d6=[];for(let _0x53457c=0x0;_0x53457c<_0x50a824[_0x1e1de6(0x20f)];_0x53457c++){const _0xd3a60d=_0x50a824[_0x53457c],_0x2c5714=_0xd3a60d[_0x1e1de6(0x1f8)],_0x3d7c13=[];for(let _0x4822a3=0x0;_0x4822a3<_0x2c5714['length'];_0x4822a3++){const _0x283c23=_0x2c5714[_0x4822a3],_0x3c5d8a=_0x3c749f(_0x283c23,_0x5d6245);_0x3c5d8a&&_0x3d7c13[_0x1e1de6(0x20c)](_0x3c5d8a);}if(_0x3d7c13[_0x1e1de6(0x20f)]>0x0){_0xd3a60d[_0x1e1de6(0x1f8)]=_0x3d7c13;const _0x186d31=_0x3d7c13[0x0],_0x312624=_0x186d31['startRow']-_0x5d6245[_0x1e1de6(0x207)],_0x22e119=_0x186d31['startColumn']-_0x5d6245[_0x1e1de6(0x214)];_0xd3a60d['formula']=await _0x21e045[_0x1e1de6(0x1fa)](_0xd3a60d[_0x1e1de6(0x212)],_0x312624,_0x22e119),_0xcb81d6[_0x1e1de6(0x20c)](_0xd3a60d);}}return _0xcb81d6;}async[_0x39a5d0(0x1f6)](){const _0x48b7a6=_0x39a5d0;return(await this[_0x48b7a6(0x1fb)]())['map'](_0x4d0b0c);}}function _0x4dbb(){const _0x55ad48=['getActiveWorkbook','getAllFormulaUsages','_injector','map','startRow','getLintErrors','5179485DDJwGI','3036850UCHZhj','_worksheet','push','getMaxColumns','3220nVOJGu','length','getRange','8ElGKNX','formula','extend','startColumn','getCellDataGrid','13735980StLvhI','getFormulaUsagesAsA1','getAllFormulaError','filledRanges','518021bYSusV','moveFormulaRefOffset','getFormulaUsages','getCellRaw','6LOQbbY','get','getMaxRows','19444580UidnoE','8309959SSuXxV','2307YVCDjX'];_0x4dbb=function(){return _0x55ad48;};return _0x4dbb();}_0x299018[_0x39a5d0(0x213)](y);