@lovrabet/lovrabet-cli 2.3.5-beta.2 → 2.3.5

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 (176) 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/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-search-client.js +1 -1
  109. package/lib/core/sdk-client.js +1 -1
  110. package/lib/errors.js +1 -1
  111. package/lib/framework/access-error.js +1 -1
  112. package/lib/framework/build-all-flags.js +1 -1
  113. package/lib/framework/dryrun.js +1 -1
  114. package/lib/framework/flags.js +1 -1
  115. package/lib/framework/help.js +1 -1
  116. package/lib/framework/index.js +1 -1
  117. package/lib/framework/output.js +1 -1
  118. package/lib/framework/preparse.js +1 -1
  119. package/lib/framework/rate-limit.js +1 -1
  120. package/lib/framework/raw-flags.js +1 -1
  121. package/lib/framework/response.js +1 -1
  122. package/lib/framework/runner-confirmation.js +1 -1
  123. package/lib/framework/runner-error.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.js +1 -1
  128. package/lib/generated/build-info.d.ts +4 -4
  129. package/lib/generated/build-info.js +1 -1
  130. package/lib/generated/official-routing.js +1 -1
  131. package/lib/generated/routing-contract.js +1 -1
  132. package/lib/help.js +1 -1
  133. package/lib/postinstall.js +1 -1
  134. package/lib/runtime/confirmation.js +1 -1
  135. package/lib/runtime/event.js +1 -1
  136. package/lib/runtime/index.js +1 -1
  137. package/lib/runtime/queue.js +1 -1
  138. package/lib/runtime/resolve.js +1 -1
  139. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  140. package/lib/services/dataset-import/excel-reader.js +1 -1
  141. package/lib/services/dataset-import/metadata.js +1 -1
  142. package/lib/services/dataset-import/preview.js +1 -1
  143. package/lib/services/dataset-import/runner.js +1 -1
  144. package/lib/skills/builtin-skill.js +1 -1
  145. package/lib/skills/npx-skills-add.js +1 -1
  146. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  147. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  148. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  149. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  150. package/lib/skills/runtime-skill-sync/links.js +1 -1
  151. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  152. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  153. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  154. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  155. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  156. package/lib/skills/runtime-skill-sync/push.js +1 -1
  157. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  158. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  159. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  160. package/lib/skills/runtime-skill-sync.js +1 -1
  161. package/lib/skills/skill-presence.js +1 -1
  162. package/lib/utils/access-key-redaction.js +1 -1
  163. package/lib/utils/apply-jq-filter.js +1 -1
  164. package/lib/utils/cli-version-check.js +1 -1
  165. package/lib/utils/cli-version-policy.js +1 -1
  166. package/lib/utils/logger.js +1 -1
  167. package/lib/utils/lossless-json.js +1 -1
  168. package/lib/utils/params.js +1 -1
  169. package/lib/utils/positive-safe-integer.js +1 -1
  170. package/lib/utils/redaction.js +1 -1
  171. package/lib/utils/update-notice.js +1 -1
  172. package/lib/utils/version.js +1 -1
  173. package/lib/utils/write-cli-side-channel.js +1 -1
  174. package/package.json +1 -1
  175. package/skills/lovrabet/SKILL.md +1 -1
  176. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x966861,_0x1725e5){const _0x6dceda=a160_0x4ea2,_0x5bcf87=_0x966861();while(!![]){try{const _0x2aa50a=parseInt(_0x6dceda(0x96))/0x1*(-parseInt(_0x6dceda(0xb1))/0x2)+-parseInt(_0x6dceda(0x9d))/0x3*(parseInt(_0x6dceda(0xbb))/0x4)+-parseInt(_0x6dceda(0x91))/0x5+parseInt(_0x6dceda(0xab))/0x6+-parseInt(_0x6dceda(0xbd))/0x7+-parseInt(_0x6dceda(0xa4))/0x8*(parseInt(_0x6dceda(0xa9))/0x9)+parseInt(_0x6dceda(0x98))/0xa*(parseInt(_0x6dceda(0x93))/0xb);if(_0x2aa50a===_0x1725e5)break;else _0x5bcf87['push'](_0x5bcf87['shift']());}catch(_0x3ac85d){_0x5bcf87['push'](_0x5bcf87['shift']());}}}(a160_0x3863,0xea3bb));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(_0x222ef9){const _0x3818b1=a160_0x4ea2,_0x37cfd9=normalizeLocalFiles(_0x222ef9);if(!_0x37cfd9[_0x3818b1(0xb9)](_0x481a43=>_0x481a43[_0x3818b1(0xb7)]===SKILL_FILE))throw CliErrors[_0x3818b1(0xb5)](_0x3818b1(0xb2)+SKILL_FILE+_0x3818b1(0xb3));const _0x1ca393=localFilesToManifestFiles(_0x37cfd9),_0x478d8d=createDeterministicZipPackage(_0x37cfd9);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x1ca393),'zipSha256':bufferSha256(_0x478d8d),'zipSize':_0x478d8d[_0x3818b1(0xae)],'files':_0x1ca393},'packageBytes':_0x478d8d,'packageBase64':_0x478d8d[_0x3818b1(0xa0)]('base64')};}export function verifyRuntimeSkillPackage(_0x59ee5a,_0x62451b){const _0x17becd=a160_0x4ea2,_0xe63b3c=normalizePackageManifest(_0x59ee5a,{'requireOssPath':![]});if(!_0xe63b3c)throw CliErrors[_0x17becd(0xb5)](_0x17becd(0x95));return extractAndVerifyPackage(_0xe63b3c,_0x62451b);}export function verifyRuntimeSkillBundle(_0x27d5d1,_0x3b862b){const _0x4736a8=a160_0x4ea2,_0x3a8624=normalizePackageManifest(_0x27d5d1,{'requireOssPath':![]});if(!_0x3a8624)throw CliErrors[_0x4736a8(0xb5)](_0x4736a8(0x95));return extractAndVerifyPackageFiles(_0x3a8624,_0x3b862b);}function a160_0x3863(){const _0x583ad3=['Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','22wkpIUt','Duplicate\x20Skill\x20package\x20entry:\x20','10lxxIkD','treeSha256','bytes','ossPath','schemaVersion','201QphsQi','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','zipSize','toString','sha256','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','toLowerCase','32enMYbt','isArray','map','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','requireOssPath','1787580UbwBLz','size','6742998pfXYVR','zipSha256','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','length','isSafeInteger','files','109542CcEKlA','Missing\x20','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','validation','Runtime\x20Skill\x20package\x20is\x20missing\x20','path','get','some','Runtime\x20Skill\x20package\x20size\x20mismatch.','65072ipSCDN','trim','10174318ExkIck','string','24745dFaIlK','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','48217477votKxU'];a160_0x3863=function(){return _0x583ad3;};return a160_0x3863();}export function tryNormalizePackageManifest(_0x19aea3){return normalizePackageManifest(_0x19aea3,{'requireOssPath':![]});}function a160_0x4ea2(_0x37c8e5,_0xf79bf1){_0x37c8e5=_0x37c8e5-0x91;const _0x386368=a160_0x3863();let _0x4ea2f7=_0x386368[_0x37c8e5];return _0x4ea2f7;}export function requirePackageBytes(_0x1e7530,_0x48d425){const _0x132705=a160_0x4ea2;if(!_0x48d425||_0x48d425[_0x132705(0xae)]===0x0)throw CliErrors[_0x132705(0xb5)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x1e7530);return _0x48d425;}export function extractDownloadedPackage(_0x3ff682){const _0x466e8c=a160_0x4ea2,_0x100d36=parseZipPackage(_0x3ff682)[_0x466e8c(0xa6)](_0x5a2985=>({'path':_0x5a2985['path'],'bytes':_0x5a2985[_0x466e8c(0x9a)]}));if(!_0x100d36[_0x466e8c(0xb9)](_0x443197=>_0x443197[_0x466e8c(0xb7)]===SKILL_FILE))throw CliErrors[_0x466e8c(0xb5)](_0x466e8c(0xb6)+SKILL_FILE+'.');return normalizeLocalFiles(_0x100d36);}export function localFilesToManifestFiles(_0x39f4b3){const _0x2d2df7=a160_0x4ea2;return normalizeLocalFiles(_0x39f4b3)[_0x2d2df7(0xa6)](_0x50a842=>({'path':_0x50a842[_0x2d2df7(0xb7)],'sha256':fileHash(_0x50a842),'size':fileContent(_0x50a842)[_0x2d2df7(0xae)]}));}function normalizePackageManifest(_0x578855,_0x5dd201){const _0x35ff31=a160_0x4ea2;if(!_0x578855||typeof _0x578855!=='object'||Array[_0x35ff31(0xa5)](_0x578855))return undefined;const _0x351094=_0x578855,_0x306270=typeof _0x351094['ossPath']===_0x35ff31(0xbe)?_0x351094[_0x35ff31(0x9b)][_0x35ff31(0xbc)]():undefined;if(_0x5dd201[_0x35ff31(0xa8)]&&!_0x306270)return undefined;if(!Array[_0x35ff31(0xa5)](_0x351094[_0x35ff31(0xb0)])||_0x351094[_0x35ff31(0xb0)]['length']===0x0)return undefined;if(!isSha256Hex(_0x351094[_0x35ff31(0x99)]))throw CliErrors[_0x35ff31(0xb5)](_0x35ff31(0xa2));if(!isSha256Hex(_0x351094['zipSha256']))throw CliErrors[_0x35ff31(0xb5)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number['isSafeInteger'](_0x351094[_0x35ff31(0x9f)])||_0x351094[_0x35ff31(0x9f)]<0x0)throw CliErrors[_0x35ff31(0xb5)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0xb5c406=normalizeManifestFiles(_0x351094['files']);if(!_0xb5c406[_0x35ff31(0xb9)](_0x5676a5=>_0x5676a5[_0x35ff31(0xb7)]===SKILL_FILE))throw CliErrors[_0x35ff31(0xb5)](_0x35ff31(0xb4)+SKILL_FILE+'.');const _0x59be19=fileTreeHash(_0xb5c406);if(_0x59be19!==_0x351094[_0x35ff31(0x99)][_0x35ff31(0xa3)]())throw CliErrors[_0x35ff31(0xb5)](_0x35ff31(0xad));return{'schemaVersion':Number[_0x35ff31(0xaf)](_0x351094[_0x35ff31(0x9c)])?_0x351094[_0x35ff31(0x9c)]:0x2,'ossPath':_0x306270,'treeSha256':_0x59be19,'zipSha256':_0x351094[_0x35ff31(0xac)][_0x35ff31(0xa3)](),'zipSize':_0x351094[_0x35ff31(0x9f)],'files':_0xb5c406};}function extractAndVerifyPackage(_0x5d8850,_0x22f37b){const _0x28fd13=a160_0x4ea2,_0x5b9911=normalizePackageManifest(_0x5d8850,{'requireOssPath':![]});if(!_0x5b9911)throw CliErrors['validation'](_0x28fd13(0x95));if(_0x22f37b['length']!==_0x5b9911[_0x28fd13(0x9f)])throw CliErrors['validation'](_0x28fd13(0xba));const _0xba7962=bufferSha256(_0x22f37b);if(_0xba7962!==_0x5b9911[_0x28fd13(0xac)])throw CliErrors[_0x28fd13(0xb5)](_0x28fd13(0xa7));return extractAndVerifyPackageFiles(_0x5b9911,_0x22f37b);}function extractAndVerifyPackageFiles(_0x48bf95,_0x375d09){const _0x16d3c6=a160_0x4ea2,_0x9de1fa=parseZipPackage(_0x375d09);if(_0x9de1fa[_0x16d3c6(0xae)]!==_0x48bf95[_0x16d3c6(0xb0)][_0x16d3c6(0xae)])throw CliErrors[_0x16d3c6(0xb5)](_0x16d3c6(0x92));const _0x4578e2=new Map();for(const _0x14a2d2 of _0x9de1fa){if(_0x4578e2['has'](_0x14a2d2[_0x16d3c6(0xb7)]))throw CliErrors[_0x16d3c6(0xb5)](_0x16d3c6(0x97)+_0x14a2d2[_0x16d3c6(0xb7)]);_0x4578e2['set'](_0x14a2d2[_0x16d3c6(0xb7)],_0x14a2d2);}const _0x47062d=[];for(const _0x3d775c of _0x48bf95[_0x16d3c6(0xb0)]){const _0x171003=_0x4578e2[_0x16d3c6(0xb8)](_0x3d775c[_0x16d3c6(0xb7)]);if(!_0x171003)throw CliErrors[_0x16d3c6(0xb5)](_0x16d3c6(0x94)+_0x3d775c[_0x16d3c6(0xb7)]);if(_0x171003[_0x16d3c6(0x9a)]['length']!==_0x3d775c[_0x16d3c6(0xaa)])throw CliErrors[_0x16d3c6(0xb5)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x3d775c['path']);const _0x513279=bufferSha256(_0x171003['bytes']);if(_0x513279!==_0x3d775c[_0x16d3c6(0xa1)])throw CliErrors[_0x16d3c6(0xb5)](_0x16d3c6(0x9e)+_0x3d775c[_0x16d3c6(0xb7)]);_0x47062d['push']({'path':_0x3d775c['path'],'bytes':_0x171003[_0x16d3c6(0x9a)]});}return normalizeLocalFiles(_0x47062d);}
1
+ (function(_0x37f1aa,_0x110e8e){const _0x298867=a160_0x5c9c,_0x33eaf7=_0x37f1aa();while(!![]){try{const _0x419714=-parseInt(_0x298867(0x150))/0x1+-parseInt(_0x298867(0x151))/0x2*(-parseInt(_0x298867(0x132))/0x3)+parseInt(_0x298867(0x142))/0x4+parseInt(_0x298867(0x139))/0x5*(-parseInt(_0x298867(0x146))/0x6)+-parseInt(_0x298867(0x152))/0x7+parseInt(_0x298867(0x13c))/0x8+-parseInt(_0x298867(0x14b))/0x9*(-parseInt(_0x298867(0x130))/0xa);if(_0x419714===_0x110e8e)break;else _0x33eaf7['push'](_0x33eaf7['shift']());}catch(_0x362ebc){_0x33eaf7['push'](_0x33eaf7['shift']());}}}(a160_0x2f93,0x2217d));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(_0x12cad7){const _0x3f435e=a160_0x5c9c,_0x4d8d6a=normalizeLocalFiles(_0x12cad7);if(!_0x4d8d6a[_0x3f435e(0x14c)](_0x21b183=>_0x21b183[_0x3f435e(0x140)]===SKILL_FILE))throw CliErrors[_0x3f435e(0x14f)](_0x3f435e(0x12f)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0xbac29a=localFilesToManifestFiles(_0x4d8d6a),_0x294f47=createDeterministicZipPackage(_0x4d8d6a);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0xbac29a),'zipSha256':bufferSha256(_0x294f47),'zipSize':_0x294f47[_0x3f435e(0x138)],'files':_0xbac29a},'packageBytes':_0x294f47,'packageBase64':_0x294f47['toString']('base64')};}export function verifyRuntimeSkillPackage(_0x3e2c14,_0x493ce6){const _0x54403b=a160_0x5c9c,_0x2e3409=normalizePackageManifest(_0x3e2c14,{'requireOssPath':![]});if(!_0x2e3409)throw CliErrors[_0x54403b(0x14f)](_0x54403b(0x155));return extractAndVerifyPackage(_0x2e3409,_0x493ce6);}export function verifyRuntimeSkillBundle(_0x4a4f24,_0x130e8c){const _0x3d4ccb=normalizePackageManifest(_0x4a4f24,{'requireOssPath':![]});if(!_0x3d4ccb)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x3d4ccb,_0x130e8c);}export function tryNormalizePackageManifest(_0x3b6a23){return normalizePackageManifest(_0x3b6a23,{'requireOssPath':![]});}export function requirePackageBytes(_0x1fc651,_0x205c9c){const _0x228031=a160_0x5c9c;if(!_0x205c9c||_0x205c9c['length']===0x0)throw CliErrors[_0x228031(0x14f)](_0x228031(0x13e)+_0x1fc651);return _0x205c9c;}export function extractDownloadedPackage(_0x250ed0){const _0x26a82d=a160_0x5c9c,_0x13e2c7=parseZipPackage(_0x250ed0)[_0x26a82d(0x14a)](_0x35897e=>({'path':_0x35897e[_0x26a82d(0x140)],'bytes':_0x35897e[_0x26a82d(0x145)]}));if(!_0x13e2c7['some'](_0x5d6201=>_0x5d6201['path']===SKILL_FILE))throw CliErrors[_0x26a82d(0x14f)](_0x26a82d(0x134)+SKILL_FILE+'.');return normalizeLocalFiles(_0x13e2c7);}function a160_0x2f93(){const _0x21b2ce=['783051jtTbfh','ossPath','Runtime\x20Skill\x20package\x20is\x20missing\x20','size','has','isSafeInteger','length','40gurVYg','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','58816ouizUD','requireOssPath','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','trim','path','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','1042192fFSrRT','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','set','bytes','157170qiqUsh','files','toLowerCase','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','map','27NfJokk','some','schemaVersion','zipSize','validation','129530fxBMTU','2YRemey','1698760ucKVHk','object','get','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','zipSha256','Missing\x20','641660PVaCFx','isArray'];a160_0x2f93=function(){return _0x21b2ce;};return a160_0x2f93();}export function localFilesToManifestFiles(_0x18811b){const _0x171215=a160_0x5c9c;return normalizeLocalFiles(_0x18811b)[_0x171215(0x14a)](_0x41ffc1=>({'path':_0x41ffc1[_0x171215(0x140)],'sha256':fileHash(_0x41ffc1),'size':fileContent(_0x41ffc1)[_0x171215(0x138)]}));}function normalizePackageManifest(_0x11e42e,_0x459e51){const _0xb8f369=a160_0x5c9c;if(!_0x11e42e||typeof _0x11e42e!==_0xb8f369(0x153)||Array[_0xb8f369(0x131)](_0x11e42e))return undefined;const _0x3c1d71=_0x11e42e,_0x2ac883=typeof _0x3c1d71[_0xb8f369(0x133)]==='string'?_0x3c1d71[_0xb8f369(0x133)][_0xb8f369(0x13f)]():undefined;if(_0x459e51[_0xb8f369(0x13d)]&&!_0x2ac883)return undefined;if(!Array[_0xb8f369(0x131)](_0x3c1d71[_0xb8f369(0x147)])||_0x3c1d71[_0xb8f369(0x147)]['length']===0x0)return undefined;if(!isSha256Hex(_0x3c1d71['treeSha256']))throw CliErrors['validation']('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x3c1d71[_0xb8f369(0x156)]))throw CliErrors[_0xb8f369(0x14f)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number['isSafeInteger'](_0x3c1d71[_0xb8f369(0x14e)])||_0x3c1d71[_0xb8f369(0x14e)]<0x0)throw CliErrors[_0xb8f369(0x14f)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x35c69b=normalizeManifestFiles(_0x3c1d71[_0xb8f369(0x147)]);if(!_0x35c69b['some'](_0x5a1785=>_0x5a1785[_0xb8f369(0x140)]===SKILL_FILE))throw CliErrors[_0xb8f369(0x14f)](_0xb8f369(0x13b)+SKILL_FILE+'.');const _0x417121=fileTreeHash(_0x35c69b);if(_0x417121!==_0x3c1d71['treeSha256'][_0xb8f369(0x148)]())throw CliErrors[_0xb8f369(0x14f)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0xb8f369(0x137)](_0x3c1d71[_0xb8f369(0x14d)])?_0x3c1d71['schemaVersion']:0x2,'ossPath':_0x2ac883,'treeSha256':_0x417121,'zipSha256':_0x3c1d71['zipSha256'][_0xb8f369(0x148)](),'zipSize':_0x3c1d71[_0xb8f369(0x14e)],'files':_0x35c69b};}function a160_0x5c9c(_0x5c08ed,_0xbafdb1){_0x5c08ed=_0x5c08ed-0x12f;const _0x2f93e3=a160_0x2f93();let _0x5c9c8d=_0x2f93e3[_0x5c08ed];return _0x5c9c8d;}function extractAndVerifyPackage(_0x26310f,_0x460ccb){const _0x3f5ced=a160_0x5c9c,_0x25587b=normalizePackageManifest(_0x26310f,{'requireOssPath':![]});if(!_0x25587b)throw CliErrors[_0x3f5ced(0x14f)](_0x3f5ced(0x155));if(_0x460ccb[_0x3f5ced(0x138)]!==_0x25587b[_0x3f5ced(0x14e)])throw CliErrors[_0x3f5ced(0x14f)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x5031a7=bufferSha256(_0x460ccb);if(_0x5031a7!==_0x25587b[_0x3f5ced(0x156)])throw CliErrors[_0x3f5ced(0x14f)](_0x3f5ced(0x143));return extractAndVerifyPackageFiles(_0x25587b,_0x460ccb);}function extractAndVerifyPackageFiles(_0x4488d5,_0x554e64){const _0x5f3c7c=a160_0x5c9c,_0x2ea4a3=parseZipPackage(_0x554e64);if(_0x2ea4a3[_0x5f3c7c(0x138)]!==_0x4488d5[_0x5f3c7c(0x147)][_0x5f3c7c(0x138)])throw CliErrors[_0x5f3c7c(0x14f)](_0x5f3c7c(0x141));const _0x85b263=new Map();for(const _0x48e0c9 of _0x2ea4a3){if(_0x85b263[_0x5f3c7c(0x136)](_0x48e0c9['path']))throw CliErrors[_0x5f3c7c(0x14f)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x48e0c9[_0x5f3c7c(0x140)]);_0x85b263[_0x5f3c7c(0x144)](_0x48e0c9[_0x5f3c7c(0x140)],_0x48e0c9);}const _0x15a242=[];for(const _0x2918b1 of _0x4488d5[_0x5f3c7c(0x147)]){const _0x3fc698=_0x85b263[_0x5f3c7c(0x154)](_0x2918b1[_0x5f3c7c(0x140)]);if(!_0x3fc698)throw CliErrors[_0x5f3c7c(0x14f)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x2918b1[_0x5f3c7c(0x140)]);if(_0x3fc698[_0x5f3c7c(0x145)][_0x5f3c7c(0x138)]!==_0x2918b1[_0x5f3c7c(0x135)])throw CliErrors[_0x5f3c7c(0x14f)](_0x5f3c7c(0x149)+_0x2918b1[_0x5f3c7c(0x140)]);const _0x10449b=bufferSha256(_0x3fc698['bytes']);if(_0x10449b!==_0x2918b1['sha256'])throw CliErrors['validation'](_0x5f3c7c(0x13a)+_0x2918b1[_0x5f3c7c(0x140)]);_0x15a242['push']({'path':_0x2918b1[_0x5f3c7c(0x140)],'bytes':_0x3fc698[_0x5f3c7c(0x145)]});}return normalizeLocalFiles(_0x15a242);}
@@ -1 +1 @@
1
- (function(_0x38c582,_0x236c8d){var _0x313ebd=a161_0x58d8,_0x5d4a96=_0x38c582();while(!![]){try{var _0x267de3=-parseInt(_0x313ebd(0xeb))/0x1+parseInt(_0x313ebd(0xe9))/0x2*(-parseInt(_0x313ebd(0xea))/0x3)+parseInt(_0x313ebd(0xe8))/0x4+parseInt(_0x313ebd(0xec))/0x5+-parseInt(_0x313ebd(0xe5))/0x6*(parseInt(_0x313ebd(0xed))/0x7)+parseInt(_0x313ebd(0xe7))/0x8+-parseInt(_0x313ebd(0xe6))/0x9*(-parseInt(_0x313ebd(0xee))/0xa);if(_0x267de3===_0x236c8d)break;else _0x5d4a96['push'](_0x5d4a96['shift']());}catch(_0x25f91d){_0x5d4a96['push'](_0x5d4a96['shift']());}}}(a161_0x1434,0x5750d));function a161_0x1434(){var _0x3ea0c0=['3400092ltYYbS','4548392xZdKtm','550160CrJPWw','122sRoLhY','9eqZrFc','534471OLyDOf','476525LZkYuL','4557kqVbXp','20xyQTjg','6126NAbSrT'];a161_0x1434=function(){return _0x3ea0c0;};return a161_0x1434();}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,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';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';function a161_0x58d8(_0x33ab57,_0x12b8ba){_0x33ab57=_0x33ab57-0xe5;var _0x14344e=a161_0x1434();var _0x58d8ec=_0x14344e[_0x33ab57];return _0x58d8ec;}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0x555d91,_0x11b5ec){var _0x4437a8=a161_0x28e5,_0x3315be=_0x555d91();while(!![]){try{var _0x5254b8=parseInt(_0x4437a8(0x15b))/0x1+-parseInt(_0x4437a8(0x15e))/0x2*(parseInt(_0x4437a8(0x161))/0x3)+parseInt(_0x4437a8(0x160))/0x4*(parseInt(_0x4437a8(0x15f))/0x5)+parseInt(_0x4437a8(0x15d))/0x6+parseInt(_0x4437a8(0x162))/0x7+parseInt(_0x4437a8(0x15c))/0x8+-parseInt(_0x4437a8(0x163))/0x9;if(_0x5254b8===_0x11b5ec)break;else _0x3315be['push'](_0x3315be['shift']());}catch(_0x52c051){_0x3315be['push'](_0x3315be['shift']());}}}(a161_0x5778,0xe23cc));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,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';function a161_0x28e5(_0x3e0454,_0x4bf9d2){_0x3e0454=_0x3e0454-0x15b;var _0x5778c3=a161_0x5778();var _0x28e5e1=_0x5778c3[_0x3e0454];return _0x28e5e1;}export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';function a161_0x5778(){var _0x4fb54d=['28045710CDhHlj','607474VJhcMR','4258128FHUocC','8124192huNMbJ','4198sbPJPh','5rOBSnU','6363068vhMUAg','1389PHjkTR','6511092PGfYHH'];a161_0x5778=function(){return _0x4fb54d;};return a161_0x5778();}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- const a162_0x4fbdcf=a162_0x457e;(function(_0x2f04ab,_0x1c0a42){const _0x23f4aa=a162_0x457e,_0x2f0a8d=_0x2f04ab();while(!![]){try{const _0x30eaae=parseInt(_0x23f4aa(0x1a3))/0x1+-parseInt(_0x23f4aa(0x1bc))/0x2*(-parseInt(_0x23f4aa(0x1ac))/0x3)+-parseInt(_0x23f4aa(0x1c0))/0x4+-parseInt(_0x23f4aa(0x1b2))/0x5+parseInt(_0x23f4aa(0x1a9))/0x6+-parseInt(_0x23f4aa(0x1aa))/0x7+-parseInt(_0x23f4aa(0x1b5))/0x8*(-parseInt(_0x23f4aa(0x1bb))/0x9);if(_0x30eaae===_0x1c0a42)break;else _0x2f0a8d['push'](_0x2f0a8d['shift']());}catch(_0x1c5718){_0x2f0a8d['push'](_0x2f0a8d['shift']());}}}(a162_0x495a,0x82a68));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a162_0x457e(_0x26119f,_0x54f1ec){_0x26119f=_0x26119f-0x1a1;const _0x495aa1=a162_0x495a();let _0x457ef0=_0x495aa1[_0x26119f];return _0x457ef0;}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a162_0x4fbdcf(0x1b0),a162_0x4fbdcf(0x1a6));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a162_0x4fbdcf(0x1b0),a162_0x4fbdcf(0x1a2)),join(a162_0x4fbdcf(0x1c1),a162_0x4fbdcf(0x1a2))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a162_0x495a(){const _0x26f733=['recorded','1752LdaABI','map','unverifiable','home','\x20is\x20unreadable:\x20','parse','49311oWApZe','62GoqMiA','\x20has\x20no\x20skills\x20map','reason','not-recorded','3728948irobuk','.claude','find','absent','skills','157855VQBXnW','message','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','.skill-lock.json','unusable','object','2129424VDkPNe','3281033hNiljp','version','54861SqDzcy','join','present','\x20records\x20\x22','.agents','kind','1717285CNifSt','includes'];a162_0x495a=function(){return _0x26f733;};return a162_0x495a();}function readLockLookup(_0x2a863a,_0x5ed651){const _0x385212=a162_0x4fbdcf;if(!existsSync(_0x2a863a))return{'kind':_0x385212(0x1bf)};let _0x2f6290;try{_0x2f6290=JSON[_0x385212(0x1ba)](readFileSync(_0x2a863a,'utf8'));}catch(_0xfabb77){return{'kind':_0x385212(0x1a7),'reason':_0x2a863a+_0x385212(0x1b9)+_0xfabb77[_0x385212(0x1a4)]};}const _0x15f880=_0x2f6290;if(typeof _0x15f880?.[_0x385212(0x1ab)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x385212(0x1b3)](_0x15f880[_0x385212(0x1ab)]))return{'kind':_0x385212(0x1a7),'reason':_0x2a863a+'\x20uses\x20unsupported\x20version\x20'+String(_0x15f880?.[_0x385212(0x1ab)])};if(!_0x15f880['skills']||typeof _0x15f880[_0x385212(0x1a2)]!==_0x385212(0x1a8))return{'kind':'unusable','reason':_0x2a863a+_0x385212(0x1bd)};return _0x15f880[_0x385212(0x1a2)][_0x5ed651]?{'kind':_0x385212(0x1b4)}:{'kind':_0x385212(0x1bf)};}export function resolveInstalledSkill(_0x2da45a,_0x433deb){const _0x3d8e5d=a162_0x4fbdcf,_0x29c4a5=_0x433deb?.[_0x3d8e5d(0x1b8)]??homedir(),_0x49e2d1=_0x433deb?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x3d8e5d(0x1b6)](_0x3f95d6=>join(_0x29c4a5,_0x3f95d6)),_0x3e39c2=_0x433deb?.['lockFile']??join(_0x29c4a5,SKILL_LOCK_RELATIVE_PATH),_0x59f93e=_0x49e2d1['map'](_0x4858a6=>join(_0x4858a6,_0x2da45a,'SKILL.md')),_0x57fdfe=_0x59f93e[_0x3d8e5d(0x1c2)](_0x5df859=>existsSync(_0x5df859));if(_0x57fdfe)return{'state':_0x3d8e5d(0x1ae),'path':_0x57fdfe};const _0x543cc1=readLockLookup(_0x3e39c2,_0x2da45a);if(_0x543cc1[_0x3d8e5d(0x1b1)]===_0x3d8e5d(0x1a7))return{'state':_0x3d8e5d(0x1b7),'reason':_0x543cc1[_0x3d8e5d(0x1be)]};if(_0x543cc1[_0x3d8e5d(0x1b1)]==='recorded')return{'state':_0x3d8e5d(0x1b7),'reason':_0x3e39c2+_0x3d8e5d(0x1af)+_0x2da45a+_0x3d8e5d(0x1a5)+('('+_0x59f93e[_0x3d8e5d(0x1ad)](',\x20')+')')};return{'state':_0x3d8e5d(0x1a1),'checked':_0x59f93e};}
1
+ const a162_0x559ae4=a162_0x35b6;(function(_0x18051b,_0x467292){const _0x553482=a162_0x35b6,_0x352b5f=_0x18051b();while(!![]){try{const _0x161402=-parseInt(_0x553482(0x154))/0x1+-parseInt(_0x553482(0x159))/0x2*(-parseInt(_0x553482(0x14f))/0x3)+parseInt(_0x553482(0x13a))/0x4*(-parseInt(_0x553482(0x14c))/0x5)+parseInt(_0x553482(0x158))/0x6+-parseInt(_0x553482(0x144))/0x7+-parseInt(_0x553482(0x148))/0x8+parseInt(_0x553482(0x155))/0x9;if(_0x161402===_0x467292)break;else _0x352b5f['push'](_0x352b5f['shift']());}catch(_0x13f9c1){_0x352b5f['push'](_0x352b5f['shift']());}}}(a162_0x2c0b,0xeccc5));import{existsSync,readFileSync}from'node:fs';function a162_0x2c0b(){const _0x3dfcfc=['find','message','unverifiable','utf8','4465396dBiOJA','present','object','kind','\x20uses\x20unsupported\x20version\x20','map','.claude','\x20records\x20\x22','globalSkillsDirs','recorded','1715518eFMPWF','number','unusable','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','10832152llugQx','version','skills','SKILL.md','5IqlcGn','includes','absent','237612haWObf','.skill-lock.json','join','lockFile','\x20is\x20unreadable:\x20','1742161SrFGvd','35292123HJFotM','reason','not-recorded','7136190tBwepv','8DrefWj','home','.agents'];a162_0x2c0b=function(){return _0x3dfcfc;};return a162_0x2c0b();}function a162_0x35b6(_0x257c36,_0xcf2c23){_0x257c36=_0x257c36-0x138;const _0x2c0b2c=a162_0x2c0b();let _0x35b6c9=_0x2c0b2c[_0x257c36];return _0x35b6c9;}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a162_0x559ae4(0x15b),a162_0x559ae4(0x150));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a162_0x559ae4(0x15b),a162_0x559ae4(0x14a)),join(a162_0x559ae4(0x140),a162_0x559ae4(0x14a))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x3387a3,_0x3d2d07){const _0x1e3c57=a162_0x559ae4;if(!existsSync(_0x3387a3))return{'kind':_0x1e3c57(0x157)};let _0x5b60d7;try{_0x5b60d7=JSON['parse'](readFileSync(_0x3387a3,_0x1e3c57(0x139)));}catch(_0x47b502){return{'kind':'unusable','reason':_0x3387a3+_0x1e3c57(0x153)+_0x47b502[_0x1e3c57(0x15d)]};}const _0xa6d070=_0x5b60d7;if(typeof _0xa6d070?.[_0x1e3c57(0x149)]!==_0x1e3c57(0x145)||!SUPPORTED_LOCK_VERSIONS[_0x1e3c57(0x14d)](_0xa6d070[_0x1e3c57(0x149)]))return{'kind':_0x1e3c57(0x146),'reason':_0x3387a3+_0x1e3c57(0x13e)+String(_0xa6d070?.[_0x1e3c57(0x149)])};if(!_0xa6d070['skills']||typeof _0xa6d070[_0x1e3c57(0x14a)]!==_0x1e3c57(0x13c))return{'kind':_0x1e3c57(0x146),'reason':_0x3387a3+'\x20has\x20no\x20skills\x20map'};return _0xa6d070[_0x1e3c57(0x14a)][_0x3d2d07]?{'kind':_0x1e3c57(0x143)}:{'kind':_0x1e3c57(0x157)};}export function resolveInstalledSkill(_0x572aa5,_0x128953){const _0x20fe00=a162_0x559ae4,_0x5892b8=_0x128953?.[_0x20fe00(0x15a)]??homedir(),_0x12e695=_0x128953?.[_0x20fe00(0x142)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x20fe00(0x13f)](_0x4aa28b=>join(_0x5892b8,_0x4aa28b)),_0x22cce5=_0x128953?.[_0x20fe00(0x152)]??join(_0x5892b8,SKILL_LOCK_RELATIVE_PATH),_0x378b0e=_0x12e695['map'](_0x4756f6=>join(_0x4756f6,_0x572aa5,_0x20fe00(0x14b))),_0x5c052e=_0x378b0e[_0x20fe00(0x15c)](_0x3027a7=>existsSync(_0x3027a7));if(_0x5c052e)return{'state':_0x20fe00(0x13b),'path':_0x5c052e};const _0x548674=readLockLookup(_0x22cce5,_0x572aa5);if(_0x548674[_0x20fe00(0x13d)]==='unusable')return{'state':_0x20fe00(0x138),'reason':_0x548674[_0x20fe00(0x156)]};if(_0x548674[_0x20fe00(0x13d)]===_0x20fe00(0x143))return{'state':_0x20fe00(0x138),'reason':_0x22cce5+_0x20fe00(0x141)+_0x572aa5+_0x20fe00(0x147)+('('+_0x378b0e[_0x20fe00(0x151)](',\x20')+')')};return{'state':_0x20fe00(0x14e),'checked':_0x378b0e};}
@@ -1 +1 @@
1
- const a163_0x2da62d=a163_0x49d6;(function(_0x3df349,_0x4748f4){const _0x4bdecc=a163_0x49d6,_0x3a37b0=_0x3df349();while(!![]){try{const _0x332327=-parseInt(_0x4bdecc(0x181))/0x1*(-parseInt(_0x4bdecc(0x17b))/0x2)+-parseInt(_0x4bdecc(0x17a))/0x3*(-parseInt(_0x4bdecc(0x177))/0x4)+parseInt(_0x4bdecc(0x188))/0x5*(-parseInt(_0x4bdecc(0x18e))/0x6)+-parseInt(_0x4bdecc(0x182))/0x7+-parseInt(_0x4bdecc(0x183))/0x8*(-parseInt(_0x4bdecc(0x187))/0x9)+-parseInt(_0x4bdecc(0x180))/0xa+parseInt(_0x4bdecc(0x179))/0xb;if(_0x332327===_0x4748f4)break;else _0x3a37b0['push'](_0x3a37b0['shift']());}catch(_0x22340b){_0x3a37b0['push'](_0x3a37b0['shift']());}}}(a163_0x1f04,0xc932c));function a163_0x49d6(_0xd450c2,_0x15ca99){_0xd450c2=_0xd450c2-0x177;const _0x1f0465=a163_0x1f04();let _0x49d66f=_0x1f0465[_0xd450c2];return _0x49d66f;}const REDACTED_ACCESS_KEY=a163_0x2da62d(0x18b);export function maskCliAccessKey(_0x34dd8a){const _0x5e53d1=a163_0x2da62d;if(typeof _0x34dd8a!=='string'||_0x34dd8a[_0x5e53d1(0x17c)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x34dd8a['slice'](0x0,0x8)+'*'[_0x5e53d1(0x17d)](_0x34dd8a[_0x5e53d1(0x17c)]-0x8);}export function redactCliConfigCredentials(_0x78a72){const _0x5da276=a163_0x2da62d,_0x1e7fb2={..._0x78a72};return Object['prototype'][_0x5da276(0x18f)][_0x5da276(0x18c)](_0x1e7fb2,_0x5da276(0x17e))&&(_0x1e7fb2['accessKey']=maskCliAccessKey(_0x1e7fb2[_0x5da276(0x17e)])),_0x1e7fb2[_0x5da276(0x18d)]&&typeof _0x1e7fb2[_0x5da276(0x18d)]==='object'&&!Array[_0x5da276(0x186)](_0x1e7fb2[_0x5da276(0x18d)])&&(_0x1e7fb2[_0x5da276(0x18d)]=redactLegacyAppCredentials(_0x1e7fb2[_0x5da276(0x18d)])),_0x1e7fb2;}export function redactCliConfigValue(_0x284c3b,_0xbebb84){const _0x180d42=a163_0x2da62d;if(_0x284c3b===_0x180d42(0x17e)||/^apps\.[^.]+\.accessKey$/[_0x180d42(0x17f)](_0x284c3b))return maskCliAccessKey(_0xbebb84);if(_0x284c3b==='apps'&&_0xbebb84&&typeof _0xbebb84===_0x180d42(0x178)&&!Array['isArray'](_0xbebb84))return redactLegacyAppCredentials(_0xbebb84);if(/^apps\.[^.]+$/['test'](_0x284c3b)&&_0xbebb84&&typeof _0xbebb84===_0x180d42(0x178)&&!Array['isArray'](_0xbebb84)){const _0x370952=_0xbebb84;return Object[_0x180d42(0x18a)][_0x180d42(0x18f)][_0x180d42(0x18c)](_0x370952,_0x180d42(0x17e))?{..._0x370952,'accessKey':maskCliAccessKey(_0x370952[_0x180d42(0x17e)])}:_0xbebb84;}return _0xbebb84;}function a163_0x1f04(){const _0xc084f2=['prototype','<redacted>','call','apps','1788396cGNhLg','hasOwnProperty','82120IJqwpA','object','27763846nGkDtH','48UstjBc','2lwEcfU','length','repeat','accessKey','test','13222280BshLkw','1312969ALckvQ','8189685MQhIpO','394576TZhJNW','map','fromEntries','isArray','117kvkaqO','25rBpcQv','entries'];a163_0x1f04=function(){return _0xc084f2;};return a163_0x1f04();}function redactLegacyAppCredentials(_0x2bf64d){const _0x18d434=a163_0x2da62d;return Object[_0x18d434(0x185)](Object[_0x18d434(0x189)](_0x2bf64d)[_0x18d434(0x184)](([_0x101d59,_0x4e6790])=>{const _0x5a31c0=_0x18d434;if(!_0x4e6790||typeof _0x4e6790!==_0x5a31c0(0x178)||Array['isArray'](_0x4e6790))return[_0x101d59,_0x4e6790];const _0x56d875={..._0x4e6790};return Object['prototype'][_0x5a31c0(0x18f)][_0x5a31c0(0x18c)](_0x56d875,'accessKey')&&(_0x56d875[_0x5a31c0(0x17e)]=maskCliAccessKey(_0x56d875[_0x5a31c0(0x17e)])),[_0x101d59,_0x56d875];}));}
1
+ const a163_0x30fde7=a163_0x3ab3;(function(_0x1c360c,_0x19f521){const _0x345c33=a163_0x3ab3,_0x2dc56b=_0x1c360c();while(!![]){try{const _0x2df99d=parseInt(_0x345c33(0xc8))/0x1*(-parseInt(_0x345c33(0xc7))/0x2)+-parseInt(_0x345c33(0xcd))/0x3+-parseInt(_0x345c33(0xd8))/0x4*(parseInt(_0x345c33(0xd0))/0x5)+-parseInt(_0x345c33(0xd5))/0x6+-parseInt(_0x345c33(0xcf))/0x7+-parseInt(_0x345c33(0xd4))/0x8*(-parseInt(_0x345c33(0xdc))/0x9)+parseInt(_0x345c33(0xdd))/0xa*(parseInt(_0x345c33(0xc6))/0xb);if(_0x2df99d===_0x19f521)break;else _0x2dc56b['push'](_0x2dc56b['shift']());}catch(_0x6eadfb){_0x2dc56b['push'](_0x2dc56b['shift']());}}}(a163_0x4992,0xb6c3c));const REDACTED_ACCESS_KEY=a163_0x30fde7(0xd6);function a163_0x3ab3(_0x49f1d1,_0x30e862){_0x49f1d1=_0x49f1d1-0xc6;const _0x499273=a163_0x4992();let _0x3ab373=_0x499273[_0x49f1d1];return _0x3ab373;}export function maskCliAccessKey(_0x29302e){const _0x3e4bba=a163_0x30fde7;if(typeof _0x29302e!==_0x3e4bba(0xd2)||_0x29302e[_0x3e4bba(0xda)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x29302e[_0x3e4bba(0xd3)](0x0,0x8)+'*'['repeat'](_0x29302e['length']-0x8);}export function redactCliConfigCredentials(_0x2c21e2){const _0x402711=a163_0x30fde7,_0x59387f={..._0x2c21e2};return Object[_0x402711(0xde)][_0x402711(0xdf)][_0x402711(0xce)](_0x59387f,_0x402711(0xd9))&&(_0x59387f[_0x402711(0xd9)]=maskCliAccessKey(_0x59387f[_0x402711(0xd9)])),_0x59387f['apps']&&typeof _0x59387f['apps']===_0x402711(0xcb)&&!Array[_0x402711(0xcc)](_0x59387f['apps'])&&(_0x59387f[_0x402711(0xca)]=redactLegacyAppCredentials(_0x59387f['apps'])),_0x59387f;}export function redactCliConfigValue(_0x115fa5,_0x3f7d86){const _0x3eed01=a163_0x30fde7;if(_0x115fa5===_0x3eed01(0xd9)||/^apps\.[^.]+\.accessKey$/[_0x3eed01(0xd1)](_0x115fa5))return maskCliAccessKey(_0x3f7d86);if(_0x115fa5==='apps'&&_0x3f7d86&&typeof _0x3f7d86===_0x3eed01(0xcb)&&!Array[_0x3eed01(0xcc)](_0x3f7d86))return redactLegacyAppCredentials(_0x3f7d86);if(/^apps\.[^.]+$/[_0x3eed01(0xd1)](_0x115fa5)&&_0x3f7d86&&typeof _0x3f7d86===_0x3eed01(0xcb)&&!Array[_0x3eed01(0xcc)](_0x3f7d86)){const _0x8ae4e0=_0x3f7d86;return Object[_0x3eed01(0xde)][_0x3eed01(0xdf)][_0x3eed01(0xce)](_0x8ae4e0,'accessKey')?{..._0x8ae4e0,'accessKey':maskCliAccessKey(_0x8ae4e0[_0x3eed01(0xd9)])}:_0x3f7d86;}return _0x3f7d86;}function a163_0x4992(){const _0x2ba94e=['string','slice','199480HierZk','1537422hZJHZj','<redacted>','fromEntries','24NLkQAc','accessKey','length','entries','72uuqFOp','21763650doEtOb','prototype','hasOwnProperty','11mWNoZf','2XQTRqZ','5855JjMmQk','map','apps','object','isArray','3505659cdBiHs','call','375270puEXiJ','119155HoodNN','test'];a163_0x4992=function(){return _0x2ba94e;};return a163_0x4992();}function redactLegacyAppCredentials(_0xcddf5d){const _0x33f68f=a163_0x30fde7;return Object[_0x33f68f(0xd7)](Object[_0x33f68f(0xdb)](_0xcddf5d)[_0x33f68f(0xc9)](([_0x31d11d,_0x9a31a9])=>{const _0xa75a99=_0x33f68f;if(!_0x9a31a9||typeof _0x9a31a9!=='object'||Array[_0xa75a99(0xcc)](_0x9a31a9))return[_0x31d11d,_0x9a31a9];const _0x494b6d={..._0x9a31a9};return Object[_0xa75a99(0xde)][_0xa75a99(0xdf)][_0xa75a99(0xce)](_0x494b6d,_0xa75a99(0xd9))&&(_0x494b6d[_0xa75a99(0xd9)]=maskCliAccessKey(_0x494b6d[_0xa75a99(0xd9)])),[_0x31d11d,_0x494b6d];}));}
@@ -1 +1 @@
1
- (function(_0x22565f,_0x3ef579){const _0x48acbf=a164_0x11d4,_0x507d45=_0x22565f();while(!![]){try{const _0x5d3041=parseInt(_0x48acbf(0x1ed))/0x1*(-parseInt(_0x48acbf(0x1ea))/0x2)+parseInt(_0x48acbf(0x1ef))/0x3*(-parseInt(_0x48acbf(0x1f5))/0x4)+-parseInt(_0x48acbf(0x1f1))/0x5*(parseInt(_0x48acbf(0x1eb))/0x6)+parseInt(_0x48acbf(0x1f0))/0x7*(-parseInt(_0x48acbf(0x1f2))/0x8)+parseInt(_0x48acbf(0x1f4))/0x9+-parseInt(_0x48acbf(0x1ee))/0xa*(parseInt(_0x48acbf(0x1f3))/0xb)+parseInt(_0x48acbf(0x1ec))/0xc;if(_0x5d3041===_0x3ef579)break;else _0x507d45['push'](_0x507d45['shift']());}catch(_0xd40a19){_0x507d45['push'](_0x507d45['shift']());}}}(a164_0x2237,0x893b1));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a164_0x11d4(_0x3a05f1,_0x1972f1){_0x3a05f1=_0x3a05f1-0x1ea;const _0x2237b7=a164_0x2237();let _0x11d443=_0x2237b7[_0x3a05f1];return _0x11d443;}function a164_0x2237(){const _0x130f2f=['3386FhMzxV','1590wjbLQO','30498612hsGThE','577IMmmjc','1160470DpmssO','3HowuNC','4557pDkAce','10055SdsizZ','5816PUJrpp','44GUDMcg','4220352MbzZEy','4564OhhLTj'];a164_0x2237=function(){return _0x130f2f;};return a164_0x2237();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x4750e1,_0x3483e0){const _0x4fa6e0=a164_0x350d,_0x338c7c=_0x4750e1();while(!![]){try{const _0x29b9b6=-parseInt(_0x4fa6e0(0x102))/0x1+parseInt(_0x4fa6e0(0x109))/0x2+parseInt(_0x4fa6e0(0x100))/0x3*(parseInt(_0x4fa6e0(0x10a))/0x4)+-parseInt(_0x4fa6e0(0x103))/0x5*(parseInt(_0x4fa6e0(0x10b))/0x6)+parseInt(_0x4fa6e0(0x107))/0x7*(-parseInt(_0x4fa6e0(0x104))/0x8)+-parseInt(_0x4fa6e0(0x106))/0x9*(parseInt(_0x4fa6e0(0x105))/0xa)+-parseInt(_0x4fa6e0(0x101))/0xb*(-parseInt(_0x4fa6e0(0x108))/0xc);if(_0x29b9b6===_0x3483e0)break;else _0x338c7c['push'](_0x338c7c['shift']());}catch(_0x2a2e61){_0x338c7c['push'](_0x338c7c['shift']());}}}(a164_0x2d2d,0x3d04e));function a164_0x2d2d(){const _0x3159c8=['328976wkCntG','2455734bCFxLi','3uKXSxS','11koCRwk','4685ZmnOds','5bsjBxl','5008VityIl','20DKUlpk','763335LGgbON','973zvfOqY','8124972NdkFPP','322454qrzVrT'];a164_0x2d2d=function(){return _0x3159c8;};return a164_0x2d2d();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a164_0x350d(_0x434f8b,_0x263572){_0x434f8b=_0x434f8b-0x100;const _0x2d2d61=a164_0x2d2d();let _0x350df6=_0x2d2d61[_0x434f8b];return _0x350df6;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a165_0x3aaf(_0x4caaf8,_0x5f30fc){_0x4caaf8=_0x4caaf8-0x79;const _0x170de1=a165_0x170d();let _0x3aafc9=_0x170de1[_0x4caaf8];return _0x3aafc9;}(function(_0x321a49,_0x13db00){const _0x38a575=a165_0x3aaf,_0x35e41a=_0x321a49();while(!![]){try{const _0x1cf4e5=-parseInt(_0x38a575(0x87))/0x1+parseInt(_0x38a575(0x7d))/0x2*(parseInt(_0x38a575(0x8f))/0x3)+parseInt(_0x38a575(0x7b))/0x4+parseInt(_0x38a575(0x7e))/0x5*(-parseInt(_0x38a575(0x7f))/0x6)+parseInt(_0x38a575(0x8c))/0x7+-parseInt(_0x38a575(0x7a))/0x8+parseInt(_0x38a575(0x89))/0x9;if(_0x1cf4e5===_0x13db00)break;else _0x35e41a['push'](_0x35e41a['shift']());}catch(_0x2010c0){_0x35e41a['push'](_0x35e41a['shift']());}}}(a165_0x170d,0xe2f9d));function a165_0x170d(){const _0x393988=['join','currentVersion','Recommended\x20stable:\x20','npm\x20install\x20-g\x20','belowMinimum','unavailable','minimumVersionMessage','1228172WYyPMD','valid','19420875TMGFYy','Upgrade\x20command:\x20','Current\x20version:\x20','2755928DeGewb','stableVersion','minimumVersion','3wdvaUR','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','11416232eoOblK','5376468YsHSKX','upgradeMessage','2392396RxSsKE','6875rJzYkB','6576bAAHKY'];a165_0x170d=function(){return _0x393988;};return a165_0x170d();}import a165_0x406e2a from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x83390f,_0x51158e){const _0x54921d=a165_0x3aaf,_0x3fb186=a165_0x406e2a[_0x54921d(0x88)](_0x83390f)===_0x83390f,_0x27911e=_0x51158e?.[_0x54921d(0x8d)]??null,_0x3b04a3=_0x51158e?.[_0x54921d(0x8e)]??null,_0x22dde8=Boolean(_0x3fb186&&_0x27911e&&a165_0x406e2a['lt'](_0x83390f,_0x27911e)),_0x2fc096=Boolean(_0x3fb186&&_0x3b04a3&&a165_0x406e2a['lt'](_0x83390f,_0x3b04a3));return{'currentVersion':_0x83390f,'stableVersion':_0x27911e,'minimumVersion':_0x3b04a3,'needsUpgrade':_0x22dde8||_0x2fc096,'belowMinimum':_0x2fc096,'upgradeMessage':_0x51158e?.[_0x54921d(0x7c)],'minimumVersionMessage':_0x51158e?.[_0x54921d(0x86)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x2f6f0c){const _0xd2b83f=a165_0x3aaf;return _0xd2b83f(0x83)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x2f6f0c[_0xd2b83f(0x8d)]??'latest');}export function assertCliVersionSupported(_0x119014){const _0x368ec3=a165_0x3aaf;if(!_0x119014[_0x368ec3(0x84)])return;const _0x1e9c66=[_0x119014[_0x368ec3(0x86)],_0x368ec3(0x8b)+_0x119014[_0x368ec3(0x81)],'Minimum\x20supported:\x20'+_0x119014['minimumVersion'],_0x368ec3(0x82)+(_0x119014[_0x368ec3(0x8d)]??_0x368ec3(0x85)),_0x368ec3(0x8a)+getCliUpgradeCommand(_0x119014)]['filter'](Boolean)[_0x368ec3(0x80)]('\x0a');throw CliErrors['validation'](_0x368ec3(0x79),_0x1e9c66);}
1
+ (function(_0x17c180,_0x2ca4a2){const _0x40cf30=a165_0x2044,_0x5470f4=_0x17c180();while(!![]){try{const _0x15f153=-parseInt(_0x40cf30(0x83))/0x1*(-parseInt(_0x40cf30(0x8a))/0x2)+-parseInt(_0x40cf30(0x8b))/0x3+-parseInt(_0x40cf30(0x9a))/0x4+-parseInt(_0x40cf30(0x86))/0x5*(parseInt(_0x40cf30(0x99))/0x6)+-parseInt(_0x40cf30(0x81))/0x7*(parseInt(_0x40cf30(0x92))/0x8)+-parseInt(_0x40cf30(0x95))/0x9*(-parseInt(_0x40cf30(0x8d))/0xa)+parseInt(_0x40cf30(0x91))/0xb*(parseInt(_0x40cf30(0x87))/0xc);if(_0x15f153===_0x2ca4a2)break;else _0x5470f4['push'](_0x5470f4['shift']());}catch(_0x570984){_0x5470f4['push'](_0x5470f4['shift']());}}}(a165_0x1185,0xdd871));function a165_0x2044(_0x39fcb3,_0x1db03a){_0x39fcb3=_0x39fcb3-0x7f;const _0x11851a=a165_0x1185();let _0x2044f5=_0x11851a[_0x39fcb3];return _0x2044f5;}import a165_0x162666 from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x1a5bd8,_0x40ffe2){const _0x191411=a165_0x2044,_0x836ac=a165_0x162666[_0x191411(0x93)](_0x1a5bd8)===_0x1a5bd8,_0x4c7b92=_0x40ffe2?.[_0x191411(0x89)]??null,_0x17c838=_0x40ffe2?.[_0x191411(0x8f)]??null,_0x2fcaf2=Boolean(_0x836ac&&_0x4c7b92&&a165_0x162666['lt'](_0x1a5bd8,_0x4c7b92)),_0x3cd184=Boolean(_0x836ac&&_0x17c838&&a165_0x162666['lt'](_0x1a5bd8,_0x17c838));return{'currentVersion':_0x1a5bd8,'stableVersion':_0x4c7b92,'minimumVersion':_0x17c838,'needsUpgrade':_0x2fcaf2||_0x3cd184,'belowMinimum':_0x3cd184,'upgradeMessage':_0x40ffe2?.[_0x191411(0x98)],'minimumVersionMessage':_0x40ffe2?.['minimumVersionMessage']};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x4e6bf6){const _0x4b4f1d=a165_0x2044;return _0x4b4f1d(0x80)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x4e6bf6[_0x4b4f1d(0x89)]??_0x4b4f1d(0x85));}export function assertCliVersionSupported(_0x57374f){const _0x1ddfd5=a165_0x2044;if(!_0x57374f['belowMinimum'])return;const _0x53b976=[_0x57374f[_0x1ddfd5(0x8e)],_0x1ddfd5(0x8c)+_0x57374f[_0x1ddfd5(0x96)],_0x1ddfd5(0x84)+_0x57374f[_0x1ddfd5(0x8f)],_0x1ddfd5(0x90)+(_0x57374f[_0x1ddfd5(0x89)]??'unavailable'),_0x1ddfd5(0x94)+getCliUpgradeCommand(_0x57374f)][_0x1ddfd5(0x88)](Boolean)[_0x1ddfd5(0x7f)]('\x0a');throw CliErrors[_0x1ddfd5(0x82)](_0x1ddfd5(0x97),_0x53b976);}function a165_0x1185(){const _0x3cd973=['upgradeMessage','132TSbaZR','600360oEJrIV','join','npm\x20install\x20-g\x20','7rVzstN','validation','1504067eBcVYa','Minimum\x20supported:\x20','latest','62610GeElyH','11736gzivAv','filter','stableVersion','2syJrMy','5225226QuKWXb','Current\x20version:\x20','110ycRfqx','minimumVersionMessage','minimumVersion','Recommended\x20stable:\x20','9911nqcrXf','541192STPOGK','valid','Upgrade\x20command:\x20','619443CmTtUa','currentVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.'];a165_0x1185=function(){return _0x3cd973;};return a165_0x1185();}
@@ -1 +1 @@
1
- function a166_0x4e8a(){const _0x13e70a=['string','84nVtxly','now','minimumVersionMessage','2052404gxxxsk','recommendedVersion','2565195ebBeQO','18162FihFCt','finally','then','294liLjzZ','json','3694800kzRvCm','5SDMkkP','valid','2359885uXivRO','minimumVersion','4174YJtHef','cli','trim','217luRaxo','49398lQRvqc','timeout','object','upgradeMessage','6460mqwlKM'];a166_0x4e8a=function(){return _0x13e70a;};return a166_0x4e8a();}(function(_0x52d70e,_0x5b382f){const _0x1b697e=a166_0x2fd8,_0x14beae=_0x52d70e();while(!![]){try{const _0x1eeb2a=-parseInt(_0x1b697e(0x87))/0x1*(-parseInt(_0x1b697e(0x8e))/0x2)+parseInt(_0x1b697e(0x9d))/0x3+parseInt(_0x1b697e(0x9b))/0x4*(-parseInt(_0x1b697e(0x8a))/0x5)+-parseInt(_0x1b697e(0x92))/0x6*(parseInt(_0x1b697e(0x91))/0x7)+parseInt(_0x1b697e(0x89))/0x8+-parseInt(_0x1b697e(0x9e))/0x9*(-parseInt(_0x1b697e(0x96))/0xa)+-parseInt(_0x1b697e(0x8c))/0xb*(parseInt(_0x1b697e(0x98))/0xc);if(_0x1eeb2a===_0x5b382f)break;else _0x14beae['push'](_0x14beae['shift']());}catch(_0x511f15){_0x14beae['push'](_0x14beae['shift']());}}}(a166_0x4e8a,0xeb5d4));import a166_0x4d238a from'semver';import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0x109737){const _0x59b74a=a166_0x2fd8;return typeof _0x109737===_0x59b74a(0x97)&&_0x109737['trim']()?_0x109737[_0x59b74a(0x90)]():null;}function a166_0x2fd8(_0x1f74b0,_0x14c17b){_0x1f74b0=_0x1f74b0-0x85;const _0x4e8abd=a166_0x4e8a();let _0x2fd887=_0x4e8abd[_0x1f74b0];return _0x2fd887;}function pickStrictSemver(_0x33efd1){const _0x228b29=a166_0x2fd8,_0x866e60=pickString(_0x33efd1);return _0x866e60&&a166_0x4d238a[_0x228b29(0x8b)](_0x866e60)===_0x866e60?_0x866e60:null;}export function normalizeCliVersionPolicy(_0x16bfd6){const _0x459947=a166_0x2fd8;if(!_0x16bfd6||typeof _0x16bfd6!==_0x459947(0x94))return null;const _0x22e3d1=_0x16bfd6,_0xc17a32=_0x22e3d1[_0x459947(0x8f)]&&typeof _0x22e3d1[_0x459947(0x8f)]==='object'?_0x22e3d1['cli']:_0x22e3d1,_0x5c9b6e=pickStrictSemver(_0xc17a32['stableVersion']??_0xc17a32['latestVersion']??_0xc17a32[_0x459947(0x9c)]),_0x12da7b=pickStrictSemver(_0xc17a32[_0x459947(0x8d)]??_0xc17a32['minVersion']);if(!_0x5c9b6e&&!_0x12da7b)return null;if(_0x5c9b6e&&_0x12da7b&&a166_0x4d238a['gt'](_0x12da7b,_0x5c9b6e))return null;return{'stableVersion':_0x5c9b6e,'minimumVersion':_0x12da7b,'upgradeMessage':pickString(_0xc17a32[_0x459947(0x95)])??undefined,'minimumVersionMessage':pickString(_0xc17a32[_0x459947(0x9a)])??undefined};}export async function fetchCliVersionPolicy(){const _0x425965=a166_0x2fd8;try{const _0xcbd06=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal[_0x425965(0x93)](FETCH_TIMEOUT_MS)});if(!_0xcbd06['ok'])return null;return normalizeCliVersionPolicy(await _0xcbd06[_0x425965(0x88)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x37ad48=a166_0x2fd8,_0x3c1113=Date['now']();if(hasCachedPolicy){const _0x116623=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x3c1113-cachedAt<_0x116623)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x37ad48(0x86)](_0x373aea=>{const _0x41ff68=_0x37ad48;return cachedPolicy=_0x373aea,cachedAt=Date[_0x41ff68(0x99)](),hasCachedPolicy=!![],_0x373aea;})[_0x37ad48(0x85)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
1
+ (function(_0x37b430,_0x1ecf03){const _0x3f929c=a166_0xbede,_0x70c477=_0x37b430();while(!![]){try{const _0x4053dc=-parseInt(_0x3f929c(0x77))/0x1+-parseInt(_0x3f929c(0x6b))/0x2+parseInt(_0x3f929c(0x78))/0x3+-parseInt(_0x3f929c(0x7c))/0x4+-parseInt(_0x3f929c(0x6c))/0x5+parseInt(_0x3f929c(0x7d))/0x6*(parseInt(_0x3f929c(0x7b))/0x7)+parseInt(_0x3f929c(0x6d))/0x8;if(_0x4053dc===_0x1ecf03)break;else _0x70c477['push'](_0x70c477['shift']());}catch(_0x14d128){_0x70c477['push'](_0x70c477['shift']());}}}(a166_0x5eb1,0x8013b));import a166_0x1d1e06 from'semver';import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0x388dcf){const _0x1bf3e2=a166_0xbede;return typeof _0x388dcf===_0x1bf3e2(0x75)&&_0x388dcf[_0x1bf3e2(0x7a)]()?_0x388dcf[_0x1bf3e2(0x7a)]():null;}function pickStrictSemver(_0x4cc4ba){const _0x24efce=a166_0xbede,_0x3a2808=pickString(_0x4cc4ba);return _0x3a2808&&a166_0x1d1e06[_0x24efce(0x7e)](_0x3a2808)===_0x3a2808?_0x3a2808:null;}export function normalizeCliVersionPolicy(_0x1686f5){const _0x2c801b=a166_0xbede;if(!_0x1686f5||typeof _0x1686f5!==_0x2c801b(0x70))return null;const _0x4e7913=_0x1686f5,_0x211f78=_0x4e7913['cli']&&typeof _0x4e7913[_0x2c801b(0x73)]==='object'?_0x4e7913[_0x2c801b(0x73)]:_0x4e7913,_0x5b315c=pickStrictSemver(_0x211f78['stableVersion']??_0x211f78[_0x2c801b(0x74)]??_0x211f78['recommendedVersion']),_0x3eb0a6=pickStrictSemver(_0x211f78[_0x2c801b(0x76)]??_0x211f78[_0x2c801b(0x79)]);if(!_0x5b315c&&!_0x3eb0a6)return null;if(_0x5b315c&&_0x3eb0a6&&a166_0x1d1e06['gt'](_0x3eb0a6,_0x5b315c))return null;return{'stableVersion':_0x5b315c,'minimumVersion':_0x3eb0a6,'upgradeMessage':pickString(_0x211f78[_0x2c801b(0x6f)])??undefined,'minimumVersionMessage':pickString(_0x211f78[_0x2c801b(0x72)])??undefined};}function a166_0x5eb1(){const _0x3223fd=['minimumVersion','71110krHYnf','1307757JbfoPf','minVersion','trim','9688WHXEzg','750556taAKtJ','2376roglLk','valid','now','1591034ZrBiUL','177660kJzwRo','5043344xYJbhl','timeout','upgradeMessage','object','json','minimumVersionMessage','cli','latestVersion','string'];a166_0x5eb1=function(){return _0x3223fd;};return a166_0x5eb1();}export async function fetchCliVersionPolicy(){const _0x427467=a166_0xbede;try{const _0x16a2c1=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal[_0x427467(0x6e)](FETCH_TIMEOUT_MS)});if(!_0x16a2c1['ok'])return null;return normalizeCliVersionPolicy(await _0x16a2c1[_0x427467(0x71)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0xdbe143=a166_0xbede,_0x151a2e=Date[_0xdbe143(0x7f)]();if(hasCachedPolicy){const _0x37e8d8=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x151a2e-cachedAt<_0x37e8d8)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x23099f=>{return cachedPolicy=_0x23099f,cachedAt=Date['now'](),hasCachedPolicy=!![],_0x23099f;})['finally'](()=>{pendingPolicy=null;}),pendingPolicy;}function a166_0xbede(_0x8caef7,_0x3ad058){_0x8caef7=_0x8caef7-0x6b;const _0x5eb153=a166_0x5eb1();let _0xbedec8=_0x5eb153[_0x8caef7];return _0xbedec8;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
@@ -1 +1 @@
1
- const a167_0x2ee103=a167_0xc686;function a167_0x838f(){const _0x238db1=['level','522048iryoRc','logTask','parse','timestamp','format','log','blue','logFilePath','initWinstonLogger','14092bgESzt','stringify','createLogger','currentRawCommand','Completed:\x20','success','addColors','File','winstonLogger','green','readLogs','setLogPath','command','message','red','map','rawCommand','utf8','1270316PQZgJo','clearLogs','now','split','yellow','warn','setRawCommand','error','156qwnuIi','22346300nopFFR','printf','info','135yQSBTn','Failed:\x20','combine','unknown','getWinstonInstance','107712FUFRWj','mkdirSync','7073199bSYoBF','existsSync','Failed\x20to\x20read\x20logs:','725910vUtrsv','toISOString','30KbJdcd','filter','dirname','Failed\x20to\x20clear\x20logs:','trim','clear','duration'];a167_0x838f=function(){return _0x238db1;};return a167_0x838f();}(function(_0x3b3c3e,_0x52ced5){const _0x363249=a167_0xc686,_0x20ca8e=_0x3b3c3e();while(!![]){try{const _0x1cb0eb=parseInt(_0x363249(0x1c2))/0x1+parseInt(_0x363249(0x19f))/0x2*(parseInt(_0x363249(0x1b9))/0x3)+-parseInt(_0x363249(0x1b1))/0x4+parseInt(_0x363249(0x1c9))/0x5*(parseInt(_0x363249(0x1c7))/0x6)+parseInt(_0x363249(0x1c4))/0x7+parseInt(_0x363249(0x196))/0x8*(parseInt(_0x363249(0x1bd))/0x9)+-parseInt(_0x363249(0x1ba))/0xa;if(_0x1cb0eb===_0x52ced5)break;else _0x20ca8e['push'](_0x20ca8e['shift']());}catch(_0x1fe2cc){_0x20ca8e['push'](_0x20ca8e['shift']());}}}(a167_0x838f,0x9b8ae));function a167_0xc686(_0x552e15,_0x5a5d4a){_0x552e15=_0x552e15-0x196;const _0x838fdf=a167_0x838f();let _0xc68647=_0x838fdf[_0x552e15];return _0xc68647;}import a167_0x62fda9 from'winston';import a167_0x5cde1c from'node:fs';import a167_0x18002f from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a167_0x2ee103(0x1a7)];[a167_0x2ee103(0x19d)]='';['currentRawCommand']='';constructor(){}[a167_0x2ee103(0x1b7)](_0x2573bf){const _0x2f19b1=a167_0x2ee103;this[_0x2f19b1(0x1a2)]=_0x2573bf;}[a167_0x2ee103(0x1aa)](_0x3caba6){const _0x15b9eb=a167_0x2ee103;this[_0x15b9eb(0x19d)]=a167_0x18002f['join'](_0x3caba6,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this['winstonLogger'][_0x15b9eb(0x1ce)](),this[_0x15b9eb(0x19e)]();}[a167_0x2ee103(0x19e)](){const _0x1e9859=a167_0x2ee103,_0x25bddb=a167_0x18002f[_0x1e9859(0x1cb)](this[_0x1e9859(0x19d)]);!a167_0x5cde1c[_0x1e9859(0x1c5)](_0x25bddb)&&a167_0x5cde1c[_0x1e9859(0x1c3)](_0x25bddb,{'recursive':!![]});const _0x16eae1=a167_0x62fda9[_0x1e9859(0x19a)][_0x1e9859(0x1bf)](a167_0x62fda9['format']['timestamp'](),a167_0x62fda9[_0x1e9859(0x19a)]['errors']({'stack':!![]}),a167_0x62fda9['format'][_0x1e9859(0x1bb)](_0xd4b65f=>{const _0x47402c=_0x1e9859,_0x40a512={'timestamp':_0xd4b65f[_0x47402c(0x199)]||new Date()[_0x47402c(0x1c8)](),'level':_0xd4b65f[_0x47402c(0x1d0)]||_0x47402c(0x1bc),'command':_0xd4b65f[_0x47402c(0x1ab)]||_0x47402c(0x1c0),'rawCommand':_0xd4b65f[_0x47402c(0x1af)]||this[_0x47402c(0x1a2)]||undefined,'message':_0xd4b65f[_0x47402c(0x1ac)]||'','duration':_0xd4b65f[_0x47402c(0x1cf)]||undefined,'details':_0xd4b65f['details']||undefined};return JSON[_0x47402c(0x1a0)](_0x40a512);}));this[_0x1e9859(0x1a7)]=a167_0x62fda9[_0x1e9859(0x1a1)]({'level':_0x1e9859(0x1bc),'format':_0x16eae1,'transports':[new a167_0x62fda9['transports'][(_0x1e9859(0x1a6))]({'filename':this[_0x1e9859(0x19d)],'level':_0x1e9859(0x1bc)})],'silent':![]}),a167_0x62fda9[_0x1e9859(0x1a5)]({'success':_0x1e9859(0x1a8),'error':_0x1e9859(0x1ad),'warn':_0x1e9859(0x1b5),'info':_0x1e9859(0x19c)});}[a167_0x2ee103(0x1bc)](_0x3ec9d2,_0x43ed47,_0x476b77){const _0x77dbf2=a167_0x2ee103;if(!this[_0x77dbf2(0x19d)]||!this[_0x77dbf2(0x1a7)])return;this['winstonLogger']['info'](_0x43ed47,{'command':_0x3ec9d2,'details':_0x476b77});}[a167_0x2ee103(0x1a4)](_0x219480,_0x11faec,_0x10a7fa,_0xaf0de4){const _0x25a925=a167_0x2ee103;if(!this[_0x25a925(0x19d)]||!this['winstonLogger'])return;this[_0x25a925(0x1a7)][_0x25a925(0x19b)]('info',_0x11faec,{'level':_0x25a925(0x1a4),'command':_0x219480,'duration':_0x10a7fa,'details':_0xaf0de4});}[a167_0x2ee103(0x1b8)](_0x91fc3c,_0x3f291d,_0x4ac874){const _0xb41c42=a167_0x2ee103;if(!this[_0xb41c42(0x19d)]||!this[_0xb41c42(0x1a7)])return;this[_0xb41c42(0x1a7)][_0xb41c42(0x1b8)](_0x3f291d,{'command':_0x91fc3c,'details':_0x4ac874});}[a167_0x2ee103(0x1b6)](_0x508847,_0x48bc02,_0x1a8417){const _0x41412b=a167_0x2ee103;if(!this[_0x41412b(0x19d)]||!this[_0x41412b(0x1a7)])return;this['winstonLogger'][_0x41412b(0x1b6)](_0x48bc02,{'command':_0x508847,'details':_0x1a8417});}async[a167_0x2ee103(0x197)](_0xea0e68,_0x2547c6,_0xc8a20){const _0x12a9c7=a167_0x2ee103,_0xd0d33d=Date[_0x12a9c7(0x1b3)]();this[_0x12a9c7(0x1bc)](_0xea0e68,'Starting:\x20'+_0x2547c6);try{const _0x275577=await _0xc8a20(),_0x3c048b=Date[_0x12a9c7(0x1b3)]()-_0xd0d33d;return this['success'](_0xea0e68,_0x12a9c7(0x1a3)+_0x2547c6,_0x3c048b),_0x275577;}catch(_0x46b1ea){const _0x92d6ad=Date['now']()-_0xd0d33d;this[_0x12a9c7(0x1b8)](_0xea0e68,_0x12a9c7(0x1be)+_0x2547c6,{'error':_0x46b1ea instanceof Error?_0x46b1ea['message']:String(_0x46b1ea),'duration':_0x92d6ad});throw _0x46b1ea;}}[a167_0x2ee103(0x1a9)](){const _0x389b0b=a167_0x2ee103;try{if(!a167_0x5cde1c[_0x389b0b(0x1c5)](this['logFilePath']))return[];const _0x120c70=a167_0x5cde1c['readFileSync'](this[_0x389b0b(0x19d)],_0x389b0b(0x1b0));return _0x120c70[_0x389b0b(0x1b4)](/\r?\n/)[_0x389b0b(0x1ca)](_0x48d8a7=>_0x48d8a7[_0x389b0b(0x1cd)]())[_0x389b0b(0x1ae)](_0x53f4b9=>JSON[_0x389b0b(0x198)](_0x53f4b9));}catch(_0x2abc8a){return console[_0x389b0b(0x1b6)](_0x389b0b(0x1c6),_0x2abc8a),[];}}[a167_0x2ee103(0x1b2)](){const _0x2e9c87=a167_0x2ee103;try{a167_0x5cde1c[_0x2e9c87(0x1c5)](this['logFilePath'])&&a167_0x5cde1c['writeFileSync'](this[_0x2e9c87(0x19d)],'','utf8');}catch(_0x4b55b9){console[_0x2e9c87(0x1b6)](_0x2e9c87(0x1cc),_0x4b55b9);}}[a167_0x2ee103(0x1c1)](){const _0x289027=a167_0x2ee103;return this[_0x289027(0x1a7)];}}export const logger=new Logger();
1
+ const a167_0x2a4172=a167_0x4cc7;(function(_0x1a80df,_0x3f9b94){const _0x2b180d=a167_0x4cc7,_0x3ace72=_0x1a80df();while(!![]){try{const _0x58b8f4=-parseInt(_0x2b180d(0x11a))/0x1*(parseInt(_0x2b180d(0x10d))/0x2)+-parseInt(_0x2b180d(0xfe))/0x3*(parseInt(_0x2b180d(0x11f))/0x4)+parseInt(_0x2b180d(0x119))/0x5*(-parseInt(_0x2b180d(0x123))/0x6)+parseInt(_0x2b180d(0x124))/0x7+parseInt(_0x2b180d(0xfa))/0x8*(-parseInt(_0x2b180d(0xf6))/0x9)+-parseInt(_0x2b180d(0x109))/0xa+parseInt(_0x2b180d(0x126))/0xb*(parseInt(_0x2b180d(0xfc))/0xc);if(_0x58b8f4===_0x3f9b94)break;else _0x3ace72['push'](_0x3ace72['shift']());}catch(_0x16ee63){_0x3ace72['push'](_0x3ace72['shift']());}}}(a167_0x6c47,0x39f2f));import a167_0x3812ef from'winston';import a167_0x141b98 from'node:fs';import a167_0x18159e from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a167_0x2a4172(0xff)];[a167_0x2a4172(0x102)]='';['currentRawCommand']='';constructor(){}[a167_0x2a4172(0x108)](_0x1c0366){this['currentRawCommand']=_0x1c0366;}[a167_0x2a4172(0x115)](_0x24e74e){const _0x2da5bd=a167_0x2a4172;this[_0x2da5bd(0x102)]=a167_0x18159e[_0x2da5bd(0x101)](_0x24e74e,PRODUCT_CONFIG['logFileName']),this[_0x2da5bd(0xff)]&&this[_0x2da5bd(0xff)][_0x2da5bd(0x106)](),this[_0x2da5bd(0x129)]();}[a167_0x2a4172(0x129)](){const _0x4c7aba=a167_0x2a4172,_0xe54422=a167_0x18159e[_0x4c7aba(0x128)](this[_0x4c7aba(0x102)]);!a167_0x141b98[_0x4c7aba(0x116)](_0xe54422)&&a167_0x141b98[_0x4c7aba(0x120)](_0xe54422,{'recursive':!![]});const _0x555d8f=a167_0x3812ef[_0x4c7aba(0x127)]['combine'](a167_0x3812ef[_0x4c7aba(0x127)][_0x4c7aba(0x107)](),a167_0x3812ef[_0x4c7aba(0x127)][_0x4c7aba(0xf3)]({'stack':!![]}),a167_0x3812ef[_0x4c7aba(0x127)][_0x4c7aba(0xed)](_0x2af32d=>{const _0x3469e2=_0x4c7aba,_0x243221={'timestamp':_0x2af32d[_0x3469e2(0x107)]||new Date()[_0x3469e2(0xfd)](),'level':_0x2af32d[_0x3469e2(0x11b)]||_0x3469e2(0x114),'command':_0x2af32d[_0x3469e2(0x125)]||_0x3469e2(0x117),'rawCommand':_0x2af32d['rawCommand']||this[_0x3469e2(0x122)]||undefined,'message':_0x2af32d[_0x3469e2(0x12a)]||'','duration':_0x2af32d[_0x3469e2(0x121)]||undefined,'details':_0x2af32d[_0x3469e2(0x10e)]||undefined};return JSON[_0x3469e2(0x10b)](_0x243221);}));this['winstonLogger']=a167_0x3812ef[_0x4c7aba(0x113)]({'level':_0x4c7aba(0x114),'format':_0x555d8f,'transports':[new a167_0x3812ef[(_0x4c7aba(0x103))]['File']({'filename':this['logFilePath'],'level':_0x4c7aba(0x114)})],'silent':![]}),a167_0x3812ef[_0x4c7aba(0xf2)]({'success':_0x4c7aba(0x105),'error':_0x4c7aba(0xf7),'warn':_0x4c7aba(0x10f),'info':'blue'});}[a167_0x2a4172(0x114)](_0x31e259,_0x3c0bc5,_0x43d9f6){const _0x15d021=a167_0x2a4172;if(!this[_0x15d021(0x102)]||!this[_0x15d021(0xff)])return;this['winstonLogger'][_0x15d021(0x114)](_0x3c0bc5,{'command':_0x31e259,'details':_0x43d9f6});}[a167_0x2a4172(0xf9)](_0x5114b4,_0x3f608c,_0x5a8d48,_0x267ece){const _0x1129d3=a167_0x2a4172;if(!this[_0x1129d3(0x102)]||!this['winstonLogger'])return;this['winstonLogger'][_0x1129d3(0x100)](_0x1129d3(0x114),_0x3f608c,{'level':'success','command':_0x5114b4,'duration':_0x5a8d48,'details':_0x267ece});}[a167_0x2a4172(0x111)](_0x49f8d2,_0x7b55fb,_0x336d86){const _0x50d6f7=a167_0x2a4172;if(!this['logFilePath']||!this[_0x50d6f7(0xff)])return;this['winstonLogger']['error'](_0x7b55fb,{'command':_0x49f8d2,'details':_0x336d86});}[a167_0x2a4172(0x110)](_0x1536ea,_0x1c27e5,_0x3d75ec){const _0x307577=a167_0x2a4172;if(!this[_0x307577(0x102)]||!this['winstonLogger'])return;this['winstonLogger'][_0x307577(0x110)](_0x1c27e5,{'command':_0x1536ea,'details':_0x3d75ec});}async[a167_0x2a4172(0x11c)](_0xba95ec,_0x5d6641,_0x586c4c){const _0x50803a=a167_0x2a4172,_0x5ada01=Date[_0x50803a(0xfb)]();this[_0x50803a(0x114)](_0xba95ec,_0x50803a(0x11d)+_0x5d6641);try{const _0x5eca68=await _0x586c4c(),_0x21f0fd=Date[_0x50803a(0xfb)]()-_0x5ada01;return this[_0x50803a(0xf9)](_0xba95ec,_0x50803a(0xef)+_0x5d6641,_0x21f0fd),_0x5eca68;}catch(_0x6675b4){const _0x4cc431=Date['now']()-_0x5ada01;this['error'](_0xba95ec,'Failed:\x20'+_0x5d6641,{'error':_0x6675b4 instanceof Error?_0x6675b4[_0x50803a(0x12a)]:String(_0x6675b4),'duration':_0x4cc431});throw _0x6675b4;}}[a167_0x2a4172(0x118)](){const _0x4e20cd=a167_0x2a4172;try{if(!a167_0x141b98['existsSync'](this[_0x4e20cd(0x102)]))return[];const _0x2d301d=a167_0x141b98['readFileSync'](this['logFilePath'],_0x4e20cd(0xf4));return _0x2d301d[_0x4e20cd(0xf1)](/\r?\n/)[_0x4e20cd(0x10a)](_0x3e249d=>_0x3e249d[_0x4e20cd(0xf0)]())[_0x4e20cd(0xee)](_0x5eed3a=>JSON[_0x4e20cd(0x112)](_0x5eed3a));}catch(_0x5294ae){return console[_0x4e20cd(0x110)](_0x4e20cd(0x104),_0x5294ae),[];}}[a167_0x2a4172(0xf8)](){const _0x1da34b=a167_0x2a4172;try{a167_0x141b98[_0x1da34b(0x116)](this[_0x1da34b(0x102)])&&a167_0x141b98[_0x1da34b(0x11e)](this['logFilePath'],'','utf8');}catch(_0x39fc8e){console[_0x1da34b(0x110)](_0x1da34b(0xf5),_0x39fc8e);}}[a167_0x2a4172(0x10c)](){const _0x5d4e94=a167_0x2a4172;return this[_0x5d4e94(0xff)];}}function a167_0x4cc7(_0x2ab018,_0x5d3549){_0x2ab018=_0x2ab018-0xed;const _0x6c4773=a167_0x6c47();let _0x4cc7c7=_0x6c4773[_0x2ab018];return _0x4cc7c7;}export const logger=new Logger();function a167_0x6c47(){const _0x510b5d=['timestamp','setRawCommand','587160RaWKyd','filter','stringify','getWinstonInstance','232662ESEiIU','details','yellow','warn','error','parse','createLogger','info','setLogPath','existsSync','unknown','readLogs','5RhHwXd','1UkLTdD','level','logTask','Starting:\x20','writeFileSync','233708tPIpcO','mkdirSync','duration','currentRawCommand','1936632lGxdFH','2762396gqPhyZ','command','6180988ltsmVD','format','dirname','initWinstonLogger','message','printf','map','Completed:\x20','trim','split','addColors','errors','utf8','Failed\x20to\x20clear\x20logs:','284265TKgNbN','red','clearLogs','success','80pxfpxo','now','24WKOSfY','toISOString','24DlBdLf','winstonLogger','log','join','logFilePath','transports','Failed\x20to\x20read\x20logs:','green','clear'];a167_0x6c47=function(){return _0x510b5d;};return a167_0x6c47();}
@@ -1 +1 @@
1
- const a168_0x4c1b36=a168_0x1ce4;function a168_0x5011(){const _0x560713=['parse','28995hpNBAF','315489deapSj','prototype','754584hdOvts','MIN_SAFE_INTEGER','3967985CZQYxu','defineProperty','undefined','length','slice','14CkacAW','json','1998522cwqgnc','1179280vuYJGs','1281410QZQdhY','includes','9jrwMtz'];a168_0x5011=function(){return _0x560713;};return a168_0x5011();}function a168_0x1ce4(_0x5a7159,_0x3ef404){_0x5a7159=_0x5a7159-0x180;const _0x5011fa=a168_0x5011();let _0x1ce4ae=_0x5011fa[_0x5a7159];return _0x1ce4ae;}(function(_0xa7ca03,_0x9da8ea){const _0x488a02=a168_0x1ce4,_0x2ffd1e=_0xa7ca03();while(!![]){try{const _0x236b83=-parseInt(_0x488a02(0x18d))/0x1+parseInt(_0x488a02(0x184))/0x2*(parseInt(_0x488a02(0x18c))/0x3)+parseInt(_0x488a02(0x18f))/0x4+parseInt(_0x488a02(0x188))/0x5+-parseInt(_0x488a02(0x186))/0x6+parseInt(_0x488a02(0x191))/0x7+-parseInt(_0x488a02(0x187))/0x8*(parseInt(_0x488a02(0x18a))/0x9);if(_0x236b83===_0x9da8ea)break;else _0x2ffd1e['push'](_0x2ffd1e['shift']());}catch(_0xe04e67){_0x2ffd1e['push'](_0x2ffd1e['shift']());}}}(a168_0x5011,0x4533c));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a168_0x4c1b36(0x190)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x9aa926){const _0x3376c3=a168_0x4c1b36;if(_0x9aa926[_0x3376c3(0x189)]('.')||_0x9aa926[_0x3376c3(0x189)]('e')||_0x9aa926[_0x3376c3(0x189)]('E'))return![];const _0x5f4489=BigInt(_0x9aa926);return _0x5f4489>MAX_SAFE_INTEGER||_0x5f4489<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x32500b){const _0x52d705=a168_0x4c1b36;let _0x30e86d='',_0x474388=![],_0x33405f=![];for(let _0x2d01b0=0x0;_0x2d01b0<_0x32500b[_0x52d705(0x182)];){const _0x383a9d=_0x32500b[_0x2d01b0];if(_0x474388){_0x30e86d+=_0x383a9d,_0x2d01b0+=0x1;if(_0x33405f)_0x33405f=![];else{if(_0x383a9d==='\x5c')_0x33405f=!![];else _0x383a9d==='\x22'&&(_0x474388=![]);}continue;}if(_0x383a9d==='\x22'){_0x474388=!![],_0x30e86d+=_0x383a9d,_0x2d01b0+=0x1;continue;}if(_0x383a9d==='-'||_0x383a9d>='0'&&_0x383a9d<='9'){const _0x39c18d=JSON_NUMBER_PATTERN['exec'](_0x32500b[_0x52d705(0x183)](_0x2d01b0))?.[0x0];if(_0x39c18d){_0x30e86d+=isUnsafeIntegerLiteral(_0x39c18d)?'\x22'+_0x39c18d+'\x22':_0x39c18d,_0x2d01b0+=_0x39c18d['length'];continue;}}_0x30e86d+=_0x383a9d,_0x2d01b0+=0x1;}return _0x30e86d;}export function parseLosslessJson(_0x4e34f8){const _0x4f8ba6=a168_0x4c1b36;return JSON[_0x4f8ba6(0x18b)](quoteUnsafeIntegerLiterals(_0x4e34f8));}export function installLosslessJsonResponseParser(){const _0x217aad=a168_0x4c1b36;if(typeof Response===_0x217aad(0x181))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x217aad(0x18e)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,'json'),Object[_0x217aad(0x180)](responseJsonPrototype,_0x217aad(0x185),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x469459(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x2a4a7e=_0x217aad;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0x2a4a7e(0x185)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ const a168_0x230617=a168_0x4eb8;(function(_0x3f177b,_0x246ff8){const _0x18faa6=a168_0x4eb8,_0x4cb901=_0x3f177b();while(!![]){try{const _0x2c1e9f=-parseInt(_0x18faa6(0x11d))/0x1+-parseInt(_0x18faa6(0x121))/0x2+-parseInt(_0x18faa6(0x119))/0x3*(-parseInt(_0x18faa6(0x113))/0x4)+-parseInt(_0x18faa6(0x115))/0x5*(-parseInt(_0x18faa6(0x11b))/0x6)+parseInt(_0x18faa6(0x114))/0x7+-parseInt(_0x18faa6(0x116))/0x8+parseInt(_0x18faa6(0x10f))/0x9;if(_0x2c1e9f===_0x246ff8)break;else _0x4cb901['push'](_0x4cb901['shift']());}catch(_0x1307db){_0x4cb901['push'](_0x4cb901['shift']());}}}(a168_0x2444,0x82a2d));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a168_0x230617(0x112)]),MIN_SAFE_INTEGER=BigInt(Number[a168_0x230617(0x120)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a168_0x4eb8(_0x204ec7,_0x18d272){_0x204ec7=_0x204ec7-0x10e;const _0x244493=a168_0x2444();let _0x4eb8ff=_0x244493[_0x204ec7];return _0x4eb8ff;}function isUnsafeIntegerLiteral(_0x373890){const _0x2b0303=a168_0x230617;if(_0x373890[_0x2b0303(0x11f)]('.')||_0x373890[_0x2b0303(0x11f)]('e')||_0x373890[_0x2b0303(0x11f)]('E'))return![];const _0x1c15c0=BigInt(_0x373890);return _0x1c15c0>MAX_SAFE_INTEGER||_0x1c15c0<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0xe8e397){const _0x47c385=a168_0x230617;let _0x1d54b2='',_0x504aad=![],_0x50696f=![];for(let _0x31bafe=0x0;_0x31bafe<_0xe8e397[_0x47c385(0x118)];){const _0x439d66=_0xe8e397[_0x31bafe];if(_0x504aad){_0x1d54b2+=_0x439d66,_0x31bafe+=0x1;if(_0x50696f)_0x50696f=![];else{if(_0x439d66==='\x5c')_0x50696f=!![];else _0x439d66==='\x22'&&(_0x504aad=![]);}continue;}if(_0x439d66==='\x22'){_0x504aad=!![],_0x1d54b2+=_0x439d66,_0x31bafe+=0x1;continue;}if(_0x439d66==='-'||_0x439d66>='0'&&_0x439d66<='9'){const _0x30a83a=JSON_NUMBER_PATTERN[_0x47c385(0x111)](_0xe8e397[_0x47c385(0x11c)](_0x31bafe))?.[0x0];if(_0x30a83a){_0x1d54b2+=isUnsafeIntegerLiteral(_0x30a83a)?'\x22'+_0x30a83a+'\x22':_0x30a83a,_0x31bafe+=_0x30a83a['length'];continue;}}_0x1d54b2+=_0x439d66,_0x31bafe+=0x1;}return _0x1d54b2;}export function parseLosslessJson(_0x317375){const _0x49ae9a=a168_0x230617;return JSON[_0x49ae9a(0x11a)](quoteUnsafeIntegerLiterals(_0x317375));}function a168_0x2444(){const _0x5a8a89=['text','exec','MAX_SAFE_INTEGER','31268EDwsrv','6300973tWheKy','2446645yhmdrm','6376256PaYKMi','undefined','length','12YMkgYk','parse','12ASBRYr','slice','865219kRUhWC','json','includes','MIN_SAFE_INTEGER','361298xJmzUS','defineProperty','prototype','4211280cnEMvJ'];a168_0x2444=function(){return _0x5a8a89;};return a168_0x2444();}export function installLosslessJsonResponseParser(){const _0x4ef053=a168_0x230617;if(typeof Response===_0x4ef053(0x117))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x4ef053(0x10e)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0x4ef053(0x11e)),Object[_0x4ef053(0x122)](responseJsonPrototype,_0x4ef053(0x11e),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x2465d2(){const _0x5bcbab=_0x4ef053;return parseLosslessJson(await this[_0x5bcbab(0x110)]());}}),restoreResponseJsonParser=()=>{const _0x13751f=_0x4ef053;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x13751f(0x122)](responseJsonPrototype,_0x13751f(0x11e),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
@@ -1 +1 @@
1
- (function(_0xc35160,_0x547634){const _0x4ef0ec=a169_0x3ef0,_0x15e93b=_0xc35160();while(!![]){try{const _0x1b50be=-parseInt(_0x4ef0ec(0x1c1))/0x1+parseInt(_0x4ef0ec(0x1c5))/0x2+parseInt(_0x4ef0ec(0x1d1))/0x3*(-parseInt(_0x4ef0ec(0x1d3))/0x4)+parseInt(_0x4ef0ec(0x1db))/0x5*(-parseInt(_0x4ef0ec(0x1d2))/0x6)+-parseInt(_0x4ef0ec(0x1d0))/0x7*(parseInt(_0x4ef0ec(0x1df))/0x8)+parseInt(_0x4ef0ec(0x1c8))/0x9*(-parseInt(_0x4ef0ec(0x1d9))/0xa)+parseInt(_0x4ef0ec(0x1c0))/0xb*(parseInt(_0x4ef0ec(0x1c2))/0xc);if(_0x1b50be===_0x547634)break;else _0x15e93b['push'](_0x15e93b['shift']());}catch(_0x5a729c){_0x15e93b['push'](_0x15e93b['shift']());}}}(a169_0x2b51,0x2be40));function a169_0x3ef0(_0x59d135,_0x4cf1d4){_0x59d135=_0x59d135-0x1bf;const _0x2b51c1=a169_0x2b51();let _0x3ef00b=_0x2b51c1[_0x59d135];return _0x3ef00b;}function a169_0x2b51(){const _0x4a8a85=['batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','isSafeInteger','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','105fksOjF','63303NtyYnu','12MUOssx','8scmadN','length','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','id[','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','validation','20VcDnsk','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','833045cwUwst','data\x20update\x20--params.','\x20records\x20per\x20call;\x20received\x20','items','77552flRVyW','isArray','517583GXrdHC','98691RRkrxe','252mMfoFV','test','string','214676UTlEuH','object','number','1332693GGLfOF','join','Invalid\x20JSON\x20for\x20--params:\x20','map'];a169_0x2b51=function(){return _0x4a8a85;};return a169_0x2b51();}import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x126351){const _0x119e68=a169_0x3ef0;if(!_0x126351)return undefined;try{return parseLosslessJson(_0x126351);}catch{throw CliErrors[_0x119e68(0x1d8)](_0x119e68(0x1ca)+_0x126351);}}export function parseJsonParamsValue(_0x39e724){const _0x1afee9=a169_0x3ef0;if(!_0x39e724)return undefined;try{return parseLosslessJson(_0x39e724);}catch{throw CliErrors[_0x1afee9(0x1d8)](_0x1afee9(0x1ca)+_0x39e724);}}export function parseBatchCreateItemsFromParams(_0x435b0d){const _0x1191f0=a169_0x3ef0;if(Array[_0x1191f0(0x1bf)](_0x435b0d))return _0x435b0d;if(_0x435b0d!==null&&_0x435b0d!==undefined&&typeof _0x435b0d===_0x1191f0(0x1c6)&&Array[_0x1191f0(0x1bf)](_0x435b0d[_0x1191f0(0x1de)]))return _0x435b0d[_0x1191f0(0x1de)];throw CliErrors[_0x1191f0(0x1d8)](_0x1191f0(0x1cc),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x3f20c7,_0x9da084){const _0x55f0b5=a169_0x3ef0;if(typeof _0x3f20c7===_0x55f0b5(0x1c7)&&Number[_0x55f0b5(0x1ce)](_0x3f20c7)&&_0x3f20c7>0x0)return _0x3f20c7;if(typeof _0x3f20c7===_0x55f0b5(0x1c4)){if(/^[1-9]\d*$/[_0x55f0b5(0x1c3)](_0x3f20c7))return _0x3f20c7;}throw CliErrors[_0x55f0b5(0x1d8)](_0x55f0b5(0x1dc)+_0x9da084+_0x55f0b5(0x1d7));}export function parseUpdateIdsFromParams(_0x293579){const _0x28dbc9=a169_0x3ef0;if(_0x293579===null||_0x293579===undefined||typeof _0x293579!==_0x28dbc9(0x1c6)||Array[_0x28dbc9(0x1bf)](_0x293579))throw CliErrors['validation'](_0x28dbc9(0x1cd),_0x28dbc9(0x1d5));const _0x4c97b9=_0x293579['id'];if(_0x4c97b9===undefined||_0x4c97b9===null)throw CliErrors[_0x28dbc9(0x1d8)](_0x28dbc9(0x1cf),_0x28dbc9(0x1d5));const _0x4b70cf=Array[_0x28dbc9(0x1bf)](_0x4c97b9)?_0x4c97b9:[_0x4c97b9];if(_0x4b70cf[_0x28dbc9(0x1d4)]===0x0)throw CliErrors['validation'](_0x28dbc9(0x1da));if(_0x4b70cf[_0x28dbc9(0x1d4)]>MAX_DATA_UPDATE_IDS)throw CliErrors['validation']('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x28dbc9(0x1dd)+_0x4b70cf['length']+'.');return _0x4b70cf[_0x28dbc9(0x1cb)]((_0x1540af,_0x11a299)=>parseDataUpdateId(_0x1540af,Array['isArray'](_0x4c97b9)?_0x28dbc9(0x1d6)+_0x11a299+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x5d37ee,_0x5d9834){const _0x92b826=a169_0x3ef0;if(Array['isArray'](_0x5d37ee['id'])&&_0x5d9834[_0x92b826(0x1d4)]>0x1)return{..._0x5d37ee,'id':_0x5d9834[_0x92b826(0x1c9)](',')};return _0x5d37ee;}
1
+ function a169_0x4b7c(){const _0x47c345=['126NDvHVE','1170092sPUjSy','156712LnTWbY','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','20PwlIQW','number','3377763cEHWkU','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data\x20update\x20can\x20update\x20at\x20most\x20','test','map','items','length','data\x20update\x20--params.','object','isArray','448343TyyKFU','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','id[','644523AZwwVC','13480TatXbK','973014lwjLtY','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','Invalid\x20JSON\x20for\x20--params:\x20','validation','isSafeInteger','2aTPzCD'];a169_0x4b7c=function(){return _0x47c345;};return a169_0x4b7c();}(function(_0x2e2e90,_0x359190){const _0x132a7e=a169_0x5e92,_0x418a66=_0x2e2e90();while(!![]){try{const _0x16d2ab=-parseInt(_0x132a7e(0x13b))/0x1+parseInt(_0x132a7e(0x145))/0x2*(parseInt(_0x132a7e(0x13e))/0x3)+parseInt(_0x132a7e(0x147))/0x4+-parseInt(_0x132a7e(0x13f))/0x5+-parseInt(_0x132a7e(0x140))/0x6+parseInt(_0x132a7e(0x146))/0x7*(-parseInt(_0x132a7e(0x148))/0x8)+parseInt(_0x132a7e(0x14d))/0x9*(parseInt(_0x132a7e(0x14b))/0xa);if(_0x16d2ab===_0x359190)break;else _0x418a66['push'](_0x418a66['shift']());}catch(_0x45f8d2){_0x418a66['push'](_0x418a66['shift']());}}}(a169_0x4b7c,0x47548));function a169_0x5e92(_0x421140,_0x66baa4){_0x421140=_0x421140-0x135;const _0x4b7c72=a169_0x4b7c();let _0x5e92aa=_0x4b7c72[_0x421140];return _0x5e92aa;}import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x4a0f9a){const _0x1d1fe0=a169_0x5e92;if(!_0x4a0f9a)return undefined;try{return parseLosslessJson(_0x4a0f9a);}catch{throw CliErrors[_0x1d1fe0(0x143)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x4a0f9a);}}export function parseJsonParamsValue(_0xbf3dc){const _0x57c2f9=a169_0x5e92;if(!_0xbf3dc)return undefined;try{return parseLosslessJson(_0xbf3dc);}catch{throw CliErrors[_0x57c2f9(0x143)](_0x57c2f9(0x142)+_0xbf3dc);}}export function parseBatchCreateItemsFromParams(_0x3da4da){const _0x554ed0=a169_0x5e92;if(Array[_0x554ed0(0x13a)](_0x3da4da))return _0x3da4da;if(_0x3da4da!==null&&_0x3da4da!==undefined&&typeof _0x3da4da===_0x554ed0(0x139)&&Array['isArray'](_0x3da4da[_0x554ed0(0x136)]))return _0x3da4da[_0x554ed0(0x136)];throw CliErrors[_0x554ed0(0x143)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x554ed0(0x14e));}function parseDataUpdateId(_0x333812,_0x3c968){const _0x2aa2c2=a169_0x5e92;if(typeof _0x333812===_0x2aa2c2(0x14c)&&Number[_0x2aa2c2(0x144)](_0x333812)&&_0x333812>0x0)return _0x333812;if(typeof _0x333812==='string'){if(/^[1-9]\d*$/[_0x2aa2c2(0x150)](_0x333812))return _0x333812;}throw CliErrors[_0x2aa2c2(0x143)](_0x2aa2c2(0x138)+_0x3c968+_0x2aa2c2(0x13c));}export function parseUpdateIdsFromParams(_0x218580){const _0x89f1a2=a169_0x5e92;if(_0x218580===null||_0x218580===undefined||typeof _0x218580!==_0x89f1a2(0x139)||Array[_0x89f1a2(0x13a)](_0x218580))throw CliErrors[_0x89f1a2(0x143)](_0x89f1a2(0x14a),_0x89f1a2(0x149));const _0x1e6eb0=_0x218580['id'];if(_0x1e6eb0===undefined||_0x1e6eb0===null)throw CliErrors[_0x89f1a2(0x143)](_0x89f1a2(0x141),_0x89f1a2(0x149));const _0x90b241=Array['isArray'](_0x1e6eb0)?_0x1e6eb0:[_0x1e6eb0];if(_0x90b241[_0x89f1a2(0x137)]===0x0)throw CliErrors[_0x89f1a2(0x143)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x90b241[_0x89f1a2(0x137)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x89f1a2(0x143)](_0x89f1a2(0x14f)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x90b241[_0x89f1a2(0x137)]+'.');return _0x90b241[_0x89f1a2(0x135)]((_0x544fdc,_0x312122)=>parseDataUpdateId(_0x544fdc,Array[_0x89f1a2(0x13a)](_0x1e6eb0)?_0x89f1a2(0x13d)+_0x312122+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x4332e4,_0x404b49){const _0x4ba3f5=a169_0x5e92;if(Array[_0x4ba3f5(0x13a)](_0x4332e4['id'])&&_0x404b49[_0x4ba3f5(0x137)]>0x1)return{..._0x4332e4,'id':_0x404b49['join'](',')};return _0x4332e4;}
@@ -1 +1 @@
1
- (function(_0x59cebe,_0x4b930f){const _0x2d9591=a170_0x286f,_0x5131fa=_0x59cebe();while(!![]){try{const _0x55592b=-parseInt(_0x2d9591(0x103))/0x1*(parseInt(_0x2d9591(0x10a))/0x2)+parseInt(_0x2d9591(0x107))/0x3+-parseInt(_0x2d9591(0x10c))/0x4*(parseInt(_0x2d9591(0x10f))/0x5)+parseInt(_0x2d9591(0x104))/0x6+parseInt(_0x2d9591(0x102))/0x7+-parseInt(_0x2d9591(0x108))/0x8*(-parseInt(_0x2d9591(0x10b))/0x9)+-parseInt(_0x2d9591(0x10e))/0xa;if(_0x55592b===_0x4b930f)break;else _0x5131fa['push'](_0x5131fa['shift']());}catch(_0x5d4b1a){_0x5131fa['push'](_0x5131fa['shift']());}}}(a170_0x32b6,0xed535));function a170_0x32b6(){const _0x1b3ca1=['number','3789130jIsskQ','640ThdvOH','10481583WWxVIP','469190TwxXPq','2357256XFTlHN','test','isSafeInteger','1278864JlPARb','404472nHvzpI','string','4rxOmxz','171hasMkI','30868YuIAKh'];a170_0x32b6=function(){return _0x1b3ca1;};return a170_0x32b6();}function a170_0x286f(_0x543d67,_0x16c070){_0x543d67=_0x543d67-0x102;const _0x32b692=a170_0x32b6();let _0x286ff1=_0x32b692[_0x543d67];return _0x286ff1;}export function normalizePositiveSafeInteger(_0x44eab7){const _0x39f900=a170_0x286f;if(typeof _0x44eab7===_0x39f900(0x10d))return Number[_0x39f900(0x106)](_0x44eab7)&&_0x44eab7>0x0?_0x44eab7:undefined;if(typeof _0x44eab7!==_0x39f900(0x109)||!/^\d+$/[_0x39f900(0x105)](_0x44eab7))return undefined;const _0x1dc089=Number(_0x44eab7);return Number[_0x39f900(0x106)](_0x1dc089)&&_0x1dc089>0x0?_0x1dc089:undefined;}
1
+ function a170_0x2136(){const _0x49594f=['62262HfwfCJ','1094738sqNzTT','4734000GSCkxg','127725EhjxPF','546wYwqal','21380896RLHWTm','string','test','41025LRglGo','isSafeInteger','729704PVvMUY'];a170_0x2136=function(){return _0x49594f;};return a170_0x2136();}(function(_0x53ac2c,_0x17c72c){const _0x3abcfa=a170_0x53a9,_0x36b318=_0x53ac2c();while(!![]){try{const _0x23c7e1=parseInt(_0x3abcfa(0x84))/0x1+-parseInt(_0x3abcfa(0x88))/0x2+parseInt(_0x3abcfa(0x8a))/0x3+parseInt(_0x3abcfa(0x86))/0x4+-parseInt(_0x3abcfa(0x89))/0x5+-parseInt(_0x3abcfa(0x87))/0x6*(parseInt(_0x3abcfa(0x8b))/0x7)+parseInt(_0x3abcfa(0x8c))/0x8;if(_0x23c7e1===_0x17c72c)break;else _0x36b318['push'](_0x36b318['shift']());}catch(_0x406c66){_0x36b318['push'](_0x36b318['shift']());}}}(a170_0x2136,0x9b0b7));function a170_0x53a9(_0x52c48e,_0x46cb24){_0x52c48e=_0x52c48e-0x82;const _0x213607=a170_0x2136();let _0x53a946=_0x213607[_0x52c48e];return _0x53a946;}export function normalizePositiveSafeInteger(_0x23627e){const _0x2b385e=a170_0x53a9;if(typeof _0x23627e==='number')return Number[_0x2b385e(0x85)](_0x23627e)&&_0x23627e>0x0?_0x23627e:undefined;if(typeof _0x23627e!==_0x2b385e(0x82)||!/^\d+$/[_0x2b385e(0x83)](_0x23627e))return undefined;const _0x5e0304=Number(_0x23627e);return Number[_0x2b385e(0x85)](_0x5e0304)&&_0x5e0304>0x0?_0x5e0304:undefined;}
@@ -1 +1 @@
1
- const a171_0x467c59=a171_0x1bb6;(function(_0x2acf71,_0xacae53){const _0x56d8c1=a171_0x1bb6,_0x171951=_0x2acf71();while(!![]){try{const _0x39cf28=-parseInt(_0x56d8c1(0x10c))/0x1*(parseInt(_0x56d8c1(0x100))/0x2)+parseInt(_0x56d8c1(0xfc))/0x3+-parseInt(_0x56d8c1(0xfa))/0x4+parseInt(_0x56d8c1(0xfd))/0x5+parseInt(_0x56d8c1(0x109))/0x6*(parseInt(_0x56d8c1(0x10d))/0x7)+parseInt(_0x56d8c1(0x107))/0x8*(-parseInt(_0x56d8c1(0xfb))/0x9)+parseInt(_0x56d8c1(0x104))/0xa;if(_0x39cf28===_0xacae53)break;else _0x171951['push'](_0x171951['shift']());}catch(_0x56656c){_0x171951['push'](_0x171951['shift']());}}}(a171_0x184b,0xac025));const REDACTED_VALUE=a171_0x467c59(0x103),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set(['comment',a171_0x467c59(0x101)]),SENSITIVE_VALUE_KEYS=new Set([a171_0x467c59(0x108)]);export function isSensitiveKey(_0x61d702){const _0x178e46=a171_0x467c59,_0x252e81=_0x61d702[_0x178e46(0x10b)](/_/g,'-')[_0x178e46(0xff)]();return SENSITIVE_KEY_PATTERN['test'](_0x252e81);}export function isSensitiveFlagName(_0x35536d){const _0x47986a=a171_0x467c59,_0x452fe6=_0x35536d[_0x47986a(0x10b)](/_/g,'-')[_0x47986a(0xff)]();return isSensitiveKey(_0x452fe6)||SENSITIVE_FLAG_NAMES[_0x47986a(0x10e)](_0x452fe6);}function a171_0x1bb6(_0x87b8e9,_0x10fe5b){_0x87b8e9=_0x87b8e9-0xf9;const _0x184b2e=a171_0x184b();let _0x1bb6f6=_0x184b2e[_0x87b8e9];return _0x1bb6f6;}function redactVariableValues(_0x3afac3){const _0xae4fe2=a171_0x467c59;if(Array[_0xae4fe2(0xf9)](_0x3afac3))return _0x3afac3[_0xae4fe2(0xfe)](_0x2c8722=>redactVariableValues(_0x2c8722));if(_0x3afac3&&typeof _0x3afac3==='object')return Object[_0xae4fe2(0x102)](Object[_0xae4fe2(0x105)](_0x3afac3)['map'](([_0x4368e8,_0xb39ccd])=>[_0x4368e8,redactVariableValues(_0xb39ccd)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x461637){const _0x417bc0=a171_0x467c59;if(Array[_0x417bc0(0xf9)](_0x461637))return _0x461637[_0x417bc0(0xfe)](_0x162ced=>redactSensitiveValue(_0x162ced));if(!_0x461637||typeof _0x461637!==_0x417bc0(0x106))return _0x461637;const _0x215d24={};for(const [_0x3e08b9,_0x529e8d]of Object[_0x417bc0(0x105)](_0x461637)){const _0x436d5e=_0x3e08b9[_0x417bc0(0x10b)](/_/g,'-')[_0x417bc0(0xff)]();_0x215d24[_0x3e08b9]=_0x436d5e===_0x417bc0(0x101)?redactVariableValues(_0x529e8d):SENSITIVE_VALUE_KEYS[_0x417bc0(0x10e)](_0x436d5e)||isSensitiveKey(_0x3e08b9)?REDACTED_VALUE:redactSensitiveValue(_0x529e8d);}return _0x215d24;}export function redactCommandArgv(_0x5e1e51){const _0x1ccc26=a171_0x467c59,_0x32012d=[];let _0x29044f=![];for(const _0x30edb0 of _0x5e1e51){if(_0x29044f){_0x32012d[_0x1ccc26(0x10a)](REDACTED_VALUE),_0x29044f=![];continue;}const _0x1b7f94=_0x30edb0[_0x1ccc26(0x10f)](/^--([^=]+)(?:=(.*))?$/);if(!_0x1b7f94||!isSensitiveFlagName(_0x1b7f94[0x1]??'')){_0x32012d[_0x1ccc26(0x10a)](_0x30edb0);continue;}_0x32012d[_0x1ccc26(0x10a)]('--'+_0x1b7f94[0x1]+(_0x1b7f94[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x1b7f94[0x2]===undefined&&(_0x29044f=!![]);}return _0x32012d;}function a171_0x184b(){const _0x5884e5=['map','toLowerCase','231776HdcqNS','variables','fromEntries','[REDACTED]','17057390RPcpbn','entries','object','219656fFmLtz','comment','6tgCFEM','push','replace','4XoyGZc','2395176krVAyw','has','match','isArray','4474884BxSCYC','369KeAQcx','853158BwApZf','5401330UmPbfy'];a171_0x184b=function(){return _0x5884e5;};return a171_0x184b();}export{REDACTED_VALUE};
1
+ const a171_0x3cb6e3=a171_0x2ee6;function a171_0x527c(){const _0x1450d0=['10SRvFEF','map','5JxMncu','[REDACTED]','878IknvIE','6463765GKfdcL','has','9206844AmHVHO','replace','697635BYMXEz','entries','1447VskDTK','test','match','push','object','42lHruZX','11728899fpbaUL','8YAEYnc','522840hxdnGa','fromEntries','104hgZRli','comment','2414952PXpVxU','toLowerCase'];a171_0x527c=function(){return _0x1450d0;};return a171_0x527c();}(function(_0x54f9e3,_0x5a1e15){const _0xe41364=a171_0x2ee6,_0x43e0d1=_0x54f9e3();while(!![]){try{const _0x2b936e=-parseInt(_0xe41364(0x11d))/0x1*(-parseInt(_0xe41364(0x116))/0x2)+parseInt(_0xe41364(0x109))/0x3*(-parseInt(_0xe41364(0x10c))/0x4)+parseInt(_0xe41364(0x114))/0x5*(parseInt(_0xe41364(0x119))/0x6)+-parseInt(_0xe41364(0x10a))/0x7*(parseInt(_0xe41364(0x10b))/0x8)+parseInt(_0xe41364(0x11b))/0x9+-parseInt(_0xe41364(0x112))/0xa*(-parseInt(_0xe41364(0x117))/0xb)+parseInt(_0xe41364(0x110))/0xc*(parseInt(_0xe41364(0x10e))/0xd);if(_0x2b936e===_0x5a1e15)break;else _0x43e0d1['push'](_0x43e0d1['shift']());}catch(_0x3e0565){_0x43e0d1['push'](_0x43e0d1['shift']());}}}(a171_0x527c,0xe552c));const REDACTED_VALUE=a171_0x3cb6e3(0x115),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a171_0x3cb6e3(0x10f),'variables']),SENSITIVE_VALUE_KEYS=new Set([a171_0x3cb6e3(0x10f)]);export function isSensitiveKey(_0x426a28){const _0x2f8f8d=a171_0x3cb6e3,_0x53e3ce=_0x426a28[_0x2f8f8d(0x11a)](/_/g,'-')[_0x2f8f8d(0x111)]();return SENSITIVE_KEY_PATTERN[_0x2f8f8d(0x11e)](_0x53e3ce);}function a171_0x2ee6(_0x4b1003,_0x37848a){_0x4b1003=_0x4b1003-0x109;const _0x527cbb=a171_0x527c();let _0x2ee675=_0x527cbb[_0x4b1003];return _0x2ee675;}export function isSensitiveFlagName(_0x94b4a3){const _0x447383=a171_0x3cb6e3,_0x404735=_0x94b4a3[_0x447383(0x11a)](/_/g,'-')[_0x447383(0x111)]();return isSensitiveKey(_0x404735)||SENSITIVE_FLAG_NAMES[_0x447383(0x118)](_0x404735);}function redactVariableValues(_0x19abf1){const _0x2aab1f=a171_0x3cb6e3;if(Array['isArray'](_0x19abf1))return _0x19abf1[_0x2aab1f(0x113)](_0x1bad16=>redactVariableValues(_0x1bad16));if(_0x19abf1&&typeof _0x19abf1===_0x2aab1f(0x121))return Object[_0x2aab1f(0x10d)](Object[_0x2aab1f(0x11c)](_0x19abf1)['map'](([_0x354bc1,_0x5ecc72])=>[_0x354bc1,redactVariableValues(_0x5ecc72)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x171ff6){const _0x22b54f=a171_0x3cb6e3;if(Array['isArray'](_0x171ff6))return _0x171ff6[_0x22b54f(0x113)](_0x2f928b=>redactSensitiveValue(_0x2f928b));if(!_0x171ff6||typeof _0x171ff6!==_0x22b54f(0x121))return _0x171ff6;const _0x55dd60={};for(const [_0x4b16d7,_0x270c80]of Object[_0x22b54f(0x11c)](_0x171ff6)){const _0x393904=_0x4b16d7['replace'](/_/g,'-')[_0x22b54f(0x111)]();_0x55dd60[_0x4b16d7]=_0x393904==='variables'?redactVariableValues(_0x270c80):SENSITIVE_VALUE_KEYS[_0x22b54f(0x118)](_0x393904)||isSensitiveKey(_0x4b16d7)?REDACTED_VALUE:redactSensitiveValue(_0x270c80);}return _0x55dd60;}export function redactCommandArgv(_0x4f335f){const _0x6aba12=a171_0x3cb6e3,_0x58e8d1=[];let _0x30e518=![];for(const _0x236d13 of _0x4f335f){if(_0x30e518){_0x58e8d1[_0x6aba12(0x120)](REDACTED_VALUE),_0x30e518=![];continue;}const _0x33321d=_0x236d13[_0x6aba12(0x11f)](/^--([^=]+)(?:=(.*))?$/);if(!_0x33321d||!isSensitiveFlagName(_0x33321d[0x1]??'')){_0x58e8d1[_0x6aba12(0x120)](_0x236d13);continue;}_0x58e8d1[_0x6aba12(0x120)]('--'+_0x33321d[0x1]+(_0x33321d[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x33321d[0x2]===undefined&&(_0x30e518=!![]);}return _0x58e8d1;}export{REDACTED_VALUE};
@@ -1 +1 @@
1
- (function(_0x17c37f,_0x3ae7cf){const _0x1e4a11=a172_0x23dc,_0x20b3e7=_0x17c37f();while(!![]){try{const _0x21fda3=parseInt(_0x1e4a11(0x8e))/0x1+-parseInt(_0x1e4a11(0x8b))/0x2*(parseInt(_0x1e4a11(0x79))/0x3)+-parseInt(_0x1e4a11(0x7a))/0x4*(-parseInt(_0x1e4a11(0x80))/0x5)+parseInt(_0x1e4a11(0x78))/0x6+parseInt(_0x1e4a11(0x76))/0x7+parseInt(_0x1e4a11(0x7b))/0x8+-parseInt(_0x1e4a11(0x88))/0x9*(parseInt(_0x1e4a11(0x87))/0xa);if(_0x21fda3===_0x3ae7cf)break;else _0x20b3e7['push'](_0x20b3e7['shift']());}catch(_0x50e4a7){_0x20b3e7['push'](_0x20b3e7['shift']());}}}(a172_0xb28f,0xa2c69));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x13b3d0=a172_0x23dc,_0x49ad7f=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x13b3d0(0x77)]()[_0x13b3d0(0x75)]();return _0x49ad7f==='1'||_0x49ad7f===_0x13b3d0(0x86)||_0x49ad7f===_0x13b3d0(0x71);}function cacheRoot(){const _0x36e37d=a172_0x23dc;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x36e37d(0x81));}export function getUpdateNoticeCachePath(){const _0x4169c9=a172_0x23dc;return join(cacheRoot(),_0x4169c9(0x89),'update-check.json');}async function readUpdateNoticeCache(){const _0x22a95b=a172_0x23dc;try{const _0x2eaca5=await readFile(getUpdateNoticeCachePath(),_0x22a95b(0x8a)),_0xda595c=JSON[_0x22a95b(0x8c)](_0x2eaca5);if(!_0xda595c||typeof _0xda595c!==_0x22a95b(0x7e))return{};return _0xda595c;}catch{return{};}}async function writeUpdateNoticeCache(_0x2ca436){const _0x3166b9=a172_0x23dc;try{const _0x3e0731=getUpdateNoticeCachePath();await mkdir(dirname(_0x3e0731),{'recursive':!![]}),await writeFile(_0x3e0731,JSON['stringify'](_0x2ca436,null,0x2)+'\x0a',_0x3166b9(0x8a));}catch{}}function isRecentlyNotified(_0x399a52,_0x3593d5,_0x398200){const _0x14304c=a172_0x23dc;return _0x399a52['lastNotifiedVersion']===_0x3593d5&&typeof _0x399a52['lastNotifiedAt']===_0x14304c(0x74)&&_0x398200-_0x399a52[_0x14304c(0x85)]<UPDATE_NOTICE_TTL_MS;}function a172_0x23dc(_0x3c38c8,_0xf0dfe7){_0x3c38c8=_0x3c38c8-0x70;const _0xb28fa=a172_0xb28f();let _0x23dc08=_0xb28fa[_0x3c38c8];return _0x23dc08;}function a172_0xb28f(){const _0x2318a3=['upgradeMessage','number','toLowerCase','5740357ZEXufg','trim','7967268GZZSzp','1048719wIFfuk','741584wqjdbK','8087720xhGJjG','currentVersion','now','object','stableVersion','35HZCwJc','.cache','\x20is\x20recommended,\x20current\x20','/v/','needsUpgrade','lastNotifiedAt','true','37519660tAAfgv','9xbCNHi','lovrabet-cli','utf8','2AxkiQQ','parse',',\x20run:\x20','311602APrmrM','join','yes','https://www.npmjs.com/package/'];a172_0xb28f=function(){return _0x2318a3;};return a172_0xb28f();}export function buildNpmVersionUrl(_0x294cb4){const _0x3e7c5b=a172_0x23dc;return _0x3e7c5b(0x72)+LOVRABET_NPM_PACKAGE_NAME+_0x3e7c5b(0x83)+_0x294cb4;}export async function resolveLatestUpdateNotice(_0xc1c8b6){const _0x1c6b51=a172_0x23dc;if(isUpdateNoticeDisabled())return null;try{const _0x1ca0ff=Date[_0x1c6b51(0x7d)](),_0x271d6c=_0xc1c8b6??await checkCliVersion(),_0xc20fc6=_0x271d6c[_0x1c6b51(0x7c)],_0x583664=_0x271d6c[_0x1c6b51(0x7f)],_0x183b25=await readUpdateNoticeCache();if(!_0x583664||!_0x271d6c[_0x1c6b51(0x84)]||_0x271d6c['belowMinimum'])return null;if(isRecentlyNotified(_0x183b25,_0x583664,_0x1ca0ff))return null;const _0x2fc901=getCliUpgradeCommand(_0x271d6c);return await writeUpdateNoticeCache({..._0x183b25,'checkedAt':_0x1ca0ff,'latest':_0x583664,'failed':![],'lastNotifiedVersion':_0x583664,'lastNotifiedAt':_0x1ca0ff}),{'command':_0x2fc901,'current':_0xc20fc6,'latest':_0x583664,'url':buildNpmVersionUrl(_0x583664),'message':[_0x271d6c[_0x1c6b51(0x73)],CLI_BIN_NAME+'\x20'+_0x583664+_0x1c6b51(0x82)+_0xc20fc6+_0x1c6b51(0x8d)+_0x2fc901]['filter'](Boolean)[_0x1c6b51(0x70)]('\x20')};}catch{return null;}}
1
+ (function(_0x5c2d46,_0x4f14d9){const _0x350ad6=a172_0x327e,_0x2e7baf=_0x5c2d46();while(!![]){try{const _0xca5c44=parseInt(_0x350ad6(0x116))/0x1+-parseInt(_0x350ad6(0x10d))/0x2+parseInt(_0x350ad6(0x11d))/0x3+-parseInt(_0x350ad6(0x110))/0x4*(-parseInt(_0x350ad6(0x121))/0x5)+-parseInt(_0x350ad6(0x10b))/0x6*(parseInt(_0x350ad6(0x115))/0x7)+-parseInt(_0x350ad6(0x111))/0x8+-parseInt(_0x350ad6(0x123))/0x9;if(_0xca5c44===_0x4f14d9)break;else _0x2e7baf['push'](_0x2e7baf['shift']());}catch(_0x433b34){_0x2e7baf['push'](_0x2e7baf['shift']());}}}(a172_0x58f1,0x1e833));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a172_0x58f1(){const _0x537cfd=['53230XLsewy','\x20is\x20recommended,\x20current\x20','https://www.npmjs.com/package/','9448BOwXdz','436208KAfteB','yes','upgradeMessage','.cache','7BBRrbW','210770DzQsMu','number','stringify','belowMinimum',',\x20run:\x20','needsUpgrade','toLowerCase','593892iODLCa','filter','currentVersion','lastNotifiedAt','430nOHRYY','utf8','3630240OPblBe','lastNotifiedVersion','parse','update-check.json','object','lovrabet-cli','14316IApslQ','now'];a172_0x58f1=function(){return _0x537cfd;};return a172_0x58f1();}import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x5f315c=a172_0x327e,_0x229a52=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x5f315c(0x11c)]();return _0x229a52==='1'||_0x229a52==='true'||_0x229a52===_0x5f315c(0x112);}function cacheRoot(){const _0x581638=a172_0x327e;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x581638(0x114));}export function getUpdateNoticeCachePath(){const _0xb5c26c=a172_0x327e;return join(cacheRoot(),_0xb5c26c(0x10a),_0xb5c26c(0x126));}async function readUpdateNoticeCache(){const _0x2161ee=a172_0x327e;try{const _0x720720=await readFile(getUpdateNoticeCachePath(),_0x2161ee(0x122)),_0xa7695b=JSON[_0x2161ee(0x125)](_0x720720);if(!_0xa7695b||typeof _0xa7695b!==_0x2161ee(0x109))return{};return _0xa7695b;}catch{return{};}}async function writeUpdateNoticeCache(_0x4858b6){const _0x471a92=a172_0x327e;try{const _0x5d132d=getUpdateNoticeCachePath();await mkdir(dirname(_0x5d132d),{'recursive':!![]}),await writeFile(_0x5d132d,JSON[_0x471a92(0x118)](_0x4858b6,null,0x2)+'\x0a',_0x471a92(0x122));}catch{}}function a172_0x327e(_0x31cada,_0x1d8196){_0x31cada=_0x31cada-0x109;const _0x58f10f=a172_0x58f1();let _0x327e50=_0x58f10f[_0x31cada];return _0x327e50;}function isRecentlyNotified(_0x3b930f,_0x2ad409,_0x16229b){const _0xf85e87=a172_0x327e;return _0x3b930f[_0xf85e87(0x124)]===_0x2ad409&&typeof _0x3b930f[_0xf85e87(0x120)]===_0xf85e87(0x117)&&_0x16229b-_0x3b930f[_0xf85e87(0x120)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1aa11a){const _0x404ea3=a172_0x327e;return _0x404ea3(0x10f)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x1aa11a;}export async function resolveLatestUpdateNotice(_0x1400fb){const _0x10bd03=a172_0x327e;if(isUpdateNoticeDisabled())return null;try{const _0x24efba=Date[_0x10bd03(0x10c)](),_0xfa3d1e=_0x1400fb??await checkCliVersion(),_0x35bd95=_0xfa3d1e[_0x10bd03(0x11f)],_0x40be3b=_0xfa3d1e['stableVersion'],_0xb3a711=await readUpdateNoticeCache();if(!_0x40be3b||!_0xfa3d1e[_0x10bd03(0x11b)]||_0xfa3d1e[_0x10bd03(0x119)])return null;if(isRecentlyNotified(_0xb3a711,_0x40be3b,_0x24efba))return null;const _0x16af9b=getCliUpgradeCommand(_0xfa3d1e);return await writeUpdateNoticeCache({..._0xb3a711,'checkedAt':_0x24efba,'latest':_0x40be3b,'failed':![],'lastNotifiedVersion':_0x40be3b,'lastNotifiedAt':_0x24efba}),{'command':_0x16af9b,'current':_0x35bd95,'latest':_0x40be3b,'url':buildNpmVersionUrl(_0x40be3b),'message':[_0xfa3d1e[_0x10bd03(0x113)],CLI_BIN_NAME+'\x20'+_0x40be3b+_0x10bd03(0x10e)+_0x35bd95+_0x10bd03(0x11a)+_0x16af9b][_0x10bd03(0x11e)](Boolean)['join']('\x20')};}catch{return null;}}
@@ -1 +1 @@
1
- function a173_0x1caa(_0x1196ec,_0x469e44){_0x1196ec=_0x1196ec-0xde;const _0x47a98a=a173_0x47a9();let _0x1caab2=_0x47a98a[_0x1196ec];return _0x1caab2;}(function(_0x1e057a,_0x1b5d7d){const _0x3672a2=a173_0x1caa,_0x314371=_0x1e057a();while(!![]){try{const _0x457920=parseInt(_0x3672a2(0xe6))/0x1*(-parseInt(_0x3672a2(0xe9))/0x2)+parseInt(_0x3672a2(0xeb))/0x3*(parseInt(_0x3672a2(0xde))/0x4)+parseInt(_0x3672a2(0xea))/0x5+-parseInt(_0x3672a2(0xe4))/0x6*(parseInt(_0x3672a2(0xe8))/0x7)+parseInt(_0x3672a2(0xe1))/0x8*(-parseInt(_0x3672a2(0xe7))/0x9)+-parseInt(_0x3672a2(0xe3))/0xa*(parseInt(_0x3672a2(0xdf))/0xb)+parseInt(_0x3672a2(0xe2))/0xc;if(_0x457920===_0x1b5d7d)break;else _0x314371['push'](_0x314371['shift']());}catch(_0x323427){_0x314371['push'](_0x314371['shift']());}}}(a173_0x47a9,0x4fd78));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x1fb71a=a173_0x1caa,_0x39b7b4=String(GIT_COMMIT);return _0x39b7b4&&_0x39b7b4!==_0x1fb71a(0xe0)?_0x39b7b4:'';}export function getCliVersionDisplay(){const _0xbf3ecb=a173_0x1caa,_0x121e2a=getCliGitCommit(),_0x28b60b=BUILD_TIME[_0xbf3ecb(0xe5)](0x0,0xa);if(!_0x121e2a||!_0x28b60b)return VERSION;return VERSION+'\x20('+_0x121e2a+',\x20'+_0x28b60b+')';}function a173_0x47a9(){const _0x30ad83=['slice','6jwYpXN','27QRqoay','609CgrBmR','136330YipkfE','107410GUPJII','9vmZiEX','351500LSVYSF','11TvozBl','unknown','214872CVfhPw','9182136HzKyyM','576850gXFRAT','12138GGEELi'];a173_0x47a9=function(){return _0x30ad83;};return a173_0x47a9();}
1
+ function a173_0x4372(_0x2e9ce3,_0x4126ad){_0x2e9ce3=_0x2e9ce3-0x11d;const _0x1382ed=a173_0x1382();let _0x4372d9=_0x1382ed[_0x2e9ce3];return _0x4372d9;}(function(_0x466be7,_0x2d2c4a){const _0x4dbf94=a173_0x4372,_0x846884=_0x466be7();while(!![]){try{const _0x2172df=-parseInt(_0x4dbf94(0x122))/0x1*(parseInt(_0x4dbf94(0x120))/0x2)+-parseInt(_0x4dbf94(0x123))/0x3*(-parseInt(_0x4dbf94(0x127))/0x4)+-parseInt(_0x4dbf94(0x121))/0x5*(parseInt(_0x4dbf94(0x128))/0x6)+parseInt(_0x4dbf94(0x11f))/0x7+parseInt(_0x4dbf94(0x126))/0x8+parseInt(_0x4dbf94(0x129))/0x9*(parseInt(_0x4dbf94(0x124))/0xa)+parseInt(_0x4dbf94(0x11d))/0xb;if(_0x2172df===_0x2d2c4a)break;else _0x846884['push'](_0x846884['shift']());}catch(_0x118335){_0x846884['push'](_0x846884['shift']());}}}(a173_0x1382,0x7060d));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a173_0x1382(){const _0x56cfcc=['5xsosIr','3066gKxSeV','3wSRtVs','1810GXCDXD','slice','3040824xRokhP','1932460xXfUPC','3652518rureYJ','13491JrLzOX','2291509kkLPeU','unknown','1173914MvmuKN','288YOZozv'];a173_0x1382=function(){return _0x56cfcc;};return a173_0x1382();}export function getCliGitCommit(){const _0x33952b=a173_0x4372,_0x4c1122=String(GIT_COMMIT);return _0x4c1122&&_0x4c1122!==_0x33952b(0x11e)?_0x4c1122:'';}export function getCliVersionDisplay(){const _0x337a70=a173_0x4372,_0xce6c0b=getCliGitCommit(),_0x1c0bc8=BUILD_TIME[_0x337a70(0x125)](0x0,0xa);if(!_0xce6c0b||!_0x1c0bc8)return VERSION;return VERSION+'\x20('+_0xce6c0b+',\x20'+_0x1c0bc8+')';}
@@ -1 +1 @@
1
- function a174_0x3543(){var _0x208eb4=['4261355eDlueB','428ByxpXX','6HnIMmV','write','5777256xuPTqP','110kXzNvX','3659290UaqoCL','9501cwUBrv','1242574bZSNFc','898901zHJjBI','148833UiKtcu'];a174_0x3543=function(){return _0x208eb4;};return a174_0x3543();}(function(_0x31be55,_0x16fe90){var _0x29d983=a174_0x377a,_0x4d9a80=_0x31be55();while(!![]){try{var _0x5df57b=parseInt(_0x29d983(0x105))/0x1+parseInt(_0x29d983(0x104))/0x2+parseInt(_0x29d983(0x103))/0x3*(-parseInt(_0x29d983(0xfd))/0x4)+parseInt(_0x29d983(0x102))/0x5+-parseInt(_0x29d983(0xfe))/0x6*(parseInt(_0x29d983(0xfc))/0x7)+-parseInt(_0x29d983(0x100))/0x8+-parseInt(_0x29d983(0x106))/0x9*(-parseInt(_0x29d983(0x101))/0xa);if(_0x5df57b===_0x16fe90)break;else _0x4d9a80['push'](_0x4d9a80['shift']());}catch(_0x2eaa6c){_0x4d9a80['push'](_0x4d9a80['shift']());}}}(a174_0x3543,0xba902));function a174_0x377a(_0x307ee3,_0x197485){_0x307ee3=_0x307ee3-0xfc;var _0x3543a3=a174_0x3543();var _0x377ad6=_0x3543a3[_0x307ee3];return _0x377ad6;}export function writeCliSideChannelLine(_0x120b6b){var _0x107d95=a174_0x377a;process['stderr'][_0x107d95(0xff)](_0x120b6b+'\x0a');}
1
+ function a174_0x58df(_0x49fc1e,_0x2df598){_0x49fc1e=_0x49fc1e-0x99;var _0x45c724=a174_0x45c7();var _0x58df5a=_0x45c724[_0x49fc1e];return _0x58df5a;}(function(_0x431ca3,_0x1a6a5c){var _0x9b2ac8=a174_0x58df,_0x424293=_0x431ca3();while(!![]){try{var _0x1f32b1=-parseInt(_0x9b2ac8(0x99))/0x1*(-parseInt(_0x9b2ac8(0xa1))/0x2)+parseInt(_0x9b2ac8(0x9f))/0x3*(-parseInt(_0x9b2ac8(0xa0))/0x4)+-parseInt(_0x9b2ac8(0xa4))/0x5*(parseInt(_0x9b2ac8(0x9a))/0x6)+parseInt(_0x9b2ac8(0xa2))/0x7+-parseInt(_0x9b2ac8(0x9c))/0x8*(parseInt(_0x9b2ac8(0xa3))/0x9)+-parseInt(_0x9b2ac8(0x9b))/0xa+parseInt(_0x9b2ac8(0x9e))/0xb;if(_0x1f32b1===_0x1a6a5c)break;else _0x424293['push'](_0x424293['shift']());}catch(_0x62a22c){_0x424293['push'](_0x424293['shift']());}}}(a174_0x45c7,0xe18b7));function a174_0x45c7(){var _0x5df0ba=['2466MhThbR','803365HukxHE','5pdwXka','18aISwjK','6607910LOvDhn','49544vPRGdP','write','21604869lKxoNY','162MkBgiY','49592gEkyrr','588902rWDtCY','6976767wkNWHw'];a174_0x45c7=function(){return _0x5df0ba;};return a174_0x45c7();}export function writeCliSideChannelLine(_0x4c57b7){var _0x58f882=a174_0x58df;process['stderr'][_0x58f882(0x9d)](_0x4c57b7+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.3.5-beta.2",
3
+ "version": "2.3.5",
4
4
  "description": "Runtime CLI for Lovrabet apps, datasets, SQL, Backend Function, skills, and AI agent workflows.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lovrabet
3
3
  displayName: Lovrabet 运行态 CLI
4
- version: 2.3.5-beta.2
4
+ version: 2.3.5
5
5
  description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、可恢复 Excel 导入、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、审批待办与任务办理、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、service tree、业务服务树、api-doc、dataset、data filter、Excel 导入、data import-excel、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、approval、审批、待办、approve、reject、transfer、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
6
6
  metadata:
7
7
  requires:
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "lovrabet",
4
4
  "packageName": "@lovrabet/lovrabet-cli",
5
- "packageVersion": "2.3.5-beta.2",
6
- "skillVersion": "2.3.5-beta.2",
5
+ "packageVersion": "2.3.5",
6
+ "skillVersion": "2.3.5",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/app-resolution.md",
@@ -40,5 +40,5 @@
40
40
  "references/lovrabet-user-account.md",
41
41
  "references/lovrabet-workspace.md"
42
42
  ],
43
- "digest": "94acea3409e1bc6856a8958b9bc1cdf3ee75ec797e6f800a9c68e7fc6c576e1d"
43
+ "digest": "b293e4c1dde8ce9ffcc18910d2de398e4508eb6bd58d049ebf1437c2a6edf54e"
44
44
  }