univer-cli 0.1.7 → 0.1.9

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.
@@ -1 +1 @@
1
- const _0x52735d=_0x1041;(function(_0x2645a0,_0x50f5a5){const _0xc45b7e=_0x1041,_0x335a26=_0x2645a0();while(!![]){try{const _0x41e977=parseInt(_0xc45b7e(0x1e3))/0x1+-parseInt(_0xc45b7e(0x20b))/0x2*(-parseInt(_0xc45b7e(0x207))/0x3)+parseInt(_0xc45b7e(0x1f9))/0x4*(parseInt(_0xc45b7e(0x205))/0x5)+parseInt(_0xc45b7e(0x20f))/0x6*(parseInt(_0xc45b7e(0x1e5))/0x7)+-parseInt(_0xc45b7e(0x1e4))/0x8+-parseInt(_0xc45b7e(0x1f7))/0x9+-parseInt(_0xc45b7e(0x1de))/0xa;if(_0x41e977===_0x50f5a5)break;else _0x335a26['push'](_0x335a26['shift']());}catch(_0x2e3b45){_0x335a26['push'](_0x335a26['shift']());}}}(_0x19a4,0x7f366));import{randomBytes as _0x151f3c}from'node:crypto';import{AsyncLocalStorage as _0x1b8c86}from'node:async_hooks';function _0x1041(_0x5f311b,_0x823733){_0x5f311b=_0x5f311b-0x1da;const _0x19a409=_0x19a4();let _0x1041fd=_0x19a409[_0x5f311b];return _0x1041fd;}const n={'Cli':_0x52735d(0x1df),'Daemon':_0x52735d(0x1ea),'Runtime':_0x52735d(0x1e8),'ViewHost':'view-host'},r={'Cli':_0x52735d(0x1df),'Daemon':'daemon','RuntimeSession':_0x52735d(0x1f3),'RuntimeRunner':_0x52735d(0x208),'ViewHost':_0x52735d(0x204),'Cloud':'cloud','Doctor':_0x52735d(0x20a),'Observability':_0x52735d(0x213)},i={'CliCommandStart':'cli.command.start','CliCommandFinish':_0x52735d(0x1ff),'CliCommandError':'cli.command.error','CliCommandCancel':_0x52735d(0x214),'DaemonStart':_0x52735d(0x1dc),'DaemonStop':_0x52735d(0x211),'DaemonRpcStart':'daemon.rpc.start','DaemonRpcFinish':'daemon.rpc.finish','DaemonRpcError':_0x52735d(0x209),'RuntimeSessionCreated':_0x52735d(0x202),'RuntimeSessionDisposed':'runtime.session.disposed','RuntimeRunnerExit':_0x52735d(0x1f5),'RuntimeRpcError':_0x52735d(0x201),'ViewHostStart':_0x52735d(0x1ef),'ViewHostRequestError':_0x52735d(0x203),'ViewHostUncaughtException':'view-host.uncaught-exception','ViewHostUnhandledRejection':_0x52735d(0x20d),'ViewHostBrowserError':_0x52735d(0x1ec),'ViewHostBrowserUnhandledRejection':_0x52735d(0x1db),'ViewHostBrowserResourceError':_0x52735d(0x1f0),'ViewHostBrowserFetchError':'view-host.browser.fetch-error','CloudHttpStart':'cloud.http.start','CloudHttpFinish':'cloud.http.finish','CloudHttpError':_0x52735d(0x20c),'TraceContextMissing':_0x52735d(0x1f2),'TraceContextInvalid':_0x52735d(0x206),'DoctorCollectStart':_0x52735d(0x1fe),'DoctorCollectFinish':_0x52735d(0x1f1)},a={'CliCommand':_0x52735d(0x1fc),'DaemonRpcClient':_0x52735d(0x215),'DaemonRpcServer':_0x52735d(0x1eb),'DaemonRpcOrphan':_0x52735d(0x217),'RuntimeRpcClient':_0x52735d(0x1f4),'RuntimeEval':_0x52735d(0x212),'ViewHostHttpRequest':_0x52735d(0x1ee),'CloudHttpRequest':_0x52735d(0x1e1),'DoctorCollect':_0x52735d(0x216)};var o='00',s='01',c=/^[0-9a-f]{32}$/,l=/^[0-9a-f]{16}$/,u=/^[0-9a-f]{2}$/,d='00000000000000000000000000000000',f=_0x52735d(0x1e7);function p(){return b(0x10,d);}function m(){return b(0x8,f);}function h(){return{'traceId':p(),'spanId':m(),'traceFlags':s};}function g(_0x2fb12b){const _0x6a5888=_0x52735d;return{'traceId':_0x2fb12b[_0x6a5888(0x1e0)],'parentSpanId':_0x2fb12b['spanId'],'spanId':m(),'traceFlags':_0x2fb12b[_0x6a5888(0x210)]};}function _0x19a4(){const _0x3a1cf3=['daemon','daemon.rpc.server','view-host.browser.error','split','view-host.http.request','view-host.start','view-host.browser.resource-error','doctor.collect.finish','trace.context.missing','runtime-session','runtime.rpc.client','runtime.runner.exit','injectHeaders','6150879aDCbxV','storage','34996IdYCHE','withRootSpan','active','cli.command','toString','doctor.collect.start','cli.command.finish','withSpan','runtime.rpc.error','runtime.session.created','view-host.request.error','view-host','445uftbuq','trace.context.invalid','1707RxWxDw','runtime-runner','daemon.rpc.error','doctor','3554kyFwvz','cloud.http.error','view-host.unhandled-rejection','spanId','6SkDOvu','traceFlags','daemon.stop','runtime.eval','observability','cli.command.cancel','daemon.rpc.client','doctor.collect','daemon.rpc.orphan','withContext','view-host.browser.unhandled-rejection','daemon.start','injectMeta','12377190IwBsYZ','cli','traceId','cloud.http.request','getStore','369957TEeIJf','3488288speacV','5029619SJdQHi','test','0000000000000000','runtime','run'];_0x19a4=function(){return _0x3a1cf3;};return _0x19a4();}function _(_0xbd470e){const _0xe886b7=_0x52735d;if(_0xbd470e===void 0x0)return;let _0x262062=_0xbd470e['trim']()[_0xe886b7(0x1ed)]('-');if(_0x262062['length']!==0x4)return;let [_0x11aeab,_0x353ce8,_0x9dff30,_0x48d672]=_0x262062;if(!(_0x11aeab!==o||!c[_0xe886b7(0x1e6)](_0x353ce8)||_0x353ce8===d||!l['test'](_0x9dff30)||_0x9dff30===f||!u[_0xe886b7(0x1e6)](_0x48d672)))return{'traceId':_0x353ce8,'spanId':_0x9dff30,'traceFlags':_0x48d672};}function v(_0x206a10){const _0x49af53=_0x52735d;return o+'-'+_0x206a10['traceId']+'-'+_0x206a10[_0x49af53(0x20e)]+'-'+_0x206a10[_0x49af53(0x210)];}const y=new class{[_0x52735d(0x1f8)]=new _0x1b8c86();['active'](){const _0x3a75d4=_0x52735d;return this[_0x3a75d4(0x1f8)][_0x3a75d4(0x1e2)]();}[_0x52735d(0x1da)](_0x417056,_0x3197c0){const _0x1ea3c4=_0x52735d;return this[_0x1ea3c4(0x1f8)][_0x1ea3c4(0x1e9)](_0x417056,_0x3197c0);}[_0x52735d(0x1fa)](_0x457ea6,_0x5167b6){return this['withContext'](h(),_0x5167b6);}[_0x52735d(0x200)](_0x3e228a,_0x2af44d){let _0x484f9a=this['active']();return this['withContext'](_0x484f9a===void 0x0?h():g(_0x484f9a),_0x2af44d);}[_0x52735d(0x1dd)](_0x310999){const _0x43c5a7=_0x52735d;let _0x3a0af9=this[_0x43c5a7(0x1fb)]()??h();return{..._0x310999??{},'traceparent':v(_0x3a0af9)};}[_0x52735d(0x1f6)](_0x1a3014){const _0xbde477=_0x52735d;let _0x2c836f=this[_0xbde477(0x1fb)]()??h();return{..._0x1a3014??{},'traceparent':v(_0x2c836f)};}}();function b(_0x530ea5,_0x4e9ff0){const _0x4d27ff=_0x52735d;let _0x30bf57='';do _0x30bf57=_0x151f3c(_0x530ea5)[_0x4d27ff(0x1fd)]('hex');while(_0x30bf57===_0x4e9ff0);return _0x30bf57;}export{n as a,i,y as n,a as o,r,_ as t};
1
+ const _0x54e10c=_0x40df;(function(_0x28c34c,_0xedbbff){const _0x288491=_0x40df,_0x4844ca=_0x28c34c();while(!![]){try{const _0x25e7ed=parseInt(_0x288491(0x149))/0x1+-parseInt(_0x288491(0x12b))/0x2+-parseInt(_0x288491(0x135))/0x3*(-parseInt(_0x288491(0x129))/0x4)+parseInt(_0x288491(0x11e))/0x5+-parseInt(_0x288491(0x14b))/0x6+-parseInt(_0x288491(0x123))/0x7+-parseInt(_0x288491(0x12c))/0x8;if(_0x25e7ed===_0xedbbff)break;else _0x4844ca['push'](_0x4844ca['shift']());}catch(_0x3aa302){_0x4844ca['push'](_0x4844ca['shift']());}}}(_0x26fb,0xa40cc));function _0x26fb(){const _0x13f036=['injectMeta','view-host.unhandled-rejection','test','toString','trace.context.invalid','2643152LnKNVG','withContext','1144288HNgPFp','6223240isQaDW','runtime.rpc.client','getStore','view-host.start','trim','runtime.session.created','daemon.stop','cli.command.start','run','3ocTZxW','runtime.runner.exit','cloud.http.finish','cloud','daemon.rpc.orphan','storage','length','active','runtime-runner','trace.context.missing','daemon','view-host','hex','spanId','daemon.rpc.start','doctor.collect.start','cli.command.cancel','view-host.uncaught-exception','traceFlags','withSpan','972128HoxAMS','daemon.start','243810YhokJc','view-host.request.error','observability','doctor','doctor.collect','withRootSpan','view-host.browser.error','daemon.rpc.server','daemon.rpc.error','cli.command.error','2639810qxLVNf','view-host.browser.unhandled-rejection','cli.command.finish','cloud.http.request','0000000000000000','687722sEhxoz'];_0x26fb=function(){return _0x13f036;};return _0x26fb();}import{randomBytes as _0x3990bb}from'node:crypto';function _0x40df(_0x402eb6,_0x2a5127){_0x402eb6=_0x402eb6-0x116;const _0x26fbec=_0x26fb();let _0x40df1a=_0x26fbec[_0x402eb6];return _0x40df1a;}import{AsyncLocalStorage as _0x477f8b}from'node:async_hooks';const n={'Cli':'cli','Daemon':'daemon','Runtime':'runtime','ViewHost':_0x54e10c(0x140)},r={'Cli':'cli','Daemon':_0x54e10c(0x13f),'RuntimeSession':'runtime-session','RuntimeRunner':_0x54e10c(0x13d),'ViewHost':_0x54e10c(0x140),'Cloud':_0x54e10c(0x138),'Doctor':_0x54e10c(0x117),'Observability':_0x54e10c(0x116)},i={'CliCommandStart':_0x54e10c(0x133),'CliCommandFinish':_0x54e10c(0x120),'CliCommandError':_0x54e10c(0x11d),'CliCommandCancel':_0x54e10c(0x145),'DaemonStart':_0x54e10c(0x14a),'DaemonStop':_0x54e10c(0x132),'DaemonRpcStart':_0x54e10c(0x143),'DaemonRpcFinish':'daemon.rpc.finish','DaemonRpcError':_0x54e10c(0x11c),'RuntimeSessionCreated':_0x54e10c(0x131),'RuntimeSessionDisposed':'runtime.session.disposed','RuntimeRunnerExit':_0x54e10c(0x136),'RuntimeRpcError':'runtime.rpc.error','ViewHostStart':_0x54e10c(0x12f),'ViewHostRequestError':_0x54e10c(0x14c),'ViewHostUncaughtException':_0x54e10c(0x146),'ViewHostUnhandledRejection':_0x54e10c(0x125),'ViewHostBrowserError':_0x54e10c(0x11a),'ViewHostBrowserUnhandledRejection':_0x54e10c(0x11f),'ViewHostBrowserResourceError':'view-host.browser.resource-error','ViewHostBrowserFetchError':'view-host.browser.fetch-error','CloudHttpStart':'cloud.http.start','CloudHttpFinish':_0x54e10c(0x137),'CloudHttpError':'cloud.http.error','TraceContextMissing':_0x54e10c(0x13e),'TraceContextInvalid':_0x54e10c(0x128),'DoctorCollectStart':_0x54e10c(0x144),'DoctorCollectFinish':'doctor.collect.finish'},a={'CliCommand':'cli.command','DaemonRpcClient':'daemon.rpc.client','DaemonRpcServer':_0x54e10c(0x11b),'DaemonRpcOrphan':_0x54e10c(0x139),'RuntimeRpcClient':_0x54e10c(0x12d),'RuntimeEval':'runtime.eval','ViewHostHttpRequest':'view-host.http.request','CloudHttpRequest':_0x54e10c(0x121),'DoctorCollect':_0x54e10c(0x118)};var o='00',s='01',c=/^[0-9a-f]{32}$/,l=/^[0-9a-f]{16}$/,u=/^[0-9a-f]{2}$/,d='00000000000000000000000000000000',f=_0x54e10c(0x122);function p(){return b(0x10,d);}function m(){return b(0x8,f);}function h(){return{'traceId':p(),'spanId':m(),'traceFlags':s};}function g(_0xbb6f4c){const _0x21c0d8=_0x54e10c;return{'traceId':_0xbb6f4c['traceId'],'parentSpanId':_0xbb6f4c['spanId'],'spanId':m(),'traceFlags':_0xbb6f4c[_0x21c0d8(0x147)]};}function _(_0x426537){const _0x473da1=_0x54e10c;if(_0x426537===void 0x0)return;let _0x1ef2ce=_0x426537[_0x473da1(0x130)]()['split']('-');if(_0x1ef2ce[_0x473da1(0x13b)]!==0x4)return;let [_0x57cb90,_0x36c22e,_0xc4ca5f,_0x96178f]=_0x1ef2ce;if(!(_0x57cb90!==o||!c[_0x473da1(0x126)](_0x36c22e)||_0x36c22e===d||!l['test'](_0xc4ca5f)||_0xc4ca5f===f||!u[_0x473da1(0x126)](_0x96178f)))return{'traceId':_0x36c22e,'spanId':_0xc4ca5f,'traceFlags':_0x96178f};}function v(_0x329784){const _0x20931e=_0x54e10c;return o+'-'+_0x329784['traceId']+'-'+_0x329784[_0x20931e(0x142)]+'-'+_0x329784[_0x20931e(0x147)];}const y=new class{['storage']=new _0x477f8b();[_0x54e10c(0x13c)](){const _0x4552e0=_0x54e10c;return this[_0x4552e0(0x13a)][_0x4552e0(0x12e)]();}[_0x54e10c(0x12a)](_0x471cf6,_0x253c71){const _0x39e148=_0x54e10c;return this[_0x39e148(0x13a)][_0x39e148(0x134)](_0x471cf6,_0x253c71);}[_0x54e10c(0x119)](_0x4b6fed,_0xfb6132){return this['withContext'](h(),_0xfb6132);}[_0x54e10c(0x148)](_0x3b70b2,_0x2d6e54){const _0x363275=_0x54e10c;let _0x448010=this[_0x363275(0x13c)]();return this[_0x363275(0x12a)](_0x448010===void 0x0?h():g(_0x448010),_0x2d6e54);}[_0x54e10c(0x124)](_0x409525){const _0xa359b=_0x54e10c;let _0x3f254a=this[_0xa359b(0x13c)]()??h();return{..._0x409525??{},'traceparent':v(_0x3f254a)};}['injectHeaders'](_0x50c67c){const _0x578f2b=_0x54e10c;let _0x271297=this[_0x578f2b(0x13c)]()??h();return{..._0x50c67c??{},'traceparent':v(_0x271297)};}}();function b(_0xb9588f,_0x294c61){const _0x2d93e4=_0x54e10c;let _0x5c8b16='';do _0x5c8b16=_0x3990bb(_0xb9588f)[_0x2d93e4(0x127)](_0x2d93e4(0x141));while(_0x5c8b16===_0x294c61);return _0x5c8b16;}export{n as a,i,y as n,a as o,r,_ as t};