@lovrabet/lovrabet-cli 2.1.19 → 2.1.20-beta.1

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 (130) 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/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.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/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/install.js +1 -1
  46. package/lib/commands/skill/commands/list.js +1 -1
  47. package/lib/commands/skill/commands/push.js +1 -1
  48. package/lib/commands/skill/commands/validate.js +1 -1
  49. package/lib/commands/skill/flags.js +1 -1
  50. package/lib/commands/skill/index.js +1 -1
  51. package/lib/commands/skill/manifest-helpers.js +1 -1
  52. package/lib/commands/skill/push-execute.js +1 -1
  53. package/lib/commands/skill/push-flow-helpers.js +1 -1
  54. package/lib/commands/skill/push-retarget.js +1 -1
  55. package/lib/commands/skill/scopes.js +1 -1
  56. package/lib/commands/skill/summary.js +1 -1
  57. package/lib/commands/skill/templates.js +1 -1
  58. package/lib/commands/skill/validate.js +1 -1
  59. package/lib/commands/sql/detail.js +1 -1
  60. package/lib/commands/sql/exec.js +1 -1
  61. package/lib/commands/sql/index.js +1 -1
  62. package/lib/commands/update.js +1 -1
  63. package/lib/commands/workspace/index.js +1 -1
  64. package/lib/config/schema.js +1 -1
  65. package/lib/constant/app.js +1 -1
  66. package/lib/constant/auth-mode.js +1 -1
  67. package/lib/constant/cli.js +1 -1
  68. package/lib/constant/defaults.js +1 -1
  69. package/lib/constant/distribution.js +1 -1
  70. package/lib/constant/domain.js +1 -1
  71. package/lib/constant/env.js +1 -1
  72. package/lib/constant/output.js +1 -1
  73. package/lib/constant/product.js +1 -1
  74. package/lib/constant/risk.js +1 -1
  75. package/lib/constant/url.js +1 -1
  76. package/lib/context.js +1 -1
  77. package/lib/core/api-client.js +1 -1
  78. package/lib/core/db-resolver.js +1 -1
  79. package/lib/core/sdk-client.js +1 -1
  80. package/lib/errors.js +1 -1
  81. package/lib/framework/build-all-flags.js +1 -1
  82. package/lib/framework/dryrun.js +1 -1
  83. package/lib/framework/flags.js +1 -1
  84. package/lib/framework/help.js +1 -1
  85. package/lib/framework/index.js +1 -1
  86. package/lib/framework/output.js +1 -1
  87. package/lib/framework/preparse.d.ts +12 -0
  88. package/lib/framework/preparse.js +1 -1
  89. package/lib/framework/rate-limit.js +1 -1
  90. package/lib/framework/raw-flags.d.ts +12 -0
  91. package/lib/framework/raw-flags.js +1 -0
  92. package/lib/framework/response.js +1 -1
  93. package/lib/framework/runner-confirmation.js +1 -1
  94. package/lib/framework/runner-error.js +1 -1
  95. package/lib/framework/runner.js +1 -1
  96. package/lib/framework/schema-export.js +1 -1
  97. package/lib/framework/service-order.js +1 -1
  98. package/lib/framework/types.js +1 -1
  99. package/lib/generated/build-info.d.ts +4 -4
  100. package/lib/generated/build-info.js +1 -1
  101. package/lib/help.js +1 -1
  102. package/lib/runtime/event.js +1 -1
  103. package/lib/runtime/index.js +1 -1
  104. package/lib/runtime/queue.js +1 -1
  105. package/lib/runtime/resolve.js +1 -1
  106. package/lib/skills/npx-skills-add.js +1 -1
  107. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  108. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  109. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  110. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  111. package/lib/skills/runtime-skill-sync/links.js +1 -1
  112. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  113. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  114. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  115. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  116. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  117. package/lib/skills/runtime-skill-sync/push.js +1 -1
  118. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  119. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  120. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  121. package/lib/skills/runtime-skill-sync.js +1 -1
  122. package/lib/utils/apply-jq-filter.js +1 -1
  123. package/lib/utils/logger.js +1 -1
  124. package/lib/utils/lossless-json.js +1 -1
  125. package/lib/utils/params.js +1 -1
  126. package/lib/utils/platform.js +1 -1
  127. package/lib/utils/update-notice.js +1 -1
  128. package/lib/utils/version.js +1 -1
  129. package/lib/utils/write-cli-side-channel.js +1 -1
  130. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x46a021,_0x5f9214){const _0x5d56bb=a117_0x4e35,_0x375d80=_0x46a021();while(!![]){try{const _0x51e1a3=-parseInt(_0x5d56bb(0x200))/0x1+-parseInt(_0x5d56bb(0x202))/0x2+parseInt(_0x5d56bb(0x1e7))/0x3+parseInt(_0x5d56bb(0x1f6))/0x4+-parseInt(_0x5d56bb(0x1ee))/0x5*(-parseInt(_0x5d56bb(0x1f9))/0x6)+parseInt(_0x5d56bb(0x207))/0x7+-parseInt(_0x5d56bb(0x205))/0x8;if(_0x51e1a3===_0x5f9214)break;else _0x375d80['push'](_0x375d80['shift']());}catch(_0x548d66){_0x375d80['push'](_0x375d80['shift']());}}}(a117_0x553d,0xd1304));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(_0x2b765a){const _0x3d03c3=a117_0x4e35,_0x3701ff=normalizeLocalFiles(_0x2b765a);if(!_0x3701ff[_0x3d03c3(0x1fe)](_0x5e9582=>_0x5e9582[_0x3d03c3(0x209)]===SKILL_FILE))throw CliErrors[_0x3d03c3(0x1f4)](_0x3d03c3(0x1f5)+SKILL_FILE+_0x3d03c3(0x20d));const _0x29e7d7=localFilesToManifestFiles(_0x3701ff),_0x56986e=createDeterministicZipPackage(_0x3701ff);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x29e7d7),'zipSha256':bufferSha256(_0x56986e),'zipSize':_0x56986e[_0x3d03c3(0x1f3)],'files':_0x29e7d7},'packageBytes':_0x56986e,'packageBase64':_0x56986e[_0x3d03c3(0x20a)](_0x3d03c3(0x1fa))};}export function verifyRuntimeSkillPackage(_0x5195f7,_0x14a12c){const _0x178eb0=a117_0x4e35,_0x840fd9=normalizePackageManifest(_0x5195f7,{'requireOssPath':![]});if(!_0x840fd9)throw CliErrors['validation'](_0x178eb0(0x1f8));return extractAndVerifyPackage(_0x840fd9,_0x14a12c);}function a117_0x4e35(_0x3be384,_0x42de4c){_0x3be384=_0x3be384-0x1e7;const _0x553dab=a117_0x553d();let _0x4e3596=_0x553dab[_0x3be384];return _0x4e3596;}export function verifyRuntimeSkillBundle(_0x57fcd4,_0x42a753){const _0x3cf3b4=a117_0x4e35,_0x40cf45=normalizePackageManifest(_0x57fcd4,{'requireOssPath':![]});if(!_0x40cf45)throw CliErrors[_0x3cf3b4(0x1f4)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x40cf45,_0x42a753);}export function tryNormalizePackageManifest(_0x31e334){return normalizePackageManifest(_0x31e334,{'requireOssPath':![]});}function a117_0x553d(){const _0x299730=['1135714mnLHMd','size','1532270xTqXnm','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','isArray','10280312ifmwRD','string','9101036mLWSRg','Duplicate\x20Skill\x20package\x20entry:\x20','path','toString','ossPath','zipSize','\x20in\x20Skill\x20file\x20package.','sha256','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','schemaVersion','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','treeSha256','1715835xDkJaQ','isSafeInteger','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','push','Runtime\x20Skill\x20package\x20is\x20missing\x20','zipSha256','trim','8253030lHfRvl','has','bytes','get','set','length','validation','Missing\x20','2084100cNZnon','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','6NmCijC','base64','requireOssPath','files','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','some','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'];a117_0x553d=function(){return _0x299730;};return a117_0x553d();}export function requirePackageBytes(_0x476765,_0xf25b47){const _0x8b39c6=a117_0x4e35;if(!_0xf25b47||_0xf25b47[_0x8b39c6(0x1f3)]===0x0)throw CliErrors[_0x8b39c6(0x1f4)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x476765);return _0xf25b47;}export function extractDownloadedPackage(_0x48b21c){const _0x28ce93=a117_0x4e35,_0x2ae0a0=parseZipPackage(_0x48b21c)['map'](_0x25696b=>({'path':_0x25696b[_0x28ce93(0x209)],'bytes':_0x25696b[_0x28ce93(0x1f0)]}));if(!_0x2ae0a0[_0x28ce93(0x1fe)](_0x374951=>_0x374951[_0x28ce93(0x209)]===SKILL_FILE))throw CliErrors[_0x28ce93(0x1f4)](_0x28ce93(0x1eb)+SKILL_FILE+'.');return normalizeLocalFiles(_0x2ae0a0);}export function localFilesToManifestFiles(_0x19c9ee){const _0x20e43c=a117_0x4e35;return normalizeLocalFiles(_0x19c9ee)['map'](_0x519754=>({'path':_0x519754[_0x20e43c(0x209)],'sha256':fileHash(_0x519754),'size':fileContent(_0x519754)[_0x20e43c(0x1f3)]}));}function normalizePackageManifest(_0x56266f,_0x45f4b2){const _0x22609d=a117_0x4e35;if(!_0x56266f||typeof _0x56266f!=='object'||Array[_0x22609d(0x204)](_0x56266f))return undefined;const _0x26c40d=_0x56266f,_0x36f809=typeof _0x26c40d[_0x22609d(0x20b)]===_0x22609d(0x206)?_0x26c40d['ossPath'][_0x22609d(0x1ed)]():undefined;if(_0x45f4b2[_0x22609d(0x1fb)]&&!_0x36f809)return undefined;if(!Array[_0x22609d(0x204)](_0x26c40d[_0x22609d(0x1fc)])||_0x26c40d['files'][_0x22609d(0x1f3)]===0x0)return undefined;if(!isSha256Hex(_0x26c40d[_0x22609d(0x213)]))throw CliErrors[_0x22609d(0x1f4)](_0x22609d(0x212));if(!isSha256Hex(_0x26c40d[_0x22609d(0x1ec)]))throw CliErrors[_0x22609d(0x1f4)](_0x22609d(0x1fd));if(!Number[_0x22609d(0x1e8)](_0x26c40d[_0x22609d(0x20c)])||_0x26c40d[_0x22609d(0x20c)]<0x0)throw CliErrors[_0x22609d(0x1f4)](_0x22609d(0x203));const _0x549d81=normalizeManifestFiles(_0x26c40d['files']);if(!_0x549d81[_0x22609d(0x1fe)](_0x256531=>_0x256531['path']===SKILL_FILE))throw CliErrors[_0x22609d(0x1f4)](_0x22609d(0x1e9)+SKILL_FILE+'.');const _0x591a77=fileTreeHash(_0x549d81);if(_0x591a77!==_0x26c40d[_0x22609d(0x213)]['toLowerCase']())throw CliErrors[_0x22609d(0x1f4)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x22609d(0x1e8)](_0x26c40d[_0x22609d(0x210)])?_0x26c40d[_0x22609d(0x210)]:0x2,'ossPath':_0x36f809,'treeSha256':_0x591a77,'zipSha256':_0x26c40d[_0x22609d(0x1ec)]['toLowerCase'](),'zipSize':_0x26c40d[_0x22609d(0x20c)],'files':_0x549d81};}function extractAndVerifyPackage(_0x26a2fe,_0x4d2793){const _0x86e6a9=a117_0x4e35,_0x3fab38=normalizePackageManifest(_0x26a2fe,{'requireOssPath':![]});if(!_0x3fab38)throw CliErrors['validation'](_0x86e6a9(0x1f8));if(_0x4d2793[_0x86e6a9(0x1f3)]!==_0x3fab38[_0x86e6a9(0x20c)])throw CliErrors[_0x86e6a9(0x1f4)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x160024=bufferSha256(_0x4d2793);if(_0x160024!==_0x3fab38['zipSha256'])throw CliErrors[_0x86e6a9(0x1f4)](_0x86e6a9(0x1f7));return extractAndVerifyPackageFiles(_0x3fab38,_0x4d2793);}function extractAndVerifyPackageFiles(_0x4012fa,_0x5c8b9c){const _0x88ed45=a117_0x4e35,_0x5d95da=parseZipPackage(_0x5c8b9c);if(_0x5d95da[_0x88ed45(0x1f3)]!==_0x4012fa['files'][_0x88ed45(0x1f3)])throw CliErrors[_0x88ed45(0x1f4)](_0x88ed45(0x20f));const _0x362cdf=new Map();for(const _0xc85b3d of _0x5d95da){if(_0x362cdf[_0x88ed45(0x1ef)](_0xc85b3d[_0x88ed45(0x209)]))throw CliErrors[_0x88ed45(0x1f4)](_0x88ed45(0x208)+_0xc85b3d['path']);_0x362cdf[_0x88ed45(0x1f2)](_0xc85b3d[_0x88ed45(0x209)],_0xc85b3d);}const _0x4c6845=[];for(const _0x344cab of _0x4012fa[_0x88ed45(0x1fc)]){const _0x7166e9=_0x362cdf[_0x88ed45(0x1f1)](_0x344cab[_0x88ed45(0x209)]);if(!_0x7166e9)throw CliErrors[_0x88ed45(0x1f4)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x344cab[_0x88ed45(0x209)]);if(_0x7166e9[_0x88ed45(0x1f0)][_0x88ed45(0x1f3)]!==_0x344cab[_0x88ed45(0x201)])throw CliErrors['validation'](_0x88ed45(0x1ff)+_0x344cab[_0x88ed45(0x209)]);const _0x516e0d=bufferSha256(_0x7166e9[_0x88ed45(0x1f0)]);if(_0x516e0d!==_0x344cab[_0x88ed45(0x20e)])throw CliErrors[_0x88ed45(0x1f4)](_0x88ed45(0x211)+_0x344cab[_0x88ed45(0x209)]);_0x4c6845[_0x88ed45(0x1ea)]({'path':_0x344cab[_0x88ed45(0x209)],'bytes':_0x7166e9[_0x88ed45(0x1f0)]});}return normalizeLocalFiles(_0x4c6845);}
1
+ (function(_0x2ca457,_0x37567b){const _0x37157b=a118_0x5950,_0x68e2b8=_0x2ca457();while(!![]){try{const _0xf7a835=-parseInt(_0x37157b(0x15a))/0x1*(parseInt(_0x37157b(0x173))/0x2)+-parseInt(_0x37157b(0x164))/0x3+parseInt(_0x37157b(0x16c))/0x4*(-parseInt(_0x37157b(0x172))/0x5)+parseInt(_0x37157b(0x170))/0x6+parseInt(_0x37157b(0x157))/0x7*(parseInt(_0x37157b(0x17c))/0x8)+parseInt(_0x37157b(0x150))/0x9*(-parseInt(_0x37157b(0x167))/0xa)+parseInt(_0x37157b(0x14c))/0xb*(parseInt(_0x37157b(0x154))/0xc);if(_0xf7a835===_0x37567b)break;else _0x68e2b8['push'](_0x68e2b8['shift']());}catch(_0x3abc7a){_0x68e2b8['push'](_0x68e2b8['shift']());}}}(a118_0x32c6,0x216b9));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(_0x4c2a5d){const _0x2e35de=a118_0x5950,_0x5f1fab=normalizeLocalFiles(_0x4c2a5d);if(!_0x5f1fab['some'](_0x2de44b=>_0x2de44b[_0x2e35de(0x174)]===SKILL_FILE))throw CliErrors[_0x2e35de(0x160)](_0x2e35de(0x14e)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0xfd5de4=localFilesToManifestFiles(_0x5f1fab),_0x2ba16b=createDeterministicZipPackage(_0x5f1fab);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0xfd5de4),'zipSha256':bufferSha256(_0x2ba16b),'zipSize':_0x2ba16b[_0x2e35de(0x176)],'files':_0xfd5de4},'packageBytes':_0x2ba16b,'packageBase64':_0x2ba16b[_0x2e35de(0x15d)]('base64')};}export function verifyRuntimeSkillPackage(_0x5cba44,_0xbefa49){const _0x23a85b=a118_0x5950,_0x300497=normalizePackageManifest(_0x5cba44,{'requireOssPath':![]});if(!_0x300497)throw CliErrors['validation'](_0x23a85b(0x155));return extractAndVerifyPackage(_0x300497,_0xbefa49);}export function verifyRuntimeSkillBundle(_0x658ca7,_0x5cc649){const _0x32e032=a118_0x5950,_0x358f92=normalizePackageManifest(_0x658ca7,{'requireOssPath':![]});if(!_0x358f92)throw CliErrors[_0x32e032(0x160)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x358f92,_0x5cc649);}function a118_0x32c6(){const _0x13f4ca=['Runtime\x20Skill\x20package\x20is\x20missing\x20','requireOssPath','339608UbOHzG','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','5269BLWPfM','get','Missing\x20','trim','135LtOurv','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','Duplicate\x20Skill\x20package\x20entry:\x20','17568vOAkNn','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','isSafeInteger','21HoqedY','toLowerCase','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','4bxIEjo','ossPath','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','toString','string','isArray','validation','some','sha256','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','808710qPtiTS','object','set','175100LJAldE','zipSha256','has','bytes','treeSha256','889564bLxmVL','files','map','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','1167714BqJDTu','schemaVersion','5lDIFMJ','65864BJXdnY','path','Runtime\x20Skill\x20package\x20size\x20mismatch.','length','size','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','zipSize'];a118_0x32c6=function(){return _0x13f4ca;};return a118_0x32c6();}export function tryNormalizePackageManifest(_0x1bf537){return normalizePackageManifest(_0x1bf537,{'requireOssPath':![]});}export function requirePackageBytes(_0x162fe6,_0x4cdc7b){const _0x3d1ea7=a118_0x5950;if(!_0x4cdc7b||_0x4cdc7b['length']===0x0)throw CliErrors[_0x3d1ea7(0x160)](_0x3d1ea7(0x16f)+_0x162fe6);return _0x4cdc7b;}function a118_0x5950(_0x4dcebb,_0x2081e9){_0x4dcebb=_0x4dcebb-0x14b;const _0x32c652=a118_0x32c6();let _0x595017=_0x32c652[_0x4dcebb];return _0x595017;}export function extractDownloadedPackage(_0x512258){const _0x534fef=a118_0x5950,_0x13bdec=parseZipPackage(_0x512258)['map'](_0x5b3364=>({'path':_0x5b3364['path'],'bytes':_0x5b3364[_0x534fef(0x16a)]}));if(!_0x13bdec[_0x534fef(0x161)](_0x51c908=>_0x51c908['path']===SKILL_FILE))throw CliErrors['validation'](_0x534fef(0x17a)+SKILL_FILE+'.');return normalizeLocalFiles(_0x13bdec);}export function localFilesToManifestFiles(_0x24ec36){const _0x109d4a=a118_0x5950;return normalizeLocalFiles(_0x24ec36)[_0x109d4a(0x16e)](_0x45798f=>({'path':_0x45798f[_0x109d4a(0x174)],'sha256':fileHash(_0x45798f),'size':fileContent(_0x45798f)['length']}));}function normalizePackageManifest(_0x58cbc7,_0x321a4f){const _0x38a205=a118_0x5950;if(!_0x58cbc7||typeof _0x58cbc7!==_0x38a205(0x165)||Array[_0x38a205(0x15f)](_0x58cbc7))return undefined;const _0x4e350f=_0x58cbc7,_0xbaf0ac=typeof _0x4e350f[_0x38a205(0x15b)]===_0x38a205(0x15e)?_0x4e350f[_0x38a205(0x15b)][_0x38a205(0x14f)]():undefined;if(_0x321a4f[_0x38a205(0x17b)]&&!_0xbaf0ac)return undefined;if(!Array[_0x38a205(0x15f)](_0x4e350f[_0x38a205(0x16d)])||_0x4e350f[_0x38a205(0x16d)][_0x38a205(0x176)]===0x0)return undefined;if(!isSha256Hex(_0x4e350f[_0x38a205(0x16b)]))throw CliErrors[_0x38a205(0x160)](_0x38a205(0x15c));if(!isSha256Hex(_0x4e350f['zipSha256']))throw CliErrors[_0x38a205(0x160)](_0x38a205(0x152));if(!Number[_0x38a205(0x156)](_0x4e350f['zipSize'])||_0x4e350f['zipSize']<0x0)throw CliErrors[_0x38a205(0x160)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x440a41=normalizeManifestFiles(_0x4e350f[_0x38a205(0x16d)]);if(!_0x440a41[_0x38a205(0x161)](_0x5e6060=>_0x5e6060[_0x38a205(0x174)]===SKILL_FILE))throw CliErrors['validation'](_0x38a205(0x159)+SKILL_FILE+'.');const _0x2c41a7=fileTreeHash(_0x440a41);if(_0x2c41a7!==_0x4e350f[_0x38a205(0x16b)]['toLowerCase']())throw CliErrors[_0x38a205(0x160)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x38a205(0x156)](_0x4e350f['schemaVersion'])?_0x4e350f[_0x38a205(0x171)]:0x2,'ossPath':_0xbaf0ac,'treeSha256':_0x2c41a7,'zipSha256':_0x4e350f[_0x38a205(0x168)][_0x38a205(0x158)](),'zipSize':_0x4e350f['zipSize'],'files':_0x440a41};}function extractAndVerifyPackage(_0xc5370d,_0x1d17a7){const _0x32df6f=a118_0x5950,_0x31c173=normalizePackageManifest(_0xc5370d,{'requireOssPath':![]});if(!_0x31c173)throw CliErrors[_0x32df6f(0x160)](_0x32df6f(0x155));if(_0x1d17a7['length']!==_0x31c173[_0x32df6f(0x179)])throw CliErrors[_0x32df6f(0x160)](_0x32df6f(0x175));const _0x50d96b=bufferSha256(_0x1d17a7);if(_0x50d96b!==_0x31c173[_0x32df6f(0x168)])throw CliErrors['validation'](_0x32df6f(0x17d));return extractAndVerifyPackageFiles(_0x31c173,_0x1d17a7);}function extractAndVerifyPackageFiles(_0x2a2a1e,_0x27bed8){const _0x379701=a118_0x5950,_0x3b5e98=parseZipPackage(_0x27bed8);if(_0x3b5e98[_0x379701(0x176)]!==_0x2a2a1e[_0x379701(0x16d)][_0x379701(0x176)])throw CliErrors[_0x379701(0x160)](_0x379701(0x178));const _0x5ee850=new Map();for(const _0x4db156 of _0x3b5e98){if(_0x5ee850[_0x379701(0x169)](_0x4db156['path']))throw CliErrors[_0x379701(0x160)](_0x379701(0x153)+_0x4db156[_0x379701(0x174)]);_0x5ee850[_0x379701(0x166)](_0x4db156['path'],_0x4db156);}const _0x2bc1a2=[];for(const _0x4bf3e8 of _0x2a2a1e[_0x379701(0x16d)]){const _0x49ae37=_0x5ee850[_0x379701(0x14d)](_0x4bf3e8[_0x379701(0x174)]);if(!_0x49ae37)throw CliErrors[_0x379701(0x160)](_0x379701(0x151)+_0x4bf3e8[_0x379701(0x174)]);if(_0x49ae37[_0x379701(0x16a)][_0x379701(0x176)]!==_0x4bf3e8[_0x379701(0x177)])throw CliErrors[_0x379701(0x160)](_0x379701(0x14b)+_0x4bf3e8[_0x379701(0x174)]);const _0x224b3e=bufferSha256(_0x49ae37[_0x379701(0x16a)]);if(_0x224b3e!==_0x4bf3e8[_0x379701(0x162)])throw CliErrors['validation'](_0x379701(0x163)+_0x4bf3e8['path']);_0x2bc1a2['push']({'path':_0x4bf3e8[_0x379701(0x174)],'bytes':_0x49ae37['bytes']});}return normalizeLocalFiles(_0x2bc1a2);}
@@ -1 +1 @@
1
- (function(_0x421c2b,_0x2a036f){var _0x1f4e16=a118_0x33d8,_0xe16254=_0x421c2b();while(!![]){try{var _0x5e130f=-parseInt(_0x1f4e16(0x6a))/0x1*(-parseInt(_0x1f4e16(0x6e))/0x2)+parseInt(_0x1f4e16(0x6b))/0x3+parseInt(_0x1f4e16(0x70))/0x4*(parseInt(_0x1f4e16(0x69))/0x5)+parseInt(_0x1f4e16(0x67))/0x6*(-parseInt(_0x1f4e16(0x6f))/0x7)+-parseInt(_0x1f4e16(0x68))/0x8*(-parseInt(_0x1f4e16(0x6c))/0x9)+-parseInt(_0x1f4e16(0x65))/0xa*(-parseInt(_0x1f4e16(0x6d))/0xb)+-parseInt(_0x1f4e16(0x66))/0xc;if(_0x5e130f===_0x2a036f)break;else _0xe16254['push'](_0xe16254['shift']());}catch(_0x3dc7e4){_0xe16254['push'](_0xe16254['shift']());}}}(a118_0x3071,0x6a238));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';function a118_0x3071(){var _0x391e97=['6vohhou','573448vNkJUb','1275LkTrFt','1SZAJKg','551499tVZqAc','18wMWgoS','143cgjyFk','1563864lnJAMC','5057122ntCBnP','12764XMixpO','140450UxpVPe','11378724EKDrmI'];a118_0x3071=function(){return _0x391e97;};return a118_0x3071();}export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';function a118_0x33d8(_0x40ba0e,_0x55e7f3){_0x40ba0e=_0x40ba0e-0x65;var _0x307163=a118_0x3071();var _0x33d860=_0x307163[_0x40ba0e];return _0x33d860;}export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}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 a119_0x1a60(){var _0x531e3c=['14838MEmKaq','6QefccN','11MYqbch','5145780izpOBX','3828424IUSXAc','373894jamTBC','726921WyuQHU','4430532sUtiZB','1455081mNeSQy','1640IVIZCI','21NdABHK'];a119_0x1a60=function(){return _0x531e3c;};return a119_0x1a60();}(function(_0x38b218,_0x39c428){var _0x157d22=a119_0x48c7,_0x3bbba9=_0x38b218();while(!![]){try{var _0x1067bf=-parseInt(_0x157d22(0x7b))/0x1*(-parseInt(_0x157d22(0x74))/0x2)+-parseInt(_0x157d22(0x77))/0x3+-parseInt(_0x157d22(0x76))/0x4+parseInt(_0x157d22(0x78))/0x5*(-parseInt(_0x157d22(0x7a))/0x6)+-parseInt(_0x157d22(0x79))/0x7*(-parseInt(_0x157d22(0x7e))/0x8)+parseInt(_0x157d22(0x75))/0x9+-parseInt(_0x157d22(0x7d))/0xa*(-parseInt(_0x157d22(0x7c))/0xb);if(_0x1067bf===_0x39c428)break;else _0x3bbba9['push'](_0x3bbba9['shift']());}catch(_0x363cdf){_0x3bbba9['push'](_0x3bbba9['shift']());}}}(a119_0x1a60,0xb6d54));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.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';function a119_0x48c7(_0x3fdc0d,_0x2b8db4){_0x3fdc0d=_0x3fdc0d-0x74;var _0x1a6070=a119_0x1a60();var _0x48c7d3=_0x1a6070[_0x3fdc0d];return _0x48c7d3;}export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}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 a119_0x572a(_0x5a59fe,_0x5a6633){_0x5a59fe=_0x5a59fe-0xd0;const _0x2b91f3=a119_0x2b91();let _0x572a80=_0x2b91f3[_0x5a59fe];return _0x572a80;}(function(_0x1c18e4,_0x14dcf5){const _0x1cbd1d=a119_0x572a,_0x505ef5=_0x1c18e4();while(!![]){try{const _0x4ca2f0=parseInt(_0x1cbd1d(0xd6))/0x1+parseInt(_0x1cbd1d(0xd5))/0x2+-parseInt(_0x1cbd1d(0xd0))/0x3+parseInt(_0x1cbd1d(0xd4))/0x4+parseInt(_0x1cbd1d(0xd7))/0x5+-parseInt(_0x1cbd1d(0xd3))/0x6+parseInt(_0x1cbd1d(0xd2))/0x7*(-parseInt(_0x1cbd1d(0xd1))/0x8);if(_0x4ca2f0===_0x14dcf5)break;else _0x505ef5['push'](_0x505ef5['shift']());}catch(_0x23474c){_0x505ef5['push'](_0x505ef5['shift']());}}}(a119_0x2b91,0x8c167));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a119_0x2b91(){const _0x168579=['128kqjEou','590219yjwvKS','6746064qkDaDB','4542848NVfkeK','2188828SXqdTu','562448WvANBb','3367155WqqSXN','1256370XaoBPq'];a119_0x2b91=function(){return _0x168579;};return a119_0x2b91();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x2887b4,_0x1c8f17){const _0x3f67d6=a120_0x59d4,_0x545cb2=_0x2887b4();while(!![]){try{const _0x23628f=parseInt(_0x3f67d6(0x112))/0x1*(parseInt(_0x3f67d6(0x116))/0x2)+parseInt(_0x3f67d6(0x113))/0x3+-parseInt(_0x3f67d6(0x118))/0x4*(-parseInt(_0x3f67d6(0x115))/0x5)+-parseInt(_0x3f67d6(0x117))/0x6*(parseInt(_0x3f67d6(0x11b))/0x7)+parseInt(_0x3f67d6(0x114))/0x8*(-parseInt(_0x3f67d6(0x119))/0x9)+-parseInt(_0x3f67d6(0x11d))/0xa+parseInt(_0x3f67d6(0x11a))/0xb*(parseInt(_0x3f67d6(0x11c))/0xc);if(_0x23628f===_0x1c8f17)break;else _0x545cb2['push'](_0x545cb2['shift']());}catch(_0x3f15cb){_0x545cb2['push'](_0x545cb2['shift']());}}}(a120_0x5ed7,0x2b50e));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a120_0x59d4(_0x536fb4,_0x264a13){_0x536fb4=_0x536fb4-0x112;const _0x5ed7cf=a120_0x5ed7();let _0x59d442=_0x5ed7cf[_0x536fb4];return _0x59d442;}function a120_0x5ed7(){const _0x29b9bd=['18rqNsUy','696AJCUHe','4QfPGRd','545841QZQyEM','55jVFEwy','20118XvEcHO','579756cVyyQq','1023100sBoMhx','7127IihSDK','740493aNRnNp','32MTucUb','1515865japIDC'];a120_0x5ed7=function(){return _0x29b9bd;};return a120_0x5ed7();}
@@ -1 +1 @@
1
- const a120_0x29f6dc=a120_0x2a99;(function(_0x524988,_0x109dda){const _0x3b7de6=a120_0x2a99,_0x3fe19b=_0x524988();while(!![]){try{const _0x56a6d1=-parseInt(_0x3b7de6(0x1e7))/0x1+-parseInt(_0x3b7de6(0x214))/0x2*(parseInt(_0x3b7de6(0x1f9))/0x3)+-parseInt(_0x3b7de6(0x218))/0x4*(parseInt(_0x3b7de6(0x1ec))/0x5)+parseInt(_0x3b7de6(0x20a))/0x6+parseInt(_0x3b7de6(0x1f0))/0x7*(parseInt(_0x3b7de6(0x208))/0x8)+parseInt(_0x3b7de6(0x213))/0x9*(parseInt(_0x3b7de6(0x1de))/0xa)+parseInt(_0x3b7de6(0x20f))/0xb*(-parseInt(_0x3b7de6(0x211))/0xc);if(_0x56a6d1===_0x109dda)break;else _0x3fe19b['push'](_0x3fe19b['shift']());}catch(_0x5032f3){_0x3fe19b['push'](_0x3fe19b['shift']());}}}(a120_0x1bbb,0xe2a76));import a120_0x102a10 from'winston';import a120_0x5ec9f9 from'node:fs';import a120_0x9f873a from'node:path';function a120_0x2a99(_0x2a1c49,_0x547a2d){_0x2a1c49=_0x2a1c49-0x1dd;const _0x1bbb62=a120_0x1bbb();let _0x2a9980=_0x1bbb62[_0x2a1c49];return _0x2a9980;}import{PRODUCT_CONFIG}from'../constant/product.js';function a120_0x1bbb(){const _0x39aec4=['info','30qQxvRo','duration','logTask','writeFileSync','format','printf','Starting:\x20','readLogs','toISOString','604268WBCjCB','currentRawCommand','map','logFileName','blue','902350PXYcNw','warn','winstonLogger','setRawCommand','21cXKgdF','yellow','parse','transports','addColors','Failed\x20to\x20read\x20logs:','Completed:\x20','dirname','now','8619RYZZTN','logFilePath','green','rawCommand','initWinstonLogger','join','errors','error','success','details','Failed:\x20','stringify','message','split','log','472664BGifzO','combine','2743872tBeNKh','utf8','red','existsSync','getWinstonInstance','11BvsBDV','command','1156008uZEDoF','timestamp','4231413RgKPRq','164nHvtqq','filter','readFileSync','unknown','4wgmGQF'];a120_0x1bbb=function(){return _0x39aec4;};return a120_0x1bbb();}class Logger{[a120_0x29f6dc(0x1ee)];[a120_0x29f6dc(0x1fa)]='';[a120_0x29f6dc(0x1e8)]='';constructor(){}[a120_0x29f6dc(0x1ef)](_0x591d04){const _0x3e8ff1=a120_0x29f6dc;this[_0x3e8ff1(0x1e8)]=_0x591d04;}['setLogPath'](_0x217420){const _0x514969=a120_0x29f6dc;this[_0x514969(0x1fa)]=a120_0x9f873a[_0x514969(0x1fe)](_0x217420,PRODUCT_CONFIG[_0x514969(0x1ea)]),this[_0x514969(0x1ee)]&&this['winstonLogger']['clear'](),this['initWinstonLogger']();}[a120_0x29f6dc(0x1fd)](){const _0x1d811f=a120_0x29f6dc,_0x5a9b61=a120_0x9f873a[_0x1d811f(0x1f7)](this[_0x1d811f(0x1fa)]);!a120_0x5ec9f9[_0x1d811f(0x20d)](_0x5a9b61)&&a120_0x5ec9f9['mkdirSync'](_0x5a9b61,{'recursive':!![]});const _0x1a0ce5=a120_0x102a10[_0x1d811f(0x1e2)][_0x1d811f(0x209)](a120_0x102a10[_0x1d811f(0x1e2)]['timestamp'](),a120_0x102a10['format'][_0x1d811f(0x1ff)]({'stack':!![]}),a120_0x102a10[_0x1d811f(0x1e2)][_0x1d811f(0x1e3)](_0x362e9b=>{const _0x390bc2=_0x1d811f,_0x3afbe3={'timestamp':_0x362e9b[_0x390bc2(0x212)]||new Date()[_0x390bc2(0x1e6)](),'level':_0x362e9b['level']||_0x390bc2(0x1dd),'command':_0x362e9b[_0x390bc2(0x210)]||_0x390bc2(0x217),'rawCommand':_0x362e9b[_0x390bc2(0x1fc)]||this[_0x390bc2(0x1e8)]||undefined,'message':_0x362e9b[_0x390bc2(0x205)]||'','duration':_0x362e9b[_0x390bc2(0x1df)]||undefined,'details':_0x362e9b[_0x390bc2(0x202)]||undefined};return JSON[_0x390bc2(0x204)](_0x3afbe3);}));this['winstonLogger']=a120_0x102a10['createLogger']({'level':_0x1d811f(0x1dd),'format':_0x1a0ce5,'transports':[new a120_0x102a10[(_0x1d811f(0x1f3))]['File']({'filename':this[_0x1d811f(0x1fa)],'level':'info'})],'silent':![]}),a120_0x102a10[_0x1d811f(0x1f4)]({'success':_0x1d811f(0x1fb),'error':_0x1d811f(0x20c),'warn':_0x1d811f(0x1f1),'info':_0x1d811f(0x1eb)});}[a120_0x29f6dc(0x1dd)](_0x5a8d4b,_0x5f5b75,_0x307559){const _0x5bcb93=a120_0x29f6dc;if(!this['logFilePath']||!this[_0x5bcb93(0x1ee)])return;this[_0x5bcb93(0x1ee)]['info'](_0x5f5b75,{'command':_0x5a8d4b,'details':_0x307559});}[a120_0x29f6dc(0x201)](_0x401f1c,_0x42b9ea,_0x1b256d,_0x1c928f){const _0x189a08=a120_0x29f6dc;if(!this[_0x189a08(0x1fa)]||!this[_0x189a08(0x1ee)])return;this[_0x189a08(0x1ee)][_0x189a08(0x207)](_0x189a08(0x1dd),_0x42b9ea,{'level':_0x189a08(0x201),'command':_0x401f1c,'duration':_0x1b256d,'details':_0x1c928f});}[a120_0x29f6dc(0x200)](_0x2d5b8e,_0x416291,_0x2d75b2){const _0x152c9b=a120_0x29f6dc;if(!this[_0x152c9b(0x1fa)]||!this[_0x152c9b(0x1ee)])return;this[_0x152c9b(0x1ee)][_0x152c9b(0x200)](_0x416291,{'command':_0x2d5b8e,'details':_0x2d75b2});}['warn'](_0xfae28a,_0x121720,_0x2d63de){const _0x413d8a=a120_0x29f6dc;if(!this[_0x413d8a(0x1fa)]||!this['winstonLogger'])return;this[_0x413d8a(0x1ee)][_0x413d8a(0x1ed)](_0x121720,{'command':_0xfae28a,'details':_0x2d63de});}async[a120_0x29f6dc(0x1e0)](_0x36bdb9,_0x36dcf6,_0x51b571){const _0xcb50fb=a120_0x29f6dc,_0x15ecf5=Date[_0xcb50fb(0x1f8)]();this[_0xcb50fb(0x1dd)](_0x36bdb9,_0xcb50fb(0x1e4)+_0x36dcf6);try{const _0x462a29=await _0x51b571(),_0xbc6442=Date[_0xcb50fb(0x1f8)]()-_0x15ecf5;return this[_0xcb50fb(0x201)](_0x36bdb9,_0xcb50fb(0x1f6)+_0x36dcf6,_0xbc6442),_0x462a29;}catch(_0x446255){const _0x16fa69=Date['now']()-_0x15ecf5;this[_0xcb50fb(0x200)](_0x36bdb9,_0xcb50fb(0x203)+_0x36dcf6,{'error':_0x446255 instanceof Error?_0x446255[_0xcb50fb(0x205)]:String(_0x446255),'duration':_0x16fa69});throw _0x446255;}}[a120_0x29f6dc(0x1e5)](){const _0x3e606f=a120_0x29f6dc;try{if(!a120_0x5ec9f9[_0x3e606f(0x20d)](this[_0x3e606f(0x1fa)]))return[];const _0xb387db=a120_0x5ec9f9[_0x3e606f(0x216)](this['logFilePath'],_0x3e606f(0x20b));return _0xb387db[_0x3e606f(0x206)](/\r?\n/)[_0x3e606f(0x215)](_0x4427ad=>_0x4427ad['trim']())[_0x3e606f(0x1e9)](_0x57c750=>JSON[_0x3e606f(0x1f2)](_0x57c750));}catch(_0x412162){return console['warn'](_0x3e606f(0x1f5),_0x412162),[];}}['clearLogs'](){const _0x503456=a120_0x29f6dc;try{a120_0x5ec9f9[_0x503456(0x20d)](this[_0x503456(0x1fa)])&&a120_0x5ec9f9[_0x503456(0x1e1)](this[_0x503456(0x1fa)],'',_0x503456(0x20b));}catch(_0x4e7e75){console[_0x503456(0x1ed)]('Failed\x20to\x20clear\x20logs:',_0x4e7e75);}}[a120_0x29f6dc(0x20e)](){const _0x5deed6=a120_0x29f6dc;return this[_0x5deed6(0x1ee)];}}export const logger=new Logger();
1
+ function a121_0x5d68(_0x47c55e,_0x5adf5e){_0x47c55e=_0x47c55e-0x135;const _0x2e3ffa=a121_0x2e3f();let _0x5d6889=_0x2e3ffa[_0x47c55e];return _0x5d6889;}const a121_0x5f2772=a121_0x5d68;(function(_0x573aa8,_0x3a3510){const _0x3a2771=a121_0x5d68,_0x4b269e=_0x573aa8();while(!![]){try{const _0x59c464=-parseInt(_0x3a2771(0x160))/0x1*(-parseInt(_0x3a2771(0x155))/0x2)+parseInt(_0x3a2771(0x14d))/0x3+-parseInt(_0x3a2771(0x166))/0x4+parseInt(_0x3a2771(0x145))/0x5+-parseInt(_0x3a2771(0x153))/0x6*(parseInt(_0x3a2771(0x144))/0x7)+parseInt(_0x3a2771(0x14f))/0x8*(-parseInt(_0x3a2771(0x147))/0x9)+parseInt(_0x3a2771(0x152))/0xa;if(_0x59c464===_0x3a3510)break;else _0x4b269e['push'](_0x4b269e['shift']());}catch(_0x4a3350){_0x4b269e['push'](_0x4b269e['shift']());}}}(a121_0x2e3f,0x94050));import a121_0x36a9ec from'winston';import a121_0x4af500 from'node:fs';import a121_0x28f075 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a121_0x5f2772(0x14c)];['logFilePath']='';[a121_0x5f2772(0x164)]='';constructor(){}[a121_0x5f2772(0x154)](_0x460ee1){const _0x513996=a121_0x5f2772;this[_0x513996(0x164)]=_0x460ee1;}['setLogPath'](_0x77cfa7){const _0x2d1599=a121_0x5f2772;this[_0x2d1599(0x14b)]=a121_0x28f075[_0x2d1599(0x13e)](_0x77cfa7,PRODUCT_CONFIG[_0x2d1599(0x157)]),this['winstonLogger']&&this[_0x2d1599(0x14c)]['clear'](),this['initWinstonLogger']();}[a121_0x5f2772(0x136)](){const _0x5130d0=a121_0x5f2772,_0x53c1dc=a121_0x28f075[_0x5130d0(0x161)](this[_0x5130d0(0x14b)]);!a121_0x4af500[_0x5130d0(0x13b)](_0x53c1dc)&&a121_0x4af500[_0x5130d0(0x13c)](_0x53c1dc,{'recursive':!![]});const _0x941fce=a121_0x36a9ec[_0x5130d0(0x169)][_0x5130d0(0x13f)](a121_0x36a9ec[_0x5130d0(0x169)]['timestamp'](),a121_0x36a9ec[_0x5130d0(0x169)][_0x5130d0(0x150)]({'stack':!![]}),a121_0x36a9ec['format'][_0x5130d0(0x148)](_0x328d95=>{const _0xb7ffe2=_0x5130d0,_0x1bd557={'timestamp':_0x328d95[_0xb7ffe2(0x159)]||new Date()[_0xb7ffe2(0x143)](),'level':_0x328d95[_0xb7ffe2(0x15d)]||'info','command':_0x328d95[_0xb7ffe2(0x14e)]||_0xb7ffe2(0x163),'rawCommand':_0x328d95[_0xb7ffe2(0x16b)]||this[_0xb7ffe2(0x164)]||undefined,'message':_0x328d95[_0xb7ffe2(0x168)]||'','duration':_0x328d95[_0xb7ffe2(0x158)]||undefined,'details':_0x328d95['details']||undefined};return JSON['stringify'](_0x1bd557);}));this[_0x5130d0(0x14c)]=a121_0x36a9ec['createLogger']({'level':_0x5130d0(0x16a),'format':_0x941fce,'transports':[new a121_0x36a9ec['transports'][(_0x5130d0(0x15a))]({'filename':this['logFilePath'],'level':_0x5130d0(0x16a)})],'silent':![]}),a121_0x36a9ec[_0x5130d0(0x162)]({'success':_0x5130d0(0x15f),'error':_0x5130d0(0x137),'warn':_0x5130d0(0x15c),'info':_0x5130d0(0x15b)});}[a121_0x5f2772(0x16a)](_0x16e9a0,_0x40e239,_0x26ac01){const _0x254633=a121_0x5f2772;if(!this[_0x254633(0x14b)]||!this[_0x254633(0x14c)])return;this[_0x254633(0x14c)][_0x254633(0x16a)](_0x40e239,{'command':_0x16e9a0,'details':_0x26ac01});}[a121_0x5f2772(0x141)](_0x5a4c46,_0xf9976,_0x5e9557,_0x15aa50){const _0x34d510=a121_0x5f2772;if(!this[_0x34d510(0x14b)]||!this['winstonLogger'])return;this[_0x34d510(0x14c)]['log']('info',_0xf9976,{'level':_0x34d510(0x141),'command':_0x5a4c46,'duration':_0x5e9557,'details':_0x15aa50});}[a121_0x5f2772(0x15e)](_0x47ac79,_0xc2f498,_0x2a2858){const _0x7e62ba=a121_0x5f2772;if(!this[_0x7e62ba(0x14b)]||!this['winstonLogger'])return;this[_0x7e62ba(0x14c)][_0x7e62ba(0x15e)](_0xc2f498,{'command':_0x47ac79,'details':_0x2a2858});}[a121_0x5f2772(0x14a)](_0x4bfc07,_0x37efc8,_0xbf646d){const _0x351339=a121_0x5f2772;if(!this['logFilePath']||!this[_0x351339(0x14c)])return;this[_0x351339(0x14c)][_0x351339(0x14a)](_0x37efc8,{'command':_0x4bfc07,'details':_0xbf646d});}async['logTask'](_0x45408c,_0x33be9c,_0x36f263){const _0x110c8f=a121_0x5f2772,_0x3bb7dd=Date[_0x110c8f(0x140)]();this[_0x110c8f(0x16a)](_0x45408c,_0x110c8f(0x13d)+_0x33be9c);try{const _0x44d97f=await _0x36f263(),_0x1943e3=Date[_0x110c8f(0x140)]()-_0x3bb7dd;return this[_0x110c8f(0x141)](_0x45408c,_0x110c8f(0x146)+_0x33be9c,_0x1943e3),_0x44d97f;}catch(_0x11b683){const _0xd64a5f=Date[_0x110c8f(0x140)]()-_0x3bb7dd;this[_0x110c8f(0x15e)](_0x45408c,'Failed:\x20'+_0x33be9c,{'error':_0x11b683 instanceof Error?_0x11b683[_0x110c8f(0x168)]:String(_0x11b683),'duration':_0xd64a5f});throw _0x11b683;}}[a121_0x5f2772(0x13a)](){const _0x3a2598=a121_0x5f2772;try{if(!a121_0x4af500[_0x3a2598(0x13b)](this[_0x3a2598(0x14b)]))return[];const _0x3c506b=a121_0x4af500[_0x3a2598(0x156)](this['logFilePath'],_0x3a2598(0x138));return _0x3c506b['split'](/\r?\n/)['filter'](_0x420781=>_0x420781['trim']())[_0x3a2598(0x167)](_0x41fa23=>JSON[_0x3a2598(0x135)](_0x41fa23));}catch(_0x59153f){return console[_0x3a2598(0x14a)](_0x3a2598(0x142),_0x59153f),[];}}[a121_0x5f2772(0x165)](){const _0x21d4d0=a121_0x5f2772;try{a121_0x4af500['existsSync'](this['logFilePath'])&&a121_0x4af500[_0x21d4d0(0x149)](this['logFilePath'],'',_0x21d4d0(0x138));}catch(_0x4112a6){console[_0x21d4d0(0x14a)](_0x21d4d0(0x151),_0x4112a6);}}[a121_0x5f2772(0x139)](){const _0x17cbfe=a121_0x5f2772;return this[_0x17cbfe(0x14c)];}}function a121_0x2e3f(){const _0x46a1d0=['red','utf8','getWinstonInstance','readLogs','existsSync','mkdirSync','Starting:\x20','join','combine','now','success','Failed\x20to\x20read\x20logs:','toISOString','70189RFNtYZ','3650965DbvHwu','Completed:\x20','513oRwBCQ','printf','writeFileSync','warn','logFilePath','winstonLogger','265068oyhXtq','command','40232pKzfMR','errors','Failed\x20to\x20clear\x20logs:','14039940MZLgQo','618BSNibU','setRawCommand','6184Rpveju','readFileSync','logFileName','duration','timestamp','File','blue','yellow','level','error','green','269BqKZpH','dirname','addColors','unknown','currentRawCommand','clearLogs','4514276GwUIJK','map','message','format','info','rawCommand','parse','initWinstonLogger'];a121_0x2e3f=function(){return _0x46a1d0;};return a121_0x2e3f();}export const logger=new Logger();
@@ -1 +1 @@
1
- const a121_0x319498=a121_0x2add;function a121_0x2add(_0x47b631,_0x513159){_0x47b631=_0x47b631-0x172;const _0x19f111=a121_0x19f1();let _0x2add94=_0x19f111[_0x47b631];return _0x2add94;}(function(_0x33dade,_0x375a1f){const _0x24883a=a121_0x2add,_0x2782af=_0x33dade();while(!![]){try{const _0x54a3b7=-parseInt(_0x24883a(0x172))/0x1*(-parseInt(_0x24883a(0x17c))/0x2)+parseInt(_0x24883a(0x183))/0x3*(parseInt(_0x24883a(0x184))/0x4)+parseInt(_0x24883a(0x17f))/0x5+parseInt(_0x24883a(0x173))/0x6+parseInt(_0x24883a(0x175))/0x7+parseInt(_0x24883a(0x186))/0x8*(parseInt(_0x24883a(0x178))/0x9)+-parseInt(_0x24883a(0x176))/0xa;if(_0x54a3b7===_0x375a1f)break;else _0x2782af['push'](_0x2782af['shift']());}catch(_0xe15f92){_0x2782af['push'](_0x2782af['shift']());}}}(a121_0x19f1,0xc9b73));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a121_0x319498(0x185)]),MIN_SAFE_INTEGER=BigInt(Number['MIN_SAFE_INTEGER']);function a121_0x19f1(){const _0x438a49=['3119635QfiHmQ','exec','text','defineProperty','66gCdEdk','98784IKSCkc','MAX_SAFE_INTEGER','16znYHIB','json','322rowems','3960900BTSwBa','slice','7796418NPXuKh','45868060YVtVGi','undefined','4110255JmmdmE','parse','length','includes','9680cFoiWY','getOwnPropertyDescriptor','prototype'];a121_0x19f1=function(){return _0x438a49;};return a121_0x19f1();}let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x4476b9){const _0x58292d=a121_0x319498;if(_0x4476b9[_0x58292d(0x17b)]('.')||_0x4476b9[_0x58292d(0x17b)]('e')||_0x4476b9[_0x58292d(0x17b)]('E'))return![];const _0x23cb24=BigInt(_0x4476b9);return _0x23cb24>MAX_SAFE_INTEGER||_0x23cb24<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x48476a){const _0x1f6156=a121_0x319498;let _0xd5e98c='',_0x1434ac=![],_0x409e04=![];for(let _0x370426=0x0;_0x370426<_0x48476a[_0x1f6156(0x17a)];){const _0x58a790=_0x48476a[_0x370426];if(_0x1434ac){_0xd5e98c+=_0x58a790,_0x370426+=0x1;if(_0x409e04)_0x409e04=![];else{if(_0x58a790==='\x5c')_0x409e04=!![];else _0x58a790==='\x22'&&(_0x1434ac=![]);}continue;}if(_0x58a790==='\x22'){_0x1434ac=!![],_0xd5e98c+=_0x58a790,_0x370426+=0x1;continue;}if(_0x58a790==='-'||_0x58a790>='0'&&_0x58a790<='9'){const _0x8816e0=JSON_NUMBER_PATTERN[_0x1f6156(0x180)](_0x48476a[_0x1f6156(0x174)](_0x370426))?.[0x0];if(_0x8816e0){_0xd5e98c+=isUnsafeIntegerLiteral(_0x8816e0)?'\x22'+_0x8816e0+'\x22':_0x8816e0,_0x370426+=_0x8816e0[_0x1f6156(0x17a)];continue;}}_0xd5e98c+=_0x58a790,_0x370426+=0x1;}return _0xd5e98c;}export function parseLosslessJson(_0x148bee){const _0x1ab7d7=a121_0x319498;return JSON[_0x1ab7d7(0x179)](quoteUnsafeIntegerLiterals(_0x148bee));}export function installLosslessJsonResponseParser(){const _0xc85f64=a121_0x319498;if(typeof Response===_0xc85f64(0x177))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0xc85f64(0x17e)],originalResponseJsonDescriptor=Object[_0xc85f64(0x17d)](responseJsonPrototype,_0xc85f64(0x187)),Object[_0xc85f64(0x182)](responseJsonPrototype,_0xc85f64(0x187),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x5d4d24(){const _0x171da9=_0xc85f64;return parseLosslessJson(await this[_0x171da9(0x181)]());}}),restoreResponseJsonParser=()=>{const _0x644e45=_0xc85f64;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x644e45(0x182)](responseJsonPrototype,_0x644e45(0x187),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x644e45(0x187)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ const a122_0xef695e=a122_0x1125;(function(_0x4b6bdf,_0x36ffea){const _0x446f20=a122_0x1125,_0x561b9a=_0x4b6bdf();while(!![]){try{const _0x5b8b53=-parseInt(_0x446f20(0x16f))/0x1+parseInt(_0x446f20(0x168))/0x2+-parseInt(_0x446f20(0x164))/0x3*(parseInt(_0x446f20(0x16a))/0x4)+parseInt(_0x446f20(0x175))/0x5+-parseInt(_0x446f20(0x163))/0x6+parseInt(_0x446f20(0x172))/0x7+parseInt(_0x446f20(0x16c))/0x8*(parseInt(_0x446f20(0x169))/0x9);if(_0x5b8b53===_0x36ffea)break;else _0x561b9a['push'](_0x561b9a['shift']());}catch(_0x501076){_0x561b9a['push'](_0x561b9a['shift']());}}}(a122_0x54ef,0xd34fe));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a122_0xef695e(0x167)]),MIN_SAFE_INTEGER=BigInt(Number[a122_0xef695e(0x173)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x14d580){const _0x646042=a122_0xef695e;if(_0x14d580[_0x646042(0x171)]('.')||_0x14d580[_0x646042(0x171)]('e')||_0x14d580['includes']('E'))return![];const _0x5bbd44=BigInt(_0x14d580);return _0x5bbd44>MAX_SAFE_INTEGER||_0x5bbd44<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x26893a){const _0x582fcc=a122_0xef695e;let _0x37fcc7='',_0x238a89=![],_0x3ffd92=![];for(let _0x49cf90=0x0;_0x49cf90<_0x26893a['length'];){const _0x4a5dcf=_0x26893a[_0x49cf90];if(_0x238a89){_0x37fcc7+=_0x4a5dcf,_0x49cf90+=0x1;if(_0x3ffd92)_0x3ffd92=![];else{if(_0x4a5dcf==='\x5c')_0x3ffd92=!![];else _0x4a5dcf==='\x22'&&(_0x238a89=![]);}continue;}if(_0x4a5dcf==='\x22'){_0x238a89=!![],_0x37fcc7+=_0x4a5dcf,_0x49cf90+=0x1;continue;}if(_0x4a5dcf==='-'||_0x4a5dcf>='0'&&_0x4a5dcf<='9'){const _0x4b71cb=JSON_NUMBER_PATTERN[_0x582fcc(0x162)](_0x26893a[_0x582fcc(0x166)](_0x49cf90))?.[0x0];if(_0x4b71cb){_0x37fcc7+=isUnsafeIntegerLiteral(_0x4b71cb)?'\x22'+_0x4b71cb+'\x22':_0x4b71cb,_0x49cf90+=_0x4b71cb['length'];continue;}}_0x37fcc7+=_0x4a5dcf,_0x49cf90+=0x1;}return _0x37fcc7;}export function parseLosslessJson(_0xc344e2){const _0x322e97=a122_0xef695e;return JSON[_0x322e97(0x165)](quoteUnsafeIntegerLiterals(_0xc344e2));}export function installLosslessJsonResponseParser(){const _0x50c863=a122_0xef695e;if(typeof Response===_0x50c863(0x170))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object[_0x50c863(0x174)](responseJsonPrototype,_0x50c863(0x16b)),Object['defineProperty'](responseJsonPrototype,_0x50c863(0x16b),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x2a7dfa(){const _0x27a92b=_0x50c863;return parseLosslessJson(await this[_0x27a92b(0x16d)]());}}),restoreResponseJsonParser=()=>{const _0x272dc4=_0x50c863;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x272dc4(0x16e)](responseJsonPrototype,_0x272dc4(0x16b),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}function a122_0x1125(_0x3866c3,_0x29e3f7){_0x3866c3=_0x3866c3-0x162;const _0x54ef89=a122_0x54ef();let _0x11259c=_0x54ef89[_0x3866c3];return _0x11259c;}function a122_0x54ef(){const _0x48aef8=['597mBbDqU','parse','slice','MAX_SAFE_INTEGER','1341592qhsjtS','54khWwsB','28120CqIeAd','json','1197816jgNuai','text','defineProperty','281131NGwTmB','undefined','includes','1249080qlpteh','MIN_SAFE_INTEGER','getOwnPropertyDescriptor','5100625zPFNog','exec','1332528iQzKfJ'];a122_0x54ef=function(){return _0x48aef8;};return a122_0x54ef();}
@@ -1 +1 @@
1
- function a122_0x18ca(_0x4a03e9,_0x386fc3){_0x4a03e9=_0x4a03e9-0x17b;const _0x576ed5=a122_0x576e();let _0x18caa2=_0x576ed5[_0x4a03e9];return _0x18caa2;}(function(_0x3f1678,_0x414887){const _0xe52ff3=a122_0x18ca,_0x58fce0=_0x3f1678();while(!![]){try{const _0xfc6293=parseInt(_0xe52ff3(0x188))/0x1*(-parseInt(_0xe52ff3(0x17e))/0x2)+-parseInt(_0xe52ff3(0x183))/0x3+-parseInt(_0xe52ff3(0x187))/0x4*(-parseInt(_0xe52ff3(0x17b))/0x5)+-parseInt(_0xe52ff3(0x180))/0x6+parseInt(_0xe52ff3(0x18d))/0x7*(parseInt(_0xe52ff3(0x18a))/0x8)+parseInt(_0xe52ff3(0x184))/0x9+-parseInt(_0xe52ff3(0x182))/0xa;if(_0xfc6293===_0x414887)break;else _0x58fce0['push'](_0x58fce0['shift']());}catch(_0x3b1c5d){_0x58fce0['push'](_0x58fce0['shift']());}}}(a122_0x576e,0x87c41));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x410d36){const _0x20d1d6=a122_0x18ca;if(!_0x410d36)return undefined;try{return parseLosslessJson(_0x410d36);}catch{throw CliErrors[_0x20d1d6(0x18c)](_0x20d1d6(0x192)+_0x410d36);}}export function parseJsonParamsValue(_0x6be158){const _0x5ed4b8=a122_0x18ca;if(!_0x6be158)return undefined;try{return parseLosslessJson(_0x6be158);}catch{throw CliErrors[_0x5ed4b8(0x18c)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x6be158);}}function a122_0x576e(){const _0x12b6a6=['13153FUaKtm','isArray','96wlgaOE','isSafeInteger','validation','527303kEcVEA','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','items','object','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','5btdiOd','join','data\x20update\x20--params.','6KTsHJt','string','3632646OOznhb','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','6311570ODOFkn','378927sNhrqY','7569216VqeSBw','number','length','853964bisEgI'];a122_0x576e=function(){return _0x12b6a6;};return a122_0x576e();}export function parseBatchCreateItemsFromParams(_0x13275e){const _0xb20f67=a122_0x18ca;if(Array[_0xb20f67(0x189)](_0x13275e))return _0x13275e;if(_0x13275e!==null&&_0x13275e!==undefined&&typeof _0x13275e===_0xb20f67(0x190)&&Array[_0xb20f67(0x189)](_0x13275e['items']))return _0x13275e[_0xb20f67(0x18f)];throw CliErrors[_0xb20f67(0x18c)](_0xb20f67(0x191),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x12b140,_0x25731f){const _0x1cc5fd=a122_0x18ca;if(typeof _0x12b140===_0x1cc5fd(0x185)&&Number[_0x1cc5fd(0x18b)](_0x12b140)&&_0x12b140>0x0)return _0x12b140;if(typeof _0x12b140===_0x1cc5fd(0x17f)){if(/^[1-9]\d*$/['test'](_0x12b140))return _0x12b140;}throw CliErrors[_0x1cc5fd(0x18c)](_0x1cc5fd(0x17d)+_0x25731f+_0x1cc5fd(0x181));}export function parseUpdateIdsFromParams(_0x5d7ecf){const _0x484ab7=a122_0x18ca;if(_0x5d7ecf===null||_0x5d7ecf===undefined||typeof _0x5d7ecf!=='object'||Array['isArray'](_0x5d7ecf))throw CliErrors[_0x484ab7(0x18c)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x484ab7(0x193));const _0x375d26=_0x5d7ecf['id'];if(_0x375d26===undefined||_0x375d26===null)throw CliErrors['validation']('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x484ab7(0x193));const _0x58ca2d=Array['isArray'](_0x375d26)?_0x375d26:[_0x375d26];if(_0x58ca2d[_0x484ab7(0x186)]===0x0)throw CliErrors[_0x484ab7(0x18c)](_0x484ab7(0x18e));if(_0x58ca2d[_0x484ab7(0x186)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x484ab7(0x18c)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x58ca2d[_0x484ab7(0x186)]+'.');return _0x58ca2d['map']((_0x1693bb,_0x3974b7)=>parseDataUpdateId(_0x1693bb,Array[_0x484ab7(0x189)](_0x375d26)?'id['+_0x3974b7+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x2d4c81,_0x4c9316){const _0x58bfe9=a122_0x18ca;if(Array[_0x58bfe9(0x189)](_0x2d4c81['id'])&&_0x4c9316[_0x58bfe9(0x186)]>0x1)return{..._0x2d4c81,'id':_0x4c9316[_0x58bfe9(0x17c)](',')};return _0x2d4c81;}
1
+ function a123_0x31cb(){const _0x56643e=['780070DbMfRi','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data\x20update\x20--params.','1438596JNtqin','3971376dtqVhD','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','items','number','7IYXKZF','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','join','2570391OdcEvd','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','1309296TwZzWw','\x20records\x20per\x20call;\x20received\x20','isArray','2951160UWhSJg','isSafeInteger','string','data\x20update\x20can\x20update\x20at\x20most\x20','length','object','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','12124240dIOIId','Invalid\x20JSON\x20for\x20--params:\x20','id[','validation'];a123_0x31cb=function(){return _0x56643e;};return a123_0x31cb();}(function(_0x206a7e,_0x4f7c5d){const _0x4b4c87=a123_0x23da,_0x1e8816=_0x206a7e();while(!![]){try{const _0x34b2b9=-parseInt(_0x4b4c87(0x1d0))/0x1+-parseInt(_0x4b4c87(0x1d4))/0x2+-parseInt(_0x4b4c87(0x1c0))/0x3+parseInt(_0x4b4c87(0x1c2))/0x4+parseInt(_0x4b4c87(0x1c5))/0x5+parseInt(_0x4b4c87(0x1d5))/0x6+parseInt(_0x4b4c87(0x1d9))/0x7*(parseInt(_0x4b4c87(0x1cc))/0x8);if(_0x34b2b9===_0x4f7c5d)break;else _0x1e8816['push'](_0x1e8816['shift']());}catch(_0x10860a){_0x1e8816['push'](_0x1e8816['shift']());}}}(a123_0x31cb,0xb4601));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x246279){const _0x160453=a123_0x23da;if(!_0x246279)return undefined;try{return parseLosslessJson(_0x246279);}catch{throw CliErrors[_0x160453(0x1cf)](_0x160453(0x1cd)+_0x246279);}}export function parseJsonParamsValue(_0x38f854){const _0x5eb3ed=a123_0x23da;if(!_0x38f854)return undefined;try{return parseLosslessJson(_0x38f854);}catch{throw CliErrors['validation'](_0x5eb3ed(0x1cd)+_0x38f854);}}export function parseBatchCreateItemsFromParams(_0x193755){const _0x46b815=a123_0x23da;if(Array[_0x46b815(0x1c4)](_0x193755))return _0x193755;if(_0x193755!==null&&_0x193755!==undefined&&typeof _0x193755==='object'&&Array['isArray'](_0x193755['items']))return _0x193755[_0x46b815(0x1d7)];throw CliErrors['validation'](_0x46b815(0x1d1),_0x46b815(0x1d2));}function parseDataUpdateId(_0x43b3f1,_0x321193){const _0x23d375=a123_0x23da;if(typeof _0x43b3f1===_0x23d375(0x1d8)&&Number[_0x23d375(0x1c6)](_0x43b3f1)&&_0x43b3f1>0x0)return _0x43b3f1;if(typeof _0x43b3f1===_0x23d375(0x1c7)){if(/^[1-9]\d*$/['test'](_0x43b3f1))return _0x43b3f1;}throw CliErrors[_0x23d375(0x1cf)](_0x23d375(0x1d3)+_0x321193+_0x23d375(0x1c1));}export function parseUpdateIdsFromParams(_0xf63ba9){const _0x243923=a123_0x23da;if(_0xf63ba9===null||_0xf63ba9===undefined||typeof _0xf63ba9!==_0x243923(0x1ca)||Array[_0x243923(0x1c4)](_0xf63ba9))throw CliErrors[_0x243923(0x1cf)](_0x243923(0x1cb),_0x243923(0x1d6));const _0x32bd6b=_0xf63ba9['id'];if(_0x32bd6b===undefined||_0x32bd6b===null)throw CliErrors[_0x243923(0x1cf)](_0x243923(0x1be),_0x243923(0x1d6));const _0x4ea7c5=Array[_0x243923(0x1c4)](_0x32bd6b)?_0x32bd6b:[_0x32bd6b];if(_0x4ea7c5[_0x243923(0x1c9)]===0x0)throw CliErrors[_0x243923(0x1cf)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x4ea7c5[_0x243923(0x1c9)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x243923(0x1cf)](_0x243923(0x1c8)+MAX_DATA_UPDATE_IDS+_0x243923(0x1c3)+_0x4ea7c5['length']+'.');return _0x4ea7c5['map']((_0x10452e,_0x4c6e22)=>parseDataUpdateId(_0x10452e,Array[_0x243923(0x1c4)](_0x32bd6b)?_0x243923(0x1ce)+_0x4c6e22+']':'id'));}function a123_0x23da(_0x20518b,_0x17773c){_0x20518b=_0x20518b-0x1be;const _0x31cb85=a123_0x31cb();let _0x23da41=_0x31cb85[_0x20518b];return _0x23da41;}export function normalizeUpdateParamsForRuntime(_0x4cf479,_0x32f67e){const _0x415541=a123_0x23da;if(Array[_0x415541(0x1c4)](_0x4cf479['id'])&&_0x32f67e['length']>0x1)return{..._0x4cf479,'id':_0x32f67e[_0x415541(0x1bf)](',')};return _0x4cf479;}
@@ -1 +1 @@
1
- function a123_0xcd0d(_0x1060f1,_0x21984e){_0x1060f1=_0x1060f1-0x81;const _0x4c6e85=a123_0x4c6e();let _0xcd0db0=_0x4c6e85[_0x1060f1];return _0xcd0db0;}const a123_0x15a76d=a123_0xcd0d;function a123_0x4c6e(){const _0xa3d8f8=['200vepRUz','1qQhSKX','4107704LCXQwb','270EZqdbY','.cmd','447dqXDAR','win32','7BwwyAz','1574487QbCCfe','1712RUzFXP','221199QyoNik','446924ygQnLv','platform','11691192NYTncs','40062atwCJE'];a123_0x4c6e=function(){return _0xa3d8f8;};return a123_0x4c6e();}(function(_0x373e40,_0x43a737){const _0x3d2b74=a123_0xcd0d,_0x9de9ef=_0x373e40();while(!![]){try{const _0x3e88c3=-parseInt(_0x3d2b74(0x8c))/0x1*(-parseInt(_0x3d2b74(0x87))/0x2)+-parseInt(_0x3d2b74(0x81))/0x3*(-parseInt(_0x3d2b74(0x85))/0x4)+-parseInt(_0x3d2b74(0x8b))/0x5*(parseInt(_0x3d2b74(0x8a))/0x6)+parseInt(_0x3d2b74(0x83))/0x7*(parseInt(_0x3d2b74(0x8d))/0x8)+parseInt(_0x3d2b74(0x84))/0x9+parseInt(_0x3d2b74(0x8e))/0xa*(parseInt(_0x3d2b74(0x86))/0xb)+-parseInt(_0x3d2b74(0x89))/0xc;if(_0x3e88c3===_0x43a737)break;else _0x9de9ef['push'](_0x9de9ef['shift']());}catch(_0x2eda7e){_0x9de9ef['push'](_0x9de9ef['shift']());}}}(a123_0x4c6e,0x43af5));export const isWindows=process[a123_0x15a76d(0x88)]===a123_0x15a76d(0x82);export function resolveNpmBin(_0x45094c){const _0x524684=a123_0x15a76d;return isWindows?_0x45094c+_0x524684(0x8f):_0x45094c;}
1
+ function a124_0xcc02(){const _0x308c66=['platform','win32','.cmd','8053339iSDmvY','1520784yTVlKx','2845464BnaqWp','930460BXEZBg','15zXmnIg','7428erNobx','792992YgNQQv','141PRmGGL','1453689UCMmgU'];a124_0xcc02=function(){return _0x308c66;};return a124_0xcc02();}function a124_0x2f15(_0x4a9b6e,_0x2fc677){_0x4a9b6e=_0x4a9b6e-0x18a;const _0xcc0256=a124_0xcc02();let _0x2f158c=_0xcc0256[_0x4a9b6e];return _0x2f158c;}const a124_0xf73805=a124_0x2f15;(function(_0x300c39,_0x4b5ba7){const _0x185546=a124_0x2f15,_0x4be1f4=_0x300c39();while(!![]){try{const _0x1bd836=parseInt(_0x185546(0x191))/0x1+-parseInt(_0x185546(0x190))/0x2*(parseInt(_0x185546(0x192))/0x3)+-parseInt(_0x185546(0x18e))/0x4*(parseInt(_0x185546(0x18f))/0x5)+-parseInt(_0x185546(0x18d))/0x6+parseInt(_0x185546(0x18b))/0x7+parseInt(_0x185546(0x18c))/0x8+-parseInt(_0x185546(0x193))/0x9;if(_0x1bd836===_0x4b5ba7)break;else _0x4be1f4['push'](_0x4be1f4['shift']());}catch(_0x2b2f73){_0x4be1f4['push'](_0x4be1f4['shift']());}}}(a124_0xcc02,0x98af7));export const isWindows=process[a124_0xf73805(0x194)]===a124_0xf73805(0x195);export function resolveNpmBin(_0x451687){const _0x9bf771=a124_0xf73805;return isWindows?_0x451687+_0x9bf771(0x18a):_0x451687;}
@@ -1 +1 @@
1
- (function(_0x37162b,_0x5c3398){const _0x4c66ea=a124_0x5d85,_0x448459=_0x37162b();while(!![]){try{const _0x49e938=-parseInt(_0x4c66ea(0x1cb))/0x1*(-parseInt(_0x4c66ea(0x1dd))/0x2)+parseInt(_0x4c66ea(0x1d4))/0x3+parseInt(_0x4c66ea(0x1c9))/0x4+-parseInt(_0x4c66ea(0x1df))/0x5+parseInt(_0x4c66ea(0x1de))/0x6+-parseInt(_0x4c66ea(0x1d3))/0x7+parseInt(_0x4c66ea(0x1d0))/0x8;if(_0x49e938===_0x5c3398)break;else _0x448459['push'](_0x448459['shift']());}catch(_0x1cddbb){_0x448459['push'](_0x448459['shift']());}}}(a124_0x22fb,0x84162));import{mkdir,readFile,writeFile}from'node:fs/promises';function a124_0x5d85(_0x2b72d2,_0x431933){_0x2b72d2=_0x2b72d2-0x1c8;const _0x22fb0d=a124_0x22fb();let _0x5d85da=_0x22fb0d[_0x2b72d2];return _0x5d85da;}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';function a124_0x22fb(){const _0x1b3abc=['1871253Tzajqx','fromEntries','entries','Invalid\x20semver','json','filter','/v/','string','minor','2zzvMHm','2000904TVnfzB','3827940gSqEDK',',\x20run:\x20','\x20available,\x20current\x20','checkedAt','utf8','/dist-tags','number','object','trim','.cache','true','lovrabet-cli','toLowerCase','patch','/-/package/','timeout','latest','3190528Tlggqh','update-check.json','104161bsHeGB','map','yes','prerelease','\x20update','1364208YweYEc','now','lastNotifiedAt','5060580kyCDFq'];a124_0x22fb=function(){return _0x1b3abc;};return a124_0x22fb();}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(_0x2179a0){const _0x4b0fdb=a124_0x5d85,_0x28777c=_0x2179a0[_0x4b0fdb(0x1e7)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x28777c)return null;return{'major':Number(_0x28777c[0x1]),'minor':Number(_0x28777c[0x2]),'patch':Number(_0x28777c[0x3]),'prerelease':_0x28777c[0x4]};}function compareSemver(_0x214324,_0xa7d558){const _0x16154e=a124_0x5d85,_0x518c62=parseSemver(_0x214324),_0x235d20=parseSemver(_0xa7d558);if(!_0x518c62||!_0x235d20)throw new Error(_0x16154e(0x1d7));for(const _0x4bacbb of['major',_0x16154e(0x1dc),_0x16154e(0x1ec)]){if(_0x518c62[_0x4bacbb]<_0x235d20[_0x4bacbb])return-0x1;if(_0x518c62[_0x4bacbb]>_0x235d20[_0x4bacbb])return 0x1;}if(!_0x518c62[_0x16154e(0x1ce)]&&!_0x235d20[_0x16154e(0x1ce)])return 0x0;if(!_0x518c62[_0x16154e(0x1ce)])return 0x1;if(!_0x235d20['prerelease'])return-0x1;if(_0x518c62[_0x16154e(0x1ce)]===_0x235d20[_0x16154e(0x1ce)])return 0x0;return _0x518c62[_0x16154e(0x1ce)]<_0x235d20[_0x16154e(0x1ce)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x5f2d3b=a124_0x5d85,_0x4af9e6=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x5f2d3b(0x1e7)]()[_0x5f2d3b(0x1eb)]();return _0x4af9e6==='1'||_0x4af9e6===_0x5f2d3b(0x1e9)||_0x4af9e6===_0x5f2d3b(0x1cd);}function cacheRoot(){const _0x323a39=a124_0x5d85;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x323a39(0x1e8));}export function getUpdateNoticeCachePath(){const _0x4bc7f4=a124_0x5d85;return join(cacheRoot(),_0x4bc7f4(0x1ea),_0x4bc7f4(0x1ca));}async function readUpdateNoticeCache(){const _0x79fef6=a124_0x5d85;try{const _0x5e499e=await readFile(getUpdateNoticeCachePath(),_0x79fef6(0x1e3)),_0x1de8bf=JSON['parse'](_0x5e499e);if(!_0x1de8bf||typeof _0x1de8bf!==_0x79fef6(0x1e6))return{};return _0x1de8bf;}catch{return{};}}async function writeUpdateNoticeCache(_0x100ef6){try{const _0x501744=getUpdateNoticeCachePath();await mkdir(dirname(_0x501744),{'recursive':!![]}),await writeFile(_0x501744,JSON['stringify'](_0x100ef6,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x4b1432,_0x13405d){const _0x514c34=a124_0x5d85;return typeof _0x4b1432[_0x514c34(0x1e2)]===_0x514c34(0x1e5)&&_0x13405d-_0x4b1432[_0x514c34(0x1e2)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x46ebc5,_0x104f5d,_0x337356){const _0x11f2c6=a124_0x5d85;return _0x46ebc5['lastNotifiedVersion']===_0x104f5d&&typeof _0x46ebc5[_0x11f2c6(0x1d2)]===_0x11f2c6(0x1e5)&&_0x337356-_0x46ebc5[_0x11f2c6(0x1d2)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0xa8531a=0x5dc){const _0x2f490d=a124_0x5d85;try{const _0x177f7a=NPM_REGISTRY_BASE_URL+_0x2f490d(0x1ed)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x2f490d(0x1e4),_0x9e69e1=await fetch(_0x177f7a,{'signal':AbortSignal[_0x2f490d(0x1ee)](_0xa8531a)});if(!_0x9e69e1['ok'])return null;const _0x452800=await _0x9e69e1[_0x2f490d(0x1d8)]();if(!_0x452800||typeof _0x452800!==_0x2f490d(0x1e6))return null;return Object[_0x2f490d(0x1d5)](Object[_0x2f490d(0x1d6)](_0x452800)[_0x2f490d(0x1d9)](([,_0x165d76])=>typeof _0x165d76===_0x2f490d(0x1db)&&_0x165d76['trim']())[_0x2f490d(0x1cc)](([_0x533443,_0x3c914a])=>[_0x533443,String(_0x3c914a)['trim']()]));}catch{return null;}}export function buildNpmVersionUrl(_0x4e5a8c){const _0x2e61bd=a124_0x5d85;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x2e61bd(0x1da)+_0x4e5a8c;}export async function resolveLatestUpdateNotice(){const _0x3984d1=a124_0x5d85;if(isUpdateNoticeDisabled())return null;try{const _0x524abb=Date[_0x3984d1(0x1d1)](),_0x312535=getCliVersion(),_0x204e92=await readUpdateNoticeCache();let _0x44a80a=isFreshCheck(_0x204e92,_0x524abb)?_0x204e92['latest']?.[_0x3984d1(0x1e7)]():undefined;if(!_0x44a80a&&!isFreshCheck(_0x204e92,_0x524abb)){const _0x572c6f=await fetchNpmDistTags();_0x44a80a=_0x572c6f?.[_0x3984d1(0x1c8)]?.[_0x3984d1(0x1e7)](),await writeUpdateNoticeCache({..._0x204e92,'checkedAt':_0x524abb,'latest':_0x44a80a,'failed':!_0x44a80a});}if(!_0x44a80a||compareSemver(_0x312535,_0x44a80a)>=0x0)return null;if(isRecentlyNotified(_0x204e92,_0x44a80a,_0x524abb))return null;const _0x102a2c=CLI_BIN_NAME+_0x3984d1(0x1cf);return await writeUpdateNoticeCache({..._0x204e92,'checkedAt':isFreshCheck(_0x204e92,_0x524abb)?_0x204e92[_0x3984d1(0x1e2)]:_0x524abb,'latest':_0x44a80a,'failed':![],'lastNotifiedVersion':_0x44a80a,'lastNotifiedAt':_0x524abb}),{'command':_0x102a2c,'current':_0x312535,'latest':_0x44a80a,'url':buildNpmVersionUrl(_0x44a80a),'message':CLI_BIN_NAME+'\x20'+_0x44a80a+_0x3984d1(0x1e1)+_0x312535+_0x3984d1(0x1e0)+_0x102a2c};}catch{return null;}}
1
+ (function(_0x4fcbeb,_0x2f473a){const _0x26922d=a125_0x6182,_0x5a332d=_0x4fcbeb();while(!![]){try{const _0x5d621a=-parseInt(_0x26922d(0xee))/0x1+parseInt(_0x26922d(0xf8))/0x2*(-parseInt(_0x26922d(0xe7))/0x3)+-parseInt(_0x26922d(0xf0))/0x4+-parseInt(_0x26922d(0xe8))/0x5*(parseInt(_0x26922d(0xf3))/0x6)+-parseInt(_0x26922d(0xe4))/0x7*(parseInt(_0x26922d(0xfb))/0x8)+parseInt(_0x26922d(0xea))/0x9+-parseInt(_0x26922d(0xe3))/0xa*(-parseInt(_0x26922d(0xf2))/0xb);if(_0x5d621a===_0x2f473a)break;else _0x5a332d['push'](_0x5a332d['shift']());}catch(_0x4d3533){_0x5a332d['push'](_0x5a332d['shift']());}}}(a125_0x4950,0x2a46c));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(_0x193821){const _0x306cb1=a125_0x6182,_0x5da5ac=_0x193821[_0x306cb1(0xe9)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x5da5ac)return null;return{'major':Number(_0x5da5ac[0x1]),'minor':Number(_0x5da5ac[0x2]),'patch':Number(_0x5da5ac[0x3]),'prerelease':_0x5da5ac[0x4]};}function compareSemver(_0x59e49c,_0x1e59d5){const _0x11c6a8=a125_0x6182,_0x572e94=parseSemver(_0x59e49c),_0x52f0ff=parseSemver(_0x1e59d5);if(!_0x572e94||!_0x52f0ff)throw new Error(_0x11c6a8(0xe6));for(const _0xa69ca5 of['major','minor',_0x11c6a8(0xde)]){if(_0x572e94[_0xa69ca5]<_0x52f0ff[_0xa69ca5])return-0x1;if(_0x572e94[_0xa69ca5]>_0x52f0ff[_0xa69ca5])return 0x1;}if(!_0x572e94['prerelease']&&!_0x52f0ff[_0x11c6a8(0xe0)])return 0x0;if(!_0x572e94[_0x11c6a8(0xe0)])return 0x1;if(!_0x52f0ff[_0x11c6a8(0xe0)])return-0x1;if(_0x572e94[_0x11c6a8(0xe0)]===_0x52f0ff[_0x11c6a8(0xe0)])return 0x0;return _0x572e94[_0x11c6a8(0xe0)]<_0x52f0ff[_0x11c6a8(0xe0)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x2ac518=a125_0x6182,_0x469abf=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x2ac518(0xe9)]()[_0x2ac518(0xdb)]();return _0x469abf==='1'||_0x469abf===_0x2ac518(0xdd)||_0x469abf===_0x2ac518(0xeb);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x2afd7e=a125_0x6182;return join(cacheRoot(),_0x2afd7e(0x100),_0x2afd7e(0xef));}async function readUpdateNoticeCache(){const _0x880089=a125_0x6182;try{const _0x22849e=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x43d8bf=JSON['parse'](_0x22849e);if(!_0x43d8bf||typeof _0x43d8bf!==_0x880089(0xff))return{};return _0x43d8bf;}catch{return{};}}function a125_0x4950(){const _0x20a7a9=['47638fLroNW','entries','/v/','24ICSUjU','map','number','utf8','object','lovrabet-cli','toLowerCase','checkedAt','true','patch','lastNotifiedAt','prerelease','timeout','https://www.npmjs.com/package/','40DNxhff','194628ncwLGU','/-/package/','Invalid\x20semver','15eBtKiF','149965eWnpbg','trim','210132qYxdNT','yes','now','fromEntries','252129xgXQMk','update-check.json','730428yHLcSi','string','2576816tqiwor','30RZWEhf','/dist-tags','\x20update','latest','json'];a125_0x4950=function(){return _0x20a7a9;};return a125_0x4950();}async function writeUpdateNoticeCache(_0x23ee0f){const _0x31faee=a125_0x6182;try{const _0x530a3d=getUpdateNoticeCachePath();await mkdir(dirname(_0x530a3d),{'recursive':!![]}),await writeFile(_0x530a3d,JSON['stringify'](_0x23ee0f,null,0x2)+'\x0a',_0x31faee(0xfe));}catch{}}function isFreshCheck(_0x105249,_0x165227){const _0x129a83=a125_0x6182;return typeof _0x105249[_0x129a83(0xdc)]===_0x129a83(0xfd)&&_0x165227-_0x105249[_0x129a83(0xdc)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x545a59,_0x3fff64,_0x46ff67){const _0x407c6c=a125_0x6182;return _0x545a59['lastNotifiedVersion']===_0x3fff64&&typeof _0x545a59['lastNotifiedAt']===_0x407c6c(0xfd)&&_0x46ff67-_0x545a59[_0x407c6c(0xdf)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x2bd6d3=0x5dc){const _0xe3b14c=a125_0x6182;try{const _0x42e671=NPM_REGISTRY_BASE_URL+_0xe3b14c(0xe5)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0xe3b14c(0xf4),_0x46dc3e=await fetch(_0x42e671,{'signal':AbortSignal[_0xe3b14c(0xe1)](_0x2bd6d3)});if(!_0x46dc3e['ok'])return null;const _0x4ba545=await _0x46dc3e[_0xe3b14c(0xf7)]();if(!_0x4ba545||typeof _0x4ba545!==_0xe3b14c(0xff))return null;return Object[_0xe3b14c(0xed)](Object[_0xe3b14c(0xf9)](_0x4ba545)['filter'](([,_0xd2e6e4])=>typeof _0xd2e6e4===_0xe3b14c(0xf1)&&_0xd2e6e4[_0xe3b14c(0xe9)]())[_0xe3b14c(0xfc)](([_0x253a57,_0x6548b5])=>[_0x253a57,String(_0x6548b5)[_0xe3b14c(0xe9)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x834021){const _0x37d76f=a125_0x6182;return _0x37d76f(0xe2)+LOVRABET_NPM_PACKAGE_NAME+_0x37d76f(0xfa)+_0x834021;}function a125_0x6182(_0x1ca8e5,_0x4eaa9a){_0x1ca8e5=_0x1ca8e5-0xdb;const _0x4950f6=a125_0x4950();let _0x61828c=_0x4950f6[_0x1ca8e5];return _0x61828c;}export async function resolveLatestUpdateNotice(){const _0x21da42=a125_0x6182;if(isUpdateNoticeDisabled())return null;try{const _0x57be1f=Date[_0x21da42(0xec)](),_0x13179e=getCliVersion(),_0x3d01cf=await readUpdateNoticeCache();let _0x1292ae=isFreshCheck(_0x3d01cf,_0x57be1f)?_0x3d01cf[_0x21da42(0xf6)]?.[_0x21da42(0xe9)]():undefined;if(!_0x1292ae&&!isFreshCheck(_0x3d01cf,_0x57be1f)){const _0x5d101a=await fetchNpmDistTags();_0x1292ae=_0x5d101a?.[_0x21da42(0xf6)]?.[_0x21da42(0xe9)](),await writeUpdateNoticeCache({..._0x3d01cf,'checkedAt':_0x57be1f,'latest':_0x1292ae,'failed':!_0x1292ae});}if(!_0x1292ae||compareSemver(_0x13179e,_0x1292ae)>=0x0)return null;if(isRecentlyNotified(_0x3d01cf,_0x1292ae,_0x57be1f))return null;const _0x8541fa=CLI_BIN_NAME+_0x21da42(0xf5);return await writeUpdateNoticeCache({..._0x3d01cf,'checkedAt':isFreshCheck(_0x3d01cf,_0x57be1f)?_0x3d01cf[_0x21da42(0xdc)]:_0x57be1f,'latest':_0x1292ae,'failed':![],'lastNotifiedVersion':_0x1292ae,'lastNotifiedAt':_0x57be1f}),{'command':_0x8541fa,'current':_0x13179e,'latest':_0x1292ae,'url':buildNpmVersionUrl(_0x1292ae),'message':CLI_BIN_NAME+'\x20'+_0x1292ae+'\x20available,\x20current\x20'+_0x13179e+',\x20run:\x20'+_0x8541fa};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x57a6d1,_0x18e686){const _0xca6d58=a125_0x574c,_0x4f21bc=_0x57a6d1();while(!![]){try{const _0x395e5a=parseInt(_0xca6d58(0x125))/0x1+-parseInt(_0xca6d58(0x129))/0x2+-parseInt(_0xca6d58(0x122))/0x3*(-parseInt(_0xca6d58(0x126))/0x4)+-parseInt(_0xca6d58(0x12a))/0x5*(-parseInt(_0xca6d58(0x127))/0x6)+-parseInt(_0xca6d58(0x121))/0x7+parseInt(_0xca6d58(0x124))/0x8+parseInt(_0xca6d58(0x12b))/0x9*(-parseInt(_0xca6d58(0x12c))/0xa);if(_0x395e5a===_0x18e686)break;else _0x4f21bc['push'](_0x4f21bc['shift']());}catch(_0x49219a){_0x4f21bc['push'](_0x4f21bc['shift']());}}}(a125_0x1461,0x3f2b4));function a125_0x574c(_0x12cac2,_0x259e97){_0x12cac2=_0x12cac2-0x121;const _0x14618c=a125_0x1461();let _0x574c61=_0x14618c[_0x12cac2];return _0x574c61;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x1b30fc=a125_0x574c,_0x29e299=String(GIT_COMMIT);return _0x29e299&&_0x29e299!==_0x1b30fc(0x128)?_0x29e299:'';}function a125_0x1461(){const _0x2ce150=['439867HXibLY','293820CmluSG','114YRyIAR','unknown','10890nbJwOv','84105gITGft','5912091xiqtih','10tgScfw','1760332rxLPEN','15ovsdtO','slice','366552EZnvSx'];a125_0x1461=function(){return _0x2ce150;};return a125_0x1461();}export function getCliVersionDisplay(){const _0x34738c=a125_0x574c,_0x11dde2=getCliGitCommit(),_0x3f3943=BUILD_TIME[_0x34738c(0x123)](0x0,0xa);if(!_0x11dde2||!_0x3f3943)return VERSION;return VERSION+'\x20('+_0x11dde2+',\x20'+_0x3f3943+')';}
1
+ function a126_0x3e71(){const _0x2cee13=['40eySvVJ','494784levDjw','slice','3603784GXqdPv','11BVwLWv','14051151QckrvR','2002259NdolKc','2045829QPMyka','131842bsIsPF','698344DWhGEF'];a126_0x3e71=function(){return _0x2cee13;};return a126_0x3e71();}(function(_0xc4c0ac,_0x28a385){const _0xc22c3f=a126_0x52f3,_0x2ef125=_0xc4c0ac();while(!![]){try{const _0x3cc077=-parseInt(_0xc22c3f(0x14b))/0x1*(parseInt(_0xc22c3f(0x145))/0x2)+-parseInt(_0xc22c3f(0x144))/0x3+parseInt(_0xc22c3f(0x146))/0x4+parseInt(_0xc22c3f(0x147))/0x5*(-parseInt(_0xc22c3f(0x148))/0x6)+parseInt(_0xc22c3f(0x143))/0x7+parseInt(_0xc22c3f(0x14a))/0x8+parseInt(_0xc22c3f(0x14c))/0x9;if(_0x3cc077===_0x28a385)break;else _0x2ef125['push'](_0x2ef125['shift']());}catch(_0x3fb332){_0x2ef125['push'](_0x2ef125['shift']());}}}(a126_0x3e71,0x6302d));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a126_0x52f3(_0x4185a5,_0x503c0b){_0x4185a5=_0x4185a5-0x143;const _0x3e7112=a126_0x3e71();let _0x52f3c2=_0x3e7112[_0x4185a5];return _0x52f3c2;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x434b98=String(GIT_COMMIT);return _0x434b98&&_0x434b98!=='unknown'?_0x434b98:'';}export function getCliVersionDisplay(){const _0x215dce=a126_0x52f3,_0x1586ef=getCliGitCommit(),_0x478197=BUILD_TIME[_0x215dce(0x149)](0x0,0xa);if(!_0x1586ef||!_0x478197)return VERSION;return VERSION+'\x20('+_0x1586ef+',\x20'+_0x478197+')';}
@@ -1 +1 @@
1
- function a126_0x7e82(){var _0x2f619c=['5751096ydjxLj','11SWXtlq','9PrhiKa','5sJPKDJ','9231789afcjHg','stderr','15410450DOALUB','78286hQwLbG','448560FtWfos','write','6cmavSV','6793160vKzwHp','7024575VicbJW'];a126_0x7e82=function(){return _0x2f619c;};return a126_0x7e82();}(function(_0x4e1fcd,_0x52a27f){var _0xdfc806=a126_0x2aa5,_0x1df3b3=_0x4e1fcd();while(!![]){try{var _0x931061=-parseInt(_0xdfc806(0xc9))/0x1*(parseInt(_0xdfc806(0xcd))/0x2)+-parseInt(_0xdfc806(0xce))/0x3+parseInt(_0xdfc806(0xd1))/0x4+parseInt(_0xdfc806(0xd2))/0x5*(-parseInt(_0xdfc806(0xd0))/0x6)+-parseInt(_0xdfc806(0xca))/0x7+parseInt(_0xdfc806(0xd3))/0x8*(parseInt(_0xdfc806(0xd5))/0x9)+parseInt(_0xdfc806(0xcc))/0xa*(parseInt(_0xdfc806(0xd4))/0xb);if(_0x931061===_0x52a27f)break;else _0x1df3b3['push'](_0x1df3b3['shift']());}catch(_0x5d831d){_0x1df3b3['push'](_0x1df3b3['shift']());}}}(a126_0x7e82,0xd919d));function a126_0x2aa5(_0x29b1fa,_0x3ac6b9){_0x29b1fa=_0x29b1fa-0xc9;var _0x7e824c=a126_0x7e82();var _0x2aa55e=_0x7e824c[_0x29b1fa];return _0x2aa55e;}export function writeCliSideChannelLine(_0x5e3114){var _0x3a6840=a126_0x2aa5;process[_0x3a6840(0xcb)][_0x3a6840(0xcf)](_0x5e3114+'\x0a');}
1
+ function a127_0x596d(_0x23216d,_0x113201){_0x23216d=_0x23216d-0x1df;var _0x297302=a127_0x2973();var _0x596df8=_0x297302[_0x23216d];return _0x596df8;}(function(_0x21c084,_0x5c0017){var _0x232a12=a127_0x596d,_0x59eae7=_0x21c084();while(!![]){try{var _0x44fb33=-parseInt(_0x232a12(0x1e3))/0x1*(-parseInt(_0x232a12(0x1e0))/0x2)+-parseInt(_0x232a12(0x1e7))/0x3+-parseInt(_0x232a12(0x1e2))/0x4+-parseInt(_0x232a12(0x1e6))/0x5+parseInt(_0x232a12(0x1e8))/0x6+parseInt(_0x232a12(0x1e5))/0x7+-parseInt(_0x232a12(0x1df))/0x8;if(_0x44fb33===_0x5c0017)break;else _0x59eae7['push'](_0x59eae7['shift']());}catch(_0x48dfa8){_0x59eae7['push'](_0x59eae7['shift']());}}}(a127_0x2973,0x7afda));export function writeCliSideChannelLine(_0x20472f){var _0x482e0e=a127_0x596d;process[_0x482e0e(0x1e4)][_0x482e0e(0x1e1)](_0x20472f+'\x0a');}function a127_0x2973(){var _0x3fa08e=['44218WCMUzv','write','714544liFUdG','34JSrFMA','stderr','6971881dzdGqu','265135pptKDG','418110FHSArP','2131458NQtrUx','9825032mGBcUV'];a127_0x2973=function(){return _0x3fa08e;};return a127_0x2973();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.19",
3
+ "version": "2.1.20-beta.1",
4
4
  "description": "Runtime CLI for Lovrabet apps, datasets, SQL, BFF, skills, and AI agent workflows.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [