@lovrabet/lovrabet-cli 2.1.2-beta.1 → 2.1.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 (85) 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 -1
  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/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/index.js +1 -1
  37. package/lib/commands/skill/templates.js +1 -1
  38. package/lib/commands/skill/validate.js +1 -1
  39. package/lib/commands/sql/detail.js +1 -1
  40. package/lib/commands/sql/exec.js +1 -1
  41. package/lib/commands/sql/index.js +1 -1
  42. package/lib/commands/update.js +1 -1
  43. package/lib/commands/workspace/index.js +1 -1
  44. package/lib/config/schema.js +1 -1
  45. package/lib/constant/app.js +1 -1
  46. package/lib/constant/auth-mode.js +1 -1
  47. package/lib/constant/cli.js +1 -1
  48. package/lib/constant/defaults.js +1 -1
  49. package/lib/constant/distribution.js +1 -1
  50. package/lib/constant/domain.js +1 -1
  51. package/lib/constant/env.js +1 -1
  52. package/lib/constant/output.js +1 -1
  53. package/lib/constant/product.js +1 -1
  54. package/lib/constant/risk.js +1 -1
  55. package/lib/constant/url.js +1 -1
  56. package/lib/context.js +1 -1
  57. package/lib/core/api-client.js +1 -1
  58. package/lib/core/db-resolver.js +1 -1
  59. package/lib/core/sdk-client.js +1 -1
  60. package/lib/errors.js +1 -1
  61. package/lib/framework/build-all-flags.js +1 -1
  62. package/lib/framework/dryrun.js +1 -1
  63. package/lib/framework/flags.js +1 -1
  64. package/lib/framework/help.js +1 -1
  65. package/lib/framework/index.js +1 -1
  66. package/lib/framework/output.js +1 -1
  67. package/lib/framework/preparse.js +1 -1
  68. package/lib/framework/response.js +1 -1
  69. package/lib/framework/runner-confirmation.js +1 -1
  70. package/lib/framework/runner-error.js +1 -1
  71. package/lib/framework/runner.js +1 -1
  72. package/lib/framework/schema-export.js +1 -1
  73. package/lib/framework/types.js +1 -1
  74. package/lib/generated/build-info.js +1 -1
  75. package/lib/help.js +1 -1
  76. package/lib/skills/npx-skills-add.js +1 -1
  77. package/lib/skills/runtime-skill-sync.js +1 -1
  78. package/lib/utils/apply-jq-filter.js +1 -1
  79. package/lib/utils/logger.js +1 -1
  80. package/lib/utils/params.js +1 -1
  81. package/lib/utils/platform.js +1 -1
  82. package/lib/utils/update-notice.js +1 -1
  83. package/lib/utils/version.js +1 -1
  84. package/lib/utils/write-cli-side-channel.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- const a80_0x5498ec=a80_0x5dae;function a80_0x5dae(_0x1cdc0,_0x1b3247){_0x1cdc0=_0x1cdc0-0xff;const _0x581660=a80_0x5816();let _0x5daeb9=_0x581660[_0x1cdc0];return _0x5daeb9;}(function(_0x3994be,_0x13b5e3){const _0x14da77=a80_0x5dae,_0x4ff5f1=_0x3994be();while(!![]){try{const _0x1ce0cd=parseInt(_0x14da77(0x108))/0x1+parseInt(_0x14da77(0xff))/0x2*(-parseInt(_0x14da77(0x101))/0x3)+-parseInt(_0x14da77(0x100))/0x4*(-parseInt(_0x14da77(0x106))/0x5)+parseInt(_0x14da77(0x104))/0x6+-parseInt(_0x14da77(0x109))/0x7+parseInt(_0x14da77(0x103))/0x8*(-parseInt(_0x14da77(0x102))/0x9)+-parseInt(_0x14da77(0x105))/0xa;if(_0x1ce0cd===_0x13b5e3)break;else _0x4ff5f1['push'](_0x4ff5f1['shift']());}catch(_0x5a1f0a){_0x4ff5f1['push'](_0x4ff5f1['shift']());}}}(a80_0x5816,0x9e922));function a80_0x5816(){const _0x2e5e8e=['3702Yfxegv','815132xKBmKS','831lcvBKo','1611mOwqBO','4568JAuJTP','6530262fWTNED','8663850scegNc','25IvXHex','platform','863432aToqgA','5879279JHrVBJ'];a80_0x5816=function(){return _0x2e5e8e;};return a80_0x5816();}export const isWindows=process[a80_0x5498ec(0x107)]==='win32';export function resolveNpmBin(_0x245446){return isWindows?_0x245446+'.cmd':_0x245446;}
