@lovrabet/lovrabet-cli 2.3.2-beta.1 → 2.3.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.js +1 -1
  97. package/lib/constant/env.js +1 -1
  98. package/lib/constant/output.js +1 -1
  99. package/lib/constant/product.js +1 -1
  100. package/lib/constant/region.js +1 -1
  101. package/lib/constant/risk.js +1 -1
  102. package/lib/constant/url.js +1 -1
  103. package/lib/context.js +1 -1
  104. package/lib/core/api-client.js +1 -1
  105. package/lib/core/db-resolver.js +1 -1
  106. package/lib/core/kb-search-client.js +1 -1
  107. package/lib/core/sdk-client.js +1 -1
  108. package/lib/errors.js +1 -1
  109. package/lib/framework/build-all-flags.js +1 -1
  110. package/lib/framework/dryrun.js +1 -1
  111. package/lib/framework/flags.js +1 -1
  112. package/lib/framework/help.js +1 -1
  113. package/lib/framework/index.js +1 -1
  114. package/lib/framework/output.js +1 -1
  115. package/lib/framework/preparse.js +1 -1
  116. package/lib/framework/rate-limit.js +1 -1
  117. package/lib/framework/raw-flags.js +1 -1
  118. package/lib/framework/response.js +1 -1
  119. package/lib/framework/runner-confirmation.js +1 -1
  120. package/lib/framework/runner-error.js +1 -1
  121. package/lib/framework/runner.js +1 -1
  122. package/lib/framework/schema-export.js +1 -1
  123. package/lib/framework/service-order.js +1 -1
  124. package/lib/framework/types.js +1 -1
  125. package/lib/generated/build-info.d.ts +4 -4
  126. package/lib/generated/build-info.js +1 -1
  127. package/lib/generated/official-routing.js +1 -1
  128. package/lib/generated/routing-contract.js +1 -1
  129. package/lib/help.js +1 -1
  130. package/lib/postinstall.js +1 -1
  131. package/lib/runtime/confirmation.js +1 -1
  132. package/lib/runtime/event.js +1 -1
  133. package/lib/runtime/index.js +1 -1
  134. package/lib/runtime/queue.js +1 -1
  135. package/lib/runtime/resolve.js +1 -1
  136. package/lib/skills/builtin-skill.js +1 -1
  137. package/lib/skills/npx-skills-add.js +1 -1
  138. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  139. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  140. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  141. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  142. package/lib/skills/runtime-skill-sync/links.js +1 -1
  143. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  144. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  145. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  146. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  147. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  148. package/lib/skills/runtime-skill-sync/push.js +1 -1
  149. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  150. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  151. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  152. package/lib/skills/runtime-skill-sync.js +1 -1
  153. package/lib/skills/skill-presence.js +1 -1
  154. package/lib/utils/access-key-redaction.js +1 -1
  155. package/lib/utils/apply-jq-filter.js +1 -1
  156. package/lib/utils/cli-version-check.js +1 -1
  157. package/lib/utils/cli-version-policy.js +1 -1
  158. package/lib/utils/logger.js +1 -1
  159. package/lib/utils/lossless-json.js +1 -1
  160. package/lib/utils/params.js +1 -1
  161. package/lib/utils/update-notice.js +1 -1
  162. package/lib/utils/version.js +1 -1
  163. package/lib/utils/write-cli-side-channel.js +1 -1
  164. package/package.json +2 -1
  165. package/skills/lovrabet/SKILL.md +1 -1
  166. package/skills/lovrabet.manifest.json +3 -3
  167. package/lib/utils/platform.d.ts +0 -17
  168. package/lib/utils/platform.js +0 -1
