@lovrabet/lovrabet-cli 2.1.7 → 2.1.8-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 -0
  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 -0
  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 -0
  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 -0
  51. package/lib/commands/skill/push-flow-helpers.js +1 -0
  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(_0x11b97e,_0x29e4dc){const _0x3dcca0=a103_0x3bf6,_0x233d5d=_0x11b97e();while(!![]){try{const _0x360ecf=-parseInt(_0x3dcca0(0x7c))/0x1+-parseInt(_0x3dcca0(0x98))/0x2*(parseInt(_0x3dcca0(0x73))/0x3)+-parseInt(_0x3dcca0(0x8f))/0x4+-parseInt(_0x3dcca0(0x7e))/0x5*(parseInt(_0x3dcca0(0x87))/0x6)+parseInt(_0x3dcca0(0x76))/0x7*(parseInt(_0x3dcca0(0x96))/0x8)+-parseInt(_0x3dcca0(0x79))/0x9*(-parseInt(_0x3dcca0(0x86))/0xa)+parseInt(_0x3dcca0(0x92))/0xb*(parseInt(_0x3dcca0(0x82))/0xc);if(_0x360ecf===_0x29e4dc)break;else _0x233d5d['push'](_0x233d5d['shift']());}catch(_0x3f8c62){_0x233d5d['push'](_0x233d5d['shift']());}}}(a103_0x149b,0xaa10c));import{CliErrors}from'../../errors.js';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(_0x3e3e04){const _0x44f07c=a103_0x3bf6,_0x3a48b0=normalizeLocalFiles(_0x3e3e04);if(!_0x3a48b0[_0x44f07c(0x95)](_0x467d25=>_0x467d25[_0x44f07c(0x8b)]===SKILL_FILE))throw CliErrors[_0x44f07c(0x70)](_0x44f07c(0x88)+SKILL_FILE+_0x44f07c(0x6e));const _0xa9a475=localFilesToManifestFiles(_0x3a48b0),_0x1d2420=createDeterministicZipPackage(_0x3a48b0);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0xa9a475),'zipSha256':bufferSha256(_0x1d2420),'zipSize':_0x1d2420[_0x44f07c(0x97)],'files':_0xa9a475},'packageBytes':_0x1d2420,'packageBase64':_0x1d2420[_0x44f07c(0x7a)](_0x44f07c(0x90))};}export function verifyRuntimeSkillPackage(_0x4600b5,_0x22096b){const _0x5d09a5=a103_0x3bf6,_0xdd8863=normalizePackageManifest(_0x4600b5,{'requireOssPath':![]});if(!_0xdd8863)throw CliErrors[_0x5d09a5(0x70)](_0x5d09a5(0x7f));return extractAndVerifyPackage(_0xdd8863,_0x22096b);}function a103_0x3bf6(_0x5d5b19,_0x2e612e){_0x5d5b19=_0x5d5b19-0x6c;const _0x149bbf=a103_0x149b();let _0x3bf6e6=_0x149bbf[_0x5d5b19];return _0x3bf6e6;}export function verifyRuntimeSkillBundle(_0x53accd,_0x407991){const _0x2a096e=a103_0x3bf6,_0x384215=normalizePackageManifest(_0x53accd,{'requireOssPath':![]});if(!_0x384215)throw CliErrors[_0x2a096e(0x70)](_0x2a096e(0x7f));return extractAndVerifyPackageFiles(_0x384215,_0x407991);}export function tryNormalizePackageManifest(_0x5994b0){return normalizePackageManifest(_0x5994b0,{'requireOssPath':![]});}export function requirePackageBytes(_0x2123a2,_0x301157){const _0xf40a6e=a103_0x3bf6;if(!_0x301157||_0x301157[_0xf40a6e(0x97)]===0x0)throw CliErrors[_0xf40a6e(0x70)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x2123a2);return _0x301157;}export function extractDownloadedPackage(_0x5f35ae){const _0x53e5d3=a103_0x3bf6,_0x46a92a=parseZipPackage(_0x5f35ae)[_0x53e5d3(0x8a)](_0x5dc152=>({'path':_0x5dc152[_0x53e5d3(0x8b)],'bytes':_0x5dc152[_0x53e5d3(0x93)]}));if(!_0x46a92a['some'](_0x54fee0=>_0x54fee0['path']===SKILL_FILE))throw CliErrors[_0x53e5d3(0x70)](_0x53e5d3(0x83)+SKILL_FILE+'.');return normalizeLocalFiles(_0x46a92a);}function a103_0x149b(){const _0x4d5699=['393390AtrUYh','get','260azFmND','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','treeSha256','isSafeInteger','660456SBPUZJ','Runtime\x20Skill\x20package\x20is\x20missing\x20','sha256','string','1210aSfKiB','95130NyZSuP','Missing\x20','trim','map','path','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','3260228xHnAER','base64','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','352hUVbnN','bytes','schemaVersion','some','8twYEQg','length','14CppOLp','set','requireOssPath','zipSize','Duplicate\x20Skill\x20package\x20entry:\x20','\x20in\x20Skill\x20file\x20package.','isArray','validation','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','ossPath','315303JWvUvI','files','has','8286649KzpDPT','push','zipSha256','38691FXUVwi','toString','toLowerCase'];a103_0x149b=function(){return _0x4d5699;};return a103_0x149b();}export function localFilesToManifestFiles(_0x1a886d){const _0x8e69f1=a103_0x3bf6;return normalizeLocalFiles(_0x1a886d)[_0x8e69f1(0x8a)](_0x225015=>({'path':_0x225015['path'],'sha256':fileHash(_0x225015),'size':fileContent(_0x225015)[_0x8e69f1(0x97)]}));}function normalizePackageManifest(_0x3d4e64,_0x4a70d8){const _0x2218a4=a103_0x3bf6;if(!_0x3d4e64||typeof _0x3d4e64!=='object'||Array[_0x2218a4(0x6f)](_0x3d4e64))return undefined;const _0x1940f4=_0x3d4e64,_0x4728d1=typeof _0x1940f4[_0x2218a4(0x72)]===_0x2218a4(0x85)?_0x1940f4[_0x2218a4(0x72)][_0x2218a4(0x89)]():undefined;if(_0x4a70d8[_0x2218a4(0x9a)]&&!_0x4728d1)return undefined;if(!Array[_0x2218a4(0x6f)](_0x1940f4[_0x2218a4(0x74)])||_0x1940f4[_0x2218a4(0x74)][_0x2218a4(0x97)]===0x0)return undefined;if(!isSha256Hex(_0x1940f4[_0x2218a4(0x80)]))throw CliErrors[_0x2218a4(0x70)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x1940f4[_0x2218a4(0x78)]))throw CliErrors[_0x2218a4(0x70)](_0x2218a4(0x71));if(!Number['isSafeInteger'](_0x1940f4[_0x2218a4(0x6c)])||_0x1940f4[_0x2218a4(0x6c)]<0x0)throw CliErrors[_0x2218a4(0x70)](_0x2218a4(0x8e));const _0x2337dc=normalizeManifestFiles(_0x1940f4[_0x2218a4(0x74)]);if(!_0x2337dc['some'](_0x1ed8a7=>_0x1ed8a7[_0x2218a4(0x8b)]===SKILL_FILE))throw CliErrors[_0x2218a4(0x70)](_0x2218a4(0x8c)+SKILL_FILE+'.');const _0x25a920=fileTreeHash(_0x2337dc);if(_0x25a920!==_0x1940f4[_0x2218a4(0x80)][_0x2218a4(0x7b)]())throw CliErrors[_0x2218a4(0x70)](_0x2218a4(0x8d));return{'schemaVersion':Number[_0x2218a4(0x81)](_0x1940f4[_0x2218a4(0x94)])?_0x1940f4[_0x2218a4(0x94)]:0x2,'ossPath':_0x4728d1,'treeSha256':_0x25a920,'zipSha256':_0x1940f4['zipSha256'][_0x2218a4(0x7b)](),'zipSize':_0x1940f4['zipSize'],'files':_0x2337dc};}function extractAndVerifyPackage(_0x2ea617,_0x4b7a14){const _0x5e4b5f=a103_0x3bf6,_0x31a188=normalizePackageManifest(_0x2ea617,{'requireOssPath':![]});if(!_0x31a188)throw CliErrors[_0x5e4b5f(0x70)](_0x5e4b5f(0x7f));if(_0x4b7a14[_0x5e4b5f(0x97)]!==_0x31a188[_0x5e4b5f(0x6c)])throw CliErrors[_0x5e4b5f(0x70)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x461979=bufferSha256(_0x4b7a14);if(_0x461979!==_0x31a188[_0x5e4b5f(0x78)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x31a188,_0x4b7a14);}function extractAndVerifyPackageFiles(_0x1c82cc,_0x38a747){const _0x3a8bdc=a103_0x3bf6,_0x419fc4=parseZipPackage(_0x38a747);if(_0x419fc4['length']!==_0x1c82cc['files'][_0x3a8bdc(0x97)])throw CliErrors[_0x3a8bdc(0x70)]('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x3f77e5=new Map();for(const _0x58a51f of _0x419fc4){if(_0x3f77e5[_0x3a8bdc(0x75)](_0x58a51f['path']))throw CliErrors['validation'](_0x3a8bdc(0x6d)+_0x58a51f[_0x3a8bdc(0x8b)]);_0x3f77e5[_0x3a8bdc(0x99)](_0x58a51f['path'],_0x58a51f);}const _0x2fb132=[];for(const _0x1a6ba4 of _0x1c82cc[_0x3a8bdc(0x74)]){const _0x43db0c=_0x3f77e5[_0x3a8bdc(0x7d)](_0x1a6ba4['path']);if(!_0x43db0c)throw CliErrors['validation'](_0x3a8bdc(0x91)+_0x1a6ba4[_0x3a8bdc(0x8b)]);if(_0x43db0c[_0x3a8bdc(0x93)][_0x3a8bdc(0x97)]!==_0x1a6ba4['size'])throw CliErrors[_0x3a8bdc(0x70)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x1a6ba4[_0x3a8bdc(0x8b)]);const _0x8af72c=bufferSha256(_0x43db0c[_0x3a8bdc(0x93)]);if(_0x8af72c!==_0x1a6ba4[_0x3a8bdc(0x84)])throw CliErrors[_0x3a8bdc(0x70)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x1a6ba4[_0x3a8bdc(0x8b)]);_0x2fb132[_0x3a8bdc(0x77)]({'path':_0x1a6ba4['path'],'bytes':_0x43db0c[_0x3a8bdc(0x93)]});}return normalizeLocalFiles(_0x2fb132);}
1
+ function a108_0x4307(){const _0x5484a7=['bytes','has','get','250484CaEjaC','5Yugzxr','toString','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','trim','612296JLdwfJ','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','push','map','treeSha256','142zFBvUR','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','3573xuuThU','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','11InLXXr','string','Missing\x20','some','139128xOSmDJ','path','zipSize','files','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','8043ZxMuBe','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','requireOssPath','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','size','isSafeInteger','zipSha256','1370540OkyUIW','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','1306501FsVpkB','sha256','isArray','object','schemaVersion','\x20in\x20Skill\x20file\x20package.','toLowerCase','ossPath','length','960LwXQzI','set','validation','Runtime\x20Skill\x20package\x20size\x20mismatch.'];a108_0x4307=function(){return _0x5484a7;};return a108_0x4307();}(function(_0x4a1692,_0x53dcdd){const _0x2dbc6e=a108_0x35be,_0xcd05ea=_0x4a1692();while(!![]){try{const _0x5038d8=parseInt(_0x2dbc6e(0x14c))/0x1+parseInt(_0x2dbc6e(0x156))/0x2*(-parseInt(_0x2dbc6e(0x163))/0x3)+parseInt(_0x2dbc6e(0x151))/0x4*(parseInt(_0x2dbc6e(0x14d))/0x5)+parseInt(_0x2dbc6e(0x15e))/0x6+parseInt(_0x2dbc6e(0x16e))/0x7+parseInt(_0x2dbc6e(0x145))/0x8*(-parseInt(_0x2dbc6e(0x158))/0x9)+-parseInt(_0x2dbc6e(0x16b))/0xa*(parseInt(_0x2dbc6e(0x15a))/0xb);if(_0x5038d8===_0x53dcdd)break;else _0xcd05ea['push'](_0xcd05ea['shift']());}catch(_0x497051){_0xcd05ea['push'](_0xcd05ea['shift']());}}}(a108_0x4307,0x3a308));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a108_0x35be(_0x5d0edc,_0x11ab04){_0x5d0edc=_0x5d0edc-0x13d;const _0x43078d=a108_0x4307();let _0x35be50=_0x43078d[_0x5d0edc];return _0x35be50;}import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x12622c){const _0x22ea98=a108_0x35be,_0x2aca72=normalizeLocalFiles(_0x12622c);if(!_0x2aca72['some'](_0x1efaf8=>_0x1efaf8[_0x22ea98(0x15f)]===SKILL_FILE))throw CliErrors[_0x22ea98(0x147)](_0x22ea98(0x15c)+SKILL_FILE+_0x22ea98(0x141));const _0x5c29a6=localFilesToManifestFiles(_0x2aca72),_0x4287fd=createDeterministicZipPackage(_0x2aca72);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x5c29a6),'zipSha256':bufferSha256(_0x4287fd),'zipSize':_0x4287fd[_0x22ea98(0x144)],'files':_0x5c29a6},'packageBytes':_0x4287fd,'packageBase64':_0x4287fd[_0x22ea98(0x14e)]('base64')};}export function verifyRuntimeSkillPackage(_0x5cbf16,_0x211a61){const _0x59338c=a108_0x35be,_0xe77bdc=normalizePackageManifest(_0x5cbf16,{'requireOssPath':![]});if(!_0xe77bdc)throw CliErrors[_0x59338c(0x147)](_0x59338c(0x165));return extractAndVerifyPackage(_0xe77bdc,_0x211a61);}export function verifyRuntimeSkillBundle(_0x1bb396,_0xf66c5f){const _0x454a5e=a108_0x35be,_0x4239cc=normalizePackageManifest(_0x1bb396,{'requireOssPath':![]});if(!_0x4239cc)throw CliErrors[_0x454a5e(0x147)](_0x454a5e(0x165));return extractAndVerifyPackageFiles(_0x4239cc,_0xf66c5f);}export function tryNormalizePackageManifest(_0x2c23ad){return normalizePackageManifest(_0x2c23ad,{'requireOssPath':![]});}export function requirePackageBytes(_0x3287f7,_0x3bbc6c){const _0x136f04=a108_0x35be;if(!_0x3bbc6c||_0x3bbc6c[_0x136f04(0x144)]===0x0)throw CliErrors['validation'](_0x136f04(0x159)+_0x3287f7);return _0x3bbc6c;}export function extractDownloadedPackage(_0x1ce7bc){const _0x1ebf63=a108_0x35be,_0x144769=parseZipPackage(_0x1ce7bc)[_0x1ebf63(0x154)](_0x415d06=>({'path':_0x415d06[_0x1ebf63(0x15f)],'bytes':_0x415d06[_0x1ebf63(0x149)]}));if(!_0x144769[_0x1ebf63(0x15d)](_0x4a168e=>_0x4a168e[_0x1ebf63(0x15f)]===SKILL_FILE))throw CliErrors[_0x1ebf63(0x147)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+'.');return normalizeLocalFiles(_0x144769);}export function localFilesToManifestFiles(_0x1e1890){const _0x49e03d=a108_0x35be;return normalizeLocalFiles(_0x1e1890)[_0x49e03d(0x154)](_0x30b84c=>({'path':_0x30b84c[_0x49e03d(0x15f)],'sha256':fileHash(_0x30b84c),'size':fileContent(_0x30b84c)[_0x49e03d(0x144)]}));}function normalizePackageManifest(_0x54c255,_0x56f8be){const _0x60be0b=a108_0x35be;if(!_0x54c255||typeof _0x54c255!==_0x60be0b(0x13f)||Array[_0x60be0b(0x13e)](_0x54c255))return undefined;const _0x57cc5e=_0x54c255,_0x2b9d58=typeof _0x57cc5e[_0x60be0b(0x143)]===_0x60be0b(0x15b)?_0x57cc5e[_0x60be0b(0x143)][_0x60be0b(0x150)]():undefined;if(_0x56f8be[_0x60be0b(0x166)]&&!_0x2b9d58)return undefined;if(!Array[_0x60be0b(0x13e)](_0x57cc5e[_0x60be0b(0x161)])||_0x57cc5e[_0x60be0b(0x161)]['length']===0x0)return undefined;if(!isSha256Hex(_0x57cc5e[_0x60be0b(0x155)]))throw CliErrors[_0x60be0b(0x147)](_0x60be0b(0x152));if(!isSha256Hex(_0x57cc5e['zipSha256']))throw CliErrors[_0x60be0b(0x147)](_0x60be0b(0x167));if(!Number[_0x60be0b(0x169)](_0x57cc5e[_0x60be0b(0x160)])||_0x57cc5e['zipSize']<0x0)throw CliErrors[_0x60be0b(0x147)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x545a94=normalizeManifestFiles(_0x57cc5e[_0x60be0b(0x161)]);if(!_0x545a94[_0x60be0b(0x15d)](_0x520fc6=>_0x520fc6['path']===SKILL_FILE))throw CliErrors[_0x60be0b(0x147)](_0x60be0b(0x157)+SKILL_FILE+'.');const _0x18f82d=fileTreeHash(_0x545a94);if(_0x18f82d!==_0x57cc5e[_0x60be0b(0x155)][_0x60be0b(0x142)]())throw CliErrors[_0x60be0b(0x147)](_0x60be0b(0x14f));return{'schemaVersion':Number[_0x60be0b(0x169)](_0x57cc5e[_0x60be0b(0x140)])?_0x57cc5e[_0x60be0b(0x140)]:0x2,'ossPath':_0x2b9d58,'treeSha256':_0x18f82d,'zipSha256':_0x57cc5e[_0x60be0b(0x16a)]['toLowerCase'](),'zipSize':_0x57cc5e[_0x60be0b(0x160)],'files':_0x545a94};}function extractAndVerifyPackage(_0x304280,_0x7bd889){const _0xc58074=a108_0x35be,_0x42c2f6=normalizePackageManifest(_0x304280,{'requireOssPath':![]});if(!_0x42c2f6)throw CliErrors['validation'](_0xc58074(0x165));if(_0x7bd889[_0xc58074(0x144)]!==_0x42c2f6[_0xc58074(0x160)])throw CliErrors[_0xc58074(0x147)](_0xc58074(0x148));const _0x507109=bufferSha256(_0x7bd889);if(_0x507109!==_0x42c2f6[_0xc58074(0x16a)])throw CliErrors[_0xc58074(0x147)](_0xc58074(0x164));return extractAndVerifyPackageFiles(_0x42c2f6,_0x7bd889);}function extractAndVerifyPackageFiles(_0x3cb98b,_0x4ab58c){const _0x16b968=a108_0x35be,_0x558a0a=parseZipPackage(_0x4ab58c);if(_0x558a0a[_0x16b968(0x144)]!==_0x3cb98b[_0x16b968(0x161)][_0x16b968(0x144)])throw CliErrors[_0x16b968(0x147)](_0x16b968(0x16d));const _0x41ce9b=new Map();for(const _0xf63fc6 of _0x558a0a){if(_0x41ce9b[_0x16b968(0x14a)](_0xf63fc6[_0x16b968(0x15f)]))throw CliErrors[_0x16b968(0x147)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0xf63fc6[_0x16b968(0x15f)]);_0x41ce9b[_0x16b968(0x146)](_0xf63fc6[_0x16b968(0x15f)],_0xf63fc6);}const _0x57aae5=[];for(const _0x5d5144 of _0x3cb98b[_0x16b968(0x161)]){const _0x310910=_0x41ce9b[_0x16b968(0x14b)](_0x5d5144[_0x16b968(0x15f)]);if(!_0x310910)throw CliErrors[_0x16b968(0x147)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x5d5144[_0x16b968(0x15f)]);if(_0x310910[_0x16b968(0x149)][_0x16b968(0x144)]!==_0x5d5144[_0x16b968(0x168)])throw CliErrors[_0x16b968(0x147)](_0x16b968(0x162)+_0x5d5144[_0x16b968(0x15f)]);const _0x4e4024=bufferSha256(_0x310910[_0x16b968(0x149)]);if(_0x4e4024!==_0x5d5144[_0x16b968(0x13d)])throw CliErrors['validation'](_0x16b968(0x16c)+_0x5d5144[_0x16b968(0x15f)]);_0x57aae5[_0x16b968(0x153)]({'path':_0x5d5144[_0x16b968(0x15f)],'bytes':_0x310910[_0x16b968(0x149)]});}return normalizeLocalFiles(_0x57aae5);}
@@ -1 +1 @@
1
- (function(_0x29506d,_0x2e1cfd){var _0x1c27c1=a104_0x2278,_0x459ca9=_0x29506d();while(!![]){try{var _0x288d74=parseInt(_0x1c27c1(0x144))/0x1*(-parseInt(_0x1c27c1(0x147))/0x2)+-parseInt(_0x1c27c1(0x140))/0x3*(parseInt(_0x1c27c1(0x148))/0x4)+-parseInt(_0x1c27c1(0x145))/0x5+parseInt(_0x1c27c1(0x146))/0x6+-parseInt(_0x1c27c1(0x142))/0x7*(parseInt(_0x1c27c1(0x13e))/0x8)+parseInt(_0x1c27c1(0x141))/0x9+parseInt(_0x1c27c1(0x13f))/0xa*(parseInt(_0x1c27c1(0x143))/0xb);if(_0x288d74===_0x2e1cfd)break;else _0x459ca9['push'](_0x459ca9['shift']());}catch(_0x3fdf8c){_0x459ca9['push'](_0x459ca9['shift']());}}}(a104_0x3039,0xa72d6));function a104_0x3039(){var _0x11f62f=['6895812tLVNZY','2JprjJr','1052YUVZGn','15608DFVIGZ','3783930DkBnAa','8304zRldrJ','4604067ouJKXp','2443MRIubU','77xLllfC','1100789sXYLTA','5575930RIdeXE'];a104_0x3039=function(){return _0x11f62f;};return a104_0x3039();}export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';function a104_0x2278(_0x41ba01,_0x336da0){_0x41ba01=_0x41ba01-0x13e;var _0x3039d3=a104_0x3039();var _0x2278bd=_0x3039d3[_0x41ba01];return _0x2278bd;}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';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';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ function a109_0x46a6(_0x13f5a7,_0x413a93){_0x13f5a7=_0x13f5a7-0x141;var _0x4a49be=a109_0x4a49();var _0x46a6e2=_0x4a49be[_0x13f5a7];return _0x46a6e2;}(function(_0x1d4b1f,_0x1aaa99){var _0x4c9acc=a109_0x46a6,_0x288112=_0x1d4b1f();while(!![]){try{var _0x2718ae=parseInt(_0x4c9acc(0x145))/0x1*(parseInt(_0x4c9acc(0x146))/0x2)+-parseInt(_0x4c9acc(0x148))/0x3+-parseInt(_0x4c9acc(0x14a))/0x4*(parseInt(_0x4c9acc(0x144))/0x5)+-parseInt(_0x4c9acc(0x143))/0x6+-parseInt(_0x4c9acc(0x142))/0x7*(parseInt(_0x4c9acc(0x141))/0x8)+parseInt(_0x4c9acc(0x14b))/0x9*(parseInt(_0x4c9acc(0x147))/0xa)+parseInt(_0x4c9acc(0x149))/0xb;if(_0x2718ae===_0x1aaa99)break;else _0x288112['push'](_0x288112['shift']());}catch(_0x5590b3){_0x288112['push'](_0x288112['shift']());}}}(a109_0x4a49,0xab902));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';function a109_0x4a49(){var _0x14ef48=['5245416bnDCmR','2058715zHKWMm','544dYiutk','3776ZKaexJ','30UEDkTH','2970015CzYjcs','22468754RwaNNL','4OsNQXC','1610127NvdkWU','5021512gJKETO','7xOViAy'];a109_0x4a49=function(){return _0x14ef48;};return a109_0x4a49();}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';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- function a105_0x74ca(){const _0x7a6382=['333254NgcGou','578277ulnsUb','2395045IUEzrK','7082614aXilSo','3JoVVkG','976812hEFbzG','5264360yJbTkp','460nsKRBJ','770433TTKkvO','16KjItle'];a105_0x74ca=function(){return _0x7a6382;};return a105_0x74ca();}(function(_0x231c6b,_0x54c6e2){const _0x58dccd=a105_0x3be8,_0x28cdf9=_0x231c6b();while(!![]){try{const _0x57593f=parseInt(_0x58dccd(0x1d3))/0x1*(parseInt(_0x58dccd(0x1cf))/0x2)+-parseInt(_0x58dccd(0x1cd))/0x3*(-parseInt(_0x58dccd(0x1ce))/0x4)+parseInt(_0x58dccd(0x1d1))/0x5+-parseInt(_0x58dccd(0x1ca))/0x6+parseInt(_0x58dccd(0x1d2))/0x7+parseInt(_0x58dccd(0x1cb))/0x8+parseInt(_0x58dccd(0x1d0))/0x9*(-parseInt(_0x58dccd(0x1cc))/0xa);if(_0x57593f===_0x54c6e2)break;else _0x28cdf9['push'](_0x28cdf9['shift']());}catch(_0x2548df){_0x28cdf9['push'](_0x28cdf9['shift']());}}}(a105_0x74ca,0x881e5));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a105_0x3be8(_0x1b567d,_0x2954f4){_0x1b567d=_0x1b567d-0x1ca;const _0x74ca38=a105_0x74ca();let _0x3be80f=_0x74ca38[_0x1b567d];return _0x3be80f;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a110_0x130d(_0x5cf56c,_0x4a13d4){_0x5cf56c=_0x5cf56c-0x135;const _0x4feff0=a110_0x4fef();let _0x130d66=_0x4feff0[_0x5cf56c];return _0x130d66;}(function(_0x4994a2,_0x40fbeb){const _0x8419ca=a110_0x130d,_0x325858=_0x4994a2();while(!![]){try{const _0x5da449=-parseInt(_0x8419ca(0x138))/0x1+-parseInt(_0x8419ca(0x139))/0x2+parseInt(_0x8419ca(0x13f))/0x3*(-parseInt(_0x8419ca(0x13d))/0x4)+parseInt(_0x8419ca(0x13b))/0x5+-parseInt(_0x8419ca(0x13c))/0x6*(-parseInt(_0x8419ca(0x13a))/0x7)+parseInt(_0x8419ca(0x13e))/0x8*(parseInt(_0x8419ca(0x136))/0x9)+-parseInt(_0x8419ca(0x137))/0xa*(parseInt(_0x8419ca(0x135))/0xb);if(_0x5da449===_0x40fbeb)break;else _0x325858['push'](_0x325858['shift']());}catch(_0x3a03de){_0x325858['push'](_0x325858['shift']());}}}(a110_0x4fef,0xec671));function a110_0x4fef(){const _0x5ee56f=['2116BksDsr','264liZQfY','2469urkxKz','55luWdsD','144423LoXNWL','197740ZTXsIK','114990woRizM','3331748TaPMli','1414vSTJhy','5676145uGRQLb','48078LHIvPp'];a110_0x4fef=function(){return _0x5ee56f;};return a110_0x4fef();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a106_0x6f0108=a106_0x3e24;function a106_0x3e24(_0x378e4f,_0x26a9fa){_0x378e4f=_0x378e4f-0x103;const _0x222979=a106_0x2229();let _0x3e240a=_0x222979[_0x378e4f];return _0x3e240a;}(function(_0x49bb79,_0x3a2ca9){const _0x264edc=a106_0x3e24,_0xea9059=_0x49bb79();while(!![]){try{const _0x6d30dc=-parseInt(_0x264edc(0x105))/0x1+parseInt(_0x264edc(0x125))/0x2*(-parseInt(_0x264edc(0x108))/0x3)+-parseInt(_0x264edc(0x136))/0x4+-parseInt(_0x264edc(0x131))/0x5*(parseInt(_0x264edc(0x124))/0x6)+-parseInt(_0x264edc(0x11a))/0x7*(parseInt(_0x264edc(0x120))/0x8)+parseInt(_0x264edc(0x121))/0x9*(parseInt(_0x264edc(0x12a))/0xa)+parseInt(_0x264edc(0x12b))/0xb;if(_0x6d30dc===_0x3a2ca9)break;else _0xea9059['push'](_0xea9059['shift']());}catch(_0x21f05e){_0xea9059['push'](_0xea9059['shift']());}}}(a106_0x2229,0xb7831));import a106_0x10d270 from'winston';import a106_0xf5c341 from'node:fs';import a106_0x5e0c7a from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a106_0x2229(){const _0x3da76b=['filter','warn','split','clear','15232LvVljf','mkdirSync','getWinstonInstance','readLogs','timestamp','map','184evEmaW','9SaUtkd','logFilePath','printf','503310edWpWK','2835354JWnIOZ','transports','Completed:\x20','utf8','toISOString','7023470SDnbAm','48821014aSRJMF','currentRawCommand','rawCommand','existsSync','duration','log','15REJCDy','error','parse','info','format','5512760uIoHHr','logTask','message','Failed\x20to\x20read\x20logs:','clearLogs','1291386PsnszL','Failed:\x20','green','3LuofNS','setRawCommand','trim','command','success','createLogger','winstonLogger','level','details','stringify','yellow','addColors','now','setLogPath'];a106_0x2229=function(){return _0x3da76b;};return a106_0x2229();}class Logger{[a106_0x6f0108(0x10e)];[a106_0x6f0108(0x122)]='';[a106_0x6f0108(0x12c)]='';constructor(){}[a106_0x6f0108(0x109)](_0x2fb34c){const _0xc8fda3=a106_0x6f0108;this[_0xc8fda3(0x12c)]=_0x2fb34c;}[a106_0x6f0108(0x115)](_0x4c83cb){const _0x27a56d=a106_0x6f0108;this[_0x27a56d(0x122)]=a106_0x5e0c7a['join'](_0x4c83cb,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this[_0x27a56d(0x10e)][_0x27a56d(0x119)](),this['initWinstonLogger']();}['initWinstonLogger'](){const _0x266b35=a106_0x6f0108,_0x3ff253=a106_0x5e0c7a['dirname'](this[_0x266b35(0x122)]);!a106_0xf5c341[_0x266b35(0x12e)](_0x3ff253)&&a106_0xf5c341[_0x266b35(0x11b)](_0x3ff253,{'recursive':!![]});const _0x2f6cb6=a106_0x10d270[_0x266b35(0x135)]['combine'](a106_0x10d270[_0x266b35(0x135)][_0x266b35(0x11e)](),a106_0x10d270['format']['errors']({'stack':!![]}),a106_0x10d270[_0x266b35(0x135)][_0x266b35(0x123)](_0x401ea0=>{const _0x506e35=_0x266b35,_0x1758f8={'timestamp':_0x401ea0[_0x506e35(0x11e)]||new Date()[_0x506e35(0x129)](),'level':_0x401ea0[_0x506e35(0x10f)]||'info','command':_0x401ea0[_0x506e35(0x10b)]||'unknown','rawCommand':_0x401ea0[_0x506e35(0x12d)]||this[_0x506e35(0x12c)]||undefined,'message':_0x401ea0[_0x506e35(0x138)]||'','duration':_0x401ea0[_0x506e35(0x12f)]||undefined,'details':_0x401ea0[_0x506e35(0x110)]||undefined};return JSON[_0x506e35(0x111)](_0x1758f8);}));this[_0x266b35(0x10e)]=a106_0x10d270[_0x266b35(0x10d)]({'level':_0x266b35(0x134),'format':_0x2f6cb6,'transports':[new a106_0x10d270[(_0x266b35(0x126))]['File']({'filename':this['logFilePath'],'level':_0x266b35(0x134)})],'silent':![]}),a106_0x10d270[_0x266b35(0x113)]({'success':_0x266b35(0x107),'error':'red','warn':_0x266b35(0x112),'info':'blue'});}[a106_0x6f0108(0x134)](_0x38b21f,_0x34619e,_0x591e67){const _0x319edc=a106_0x6f0108;if(!this[_0x319edc(0x122)]||!this[_0x319edc(0x10e)])return;this[_0x319edc(0x10e)][_0x319edc(0x134)](_0x34619e,{'command':_0x38b21f,'details':_0x591e67});}[a106_0x6f0108(0x10c)](_0x2ea9f9,_0x4ee39f,_0x3543a9,_0x2ad3db){const _0x1fbfd2=a106_0x6f0108;if(!this[_0x1fbfd2(0x122)]||!this[_0x1fbfd2(0x10e)])return;this[_0x1fbfd2(0x10e)][_0x1fbfd2(0x130)](_0x1fbfd2(0x134),_0x4ee39f,{'level':_0x1fbfd2(0x10c),'command':_0x2ea9f9,'duration':_0x3543a9,'details':_0x2ad3db});}[a106_0x6f0108(0x132)](_0x218327,_0x2eda96,_0x1fb63f){const _0x6f4b30=a106_0x6f0108;if(!this['logFilePath']||!this[_0x6f4b30(0x10e)])return;this[_0x6f4b30(0x10e)][_0x6f4b30(0x132)](_0x2eda96,{'command':_0x218327,'details':_0x1fb63f});}[a106_0x6f0108(0x117)](_0x85870c,_0x536e58,_0x235b72){const _0x2c267c=a106_0x6f0108;if(!this[_0x2c267c(0x122)]||!this[_0x2c267c(0x10e)])return;this[_0x2c267c(0x10e)][_0x2c267c(0x117)](_0x536e58,{'command':_0x85870c,'details':_0x235b72});}async[a106_0x6f0108(0x137)](_0x4058f4,_0x69484,_0x3a4321){const _0x4025b1=a106_0x6f0108,_0x173cd8=Date[_0x4025b1(0x114)]();this[_0x4025b1(0x134)](_0x4058f4,'Starting:\x20'+_0x69484);try{const _0x3836c7=await _0x3a4321(),_0x536bac=Date[_0x4025b1(0x114)]()-_0x173cd8;return this[_0x4025b1(0x10c)](_0x4058f4,_0x4025b1(0x127)+_0x69484,_0x536bac),_0x3836c7;}catch(_0x3188ab){const _0x1ff629=Date[_0x4025b1(0x114)]()-_0x173cd8;this['error'](_0x4058f4,_0x4025b1(0x106)+_0x69484,{'error':_0x3188ab instanceof Error?_0x3188ab[_0x4025b1(0x138)]:String(_0x3188ab),'duration':_0x1ff629});throw _0x3188ab;}}[a106_0x6f0108(0x11d)](){const _0x1e8a97=a106_0x6f0108;try{if(!a106_0xf5c341[_0x1e8a97(0x12e)](this[_0x1e8a97(0x122)]))return[];const _0x174c32=a106_0xf5c341['readFileSync'](this[_0x1e8a97(0x122)],_0x1e8a97(0x128));return _0x174c32[_0x1e8a97(0x118)](/\r?\n/)[_0x1e8a97(0x116)](_0x7b6ed7=>_0x7b6ed7[_0x1e8a97(0x10a)]())[_0x1e8a97(0x11f)](_0xf264a1=>JSON[_0x1e8a97(0x133)](_0xf264a1));}catch(_0x2dae7b){return console[_0x1e8a97(0x117)](_0x1e8a97(0x103),_0x2dae7b),[];}}[a106_0x6f0108(0x104)](){const _0x3e1527=a106_0x6f0108;try{a106_0xf5c341['existsSync'](this['logFilePath'])&&a106_0xf5c341['writeFileSync'](this[_0x3e1527(0x122)],'','utf8');}catch(_0x98b73c){console[_0x3e1527(0x117)]('Failed\x20to\x20clear\x20logs:',_0x98b73c);}}[a106_0x6f0108(0x11c)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a111_0x4bd4af=a111_0x1b9b;(function(_0x5caa2c,_0x2a6d96){const _0x2450e8=a111_0x1b9b,_0x4158a1=_0x5caa2c();while(!![]){try{const _0x58894c=-parseInt(_0x2450e8(0x1d8))/0x1*(parseInt(_0x2450e8(0x1f5))/0x2)+parseInt(_0x2450e8(0x1d9))/0x3*(-parseInt(_0x2450e8(0x1e3))/0x4)+-parseInt(_0x2450e8(0x1e1))/0x5+parseInt(_0x2450e8(0x1d7))/0x6*(-parseInt(_0x2450e8(0x1ca))/0x7)+-parseInt(_0x2450e8(0x1e5))/0x8*(parseInt(_0x2450e8(0x1e7))/0x9)+-parseInt(_0x2450e8(0x1e0))/0xa+parseInt(_0x2450e8(0x1f4))/0xb*(parseInt(_0x2450e8(0x1c2))/0xc);if(_0x58894c===_0x2a6d96)break;else _0x4158a1['push'](_0x4158a1['shift']());}catch(_0x516f03){_0x4158a1['push'](_0x4158a1['shift']());}}}(a111_0x58b6,0x50879));import a111_0x4f40a2 from'winston';function a111_0x58b6(){const _0x193ddc=['160428NnUXTy','yellow','existsSync','green','map','success','initWinstonLogger','6227000NLcigL','283395TSskqY','logFileName','8HsqoCN','error','789832lMiwpy','writeFileSync','9bNpmLx','now','Completed:\x20','dirname','setLogPath','blue','winstonLogger','log','readFileSync','clear','level','warn','printf','1133hDRAEv','606vvXuFb','Failed\x20to\x20read\x20logs:','getWinstonInstance','message','logTask','filter','mkdirSync','combine','red','230136pUQpjr','stringify','rawCommand','utf8','info','readLogs','File','errors','21KhcdAt','transports','details','join','Failed\x20to\x20clear\x20logs:','format','currentRawCommand','toISOString','logFilePath','clearLogs','command','timestamp','unknown','1223304wmqPdm','491jzVBrP'];a111_0x58b6=function(){return _0x193ddc;};return a111_0x58b6();}import a111_0x142de6 from'node:fs';import a111_0x2eac7b from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];['logFilePath']='';[a111_0x4bd4af(0x1d0)]='';constructor(){}['setRawCommand'](_0x23c0a8){const _0x263348=a111_0x4bd4af;this[_0x263348(0x1d0)]=_0x23c0a8;}[a111_0x4bd4af(0x1eb)](_0x27193f){const _0x2b96ed=a111_0x4bd4af;this[_0x2b96ed(0x1d2)]=a111_0x2eac7b[_0x2b96ed(0x1cd)](_0x27193f,PRODUCT_CONFIG[_0x2b96ed(0x1e2)]),this[_0x2b96ed(0x1ed)]&&this[_0x2b96ed(0x1ed)][_0x2b96ed(0x1f0)](),this[_0x2b96ed(0x1df)]();}[a111_0x4bd4af(0x1df)](){const _0x37c91a=a111_0x4bd4af,_0x516b48=a111_0x2eac7b[_0x37c91a(0x1ea)](this[_0x37c91a(0x1d2)]);!a111_0x142de6[_0x37c91a(0x1db)](_0x516b48)&&a111_0x142de6[_0x37c91a(0x1bf)](_0x516b48,{'recursive':!![]});const _0x4c5671=a111_0x4f40a2[_0x37c91a(0x1cf)][_0x37c91a(0x1c0)](a111_0x4f40a2[_0x37c91a(0x1cf)][_0x37c91a(0x1d5)](),a111_0x4f40a2[_0x37c91a(0x1cf)][_0x37c91a(0x1c9)]({'stack':!![]}),a111_0x4f40a2[_0x37c91a(0x1cf)][_0x37c91a(0x1f3)](_0x3bf22e=>{const _0x290ad5=_0x37c91a,_0x133f09={'timestamp':_0x3bf22e[_0x290ad5(0x1d5)]||new Date()[_0x290ad5(0x1d1)](),'level':_0x3bf22e[_0x290ad5(0x1f1)]||_0x290ad5(0x1c6),'command':_0x3bf22e[_0x290ad5(0x1d4)]||_0x290ad5(0x1d6),'rawCommand':_0x3bf22e[_0x290ad5(0x1c4)]||this[_0x290ad5(0x1d0)]||undefined,'message':_0x3bf22e['message']||'','duration':_0x3bf22e['duration']||undefined,'details':_0x3bf22e[_0x290ad5(0x1cc)]||undefined};return JSON[_0x290ad5(0x1c3)](_0x133f09);}));this[_0x37c91a(0x1ed)]=a111_0x4f40a2['createLogger']({'level':_0x37c91a(0x1c6),'format':_0x4c5671,'transports':[new a111_0x4f40a2[(_0x37c91a(0x1cb))][(_0x37c91a(0x1c8))]({'filename':this['logFilePath'],'level':_0x37c91a(0x1c6)})],'silent':![]}),a111_0x4f40a2['addColors']({'success':_0x37c91a(0x1dc),'error':_0x37c91a(0x1c1),'warn':_0x37c91a(0x1da),'info':_0x37c91a(0x1ec)});}['info'](_0xbc2a11,_0x553a80,_0x39eb3b){const _0x58a829=a111_0x4bd4af;if(!this['logFilePath']||!this[_0x58a829(0x1ed)])return;this[_0x58a829(0x1ed)][_0x58a829(0x1c6)](_0x553a80,{'command':_0xbc2a11,'details':_0x39eb3b});}['success'](_0x2c09f3,_0x12f7f7,_0x9c067c,_0x4a3317){const _0x4c16aa=a111_0x4bd4af;if(!this[_0x4c16aa(0x1d2)]||!this['winstonLogger'])return;this[_0x4c16aa(0x1ed)][_0x4c16aa(0x1ee)](_0x4c16aa(0x1c6),_0x12f7f7,{'level':_0x4c16aa(0x1de),'command':_0x2c09f3,'duration':_0x9c067c,'details':_0x4a3317});}[a111_0x4bd4af(0x1e4)](_0x5ab1f3,_0x180f8c,_0x23e1ad){const _0x1aaa20=a111_0x4bd4af;if(!this['logFilePath']||!this[_0x1aaa20(0x1ed)])return;this[_0x1aaa20(0x1ed)][_0x1aaa20(0x1e4)](_0x180f8c,{'command':_0x5ab1f3,'details':_0x23e1ad});}[a111_0x4bd4af(0x1f2)](_0x408894,_0x369f29,_0x4f3e1d){const _0x3049af=a111_0x4bd4af;if(!this[_0x3049af(0x1d2)]||!this[_0x3049af(0x1ed)])return;this[_0x3049af(0x1ed)][_0x3049af(0x1f2)](_0x369f29,{'command':_0x408894,'details':_0x4f3e1d});}async[a111_0x4bd4af(0x1bd)](_0x21aa50,_0x587ed6,_0x454377){const _0x10fd57=a111_0x4bd4af,_0x4de8c9=Date[_0x10fd57(0x1e8)]();this[_0x10fd57(0x1c6)](_0x21aa50,'Starting:\x20'+_0x587ed6);try{const _0x45014f=await _0x454377(),_0x193be3=Date[_0x10fd57(0x1e8)]()-_0x4de8c9;return this[_0x10fd57(0x1de)](_0x21aa50,_0x10fd57(0x1e9)+_0x587ed6,_0x193be3),_0x45014f;}catch(_0x3ce9b7){const _0x262a92=Date[_0x10fd57(0x1e8)]()-_0x4de8c9;this['error'](_0x21aa50,'Failed:\x20'+_0x587ed6,{'error':_0x3ce9b7 instanceof Error?_0x3ce9b7[_0x10fd57(0x1bc)]:String(_0x3ce9b7),'duration':_0x262a92});throw _0x3ce9b7;}}[a111_0x4bd4af(0x1c7)](){const _0x24bbe4=a111_0x4bd4af;try{if(!a111_0x142de6['existsSync'](this['logFilePath']))return[];const _0x2ac174=a111_0x142de6[_0x24bbe4(0x1ef)](this['logFilePath'],'utf8');return _0x2ac174['split'](/\r?\n/)[_0x24bbe4(0x1be)](_0x26233e=>_0x26233e['trim']())[_0x24bbe4(0x1dd)](_0x2a4a99=>JSON['parse'](_0x2a4a99));}catch(_0x52b26f){return console['warn'](_0x24bbe4(0x1f6),_0x52b26f),[];}}[a111_0x4bd4af(0x1d3)](){const _0x31c653=a111_0x4bd4af;try{a111_0x142de6[_0x31c653(0x1db)](this['logFilePath'])&&a111_0x142de6[_0x31c653(0x1e6)](this[_0x31c653(0x1d2)],'',_0x31c653(0x1c5));}catch(_0x3d0823){console[_0x31c653(0x1f2)](_0x31c653(0x1ce),_0x3d0823);}}[a111_0x4bd4af(0x1f7)](){const _0x2968d4=a111_0x4bd4af;return this[_0x2968d4(0x1ed)];}}function a111_0x1b9b(_0xfdebaf,_0x5999a0){_0xfdebaf=_0xfdebaf-0x1bc;const _0x58b6a2=a111_0x58b6();let _0x1b9bef=_0x58b6a2[_0xfdebaf];return _0x1b9bef;}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x14e897,_0x597478){var _0x27e5d5=a107_0x9878,_0x536c52=_0x14e897();while(!![]){try{var _0x450ca0=parseInt(_0x27e5d5(0xf1))/0x1+-parseInt(_0x27e5d5(0xec))/0x2*(parseInt(_0x27e5d5(0xeb))/0x3)+parseInt(_0x27e5d5(0xfb))/0x4*(-parseInt(_0x27e5d5(0xf9))/0x5)+parseInt(_0x27e5d5(0xf8))/0x6*(-parseInt(_0x27e5d5(0xf2))/0x7)+parseInt(_0x27e5d5(0xf6))/0x8+-parseInt(_0x27e5d5(0xf5))/0x9*(-parseInt(_0x27e5d5(0xf0))/0xa)+parseInt(_0x27e5d5(0xee))/0xb;if(_0x450ca0===_0x597478)break;else _0x536c52['push'](_0x536c52['shift']());}catch(_0x37b64b){_0x536c52['push'](_0x536c52['shift']());}}}(a107_0x2d47,0x28d78));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x712c5d){var _0x202b69=a107_0x9878;if(!_0x712c5d)return undefined;try{return JSON['parse'](_0x712c5d);}catch{throw CliErrors[_0x202b69(0xfa)](_0x202b69(0xf3)+_0x712c5d);}}function a107_0x9878(_0x1f7904,_0x4c5d30){_0x1f7904=_0x1f7904-0xeb;var _0x2d47c0=a107_0x2d47();var _0x98783b=_0x2d47c0[_0x1f7904];return _0x98783b;}export function parseJsonParamsValue(_0x1f4835){var _0x8f2880=a107_0x9878;if(!_0x1f4835)return undefined;try{return JSON[_0x8f2880(0xef)](_0x1f4835);}catch{throw CliErrors[_0x8f2880(0xfa)](_0x8f2880(0xf3)+_0x1f4835);}}export function parseBatchCreateItemsFromParams(_0x16b450){var _0x19b24b=a107_0x9878;if(Array[_0x19b24b(0xf7)](_0x16b450))return _0x16b450;if(_0x16b450!==null&&_0x16b450!==undefined&&typeof _0x16b450===_0x19b24b(0xf4)&&Array[_0x19b24b(0xf7)](_0x16b450['items']))return _0x16b450[_0x19b24b(0xed)];throw CliErrors[_0x19b24b(0xfa)](_0x19b24b(0xfc),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function a107_0x2d47(){var _0x5e07d2=['parse','1311010VemvpY','124720soLdDW','2303FfCcUU','Invalid\x20JSON\x20for\x20--params:\x20','object','9vjDnuX','48544IPpJnK','isArray','978oIDSsO','140jxCAwh','validation','45636zFdLzs','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','228747CapWuL','2OHiprF','items','3901997tOKdnF'];a107_0x2d47=function(){return _0x5e07d2;};return a107_0x2d47();}
1
+ (function(_0x482a38,_0x1e6c18){var _0x313003=a112_0x4cde,_0x590adf=_0x482a38();while(!![]){try{var _0x40e7e7=-parseInt(_0x313003(0xe9))/0x1+-parseInt(_0x313003(0xe7))/0x2+parseInt(_0x313003(0xec))/0x3+-parseInt(_0x313003(0xef))/0x4*(parseInt(_0x313003(0xeb))/0x5)+-parseInt(_0x313003(0xe4))/0x6*(-parseInt(_0x313003(0xdf))/0x7)+-parseInt(_0x313003(0xe2))/0x8*(-parseInt(_0x313003(0xe8))/0x9)+-parseInt(_0x313003(0xe5))/0xa;if(_0x40e7e7===_0x1e6c18)break;else _0x590adf['push'](_0x590adf['shift']());}catch(_0x2ac928){_0x590adf['push'](_0x590adf['shift']());}}}(a112_0x5173,0x27cae));function a112_0x4cde(_0xe41c7f,_0x204ec4){_0xe41c7f=_0xe41c7f-0xde;var _0x517369=a112_0x5173();var _0x4cdeb7=_0x517369[_0xe41c7f];return _0x4cdeb7;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x3ddce0){var _0x2aacc0=a112_0x4cde;if(!_0x3ddce0)return undefined;try{return JSON[_0x2aacc0(0xe1)](_0x3ddce0);}catch{throw CliErrors[_0x2aacc0(0xed)](_0x2aacc0(0xe0)+_0x3ddce0);}}export function parseJsonParamsValue(_0x163b63){var _0x821692=a112_0x4cde;if(!_0x163b63)return undefined;try{return JSON['parse'](_0x163b63);}catch{throw CliErrors[_0x821692(0xed)](_0x821692(0xe0)+_0x163b63);}}export function parseBatchCreateItemsFromParams(_0xfa1ea){var _0x556f8e=a112_0x4cde;if(Array[_0x556f8e(0xea)](_0xfa1ea))return _0xfa1ea;if(_0xfa1ea!==null&&_0xfa1ea!==undefined&&typeof _0xfa1ea===_0x556f8e(0xe6)&&Array[_0x556f8e(0xea)](_0xfa1ea[_0x556f8e(0xde)]))return _0xfa1ea[_0x556f8e(0xde)];throw CliErrors['validation'](_0x556f8e(0xee),_0x556f8e(0xe3));}function a112_0x5173(){var _0xf0f0af=['parse','103592onrBja','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','6BoIMvr','89400sJvHCR','object','98746bORmRV','153heUTaX','21905HmsTLb','isArray','375945RPLRCw','85605xZfYzb','validation','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','12YwHYgu','items','1540749NVwiHV','Invalid\x20JSON\x20for\x20--params:\x20'];a112_0x5173=function(){return _0xf0f0af;};return a112_0x5173();}
@@ -1 +1 @@
1
- const a108_0x3524bb=a108_0x2eed;function a108_0x2eed(_0xfc9417,_0x35c3a1){_0xfc9417=_0xfc9417-0x190;const _0x3edd18=a108_0x3edd();let _0x2eed61=_0x3edd18[_0xfc9417];return _0x2eed61;}(function(_0x32e675,_0xdbb58e){const _0x5aece1=a108_0x2eed,_0xb5a37d=_0x32e675();while(!![]){try{const _0x222e05=-parseInt(_0x5aece1(0x190))/0x1+parseInt(_0x5aece1(0x199))/0x2+-parseInt(_0x5aece1(0x193))/0x3+parseInt(_0x5aece1(0x19a))/0x4*(-parseInt(_0x5aece1(0x191))/0x5)+-parseInt(_0x5aece1(0x197))/0x6+parseInt(_0x5aece1(0x196))/0x7+parseInt(_0x5aece1(0x198))/0x8;if(_0x222e05===_0xdbb58e)break;else _0xb5a37d['push'](_0xb5a37d['shift']());}catch(_0xb8a830){_0xb5a37d['push'](_0xb5a37d['shift']());}}}(a108_0x3edd,0x3f5b0));function a108_0x3edd(){const _0x3cc079=['56dryOmu','504035zdIkqZ','134455NOLRhs','platform','399549yrvrIz','.cmd','win32','1344770tBibnd','2445858fJPQxa','9411784chSlJJ','624512FAxtlt'];a108_0x3edd=function(){return _0x3cc079;};return a108_0x3edd();}export const isWindows=process[a108_0x3524bb(0x192)]===a108_0x3524bb(0x195);export function resolveNpmBin(_0x374f40){const _0x3621ef=a108_0x3524bb;return isWindows?_0x374f40+_0x3621ef(0x194):_0x374f40;}
1
+ const a113_0x18c9a3=a113_0x29cc;(function(_0x4e4c0a,_0x433aa2){const _0x4ba83e=a113_0x29cc,_0x526c9b=_0x4e4c0a();while(!![]){try{const _0x2cd3bb=-parseInt(_0x4ba83e(0x159))/0x1+-parseInt(_0x4ba83e(0x158))/0x2+-parseInt(_0x4ba83e(0x156))/0x3+parseInt(_0x4ba83e(0x152))/0x4*(-parseInt(_0x4ba83e(0x15e))/0x5)+parseInt(_0x4ba83e(0x15a))/0x6*(-parseInt(_0x4ba83e(0x153))/0x7)+parseInt(_0x4ba83e(0x15d))/0x8*(-parseInt(_0x4ba83e(0x157))/0x9)+parseInt(_0x4ba83e(0x155))/0xa*(parseInt(_0x4ba83e(0x15c))/0xb);if(_0x2cd3bb===_0x433aa2)break;else _0x526c9b['push'](_0x526c9b['shift']());}catch(_0x17606f){_0x526c9b['push'](_0x526c9b['shift']());}}}(a113_0x2914,0xe740e));function a113_0x2914(){const _0x5f3878=['5082564oDXUmD','693HkIgQO','1031426YhpZjM','1450811tcLRJt','24iLvNuB','.cmd','82282849qxRZLS','96856RuWNfq','2995GskdLv','platform','6536XMkgFy','1682324QrKiki','win32','10hvBHKJ'];a113_0x2914=function(){return _0x5f3878;};return a113_0x2914();}function a113_0x29cc(_0x18786d,_0x43af47){_0x18786d=_0x18786d-0x151;const _0x29142a=a113_0x2914();let _0x29cc4f=_0x29142a[_0x18786d];return _0x29cc4f;}export const isWindows=process[a113_0x18c9a3(0x151)]===a113_0x18c9a3(0x154);export function resolveNpmBin(_0x4c9d57){const _0x411a8b=a113_0x18c9a3;return isWindows?_0x4c9d57+_0x411a8b(0x15b):_0x4c9d57;}
@@ -1 +1 @@
1
- function a109_0x17ec(_0x315ac2,_0x267b53){_0x315ac2=_0x315ac2-0x11c;const _0x4cecb9=a109_0x4cec();let _0x17ec9d=_0x4cecb9[_0x315ac2];return _0x17ec9d;}(function(_0x3e6cba,_0x5d8abe){const _0x289547=a109_0x17ec,_0x230cfa=_0x3e6cba();while(!![]){try{const _0x55d306=parseInt(_0x289547(0x131))/0x1+parseInt(_0x289547(0x11d))/0x2+-parseInt(_0x289547(0x12a))/0x3+-parseInt(_0x289547(0x128))/0x4*(parseInt(_0x289547(0x13b))/0x5)+parseInt(_0x289547(0x11c))/0x6+parseInt(_0x289547(0x134))/0x7+parseInt(_0x289547(0x121))/0x8;if(_0x55d306===_0x5d8abe)break;else _0x230cfa['push'](_0x230cfa['shift']());}catch(_0x21ca58){_0x230cfa['push'](_0x230cfa['shift']());}}}(a109_0x4cec,0xbaf9e));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(_0x18c1d3){const _0x35948c=a109_0x17ec,_0x52bc56=_0x18c1d3[_0x35948c(0x129)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x52bc56)return null;return{'major':Number(_0x52bc56[0x1]),'minor':Number(_0x52bc56[0x2]),'patch':Number(_0x52bc56[0x3]),'prerelease':_0x52bc56[0x4]};}function compareSemver(_0x23860e,_0x4220ae){const _0x47cda5=a109_0x17ec,_0x473f3f=parseSemver(_0x23860e),_0x47ef49=parseSemver(_0x4220ae);if(!_0x473f3f||!_0x47ef49)throw new Error(_0x47cda5(0x124));for(const _0xb4ec3f of[_0x47cda5(0x130),'minor',_0x47cda5(0x13c)]){if(_0x473f3f[_0xb4ec3f]<_0x47ef49[_0xb4ec3f])return-0x1;if(_0x473f3f[_0xb4ec3f]>_0x47ef49[_0xb4ec3f])return 0x1;}if(!_0x473f3f[_0x47cda5(0x132)]&&!_0x47ef49[_0x47cda5(0x132)])return 0x0;if(!_0x473f3f['prerelease'])return 0x1;if(!_0x47ef49[_0x47cda5(0x132)])return-0x1;if(_0x473f3f['prerelease']===_0x47ef49[_0x47cda5(0x132)])return 0x0;return _0x473f3f['prerelease']<_0x47ef49['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x4dfea5=a109_0x17ec,_0x51b7a7=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x4dfea5(0x129)]()['toLowerCase']();return _0x51b7a7==='1'||_0x51b7a7==='true'||_0x51b7a7===_0x4dfea5(0x138);}function cacheRoot(){const _0x2842a1=a109_0x17ec;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2842a1(0x133));}export function getUpdateNoticeCachePath(){const _0x44ee04=a109_0x17ec;return join(cacheRoot(),'lovrabet-cli',_0x44ee04(0x12d));}async function readUpdateNoticeCache(){const _0x3cd245=a109_0x17ec;try{const _0x100d93=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x36e148=JSON[_0x3cd245(0x122)](_0x100d93);if(!_0x36e148||typeof _0x36e148!==_0x3cd245(0x12b))return{};return _0x36e148;}catch{return{};}}async function writeUpdateNoticeCache(_0x2c1a0a){const _0x4222a7=a109_0x17ec;try{const _0xf2cb93=getUpdateNoticeCachePath();await mkdir(dirname(_0xf2cb93),{'recursive':!![]}),await writeFile(_0xf2cb93,JSON[_0x4222a7(0x126)](_0x2c1a0a,null,0x2)+'\x0a',_0x4222a7(0x13a));}catch{}}function a109_0x4cec(){const _0x17fb3b=['/dist-tags','lastNotifiedVersion','yes','\x20update','utf8','245EAFOlb','patch','entries','1625772IzQvtC','1747390OPUTEa','checkedAt','string','/v/','3628112gchIGr','parse','number','Invalid\x20semver','now','stringify','filter','85276YvIlVq','trim','1514871FWRWBQ','object','lastNotifiedAt','update-check.json','latest','https://www.npmjs.com/package/','major','490731WhUJny','prerelease','.cache','1585780TPumqE','timeout'];a109_0x4cec=function(){return _0x17fb3b;};return a109_0x4cec();}function isFreshCheck(_0x1ad498,_0x2e3261){const _0x5201ab=a109_0x17ec;return typeof _0x1ad498['checkedAt']===_0x5201ab(0x123)&&_0x2e3261-_0x1ad498[_0x5201ab(0x11e)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4550e6,_0x29694a,_0x55b882){const _0x3e46c3=a109_0x17ec;return _0x4550e6[_0x3e46c3(0x137)]===_0x29694a&&typeof _0x4550e6[_0x3e46c3(0x12c)]===_0x3e46c3(0x123)&&_0x55b882-_0x4550e6[_0x3e46c3(0x12c)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x32b476=0x5dc){const _0x2be0b6=a109_0x17ec;try{const _0x1e7a35=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x2be0b6(0x136),_0xbfa0b1=await fetch(_0x1e7a35,{'signal':AbortSignal[_0x2be0b6(0x135)](_0x32b476)});if(!_0xbfa0b1['ok'])return null;const _0x1f7a94=await _0xbfa0b1['json']();if(!_0x1f7a94||typeof _0x1f7a94!==_0x2be0b6(0x12b))return null;return Object['fromEntries'](Object[_0x2be0b6(0x13d)](_0x1f7a94)[_0x2be0b6(0x127)](([,_0x1f62de])=>typeof _0x1f62de===_0x2be0b6(0x11f)&&_0x1f62de[_0x2be0b6(0x129)]())['map'](([_0x49e62a,_0x405bb5])=>[_0x49e62a,String(_0x405bb5)[_0x2be0b6(0x129)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x46fbc6){const _0xddd05b=a109_0x17ec;return _0xddd05b(0x12f)+LOVRABET_NPM_PACKAGE_NAME+_0xddd05b(0x120)+_0x46fbc6;}export async function resolveLatestUpdateNotice(){const _0xca34e4=a109_0x17ec;if(isUpdateNoticeDisabled())return null;try{const _0x136984=Date[_0xca34e4(0x125)](),_0x598e21=getCliVersion(),_0x400849=await readUpdateNoticeCache();let _0x56b752=isFreshCheck(_0x400849,_0x136984)?_0x400849[_0xca34e4(0x12e)]?.[_0xca34e4(0x129)]():undefined;if(!_0x56b752&&!isFreshCheck(_0x400849,_0x136984)){const _0x438c45=await fetchNpmDistTags();_0x56b752=_0x438c45?.[_0xca34e4(0x12e)]?.[_0xca34e4(0x129)](),await writeUpdateNoticeCache({..._0x400849,'checkedAt':_0x136984,'latest':_0x56b752,'failed':!_0x56b752});}if(!_0x56b752||compareSemver(_0x598e21,_0x56b752)>=0x0)return null;if(isRecentlyNotified(_0x400849,_0x56b752,_0x136984))return null;const _0x3fc829=CLI_BIN_NAME+_0xca34e4(0x139);return await writeUpdateNoticeCache({..._0x400849,'checkedAt':isFreshCheck(_0x400849,_0x136984)?_0x400849[_0xca34e4(0x11e)]:_0x136984,'latest':_0x56b752,'failed':![],'lastNotifiedVersion':_0x56b752,'lastNotifiedAt':_0x136984}),{'command':_0x3fc829,'current':_0x598e21,'latest':_0x56b752,'url':buildNpmVersionUrl(_0x56b752),'message':CLI_BIN_NAME+'\x20'+_0x56b752+'\x20available,\x20current\x20'+_0x598e21+',\x20run:\x20'+_0x3fc829};}catch{return null;}}
1
+ (function(_0x22cf77,_0x33beb9){const _0x23770c=a114_0x554a,_0x51ae61=_0x22cf77();while(!![]){try{const _0x1f11e9=-parseInt(_0x23770c(0x163))/0x1+parseInt(_0x23770c(0x16e))/0x2*(-parseInt(_0x23770c(0x16c))/0x3)+-parseInt(_0x23770c(0x16b))/0x4+parseInt(_0x23770c(0x15d))/0x5+-parseInt(_0x23770c(0x177))/0x6+-parseInt(_0x23770c(0x170))/0x7*(parseInt(_0x23770c(0x17b))/0x8)+parseInt(_0x23770c(0x167))/0x9;if(_0x1f11e9===_0x33beb9)break;else _0x51ae61['push'](_0x51ae61['shift']());}catch(_0x5ce11a){_0x51ae61['push'](_0x51ae61['shift']());}}}(a114_0x4b3f,0xd02ff));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(_0x230179){const _0x30ab30=a114_0x554a,_0x3c42b7=_0x230179['trim']()[_0x30ab30(0x161)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x3c42b7)return null;return{'major':Number(_0x3c42b7[0x1]),'minor':Number(_0x3c42b7[0x2]),'patch':Number(_0x3c42b7[0x3]),'prerelease':_0x3c42b7[0x4]};}function compareSemver(_0x1497b8,_0x52df5a){const _0x483cd3=a114_0x554a,_0x58823e=parseSemver(_0x1497b8),_0x330d1c=parseSemver(_0x52df5a);if(!_0x58823e||!_0x330d1c)throw new Error('Invalid\x20semver');for(const _0x918634 of['major',_0x483cd3(0x15b),'patch']){if(_0x58823e[_0x918634]<_0x330d1c[_0x918634])return-0x1;if(_0x58823e[_0x918634]>_0x330d1c[_0x918634])return 0x1;}if(!_0x58823e[_0x483cd3(0x178)]&&!_0x330d1c[_0x483cd3(0x178)])return 0x0;if(!_0x58823e['prerelease'])return 0x1;if(!_0x330d1c[_0x483cd3(0x178)])return-0x1;if(_0x58823e['prerelease']===_0x330d1c[_0x483cd3(0x178)])return 0x0;return _0x58823e[_0x483cd3(0x178)]<_0x330d1c[_0x483cd3(0x178)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x44f741=a114_0x554a,_0x2b9ce0=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x44f741(0x172)]()[_0x44f741(0x176)]();return _0x2b9ce0==='1'||_0x2b9ce0===_0x44f741(0x16f)||_0x2b9ce0===_0x44f741(0x168);}function cacheRoot(){const _0x3bd157=a114_0x554a;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3bd157(0x165));}export function getUpdateNoticeCachePath(){const _0x5c1532=a114_0x554a;return join(cacheRoot(),_0x5c1532(0x15e),_0x5c1532(0x173));}async function readUpdateNoticeCache(){const _0x263c5b=a114_0x554a;try{const _0x75ce77=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x2a160e=JSON[_0x263c5b(0x169)](_0x75ce77);if(!_0x2a160e||typeof _0x2a160e!==_0x263c5b(0x17d))return{};return _0x2a160e;}catch{return{};}}async function writeUpdateNoticeCache(_0x700c16){const _0x1f4e31=a114_0x554a;try{const _0x1fe631=getUpdateNoticeCachePath();await mkdir(dirname(_0x1fe631),{'recursive':!![]}),await writeFile(_0x1fe631,JSON[_0x1f4e31(0x17c)](_0x700c16,null,0x2)+'\x0a','utf8');}catch{}}function a114_0x554a(_0x2b9c62,_0xf35fc5){_0x2b9c62=_0x2b9c62-0x15b;const _0x4b3f2a=a114_0x4b3f();let _0x554a8a=_0x4b3f2a[_0x2b9c62];return _0x554a8a;}function isFreshCheck(_0x5803f4,_0x4830f3){return typeof _0x5803f4['checkedAt']==='number'&&_0x4830f3-_0x5803f4['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x2347e1,_0x1c2103,_0x27435d){const _0x2d0d53=a114_0x554a;return _0x2347e1['lastNotifiedVersion']===_0x1c2103&&typeof _0x2347e1[_0x2d0d53(0x166)]==='number'&&_0x27435d-_0x2347e1[_0x2d0d53(0x166)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x2f3608=0x5dc){const _0x23c23f=a114_0x554a;try{const _0x349df3=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x5cd261=await fetch(_0x349df3,{'signal':AbortSignal[_0x23c23f(0x17a)](_0x2f3608)});if(!_0x5cd261['ok'])return null;const _0x444bba=await _0x5cd261['json']();if(!_0x444bba||typeof _0x444bba!=='object')return null;return Object[_0x23c23f(0x160)](Object[_0x23c23f(0x16a)](_0x444bba)[_0x23c23f(0x171)](([,_0x58fb22])=>typeof _0x58fb22===_0x23c23f(0x15c)&&_0x58fb22[_0x23c23f(0x172)]())[_0x23c23f(0x164)](([_0x32c4c5,_0x3ed9a])=>[_0x32c4c5,String(_0x3ed9a)[_0x23c23f(0x172)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x435739){const _0x1673b9=a114_0x554a;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x1673b9(0x179)+_0x435739;}function a114_0x4b3f(){const _0x429076=['match','latest','612563yoNNnK','map','.cache','lastNotifiedAt','44902332XMioFQ','yes','parse','entries','3912160BxFCzm','3354411EOdaUf','\x20available,\x20current\x20','2ifMmsw','true','155666XZHNrR','filter','trim','update-check.json','now','\x20update','toLowerCase','10090134REfrgp','prerelease','/v/','timeout','496ncufeA','stringify','object','minor','string','8163860kgLhtk','lovrabet-cli',',\x20run:\x20','fromEntries'];a114_0x4b3f=function(){return _0x429076;};return a114_0x4b3f();}export async function resolveLatestUpdateNotice(){const _0x23d4c6=a114_0x554a;if(isUpdateNoticeDisabled())return null;try{const _0x237c19=Date[_0x23d4c6(0x174)](),_0x16f256=getCliVersion(),_0x46ecdc=await readUpdateNoticeCache();let _0x56fb17=isFreshCheck(_0x46ecdc,_0x237c19)?_0x46ecdc[_0x23d4c6(0x162)]?.['trim']():undefined;if(!_0x56fb17&&!isFreshCheck(_0x46ecdc,_0x237c19)){const _0xa49aaf=await fetchNpmDistTags();_0x56fb17=_0xa49aaf?.[_0x23d4c6(0x162)]?.[_0x23d4c6(0x172)](),await writeUpdateNoticeCache({..._0x46ecdc,'checkedAt':_0x237c19,'latest':_0x56fb17,'failed':!_0x56fb17});}if(!_0x56fb17||compareSemver(_0x16f256,_0x56fb17)>=0x0)return null;if(isRecentlyNotified(_0x46ecdc,_0x56fb17,_0x237c19))return null;const _0x502e67=CLI_BIN_NAME+_0x23d4c6(0x175);return await writeUpdateNoticeCache({..._0x46ecdc,'checkedAt':isFreshCheck(_0x46ecdc,_0x237c19)?_0x46ecdc['checkedAt']:_0x237c19,'latest':_0x56fb17,'failed':![],'lastNotifiedVersion':_0x56fb17,'lastNotifiedAt':_0x237c19}),{'command':_0x502e67,'current':_0x16f256,'latest':_0x56fb17,'url':buildNpmVersionUrl(_0x56fb17),'message':CLI_BIN_NAME+'\x20'+_0x56fb17+_0x23d4c6(0x16d)+_0x16f256+_0x23d4c6(0x15f)+_0x502e67};}catch{return null;}}
@@ -1 +1 @@
1
- function a110_0x2f91(){const _0x35d2e7=['90vzJLgN','86994GBMJJI','5ugoiOk','2179076ztSrvo','13111fddSmj','319984Qjjkch','unknown','23702239sBkmwf','1500AfjrGc','2WlOIex','503571qMAZfH','835000MytvNg'];a110_0x2f91=function(){return _0x35d2e7;};return a110_0x2f91();}(function(_0x15d885,_0xf43f11){const _0x252a62=a110_0x34a9,_0x17a77c=_0x15d885();while(!![]){try{const _0x45edda=parseInt(_0x252a62(0x11b))/0x1*(-parseInt(_0x252a62(0x126))/0x2)+parseInt(_0x252a62(0x11e))/0x3+parseInt(_0x252a62(0x120))/0x4*(-parseInt(_0x252a62(0x11f))/0x5)+parseInt(_0x252a62(0x125))/0x6*(-parseInt(_0x252a62(0x121))/0x7)+parseInt(_0x252a62(0x122))/0x8*(-parseInt(_0x252a62(0x11d))/0x9)+parseInt(_0x252a62(0x11c))/0xa+parseInt(_0x252a62(0x124))/0xb;if(_0x45edda===_0xf43f11)break;else _0x17a77c['push'](_0x17a77c['shift']());}catch(_0x26a6c1){_0x17a77c['push'](_0x17a77c['shift']());}}}(a110_0x2f91,0x559d5));function a110_0x34a9(_0x4e6ceb,_0x4b04bc){_0x4e6ceb=_0x4e6ceb-0x11b;const _0x2f9124=a110_0x2f91();let _0x34a9dc=_0x2f9124[_0x4e6ceb];return _0x34a9dc;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x4d8af8=a110_0x34a9,_0x1abf54=String(GIT_COMMIT);return _0x1abf54&&_0x1abf54!==_0x4d8af8(0x123)?_0x1abf54:'';}export function getCliVersionDisplay(){const _0x442fa3=getCliGitCommit(),_0x21e4ce=BUILD_TIME['slice'](0x0,0xa);if(!_0x442fa3||!_0x21e4ce)return VERSION;return VERSION+'\x20('+_0x442fa3+',\x20'+_0x21e4ce+')';}
1
+ (function(_0x31cbbb,_0x2d6f43){const _0x1629e0=a115_0x5554,_0x16f32c=_0x31cbbb();while(!![]){try{const _0x212021=-parseInt(_0x1629e0(0x6c))/0x1*(-parseInt(_0x1629e0(0x69))/0x2)+parseInt(_0x1629e0(0x65))/0x3+parseInt(_0x1629e0(0x6d))/0x4*(-parseInt(_0x1629e0(0x6f))/0x5)+-parseInt(_0x1629e0(0x68))/0x6*(parseInt(_0x1629e0(0x6e))/0x7)+-parseInt(_0x1629e0(0x6a))/0x8+-parseInt(_0x1629e0(0x67))/0x9+parseInt(_0x1629e0(0x64))/0xa;if(_0x212021===_0x2d6f43)break;else _0x16f32c['push'](_0x16f32c['shift']());}catch(_0x3e6cde){_0x16f32c['push'](_0x16f32c['shift']());}}}(a115_0xd592,0xc69cf));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a115_0xd592(){const _0x251019=['1398439vlwtgK','98245KodOqg','27554990sAyYzo','1845780hazqxE','slice','4916151GzIWyj','30pbGpTN','44kvhfsA','10005160rFLQbV','unknown','22453BXBmyC','52mUjNGq'];a115_0xd592=function(){return _0x251019;};return a115_0xd592();}function a115_0x5554(_0x55916a,_0x26767e){_0x55916a=_0x55916a-0x64;const _0xd5921c=a115_0xd592();let _0x5554c4=_0xd5921c[_0x55916a];return _0x5554c4;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x37f17e=a115_0x5554,_0x5d247a=String(GIT_COMMIT);return _0x5d247a&&_0x5d247a!==_0x37f17e(0x6b)?_0x5d247a:'';}export function getCliVersionDisplay(){const _0x50a1ab=a115_0x5554,_0x99fd16=getCliGitCommit(),_0x9034cf=BUILD_TIME[_0x50a1ab(0x66)](0x0,0xa);if(!_0x99fd16||!_0x9034cf)return VERSION;return VERSION+'\x20('+_0x99fd16+',\x20'+_0x9034cf+')';}
@@ -1 +1 @@
1
- (function(_0x34f707,_0x25582a){var _0xf67f79=a111_0x113a,_0x2a18c3=_0x34f707();while(!![]){try{var _0x294511=parseInt(_0xf67f79(0x14f))/0x1*(parseInt(_0xf67f79(0x14b))/0x2)+-parseInt(_0xf67f79(0x148))/0x3+-parseInt(_0xf67f79(0x147))/0x4+-parseInt(_0xf67f79(0x14e))/0x5*(-parseInt(_0xf67f79(0x149))/0x6)+parseInt(_0xf67f79(0x14a))/0x7+-parseInt(_0xf67f79(0x14c))/0x8*(-parseInt(_0xf67f79(0x14d))/0x9)+-parseInt(_0xf67f79(0x151))/0xa*(parseInt(_0xf67f79(0x150))/0xb);if(_0x294511===_0x25582a)break;else _0x2a18c3['push'](_0x2a18c3['shift']());}catch(_0x2a00e7){_0x2a18c3['push'](_0x2a18c3['shift']());}}}(a111_0x5dcd,0x65274));function a111_0x5dcd(){var _0xe76097=['4077350JYwrzQ','write','stderr','3178972CzqXPN','478674kOHHyg','6URqAHC','4789554lEnKmC','801166XhlySW','2622344KkmcGL','18rHOcyS','179845yjpRyW','1eVhmoB','11QijAYS'];a111_0x5dcd=function(){return _0xe76097;};return a111_0x5dcd();}function a111_0x113a(_0x215920,_0x4a9b5){_0x215920=_0x215920-0x145;var _0x5dcdd9=a111_0x5dcd();var _0x113aef=_0x5dcdd9[_0x215920];return _0x113aef;}export function writeCliSideChannelLine(_0x17c451){var _0x3e0864=a111_0x113a;process[_0x3e0864(0x146)][_0x3e0864(0x145)](_0x17c451+'\x0a');}
1
+ (function(_0x5436eb,_0x128a01){var _0x1a33bb=a116_0x3934,_0x402a56=_0x5436eb();while(!![]){try{var _0x2dc1ed=parseInt(_0x1a33bb(0xd6))/0x1*(parseInt(_0x1a33bb(0xcd))/0x2)+parseInt(_0x1a33bb(0xd7))/0x3*(-parseInt(_0x1a33bb(0xd4))/0x4)+-parseInt(_0x1a33bb(0xca))/0x5*(-parseInt(_0x1a33bb(0xcb))/0x6)+-parseInt(_0x1a33bb(0xd1))/0x7+-parseInt(_0x1a33bb(0xcc))/0x8+-parseInt(_0x1a33bb(0xd3))/0x9*(parseInt(_0x1a33bb(0xd2))/0xa)+-parseInt(_0x1a33bb(0xd0))/0xb*(-parseInt(_0x1a33bb(0xce))/0xc);if(_0x2dc1ed===_0x128a01)break;else _0x402a56['push'](_0x402a56['shift']());}catch(_0x53f36f){_0x402a56['push'](_0x402a56['shift']());}}}(a116_0x28f0,0xf1662));function a116_0x28f0(){var _0x4db037=['4HUWiar','stderr','2GThhqn','4682526wXDENv','15yawGic','961332yJIkUB','4337872CcJdGE','891826SDGLXL','12570408QXCBef','write','33ZffoJF','6644400yjrFMa','49380XiNXPX','864lGeoHs'];a116_0x28f0=function(){return _0x4db037;};return a116_0x28f0();}function a116_0x3934(_0x502475,_0xfc5139){_0x502475=_0x502475-0xca;var _0x28f0da=a116_0x28f0();var _0x39340a=_0x28f0da[_0x502475];return _0x39340a;}export function writeCliSideChannelLine(_0xfa4a0a){var _0x1d43e6=a116_0x3934;process[_0x1d43e6(0xd5)][_0x1d43e6(0xcf)](_0xfa4a0a+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.7",
3
+ "version": "2.1.8-beta.2",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",