@univerjs-pro/sheets-mcp 0.15.0-insiders.20251227-c108ce3 → 0.15.0-insiders.20260107-3441c7a

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 _0x1840d0=_0x89c4;(function(_0xf9ad0b,_0x1dd591){const _0x1507dd=_0x89c4,_0x24d906=_0xf9ad0b();while(!![]){try{const _0x584575=parseInt(_0x1507dd(0x1b0))/0x1*(parseInt(_0x1507dd(0x1ad))/0x2)+-parseInt(_0x1507dd(0x197))/0x3+-parseInt(_0x1507dd(0x190))/0x4*(-parseInt(_0x1507dd(0x18f))/0x5)+-parseInt(_0x1507dd(0x187))/0x6*(parseInt(_0x1507dd(0x1af))/0x7)+-parseInt(_0x1507dd(0x1a7))/0x8+parseInt(_0x1507dd(0x17c))/0x9+parseInt(_0x1507dd(0x1ae))/0xa;if(_0x584575===_0x1dd591)break;else _0x24d906['push'](_0x24d906['shift']());}catch(_0xb61dcc){_0x24d906['push'](_0x24d906['shift']());}}}(_0x2be7,0x717f1));const U=require('@univerjs/core/facade');function _0x89c4(_0x9a3104,_0x324a3b){_0x9a3104=_0x9a3104-0x17c;const _0x2be799=_0x2be7();let _0x89c4ff=_0x2be799[_0x9a3104];return _0x89c4ff;}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['FUniver']{async[_0x1840d0(0x18c)](){const _0x1f84a0=_0x1840d0;return this[_0x1f84a0(0x1a1)]()[_0x1f84a0(0x18c)]();}}U[_0x1840d0(0x1a8)][_0x1840d0(0x1a4)](y);class C extends f['FWorkbook']{async[_0x1840d0(0x18c)](){const _0x332135=this['getAllFormulaError'](),_0x1c8df8=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x332135,'dataValidationErrors':_0x1c8df8};}}function _0x2be7(){const _0x1ae415=['map','extend','endRow','get','3380504eBDdiN','FUniver','ISizeUsageAnalyzer','updateConfig','firstOccurrence','getSizeUsagesAsA1','2bxVYNS','8240210RjEsEw','6139294FNMIus','883543nUhMOI','startRow','4356936dbndpZ','getAllSizeUsages','FWorkbook','startColumn','_worksheet','FWorksheet','getCellDataGrid','getSizeUsages','endColumn','_workbook','formula','6oyXCgu','getMaxRows','getStyleUsagesAsA1','getAllFormulaUsages','getIntersectRange','getLintErrors','formulaToA1','styleToA1','5nzwcke','297588retKLW','FRange','length','getFormulaUsagesAsA1','getFormulaUsages','push','IStyleUsageAnalyzer','1504737qKeSZa','getStyleUsages','IFormulaUsageAnalyzer','getCellRaw','getRange','_injector','getAllStyleUsages','filledRanges','getMaxColumns','toA1','getActiveWorkbook','moveFormulaRefOffset'];_0x2be7=function(){return _0x1ae415;};return _0x2be7();}f[_0x1840d0(0x17e)]['extend'](C);class z extends f[_0x1840d0(0x181)]{async[_0x1840d0(0x194)](){const _0x1837d0=_0x1840d0,_0x3eb2b1=this[_0x1837d0(0x19c)]['get'](g[_0x1837d0(0x199)]),_0x5946c2=this[_0x1837d0(0x19b)](0x0,0x0,this[_0x1837d0(0x188)](),this['getMaxColumns']())[_0x1837d0(0x182)]();return await _0x3eb2b1[_0x1837d0(0x18a)](_0x5946c2);}async[_0x1840d0(0x193)](){const _0x2639e2=_0x1840d0;return(await this[_0x2639e2(0x194)]())[_0x2639e2(0x1a3)](g[_0x2639e2(0x18d)]);}[_0x1840d0(0x198)](_0x42a72d){const _0x315ea3=_0x1840d0,_0x58e4b3=this[_0x315ea3(0x19c)][_0x315ea3(0x1a6)](g[_0x315ea3(0x196)]),_0x33c5f9=this[_0x315ea3(0x19b)](0x0,0x0,this[_0x315ea3(0x188)](),this[_0x315ea3(0x19f)]())['getCellDataGrid']();return _0x58e4b3[_0x315ea3(0x1aa)](_0x42a72d),_0x58e4b3[_0x315ea3(0x19d)](_0x33c5f9,this[_0x315ea3(0x185)],this[_0x315ea3(0x180)]);}['getStyleUsagesAsA1'](_0x26f14c){const _0x53fe6c=_0x1840d0;return this['getStyleUsages'](_0x26f14c)[_0x53fe6c(0x1a3)](g[_0x53fe6c(0x18e)]);}[_0x1840d0(0x183)](_0x237b1d){const _0x593326=_0x1840d0,_0xadde8f=this[_0x593326(0x19c)][_0x593326(0x1a6)](g[_0x593326(0x1a9)]);return _0xadde8f[_0x593326(0x1aa)](_0x237b1d),_0xadde8f[_0x593326(0x17d)](this[_0x593326(0x180)]);}[_0x1840d0(0x1ac)](_0x1c897a){const _0x41ce54=_0x1840d0,_0x58fe7a=this[_0x41ce54(0x19c)][_0x41ce54(0x1a6)](g['ISizeUsageAnalyzer']);_0x58fe7a['updateConfig'](_0x1c897a);const _0x3f2855=_0x58fe7a[_0x41ce54(0x17d)](this[_0x41ce54(0x180)]);return _0x58fe7a[_0x41ce54(0x1a0)](_0x3f2855);}}f[_0x1840d0(0x181)]['extend'](z);class S extends f['FRange']{async[_0x1840d0(0x194)](){const _0x27bea6=_0x1840d0,_0x26f9e7=this[_0x27bea6(0x19c)][_0x27bea6(0x1a6)](g[_0x27bea6(0x199)]),_0x45745b=(({startRow:_0x30cd86,endRow:_0x59dca9,startColumn:_0x241449,endColumn:_0x3cee4c})=>{const _0x9101e9=_0x27bea6,_0x36d527=[];for(let _0x1ebfa1=_0x30cd86;_0x1ebfa1<=_0x59dca9;_0x1ebfa1++){const _0x114bc5=[];for(let _0x552dc0=_0x241449;_0x552dc0<=_0x3cee4c;_0x552dc0++)_0x114bc5[_0x9101e9(0x195)](this[_0x9101e9(0x180)][_0x9101e9(0x19a)](_0x1ebfa1,_0x552dc0));_0x36d527[_0x9101e9(0x195)](_0x114bc5);}return _0x36d527;})({'startRow':0x0,'endRow':this[_0x27bea6(0x180)]['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x27bea6(0x180)][_0x27bea6(0x19f)]()}),_0x2ed170=await _0x26f9e7['getAllFormulaUsages'](_0x45745b),_0x33be29=this[_0x27bea6(0x19b)](),_0x4cf4f5=[];for(let _0x2201a3=0x0;_0x2201a3<_0x2ed170[_0x27bea6(0x192)];_0x2201a3++){const _0x8a56c4=_0x2ed170[_0x2201a3],_0x321989=_0x8a56c4[_0x27bea6(0x19e)],_0xf9b1f1=[];for(let _0x3ea7ce=0x0;_0x3ea7ce<_0x321989[_0x27bea6(0x192)];_0x3ea7ce++){const _0x59705b=_0x321989[_0x3ea7ce],_0x2d8605=m['getIntersectRange'](_0x59705b,_0x33be29);_0x2d8605&&_0xf9b1f1[_0x27bea6(0x195)](_0x2d8605);}if(_0xf9b1f1[_0x27bea6(0x192)]>0x0){if(_0x8a56c4[_0x27bea6(0x19e)]=_0xf9b1f1,!(_0x8a56c4[_0x27bea6(0x1ab)][_0x27bea6(0x1b1)]>=_0x33be29['startRow']&&_0x8a56c4['firstOccurrence']['startRow']<=_0x33be29[_0x27bea6(0x1a5)]&&_0x8a56c4[_0x27bea6(0x1ab)][_0x27bea6(0x17f)]>=_0x33be29['startColumn']&&_0x8a56c4[_0x27bea6(0x1ab)]['startColumn']<=_0x33be29[_0x27bea6(0x184)])){const _0x2ae70e=_0xf9b1f1[0x0],_0x1de990=_0x2ae70e[_0x27bea6(0x1b1)]-_0x8a56c4[_0x27bea6(0x1ab)][_0x27bea6(0x1b1)],_0x4d910d=_0x2ae70e[_0x27bea6(0x17f)]-_0x8a56c4['firstOccurrence'][_0x27bea6(0x17f)];_0x8a56c4[_0x27bea6(0x186)]=await _0x26f9e7[_0x27bea6(0x1a2)](_0x8a56c4[_0x27bea6(0x186)],_0x4d910d,_0x1de990),_0x8a56c4['firstOccurrence']={'startRow':_0x2ae70e[_0x27bea6(0x1b1)],'endRow':_0x2ae70e[_0x27bea6(0x1b1)],'startColumn':_0x2ae70e[_0x27bea6(0x17f)],'endColumn':_0x2ae70e['startColumn']};}_0x4cf4f5[_0x27bea6(0x195)](_0x8a56c4);}}return _0x4cf4f5;}async[_0x1840d0(0x193)](){const _0x250f7a=_0x1840d0;return(await this[_0x250f7a(0x194)]())['map'](g['formulaToA1']);}['getStyleUsages'](_0x505937){const _0x575352=_0x1840d0,_0x42f2ab=this[_0x575352(0x19c)]['get'](g[_0x575352(0x196)]),_0x47b94f=(({startRow:_0x2dee54,endRow:_0x317335,startColumn:_0x331a4d,endColumn:_0x4372bb})=>{const _0x58e507=_0x575352,_0x190ed8=[];for(let _0x1a381b=_0x2dee54;_0x1a381b<=_0x317335;_0x1a381b++){const _0x22710c=[];for(let _0x177e1e=_0x331a4d;_0x177e1e<=_0x4372bb;_0x177e1e++)_0x22710c[_0x58e507(0x195)](this[_0x58e507(0x180)][_0x58e507(0x19a)](_0x1a381b,_0x177e1e));_0x190ed8['push'](_0x22710c);}return _0x190ed8;})({'startRow':0x0,'endRow':this[_0x575352(0x180)][_0x575352(0x188)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x575352(0x19f)]()});_0x42f2ab['updateConfig'](_0x505937);const _0x12acad=_0x42f2ab[_0x575352(0x19d)](_0x47b94f,this[_0x575352(0x185)],this[_0x575352(0x180)]),_0x261bdc=this[_0x575352(0x19b)](),_0x45ed6b=[];for(let _0x52ccc1=0x0;_0x52ccc1<_0x12acad[_0x575352(0x192)];_0x52ccc1++){const _0x3d05c5=_0x12acad[_0x52ccc1],_0x2dac8a=_0x3d05c5[_0x575352(0x19e)],_0x5da998=[];for(let _0x12d0f9=0x0;_0x12d0f9<_0x2dac8a['length'];_0x12d0f9++){const _0x2b31dd=_0x2dac8a[_0x12d0f9],_0x4aca0e=m[_0x575352(0x18b)](_0x2b31dd,_0x261bdc);_0x4aca0e&&_0x5da998['push'](_0x4aca0e);}_0x5da998[_0x575352(0x192)]>0x0&&(_0x3d05c5[_0x575352(0x19e)]=_0x5da998,_0x45ed6b['push'](_0x3d05c5));}return _0x45ed6b;}[_0x1840d0(0x189)](_0x55c61c){const _0x21cdfc=_0x1840d0;return this['getStyleUsages'](_0x55c61c)[_0x21cdfc(0x1a3)](g[_0x21cdfc(0x18e)]);}[_0x1840d0(0x183)](_0x57e841){const _0x17cbbf=_0x1840d0,_0x50c294=this[_0x17cbbf(0x19c)][_0x17cbbf(0x1a6)](g[_0x17cbbf(0x1a9)]),_0x577072=this['getRange']();return _0x50c294[_0x17cbbf(0x1aa)](_0x57e841),_0x50c294[_0x17cbbf(0x17d)](this['_worksheet'],_0x577072[_0x17cbbf(0x1b1)],_0x577072[_0x17cbbf(0x1a5)],_0x577072[_0x17cbbf(0x17f)],_0x577072['endColumn']);}['getSizeUsagesAsA1'](_0x77c632){const _0x5560ea=_0x1840d0,_0x2a8520=this[_0x5560ea(0x183)](_0x77c632);return this[_0x5560ea(0x19c)][_0x5560ea(0x1a6)](g['ISizeUsageAnalyzer'])[_0x5560ea(0x1a0)](_0x2a8520);}}f[_0x1840d0(0x191)][_0x1840d0(0x1a4)](S);