@@ -1 +1 @@
1
- function a150_0x2b5f(){const _0x4ee920=['1980-01-01T00:00:00.000Z','endsWith','name','4882465TYEjzS','3062316HKWUab','validation_error','4718400KaSXcN','length','528878bwvtUY','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','1857522ZPNfHO','validation','from','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','1586635HplxdF','79299SlAjcn','6WqtXbs','entries'];a150_0x2b5f=function(){return _0x4ee920;};return a150_0x2b5f();}function a150_0x2908(_0x17d957,_0x29a4fe){_0x17d957=_0x17d957-0xe6;const _0x2b5f3a=a150_0x2b5f();let _0x2908b2=_0x2b5f3a[_0x17d957];return _0x2908b2;}const a150_0x358a71=a150_0x2908;(function(_0x129e3b,_0xb4865f){const _0x1b36b5=a150_0x2908,_0x484366=_0x129e3b();while(!![]){try{const _0x2d88b1=parseInt(_0x1b36b5(0xf1))/0x1+parseInt(_0x1b36b5(0xf3))/0x2+parseInt(_0x1b36b5(0xe6))/0x3+-parseInt(_0x1b36b5(0xed))/0x4+-parseInt(_0x1b36b5(0xf7))/0x5*(parseInt(_0x1b36b5(0xe7))/0x6)+parseInt(_0x1b36b5(0xec))/0x7+-parseInt(_0x1b36b5(0xef))/0x8;if(_0x2d88b1===_0xb4865f)break;else _0x484366['push'](_0x484366['shift']());}catch(_0x46965d){_0x484366['push'](_0x484366['shift']());}}}(a150_0x2b5f,0x7c3bd));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a150_0x358a71(0xe9));export function createDeterministicZipPackage(_0x3b2e59){const _0x336fde=a150_0x358a71,_0x190270={};for(const _0x156988 of normalizeLocalFiles(_0x3b2e59)){_0x190270[_0x156988['path']]=fileContent(_0x156988);}return Buffer[_0x336fde(0xf5)](zipSync(_0x190270,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x363a7c){const _0x1358fd=a150_0x358a71;if(_0x363a7c[_0x1358fd(0xf0)]<0x16)throw CliErrors[_0x1358fd(0xf4)](_0x1358fd(0xf2));let _0x4fadcf;try{_0x4fadcf=unzipSync(_0x363a7c,{'filter'(_0x3058c8){const _0x1d8725=_0x1358fd,_0x150b0c=normalizeSkillRelativePath(_0x3058c8[_0x1d8725(0xeb)]);if(_0x150b0c[_0x1d8725(0xea)]('/'))throw CliErrors[_0x1d8725(0xf4)](_0x1d8725(0xf6)+_0x150b0c);return!![];}});}catch(_0x37f6f4){if(isRuntimeSkillValidationError(_0x37f6f4))throw _0x37f6f4;throw CliErrors[_0x1358fd(0xf4)](_0x1358fd(0xf2));}return Object[_0x1358fd(0xe8)](_0x4fadcf)['map'](([_0x45e948,_0x4840a2])=>({'path':normalizeSkillRelativePath(_0x45e948),'bytes':Buffer[_0x1358fd(0xf5)](_0x4840a2)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x7de3c6){const _0x31681c=a150_0x358a71;return typeof _0x7de3c6==='object'&&_0x7de3c6!==null&&'code'in _0x7de3c6&&_0x7de3c6['code']===_0x31681c(0xee);}
1
+ (function(_0x51c20c,_0x37263d){const _0x1c12b7=a150_0x1209,_0x4c8227=_0x51c20c();while(!![]){try{const _0x417e51=parseInt(_0x1c12b7(0x14d))/0x1*(-parseInt(_0x1c12b7(0x159))/0x2)+-parseInt(_0x1c12b7(0x15c))/0x3+parseInt(_0x1c12b7(0x162))/0x4+-parseInt(_0x1c12b7(0x164))/0x5*(-parseInt(_0x1c12b7(0x14f))/0x6)+-parseInt(_0x1c12b7(0x154))/0x7*(parseInt(_0x1c12b7(0x156))/0x8)+parseInt(_0x1c12b7(0x15e))/0x9*(parseInt(_0x1c12b7(0x151))/0xa)+-parseInt(_0x1c12b7(0x14e))/0xb*(-parseInt(_0x1c12b7(0x15f))/0xc);if(_0x417e51===_0x37263d)break;else _0x4c8227['push'](_0x4c8227['shift']());}catch(_0x3f423c){_0x4c8227['push'](_0x4c8227['shift']());}}}(a150_0x1e1b,0x4501a));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a150_0x1209(_0x37ce05,_0x53ff60){_0x37ce05=_0x37ce05-0x14c;const _0x1e1b7d=a150_0x1e1b();let _0x120997=_0x1e1b7d[_0x37ce05];return _0x120997;}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date('1980-01-01T00:00:00.000Z');export function createDeterministicZipPackage(_0x2052a7){const _0x5df10e=a150_0x1209,_0x30d986={};for(const _0x569fb4 of normalizeLocalFiles(_0x2052a7)){_0x30d986[_0x569fb4[_0x5df10e(0x14c)]]=fileContent(_0x569fb4);}return Buffer[_0x5df10e(0x155)](zipSync(_0x30d986,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x17fdbf){const _0x2fb74d=a150_0x1209;if(_0x17fdbf[_0x2fb74d(0x150)]<0x16)throw CliErrors[_0x2fb74d(0x15d)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x4027c4;try{_0x4027c4=unzipSync(_0x17fdbf,{'filter'(_0xf4dc30){const _0x277097=_0x2fb74d,_0x1c8d78=normalizeSkillRelativePath(_0xf4dc30[_0x277097(0x15a)]);if(_0x1c8d78[_0x277097(0x157)]('/'))throw CliErrors[_0x277097(0x15d)]('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x1c8d78);return!![];}});}catch(_0x26b0d6){if(isRuntimeSkillValidationError(_0x26b0d6))throw _0x26b0d6;throw CliErrors['validation'](_0x2fb74d(0x158));}return Object[_0x2fb74d(0x153)](_0x4027c4)[_0x2fb74d(0x15b)](([_0x3c94bb,_0x3ea6d4])=>({'path':normalizeSkillRelativePath(_0x3c94bb),'bytes':Buffer['from'](_0x3ea6d4)}))[_0x2fb74d(0x163)](compareSkillFiles);}function a150_0x1e1b(){const _0x39775c=['length','70VOTKgc','code','entries','7sXNMAA','from','334928ZBVwPa','endsWith','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','34742RpIQfN','name','map','1600860jhIicX','validation','110061YlxjBq','7524JqYUIh','validation_error','object','1255464yUQEfk','sort','10gftOsM','path','2nPZBWQ','8503BfMyJZ','26214levyXJ'];a150_0x1e1b=function(){return _0x39775c;};return a150_0x1e1b();}function isRuntimeSkillValidationError(_0x45c70a){const _0x5ec3d1=a150_0x1209;return typeof _0x45c70a===_0x5ec3d1(0x161)&&_0x45c70a!==null&&'code'in _0x45c70a&&_0x45c70a[_0x5ec3d1(0x152)]===_0x5ec3d1(0x160);}
@@ -1 +1 @@
1
- (function(_0x547931,_0x1c7942){const _0x489a4f=a151_0x6b8f,_0x5d39d6=_0x547931();while(!![]){try{const _0x35d7e0=-parseInt(_0x489a4f(0x9a))/0x1+-parseInt(_0x489a4f(0x81))/0x2+-parseInt(_0x489a4f(0x93))/0x3*(-parseInt(_0x489a4f(0x71))/0x4)+-parseInt(_0x489a4f(0x95))/0x5*(-parseInt(_0x489a4f(0x9b))/0x6)+-parseInt(_0x489a4f(0x83))/0x7+-parseInt(_0x489a4f(0x9f))/0x8+parseInt(_0x489a4f(0x80))/0x9*(parseInt(_0x489a4f(0x77))/0xa);if(_0x35d7e0===_0x1c7942)break;else _0x5d39d6['push'](_0x5d39d6['shift']());}catch(_0x394dbb){_0x5d39d6['push'](_0x5d39d6['shift']());}}}(a151_0x2fba,0xcc067));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';function a151_0x6b8f(_0x16b745,_0x2f9059){_0x16b745=_0x16b745-0x6f;const _0x2fbaba=a151_0x2fba();let _0x6b8f98=_0x2fbaba[_0x16b745];return _0x6b8f98;}function a151_0x2fba(){const _0x5c5c6b=['zipSize','isSafeInteger','723328XGbWdL','object','isArray','72LmaoBI','ossPath','string','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','toString','Missing\x20','21143120XusAXo','size','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','toLowerCase','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','Duplicate\x20Skill\x20package\x20entry:\x20','push','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','9GTnQHv','3233602BkaRXS','Runtime\x20Skill\x20package\x20is\x20missing\x20','4049871NgeHeP','files','validation','path','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','get','treeSha256','map','trim','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','has','zipSha256','bytes','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','length','set','210495hHehlb','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','6679235PmRYki','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','some','requireOssPath','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','1591672urOhqT','6dbpfrG','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'];a151_0x2fba=function(){return _0x5c5c6b;};return a151_0x2fba();}import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x167a84){const _0x2e129=a151_0x6b8f,_0x102d25=normalizeLocalFiles(_0x167a84);if(!_0x102d25[_0x2e129(0x97)](_0x2ba3d8=>_0x2ba3d8[_0x2e129(0x86)]===SKILL_FILE))throw CliErrors['validation'](_0x2e129(0x76)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x5b4702=localFilesToManifestFiles(_0x102d25),_0x5175c0=createDeterministicZipPackage(_0x102d25);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x5b4702),'zipSha256':bufferSha256(_0x5175c0),'zipSize':_0x5175c0[_0x2e129(0x91)],'files':_0x5b4702},'packageBytes':_0x5175c0,'packageBase64':_0x5175c0[_0x2e129(0x75)]('base64')};}export function verifyRuntimeSkillPackage(_0x433ca0,_0x377f0f){const _0x2f30bc=normalizePackageManifest(_0x433ca0,{'requireOssPath':![]});if(!_0x2f30bc)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0x2f30bc,_0x377f0f);}export function verifyRuntimeSkillBundle(_0x4825e9,_0x3f477d){const _0x535686=a151_0x6b8f,_0x5137d1=normalizePackageManifest(_0x4825e9,{'requireOssPath':![]});if(!_0x5137d1)throw CliErrors[_0x535686(0x85)](_0x535686(0x7f));return extractAndVerifyPackageFiles(_0x5137d1,_0x3f477d);}export function tryNormalizePackageManifest(_0x3113bb){return normalizePackageManifest(_0x3113bb,{'requireOssPath':![]});}export function requirePackageBytes(_0x39744d,_0xcc325d){const _0x2e18b6=a151_0x6b8f;if(!_0xcc325d||_0xcc325d[_0x2e18b6(0x91)]===0x0)throw CliErrors['validation'](_0x2e18b6(0x7b)+_0x39744d);return _0xcc325d;}export function extractDownloadedPackage(_0x56466b){const _0x85f784=a151_0x6b8f,_0x545ad2=parseZipPackage(_0x56466b)[_0x85f784(0x8a)](_0x4f4ee7=>({'path':_0x4f4ee7['path'],'bytes':_0x4f4ee7[_0x85f784(0x8f)]}));if(!_0x545ad2[_0x85f784(0x97)](_0x10c57b=>_0x10c57b[_0x85f784(0x86)]===SKILL_FILE))throw CliErrors[_0x85f784(0x85)](_0x85f784(0x82)+SKILL_FILE+'.');return normalizeLocalFiles(_0x545ad2);}export function localFilesToManifestFiles(_0x5f3e82){const _0x42b90b=a151_0x6b8f;return normalizeLocalFiles(_0x5f3e82)[_0x42b90b(0x8a)](_0x333ee1=>({'path':_0x333ee1['path'],'sha256':fileHash(_0x333ee1),'size':fileContent(_0x333ee1)[_0x42b90b(0x91)]}));}function normalizePackageManifest(_0x1688e4,_0x35b2f3){const _0x57e85f=a151_0x6b8f;if(!_0x1688e4||typeof _0x1688e4!==_0x57e85f(0x6f)||Array[_0x57e85f(0x70)](_0x1688e4))return undefined;const _0x47b3a1=_0x1688e4,_0x3939e1=typeof _0x47b3a1[_0x57e85f(0x72)]===_0x57e85f(0x73)?_0x47b3a1['ossPath'][_0x57e85f(0x8b)]():undefined;if(_0x35b2f3[_0x57e85f(0x98)]&&!_0x3939e1)return undefined;if(!Array[_0x57e85f(0x70)](_0x47b3a1[_0x57e85f(0x84)])||_0x47b3a1[_0x57e85f(0x84)][_0x57e85f(0x91)]===0x0)return undefined;if(!isSha256Hex(_0x47b3a1[_0x57e85f(0x89)]))throw CliErrors[_0x57e85f(0x85)](_0x57e85f(0x87));if(!isSha256Hex(_0x47b3a1[_0x57e85f(0x8e)]))throw CliErrors[_0x57e85f(0x85)](_0x57e85f(0x96));if(!Number[_0x57e85f(0x9e)](_0x47b3a1[_0x57e85f(0x9d)])||_0x47b3a1[_0x57e85f(0x9d)]<0x0)throw CliErrors[_0x57e85f(0x85)](_0x57e85f(0x94));const _0x3e8143=normalizeManifestFiles(_0x47b3a1['files']);if(!_0x3e8143[_0x57e85f(0x97)](_0x17af3e=>_0x17af3e[_0x57e85f(0x86)]===SKILL_FILE))throw CliErrors[_0x57e85f(0x85)](_0x57e85f(0x79)+SKILL_FILE+'.');const _0x849e5b=fileTreeHash(_0x3e8143);if(_0x849e5b!==_0x47b3a1[_0x57e85f(0x89)]['toLowerCase']())throw CliErrors[_0x57e85f(0x85)](_0x57e85f(0x99));return{'schemaVersion':Number[_0x57e85f(0x9e)](_0x47b3a1['schemaVersion'])?_0x47b3a1['schemaVersion']:0x2,'ossPath':_0x3939e1,'treeSha256':_0x849e5b,'zipSha256':_0x47b3a1['zipSha256'][_0x57e85f(0x7a)](),'zipSize':_0x47b3a1[_0x57e85f(0x9d)],'files':_0x3e8143};}function extractAndVerifyPackage(_0x3ff052,_0x1c0da8){const _0x5a2fb4=a151_0x6b8f,_0x278237=normalizePackageManifest(_0x3ff052,{'requireOssPath':![]});if(!_0x278237)throw CliErrors[_0x5a2fb4(0x85)](_0x5a2fb4(0x7f));if(_0x1c0da8['length']!==_0x278237[_0x5a2fb4(0x9d)])throw CliErrors[_0x5a2fb4(0x85)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x2f5d24=bufferSha256(_0x1c0da8);if(_0x2f5d24!==_0x278237[_0x5a2fb4(0x8e)])throw CliErrors[_0x5a2fb4(0x85)](_0x5a2fb4(0x90));return extractAndVerifyPackageFiles(_0x278237,_0x1c0da8);}function extractAndVerifyPackageFiles(_0x20b777,_0x527bbe){const _0x417957=a151_0x6b8f,_0xbfd7dc=parseZipPackage(_0x527bbe);if(_0xbfd7dc['length']!==_0x20b777[_0x417957(0x84)][_0x417957(0x91)])throw CliErrors['validation'](_0x417957(0x74));const _0x11995e=new Map();for(const _0x2d3e0a of _0xbfd7dc){if(_0x11995e[_0x417957(0x8d)](_0x2d3e0a[_0x417957(0x86)]))throw CliErrors[_0x417957(0x85)](_0x417957(0x7d)+_0x2d3e0a[_0x417957(0x86)]);_0x11995e[_0x417957(0x92)](_0x2d3e0a[_0x417957(0x86)],_0x2d3e0a);}const _0x294725=[];for(const _0x40cd77 of _0x20b777['files']){const _0x3b5d14=_0x11995e[_0x417957(0x88)](_0x40cd77[_0x417957(0x86)]);if(!_0x3b5d14)throw CliErrors[_0x417957(0x85)](_0x417957(0x9c)+_0x40cd77[_0x417957(0x86)]);if(_0x3b5d14['bytes'][_0x417957(0x91)]!==_0x40cd77[_0x417957(0x78)])throw CliErrors['validation'](_0x417957(0x7c)+_0x40cd77[_0x417957(0x86)]);const _0x2c945f=bufferSha256(_0x3b5d14[_0x417957(0x8f)]);if(_0x2c945f!==_0x40cd77['sha256'])throw CliErrors[_0x417957(0x85)](_0x417957(0x8c)+_0x40cd77[_0x417957(0x86)]);_0x294725[_0x417957(0x7e)]({'path':_0x40cd77['path'],'bytes':_0x3b5d14[_0x417957(0x8f)]});}return normalizeLocalFiles(_0x294725);}
1
+ (function(_0x31bb5f,_0x2ce11c){const _0x226251=a151_0x3cb7,_0x517747=_0x31bb5f();while(!![]){try{const _0x2fb903=-parseInt(_0x226251(0x9d))/0x1*(parseInt(_0x226251(0xae))/0x2)+parseInt(_0x226251(0xb4))/0x3*(-parseInt(_0x226251(0xaf))/0x4)+-parseInt(_0x226251(0x95))/0x5+-parseInt(_0x226251(0xb0))/0x6*(parseInt(_0x226251(0x96))/0x7)+-parseInt(_0x226251(0xa4))/0x8+-parseInt(_0x226251(0x8e))/0x9*(-parseInt(_0x226251(0x8c))/0xa)+parseInt(_0x226251(0x92))/0xb;if(_0x2fb903===_0x2ce11c)break;else _0x517747['push'](_0x517747['shift']());}catch(_0xda5b63){_0x517747['push'](_0x517747['shift']());}}}(a151_0x57f9,0x5434f));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a151_0x57f9(){const _0x28320f=['\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','ossPath','310lrdjRY','has','object','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','files','map','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','4191616HZUdTh','isSafeInteger','path','some','validation','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','schemaVersion','string','base64','144YHhpKt','4WFlEGz','960486YalGwn','push','Duplicate\x20Skill\x20package\x20entry:\x20','length','1656030yuxQhA','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','isArray','trim','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','sha256','1501630WAoRIl','toString','18kADCqG','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','bytes','zipSize','19284650RQMryq','toLowerCase','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','1450605BqBEFu','14lChONK','zipSha256','Runtime\x20Skill\x20package\x20is\x20missing\x20','treeSha256'];a151_0x57f9=function(){return _0x28320f;};return a151_0x57f9();}import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x327bb8){const _0x49770c=a151_0x3cb7,_0x1e1776=normalizeLocalFiles(_0x327bb8);if(!_0x1e1776[_0x49770c(0xa7)](_0x2d0a4b=>_0x2d0a4b['path']===SKILL_FILE))throw CliErrors['validation']('Missing\x20'+SKILL_FILE+_0x49770c(0x9a));const _0x24b5ed=localFilesToManifestFiles(_0x1e1776),_0x323fe6=createDeterministicZipPackage(_0x1e1776);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x24b5ed),'zipSha256':bufferSha256(_0x323fe6),'zipSize':_0x323fe6['length'],'files':_0x24b5ed},'packageBytes':_0x323fe6,'packageBase64':_0x323fe6[_0x49770c(0x8d)](_0x49770c(0xad))};}export function verifyRuntimeSkillPackage(_0x3c3e6d,_0x28ea23){const _0x26329b=a151_0x3cb7,_0x2328f5=normalizePackageManifest(_0x3c3e6d,{'requireOssPath':![]});if(!_0x2328f5)throw CliErrors['validation'](_0x26329b(0x89));return extractAndVerifyPackage(_0x2328f5,_0x28ea23);}export function verifyRuntimeSkillBundle(_0x2a2300,_0x1273e8){const _0x48954d=a151_0x3cb7,_0x2a4a2a=normalizePackageManifest(_0x2a2300,{'requireOssPath':![]});if(!_0x2a4a2a)throw CliErrors['validation'](_0x48954d(0x89));return extractAndVerifyPackageFiles(_0x2a4a2a,_0x1273e8);}export function tryNormalizePackageManifest(_0x452f22){return normalizePackageManifest(_0x452f22,{'requireOssPath':![]});}function a151_0x3cb7(_0xbeee45,_0x4d9d8b){_0xbeee45=_0xbeee45-0x87;const _0x57f980=a151_0x57f9();let _0x3cb7e6=_0x57f980[_0xbeee45];return _0x3cb7e6;}export function requirePackageBytes(_0x2a3641,_0x4b32ed){const _0x57381a=a151_0x3cb7;if(!_0x4b32ed||_0x4b32ed[_0x57381a(0xb3)]===0x0)throw CliErrors[_0x57381a(0xa8)](_0x57381a(0x8f)+_0x2a3641);return _0x4b32ed;}export function extractDownloadedPackage(_0x401c7b){const _0x45b374=a151_0x3cb7,_0x18eaa9=parseZipPackage(_0x401c7b)['map'](_0x29a8bd=>({'path':_0x29a8bd[_0x45b374(0xa6)],'bytes':_0x29a8bd[_0x45b374(0x90)]}));if(!_0x18eaa9[_0x45b374(0xa7)](_0x46c132=>_0x46c132[_0x45b374(0xa6)]===SKILL_FILE))throw CliErrors[_0x45b374(0xa8)](_0x45b374(0x98)+SKILL_FILE+'.');return normalizeLocalFiles(_0x18eaa9);}export function localFilesToManifestFiles(_0x130b30){const _0x2d35bd=a151_0x3cb7;return normalizeLocalFiles(_0x130b30)[_0x2d35bd(0xa2)](_0x55a040=>({'path':_0x55a040[_0x2d35bd(0xa6)],'sha256':fileHash(_0x55a040),'size':fileContent(_0x55a040)[_0x2d35bd(0xb3)]}));}function normalizePackageManifest(_0x4fb1aa,_0x246eeb){const _0x48aa2d=a151_0x3cb7;if(!_0x4fb1aa||typeof _0x4fb1aa!==_0x48aa2d(0x9f)||Array[_0x48aa2d(0x87)](_0x4fb1aa))return undefined;const _0x1feb94=_0x4fb1aa,_0x43e75f=typeof _0x1feb94[_0x48aa2d(0x9c)]===_0x48aa2d(0xac)?_0x1feb94[_0x48aa2d(0x9c)][_0x48aa2d(0x88)]():undefined;if(_0x246eeb['requireOssPath']&&!_0x43e75f)return undefined;if(!Array[_0x48aa2d(0x87)](_0x1feb94['files'])||_0x1feb94[_0x48aa2d(0xa1)][_0x48aa2d(0xb3)]===0x0)return undefined;if(!isSha256Hex(_0x1feb94[_0x48aa2d(0x99)]))throw CliErrors['validation'](_0x48aa2d(0xaa));if(!isSha256Hex(_0x1feb94[_0x48aa2d(0x97)]))throw CliErrors[_0x48aa2d(0xa8)](_0x48aa2d(0xa0));if(!Number[_0x48aa2d(0xa5)](_0x1feb94['zipSize'])||_0x1feb94[_0x48aa2d(0x91)]<0x0)throw CliErrors[_0x48aa2d(0xa8)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x4e62d7=normalizeManifestFiles(_0x1feb94[_0x48aa2d(0xa1)]);if(!_0x4e62d7[_0x48aa2d(0xa7)](_0x15ba44=>_0x15ba44['path']===SKILL_FILE))throw CliErrors[_0x48aa2d(0xa8)](_0x48aa2d(0xa9)+SKILL_FILE+'.');const _0x136861=fileTreeHash(_0x4e62d7);if(_0x136861!==_0x1feb94[_0x48aa2d(0x99)][_0x48aa2d(0x93)]())throw CliErrors[_0x48aa2d(0xa8)](_0x48aa2d(0x94));return{'schemaVersion':Number[_0x48aa2d(0xa5)](_0x1feb94[_0x48aa2d(0xab)])?_0x1feb94[_0x48aa2d(0xab)]:0x2,'ossPath':_0x43e75f,'treeSha256':_0x136861,'zipSha256':_0x1feb94['zipSha256'][_0x48aa2d(0x93)](),'zipSize':_0x1feb94['zipSize'],'files':_0x4e62d7};}function extractAndVerifyPackage(_0x2b83f1,_0x5b6be2){const _0x143795=a151_0x3cb7,_0x59b82c=normalizePackageManifest(_0x2b83f1,{'requireOssPath':![]});if(!_0x59b82c)throw CliErrors[_0x143795(0xa8)](_0x143795(0x89));if(_0x5b6be2[_0x143795(0xb3)]!==_0x59b82c[_0x143795(0x91)])throw CliErrors[_0x143795(0xa8)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x4e5364=bufferSha256(_0x5b6be2);if(_0x4e5364!==_0x59b82c[_0x143795(0x97)])throw CliErrors[_0x143795(0xa8)](_0x143795(0xb5));return extractAndVerifyPackageFiles(_0x59b82c,_0x5b6be2);}function extractAndVerifyPackageFiles(_0x5c9fd3,_0x292b0b){const _0x56d417=a151_0x3cb7,_0xb003c8=parseZipPackage(_0x292b0b);if(_0xb003c8['length']!==_0x5c9fd3[_0x56d417(0xa1)][_0x56d417(0xb3)])throw CliErrors['validation'](_0x56d417(0x8a));const _0xcfd546=new Map();for(const _0x459a61 of _0xb003c8){if(_0xcfd546[_0x56d417(0x9e)](_0x459a61['path']))throw CliErrors[_0x56d417(0xa8)](_0x56d417(0xb2)+_0x459a61[_0x56d417(0xa6)]);_0xcfd546['set'](_0x459a61[_0x56d417(0xa6)],_0x459a61);}const _0x593d85=[];for(const _0x1ca070 of _0x5c9fd3[_0x56d417(0xa1)]){const _0x1f227c=_0xcfd546['get'](_0x1ca070[_0x56d417(0xa6)]);if(!_0x1f227c)throw CliErrors[_0x56d417(0xa8)](_0x56d417(0x9b)+_0x1ca070[_0x56d417(0xa6)]);if(_0x1f227c['bytes'][_0x56d417(0xb3)]!==_0x1ca070['size'])throw CliErrors[_0x56d417(0xa8)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x1ca070['path']);const _0x4968ba=bufferSha256(_0x1f227c['bytes']);if(_0x4968ba!==_0x1ca070[_0x56d417(0x8b)])throw CliErrors['validation'](_0x56d417(0xa3)+_0x1ca070[_0x56d417(0xa6)]);_0x593d85[_0x56d417(0xb1)]({'path':_0x1ca070[_0x56d417(0xa6)],'bytes':_0x1f227c[_0x56d417(0x90)]});}return normalizeLocalFiles(_0x593d85);}
@@ -1 +1 @@
1
- function a152_0x10a2(){var _0x467b43=['145YaJWKb','11375859afiFmB','453976mblqjP','5616989yaipkM','304898PmGOae','12ORkWeu','50394WyEEFy','304ZIPbYP','259515ZJkxSL','2814656JzXAiE','10TBdpum'];a152_0x10a2=function(){return _0x467b43;};return a152_0x10a2();}(function(_0x20e9cd,_0x428e3c){var _0x1215d7=a152_0xbe1a,_0x2af3f=_0x20e9cd();while(!![]){try{var _0x278059=-parseInt(_0x1215d7(0x14d))/0x1+-parseInt(_0x1215d7(0x14b))/0x2*(parseInt(_0x1215d7(0x14e))/0x3)+parseInt(_0x1215d7(0x147))/0x4+parseInt(_0x1215d7(0x149))/0x5*(-parseInt(_0x1215d7(0x14f))/0x6)+-parseInt(_0x1215d7(0x14c))/0x7+-parseInt(_0x1215d7(0x150))/0x8*(-parseInt(_0x1215d7(0x146))/0x9)+parseInt(_0x1215d7(0x148))/0xa*(parseInt(_0x1215d7(0x14a))/0xb);if(_0x278059===_0x428e3c)break;else _0x2af3f['push'](_0x2af3f['shift']());}catch(_0x30d6eb){_0x2af3f['push'](_0x2af3f['shift']());}}}(a152_0x10a2,0x8c4fb));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';function a152_0xbe1a(_0x1cee35,_0x52f0cd){_0x1cee35=_0x1cee35-0x146;var _0x10a210=a152_0x10a2();var _0xbe1a95=_0x10a210[_0x1cee35];return _0xbe1a95;}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';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0xadca29,_0x203c27){var _0x38a642=a152_0x528e,_0x47eb31=_0xadca29();while(!![]){try{var _0x1816c6=parseInt(_0x38a642(0xe2))/0x1*(parseInt(_0x38a642(0xdd))/0x2)+-parseInt(_0x38a642(0xde))/0x3*(-parseInt(_0x38a642(0xe5))/0x4)+-parseInt(_0x38a642(0xe3))/0x5*(parseInt(_0x38a642(0xdf))/0x6)+parseInt(_0x38a642(0xe1))/0x7*(parseInt(_0x38a642(0xe4))/0x8)+parseInt(_0x38a642(0xe6))/0x9+parseInt(_0x38a642(0xe0))/0xa+-parseInt(_0x38a642(0xdb))/0xb*(parseInt(_0x38a642(0xdc))/0xc);if(_0x1816c6===_0x203c27)break;else _0x47eb31['push'](_0x47eb31['shift']());}catch(_0x226be1){_0x47eb31['push'](_0x47eb31['shift']());}}}(a152_0x9f7f,0x2d546));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';function a152_0x9f7f(){var _0x4c4a4f=['313130VWOfjV','38129iqkFPh','1YAkwUS','126065Bbuxwq','264hQbabw','1324IjpFja','2832210LsFHlx','8041VUhbov','3984zsdYKB','510518jpWYKh','3OslmXO','84lvKkqx'];a152_0x9f7f=function(){return _0x4c4a4f;};return a152_0x9f7f();}function a152_0x528e(_0x5ae94e,_0x29c0f9){_0x5ae94e=_0x5ae94e-0xdb;var _0x9f7f5a=a152_0x9f7f();var _0x528e33=_0x9f7f5a[_0x5ae94e];return _0x528e33;}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';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- const a153_0x33de17=a153_0x351f;function a153_0x168b(){const _0x12509d=['map','home','SKILL.md','90uEoxMe','absent','includes','13835EKgsxc','.skill-lock.json','\x20records\x20\x22','246zdZKgP','1439919hXgyqj','15596BoMgMC','find','\x20has\x20no\x20skills\x20map','.claude','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','104553xUVadm','.agents','1135604QHnBYq','1242JEOZEQ','3734024bWplXb','unverifiable','message','version','3765949AnHLrv','globalSkillsDirs','parse','utf8','kind','number','skills','unusable','40xWgapd','lockFile','not-recorded','\x20uses\x20unsupported\x20version\x20','reason'];a153_0x168b=function(){return _0x12509d;};return a153_0x168b();}function a153_0x351f(_0x3c072b,_0x466c13){_0x3c072b=_0x3c072b-0x6a;const _0x168b07=a153_0x168b();let _0x351fcb=_0x168b07[_0x3c072b];return _0x351fcb;}(function(_0x2f9ad8,_0x20dfbb){const _0x382386=a153_0x351f,_0x309506=_0x2f9ad8();while(!![]){try{const _0x275867=-parseInt(_0x382386(0x6c))/0x1+-parseInt(_0x382386(0x74))/0x2+parseInt(_0x382386(0x6b))/0x3*(-parseInt(_0x382386(0x6d))/0x4)+-parseInt(_0x382386(0x8d))/0x5*(-parseInt(_0x382386(0x75))/0x6)+-parseInt(_0x382386(0x76))/0x7+parseInt(_0x382386(0x82))/0x8*(-parseInt(_0x382386(0x72))/0x9)+-parseInt(_0x382386(0x8a))/0xa*(-parseInt(_0x382386(0x7a))/0xb);if(_0x275867===_0x20dfbb)break;else _0x309506['push'](_0x309506['shift']());}catch(_0x2f24ab){_0x309506['push'](_0x309506['shift']());}}}(a153_0x168b,0xb3744));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a153_0x33de17(0x73),a153_0x33de17(0x8e));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a153_0x33de17(0x73),a153_0x33de17(0x80)),join(a153_0x33de17(0x70),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x53e360,_0x4cb659){const _0x30e68c=a153_0x33de17;if(!existsSync(_0x53e360))return{'kind':'not-recorded'};let _0x3b498e;try{_0x3b498e=JSON[_0x30e68c(0x7c)](readFileSync(_0x53e360,_0x30e68c(0x7d)));}catch(_0x3592b5){return{'kind':'unusable','reason':_0x53e360+'\x20is\x20unreadable:\x20'+_0x3592b5[_0x30e68c(0x78)]};}const _0x1696e1=_0x3b498e;if(typeof _0x1696e1?.[_0x30e68c(0x79)]!==_0x30e68c(0x7f)||!SUPPORTED_LOCK_VERSIONS[_0x30e68c(0x8c)](_0x1696e1['version']))return{'kind':'unusable','reason':_0x53e360+_0x30e68c(0x85)+String(_0x1696e1?.[_0x30e68c(0x79)])};if(!_0x1696e1[_0x30e68c(0x80)]||typeof _0x1696e1[_0x30e68c(0x80)]!=='object')return{'kind':_0x30e68c(0x81),'reason':_0x53e360+_0x30e68c(0x6f)};return _0x1696e1[_0x30e68c(0x80)][_0x4cb659]?{'kind':'recorded'}:{'kind':_0x30e68c(0x84)};}export function resolveInstalledSkill(_0x248bde,_0x17cce5){const _0x4e886c=a153_0x33de17,_0x3afe79=_0x17cce5?.[_0x4e886c(0x88)]??homedir(),_0x106c5e=_0x17cce5?.[_0x4e886c(0x7b)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x4e886c(0x87)](_0x43dbba=>join(_0x3afe79,_0x43dbba)),_0x52549d=_0x17cce5?.[_0x4e886c(0x83)]??join(_0x3afe79,SKILL_LOCK_RELATIVE_PATH),_0x5ab899=_0x106c5e[_0x4e886c(0x87)](_0x3d8790=>join(_0x3d8790,_0x248bde,_0x4e886c(0x89))),_0x3d1fc7=_0x5ab899[_0x4e886c(0x6e)](_0x2ae6b4=>existsSync(_0x2ae6b4));if(_0x3d1fc7)return{'state':'present','path':_0x3d1fc7};const _0x52be63=readLockLookup(_0x52549d,_0x248bde);if(_0x52be63['kind']===_0x4e886c(0x81))return{'state':_0x4e886c(0x77),'reason':_0x52be63[_0x4e886c(0x86)]};if(_0x52be63[_0x4e886c(0x7e)]==='recorded')return{'state':_0x4e886c(0x77),'reason':_0x52549d+_0x4e886c(0x6a)+_0x248bde+_0x4e886c(0x71)+('('+_0x5ab899['join'](',\x20')+')')};return{'state':_0x4e886c(0x8b),'checked':_0x5ab899};}
1
+ const a153_0x7568b8=a153_0x2381;(function(_0x129c0e,_0x127f79){const _0x4f19ca=a153_0x2381,_0xd8d9b2=_0x129c0e();while(!![]){try{const _0x1d2699=-parseInt(_0x4f19ca(0x7a))/0x1+-parseInt(_0x4f19ca(0x9a))/0x2+-parseInt(_0x4f19ca(0x93))/0x3+parseInt(_0x4f19ca(0x7b))/0x4+parseInt(_0x4f19ca(0x84))/0x5*(parseInt(_0x4f19ca(0x83))/0x6)+-parseInt(_0x4f19ca(0x78))/0x7+-parseInt(_0x4f19ca(0x88))/0x8*(parseInt(_0x4f19ca(0x85))/0x9);if(_0x1d2699===_0x127f79)break;else _0xd8d9b2['push'](_0xd8d9b2['shift']());}catch(_0x1d16ce){_0xd8d9b2['push'](_0xd8d9b2['shift']());}}}(a153_0x12d9,0x64714));import{existsSync,readFileSync}from'node:fs';function a153_0x12d9(){const _0x17a07b=['57262TRorRd','3168844LJBttB','present','absent','recorded','home','\x20records\x20\x22','.agents','unusable','4875018nmlcfZ','5CCUJlR','1413ObTxgY','includes','map','200zMkziI','object','SKILL.md','find','join','parse','reason','not-recorded','unverifiable','number','skills','416259qCAygw','lockFile','\x20is\x20unreadable:\x20','utf8','.skill-lock.json','version','.claude','1378144nlKRSG','2130030pNCKrc','kind'];a153_0x12d9=function(){return _0x17a07b;};return a153_0x12d9();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a153_0x7568b8(0x97));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a153_0x7568b8(0x81),a153_0x7568b8(0x92)),join(a153_0x7568b8(0x99),a153_0x7568b8(0x92))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a153_0x2381(_0x4cf8bf,_0x1ccef2){_0x4cf8bf=_0x4cf8bf-0x78;const _0x12d929=a153_0x12d9();let _0x238179=_0x12d929[_0x4cf8bf];return _0x238179;}function readLockLookup(_0x43417d,_0x425277){const _0x135605=a153_0x7568b8;if(!existsSync(_0x43417d))return{'kind':_0x135605(0x8f)};let _0x44ccf8;try{_0x44ccf8=JSON[_0x135605(0x8d)](readFileSync(_0x43417d,_0x135605(0x96)));}catch(_0x281ecd){return{'kind':_0x135605(0x82),'reason':_0x43417d+_0x135605(0x95)+_0x281ecd['message']};}const _0x365fbb=_0x44ccf8;if(typeof _0x365fbb?.[_0x135605(0x98)]!==_0x135605(0x91)||!SUPPORTED_LOCK_VERSIONS[_0x135605(0x86)](_0x365fbb[_0x135605(0x98)]))return{'kind':_0x135605(0x82),'reason':_0x43417d+'\x20uses\x20unsupported\x20version\x20'+String(_0x365fbb?.[_0x135605(0x98)])};if(!_0x365fbb['skills']||typeof _0x365fbb['skills']!==_0x135605(0x89))return{'kind':_0x135605(0x82),'reason':_0x43417d+'\x20has\x20no\x20skills\x20map'};return _0x365fbb[_0x135605(0x92)][_0x425277]?{'kind':_0x135605(0x7e)}:{'kind':_0x135605(0x8f)};}export function resolveInstalledSkill(_0x3da057,_0x17ca98){const _0x3cfde3=a153_0x7568b8,_0x558bf3=_0x17ca98?.[_0x3cfde3(0x7f)]??homedir(),_0x59c7f4=_0x17ca98?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x3cfde3(0x87)](_0x4ed4cb=>join(_0x558bf3,_0x4ed4cb)),_0x4560fb=_0x17ca98?.[_0x3cfde3(0x94)]??join(_0x558bf3,SKILL_LOCK_RELATIVE_PATH),_0x3dd4fc=_0x59c7f4['map'](_0x5c5e3c=>join(_0x5c5e3c,_0x3da057,_0x3cfde3(0x8a))),_0x3cca00=_0x3dd4fc[_0x3cfde3(0x8b)](_0xc47375=>existsSync(_0xc47375));if(_0x3cca00)return{'state':_0x3cfde3(0x7c),'path':_0x3cca00};const _0x55d6d8=readLockLookup(_0x4560fb,_0x3da057);if(_0x55d6d8[_0x3cfde3(0x79)]===_0x3cfde3(0x82))return{'state':_0x3cfde3(0x90),'reason':_0x55d6d8[_0x3cfde3(0x8e)]};if(_0x55d6d8[_0x3cfde3(0x79)]===_0x3cfde3(0x7e))return{'state':_0x3cfde3(0x90),'reason':_0x4560fb+_0x3cfde3(0x80)+_0x3da057+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x3dd4fc[_0x3cfde3(0x8c)](',\x20')+')')};return{'state':_0x3cfde3(0x7d),'checked':_0x3dd4fc};}
@@ -1 +1 @@
1
- function a154_0x283b(){const _0x2e1137=['string','object','call','131997Dymuhs','985274YnfkyC','2033568NroGPj','length','slice','isArray','9049677NGWKpw','prototype','hasOwnProperty','accessKey','351788sudmGq','test','2524360iHALvi','apps','1297038LkezNs'];a154_0x283b=function(){return _0x2e1137;};return a154_0x283b();}(function(_0x2aaaba,_0x59fb38){const _0x151502=a154_0x326b,_0x4f9464=_0x2aaaba();while(!![]){try{const _0x175878=parseInt(_0x151502(0x1da))/0x1+parseInt(_0x151502(0x1e3))/0x2+-parseInt(_0x151502(0x1e2))/0x3+parseInt(_0x151502(0x1e4))/0x4+parseInt(_0x151502(0x1dc))/0x5+-parseInt(_0x151502(0x1de))/0x6+-parseInt(_0x151502(0x1e8))/0x7;if(_0x175878===_0x59fb38)break;else _0x4f9464['push'](_0x4f9464['shift']());}catch(_0x1c4cbb){_0x4f9464['push'](_0x4f9464['shift']());}}}(a154_0x283b,0x4a642));const REDACTED_ACCESS_KEY='<redacted>';export function maskCliAccessKey(_0x455134){const _0x26f606=a154_0x326b;if(typeof _0x455134!==_0x26f606(0x1df)||_0x455134[_0x26f606(0x1e5)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x455134[_0x26f606(0x1e6)](0x0,0x8)+'*'['repeat'](_0x455134[_0x26f606(0x1e5)]-0x8);}function a154_0x326b(_0x379ccb,_0x37df76){_0x379ccb=_0x379ccb-0x1d9;const _0x283b91=a154_0x283b();let _0x326b28=_0x283b91[_0x379ccb];return _0x326b28;}export function redactCliConfigCredentials(_0x5306b6){const _0x5c013e=a154_0x326b,_0x5744ff={..._0x5306b6};return Object['prototype'][_0x5c013e(0x1ea)][_0x5c013e(0x1e1)](_0x5744ff,_0x5c013e(0x1d9))&&(_0x5744ff['accessKey']=maskCliAccessKey(_0x5744ff[_0x5c013e(0x1d9)])),_0x5744ff[_0x5c013e(0x1dd)]&&typeof _0x5744ff['apps']===_0x5c013e(0x1e0)&&!Array[_0x5c013e(0x1e7)](_0x5744ff['apps'])&&(_0x5744ff[_0x5c013e(0x1dd)]=redactLegacyAppCredentials(_0x5744ff['apps'])),_0x5744ff;}export function redactCliConfigValue(_0x154906,_0x5c0b98){const _0x9a21b7=a154_0x326b;if(_0x154906===_0x9a21b7(0x1d9)||/^apps\.[^.]+\.accessKey$/[_0x9a21b7(0x1db)](_0x154906))return maskCliAccessKey(_0x5c0b98);if(_0x154906===_0x9a21b7(0x1dd)&&_0x5c0b98&&typeof _0x5c0b98==='object'&&!Array[_0x9a21b7(0x1e7)](_0x5c0b98))return redactLegacyAppCredentials(_0x5c0b98);if(/^apps\.[^.]+$/['test'](_0x154906)&&_0x5c0b98&&typeof _0x5c0b98===_0x9a21b7(0x1e0)&&!Array[_0x9a21b7(0x1e7)](_0x5c0b98)){const _0x476d4f=_0x5c0b98;return Object[_0x9a21b7(0x1e9)]['hasOwnProperty'][_0x9a21b7(0x1e1)](_0x476d4f,'accessKey')?{..._0x476d4f,'accessKey':maskCliAccessKey(_0x476d4f[_0x9a21b7(0x1d9)])}:_0x5c0b98;}return _0x5c0b98;}function redactLegacyAppCredentials(_0x1cb1cd){return Object['fromEntries'](Object['entries'](_0x1cb1cd)['map'](([_0x2c037d,_0x4c5a60])=>{const _0x17ee42=a154_0x326b;if(!_0x4c5a60||typeof _0x4c5a60!==_0x17ee42(0x1e0)||Array[_0x17ee42(0x1e7)](_0x4c5a60))return[_0x2c037d,_0x4c5a60];const _0x3615ba={..._0x4c5a60};return Object[_0x17ee42(0x1e9)][_0x17ee42(0x1ea)][_0x17ee42(0x1e1)](_0x3615ba,'accessKey')&&(_0x3615ba[_0x17ee42(0x1d9)]=maskCliAccessKey(_0x3615ba['accessKey'])),[_0x2c037d,_0x3615ba];}));}
1
+ function a154_0x352d(){const _0x276343=['954468lbPAEI','<redacted>','hasOwnProperty','18WcvxYe','isArray','entries','fromEntries','445948LMpuNc','slice','prototype','accessKey','589981xnpmcZ','340370ZboMwQ','test','210540ykYQQQ','609831aCbLMv','apps','length','call','5PTXJEx','4BHvdqu','map','44GQnANG','709512KjiVhg','object'];a154_0x352d=function(){return _0x276343;};return a154_0x352d();}const a154_0x9d19c2=a154_0x2fc4;(function(_0x29f7f1,_0x49882a){const _0x11f8d5=a154_0x2fc4,_0x176ca9=_0x29f7f1();while(!![]){try{const _0x4ec446=parseInt(_0x11f8d5(0xfc))/0x1+parseInt(_0x11f8d5(0x10e))/0x2+-parseInt(_0x11f8d5(0xfd))/0x3*(parseInt(_0x11f8d5(0x102))/0x4)+parseInt(_0x11f8d5(0x101))/0x5*(-parseInt(_0x11f8d5(0x107))/0x6)+parseInt(_0x11f8d5(0x112))/0x7+-parseInt(_0x11f8d5(0x105))/0x8*(-parseInt(_0x11f8d5(0x10a))/0x9)+parseInt(_0x11f8d5(0x113))/0xa*(-parseInt(_0x11f8d5(0x104))/0xb);if(_0x4ec446===_0x49882a)break;else _0x176ca9['push'](_0x176ca9['shift']());}catch(_0x19bae0){_0x176ca9['push'](_0x176ca9['shift']());}}}(a154_0x352d,0x30040));const REDACTED_ACCESS_KEY=a154_0x9d19c2(0x108);export function maskCliAccessKey(_0x904232){const _0x1775e7=a154_0x9d19c2;if(typeof _0x904232!=='string'||_0x904232[_0x1775e7(0xff)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x904232[_0x1775e7(0x10f)](0x0,0x8)+'*'['repeat'](_0x904232['length']-0x8);}export function redactCliConfigCredentials(_0x1f2d0f){const _0x535a99=a154_0x9d19c2,_0x48ae96={..._0x1f2d0f};return Object[_0x535a99(0x110)][_0x535a99(0x109)]['call'](_0x48ae96,_0x535a99(0x111))&&(_0x48ae96['accessKey']=maskCliAccessKey(_0x48ae96[_0x535a99(0x111)])),_0x48ae96['apps']&&typeof _0x48ae96[_0x535a99(0xfe)]==='object'&&!Array[_0x535a99(0x10b)](_0x48ae96[_0x535a99(0xfe)])&&(_0x48ae96[_0x535a99(0xfe)]=redactLegacyAppCredentials(_0x48ae96['apps'])),_0x48ae96;}export function redactCliConfigValue(_0x2e12e6,_0x12b38f){const _0x5969b1=a154_0x9d19c2;if(_0x2e12e6===_0x5969b1(0x111)||/^apps\.[^.]+\.accessKey$/['test'](_0x2e12e6))return maskCliAccessKey(_0x12b38f);if(_0x2e12e6===_0x5969b1(0xfe)&&_0x12b38f&&typeof _0x12b38f===_0x5969b1(0x106)&&!Array[_0x5969b1(0x10b)](_0x12b38f))return redactLegacyAppCredentials(_0x12b38f);if(/^apps\.[^.]+$/[_0x5969b1(0x114)](_0x2e12e6)&&_0x12b38f&&typeof _0x12b38f===_0x5969b1(0x106)&&!Array[_0x5969b1(0x10b)](_0x12b38f)){const _0x53f2c3=_0x12b38f;return Object[_0x5969b1(0x110)]['hasOwnProperty'][_0x5969b1(0x100)](_0x53f2c3,_0x5969b1(0x111))?{..._0x53f2c3,'accessKey':maskCliAccessKey(_0x53f2c3[_0x5969b1(0x111)])}:_0x12b38f;}return _0x12b38f;}function a154_0x2fc4(_0xa8a5b4,_0x36619f){_0xa8a5b4=_0xa8a5b4-0xfc;const _0x352dce=a154_0x352d();let _0x2fc474=_0x352dce[_0xa8a5b4];return _0x2fc474;}function redactLegacyAppCredentials(_0x4df568){const _0xa9067=a154_0x9d19c2;return Object[_0xa9067(0x10d)](Object[_0xa9067(0x10c)](_0x4df568)[_0xa9067(0x103)](([_0x4141d3,_0x50577d])=>{const _0x23e305=_0xa9067;if(!_0x50577d||typeof _0x50577d!==_0x23e305(0x106)||Array[_0x23e305(0x10b)](_0x50577d))return[_0x4141d3,_0x50577d];const _0xbbe041={..._0x50577d};return Object[_0x23e305(0x110)]['hasOwnProperty']['call'](_0xbbe041,_0x23e305(0x111))&&(_0xbbe041[_0x23e305(0x111)]=maskCliAccessKey(_0xbbe041[_0x23e305(0x111)])),[_0x4141d3,_0xbbe041];}));}
@@ -1 +1 @@
1
- function a155_0x46d6(_0x32f482,_0x58389e){_0x32f482=_0x32f482-0x6a;const _0x476aae=a155_0x476a();let _0x46d605=_0x476aae[_0x32f482];return _0x46d605;}(function(_0x510065,_0x4a7ff3){const _0x4eceaf=a155_0x46d6,_0x35c6b6=_0x510065();while(!![]){try{const _0x4010d7=parseInt(_0x4eceaf(0x6c))/0x1+-parseInt(_0x4eceaf(0x72))/0x2+-parseInt(_0x4eceaf(0x71))/0x3*(-parseInt(_0x4eceaf(0x6f))/0x4)+-parseInt(_0x4eceaf(0x6e))/0x5+-parseInt(_0x4eceaf(0x73))/0x6+-parseInt(_0x4eceaf(0x70))/0x7*(parseInt(_0x4eceaf(0x6d))/0x8)+parseInt(_0x4eceaf(0x6b))/0x9*(parseInt(_0x4eceaf(0x6a))/0xa);if(_0x4010d7===_0x4a7ff3)break;else _0x35c6b6['push'](_0x35c6b6['shift']());}catch(_0x5afef6){_0x35c6b6['push'](_0x35c6b6['shift']());}}}(a155_0x476a,0xb85c3));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a155_0x476a(){const _0x9adb2c=['1389788rCOTBz','505158AXlymh','2623350bcIKcc','90SuLFRg','459251zRnhlA','218520LyWqtS','7412480JMYPdO','4IXRkya','161kLoKdz','1687098BQwgrZ'];a155_0x476a=function(){return _0x9adb2c;};return a155_0x476a();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x117bc4,_0x133167){const _0x993d13=a155_0x3530,_0x3b85b6=_0x117bc4();while(!![]){try{const _0x399f03=-parseInt(_0x993d13(0x91))/0x1+-parseInt(_0x993d13(0x97))/0x2+-parseInt(_0x993d13(0x95))/0x3*(-parseInt(_0x993d13(0x92))/0x4)+parseInt(_0x993d13(0x93))/0x5+parseInt(_0x993d13(0x99))/0x6+parseInt(_0x993d13(0x96))/0x7+-parseInt(_0x993d13(0x98))/0x8*(-parseInt(_0x993d13(0x94))/0x9);if(_0x399f03===_0x133167)break;else _0x3b85b6['push'](_0x3b85b6['shift']());}catch(_0xd6aca7){_0x3b85b6['push'](_0x3b85b6['shift']());}}}(a155_0xafc9,0x29644));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a155_0xafc9(){const _0x40ede1=['816nTZEJs','1103985URMftH','1585377ogQXVM','876ksydpk','28035KPTNfc','328204KzzQDf','8npMTVa','728610ZDWawv','248316nWqGLk'];a155_0xafc9=function(){return _0x40ede1;};return a155_0xafc9();}function a155_0x3530(_0x161868,_0x1f3b06){_0x161868=_0x161868-0x91;const _0xafc976=a155_0xafc9();let _0x353071=_0xafc976[_0x161868];return _0x353071;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x237f3a,_0x2194b3){const _0xa2659c=a156_0x3b59,_0x30d376=_0x237f3a();while(!![]){try{const _0x244376=parseInt(_0xa2659c(0x1cc))/0x1+-parseInt(_0xa2659c(0x1d0))/0x2+parseInt(_0xa2659c(0x1d7))/0x3+parseInt(_0xa2659c(0x1c7))/0x4*(-parseInt(_0xa2659c(0x1cf))/0x5)+parseInt(_0xa2659c(0x1d3))/0x6+parseInt(_0xa2659c(0x1ca))/0x7+parseInt(_0xa2659c(0x1da))/0x8*(-parseInt(_0xa2659c(0x1d9))/0x9);if(_0x244376===_0x2194b3)break;else _0x30d376['push'](_0x30d376['shift']());}catch(_0x4b082a){_0x30d376['push'](_0x30d376['shift']());}}}(a156_0xca76,0xdda1e));function a156_0xca76(){const _0x38c89e=['Upgrade\x20command:\x20','belowMinimum','690285VgTSDw','2520294ZEIpcH','minimumVersionMessage','stableVersion','10458324AlffrR','valid','minimumVersion','upgradeMessage','1815423bcavYi','join','25614HozxYL','4488bEyPHM','Current\x20version:\x20','validation','unavailable','4kMEqpw','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','Recommended\x20stable:\x20','6398665ekgZBt','filter','640326yeKMRI'];a156_0xca76=function(){return _0x38c89e;};return a156_0xca76();}import a156_0x3bf5de from'semver';function a156_0x3b59(_0x288b7c,_0x56727e){_0x288b7c=_0x288b7c-0x1c4;const _0xca761d=a156_0xca76();let _0x3b5944=_0xca761d[_0x288b7c];return _0x3b5944;}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(_0x5a4575,_0x597ea4){const _0x38ea4d=a156_0x3b59,_0x2f5958=a156_0x3bf5de[_0x38ea4d(0x1d4)](_0x5a4575)===_0x5a4575,_0x2ba4b2=_0x597ea4?.[_0x38ea4d(0x1d2)]??null,_0x5729cd=_0x597ea4?.['minimumVersion']??null,_0x5e1305=Boolean(_0x2f5958&&_0x2ba4b2&&a156_0x3bf5de['lt'](_0x5a4575,_0x2ba4b2)),_0x14b41d=Boolean(_0x2f5958&&_0x5729cd&&a156_0x3bf5de['lt'](_0x5a4575,_0x5729cd));return{'currentVersion':_0x5a4575,'stableVersion':_0x2ba4b2,'minimumVersion':_0x5729cd,'needsUpgrade':_0x5e1305||_0x14b41d,'belowMinimum':_0x14b41d,'upgradeMessage':_0x597ea4?.[_0x38ea4d(0x1d6)],'minimumVersionMessage':_0x597ea4?.[_0x38ea4d(0x1d1)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x478452){return'npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x478452['stableVersion']??'latest');}export function assertCliVersionSupported(_0x4f5f97){const _0x315a55=a156_0x3b59;if(!_0x4f5f97[_0x315a55(0x1ce)])return;const _0x386b8c=[_0x4f5f97['minimumVersionMessage'],_0x315a55(0x1c4)+_0x4f5f97['currentVersion'],'Minimum\x20supported:\x20'+_0x4f5f97[_0x315a55(0x1d5)],_0x315a55(0x1c9)+(_0x4f5f97[_0x315a55(0x1d2)]??_0x315a55(0x1c6)),_0x315a55(0x1cd)+getCliUpgradeCommand(_0x4f5f97)][_0x315a55(0x1cb)](Boolean)[_0x315a55(0x1d8)]('\x0a');throw CliErrors[_0x315a55(0x1c5)](_0x315a55(0x1c8),_0x386b8c);}
1
+ function a156_0x1537(_0x168dcb,_0x34eae3){_0x168dcb=_0x168dcb-0x74;const _0x42198d=a156_0x4219();let _0x1537fd=_0x42198d[_0x168dcb];return _0x1537fd;}(function(_0xe3cc5e,_0x2cb259){const _0xb5fd64=a156_0x1537,_0x3df7c0=_0xe3cc5e();while(!![]){try{const _0x997a5a=parseInt(_0xb5fd64(0x7b))/0x1*(-parseInt(_0xb5fd64(0x74))/0x2)+parseInt(_0xb5fd64(0x82))/0x3+-parseInt(_0xb5fd64(0x80))/0x4+-parseInt(_0xb5fd64(0x87))/0x5+parseInt(_0xb5fd64(0x83))/0x6*(-parseInt(_0xb5fd64(0x77))/0x7)+-parseInt(_0xb5fd64(0x7a))/0x8*(parseInt(_0xb5fd64(0x75))/0x9)+parseInt(_0xb5fd64(0x81))/0xa;if(_0x997a5a===_0x2cb259)break;else _0x3df7c0['push'](_0x3df7c0['shift']());}catch(_0x498834){_0x3df7c0['push'](_0x3df7c0['shift']());}}}(a156_0x4219,0x70cd4));import a156_0x2f555c from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a156_0x4219(){const _0xc3d319=['Minimum\x20supported:\x20','valid','minimumVersion','567565eUUzRe','stableVersion','belowMinimum','latest','unavailable','4QLRFdk','36MpTndH','currentVersion','4837GwHNdm','minimumVersionMessage','Upgrade\x20command:\x20','804704sZcAId','38941kPfSFL','filter','npm\x20install\x20-g\x20','Recommended\x20stable:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','1478884fKWIUE','13735040auTZHh','1053609YOiGVv','2598kYayjW'];a156_0x4219=function(){return _0xc3d319;};return a156_0x4219();}import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x5607d2,_0x3ff747){const _0x13d876=a156_0x1537,_0x3e78de=a156_0x2f555c[_0x13d876(0x85)](_0x5607d2)===_0x5607d2,_0x2494a3=_0x3ff747?.[_0x13d876(0x88)]??null,_0x3eba39=_0x3ff747?.[_0x13d876(0x86)]??null,_0x3ac1ba=Boolean(_0x3e78de&&_0x2494a3&&a156_0x2f555c['lt'](_0x5607d2,_0x2494a3)),_0x2b2ab1=Boolean(_0x3e78de&&_0x3eba39&&a156_0x2f555c['lt'](_0x5607d2,_0x3eba39));return{'currentVersion':_0x5607d2,'stableVersion':_0x2494a3,'minimumVersion':_0x3eba39,'needsUpgrade':_0x3ac1ba||_0x2b2ab1,'belowMinimum':_0x2b2ab1,'upgradeMessage':_0x3ff747?.['upgradeMessage'],'minimumVersionMessage':_0x3ff747?.[_0x13d876(0x78)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x134a2f){const _0x1a4bb8=a156_0x1537;return _0x1a4bb8(0x7d)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x134a2f['stableVersion']??_0x1a4bb8(0x8a));}export function assertCliVersionSupported(_0x36f489){const _0x16b7a0=a156_0x1537;if(!_0x36f489[_0x16b7a0(0x89)])return;const _0x3e4d4d=[_0x36f489[_0x16b7a0(0x78)],'Current\x20version:\x20'+_0x36f489[_0x16b7a0(0x76)],_0x16b7a0(0x84)+_0x36f489[_0x16b7a0(0x86)],_0x16b7a0(0x7e)+(_0x36f489[_0x16b7a0(0x88)]??_0x16b7a0(0x8b)),_0x16b7a0(0x79)+getCliUpgradeCommand(_0x36f489)][_0x16b7a0(0x7c)](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x16b7a0(0x7f),_0x3e4d4d);}
@@ -1 +1 @@
1
- (function(_0x75173,_0x9a8edc){const _0x3c7e58=a157_0x336f,_0x45c5a1=_0x75173();while(!![]){try{const _0x1176f8=parseInt(_0x3c7e58(0x122))/0x1*(parseInt(_0x3c7e58(0x11a))/0x2)+parseInt(_0x3c7e58(0x12c))/0x3*(-parseInt(_0x3c7e58(0x127))/0x4)+parseInt(_0x3c7e58(0x116))/0x5+-parseInt(_0x3c7e58(0x124))/0x6*(parseInt(_0x3c7e58(0x119))/0x7)+parseInt(_0x3c7e58(0x121))/0x8+parseInt(_0x3c7e58(0x125))/0x9*(parseInt(_0x3c7e58(0x115))/0xa)+-parseInt(_0x3c7e58(0x120))/0xb;if(_0x1176f8===_0x9a8edc)break;else _0x45c5a1['push'](_0x45c5a1['shift']());}catch(_0x7cb3e3){_0x45c5a1['push'](_0x45c5a1['shift']());}}}(a157_0xd852,0x9fec8));import a157_0x3a3d2f from'semver';function a157_0xd852(){const _0x1ada61=['recommendedVersion','2243857iYDuja','92NvXukA','application/json','latestVersion','then','upgradeMessage','json','9603836QejBIs','5376544AwrWLV','24995ZEECpG','string','18bAHieW','178758zwmcKk','cli','2541712eESfRI','minimumVersion','object','minimumVersionMessage','trim','6wRtOUs','now','610JBtRBL','3636065pYCEMj','finally'];a157_0xd852=function(){return _0x1ada61;};return a157_0xd852();}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(_0x4f1c56){const _0x1c8fc5=a157_0x336f;return typeof _0x4f1c56===_0x1c8fc5(0x123)&&_0x4f1c56[_0x1c8fc5(0x12b)]()?_0x4f1c56[_0x1c8fc5(0x12b)]():null;}function pickStrictSemver(_0x257306){const _0x379e6b=pickString(_0x257306);return _0x379e6b&&a157_0x3a3d2f['valid'](_0x379e6b)===_0x379e6b?_0x379e6b:null;}export function normalizeCliVersionPolicy(_0x287fbf){const _0x40ed28=a157_0x336f;if(!_0x287fbf||typeof _0x287fbf!=='object')return null;const _0x2d73f8=_0x287fbf,_0x161210=_0x2d73f8[_0x40ed28(0x126)]&&typeof _0x2d73f8[_0x40ed28(0x126)]===_0x40ed28(0x129)?_0x2d73f8['cli']:_0x2d73f8,_0x3deb1e=pickStrictSemver(_0x161210['stableVersion']??_0x161210[_0x40ed28(0x11c)]??_0x161210[_0x40ed28(0x118)]),_0x1a5500=pickStrictSemver(_0x161210[_0x40ed28(0x128)]??_0x161210['minVersion']);if(!_0x3deb1e&&!_0x1a5500)return null;if(_0x3deb1e&&_0x1a5500&&a157_0x3a3d2f['gt'](_0x1a5500,_0x3deb1e))return null;return{'stableVersion':_0x3deb1e,'minimumVersion':_0x1a5500,'upgradeMessage':pickString(_0x161210[_0x40ed28(0x11e)])??undefined,'minimumVersionMessage':pickString(_0x161210[_0x40ed28(0x12a)])??undefined};}export async function fetchCliVersionPolicy(){const _0x179f4b=a157_0x336f;try{const _0x27807e=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x179f4b(0x11b)},'signal':AbortSignal['timeout'](FETCH_TIMEOUT_MS)});if(!_0x27807e['ok'])return null;return normalizeCliVersionPolicy(await _0x27807e[_0x179f4b(0x11f)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;function a157_0x336f(_0x44be37,_0xc760f6){_0x44be37=_0x44be37-0x115;const _0xd85241=a157_0xd852();let _0x336f86=_0xd85241[_0x44be37];return _0x336f86;}export async function getCliVersionPolicy(){const _0x197abe=a157_0x336f,_0x30ae8a=Date[_0x197abe(0x12d)]();if(hasCachedPolicy){const _0x472d79=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x30ae8a-cachedAt<_0x472d79)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x197abe(0x11d)](_0x2e0bcf=>{const _0x273b97=_0x197abe;return cachedPolicy=_0x2e0bcf,cachedAt=Date[_0x273b97(0x12d)](),hasCachedPolicy=!![],_0x2e0bcf;})[_0x197abe(0x117)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
1
+ (function(_0x28022b,_0x15859f){const _0x324656=a157_0x3bea,_0xef869d=_0x28022b();while(!![]){try{const _0x1272a3=-parseInt(_0x324656(0xdf))/0x1+-parseInt(_0x324656(0xeb))/0x2+-parseInt(_0x324656(0xe2))/0x3*(-parseInt(_0x324656(0xe5))/0x4)+-parseInt(_0x324656(0xe1))/0x5*(-parseInt(_0x324656(0xea))/0x6)+-parseInt(_0x324656(0xee))/0x7*(parseInt(_0x324656(0xe4))/0x8)+parseInt(_0x324656(0xec))/0x9*(-parseInt(_0x324656(0xde))/0xa)+parseInt(_0x324656(0xe7))/0xb;if(_0x1272a3===_0x15859f)break;else _0xef869d['push'](_0xef869d['shift']());}catch(_0x20cc6b){_0xef869d['push'](_0xef869d['shift']());}}}(a157_0x5efc,0xbcc60));import a157_0x360623 from'semver';import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';function a157_0x5efc(){const _0x1c5a3b=['object','20568orixhV','3065258xkWhZx','3678066KXZuhJ','application/json','1330ZRxYLn','stableVersion','now','timeout','latestVersion','cli','20EUlUww','1260850pUiAxO','json','520BUZqSC','1689JVqZjC','valid','27504gAXMTz','9028lNUuuq','minimumVersion','37510660jbziGu','trim'];a157_0x5efc=function(){return _0x1c5a3b;};return a157_0x5efc();}const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0xfcdefb){const _0x4df73a=a157_0x3bea;return typeof _0xfcdefb==='string'&&_0xfcdefb['trim']()?_0xfcdefb[_0x4df73a(0xe8)]():null;}function pickStrictSemver(_0x174663){const _0x30cad4=a157_0x3bea,_0x362829=pickString(_0x174663);return _0x362829&&a157_0x360623[_0x30cad4(0xe3)](_0x362829)===_0x362829?_0x362829:null;}export function normalizeCliVersionPolicy(_0xdf13c3){const _0x230a7a=a157_0x3bea;if(!_0xdf13c3||typeof _0xdf13c3!==_0x230a7a(0xe9))return null;const _0xed16f9=_0xdf13c3,_0x3544da=_0xed16f9[_0x230a7a(0xdd)]&&typeof _0xed16f9[_0x230a7a(0xdd)]===_0x230a7a(0xe9)?_0xed16f9[_0x230a7a(0xdd)]:_0xed16f9,_0x5df16a=pickStrictSemver(_0x3544da[_0x230a7a(0xef)]??_0x3544da[_0x230a7a(0xdc)]??_0x3544da['recommendedVersion']),_0x5c4b2b=pickStrictSemver(_0x3544da[_0x230a7a(0xe6)]??_0x3544da['minVersion']);if(!_0x5df16a&&!_0x5c4b2b)return null;if(_0x5df16a&&_0x5c4b2b&&a157_0x360623['gt'](_0x5c4b2b,_0x5df16a))return null;return{'stableVersion':_0x5df16a,'minimumVersion':_0x5c4b2b,'upgradeMessage':pickString(_0x3544da['upgradeMessage'])??undefined,'minimumVersionMessage':pickString(_0x3544da['minimumVersionMessage'])??undefined};}function a157_0x3bea(_0x3cf3cd,_0xd3c74d){_0x3cf3cd=_0x3cf3cd-0xdb;const _0x5efc18=a157_0x5efc();let _0x3bead0=_0x5efc18[_0x3cf3cd];return _0x3bead0;}export async function fetchCliVersionPolicy(){const _0x46e608=a157_0x3bea;try{const _0x30534c=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x46e608(0xed)},'signal':AbortSignal[_0x46e608(0xdb)](FETCH_TIMEOUT_MS)});if(!_0x30534c['ok'])return null;return normalizeCliVersionPolicy(await _0x30534c[_0x46e608(0xe0)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x1abfd5=Date['now']();if(hasCachedPolicy){const _0x425a68=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x1abfd5-cachedAt<_0x425a68)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x34404f=>{const _0x2cc861=a157_0x3bea;return cachedPolicy=_0x34404f,cachedAt=Date[_0x2cc861(0xf0)](),hasCachedPolicy=!![],_0x34404f;})['finally'](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
@@ -1 +1 @@
1
- const a158_0x5948b7=a158_0x53e7;(function(_0xb14418,_0x1ccaf4){const _0x40ad57=a158_0x53e7,_0x46b6bc=_0xb14418();while(!![]){try{const _0x352862=parseInt(_0x40ad57(0x1be))/0x1*(parseInt(_0x40ad57(0x1c8))/0x2)+parseInt(_0x40ad57(0x1de))/0x3+-parseInt(_0x40ad57(0x1ad))/0x4+-parseInt(_0x40ad57(0x1bb))/0x5+parseInt(_0x40ad57(0x1c7))/0x6+parseInt(_0x40ad57(0x1b6))/0x7+parseInt(_0x40ad57(0x1bf))/0x8*(-parseInt(_0x40ad57(0x1d5))/0x9);if(_0x352862===_0x1ccaf4)break;else _0x46b6bc['push'](_0x46b6bc['shift']());}catch(_0x57e203){_0x46b6bc['push'](_0x46b6bc['shift']());}}}(a158_0x5566,0x8b53d));function a158_0x5566(){const _0x4b90f1=['117NLgsGF','success','error','log','initWinstonLogger','parse','currentRawCommand','readFileSync','rawCommand','3157569MgoNdJ','logFileName','combine','errors','readLogs','printf','3514832zlzfhk','existsSync','info','logTask','writeFileSync','Failed:\x20','utf8','getWinstonInstance','red','6529796MgTJmP','details','toISOString','dirname','timestamp','2269980lMyuke','winstonLogger','setRawCommand','1128091CrvLdt','1259288nYLQOX','unknown','filter','warn','green','mkdirSync','File','setLogPath','5017740fgjaDA','2ybjUUH','duration','createLogger','Failed\x20to\x20read\x20logs:','now','logFilePath','Failed\x20to\x20clear\x20logs:','stringify','map','trim','clear','clearLogs','format'];a158_0x5566=function(){return _0x4b90f1;};return a158_0x5566();}import a158_0x22ba27 from'winston';import a158_0x3deed5 from'node:fs';import a158_0x11aa82 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a158_0x5948b7(0x1bc)];['logFilePath']='';[a158_0x5948b7(0x1db)]='';constructor(){}[a158_0x5948b7(0x1bd)](_0x390710){const _0x2f0dce=a158_0x5948b7;this[_0x2f0dce(0x1db)]=_0x390710;}[a158_0x5948b7(0x1c6)](_0x3d6045){const _0x5bb879=a158_0x5948b7;this[_0x5bb879(0x1cd)]=a158_0x11aa82['join'](_0x3d6045,PRODUCT_CONFIG[_0x5bb879(0x1df)]),this['winstonLogger']&&this[_0x5bb879(0x1bc)][_0x5bb879(0x1d2)](),this[_0x5bb879(0x1d9)]();}[a158_0x5948b7(0x1d9)](){const _0x589f34=a158_0x5948b7,_0x4fbf69=a158_0x11aa82[_0x589f34(0x1b9)](this[_0x589f34(0x1cd)]);!a158_0x3deed5['existsSync'](_0x4fbf69)&&a158_0x3deed5[_0x589f34(0x1c4)](_0x4fbf69,{'recursive':!![]});const _0x23887c=a158_0x22ba27[_0x589f34(0x1d4)][_0x589f34(0x1e0)](a158_0x22ba27[_0x589f34(0x1d4)][_0x589f34(0x1ba)](),a158_0x22ba27[_0x589f34(0x1d4)][_0x589f34(0x1aa)]({'stack':!![]}),a158_0x22ba27[_0x589f34(0x1d4)][_0x589f34(0x1ac)](_0x3c9e4a=>{const _0x33f686=_0x589f34,_0x29db59={'timestamp':_0x3c9e4a[_0x33f686(0x1ba)]||new Date()[_0x33f686(0x1b8)](),'level':_0x3c9e4a['level']||'info','command':_0x3c9e4a['command']||_0x33f686(0x1c0),'rawCommand':_0x3c9e4a[_0x33f686(0x1dd)]||this['currentRawCommand']||undefined,'message':_0x3c9e4a['message']||'','duration':_0x3c9e4a[_0x33f686(0x1c9)]||undefined,'details':_0x3c9e4a[_0x33f686(0x1b7)]||undefined};return JSON[_0x33f686(0x1cf)](_0x29db59);}));this[_0x589f34(0x1bc)]=a158_0x22ba27[_0x589f34(0x1ca)]({'level':_0x589f34(0x1af),'format':_0x23887c,'transports':[new a158_0x22ba27['transports'][(_0x589f34(0x1c5))]({'filename':this[_0x589f34(0x1cd)],'level':'info'})],'silent':![]}),a158_0x22ba27['addColors']({'success':_0x589f34(0x1c3),'error':_0x589f34(0x1b5),'warn':'yellow','info':'blue'});}['info'](_0x1c4d63,_0x28204a,_0x5b1766){const _0x42f375=a158_0x5948b7;if(!this['logFilePath']||!this[_0x42f375(0x1bc)])return;this[_0x42f375(0x1bc)][_0x42f375(0x1af)](_0x28204a,{'command':_0x1c4d63,'details':_0x5b1766});}[a158_0x5948b7(0x1d6)](_0x1f004c,_0x14287c,_0x2e2fe1,_0x3d7bc1){const _0x3702c7=a158_0x5948b7;if(!this[_0x3702c7(0x1cd)]||!this['winstonLogger'])return;this[_0x3702c7(0x1bc)][_0x3702c7(0x1d8)](_0x3702c7(0x1af),_0x14287c,{'level':_0x3702c7(0x1d6),'command':_0x1f004c,'duration':_0x2e2fe1,'details':_0x3d7bc1});}[a158_0x5948b7(0x1d7)](_0x4067bc,_0x40573f,_0xbce701){const _0x5f07f4=a158_0x5948b7;if(!this[_0x5f07f4(0x1cd)]||!this['winstonLogger'])return;this['winstonLogger'][_0x5f07f4(0x1d7)](_0x40573f,{'command':_0x4067bc,'details':_0xbce701});}[a158_0x5948b7(0x1c2)](_0x507811,_0x2a3b37,_0x209383){const _0x418525=a158_0x5948b7;if(!this[_0x418525(0x1cd)]||!this['winstonLogger'])return;this[_0x418525(0x1bc)][_0x418525(0x1c2)](_0x2a3b37,{'command':_0x507811,'details':_0x209383});}async[a158_0x5948b7(0x1b0)](_0x21d17c,_0x4a7c70,_0x27bcdb){const _0x4c3e2d=a158_0x5948b7,_0x33ef57=Date[_0x4c3e2d(0x1cc)]();this[_0x4c3e2d(0x1af)](_0x21d17c,'Starting:\x20'+_0x4a7c70);try{const _0x3c818a=await _0x27bcdb(),_0x5ccb4c=Date[_0x4c3e2d(0x1cc)]()-_0x33ef57;return this['success'](_0x21d17c,'Completed:\x20'+_0x4a7c70,_0x5ccb4c),_0x3c818a;}catch(_0x5f51de){const _0x588e84=Date[_0x4c3e2d(0x1cc)]()-_0x33ef57;this['error'](_0x21d17c,_0x4c3e2d(0x1b2)+_0x4a7c70,{'error':_0x5f51de instanceof Error?_0x5f51de['message']:String(_0x5f51de),'duration':_0x588e84});throw _0x5f51de;}}[a158_0x5948b7(0x1ab)](){const _0x5f04bd=a158_0x5948b7;try{if(!a158_0x3deed5['existsSync'](this[_0x5f04bd(0x1cd)]))return[];const _0x1bbaeb=a158_0x3deed5[_0x5f04bd(0x1dc)](this[_0x5f04bd(0x1cd)],_0x5f04bd(0x1b3));return _0x1bbaeb['split'](/\r?\n/)[_0x5f04bd(0x1c1)](_0x47b7fc=>_0x47b7fc[_0x5f04bd(0x1d1)]())[_0x5f04bd(0x1d0)](_0x234a60=>JSON[_0x5f04bd(0x1da)](_0x234a60));}catch(_0x364d58){return console['warn'](_0x5f04bd(0x1cb),_0x364d58),[];}}[a158_0x5948b7(0x1d3)](){const _0x268767=a158_0x5948b7;try{a158_0x3deed5[_0x268767(0x1ae)](this[_0x268767(0x1cd)])&&a158_0x3deed5[_0x268767(0x1b1)](this[_0x268767(0x1cd)],'',_0x268767(0x1b3));}catch(_0x25e035){console[_0x268767(0x1c2)](_0x268767(0x1ce),_0x25e035);}}[a158_0x5948b7(0x1b4)](){const _0x5e6372=a158_0x5948b7;return this[_0x5e6372(0x1bc)];}}function a158_0x53e7(_0x4854a3,_0x1c9794){_0x4854a3=_0x4854a3-0x1aa;const _0x5566ff=a158_0x5566();let _0x53e7a2=_0x5566ff[_0x4854a3];return _0x53e7a2;}export const logger=new Logger();
1
+ const a158_0x412041=a158_0xc3ac;(function(_0x5515bd,_0x570116){const _0x1b26ec=a158_0xc3ac,_0x49e45d=_0x5515bd();while(!![]){try{const _0x36be11=parseInt(_0x1b26ec(0xdd))/0x1+-parseInt(_0x1b26ec(0xdf))/0x2+-parseInt(_0x1b26ec(0xec))/0x3+-parseInt(_0x1b26ec(0xf6))/0x4*(parseInt(_0x1b26ec(0xc8))/0x5)+-parseInt(_0x1b26ec(0xe4))/0x6*(-parseInt(_0x1b26ec(0xc7))/0x7)+-parseInt(_0x1b26ec(0xf5))/0x8*(-parseInt(_0x1b26ec(0xf8))/0x9)+parseInt(_0x1b26ec(0xf3))/0xa*(-parseInt(_0x1b26ec(0xeb))/0xb);if(_0x36be11===_0x570116)break;else _0x49e45d['push'](_0x49e45d['shift']());}catch(_0x4e0fee){_0x49e45d['push'](_0x49e45d['shift']());}}}(a158_0x3ad1,0xb35b9));import a158_0x3d74af from'winston';import a158_0x2dcadc from'node:fs';function a158_0x3ad1(){const _0x5d0e25=['addColors','11RgwmvW','492501wFUHZb','error','initWinstonLogger','map','existsSync','printf','errors','1389940ICovel','utf8','2317736CygQyl','4PvtvHx','timestamp','27vculYP','toISOString','winstonLogger','format','parse','14lReqsa','4410145TcDxcK','readLogs','getWinstonInstance','rawCommand','info','blue','command','clear','split','now','Starting:\x20','setRawCommand','success','currentRawCommand','transports','Completed:\x20','filter','message','warn','log','logFilePath','1326986CrHjxJ','details','2566968fJdIhv','setLogPath','trim','combine','readFileSync','3021558FhtpNQ','clearLogs','Failed\x20to\x20clear\x20logs:','createLogger','duration','dirname'];a158_0x3ad1=function(){return _0x5d0e25;};return a158_0x3ad1();}import a158_0x2a0982 from'node:path';function a158_0xc3ac(_0x2d14da,_0x244365){_0x2d14da=_0x2d14da-0xc5;const _0x3ad186=a158_0x3ad1();let _0xc3acc=_0x3ad186[_0x2d14da];return _0xc3acc;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a158_0x412041(0xfa)];[a158_0x412041(0xdc)]='';[a158_0x412041(0xd5)]='';constructor(){}[a158_0x412041(0xd3)](_0x92f0d){this['currentRawCommand']=_0x92f0d;}[a158_0x412041(0xe0)](_0x201485){const _0x456725=a158_0x412041;this[_0x456725(0xdc)]=a158_0x2a0982['join'](_0x201485,PRODUCT_CONFIG['logFileName']),this[_0x456725(0xfa)]&&this['winstonLogger'][_0x456725(0xcf)](),this[_0x456725(0xee)]();}['initWinstonLogger'](){const _0x4fd11e=a158_0x412041,_0x47361b=a158_0x2a0982[_0x4fd11e(0xe9)](this['logFilePath']);!a158_0x2dcadc[_0x4fd11e(0xf0)](_0x47361b)&&a158_0x2dcadc['mkdirSync'](_0x47361b,{'recursive':!![]});const _0x1be84c=a158_0x3d74af['format'][_0x4fd11e(0xe2)](a158_0x3d74af[_0x4fd11e(0xc5)][_0x4fd11e(0xf7)](),a158_0x3d74af[_0x4fd11e(0xc5)][_0x4fd11e(0xf2)]({'stack':!![]}),a158_0x3d74af[_0x4fd11e(0xc5)][_0x4fd11e(0xf1)](_0x212c5f=>{const _0xfb2842=_0x4fd11e,_0x52799f={'timestamp':_0x212c5f['timestamp']||new Date()[_0xfb2842(0xf9)](),'level':_0x212c5f['level']||_0xfb2842(0xcc),'command':_0x212c5f[_0xfb2842(0xce)]||'unknown','rawCommand':_0x212c5f[_0xfb2842(0xcb)]||this[_0xfb2842(0xd5)]||undefined,'message':_0x212c5f[_0xfb2842(0xd9)]||'','duration':_0x212c5f[_0xfb2842(0xe8)]||undefined,'details':_0x212c5f[_0xfb2842(0xde)]||undefined};return JSON['stringify'](_0x52799f);}));this[_0x4fd11e(0xfa)]=a158_0x3d74af[_0x4fd11e(0xe7)]({'level':_0x4fd11e(0xcc),'format':_0x1be84c,'transports':[new a158_0x3d74af[(_0x4fd11e(0xd6))]['File']({'filename':this[_0x4fd11e(0xdc)],'level':_0x4fd11e(0xcc)})],'silent':![]}),a158_0x3d74af[_0x4fd11e(0xea)]({'success':'green','error':'red','warn':'yellow','info':_0x4fd11e(0xcd)});}[a158_0x412041(0xcc)](_0x489fbe,_0x3bc65f,_0x56e2f4){const _0x276af2=a158_0x412041;if(!this[_0x276af2(0xdc)]||!this[_0x276af2(0xfa)])return;this[_0x276af2(0xfa)][_0x276af2(0xcc)](_0x3bc65f,{'command':_0x489fbe,'details':_0x56e2f4});}[a158_0x412041(0xd4)](_0x35826a,_0x5395c2,_0x1165f3,_0x4993b7){const _0x1e3a19=a158_0x412041;if(!this[_0x1e3a19(0xdc)]||!this['winstonLogger'])return;this[_0x1e3a19(0xfa)][_0x1e3a19(0xdb)](_0x1e3a19(0xcc),_0x5395c2,{'level':'success','command':_0x35826a,'duration':_0x1165f3,'details':_0x4993b7});}[a158_0x412041(0xed)](_0x2de5cf,_0x325c58,_0x2d9754){const _0x1739c2=a158_0x412041;if(!this[_0x1739c2(0xdc)]||!this[_0x1739c2(0xfa)])return;this[_0x1739c2(0xfa)]['error'](_0x325c58,{'command':_0x2de5cf,'details':_0x2d9754});}['warn'](_0x1e8b72,_0x560d3f,_0x4e5f04){const _0x3ac48b=a158_0x412041;if(!this['logFilePath']||!this[_0x3ac48b(0xfa)])return;this['winstonLogger'][_0x3ac48b(0xda)](_0x560d3f,{'command':_0x1e8b72,'details':_0x4e5f04});}async['logTask'](_0x14a5b0,_0x1d3c4d,_0x29cab6){const _0x444db7=a158_0x412041,_0xb3bbe2=Date[_0x444db7(0xd1)]();this[_0x444db7(0xcc)](_0x14a5b0,_0x444db7(0xd2)+_0x1d3c4d);try{const _0x5d2753=await _0x29cab6(),_0x71ef03=Date['now']()-_0xb3bbe2;return this['success'](_0x14a5b0,_0x444db7(0xd7)+_0x1d3c4d,_0x71ef03),_0x5d2753;}catch(_0x4d7665){const _0x32a6b1=Date[_0x444db7(0xd1)]()-_0xb3bbe2;this['error'](_0x14a5b0,'Failed:\x20'+_0x1d3c4d,{'error':_0x4d7665 instanceof Error?_0x4d7665[_0x444db7(0xd9)]:String(_0x4d7665),'duration':_0x32a6b1});throw _0x4d7665;}}[a158_0x412041(0xc9)](){const _0x30d28f=a158_0x412041;try{if(!a158_0x2dcadc[_0x30d28f(0xf0)](this[_0x30d28f(0xdc)]))return[];const _0x3f2e80=a158_0x2dcadc[_0x30d28f(0xe3)](this[_0x30d28f(0xdc)],_0x30d28f(0xf4));return _0x3f2e80[_0x30d28f(0xd0)](/\r?\n/)[_0x30d28f(0xd8)](_0x2b4671=>_0x2b4671[_0x30d28f(0xe1)]())[_0x30d28f(0xef)](_0x10073e=>JSON[_0x30d28f(0xc6)](_0x10073e));}catch(_0x184648){return console[_0x30d28f(0xda)]('Failed\x20to\x20read\x20logs:',_0x184648),[];}}[a158_0x412041(0xe5)](){const _0x195fc6=a158_0x412041;try{a158_0x2dcadc[_0x195fc6(0xf0)](this[_0x195fc6(0xdc)])&&a158_0x2dcadc['writeFileSync'](this[_0x195fc6(0xdc)],'',_0x195fc6(0xf4));}catch(_0x321a12){console[_0x195fc6(0xda)](_0x195fc6(0xe6),_0x321a12);}}[a158_0x412041(0xca)](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- const a159_0x1de03d=a159_0x4e63;(function(_0x4c02ba,_0x1aa2f0){const _0x22b27e=a159_0x4e63,_0x316596=_0x4c02ba();while(!![]){try{const _0x4393f0=-parseInt(_0x22b27e(0x86))/0x1+parseInt(_0x22b27e(0x98))/0x2+-parseInt(_0x22b27e(0x94))/0x3+-parseInt(_0x22b27e(0x91))/0x4*(-parseInt(_0x22b27e(0x8e))/0x5)+-parseInt(_0x22b27e(0x96))/0x6*(-parseInt(_0x22b27e(0x95))/0x7)+-parseInt(_0x22b27e(0x8d))/0x8*(-parseInt(_0x22b27e(0x8f))/0x9)+-parseInt(_0x22b27e(0x8c))/0xa*(parseInt(_0x22b27e(0x87))/0xb);if(_0x4393f0===_0x1aa2f0)break;else _0x316596['push'](_0x316596['shift']());}catch(_0x432c4d){_0x316596['push'](_0x316596['shift']());}}}(a159_0x378e,0x5e513));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a159_0x1de03d(0x8b)]),MIN_SAFE_INTEGER=BigInt(Number[a159_0x1de03d(0x97)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a159_0x4e63(_0x131f31,_0x161028){_0x131f31=_0x131f31-0x84;const _0x378e11=a159_0x378e();let _0x4e63e0=_0x378e11[_0x131f31];return _0x4e63e0;}function isUnsafeIntegerLiteral(_0x1beca2){const _0x22ce25=a159_0x1de03d;if(_0x1beca2[_0x22ce25(0x92)]('.')||_0x1beca2[_0x22ce25(0x92)]('e')||_0x1beca2['includes']('E'))return![];const _0x5961d5=BigInt(_0x1beca2);return _0x5961d5>MAX_SAFE_INTEGER||_0x5961d5<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x47ea05){const _0x1e5c6c=a159_0x1de03d;let _0x4061f2='',_0x558287=![],_0x16c206=![];for(let _0x509f6c=0x0;_0x509f6c<_0x47ea05[_0x1e5c6c(0x8a)];){const _0x3120bb=_0x47ea05[_0x509f6c];if(_0x558287){_0x4061f2+=_0x3120bb,_0x509f6c+=0x1;if(_0x16c206)_0x16c206=![];else{if(_0x3120bb==='\x5c')_0x16c206=!![];else _0x3120bb==='\x22'&&(_0x558287=![]);}continue;}if(_0x3120bb==='\x22'){_0x558287=!![],_0x4061f2+=_0x3120bb,_0x509f6c+=0x1;continue;}if(_0x3120bb==='-'||_0x3120bb>='0'&&_0x3120bb<='9'){const _0x412ee4=JSON_NUMBER_PATTERN[_0x1e5c6c(0x89)](_0x47ea05[_0x1e5c6c(0x84)](_0x509f6c))?.[0x0];if(_0x412ee4){_0x4061f2+=isUnsafeIntegerLiteral(_0x412ee4)?'\x22'+_0x412ee4+'\x22':_0x412ee4,_0x509f6c+=_0x412ee4[_0x1e5c6c(0x8a)];continue;}}_0x4061f2+=_0x3120bb,_0x509f6c+=0x1;}return _0x4061f2;}function a159_0x378e(){const _0x595305=['5WHgPsa','7443sTfpmO','defineProperty','2340092DDUqEr','includes','undefined','2036826qlyDkE','7YuOkGy','3046980ZlgmYM','MIN_SAFE_INTEGER','1384560uKiets','parse','json','slice','text','648047RvCnbd','22armDnS','getOwnPropertyDescriptor','exec','length','MAX_SAFE_INTEGER','4126090mMCtQN','7288sFekOV'];a159_0x378e=function(){return _0x595305;};return a159_0x378e();}export function parseLosslessJson(_0x596645){const _0x577375=a159_0x1de03d;return JSON[_0x577375(0x99)](quoteUnsafeIntegerLiterals(_0x596645));}export function installLosslessJsonResponseParser(){const _0x3af9e7=a159_0x1de03d;if(typeof Response===_0x3af9e7(0x93))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object[_0x3af9e7(0x88)](responseJsonPrototype,_0x3af9e7(0x9a)),Object[_0x3af9e7(0x90)](responseJsonPrototype,_0x3af9e7(0x9a),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x279516(){const _0x37298d=_0x3af9e7;return parseLosslessJson(await this[_0x37298d(0x85)]());}}),restoreResponseJsonParser=()=>{const _0x18fddc=_0x3af9e7;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x18fddc(0x90)](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0x18fddc(0x9a)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ const a159_0x2d4c75=a159_0x154d;(function(_0x237421,_0x40dc9a){const _0x57fa18=a159_0x154d,_0x38ec6e=_0x237421();while(!![]){try{const _0x299e4d=-parseInt(_0x57fa18(0xb1))/0x1*(-parseInt(_0x57fa18(0xc1))/0x2)+parseInt(_0x57fa18(0xbe))/0x3+parseInt(_0x57fa18(0xb9))/0x4+parseInt(_0x57fa18(0xb6))/0x5+parseInt(_0x57fa18(0xb0))/0x6*(parseInt(_0x57fa18(0xba))/0x7)+-parseInt(_0x57fa18(0xbf))/0x8*(-parseInt(_0x57fa18(0xc0))/0x9)+-parseInt(_0x57fa18(0xb5))/0xa;if(_0x299e4d===_0x40dc9a)break;else _0x38ec6e['push'](_0x38ec6e['shift']());}catch(_0xc4bdb6){_0x38ec6e['push'](_0x38ec6e['shift']());}}}(a159_0x1137,0x7cb81));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a159_0x2d4c75(0xb8)]),MIN_SAFE_INTEGER=BigInt(Number[a159_0x2d4c75(0xbc)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x4fb3ad){const _0x494191=a159_0x2d4c75;if(_0x4fb3ad[_0x494191(0xb2)]('.')||_0x4fb3ad[_0x494191(0xb2)]('e')||_0x4fb3ad[_0x494191(0xb2)]('E'))return![];const _0x2f9413=BigInt(_0x4fb3ad);return _0x2f9413>MAX_SAFE_INTEGER||_0x2f9413<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x2ddf91){const _0x23cc2d=a159_0x2d4c75;let _0x2e8a30='',_0x144cdd=![],_0x8c2452=![];for(let _0x4bb212=0x0;_0x4bb212<_0x2ddf91[_0x23cc2d(0xb3)];){const _0xfbf546=_0x2ddf91[_0x4bb212];if(_0x144cdd){_0x2e8a30+=_0xfbf546,_0x4bb212+=0x1;if(_0x8c2452)_0x8c2452=![];else{if(_0xfbf546==='\x5c')_0x8c2452=!![];else _0xfbf546==='\x22'&&(_0x144cdd=![]);}continue;}if(_0xfbf546==='\x22'){_0x144cdd=!![],_0x2e8a30+=_0xfbf546,_0x4bb212+=0x1;continue;}if(_0xfbf546==='-'||_0xfbf546>='0'&&_0xfbf546<='9'){const _0x4a6ea9=JSON_NUMBER_PATTERN[_0x23cc2d(0xb4)](_0x2ddf91['slice'](_0x4bb212))?.[0x0];if(_0x4a6ea9){_0x2e8a30+=isUnsafeIntegerLiteral(_0x4a6ea9)?'\x22'+_0x4a6ea9+'\x22':_0x4a6ea9,_0x4bb212+=_0x4a6ea9['length'];continue;}}_0x2e8a30+=_0xfbf546,_0x4bb212+=0x1;}return _0x2e8a30;}function a159_0x1137(){const _0x473040=['parse','MIN_SAFE_INTEGER','undefined','1362603OojAGQ','61552KsRzbF','36wvBAXS','2ZaAUno','defineProperty','12ZybpWC','574061CHcMru','includes','length','exec','20323130ozRxGP','1878110CRoOQf','json','MAX_SAFE_INTEGER','662200rvvRnr','3300332vqIdIN'];a159_0x1137=function(){return _0x473040;};return a159_0x1137();}export function parseLosslessJson(_0x7f92bc){const _0x3bb0cf=a159_0x2d4c75;return JSON[_0x3bb0cf(0xbb)](quoteUnsafeIntegerLiterals(_0x7f92bc));}export function installLosslessJsonResponseParser(){const _0x3de259=a159_0x2d4c75;if(typeof Response===_0x3de259(0xbd))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0x3de259(0xb7)),Object[_0x3de259(0xaf)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x3a32af(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x37acd0=_0x3de259;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x37acd0(0xaf)](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0x37acd0(0xb7)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}function a159_0x154d(_0x1774f0,_0x1d5571){_0x1774f0=_0x1774f0-0xaf;const _0x1137d3=a159_0x1137();let _0x154dcd=_0x1137d3[_0x1774f0];return _0x154dcd;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
@@ -1 +1 @@
1
- (function(_0x513d30,_0x4ee8f6){const _0x168eb0=a160_0x4a33,_0x964447=_0x513d30();while(!![]){try{const _0x3f89a0=-parseInt(_0x168eb0(0xf4))/0x1+parseInt(_0x168eb0(0xef))/0x2+-parseInt(_0x168eb0(0xe2))/0x3+-parseInt(_0x168eb0(0xe1))/0x4+parseInt(_0x168eb0(0xe0))/0x5+parseInt(_0x168eb0(0xe8))/0x6*(-parseInt(_0x168eb0(0xf3))/0x7)+parseInt(_0x168eb0(0xeb))/0x8*(parseInt(_0x168eb0(0xed))/0x9);if(_0x3f89a0===_0x4ee8f6)break;else _0x964447['push'](_0x964447['shift']());}catch(_0x4905ed){_0x964447['push'](_0x964447['shift']());}}}(a160_0xb11b,0xc8e02));import{CliErrors}from'../errors.js';function a160_0x4a33(_0xbc9c41,_0x2df38d){_0xbc9c41=_0xbc9c41-0xdf;const _0xb11bcc=a160_0xb11b();let _0x4a3360=_0xb11bcc[_0xbc9c41];return _0x4a3360;}function a160_0xb11b(){const _0x2a4802=['object','53319CMTGTv','1501661EZFINx','string','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','isArray','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','test','2491195wNbtEN','3497924MKZXfW','1847451DhlnVk','isSafeInteger','validation','data\x20update\x20can\x20update\x20at\x20most\x20','\x20records\x20per\x20call;\x20received\x20','id[','966gIJeje','data\x20update\x20--params.','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','33477544KbyVyk','length','9FBssFY','map','716300mfFKty','number','items'];a160_0xb11b=function(){return _0x2a4802;};return a160_0xb11b();}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x12e480){const _0xd5cdf2=a160_0x4a33;if(!_0x12e480)return undefined;try{return parseLosslessJson(_0x12e480);}catch{throw CliErrors[_0xd5cdf2(0xe4)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x12e480);}}export function parseJsonParamsValue(_0x56c678){const _0x551421=a160_0x4a33;if(!_0x56c678)return undefined;try{return parseLosslessJson(_0x56c678);}catch{throw CliErrors[_0x551421(0xe4)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x56c678);}}export function parseBatchCreateItemsFromParams(_0x1ac55d){const _0x3b1ccf=a160_0x4a33;if(Array[_0x3b1ccf(0xf7)](_0x1ac55d))return _0x1ac55d;if(_0x1ac55d!==null&&_0x1ac55d!==undefined&&typeof _0x1ac55d==='object'&&Array['isArray'](_0x1ac55d[_0x3b1ccf(0xf1)]))return _0x1ac55d[_0x3b1ccf(0xf1)];throw CliErrors['validation'](_0x3b1ccf(0xf8),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x5b7844,_0x1d1bce){const _0x35d105=a160_0x4a33;if(typeof _0x5b7844===_0x35d105(0xf0)&&Number[_0x35d105(0xe3)](_0x5b7844)&&_0x5b7844>0x0)return _0x5b7844;if(typeof _0x5b7844===_0x35d105(0xf5)){if(/^[1-9]\d*$/[_0x35d105(0xdf)](_0x5b7844))return _0x5b7844;}throw CliErrors[_0x35d105(0xe4)](_0x35d105(0xe9)+_0x1d1bce+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x5c66ab){const _0x462072=a160_0x4a33;if(_0x5c66ab===null||_0x5c66ab===undefined||typeof _0x5c66ab!==_0x462072(0xf2)||Array[_0x462072(0xf7)](_0x5c66ab))throw CliErrors[_0x462072(0xe4)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x462072(0xf6));const _0x53da88=_0x5c66ab['id'];if(_0x53da88===undefined||_0x53da88===null)throw CliErrors['validation']('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x462072(0xf6));const _0x53b6c2=Array[_0x462072(0xf7)](_0x53da88)?_0x53da88:[_0x53da88];if(_0x53b6c2[_0x462072(0xec)]===0x0)throw CliErrors[_0x462072(0xe4)](_0x462072(0xea));if(_0x53b6c2[_0x462072(0xec)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x462072(0xe4)](_0x462072(0xe5)+MAX_DATA_UPDATE_IDS+_0x462072(0xe6)+_0x53b6c2[_0x462072(0xec)]+'.');return _0x53b6c2[_0x462072(0xee)]((_0x1a0b5c,_0x23e9bc)=>parseDataUpdateId(_0x1a0b5c,Array[_0x462072(0xf7)](_0x53da88)?_0x462072(0xe7)+_0x23e9bc+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x532f78,_0x38d366){const _0x5ead31=a160_0x4a33;if(Array[_0x5ead31(0xf7)](_0x532f78['id'])&&_0x38d366['length']>0x1)return{..._0x532f78,'id':_0x38d366['join'](',')};return _0x532f78;}
1
+ (function(_0x5aa4bc,_0x137682){const _0x3c0903=a160_0x2eba,_0x2849b9=_0x5aa4bc();while(!![]){try{const _0x52128c=-parseInt(_0x3c0903(0x195))/0x1*(-parseInt(_0x3c0903(0x199))/0x2)+-parseInt(_0x3c0903(0x183))/0x3+-parseInt(_0x3c0903(0x17c))/0x4*(parseInt(_0x3c0903(0x18e))/0x5)+parseInt(_0x3c0903(0x196))/0x6+parseInt(_0x3c0903(0x180))/0x7*(parseInt(_0x3c0903(0x192))/0x8)+parseInt(_0x3c0903(0x18b))/0x9+-parseInt(_0x3c0903(0x18f))/0xa*(parseInt(_0x3c0903(0x18c))/0xb);if(_0x52128c===_0x137682)break;else _0x2849b9['push'](_0x2849b9['shift']());}catch(_0x1ee5ca){_0x2849b9['push'](_0x2849b9['shift']());}}}(a160_0x12f4,0x83371));function a160_0x12f4(){const _0x217e07=['number','917MkBfxi','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','length','3006852WLrjkY','isArray','validation','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','test','string','4946337yBJmeX','352lvLXxz','object','82605MtZVNr','193190CgFkwZ','id[','data\x20update\x20can\x20update\x20at\x20most\x20','7720xSLxMQ','isSafeInteger','map','231148ZwjCOT','4037976ONKmCI','join','data\x20update\x20--params.','8NRvFyQ','28HuntxY','items','Invalid\x20JSON\x20for\x20--params:\x20'];a160_0x12f4=function(){return _0x217e07;};return a160_0x12f4();}import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;function a160_0x2eba(_0x3b8b50,_0xd96deb){_0x3b8b50=_0x3b8b50-0x17c;const _0x12f4d1=a160_0x12f4();let _0x2eba51=_0x12f4d1[_0x3b8b50];return _0x2eba51;}export function parseJsonParams(_0xf89080){const _0x4a3c2c=a160_0x2eba;if(!_0xf89080)return undefined;try{return parseLosslessJson(_0xf89080);}catch{throw CliErrors[_0x4a3c2c(0x185)](_0x4a3c2c(0x17e)+_0xf89080);}}export function parseJsonParamsValue(_0x4dbcf9){const _0x4cf401=a160_0x2eba;if(!_0x4dbcf9)return undefined;try{return parseLosslessJson(_0x4dbcf9);}catch{throw CliErrors[_0x4cf401(0x185)](_0x4cf401(0x17e)+_0x4dbcf9);}}export function parseBatchCreateItemsFromParams(_0x17ded9){const _0x1f016d=a160_0x2eba;if(Array[_0x1f016d(0x184)](_0x17ded9))return _0x17ded9;if(_0x17ded9!==null&&_0x17ded9!==undefined&&typeof _0x17ded9===_0x1f016d(0x18d)&&Array[_0x1f016d(0x184)](_0x17ded9['items']))return _0x17ded9[_0x1f016d(0x17d)];throw CliErrors[_0x1f016d(0x185)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x1f016d(0x181));}function parseDataUpdateId(_0x58c108,_0x51ad60){const _0x345428=a160_0x2eba;if(typeof _0x58c108===_0x345428(0x17f)&&Number[_0x345428(0x193)](_0x58c108)&&_0x58c108>0x0)return _0x58c108;if(typeof _0x58c108===_0x345428(0x18a)){if(/^[1-9]\d*$/[_0x345428(0x189)](_0x58c108))return _0x58c108;}throw CliErrors[_0x345428(0x185)](_0x345428(0x198)+_0x51ad60+_0x345428(0x188));}export function parseUpdateIdsFromParams(_0x7d9442){const _0x2c2ea4=a160_0x2eba;if(_0x7d9442===null||_0x7d9442===undefined||typeof _0x7d9442!==_0x2c2ea4(0x18d)||Array['isArray'](_0x7d9442))throw CliErrors[_0x2c2ea4(0x185)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x2c2ea4(0x186));const _0x1a3352=_0x7d9442['id'];if(_0x1a3352===undefined||_0x1a3352===null)throw CliErrors[_0x2c2ea4(0x185)](_0x2c2ea4(0x187),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x297499=Array[_0x2c2ea4(0x184)](_0x1a3352)?_0x1a3352:[_0x1a3352];if(_0x297499[_0x2c2ea4(0x182)]===0x0)throw CliErrors[_0x2c2ea4(0x185)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x297499[_0x2c2ea4(0x182)]>MAX_DATA_UPDATE_IDS)throw CliErrors['validation'](_0x2c2ea4(0x191)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x297499[_0x2c2ea4(0x182)]+'.');return _0x297499[_0x2c2ea4(0x194)]((_0x23d722,_0x4764eb)=>parseDataUpdateId(_0x23d722,Array['isArray'](_0x1a3352)?_0x2c2ea4(0x190)+_0x4764eb+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x4c80ec,_0x56fac0){const _0x139198=a160_0x2eba;if(Array[_0x139198(0x184)](_0x4c80ec['id'])&&_0x56fac0[_0x139198(0x182)]>0x1)return{..._0x4c80ec,'id':_0x56fac0[_0x139198(0x197)](',')};return _0x4c80ec;}
@@ -1 +1 @@
1
- (function(_0x1c8c31,_0x2979e2){const _0x4c7387=a162_0x2535,_0x3c5a99=_0x1c8c31();while(!![]){try{const _0xd22505=-parseInt(_0x4c7387(0x10a))/0x1+-parseInt(_0x4c7387(0x119))/0x2*(-parseInt(_0x4c7387(0x110))/0x3)+-parseInt(_0x4c7387(0x10e))/0x4+-parseInt(_0x4c7387(0x12a))/0x5*(-parseInt(_0x4c7387(0x115))/0x6)+parseInt(_0x4c7387(0x11e))/0x7+parseInt(_0x4c7387(0x10f))/0x8*(-parseInt(_0x4c7387(0x124))/0x9)+parseInt(_0x4c7387(0x10c))/0xa;if(_0xd22505===_0x2979e2)break;else _0x3c5a99['push'](_0x3c5a99['shift']());}catch(_0x40cc2b){_0x3c5a99['push'](_0x3c5a99['shift']());}}}(a162_0x2881,0xb5219));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 _0x3a4227=a162_0x2535,_0x37da77=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x3a4227(0x113)]()[_0x3a4227(0x114)]();return _0x37da77==='1'||_0x37da77===_0x3a4227(0x118)||_0x37da77===_0x3a4227(0x10b);}function cacheRoot(){const _0xabe2e0=a162_0x2535;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xabe2e0(0x116));}export function getUpdateNoticeCachePath(){const _0x2b543a=a162_0x2535;return join(cacheRoot(),_0x2b543a(0x11c),_0x2b543a(0x11b));}async function readUpdateNoticeCache(){const _0x584b60=a162_0x2535;try{const _0x4b8945=await readFile(getUpdateNoticeCachePath(),_0x584b60(0x11d)),_0x3e3b4a=JSON['parse'](_0x4b8945);if(!_0x3e3b4a||typeof _0x3e3b4a!==_0x584b60(0x121))return{};return _0x3e3b4a;}catch{return{};}}async function writeUpdateNoticeCache(_0x54d300){const _0x13956d=a162_0x2535;try{const _0x3ad147=getUpdateNoticeCachePath();await mkdir(dirname(_0x3ad147),{'recursive':!![]}),await writeFile(_0x3ad147,JSON[_0x13956d(0x125)](_0x54d300,null,0x2)+'\x0a',_0x13956d(0x11d));}catch{}}function a162_0x2535(_0x3f9c0f,_0x3baa2b){_0x3f9c0f=_0x3f9c0f-0x10a;const _0x288141=a162_0x2881();let _0x253584=_0x288141[_0x3f9c0f];return _0x253584;}function a162_0x2881(){const _0x5cf6fc=['true','190uHSXdO','join','update-check.json','lovrabet-cli','utf8','2635164cgOutZ','\x20is\x20recommended,\x20current\x20',',\x20run:\x20','object','lastNotifiedVersion','lastNotifiedAt','4734459AwMgHM','stringify','/v/','stableVersion','upgradeMessage','now','2656405dQNmgB','1389813YanLCv','yes','21554200aehXoY','https://www.npmjs.com/package/','3703904xiiymp','8YpPPXo','16440tevIvx','needsUpgrade','number','trim','toLowerCase','6BqNcWD','.cache','currentVersion'];a162_0x2881=function(){return _0x5cf6fc;};return a162_0x2881();}function isRecentlyNotified(_0x70c980,_0x3cf8fb,_0x52c00a){const _0x3e1ff8=a162_0x2535;return _0x70c980[_0x3e1ff8(0x122)]===_0x3cf8fb&&typeof _0x70c980['lastNotifiedAt']===_0x3e1ff8(0x112)&&_0x52c00a-_0x70c980[_0x3e1ff8(0x123)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5244fc){const _0x427184=a162_0x2535;return _0x427184(0x10d)+LOVRABET_NPM_PACKAGE_NAME+_0x427184(0x126)+_0x5244fc;}export async function resolveLatestUpdateNotice(_0x5e46c7){const _0x395630=a162_0x2535;if(isUpdateNoticeDisabled())return null;try{const _0x4ec369=Date[_0x395630(0x129)](),_0x44c7d9=_0x5e46c7??await checkCliVersion(),_0x904c4c=_0x44c7d9[_0x395630(0x117)],_0x475fb9=_0x44c7d9[_0x395630(0x127)],_0x1e051d=await readUpdateNoticeCache();if(!_0x475fb9||!_0x44c7d9[_0x395630(0x111)]||_0x44c7d9['belowMinimum'])return null;if(isRecentlyNotified(_0x1e051d,_0x475fb9,_0x4ec369))return null;const _0x1ce730=getCliUpgradeCommand(_0x44c7d9);return await writeUpdateNoticeCache({..._0x1e051d,'checkedAt':_0x4ec369,'latest':_0x475fb9,'failed':![],'lastNotifiedVersion':_0x475fb9,'lastNotifiedAt':_0x4ec369}),{'command':_0x1ce730,'current':_0x904c4c,'latest':_0x475fb9,'url':buildNpmVersionUrl(_0x475fb9),'message':[_0x44c7d9[_0x395630(0x128)],CLI_BIN_NAME+'\x20'+_0x475fb9+_0x395630(0x11f)+_0x904c4c+_0x395630(0x120)+_0x1ce730]['filter'](Boolean)[_0x395630(0x11a)]('\x20')};}catch{return null;}}
1
+ function a161_0x4958(){const _0x1c88d9=['14189Yfgoad','true',',\x20run:\x20','1494XJQDYT','object','6628219KQFsuK','join','245yepKad','stableVersion','upgradeMessage','33008FCIvzv','1203234BQzleX','1cpYifh','trim','utf8','\x20is\x20recommended,\x20current\x20','yes','lastNotifiedAt','1277019LJdZDL','filter','https://www.npmjs.com/package/','toLowerCase','currentVersion','12oAUNHs','167848yLyjaZ','130CoEorf','now','update-check.json','stringify','189MrDLFA','needsUpgrade','162613XvuXKL','number','lovrabet-cli','/v/','parse','belowMinimum'];a161_0x4958=function(){return _0x1c88d9;};return a161_0x4958();}function a161_0x4d4b(_0x10cdc9,_0x1fc4dc){_0x10cdc9=_0x10cdc9-0x183;const _0x495862=a161_0x4958();let _0x4d4b91=_0x495862[_0x10cdc9];return _0x4d4b91;}(function(_0x577124,_0x4e7097){const _0x4915bc=a161_0x4d4b,_0x9c9eef=_0x577124();while(!![]){try{const _0x39859e=-parseInt(_0x4915bc(0x184))/0x1*(-parseInt(_0x4915bc(0x183))/0x2)+-parseInt(_0x4915bc(0x18a))/0x3+parseInt(_0x4915bc(0x1a7))/0x4*(parseInt(_0x4915bc(0x1a4))/0x5)+-parseInt(_0x4915bc(0x1a0))/0x6*(-parseInt(_0x4915bc(0x19d))/0x7)+parseInt(_0x4915bc(0x190))/0x8*(-parseInt(_0x4915bc(0x195))/0x9)+parseInt(_0x4915bc(0x191))/0xa*(parseInt(_0x4915bc(0x197))/0xb)+-parseInt(_0x4915bc(0x18f))/0xc*(parseInt(_0x4915bc(0x1a2))/0xd);if(_0x39859e===_0x4e7097)break;else _0x9c9eef['push'](_0x9c9eef['shift']());}catch(_0x2ca401){_0x9c9eef['push'](_0x9c9eef['shift']());}}}(a161_0x4958,0x4fc4a));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 _0x53c0c7=a161_0x4d4b,_0x2418a6=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x53c0c7(0x185)]()[_0x53c0c7(0x18d)]();return _0x2418a6==='1'||_0x2418a6===_0x53c0c7(0x19e)||_0x2418a6===_0x53c0c7(0x188);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x58375c=a161_0x4d4b;return join(cacheRoot(),_0x58375c(0x199),_0x58375c(0x193));}async function readUpdateNoticeCache(){const _0x1acedb=a161_0x4d4b;try{const _0x5adbdc=await readFile(getUpdateNoticeCachePath(),_0x1acedb(0x186)),_0x4e749f=JSON[_0x1acedb(0x19b)](_0x5adbdc);if(!_0x4e749f||typeof _0x4e749f!==_0x1acedb(0x1a1))return{};return _0x4e749f;}catch{return{};}}async function writeUpdateNoticeCache(_0x2b3a3f){const _0x22b968=a161_0x4d4b;try{const _0x1a7b47=getUpdateNoticeCachePath();await mkdir(dirname(_0x1a7b47),{'recursive':!![]}),await writeFile(_0x1a7b47,JSON[_0x22b968(0x194)](_0x2b3a3f,null,0x2)+'\x0a',_0x22b968(0x186));}catch{}}function isRecentlyNotified(_0x11515f,_0x548248,_0x30b4e1){const _0x38ab37=a161_0x4d4b;return _0x11515f['lastNotifiedVersion']===_0x548248&&typeof _0x11515f[_0x38ab37(0x189)]===_0x38ab37(0x198)&&_0x30b4e1-_0x11515f['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x462b54){const _0x2c7831=a161_0x4d4b;return _0x2c7831(0x18c)+LOVRABET_NPM_PACKAGE_NAME+_0x2c7831(0x19a)+_0x462b54;}export async function resolveLatestUpdateNotice(_0x569458){const _0x2faabe=a161_0x4d4b;if(isUpdateNoticeDisabled())return null;try{const _0x2fcfec=Date[_0x2faabe(0x192)](),_0x14e1ec=_0x569458??await checkCliVersion(),_0x1e27a7=_0x14e1ec[_0x2faabe(0x18e)],_0x4af178=_0x14e1ec[_0x2faabe(0x1a5)],_0x5118de=await readUpdateNoticeCache();if(!_0x4af178||!_0x14e1ec[_0x2faabe(0x196)]||_0x14e1ec[_0x2faabe(0x19c)])return null;if(isRecentlyNotified(_0x5118de,_0x4af178,_0x2fcfec))return null;const _0x532c4e=getCliUpgradeCommand(_0x14e1ec);return await writeUpdateNoticeCache({..._0x5118de,'checkedAt':_0x2fcfec,'latest':_0x4af178,'failed':![],'lastNotifiedVersion':_0x4af178,'lastNotifiedAt':_0x2fcfec}),{'command':_0x532c4e,'current':_0x1e27a7,'latest':_0x4af178,'url':buildNpmVersionUrl(_0x4af178),'message':[_0x14e1ec[_0x2faabe(0x1a6)],CLI_BIN_NAME+'\x20'+_0x4af178+_0x2faabe(0x187)+_0x1e27a7+_0x2faabe(0x19f)+_0x532c4e][_0x2faabe(0x18b)](Boolean)[_0x2faabe(0x1a3)]('\x20')};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x2e5daf,_0x6297bc){const _0x2cf863=a163_0x2995,_0x436f0a=_0x2e5daf();while(!![]){try{const _0x1f35c1=-parseInt(_0x2cf863(0x148))/0x1*(parseInt(_0x2cf863(0x14a))/0x2)+-parseInt(_0x2cf863(0x14e))/0x3*(parseInt(_0x2cf863(0x14b))/0x4)+parseInt(_0x2cf863(0x149))/0x5+-parseInt(_0x2cf863(0x14d))/0x6+parseInt(_0x2cf863(0x152))/0x7+parseInt(_0x2cf863(0x14c))/0x8+parseInt(_0x2cf863(0x150))/0x9;if(_0x1f35c1===_0x6297bc)break;else _0x436f0a['push'](_0x436f0a['shift']());}catch(_0x122fe9){_0x436f0a['push'](_0x436f0a['shift']());}}}(a163_0x4b61,0x7e6f4));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x1ec476=a163_0x2995,_0x14fa59=String(GIT_COMMIT);return _0x14fa59&&_0x14fa59!==_0x1ec476(0x14f)?_0x14fa59:'';}export function getCliVersionDisplay(){const _0x7c7d3b=a163_0x2995,_0x17baa7=getCliGitCommit(),_0x227a63=BUILD_TIME[_0x7c7d3b(0x151)](0x0,0xa);if(!_0x17baa7||!_0x227a63)return VERSION;return VERSION+'\x20('+_0x17baa7+',\x20'+_0x227a63+')';}function a163_0x2995(_0x412188,_0x5b295f){_0x412188=_0x412188-0x148;const _0x4b617c=a163_0x4b61();let _0x29957f=_0x4b617c[_0x412188];return _0x29957f;}function a163_0x4b61(){const _0x1a5c8a=['5728212ZvOBXY','slice','4520691txcpdy','1622zuXhdo','234025SUYBSZ','230gBuCVN','1233164ysgCme','4055568LhMvdr','4940010SabKJQ','3fhPPQK','unknown'];a163_0x4b61=function(){return _0x1a5c8a;};return a163_0x4b61();}
1
+ (function(_0xe554ba,_0x36e89f){const _0x4073e3=a162_0x2d1e,_0x1d85f5=_0xe554ba();while(!![]){try{const _0x1d4ece=parseInt(_0x4073e3(0x1a5))/0x1+parseInt(_0x4073e3(0x1a1))/0x2*(parseInt(_0x4073e3(0x1a0))/0x3)+parseInt(_0x4073e3(0x1a2))/0x4*(parseInt(_0x4073e3(0x19d))/0x5)+-parseInt(_0x4073e3(0x1a4))/0x6+parseInt(_0x4073e3(0x1a8))/0x7+parseInt(_0x4073e3(0x1a6))/0x8*(parseInt(_0x4073e3(0x1a7))/0x9)+parseInt(_0x4073e3(0x19f))/0xa*(-parseInt(_0x4073e3(0x19e))/0xb);if(_0x1d4ece===_0x36e89f)break;else _0x1d85f5['push'](_0x1d85f5['shift']());}catch(_0x5ef56c){_0x1d85f5['push'](_0x1d85f5['shift']());}}}(a162_0x3375,0x5996c));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a162_0x2d1e(_0x2bde0e,_0x517414){_0x2bde0e=_0x2bde0e-0x19d;const _0x337563=a162_0x3375();let _0x2d1ed6=_0x337563[_0x2bde0e];return _0x2d1ed6;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x52cd7a=a162_0x2d1e,_0x31154a=String(GIT_COMMIT);return _0x31154a&&_0x31154a!==_0x52cd7a(0x1a9)?_0x31154a:'';}export function getCliVersionDisplay(){const _0x30bce7=a162_0x2d1e,_0x20ae1c=getCliGitCommit(),_0x439791=BUILD_TIME[_0x30bce7(0x1a3)](0x0,0xa);if(!_0x20ae1c||!_0x439791)return VERSION;return VERSION+'\x20('+_0x20ae1c+',\x20'+_0x439791+')';}function a162_0x3375(){const _0x593b28=['12xFHaKT','54664xNWeBw','4SQBQVn','slice','3611070KQDeGk','141240kRPebN','16swbUas','3150918jEyeXs','4495722WinVpJ','unknown','864295UVrCXi','2922612TZEBwD','30ewOkGc'];a162_0x3375=function(){return _0x593b28;};return a162_0x3375();}
@@ -1 +1 @@
1
- function a164_0x2719(){var _0x33279d=['stderr','327678WlzaJM','259yKxpjr','28otZvgx','6596980ftEPZw','257733jmCQnW','62052fzHnnr','41480gUTtxo','123056mRrFiB','10040679soAAgQ','24WjBVDw','200ZIGUvw'];a164_0x2719=function(){return _0x33279d;};return a164_0x2719();}function a164_0x3eaa(_0x3c1059,_0x40e9a8){_0x3c1059=_0x3c1059-0x17b;var _0x2719ab=a164_0x2719();var _0x3eaa13=_0x2719ab[_0x3c1059];return _0x3eaa13;}(function(_0x4ea53e,_0x3c2b1f){var _0x28a393=a164_0x3eaa,_0x2b1f50=_0x4ea53e();while(!![]){try{var _0x31e6a6=-parseInt(_0x28a393(0x181))/0x1+-parseInt(_0x28a393(0x17c))/0x2*(parseInt(_0x28a393(0x17e))/0x3)+-parseInt(_0x28a393(0x183))/0x4*(parseInt(_0x28a393(0x17b))/0x5)+-parseInt(_0x28a393(0x186))/0x6*(-parseInt(_0x28a393(0x182))/0x7)+-parseInt(_0x28a393(0x17f))/0x8*(parseInt(_0x28a393(0x185))/0x9)+parseInt(_0x28a393(0x184))/0xa+parseInt(_0x28a393(0x17d))/0xb;if(_0x31e6a6===_0x3c2b1f)break;else _0x2b1f50['push'](_0x2b1f50['shift']());}catch(_0x15a6d9){_0x2b1f50['push'](_0x2b1f50['shift']());}}}(a164_0x2719,0x5831a));export function writeCliSideChannelLine(_0x391894){var _0x218719=a164_0x3eaa;process[_0x218719(0x180)]['write'](_0x391894+'\x0a');}
1
+ function a163_0x9d00(){var _0x2580a6=['27FDjCjN','115flKNqa','936474QhyaMU','414340IwZUoj','59tuuVFe','29924uEGGiY','3428wLvyoi','11OocpHs','stderr','333876Zvoqpn','189973dOniGy','494712bvRgEb'];a163_0x9d00=function(){return _0x2580a6;};return a163_0x9d00();}function a163_0x1dd8(_0x4cf1da,_0x473af6){_0x4cf1da=_0x4cf1da-0xdd;var _0x9d00fb=a163_0x9d00();var _0x1dd8cd=_0x9d00fb[_0x4cf1da];return _0x1dd8cd;}(function(_0x1b0e8f,_0x449586){var _0x15b416=a163_0x1dd8,_0x599a49=_0x1b0e8f();while(!![]){try{var _0x4cba9e=-parseInt(_0x15b416(0xe0))/0x1*(parseInt(_0x15b416(0xe2))/0x2)+parseInt(_0x15b416(0xe5))/0x3+-parseInt(_0x15b416(0xe1))/0x4*(-parseInt(_0x15b416(0xdd))/0x5)+-parseInt(_0x15b416(0xde))/0x6+-parseInt(_0x15b416(0xe6))/0x7+parseInt(_0x15b416(0xe7))/0x8*(parseInt(_0x15b416(0xe8))/0x9)+-parseInt(_0x15b416(0xdf))/0xa*(parseInt(_0x15b416(0xe3))/0xb);if(_0x4cba9e===_0x449586)break;else _0x599a49['push'](_0x599a49['shift']());}catch(_0x9efdf6){_0x599a49['push'](_0x599a49['shift']());}}}(a163_0x9d00,0x22ef6));export function writeCliSideChannelLine(_0x9acce1){var _0x1eac53=a163_0x1dd8;process[_0x1eac53(0xe4)]['write'](_0x9acce1+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.3.2-beta.1",
3
+ "version": "2.3.2-beta.2",
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": [
@@ -88,6 +88,7 @@
88
88
  "@lovrabet/cli-framework": "1.0.5",
89
89
  "@lovrabet/sdk": "1.4.2",
90
90
  "chalk": "^5.6.2",
91
+ "execa": "^9.6.0",
91
92
  "fflate": "^0.8.3",
92
93
  "fs-extra": "^11.3.6",
93
94
  "ink": "^6.2.3",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lovrabet
3
3
  displayName: Lovrabet 运行态 CLI
4
- version: 2.3.2-beta.1
4
+ version: 2.3.2-beta.2
5
5
  description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、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、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、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.2-beta.1",
6
- "skillVersion": "2.3.2-beta.1",
5
+ "packageVersion": "2.3.2-beta.2",
6
+ "skillVersion": "2.3.2-beta.2",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/app-resolution.md",
@@ -37,5 +37,5 @@
37
37
  "references/lovrabet-user-account.md",
38
38
  "references/lovrabet-workspace.md"
39
39
  ],
40
- "digest": "379a8a9bd266177b77bd27af649917d9d6fde8b02f89f0f3bb95534ccae5bf11"
40
+ "digest": "bc51f67c9d891d07291f7f93f1fd69aab3a58484559202415ac015599a04616b"
41
41
  }
@@ -1,17 +0,0 @@
1
- /**
2
- * Platform-specific executable helpers for cross-platform CLI execution.
3
- *
4
- * On Windows, npm-installed CLIs such as `npm` and `npx` are exposed as `.cmd`
5
- * wrapper scripts. `spawnSync()` without `shell: true` cannot resolve those
6
- * wrappers unless the extension is explicit. On Unix-like systems, the plain
7
- * command name is sufficient.
8
- */
9
- /** Whether the current runtime is Windows. */
10
- export declare const isWindows: boolean;
11
- /**
12
- * Resolves the executable name for npm ecosystem tools on the current platform.
13
- *
14
- * @param cmd - The base executable name, for example `"npx"` or `"npm"`.
15
- * @returns The executable name that should be passed to `spawnSync()`.
16
- */
17
- export declare function resolveNpmBin(cmd: string): string;
@@ -1 +0,0 @@
1
- function a161_0x23c1(){const _0x41f138=['1308009fqGzEt','136MSlIVV','1260DycwgE','2675644VhcvkC','2818445edRhpE','win32','214LnxTte','7504764WYyCke','50823wRipek','platform','11pxxBCW','2762YrhlFl','304829YSWEAu','6LpbJjf'];a161_0x23c1=function(){return _0x41f138;};return a161_0x23c1();}function a161_0x3aa7(_0x55565e,_0x4f063b){_0x55565e=_0x55565e-0x149;const _0x23c15d=a161_0x23c1();let _0x3aa734=_0x23c15d[_0x55565e];return _0x3aa734;}const a161_0x4a7429=a161_0x3aa7;(function(_0x522259,_0x6f73d0){const _0x4b5661=a161_0x3aa7,_0x1655c7=_0x522259();while(!![]){try{const _0x440388=-parseInt(_0x4b5661(0x152))/0x1*(-parseInt(_0x4b5661(0x14d))/0x2)+-parseInt(_0x4b5661(0x155))/0x3+parseInt(_0x4b5661(0x14a))/0x4+parseInt(_0x4b5661(0x14b))/0x5*(parseInt(_0x4b5661(0x154))/0x6)+parseInt(_0x4b5661(0x153))/0x7*(-parseInt(_0x4b5661(0x156))/0x8)+parseInt(_0x4b5661(0x14f))/0x9*(parseInt(_0x4b5661(0x149))/0xa)+-parseInt(_0x4b5661(0x151))/0xb*(parseInt(_0x4b5661(0x14e))/0xc);if(_0x440388===_0x6f73d0)break;else _0x1655c7['push'](_0x1655c7['shift']());}catch(_0x587728){_0x1655c7['push'](_0x1655c7['shift']());}}}(a161_0x23c1,0x6aec5));export const isWindows=process[a161_0x4a7429(0x150)]===a161_0x4a7429(0x14c);export function resolveNpmBin(_0x2f2593){return isWindows?_0x2f2593+'.cmd':_0x2f2593;}