@univerjs-pro/sheets-mcp 0.12.2-experimental.20251129-0fa20cd → 0.12.2-experimental.20251201-5b27b55

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 _0x5e2a68=_0x15cc;(function(_0x3993f0,_0x353ec8){const _0x5178c5=_0x15cc,_0x1339ef=_0x3993f0();while(!![]){try{const _0x30f97d=parseInt(_0x5178c5(0xb3))/0x1*(-parseInt(_0x5178c5(0xc3))/0x2)+parseInt(_0x5178c5(0xce))/0x3*(parseInt(_0x5178c5(0xd1))/0x4)+-parseInt(_0x5178c5(0xac))/0x5*(-parseInt(_0x5178c5(0xb5))/0x6)+parseInt(_0x5178c5(0xbe))/0x7*(-parseInt(_0x5178c5(0xb1))/0x8)+parseInt(_0x5178c5(0xb4))/0x9*(parseInt(_0x5178c5(0xcb))/0xa)+parseInt(_0x5178c5(0xcc))/0xb+-parseInt(_0x5178c5(0xd0))/0xc*(parseInt(_0x5178c5(0xb6))/0xd);if(_0x30f97d===_0x353ec8)break;else _0x1339ef['push'](_0x1339ef['shift']());}catch(_0x5a97db){_0x1339ef['push'](_0x1339ef['shift']());}}}(_0x3d29,0x50c52));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[_0x5e2a68(0xc1)]{async[_0x5e2a68(0xc2)](){const _0xcfa18a=_0x5e2a68;return this[_0xcfa18a(0xca)]()['getLintErrors']();}}d[_0x5e2a68(0xc1)][_0x5e2a68(0xad)](A);class x extends o['FWorkbook']{async['getLintErrors'](){const _0xf66382=_0x5e2a68,_0xa793aa=this['getAllFormulaError'](),_0x565e90=await this[_0xf66382(0xc5)]();return{'formulaErrors':_0xa793aa,'dataValidationErrors':_0x565e90};}}o[_0x5e2a68(0xc9)]['extend'](x);function _0x15cc(_0x43c971,_0x437329){const _0x3d297c=_0x3d29();return _0x15cc=function(_0x15ccc8,_0xc45a71){_0x15ccc8=_0x15ccc8-0xac;let _0xb21d31=_0x3d297c[_0x15ccc8];return _0xb21d31;},_0x15cc(_0x43c971,_0x437329);}class k extends o['FWorksheet']{async[_0x5e2a68(0xaf)](){const _0x35ea08=_0x5e2a68,_0x1d15e0=this[_0x35ea08(0xb0)][_0x35ea08(0xc6)](c[_0x35ea08(0xcd)]),_0x5c5126=this['getRange'](0x0,0x0,this[_0x35ea08(0xba)]()+0x1,this[_0x35ea08(0xc4)]()+0x1)[_0x35ea08(0xbf)]();return await _0x1d15e0[_0x35ea08(0xb2)](_0x5c5126);}async[_0x5e2a68(0xd2)](){const _0x20cf4f=_0x5e2a68;return(await this['getFormulaUsages']())[_0x20cf4f(0xd3)](c['toA1']);}}o[_0x5e2a68(0xc0)][_0x5e2a68(0xad)](k);class U extends o['FRange']{async['getFormulaUsages'](){const _0x4f0452=_0x5e2a68,_0x3f3310=this[_0x4f0452(0xb0)][_0x4f0452(0xc6)](c[_0x4f0452(0xcd)]),_0x164c3d=(({startRow:_0x138356,endRow:_0x274560,startColumn:_0x235bf3,endColumn:_0x49bfeb})=>{const _0x33cbc5=_0x4f0452,_0x257b79=[];for(let _0x478334=_0x138356;_0x478334<=_0x274560;_0x478334++){const _0x230b79=[];for(let _0x43102a=_0x235bf3;_0x43102a<=_0x49bfeb;_0x43102a++)_0x230b79['push'](this[_0x33cbc5(0xb7)][_0x33cbc5(0xae)](_0x478334,_0x43102a));_0x257b79[_0x33cbc5(0xbb)](_0x230b79);}return _0x257b79;})({'startRow':0x0,'endRow':this['_worksheet'][_0x4f0452(0xba)](),'startColumn':0x0,'endColumn':this[_0x4f0452(0xb7)][_0x4f0452(0xc4)]()}),_0x2869e0=await _0x3f3310[_0x4f0452(0xb2)](_0x164c3d),_0x108d2d=this['getRange'](),_0x3d771a=[];for(let _0x30654c=0x0;_0x30654c<_0x2869e0[_0x4f0452(0xbd)];_0x30654c++){const _0x253689=_0x2869e0[_0x30654c],_0x37509c=_0x253689[_0x4f0452(0xd4)],_0x68abfa=[];for(let _0x27c650=0x0;_0x27c650<_0x37509c[_0x4f0452(0xbd)];_0x27c650++){const _0x98eb9e=_0x37509c[_0x27c650],_0x2c15b6=w[_0x4f0452(0xbc)](_0x98eb9e,_0x108d2d);_0x2c15b6&&_0x68abfa[_0x4f0452(0xbb)](_0x2c15b6);}if(_0x68abfa[_0x4f0452(0xbd)]>0x0){_0x253689[_0x4f0452(0xd4)]=_0x68abfa;const _0x26fd11=_0x68abfa[0x0],_0x5c1003=_0x26fd11[_0x4f0452(0xc8)]-_0x108d2d[_0x4f0452(0xc8)],_0x9f5d3d=_0x26fd11[_0x4f0452(0xc7)]-_0x108d2d[_0x4f0452(0xc7)];_0x253689[_0x4f0452(0xcf)]=await _0x3f3310['moveFormulaRefOffset'](_0x253689[_0x4f0452(0xcf)],_0x5c1003,_0x9f5d3d),_0x3d771a[_0x4f0452(0xbb)](_0x253689);}}return _0x3d771a;}async[_0x5e2a68(0xd2)](){const _0x413c3a=_0x5e2a68;return(await this['getFormulaUsages']())[_0x413c3a(0xd3)](c[_0x413c3a(0xb9)]);}}o[_0x5e2a68(0xb8)][_0x5e2a68(0xad)](U);function _0x3d29(){const _0x4f9084=['getMaxColumns','getAllDataValidationErrorAsync','get','startColumn','startRow','FWorkbook','getActiveWorkbook','335190RsefhS','5008685luYWrs','IFormulaUsageAnalyzer','3lREbLa','formula','12NHKXeH','2289964wNizfZ','getFormulaUsagesAsA1','map','filledRanges','5NoYBpO','extend','getCellRaw','getFormulaUsages','_injector','8sYyWIx','getAllFormulaUsages','1YqnKOC','99wCFsrE','1563528TRtILZ','9861475FTwOFH','_worksheet','FRange','toA1','getMaxRows','push','getIntersectRange','length','2563841lSdXjQ','getCellDataGrid','FWorksheet','FUniver','getLintErrors','402902sajLgi'];_0x3d29=function(){return _0x4f9084;};return _0x3d29();}
1
+ 'use strict';const _0x1b2f68=_0x1b6b;(function(_0x571124,_0x1276fb){const _0x4a83de=_0x1b6b,_0x2e23ba=_0x571124();while(!![]){try{const _0x2497ea=-parseInt(_0x4a83de(0x17b))/0x1*(-parseInt(_0x4a83de(0x171))/0x2)+parseInt(_0x4a83de(0x180))/0x3+parseInt(_0x4a83de(0x189))/0x4*(-parseInt(_0x4a83de(0x16e))/0x5)+-parseInt(_0x4a83de(0x175))/0x6*(-parseInt(_0x4a83de(0x183))/0x7)+parseInt(_0x4a83de(0x187))/0x8+-parseInt(_0x4a83de(0x18f))/0x9*(-parseInt(_0x4a83de(0x179))/0xa)+-parseInt(_0x4a83de(0x173))/0xb;if(_0x2497ea===_0x1276fb)break;else _0x2e23ba['push'](_0x2e23ba['shift']());}catch(_0x1b3da4){_0x2e23ba['push'](_0x2e23ba['shift']());}}}(_0x23d1,0x57b4f));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[_0x1b2f68(0x193)]{async['getLintErrors'](){const _0x14baad=_0x1b2f68;return this['getActiveWorkbook']()[_0x14baad(0x17a)]();}}function _0x1b6b(_0x494d1e,_0x1c5024){const _0x23d138=_0x23d1();return _0x1b6b=function(_0x1b6b38,_0x3c720d){_0x1b6b38=_0x1b6b38-0x16e;let _0x36d5ce=_0x23d138[_0x1b6b38];return _0x36d5ce;},_0x1b6b(_0x494d1e,_0x1c5024);}function _0x23d1(){const _0x5c039b=['FWorkbook','IFormulaUsageAnalyzer','getMaxRows','filledRanges','getFormulaUsagesAsA1','477itWylx','FWorksheet','getMaxColumns','_worksheet','FUniver','5rOnMlh','startColumn','getAllFormulaError','766828eGFYNR','toA1','5770204XDlTmn','getIntersectRange','648IrhNTd','push','FRange','length','6190lEvabB','getLintErrors','1lVZUUC','getRange','getFormulaUsages','getCellDataGrid','get','1339887fakkdG','formula','extend','3122PzTxRE','moveFormulaRefOffset','getAllFormulaUsages','_injector','4195792rIpEdv','startRow','2206724ILJPHN'];_0x23d1=function(){return _0x5c039b;};return _0x23d1();}d[_0x1b2f68(0x193)][_0x1b2f68(0x182)](A);class x extends o['FWorkbook']{async[_0x1b2f68(0x17a)](){const _0x535b64=_0x1b2f68,_0x1a74d1=this[_0x535b64(0x170)](),_0x2c7d08=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x1a74d1,'dataValidationErrors':_0x2c7d08};}}o[_0x1b2f68(0x18a)][_0x1b2f68(0x182)](x);class k extends o[_0x1b2f68(0x190)]{async[_0x1b2f68(0x17d)](){const _0x4f1cf9=_0x1b2f68,_0x2d8084=this[_0x4f1cf9(0x186)][_0x4f1cf9(0x17f)](c[_0x4f1cf9(0x18b)]),_0x4245ee=this[_0x4f1cf9(0x17c)](0x0,0x0,this['getMaxRows']()+0x1,this['getMaxColumns']()+0x1)[_0x4f1cf9(0x17e)]();return await _0x2d8084[_0x4f1cf9(0x185)](_0x4245ee);}async[_0x1b2f68(0x18e)](){const _0x88a43b=_0x1b2f68;return(await this[_0x88a43b(0x17d)]())['map'](c[_0x88a43b(0x172)]);}}o[_0x1b2f68(0x190)][_0x1b2f68(0x182)](k);class U extends o['FRange']{async['getFormulaUsages'](){const _0x3eb111=_0x1b2f68,_0xd7ceb6=this[_0x3eb111(0x186)][_0x3eb111(0x17f)](c['IFormulaUsageAnalyzer']),_0x59bc60=(({startRow:_0x52c469,endRow:_0x7df01d,startColumn:_0x49bd8f,endColumn:_0x461e0b})=>{const _0x533531=_0x3eb111,_0x5d6f0c=[];for(let _0x5e68be=_0x52c469;_0x5e68be<=_0x7df01d;_0x5e68be++){const _0x200e3c=[];for(let _0x21cc37=_0x49bd8f;_0x21cc37<=_0x461e0b;_0x21cc37++)_0x200e3c['push'](this[_0x533531(0x192)]['getCellRaw'](_0x5e68be,_0x21cc37));_0x5d6f0c['push'](_0x200e3c);}return _0x5d6f0c;})({'startRow':0x0,'endRow':this['_worksheet'][_0x3eb111(0x18c)](),'startColumn':0x0,'endColumn':this[_0x3eb111(0x192)][_0x3eb111(0x191)]()}),_0x445113=await _0xd7ceb6[_0x3eb111(0x185)](_0x59bc60),_0x19fac2=this['getRange'](),_0x54aa0f=[];for(let _0x5c25d8=0x0;_0x5c25d8<_0x445113['length'];_0x5c25d8++){const _0x13fcfd=_0x445113[_0x5c25d8],_0x509769=_0x13fcfd[_0x3eb111(0x18d)],_0x5327ef=[];for(let _0x46e4fd=0x0;_0x46e4fd<_0x509769[_0x3eb111(0x178)];_0x46e4fd++){const _0x50a4e7=_0x509769[_0x46e4fd],_0x44c344=w[_0x3eb111(0x174)](_0x50a4e7,_0x19fac2);_0x44c344&&_0x5327ef[_0x3eb111(0x176)](_0x44c344);}if(_0x5327ef['length']>0x0){_0x13fcfd['filledRanges']=_0x5327ef;const _0x4cd050=_0x5327ef[0x0],_0x540ce4=_0x4cd050['startRow']-_0x19fac2[_0x3eb111(0x188)],_0x2ffd93=_0x4cd050[_0x3eb111(0x16f)]-_0x19fac2[_0x3eb111(0x16f)];_0x13fcfd[_0x3eb111(0x181)]=await _0xd7ceb6[_0x3eb111(0x184)](_0x13fcfd['formula'],_0x540ce4,_0x2ffd93),_0x54aa0f['push'](_0x13fcfd);}}return _0x54aa0f;}async['getFormulaUsagesAsA1'](){const _0x48544a=_0x1b2f68;return(await this[_0x48544a(0x17d)]())['map'](c[_0x48544a(0x172)]);}}o[_0x1b2f68(0x177)][_0x1b2f68(0x182)](U);