@univerjs-pro/sheets-mcp 0.15.0-insiders.20251227-453e4ff → 0.15.0-insiders.20260106-79b11f9

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';function _0x3520(){const _0x5aca64=['endRow','18699210MwHBsF','FUniver','getMaxRows','609582OpdxJO','formula','push','getActiveWorkbook','13982652YUIDCA','getFormulaUsagesAsA1','getAllFormulaUsages','5MJsHsU','getFormulaUsages','filledRanges','_injector','map','getLintErrors','getAllFormulaError','_worksheet','startColumn','getRange','308355frDsgn','length','3485784WIePCd','IFormulaUsageAnalyzer','8740207KlJFnN','getMaxColumns','startRow','getCellRaw','861834nClreO','get','endColumn','90wbrcBg','firstOccurrence','extend','FWorksheet','getIntersectRange','8EZcuvM','toA1','FWorkbook'];_0x3520=function(){return _0x5aca64;};return _0x3520();}const _0x230b81=_0x3b39;(function(_0x419ce3,_0x1a3367){const _0x24c457=_0x3b39,_0x3e4084=_0x419ce3();while(!![]){try{const _0x1449b5=-parseInt(_0x24c457(0x17a))/0x1*(-parseInt(_0x24c457(0x173))/0x2)+parseInt(_0x24c457(0x164))/0x3+parseInt(_0x24c457(0x186))/0x4+parseInt(_0x24c457(0x184))/0x5*(-parseInt(_0x24c457(0x167))/0x6)+-parseInt(_0x24c457(0x160))/0x7*(parseInt(_0x24c457(0x16c))/0x8)+-parseInt(_0x24c457(0x177))/0x9+parseInt(_0x24c457(0x170))/0xa;if(_0x1449b5===_0x1a3367)break;else _0x3e4084['push'](_0x3e4084['shift']());}catch(_0x56d6a0){_0x3e4084['push'](_0x3e4084['shift']());}}}(_0x3520,0xc97da));const d=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const o=require('@univerjs/sheets/facade'),m=require('@univerjs-pro/sheets-mcp'),F=require('@univerjs/core');class C extends d[_0x230b81(0x171)]{async[_0x230b81(0x17f)](){const _0x19132a=_0x230b81;return this[_0x19132a(0x176)]()[_0x19132a(0x17f)]();}}d[_0x230b81(0x171)][_0x230b81(0x169)](C);function _0x3b39(_0x53984d,_0xef96c3){_0x53984d=_0x53984d-0x160;const _0x35206a=_0x3520();let _0x3b3929=_0x35206a[_0x53984d];return _0x3b3929;}class A extends o[_0x230b81(0x16e)]{async[_0x230b81(0x17f)](){const _0x4e5b1d=_0x230b81,_0x45fa2f=this[_0x4e5b1d(0x180)](),_0x5eee11=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x45fa2f,'dataValidationErrors':_0x5eee11};}}o[_0x230b81(0x16e)][_0x230b81(0x169)](A);class k extends o[_0x230b81(0x16a)]{async[_0x230b81(0x17b)](){const _0x536659=_0x230b81,_0x19d8af=this[_0x536659(0x17d)][_0x536659(0x165)](m[_0x536659(0x187)]),_0x5e7ca6=this['getRange'](0x0,0x0,this[_0x536659(0x172)](),this[_0x536659(0x161)]())['getCellDataGrid']();return await _0x19d8af[_0x536659(0x179)](_0x5e7ca6);}async['getFormulaUsagesAsA1'](){const _0x4e24d9=_0x230b81;return(await this[_0x4e24d9(0x17b)]())[_0x4e24d9(0x17e)](m[_0x4e24d9(0x16d)]);}}o[_0x230b81(0x16a)][_0x230b81(0x169)](k);class x extends o['FRange']{async[_0x230b81(0x17b)](){const _0x4ad967=_0x230b81,_0x30c07d=this[_0x4ad967(0x17d)][_0x4ad967(0x165)](m[_0x4ad967(0x187)]),_0x4b40e0=(({startRow:_0x165ccc,endRow:_0x12183b,startColumn:_0x3ca7af,endColumn:_0x444992})=>{const _0x1ef77f=_0x4ad967,_0x4365d3=[];for(let _0x59d576=_0x165ccc;_0x59d576<=_0x12183b;_0x59d576++){const _0x568f51=[];for(let _0x361e8c=_0x3ca7af;_0x361e8c<=_0x444992;_0x361e8c++)_0x568f51[_0x1ef77f(0x175)](this['_worksheet'][_0x1ef77f(0x163)](_0x59d576,_0x361e8c));_0x4365d3[_0x1ef77f(0x175)](_0x568f51);}return _0x4365d3;})({'startRow':0x0,'endRow':this[_0x4ad967(0x181)][_0x4ad967(0x172)](),'startColumn':0x0,'endColumn':this[_0x4ad967(0x181)][_0x4ad967(0x161)]()}),_0x17b372=await _0x30c07d[_0x4ad967(0x179)](_0x4b40e0),_0x25bc99=this[_0x4ad967(0x183)](),_0x191740=[];for(let _0x536bd7=0x0;_0x536bd7<_0x17b372[_0x4ad967(0x185)];_0x536bd7++){const _0x1dec4b=_0x17b372[_0x536bd7],_0x483940=_0x1dec4b[_0x4ad967(0x17c)],_0x6cd60e=[];for(let _0x3ecb08=0x0;_0x3ecb08<_0x483940[_0x4ad967(0x185)];_0x3ecb08++){const _0x4bb749=_0x483940[_0x3ecb08],_0x6c5ca5=F[_0x4ad967(0x16b)](_0x4bb749,_0x25bc99);_0x6c5ca5&&_0x6cd60e[_0x4ad967(0x175)](_0x6c5ca5);}if(_0x6cd60e[_0x4ad967(0x185)]>0x0){if(_0x1dec4b[_0x4ad967(0x17c)]=_0x6cd60e,!(_0x1dec4b[_0x4ad967(0x168)][_0x4ad967(0x162)]>=_0x25bc99[_0x4ad967(0x162)]&&_0x1dec4b['firstOccurrence'][_0x4ad967(0x162)]<=_0x25bc99[_0x4ad967(0x16f)]&&_0x1dec4b[_0x4ad967(0x168)][_0x4ad967(0x182)]>=_0x25bc99[_0x4ad967(0x182)]&&_0x1dec4b[_0x4ad967(0x168)][_0x4ad967(0x182)]<=_0x25bc99[_0x4ad967(0x166)])){const _0x4b0261=_0x6cd60e[0x0],_0x14336b=_0x4b0261['startRow']-_0x1dec4b[_0x4ad967(0x168)][_0x4ad967(0x162)],_0x4ce3a2=_0x4b0261['startColumn']-_0x1dec4b['firstOccurrence']['startColumn'];_0x1dec4b['formula']=await _0x30c07d['moveFormulaRefOffset'](_0x1dec4b[_0x4ad967(0x174)],_0x4ce3a2,_0x14336b),_0x1dec4b[_0x4ad967(0x168)]={'startRow':_0x4b0261['startRow'],'endRow':_0x4b0261['startRow'],'startColumn':_0x4b0261[_0x4ad967(0x182)],'endColumn':_0x4b0261['startColumn']};}_0x191740[_0x4ad967(0x175)](_0x1dec4b);}}return _0x191740;}async[_0x230b81(0x178)](){const _0x5c4dce=_0x230b81;return(await this[_0x5c4dce(0x17b)]())['map'](m[_0x5c4dce(0x16d)]);}}o['FRange'][_0x230b81(0x169)](x);
1
+ 'use strict';const _0x24953f=_0x31c4;(function(_0xd5529c,_0x18e806){const _0x515801=_0x31c4,_0x29c846=_0xd5529c();while(!![]){try{const _0x19e4a4=parseInt(_0x515801(0xae))/0x1*(parseInt(_0x515801(0xbf))/0x2)+-parseInt(_0x515801(0xb5))/0x3+-parseInt(_0x515801(0x97))/0x4*(-parseInt(_0x515801(0xbc))/0x5)+-parseInt(_0x515801(0x96))/0x6+-parseInt(_0x515801(0xad))/0x7*(parseInt(_0x515801(0x92))/0x8)+-parseInt(_0x515801(0xbd))/0x9+parseInt(_0x515801(0xc3))/0xa*(parseInt(_0x515801(0xc6))/0xb);if(_0x19e4a4===_0x18e806)break;else _0x29c846['push'](_0x29c846['shift']());}catch(_0x6527ac){_0x29c846['push'](_0x29c846['shift']());}}}(_0x2fac,0x66342));const U=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const f=require('@univerjs/sheets/facade'),g=require('@univerjs-pro/sheets-mcp'),m=require('@univerjs/core');class y extends U[_0x24953f(0x9d)]{async[_0x24953f(0xc4)](){const _0x4dc0c8=_0x24953f;return this[_0x4dc0c8(0x9c)]()[_0x4dc0c8(0xc4)]();}}U[_0x24953f(0x9d)]['extend'](y);class C extends f['FWorkbook']{async['getLintErrors'](){const _0x42f018=_0x24953f,_0x41edc1=this[_0x42f018(0x9b)](),_0x1d5f23=await this[_0x42f018(0xb9)]();return{'formulaErrors':_0x41edc1,'dataValidationErrors':_0x1d5f23};}}f['FWorkbook'][_0x24953f(0xba)](C);class z extends f[_0x24953f(0xb0)]{async[_0x24953f(0x9a)](){const _0xa50950=_0x24953f,_0x1870ae=this[_0xa50950(0x94)][_0xa50950(0xc1)](g[_0xa50950(0x91)]),_0x2ca702=this[_0xa50950(0x9e)](0x0,0x0,this[_0xa50950(0x90)](),this[_0xa50950(0xb1)]())['getCellDataGrid']();return await _0x1870ae[_0xa50950(0xc5)](_0x2ca702);}async[_0x24953f(0xa3)](){const _0x723849=_0x24953f;return(await this[_0x723849(0x9a)]())[_0x723849(0xb4)](g[_0x723849(0xa7)]);}[_0x24953f(0xa2)](_0x4b4db8){const _0x17b3e5=_0x24953f,_0x4a3343=this[_0x17b3e5(0x94)][_0x17b3e5(0xc1)](g[_0x17b3e5(0x9f)]),_0xf2307c=this[_0x17b3e5(0x9e)](0x0,0x0,this[_0x17b3e5(0x90)](),this['getMaxColumns']())[_0x17b3e5(0xb6)]();return _0x4a3343['updateConfig'](_0x4b4db8),_0x4a3343[_0x17b3e5(0xa9)](_0xf2307c,this[_0x17b3e5(0xa6)],this[_0x17b3e5(0xab)]);}[_0x24953f(0xa8)](_0x2f0486){const _0x104be0=_0x24953f;return this[_0x104be0(0xa2)](_0x2f0486)[_0x104be0(0xb4)](g[_0x104be0(0xa5)]);}[_0x24953f(0xc2)](_0x1febd8){const _0x4ae0f1=_0x24953f,_0x203f8f=this[_0x4ae0f1(0x94)]['get'](g['ISizeUsageAnalyzer']);return _0x203f8f[_0x4ae0f1(0x98)](_0x1febd8),_0x203f8f[_0x4ae0f1(0xa1)](this[_0x4ae0f1(0xab)]);}[_0x24953f(0xaf)](_0x2ff6e6){const _0x4dbb36=_0x24953f,_0x4fb04f=this[_0x4dbb36(0x94)][_0x4dbb36(0xc1)](g[_0x4dbb36(0x99)]);_0x4fb04f[_0x4dbb36(0x98)](_0x2ff6e6);const _0x38eb74=_0x4fb04f[_0x4dbb36(0xa1)](this[_0x4dbb36(0xab)]);return _0x4fb04f[_0x4dbb36(0xb3)](_0x38eb74);}}f[_0x24953f(0xb0)][_0x24953f(0xba)](z);function _0x2fac(){const _0x1bb667=['getStyleUsagesAsA1','getAllStyleUsages','FRange','_worksheet','filledRanges','84wLPECZ','167561Tmhgla','getSizeUsagesAsA1','FWorksheet','getMaxColumns','getIntersectRange','toA1','map','1209273fTMtzE','getCellDataGrid','length','endRow','getAllDataValidationErrorAsync','extend','startColumn','5LxQGNn','5440536hRAmuH','moveFormulaRefOffset','2dpxbOo','formula','get','getSizeUsages','6083270tcjEfn','getLintErrors','getAllFormulaUsages','22yxqYdc','push','getMaxRows','IFormulaUsageAnalyzer','80072ssYeku','startRow','_injector','getCellRaw','3767178GHmVgc','3159908UjOcOI','updateConfig','ISizeUsageAnalyzer','getFormulaUsages','getAllFormulaError','getActiveWorkbook','FUniver','getRange','IStyleUsageAnalyzer','firstOccurrence','getAllSizeUsages','getStyleUsages','getFormulaUsagesAsA1','endColumn','styleToA1','_workbook','formulaToA1'];_0x2fac=function(){return _0x1bb667;};return _0x2fac();}class S extends f[_0x24953f(0xaa)]{async[_0x24953f(0x9a)](){const _0x114977=_0x24953f,_0x265af0=this[_0x114977(0x94)][_0x114977(0xc1)](g['IFormulaUsageAnalyzer']),_0x360c83=(({startRow:_0xa22f0a,endRow:_0x2ea82e,startColumn:_0x2d85b7,endColumn:_0x5561f7})=>{const _0x545387=_0x114977,_0x13827f=[];for(let _0x781170=_0xa22f0a;_0x781170<=_0x2ea82e;_0x781170++){const _0x2178e8=[];for(let _0xcc9283=_0x2d85b7;_0xcc9283<=_0x5561f7;_0xcc9283++)_0x2178e8[_0x545387(0x8f)](this[_0x545387(0xab)][_0x545387(0x95)](_0x781170,_0xcc9283));_0x13827f[_0x545387(0x8f)](_0x2178e8);}return _0x13827f;})({'startRow':0x0,'endRow':this[_0x114977(0xab)][_0x114977(0x90)](),'startColumn':0x0,'endColumn':this[_0x114977(0xab)][_0x114977(0xb1)]()}),_0x29a631=await _0x265af0[_0x114977(0xc5)](_0x360c83),_0x267169=this['getRange'](),_0x5bf20c=[];for(let _0x3d6158=0x0;_0x3d6158<_0x29a631[_0x114977(0xb7)];_0x3d6158++){const _0x44a18a=_0x29a631[_0x3d6158],_0x222fed=_0x44a18a[_0x114977(0xac)],_0x5eb599=[];for(let _0x13418e=0x0;_0x13418e<_0x222fed['length'];_0x13418e++){const _0x243e37=_0x222fed[_0x13418e],_0x5ca750=m['getIntersectRange'](_0x243e37,_0x267169);_0x5ca750&&_0x5eb599[_0x114977(0x8f)](_0x5ca750);}if(_0x5eb599[_0x114977(0xb7)]>0x0){if(_0x44a18a[_0x114977(0xac)]=_0x5eb599,!(_0x44a18a[_0x114977(0xa0)]['startRow']>=_0x267169[_0x114977(0x93)]&&_0x44a18a[_0x114977(0xa0)][_0x114977(0x93)]<=_0x267169[_0x114977(0xb8)]&&_0x44a18a['firstOccurrence']['startColumn']>=_0x267169[_0x114977(0xbb)]&&_0x44a18a[_0x114977(0xa0)][_0x114977(0xbb)]<=_0x267169['endColumn'])){const _0x3d4ad7=_0x5eb599[0x0],_0x3fa39d=_0x3d4ad7[_0x114977(0x93)]-_0x44a18a[_0x114977(0xa0)][_0x114977(0x93)],_0x39673e=_0x3d4ad7['startColumn']-_0x44a18a[_0x114977(0xa0)]['startColumn'];_0x44a18a['formula']=await _0x265af0[_0x114977(0xbe)](_0x44a18a[_0x114977(0xc0)],_0x39673e,_0x3fa39d),_0x44a18a['firstOccurrence']={'startRow':_0x3d4ad7[_0x114977(0x93)],'endRow':_0x3d4ad7['startRow'],'startColumn':_0x3d4ad7[_0x114977(0xbb)],'endColumn':_0x3d4ad7[_0x114977(0xbb)]};}_0x5bf20c[_0x114977(0x8f)](_0x44a18a);}}return _0x5bf20c;}async[_0x24953f(0xa3)](){const _0x404066=_0x24953f;return(await this[_0x404066(0x9a)]())[_0x404066(0xb4)](g[_0x404066(0xa7)]);}[_0x24953f(0xa2)](_0x1be8ef){const _0x29ba36=_0x24953f,_0x2a7396=this[_0x29ba36(0x94)][_0x29ba36(0xc1)](g[_0x29ba36(0x9f)]),_0x50ebbc=(({startRow:_0x404e8b,endRow:_0x2cf68c,startColumn:_0x49758a,endColumn:_0xa9c802})=>{const _0x588fe9=_0x29ba36,_0x4d4760=[];for(let _0x12ed5a=_0x404e8b;_0x12ed5a<=_0x2cf68c;_0x12ed5a++){const _0x24e69f=[];for(let _0x1b8b7c=_0x49758a;_0x1b8b7c<=_0xa9c802;_0x1b8b7c++)_0x24e69f['push'](this[_0x588fe9(0xab)][_0x588fe9(0x95)](_0x12ed5a,_0x1b8b7c));_0x4d4760[_0x588fe9(0x8f)](_0x24e69f);}return _0x4d4760;})({'startRow':0x0,'endRow':this[_0x29ba36(0xab)]['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x29ba36(0xab)][_0x29ba36(0xb1)]()});_0x2a7396[_0x29ba36(0x98)](_0x1be8ef);const _0x47b38f=_0x2a7396['getAllStyleUsages'](_0x50ebbc,this[_0x29ba36(0xa6)],this[_0x29ba36(0xab)]),_0x12cdbc=this[_0x29ba36(0x9e)](),_0x166daf=[];for(let _0x165b4a=0x0;_0x165b4a<_0x47b38f[_0x29ba36(0xb7)];_0x165b4a++){const _0x5ebe1c=_0x47b38f[_0x165b4a],_0x4e4504=_0x5ebe1c[_0x29ba36(0xac)],_0x35ea3b=[];for(let _0x57ceaf=0x0;_0x57ceaf<_0x4e4504['length'];_0x57ceaf++){const _0x45634a=_0x4e4504[_0x57ceaf],_0x3b9c8b=m[_0x29ba36(0xb2)](_0x45634a,_0x12cdbc);_0x3b9c8b&&_0x35ea3b[_0x29ba36(0x8f)](_0x3b9c8b);}_0x35ea3b[_0x29ba36(0xb7)]>0x0&&(_0x5ebe1c[_0x29ba36(0xac)]=_0x35ea3b,_0x166daf[_0x29ba36(0x8f)](_0x5ebe1c));}return _0x166daf;}[_0x24953f(0xa8)](_0x7c786f){const _0x44bd67=_0x24953f;return this[_0x44bd67(0xa2)](_0x7c786f)[_0x44bd67(0xb4)](g[_0x44bd67(0xa5)]);}['getSizeUsages'](_0x1bf517){const _0x42f0c9=_0x24953f,_0x4e44b1=this[_0x42f0c9(0x94)][_0x42f0c9(0xc1)](g[_0x42f0c9(0x99)]),_0x380d68=this['getRange']();return _0x4e44b1['updateConfig'](_0x1bf517),_0x4e44b1[_0x42f0c9(0xa1)](this[_0x42f0c9(0xab)],_0x380d68['startRow'],_0x380d68['endRow'],_0x380d68[_0x42f0c9(0xbb)],_0x380d68[_0x42f0c9(0xa4)]);}[_0x24953f(0xaf)](_0x48cb02){const _0x5945fc=_0x24953f,_0x4f6df0=this[_0x5945fc(0xc2)](_0x48cb02);return this[_0x5945fc(0x94)][_0x5945fc(0xc1)](g['ISizeUsageAnalyzer'])['toA1'](_0x4f6df0);}}function _0x31c4(_0x5ae7a8,_0x3ea807){_0x5ae7a8=_0x5ae7a8-0x8f;const _0x2fac50=_0x2fac();let _0x31c421=_0x2fac50[_0x5ae7a8];return _0x31c421;}f[_0x24953f(0xaa)]['extend'](S);