@univerjs-pro/sheets-mcp 0.12.4-experimental.20251208-c4b8a44 → 0.12.4-experimental.20251210-d708bff

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x34eb8d=_0x5513;(function(_0x328eb1,_0xa3a6f){const _0x21ae31=_0x5513,_0x53a1bf=_0x328eb1();while(!![]){try{const _0x11315d=-parseInt(_0x21ae31(0x1e1))/0x1*(-parseInt(_0x21ae31(0x1ed))/0x2)+-parseInt(_0x21ae31(0x1ea))/0x3+parseInt(_0x21ae31(0x1d8))/0x4*(-parseInt(_0x21ae31(0x1f5))/0x5)+parseInt(_0x21ae31(0x1d9))/0x6+parseInt(_0x21ae31(0x1df))/0x7+-parseInt(_0x21ae31(0x1e0))/0x8*(-parseInt(_0x21ae31(0x1f8))/0x9)+parseInt(_0x21ae31(0x1f1))/0xa;if(_0x11315d===_0xa3a6f)break;else _0x53a1bf['push'](_0x53a1bf['shift']());}catch(_0x3fb001){_0x53a1bf['push'](_0x53a1bf['shift']());}}}(_0x5374,0xb52c6));const d=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const o=require('@univerjs/sheets/facade'),c=require('@univerjs-pro/sheets-mcp'),w=require('@univerjs/core');class A extends d[_0x34eb8d(0x1fb)]{async[_0x34eb8d(0x1fa)](){const _0x47a03b=_0x34eb8d;return this[_0x47a03b(0x1e3)]()[_0x47a03b(0x1fa)]();}}d['FUniver']['extend'](A);function _0x5513(_0x1f2fb7,_0x5ac4d6){_0x1f2fb7=_0x1f2fb7-0x1d5;const _0x537408=_0x5374();let _0x551301=_0x537408[_0x1f2fb7];return _0x551301;}class x extends o[_0x34eb8d(0x1e5)]{async[_0x34eb8d(0x1fa)](){const _0x4a7fc3=_0x34eb8d,_0x29f0df=this['getAllFormulaError'](),_0x35f780=await this[_0x4a7fc3(0x1f2)]();return{'formulaErrors':_0x29f0df,'dataValidationErrors':_0x35f780};}}o[_0x34eb8d(0x1e5)][_0x34eb8d(0x1ec)](x);class k extends o[_0x34eb8d(0x1de)]{async['getFormulaUsages'](){const _0x4ee741=_0x34eb8d,_0x39f57d=this[_0x4ee741(0x1e6)][_0x4ee741(0x1e4)](c[_0x4ee741(0x1d6)]),_0x2ff475=this['getRange'](0x0,0x0,this[_0x4ee741(0x1d7)]()+0x1,this[_0x4ee741(0x1f3)]()+0x1)[_0x4ee741(0x1dd)]();return await _0x39f57d[_0x4ee741(0x1ef)](_0x2ff475);}async[_0x34eb8d(0x1f9)](){const _0x18371b=_0x34eb8d;return(await this['getFormulaUsages']())[_0x18371b(0x1f4)](c[_0x18371b(0x1ee)]);}}o[_0x34eb8d(0x1de)][_0x34eb8d(0x1ec)](k);function _0x5374(){const _0x591b15=['startColumn','getCellRaw','_worksheet','getCellDataGrid','FWorksheet','2208262xAfNVM','105816wTJQrO','22llyIFm','getFormulaUsages','getActiveWorkbook','get','FWorkbook','_injector','moveFormulaRefOffset','length','formula','3296871aGRZZR','push','extend','99044SZQlsN','toA1','getAllFormulaUsages','startRow','2238510NMPEtA','getAllDataValidationErrorAsync','getMaxColumns','map','40VmRLQN','getIntersectRange','getRange','9nYACWO','getFormulaUsagesAsA1','getLintErrors','FUniver','filledRanges','IFormulaUsageAnalyzer','getMaxRows','368840VcOAql','5620170UwIsZR'];_0x5374=function(){return _0x591b15;};return _0x5374();}class U extends o['FRange']{async['getFormulaUsages'](){const _0x8239bc=_0x34eb8d,_0x27f4cf=this[_0x8239bc(0x1e6)][_0x8239bc(0x1e4)](c[_0x8239bc(0x1d6)]),_0x4d6b68=(({startRow:_0x3b64a9,endRow:_0x43612f,startColumn:_0x2b20b0,endColumn:_0x185832})=>{const _0x49a18e=_0x8239bc,_0x5cc8ed=[];for(let _0x154ef4=_0x3b64a9;_0x154ef4<=_0x43612f;_0x154ef4++){const _0x33404e=[];for(let _0x4892c9=_0x2b20b0;_0x4892c9<=_0x185832;_0x4892c9++)_0x33404e[_0x49a18e(0x1eb)](this[_0x49a18e(0x1dc)][_0x49a18e(0x1db)](_0x154ef4,_0x4892c9));_0x5cc8ed[_0x49a18e(0x1eb)](_0x33404e);}return _0x5cc8ed;})({'startRow':0x0,'endRow':this['_worksheet']['getMaxRows'](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x8239bc(0x1f3)]()}),_0x2956b7=await _0x27f4cf['getAllFormulaUsages'](_0x4d6b68),_0x4e6c83=this[_0x8239bc(0x1f7)](),_0x22658b=[];for(let _0x15185d=0x0;_0x15185d<_0x2956b7[_0x8239bc(0x1e8)];_0x15185d++){const _0x52ae48=_0x2956b7[_0x15185d],_0x413576=_0x52ae48[_0x8239bc(0x1d5)],_0x1ae465=[];for(let _0x346f14=0x0;_0x346f14<_0x413576[_0x8239bc(0x1e8)];_0x346f14++){const _0x1a94d2=_0x413576[_0x346f14],_0x48b7ea=w[_0x8239bc(0x1f6)](_0x1a94d2,_0x4e6c83);_0x48b7ea&&_0x1ae465['push'](_0x48b7ea);}if(_0x1ae465[_0x8239bc(0x1e8)]>0x0){_0x52ae48[_0x8239bc(0x1d5)]=_0x1ae465;const _0x3130eb=_0x1ae465[0x0],_0x579a39=_0x3130eb[_0x8239bc(0x1f0)]-_0x4e6c83['startRow'],_0x5e740b=_0x3130eb[_0x8239bc(0x1da)]-_0x4e6c83[_0x8239bc(0x1da)];_0x52ae48[_0x8239bc(0x1e9)]=await _0x27f4cf[_0x8239bc(0x1e7)](_0x52ae48[_0x8239bc(0x1e9)],_0x579a39,_0x5e740b),_0x22658b['push'](_0x52ae48);}}return _0x22658b;}async[_0x34eb8d(0x1f9)](){const _0x21fa2f=_0x34eb8d;return(await this[_0x21fa2f(0x1e2)]())[_0x21fa2f(0x1f4)](c['toA1']);}}o['FRange'][_0x34eb8d(0x1ec)](U);
1
+ 'use strict';const _0x3da98c=_0x1044;(function(_0xfe72b7,_0x16f193){const _0x77eeb=_0x1044,_0x14b16d=_0xfe72b7();while(!![]){try{const _0x7b066f=parseInt(_0x77eeb(0x1da))/0x1+parseInt(_0x77eeb(0x1ea))/0x2*(parseInt(_0x77eeb(0x1d5))/0x3)+-parseInt(_0x77eeb(0x1ce))/0x4*(parseInt(_0x77eeb(0x1e5))/0x5)+-parseInt(_0x77eeb(0x1d3))/0x6+-parseInt(_0x77eeb(0x1dd))/0x7+-parseInt(_0x77eeb(0x1e9))/0x8*(parseInt(_0x77eeb(0x1e0))/0x9)+-parseInt(_0x77eeb(0x1d6))/0xa*(-parseInt(_0x77eeb(0x1de))/0xb);if(_0x7b066f===_0x16f193)break;else _0x14b16d['push'](_0x14b16d['shift']());}catch(_0x394eda){_0x14b16d['push'](_0x14b16d['shift']());}}}(_0x41e9,0xc0bb1));const d=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');function _0x1044(_0xafe6a9,_0x3cbd38){_0xafe6a9=_0xafe6a9-0x1ca;const _0x41e9fd=_0x41e9();let _0x104479=_0x41e9fd[_0xafe6a9];return _0x104479;}const o=require('@univerjs/sheets/facade'),c=require('@univerjs-pro/sheets-mcp'),w=require('@univerjs/core');class A extends d['FUniver']{async[_0x3da98c(0x1ee)](){const _0xc922e3=_0x3da98c;return this[_0xc922e3(0x1eb)]()['getLintErrors']();}}d['FUniver']['extend'](A);class x extends o[_0x3da98c(0x1ef)]{async[_0x3da98c(0x1ee)](){const _0x564fc0=_0x3da98c,_0x1ece54=this[_0x564fc0(0x1d0)](),_0x595736=await this[_0x564fc0(0x1e7)]();return{'formulaErrors':_0x1ece54,'dataValidationErrors':_0x595736};}}o['FWorkbook'][_0x3da98c(0x1e4)](x);class k extends o['FWorksheet']{async[_0x3da98c(0x1e1)](){const _0x1be9c0=_0x3da98c,_0x2ac51f=this[_0x1be9c0(0x1e2)][_0x1be9c0(0x1cf)](c[_0x1be9c0(0x1e3)]),_0x23556b=this[_0x1be9c0(0x1ed)](0x0,0x0,this['getMaxRows']()+0x1,this['getMaxColumns']()+0x1)[_0x1be9c0(0x1e6)]();return await _0x2ac51f[_0x1be9c0(0x1f1)](_0x23556b);}async['getFormulaUsagesAsA1'](){const _0x3e80e5=_0x3da98c;return(await this['getFormulaUsages']())[_0x3e80e5(0x1d2)](c[_0x3e80e5(0x1db)]);}}o[_0x3da98c(0x1cd)][_0x3da98c(0x1e4)](k);function _0x41e9(){const _0x589552=['getLintErrors','FWorkbook','startColumn','getAllFormulaUsages','FRange','startRow','getMaxRows','FWorksheet','1027724UUwAur','get','getAllFormulaError','getMaxColumns','map','7966698QngLEz','moveFormulaRefOffset','3FwEthI','380omERdE','formula','filledRanges','_worksheet','50264vVIswl','toA1','getCellRaw','7040474wYTsxF','983862AieYZX','getFormulaUsagesAsA1','785637YQQdos','getFormulaUsages','_injector','IFormulaUsageAnalyzer','extend','5mAKtNa','getCellDataGrid','getAllDataValidationErrorAsync','push','16IqWZfP','210894tHSToT','getActiveWorkbook','length','getRange'];_0x41e9=function(){return _0x589552;};return _0x41e9();}class U extends o['FRange']{async[_0x3da98c(0x1e1)](){const _0x488712=_0x3da98c,_0x16b9ef=this['_injector'][_0x488712(0x1cf)](c[_0x488712(0x1e3)]),_0x5a4466=(({startRow:_0x133065,endRow:_0x27070b,startColumn:_0x4ab595,endColumn:_0x362035})=>{const _0x9f66a0=_0x488712,_0x533031=[];for(let _0x1e6723=_0x133065;_0x1e6723<=_0x27070b;_0x1e6723++){const _0x44b047=[];for(let _0x1fab53=_0x4ab595;_0x1fab53<=_0x362035;_0x1fab53++)_0x44b047[_0x9f66a0(0x1e8)](this['_worksheet'][_0x9f66a0(0x1dc)](_0x1e6723,_0x1fab53));_0x533031['push'](_0x44b047);}return _0x533031;})({'startRow':0x0,'endRow':this[_0x488712(0x1d9)][_0x488712(0x1cc)](),'startColumn':0x0,'endColumn':this[_0x488712(0x1d9)][_0x488712(0x1d1)]()}),_0x205c0b=await _0x16b9ef[_0x488712(0x1f1)](_0x5a4466),_0x1fd137=this[_0x488712(0x1ed)](),_0x37ac6e=[];for(let _0xe38b3c=0x0;_0xe38b3c<_0x205c0b[_0x488712(0x1ec)];_0xe38b3c++){const _0x425453=_0x205c0b[_0xe38b3c],_0x19636a=_0x425453['filledRanges'],_0x3c5f97=[];for(let _0x2342a5=0x0;_0x2342a5<_0x19636a['length'];_0x2342a5++){const _0xa2a3e3=_0x19636a[_0x2342a5],_0x2adbbf=w['getIntersectRange'](_0xa2a3e3,_0x1fd137);_0x2adbbf&&_0x3c5f97[_0x488712(0x1e8)](_0x2adbbf);}if(_0x3c5f97[_0x488712(0x1ec)]>0x0){_0x425453[_0x488712(0x1d8)]=_0x3c5f97;const _0x4da044=_0x3c5f97[0x0],_0x4364c1=_0x4da044[_0x488712(0x1cb)]-_0x1fd137['startRow'],_0x57d6a8=_0x4da044[_0x488712(0x1f0)]-_0x1fd137[_0x488712(0x1f0)];_0x425453[_0x488712(0x1d7)]=await _0x16b9ef[_0x488712(0x1d4)](_0x425453[_0x488712(0x1d7)],_0x4364c1,_0x57d6a8),_0x37ac6e[_0x488712(0x1e8)](_0x425453);}}return _0x37ac6e;}async[_0x3da98c(0x1df)](){const _0x2b2cfa=_0x3da98c;return(await this['getFormulaUsages']())[_0x2b2cfa(0x1d2)](c[_0x2b2cfa(0x1db)]);}}o[_0x3da98c(0x1ca)]['extend'](U);