@lovrabet/lovrabet-cli 2.0.1 → 2.0.2

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.
Files changed (62) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -1
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -1
  5. package/lib/commands/app/remote-source.js +1 -1
  6. package/lib/commands/app/shared.js +1 -1
  7. package/lib/commands/auth/index.js +1 -1
  8. package/lib/commands/auth/prompt.js +1 -1
  9. package/lib/commands/bff/detail.js +1 -1
  10. package/lib/commands/bff/exec.js +1 -1
  11. package/lib/commands/bff/index.js +1 -1
  12. package/lib/commands/common/config-policy.js +1 -1
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init.js +1 -1
  23. package/lib/commands/logs/index.js +1 -1
  24. package/lib/commands/registry.js +1 -1
  25. package/lib/commands/schema.js +1 -1
  26. package/lib/commands/sql/detail.js +1 -1
  27. package/lib/commands/sql/exec.js +1 -1
  28. package/lib/commands/sql/index.js +1 -1
  29. package/lib/config/schema.js +1 -1
  30. package/lib/constant/auth-mode.js +1 -1
  31. package/lib/constant/cli.js +1 -1
  32. package/lib/constant/defaults.js +1 -1
  33. package/lib/constant/domain.js +1 -1
  34. package/lib/constant/env.js +1 -1
  35. package/lib/constant/output.js +1 -1
  36. package/lib/constant/risk.js +1 -1
  37. package/lib/context.js +1 -1
  38. package/lib/core/api-client.js +1 -1
  39. package/lib/core/db-resolver.js +1 -1
  40. package/lib/core/sdk-client.js +1 -1
  41. package/lib/errors.js +1 -1
  42. package/lib/framework/build-all-flags.js +1 -1
  43. package/lib/framework/dryrun.js +1 -1
  44. package/lib/framework/flags.js +1 -1
  45. package/lib/framework/help.js +1 -1
  46. package/lib/framework/index.js +1 -1
  47. package/lib/framework/output.js +1 -1
  48. package/lib/framework/preparse.js +1 -1
  49. package/lib/framework/response.js +1 -1
  50. package/lib/framework/runner-confirmation.js +1 -1
  51. package/lib/framework/runner-error.js +1 -1
  52. package/lib/framework/runner.js +1 -1
  53. package/lib/framework/schema-export.js +1 -1
  54. package/lib/framework/types.js +1 -1
  55. package/lib/help.js +1 -1
  56. package/lib/utils/apply-jq-filter.js +1 -1
  57. package/lib/utils/logger.js +1 -1
  58. package/lib/utils/params.js +1 -1
  59. package/lib/utils/version.js +1 -1
  60. package/lib/utils/write-cli-side-channel.js +1 -1
  61. package/package.json +1 -1
  62. package/lib/commands/init/index.js +0 -1
