@univerjs-pro/sheets-mcp 0.11.0-nightly.202511151013 → 0.12.0

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 _0x42919a=_0x475d;(function(_0x511d52,_0x1d0471){const _0x5cbaff=_0x475d,_0x33a94b=_0x511d52();while(!![]){try{const _0x49fd13=parseInt(_0x5cbaff(0xc5))/0x1+parseInt(_0x5cbaff(0xcb))/0x2*(parseInt(_0x5cbaff(0xdf))/0x3)+-parseInt(_0x5cbaff(0xd4))/0x4*(parseInt(_0x5cbaff(0xdb))/0x5)+parseInt(_0x5cbaff(0xd6))/0x6*(parseInt(_0x5cbaff(0xd3))/0x7)+-parseInt(_0x5cbaff(0xda))/0x8*(-parseInt(_0x5cbaff(0xd8))/0x9)+-parseInt(_0x5cbaff(0xcd))/0xa*(parseInt(_0x5cbaff(0xbd))/0xb)+-parseInt(_0x5cbaff(0xdd))/0xc;if(_0x49fd13===_0x1d0471)break;else _0x33a94b['push'](_0x33a94b['shift']());}catch(_0x4e60fb){_0x33a94b['push'](_0x33a94b['shift']());}}}(_0x16af,0xe950d));import{FUniver as _0x32c078}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';function _0x475d(_0x1901bd,_0x352fba){const _0x16af94=_0x16af();return _0x475d=function(_0x475d9e,_0xd714c8){_0x475d9e=_0x475d9e-0xbd;let _0x533b94=_0x16af94[_0x475d9e];return _0x533b94;},_0x475d(_0x1901bd,_0x352fba);}import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x1ea1aa,FWorksheet as _0x33ae4d,FRange as _0x1c76c6}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x4aff4e,toA1 as _0x50580c}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0xa7ce1f}from'@univerjs/core';class C extends _0x32c078{async[_0x42919a(0xce)](){const _0x53e115=_0x42919a;return this[_0x53e115(0xe0)]()[_0x53e115(0xce)]();}}_0x32c078[_0x42919a(0xc9)](C);class U extends _0x1ea1aa{async[_0x42919a(0xce)](){const _0x245cb2=_0x42919a,_0xfaf5b=this[_0x245cb2(0xc8)](),_0x342d1d=await this[_0x245cb2(0xdc)]();return{'formulaErrors':_0xfaf5b,'dataValidationErrors':_0x342d1d};}}_0x1ea1aa[_0x42919a(0xc9)](U);class k extends _0x33ae4d{async['getFormulaUsages'](){const _0xd6b9f2=_0x42919a,_0x3575d5=this['_injector'][_0xd6b9f2(0xc1)](_0x4aff4e),_0x35bc43=this[_0xd6b9f2(0xde)](0x0,0x0,this['getMaxRows']()+0x1,this[_0xd6b9f2(0xbf)]()+0x1)[_0xd6b9f2(0xd9)]();return await _0x3575d5[_0xd6b9f2(0xd0)](_0x35bc43);}async['getFormulaUsagesAsA1'](){const _0xa26ab3=_0x42919a;return(await this[_0xa26ab3(0xca)]())[_0xa26ab3(0xbe)](_0x50580c);}}function _0x16af(){const _0x1490be=['moveFormulaRefOffset','7ETcbtP','8vhTniM','length','4270206dYBgHJ','push','27549JhMMtM','getCellDataGrid','352TSbIzv','1630190FjAWgM','getAllDataValidationErrorAsync','19347708ricoYM','getRange','29682DqpGTO','getActiveWorkbook','66BuvkvX','map','getMaxColumns','getMaxRows','get','startColumn','formula','filledRanges','1006573HmZQqM','_worksheet','getCellRaw','getAllFormulaError','extend','getFormulaUsages','330XERyRc','_injector','442370EvBHFe','getLintErrors','getFormulaUsagesAsA1','getAllFormulaUsages','startRow'];_0x16af=function(){return _0x1490be;};return _0x16af();}_0x33ae4d['extend'](k);class y extends _0x1c76c6{async[_0x42919a(0xca)](){const _0x19532e=_0x42919a,_0x1992dc=this[_0x19532e(0xcc)][_0x19532e(0xc1)](_0x4aff4e),_0x1adbe9=(({startRow:_0x302153,endRow:_0xe7598,startColumn:_0xa71875,endColumn:_0x269d40})=>{const _0x41698d=_0x19532e,_0x7d4436=[];for(let _0x23c6fd=_0x302153;_0x23c6fd<=_0xe7598;_0x23c6fd++){const _0x3269f8=[];for(let _0x1659d6=_0xa71875;_0x1659d6<=_0x269d40;_0x1659d6++)_0x3269f8['push'](this['_worksheet'][_0x41698d(0xc7)](_0x23c6fd,_0x1659d6));_0x7d4436['push'](_0x3269f8);}return _0x7d4436;})({'startRow':0x0,'endRow':this[_0x19532e(0xc6)][_0x19532e(0xc0)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x19532e(0xbf)]()}),_0x2f065a=await _0x1992dc[_0x19532e(0xd0)](_0x1adbe9),_0x2c1a15=this[_0x19532e(0xde)](),_0x1b6436=[];for(let _0x4b2093=0x0;_0x4b2093<_0x2f065a['length'];_0x4b2093++){const _0x4d798f=_0x2f065a[_0x4b2093],_0x4364ee=_0x4d798f['filledRanges'],_0x1e1a13=[];for(let _0x18fbd6=0x0;_0x18fbd6<_0x4364ee['length'];_0x18fbd6++){const _0x55e26b=_0x4364ee[_0x18fbd6],_0x4ac6c1=_0xa7ce1f(_0x55e26b,_0x2c1a15);_0x4ac6c1&&_0x1e1a13[_0x19532e(0xd7)](_0x4ac6c1);}if(_0x1e1a13[_0x19532e(0xd5)]>0x0){_0x4d798f[_0x19532e(0xc4)]=_0x1e1a13;const _0x3776f1=_0x1e1a13[0x0],_0x35248e=_0x3776f1['startRow']-_0x2c1a15[_0x19532e(0xd1)],_0x4048e9=_0x3776f1['startColumn']-_0x2c1a15[_0x19532e(0xc2)];_0x4d798f[_0x19532e(0xc3)]=await _0x1992dc[_0x19532e(0xd2)](_0x4d798f[_0x19532e(0xc3)],_0x35248e,_0x4048e9),_0x1b6436[_0x19532e(0xd7)](_0x4d798f);}}return _0x1b6436;}async[_0x42919a(0xcf)](){const _0x137ddf=_0x42919a;return(await this[_0x137ddf(0xca)]())[_0x137ddf(0xbe)](_0x50580c);}}_0x1c76c6['extend'](y);
1
+ const _0x12b5ac=_0x1cf0;(function(_0x357a41,_0x2a2791){const _0x291671=_0x1cf0,_0x2974c9=_0x357a41();while(!![]){try{const _0x113f91=-parseInt(_0x291671(0x164))/0x1+-parseInt(_0x291671(0x16a))/0x2*(parseInt(_0x291671(0x171))/0x3)+-parseInt(_0x291671(0x174))/0x4+parseInt(_0x291671(0x177))/0x5+parseInt(_0x291671(0x179))/0x6*(parseInt(_0x291671(0x167))/0x7)+parseInt(_0x291671(0x175))/0x8+-parseInt(_0x291671(0x165))/0x9;if(_0x113f91===_0x2a2791)break;else _0x2974c9['push'](_0x2974c9['shift']());}catch(_0x3a2faa){_0x2974c9['push'](_0x2974c9['shift']());}}}(_0x1fe0,0xeac7a));import{FUniver as _0x169a43}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x35a73a,FWorksheet as _0x5769c1,FRange as _0x376835}from'@univerjs/sheets/facade';function _0x1cf0(_0x4056de,_0x3b686e){const _0x1fe05b=_0x1fe0();return _0x1cf0=function(_0x1cf0a8,_0x47b309){_0x1cf0a8=_0x1cf0a8-0x163;let _0x5a967c=_0x1fe05b[_0x1cf0a8];return _0x5a967c;},_0x1cf0(_0x4056de,_0x3b686e);}import{IFormulaUsageAnalyzer as _0x28b41f,toA1 as _0x3f7c42}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x2a7ca3}from'@univerjs/core';class C extends _0x169a43{async[_0x12b5ac(0x173)](){const _0x5f1787=_0x12b5ac;return this[_0x5f1787(0x16e)]()['getLintErrors']();}}_0x169a43[_0x12b5ac(0x16c)](C);class U extends _0x35a73a{async[_0x12b5ac(0x173)](){const _0x18e6bd=_0x12b5ac,_0x35d1f3=this[_0x18e6bd(0x170)](),_0x16c3e2=await this[_0x18e6bd(0x16d)]();return{'formulaErrors':_0x35d1f3,'dataValidationErrors':_0x16c3e2};}}_0x35a73a['extend'](U);class k extends _0x5769c1{async[_0x12b5ac(0x166)](){const _0x3ec1d9=_0x12b5ac,_0x5e59d4=this[_0x3ec1d9(0x163)]['get'](_0x28b41f),_0xe0e70f=this[_0x3ec1d9(0x17b)](0x0,0x0,this[_0x3ec1d9(0x182)]()+0x1,this[_0x3ec1d9(0x169)]()+0x1)[_0x3ec1d9(0x178)]();return await _0x5e59d4[_0x3ec1d9(0x183)](_0xe0e70f);}async[_0x12b5ac(0x17d)](){const _0xd70c39=_0x12b5ac;return(await this['getFormulaUsages']())[_0xd70c39(0x17a)](_0x3f7c42);}}function _0x1fe0(){const _0x31ad75=['formula','getAllFormulaError','43107Agvxqf','filledRanges','getLintErrors','379600SaFBaT','11062880ysDCNb','_worksheet','2671805iuLzDV','getCellDataGrid','1662648BSRDgZ','map','getRange','startColumn','getFormulaUsagesAsA1','getCellRaw','startRow','push','moveFormulaRefOffset','getMaxRows','getAllFormulaUsages','_injector','143696LfnVDP','11311326RgbpGm','getFormulaUsages','14VkZjtt','length','getMaxColumns','2JdtkKD','get','extend','getAllDataValidationErrorAsync','getActiveWorkbook'];_0x1fe0=function(){return _0x31ad75;};return _0x1fe0();}_0x5769c1[_0x12b5ac(0x16c)](k);class y extends _0x376835{async['getFormulaUsages'](){const _0xd95ff=_0x12b5ac,_0x34de4a=this['_injector'][_0xd95ff(0x16b)](_0x28b41f),_0x1a5e22=(({startRow:_0x230528,endRow:_0x2d04ba,startColumn:_0x25c441,endColumn:_0x450528})=>{const _0x1083c8=_0xd95ff,_0x37aec6=[];for(let _0x54f795=_0x230528;_0x54f795<=_0x2d04ba;_0x54f795++){const _0x390ae2=[];for(let _0x124c6d=_0x25c441;_0x124c6d<=_0x450528;_0x124c6d++)_0x390ae2[_0x1083c8(0x180)](this[_0x1083c8(0x176)][_0x1083c8(0x17e)](_0x54f795,_0x124c6d));_0x37aec6[_0x1083c8(0x180)](_0x390ae2);}return _0x37aec6;})({'startRow':0x0,'endRow':this[_0xd95ff(0x176)][_0xd95ff(0x182)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0xd95ff(0x169)]()}),_0x1e05a6=await _0x34de4a['getAllFormulaUsages'](_0x1a5e22),_0x4f62b9=this[_0xd95ff(0x17b)](),_0x553b58=[];for(let _0x45ec6d=0x0;_0x45ec6d<_0x1e05a6[_0xd95ff(0x168)];_0x45ec6d++){const _0x25bcb2=_0x1e05a6[_0x45ec6d],_0x24b7e6=_0x25bcb2['filledRanges'],_0x14a10f=[];for(let _0x5c2a2f=0x0;_0x5c2a2f<_0x24b7e6[_0xd95ff(0x168)];_0x5c2a2f++){const _0x479df0=_0x24b7e6[_0x5c2a2f],_0x4ed564=_0x2a7ca3(_0x479df0,_0x4f62b9);_0x4ed564&&_0x14a10f[_0xd95ff(0x180)](_0x4ed564);}if(_0x14a10f['length']>0x0){_0x25bcb2[_0xd95ff(0x172)]=_0x14a10f;const _0x2ac648=_0x14a10f[0x0],_0x515ef9=_0x2ac648[_0xd95ff(0x17f)]-_0x4f62b9[_0xd95ff(0x17f)],_0x32e8d7=_0x2ac648[_0xd95ff(0x17c)]-_0x4f62b9[_0xd95ff(0x17c)];_0x25bcb2[_0xd95ff(0x16f)]=await _0x34de4a[_0xd95ff(0x181)](_0x25bcb2['formula'],_0x515ef9,_0x32e8d7),_0x553b58['push'](_0x25bcb2);}}return _0x553b58;}async['getFormulaUsagesAsA1'](){const _0x3080f4=_0x12b5ac;return(await this[_0x3080f4(0x166)]())[_0x3080f4(0x17a)](_0x3f7c42);}}_0x376835[_0x12b5ac(0x16c)](y);