1
+ function a80_0x43d8(_0x45c2b9,_0x1107f2){_0x45c2b9=_0x45c2b9-0xcd;const _0x593d0e=a80_0x593d();let _0x43d888=_0x593d0e[_0x45c2b9];return _0x43d888;}const a80_0x4cb91f=a80_0x43d8;(function(_0x7af7c,_0x5bec76){const _0x15dbbe=a80_0x43d8,_0x1f1c29=_0x7af7c();while(!![]){try{const _0x915187=parseInt(_0x15dbbe(0xcf))/0x1+parseInt(_0x15dbbe(0xd6))/0x2*(parseInt(_0x15dbbe(0xd0))/0x3)+-parseInt(_0x15dbbe(0xd3))/0x4+-parseInt(_0x15dbbe(0xce))/0x5+-parseInt(_0x15dbbe(0xd4))/0x6+parseInt(_0x15dbbe(0xd5))/0x7+parseInt(_0x15dbbe(0xd1))/0x8;if(_0x915187===_0x5bec76)break;else _0x1f1c29['push'](_0x1f1c29['shift']());}catch(_0x23cea1){_0x1f1c29['push'](_0x1f1c29['shift']());}}}(a80_0x593d,0x1e33f));function a80_0x593d(){const _0x34413c=['258siFwvS','784216vXpBnh','win32','636424ZBJhpa','229500CHfSfB','682185EJTvRK','3890bCYGda','.cmd','747660qSGbwa','107847cHKiaW'];a80_0x593d=function(){return _0x34413c;};return a80_0x593d();}export const isWindows=process['platform']===a80_0x4cb91f(0xd2);export function resolveNpmBin(_0x4cc9c7){const _0x4e7ad9=a80_0x4cb91f;return isWindows?_0x4cc9c7+_0x4e7ad9(0xcd):_0x4cc9c7;}
@@ -1 +1 @@
1
- (function(_0x1d4573,_0x18a4b6){const _0x57b284=a81_0x2c43,_0x1c69e6=_0x1d4573();while(!![]){try{const _0x117359=-parseInt(_0x57b284(0xac))/0x1+-parseInt(_0x57b284(0xbb))/0x2+-parseInt(_0x57b284(0xa5))/0x3+-parseInt(_0x57b284(0xb1))/0x4+parseInt(_0x57b284(0xa7))/0x5*(-parseInt(_0x57b284(0x9f))/0x6)+-parseInt(_0x57b284(0xab))/0x7+-parseInt(_0x57b284(0xa0))/0x8*(-parseInt(_0x57b284(0x9e))/0x9);if(_0x117359===_0x18a4b6)break;else _0x1c69e6['push'](_0x1c69e6['shift']());}catch(_0x45bea2){_0x1c69e6['push'](_0x1c69e6['shift']());}}}(a81_0x4c3b,0x465e4));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 a81_0x4c3b(){const _0x3f0cd7=['timeout','475798qGNQPw','utf8','/-/package/','map','fromEntries','latest','https://www.npmjs.com/package/','match','parse','lastNotifiedAt','21224169YGsfzU','2703504ZnrYjF','8kOtpIf','now','trim','\x20update',',\x20run:\x20','246030pXcnGg','number','5keuFhI','filter','minor','lastNotifiedVersion','3100594kJeybr','537802EDzJHH','/dist-tags','patch','toLowerCase','.cache','1275104PnYack','prerelease','major','json','Invalid\x20semver','lovrabet-cli','checkedAt','object','true'];a81_0x4c3b=function(){return _0x3f0cd7;};return a81_0x4c3b();}function parseSemver(_0xb8e154){const _0x4709f5=a81_0x2c43,_0x151cfb=_0xb8e154[_0x4709f5(0xa2)]()[_0x4709f5(0x9b)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x151cfb)return null;return{'major':Number(_0x151cfb[0x1]),'minor':Number(_0x151cfb[0x2]),'patch':Number(_0x151cfb[0x3]),'prerelease':_0x151cfb[0x4]};}function compareSemver(_0x5c24ae,_0x2dad89){const _0x2865b4=a81_0x2c43,_0x21f4cc=parseSemver(_0x5c24ae),_0xff78fd=parseSemver(_0x2dad89);if(!_0x21f4cc||!_0xff78fd)throw new Error(_0x2865b4(0xb5));for(const _0x4cae2e of[_0x2865b4(0xb3),_0x2865b4(0xa9),_0x2865b4(0xae)]){if(_0x21f4cc[_0x4cae2e]<_0xff78fd[_0x4cae2e])return-0x1;if(_0x21f4cc[_0x4cae2e]>_0xff78fd[_0x4cae2e])return 0x1;}if(!_0x21f4cc['prerelease']&&!_0xff78fd['prerelease'])return 0x0;if(!_0x21f4cc[_0x2865b4(0xb2)])return 0x1;if(!_0xff78fd['prerelease'])return-0x1;if(_0x21f4cc['prerelease']===_0xff78fd[_0x2865b4(0xb2)])return 0x0;return _0x21f4cc['prerelease']<_0xff78fd[_0x2865b4(0xb2)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x5bcc2d=a81_0x2c43,_0xc0cd67=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x5bcc2d(0xa2)]()[_0x5bcc2d(0xaf)]();return _0xc0cd67==='1'||_0xc0cd67===_0x5bcc2d(0xb9)||_0xc0cd67==='yes';}function cacheRoot(){const _0x5164a0=a81_0x2c43;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5164a0(0xb0));}export function getUpdateNoticeCachePath(){const _0x3c316b=a81_0x2c43;return join(cacheRoot(),_0x3c316b(0xb6),'update-check.json');}async function readUpdateNoticeCache(){const _0xd1ac2b=a81_0x2c43;try{const _0x143690=await readFile(getUpdateNoticeCachePath(),_0xd1ac2b(0xbc)),_0x441158=JSON[_0xd1ac2b(0x9c)](_0x143690);if(!_0x441158||typeof _0x441158!==_0xd1ac2b(0xb8))return{};return _0x441158;}catch{return{};}}async function writeUpdateNoticeCache(_0x3c3315){const _0x60257a=a81_0x2c43;try{const _0x3a5c87=getUpdateNoticeCachePath();await mkdir(dirname(_0x3a5c87),{'recursive':!![]}),await writeFile(_0x3a5c87,JSON['stringify'](_0x3c3315,null,0x2)+'\x0a',_0x60257a(0xbc));}catch{}}function isFreshCheck(_0x493d78,_0x2907dc){const _0xc8ec8d=a81_0x2c43;return typeof _0x493d78[_0xc8ec8d(0xb7)]===_0xc8ec8d(0xa6)&&_0x2907dc-_0x493d78['checkedAt']<UPDATE_CHECK_TTL_MS;}function a81_0x2c43(_0x3c7373,_0x2ee7e4){_0x3c7373=_0x3c7373-0x99;const _0x4c3b17=a81_0x4c3b();let _0x2c43e5=_0x4c3b17[_0x3c7373];return _0x2c43e5;}function isRecentlyNotified(_0x210487,_0xf2bf88,_0x5038bb){const _0x3abc41=a81_0x2c43;return _0x210487[_0x3abc41(0xaa)]===_0xf2bf88&&typeof _0x210487[_0x3abc41(0x9d)]===_0x3abc41(0xa6)&&_0x5038bb-_0x210487[_0x3abc41(0x9d)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x22a435=0x5dc){const _0x3143a1=a81_0x2c43;try{const _0x4eac28=NPM_REGISTRY_BASE_URL+_0x3143a1(0xbd)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3143a1(0xad),_0x1e9100=await fetch(_0x4eac28,{'signal':AbortSignal[_0x3143a1(0xba)](_0x22a435)});if(!_0x1e9100['ok'])return null;const _0x57bd4c=await _0x1e9100[_0x3143a1(0xb4)]();if(!_0x57bd4c||typeof _0x57bd4c!=='object')return null;return Object[_0x3143a1(0xbf)](Object['entries'](_0x57bd4c)[_0x3143a1(0xa8)](([,_0x39404a])=>typeof _0x39404a==='string'&&_0x39404a[_0x3143a1(0xa2)]())[_0x3143a1(0xbe)](([_0x504252,_0x2a291c])=>[_0x504252,String(_0x2a291c)['trim']()]));}catch{return null;}}export function buildNpmVersionUrl(_0x10f476){const _0x3f0c6a=a81_0x2c43;return _0x3f0c6a(0x9a)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x10f476;}export async function resolveLatestUpdateNotice(){const _0x59eae0=a81_0x2c43;if(isUpdateNoticeDisabled())return null;try{const _0x7d664e=Date[_0x59eae0(0xa1)](),_0xa5c904=getCliVersion(),_0x17ec8f=await readUpdateNoticeCache();let _0x23dc57=isFreshCheck(_0x17ec8f,_0x7d664e)?_0x17ec8f[_0x59eae0(0x99)]?.[_0x59eae0(0xa2)]():undefined;if(!_0x23dc57&&!isFreshCheck(_0x17ec8f,_0x7d664e)){const _0x2da91a=await fetchNpmDistTags();_0x23dc57=_0x2da91a?.['latest']?.[_0x59eae0(0xa2)](),await writeUpdateNoticeCache({..._0x17ec8f,'checkedAt':_0x7d664e,'latest':_0x23dc57,'failed':!_0x23dc57});}if(!_0x23dc57||compareSemver(_0xa5c904,_0x23dc57)>=0x0)return null;if(isRecentlyNotified(_0x17ec8f,_0x23dc57,_0x7d664e))return null;const _0x533484=CLI_BIN_NAME+_0x59eae0(0xa3);return await writeUpdateNoticeCache({..._0x17ec8f,'checkedAt':isFreshCheck(_0x17ec8f,_0x7d664e)?_0x17ec8f[_0x59eae0(0xb7)]:_0x7d664e,'latest':_0x23dc57,'failed':![],'lastNotifiedVersion':_0x23dc57,'lastNotifiedAt':_0x7d664e}),{'command':_0x533484,'current':_0xa5c904,'latest':_0x23dc57,'url':buildNpmVersionUrl(_0x23dc57),'message':CLI_BIN_NAME+'\x20'+_0x23dc57+'\x20available,\x20current\x20'+_0xa5c904+_0x59eae0(0xa4)+_0x533484};}catch{return null;}}
1
+ (function(_0x55b2bb,_0xb20f2a){const _0x276411=a81_0x3951,_0x5455fd=_0x55b2bb();while(!![]){try{const _0xd779c8=-parseInt(_0x276411(0x171))/0x1*(parseInt(_0x276411(0x180))/0x2)+parseInt(_0x276411(0x174))/0x3*(parseInt(_0x276411(0x186))/0x4)+parseInt(_0x276411(0x18d))/0x5*(-parseInt(_0x276411(0x172))/0x6)+-parseInt(_0x276411(0x175))/0x7*(parseInt(_0x276411(0x16f))/0x8)+-parseInt(_0x276411(0x188))/0x9*(parseInt(_0x276411(0x182))/0xa)+-parseInt(_0x276411(0x17a))/0xb+parseInt(_0x276411(0x179))/0xc;if(_0xd779c8===_0xb20f2a)break;else _0x5455fd['push'](_0x5455fd['shift']());}catch(_0x3a7a29){_0x5455fd['push'](_0x5455fd['shift']());}}}(a81_0x864a,0x3afc9));import{mkdir,readFile,writeFile}from'node:fs/promises';function a81_0x3951(_0x479b2d,_0xe1be9d){_0x479b2d=_0x479b2d-0x16b;const _0x864a73=a81_0x864a();let _0x395141=_0x864a73[_0x479b2d];return _0x395141;}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 a81_0x864a(){const _0x179e75=['/dist-tags','134cCshwX','/-/package/','10IkrnHF','match','entries','number','27848LYKROd','utf8','2234511ZbcESg','fromEntries','object','major','yes','16115vnzPTa','.cache','json','filter','minor','parse','true','lastNotifiedAt','64YgLBJj','checkedAt','401FUVffE','48LLRWmW','toLowerCase','3dzVORf','71897EcXqvt','stringify','https://www.npmjs.com/package/','trim','9279312PsLEui','1710841KkuVIg','lovrabet-cli','latest','string','prerelease'];a81_0x864a=function(){return _0x179e75;};return a81_0x864a();}function parseSemver(_0x373814){const _0x9b812b=a81_0x3951,_0x5304ba=_0x373814[_0x9b812b(0x178)]()[_0x9b812b(0x183)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x5304ba)return null;return{'major':Number(_0x5304ba[0x1]),'minor':Number(_0x5304ba[0x2]),'patch':Number(_0x5304ba[0x3]),'prerelease':_0x5304ba[0x4]};}function compareSemver(_0x5ce259,_0x3149bb){const _0x5f540c=a81_0x3951,_0x2aaf00=parseSemver(_0x5ce259),_0x35ba6f=parseSemver(_0x3149bb);if(!_0x2aaf00||!_0x35ba6f)throw new Error('Invalid\x20semver');for(const _0x1f3fae of[_0x5f540c(0x18b),_0x5f540c(0x16b),'patch']){if(_0x2aaf00[_0x1f3fae]<_0x35ba6f[_0x1f3fae])return-0x1;if(_0x2aaf00[_0x1f3fae]>_0x35ba6f[_0x1f3fae])return 0x1;}if(!_0x2aaf00[_0x5f540c(0x17e)]&&!_0x35ba6f[_0x5f540c(0x17e)])return 0x0;if(!_0x2aaf00[_0x5f540c(0x17e)])return 0x1;if(!_0x35ba6f[_0x5f540c(0x17e)])return-0x1;if(_0x2aaf00[_0x5f540c(0x17e)]===_0x35ba6f[_0x5f540c(0x17e)])return 0x0;return _0x2aaf00[_0x5f540c(0x17e)]<_0x35ba6f[_0x5f540c(0x17e)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x3f678f=a81_0x3951,_0x51fcab=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x3f678f(0x178)]()[_0x3f678f(0x173)]();return _0x51fcab==='1'||_0x51fcab===_0x3f678f(0x16d)||_0x51fcab===_0x3f678f(0x18c);}function cacheRoot(){const _0x2ba966=a81_0x3951;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2ba966(0x18e));}export function getUpdateNoticeCachePath(){const _0x533214=a81_0x3951;return join(cacheRoot(),_0x533214(0x17b),'update-check.json');}async function readUpdateNoticeCache(){const _0x301448=a81_0x3951;try{const _0x1f1caf=await readFile(getUpdateNoticeCachePath(),_0x301448(0x187)),_0x2c3b4b=JSON[_0x301448(0x16c)](_0x1f1caf);if(!_0x2c3b4b||typeof _0x2c3b4b!==_0x301448(0x18a))return{};return _0x2c3b4b;}catch{return{};}}async function writeUpdateNoticeCache(_0xd676db){const _0x3dd5d8=a81_0x3951;try{const _0x56eb23=getUpdateNoticeCachePath();await mkdir(dirname(_0x56eb23),{'recursive':!![]}),await writeFile(_0x56eb23,JSON[_0x3dd5d8(0x176)](_0xd676db,null,0x2)+'\x0a',_0x3dd5d8(0x187));}catch{}}function isFreshCheck(_0x4c6466,_0x1c11f3){const _0x6ce429=a81_0x3951;return typeof _0x4c6466[_0x6ce429(0x170)]==='number'&&_0x1c11f3-_0x4c6466[_0x6ce429(0x170)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x537d55,_0x524bf2,_0x46eee2){const _0x42acb9=a81_0x3951;return _0x537d55['lastNotifiedVersion']===_0x524bf2&&typeof _0x537d55[_0x42acb9(0x16e)]===_0x42acb9(0x185)&&_0x46eee2-_0x537d55[_0x42acb9(0x16e)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x31a405=0x5dc){const _0x6c48cc=a81_0x3951;try{const _0x3a0545=NPM_REGISTRY_BASE_URL+_0x6c48cc(0x181)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x6c48cc(0x17f),_0xe7b382=await fetch(_0x3a0545,{'signal':AbortSignal['timeout'](_0x31a405)});if(!_0xe7b382['ok'])return null;const _0x232860=await _0xe7b382[_0x6c48cc(0x18f)]();if(!_0x232860||typeof _0x232860!==_0x6c48cc(0x18a))return null;return Object[_0x6c48cc(0x189)](Object[_0x6c48cc(0x184)](_0x232860)[_0x6c48cc(0x190)](([,_0x4556d9])=>typeof _0x4556d9===_0x6c48cc(0x17d)&&_0x4556d9['trim']())['map'](([_0x12678e,_0x5bf651])=>[_0x12678e,String(_0x5bf651)[_0x6c48cc(0x178)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x22fff6){const _0x53f4a5=a81_0x3951;return _0x53f4a5(0x177)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x22fff6;}export async function resolveLatestUpdateNotice(){const _0x34b79e=a81_0x3951;if(isUpdateNoticeDisabled())return null;try{const _0x182aea=Date['now'](),_0x2876c6=getCliVersion(),_0x1f98a3=await readUpdateNoticeCache();let _0x25c20b=isFreshCheck(_0x1f98a3,_0x182aea)?_0x1f98a3[_0x34b79e(0x17c)]?.['trim']():undefined;if(!_0x25c20b&&!isFreshCheck(_0x1f98a3,_0x182aea)){const _0x37bf24=await fetchNpmDistTags();_0x25c20b=_0x37bf24?.[_0x34b79e(0x17c)]?.[_0x34b79e(0x178)](),await writeUpdateNoticeCache({..._0x1f98a3,'checkedAt':_0x182aea,'latest':_0x25c20b,'failed':!_0x25c20b});}if(!_0x25c20b||compareSemver(_0x2876c6,_0x25c20b)>=0x0)return null;if(isRecentlyNotified(_0x1f98a3,_0x25c20b,_0x182aea))return null;const _0x675921=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1f98a3,'checkedAt':isFreshCheck(_0x1f98a3,_0x182aea)?_0x1f98a3[_0x34b79e(0x170)]:_0x182aea,'latest':_0x25c20b,'failed':![],'lastNotifiedVersion':_0x25c20b,'lastNotifiedAt':_0x182aea}),{'command':_0x675921,'current':_0x2876c6,'latest':_0x25c20b,'url':buildNpmVersionUrl(_0x25c20b),'message':CLI_BIN_NAME+'\x20'+_0x25c20b+'\x20available,\x20current\x20'+_0x2876c6+',\x20run:\x20'+_0x675921};}catch{return null;}}
@@ -1 +1 @@
1
- function a82_0xdb1c(){const _0x462f0c=['21395sEPLkG','55476SnEqpt','74cdVKjx','522495olGeas','4aKteVz','832FoGMXC','12770ZoQaFG','794877UOaZeT','1386726Aotpwf','7620SWFnik','slice','6897730xqSOjn','7wBVcdP'];a82_0xdb1c=function(){return _0x462f0c;};return a82_0xdb1c();}(function(_0x3e5772,_0x145658){const _0x29f5aa=a82_0x2519,_0x559b05=_0x3e5772();while(!![]){try{const _0x559e9d=parseInt(_0x29f5aa(0xdc))/0x1*(-parseInt(_0x29f5aa(0xd3))/0x2)+-parseInt(_0x29f5aa(0xd4))/0x3*(parseInt(_0x29f5aa(0xde))/0x4)+parseInt(_0x29f5aa(0xdd))/0x5+parseInt(_0x29f5aa(0xd5))/0x6*(-parseInt(_0x29f5aa(0xd9))/0x7)+parseInt(_0x29f5aa(0xd2))/0x8*(-parseInt(_0x29f5aa(0xdb))/0x9)+parseInt(_0x29f5aa(0xd8))/0xa+-parseInt(_0x29f5aa(0xda))/0xb*(-parseInt(_0x29f5aa(0xd6))/0xc);if(_0x559e9d===_0x145658)break;else _0x559b05['push'](_0x559b05['shift']());}catch(_0x122a57){_0x559b05['push'](_0x559b05['shift']());}}}(a82_0xdb1c,0x66789));function a82_0x2519(_0x522742,_0x370f09){_0x522742=_0x522742-0xd2;const _0xdb1ca0=a82_0xdb1c();let _0x251915=_0xdb1ca0[_0x522742];return _0x251915;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x3ac5e3=String(GIT_COMMIT);return _0x3ac5e3&&_0x3ac5e3!=='unknown'?_0x3ac5e3:'';}export function getCliVersionDisplay(){const _0x2047fe=a82_0x2519,_0x1c980a=getCliGitCommit(),_0x895d84=BUILD_TIME[_0x2047fe(0xd7)](0x0,0xa);if(!_0x1c980a||!_0x895d84)return VERSION;return VERSION+'\x20('+_0x1c980a+',\x20'+_0x895d84+')';}
1
+ function a82_0x526c(_0x53ad8d,_0x207ad2){_0x53ad8d=_0x53ad8d-0x16e;const _0x23b216=a82_0x23b2();let _0x526ce9=_0x23b216[_0x53ad8d];return _0x526ce9;}(function(_0x282eee,_0x35b6a0){const _0x46fb=a82_0x526c,_0x306bb9=_0x282eee();while(!![]){try{const _0x3ff864=-parseInt(_0x46fb(0x170))/0x1*(-parseInt(_0x46fb(0x173))/0x2)+parseInt(_0x46fb(0x174))/0x3+parseInt(_0x46fb(0x175))/0x4+parseInt(_0x46fb(0x172))/0x5*(-parseInt(_0x46fb(0x16f))/0x6)+-parseInt(_0x46fb(0x179))/0x7+-parseInt(_0x46fb(0x177))/0x8+parseInt(_0x46fb(0x176))/0x9*(-parseInt(_0x46fb(0x16e))/0xa);if(_0x3ff864===_0x35b6a0)break;else _0x306bb9['push'](_0x306bb9['shift']());}catch(_0x344caf){_0x306bb9['push'](_0x306bb9['shift']());}}}(a82_0x23b2,0x9a19e));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a82_0x23b2(){const _0x4ed678=['9xFJHMK','877792MUgOXJ','unknown','6031662kklZIu','837180kievoM','6YazfrZ','14143PvCtez','slice','1108505RIvNWp','102YoJerv','2031798GmaNGS','2037792jfUDOq'];a82_0x23b2=function(){return _0x4ed678;};return a82_0x23b2();}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x51044d=a82_0x526c,_0x2ae1b1=String(GIT_COMMIT);return _0x2ae1b1&&_0x2ae1b1!==_0x51044d(0x178)?_0x2ae1b1:'';}export function getCliVersionDisplay(){const _0x4c1d81=a82_0x526c,_0x445dd6=getCliGitCommit(),_0x16c9bd=BUILD_TIME[_0x4c1d81(0x171)](0x0,0xa);if(!_0x445dd6||!_0x16c9bd)return VERSION;return VERSION+'\x20('+_0x445dd6+',\x20'+_0x16c9bd+')';}
@@ -1 +1 @@
1
- (function(_0x12c175,_0x3a641d){var _0x472b5b=a83_0x50ca,_0x3d4b18=_0x12c175();while(!![]){try{var _0x2fcb38=parseInt(_0x472b5b(0x183))/0x1+-parseInt(_0x472b5b(0x184))/0x2*(parseInt(_0x472b5b(0x182))/0x3)+parseInt(_0x472b5b(0x17f))/0x4*(-parseInt(_0x472b5b(0x17a))/0x5)+-parseInt(_0x472b5b(0x181))/0x6+-parseInt(_0x472b5b(0x185))/0x7+parseInt(_0x472b5b(0x17d))/0x8*(parseInt(_0x472b5b(0x17c))/0x9)+parseInt(_0x472b5b(0x17b))/0xa*(parseInt(_0x472b5b(0x180))/0xb);if(_0x2fcb38===_0x3a641d)break;else _0x3d4b18['push'](_0x3d4b18['shift']());}catch(_0x2763a1){_0x3d4b18['push'](_0x3d4b18['shift']());}}}(a83_0x2af6,0x5f0a3));function a83_0x50ca(_0x465800,_0x305de6){_0x465800=_0x465800-0x17a;var _0x2af63c=a83_0x2af6();var _0x50cad8=_0x2af63c[_0x465800];return _0x50cad8;}export function writeCliSideChannelLine(_0x5353fc){var _0x143464=a83_0x50ca;process[_0x143464(0x17e)]['write'](_0x5353fc+'\x0a');}function a83_0x2af6(){var _0x2315bb=['43258pLAmuL','4110246FgVnZN','365FuNijv','780fUKqZK','99UoRqMP','88952eanruO','stderr','39860TttRUI','262691qbwykG','70524wWbdGT','81ArtBYL','314616KJQgFK'];a83_0x2af6=function(){return _0x2315bb;};return a83_0x2af6();}
1
+ (function(_0xfdf0b5,_0xbe3ed0){var _0x8ef329=a83_0x14ac,_0x1d154f=_0xfdf0b5();while(!![]){try{var _0x15e75b=-parseInt(_0x8ef329(0x144))/0x1*(-parseInt(_0x8ef329(0x145))/0x2)+-parseInt(_0x8ef329(0x141))/0x3*(-parseInt(_0x8ef329(0x13f))/0x4)+parseInt(_0x8ef329(0x142))/0x5+-parseInt(_0x8ef329(0x146))/0x6*(parseInt(_0x8ef329(0x13d))/0x7)+-parseInt(_0x8ef329(0x13c))/0x8+parseInt(_0x8ef329(0x140))/0x9*(-parseInt(_0x8ef329(0x143))/0xa)+parseInt(_0x8ef329(0x13e))/0xb;if(_0x15e75b===_0xbe3ed0)break;else _0x1d154f['push'](_0x1d154f['shift']());}catch(_0x543dda){_0x1d154f['push'](_0x1d154f['shift']());}}}(a83_0x4ad8,0xd05d5));function a83_0x14ac(_0x34cad3,_0x3a130c){_0x34cad3=_0x34cad3-0x13c;var _0x4ad8d2=a83_0x4ad8();var _0x14ac0c=_0x4ad8d2[_0x34cad3];return _0x14ac0c;}function a83_0x4ad8(){var _0x1d0417=['2210960YYayRi','15090WlluHl','4fufZzT','86732Xzgsgt','6OpVObs','stderr','5652120KHbfnN','11002887VPsfZi','21561815ZDbjLJ','156cTMWVe','4923cMTGtS','106263opNHfT'];a83_0x4ad8=function(){return _0x1d0417;};return a83_0x4ad8();}export function writeCliSideChannelLine(_0xb289e){var _0x2811c6=a83_0x14ac;process[_0x2811c6(0x147)]['write'](_0xb289e+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.2-beta.1",
3
+ "version": "2.1.2",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",