@lovrabet/lovrabet-cli 2.0.13 → 2.0.14-beta.10

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 (84) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -0
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/common/config-policy.js +1 -1
  16. package/lib/commands/common/constraints.js +1 -1
  17. package/lib/commands/common/flags.js +1 -1
  18. package/lib/commands/config/definitions.js +1 -1
  19. package/lib/commands/config/shared.js +1 -1
  20. package/lib/commands/data/index.js +1 -1
  21. package/lib/commands/dataset/detail.js +1 -1
  22. package/lib/commands/dataset/index.js +1 -1
  23. package/lib/commands/dataset/list.js +1 -1
  24. package/lib/commands/dataset/sdk-doc.js +1 -1
  25. package/lib/commands/doctor.js +1 -1
  26. package/lib/commands/init.js +1 -1
  27. package/lib/commands/kb/index.js +1 -1
  28. package/lib/commands/logs/index.js +1 -1
  29. package/lib/commands/personal-bff/index.js +1 -1
  30. package/lib/commands/registry.js +1 -1
  31. package/lib/commands/schema.js +1 -1
  32. package/lib/commands/service/dynamic.js +1 -0
  33. package/lib/commands/service/index.js +1 -0
  34. package/lib/commands/service/registry.js +1 -0
  35. package/lib/commands/skill/index.js +1 -1
  36. package/lib/commands/skill/templates.js +1 -0
  37. package/lib/commands/skill/validate.js +1 -0
  38. package/lib/commands/sql/detail.js +1 -1
  39. package/lib/commands/sql/exec.js +1 -1
  40. package/lib/commands/sql/index.js +1 -1
  41. package/lib/commands/update.js +1 -1
  42. package/lib/commands/workspace/index.js +1 -0
  43. package/lib/config/schema.js +1 -1
  44. package/lib/constant/app.js +1 -0
  45. package/lib/constant/auth-mode.js +1 -1
  46. package/lib/constant/cli.js +1 -1
  47. package/lib/constant/defaults.js +1 -1
  48. package/lib/constant/distribution.js +1 -1
  49. package/lib/constant/domain.js +1 -1
  50. package/lib/constant/env.js +1 -1
  51. package/lib/constant/output.js +1 -1
  52. package/lib/constant/product.js +1 -1
  53. package/lib/constant/risk.js +1 -1
  54. package/lib/constant/url.js +1 -1
  55. package/lib/context.js +1 -1
  56. package/lib/core/api-client.js +1 -1
  57. package/lib/core/db-resolver.js +1 -1
  58. package/lib/core/sdk-client.js +1 -1
  59. package/lib/errors.js +1 -1
  60. package/lib/framework/build-all-flags.js +1 -1
  61. package/lib/framework/dryrun.js +1 -1
  62. package/lib/framework/flags.js +1 -1
  63. package/lib/framework/help.js +1 -1
  64. package/lib/framework/index.js +1 -1
  65. package/lib/framework/output.js +1 -1
  66. package/lib/framework/preparse.js +1 -1
  67. package/lib/framework/response.js +1 -1
  68. package/lib/framework/runner-confirmation.js +1 -1
  69. package/lib/framework/runner-error.js +1 -1
  70. package/lib/framework/runner.js +1 -1
  71. package/lib/framework/schema-export.js +1 -1
  72. package/lib/framework/types.js +1 -1
  73. package/lib/generated/build-info.js +1 -1
  74. package/lib/help.js +1 -1
  75. package/lib/skills/npx-skills-add.js +1 -1
  76. package/lib/skills/runtime-skill-sync.js +1 -1
  77. package/lib/utils/apply-jq-filter.js +1 -1
  78. package/lib/utils/logger.js +1 -1
  79. package/lib/utils/params.js +1 -1
  80. package/lib/utils/platform.js +1 -1
  81. package/lib/utils/update-notice.js +1 -1
  82. package/lib/utils/version.js +1 -1
  83. package/lib/utils/write-cli-side-channel.js +1 -1
  84. package/package.json +8 -6