@@ -1 +1 @@
1
- const a57_0x5665af=a57_0x499c;(function(_0x420aa8,_0xc4f1cf){const _0x3a26f8=a57_0x499c,_0x1ba8c0=_0x420aa8();while(!![]){try{const _0x2aa058=parseInt(_0x3a26f8(0x1cc))/0x1+parseInt(_0x3a26f8(0x1bb))/0x2+-parseInt(_0x3a26f8(0x1c6))/0x3+-parseInt(_0x3a26f8(0x1db))/0x4+parseInt(_0x3a26f8(0x1a6))/0x5+-parseInt(_0x3a26f8(0x1af))/0x6+parseInt(_0x3a26f8(0x1c7))/0x7;if(_0x2aa058===_0xc4f1cf)break;else _0x1ba8c0['push'](_0x1ba8c0['shift']());}catch(_0x5cf823){_0x1ba8c0['push'](_0x1ba8c0['shift']());}}}(a57_0xc440,0xd192c));import a57_0x513d42 from'winston';import a57_0x33a05a from'node:fs';import a57_0x5144f8 from'node:path';function a57_0xc440(){const _0x3a4a05=['rawCommand','dirname','logFilePath','setLogPath','message','setRawCommand','4688708rcIBiO','success','Failed\x20to\x20clear\x20logs:','4227880EEjGgA','readFileSync','initWinstonLogger','Starting:\x20','info','details','toISOString','transports','addColors','2000790KpbBkp','timestamp','unknown','parse','now','errors','winstonLogger','clearLogs','readLogs','writeFileSync','logTask','Completed:\x20','3298830lwaZTv','trim','combine','getWinstonInstance','join','green','format','currentRawCommand','split','warn','log','1685802rxTbRU','859047XdgLTE','map','utf8','.lovrabet-runtime.log','duration','308276InBTfh','red','blue','Failed\x20to\x20read\x20logs:','existsSync','stringify','createLogger','error','Failed:\x20'];a57_0xc440=function(){return _0x3a4a05;};return a57_0xc440();}function a57_0x499c(_0x288c72,_0x520343){_0x288c72=_0x288c72-0x1a5;const _0xc440e9=a57_0xc440();let _0x499c45=_0xc440e9[_0x288c72];return _0x499c45;}class Logger{[a57_0x5665af(0x1b5)];['logFilePath']='';[a57_0x5665af(0x1c2)]='';constructor(){}[a57_0x5665af(0x1da)](_0xac72dc){const _0x436614=a57_0x5665af;this[_0x436614(0x1c2)]=_0xac72dc;}[a57_0x5665af(0x1d8)](_0x339828){const _0x4bbc63=a57_0x5665af;this['logFilePath']=a57_0x5144f8[_0x4bbc63(0x1bf)](_0x339828,_0x4bbc63(0x1ca)),this[_0x4bbc63(0x1b5)]&&this[_0x4bbc63(0x1b5)]['clear'](),this[_0x4bbc63(0x1a8)]();}[a57_0x5665af(0x1a8)](){const _0x37bc9b=a57_0x5665af,_0x21c261=a57_0x5144f8[_0x37bc9b(0x1d6)](this[_0x37bc9b(0x1d7)]);!a57_0x33a05a['existsSync'](_0x21c261)&&a57_0x33a05a['mkdirSync'](_0x21c261,{'recursive':!![]});const _0x266258=a57_0x513d42['format'][_0x37bc9b(0x1bd)](a57_0x513d42[_0x37bc9b(0x1c1)]['timestamp'](),a57_0x513d42[_0x37bc9b(0x1c1)][_0x37bc9b(0x1b4)]({'stack':!![]}),a57_0x513d42[_0x37bc9b(0x1c1)]['printf'](_0x44b8c6=>{const _0x12fc6a=_0x37bc9b,_0x5c23a2={'timestamp':_0x44b8c6[_0x12fc6a(0x1b0)]||new Date()[_0x12fc6a(0x1ac)](),'level':_0x44b8c6['level']||_0x12fc6a(0x1aa),'command':_0x44b8c6['command']||_0x12fc6a(0x1b1),'rawCommand':_0x44b8c6[_0x12fc6a(0x1d5)]||this[_0x12fc6a(0x1c2)]||undefined,'message':_0x44b8c6[_0x12fc6a(0x1d9)]||'','duration':_0x44b8c6[_0x12fc6a(0x1cb)]||undefined,'details':_0x44b8c6[_0x12fc6a(0x1ab)]||undefined};return JSON[_0x12fc6a(0x1d1)](_0x5c23a2);}));this[_0x37bc9b(0x1b5)]=a57_0x513d42[_0x37bc9b(0x1d2)]({'level':_0x37bc9b(0x1aa),'format':_0x266258,'transports':[new a57_0x513d42[(_0x37bc9b(0x1ad))]['File']({'filename':this[_0x37bc9b(0x1d7)],'level':_0x37bc9b(0x1aa)})],'silent':![]}),a57_0x513d42[_0x37bc9b(0x1ae)]({'success':_0x37bc9b(0x1c0),'error':_0x37bc9b(0x1cd),'warn':'yellow','info':_0x37bc9b(0x1ce)});}[a57_0x5665af(0x1aa)](_0x2eaa94,_0xf29577,_0xe6a799){const _0x173e32=a57_0x5665af;if(!this[_0x173e32(0x1d7)]||!this['winstonLogger'])return;this[_0x173e32(0x1b5)]['info'](_0xf29577,{'command':_0x2eaa94,'details':_0xe6a799});}['success'](_0x349dc9,_0x28a1d4,_0x4bb675,_0x4b1249){const _0x42cf94=a57_0x5665af;if(!this[_0x42cf94(0x1d7)]||!this['winstonLogger'])return;this['winstonLogger'][_0x42cf94(0x1c5)]('info',_0x28a1d4,{'level':_0x42cf94(0x1dc),'command':_0x349dc9,'duration':_0x4bb675,'details':_0x4b1249});}[a57_0x5665af(0x1d3)](_0x4f3260,_0x1d954e,_0x5eac4c){const _0x894f22=a57_0x5665af;if(!this[_0x894f22(0x1d7)]||!this[_0x894f22(0x1b5)])return;this[_0x894f22(0x1b5)]['error'](_0x1d954e,{'command':_0x4f3260,'details':_0x5eac4c});}[a57_0x5665af(0x1c4)](_0x47ec92,_0x37979b,_0x271073){const _0x301f82=a57_0x5665af;if(!this['logFilePath']||!this[_0x301f82(0x1b5)])return;this['winstonLogger'][_0x301f82(0x1c4)](_0x37979b,{'command':_0x47ec92,'details':_0x271073});}async[a57_0x5665af(0x1b9)](_0x4271b1,_0x579e94,_0x347e34){const _0x162a1d=a57_0x5665af,_0x48ca4e=Date['now']();this['info'](_0x4271b1,_0x162a1d(0x1a9)+_0x579e94);try{const _0x59d7ea=await _0x347e34(),_0x5d4efb=Date[_0x162a1d(0x1b3)]()-_0x48ca4e;return this['success'](_0x4271b1,_0x162a1d(0x1ba)+_0x579e94,_0x5d4efb),_0x59d7ea;}catch(_0x5dd0ed){const _0x53b4a2=Date[_0x162a1d(0x1b3)]()-_0x48ca4e;this[_0x162a1d(0x1d3)](_0x4271b1,_0x162a1d(0x1d4)+_0x579e94,{'error':_0x5dd0ed instanceof Error?_0x5dd0ed[_0x162a1d(0x1d9)]:String(_0x5dd0ed),'duration':_0x53b4a2});throw _0x5dd0ed;}}[a57_0x5665af(0x1b7)](){const _0x10bce4=a57_0x5665af;try{if(!a57_0x33a05a[_0x10bce4(0x1d0)](this[_0x10bce4(0x1d7)]))return[];const _0x148db4=a57_0x33a05a[_0x10bce4(0x1a7)](this[_0x10bce4(0x1d7)],_0x10bce4(0x1c9));return _0x148db4[_0x10bce4(0x1c3)](/\r?\n/)['filter'](_0x4d34f2=>_0x4d34f2[_0x10bce4(0x1bc)]())[_0x10bce4(0x1c8)](_0x33ef08=>JSON[_0x10bce4(0x1b2)](_0x33ef08));}catch(_0x1ca492){return console[_0x10bce4(0x1c4)](_0x10bce4(0x1cf),_0x1ca492),[];}}[a57_0x5665af(0x1b6)](){const _0x392ba8=a57_0x5665af;try{a57_0x33a05a[_0x392ba8(0x1d0)](this[_0x392ba8(0x1d7)])&&a57_0x33a05a[_0x392ba8(0x1b8)](this[_0x392ba8(0x1d7)],'',_0x392ba8(0x1c9));}catch(_0xb7e097){console[_0x392ba8(0x1c4)](_0x392ba8(0x1a5),_0xb7e097);}}[a57_0x5665af(0x1be)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a56_0x3dfb4a=a56_0x149e;(function(_0x3702bd,_0xee760f){const _0x398f32=a56_0x149e,_0x40157e=_0x3702bd();while(!![]){try{const _0x1656b9=parseInt(_0x398f32(0xec))/0x1*(parseInt(_0x398f32(0xf1))/0x2)+-parseInt(_0x398f32(0xc0))/0x3+parseInt(_0x398f32(0xee))/0x4+-parseInt(_0x398f32(0xc6))/0x5+-parseInt(_0x398f32(0xc7))/0x6+-parseInt(_0x398f32(0xf0))/0x7+parseInt(_0x398f32(0xe4))/0x8*(parseInt(_0x398f32(0xe7))/0x9);if(_0x1656b9===_0xee760f)break;else _0x40157e['push'](_0x40157e['shift']());}catch(_0x21f858){_0x40157e['push'](_0x40157e['shift']());}}}(a56_0x55b8,0x2aeda));import a56_0x86311a from'winston';function a56_0x149e(_0x35a2cd,_0x50ceba){_0x35a2cd=_0x35a2cd-0xbe;const _0x55b8bc=a56_0x55b8();let _0x149eb4=_0x55b8bc[_0x35a2cd];return _0x149eb4;}function a56_0x55b8(){const _0xc9d482=['filter','8741cZGhyN','winstonLogger','1009884OuqPsa','addColors','2182649itpEUx','46ldyeyz','toISOString','combine','631917ymSEme','initWinstonLogger','transports','format','timestamp','setLogPath','1085195nGsHOv','128148ryzZka','level','readLogs','currentRawCommand','now','info','error','readFileSync','logTask','rawCommand','details','File','logFilePath','message','map','log','existsSync','mkdirSync','parse','warn','split','Failed:\x20','red','utf8','blue','yellow','command','join','createLogger','3865304uMFSaf','Completed:\x20','Starting:\x20','9CcExdb','success','duration','.lovrabet-runtime.log'];a56_0x55b8=function(){return _0xc9d482;};return a56_0x55b8();}import a56_0xdff0cc from'node:fs';import a56_0x523815 from'node:path';class Logger{[a56_0x3dfb4a(0xed)];[a56_0x3dfb4a(0xd3)]='';[a56_0x3dfb4a(0xca)]='';constructor(){}['setRawCommand'](_0x329b2f){const _0x389caa=a56_0x3dfb4a;this[_0x389caa(0xca)]=_0x329b2f;}[a56_0x3dfb4a(0xc5)](_0x9b8b7f){const _0x5138d5=a56_0x3dfb4a;this['logFilePath']=a56_0x523815[_0x5138d5(0xe2)](_0x9b8b7f,_0x5138d5(0xea)),this['winstonLogger']&&this[_0x5138d5(0xed)]['clear'](),this[_0x5138d5(0xc1)]();}[a56_0x3dfb4a(0xc1)](){const _0x34ef7e=a56_0x3dfb4a,_0xc2e65f=a56_0x523815['dirname'](this[_0x34ef7e(0xd3)]);!a56_0xdff0cc[_0x34ef7e(0xd7)](_0xc2e65f)&&a56_0xdff0cc[_0x34ef7e(0xd8)](_0xc2e65f,{'recursive':!![]});const _0x3dac89=a56_0x86311a[_0x34ef7e(0xc3)][_0x34ef7e(0xbf)](a56_0x86311a[_0x34ef7e(0xc3)][_0x34ef7e(0xc4)](),a56_0x86311a[_0x34ef7e(0xc3)]['errors']({'stack':!![]}),a56_0x86311a['format']['printf'](_0x207ed0=>{const _0x3528c9=_0x34ef7e,_0x8e963c={'timestamp':_0x207ed0[_0x3528c9(0xc4)]||new Date()[_0x3528c9(0xbe)](),'level':_0x207ed0[_0x3528c9(0xc8)]||_0x3528c9(0xcc),'command':_0x207ed0[_0x3528c9(0xe1)]||'unknown','rawCommand':_0x207ed0[_0x3528c9(0xd0)]||this[_0x3528c9(0xca)]||undefined,'message':_0x207ed0['message']||'','duration':_0x207ed0[_0x3528c9(0xe9)]||undefined,'details':_0x207ed0[_0x3528c9(0xd1)]||undefined};return JSON['stringify'](_0x8e963c);}));this[_0x34ef7e(0xed)]=a56_0x86311a[_0x34ef7e(0xe3)]({'level':'info','format':_0x3dac89,'transports':[new a56_0x86311a[(_0x34ef7e(0xc2))][(_0x34ef7e(0xd2))]({'filename':this[_0x34ef7e(0xd3)],'level':_0x34ef7e(0xcc)})],'silent':![]}),a56_0x86311a[_0x34ef7e(0xef)]({'success':'green','error':_0x34ef7e(0xdd),'warn':_0x34ef7e(0xe0),'info':_0x34ef7e(0xdf)});}['info'](_0x255d09,_0x42d955,_0x392157){const _0x25c52e=a56_0x3dfb4a;if(!this[_0x25c52e(0xd3)]||!this[_0x25c52e(0xed)])return;this[_0x25c52e(0xed)]['info'](_0x42d955,{'command':_0x255d09,'details':_0x392157});}[a56_0x3dfb4a(0xe8)](_0x18e105,_0x49f9d1,_0xab9132,_0x3d8099){const _0x127330=a56_0x3dfb4a;if(!this['logFilePath']||!this[_0x127330(0xed)])return;this[_0x127330(0xed)][_0x127330(0xd6)]('info',_0x49f9d1,{'level':_0x127330(0xe8),'command':_0x18e105,'duration':_0xab9132,'details':_0x3d8099});}[a56_0x3dfb4a(0xcd)](_0x198add,_0x59a6fc,_0x54c680){const _0x111df9=a56_0x3dfb4a;if(!this[_0x111df9(0xd3)]||!this[_0x111df9(0xed)])return;this[_0x111df9(0xed)]['error'](_0x59a6fc,{'command':_0x198add,'details':_0x54c680});}[a56_0x3dfb4a(0xda)](_0x16c4be,_0x5d1d2c,_0xfa2c12){const _0x12c791=a56_0x3dfb4a;if(!this[_0x12c791(0xd3)]||!this[_0x12c791(0xed)])return;this[_0x12c791(0xed)]['warn'](_0x5d1d2c,{'command':_0x16c4be,'details':_0xfa2c12});}async[a56_0x3dfb4a(0xcf)](_0x24ee32,_0x10dc86,_0x4fb690){const _0x3b766d=a56_0x3dfb4a,_0x24059c=Date[_0x3b766d(0xcb)]();this['info'](_0x24ee32,_0x3b766d(0xe6)+_0x10dc86);try{const _0x3372b3=await _0x4fb690(),_0x5d6dfa=Date['now']()-_0x24059c;return this['success'](_0x24ee32,_0x3b766d(0xe5)+_0x10dc86,_0x5d6dfa),_0x3372b3;}catch(_0x26678d){const _0x5854ab=Date[_0x3b766d(0xcb)]()-_0x24059c;this[_0x3b766d(0xcd)](_0x24ee32,_0x3b766d(0xdc)+_0x10dc86,{'error':_0x26678d instanceof Error?_0x26678d[_0x3b766d(0xd4)]:String(_0x26678d),'duration':_0x5854ab});throw _0x26678d;}}[a56_0x3dfb4a(0xc9)](){const _0x272b13=a56_0x3dfb4a;try{if(!a56_0xdff0cc[_0x272b13(0xd7)](this[_0x272b13(0xd3)]))return[];const _0x5a157c=a56_0xdff0cc[_0x272b13(0xce)](this[_0x272b13(0xd3)],_0x272b13(0xde));return _0x5a157c[_0x272b13(0xdb)](/\r?\n/)[_0x272b13(0xeb)](_0x47e3f9=>_0x47e3f9['trim']())[_0x272b13(0xd5)](_0x539a6c=>JSON[_0x272b13(0xd9)](_0x539a6c));}catch(_0x2a00c8){return console['warn']('Failed\x20to\x20read\x20logs:',_0x2a00c8),[];}}['clearLogs'](){const _0x40ebd7=a56_0x3dfb4a;try{a56_0xdff0cc[_0x40ebd7(0xd7)](this['logFilePath'])&&a56_0xdff0cc['writeFileSync'](this[_0x40ebd7(0xd3)],'',_0x40ebd7(0xde));}catch(_0x38e85d){console[_0x40ebd7(0xda)]('Failed\x20to\x20clear\x20logs:',_0x38e85d);}}['getWinstonInstance'](){const _0xab069d=a56_0x3dfb4a;return this[_0xab069d(0xed)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x480b22,_0x5b080c){var _0x136a39=a58_0x302f,_0x2edcde=_0x480b22();while(!![]){try{var _0x3e99d2=parseInt(_0x136a39(0xf3))/0x1+parseInt(_0x136a39(0xf6))/0x2+-parseInt(_0x136a39(0xf4))/0x3*(-parseInt(_0x136a39(0xf8))/0x4)+parseInt(_0x136a39(0xef))/0x5*(parseInt(_0x136a39(0xe7))/0x6)+-parseInt(_0x136a39(0xf2))/0x7*(parseInt(_0x136a39(0xe9))/0x8)+parseInt(_0x136a39(0xea))/0x9+-parseInt(_0x136a39(0xf0))/0xa;if(_0x3e99d2===_0x5b080c)break;else _0x2edcde['push'](_0x2edcde['shift']());}catch(_0x4a1a4c){_0x2edcde['push'](_0x2edcde['shift']());}}}(a58_0x3a99,0x47d51));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x549be1){var _0x20e649=a58_0x302f;if(!_0x549be1)return undefined;try{return JSON['parse'](_0x549be1);}catch{throw CliErrors[_0x20e649(0xec)](_0x20e649(0xe8)+_0x549be1);}}export function parseJsonParamsValue(_0x1bcf92){var _0x44557b=a58_0x302f;if(!_0x1bcf92)return undefined;try{return JSON[_0x44557b(0xed)](_0x1bcf92);}catch{throw CliErrors[_0x44557b(0xec)](_0x44557b(0xe8)+_0x1bcf92);}}function a58_0x302f(_0x238eac,_0x1ef0fd){_0x238eac=_0x238eac-0xe7;var _0x3a999b=a58_0x3a99();var _0x302fdf=_0x3a999b[_0x238eac];return _0x302fdf;}function a58_0x3a99(){var _0x361b5d=['Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','12gPMhgN','150FDgCxF','Invalid\x20JSON\x20for\x20--params:\x20','184frpfnZ','709461hxmTFo','isArray','validation','parse','object','92735nvuXiL','5420660WyGfNT','items','141190uLNijn','354333BWidZj','213699duYNnT','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','379330irpeIG'];a58_0x3a99=function(){return _0x361b5d;};return a58_0x3a99();}export function parseBatchCreateItemsFromParams(_0x1d531e){var _0x17dfd7=a58_0x302f;if(Array[_0x17dfd7(0xeb)](_0x1d531e))return _0x1d531e;if(_0x1d531e!==null&&_0x1d531e!==undefined&&typeof _0x1d531e===_0x17dfd7(0xee)&&Array[_0x17dfd7(0xeb)](_0x1d531e[_0x17dfd7(0xf1)]))return _0x1d531e[_0x17dfd7(0xf1)];throw CliErrors[_0x17dfd7(0xec)](_0x17dfd7(0xf5),_0x17dfd7(0xf7));}
1
+ function a57_0x50b0(){var _0x136ab3=['17142HHrure','6Ckcqju','isArray','2117115iIIJjY','6PkbLND','object','4422560tVAgIr','Invalid\x20JSON\x20for\x20--params:\x20','validation','2302197uxoSfc','items','2305120ZoueMS','2343299GlFUjz','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','3312351pGEFxk','parse'];a57_0x50b0=function(){return _0x136ab3;};return a57_0x50b0();}(function(_0x5bb983,_0x349c9a){var _0x1cecf5=a57_0x594d,_0x540dcd=_0x5bb983();while(!![]){try{var _0x5df59c=-parseInt(_0x1cecf5(0x1ba))/0x1*(-parseInt(_0x1cecf5(0x1b6))/0x2)+parseInt(_0x1cecf5(0x1af))/0x3+-parseInt(_0x1cecf5(0x1b1))/0x4+parseInt(_0x1cecf5(0x1b9))/0x5+-parseInt(_0x1cecf5(0x1b7))/0x6*(parseInt(_0x1cecf5(0x1b2))/0x7)+parseInt(_0x1cecf5(0x1bc))/0x8+-parseInt(_0x1cecf5(0x1b4))/0x9;if(_0x5df59c===_0x349c9a)break;else _0x540dcd['push'](_0x540dcd['shift']());}catch(_0x3b8f46){_0x540dcd['push'](_0x540dcd['shift']());}}}(a57_0x50b0,0x7df98));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x3d97f9){var _0x4027a8=a57_0x594d;if(!_0x3d97f9)return undefined;try{return JSON['parse'](_0x3d97f9);}catch{throw CliErrors[_0x4027a8(0x1be)](_0x4027a8(0x1bd)+_0x3d97f9);}}function a57_0x594d(_0x3e6782,_0x5f27c5){_0x3e6782=_0x3e6782-0x1af;var _0x50b046=a57_0x50b0();var _0x594de3=_0x50b046[_0x3e6782];return _0x594de3;}export function parseJsonParamsValue(_0x1ba77a){var _0x1e0452=a57_0x594d;if(!_0x1ba77a)return undefined;try{return JSON[_0x1e0452(0x1b5)](_0x1ba77a);}catch{throw CliErrors['validation'](_0x1e0452(0x1bd)+_0x1ba77a);}}export function parseBatchCreateItemsFromParams(_0x435c59){var _0x5a4368=a57_0x594d;if(Array[_0x5a4368(0x1b8)](_0x435c59))return _0x435c59;if(_0x435c59!==null&&_0x435c59!==undefined&&typeof _0x435c59===_0x5a4368(0x1bb)&&Array[_0x5a4368(0x1b8)](_0x435c59[_0x5a4368(0x1b0)]))return _0x435c59['items'];throw CliErrors['validation']('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x5a4368(0x1b3));}
@@ -1 +1 @@
1
- (function(_0x473ca6,_0xcb7862){const _0xca3526=a59_0x2021,_0x3fd7f4=_0x473ca6();while(!![]){try{const _0x227387=-parseInt(_0xca3526(0x93))/0x1+parseInt(_0xca3526(0x9b))/0x2+parseInt(_0xca3526(0x99))/0x3+-parseInt(_0xca3526(0x92))/0x4*(-parseInt(_0xca3526(0x91))/0x5)+parseInt(_0xca3526(0x90))/0x6*(parseInt(_0xca3526(0x96))/0x7)+-parseInt(_0xca3526(0x9a))/0x8*(-parseInt(_0xca3526(0x8e))/0x9)+-parseInt(_0xca3526(0x95))/0xa;if(_0x227387===_0xcb7862)break;else _0x3fd7f4['push'](_0x3fd7f4['shift']());}catch(_0x155c41){_0x3fd7f4['push'](_0x3fd7f4['shift']());}}}(a59_0x22f5,0x7b5fe));import{readFileSync}from'node:fs';function a59_0x2021(_0x288fa0,_0xfee058){_0x288fa0=_0x288fa0-0x8e;const _0x22f5ac=a59_0x22f5();let _0x202103=_0x22f5ac[_0x288fa0];return _0x202103;}import{dirname,join}from'node:path';import{fileURLToPath}from'node:url';let cached;export function getCliVersion(){const _0x47b76c=a59_0x2021;if(cached)return cached;const _0x2cd624=join(dirname(fileURLToPath(import.meta.url)),'..','..'),_0x27462f=readFileSync(join(_0x2cd624,_0x47b76c(0x94)),_0x47b76c(0x97)),_0x59e6fc=JSON[_0x47b76c(0x8f)](_0x27462f);return cached=_0x59e6fc[_0x47b76c(0x98)],cached;}function a59_0x22f5(){const _0x30b71b=['version','829101PKeTkR','88216ImwcIY','1957192gdoMaA','252GzfnQu','parse','2183466ENvOyz','45iaLrVH','188644iRBFBx','624480FGOFxp','package.json','12222570VSXBcc','7zGxoBE','utf8'];a59_0x22f5=function(){return _0x30b71b;};return a59_0x22f5();}
1
+ (function(_0x18c5c4,_0x2bf719){const _0x33457c=a58_0x54ee,_0x373373=_0x18c5c4();while(!![]){try{const _0x1ca06d=parseInt(_0x33457c(0xfd))/0x1+-parseInt(_0x33457c(0xf5))/0x2*(parseInt(_0x33457c(0xfb))/0x3)+-parseInt(_0x33457c(0xfc))/0x4+-parseInt(_0x33457c(0xf9))/0x5*(-parseInt(_0x33457c(0xf3))/0x6)+parseInt(_0x33457c(0xfa))/0x7*(parseInt(_0x33457c(0xf7))/0x8)+-parseInt(_0x33457c(0xf4))/0x9*(parseInt(_0x33457c(0xf8))/0xa)+parseInt(_0x33457c(0xf2))/0xb*(-parseInt(_0x33457c(0xfe))/0xc);if(_0x1ca06d===_0x2bf719)break;else _0x373373['push'](_0x373373['shift']());}catch(_0x586fa6){_0x373373['push'](_0x373373['shift']());}}}(a58_0x4088,0xa3223));import{readFileSync}from'node:fs';function a58_0x4088(){const _0x4ebf8d=['3122220QNGhin','9dLgsoQ','110NpLNoh','parse','521824lVxEoD','6446870mhjspm','5VubQWH','140AtBmPH','71403PoyyBx','347336xQJeJS','954094uqlIAg','843036lEjTDQ','11ueXgjC'];a58_0x4088=function(){return _0x4ebf8d;};return a58_0x4088();}import{dirname,join}from'node:path';import{fileURLToPath}from'node:url';let cached;function a58_0x54ee(_0x50eeb2,_0xc62074){_0x50eeb2=_0x50eeb2-0xf2;const _0x408810=a58_0x4088();let _0x54ee98=_0x408810[_0x50eeb2];return _0x54ee98;}export function getCliVersion(){const _0x1d6eca=a58_0x54ee;if(cached)return cached;const _0x16e1c7=join(dirname(fileURLToPath(import.meta.url)),'..','..'),_0x2e17a2=readFileSync(join(_0x16e1c7,'package.json'),'utf8'),_0x4b4a85=JSON[_0x1d6eca(0xf6)](_0x2e17a2);return cached=_0x4b4a85['version'],cached;}
@@ -1 +1 @@
1
- (function(_0x1bced9,_0x5f56b3){var _0x3fdf58=a60_0x2b0d,_0x241fa5=_0x1bced9();while(!![]){try{var _0x310611=-parseInt(_0x3fdf58(0x8e))/0x1+-parseInt(_0x3fdf58(0x91))/0x2*(-parseInt(_0x3fdf58(0x88))/0x3)+parseInt(_0x3fdf58(0x8a))/0x4+-parseInt(_0x3fdf58(0x8b))/0x5*(-parseInt(_0x3fdf58(0x94))/0x6)+parseInt(_0x3fdf58(0x8c))/0x7+-parseInt(_0x3fdf58(0x93))/0x8*(parseInt(_0x3fdf58(0x8f))/0x9)+-parseInt(_0x3fdf58(0x89))/0xa*(parseInt(_0x3fdf58(0x90))/0xb);if(_0x310611===_0x5f56b3)break;else _0x241fa5['push'](_0x241fa5['shift']());}catch(_0x58ce64){_0x241fa5['push'](_0x241fa5['shift']());}}}(a60_0x5873,0xa46ab));export function writeCliSideChannelLine(_0x42beec){var _0x498902=a60_0x2b0d;process[_0x498902(0x92)][_0x498902(0x8d)](_0x42beec+'\x0a');}function a60_0x2b0d(_0x5e0586,_0x3dfae5){_0x5e0586=_0x5e0586-0x88;var _0x5873d8=a60_0x5873();var _0x2b0d86=_0x5873d8[_0x5e0586];return _0x2b0d86;}function a60_0x5873(){var _0x2432c8=['1649980IWvFgr','4445328QltGke','29235JHcUnH','3559521VXVSPo','write','78724WFcoKk','1053xXZXTl','55xuvrEu','908464itiiqr','stderr','34376ElvPGD','6YtIhtK','3pcAcWS'];a60_0x5873=function(){return _0x2432c8;};return a60_0x5873();}
1
+ (function(_0xd6cf8f,_0x5365af){var _0xa115b2=a59_0x5e2f,_0x273901=_0xd6cf8f();while(!![]){try{var _0x3cf83c=parseInt(_0xa115b2(0xdb))/0x1+-parseInt(_0xa115b2(0xe2))/0x2*(parseInt(_0xa115b2(0xe4))/0x3)+parseInt(_0xa115b2(0xdc))/0x4*(-parseInt(_0xa115b2(0xe1))/0x5)+-parseInt(_0xa115b2(0xdd))/0x6+parseInt(_0xa115b2(0xe3))/0x7*(parseInt(_0xa115b2(0xdf))/0x8)+-parseInt(_0xa115b2(0xda))/0x9+parseInt(_0xa115b2(0xde))/0xa;if(_0x3cf83c===_0x5365af)break;else _0x273901['push'](_0x273901['shift']());}catch(_0x134621){_0x273901['push'](_0x273901['shift']());}}}(a59_0x260c,0x7748a));function a59_0x260c(){var _0x3c6e43=['613734XmDvEH','2292sKWPSW','1958796HalqIe','7216230vavCVQ','17432QLKLAy','stderr','2480UbAiyw','60DaQzGv','2611JIAVPe','90636DmYplB','1282536tjrsOR'];a59_0x260c=function(){return _0x3c6e43;};return a59_0x260c();}function a59_0x5e2f(_0x35ef7d,_0x5c2bd3){_0x35ef7d=_0x35ef7d-0xda;var _0x260ceb=a59_0x260c();var _0x5e2f31=_0x260ceb[_0x35ef7d];return _0x5e2f31;}export function writeCliSideChannelLine(_0x29b459){var _0x324535=a59_0x5e2f;process[_0x324535(0xe0)]['write'](_0x29b459+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +0,0 @@
1
- const a21_0x5dc489=a21_0xfb55;(function(_0x1a0ddd,_0x3d69db){const _0x1f1986=a21_0xfb55,_0xe48c1e=_0x1a0ddd();while(!![]){try{const _0x6226c5=-parseInt(_0x1f1986(0x1a6))/0x1*(parseInt(_0x1f1986(0x19f))/0x2)+parseInt(_0x1f1986(0x1a5))/0x3*(-parseInt(_0x1f1986(0x19c))/0x4)+-parseInt(_0x1f1986(0x19a))/0x5+parseInt(_0x1f1986(0x1a4))/0x6*(-parseInt(_0x1f1986(0x1a7))/0x7)+-parseInt(_0x1f1986(0x196))/0x8+-parseInt(_0x1f1986(0x197))/0x9*(-parseInt(_0x1f1986(0x19d))/0xa)+parseInt(_0x1f1986(0x1a1))/0xb;if(_0x6226c5===_0x3d69db)break;else _0xe48c1e['push'](_0xe48c1e['shift']());}catch(_0x3b115f){_0xe48c1e['push'](_0xe48c1e['shift']());}}}(a21_0x4e55,0xaa2bf));import{runInit,initCreateFlagDefs}from'../../commands/init.js';function a21_0xfb55(_0x442464,_0x1214e2){_0x442464=_0x442464-0x195;const _0x4e55f2=a21_0x4e55();let _0xfb5597=_0x4e55f2[_0x442464];return _0xfb5597;}function a21_0x4e55(){const _0x50ef59=['6630360WDaVau','171MrLqJj','Initialize\x20.lovrabet.json\x20config\x20file','boolean','2131330szLAvb','bool','16LWMntL','388820PzZDrJ','create','15412mOipFB','write','30811979hvekNG','type','str','37002KUkvsF','611619nRSEHt','53eFeDFC','413QAvnoA','name'];a21_0x4e55=function(){return _0x50ef59;};return a21_0x4e55();}function collectFlags(_0x36f4fc,_0x73e0a9){const _0x1bb101=a21_0xfb55,_0x7684f7={};for(const _0x4fc1e0 of _0x73e0a9){const _0x365f43=_0x4fc1e0[_0x1bb101(0x1a2)]===_0x1bb101(0x199)?_0x36f4fc[_0x1bb101(0x19b)](_0x4fc1e0[_0x1bb101(0x195)]):_0x36f4fc[_0x1bb101(0x1a3)](_0x4fc1e0['name']);if(_0x365f43!==''&&_0x365f43!==![])_0x7684f7[_0x4fc1e0['name']]=_0x365f43;}if(_0x36f4fc['nonInteractive'])_0x7684f7['nonInteractive']=!![];return _0x7684f7;}export const initDefinitions=[{'service':'init','command':a21_0x5dc489(0x19e),'description':a21_0x5dc489(0x198),'risk':a21_0x5dc489(0x1a0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x4a83e3){return await runInit(collectFlags(_0x4a83e3,initCreateFlagDefs)),{'ok':!![]};}}];