@univerjs-pro/sheets-mcp 0.12.2-nightly.202511290905 → 0.12.3-experimental.20251204-1549a8e

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/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x35d3(){const _0x4d7c0e=['extend','getCellRaw','formula','50BpyJZX','filledRanges','startRow','6zUayKh','getRange','_injector','getLintErrors','map','getCellDataGrid','9AiGMcx','push','getActiveWorkbook','getAllFormulaError','getMaxRows','1540790Cgnntt','length','getAllFormulaUsages','_worksheet','8917208JuuyAR','moveFormulaRefOffset','3660350ZZUcgV','2399444YGKNkD','915867NOGofU','getMaxColumns','35675iLPSoM','startColumn','getFormulaUsagesAsA1','getFormulaUsages','949921UzthAg'];_0x35d3=function(){return _0x4d7c0e;};return _0x35d3();}const _0x1921fd=_0x4cd5;(function(_0x2ff697,_0x57d736){const _0x22ecee=_0x4cd5,_0x49cf66=_0x2ff697();while(!![]){try{const _0x4990bf=parseInt(_0x22ecee(0x15a))/0x1*(parseInt(_0x22ecee(0x162))/0x2)+-parseInt(_0x22ecee(0x158))/0x3+-parseInt(_0x22ecee(0x157))/0x4+-parseInt(_0x22ecee(0x170))/0x5*(parseInt(_0x22ecee(0x165))/0x6)+parseInt(_0x22ecee(0x15e))/0x7+parseInt(_0x22ecee(0x174))/0x8+parseInt(_0x22ecee(0x16b))/0x9*(-parseInt(_0x22ecee(0x156))/0xa);if(_0x4990bf===_0x57d736)break;else _0x49cf66['push'](_0x49cf66['shift']());}catch(_0x70219c){_0x49cf66['push'](_0x49cf66['shift']());}}}(_0x35d3,0x896c6));import{FUniver as _0x12b181}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x368afb,FWorksheet as _0x1607c4,FRange as _0x1690b0}from'@univerjs/sheets/facade';function _0x4cd5(_0xeb4eec,_0x380b1f){const _0x35d3e8=_0x35d3();return _0x4cd5=function(_0x4cd53a,_0x541806){_0x4cd53a=_0x4cd53a-0x156;let _0x1050e2=_0x35d3e8[_0x4cd53a];return _0x1050e2;},_0x4cd5(_0xeb4eec,_0x380b1f);}import{IFormulaUsageAnalyzer as _0xac85ff,toA1 as _0x21a35b}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x25a2e5}from'@univerjs/core';class C extends _0x12b181{async[_0x1921fd(0x168)](){const _0x25cf77=_0x1921fd;return this[_0x25cf77(0x16d)]()['getLintErrors']();}}_0x12b181[_0x1921fd(0x15f)](C);class U extends _0x368afb{async['getLintErrors'](){const _0x266659=_0x1921fd,_0x4a42cf=this[_0x266659(0x16e)](),_0x25b5e9=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x4a42cf,'dataValidationErrors':_0x25b5e9};}}_0x368afb[_0x1921fd(0x15f)](U);class k extends _0x1607c4{async[_0x1921fd(0x15d)](){const _0x5e0caf=_0x1921fd,_0x3b031e=this[_0x5e0caf(0x167)]['get'](_0xac85ff),_0x4a99c2=this[_0x5e0caf(0x166)](0x0,0x0,this[_0x5e0caf(0x16f)]()+0x1,this['getMaxColumns']()+0x1)[_0x5e0caf(0x16a)]();return await _0x3b031e[_0x5e0caf(0x172)](_0x4a99c2);}async[_0x1921fd(0x15c)](){const _0x466c31=_0x1921fd;return(await this[_0x466c31(0x15d)]())['map'](_0x21a35b);}}_0x1607c4[_0x1921fd(0x15f)](k);class y extends _0x1690b0{async[_0x1921fd(0x15d)](){const _0x357c15=_0x1921fd,_0x28e370=this[_0x357c15(0x167)]['get'](_0xac85ff),_0x5d1959=(({startRow:_0x277129,endRow:_0x3d08ea,startColumn:_0x56ea0d,endColumn:_0x5158a9})=>{const _0x18b559=_0x357c15,_0x330a7f=[];for(let _0x2986c5=_0x277129;_0x2986c5<=_0x3d08ea;_0x2986c5++){const _0x369278=[];for(let _0x4c9526=_0x56ea0d;_0x4c9526<=_0x5158a9;_0x4c9526++)_0x369278[_0x18b559(0x16c)](this[_0x18b559(0x173)][_0x18b559(0x160)](_0x2986c5,_0x4c9526));_0x330a7f[_0x18b559(0x16c)](_0x369278);}return _0x330a7f;})({'startRow':0x0,'endRow':this[_0x357c15(0x173)][_0x357c15(0x16f)](),'startColumn':0x0,'endColumn':this[_0x357c15(0x173)][_0x357c15(0x159)]()}),_0x7cce2e=await _0x28e370[_0x357c15(0x172)](_0x5d1959),_0x2665bc=this[_0x357c15(0x166)](),_0xa8877e=[];for(let _0x5da348=0x0;_0x5da348<_0x7cce2e['length'];_0x5da348++){const _0x126c6f=_0x7cce2e[_0x5da348],_0xad1ff3=_0x126c6f[_0x357c15(0x163)],_0x454f1f=[];for(let _0xdc8feb=0x0;_0xdc8feb<_0xad1ff3[_0x357c15(0x171)];_0xdc8feb++){const _0x39dec7=_0xad1ff3[_0xdc8feb],_0x2780e0=_0x25a2e5(_0x39dec7,_0x2665bc);_0x2780e0&&_0x454f1f[_0x357c15(0x16c)](_0x2780e0);}if(_0x454f1f[_0x357c15(0x171)]>0x0){_0x126c6f[_0x357c15(0x163)]=_0x454f1f;const _0x3ebd8b=_0x454f1f[0x0],_0xc59346=_0x3ebd8b[_0x357c15(0x164)]-_0x2665bc[_0x357c15(0x164)],_0x2b42f1=_0x3ebd8b[_0x357c15(0x15b)]-_0x2665bc['startColumn'];_0x126c6f[_0x357c15(0x161)]=await _0x28e370[_0x357c15(0x175)](_0x126c6f[_0x357c15(0x161)],_0xc59346,_0x2b42f1),_0xa8877e[_0x357c15(0x16c)](_0x126c6f);}}return _0xa8877e;}async['getFormulaUsagesAsA1'](){const _0x59ece2=_0x1921fd;return(await this['getFormulaUsages']())[_0x59ece2(0x169)](_0x21a35b);}}_0x1690b0[_0x1921fd(0x15f)](y);
1
+ const _0x1235ef=_0x401f;(function(_0x420342,_0xdcd9cc){const _0x2e0b07=_0x401f,_0x2302ac=_0x420342();while(!![]){try{const _0x4e22e8=parseInt(_0x2e0b07(0x1b4))/0x1+parseInt(_0x2e0b07(0x1a9))/0x2+-parseInt(_0x2e0b07(0x1b5))/0x3+-parseInt(_0x2e0b07(0x1bd))/0x4+parseInt(_0x2e0b07(0x1be))/0x5+-parseInt(_0x2e0b07(0x1c4))/0x6*(parseInt(_0x2e0b07(0x1c3))/0x7)+parseInt(_0x2e0b07(0x1bf))/0x8;if(_0x4e22e8===_0xdcd9cc)break;else _0x2302ac['push'](_0x2302ac['shift']());}catch(_0x186784){_0x2302ac['push'](_0x2302ac['shift']());}}}(_0x39f0,0x4f98d));import{FUniver as _0x18becf}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x231763,FWorksheet as _0x18472d,FRange as _0x32cb4d}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x4c754d,toA1 as _0x151d5f}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x26c082}from'@univerjs/core';function _0x39f0(){const _0x40c788=['startRow','264152GhChzk','1851180ftTYch','_worksheet','push','getAllFormulaError','getActiveWorkbook','map','getFormulaUsages','filledRanges','1647540cXDrLe','1651075gCeDWH','7045920UxraXH','get','getMaxRows','extend','7UvzUzu','1833648SztjnA','370950rQFuHo','getLintErrors','length','startColumn','getCellDataGrid','getRange','_injector','getFormulaUsagesAsA1','formula','getAllFormulaUsages'];_0x39f0=function(){return _0x40c788;};return _0x39f0();}class C extends _0x18becf{async[_0x1235ef(0x1aa)](){const _0x295c3a=_0x1235ef;return this[_0x295c3a(0x1b9)]()[_0x295c3a(0x1aa)]();}}function _0x401f(_0x114dbd,_0x227d47){_0x114dbd=_0x114dbd-0x1a9;const _0x39f015=_0x39f0();let _0x401f44=_0x39f015[_0x114dbd];return _0x401f44;}_0x18becf[_0x1235ef(0x1c2)](C);class U extends _0x231763{async[_0x1235ef(0x1aa)](){const _0x553adb=_0x1235ef,_0x13ce79=this[_0x553adb(0x1b8)](),_0x36c092=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x13ce79,'dataValidationErrors':_0x36c092};}}_0x231763[_0x1235ef(0x1c2)](U);class k extends _0x18472d{async[_0x1235ef(0x1bb)](){const _0x2f040c=_0x1235ef,_0x166dc6=this['_injector'][_0x2f040c(0x1c0)](_0x4c754d),_0x4e9e52=this[_0x2f040c(0x1ae)](0x0,0x0,this['getMaxRows']()+0x1,this['getMaxColumns']()+0x1)[_0x2f040c(0x1ad)]();return await _0x166dc6[_0x2f040c(0x1b2)](_0x4e9e52);}async['getFormulaUsagesAsA1'](){const _0x5b7a9a=_0x1235ef;return(await this[_0x5b7a9a(0x1bb)]())[_0x5b7a9a(0x1ba)](_0x151d5f);}}_0x18472d[_0x1235ef(0x1c2)](k);class y extends _0x32cb4d{async['getFormulaUsages'](){const _0x409a28=_0x1235ef,_0x945543=this[_0x409a28(0x1af)][_0x409a28(0x1c0)](_0x4c754d),_0x159ff4=(({startRow:_0x49a9b2,endRow:_0x251a22,startColumn:_0xb0859d,endColumn:_0x277a2b})=>{const _0x3e9409=_0x409a28,_0x256dd7=[];for(let _0xc502b7=_0x49a9b2;_0xc502b7<=_0x251a22;_0xc502b7++){const _0x15a380=[];for(let _0x39c91d=_0xb0859d;_0x39c91d<=_0x277a2b;_0x39c91d++)_0x15a380[_0x3e9409(0x1b7)](this[_0x3e9409(0x1b6)]['getCellRaw'](_0xc502b7,_0x39c91d));_0x256dd7[_0x3e9409(0x1b7)](_0x15a380);}return _0x256dd7;})({'startRow':0x0,'endRow':this[_0x409a28(0x1b6)][_0x409a28(0x1c1)](),'startColumn':0x0,'endColumn':this[_0x409a28(0x1b6)]['getMaxColumns']()}),_0x390958=await _0x945543[_0x409a28(0x1b2)](_0x159ff4),_0x11f37f=this[_0x409a28(0x1ae)](),_0x40996f=[];for(let _0x3a2985=0x0;_0x3a2985<_0x390958['length'];_0x3a2985++){const _0x256adf=_0x390958[_0x3a2985],_0x331542=_0x256adf[_0x409a28(0x1bc)],_0x5f283d=[];for(let _0x46e4e5=0x0;_0x46e4e5<_0x331542[_0x409a28(0x1ab)];_0x46e4e5++){const _0x365796=_0x331542[_0x46e4e5],_0x329b6a=_0x26c082(_0x365796,_0x11f37f);_0x329b6a&&_0x5f283d[_0x409a28(0x1b7)](_0x329b6a);}if(_0x5f283d[_0x409a28(0x1ab)]>0x0){_0x256adf[_0x409a28(0x1bc)]=_0x5f283d;const _0x41d457=_0x5f283d[0x0],_0x32bdf3=_0x41d457['startRow']-_0x11f37f[_0x409a28(0x1b3)],_0x299852=_0x41d457[_0x409a28(0x1ac)]-_0x11f37f[_0x409a28(0x1ac)];_0x256adf[_0x409a28(0x1b1)]=await _0x945543['moveFormulaRefOffset'](_0x256adf[_0x409a28(0x1b1)],_0x32bdf3,_0x299852),_0x40996f[_0x409a28(0x1b7)](_0x256adf);}}return _0x40996f;}async[_0x1235ef(0x1b0)](){const _0x2edb3f=_0x1235ef;return(await this[_0x2edb3f(0x1bb)]())[_0x2edb3f(0x1ba)](_0x151d5f);}}_0x32cb4d['extend'](y);