@lovrabet/lovrabet-cli 2.1.8 → 2.1.9-beta.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 (117) 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/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x41cbfb,_0x293376){const _0x2921f7=a108_0x10e2,_0x1fc283=_0x41cbfb();while(!![]){try{const _0x23c4f1=-parseInt(_0x2921f7(0x122))/0x1+parseInt(_0x2921f7(0x126))/0x2*(-parseInt(_0x2921f7(0x12e))/0x3)+parseInt(_0x2921f7(0x13c))/0x4+parseInt(_0x2921f7(0x13b))/0x5*(parseInt(_0x2921f7(0x148))/0x6)+parseInt(_0x2921f7(0x13f))/0x7+parseInt(_0x2921f7(0x132))/0x8*(parseInt(_0x2921f7(0x14b))/0x9)+-parseInt(_0x2921f7(0x12a))/0xa*(parseInt(_0x2921f7(0x14d))/0xb);if(_0x23c4f1===_0x293376)break;else _0x1fc283['push'](_0x1fc283['shift']());}catch(_0x17afcf){_0x1fc283['push'](_0x1fc283['shift']());}}}(a108_0x6354,0x5790c));import{CliErrors}from'../../errors.js';function a108_0x10e2(_0xa393b7,_0x328480){_0xa393b7=_0xa393b7-0x121;const _0x6354db=a108_0x6354();let _0x10e2f1=_0x6354db[_0xa393b7];return _0x10e2f1;}import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x3743ec){const _0x48700f=a108_0x10e2,_0x37793b=normalizeLocalFiles(_0x3743ec);if(!_0x37793b[_0x48700f(0x139)](_0xd1aab=>_0xd1aab['path']===SKILL_FILE))throw CliErrors[_0x48700f(0x147)](_0x48700f(0x123)+SKILL_FILE+_0x48700f(0x137));const _0x373779=localFilesToManifestFiles(_0x37793b),_0x33e324=createDeterministicZipPackage(_0x37793b);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x373779),'zipSha256':bufferSha256(_0x33e324),'zipSize':_0x33e324[_0x48700f(0x149)],'files':_0x373779},'packageBytes':_0x33e324,'packageBase64':_0x33e324[_0x48700f(0x140)](_0x48700f(0x13d))};}export function verifyRuntimeSkillPackage(_0x358de2,_0x4b6b97){const _0x9a1e10=a108_0x10e2,_0x5d53de=normalizePackageManifest(_0x358de2,{'requireOssPath':![]});if(!_0x5d53de)throw CliErrors[_0x9a1e10(0x147)](_0x9a1e10(0x135));return extractAndVerifyPackage(_0x5d53de,_0x4b6b97);}export function verifyRuntimeSkillBundle(_0x3a10a4,_0x56cb66){const _0x299be9=a108_0x10e2,_0x47c597=normalizePackageManifest(_0x3a10a4,{'requireOssPath':![]});if(!_0x47c597)throw CliErrors[_0x299be9(0x147)](_0x299be9(0x135));return extractAndVerifyPackageFiles(_0x47c597,_0x56cb66);}function a108_0x6354(){const _0xe6a616=['zipSize','zipSha256','505513jFaCMU','Missing\x20','get','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','38234dWoJRH','push','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','toLowerCase','1290kcXEOw','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','treeSha256','size','93zVmhDu','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','string','8aVUfjC','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','trim','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','requireOssPath','\x20in\x20Skill\x20file\x20package.','map','some','schemaVersion','5HQTOWU','1212360hGsVYP','base64','Runtime\x20Skill\x20package\x20size\x20mismatch.','4157811inhtMz','toString','Runtime\x20Skill\x20package\x20is\x20missing\x20','path','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','bytes','isSafeInteger','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','validation','4108602xybNlX','length','ossPath','3122901qZWVRY','files','40249kVcALH'];a108_0x6354=function(){return _0xe6a616;};return a108_0x6354();}export function tryNormalizePackageManifest(_0x4394a9){return normalizePackageManifest(_0x4394a9,{'requireOssPath':![]});}export function requirePackageBytes(_0x3c27d3,_0x155532){if(!_0x155532||_0x155532['length']===0x0)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x3c27d3);return _0x155532;}export function extractDownloadedPackage(_0x4a82ab){const _0x3a0e10=a108_0x10e2,_0x20f7ae=parseZipPackage(_0x4a82ab)[_0x3a0e10(0x138)](_0x3cb5b8=>({'path':_0x3cb5b8[_0x3a0e10(0x142)],'bytes':_0x3cb5b8[_0x3a0e10(0x144)]}));if(!_0x20f7ae[_0x3a0e10(0x139)](_0x1caf9f=>_0x1caf9f[_0x3a0e10(0x142)]===SKILL_FILE))throw CliErrors[_0x3a0e10(0x147)](_0x3a0e10(0x141)+SKILL_FILE+'.');return normalizeLocalFiles(_0x20f7ae);}export function localFilesToManifestFiles(_0x49d6d0){const _0x18a417=a108_0x10e2;return normalizeLocalFiles(_0x49d6d0)[_0x18a417(0x138)](_0x4528bb=>({'path':_0x4528bb[_0x18a417(0x142)],'sha256':fileHash(_0x4528bb),'size':fileContent(_0x4528bb)[_0x18a417(0x149)]}));}function normalizePackageManifest(_0x24e48e,_0x4420fe){const _0x314164=a108_0x10e2;if(!_0x24e48e||typeof _0x24e48e!=='object'||Array['isArray'](_0x24e48e))return undefined;const _0x14e7d2=_0x24e48e,_0x3514da=typeof _0x14e7d2[_0x314164(0x14a)]===_0x314164(0x131)?_0x14e7d2[_0x314164(0x14a)][_0x314164(0x134)]():undefined;if(_0x4420fe[_0x314164(0x136)]&&!_0x3514da)return undefined;if(!Array['isArray'](_0x14e7d2['files'])||_0x14e7d2[_0x314164(0x14c)][_0x314164(0x149)]===0x0)return undefined;if(!isSha256Hex(_0x14e7d2[_0x314164(0x12c)]))throw CliErrors[_0x314164(0x147)](_0x314164(0x130));if(!isSha256Hex(_0x14e7d2[_0x314164(0x121)]))throw CliErrors[_0x314164(0x147)](_0x314164(0x12b));if(!Number[_0x314164(0x145)](_0x14e7d2['zipSize'])||_0x14e7d2['zipSize']<0x0)throw CliErrors[_0x314164(0x147)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x3f4fa1=normalizeManifestFiles(_0x14e7d2[_0x314164(0x14c)]);if(!_0x3f4fa1['some'](_0x3e01c7=>_0x3e01c7[_0x314164(0x142)]===SKILL_FILE))throw CliErrors[_0x314164(0x147)](_0x314164(0x143)+SKILL_FILE+'.');const _0x31c773=fileTreeHash(_0x3f4fa1);if(_0x31c773!==_0x14e7d2[_0x314164(0x12c)][_0x314164(0x129)]())throw CliErrors[_0x314164(0x147)](_0x314164(0x146));return{'schemaVersion':Number[_0x314164(0x145)](_0x14e7d2['schemaVersion'])?_0x14e7d2[_0x314164(0x13a)]:0x2,'ossPath':_0x3514da,'treeSha256':_0x31c773,'zipSha256':_0x14e7d2['zipSha256']['toLowerCase'](),'zipSize':_0x14e7d2[_0x314164(0x14e)],'files':_0x3f4fa1};}function extractAndVerifyPackage(_0x475ad2,_0x1209c7){const _0x34b93f=a108_0x10e2,_0x24ebc1=normalizePackageManifest(_0x475ad2,{'requireOssPath':![]});if(!_0x24ebc1)throw CliErrors['validation'](_0x34b93f(0x135));if(_0x1209c7[_0x34b93f(0x149)]!==_0x24ebc1[_0x34b93f(0x14e)])throw CliErrors[_0x34b93f(0x147)](_0x34b93f(0x13e));const _0x123eb9=bufferSha256(_0x1209c7);if(_0x123eb9!==_0x24ebc1[_0x34b93f(0x121)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x24ebc1,_0x1209c7);}function extractAndVerifyPackageFiles(_0x217716,_0xa962fc){const _0x4f38b6=a108_0x10e2,_0x247562=parseZipPackage(_0xa962fc);if(_0x247562[_0x4f38b6(0x149)]!==_0x217716[_0x4f38b6(0x14c)]['length'])throw CliErrors[_0x4f38b6(0x147)](_0x4f38b6(0x125));const _0x41d4d7=new Map();for(const _0x16096b of _0x247562){if(_0x41d4d7['has'](_0x16096b[_0x4f38b6(0x142)]))throw CliErrors[_0x4f38b6(0x147)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x16096b[_0x4f38b6(0x142)]);_0x41d4d7['set'](_0x16096b['path'],_0x16096b);}const _0x1bb585=[];for(const _0x412323 of _0x217716['files']){const _0xba52f3=_0x41d4d7[_0x4f38b6(0x124)](_0x412323[_0x4f38b6(0x142)]);if(!_0xba52f3)throw CliErrors[_0x4f38b6(0x147)](_0x4f38b6(0x12f)+_0x412323[_0x4f38b6(0x142)]);if(_0xba52f3['bytes'][_0x4f38b6(0x149)]!==_0x412323[_0x4f38b6(0x12d)])throw CliErrors['validation'](_0x4f38b6(0x128)+_0x412323[_0x4f38b6(0x142)]);const _0x9ff104=bufferSha256(_0xba52f3[_0x4f38b6(0x144)]);if(_0x9ff104!==_0x412323['sha256'])throw CliErrors[_0x4f38b6(0x147)](_0x4f38b6(0x133)+_0x412323['path']);_0x1bb585[_0x4f38b6(0x127)]({'path':_0x412323[_0x4f38b6(0x142)],'bytes':_0xba52f3[_0x4f38b6(0x144)]});}return normalizeLocalFiles(_0x1bb585);}
1
+ (function(_0xa6a429,_0x10692d){const _0x1474e1=a108_0x4532,_0x3e76e8=_0xa6a429();while(!![]){try{const _0x5777ee=-parseInt(_0x1474e1(0x206))/0x1*(parseInt(_0x1474e1(0x1f6))/0x2)+-parseInt(_0x1474e1(0x213))/0x3*(-parseInt(_0x1474e1(0x1ea))/0x4)+parseInt(_0x1474e1(0x1f3))/0x5+-parseInt(_0x1474e1(0x20b))/0x6*(-parseInt(_0x1474e1(0x1e9))/0x7)+parseInt(_0x1474e1(0x1f7))/0x8*(-parseInt(_0x1474e1(0x1f4))/0x9)+-parseInt(_0x1474e1(0x1fd))/0xa+parseInt(_0x1474e1(0x1f1))/0xb*(parseInt(_0x1474e1(0x200))/0xc);if(_0x5777ee===_0x10692d)break;else _0x3e76e8['push'](_0x3e76e8['shift']());}catch(_0x3ff9e0){_0x3e76e8['push'](_0x3e76e8['shift']());}}}(a108_0x3d75,0x3adcd));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';function a108_0x4532(_0xd9c785,_0x13ba82){_0xd9c785=_0xd9c785-0x1e9;const _0x3d7522=a108_0x3d75();let _0x4532be=_0x3d7522[_0xd9c785];return _0x4532be;}import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';function a108_0x3d75(){const _0x3b78c9=['Runtime\x20Skill\x20package\x20is\x20missing\x20','14172vhDjkT','files','\x20in\x20Skill\x20file\x20package.','size','push','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','74DkzVSv','get','path','bytes','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','24LfdvXO','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','zipSize','zipSha256','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','isSafeInteger','requireOssPath','243jKjgmo','170919zWuxKo','16404HchzlP','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','validation','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','length','5137MSiyUO','has','388665VUbNps','9IsVuXo','isArray','9860OWjESC','2561480BcMrAS','map','schemaVersion','some','trim','base64','1330030pHrday','Runtime\x20Skill\x20package\x20size\x20mismatch.'];a108_0x3d75=function(){return _0x3b78c9;};return a108_0x3d75();}export function buildSkillPackage(_0x56699d){const _0xe7b5dd=a108_0x4532,_0x8a232c=normalizeLocalFiles(_0x56699d);if(!_0x8a232c[_0xe7b5dd(0x1fa)](_0x3fd37a=>_0x3fd37a[_0xe7b5dd(0x208)]===SKILL_FILE))throw CliErrors[_0xe7b5dd(0x1ed)]('Missing\x20'+SKILL_FILE+_0xe7b5dd(0x202));const _0xbfe1f=localFilesToManifestFiles(_0x8a232c),_0x182dff=createDeterministicZipPackage(_0x8a232c);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0xbfe1f),'zipSha256':bufferSha256(_0x182dff),'zipSize':_0x182dff[_0xe7b5dd(0x1f0)],'files':_0xbfe1f},'packageBytes':_0x182dff,'packageBase64':_0x182dff['toString'](_0xe7b5dd(0x1fc))};}export function verifyRuntimeSkillPackage(_0x551dff,_0xbbc962){const _0x3c0431=a108_0x4532,_0x44b793=normalizePackageManifest(_0x551dff,{'requireOssPath':![]});if(!_0x44b793)throw CliErrors[_0x3c0431(0x1ed)](_0x3c0431(0x1ec));return extractAndVerifyPackage(_0x44b793,_0xbbc962);}export function verifyRuntimeSkillBundle(_0x43367f,_0x1e640d){const _0x14273d=a108_0x4532,_0x4afbb2=normalizePackageManifest(_0x43367f,{'requireOssPath':![]});if(!_0x4afbb2)throw CliErrors['validation'](_0x14273d(0x1ec));return extractAndVerifyPackageFiles(_0x4afbb2,_0x1e640d);}export function tryNormalizePackageManifest(_0x1943a3){return normalizePackageManifest(_0x1943a3,{'requireOssPath':![]});}export function requirePackageBytes(_0x53e944,_0x55ed76){const _0x718617=a108_0x4532;if(!_0x55ed76||_0x55ed76['length']===0x0)throw CliErrors[_0x718617(0x1ed)](_0x718617(0x1eb)+_0x53e944);return _0x55ed76;}export function extractDownloadedPackage(_0x4c5db2){const _0x56ac51=a108_0x4532,_0x1213eb=parseZipPackage(_0x4c5db2)['map'](_0x54b8df=>({'path':_0x54b8df[_0x56ac51(0x208)],'bytes':_0x54b8df[_0x56ac51(0x209)]}));if(!_0x1213eb[_0x56ac51(0x1fa)](_0x2a156d=>_0x2a156d[_0x56ac51(0x208)]===SKILL_FILE))throw CliErrors[_0x56ac51(0x1ed)](_0x56ac51(0x1ff)+SKILL_FILE+'.');return normalizeLocalFiles(_0x1213eb);}export function localFilesToManifestFiles(_0x3d5424){const _0x546bd2=a108_0x4532;return normalizeLocalFiles(_0x3d5424)[_0x546bd2(0x1f8)](_0x14194c=>({'path':_0x14194c[_0x546bd2(0x208)],'sha256':fileHash(_0x14194c),'size':fileContent(_0x14194c)[_0x546bd2(0x1f0)]}));}function normalizePackageManifest(_0x2c6dc8,_0x1e9823){const _0x323ceb=a108_0x4532;if(!_0x2c6dc8||typeof _0x2c6dc8!=='object'||Array[_0x323ceb(0x1f5)](_0x2c6dc8))return undefined;const _0x40ba53=_0x2c6dc8,_0x49d4e5=typeof _0x40ba53['ossPath']==='string'?_0x40ba53['ossPath'][_0x323ceb(0x1fb)]():undefined;if(_0x1e9823[_0x323ceb(0x212)]&&!_0x49d4e5)return undefined;if(!Array[_0x323ceb(0x1f5)](_0x40ba53[_0x323ceb(0x201)])||_0x40ba53[_0x323ceb(0x201)]['length']===0x0)return undefined;if(!isSha256Hex(_0x40ba53['treeSha256']))throw CliErrors['validation'](_0x323ceb(0x20c));if(!isSha256Hex(_0x40ba53['zipSha256']))throw CliErrors[_0x323ceb(0x1ed)](_0x323ceb(0x1ef));if(!Number[_0x323ceb(0x211)](_0x40ba53[_0x323ceb(0x20d)])||_0x40ba53['zipSize']<0x0)throw CliErrors[_0x323ceb(0x1ed)](_0x323ceb(0x205));const _0xd34102=normalizeManifestFiles(_0x40ba53[_0x323ceb(0x201)]);if(!_0xd34102['some'](_0x34c7ec=>_0x34c7ec[_0x323ceb(0x208)]===SKILL_FILE))throw CliErrors['validation']('Runtime\x20Skill\x20manifest\x20is\x20missing\x20'+SKILL_FILE+'.');const _0x46f756=fileTreeHash(_0xd34102);if(_0x46f756!==_0x40ba53['treeSha256']['toLowerCase']())throw CliErrors[_0x323ceb(0x1ed)](_0x323ceb(0x1ee));return{'schemaVersion':Number['isSafeInteger'](_0x40ba53['schemaVersion'])?_0x40ba53[_0x323ceb(0x1f9)]:0x2,'ossPath':_0x49d4e5,'treeSha256':_0x46f756,'zipSha256':_0x40ba53[_0x323ceb(0x20e)]['toLowerCase'](),'zipSize':_0x40ba53[_0x323ceb(0x20d)],'files':_0xd34102};}function extractAndVerifyPackage(_0x3283ec,_0x398f46){const _0x26d2e4=a108_0x4532,_0x5a0249=normalizePackageManifest(_0x3283ec,{'requireOssPath':![]});if(!_0x5a0249)throw CliErrors[_0x26d2e4(0x1ed)](_0x26d2e4(0x1ec));if(_0x398f46[_0x26d2e4(0x1f0)]!==_0x5a0249[_0x26d2e4(0x20d)])throw CliErrors[_0x26d2e4(0x1ed)](_0x26d2e4(0x1fe));const _0x3c639a=bufferSha256(_0x398f46);if(_0x3c639a!==_0x5a0249['zipSha256'])throw CliErrors[_0x26d2e4(0x1ed)](_0x26d2e4(0x20f));return extractAndVerifyPackageFiles(_0x5a0249,_0x398f46);}function extractAndVerifyPackageFiles(_0x238a74,_0x3e2e87){const _0x3fea62=a108_0x4532,_0x1560ae=parseZipPackage(_0x3e2e87);if(_0x1560ae['length']!==_0x238a74[_0x3fea62(0x201)][_0x3fea62(0x1f0)])throw CliErrors[_0x3fea62(0x1ed)](_0x3fea62(0x20a));const _0x5cb483=new Map();for(const _0x4452f8 of _0x1560ae){if(_0x5cb483[_0x3fea62(0x1f2)](_0x4452f8[_0x3fea62(0x208)]))throw CliErrors[_0x3fea62(0x1ed)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x4452f8[_0x3fea62(0x208)]);_0x5cb483['set'](_0x4452f8[_0x3fea62(0x208)],_0x4452f8);}const _0x1fbd18=[];for(const _0x2a5fd2 of _0x238a74[_0x3fea62(0x201)]){const _0x598cfa=_0x5cb483[_0x3fea62(0x207)](_0x2a5fd2['path']);if(!_0x598cfa)throw CliErrors[_0x3fea62(0x1ed)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x2a5fd2[_0x3fea62(0x208)]);if(_0x598cfa['bytes']['length']!==_0x2a5fd2[_0x3fea62(0x203)])throw CliErrors[_0x3fea62(0x1ed)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x2a5fd2[_0x3fea62(0x208)]);const _0x4498e4=bufferSha256(_0x598cfa[_0x3fea62(0x209)]);if(_0x4498e4!==_0x2a5fd2['sha256'])throw CliErrors[_0x3fea62(0x1ed)](_0x3fea62(0x210)+_0x2a5fd2[_0x3fea62(0x208)]);_0x1fbd18[_0x3fea62(0x204)]({'path':_0x2a5fd2['path'],'bytes':_0x598cfa[_0x3fea62(0x209)]});}return normalizeLocalFiles(_0x1fbd18);}
@@ -1 +1 @@
1
- (function(_0x41d7d5,_0x54700d){var _0x1d190a=a109_0x1b75,_0x53b64f=_0x41d7d5();while(!![]){try{var _0x5ab891=parseInt(_0x1d190a(0x174))/0x1*(parseInt(_0x1d190a(0x172))/0x2)+parseInt(_0x1d190a(0x175))/0x3+-parseInt(_0x1d190a(0x173))/0x4*(-parseInt(_0x1d190a(0x16d))/0x5)+parseInt(_0x1d190a(0x16c))/0x6+-parseInt(_0x1d190a(0x176))/0x7*(-parseInt(_0x1d190a(0x171))/0x8)+-parseInt(_0x1d190a(0x16e))/0x9+-parseInt(_0x1d190a(0x170))/0xa*(parseInt(_0x1d190a(0x16f))/0xb);if(_0x5ab891===_0x54700d)break;else _0x53b64f['push'](_0x53b64f['shift']());}catch(_0x7f888f){_0x53b64f['push'](_0x53b64f['shift']());}}}(a109_0x17e3,0x383a3));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';function a109_0x17e3(){var _0x3d7b83=['14377mihxJv','3970vwNtcJ','270368WgHdJt','48486yRtopq','4DSVxSF','5YnGkIq','677754ruHXbK','14aOjnuA','1991016KMNTgB','1208555dljuDM','2151774lrsUIW'];a109_0x17e3=function(){return _0x3d7b83;};return a109_0x17e3();}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';function a109_0x1b75(_0x452747,_0x2cdf23){_0x452747=_0x452747-0x16c;var _0x17e3d9=a109_0x17e3();var _0x1b7586=_0x17e3d9[_0x452747];return _0x1b7586;}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0x4f301a,_0x1cbe5c){var _0x5da5bb=a109_0x7c91,_0x2b9bbd=_0x4f301a();while(!![]){try{var _0x272205=parseInt(_0x5da5bb(0xb2))/0x1+parseInt(_0x5da5bb(0xaa))/0x2*(parseInt(_0x5da5bb(0xb0))/0x3)+-parseInt(_0x5da5bb(0xac))/0x4*(parseInt(_0x5da5bb(0xad))/0x5)+-parseInt(_0x5da5bb(0xab))/0x6*(parseInt(_0x5da5bb(0xa7))/0x7)+-parseInt(_0x5da5bb(0xa9))/0x8+-parseInt(_0x5da5bb(0xae))/0x9*(parseInt(_0x5da5bb(0xb1))/0xa)+parseInt(_0x5da5bb(0xa8))/0xb*(parseInt(_0x5da5bb(0xaf))/0xc);if(_0x272205===_0x1cbe5c)break;else _0x2b9bbd['push'](_0x2b9bbd['shift']());}catch(_0xf7ebca){_0x2b9bbd['push'](_0x2b9bbd['shift']());}}}(a109_0x2691,0xbd55e));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';function a109_0x7c91(_0x544d9c,_0x2d19e5){_0x544d9c=_0x544d9c-0xa7;var _0x269179=a109_0x2691();var _0x7c91a4=_0x269179[_0x544d9c];return _0x7c91a4;}export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';function a109_0x2691(){var _0x5c2a43=['9010312NHutvy','10wTZaDC','6HqzddA','8132Dparyp','3765uoCghv','9ikNLcs','273624JzwLMr','379275HqBWvw','11575250cpIOZk','321780WUOnPB','8224622UMMtEs','2321RFaodI'];a109_0x2691=function(){return _0x5c2a43;};return a109_0x2691();}export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- (function(_0x40f9a6,_0xdb2c37){const _0x5b7682=a110_0x51c4,_0x58d251=_0x40f9a6();while(!![]){try{const _0x24d4a3=parseInt(_0x5b7682(0x1f7))/0x1+-parseInt(_0x5b7682(0x1fc))/0x2*(parseInt(_0x5b7682(0x1f2))/0x3)+parseInt(_0x5b7682(0x1f4))/0x4*(parseInt(_0x5b7682(0x1f9))/0x5)+parseInt(_0x5b7682(0x1fd))/0x6*(parseInt(_0x5b7682(0x1fb))/0x7)+parseInt(_0x5b7682(0x1fa))/0x8*(parseInt(_0x5b7682(0x1f3))/0x9)+parseInt(_0x5b7682(0x1f6))/0xa*(-parseInt(_0x5b7682(0x1f5))/0xb)+-parseInt(_0x5b7682(0x1f8))/0xc;if(_0x24d4a3===_0xdb2c37)break;else _0x58d251['push'](_0x58d251['shift']());}catch(_0x23c745){_0x58d251['push'](_0x58d251['shift']());}}}(a110_0x2f9a,0x77e49));function a110_0x2f9a(){const _0x2c9859=['21VkGCSP','2WsUCdD','881718nVwewP','1207731kdxEBE','18YITMCC','4wlPzfE','913pWAULQ','115070GfaWbB','827889ZKCJoK','5020968iSqkuK','2376935Jmwaik','2092072LyDDFO'];a110_0x2f9a=function(){return _0x2c9859;};return a110_0x2f9a();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a110_0x51c4(_0x85a1ff,_0x47aae4){_0x85a1ff=_0x85a1ff-0x1f2;const _0x2f9af6=a110_0x2f9a();let _0x51c4c9=_0x2f9af6[_0x85a1ff];return _0x51c4c9;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x4ba075,_0x14ff44){const _0x5875ce=a110_0x3ae2,_0x270760=_0x4ba075();while(!![]){try{const _0x48b09f=-parseInt(_0x5875ce(0x11f))/0x1*(-parseInt(_0x5875ce(0x120))/0x2)+parseInt(_0x5875ce(0x122))/0x3*(parseInt(_0x5875ce(0x11b))/0x4)+parseInt(_0x5875ce(0x11c))/0x5+parseInt(_0x5875ce(0x11a))/0x6*(-parseInt(_0x5875ce(0x123))/0x7)+-parseInt(_0x5875ce(0x124))/0x8+parseInt(_0x5875ce(0x119))/0x9*(parseInt(_0x5875ce(0x11d))/0xa)+parseInt(_0x5875ce(0x121))/0xb*(-parseInt(_0x5875ce(0x11e))/0xc);if(_0x48b09f===_0x14ff44)break;else _0x270760['push'](_0x270760['shift']());}catch(_0x571188){_0x270760['push'](_0x270760['shift']());}}}(a110_0x28f7,0xdb5c5));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a110_0x28f7(){const _0x45ff49=['84469JkidTj','3837736SZgbBk','9oXAJtT','12oHOEOp','1113716zuydVk','359570YUDvSZ','9863310BLxmLX','36GZnlrZ','2833bCDPET','70lCQLdm','122749gRuqla','3hHDlgY'];a110_0x28f7=function(){return _0x45ff49;};return a110_0x28f7();}function a110_0x3ae2(_0x303b07,_0x5b0898){_0x303b07=_0x303b07-0x119;const _0x28f746=a110_0x28f7();let _0x3ae24c=_0x28f746[_0x303b07];return _0x3ae24c;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a111_0x954387=a111_0x1b84;(function(_0x36f358,_0x19792a){const _0x282e37=a111_0x1b84,_0x3beba4=_0x36f358();while(!![]){try{const _0x49f1a6=-parseInt(_0x282e37(0x19f))/0x1*(-parseInt(_0x282e37(0x19a))/0x2)+parseInt(_0x282e37(0x1a3))/0x3+parseInt(_0x282e37(0x1bc))/0x4*(parseInt(_0x282e37(0x1cb))/0x5)+parseInt(_0x282e37(0x1d4))/0x6*(parseInt(_0x282e37(0x1c6))/0x7)+-parseInt(_0x282e37(0x1bd))/0x8*(parseInt(_0x282e37(0x1d0))/0x9)+-parseInt(_0x282e37(0x199))/0xa*(-parseInt(_0x282e37(0x1ca))/0xb)+-parseInt(_0x282e37(0x1a1))/0xc;if(_0x49f1a6===_0x19792a)break;else _0x3beba4['push'](_0x3beba4['shift']());}catch(_0x4931dd){_0x3beba4['push'](_0x3beba4['shift']());}}}(a111_0x1905,0x5eb80));import a111_0x585f8a from'winston';function a111_0x1905(){const _0x4b2f0e=['level','logTask','Completed:\x20','now','command','map','existsSync','clear','2133740GdmRLh','32eXFxXj','writeFileSync','Failed\x20to\x20read\x20logs:','warn','setLogPath','clearLogs','dirname','format','success','7zXLSgg','filter','stringify','getWinstonInstance','503690phRiSX','5wcZtpZ','red','join','createLogger','logFileName','1381401QKYLsG','info','transports','message','489024KEaVmz','printf','150vmkcQE','13150LwotaX','split','mkdirSync','Starting:\x20','utf8','15AVearV','rawCommand','7224756BzraYO','Failed:\x20','610719vriNSN','error','blue','parse','setRawCommand','timestamp','Failed\x20to\x20clear\x20logs:','addColors','green','logFilePath','log','readLogs','yellow','details','unknown','winstonLogger','combine'];a111_0x1905=function(){return _0x4b2f0e;};return a111_0x1905();}import a111_0x36ee69 from'node:fs';import a111_0x10ab8a from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];[a111_0x954387(0x1ac)]='';['currentRawCommand']='';constructor(){}[a111_0x954387(0x1a7)](_0x1a6178){this['currentRawCommand']=_0x1a6178;}[a111_0x954387(0x1c1)](_0x58c014){const _0x556c4a=a111_0x954387;this[_0x556c4a(0x1ac)]=a111_0x10ab8a[_0x556c4a(0x1cd)](_0x58c014,PRODUCT_CONFIG[_0x556c4a(0x1cf)]),this[_0x556c4a(0x1b2)]&&this[_0x556c4a(0x1b2)][_0x556c4a(0x1bb)](),this['initWinstonLogger']();}['initWinstonLogger'](){const _0x6cb411=a111_0x954387,_0x2f7e05=a111_0x10ab8a[_0x6cb411(0x1c3)](this[_0x6cb411(0x1ac)]);!a111_0x36ee69['existsSync'](_0x2f7e05)&&a111_0x36ee69[_0x6cb411(0x19c)](_0x2f7e05,{'recursive':!![]});const _0x34092f=a111_0x585f8a[_0x6cb411(0x1c4)][_0x6cb411(0x1b3)](a111_0x585f8a[_0x6cb411(0x1c4)][_0x6cb411(0x1a8)](),a111_0x585f8a[_0x6cb411(0x1c4)]['errors']({'stack':!![]}),a111_0x585f8a[_0x6cb411(0x1c4)][_0x6cb411(0x1d5)](_0x79bf7d=>{const _0x29f502=_0x6cb411,_0xb9a97e={'timestamp':_0x79bf7d[_0x29f502(0x1a8)]||new Date()['toISOString'](),'level':_0x79bf7d[_0x29f502(0x1b4)]||_0x29f502(0x1d1),'command':_0x79bf7d[_0x29f502(0x1b8)]||_0x29f502(0x1b1),'rawCommand':_0x79bf7d[_0x29f502(0x1a0)]||this['currentRawCommand']||undefined,'message':_0x79bf7d[_0x29f502(0x1d3)]||'','duration':_0x79bf7d['duration']||undefined,'details':_0x79bf7d[_0x29f502(0x1b0)]||undefined};return JSON[_0x29f502(0x1c8)](_0xb9a97e);}));this[_0x6cb411(0x1b2)]=a111_0x585f8a[_0x6cb411(0x1ce)]({'level':_0x6cb411(0x1d1),'format':_0x34092f,'transports':[new a111_0x585f8a[(_0x6cb411(0x1d2))]['File']({'filename':this[_0x6cb411(0x1ac)],'level':_0x6cb411(0x1d1)})],'silent':![]}),a111_0x585f8a[_0x6cb411(0x1aa)]({'success':_0x6cb411(0x1ab),'error':_0x6cb411(0x1cc),'warn':_0x6cb411(0x1af),'info':_0x6cb411(0x1a5)});}[a111_0x954387(0x1d1)](_0xa8aee0,_0x1a02e5,_0x14a928){const _0xf70103=a111_0x954387;if(!this[_0xf70103(0x1ac)]||!this[_0xf70103(0x1b2)])return;this[_0xf70103(0x1b2)][_0xf70103(0x1d1)](_0x1a02e5,{'command':_0xa8aee0,'details':_0x14a928});}[a111_0x954387(0x1c5)](_0x325625,_0x148526,_0x4a6a6a,_0x5d28c1){const _0x5adb07=a111_0x954387;if(!this[_0x5adb07(0x1ac)]||!this[_0x5adb07(0x1b2)])return;this[_0x5adb07(0x1b2)][_0x5adb07(0x1ad)](_0x5adb07(0x1d1),_0x148526,{'level':_0x5adb07(0x1c5),'command':_0x325625,'duration':_0x4a6a6a,'details':_0x5d28c1});}['error'](_0x4610f0,_0x2f5bf6,_0x91f93f){const _0x115329=a111_0x954387;if(!this[_0x115329(0x1ac)]||!this['winstonLogger'])return;this[_0x115329(0x1b2)][_0x115329(0x1a4)](_0x2f5bf6,{'command':_0x4610f0,'details':_0x91f93f});}[a111_0x954387(0x1c0)](_0x3b2dad,_0x530e62,_0x170a05){const _0x445d2d=a111_0x954387;if(!this[_0x445d2d(0x1ac)]||!this[_0x445d2d(0x1b2)])return;this['winstonLogger'][_0x445d2d(0x1c0)](_0x530e62,{'command':_0x3b2dad,'details':_0x170a05});}async[a111_0x954387(0x1b5)](_0x4e00d9,_0x46d84c,_0x26d01f){const _0x5a6607=a111_0x954387,_0x2fd761=Date[_0x5a6607(0x1b7)]();this['info'](_0x4e00d9,_0x5a6607(0x19d)+_0x46d84c);try{const _0x334a77=await _0x26d01f(),_0xee51=Date['now']()-_0x2fd761;return this[_0x5a6607(0x1c5)](_0x4e00d9,_0x5a6607(0x1b6)+_0x46d84c,_0xee51),_0x334a77;}catch(_0x4561c9){const _0x478b37=Date[_0x5a6607(0x1b7)]()-_0x2fd761;this[_0x5a6607(0x1a4)](_0x4e00d9,_0x5a6607(0x1a2)+_0x46d84c,{'error':_0x4561c9 instanceof Error?_0x4561c9['message']:String(_0x4561c9),'duration':_0x478b37});throw _0x4561c9;}}[a111_0x954387(0x1ae)](){const _0x29c94c=a111_0x954387;try{if(!a111_0x36ee69['existsSync'](this['logFilePath']))return[];const _0xb3a99c=a111_0x36ee69['readFileSync'](this[_0x29c94c(0x1ac)],_0x29c94c(0x19e));return _0xb3a99c[_0x29c94c(0x19b)](/\r?\n/)[_0x29c94c(0x1c7)](_0x4f9912=>_0x4f9912['trim']())[_0x29c94c(0x1b9)](_0x12478e=>JSON[_0x29c94c(0x1a6)](_0x12478e));}catch(_0x426c25){return console[_0x29c94c(0x1c0)](_0x29c94c(0x1bf),_0x426c25),[];}}[a111_0x954387(0x1c2)](){const _0xcd5187=a111_0x954387;try{a111_0x36ee69[_0xcd5187(0x1ba)](this[_0xcd5187(0x1ac)])&&a111_0x36ee69[_0xcd5187(0x1be)](this[_0xcd5187(0x1ac)],'',_0xcd5187(0x19e));}catch(_0x20ca6a){console[_0xcd5187(0x1c0)](_0xcd5187(0x1a9),_0x20ca6a);}}[a111_0x954387(0x1c9)](){const _0x4c7c30=a111_0x954387;return this[_0x4c7c30(0x1b2)];}}function a111_0x1b84(_0x54b9c7,_0x4db7b9){_0x54b9c7=_0x54b9c7-0x199;const _0x1905d8=a111_0x1905();let _0x1b8486=_0x1905d8[_0x54b9c7];return _0x1b8486;}export const logger=new Logger();
1
+ const a111_0x3a70ee=a111_0x2e4e;(function(_0x57ad3d,_0x17a210){const _0x1725b6=a111_0x2e4e,_0x1ad3f8=_0x57ad3d();while(!![]){try{const _0x543f7f=parseInt(_0x1725b6(0x9b))/0x1+parseInt(_0x1725b6(0x97))/0x2+parseInt(_0x1725b6(0x8c))/0x3*(-parseInt(_0x1725b6(0x7f))/0x4)+parseInt(_0x1725b6(0xa8))/0x5*(-parseInt(_0x1725b6(0x7a))/0x6)+parseInt(_0x1725b6(0x99))/0x7+-parseInt(_0x1725b6(0xa0))/0x8+parseInt(_0x1725b6(0x88))/0x9;if(_0x543f7f===_0x17a210)break;else _0x1ad3f8['push'](_0x1ad3f8['shift']());}catch(_0x778098){_0x1ad3f8['push'](_0x1ad3f8['shift']());}}}(a111_0x14da,0xdd54e));import a111_0x41e5db from'winston';function a111_0x2e4e(_0x3acccc,_0x2108eb){_0x3acccc=_0x3acccc-0x78;const _0x14da54=a111_0x14da();let _0x2e4e69=_0x14da54[_0x3acccc];return _0x2e4e69;}import a111_0x4bffdf from'node:fs';function a111_0x14da(){const _0x438a9e=['red','format','error','utf8','winstonLogger','Completed:\x20','Failed\x20to\x20read\x20logs:','map','24162jlGMWz','split','8686776ZEbJxN','toISOString','1042341OWIKQc','setRawCommand','logFilePath','createLogger','rawCommand','6607656DnkAKe','trim','logTask','info','green','Starting:\x20','details','clearLogs','2593035fdPLlS','command','timestamp','success','12ddbTHZ','printf','File','dirname','now','292UjyNxc','getWinstonInstance','warn','readLogs','stringify','currentRawCommand','logFileName','message','initWinstonLogger','15419142DtzZhV','clear','errors','existsSync','50913uUwfnv','mkdirSync','log'];a111_0x14da=function(){return _0x438a9e;};return a111_0x14da();}import a111_0xe4d246 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a111_0x3a70ee(0x93)];[a111_0x3a70ee(0x9d)]='';[a111_0x3a70ee(0x84)]='';constructor(){}[a111_0x3a70ee(0x9c)](_0x5db1f6){const _0x4e9b63=a111_0x3a70ee;this[_0x4e9b63(0x84)]=_0x5db1f6;}['setLogPath'](_0x375089){const _0x57e1f5=a111_0x3a70ee;this[_0x57e1f5(0x9d)]=a111_0xe4d246['join'](_0x375089,PRODUCT_CONFIG[_0x57e1f5(0x85)]),this[_0x57e1f5(0x93)]&&this['winstonLogger'][_0x57e1f5(0x89)](),this[_0x57e1f5(0x87)]();}[a111_0x3a70ee(0x87)](){const _0x54dc5f=a111_0x3a70ee,_0x3e108c=a111_0xe4d246[_0x54dc5f(0x7d)](this[_0x54dc5f(0x9d)]);!a111_0x4bffdf[_0x54dc5f(0x8b)](_0x3e108c)&&a111_0x4bffdf[_0x54dc5f(0x8d)](_0x3e108c,{'recursive':!![]});const _0x33827f=a111_0x41e5db[_0x54dc5f(0x90)]['combine'](a111_0x41e5db['format']['timestamp'](),a111_0x41e5db['format'][_0x54dc5f(0x8a)]({'stack':!![]}),a111_0x41e5db['format'][_0x54dc5f(0x7b)](_0x5e1821=>{const _0x9c227=_0x54dc5f,_0x230262={'timestamp':_0x5e1821[_0x9c227(0x78)]||new Date()[_0x9c227(0x9a)](),'level':_0x5e1821['level']||_0x9c227(0xa3),'command':_0x5e1821[_0x9c227(0xa9)]||'unknown','rawCommand':_0x5e1821[_0x9c227(0x9f)]||this[_0x9c227(0x84)]||undefined,'message':_0x5e1821[_0x9c227(0x86)]||'','duration':_0x5e1821['duration']||undefined,'details':_0x5e1821[_0x9c227(0xa6)]||undefined};return JSON[_0x9c227(0x83)](_0x230262);}));this[_0x54dc5f(0x93)]=a111_0x41e5db[_0x54dc5f(0x9e)]({'level':'info','format':_0x33827f,'transports':[new a111_0x41e5db['transports'][(_0x54dc5f(0x7c))]({'filename':this[_0x54dc5f(0x9d)],'level':'info'})],'silent':![]}),a111_0x41e5db['addColors']({'success':_0x54dc5f(0xa4),'error':_0x54dc5f(0x8f),'warn':'yellow','info':'blue'});}[a111_0x3a70ee(0xa3)](_0xf06a48,_0x3a5a80,_0x1490d0){const _0x2ee13c=a111_0x3a70ee;if(!this[_0x2ee13c(0x9d)]||!this[_0x2ee13c(0x93)])return;this[_0x2ee13c(0x93)][_0x2ee13c(0xa3)](_0x3a5a80,{'command':_0xf06a48,'details':_0x1490d0});}[a111_0x3a70ee(0x79)](_0xeb5969,_0x49d92d,_0x4f0ab7,_0x387088){const _0xf09aae=a111_0x3a70ee;if(!this['logFilePath']||!this[_0xf09aae(0x93)])return;this[_0xf09aae(0x93)][_0xf09aae(0x8e)](_0xf09aae(0xa3),_0x49d92d,{'level':'success','command':_0xeb5969,'duration':_0x4f0ab7,'details':_0x387088});}['error'](_0x55a6cc,_0x4d228d,_0x196ea9){const _0x41c379=a111_0x3a70ee;if(!this[_0x41c379(0x9d)]||!this[_0x41c379(0x93)])return;this['winstonLogger'][_0x41c379(0x91)](_0x4d228d,{'command':_0x55a6cc,'details':_0x196ea9});}[a111_0x3a70ee(0x81)](_0x1f4510,_0x7f0a3b,_0x250cdc){const _0x367400=a111_0x3a70ee;if(!this[_0x367400(0x9d)]||!this['winstonLogger'])return;this['winstonLogger'][_0x367400(0x81)](_0x7f0a3b,{'command':_0x1f4510,'details':_0x250cdc});}async[a111_0x3a70ee(0xa2)](_0x2747dc,_0x44e665,_0x25183f){const _0x226070=a111_0x3a70ee,_0x5b86ea=Date[_0x226070(0x7e)]();this['info'](_0x2747dc,_0x226070(0xa5)+_0x44e665);try{const _0x40a157=await _0x25183f(),_0x202c95=Date[_0x226070(0x7e)]()-_0x5b86ea;return this[_0x226070(0x79)](_0x2747dc,_0x226070(0x94)+_0x44e665,_0x202c95),_0x40a157;}catch(_0x501eeb){const _0x45fc85=Date[_0x226070(0x7e)]()-_0x5b86ea;this[_0x226070(0x91)](_0x2747dc,'Failed:\x20'+_0x44e665,{'error':_0x501eeb instanceof Error?_0x501eeb['message']:String(_0x501eeb),'duration':_0x45fc85});throw _0x501eeb;}}[a111_0x3a70ee(0x82)](){const _0x27be7b=a111_0x3a70ee;try{if(!a111_0x4bffdf[_0x27be7b(0x8b)](this[_0x27be7b(0x9d)]))return[];const _0xc315b0=a111_0x4bffdf['readFileSync'](this['logFilePath'],_0x27be7b(0x92));return _0xc315b0[_0x27be7b(0x98)](/\r?\n/)['filter'](_0x2071b0=>_0x2071b0[_0x27be7b(0xa1)]())[_0x27be7b(0x96)](_0x5473ea=>JSON['parse'](_0x5473ea));}catch(_0x2d7685){return console[_0x27be7b(0x81)](_0x27be7b(0x95),_0x2d7685),[];}}[a111_0x3a70ee(0xa7)](){const _0x58eacc=a111_0x3a70ee;try{a111_0x4bffdf[_0x58eacc(0x8b)](this[_0x58eacc(0x9d)])&&a111_0x4bffdf['writeFileSync'](this[_0x58eacc(0x9d)],'','utf8');}catch(_0x75f52){console[_0x58eacc(0x81)]('Failed\x20to\x20clear\x20logs:',_0x75f52);}}[a111_0x3a70ee(0x80)](){const _0x4ea564=a111_0x3a70ee;return this[_0x4ea564(0x93)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x2d0b69,_0x146330){var _0x14dd49=a112_0x19b2,_0x11cf02=_0x2d0b69();while(!![]){try{var _0xb64b32=parseInt(_0x14dd49(0x14d))/0x1+parseInt(_0x14dd49(0x154))/0x2*(parseInt(_0x14dd49(0x151))/0x3)+parseInt(_0x14dd49(0x152))/0x4+-parseInt(_0x14dd49(0x157))/0x5*(-parseInt(_0x14dd49(0x14c))/0x6)+parseInt(_0x14dd49(0x14f))/0x7+-parseInt(_0x14dd49(0x153))/0x8+-parseInt(_0x14dd49(0x155))/0x9;if(_0xb64b32===_0x146330)break;else _0x11cf02['push'](_0x11cf02['shift']());}catch(_0x54a880){_0x11cf02['push'](_0x11cf02['shift']());}}}(a112_0x9161,0xd980b));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x342587){var _0x426b39=a112_0x19b2;if(!_0x342587)return undefined;try{return JSON[_0x426b39(0x158)](_0x342587);}catch{throw CliErrors[_0x426b39(0x14b)](_0x426b39(0x156)+_0x342587);}}function a112_0x9161(){var _0x1c77c8=['isArray','validation','2638398xgblsM','1648440uPfcUb','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','6514466GEpbbd','items','3GXGeir','2175400tVptHs','8253600ZwSYxY','1332934lfVZbp','24716430TLQrRv','Invalid\x20JSON\x20for\x20--params:\x20','10FcQGBs','parse'];a112_0x9161=function(){return _0x1c77c8;};return a112_0x9161();}function a112_0x19b2(_0x37e161,_0x5d9c78){_0x37e161=_0x37e161-0x14b;var _0x91619d=a112_0x9161();var _0x19b2f8=_0x91619d[_0x37e161];return _0x19b2f8;}export function parseJsonParamsValue(_0xf3bb0){var _0xd02103=a112_0x19b2;if(!_0xf3bb0)return undefined;try{return JSON[_0xd02103(0x158)](_0xf3bb0);}catch{throw CliErrors[_0xd02103(0x14b)](_0xd02103(0x156)+_0xf3bb0);}}export function parseBatchCreateItemsFromParams(_0x54f267){var _0x151e8b=a112_0x19b2;if(Array[_0x151e8b(0x159)](_0x54f267))return _0x54f267;if(_0x54f267!==null&&_0x54f267!==undefined&&typeof _0x54f267==='object'&&Array[_0x151e8b(0x159)](_0x54f267[_0x151e8b(0x150)]))return _0x54f267[_0x151e8b(0x150)];throw CliErrors[_0x151e8b(0x14b)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x151e8b(0x14e));}
1
+ (function(_0x12b1e9,_0xd8aeab){const _0x30634b=a112_0x1e60,_0x402b25=_0x12b1e9();while(!![]){try{const _0x16678e=parseInt(_0x30634b(0x160))/0x1+-parseInt(_0x30634b(0x155))/0x2*(-parseInt(_0x30634b(0x15c))/0x3)+parseInt(_0x30634b(0x166))/0x4*(parseInt(_0x30634b(0x14c))/0x5)+parseInt(_0x30634b(0x157))/0x6+-parseInt(_0x30634b(0x156))/0x7*(parseInt(_0x30634b(0x150))/0x8)+-parseInt(_0x30634b(0x14e))/0x9+-parseInt(_0x30634b(0x151))/0xa;if(_0x16678e===_0xd8aeab)break;else _0x402b25['push'](_0x402b25['shift']());}catch(_0x47918c){_0x402b25['push'](_0x402b25['shift']());}}}(a112_0x3f0e,0x61fba));import{CliErrors}from'../errors.js';function a112_0x3f0e(){const _0x552854=['1880850UqOcNP','Invalid\x20JSON\x20for\x20--params:\x20','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','isArray','7746YxnGbd','validation','test','id[','66391OIEQBv','isSafeInteger','number','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20--params.','parse','26900WgYagG','length','585SmmSyX','data\x20update\x20can\x20update\x20at\x20most\x20','2066148nstAAH','object','8wiyXkG','5090540KbbFvZ','items','map','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','122DWTTvt','1289603soQqlK'];a112_0x3f0e=function(){return _0x552854;};return a112_0x3f0e();}export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x1e634a){const _0x3cefa5=a112_0x1e60;if(!_0x1e634a)return undefined;try{return JSON[_0x3cefa5(0x165)](_0x1e634a);}catch{throw CliErrors['validation'](_0x3cefa5(0x158)+_0x1e634a);}}export function parseJsonParamsValue(_0x40dbd8){const _0x5b7b16=a112_0x1e60;if(!_0x40dbd8)return undefined;try{return JSON['parse'](_0x40dbd8);}catch{throw CliErrors[_0x5b7b16(0x15d)](_0x5b7b16(0x158)+_0x40dbd8);}}function a112_0x1e60(_0x2ff22a,_0x3bf307){_0x2ff22a=_0x2ff22a-0x14c;const _0x3f0e1a=a112_0x3f0e();let _0x1e6019=_0x3f0e1a[_0x2ff22a];return _0x1e6019;}export function parseBatchCreateItemsFromParams(_0x4637d3){const _0x5377ef=a112_0x1e60;if(Array[_0x5377ef(0x15b)](_0x4637d3))return _0x4637d3;if(_0x4637d3!==null&&_0x4637d3!==undefined&&typeof _0x4637d3===_0x5377ef(0x14f)&&Array[_0x5377ef(0x15b)](_0x4637d3[_0x5377ef(0x152)]))return _0x4637d3['items'];throw CliErrors[_0x5377ef(0x15d)](_0x5377ef(0x154),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x1c7082,_0x43420d){const _0x2f193d=a112_0x1e60;if(typeof _0x1c7082===_0x2f193d(0x162)&&Number[_0x2f193d(0x161)](_0x1c7082)&&_0x1c7082>0x0)return _0x1c7082;if(typeof _0x1c7082==='string'){if(/^[1-9]\d*$/[_0x2f193d(0x15e)](_0x1c7082))return _0x1c7082;}throw CliErrors[_0x2f193d(0x15d)](_0x2f193d(0x164)+_0x43420d+_0x2f193d(0x159));}export function parseUpdateIdsFromParams(_0x4c0ab3){const _0x595e26=a112_0x1e60;if(_0x4c0ab3===null||_0x4c0ab3===undefined||typeof _0x4c0ab3!==_0x595e26(0x14f)||Array[_0x595e26(0x15b)](_0x4c0ab3))throw CliErrors[_0x595e26(0x15d)](_0x595e26(0x15a),_0x595e26(0x163));const _0x330c01=_0x4c0ab3['id'];if(_0x330c01===undefined||_0x330c01===null)throw CliErrors[_0x595e26(0x15d)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x155581=Array['isArray'](_0x330c01)?_0x330c01:[_0x330c01];if(_0x155581[_0x595e26(0x167)]===0x0)throw CliErrors[_0x595e26(0x15d)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x155581[_0x595e26(0x167)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x595e26(0x15d)](_0x595e26(0x14d)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x155581[_0x595e26(0x167)]+'.');return _0x155581[_0x595e26(0x153)]((_0x4f8a0c,_0x40743f)=>parseDataUpdateId(_0x4f8a0c,Array['isArray'](_0x330c01)?_0x595e26(0x15f)+_0x40743f+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x13d98c,_0x1ba283){const _0x2aba5e=a112_0x1e60;if(Array[_0x2aba5e(0x15b)](_0x13d98c['id'])&&_0x1ba283[_0x2aba5e(0x167)]>0x1)return{..._0x13d98c,'id':_0x1ba283['join'](',')};return _0x13d98c;}
@@ -1 +1 @@
1
- function a113_0xb2ef(){const _0x18ba09=['2789508uGWgJg','9dQXioa','880664DSENjR','984108twXnYg','win32','159095IGXLae','7527450ddFSOw','44ybOgRY','3eDuWJk','8409936yuQioZ','platform','6925rWpJPp','5622ITWsef','7cfjhLJ'];a113_0xb2ef=function(){return _0x18ba09;};return a113_0xb2ef();}const a113_0x25d675=a113_0x188f;function a113_0x188f(_0x64dd23,_0x2cb074){_0x64dd23=_0x64dd23-0x72;const _0xb2efca=a113_0xb2ef();let _0x188f71=_0xb2efca[_0x64dd23];return _0x188f71;}(function(_0x1a3bef,_0x337527){const _0x1e377b=a113_0x188f,_0x1549f7=_0x1a3bef();while(!![]){try{const _0xe4eb57=parseInt(_0x1e377b(0x76))/0x1+parseInt(_0x1e377b(0x73))/0x2*(parseInt(_0x1e377b(0x79))/0x3)+parseInt(_0x1e377b(0x74))/0x4+parseInt(_0x1e377b(0x7c))/0x5*(-parseInt(_0x1e377b(0x7d))/0x6)+parseInt(_0x1e377b(0x7e))/0x7*(parseInt(_0x1e377b(0x7a))/0x8)+-parseInt(_0x1e377b(0x72))/0x9*(parseInt(_0x1e377b(0x77))/0xa)+parseInt(_0x1e377b(0x78))/0xb*(parseInt(_0x1e377b(0x7f))/0xc);if(_0xe4eb57===_0x337527)break;else _0x1549f7['push'](_0x1549f7['shift']());}catch(_0x2576f1){_0x1549f7['push'](_0x1549f7['shift']());}}}(a113_0xb2ef,0xbd76a));export const isWindows=process[a113_0x25d675(0x7b)]===a113_0x25d675(0x75);export function resolveNpmBin(_0x228ea9){return isWindows?_0x228ea9+'.cmd':_0x228ea9;}
1
+ function a113_0x5095(_0x397c9c,_0xb9db21){_0x397c9c=_0x397c9c-0x88;const _0x310139=a113_0x3101();let _0x509510=_0x310139[_0x397c9c];return _0x509510;}const a113_0x4ab335=a113_0x5095;(function(_0x24773d,_0x1f7aa4){const _0x17407d=a113_0x5095,_0x2a6e3a=_0x24773d();while(!![]){try{const _0x2cbcc3=-parseInt(_0x17407d(0x8f))/0x1*(parseInt(_0x17407d(0x97))/0x2)+parseInt(_0x17407d(0x8a))/0x3*(parseInt(_0x17407d(0x92))/0x4)+parseInt(_0x17407d(0x90))/0x5*(parseInt(_0x17407d(0x96))/0x6)+parseInt(_0x17407d(0x95))/0x7*(parseInt(_0x17407d(0x8d))/0x8)+parseInt(_0x17407d(0x8c))/0x9+-parseInt(_0x17407d(0x88))/0xa*(parseInt(_0x17407d(0x94))/0xb)+parseInt(_0x17407d(0x8e))/0xc*(-parseInt(_0x17407d(0x91))/0xd);if(_0x2cbcc3===_0x1f7aa4)break;else _0x2a6e3a['push'](_0x2a6e3a['shift']());}catch(_0x786367){_0x2a6e3a['push'](_0x2a6e3a['shift']());}}}(a113_0x3101,0xab1be));export const isWindows=process[a113_0x4ab335(0x89)]===a113_0x4ab335(0x93);export function resolveNpmBin(_0x5f4813){const _0x173424=a113_0x4ab335;return isWindows?_0x5f4813+_0x173424(0x8b):_0x5f4813;}function a113_0x3101(){const _0x2f95d5=['32gBTRti','3252948BQucWh','2531wXoeJa','2750mcydVM','13NpsUZb','2724sjWbDB','win32','77cyOAsx','1371881qNkAeL','2424BlsmsQ','862OIZCHx','738790IMeYoN','platform','3243BFJgvd','.cmd','7538958BJbfsc'];a113_0x3101=function(){return _0x2f95d5;};return a113_0x3101();}
@@ -1 +1 @@
1
- function a114_0x23cd(_0x30dfad,_0x455fc7){_0x30dfad=_0x30dfad-0x19a;const _0x55e92a=a114_0x55e9();let _0x23cde5=_0x55e92a[_0x30dfad];return _0x23cde5;}(function(_0x30760d,_0x4571bc){const _0x4a977a=a114_0x23cd,_0x1fbf85=_0x30760d();while(!![]){try{const _0x2e173c=parseInt(_0x4a977a(0x1b3))/0x1+parseInt(_0x4a977a(0x1a6))/0x2*(-parseInt(_0x4a977a(0x1aa))/0x3)+-parseInt(_0x4a977a(0x1a0))/0x4*(parseInt(_0x4a977a(0x1a9))/0x5)+-parseInt(_0x4a977a(0x1a4))/0x6*(parseInt(_0x4a977a(0x1bd))/0x7)+-parseInt(_0x4a977a(0x1b7))/0x8+-parseInt(_0x4a977a(0x1a3))/0x9+parseInt(_0x4a977a(0x19d))/0xa;if(_0x2e173c===_0x4571bc)break;else _0x1fbf85['push'](_0x1fbf85['shift']());}catch(_0x339f6a){_0x1fbf85['push'](_0x1fbf85['shift']());}}}(a114_0x55e9,0x3487a));function a114_0x55e9(){const _0x501b2d=['minor','/-/package/','number','fromEntries','timeout','true','toLowerCase','75033Uwnjjl','utf8','\x20available,\x20current\x20','parse','1729784GRUSGp','update-check.json','trim','major','string','object','7NmrBhH','lastNotifiedVersion','map','/dist-tags','entries','yes','latest','\x20update','checkedAt','now','13116240ZzHxfU','filter','Invalid\x20semver','52484sfRUcz','prerelease','match','2889441xfGUWk','1356858iUxklp','patch','170OPLqcJ','json','lastNotifiedAt','150DsQRMQ','510KbntqU','/v/'];a114_0x55e9=function(){return _0x501b2d;};return a114_0x55e9();}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(_0x6b22ad){const _0x518e3c=a114_0x23cd,_0x2aefdb=_0x6b22ad[_0x518e3c(0x1b9)]()[_0x518e3c(0x1a2)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x2aefdb)return null;return{'major':Number(_0x2aefdb[0x1]),'minor':Number(_0x2aefdb[0x2]),'patch':Number(_0x2aefdb[0x3]),'prerelease':_0x2aefdb[0x4]};}function compareSemver(_0x3a17a2,_0x4204e2){const _0xbfd7b6=a114_0x23cd,_0x1cc522=parseSemver(_0x3a17a2),_0x31e8ba=parseSemver(_0x4204e2);if(!_0x1cc522||!_0x31e8ba)throw new Error(_0xbfd7b6(0x19f));for(const _0x48c631 of[_0xbfd7b6(0x1ba),_0xbfd7b6(0x1ac),_0xbfd7b6(0x1a5)]){if(_0x1cc522[_0x48c631]<_0x31e8ba[_0x48c631])return-0x1;if(_0x1cc522[_0x48c631]>_0x31e8ba[_0x48c631])return 0x1;}if(!_0x1cc522[_0xbfd7b6(0x1a1)]&&!_0x31e8ba['prerelease'])return 0x0;if(!_0x1cc522['prerelease'])return 0x1;if(!_0x31e8ba[_0xbfd7b6(0x1a1)])return-0x1;if(_0x1cc522[_0xbfd7b6(0x1a1)]===_0x31e8ba['prerelease'])return 0x0;return _0x1cc522[_0xbfd7b6(0x1a1)]<_0x31e8ba[_0xbfd7b6(0x1a1)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x518379=a114_0x23cd,_0x54b1bc=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x518379(0x1b9)]()[_0x518379(0x1b2)]();return _0x54b1bc==='1'||_0x54b1bc===_0x518379(0x1b1)||_0x54b1bc===_0x518379(0x1c2);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x255b62=a114_0x23cd;return join(cacheRoot(),'lovrabet-cli',_0x255b62(0x1b8));}async function readUpdateNoticeCache(){const _0x253016=a114_0x23cd;try{const _0x39b937=await readFile(getUpdateNoticeCachePath(),_0x253016(0x1b4)),_0x556eb7=JSON[_0x253016(0x1b6)](_0x39b937);if(!_0x556eb7||typeof _0x556eb7!==_0x253016(0x1bc))return{};return _0x556eb7;}catch{return{};}}async function writeUpdateNoticeCache(_0x48e255){try{const _0x100640=getUpdateNoticeCachePath();await mkdir(dirname(_0x100640),{'recursive':!![]}),await writeFile(_0x100640,JSON['stringify'](_0x48e255,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x480fa9,_0x3f5bfc){const _0x3b927a=a114_0x23cd;return typeof _0x480fa9[_0x3b927a(0x19b)]===_0x3b927a(0x1ae)&&_0x3f5bfc-_0x480fa9[_0x3b927a(0x19b)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x57cbf7,_0x1ba947,_0x4e50c8){const _0x3c045f=a114_0x23cd;return _0x57cbf7[_0x3c045f(0x1be)]===_0x1ba947&&typeof _0x57cbf7[_0x3c045f(0x1a8)]===_0x3c045f(0x1ae)&&_0x4e50c8-_0x57cbf7[_0x3c045f(0x1a8)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x1d0fb5=0x5dc){const _0x3f1417=a114_0x23cd;try{const _0x586301=NPM_REGISTRY_BASE_URL+_0x3f1417(0x1ad)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3f1417(0x1c0),_0x45b502=await fetch(_0x586301,{'signal':AbortSignal[_0x3f1417(0x1b0)](_0x1d0fb5)});if(!_0x45b502['ok'])return null;const _0x5e6ecd=await _0x45b502[_0x3f1417(0x1a7)]();if(!_0x5e6ecd||typeof _0x5e6ecd!==_0x3f1417(0x1bc))return null;return Object[_0x3f1417(0x1af)](Object[_0x3f1417(0x1c1)](_0x5e6ecd)[_0x3f1417(0x19e)](([,_0x4f172c])=>typeof _0x4f172c===_0x3f1417(0x1bb)&&_0x4f172c[_0x3f1417(0x1b9)]())[_0x3f1417(0x1bf)](([_0x2630f1,_0x5a9ca4])=>[_0x2630f1,String(_0x5a9ca4)['trim']()]));}catch{return null;}}export function buildNpmVersionUrl(_0x23f576){const _0x2921ca=a114_0x23cd;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x2921ca(0x1ab)+_0x23f576;}export async function resolveLatestUpdateNotice(){const _0x5e7146=a114_0x23cd;if(isUpdateNoticeDisabled())return null;try{const _0x5b8430=Date[_0x5e7146(0x19c)](),_0x3da75e=getCliVersion(),_0x2a128e=await readUpdateNoticeCache();let _0x5b50b5=isFreshCheck(_0x2a128e,_0x5b8430)?_0x2a128e[_0x5e7146(0x1c3)]?.[_0x5e7146(0x1b9)]():undefined;if(!_0x5b50b5&&!isFreshCheck(_0x2a128e,_0x5b8430)){const _0x19b4f5=await fetchNpmDistTags();_0x5b50b5=_0x19b4f5?.[_0x5e7146(0x1c3)]?.[_0x5e7146(0x1b9)](),await writeUpdateNoticeCache({..._0x2a128e,'checkedAt':_0x5b8430,'latest':_0x5b50b5,'failed':!_0x5b50b5});}if(!_0x5b50b5||compareSemver(_0x3da75e,_0x5b50b5)>=0x0)return null;if(isRecentlyNotified(_0x2a128e,_0x5b50b5,_0x5b8430))return null;const _0x703922=CLI_BIN_NAME+_0x5e7146(0x19a);return await writeUpdateNoticeCache({..._0x2a128e,'checkedAt':isFreshCheck(_0x2a128e,_0x5b8430)?_0x2a128e[_0x5e7146(0x19b)]:_0x5b8430,'latest':_0x5b50b5,'failed':![],'lastNotifiedVersion':_0x5b50b5,'lastNotifiedAt':_0x5b8430}),{'command':_0x703922,'current':_0x3da75e,'latest':_0x5b50b5,'url':buildNpmVersionUrl(_0x5b50b5),'message':CLI_BIN_NAME+'\x20'+_0x5b50b5+_0x5e7146(0x1b5)+_0x3da75e+',\x20run:\x20'+_0x703922};}catch{return null;}}
1
+ (function(_0x5ca1d0,_0x1cf0b5){const _0x1cda6c=a114_0x3fbf,_0x5db9fc=_0x5ca1d0();while(!![]){try{const _0x5084bf=parseInt(_0x1cda6c(0xcb))/0x1+-parseInt(_0x1cda6c(0xbc))/0x2+parseInt(_0x1cda6c(0xd5))/0x3*(-parseInt(_0x1cda6c(0xbf))/0x4)+-parseInt(_0x1cda6c(0xc1))/0x5+-parseInt(_0x1cda6c(0xcd))/0x6*(parseInt(_0x1cda6c(0xc6))/0x7)+-parseInt(_0x1cda6c(0xd0))/0x8+-parseInt(_0x1cda6c(0xd8))/0x9*(-parseInt(_0x1cda6c(0xd6))/0xa);if(_0x5084bf===_0x1cf0b5)break;else _0x5db9fc['push'](_0x5db9fc['shift']());}catch(_0x10122f){_0x5db9fc['push'](_0x5db9fc['shift']());}}}(a114_0x30f7,0x7c17a));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(_0x386e49){const _0x15f5b1=a114_0x3fbf,_0x3e7790=_0x386e49[_0x15f5b1(0xd4)]()[_0x15f5b1(0xc5)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x3e7790)return null;return{'major':Number(_0x3e7790[0x1]),'minor':Number(_0x3e7790[0x2]),'patch':Number(_0x3e7790[0x3]),'prerelease':_0x3e7790[0x4]};}function compareSemver(_0x53d7cd,_0x32d8e0){const _0x434b98=a114_0x3fbf,_0x3a053e=parseSemver(_0x53d7cd),_0x451ee4=parseSemver(_0x32d8e0);if(!_0x3a053e||!_0x451ee4)throw new Error('Invalid\x20semver');for(const _0x3092fc of[_0x434b98(0xce),_0x434b98(0xd1),'patch']){if(_0x3a053e[_0x3092fc]<_0x451ee4[_0x3092fc])return-0x1;if(_0x3a053e[_0x3092fc]>_0x451ee4[_0x3092fc])return 0x1;}if(!_0x3a053e[_0x434b98(0xc9)]&&!_0x451ee4[_0x434b98(0xc9)])return 0x0;if(!_0x3a053e[_0x434b98(0xc9)])return 0x1;if(!_0x451ee4[_0x434b98(0xc9)])return-0x1;if(_0x3a053e[_0x434b98(0xc9)]===_0x451ee4[_0x434b98(0xc9)])return 0x0;return _0x3a053e[_0x434b98(0xc9)]<_0x451ee4['prerelease']?-0x1:0x1;}function a114_0x3fbf(_0x51f5e1,_0x33e4bf){_0x51f5e1=_0x51f5e1-0xb6;const _0x30f796=a114_0x30f7();let _0x3fbfc8=_0x30f796[_0x51f5e1];return _0x3fbfc8;}function isUpdateNoticeDisabled(){const _0x1134a7=a114_0x3fbf,_0xea4f41=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x1134a7(0xc2)]();return _0xea4f41==='1'||_0xea4f41===_0x1134a7(0xd3)||_0xea4f41===_0x1134a7(0xcc);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x209fba=a114_0x3fbf;return join(cacheRoot(),_0x209fba(0xba),_0x209fba(0xc7));}async function readUpdateNoticeCache(){const _0x454047=a114_0x3fbf;try{const _0xea589e=await readFile(getUpdateNoticeCachePath(),_0x454047(0xb7)),_0x34a83e=JSON['parse'](_0xea589e);if(!_0x34a83e||typeof _0x34a83e!==_0x454047(0xc4))return{};return _0x34a83e;}catch{return{};}}function a114_0x30f7(){const _0x395971=['minor','number','true','trim','831Mlvyfa','10dsSpKU','/-/package/','14194809kThxss','filter','utf8','\x20available,\x20current\x20','https://www.npmjs.com/package/','lovrabet-cli','\x20update','41674DZriQl','map','entries','7640cRNBmd','json','1035920ackjvS','toLowerCase','string','object','match','221081JSuZpJ','update-check.json','timeout','prerelease','/v/','160490mfBFfZ','yes','24BUYaeY','major','lastNotifiedAt','2767888OniHNP'];a114_0x30f7=function(){return _0x395971;};return a114_0x30f7();}async function writeUpdateNoticeCache(_0x100d04){const _0x331240=a114_0x3fbf;try{const _0x4d0f04=getUpdateNoticeCachePath();await mkdir(dirname(_0x4d0f04),{'recursive':!![]}),await writeFile(_0x4d0f04,JSON['stringify'](_0x100d04,null,0x2)+'\x0a',_0x331240(0xb7));}catch{}}function isFreshCheck(_0x447b6a,_0x155c0d){const _0x27ee52=a114_0x3fbf;return typeof _0x447b6a['checkedAt']===_0x27ee52(0xd2)&&_0x155c0d-_0x447b6a['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0xb8b0ac,_0x5d182b,_0x444533){const _0xf8062f=a114_0x3fbf;return _0xb8b0ac['lastNotifiedVersion']===_0x5d182b&&typeof _0xb8b0ac['lastNotifiedAt']===_0xf8062f(0xd2)&&_0x444533-_0xb8b0ac[_0xf8062f(0xcf)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x147236=0x5dc){const _0xc5ec48=a114_0x3fbf;try{const _0x37aa9d=NPM_REGISTRY_BASE_URL+_0xc5ec48(0xd7)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x9ca538=await fetch(_0x37aa9d,{'signal':AbortSignal[_0xc5ec48(0xc8)](_0x147236)});if(!_0x9ca538['ok'])return null;const _0x4cd9c7=await _0x9ca538[_0xc5ec48(0xc0)]();if(!_0x4cd9c7||typeof _0x4cd9c7!=='object')return null;return Object['fromEntries'](Object[_0xc5ec48(0xbe)](_0x4cd9c7)[_0xc5ec48(0xb6)](([,_0xf9555e])=>typeof _0xf9555e===_0xc5ec48(0xc3)&&_0xf9555e[_0xc5ec48(0xd4)]())[_0xc5ec48(0xbd)](([_0xdfb4fc,_0x50b88d])=>[_0xdfb4fc,String(_0x50b88d)[_0xc5ec48(0xd4)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x6d525c){const _0x33083f=a114_0x3fbf;return _0x33083f(0xb9)+LOVRABET_NPM_PACKAGE_NAME+_0x33083f(0xca)+_0x6d525c;}export async function resolveLatestUpdateNotice(){const _0x11150e=a114_0x3fbf;if(isUpdateNoticeDisabled())return null;try{const _0x3a2870=Date['now'](),_0x2dac55=getCliVersion(),_0x2d21c3=await readUpdateNoticeCache();let _0x4e1c69=isFreshCheck(_0x2d21c3,_0x3a2870)?_0x2d21c3['latest']?.['trim']():undefined;if(!_0x4e1c69&&!isFreshCheck(_0x2d21c3,_0x3a2870)){const _0x3c3146=await fetchNpmDistTags();_0x4e1c69=_0x3c3146?.['latest']?.['trim'](),await writeUpdateNoticeCache({..._0x2d21c3,'checkedAt':_0x3a2870,'latest':_0x4e1c69,'failed':!_0x4e1c69});}if(!_0x4e1c69||compareSemver(_0x2dac55,_0x4e1c69)>=0x0)return null;if(isRecentlyNotified(_0x2d21c3,_0x4e1c69,_0x3a2870))return null;const _0x396918=CLI_BIN_NAME+_0x11150e(0xbb);return await writeUpdateNoticeCache({..._0x2d21c3,'checkedAt':isFreshCheck(_0x2d21c3,_0x3a2870)?_0x2d21c3['checkedAt']:_0x3a2870,'latest':_0x4e1c69,'failed':![],'lastNotifiedVersion':_0x4e1c69,'lastNotifiedAt':_0x3a2870}),{'command':_0x396918,'current':_0x2dac55,'latest':_0x4e1c69,'url':buildNpmVersionUrl(_0x4e1c69),'message':CLI_BIN_NAME+'\x20'+_0x4e1c69+_0x11150e(0xb8)+_0x2dac55+',\x20run:\x20'+_0x396918};}catch{return null;}}
@@ -1 +1 @@
1
- function a115_0xb1ae(_0x82911c,_0x5f54ba){_0x82911c=_0x82911c-0x1c2;const _0x1a6d76=a115_0x1a6d();let _0xb1ae6f=_0x1a6d76[_0x82911c];return _0xb1ae6f;}(function(_0x373210,_0x2f90d4){const _0x1d2e7e=a115_0xb1ae,_0x426abe=_0x373210();while(!![]){try{const _0x504496=-parseInt(_0x1d2e7e(0x1ca))/0x1+-parseInt(_0x1d2e7e(0x1c9))/0x2+parseInt(_0x1d2e7e(0x1c4))/0x3*(parseInt(_0x1d2e7e(0x1c2))/0x4)+parseInt(_0x1d2e7e(0x1c8))/0x5+parseInt(_0x1d2e7e(0x1c7))/0x6+-parseInt(_0x1d2e7e(0x1c5))/0x7*(parseInt(_0x1d2e7e(0x1cb))/0x8)+parseInt(_0x1d2e7e(0x1c6))/0x9;if(_0x504496===_0x2f90d4)break;else _0x426abe['push'](_0x426abe['shift']());}catch(_0x5ca516){_0x426abe['push'](_0x426abe['shift']());}}}(a115_0x1a6d,0x6da94));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x1dd90c=a115_0xb1ae,_0x4a5e58=String(GIT_COMMIT);return _0x4a5e58&&_0x4a5e58!==_0x1dd90c(0x1c3)?_0x4a5e58:'';}export function getCliVersionDisplay(){const _0x5e96e8=a115_0xb1ae,_0x3810d1=getCliGitCommit(),_0x50e072=BUILD_TIME[_0x5e96e8(0x1cc)](0x0,0xa);if(!_0x3810d1||!_0x50e072)return VERSION;return VERSION+'\x20('+_0x3810d1+',\x20'+_0x50e072+')';}function a115_0x1a6d(){const _0x46622c=['507374LeHfVv','4739936NDNHDH','slice','80StlYLL','unknown','85629FFvArl','7IVMswe','6056127UIJRxp','4230024qVHnyQ','1938655TyPFVd','1574920BLAJuM'];a115_0x1a6d=function(){return _0x46622c;};return a115_0x1a6d();}
1
+ function a115_0x4d64(){const _0x243a2a=['305756UqRVLF','6iEfsGf','9258907WSIZWH','631123nzZQFV','1240VGvvda','5611536uqmsiS','1640056kHKMDw','2wOjOXV','380024ZgnmDL','unknown','1510899tZtZyO','slice','40rmwFNm'];a115_0x4d64=function(){return _0x243a2a;};return a115_0x4d64();}(function(_0x2c747a,_0x2c9c24){const _0xdabca1=a115_0x3154,_0x2b10e8=_0x2c747a();while(!![]){try{const _0x31de69=parseInt(_0xdabca1(0x1e4))/0x1*(parseInt(_0xdabca1(0x1e8))/0x2)+-parseInt(_0xdabca1(0x1eb))/0x3+parseInt(_0xdabca1(0x1e9))/0x4*(-parseInt(_0xdabca1(0x1e0))/0x5)+-parseInt(_0xdabca1(0x1e2))/0x6*(parseInt(_0xdabca1(0x1e3))/0x7)+-parseInt(_0xdabca1(0x1e7))/0x8+-parseInt(_0xdabca1(0x1e6))/0x9+-parseInt(_0xdabca1(0x1e5))/0xa*(-parseInt(_0xdabca1(0x1e1))/0xb);if(_0x31de69===_0x2c9c24)break;else _0x2b10e8['push'](_0x2b10e8['shift']());}catch(_0x1baf7a){_0x2b10e8['push'](_0x2b10e8['shift']());}}}(a115_0x4d64,0xa1d96));function a115_0x3154(_0x3be12d,_0x41d026){_0x3be12d=_0x3be12d-0x1e0;const _0x4d6413=a115_0x4d64();let _0x31547d=_0x4d6413[_0x3be12d];return _0x31547d;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x4dd482=a115_0x3154,_0x296c5a=String(GIT_COMMIT);return _0x296c5a&&_0x296c5a!==_0x4dd482(0x1ea)?_0x296c5a:'';}export function getCliVersionDisplay(){const _0x18ec7f=a115_0x3154,_0x2c7ac1=getCliGitCommit(),_0x2b0ac5=BUILD_TIME[_0x18ec7f(0x1ec)](0x0,0xa);if(!_0x2c7ac1||!_0x2b0ac5)return VERSION;return VERSION+'\x20('+_0x2c7ac1+',\x20'+_0x2b0ac5+')';}
@@ -1 +1 @@
1
- function a116_0x53ed(_0x1f4df6,_0x2d12d6){_0x1f4df6=_0x1f4df6-0xf1;var _0x41afe3=a116_0x41af();var _0x53ed77=_0x41afe3[_0x1f4df6];return _0x53ed77;}(function(_0x3879a9,_0x3066fb){var _0x188dcd=a116_0x53ed,_0x545dae=_0x3879a9();while(!![]){try{var _0x213f22=-parseInt(_0x188dcd(0xfc))/0x1*(parseInt(_0x188dcd(0xf9))/0x2)+parseInt(_0x188dcd(0xf6))/0x3+-parseInt(_0x188dcd(0xf2))/0x4+parseInt(_0x188dcd(0xfb))/0x5*(-parseInt(_0x188dcd(0xf8))/0x6)+-parseInt(_0x188dcd(0xf5))/0x7*(-parseInt(_0x188dcd(0xfa))/0x8)+parseInt(_0x188dcd(0xf4))/0x9+-parseInt(_0x188dcd(0xf3))/0xa*(-parseInt(_0x188dcd(0xf7))/0xb);if(_0x213f22===_0x3066fb)break;else _0x545dae['push'](_0x545dae['shift']());}catch(_0x563956){_0x545dae['push'](_0x545dae['shift']());}}}(a116_0x41af,0xc8193));export function writeCliSideChannelLine(_0x2b5afb){var _0x32d754=a116_0x53ed;process['stderr'][_0x32d754(0xf1)](_0x2b5afb+'\x0a');}function a116_0x41af(){var _0x3a3f40=['102326PNiCcC','1410027ogHsEv','11yhCyzd','498PWFvgq','323516VYwoWa','88LMfEmv','11855ZnOisD','2jdzgAf','write','5865896SBCLdr','18777970xURrFM','2680038APuxxt'];a116_0x41af=function(){return _0x3a3f40;};return a116_0x41af();}
1
+ function a116_0x2bf6(_0x44974b,_0x1a2cb4){_0x44974b=_0x44974b-0xf8;var _0x46e6aa=a116_0x46e6();var _0x2bf6b0=_0x46e6aa[_0x44974b];return _0x2bf6b0;}function a116_0x46e6(){var _0x5dbfb3=['101439eYKabZ','stderr','1172574USjDcv','write','19148uSXMnj','2950800XfoEPT','74343tjsgNC','547425TTFecd','1332373UYWfma','16usZSuO','2xDmJaA','75IjjYjn'];a116_0x46e6=function(){return _0x5dbfb3;};return a116_0x46e6();}(function(_0x42a858,_0x2c8e5a){var _0x2a9145=a116_0x2bf6,_0x5a687f=_0x42a858();while(!![]){try{var _0x54d659=-parseInt(_0x2a9145(0x103))/0x1*(-parseInt(_0x2a9145(0xfb))/0x2)+parseInt(_0x2a9145(0xf8))/0x3+-parseInt(_0x2a9145(0x101))/0x4*(parseInt(_0x2a9145(0xfc))/0x5)+-parseInt(_0x2a9145(0xff))/0x6+-parseInt(_0x2a9145(0xf9))/0x7+parseInt(_0x2a9145(0xfa))/0x8*(parseInt(_0x2a9145(0xfd))/0x9)+parseInt(_0x2a9145(0x102))/0xa;if(_0x54d659===_0x2c8e5a)break;else _0x5a687f['push'](_0x5a687f['shift']());}catch(_0x1b705a){_0x5a687f['push'](_0x5a687f['shift']());}}}(a116_0x46e6,0x1c883));export function writeCliSideChannelLine(_0x4e33cf){var _0x5db7cc=a116_0x2bf6;process[_0x5db7cc(0xfe)][_0x5db7cc(0x100)](_0x4e33cf+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.8",
3
+ "version": "2.1.9-beta.2",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",