@@ -1 +1 @@
1
- const a69_0x4b60d3=a69_0x567d;(function(_0xea1449,_0x3dc4b4){const _0x1dd5fc=a69_0x567d,_0x1d4f82=_0xea1449();while(!![]){try{const _0x31dd03=-parseInt(_0x1dd5fc(0x1a7))/0x1*(-parseInt(_0x1dd5fc(0x196))/0x2)+parseInt(_0x1dd5fc(0x185))/0x3*(-parseInt(_0x1dd5fc(0x179))/0x4)+parseInt(_0x1dd5fc(0x19e))/0x5+-parseInt(_0x1dd5fc(0x1a6))/0x6+parseInt(_0x1dd5fc(0x18e))/0x7+-parseInt(_0x1dd5fc(0x17a))/0x8*(-parseInt(_0x1dd5fc(0x197))/0x9)+-parseInt(_0x1dd5fc(0x199))/0xa*(parseInt(_0x1dd5fc(0x187))/0xb);if(_0x31dd03===_0x3dc4b4)break;else _0x1d4f82['push'](_0x1d4f82['shift']());}catch(_0x2a0d3b){_0x1d4f82['push'](_0x1d4f82['shift']());}}}(a69_0x2ff6,0x4b1eb));import a69_0x391ccf from'winston';import a69_0x51909f from'node:fs';import a69_0x4738b4 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a69_0x4b60d3(0x1a2)];['logFilePath']='';[a69_0x4b60d3(0x19f)]='';constructor(){}[a69_0x4b60d3(0x19a)](_0x7d36af){const _0x2bc27e=a69_0x4b60d3;this[_0x2bc27e(0x19f)]=_0x7d36af;}['setLogPath'](_0x2f7f72){const _0x36051b=a69_0x4b60d3;this['logFilePath']=a69_0x4738b4[_0x36051b(0x1a1)](_0x2f7f72,PRODUCT_CONFIG[_0x36051b(0x184)]),this[_0x36051b(0x1a2)]&&this[_0x36051b(0x1a2)]['clear'](),this[_0x36051b(0x17c)]();}['initWinstonLogger'](){const _0x42917c=a69_0x4b60d3,_0x179b95=a69_0x4738b4['dirname'](this['logFilePath']);!a69_0x51909f[_0x42917c(0x18b)](_0x179b95)&&a69_0x51909f[_0x42917c(0x1a3)](_0x179b95,{'recursive':!![]});const _0x5035cf=a69_0x391ccf[_0x42917c(0x18f)][_0x42917c(0x19d)](a69_0x391ccf[_0x42917c(0x18f)]['timestamp'](),a69_0x391ccf[_0x42917c(0x18f)][_0x42917c(0x194)]({'stack':!![]}),a69_0x391ccf[_0x42917c(0x18f)]['printf'](_0x1352cc=>{const _0x186911=_0x42917c,_0x17a46a={'timestamp':_0x1352cc[_0x186911(0x18d)]||new Date()['toISOString'](),'level':_0x1352cc['level']||_0x186911(0x188),'command':_0x1352cc['command']||'unknown','rawCommand':_0x1352cc[_0x186911(0x186)]||this[_0x186911(0x19f)]||undefined,'message':_0x1352cc[_0x186911(0x19c)]||'','duration':_0x1352cc['duration']||undefined,'details':_0x1352cc[_0x186911(0x183)]||undefined};return JSON[_0x186911(0x192)](_0x17a46a);}));this[_0x42917c(0x1a2)]=a69_0x391ccf[_0x42917c(0x18c)]({'level':_0x42917c(0x188),'format':_0x5035cf,'transports':[new a69_0x391ccf[(_0x42917c(0x1a0))]['File']({'filename':this[_0x42917c(0x17f)],'level':_0x42917c(0x188)})],'silent':![]}),a69_0x391ccf[_0x42917c(0x1a4)]({'success':'green','error':'red','warn':_0x42917c(0x1a5),'info':_0x42917c(0x19b)});}['info'](_0x5cf30e,_0x55ede6,_0x9332df){const _0x34ada8=a69_0x4b60d3;if(!this[_0x34ada8(0x17f)]||!this[_0x34ada8(0x1a2)])return;this[_0x34ada8(0x1a2)][_0x34ada8(0x188)](_0x55ede6,{'command':_0x5cf30e,'details':_0x9332df});}[a69_0x4b60d3(0x17d)](_0x2f5095,_0x1252a8,_0x425d09,_0x57306d){const _0x49f52c=a69_0x4b60d3;if(!this[_0x49f52c(0x17f)]||!this[_0x49f52c(0x1a2)])return;this[_0x49f52c(0x1a2)][_0x49f52c(0x195)](_0x49f52c(0x188),_0x1252a8,{'level':_0x49f52c(0x17d),'command':_0x2f5095,'duration':_0x425d09,'details':_0x57306d});}[a69_0x4b60d3(0x1a8)](_0x5f4003,_0x252520,_0x2bf05a){const _0x5c368d=a69_0x4b60d3;if(!this['logFilePath']||!this[_0x5c368d(0x1a2)])return;this['winstonLogger'][_0x5c368d(0x1a8)](_0x252520,{'command':_0x5f4003,'details':_0x2bf05a});}[a69_0x4b60d3(0x18a)](_0x98d88f,_0x1ca585,_0x423894){const _0x1337bc=a69_0x4b60d3;if(!this['logFilePath']||!this[_0x1337bc(0x1a2)])return;this[_0x1337bc(0x1a2)][_0x1337bc(0x18a)](_0x1ca585,{'command':_0x98d88f,'details':_0x423894});}async['logTask'](_0x2d455f,_0x4dddb5,_0x51524a){const _0x472d1d=a69_0x4b60d3,_0x2775f5=Date[_0x472d1d(0x17e)]();this[_0x472d1d(0x188)](_0x2d455f,_0x472d1d(0x191)+_0x4dddb5);try{const _0x2bd0b2=await _0x51524a(),_0x164adb=Date[_0x472d1d(0x17e)]()-_0x2775f5;return this['success'](_0x2d455f,_0x472d1d(0x182)+_0x4dddb5,_0x164adb),_0x2bd0b2;}catch(_0x1a3343){const _0x52fbae=Date[_0x472d1d(0x17e)]()-_0x2775f5;this['error'](_0x2d455f,'Failed:\x20'+_0x4dddb5,{'error':_0x1a3343 instanceof Error?_0x1a3343[_0x472d1d(0x19c)]:String(_0x1a3343),'duration':_0x52fbae});throw _0x1a3343;}}[a69_0x4b60d3(0x190)](){const _0x350bbc=a69_0x4b60d3;try{if(!a69_0x51909f['existsSync'](this[_0x350bbc(0x17f)]))return[];const _0x6b0bd3=a69_0x51909f[_0x350bbc(0x189)](this[_0x350bbc(0x17f)],_0x350bbc(0x177));return _0x6b0bd3[_0x350bbc(0x198)](/\r?\n/)['filter'](_0x2df4e5=>_0x2df4e5[_0x350bbc(0x180)]())[_0x350bbc(0x1a9)](_0x40a83e=>JSON[_0x350bbc(0x178)](_0x40a83e));}catch(_0x5e7b90){return console['warn'](_0x350bbc(0x17b),_0x5e7b90),[];}}[a69_0x4b60d3(0x181)](){const _0x3b515a=a69_0x4b60d3;try{a69_0x51909f[_0x3b515a(0x18b)](this[_0x3b515a(0x17f)])&&a69_0x51909f[_0x3b515a(0x193)](this['logFilePath'],'','utf8');}catch(_0x4b32a8){console[_0x3b515a(0x18a)]('Failed\x20to\x20clear\x20logs:',_0x4b32a8);}}['getWinstonInstance'](){return this['winstonLogger'];}}function a69_0x567d(_0x42e9b7,_0x56d024){_0x42e9b7=_0x42e9b7-0x177;const _0x2ff661=a69_0x2ff6();let _0x567d40=_0x2ff661[_0x42e9b7];return _0x567d40;}function a69_0x2ff6(){const _0x28099b=['winstonLogger','mkdirSync','addColors','yellow','2317896GxOwxT','5IIQRBQ','error','map','utf8','parse','4AQHKvJ','408GufPRr','Failed\x20to\x20read\x20logs:','initWinstonLogger','success','now','logFilePath','trim','clearLogs','Completed:\x20','details','logFileName','1001202XnKsKM','rawCommand','2453ugRsri','info','readFileSync','warn','existsSync','createLogger','timestamp','3991001KzexKD','format','readLogs','Starting:\x20','stringify','writeFileSync','errors','log','233292UbhByv','1386BQnsYT','split','19770UerQOE','setRawCommand','blue','message','combine','1536925LrVlpf','currentRawCommand','transports','join'];a69_0x2ff6=function(){return _0x28099b;};return a69_0x2ff6();}export const logger=new Logger();
1
+ const a77_0x27327d=a77_0x551a;function a77_0x1457(){const _0x3bbb76=['readFileSync','map','currentRawCommand','success','mkdirSync','log','2933756iWexdR','timestamp','logFilePath','rawCommand','getWinstonInstance','error','details','7624nXmLyy','blue','info','File','now','unknown','existsSync','stringify','Failed\x20to\x20read\x20logs:','42GdFjjM','format','2JCzsPG','warn','message','split','20vnMjLh','Starting:\x20','readLogs','Failed:\x20','addColors','writeFileSync','filter','clearLogs','346025PpEddP','70vobLGC','join','winstonLogger','clear','printf','4434749OpUQXZ','initWinstonLogger','errors','logFileName','parse','utf8','yellow','command','262849IVfwuZ','5906808ToVIWv','trim','createLogger','Failed\x20to\x20clear\x20logs:','1712256EKhPgO','transports','red','green'];a77_0x1457=function(){return _0x3bbb76;};return a77_0x1457();}(function(_0x4b87ca,_0x5c7151){const _0x20cfc7=a77_0x551a,_0x9749d2=_0x4b87ca();while(!![]){try{const _0x2271bd=parseInt(_0x20cfc7(0xc3))/0x1*(-parseInt(_0x20cfc7(0xa9))/0x2)+parseInt(_0x20cfc7(0xc8))/0x3+-parseInt(_0x20cfc7(0x97))/0x4+parseInt(_0x20cfc7(0xb5))/0x5*(-parseInt(_0x20cfc7(0xa7))/0x6)+parseInt(_0x20cfc7(0xb6))/0x7*(parseInt(_0x20cfc7(0x9e))/0x8)+parseInt(_0x20cfc7(0xc4))/0x9+-parseInt(_0x20cfc7(0xad))/0xa*(-parseInt(_0x20cfc7(0xbb))/0xb);if(_0x2271bd===_0x5c7151)break;else _0x9749d2['push'](_0x9749d2['shift']());}catch(_0x181a62){_0x9749d2['push'](_0x9749d2['shift']());}}}(a77_0x1457,0x8940d));import a77_0x1ebb7a from'winston';import a77_0x5e848c from'node:fs';function a77_0x551a(_0x39ce09,_0x41a28d){_0x39ce09=_0x39ce09-0x8f;const _0x145770=a77_0x1457();let _0x551abe=_0x145770[_0x39ce09];return _0x551abe;}import a77_0x28f170 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];['logFilePath']='';[a77_0x27327d(0x93)]='';constructor(){}['setRawCommand'](_0x378c05){const _0x11273c=a77_0x27327d;this[_0x11273c(0x93)]=_0x378c05;}['setLogPath'](_0x1bb5f4){const _0x2885c1=a77_0x27327d;this[_0x2885c1(0x99)]=a77_0x28f170[_0x2885c1(0xb7)](_0x1bb5f4,PRODUCT_CONFIG[_0x2885c1(0xbe)]),this['winstonLogger']&&this[_0x2885c1(0xb8)][_0x2885c1(0xb9)](),this[_0x2885c1(0xbc)]();}[a77_0x27327d(0xbc)](){const _0x26ef36=a77_0x27327d,_0x201ad6=a77_0x28f170['dirname'](this[_0x26ef36(0x99)]);!a77_0x5e848c[_0x26ef36(0xa4)](_0x201ad6)&&a77_0x5e848c[_0x26ef36(0x95)](_0x201ad6,{'recursive':!![]});const _0x573205=a77_0x1ebb7a['format']['combine'](a77_0x1ebb7a['format'][_0x26ef36(0x98)](),a77_0x1ebb7a['format'][_0x26ef36(0xbd)]({'stack':!![]}),a77_0x1ebb7a[_0x26ef36(0xa8)][_0x26ef36(0xba)](_0x6a8055=>{const _0x500245=_0x26ef36,_0x1a844a={'timestamp':_0x6a8055[_0x500245(0x98)]||new Date()['toISOString'](),'level':_0x6a8055['level']||'info','command':_0x6a8055[_0x500245(0xc2)]||_0x500245(0xa3),'rawCommand':_0x6a8055[_0x500245(0x9a)]||this[_0x500245(0x93)]||undefined,'message':_0x6a8055[_0x500245(0xab)]||'','duration':_0x6a8055['duration']||undefined,'details':_0x6a8055[_0x500245(0x9d)]||undefined};return JSON[_0x500245(0xa5)](_0x1a844a);}));this['winstonLogger']=a77_0x1ebb7a[_0x26ef36(0xc6)]({'level':_0x26ef36(0xa0),'format':_0x573205,'transports':[new a77_0x1ebb7a[(_0x26ef36(0xc9))][(_0x26ef36(0xa1))]({'filename':this[_0x26ef36(0x99)],'level':_0x26ef36(0xa0)})],'silent':![]}),a77_0x1ebb7a[_0x26ef36(0xb1)]({'success':_0x26ef36(0x90),'error':_0x26ef36(0x8f),'warn':_0x26ef36(0xc1),'info':_0x26ef36(0x9f)});}[a77_0x27327d(0xa0)](_0x1d819b,_0x3d90e0,_0x5b393a){const _0x5be9cb=a77_0x27327d;if(!this[_0x5be9cb(0x99)]||!this[_0x5be9cb(0xb8)])return;this[_0x5be9cb(0xb8)][_0x5be9cb(0xa0)](_0x3d90e0,{'command':_0x1d819b,'details':_0x5b393a});}[a77_0x27327d(0x94)](_0x1465cf,_0x2efa8b,_0x437edc,_0x4bf9bc){const _0x3d6340=a77_0x27327d;if(!this[_0x3d6340(0x99)]||!this['winstonLogger'])return;this[_0x3d6340(0xb8)][_0x3d6340(0x96)](_0x3d6340(0xa0),_0x2efa8b,{'level':_0x3d6340(0x94),'command':_0x1465cf,'duration':_0x437edc,'details':_0x4bf9bc});}[a77_0x27327d(0x9c)](_0xef02d0,_0x2982d2,_0x305199){const _0x3eb6d7=a77_0x27327d;if(!this[_0x3eb6d7(0x99)]||!this['winstonLogger'])return;this[_0x3eb6d7(0xb8)][_0x3eb6d7(0x9c)](_0x2982d2,{'command':_0xef02d0,'details':_0x305199});}['warn'](_0x591793,_0x2afafd,_0x4fa09c){const _0x2c9042=a77_0x27327d;if(!this[_0x2c9042(0x99)]||!this[_0x2c9042(0xb8)])return;this[_0x2c9042(0xb8)][_0x2c9042(0xaa)](_0x2afafd,{'command':_0x591793,'details':_0x4fa09c});}async['logTask'](_0x2e5700,_0x447718,_0x4d2fd9){const _0x4d17d4=a77_0x27327d,_0x5507e4=Date[_0x4d17d4(0xa2)]();this['info'](_0x2e5700,_0x4d17d4(0xae)+_0x447718);try{const _0x56cf15=await _0x4d2fd9(),_0x28544a=Date[_0x4d17d4(0xa2)]()-_0x5507e4;return this[_0x4d17d4(0x94)](_0x2e5700,'Completed:\x20'+_0x447718,_0x28544a),_0x56cf15;}catch(_0x464e05){const _0x35029c=Date['now']()-_0x5507e4;this[_0x4d17d4(0x9c)](_0x2e5700,_0x4d17d4(0xb0)+_0x447718,{'error':_0x464e05 instanceof Error?_0x464e05[_0x4d17d4(0xab)]:String(_0x464e05),'duration':_0x35029c});throw _0x464e05;}}[a77_0x27327d(0xaf)](){const _0x4a241b=a77_0x27327d;try{if(!a77_0x5e848c[_0x4a241b(0xa4)](this[_0x4a241b(0x99)]))return[];const _0x67455e=a77_0x5e848c[_0x4a241b(0x91)](this[_0x4a241b(0x99)],'utf8');return _0x67455e[_0x4a241b(0xac)](/\r?\n/)[_0x4a241b(0xb3)](_0x3f229b=>_0x3f229b[_0x4a241b(0xc5)]())[_0x4a241b(0x92)](_0xc1ace4=>JSON[_0x4a241b(0xbf)](_0xc1ace4));}catch(_0x1e4e59){return console[_0x4a241b(0xaa)](_0x4a241b(0xa6),_0x1e4e59),[];}}[a77_0x27327d(0xb4)](){const _0x3aac17=a77_0x27327d;try{a77_0x5e848c['existsSync'](this[_0x3aac17(0x99)])&&a77_0x5e848c[_0x3aac17(0xb2)](this[_0x3aac17(0x99)],'',_0x3aac17(0xc0));}catch(_0x35d89f){console[_0x3aac17(0xaa)](_0x3aac17(0xc7),_0x35d89f);}}[a77_0x27327d(0x9b)](){const _0x50da76=a77_0x27327d;return this[_0x50da76(0xb8)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x4ef62e,_0x19f8d2){var _0x364953=a70_0xfb2d,_0x16253c=_0x4ef62e();while(!![]){try{var _0x27028f=parseInt(_0x364953(0x1d5))/0x1*(parseInt(_0x364953(0x1d6))/0x2)+parseInt(_0x364953(0x1cb))/0x3*(parseInt(_0x364953(0x1cf))/0x4)+-parseInt(_0x364953(0x1d0))/0x5+parseInt(_0x364953(0x1cd))/0x6*(parseInt(_0x364953(0x1d4))/0x7)+-parseInt(_0x364953(0x1ca))/0x8+-parseInt(_0x364953(0x1da))/0x9+parseInt(_0x364953(0x1d7))/0xa;if(_0x27028f===_0x19f8d2)break;else _0x16253c['push'](_0x16253c['shift']());}catch(_0x100b2b){_0x16253c['push'](_0x16253c['shift']());}}}(a70_0x113f,0xcaec6));function a70_0xfb2d(_0x145997,_0x550982){_0x145997=_0x145997-0x1ca;var _0x113f78=a70_0x113f();var _0xfb2dc9=_0x113f78[_0x145997];return _0xfb2dc9;}import{CliErrors}from'../errors.js';function a70_0x113f(){var _0x1ee11a=['isArray','66115zLwexK','1163031DsYmCQ','2DKozQT','5526990yNbOlo','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','13474962zXlIXb','object','4947952cIHyFC','2702247uijFhW','validation','1026yBjube','items','4JUmKse','6423440QlIVCc','Invalid\x20JSON\x20for\x20--params:\x20','parse'];a70_0x113f=function(){return _0x1ee11a;};return a70_0x113f();}export function parseJsonParams(_0x4752ad){var _0x458d88=a70_0xfb2d;if(!_0x4752ad)return undefined;try{return JSON[_0x458d88(0x1d2)](_0x4752ad);}catch{throw CliErrors[_0x458d88(0x1cc)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x4752ad);}}export function parseJsonParamsValue(_0x333b4d){var _0x15f248=a70_0xfb2d;if(!_0x333b4d)return undefined;try{return JSON[_0x15f248(0x1d2)](_0x333b4d);}catch{throw CliErrors['validation'](_0x15f248(0x1d1)+_0x333b4d);}}export function parseBatchCreateItemsFromParams(_0x19c018){var _0x1e84ec=a70_0xfb2d;if(Array[_0x1e84ec(0x1d3)](_0x19c018))return _0x19c018;if(_0x19c018!==null&&_0x19c018!==undefined&&typeof _0x19c018===_0x1e84ec(0x1db)&&Array[_0x1e84ec(0x1d3)](_0x19c018[_0x1e84ec(0x1ce)]))return _0x19c018[_0x1e84ec(0x1ce)];throw CliErrors[_0x1e84ec(0x1cc)](_0x1e84ec(0x1d8),_0x1e84ec(0x1d9));}
1
+ (function(_0x26f0c2,_0x2029bc){var _0x50dcac=a78_0x470c,_0x2e0681=_0x26f0c2();while(!![]){try{var _0x2d9893=parseInt(_0x50dcac(0x180))/0x1+parseInt(_0x50dcac(0x17b))/0x2+-parseInt(_0x50dcac(0x176))/0x3*(-parseInt(_0x50dcac(0x175))/0x4)+-parseInt(_0x50dcac(0x17d))/0x5*(-parseInt(_0x50dcac(0x184))/0x6)+-parseInt(_0x50dcac(0x177))/0x7*(-parseInt(_0x50dcac(0x17c))/0x8)+-parseInt(_0x50dcac(0x185))/0x9*(-parseInt(_0x50dcac(0x186))/0xa)+parseInt(_0x50dcac(0x17e))/0xb*(-parseInt(_0x50dcac(0x182))/0xc);if(_0x2d9893===_0x2029bc)break;else _0x2e0681['push'](_0x2e0681['shift']());}catch(_0x9a9738){_0x2e0681['push'](_0x2e0681['shift']());}}}(a78_0x6779,0x1e2f3));import{CliErrors}from'../errors.js';function a78_0x6779(){var _0x5367d0=['7OwbaaU','object','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Invalid\x20JSON\x20for\x20--params:\x20','379342BbVzkF','363512ibtPTm','354265TrSXsx','154SDshpb','validation','170925IXQLNa','items','452124ICmyYB','parse','6FDDBhx','9DRJFAQ','1031740CjDmup','isArray','284204JKrBnO','3RvHgvU'];a78_0x6779=function(){return _0x5367d0;};return a78_0x6779();}export function parseJsonParams(_0x10a6ca){var _0x502599=a78_0x470c;if(!_0x10a6ca)return undefined;try{return JSON[_0x502599(0x183)](_0x10a6ca);}catch{throw CliErrors[_0x502599(0x17f)](_0x502599(0x17a)+_0x10a6ca);}}function a78_0x470c(_0x136f42,_0xa7270f){_0x136f42=_0x136f42-0x175;var _0x677900=a78_0x6779();var _0x470c9b=_0x677900[_0x136f42];return _0x470c9b;}export function parseJsonParamsValue(_0x4e33e7){var _0x4dfb1e=a78_0x470c;if(!_0x4e33e7)return undefined;try{return JSON[_0x4dfb1e(0x183)](_0x4e33e7);}catch{throw CliErrors[_0x4dfb1e(0x17f)](_0x4dfb1e(0x17a)+_0x4e33e7);}}export function parseBatchCreateItemsFromParams(_0x3e99ee){var _0x4d212c=a78_0x470c;if(Array[_0x4d212c(0x187)](_0x3e99ee))return _0x3e99ee;if(_0x3e99ee!==null&&_0x3e99ee!==undefined&&typeof _0x3e99ee===_0x4d212c(0x178)&&Array[_0x4d212c(0x187)](_0x3e99ee[_0x4d212c(0x181)]))return _0x3e99ee[_0x4d212c(0x181)];throw CliErrors[_0x4d212c(0x17f)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x4d212c(0x179));}
@@ -1 +1 @@
1
- const a71_0x2d5bae=a71_0x3044;(function(_0x341355,_0x6584de){const _0x5f2e67=a71_0x3044,_0x34d780=_0x341355();while(!![]){try{const _0x36dbb2=parseInt(_0x5f2e67(0x149))/0x1+-parseInt(_0x5f2e67(0x148))/0x2*(parseInt(_0x5f2e67(0x14a))/0x3)+parseInt(_0x5f2e67(0x142))/0x4+-parseInt(_0x5f2e67(0x144))/0x5*(parseInt(_0x5f2e67(0x14c))/0x6)+-parseInt(_0x5f2e67(0x14d))/0x7+parseInt(_0x5f2e67(0x146))/0x8+parseInt(_0x5f2e67(0x145))/0x9;if(_0x36dbb2===_0x6584de)break;else _0x34d780['push'](_0x34d780['shift']());}catch(_0x5a1017){_0x34d780['push'](_0x34d780['shift']());}}}(a71_0x30e8,0x62f89));function a71_0x3044(_0x1bd802,_0xd8bab2){_0x1bd802=_0x1bd802-0x142;const _0x30e8b7=a71_0x30e8();let _0x3044e9=_0x30e8b7[_0x1bd802];return _0x3044e9;}export const isWindows=process[a71_0x2d5bae(0x143)]===a71_0x2d5bae(0x147);function a71_0x30e8(){const _0x3f9bc5=['2qFccgq','402169EtsXLE','2015259sapZCS','.cmd','1352982MiuxTd','1925623vWUldd','2807804pgmtJj','platform','5MjPqoI','2437569tiQjcI','1622104lgLmYh','win32'];a71_0x30e8=function(){return _0x3f9bc5;};return a71_0x30e8();}export function resolveNpmBin(_0x4b4996){const _0x5451cd=a71_0x2d5bae;return isWindows?_0x4b4996+_0x5451cd(0x14b):_0x4b4996;}
1
+ function a79_0x294a(_0x3ea2f6,_0x52b235){_0x3ea2f6=_0x3ea2f6-0x85;const _0x319754=a79_0x3197();let _0x294ac4=_0x319754[_0x3ea2f6];return _0x294ac4;}function a79_0x3197(){const _0x9a210e=['921378KXBZNK','38347398ytSjcg','.cmd','6839868fgXdCo','4002540GfJJdr','213VqnjwK','748586hGrSdo','54616jnjbKl','8mlIMdQ','3566730GqZkdg','win32'];a79_0x3197=function(){return _0x9a210e;};return a79_0x3197();}const a79_0x2e638e=a79_0x294a;(function(_0x15d0e6,_0x438619){const _0x4a00f9=a79_0x294a,_0x4c7790=_0x15d0e6();while(!![]){try{const _0xd5b832=-parseInt(_0x4a00f9(0x8c))/0x1+parseInt(_0x4a00f9(0x86))/0x2+-parseInt(_0x4a00f9(0x8b))/0x3*(parseInt(_0x4a00f9(0x8d))/0x4)+-parseInt(_0x4a00f9(0x8a))/0x5+-parseInt(_0x4a00f9(0x8f))/0x6+-parseInt(_0x4a00f9(0x89))/0x7*(parseInt(_0x4a00f9(0x8e))/0x8)+parseInt(_0x4a00f9(0x87))/0x9;if(_0xd5b832===_0x438619)break;else _0x4c7790['push'](_0x4c7790['shift']());}catch(_0x541f6b){_0x4c7790['push'](_0x4c7790['shift']());}}}(a79_0x3197,0x9a26c));export const isWindows=process['platform']===a79_0x2e638e(0x85);export function resolveNpmBin(_0x5d0273){const _0x2a6e95=a79_0x2e638e;return isWindows?_0x5d0273+_0x2a6e95(0x88):_0x5d0273;}
@@ -1 +1 @@
1
- (function(_0x390cd0,_0x4514d3){const _0x435ac0=a72_0x7b46,_0x67c2f1=_0x390cd0();while(!![]){try{const _0x12a15b=-parseInt(_0x435ac0(0x114))/0x1*(-parseInt(_0x435ac0(0xfb))/0x2)+-parseInt(_0x435ac0(0x107))/0x3*(parseInt(_0x435ac0(0xf1))/0x4)+parseInt(_0x435ac0(0x10a))/0x5+parseInt(_0x435ac0(0x10b))/0x6*(parseInt(_0x435ac0(0x108))/0x7)+parseInt(_0x435ac0(0x10c))/0x8+parseInt(_0x435ac0(0xf4))/0x9*(parseInt(_0x435ac0(0xf7))/0xa)+-parseInt(_0x435ac0(0xf8))/0xb*(parseInt(_0x435ac0(0xee))/0xc);if(_0x12a15b===_0x4514d3)break;else _0x67c2f1['push'](_0x67c2f1['shift']());}catch(_0x4d041a){_0x67c2f1['push'](_0x67c2f1['shift']());}}}(a72_0x3901,0x41507));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x39bea8){const _0xe66372=a72_0x7b46,_0x15ac00=_0x39bea8[_0xe66372(0xef)]()[_0xe66372(0x102)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x15ac00)return null;return{'major':Number(_0x15ac00[0x1]),'minor':Number(_0x15ac00[0x2]),'patch':Number(_0x15ac00[0x3]),'prerelease':_0x15ac00[0x4]};}function compareSemver(_0x4b28b3,_0x513bab){const _0x37074e=a72_0x7b46,_0x383435=parseSemver(_0x4b28b3),_0x1639a8=parseSemver(_0x513bab);if(!_0x383435||!_0x1639a8)throw new Error(_0x37074e(0x10f));for(const _0x126fa8 of[_0x37074e(0xfa),_0x37074e(0xf9),'patch']){if(_0x383435[_0x126fa8]<_0x1639a8[_0x126fa8])return-0x1;if(_0x383435[_0x126fa8]>_0x1639a8[_0x126fa8])return 0x1;}if(!_0x383435['prerelease']&&!_0x1639a8[_0x37074e(0x111)])return 0x0;if(!_0x383435[_0x37074e(0x111)])return 0x1;if(!_0x1639a8[_0x37074e(0x111)])return-0x1;if(_0x383435[_0x37074e(0x111)]===_0x1639a8[_0x37074e(0x111)])return 0x0;return _0x383435['prerelease']<_0x1639a8['prerelease']?-0x1:0x1;}function a72_0x7b46(_0x10093f,_0x325385){_0x10093f=_0x10093f-0xee;const _0x390182=a72_0x3901();let _0x7b46c7=_0x390182[_0x10093f];return _0x7b46c7;}function isUpdateNoticeDisabled(){const _0xafd4a2=a72_0x7b46,_0x4f8d55=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0xafd4a2(0xf2)]();return _0x4f8d55==='1'||_0x4f8d55===_0xafd4a2(0x110)||_0x4f8d55==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x5630a2=a72_0x7b46;return join(cacheRoot(),_0x5630a2(0xfc),_0x5630a2(0xff));}async function readUpdateNoticeCache(){const _0x4a3c9b=a72_0x7b46;try{const _0x19d78d=await readFile(getUpdateNoticeCachePath(),_0x4a3c9b(0x105)),_0x558382=JSON['parse'](_0x19d78d);if(!_0x558382||typeof _0x558382!==_0x4a3c9b(0x10d))return{};return _0x558382;}catch{return{};}}async function writeUpdateNoticeCache(_0x13380f){const _0x491428=a72_0x7b46;try{const _0x119576=getUpdateNoticeCachePath();await mkdir(dirname(_0x119576),{'recursive':!![]}),await writeFile(_0x119576,JSON[_0x491428(0xf3)](_0x13380f,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x2ec6c6,_0x22aa92){const _0x4bd908=a72_0x7b46;return typeof _0x2ec6c6[_0x4bd908(0x101)]==='number'&&_0x22aa92-_0x2ec6c6['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3092d2,_0x23af84,_0x55e781){const _0x144c32=a72_0x7b46;return _0x3092d2['lastNotifiedVersion']===_0x23af84&&typeof _0x3092d2[_0x144c32(0x106)]===_0x144c32(0xf5)&&_0x55e781-_0x3092d2[_0x144c32(0x106)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x1d0128=0x5dc){const _0x261d66=a72_0x7b46;try{const _0x3617e0=NPM_REGISTRY_BASE_URL+_0x261d66(0x113)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x31bf89=await fetch(_0x3617e0,{'signal':AbortSignal[_0x261d66(0x100)](_0x1d0128)});if(!_0x31bf89['ok'])return null;const _0x10bdb9=await _0x31bf89['json']();if(!_0x10bdb9||typeof _0x10bdb9!=='object')return null;return Object['fromEntries'](Object[_0x261d66(0x104)](_0x10bdb9)[_0x261d66(0xfd)](([,_0x5c5347])=>typeof _0x5c5347===_0x261d66(0x103)&&_0x5c5347[_0x261d66(0xef)]())['map'](([_0x5d7a0f,_0x149743])=>[_0x5d7a0f,String(_0x149743)[_0x261d66(0xef)]()]));}catch{return null;}}function a72_0x3901(){const _0x46fc28=['stringify','4383KQsEXa','number','latest','1130cHntbb','33jnIJUL','minor','major','52yfboFK','lovrabet-cli','filter','now','update-check.json','timeout','checkedAt','match','string','entries','utf8','lastNotifiedAt','10989GkNlvp','21NbQhVU','\x20available,\x20current\x20','51330ryIUaJ','75318lestgR','3213496uowJfP','object','/v/','Invalid\x20semver','true','prerelease','https://www.npmjs.com/package/','/-/package/','4211UoWcSN','1078716sBEctK','trim','\x20update','84WgVyKb','toLowerCase'];a72_0x3901=function(){return _0x46fc28;};return a72_0x3901();}export function buildNpmVersionUrl(_0x54a247){const _0x4fbf8c=a72_0x7b46;return _0x4fbf8c(0x112)+LOVRABET_NPM_PACKAGE_NAME+_0x4fbf8c(0x10e)+_0x54a247;}export async function resolveLatestUpdateNotice(){const _0x446179=a72_0x7b46;if(isUpdateNoticeDisabled())return null;try{const _0x2ac960=Date[_0x446179(0xfe)](),_0x2b6554=getCliVersion(),_0x1177f4=await readUpdateNoticeCache();let _0xe68afc=isFreshCheck(_0x1177f4,_0x2ac960)?_0x1177f4[_0x446179(0xf6)]?.['trim']():undefined;if(!_0xe68afc&&!isFreshCheck(_0x1177f4,_0x2ac960)){const _0x430f86=await fetchNpmDistTags();_0xe68afc=_0x430f86?.[_0x446179(0xf6)]?.[_0x446179(0xef)](),await writeUpdateNoticeCache({..._0x1177f4,'checkedAt':_0x2ac960,'latest':_0xe68afc,'failed':!_0xe68afc});}if(!_0xe68afc||compareSemver(_0x2b6554,_0xe68afc)>=0x0)return null;if(isRecentlyNotified(_0x1177f4,_0xe68afc,_0x2ac960))return null;const _0x32a8c1=CLI_BIN_NAME+_0x446179(0xf0);return await writeUpdateNoticeCache({..._0x1177f4,'checkedAt':isFreshCheck(_0x1177f4,_0x2ac960)?_0x1177f4[_0x446179(0x101)]:_0x2ac960,'latest':_0xe68afc,'failed':![],'lastNotifiedVersion':_0xe68afc,'lastNotifiedAt':_0x2ac960}),{'command':_0x32a8c1,'current':_0x2b6554,'latest':_0xe68afc,'url':buildNpmVersionUrl(_0xe68afc),'message':CLI_BIN_NAME+'\x20'+_0xe68afc+_0x446179(0x109)+_0x2b6554+',\x20run:\x20'+_0x32a8c1};}catch{return null;}}
1
+ (function(_0x38f3bd,_0x56d2b7){const _0xad9bf9=a80_0x4026,_0x1c98ad=_0x38f3bd();while(!![]){try{const _0x269753=-parseInt(_0xad9bf9(0x10f))/0x1*(-parseInt(_0xad9bf9(0x118))/0x2)+-parseInt(_0xad9bf9(0x124))/0x3+-parseInt(_0xad9bf9(0x11f))/0x4*(-parseInt(_0xad9bf9(0x113))/0x5)+-parseInt(_0xad9bf9(0x126))/0x6+-parseInt(_0xad9bf9(0x11c))/0x7*(parseInt(_0xad9bf9(0x135))/0x8)+-parseInt(_0xad9bf9(0x115))/0x9*(-parseInt(_0xad9bf9(0x12d))/0xa)+-parseInt(_0xad9bf9(0x133))/0xb;if(_0x269753===_0x56d2b7)break;else _0x1c98ad['push'](_0x1c98ad['shift']());}catch(_0x2cff73){_0x1c98ad['push'](_0x1c98ad['shift']());}}}(a80_0x3108,0xe8544));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x104b88){const _0x50244a=_0x104b88['trim']()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x50244a)return null;return{'major':Number(_0x50244a[0x1]),'minor':Number(_0x50244a[0x2]),'patch':Number(_0x50244a[0x3]),'prerelease':_0x50244a[0x4]};}function compareSemver(_0x26ced2,_0x325701){const _0x181ee1=a80_0x4026,_0x39de7=parseSemver(_0x26ced2),_0x4d9a5d=parseSemver(_0x325701);if(!_0x39de7||!_0x4d9a5d)throw new Error(_0x181ee1(0x12a));for(const _0x30b19e of[_0x181ee1(0x136),_0x181ee1(0x128),_0x181ee1(0x112)]){if(_0x39de7[_0x30b19e]<_0x4d9a5d[_0x30b19e])return-0x1;if(_0x39de7[_0x30b19e]>_0x4d9a5d[_0x30b19e])return 0x1;}if(!_0x39de7[_0x181ee1(0x117)]&&!_0x4d9a5d[_0x181ee1(0x117)])return 0x0;if(!_0x39de7[_0x181ee1(0x117)])return 0x1;if(!_0x4d9a5d[_0x181ee1(0x117)])return-0x1;if(_0x39de7[_0x181ee1(0x117)]===_0x4d9a5d['prerelease'])return 0x0;return _0x39de7[_0x181ee1(0x117)]<_0x4d9a5d['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x34ee4a=a80_0x4026,_0x163540=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x34ee4a(0x11e)]();return _0x163540==='1'||_0x163540==='true'||_0x163540===_0x34ee4a(0x132);}function a80_0x3108(){const _0x3c53b7=['13BupXiN','\x20available,\x20current\x20','latest','patch','115410WogQCw','trim','17038044APKgcA','/-/package/','prerelease','103668qaNNfJ','now','timeout','/dist-tags','9664907YRiMAS','entries','toLowerCase','328RnPGbR','https://www.npmjs.com/package/','stringify','json','\x20update','1643214DQxROf','object','6330198BpvbDN','lovrabet-cli','minor','/v/','Invalid\x20semver','checkedAt','fromEntries','10kGgRDx','.cache','update-check.json','lastNotifiedVersion','utf8','yes','5770490OZKxBR','filter','8uSqTiL','major','lastNotifiedAt'];a80_0x3108=function(){return _0x3c53b7;};return a80_0x3108();}function cacheRoot(){const _0x28f6b9=a80_0x4026;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x28f6b9(0x12e));}export function getUpdateNoticeCachePath(){const _0x1c36ac=a80_0x4026;return join(cacheRoot(),_0x1c36ac(0x127),_0x1c36ac(0x12f));}async function readUpdateNoticeCache(){const _0x4ba109=a80_0x4026;try{const _0x23e67c=await readFile(getUpdateNoticeCachePath(),_0x4ba109(0x131)),_0x3dbbf6=JSON['parse'](_0x23e67c);if(!_0x3dbbf6||typeof _0x3dbbf6!=='object')return{};return _0x3dbbf6;}catch{return{};}}async function writeUpdateNoticeCache(_0x3b306c){const _0x2ce5c6=a80_0x4026;try{const _0x595e0c=getUpdateNoticeCachePath();await mkdir(dirname(_0x595e0c),{'recursive':!![]}),await writeFile(_0x595e0c,JSON[_0x2ce5c6(0x121)](_0x3b306c,null,0x2)+'\x0a',_0x2ce5c6(0x131));}catch{}}function isFreshCheck(_0x5cc84b,_0x13d4b1){const _0x5cec99=a80_0x4026;return typeof _0x5cc84b[_0x5cec99(0x12b)]==='number'&&_0x13d4b1-_0x5cc84b['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x25c402,_0x553fc8,_0x15598e){const _0xdaf1e9=a80_0x4026;return _0x25c402[_0xdaf1e9(0x130)]===_0x553fc8&&typeof _0x25c402[_0xdaf1e9(0x137)]==='number'&&_0x15598e-_0x25c402[_0xdaf1e9(0x137)]<UPDATE_NOTICE_TTL_MS;}function a80_0x4026(_0x53f8d8,_0x1c0d09){_0x53f8d8=_0x53f8d8-0x10f;const _0x310861=a80_0x3108();let _0x402615=_0x310861[_0x53f8d8];return _0x402615;}async function fetchNpmDistTags(_0x35687b=0x5dc){const _0x10f9dc=a80_0x4026;try{const _0xab8ba5=NPM_REGISTRY_BASE_URL+_0x10f9dc(0x116)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x10f9dc(0x11b),_0x571787=await fetch(_0xab8ba5,{'signal':AbortSignal[_0x10f9dc(0x11a)](_0x35687b)});if(!_0x571787['ok'])return null;const _0x193003=await _0x571787[_0x10f9dc(0x122)]();if(!_0x193003||typeof _0x193003!==_0x10f9dc(0x125))return null;return Object[_0x10f9dc(0x12c)](Object[_0x10f9dc(0x11d)](_0x193003)[_0x10f9dc(0x134)](([,_0x35187c])=>typeof _0x35187c==='string'&&_0x35187c[_0x10f9dc(0x114)]())['map'](([_0x4ca191,_0xb758a0])=>[_0x4ca191,String(_0xb758a0)[_0x10f9dc(0x114)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x34602d){const _0x1fc4e2=a80_0x4026;return _0x1fc4e2(0x120)+LOVRABET_NPM_PACKAGE_NAME+_0x1fc4e2(0x129)+_0x34602d;}export async function resolveLatestUpdateNotice(){const _0x4f376d=a80_0x4026;if(isUpdateNoticeDisabled())return null;try{const _0x4870d5=Date[_0x4f376d(0x119)](),_0x6dd414=getCliVersion(),_0x5abec4=await readUpdateNoticeCache();let _0x4b91c9=isFreshCheck(_0x5abec4,_0x4870d5)?_0x5abec4[_0x4f376d(0x111)]?.[_0x4f376d(0x114)]():undefined;if(!_0x4b91c9&&!isFreshCheck(_0x5abec4,_0x4870d5)){const _0xcc8024=await fetchNpmDistTags();_0x4b91c9=_0xcc8024?.[_0x4f376d(0x111)]?.[_0x4f376d(0x114)](),await writeUpdateNoticeCache({..._0x5abec4,'checkedAt':_0x4870d5,'latest':_0x4b91c9,'failed':!_0x4b91c9});}if(!_0x4b91c9||compareSemver(_0x6dd414,_0x4b91c9)>=0x0)return null;if(isRecentlyNotified(_0x5abec4,_0x4b91c9,_0x4870d5))return null;const _0xda3422=CLI_BIN_NAME+_0x4f376d(0x123);return await writeUpdateNoticeCache({..._0x5abec4,'checkedAt':isFreshCheck(_0x5abec4,_0x4870d5)?_0x5abec4[_0x4f376d(0x12b)]:_0x4870d5,'latest':_0x4b91c9,'failed':![],'lastNotifiedVersion':_0x4b91c9,'lastNotifiedAt':_0x4870d5}),{'command':_0xda3422,'current':_0x6dd414,'latest':_0x4b91c9,'url':buildNpmVersionUrl(_0x4b91c9),'message':CLI_BIN_NAME+'\x20'+_0x4b91c9+_0x4f376d(0x110)+_0x6dd414+',\x20run:\x20'+_0xda3422};}catch{return null;}}
@@ -1 +1 @@
1
- function a73_0x588f(_0x3b284e,_0x3c7316){_0x3b284e=_0x3b284e-0x14b;const _0x4bb535=a73_0x4bb5();let _0x588f00=_0x4bb535[_0x3b284e];return _0x588f00;}function a73_0x4bb5(){const _0x3a71e0=['675032gZttQK','60628QJLZYe','337603NzSRRA','153987piVSOe','254910mgBYge','3288456wmCJzM','unknown','2qGumDr','20DqCLSX','700824PLhstU','slice'];a73_0x4bb5=function(){return _0x3a71e0;};return a73_0x4bb5();}(function(_0x2a4457,_0x203ff3){const _0x4590c6=a73_0x588f,_0x2d4f34=_0x2a4457();while(!![]){try{const _0x5204a9=-parseInt(_0x4590c6(0x154))/0x1*(parseInt(_0x4590c6(0x14d))/0x2)+-parseInt(_0x4590c6(0x155))/0x3+-parseInt(_0x4590c6(0x152))/0x4*(-parseInt(_0x4590c6(0x14e))/0x5)+-parseInt(_0x4590c6(0x14f))/0x6+-parseInt(_0x4590c6(0x153))/0x7+parseInt(_0x4590c6(0x151))/0x8+parseInt(_0x4590c6(0x14b))/0x9;if(_0x5204a9===_0x203ff3)break;else _0x2d4f34['push'](_0x2d4f34['shift']());}catch(_0x1f0bae){_0x2d4f34['push'](_0x2d4f34['shift']());}}}(a73_0x4bb5,0x19fa1));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x3e6f74=a73_0x588f,_0x305497=String(GIT_COMMIT);return _0x305497&&_0x305497!==_0x3e6f74(0x14c)?_0x305497:'';}export function getCliVersionDisplay(){const _0x49aa34=a73_0x588f,_0x221494=getCliGitCommit(),_0x31805e=BUILD_TIME[_0x49aa34(0x150)](0x0,0xa);if(!_0x221494||!_0x31805e)return VERSION;return VERSION+'\x20('+_0x221494+',\x20'+_0x31805e+')';}
1
+ (function(_0x322f6f,_0x2b5e30){const _0x535334=a81_0x4dbc,_0x744709=_0x322f6f();while(!![]){try{const _0x4d3e34=parseInt(_0x535334(0x13b))/0x1*(-parseInt(_0x535334(0x137))/0x2)+-parseInt(_0x535334(0x13e))/0x3*(parseInt(_0x535334(0x139))/0x4)+parseInt(_0x535334(0x135))/0x5*(-parseInt(_0x535334(0x133))/0x6)+parseInt(_0x535334(0x13f))/0x7*(-parseInt(_0x535334(0x134))/0x8)+parseInt(_0x535334(0x138))/0x9+-parseInt(_0x535334(0x13d))/0xa+parseInt(_0x535334(0x132))/0xb*(parseInt(_0x535334(0x13c))/0xc);if(_0x4d3e34===_0x2b5e30)break;else _0x744709['push'](_0x744709['shift']());}catch(_0x4f8b68){_0x744709['push'](_0x744709['shift']());}}}(a81_0x41ce,0xa5353));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a81_0x4dbc(_0x32f4b1,_0x4ea5f9){_0x32f4b1=_0x32f4b1-0x132;const _0x41ce30=a81_0x41ce();let _0x4dbc69=_0x41ce30[_0x32f4b1];return _0x4dbc69;}function a81_0x41ce(){const _0x4368ca=['376lTpedE','5EQvRna','slice','5878hMCXYC','971730gaOBFO','1352EYeBFM','unknown','23QbanZj','848604cBCwRB','2108750glOKxy','1560YqdPep','102949CmrvOf','473bKuMIu','7959894AWLOYi'];a81_0x41ce=function(){return _0x4368ca;};return a81_0x41ce();}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x438f41=a81_0x4dbc,_0x3b97d6=String(GIT_COMMIT);return _0x3b97d6&&_0x3b97d6!==_0x438f41(0x13a)?_0x3b97d6:'';}export function getCliVersionDisplay(){const _0x464904=a81_0x4dbc,_0x5c8417=getCliGitCommit(),_0x5719ac=BUILD_TIME[_0x464904(0x136)](0x0,0xa);if(!_0x5c8417||!_0x5719ac)return VERSION;return VERSION+'\x20('+_0x5c8417+',\x20'+_0x5719ac+')';}
@@ -1 +1 @@
1
- function a74_0x5cc6(_0x7792af,_0x7c974a){_0x7792af=_0x7792af-0xce;var _0xcbc01c=a74_0xcbc0();var _0x5cc6f7=_0xcbc01c[_0x7792af];return _0x5cc6f7;}(function(_0x2d50a8,_0x122e8e){var _0x53c64a=a74_0x5cc6,_0x5cd9e3=_0x2d50a8();while(!![]){try{var _0x26a966=parseInt(_0x53c64a(0xd4))/0x1+parseInt(_0x53c64a(0xd6))/0x2+-parseInt(_0x53c64a(0xd5))/0x3+parseInt(_0x53c64a(0xd1))/0x4+-parseInt(_0x53c64a(0xce))/0x5*(parseInt(_0x53c64a(0xd2))/0x6)+parseInt(_0x53c64a(0xd3))/0x7*(parseInt(_0x53c64a(0xd7))/0x8)+-parseInt(_0x53c64a(0xd9))/0x9*(parseInt(_0x53c64a(0xd0))/0xa);if(_0x26a966===_0x122e8e)break;else _0x5cd9e3['push'](_0x5cd9e3['shift']());}catch(_0x30efac){_0x5cd9e3['push'](_0x5cd9e3['shift']());}}}(a74_0xcbc0,0x828ff));export function writeCliSideChannelLine(_0x520de5){var _0x3e2487=a74_0x5cc6;process[_0x3e2487(0xd8)][_0x3e2487(0xcf)](_0x520de5+'\x0a');}function a74_0xcbc0(){var _0x1d9d0f=['18QWtFBc','4613MsBHUi','1034752iGwVWn','2634324bJBcPo','1510048AJuABz','2968LYLiJt','stderr','9gzYhmy','223885teODkK','write','9642660wnRVxk','1908892YoboBo'];a74_0xcbc0=function(){return _0x1d9d0f;};return a74_0xcbc0();}
1
+ function a82_0x26c9(_0x499b27,_0x300d1d){_0x499b27=_0x499b27-0x94;var _0x201ef2=a82_0x201e();var _0x26c921=_0x201ef2[_0x499b27];return _0x26c921;}(function(_0x23ac91,_0x1f07e4){var _0x42eebf=a82_0x26c9,_0x5559a2=_0x23ac91();while(!![]){try{var _0x135fe8=-parseInt(_0x42eebf(0x95))/0x1+-parseInt(_0x42eebf(0x9e))/0x2*(parseInt(_0x42eebf(0x94))/0x3)+parseInt(_0x42eebf(0x9f))/0x4*(parseInt(_0x42eebf(0x9c))/0x5)+-parseInt(_0x42eebf(0x9b))/0x6+-parseInt(_0x42eebf(0x9a))/0x7*(-parseInt(_0x42eebf(0x98))/0x8)+-parseInt(_0x42eebf(0x97))/0x9+-parseInt(_0x42eebf(0x99))/0xa*(-parseInt(_0x42eebf(0x9d))/0xb);if(_0x135fe8===_0x1f07e4)break;else _0x5559a2['push'](_0x5559a2['shift']());}catch(_0x4bf148){_0x5559a2['push'](_0x5559a2['shift']());}}}(a82_0x201e,0x1dd20));export function writeCliSideChannelLine(_0x22ce64){var _0x5850ad=a82_0x26c9;process['stderr'][_0x5850ad(0x96)](_0x22ce64+'\x0a');}function a82_0x201e(){var _0x50328d=['290091sXrbUc','43348WtmDBv','write','629280nXFYxV','1934056yfkkKp','70GKnRLZ','7csaikA','978648kgyAbl','9845EKAKUs','491458NAgcaI','4fraWVc','76rzzuBu'];a82_0x201e=function(){return _0x50328d;};return a82_0x201e();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.0.13",
3
+ "version": "2.0.14-beta.10",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,9 +20,9 @@
20
20
  },
21
21
  "scripts": {
22
22
  "prebuild": "node scripts/generate-build-info.js",
23
- "build": "rimraf lib && tsc && tsc-alias && javascript-obfuscator lib --output lib",
23
+ "build": "rimraf lib && tsc && tsc-alias && javascript-obfuscator lib --output lib && node scripts/ensure-bin-executable.mjs",
24
24
  "prebuild:dev": "node scripts/generate-build-info.js",
25
- "build:dev": "rimraf lib && tsc && tsc-alias",
25
+ "build:dev": "rimraf lib && tsc && tsc-alias && node scripts/ensure-bin-executable.mjs",
26
26
  "prestart": "node scripts/generate-build-info.js",
27
27
  "start": "tsc --watch",
28
28
  "pretypecheck": "node scripts/generate-build-info.js",
@@ -36,9 +36,11 @@
36
36
  "check:skill-version": "node scripts/check-skill-version.mjs",
37
37
  "ci": "npm run typecheck && npm run check:skill-version && npm run check:lockfile && npm run build",
38
38
  "pretest": "node scripts/generate-build-info.js",
39
- "test": "vitest",
39
+ "test": "vitest run",
40
40
  "pretest:run": "node scripts/generate-build-info.js",
41
41
  "test:run": "vitest run",
42
+ "pretest:watch": "node scripts/generate-build-info.js",
43
+ "test:watch": "vitest",
42
44
  "pretest:coverage": "node scripts/generate-build-info.js",
43
45
  "test:coverage": "vitest run --coverage"
44
46
  },
@@ -46,8 +48,8 @@
46
48
  "lib"
47
49
  ],
48
50
  "dependencies": {
49
- "@lovrabet/cli-framework": "1.0.3",
50
- "@lovrabet/sdk": "1.4.1",
51
+ "@lovrabet/cli-framework": "1.0.5",
52
+ "@lovrabet/sdk": "1.4.2",
51
53
  "chalk": "^5.6.2",
52
54
  "ink": "^6.2.3",
53
55
  "ink-spinner": "^5.0.0",