@univerjs-pro/sheets-mcp 0.15.0 → 0.15.1-insiders.20260117-8ce4a01

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 _0x56f699=_0x45bb;(function(_0x41fa90,_0x10bd58){const _0x38ccc1=_0x45bb,_0x1f721a=_0x41fa90();while(!![]){try{const _0x494313=-parseInt(_0x38ccc1(0x1ac))/0x1+-parseInt(_0x38ccc1(0x1a9))/0x2*(-parseInt(_0x38ccc1(0x1a0))/0x3)+-parseInt(_0x38ccc1(0x1b6))/0x4+-parseInt(_0x38ccc1(0x193))/0x5*(-parseInt(_0x38ccc1(0x19b))/0x6)+parseInt(_0x38ccc1(0x1b2))/0x7+-parseInt(_0x38ccc1(0x196))/0x8+-parseInt(_0x38ccc1(0x1a7))/0x9*(-parseInt(_0x38ccc1(0x198))/0xa);if(_0x494313===_0x10bd58)break;else _0x1f721a['push'](_0x1f721a['shift']());}catch(_0x36bd33){_0x1f721a['push'](_0x1f721a['shift']());}}}(_0x3ad3,0x4c78e));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['FUniver']{async[_0x56f699(0x1b3)](){const _0xe6531c=_0x56f699;return this[_0xe6531c(0x1ad)]()[_0xe6531c(0x1b3)]();}}d['FUniver'][_0x56f699(0x1a5)](C);class A extends o[_0x56f699(0x194)]{async[_0x56f699(0x1b3)](){const _0x3748db=_0x56f699,_0xd43b98=this[_0x3748db(0x199)](),_0x193b0c=await this[_0x3748db(0x1ae)]();return{'formulaErrors':_0xd43b98,'dataValidationErrors':_0x193b0c};}}function _0x45bb(_0x4fcd28,_0x52323c){_0x4fcd28=_0x4fcd28-0x192;const _0x3ad3d0=_0x3ad3();let _0x45bb9a=_0x3ad3d0[_0x4fcd28];return _0x45bb9a;}o[_0x56f699(0x194)][_0x56f699(0x1a5)](A);class k extends o[_0x56f699(0x1aa)]{async[_0x56f699(0x19d)](){const _0x2bf6e0=_0x56f699,_0xaa3bdb=this['_injector'][_0x2bf6e0(0x1a4)](m[_0x2bf6e0(0x1a2)]),_0x4286c4=this[_0x2bf6e0(0x1a8)](0x0,0x0,this[_0x2bf6e0(0x1b5)](),this['getMaxColumns']())[_0x2bf6e0(0x19f)]();return await _0xaa3bdb[_0x2bf6e0(0x195)](_0x4286c4);}async[_0x56f699(0x1a3)](){const _0x20ddc3=_0x56f699;return(await this[_0x20ddc3(0x19d)]())[_0x20ddc3(0x1a1)](m['toA1']);}}o[_0x56f699(0x1aa)][_0x56f699(0x1a5)](k);function _0x3ad3(){const _0x374ff7=['getAllDataValidationErrorAsync','getIntersectRange','firstOccurrence','FRange','2720620uHtPUc','getLintErrors','startColumn','getMaxRows','2159888RZhwgW','push','5jYzPfP','FWorkbook','getAllFormulaUsages','3405480LmzlsS','getMaxColumns','1167430NTKgDK','getAllFormulaError','formula','3618720fRgnif','startRow','getFormulaUsages','_worksheet','getCellDataGrid','3bkGANX','map','IFormulaUsageAnalyzer','getFormulaUsagesAsA1','get','extend','getCellRaw','27ApvHIR','getRange','800218XKuTMw','FWorksheet','length','463231bjZARL','getActiveWorkbook'];_0x3ad3=function(){return _0x374ff7;};return _0x3ad3();}class x extends o[_0x56f699(0x1b1)]{async[_0x56f699(0x19d)](){const _0xdccb88=_0x56f699,_0x58bfff=this['_injector'][_0xdccb88(0x1a4)](m['IFormulaUsageAnalyzer']),_0x4b24d1=(({startRow:_0xfe18f8,endRow:_0x5176ef,startColumn:_0x1b87c1,endColumn:_0x4a7d0f})=>{const _0xe2d63a=_0xdccb88,_0x254d4d=[];for(let _0xe9a6a3=_0xfe18f8;_0xe9a6a3<=_0x5176ef;_0xe9a6a3++){const _0x5a97ed=[];for(let _0x729967=_0x1b87c1;_0x729967<=_0x4a7d0f;_0x729967++)_0x5a97ed[_0xe2d63a(0x192)](this[_0xe2d63a(0x19e)][_0xe2d63a(0x1a6)](_0xe9a6a3,_0x729967));_0x254d4d[_0xe2d63a(0x192)](_0x5a97ed);}return _0x254d4d;})({'startRow':0x0,'endRow':this[_0xdccb88(0x19e)][_0xdccb88(0x1b5)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0xdccb88(0x197)]()}),_0x4af0ce=await _0x58bfff[_0xdccb88(0x195)](_0x4b24d1),_0x46a923=this[_0xdccb88(0x1a8)](),_0x59c388=[];for(let _0x22678a=0x0;_0x22678a<_0x4af0ce['length'];_0x22678a++){const _0x56b022=_0x4af0ce[_0x22678a],_0x1f680f=_0x56b022['filledRanges'],_0x5c2243=[];for(let _0x466847=0x0;_0x466847<_0x1f680f['length'];_0x466847++){const _0x18913e=_0x1f680f[_0x466847],_0x314cd9=F[_0xdccb88(0x1af)](_0x18913e,_0x46a923);_0x314cd9&&_0x5c2243[_0xdccb88(0x192)](_0x314cd9);}if(_0x5c2243[_0xdccb88(0x1ab)]>0x0){if(_0x56b022['filledRanges']=_0x5c2243,!(_0x56b022[_0xdccb88(0x1b0)][_0xdccb88(0x19c)]>=_0x46a923[_0xdccb88(0x19c)]&&_0x56b022[_0xdccb88(0x1b0)][_0xdccb88(0x19c)]<=_0x46a923['endRow']&&_0x56b022['firstOccurrence'][_0xdccb88(0x1b4)]>=_0x46a923[_0xdccb88(0x1b4)]&&_0x56b022[_0xdccb88(0x1b0)][_0xdccb88(0x1b4)]<=_0x46a923['endColumn'])){const _0x5a031b=_0x5c2243[0x0],_0x160233=_0x5a031b['startRow']-_0x56b022['firstOccurrence'][_0xdccb88(0x19c)],_0x57b5a7=_0x5a031b[_0xdccb88(0x1b4)]-_0x56b022[_0xdccb88(0x1b0)]['startColumn'];_0x56b022[_0xdccb88(0x19a)]=await _0x58bfff['moveFormulaRefOffset'](_0x56b022[_0xdccb88(0x19a)],_0x57b5a7,_0x160233),_0x56b022[_0xdccb88(0x1b0)]={'startRow':_0x5a031b[_0xdccb88(0x19c)],'endRow':_0x5a031b['startRow'],'startColumn':_0x5a031b['startColumn'],'endColumn':_0x5a031b[_0xdccb88(0x1b4)]};}_0x59c388[_0xdccb88(0x192)](_0x56b022);}}return _0x59c388;}async['getFormulaUsagesAsA1'](){const _0x9ef2e2=_0x56f699;return(await this[_0x9ef2e2(0x19d)]())[_0x9ef2e2(0x1a1)](m['toA1']);}}o[_0x56f699(0x1b1)]['extend'](x);
1
+ 'use strict';const _0x27780f=_0x1b04;(function(_0x1ef2bb,_0x4d2f70){const _0x3e83b9=_0x1b04,_0xf65619=_0x1ef2bb();while(!![]){try{const _0x56f660=parseInt(_0x3e83b9(0x1c0))/0x1+parseInt(_0x3e83b9(0x1bb))/0x2+-parseInt(_0x3e83b9(0x1b6))/0x3+parseInt(_0x3e83b9(0x1be))/0x4*(-parseInt(_0x3e83b9(0x1aa))/0x5)+parseInt(_0x3e83b9(0x1d2))/0x6*(parseInt(_0x3e83b9(0x1a6))/0x7)+-parseInt(_0x3e83b9(0x1a9))/0x8*(parseInt(_0x3e83b9(0x1ab))/0x9)+parseInt(_0x3e83b9(0x1ba))/0xa*(parseInt(_0x3e83b9(0x1bd))/0xb);if(_0x56f660===_0x4d2f70)break;else _0xf65619['push'](_0xf65619['shift']());}catch(_0x5a7230){_0xf65619['push'](_0xf65619['shift']());}}}(_0x2c2c,0x1a366));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[_0x27780f(0x1c6)]{async['getLintErrors'](){const _0x4ce404=_0x27780f;return this[_0x4ce404(0x1c2)]()['getLintErrors']();}}function _0x1b04(_0x5c7236,_0x78a9e6){_0x5c7236=_0x5c7236-0x1a2;const _0x2c2cc4=_0x2c2c();let _0x1b04ca=_0x2c2cc4[_0x5c7236];return _0x1b04ca;}U['FUniver'][_0x27780f(0x1b9)](y);class C extends f[_0x27780f(0x1da)]{async[_0x27780f(0x1ae)](){const _0x4d5086=_0x27780f,_0x2fc77a=this[_0x4d5086(0x1cc)](),_0x16d7a5=await this[_0x4d5086(0x1cf)]();return{'formulaErrors':_0x2fc77a,'dataValidationErrors':_0x16d7a5};}}f[_0x27780f(0x1da)][_0x27780f(0x1b9)](C);class z extends f[_0x27780f(0x1d9)]{async[_0x27780f(0x1d0)](){const _0x3f37bf=_0x27780f,_0x23fe59=this['_injector'][_0x3f37bf(0x1bc)](g['IFormulaUsageAnalyzer']),_0x4591db=this[_0x3f37bf(0x1a3)](0x0,0x0,this[_0x3f37bf(0x1ca)](),this[_0x3f37bf(0x1b1)]())[_0x3f37bf(0x1b0)]();return await _0x23fe59[_0x3f37bf(0x1b3)](_0x4591db);}async[_0x27780f(0x1af)](){const _0x245f33=_0x27780f;return(await this[_0x245f33(0x1d0)]())[_0x245f33(0x1d4)](g[_0x245f33(0x1c8)]);}[_0x27780f(0x1cd)](_0x1cb67b){const _0x4ce57a=_0x27780f,_0x3199ea=this[_0x4ce57a(0x1a7)][_0x4ce57a(0x1bc)](g[_0x4ce57a(0x1a4)]),_0x360ef7=this['getRange'](0x0,0x0,this[_0x4ce57a(0x1ca)](),this[_0x4ce57a(0x1b1)]())[_0x4ce57a(0x1b0)]();return _0x3199ea[_0x4ce57a(0x1c7)](_0x1cb67b),_0x3199ea['getAllStyleUsages'](_0x360ef7,this['_workbook'],this['_worksheet']);}[_0x27780f(0x1a8)](_0x16d6e0){const _0x57c17b=_0x27780f;return this['getStyleUsages'](_0x16d6e0)[_0x57c17b(0x1d4)](g[_0x57c17b(0x1b4)]);}['getSizeUsages'](_0x3451f8){const _0x2720b9=_0x27780f,_0x578e8d=this[_0x2720b9(0x1a7)][_0x2720b9(0x1bc)](g['ISizeUsageAnalyzer']);return _0x578e8d[_0x2720b9(0x1c7)](_0x3451f8),_0x578e8d[_0x2720b9(0x1d5)](this[_0x2720b9(0x1b5)]);}[_0x27780f(0x1a5)](_0x4f9c9d){const _0x1fec7e=_0x27780f,_0x38190a=this['_injector'][_0x1fec7e(0x1bc)](g[_0x1fec7e(0x1c5)]);_0x38190a[_0x1fec7e(0x1c7)](_0x4f9c9d);const _0x10397f=_0x38190a[_0x1fec7e(0x1d5)](this[_0x1fec7e(0x1b5)]);return _0x38190a[_0x1fec7e(0x1c3)](_0x10397f);}}f[_0x27780f(0x1d9)][_0x27780f(0x1b9)](z);function _0x2c2c(){const _0x43f441=['getMaxColumns','filledRanges','getAllFormulaUsages','styleToA1','_worksheet','595947HcsAeP','firstOccurrence','IFormulaUsageAnalyzer','extend','92090DojeYN','107004UxnVGZ','get','363YxPBRh','4osjRUH','getCellRaw','79181WCWlUi','getIntersectRange','getActiveWorkbook','toA1','endColumn','ISizeUsageAnalyzer','FUniver','updateConfig','formulaToA1','startColumn','getMaxRows','getAllStyleUsages','getAllFormulaError','getStyleUsages','length','getAllDataValidationErrorAsync','getFormulaUsages','getSizeUsages','6ZYmAmW','FRange','map','getAllSizeUsages','moveFormulaRefOffset','formula','endRow','FWorksheet','FWorkbook','_workbook','getRange','IStyleUsageAnalyzer','getSizeUsagesAsA1','519267yZscza','_injector','getStyleUsagesAsA1','31672TlftlK','14185tUCFRf','459EbhrTo','push','startRow','getLintErrors','getFormulaUsagesAsA1','getCellDataGrid'];_0x2c2c=function(){return _0x43f441;};return _0x2c2c();}class S extends f[_0x27780f(0x1d3)]{async[_0x27780f(0x1d0)](){const _0x3086e1=_0x27780f,_0x108997=this[_0x3086e1(0x1a7)][_0x3086e1(0x1bc)](g[_0x3086e1(0x1b8)]),_0x5bbabd=(({startRow:_0x2d3f05,endRow:_0xf0b2bd,startColumn:_0x47cfeb,endColumn:_0x57486a})=>{const _0x443f63=_0x3086e1,_0x2c7d6c=[];for(let _0x50fcd1=_0x2d3f05;_0x50fcd1<=_0xf0b2bd;_0x50fcd1++){const _0x4ab0db=[];for(let _0x162bff=_0x47cfeb;_0x162bff<=_0x57486a;_0x162bff++)_0x4ab0db['push'](this[_0x443f63(0x1b5)][_0x443f63(0x1bf)](_0x50fcd1,_0x162bff));_0x2c7d6c[_0x443f63(0x1ac)](_0x4ab0db);}return _0x2c7d6c;})({'startRow':0x0,'endRow':this[_0x3086e1(0x1b5)][_0x3086e1(0x1ca)](),'startColumn':0x0,'endColumn':this[_0x3086e1(0x1b5)]['getMaxColumns']()}),_0x444d6d=await _0x108997[_0x3086e1(0x1b3)](_0x5bbabd),_0x9f7e6e=this[_0x3086e1(0x1a3)](),_0x21d788=[];for(let _0x49f9e2=0x0;_0x49f9e2<_0x444d6d['length'];_0x49f9e2++){const _0x1ab66e=_0x444d6d[_0x49f9e2],_0x38b060=_0x1ab66e[_0x3086e1(0x1b2)],_0x19562d=[];for(let _0x53166e=0x0;_0x53166e<_0x38b060[_0x3086e1(0x1ce)];_0x53166e++){const _0x167596=_0x38b060[_0x53166e],_0xb1d65b=m['getIntersectRange'](_0x167596,_0x9f7e6e);_0xb1d65b&&_0x19562d[_0x3086e1(0x1ac)](_0xb1d65b);}if(_0x19562d['length']>0x0){if(_0x1ab66e[_0x3086e1(0x1b2)]=_0x19562d,!(_0x1ab66e[_0x3086e1(0x1b7)][_0x3086e1(0x1ad)]>=_0x9f7e6e[_0x3086e1(0x1ad)]&&_0x1ab66e[_0x3086e1(0x1b7)][_0x3086e1(0x1ad)]<=_0x9f7e6e[_0x3086e1(0x1d8)]&&_0x1ab66e[_0x3086e1(0x1b7)]['startColumn']>=_0x9f7e6e[_0x3086e1(0x1c9)]&&_0x1ab66e[_0x3086e1(0x1b7)][_0x3086e1(0x1c9)]<=_0x9f7e6e[_0x3086e1(0x1c4)])){const _0x2c464b=_0x19562d[0x0],_0x4c9f7f=_0x2c464b[_0x3086e1(0x1ad)]-_0x1ab66e['firstOccurrence'][_0x3086e1(0x1ad)],_0x43934d=_0x2c464b['startColumn']-_0x1ab66e['firstOccurrence'][_0x3086e1(0x1c9)];_0x1ab66e[_0x3086e1(0x1d7)]=await _0x108997[_0x3086e1(0x1d6)](_0x1ab66e[_0x3086e1(0x1d7)],_0x43934d,_0x4c9f7f),_0x1ab66e[_0x3086e1(0x1b7)]={'startRow':_0x2c464b[_0x3086e1(0x1ad)],'endRow':_0x2c464b[_0x3086e1(0x1ad)],'startColumn':_0x2c464b['startColumn'],'endColumn':_0x2c464b['startColumn']};}_0x21d788[_0x3086e1(0x1ac)](_0x1ab66e);}}return _0x21d788;}async[_0x27780f(0x1af)](){const _0x4302b3=_0x27780f;return(await this[_0x4302b3(0x1d0)]())[_0x4302b3(0x1d4)](g[_0x4302b3(0x1c8)]);}[_0x27780f(0x1cd)](_0x1cde78){const _0xb6e26e=_0x27780f,_0x369216=this[_0xb6e26e(0x1a7)][_0xb6e26e(0x1bc)](g[_0xb6e26e(0x1a4)]),_0x232594=(({startRow:_0x49adbc,endRow:_0x29b11b,startColumn:_0x37daf0,endColumn:_0x460b31})=>{const _0x40f479=_0xb6e26e,_0x3759df=[];for(let _0x368036=_0x49adbc;_0x368036<=_0x29b11b;_0x368036++){const _0x56ea3e=[];for(let _0x1774e2=_0x37daf0;_0x1774e2<=_0x460b31;_0x1774e2++)_0x56ea3e['push'](this[_0x40f479(0x1b5)][_0x40f479(0x1bf)](_0x368036,_0x1774e2));_0x3759df[_0x40f479(0x1ac)](_0x56ea3e);}return _0x3759df;})({'startRow':0x0,'endRow':this[_0xb6e26e(0x1b5)][_0xb6e26e(0x1ca)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0xb6e26e(0x1b1)]()});_0x369216[_0xb6e26e(0x1c7)](_0x1cde78);const _0x425b38=_0x369216[_0xb6e26e(0x1cb)](_0x232594,this[_0xb6e26e(0x1a2)],this['_worksheet']),_0x44623e=this[_0xb6e26e(0x1a3)](),_0x3ccc37=[];for(let _0x1d7091=0x0;_0x1d7091<_0x425b38[_0xb6e26e(0x1ce)];_0x1d7091++){const _0x551ee7=_0x425b38[_0x1d7091],_0x101058=_0x551ee7[_0xb6e26e(0x1b2)],_0x317a3e=[];for(let _0x1276ea=0x0;_0x1276ea<_0x101058['length'];_0x1276ea++){const _0x575421=_0x101058[_0x1276ea],_0x3b2479=m[_0xb6e26e(0x1c1)](_0x575421,_0x44623e);_0x3b2479&&_0x317a3e[_0xb6e26e(0x1ac)](_0x3b2479);}_0x317a3e[_0xb6e26e(0x1ce)]>0x0&&(_0x551ee7[_0xb6e26e(0x1b2)]=_0x317a3e,_0x3ccc37[_0xb6e26e(0x1ac)](_0x551ee7));}return _0x3ccc37;}[_0x27780f(0x1a8)](_0x48e21f){const _0x2f506c=_0x27780f;return this[_0x2f506c(0x1cd)](_0x48e21f)['map'](g[_0x2f506c(0x1b4)]);}[_0x27780f(0x1d1)](_0x4e0bc7){const _0x1bdabb=_0x27780f,_0x129da7=this[_0x1bdabb(0x1a7)]['get'](g[_0x1bdabb(0x1c5)]),_0x10e7ad=this[_0x1bdabb(0x1a3)]();return _0x129da7[_0x1bdabb(0x1c7)](_0x4e0bc7),_0x129da7[_0x1bdabb(0x1d5)](this[_0x1bdabb(0x1b5)],_0x10e7ad[_0x1bdabb(0x1ad)],_0x10e7ad[_0x1bdabb(0x1d8)],_0x10e7ad[_0x1bdabb(0x1c9)],_0x10e7ad['endColumn']);}[_0x27780f(0x1a5)](_0x1c387b){const _0x825bda=_0x27780f,_0x49b499=this[_0x825bda(0x1d1)](_0x1c387b);return this[_0x825bda(0x1a7)]['get'](g[_0x825bda(0x1c5)])['toA1'](_0x49b499);}}f[_0x27780f(0x1d3)][_0x27780f(0x1b9)](S);