@univerjs-pro/sheets-mcp 0.15.0-insiders.20251227-c108ce3 → 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';const _0x2c886f=_0x38a0;(function(_0x702b51,_0x3b8d79){const _0x5c26f2=_0x38a0,_0x454062=_0x702b51();while(!![]){try{const _0x26861d=parseInt(_0x5c26f2(0x8f))/0x1+parseInt(_0x5c26f2(0x94))/0x2*(parseInt(_0x5c26f2(0x7b))/0x3)+-parseInt(_0x5c26f2(0x9d))/0x4+parseInt(_0x5c26f2(0x9b))/0x5+-parseInt(_0x5c26f2(0x98))/0x6+parseInt(_0x5c26f2(0x75))/0x7+-parseInt(_0x5c26f2(0x93))/0x8*(-parseInt(_0x5c26f2(0x76))/0x9);if(_0x26861d===_0x3b8d79)break;else _0x454062['push'](_0x454062['shift']());}catch(_0x46e656){_0x454062['push'](_0x454062['shift']());}}}(_0x167f,0xa5ea7));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[_0x2c886f(0x83)]{async['getLintErrors'](){const _0x4d763d=_0x2c886f;return this['getActiveWorkbook']()[_0x4d763d(0x80)]();}}d[_0x2c886f(0x83)][_0x2c886f(0x8a)](C);class A extends o[_0x2c886f(0x7d)]{async[_0x2c886f(0x80)](){const _0x589651=_0x2c886f,_0x1d3019=this[_0x589651(0x7a)](),_0x578a6b=await this[_0x589651(0x79)]();return{'formulaErrors':_0x1d3019,'dataValidationErrors':_0x578a6b};}}o[_0x2c886f(0x7d)][_0x2c886f(0x8a)](A);function _0x38a0(_0x7fc778,_0x32577){_0x7fc778=_0x7fc778-0x75;const _0x167f55=_0x167f();let _0x38a066=_0x167f55[_0x7fc778];return _0x38a066;}class k extends o['FWorksheet']{async[_0x2c886f(0x9c)](){const _0x3c72b8=_0x2c886f,_0x548a00=this[_0x3c72b8(0x91)]['get'](m[_0x3c72b8(0x81)]),_0x54739a=this[_0x3c72b8(0x77)](0x0,0x0,this[_0x3c72b8(0x88)](),this[_0x3c72b8(0x97)]())[_0x3c72b8(0x8b)]();return await _0x548a00['getAllFormulaUsages'](_0x54739a);}async[_0x2c886f(0x87)](){const _0x34e5be=_0x2c886f;return(await this['getFormulaUsages']())[_0x34e5be(0x7e)](m[_0x34e5be(0x99)]);}}o[_0x2c886f(0x84)][_0x2c886f(0x8a)](k);class x extends o[_0x2c886f(0x85)]{async[_0x2c886f(0x9c)](){const _0x2fea49=_0x2c886f,_0x465fbf=this[_0x2fea49(0x91)][_0x2fea49(0x8c)](m[_0x2fea49(0x81)]),_0x9267ce=(({startRow:_0x49108b,endRow:_0x53db74,startColumn:_0x21d6cb,endColumn:_0x36c773})=>{const _0x39011b=_0x2fea49,_0x2e456e=[];for(let _0x117e0a=_0x49108b;_0x117e0a<=_0x53db74;_0x117e0a++){const _0x491ade=[];for(let _0x304f85=_0x21d6cb;_0x304f85<=_0x36c773;_0x304f85++)_0x491ade[_0x39011b(0x90)](this[_0x39011b(0x86)][_0x39011b(0x78)](_0x117e0a,_0x304f85));_0x2e456e[_0x39011b(0x90)](_0x491ade);}return _0x2e456e;})({'startRow':0x0,'endRow':this['_worksheet'][_0x2fea49(0x88)](),'startColumn':0x0,'endColumn':this[_0x2fea49(0x86)][_0x2fea49(0x97)]()}),_0xf3da2f=await _0x465fbf[_0x2fea49(0x96)](_0x9267ce),_0x5c79c0=this[_0x2fea49(0x77)](),_0x498f17=[];for(let _0xc7bb2a=0x0;_0xc7bb2a<_0xf3da2f[_0x2fea49(0x7f)];_0xc7bb2a++){const _0x5738c0=_0xf3da2f[_0xc7bb2a],_0x285cd2=_0x5738c0[_0x2fea49(0x89)],_0x5f06ff=[];for(let _0x385e01=0x0;_0x385e01<_0x285cd2[_0x2fea49(0x7f)];_0x385e01++){const _0x11c560=_0x285cd2[_0x385e01],_0x31d763=F[_0x2fea49(0x8e)](_0x11c560,_0x5c79c0);_0x31d763&&_0x5f06ff[_0x2fea49(0x90)](_0x31d763);}if(_0x5f06ff[_0x2fea49(0x7f)]>0x0){if(_0x5738c0['filledRanges']=_0x5f06ff,!(_0x5738c0[_0x2fea49(0x95)][_0x2fea49(0x92)]>=_0x5c79c0['startRow']&&_0x5738c0[_0x2fea49(0x95)][_0x2fea49(0x92)]<=_0x5c79c0[_0x2fea49(0x9a)]&&_0x5738c0[_0x2fea49(0x95)][_0x2fea49(0x82)]>=_0x5c79c0[_0x2fea49(0x82)]&&_0x5738c0['firstOccurrence']['startColumn']<=_0x5c79c0[_0x2fea49(0x7c)])){const _0x3fced8=_0x5f06ff[0x0],_0x2cc03d=_0x3fced8[_0x2fea49(0x92)]-_0x5738c0[_0x2fea49(0x95)]['startRow'],_0x45d96c=_0x3fced8[_0x2fea49(0x82)]-_0x5738c0[_0x2fea49(0x95)][_0x2fea49(0x82)];_0x5738c0['formula']=await _0x465fbf[_0x2fea49(0x8d)](_0x5738c0['formula'],_0x45d96c,_0x2cc03d),_0x5738c0[_0x2fea49(0x95)]={'startRow':_0x3fced8[_0x2fea49(0x92)],'endRow':_0x3fced8['startRow'],'startColumn':_0x3fced8['startColumn'],'endColumn':_0x3fced8[_0x2fea49(0x82)]};}_0x498f17[_0x2fea49(0x90)](_0x5738c0);}}return _0x498f17;}async[_0x2c886f(0x87)](){const _0x35da1d=_0x2c886f;return(await this[_0x35da1d(0x9c)]())[_0x35da1d(0x7e)](m[_0x35da1d(0x99)]);}}o[_0x2c886f(0x85)][_0x2c886f(0x8a)](x);function _0x167f(){const _0x212fa3=['IFormulaUsageAnalyzer','startColumn','FUniver','FWorksheet','FRange','_worksheet','getFormulaUsagesAsA1','getMaxRows','filledRanges','extend','getCellDataGrid','get','moveFormulaRefOffset','getIntersectRange','1232459rUGTEG','push','_injector','startRow','1594448oKXdkd','27362lDoCVI','firstOccurrence','getAllFormulaUsages','getMaxColumns','7346772jsFGba','toA1','endRow','2814490qtXSYG','getFormulaUsages','3977796kyYrzF','6231106QuYrsD','9nwYHJf','getRange','getCellRaw','getAllDataValidationErrorAsync','getAllFormulaError','3rMhiFQ','endColumn','FWorkbook','map','length','getLintErrors'];_0x167f=function(){return _0x212fa3;};return _0x167f();}
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);