@lovrabet/lovrabet-cli 2.3.8-beta.3 → 2.3.8-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/README.md +12 -0
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/issue/context.d.ts +3 -0
  38. package/lib/commands/issue/context.js +1 -0
  39. package/lib/commands/issue/index.d.ts +2 -0
  40. package/lib/commands/issue/index.js +1 -0
  41. package/lib/commands/issue/report.d.ts +2 -0
  42. package/lib/commands/issue/report.js +1 -0
  43. package/lib/commands/kb/index.js +1 -1
  44. package/lib/commands/logs/index.js +1 -1
  45. package/lib/commands/notification/config-list.js +1 -1
  46. package/lib/commands/notification/index.js +1 -1
  47. package/lib/commands/notification/shared.js +1 -1
  48. package/lib/commands/ocr/index.js +1 -1
  49. package/lib/commands/permit/dataset-get.js +1 -1
  50. package/lib/commands/permit/dataset-set.js +1 -1
  51. package/lib/commands/permit/index.js +1 -1
  52. package/lib/commands/permit/page-get.js +1 -1
  53. package/lib/commands/permit/page-set.js +1 -1
  54. package/lib/commands/permit/role-menus-set.js +1 -1
  55. package/lib/commands/permit/role-menus.js +1 -1
  56. package/lib/commands/permit/shared.js +1 -1
  57. package/lib/commands/personal-bff/index.js +1 -1
  58. package/lib/commands/registry.js +1 -1
  59. package/lib/commands/role/create.js +1 -1
  60. package/lib/commands/role/delete.js +1 -1
  61. package/lib/commands/role/detail.js +1 -1
  62. package/lib/commands/role/index.js +1 -1
  63. package/lib/commands/role/list.js +1 -1
  64. package/lib/commands/role/shared.js +1 -1
  65. package/lib/commands/role/update.js +1 -1
  66. package/lib/commands/role/user-add.js +1 -1
  67. package/lib/commands/role/user-remove.js +1 -1
  68. package/lib/commands/schedule/index.js +1 -1
  69. package/lib/commands/schema.js +1 -1
  70. package/lib/commands/service/dynamic.js +1 -1
  71. package/lib/commands/service/function-name-adapter.js +1 -1
  72. package/lib/commands/service/index.js +1 -1
  73. package/lib/commands/service/registry.js +1 -1
  74. package/lib/commands/skill/commands/create.js +1 -1
  75. package/lib/commands/skill/commands/diagram.js +1 -1
  76. package/lib/commands/skill/commands/install.js +1 -1
  77. package/lib/commands/skill/commands/list.js +1 -1
  78. package/lib/commands/skill/commands/push.js +1 -1
  79. package/lib/commands/skill/commands/validate.js +1 -1
  80. package/lib/commands/skill/diagram.js +1 -1
  81. package/lib/commands/skill/flags.js +1 -1
  82. package/lib/commands/skill/index.js +1 -1
  83. package/lib/commands/skill/manifest-helpers.js +1 -1
  84. package/lib/commands/skill/push-execute.js +1 -1
  85. package/lib/commands/skill/push-flow-helpers.js +1 -1
  86. package/lib/commands/skill/push-retarget.js +1 -1
  87. package/lib/commands/skill/scopes.js +1 -1
  88. package/lib/commands/skill/summary.js +1 -1
  89. package/lib/commands/skill/templates.js +1 -1
  90. package/lib/commands/skill/validate.js +1 -1
  91. package/lib/commands/sql/detail.js +1 -1
  92. package/lib/commands/sql/exec.js +1 -1
  93. package/lib/commands/sql/index.js +1 -1
  94. package/lib/commands/update.js +1 -1
  95. package/lib/commands/user-account/bind.js +1 -1
  96. package/lib/commands/user-account/index.js +1 -1
  97. package/lib/commands/workspace/index.js +1 -1
  98. package/lib/config/domain-config.js +1 -1
  99. package/lib/config/schema.js +1 -1
  100. package/lib/constant/app.js +1 -1
  101. package/lib/constant/auth-mode.js +1 -1
  102. package/lib/constant/cli.js +1 -1
  103. package/lib/constant/defaults.js +1 -1
  104. package/lib/constant/distribution.js +1 -1
  105. package/lib/constant/domain.js +1 -1
  106. package/lib/constant/env.js +1 -1
  107. package/lib/constant/output.js +1 -1
  108. package/lib/constant/product.js +1 -1
  109. package/lib/constant/region.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/constant/url.js +1 -1
  112. package/lib/context.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/kb-management-client.js +1 -1
  116. package/lib/core/kb-sdk-errors.d.ts +3 -0
  117. package/lib/core/kb-sdk-errors.js +1 -0
  118. package/lib/core/kb-search-client.d.ts +3 -21
  119. package/lib/core/kb-search-client.js +1 -1
  120. package/lib/core/sdk-client.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/access-error.js +1 -1
  123. package/lib/framework/build-all-flags.js +1 -1
  124. package/lib/framework/dryrun.js +1 -1
  125. package/lib/framework/flags.js +1 -1
  126. package/lib/framework/help.js +1 -1
  127. package/lib/framework/index.js +1 -1
  128. package/lib/framework/output.js +1 -1
  129. package/lib/framework/preparse.js +1 -1
  130. package/lib/framework/rate-limit.js +1 -1
  131. package/lib/framework/raw-flags.js +1 -1
  132. package/lib/framework/response.js +1 -1
  133. package/lib/framework/runner-confirmation.js +1 -1
  134. package/lib/framework/runner-error.js +1 -1
  135. package/lib/framework/runner.js +1 -1
  136. package/lib/framework/schema-export.js +1 -1
  137. package/lib/framework/service-order.js +1 -1
  138. package/lib/framework/types.js +1 -1
  139. package/lib/generated/build-info.d.ts +4 -4
  140. package/lib/generated/build-info.js +1 -1
  141. package/lib/generated/official-routing.js +1 -1
  142. package/lib/generated/routing-contract.js +1 -1
  143. package/lib/help.js +1 -1
  144. package/lib/postinstall.js +1 -1
  145. package/lib/runtime/confirmation.js +1 -1
  146. package/lib/runtime/event.js +1 -1
  147. package/lib/runtime/index.js +1 -1
  148. package/lib/runtime/queue.js +1 -1
  149. package/lib/runtime/resolve.js +1 -1
  150. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  151. package/lib/services/dataset-import/excel-reader.js +1 -1
  152. package/lib/services/dataset-import/image-bytes.js +1 -1
  153. package/lib/services/dataset-import/image-ooxml.js +1 -1
  154. package/lib/services/dataset-import/image-runner.js +1 -1
  155. package/lib/services/dataset-import/metadata.js +1 -1
  156. package/lib/services/dataset-import/preview.js +1 -1
  157. package/lib/services/dataset-import/runner.js +1 -1
  158. package/lib/skills/builtin-skill.js +1 -1
  159. package/lib/skills/npx-skills-add.js +1 -1
  160. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  161. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  162. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  163. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  164. package/lib/skills/runtime-skill-sync/links.js +1 -1
  165. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  166. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  167. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  168. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  169. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  170. package/lib/skills/runtime-skill-sync/push.js +1 -1
  171. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  172. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  173. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  174. package/lib/skills/runtime-skill-sync.js +1 -1
  175. package/lib/skills/skill-presence.js +1 -1
  176. package/lib/utils/access-key-redaction.js +1 -1
  177. package/lib/utils/apply-jq-filter.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/logger.js +1 -1
  181. package/lib/utils/lossless-json.js +1 -1
  182. package/lib/utils/params.js +1 -1
  183. package/lib/utils/positive-safe-integer.js +1 -1
  184. package/lib/utils/redaction.js +1 -1
  185. package/lib/utils/runtime-user-id.js +1 -1
  186. package/lib/utils/update-notice.js +1 -1
  187. package/lib/utils/version.js +1 -1
  188. package/lib/utils/write-cli-side-channel.js +1 -1
  189. package/package.json +3 -3
  190. package/skills/lovrabet/SKILL.md +3 -1
  191. package/skills/lovrabet/references/lovrabet-issue-report.md +24 -0
  192. package/skills/lovrabet.manifest.json +4 -3
@@ -1 +1 @@
1
- (function(_0x483d4f,_0x3e92ba){const _0x5569e5=a158_0x51c5,_0x3cb548=_0x483d4f();while(!![]){try{const _0x5cd66a=-parseInt(_0x5569e5(0x1b5))/0x1+parseInt(_0x5569e5(0x1b1))/0x2*(parseInt(_0x5569e5(0x1a7))/0x3)+parseInt(_0x5569e5(0x19d))/0x4+parseInt(_0x5569e5(0x199))/0x5+-parseInt(_0x5569e5(0x196))/0x6+parseInt(_0x5569e5(0x1a5))/0x7*(parseInt(_0x5569e5(0x1b7))/0x8)+-parseInt(_0x5569e5(0x1a0))/0x9;if(_0x5cd66a===_0x3e92ba)break;else _0x3cb548['push'](_0x3cb548['shift']());}catch(_0x37a819){_0x3cb548['push'](_0x3cb548['shift']());}}}(a158_0x58ce,0x21d24));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a158_0x58ce(){const _0xad2129=['userId','Runtime\x20Skill\x20is\x20missing\x20skillCode.','fromEntries','forkedFromVersion','description','36PvWOpf','hasUpstreamUpdate','utf8','status','164085eddOVs','trim','554056pWPXFD','zipSha256','string','personal','object','664512SiFfmr','manifest','ossPath','1260635gByaIx','length','tenantCode','validation','178572NFloNz','zipSize','readonly','1473696nxLgcj','tags','path','isArray','skillCode','7uXLSqf','skillName','35181xNvyWI','parse','toISOString','files','version'];a158_0x58ce=function(){return _0xad2129;};return a158_0x58ce();}import{fileContent,normalizeLocalFiles}from'./local-files.js';function a158_0x51c5(_0x5ea6ef,_0x34bcd2){_0x5ea6ef=_0x5ea6ef-0x194;const _0x58ce9d=a158_0x58ce();let _0x51c53e=_0x58ce9d[_0x5ea6ef];return _0x51c53e;}import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x241d26,_0x31ae06,_0x315b1f,_0x5d735a,_0x258174,_0x2d52a1,_0x509b35){const _0x312a31=a158_0x51c5,_0x6cd6ff=_0x2d52a1?normalizeLocalFiles(_0x2d52a1):[],_0x484a4e=!_0x509b35&&_0x6cd6ff[_0x312a31(0x19a)]>0x0?buildSkillPackage(_0x6cd6ff):undefined,_0x314a00=_0x509b35?bufferSha256(_0x509b35):_0x484a4e?.[_0x312a31(0x197)][_0x312a31(0x1b8)],_0x254d05=_0x509b35?.['length']??_0x484a4e?.[_0x312a31(0x197)][_0x312a31(0x19e)],_0xe5370c=_0x6cd6ff[_0x312a31(0x19a)]>0x0?Object[_0x312a31(0x1ae)](_0x6cd6ff['map'](_0x525422=>[_0x525422[_0x312a31(0x1a2)],fileHash(_0x525422)])):undefined;return{'schemaVersion':_0x6cd6ff[_0x312a31(0x19a)]>0x0?0x2:0x1,'id':_0x241d26['id'],'appCode':_0x315b1f,'skillCode':requireSkillCode(_0x241d26),'skillName':_0x241d26[_0x312a31(0x1a6)],'description':_0x241d26[_0x312a31(0x1b0)],'example':_0x241d26['example'],'scope':_0x31ae06,'readonly':_0x31ae06!==_0x312a31(0x194)||_0x241d26[_0x312a31(0x19f)]===!![],'tenantCode':_0x241d26[_0x312a31(0x19b)],'userId':_0x241d26[_0x312a31(0x1ac)],'version':_0x241d26[_0x312a31(0x1ab)],'status':_0x241d26[_0x312a31(0x1b4)],'tags':Array[_0x312a31(0x1a3)](_0x241d26[_0x312a31(0x1a1)])?_0x241d26['tags']:[],'hasUpstreamUpdate':_0x241d26[_0x312a31(0x1b2)],'forkedFromSkillId':_0x241d26['forkedFromSkillId'],'forkedFromVersion':_0x241d26[_0x312a31(0x1af)],'sourceSessionId':_0x241d26['sourceSessionId'],'contentHash':_0x5d735a,'fileHashes':_0xe5370c,'treeHash':_0x6cd6ff[_0x312a31(0x19a)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x6cd6ff)):undefined,'ossPath':remoteManifestOssPath(_0x241d26[_0x312a31(0x1aa)]),'zipSha256':_0x314a00,'zipSize':_0x254d05,'files':_0x6cd6ff[_0x312a31(0x19a)]>0x0?_0x6cd6ff['map'](_0x1f1263=>({'path':_0x1f1263[_0x312a31(0x1a2)],'hash':fileHash(_0x1f1263),'size':fileContent(_0x1f1263)[_0x312a31(0x19a)]})):undefined,'pulledAt':_0x258174??new Date()[_0x312a31(0x1a9)]()};}export function requireSkillCode(_0x171d03){const _0x467bf2=a158_0x51c5,_0x4cabff=_0x171d03[_0x467bf2(0x1a4)]?.[_0x467bf2(0x1b6)]();if(!_0x4cabff)throw CliErrors[_0x467bf2(0x19c)](_0x467bf2(0x1ad));return _0x4cabff;}export function readMetadataIfPresent(_0x44f4a8){const _0x18e0d9=a158_0x51c5;if(!existsSync(_0x44f4a8))return undefined;try{const _0x1d275b=JSON[_0x18e0d9(0x1a8)](readFileSync(_0x44f4a8,_0x18e0d9(0x1b3)));return _0x1d275b;}catch{throw CliErrors[_0x18e0d9(0x19c)]('Invalid\x20'+METADATA_FILE+':\x20'+_0x44f4a8);}}function remoteManifestOssPath(_0x408eaa){const _0x86d395=a158_0x51c5;if(!_0x408eaa||typeof _0x408eaa!==_0x86d395(0x195)||Array[_0x86d395(0x1a3)](_0x408eaa))return undefined;const _0x4a0164=_0x408eaa[_0x86d395(0x198)];return typeof _0x4a0164===_0x86d395(0x1b9)&&_0x4a0164['trim']()?_0x4a0164[_0x86d395(0x1b6)]():undefined;}
1
+ (function(_0x2cd87d,_0x563107){const _0x46cde6=a162_0x171e,_0x3c3ce0=_0x2cd87d();while(!![]){try{const _0x3c979b=-parseInt(_0x46cde6(0x1f7))/0x1*(-parseInt(_0x46cde6(0x1f3))/0x2)+parseInt(_0x46cde6(0x1f0))/0x3*(-parseInt(_0x46cde6(0x1fe))/0x4)+-parseInt(_0x46cde6(0x1ed))/0x5+parseInt(_0x46cde6(0x1f4))/0x6*(-parseInt(_0x46cde6(0x1ef))/0x7)+-parseInt(_0x46cde6(0x1ee))/0x8*(-parseInt(_0x46cde6(0x1e7))/0x9)+-parseInt(_0x46cde6(0x1fd))/0xa+-parseInt(_0x46cde6(0x1f8))/0xb*(-parseInt(_0x46cde6(0x1e9))/0xc);if(_0x3c979b===_0x563107)break;else _0x3c3ce0['push'](_0x3c3ce0['shift']());}catch(_0xb778df){_0x3c3ce0['push'](_0x3c3ce0['shift']());}}}(a162_0x33ac,0x80d71));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a162_0x33ac(){const _0x13ddda=['tenantCode','9JuuinL','parse','12NtnAuP','path','example','validation','3016050mfiaku','1678408ZUKdVh','7RnlykM','45UjbCzU','length','forkedFromVersion','50450Nwampx','1016130nHfvYU','map','isArray','6jdNrId','20140021eelRXn','zipSize','status','forkedFromSkillId','skillCode','7867530BmxfbA','28004IGiwlF','string','utf8','ossPath','personal','readonly','Invalid\x20','object','Runtime\x20Skill\x20is\x20missing\x20skillCode.','description','fromEntries','manifest','files','tags','trim','sourceSessionId','hasUpstreamUpdate'];a162_0x33ac=function(){return _0x13ddda;};return a162_0x33ac();}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x3cd5ae,_0x5472ed,_0xb2734b,_0x2beacd,_0x2105e7,_0x47284b,_0x27927d){const _0x3b82dc=a162_0x171e,_0x1a8309=_0x47284b?normalizeLocalFiles(_0x47284b):[],_0x2a5af4=!_0x27927d&&_0x1a8309['length']>0x0?buildSkillPackage(_0x1a8309):undefined,_0x2a0034=_0x27927d?bufferSha256(_0x27927d):_0x2a5af4?.['manifest']['zipSha256'],_0x3b86ad=_0x27927d?.['length']??_0x2a5af4?.[_0x3b82dc(0x1e0)][_0x3b82dc(0x1f9)],_0x401a5a=_0x1a8309[_0x3b82dc(0x1f1)]>0x0?Object[_0x3b82dc(0x1df)](_0x1a8309[_0x3b82dc(0x1f5)](_0x6d7c99=>[_0x6d7c99[_0x3b82dc(0x1ea)],fileHash(_0x6d7c99)])):undefined;return{'schemaVersion':_0x1a8309[_0x3b82dc(0x1f1)]>0x0?0x2:0x1,'id':_0x3cd5ae['id'],'appCode':_0xb2734b,'skillCode':requireSkillCode(_0x3cd5ae),'skillName':_0x3cd5ae['skillName'],'description':_0x3cd5ae[_0x3b82dc(0x1de)],'example':_0x3cd5ae[_0x3b82dc(0x1eb)],'scope':_0x5472ed,'readonly':_0x5472ed!==_0x3b82dc(0x202)||_0x3cd5ae[_0x3b82dc(0x203)]===!![],'tenantCode':_0x3cd5ae[_0x3b82dc(0x1e6)],'userId':_0x3cd5ae['userId'],'version':_0x3cd5ae['version'],'status':_0x3cd5ae[_0x3b82dc(0x1fa)],'tags':Array[_0x3b82dc(0x1f6)](_0x3cd5ae[_0x3b82dc(0x1e2)])?_0x3cd5ae['tags']:[],'hasUpstreamUpdate':_0x3cd5ae[_0x3b82dc(0x1e5)],'forkedFromSkillId':_0x3cd5ae[_0x3b82dc(0x1fb)],'forkedFromVersion':_0x3cd5ae[_0x3b82dc(0x1f2)],'sourceSessionId':_0x3cd5ae[_0x3b82dc(0x1e4)],'contentHash':_0x2beacd,'fileHashes':_0x401a5a,'treeHash':_0x1a8309[_0x3b82dc(0x1f1)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x1a8309)):undefined,'ossPath':remoteManifestOssPath(_0x3cd5ae[_0x3b82dc(0x1e1)]),'zipSha256':_0x2a0034,'zipSize':_0x3b86ad,'files':_0x1a8309['length']>0x0?_0x1a8309['map'](_0x1852db=>({'path':_0x1852db[_0x3b82dc(0x1ea)],'hash':fileHash(_0x1852db),'size':fileContent(_0x1852db)[_0x3b82dc(0x1f1)]})):undefined,'pulledAt':_0x2105e7??new Date()['toISOString']()};}export function requireSkillCode(_0x49ea80){const _0x2a954c=a162_0x171e,_0x286d28=_0x49ea80[_0x2a954c(0x1fc)]?.['trim']();if(!_0x286d28)throw CliErrors[_0x2a954c(0x1ec)](_0x2a954c(0x1dd));return _0x286d28;}function a162_0x171e(_0x452ab5,_0x425774){_0x452ab5=_0x452ab5-0x1dc;const _0x33ac30=a162_0x33ac();let _0x171eba=_0x33ac30[_0x452ab5];return _0x171eba;}export function readMetadataIfPresent(_0x1fe6f5){const _0x5c1087=a162_0x171e;if(!existsSync(_0x1fe6f5))return undefined;try{const _0x178749=JSON[_0x5c1087(0x1e8)](readFileSync(_0x1fe6f5,_0x5c1087(0x200)));return _0x178749;}catch{throw CliErrors[_0x5c1087(0x1ec)](_0x5c1087(0x204)+METADATA_FILE+':\x20'+_0x1fe6f5);}}function remoteManifestOssPath(_0x2ff4db){const _0x83377f=a162_0x171e;if(!_0x2ff4db||typeof _0x2ff4db!==_0x83377f(0x1dc)||Array[_0x83377f(0x1f6)](_0x2ff4db))return undefined;const _0x557516=_0x2ff4db[_0x83377f(0x201)];return typeof _0x557516===_0x83377f(0x1ff)&&_0x557516['trim']()?_0x557516[_0x83377f(0x1e3)]():undefined;}
@@ -1 +1 @@
1
- (function(_0x545efb,_0x3cb482){const _0x3571f6=a159_0x359a,_0x5f0a67=_0x545efb();while(!![]){try{const _0x1a0118=parseInt(_0x3571f6(0x134))/0x1*(-parseInt(_0x3571f6(0x135))/0x2)+-parseInt(_0x3571f6(0x11d))/0x3+parseInt(_0x3571f6(0x11e))/0x4*(-parseInt(_0x3571f6(0x119))/0x5)+-parseInt(_0x3571f6(0x12d))/0x6*(-parseInt(_0x3571f6(0x122))/0x7)+-parseInt(_0x3571f6(0x124))/0x8*(parseInt(_0x3571f6(0x128))/0x9)+-parseInt(_0x3571f6(0x123))/0xa*(-parseInt(_0x3571f6(0x12c))/0xb)+-parseInt(_0x3571f6(0x125))/0xc*(-parseInt(_0x3571f6(0x130))/0xd);if(_0x1a0118===_0x3cb482)break;else _0x5f0a67['push'](_0x5f0a67['shift']());}catch(_0x5182a8){_0x5f0a67['push'](_0x5f0a67['shift']());}}}(a159_0x3b9e,0x440a3));import{existsSync}from'node:fs';function a159_0x3b9e(){const _0x465a2c=['SKILL_ROOT','filter','skills','11iastPB','201384vxZxrJ','homeDir','homeDirName','13cffAAu','validation','CLAUDE_SKILL_ROOT','claudeSkillsDir','214wfUmyp','2252GUxIkm','289415bLrxcm','trim','Unsafe\x20','includes','1459122SJPTau','8rAbkgY','skillCode','.workbuddy','agentsSkillsDir','112Umnuwz','1353960NnuxoC','22576XRUZpo','8609580YAktpq','workbuddySkillsDir','cacheRoot','855HiEDDL'];a159_0x3b9e=function(){return _0x465a2c;};return a159_0x3b9e();}import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';function a159_0x359a(_0x3c4728,_0x8baf0a){_0x3c4728=_0x3c4728-0x119;const _0x3b9e61=a159_0x3b9e();let _0x359ac5=_0x3b9e61[_0x3c4728];return _0x359ac5;}import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x23b53b={}){const _0x402f12=a159_0x359a,_0x215b52=_0x23b53b[_0x402f12(0x12e)]??homedir(),_0x330295=resolve(_0x215b52,PRODUCT_CONFIG['homeDirName'],'cache'),_0x229218=trimmedEnv(_0x402f12(0x129)),_0xb578a5=trimmedEnv(_0x402f12(0x132)),_0x240fb2=resolve(_0x215b52,_0x402f12(0x120)),_0x4007bd=_0x23b53b[_0x402f12(0x126)]??(existsSync(_0x240fb2)?resolve(_0x240fb2,_0x402f12(0x12b)):undefined);return{'homeDir':_0x215b52,'cacheRoot':_0x330295,'managedRoot':resolve(_0x215b52,PRODUCT_CONFIG[_0x402f12(0x12f)]),'agentsSkillsDir':_0x23b53b[_0x402f12(0x121)]??_0x229218??resolve(_0x215b52,'.agents',_0x402f12(0x12b)),'claudeSkillsDir':_0x23b53b['claudeSkillsDir']??_0xb578a5??resolve(_0x215b52,'.claude',_0x402f12(0x12b)),'workbuddySkillsDir':_0x4007bd};}export function runtimeAgentSkillRoots(_0x5045a5){const _0x3b29fc=a159_0x359a;return[_0x5045a5[_0x3b29fc(0x121)],_0x5045a5[_0x3b29fc(0x133)],_0x5045a5[_0x3b29fc(0x126)]][_0x3b29fc(0x12a)](_0x150d12=>Boolean(_0x150d12));}export function getRuntimeSkillCacheRoot(_0x250457,_0x43ca67,_0x1e6a07={}){const _0x229a4a=a159_0x359a,_0x47d3c6=resolveSkillSyncPaths(_0x1e6a07);return resolve(_0x47d3c6[_0x229a4a(0x127)],_0x250457,fingerprintAccessKey(_0x43ca67),_0x229a4a(0x12b));}export function getRuntimeSkillDir(_0x98970e,_0x43ab10,_0x3961fe,_0x3230c5,_0x415f15,_0x40a261={}){const _0x38460d=a159_0x359a;return resolve(getRuntimeSkillCacheRoot(_0x98970e,_0x43ab10,_0x40a261),safePathSegment(_0x3961fe,'appCode'),_0x3230c5,safePathSegment(_0x415f15,_0x38460d(0x11f)));}export function safePathSegment(_0x58012a,_0x2ae131='path\x20segment'){const _0x29af8d=a159_0x359a;if(!_0x58012a||_0x58012a[_0x29af8d(0x11c)]('/')||_0x58012a[_0x29af8d(0x11c)]('\x5c')||_0x58012a[_0x29af8d(0x11c)]('..'))throw CliErrors[_0x29af8d(0x131)](_0x29af8d(0x11b)+_0x2ae131+'\x20for\x20local\x20path:\x20'+_0x58012a);return _0x58012a;}function trimmedEnv(_0x48bf4e){const _0x4f5401=a159_0x359a,_0x329baf=productEnv(_0x48bf4e)?.[_0x4f5401(0x11a)]();return _0x329baf?_0x329baf:undefined;}
1
+ const a163_0x4cf086=a163_0x38a8;(function(_0x2f970a,_0x9843b6){const _0x1fa6d9=a163_0x38a8,_0x5d454e=_0x2f970a();while(!![]){try{const _0x318efb=parseInt(_0x1fa6d9(0x1d0))/0x1+-parseInt(_0x1fa6d9(0x1d1))/0x2*(parseInt(_0x1fa6d9(0x1c9))/0x3)+-parseInt(_0x1fa6d9(0x1e3))/0x4*(parseInt(_0x1fa6d9(0x1d8))/0x5)+parseInt(_0x1fa6d9(0x1d7))/0x6+parseInt(_0x1fa6d9(0x1ce))/0x7+-parseInt(_0x1fa6d9(0x1d5))/0x8*(-parseInt(_0x1fa6d9(0x1cb))/0x9)+parseInt(_0x1fa6d9(0x1de))/0xa;if(_0x318efb===_0x9843b6)break;else _0x5d454e['push'](_0x5d454e['shift']());}catch(_0x4b37a4){_0x5d454e['push'](_0x5d454e['shift']());}}}(a163_0x4532,0xb98e8));import{existsSync}from'node:fs';function a163_0x38a8(_0x343fb1,_0x3058df){_0x343fb1=_0x343fb1-0x1c9;const _0x4532b5=a163_0x4532();let _0x38a8df=_0x4532b5[_0x343fb1];return _0x38a8df;}import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';function a163_0x4532(){const _0x4b73c2=['CLAUDE_SKILL_ROOT','3IzHeml','homeDir','9gGvxqw','homeDirName','trim','5698231BKFOqR','filter','205369BrpPUZ','1768988AofOPs','skillCode','skills','.workbuddy','4756208JGORgO','validation','1185204nfoRLO','2091865NgogSQ','claudeSkillsDir','workbuddySkillsDir','agentsSkillsDir','cache','SKILL_ROOT','2514450jpSiqb','includes','.claude','appCode','path\x20segment','4QFUjxl','cacheRoot','\x20for\x20local\x20path:\x20'];a163_0x4532=function(){return _0x4b73c2;};return a163_0x4532();}import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x10467f={}){const _0x1903d2=a163_0x38a8,_0x3c9cd6=_0x10467f[_0x1903d2(0x1ca)]??homedir(),_0x50d841=resolve(_0x3c9cd6,PRODUCT_CONFIG[_0x1903d2(0x1cc)],_0x1903d2(0x1dc)),_0x416be1=trimmedEnv(_0x1903d2(0x1dd)),_0x22b4e0=trimmedEnv(_0x1903d2(0x1e6)),_0x11136a=resolve(_0x3c9cd6,_0x1903d2(0x1d4)),_0x1916de=_0x10467f[_0x1903d2(0x1da)]??(existsSync(_0x11136a)?resolve(_0x11136a,'skills'):undefined);return{'homeDir':_0x3c9cd6,'cacheRoot':_0x50d841,'managedRoot':resolve(_0x3c9cd6,PRODUCT_CONFIG[_0x1903d2(0x1cc)]),'agentsSkillsDir':_0x10467f[_0x1903d2(0x1db)]??_0x416be1??resolve(_0x3c9cd6,'.agents',_0x1903d2(0x1d3)),'claudeSkillsDir':_0x10467f[_0x1903d2(0x1d9)]??_0x22b4e0??resolve(_0x3c9cd6,_0x1903d2(0x1e0),'skills'),'workbuddySkillsDir':_0x1916de};}export function runtimeAgentSkillRoots(_0x46b2e0){const _0x25d3c7=a163_0x38a8;return[_0x46b2e0[_0x25d3c7(0x1db)],_0x46b2e0[_0x25d3c7(0x1d9)],_0x46b2e0[_0x25d3c7(0x1da)]][_0x25d3c7(0x1cf)](_0x5b1992=>Boolean(_0x5b1992));}export function getRuntimeSkillCacheRoot(_0xb43536,_0x1abc9c,_0x3245cf={}){const _0x35fe5b=a163_0x38a8,_0x12393e=resolveSkillSyncPaths(_0x3245cf);return resolve(_0x12393e[_0x35fe5b(0x1e4)],_0xb43536,fingerprintAccessKey(_0x1abc9c),_0x35fe5b(0x1d3));}export function getRuntimeSkillDir(_0x3db0e5,_0x18baea,_0x17d0d3,_0xe362ec,_0x1e6401,_0x4ad198={}){const _0x3d756c=a163_0x38a8;return resolve(getRuntimeSkillCacheRoot(_0x3db0e5,_0x18baea,_0x4ad198),safePathSegment(_0x17d0d3,_0x3d756c(0x1e1)),_0xe362ec,safePathSegment(_0x1e6401,_0x3d756c(0x1d2)));}export function safePathSegment(_0x285dc2,_0x3c5aea=a163_0x4cf086(0x1e2)){const _0x4ab973=a163_0x4cf086;if(!_0x285dc2||_0x285dc2[_0x4ab973(0x1df)]('/')||_0x285dc2[_0x4ab973(0x1df)]('\x5c')||_0x285dc2['includes']('..'))throw CliErrors[_0x4ab973(0x1d6)]('Unsafe\x20'+_0x3c5aea+_0x4ab973(0x1e5)+_0x285dc2);return _0x285dc2;}function trimmedEnv(_0x409f1c){const _0x4bca8c=a163_0x4cf086,_0x5a2291=productEnv(_0x409f1c)?.[_0x4bca8c(0x1cd)]();return _0x5a2291?_0x5a2291:undefined;}
@@ -1 +1 @@
1
- (function(_0x1b8dca,_0x357736){const _0x4ddaff=a160_0x2c98,_0x103e21=_0x1b8dca();while(!![]){try{const _0x4d624d=-parseInt(_0x4ddaff(0x1d1))/0x1*(-parseInt(_0x4ddaff(0x1b1))/0x2)+parseInt(_0x4ddaff(0x1c0))/0x3*(parseInt(_0x4ddaff(0x1a4))/0x4)+parseInt(_0x4ddaff(0x1af))/0x5*(parseInt(_0x4ddaff(0x1d4))/0x6)+-parseInt(_0x4ddaff(0x1c7))/0x7+parseInt(_0x4ddaff(0x1a5))/0x8+parseInt(_0x4ddaff(0x1d6))/0x9+parseInt(_0x4ddaff(0x1b2))/0xa*(-parseInt(_0x4ddaff(0x1ba))/0xb);if(_0x4d624d===_0x357736)break;else _0x103e21['push'](_0x103e21['shift']());}catch(_0x1866dd){_0x103e21['push'](_0x103e21['shift']());}}}(a160_0x2449,0x9979c));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a160_0x97acaf}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';function a160_0x2c98(_0x237e21,_0x550e69){_0x237e21=_0x237e21-0x196;const _0x244926=a160_0x2449();let _0x2c98d8=_0x244926[_0x237e21];return _0x2c98d8;}import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x11a4d8,_0x14475e,_0x279a71={}){const _0x5a8a95=a160_0x2c98,_0x4320ec=resolvePushDirectoryRoot(_0x11a4d8),_0x240213=readPushMetadataIfPresent(resolve(_0x4320ec,METADATA_FILE),{'ignoreInvalidMetadata':_0x279a71['ignoreInvalidMetadata']});if(_0x240213?.[_0x5a8a95(0x1ac)]&&_0x240213[_0x5a8a95(0x1ac)]!==_0x14475e&&!_0x279a71['allowAppCodeRetarget']&&!_0x279a71['ignoreMetadataAppCodeMismatch'])throw CliErrors[_0x5a8a95(0x1a6)](_0x5a8a95(0x1ce)+_0x240213['appCode']+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x14475e+'\x22.');const _0x11be59=resolvePushSkillCode(_0x4320ec,_0x14475e,_0x240213,_0x279a71);if(!_0x11be59)throw CliErrors[_0x5a8a95(0x1a6)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0x5a8a95(0x1b0));return{'dir':_0x4320ec,'skillCode':_0x11be59,'metadata':_0x240213};}function a160_0x2449(){const _0x2770bd=['refreshedAt','Skill\x20directory\x20not\x20found:\x20','dir','(unknown)','files','Skill\x20metadata\x20appCode\x20\x22','toLowerCase','isFile','248377GwlFVE','ignoreInvalidMetadata','string','6rCCXUC','company','1566261JGqCFL','name','object','\x20has\x20scope=\x22','isArray','trim','tags','scope','description','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','number','\x20name\x20for\x20SkillHub\x20slug\x20generation.','slice','version','skillName','example','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','isSymbolicLink','displayName','61844OReggC','4436424plZXWl','validation','skillCode','isDirectory','match','replace','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','appCode','length','excludedFilePaths','3535355yaAaUG',',\x20or\x20directory\x20name.','4uuxEaU','1120SPGAxc','Remote\x20Skill\x20','manifest','utf8','Invalid\x20','metadata','unknown','content','62106UasNai','find','some','personal','path','boolean','57CPhKQP','ignoreMetadataForPayload','ignoreMetadataScope','startsWith','targetScope','ignoreMetadataSkillCode','builtin','6756246ZCzQTP','sourceSessionId'];a160_0x2449=function(){return _0x2770bd;};return a160_0x2449();}export function readPushDirectory(_0x187e92,_0x362f31,_0x17dde3={}){const _0x22fa78=a160_0x2c98,_0x2c2a51=resolvePushDirectoryIdentity(_0x187e92,_0x362f31,_0x17dde3),_0x180963=_0x2c2a51[_0x22fa78(0x1cb)],_0x3bf74f=resolve(_0x180963,SKILL_FILE);if(!existsSync(_0x3bf74f)||!lstatSync(_0x3bf74f)[_0x22fa78(0x1d0)]())throw CliErrors[_0x22fa78(0x1a6)]('Missing\x20'+SKILL_FILE+':\x20'+_0x3bf74f);const _0x5bc166=_0x2c2a51[_0x22fa78(0x1b7)],_0x5b2bb1=_0x17dde3[_0x22fa78(0x1c4)]??_0x22fa78(0x1bd);if(!_0x17dde3['ignoreMetadataScope']&&_0x5bc166?.[_0x22fa78(0x198)]==='builtin')throw CliErrors[_0x22fa78(0x1a6)](_0x22fa78(0x19a)+METADATA_FILE+_0x22fa78(0x1d9)+_0x5bc166['scope']+'\x22.');if(!_0x17dde3[_0x22fa78(0x1c2)]&&_0x5b2bb1==='personal'&&_0x5bc166?.['scope']&&_0x5bc166['scope']!==_0x22fa78(0x1bd))throw CliErrors[_0x22fa78(0x1a6)](_0x22fa78(0x1a1)+METADATA_FILE+_0x22fa78(0x1d9)+_0x5bc166[_0x22fa78(0x198)]+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x180963+_0x22fa78(0x1ab));const _0xef562b=scanSkillDirectory(_0x180963,{'excludedFilePaths':_0x17dde3[_0x22fa78(0x1ae)]}),_0x2a6fea=buildSkillPackage(_0xef562b),_0x211cec=readFileSync(_0x3bf74f,_0x22fa78(0x1b5)),_0x1d93fd=_0x2c2a51[_0x22fa78(0x1a7)],_0x30f4cb=_0x17dde3[_0x22fa78(0x1c1)]?undefined:_0x5bc166,_0x2a570f=readSkillDisplayName(_0x211cec);return{'skillCode':_0x1d93fd,'metadata':_0x5bc166,'frontmatterDisplayName':_0x2a570f,'input':{'skillCode':_0x1d93fd,'skillName':_0x2a570f??_0x30f4cb?.[_0x22fa78(0x19f)],'description':_0x30f4cb?.['description'],'content':_0x211cec,'files':_0x2a6fea[_0x22fa78(0x1b4)],'packageBase64':_0x2a6fea['packageBase64'],'tags':_0x30f4cb?.[_0x22fa78(0x197)],'version':_0x30f4cb?.[_0x22fa78(0x19e)],'sourceSessionId':_0x30f4cb?.[_0x22fa78(0x1c8)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x571f32,_0x24e4b3,_0x5fe483,_0x207e49={}){const _0x476744=a160_0x2c98,_0x1a62ec=resolvePushDirectoryRoot(_0x571f32),_0x1002c4=readPushMetadataIfPresent(resolve(_0x1a62ec,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x3a42c0=requireRemoteScope(_0x24e4b3),_0xbb02c6=readLocalSkillContent(_0x1a62ec),_0xd3cddf={..._0x24e4b3,'appCode':_0x24e4b3[_0x476744(0x1ac)]??_0x5fe483,'skillName':_0x24e4b3['skillName']??_0x1002c4?.['skillName'],'description':_0x24e4b3['description']??_0x1002c4?.[_0x476744(0x199)],'example':_0x24e4b3['example']??_0x1002c4?.[_0x476744(0x1a0)],'tags':Array[_0x476744(0x1da)](_0x24e4b3[_0x476744(0x197)])?_0x24e4b3[_0x476744(0x197)]:_0x1002c4?.[_0x476744(0x197)],'sourceSessionId':_0x24e4b3[_0x476744(0x1c8)]??_0x1002c4?.[_0x476744(0x1c8)],'content':_0x24e4b3[_0x476744(0x1b9)]??_0xbb02c6},_0x1df278=buildMetadata(_0xd3cddf,_0x3a42c0,_0x5fe483,contentHash(_0xbb02c6),_0x207e49[_0x476744(0x1c9)]);writeJsonAtomic(resolve(_0x1a62ec,METADATA_FILE),_0x1df278);}export function recordPushedRuntimeSkill(_0x2e6395,_0x3d65ed,_0x425047,_0x4e20e4={}){const _0xffbf60=a160_0x2c98,_0x5b164b=resolvePushDirectoryRoot(_0x2e6395),_0x5dc820=scanSkillDirectory(_0x5b164b),_0x2a3ab9=_0x5dc820[_0xffbf60(0x1bb)](_0x20f70f=>_0x20f70f['path']===SKILL_FILE),_0x7b9662=_0x2a3ab9?fileText(_0x2a3ab9):'',_0x3e71df=tryNormalizePackageManifest(_0x3d65ed['files']),_0x503ccb={..._0x3d65ed,'content':_0x3d65ed[_0xffbf60(0x1b9)]??_0x7b9662,'files':_0x3e71df},_0xedb044=_0x3e71df?normalizeLocalFiles(_0x5dc820)['filter'](_0xfcb2e6=>_0x3e71df[_0xffbf60(0x1cd)][_0xffbf60(0x1bc)](_0x457168=>_0x457168['path']===_0xfcb2e6[_0xffbf60(0x1be)])):undefined,_0x5f0129=buildMetadata(_0x503ccb,_0x4e20e4[_0xffbf60(0x198)]??_0xffbf60(0x1bd),_0x425047,contentHash(_0x503ccb['content']??''),_0x4e20e4['pushedAt'],_0xedb044);writeJsonAtomic(resolve(_0x5b164b,METADATA_FILE),_0x5f0129);}export function deriveSkillCodeFromDirectory(_0x491500,_0x2e7062){const _0x3cc67f=a160_0x2c98,_0x2f0f86=basename(resolve(_0x491500)),_0x1ac9f8=_0x2e7062+'--';return _0x2f0f86[_0x3cc67f(0x1c3)](_0x1ac9f8)?_0x2f0f86[_0x3cc67f(0x19d)](_0x1ac9f8[_0x3cc67f(0x1ad)]):_0x2f0f86;}function resolvePushSkillCode(_0x3a3de3,_0x5b5465,_0x49edac,_0x47c099){const _0x11fec5=a160_0x2c98,_0x55338c=deriveSkillCodeFromSkillFile(_0x3a3de3)||deriveSkillCodeFromDirectory(_0x3a3de3,_0x5b5465);if(_0x47c099[_0x11fec5(0x1c5)])return _0x55338c;return _0x49edac?.[_0x11fec5(0x1a7)]?.['trim']()||_0x55338c;}function deriveSkillCodeFromSkillFile(_0xde76a6){const _0x504294=a160_0x2c98,_0x4ecfde=resolve(_0xde76a6,SKILL_FILE);if(!existsSync(_0x4ecfde)||!lstatSync(_0x4ecfde)[_0x504294(0x1d0)]())return undefined;const _0x43443d=readFileSync(_0x4ecfde,_0x504294(0x1b5)),_0x5a171b=_0x43443d[_0x504294(0x1a9)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x5a171b)return undefined;const _0x133c3d=parseFrontmatterObject(_0x5a171b[0x1]??''),_0xe36a2f=scalarToString(_0x133c3d?.[_0x504294(0x1d7)]);return _0xe36a2f?slugifySkillName(_0xe36a2f):undefined;}function readSkillDisplayName(_0x16c3c5){const _0x2aa6f6=a160_0x2c98,_0x2e0218=_0x16c3c5['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2e0218)return undefined;const _0x99c0d8=parseFrontmatterObject(_0x2e0218[0x1]??'');return scalarToString(_0x99c0d8?.[_0x2aa6f6(0x1a3)]);}function slugifySkillName(_0x3dfef5){const _0x17953b=a160_0x2c98,_0x48b025=_0x3dfef5[_0x17953b(0x196)]()[_0x17953b(0x1cf)]()[_0x17953b(0x1aa)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')['replace'](/-+$/,'')[_0x17953b(0x1aa)](/-{2,}/g,'-');if(!_0x48b025)throw CliErrors[_0x17953b(0x1a6)](_0x17953b(0x1b6)+SKILL_FILE+_0x17953b(0x19c));return _0x48b025;}function parseFrontmatterObject(_0x2938c6){const _0x12c65c=a160_0x2c98;try{const _0x2739da=a160_0x97acaf(_0x2938c6);return _0x2739da&&typeof _0x2739da===_0x12c65c(0x1d8)&&!Array[_0x12c65c(0x1da)](_0x2739da)?_0x2739da:undefined;}catch{return undefined;}}function scalarToString(_0x57152b){const _0x184ddf=a160_0x2c98;if(typeof _0x57152b===_0x184ddf(0x1d3))return _0x57152b[_0x184ddf(0x196)]();if(typeof _0x57152b===_0x184ddf(0x19b)||typeof _0x57152b===_0x184ddf(0x1bf))return String(_0x57152b);return undefined;}function resolvePushDirectoryRoot(_0x10fb19){const _0x17e99a=a160_0x2c98,_0x169b55=resolve(_0x10fb19);if(!existsSync(_0x169b55))throw CliErrors[_0x17e99a(0x1a6)](_0x17e99a(0x1ca)+_0x10fb19);const _0x472fdd=lstatSync(_0x169b55);if(_0x472fdd['isDirectory']())return _0x169b55;if(_0x472fdd[_0x17e99a(0x1a2)]()){const _0x12c928=realpathSync(_0x169b55);if(lstatSync(_0x12c928)[_0x17e99a(0x1a8)]())return _0x12c928;}throw CliErrors['validation'](_0x17e99a(0x1ca)+_0x10fb19);}function requireRemoteScope(_0x10bce6){const _0x5c0deb=a160_0x2c98;if(_0x10bce6['scope']===_0x5c0deb(0x1bd)||_0x10bce6[_0x5c0deb(0x198)]===_0x5c0deb(0x1d5)||_0x10bce6[_0x5c0deb(0x198)]===_0x5c0deb(0x1c6))return _0x10bce6[_0x5c0deb(0x198)];throw CliErrors[_0x5c0deb(0x1a6)](_0x5c0deb(0x1b3)+(_0x10bce6[_0x5c0deb(0x1a7)]||_0x5c0deb(0x1cc))+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x10bce6['scope']??_0x5c0deb(0x1b8))+'\x22.');}function readLocalSkillContent(_0x1cbe07){const _0xb9a23a=a160_0x2c98,_0x1065e4=resolve(_0x1cbe07,SKILL_FILE);return existsSync(_0x1065e4)&&lstatSync(_0x1065e4)[_0xb9a23a(0x1d0)]()?readFileSync(_0x1065e4,'utf8'):'';}function readPushMetadataIfPresent(_0x13db10,_0x5421f8={}){const _0x61a28b=a160_0x2c98;try{return readMetadataIfPresent(_0x13db10);}catch(_0x128564){if(_0x5421f8[_0x61a28b(0x1d2)])return undefined;throw _0x128564;}}
1
+ function a164_0x5820(_0x11eb3c,_0x43e6e1){_0x11eb3c=_0x11eb3c-0x84;const _0xd7d5d0=a164_0xd7d5();let _0x582053=_0xd7d5d0[_0x11eb3c];return _0x582053;}(function(_0x20ea79,_0x903aa8){const _0x45056e=a164_0x5820,_0x4ebeb9=_0x20ea79();while(!![]){try{const _0x50893c=parseInt(_0x45056e(0xbf))/0x1*(parseInt(_0x45056e(0x8d))/0x2)+parseInt(_0x45056e(0xa5))/0x3*(parseInt(_0x45056e(0x94))/0x4)+parseInt(_0x45056e(0xc6))/0x5*(parseInt(_0x45056e(0xc3))/0x6)+-parseInt(_0x45056e(0xc1))/0x7+parseInt(_0x45056e(0xc9))/0x8*(parseInt(_0x45056e(0xca))/0x9)+-parseInt(_0x45056e(0xa9))/0xa*(-parseInt(_0x45056e(0xa0))/0xb)+-parseInt(_0x45056e(0xc4))/0xc;if(_0x50893c===_0x903aa8)break;else _0x4ebeb9['push'](_0x4ebeb9['shift']());}catch(_0x6f1202){_0x4ebeb9['push'](_0x4ebeb9['shift']());}}}(a164_0xd7d5,0x4da30));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a164_0xa56a98}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x25d548,_0x5d6a0a,_0x494a52={}){const _0x1afefc=a164_0x5820,_0x51d8a9=resolvePushDirectoryRoot(_0x25d548),_0x5be5fc=readPushMetadataIfPresent(resolve(_0x51d8a9,METADATA_FILE),{'ignoreInvalidMetadata':_0x494a52[_0x1afefc(0x8a)]});if(_0x5be5fc?.[_0x1afefc(0xb8)]&&_0x5be5fc[_0x1afefc(0xb8)]!==_0x5d6a0a&&!_0x494a52[_0x1afefc(0x9e)]&&!_0x494a52[_0x1afefc(0xc2)])throw CliErrors[_0x1afefc(0x8c)](_0x1afefc(0x84)+_0x5be5fc['appCode']+_0x1afefc(0x90)+_0x5d6a0a+'\x22.');const _0x38ce25=resolvePushSkillCode(_0x51d8a9,_0x5d6a0a,_0x5be5fc,_0x494a52);if(!_0x38ce25)throw CliErrors[_0x1afefc(0x8c)](_0x1afefc(0xbe)+SKILL_FILE+',\x20'+METADATA_FILE+_0x1afefc(0x9a));return{'dir':_0x51d8a9,'skillCode':_0x38ce25,'metadata':_0x5be5fc};}export function readPushDirectory(_0x30841e,_0xba580b,_0x50cce2={}){const _0x293e36=a164_0x5820,_0x1247e8=resolvePushDirectoryIdentity(_0x30841e,_0xba580b,_0x50cce2),_0x1a0ef6=_0x1247e8['dir'],_0x349850=resolve(_0x1a0ef6,SKILL_FILE);if(!existsSync(_0x349850)||!lstatSync(_0x349850)[_0x293e36(0xb7)]())throw CliErrors[_0x293e36(0x8c)](_0x293e36(0x92)+SKILL_FILE+':\x20'+_0x349850);const _0xe852fd=_0x1247e8[_0x293e36(0x8b)],_0x1e81bc=_0x50cce2[_0x293e36(0xb2)]??'personal';if(!_0x50cce2[_0x293e36(0xa8)]&&_0xe852fd?.[_0x293e36(0xc0)]===_0x293e36(0xcb))throw CliErrors[_0x293e36(0x8c)](_0x293e36(0xc8)+METADATA_FILE+_0x293e36(0xaa)+_0xe852fd[_0x293e36(0xc0)]+'\x22.');if(!_0x50cce2['ignoreMetadataScope']&&_0x1e81bc===_0x293e36(0xa7)&&_0xe852fd?.[_0x293e36(0xc0)]&&_0xe852fd['scope']!==_0x293e36(0xa7))throw CliErrors[_0x293e36(0x8c)](_0x293e36(0xad)+METADATA_FILE+_0x293e36(0xaa)+_0xe852fd[_0x293e36(0xc0)]+'\x22.',_0x293e36(0xa1)+_0x1a0ef6+_0x293e36(0xa4));const _0x53c9e9=scanSkillDirectory(_0x1a0ef6,{'excludedFilePaths':_0x50cce2[_0x293e36(0x88)]}),_0x26833c=buildSkillPackage(_0x53c9e9),_0x3e146e=readFileSync(_0x349850,_0x293e36(0x97)),_0x4207ae=_0x1247e8[_0x293e36(0xaf)],_0x5dc263=_0x50cce2[_0x293e36(0x86)]?undefined:_0xe852fd,_0x876bbd=readSkillDisplayName(_0x3e146e);return{'skillCode':_0x4207ae,'metadata':_0xe852fd,'frontmatterDisplayName':_0x876bbd,'input':{'skillCode':_0x4207ae,'skillName':_0x876bbd??_0x5dc263?.[_0x293e36(0x93)],'description':_0x5dc263?.['description'],'content':_0x3e146e,'files':_0x26833c[_0x293e36(0xb0)],'packageBase64':_0x26833c['packageBase64'],'tags':_0x5dc263?.['tags'],'version':_0x5dc263?.[_0x293e36(0xba)],'sourceSessionId':_0x5dc263?.[_0x293e36(0xb4)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x418baa,_0x11394b,_0x42516b,_0x96515={}){const _0x313b41=a164_0x5820,_0x1b14a2=resolvePushDirectoryRoot(_0x418baa),_0x145aee=readPushMetadataIfPresent(resolve(_0x1b14a2,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x3ad245=requireRemoteScope(_0x11394b),_0x374daa=readLocalSkillContent(_0x1b14a2),_0x5de29f={..._0x11394b,'appCode':_0x11394b['appCode']??_0x42516b,'skillName':_0x11394b['skillName']??_0x145aee?.[_0x313b41(0x93)],'description':_0x11394b[_0x313b41(0xab)]??_0x145aee?.[_0x313b41(0xab)],'example':_0x11394b[_0x313b41(0x98)]??_0x145aee?.[_0x313b41(0x98)],'tags':Array[_0x313b41(0xa3)](_0x11394b[_0x313b41(0xb5)])?_0x11394b[_0x313b41(0xb5)]:_0x145aee?.[_0x313b41(0xb5)],'sourceSessionId':_0x11394b[_0x313b41(0xb4)]??_0x145aee?.[_0x313b41(0xb4)],'content':_0x11394b[_0x313b41(0x99)]??_0x374daa},_0x2bf71e=buildMetadata(_0x5de29f,_0x3ad245,_0x42516b,contentHash(_0x374daa),_0x96515[_0x313b41(0x96)]);writeJsonAtomic(resolve(_0x1b14a2,METADATA_FILE),_0x2bf71e);}export function recordPushedRuntimeSkill(_0x2f3194,_0x4858c6,_0x291dec,_0x50da2e={}){const _0x37acb6=a164_0x5820,_0x4355d2=resolvePushDirectoryRoot(_0x2f3194),_0x3c1ea2=scanSkillDirectory(_0x4355d2),_0x3e6791=_0x3c1ea2[_0x37acb6(0x8f)](_0x5c1512=>_0x5c1512[_0x37acb6(0x91)]===SKILL_FILE),_0x4cd8b1=_0x3e6791?fileText(_0x3e6791):'',_0x5f561c=tryNormalizePackageManifest(_0x4858c6[_0x37acb6(0x9f)]),_0x22c35a={..._0x4858c6,'content':_0x4858c6['content']??_0x4cd8b1,'files':_0x5f561c},_0x3b6d27=_0x5f561c?normalizeLocalFiles(_0x3c1ea2)[_0x37acb6(0xb6)](_0x1974c0=>_0x5f561c[_0x37acb6(0x9f)][_0x37acb6(0x9c)](_0x50d2da=>_0x50d2da[_0x37acb6(0x91)]===_0x1974c0[_0x37acb6(0x91)])):undefined,_0x3f109b=buildMetadata(_0x22c35a,_0x50da2e[_0x37acb6(0xc0)]??_0x37acb6(0xa7),_0x291dec,contentHash(_0x22c35a['content']??''),_0x50da2e[_0x37acb6(0xa2)],_0x3b6d27);writeJsonAtomic(resolve(_0x4355d2,METADATA_FILE),_0x3f109b);}function a164_0xd7d5(){const _0x18b2d6=['Invalid\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','replace','skillCode','manifest','(unknown)','targetScope','Remote\x20Skill\x20','sourceSessionId','tags','filter','isFile','appCode','string','version','\x20name\x20for\x20SkillHub\x20slug\x20generation.','isSymbolicLink','isDirectory','Unable\x20to\x20resolve\x20skillCode\x20from\x20','26843RNlJel','scope','4304503mrkeiU','ignoreMetadataAppCodeMismatch','9630bOjLAE','17086584cIcQHr','name','1910IYMxpj','length','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','2632VxNAox','10566aDGPMe','builtin','Skill\x20metadata\x20appCode\x20\x22','match','ignoreMetadataForPayload','ignoreMetadataSkillCode','excludedFilePaths','startsWith','ignoreInvalidMetadata','metadata','validation','46MKkXZb','Skill\x20directory\x20not\x20found:\x20','find','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','path','Missing\x20','skillName','2732pZSIaQ','object','refreshedAt','utf8','example','content',',\x20or\x20directory\x20name.','slice','some','\x20has\x20unsupported\x20scope\x20\x22','allowAppCodeRetarget','files','511203VRCMEO','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','pushedAt','isArray','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','597GwzLjh','trim','personal','ignoreMetadataScope','130SwoRAG','\x20has\x20scope=\x22','description'];a164_0xd7d5=function(){return _0x18b2d6;};return a164_0xd7d5();}export function deriveSkillCodeFromDirectory(_0x2a0238,_0x4fbf50){const _0x1c807a=a164_0x5820,_0x5ef44d=basename(resolve(_0x2a0238)),_0x1aa38f=_0x4fbf50+'--';return _0x5ef44d[_0x1c807a(0x89)](_0x1aa38f)?_0x5ef44d[_0x1c807a(0x9b)](_0x1aa38f[_0x1c807a(0xc7)]):_0x5ef44d;}function resolvePushSkillCode(_0x13ad97,_0x1324c0,_0x2e9e93,_0x457b65){const _0xc4936e=a164_0x5820,_0x1b5fd1=deriveSkillCodeFromSkillFile(_0x13ad97)||deriveSkillCodeFromDirectory(_0x13ad97,_0x1324c0);if(_0x457b65[_0xc4936e(0x87)])return _0x1b5fd1;return _0x2e9e93?.[_0xc4936e(0xaf)]?.[_0xc4936e(0xa6)]()||_0x1b5fd1;}function deriveSkillCodeFromSkillFile(_0x59b662){const _0x3f80e3=a164_0x5820,_0x3ff110=resolve(_0x59b662,SKILL_FILE);if(!existsSync(_0x3ff110)||!lstatSync(_0x3ff110)['isFile']())return undefined;const _0x18ee0e=readFileSync(_0x3ff110,_0x3f80e3(0x97)),_0x56edbc=_0x18ee0e[_0x3f80e3(0x85)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x56edbc)return undefined;const _0x338d17=parseFrontmatterObject(_0x56edbc[0x1]??''),_0x5a17d9=scalarToString(_0x338d17?.[_0x3f80e3(0xc5)]);return _0x5a17d9?slugifySkillName(_0x5a17d9):undefined;}function readSkillDisplayName(_0x56da54){const _0x549db3=_0x56da54['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x549db3)return undefined;const _0x3ed75b=parseFrontmatterObject(_0x549db3[0x1]??'');return scalarToString(_0x3ed75b?.['displayName']);}function slugifySkillName(_0xe6b11d){const _0x5a3ea2=a164_0x5820,_0x563fe6=_0xe6b11d[_0x5a3ea2(0xa6)]()['toLowerCase']()[_0x5a3ea2(0xae)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')['replace'](/-+$/,'')[_0x5a3ea2(0xae)](/-{2,}/g,'-');if(!_0x563fe6)throw CliErrors[_0x5a3ea2(0x8c)](_0x5a3ea2(0xac)+SKILL_FILE+_0x5a3ea2(0xbb));return _0x563fe6;}function parseFrontmatterObject(_0x42b8b5){const _0x2569f8=a164_0x5820;try{const _0x487d28=a164_0xa56a98(_0x42b8b5);return _0x487d28&&typeof _0x487d28===_0x2569f8(0x95)&&!Array[_0x2569f8(0xa3)](_0x487d28)?_0x487d28:undefined;}catch{return undefined;}}function scalarToString(_0x1123b6){const _0x80b71e=a164_0x5820;if(typeof _0x1123b6===_0x80b71e(0xb9))return _0x1123b6[_0x80b71e(0xa6)]();if(typeof _0x1123b6==='number'||typeof _0x1123b6==='boolean')return String(_0x1123b6);return undefined;}function resolvePushDirectoryRoot(_0x5555c0){const _0x3def5c=a164_0x5820,_0x1e01f3=resolve(_0x5555c0);if(!existsSync(_0x1e01f3))throw CliErrors[_0x3def5c(0x8c)](_0x3def5c(0x8e)+_0x5555c0);const _0x1b8cd4=lstatSync(_0x1e01f3);if(_0x1b8cd4[_0x3def5c(0xbd)]())return _0x1e01f3;if(_0x1b8cd4[_0x3def5c(0xbc)]()){const _0x16b7b2=realpathSync(_0x1e01f3);if(lstatSync(_0x16b7b2)[_0x3def5c(0xbd)]())return _0x16b7b2;}throw CliErrors[_0x3def5c(0x8c)](_0x3def5c(0x8e)+_0x5555c0);}function requireRemoteScope(_0xd2b41c){const _0x5c334b=a164_0x5820;if(_0xd2b41c['scope']===_0x5c334b(0xa7)||_0xd2b41c[_0x5c334b(0xc0)]==='company'||_0xd2b41c[_0x5c334b(0xc0)]===_0x5c334b(0xcb))return _0xd2b41c['scope'];throw CliErrors[_0x5c334b(0x8c)](_0x5c334b(0xb3)+(_0xd2b41c['skillCode']||_0x5c334b(0xb1))+_0x5c334b(0x9d)+(_0xd2b41c[_0x5c334b(0xc0)]??'unknown')+'\x22.');}function readLocalSkillContent(_0x46d4bd){const _0x29f3eb=a164_0x5820,_0x5027a9=resolve(_0x46d4bd,SKILL_FILE);return existsSync(_0x5027a9)&&lstatSync(_0x5027a9)[_0x29f3eb(0xb7)]()?readFileSync(_0x5027a9,'utf8'):'';}function readPushMetadataIfPresent(_0x58e7e8,_0xb91fb0={}){const _0x58cf45=a164_0x5820;try{return readMetadataIfPresent(_0x58e7e8);}catch(_0x5dcece){if(_0xb91fb0[_0x58cf45(0x8a)])return undefined;throw _0x5dcece;}}
@@ -1 +1 @@
1
- function a161_0x2f8d(_0x540e73,_0x4c6107){_0x540e73=_0x540e73-0x1d8;const _0x18b5de=a161_0x18b5();let _0x2f8d73=_0x18b5de[_0x540e73];return _0x2f8d73;}function a161_0x18b5(){const _0x53e84d=['171877dKEufr','4531736Rpvurg','validation','1093890mahoOQ','company','6esThmR','length','135246VscWAN','55WFavlp','33039vRsISP','builtin','2410490DSZucC','Unsupported\x20runtime\x20Skill\x20scope:\x20','push','2528NgZBmi','6112827REBfXz','personal'];a161_0x18b5=function(){return _0x53e84d;};return a161_0x18b5();}(function(_0x12cd1c,_0x29abb2){const _0xf28b4c=a161_0x2f8d,_0x540156=_0x12cd1c();while(!![]){try{const _0x436d51=-parseInt(_0xf28b4c(0x1d8))/0x1*(parseInt(_0xf28b4c(0x1dd))/0x2)+parseInt(_0xf28b4c(0x1db))/0x3+parseInt(_0xf28b4c(0x1d9))/0x4+-parseInt(_0xf28b4c(0x1e0))/0x5*(parseInt(_0xf28b4c(0x1df))/0x6)+-parseInt(_0xf28b4c(0x1e7))/0x7+parseInt(_0xf28b4c(0x1e6))/0x8*(parseInt(_0xf28b4c(0x1e1))/0x9)+-parseInt(_0xf28b4c(0x1e3))/0xa;if(_0x436d51===_0x29abb2)break;else _0x540156['push'](_0x540156['shift']());}catch(_0x5ee69e){_0x540156['push'](_0x540156['shift']());}}}(a161_0x18b5,0xbe5bc));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0xc8056f){const _0x65b008=a161_0x2f8d,_0xf2467c=_0xc8056f&&_0xc8056f[_0x65b008(0x1de)]>0x0?_0xc8056f:[_0x65b008(0x1e8),'company',_0x65b008(0x1e2)],_0x1ea740=[];for(const _0x379164 of _0xf2467c){if(!isRuntimeSkillScope(_0x379164))throw CliErrors[_0x65b008(0x1da)](_0x65b008(0x1e4)+_0x379164);!_0x1ea740['includes'](_0x379164)&&_0x1ea740[_0x65b008(0x1e5)](_0x379164);}return _0x1ea740;}export function isRuntimeSkillScope(_0x6ccbcd){const _0xdecbc0=a161_0x2f8d;return _0x6ccbcd===_0xdecbc0(0x1e8)||_0x6ccbcd===_0xdecbc0(0x1dc)||_0x6ccbcd===_0xdecbc0(0x1e2);}
1
+ (function(_0x58a09f,_0x1f0a4c){const _0x1b0b94=a165_0xe166,_0x24a484=_0x58a09f();while(!![]){try{const _0x42c83b=parseInt(_0x1b0b94(0x171))/0x1*(-parseInt(_0x1b0b94(0x16f))/0x2)+-parseInt(_0x1b0b94(0x172))/0x3*(-parseInt(_0x1b0b94(0x173))/0x4)+-parseInt(_0x1b0b94(0x164))/0x5*(parseInt(_0x1b0b94(0x163))/0x6)+parseInt(_0x1b0b94(0x16b))/0x7+-parseInt(_0x1b0b94(0x16d))/0x8*(-parseInt(_0x1b0b94(0x166))/0x9)+parseInt(_0x1b0b94(0x16a))/0xa*(parseInt(_0x1b0b94(0x167))/0xb)+-parseInt(_0x1b0b94(0x16e))/0xc*(parseInt(_0x1b0b94(0x170))/0xd);if(_0x42c83b===_0x1f0a4c)break;else _0x24a484['push'](_0x24a484['shift']());}catch(_0x2759bc){_0x24a484['push'](_0x24a484['shift']());}}}(a165_0x3327,0x6017e));function a165_0x3327(){const _0x50ebbb=['1096616VUsibU','161196wIiYrJ','2ElEltX','130yvTzgp','731057VIawRo','411PjlEYj','13268OIHKoR','builtin','validation','21498XPsDzJ','515XeJYix','company','18ZmYeUk','1210gFVTwq','length','includes','38900eLopus','3300857mgtedc','personal'];a165_0x3327=function(){return _0x50ebbb;};return a165_0x3327();}function a165_0xe166(_0xd8b28b,_0x252543){_0xd8b28b=_0xd8b28b-0x163;const _0x33274a=a165_0x3327();let _0xe166bb=_0x33274a[_0xd8b28b];return _0xe166bb;}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x538e07){const _0x22aa0d=a165_0xe166,_0x393ecb=_0x538e07&&_0x538e07[_0x22aa0d(0x168)]>0x0?_0x538e07:['personal','company','builtin'],_0x1f84fc=[];for(const _0x1e0097 of _0x393ecb){if(!isRuntimeSkillScope(_0x1e0097))throw CliErrors[_0x22aa0d(0x175)]('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0x1e0097);!_0x1f84fc[_0x22aa0d(0x169)](_0x1e0097)&&_0x1f84fc['push'](_0x1e0097);}return _0x1f84fc;}export function isRuntimeSkillScope(_0x2a9d9e){const _0x105c7b=a165_0xe166;return _0x2a9d9e===_0x105c7b(0x16c)||_0x2a9d9e===_0x105c7b(0x165)||_0x2a9d9e===_0x105c7b(0x174);}
@@ -1 +1 @@
1
- function a163_0x1701(){const _0x3e9480=['name','92oIwjGD','124faoZrx','63426IrSASS','188919wzeNoW','map','1333354kCtPfG','2107856szSeoZ','125UPdBkw','validation_error','sort','code','24933zsyfyZ','entries','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','1980-01-01T00:00:00.000Z','12uIMqen','object','from','3986OKdrVL','770805mXEDEa','endsWith','validation','130sPltGQ','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'];a163_0x1701=function(){return _0x3e9480;};return a163_0x1701();}function a163_0x4f2c(_0x137373,_0x3d76a5){_0x137373=_0x137373-0xd2;const _0x170104=a163_0x1701();let _0x4f2ce2=_0x170104[_0x137373];return _0x4f2ce2;}const a163_0x2943d7=a163_0x4f2c;(function(_0x4710d7,_0x415298){const _0x33f058=a163_0x4f2c,_0x199bae=_0x4710d7();while(!![]){try{const _0x5d109e=parseInt(_0x33f058(0xe3))/0x1*(parseInt(_0x33f058(0xdb))/0x2)+parseInt(_0x33f058(0xd4))/0x3*(parseInt(_0x33f058(0xe2))/0x4)+parseInt(_0x33f058(0xe9))/0x5*(parseInt(_0x33f058(0xe4))/0x6)+parseInt(_0x33f058(0xdc))/0x7+-parseInt(_0x33f058(0xe8))/0x8+parseInt(_0x33f058(0xe5))/0x9*(-parseInt(_0x33f058(0xdf))/0xa)+-parseInt(_0x33f058(0xe7))/0xb*(parseInt(_0x33f058(0xd8))/0xc);if(_0x5d109e===_0x415298)break;else _0x199bae['push'](_0x199bae['shift']());}catch(_0x5c15ea){_0x199bae['push'](_0x199bae['shift']());}}}(a163_0x1701,0x25dd8));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a163_0x2943d7(0xd7));export function createDeterministicZipPackage(_0x259118){const _0x175f06={};for(const _0x5b1339 of normalizeLocalFiles(_0x259118)){_0x175f06[_0x5b1339['path']]=fileContent(_0x5b1339);}return Buffer['from'](zipSync(_0x175f06,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x5d21fd){const _0x99492=a163_0x2943d7;if(_0x5d21fd['length']<0x16)throw CliErrors[_0x99492(0xde)](_0x99492(0xd6));let _0x4a71be;try{_0x4a71be=unzipSync(_0x5d21fd,{'filter'(_0xd5defc){const _0x7812a8=_0x99492,_0x405c99=normalizeSkillRelativePath(_0xd5defc[_0x7812a8(0xe1)]);if(_0x405c99[_0x7812a8(0xdd)]('/'))throw CliErrors[_0x7812a8(0xde)](_0x7812a8(0xe0)+_0x405c99);return!![];}});}catch(_0x38372c){if(isRuntimeSkillValidationError(_0x38372c))throw _0x38372c;throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object[_0x99492(0xd5)](_0x4a71be)[_0x99492(0xe6)](([_0x443112,_0x221b53])=>({'path':normalizeSkillRelativePath(_0x443112),'bytes':Buffer[_0x99492(0xda)](_0x221b53)}))[_0x99492(0xd2)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x597eb3){const _0x390bc6=a163_0x2943d7;return typeof _0x597eb3===_0x390bc6(0xd9)&&_0x597eb3!==null&&_0x390bc6(0xd3)in _0x597eb3&&_0x597eb3[_0x390bc6(0xd3)]===_0x390bc6(0xea);}
1
+ const a167_0x42d752=a167_0x589f;(function(_0x5cb6a0,_0x555c48){const _0x2f5a28=a167_0x589f,_0x2dead8=_0x5cb6a0();while(!![]){try{const _0x586202=-parseInt(_0x2f5a28(0x1ce))/0x1+parseInt(_0x2f5a28(0x1cd))/0x2+-parseInt(_0x2f5a28(0x1c0))/0x3+-parseInt(_0x2f5a28(0x1c9))/0x4+-parseInt(_0x2f5a28(0x1cc))/0x5*(parseInt(_0x2f5a28(0x1bd))/0x6)+parseInt(_0x2f5a28(0x1c3))/0x7+parseInt(_0x2f5a28(0x1c4))/0x8;if(_0x586202===_0x555c48)break;else _0x2dead8['push'](_0x2dead8['shift']());}catch(_0x1ab3c2){_0x2dead8['push'](_0x2dead8['shift']());}}}(a167_0x366c,0xc7dd5));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a167_0x366c(){const _0x105736=['724080rEuCJD','from','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','1862140RAZAAR','24196256ITHWDR','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','entries','object','endsWith','1753696uXsWRS','path','1980-01-01T00:00:00.000Z','460hVvKSh','129344TDmUEH','1219787MLuVjg','validation','name','sort','41544rqOiOq','validation_error','code'];a167_0x366c=function(){return _0x105736;};return a167_0x366c();}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a167_0x42d752(0x1cb));export function createDeterministicZipPackage(_0x53c183){const _0x36e372=a167_0x42d752,_0xbf6210={};for(const _0x3232cc of normalizeLocalFiles(_0x53c183)){_0xbf6210[_0x3232cc[_0x36e372(0x1ca)]]=fileContent(_0x3232cc);}return Buffer[_0x36e372(0x1c1)](zipSync(_0xbf6210,{'level':0x0,'mtime':ZIP_MTIME}));}function a167_0x589f(_0x4c137c,_0x48cdf7){_0x4c137c=_0x4c137c-0x1ba;const _0x366c35=a167_0x366c();let _0x589fa7=_0x366c35[_0x4c137c];return _0x589fa7;}export function parseZipPackage(_0x3fe102){const _0x3afb4c=a167_0x42d752;if(_0x3fe102['length']<0x16)throw CliErrors[_0x3afb4c(0x1ba)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x4c9fd6;try{_0x4c9fd6=unzipSync(_0x3fe102,{'filter'(_0x500e91){const _0x2eb237=_0x3afb4c,_0x387029=normalizeSkillRelativePath(_0x500e91[_0x2eb237(0x1bb)]);if(_0x387029[_0x2eb237(0x1c8)]('/'))throw CliErrors[_0x2eb237(0x1ba)](_0x2eb237(0x1c5)+_0x387029);return!![];}});}catch(_0x42e4fd){if(isRuntimeSkillValidationError(_0x42e4fd))throw _0x42e4fd;throw CliErrors[_0x3afb4c(0x1ba)](_0x3afb4c(0x1c2));}return Object[_0x3afb4c(0x1c6)](_0x4c9fd6)['map'](([_0x446e30,_0x4da192])=>({'path':normalizeSkillRelativePath(_0x446e30),'bytes':Buffer[_0x3afb4c(0x1c1)](_0x4da192)}))[_0x3afb4c(0x1bc)](compareSkillFiles);}function isRuntimeSkillValidationError(_0xa2da53){const _0x46fe11=a167_0x42d752;return typeof _0xa2da53===_0x46fe11(0x1c7)&&_0xa2da53!==null&&_0x46fe11(0x1bf)in _0xa2da53&&_0xa2da53[_0x46fe11(0x1bf)]===_0x46fe11(0x1be);}
@@ -1 +1 @@
1
- (function(_0x5078a4,_0x14a7a2){const _0x167d09=a164_0x3848,_0x250283=_0x5078a4();while(!![]){try{const _0x266f3b=parseInt(_0x167d09(0xa1))/0x1+parseInt(_0x167d09(0xae))/0x2+-parseInt(_0x167d09(0xbb))/0x3*(parseInt(_0x167d09(0xbf))/0x4)+parseInt(_0x167d09(0xa9))/0x5+parseInt(_0x167d09(0xb9))/0x6*(-parseInt(_0x167d09(0xb8))/0x7)+-parseInt(_0x167d09(0xa0))/0x8+-parseInt(_0x167d09(0xbe))/0x9*(-parseInt(_0x167d09(0x94))/0xa);if(_0x266f3b===_0x14a7a2)break;else _0x250283['push'](_0x250283['shift']());}catch(_0x104551){_0x250283['push'](_0x250283['shift']());}}}(a164_0x5b89,0x45df0));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x464c98){const _0x207975=a164_0x3848,_0x409855=normalizeLocalFiles(_0x464c98);if(!_0x409855[_0x207975(0xb5)](_0x1d037b=>_0x1d037b[_0x207975(0x91)]===SKILL_FILE))throw CliErrors[_0x207975(0xa5)]('Missing\x20'+SKILL_FILE+_0x207975(0xaf));const _0x1558d1=localFilesToManifestFiles(_0x409855),_0x47a9af=createDeterministicZipPackage(_0x409855);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x1558d1),'zipSha256':bufferSha256(_0x47a9af),'zipSize':_0x47a9af[_0x207975(0xa6)],'files':_0x1558d1},'packageBytes':_0x47a9af,'packageBase64':_0x47a9af['toString'](_0x207975(0x99))};}export function verifyRuntimeSkillPackage(_0x543bb0,_0x4a02a7){const _0xdd87d2=a164_0x3848,_0x1e5a69=normalizePackageManifest(_0x543bb0,{'requireOssPath':![]});if(!_0x1e5a69)throw CliErrors[_0xdd87d2(0xa5)](_0xdd87d2(0xb2));return extractAndVerifyPackage(_0x1e5a69,_0x4a02a7);}export function verifyRuntimeSkillBundle(_0x30f058,_0x3f9f67){const _0x5ecd20=a164_0x3848,_0x5ee8a8=normalizePackageManifest(_0x30f058,{'requireOssPath':![]});if(!_0x5ee8a8)throw CliErrors[_0x5ecd20(0xa5)](_0x5ecd20(0xb2));return extractAndVerifyPackageFiles(_0x5ee8a8,_0x3f9f67);}export function tryNormalizePackageManifest(_0xa415b9){return normalizePackageManifest(_0xa415b9,{'requireOssPath':![]});}function a164_0x5b89(){const _0x982f89=['Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','751910HMYFUj','zipSha256','schemaVersion','trim','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','53400SZnPVI','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','files','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','some','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Duplicate\x20Skill\x20package\x20entry:\x20','3017xEcnrA','6078yUzcxG','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','14142NSDeYh','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','has','10715076RbBBAL','444GgPEQr','isSafeInteger','push','path','get','map','10TjpykZ','object','set','isArray','zipSize','base64','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','requireOssPath','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','size','string','bytes','1036528CYDPIq','7969eOzTMr','treeSha256','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','toLowerCase','validation','length','ossPath'];a164_0x5b89=function(){return _0x982f89;};return a164_0x5b89();}export function requirePackageBytes(_0x3bc928,_0x511eac){const _0x4b15b4=a164_0x3848;if(!_0x511eac||_0x511eac[_0x4b15b4(0xa6)]===0x0)throw CliErrors[_0x4b15b4(0xa5)](_0x4b15b4(0xb0)+_0x3bc928);return _0x511eac;}export function extractDownloadedPackage(_0x47dcf7){const _0x3ff346=a164_0x3848,_0x2acbbe=parseZipPackage(_0x47dcf7)[_0x3ff346(0x93)](_0x56c72c=>({'path':_0x56c72c[_0x3ff346(0x91)],'bytes':_0x56c72c['bytes']}));if(!_0x2acbbe[_0x3ff346(0xb5)](_0x1abee8=>_0x1abee8[_0x3ff346(0x91)]===SKILL_FILE))throw CliErrors[_0x3ff346(0xa5)](_0x3ff346(0xb3)+SKILL_FILE+'.');return normalizeLocalFiles(_0x2acbbe);}export function localFilesToManifestFiles(_0x44b853){const _0xc50f52=a164_0x3848;return normalizeLocalFiles(_0x44b853)[_0xc50f52(0x93)](_0x1f705a=>({'path':_0x1f705a[_0xc50f52(0x91)],'sha256':fileHash(_0x1f705a),'size':fileContent(_0x1f705a)['length']}));}function a164_0x3848(_0x8d6957,_0x12c90a){_0x8d6957=_0x8d6957-0x90;const _0x5b897a=a164_0x5b89();let _0x38487e=_0x5b897a[_0x8d6957];return _0x38487e;}function normalizePackageManifest(_0x26e53d,_0x1d49cc){const _0x337a39=a164_0x3848;if(!_0x26e53d||typeof _0x26e53d!==_0x337a39(0x95)||Array[_0x337a39(0x97)](_0x26e53d))return undefined;const _0x2b77b6=_0x26e53d,_0x49c858=typeof _0x2b77b6['ossPath']===_0x337a39(0x9e)?_0x2b77b6[_0x337a39(0xa7)][_0x337a39(0xac)]():undefined;if(_0x1d49cc[_0x337a39(0x9b)]&&!_0x49c858)return undefined;if(!Array[_0x337a39(0x97)](_0x2b77b6[_0x337a39(0xb1)])||_0x2b77b6['files'][_0x337a39(0xa6)]===0x0)return undefined;if(!isSha256Hex(_0x2b77b6[_0x337a39(0xa2)]))throw CliErrors[_0x337a39(0xa5)](_0x337a39(0x9c));if(!isSha256Hex(_0x2b77b6[_0x337a39(0xaa)]))throw CliErrors[_0x337a39(0xa5)](_0x337a39(0xa3));if(!Number[_0x337a39(0xc0)](_0x2b77b6[_0x337a39(0x98)])||_0x2b77b6[_0x337a39(0x98)]<0x0)throw CliErrors[_0x337a39(0xa5)](_0x337a39(0xb6));const _0x2704ec=normalizeManifestFiles(_0x2b77b6[_0x337a39(0xb1)]);if(!_0x2704ec[_0x337a39(0xb5)](_0x32f58f=>_0x32f58f[_0x337a39(0x91)]===SKILL_FILE))throw CliErrors['validation'](_0x337a39(0xb4)+SKILL_FILE+'.');const _0x488739=fileTreeHash(_0x2704ec);if(_0x488739!==_0x2b77b6[_0x337a39(0xa2)][_0x337a39(0xa4)]())throw CliErrors[_0x337a39(0xa5)](_0x337a39(0xa8));return{'schemaVersion':Number[_0x337a39(0xc0)](_0x2b77b6[_0x337a39(0xab)])?_0x2b77b6[_0x337a39(0xab)]:0x2,'ossPath':_0x49c858,'treeSha256':_0x488739,'zipSha256':_0x2b77b6[_0x337a39(0xaa)]['toLowerCase'](),'zipSize':_0x2b77b6[_0x337a39(0x98)],'files':_0x2704ec};}function extractAndVerifyPackage(_0x333f43,_0x10c74d){const _0x263046=a164_0x3848,_0x9aba2c=normalizePackageManifest(_0x333f43,{'requireOssPath':![]});if(!_0x9aba2c)throw CliErrors[_0x263046(0xa5)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x10c74d[_0x263046(0xa6)]!==_0x9aba2c['zipSize'])throw CliErrors[_0x263046(0xa5)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x409749=bufferSha256(_0x10c74d);if(_0x409749!==_0x9aba2c[_0x263046(0xaa)])throw CliErrors[_0x263046(0xa5)](_0x263046(0xba));return extractAndVerifyPackageFiles(_0x9aba2c,_0x10c74d);}function extractAndVerifyPackageFiles(_0x573e00,_0x490306){const _0x4902df=a164_0x3848,_0x4f0feb=parseZipPackage(_0x490306);if(_0x4f0feb['length']!==_0x573e00[_0x4902df(0xb1)][_0x4902df(0xa6)])throw CliErrors[_0x4902df(0xa5)]('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x4d72e4=new Map();for(const _0x2200c0 of _0x4f0feb){if(_0x4d72e4[_0x4902df(0xbd)](_0x2200c0[_0x4902df(0x91)]))throw CliErrors[_0x4902df(0xa5)](_0x4902df(0xb7)+_0x2200c0[_0x4902df(0x91)]);_0x4d72e4[_0x4902df(0x96)](_0x2200c0[_0x4902df(0x91)],_0x2200c0);}const _0x47b084=[];for(const _0x3d562e of _0x573e00[_0x4902df(0xb1)]){const _0x2a7f0d=_0x4d72e4[_0x4902df(0x92)](_0x3d562e[_0x4902df(0x91)]);if(!_0x2a7f0d)throw CliErrors[_0x4902df(0xa5)](_0x4902df(0x9a)+_0x3d562e[_0x4902df(0x91)]);if(_0x2a7f0d[_0x4902df(0x9f)]['length']!==_0x3d562e[_0x4902df(0x9d)])throw CliErrors[_0x4902df(0xa5)](_0x4902df(0xad)+_0x3d562e[_0x4902df(0x91)]);const _0x4a43d3=bufferSha256(_0x2a7f0d[_0x4902df(0x9f)]);if(_0x4a43d3!==_0x3d562e['sha256'])throw CliErrors['validation'](_0x4902df(0xbc)+_0x3d562e[_0x4902df(0x91)]);_0x47b084[_0x4902df(0x90)]({'path':_0x3d562e[_0x4902df(0x91)],'bytes':_0x2a7f0d[_0x4902df(0x9f)]});}return normalizeLocalFiles(_0x47b084);}
1
+ (function(_0x15893e,_0x3ed3cd){const _0x15475a=a168_0x3f96,_0x130630=_0x15893e();while(!![]){try{const _0x24e176=-parseInt(_0x15475a(0x1b0))/0x1+parseInt(_0x15475a(0x1c3))/0x2*(parseInt(_0x15475a(0x1ad))/0x3)+parseInt(_0x15475a(0x1ba))/0x4+parseInt(_0x15475a(0x1c6))/0x5+-parseInt(_0x15475a(0x19a))/0x6+parseInt(_0x15475a(0x19e))/0x7*(parseInt(_0x15475a(0x1bc))/0x8)+-parseInt(_0x15475a(0x1bd))/0x9*(-parseInt(_0x15475a(0x1c1))/0xa);if(_0x24e176===_0x3ed3cd)break;else _0x130630['push'](_0x130630['shift']());}catch(_0x3653c1){_0x130630['push'](_0x130630['shift']());}}}(a168_0x3c3a,0xe9077));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';function a168_0x3f96(_0x164d94,_0x5944b2){_0x164d94=_0x164d94-0x19a;const _0x3c3ae7=a168_0x3c3a();let _0x3f96e5=_0x3c3ae7[_0x164d94];return _0x3f96e5;}import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x2de563){const _0x1c724f=a168_0x3f96,_0x5a7a1f=normalizeLocalFiles(_0x2de563);if(!_0x5a7a1f[_0x1c724f(0x1a6)](_0xb1d69e=>_0xb1d69e[_0x1c724f(0x1b8)]===SKILL_FILE))throw CliErrors['validation'](_0x1c724f(0x1a9)+SKILL_FILE+_0x1c724f(0x19c));const _0x511c16=localFilesToManifestFiles(_0x5a7a1f),_0x4d33b8=createDeterministicZipPackage(_0x5a7a1f);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x511c16),'zipSha256':bufferSha256(_0x4d33b8),'zipSize':_0x4d33b8[_0x1c724f(0x1c0)],'files':_0x511c16},'packageBytes':_0x4d33b8,'packageBase64':_0x4d33b8[_0x1c724f(0x1a3)](_0x1c724f(0x1bb))};}export function verifyRuntimeSkillPackage(_0xe926ff,_0x793ba6){const _0x5599f2=a168_0x3f96,_0x3616e6=normalizePackageManifest(_0xe926ff,{'requireOssPath':![]});if(!_0x3616e6)throw CliErrors[_0x5599f2(0x1a7)](_0x5599f2(0x1c7));return extractAndVerifyPackage(_0x3616e6,_0x793ba6);}export function verifyRuntimeSkillBundle(_0x3c6049,_0x48bfa7){const _0x20c387=a168_0x3f96,_0x19a795=normalizePackageManifest(_0x3c6049,{'requireOssPath':![]});if(!_0x19a795)throw CliErrors['validation'](_0x20c387(0x1c7));return extractAndVerifyPackageFiles(_0x19a795,_0x48bfa7);}export function tryNormalizePackageManifest(_0x550c6f){return normalizePackageManifest(_0x550c6f,{'requireOssPath':![]});}export function requirePackageBytes(_0x584c9b,_0x1b8b73){const _0x1e9f7a=a168_0x3f96;if(!_0x1b8b73||_0x1b8b73[_0x1e9f7a(0x1c0)]===0x0)throw CliErrors[_0x1e9f7a(0x1a7)](_0x1e9f7a(0x1bf)+_0x584c9b);return _0x1b8b73;}export function extractDownloadedPackage(_0xd409d0){const _0x46cc11=a168_0x3f96,_0xe256fa=parseZipPackage(_0xd409d0)['map'](_0x2ce9a3=>({'path':_0x2ce9a3[_0x46cc11(0x1b8)],'bytes':_0x2ce9a3[_0x46cc11(0x1a8)]}));if(!_0xe256fa[_0x46cc11(0x1a6)](_0x1a1295=>_0x1a1295[_0x46cc11(0x1b8)]===SKILL_FILE))throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+'.');return normalizeLocalFiles(_0xe256fa);}export function localFilesToManifestFiles(_0x62efbe){const _0x32e1de=a168_0x3f96;return normalizeLocalFiles(_0x62efbe)['map'](_0x49b594=>({'path':_0x49b594['path'],'sha256':fileHash(_0x49b594),'size':fileContent(_0x49b594)[_0x32e1de(0x1c0)]}));}function normalizePackageManifest(_0x5eaadf,_0x7136ea){const _0x5d6fa6=a168_0x3f96;if(!_0x5eaadf||typeof _0x5eaadf!=='object'||Array[_0x5d6fa6(0x1ae)](_0x5eaadf))return undefined;const _0x346d92=_0x5eaadf,_0x2246d9=typeof _0x346d92[_0x5d6fa6(0x1aa)]===_0x5d6fa6(0x1b2)?_0x346d92[_0x5d6fa6(0x1aa)][_0x5d6fa6(0x1af)]():undefined;if(_0x7136ea[_0x5d6fa6(0x1a0)]&&!_0x2246d9)return undefined;if(!Array['isArray'](_0x346d92['files'])||_0x346d92[_0x5d6fa6(0x19d)]['length']===0x0)return undefined;if(!isSha256Hex(_0x346d92['treeSha256']))throw CliErrors[_0x5d6fa6(0x1a7)](_0x5d6fa6(0x1a4));if(!isSha256Hex(_0x346d92[_0x5d6fa6(0x1b6)]))throw CliErrors[_0x5d6fa6(0x1a7)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0x5d6fa6(0x1b9)](_0x346d92[_0x5d6fa6(0x1be)])||_0x346d92['zipSize']<0x0)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x1e3803=normalizeManifestFiles(_0x346d92[_0x5d6fa6(0x19d)]);if(!_0x1e3803[_0x5d6fa6(0x1a6)](_0xb760e9=>_0xb760e9[_0x5d6fa6(0x1b8)]===SKILL_FILE))throw CliErrors[_0x5d6fa6(0x1a7)](_0x5d6fa6(0x1b7)+SKILL_FILE+'.');const _0x5f508f=fileTreeHash(_0x1e3803);if(_0x5f508f!==_0x346d92[_0x5d6fa6(0x1c5)][_0x5d6fa6(0x1b1)]())throw CliErrors[_0x5d6fa6(0x1a7)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x5d6fa6(0x1b9)](_0x346d92[_0x5d6fa6(0x1ac)])?_0x346d92[_0x5d6fa6(0x1ac)]:0x2,'ossPath':_0x2246d9,'treeSha256':_0x5f508f,'zipSha256':_0x346d92['zipSha256']['toLowerCase'](),'zipSize':_0x346d92[_0x5d6fa6(0x1be)],'files':_0x1e3803};}function extractAndVerifyPackage(_0x125217,_0x45ab8a){const _0x563d0b=a168_0x3f96,_0xbab8b=normalizePackageManifest(_0x125217,{'requireOssPath':![]});if(!_0xbab8b)throw CliErrors[_0x563d0b(0x1a7)](_0x563d0b(0x1c7));if(_0x45ab8a[_0x563d0b(0x1c0)]!==_0xbab8b[_0x563d0b(0x1be)])throw CliErrors[_0x563d0b(0x1a7)](_0x563d0b(0x19f));const _0x283407=bufferSha256(_0x45ab8a);if(_0x283407!==_0xbab8b['zipSha256'])throw CliErrors[_0x563d0b(0x1a7)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0xbab8b,_0x45ab8a);}function extractAndVerifyPackageFiles(_0x410b3f,_0x5c1c9c){const _0xc385a8=a168_0x3f96,_0x1119c7=parseZipPackage(_0x5c1c9c);if(_0x1119c7[_0xc385a8(0x1c0)]!==_0x410b3f[_0xc385a8(0x19d)][_0xc385a8(0x1c0)])throw CliErrors[_0xc385a8(0x1a7)](_0xc385a8(0x19b));const _0x113691=new Map();for(const _0x328bf2 of _0x1119c7){if(_0x113691['has'](_0x328bf2[_0xc385a8(0x1b8)]))throw CliErrors[_0xc385a8(0x1a7)](_0xc385a8(0x1ab)+_0x328bf2['path']);_0x113691[_0xc385a8(0x1c4)](_0x328bf2[_0xc385a8(0x1b8)],_0x328bf2);}const _0x3c72ef=[];for(const _0x329959 of _0x410b3f[_0xc385a8(0x19d)]){const _0x1fb7e3=_0x113691[_0xc385a8(0x1a5)](_0x329959[_0xc385a8(0x1b8)]);if(!_0x1fb7e3)throw CliErrors[_0xc385a8(0x1a7)](_0xc385a8(0x1b4)+_0x329959[_0xc385a8(0x1b8)]);if(_0x1fb7e3[_0xc385a8(0x1a8)][_0xc385a8(0x1c0)]!==_0x329959[_0xc385a8(0x1b5)])throw CliErrors[_0xc385a8(0x1a7)](_0xc385a8(0x1a2)+_0x329959[_0xc385a8(0x1b8)]);const _0x14cf65=bufferSha256(_0x1fb7e3[_0xc385a8(0x1a8)]);if(_0x14cf65!==_0x329959[_0xc385a8(0x1b3)])throw CliErrors[_0xc385a8(0x1a7)](_0xc385a8(0x1c2)+_0x329959[_0xc385a8(0x1b8)]);_0x3c72ef[_0xc385a8(0x1a1)]({'path':_0x329959[_0xc385a8(0x1b8)],'bytes':_0x1fb7e3[_0xc385a8(0x1a8)]});}return normalizeLocalFiles(_0x3c72ef);}function a168_0x3c3a(){const _0x159491=['sha256','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','size','zipSha256','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','path','isSafeInteger','952544jqitIe','base64','29384eaROPL','22483998GxgyNl','zipSize','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','length','10UnhhIp','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','1059658VOGDcd','set','treeSha256','3173680ZlUDAv','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','9815280DdyOTi','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','\x20in\x20Skill\x20file\x20package.','files','63lWTXAW','Runtime\x20Skill\x20package\x20size\x20mismatch.','requireOssPath','push','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','toString','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','get','some','validation','bytes','Missing\x20','ossPath','Duplicate\x20Skill\x20package\x20entry:\x20','schemaVersion','3gpTJPk','isArray','trim','1343613OPfQmP','toLowerCase','string'];a168_0x3c3a=function(){return _0x159491;};return a168_0x3c3a();}
@@ -1 +1 @@
1
- function a165_0x17fb(){var _0x51c697=['9368dVnlSr','115997YNNYmF','2HHoKKS','253956iPJaUB','588556NrQAnZ','170928xhZRMF','5mtEzCG','662249yWHPEC','423FjBRYX','623310HoqyQx'];a165_0x17fb=function(){return _0x51c697;};return a165_0x17fb();}(function(_0x3c0786,_0x589814){var _0x340612=a165_0x4513,_0x4249ac=_0x3c0786();while(!![]){try{var _0x4fbe86=-parseInt(_0x340612(0x1bd))/0x1+parseInt(_0x340612(0x1be))/0x2*(parseInt(_0x340612(0x1b5))/0x3)+-parseInt(_0x340612(0x1b6))/0x4*(-parseInt(_0x340612(0x1b8))/0x5)+parseInt(_0x340612(0x1b7))/0x6+parseInt(_0x340612(0x1b9))/0x7+-parseInt(_0x340612(0x1bc))/0x8*(parseInt(_0x340612(0x1ba))/0x9)+-parseInt(_0x340612(0x1bb))/0xa;if(_0x4fbe86===_0x589814)break;else _0x4249ac['push'](_0x4249ac['shift']());}catch(_0x2bcc12){_0x4249ac['push'](_0x4249ac['shift']());}}}(a165_0x17fb,0x1dab1));function a165_0x4513(_0x57a2e8,_0x14404e){_0x57a2e8=_0x57a2e8-0x1b5;var _0x17fbb6=a165_0x17fb();var _0x4513c1=_0x17fbb6[_0x57a2e8];return _0x4513c1;}export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0x5a1c18,_0x2be08c){var _0x2f16aa=a169_0x2494,_0x5298b5=_0x5a1c18();while(!![]){try{var _0x2a574e=parseInt(_0x2f16aa(0x16b))/0x1*(-parseInt(_0x2f16aa(0x164))/0x2)+-parseInt(_0x2f16aa(0x161))/0x3+parseInt(_0x2f16aa(0x169))/0x4*(-parseInt(_0x2f16aa(0x16a))/0x5)+-parseInt(_0x2f16aa(0x167))/0x6*(parseInt(_0x2f16aa(0x165))/0x7)+parseInt(_0x2f16aa(0x16c))/0x8+parseInt(_0x2f16aa(0x168))/0x9*(parseInt(_0x2f16aa(0x166))/0xa)+parseInt(_0x2f16aa(0x162))/0xb*(parseInt(_0x2f16aa(0x163))/0xc);if(_0x2a574e===_0x2be08c)break;else _0x5298b5['push'](_0x5298b5['shift']());}catch(_0x455f27){_0x5298b5['push'](_0x5298b5['shift']());}}}(a169_0x1323,0xc03ed));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 a169_0x1323(){var _0x43fb39=['1422340URYkHx','6918fvpfNu','27egymLj','177844VNMZRw','100XaHWrq','1161907VlDCEy','8189336czfIpa','89103DIypWu','19566635NJYgvg','12TPyufj','2FxIcey','2191aQRNEL'];a169_0x1323=function(){return _0x43fb39;};return a169_0x1323();}export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';function a169_0x2494(_0x330ba9,_0x1db456){_0x330ba9=_0x330ba9-0x161;var _0x132391=a169_0x1323();var _0x2494a6=_0x132391[_0x330ba9];return _0x2494a6;}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 a166_0x281028=a166_0x42e6;(function(_0x124dd4,_0xdb8cdf){const _0x114007=a166_0x42e6,_0x2f6551=_0x124dd4();while(!![]){try{const _0x37cc59=-parseInt(_0x114007(0x10e))/0x1*(-parseInt(_0x114007(0x12b))/0x2)+-parseInt(_0x114007(0x124))/0x3+-parseInt(_0x114007(0x11b))/0x4+parseInt(_0x114007(0x116))/0x5+-parseInt(_0x114007(0x10f))/0x6+parseInt(_0x114007(0x118))/0x7*(parseInt(_0x114007(0x10c))/0x8)+-parseInt(_0x114007(0x120))/0x9;if(_0x37cc59===_0xdb8cdf)break;else _0x2f6551['push'](_0x2f6551['shift']());}catch(_0x3a3567){_0x2f6551['push'](_0x2f6551['shift']());}}}(a166_0x565f,0xd8446));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a166_0x281028(0x125),a166_0x281028(0x11c));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a166_0x281028(0x125),a166_0x281028(0x112)),join(a166_0x281028(0x113),a166_0x281028(0x112))];function a166_0x565f(){const _0x2bdbaf=['reason','220704qsoZAI','.agents','parse','includes','utf8','unusable','map','2044946LanEkC','SKILL.md','unverifiable','lockFile','\x20uses\x20unsupported\x20version\x20','3967496DMXleZ','\x20has\x20no\x20skills\x20map','1LXINCs','8478426boFfqv','number','present','skills','.claude','globalSkillsDirs','not-recorded','5315415VVghTH','kind','21aUzZwV','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','version','1698400TmESzV','.skill-lock.json','recorded','\x20records\x20\x22','find','6986682fKraPU','\x20is\x20unreadable:\x20','join'];a166_0x565f=function(){return _0x2bdbaf;};return a166_0x565f();}const SUPPORTED_LOCK_VERSIONS=[0x3];function a166_0x42e6(_0x122f96,_0x3b51e8){_0x122f96=_0x122f96-0x10a;const _0x565fae=a166_0x565f();let _0x42e621=_0x565fae[_0x122f96];return _0x42e621;}function readLockLookup(_0xc4c1b4,_0x2671ab){const _0x1cce7b=a166_0x281028;if(!existsSync(_0xc4c1b4))return{'kind':_0x1cce7b(0x115)};let _0x1a730d;try{_0x1a730d=JSON[_0x1cce7b(0x126)](readFileSync(_0xc4c1b4,_0x1cce7b(0x128)));}catch(_0x2ac594){return{'kind':_0x1cce7b(0x129),'reason':_0xc4c1b4+_0x1cce7b(0x121)+_0x2ac594['message']};}const _0x1cc7e1=_0x1a730d;if(typeof _0x1cc7e1?.[_0x1cce7b(0x11a)]!==_0x1cce7b(0x110)||!SUPPORTED_LOCK_VERSIONS[_0x1cce7b(0x127)](_0x1cc7e1[_0x1cce7b(0x11a)]))return{'kind':_0x1cce7b(0x129),'reason':_0xc4c1b4+_0x1cce7b(0x10b)+String(_0x1cc7e1?.[_0x1cce7b(0x11a)])};if(!_0x1cc7e1['skills']||typeof _0x1cc7e1[_0x1cce7b(0x112)]!=='object')return{'kind':_0x1cce7b(0x129),'reason':_0xc4c1b4+_0x1cce7b(0x10d)};return _0x1cc7e1[_0x1cce7b(0x112)][_0x2671ab]?{'kind':_0x1cce7b(0x11d)}:{'kind':_0x1cce7b(0x115)};}export function resolveInstalledSkill(_0x574115,_0x5e9bf4){const _0x3e7f14=a166_0x281028,_0x483f8e=_0x5e9bf4?.['home']??homedir(),_0x5ae654=_0x5e9bf4?.[_0x3e7f14(0x114)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x3e7f14(0x12a)](_0x201903=>join(_0x483f8e,_0x201903)),_0x3b629e=_0x5e9bf4?.[_0x3e7f14(0x10a)]??join(_0x483f8e,SKILL_LOCK_RELATIVE_PATH),_0x1d0773=_0x5ae654[_0x3e7f14(0x12a)](_0x157ae5=>join(_0x157ae5,_0x574115,_0x3e7f14(0x12c))),_0x10cd90=_0x1d0773[_0x3e7f14(0x11f)](_0x461a47=>existsSync(_0x461a47));if(_0x10cd90)return{'state':_0x3e7f14(0x111),'path':_0x10cd90};const _0x466336=readLockLookup(_0x3b629e,_0x574115);if(_0x466336[_0x3e7f14(0x117)]===_0x3e7f14(0x129))return{'state':_0x3e7f14(0x12d),'reason':_0x466336[_0x3e7f14(0x123)]};if(_0x466336[_0x3e7f14(0x117)]===_0x3e7f14(0x11d))return{'state':'unverifiable','reason':_0x3b629e+_0x3e7f14(0x11e)+_0x574115+_0x3e7f14(0x119)+('('+_0x1d0773[_0x3e7f14(0x122)](',\x20')+')')};return{'state':'absent','checked':_0x1d0773};}
1
+ const a170_0x33a9a8=a170_0x2929;(function(_0x4c672c,_0xd1b822){const _0x183dd2=a170_0x2929,_0x63ba7d=_0x4c672c();while(!![]){try{const _0x22f802=parseInt(_0x183dd2(0x198))/0x1*(parseInt(_0x183dd2(0x195))/0x2)+parseInt(_0x183dd2(0x18a))/0x3*(-parseInt(_0x183dd2(0x17e))/0x4)+parseInt(_0x183dd2(0x17f))/0x5+parseInt(_0x183dd2(0x18d))/0x6+parseInt(_0x183dd2(0x187))/0x7*(parseInt(_0x183dd2(0x185))/0x8)+-parseInt(_0x183dd2(0x174))/0x9+parseInt(_0x183dd2(0x175))/0xa*(-parseInt(_0x183dd2(0x193))/0xb);if(_0x22f802===_0xd1b822)break;else _0x63ba7d['push'](_0x63ba7d['shift']());}catch(_0x2ed4b8){_0x63ba7d['push'](_0x63ba7d['shift']());}}}(a170_0x3aed,0x8084a));function a170_0x3aed(){const _0x357c86=['home','\x20has\x20no\x20skills\x20map','globalSkillsDirs','map','unverifiable','object','40548RnIFCo','4136040pfeyyX','unusable','number','message','find','lockFile','752PWaPLt','version','49126qFPKmR','\x20uses\x20unsupported\x20version\x20','.skill-lock.json','225GaffSF','\x20is\x20unreadable:\x20','parse','288258APpLcN','.agents','skills','.claude','absent','utf8','1533763sWlwYQ','not-recorded','2tUtxmt','recorded','\x20records\x20\x22','659762JGmHtb','kind','present','6917283nhDrEn','10eMlfhf','SKILL.md','join'];a170_0x3aed=function(){return _0x357c86;};return a170_0x3aed();}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a170_0x33a9a8(0x18e),a170_0x33a9a8(0x189));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a170_0x33a9a8(0x18e),'skills'),join(a170_0x33a9a8(0x190),'skills')];function a170_0x2929(_0x3a0ae4,_0x2a493c){_0x3a0ae4=_0x3a0ae4-0x173;const _0x3aedbc=a170_0x3aed();let _0x2929b2=_0x3aedbc[_0x3a0ae4];return _0x2929b2;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x581214,_0x10e836){const _0x1ffa72=a170_0x33a9a8;if(!existsSync(_0x581214))return{'kind':'not-recorded'};let _0x397d37;try{_0x397d37=JSON[_0x1ffa72(0x18c)](readFileSync(_0x581214,_0x1ffa72(0x192)));}catch(_0x7a76e4){return{'kind':_0x1ffa72(0x180),'reason':_0x581214+_0x1ffa72(0x18b)+_0x7a76e4[_0x1ffa72(0x182)]};}const _0xdaf3ca=_0x397d37;if(typeof _0xdaf3ca?.[_0x1ffa72(0x186)]!==_0x1ffa72(0x181)||!SUPPORTED_LOCK_VERSIONS['includes'](_0xdaf3ca[_0x1ffa72(0x186)]))return{'kind':_0x1ffa72(0x180),'reason':_0x581214+_0x1ffa72(0x188)+String(_0xdaf3ca?.[_0x1ffa72(0x186)])};if(!_0xdaf3ca[_0x1ffa72(0x18f)]||typeof _0xdaf3ca[_0x1ffa72(0x18f)]!==_0x1ffa72(0x17d))return{'kind':_0x1ffa72(0x180),'reason':_0x581214+_0x1ffa72(0x179)};return _0xdaf3ca[_0x1ffa72(0x18f)][_0x10e836]?{'kind':_0x1ffa72(0x196)}:{'kind':_0x1ffa72(0x194)};}export function resolveInstalledSkill(_0x3d8b1b,_0x2c3c17){const _0x5c8443=a170_0x33a9a8,_0x493171=_0x2c3c17?.[_0x5c8443(0x178)]??homedir(),_0x47bc06=_0x2c3c17?.[_0x5c8443(0x17a)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x5c8443(0x17b)](_0x2d14df=>join(_0x493171,_0x2d14df)),_0x3685f0=_0x2c3c17?.[_0x5c8443(0x184)]??join(_0x493171,SKILL_LOCK_RELATIVE_PATH),_0x42e053=_0x47bc06[_0x5c8443(0x17b)](_0x1a56ec=>join(_0x1a56ec,_0x3d8b1b,_0x5c8443(0x176))),_0xa247b4=_0x42e053[_0x5c8443(0x183)](_0x472c0a=>existsSync(_0x472c0a));if(_0xa247b4)return{'state':_0x5c8443(0x173),'path':_0xa247b4};const _0x1fc162=readLockLookup(_0x3685f0,_0x3d8b1b);if(_0x1fc162[_0x5c8443(0x199)]===_0x5c8443(0x180))return{'state':_0x5c8443(0x17c),'reason':_0x1fc162['reason']};if(_0x1fc162[_0x5c8443(0x199)]==='recorded')return{'state':'unverifiable','reason':_0x3685f0+_0x5c8443(0x197)+_0x3d8b1b+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x42e053[_0x5c8443(0x177)](',\x20')+')')};return{'state':_0x5c8443(0x191),'checked':_0x42e053};}
@@ -1 +1 @@
1
- const a167_0x7337e=a167_0x55bd;(function(_0x55dc15,_0xda907f){const _0x13b15e=a167_0x55bd,_0x5a4eb5=_0x55dc15();while(!![]){try{const _0x50920c=parseInt(_0x13b15e(0x1e8))/0x1*(parseInt(_0x13b15e(0x1f0))/0x2)+-parseInt(_0x13b15e(0x1f3))/0x3*(-parseInt(_0x13b15e(0x1f6))/0x4)+parseInt(_0x13b15e(0x1fc))/0x5+parseInt(_0x13b15e(0x1f7))/0x6+parseInt(_0x13b15e(0x1fb))/0x7+parseInt(_0x13b15e(0x1f4))/0x8+-parseInt(_0x13b15e(0x1f8))/0x9;if(_0x50920c===_0xda907f)break;else _0x5a4eb5['push'](_0x5a4eb5['shift']());}catch(_0x41253b){_0x5a4eb5['push'](_0x5a4eb5['shift']());}}}(a167_0x19b5,0xd79aa));const REDACTED_ACCESS_KEY=a167_0x7337e(0x1ef);function a167_0x19b5(){const _0x212075=['hasOwnProperty','apps','9617251AcYRNA','6410505jFbGZf','test','fromEntries','284489GWJetD','slice','string','accessKey','prototype','isArray','map','<redacted>','2krgLBJ','object','length','447897TCjPWp','9756368MlTsah','call','16ieeUEV','4983372aCpEsx','42342057INZOoe'];a167_0x19b5=function(){return _0x212075;};return a167_0x19b5();}export function maskCliAccessKey(_0x41ce9a){const _0x7a13f3=a167_0x7337e;if(typeof _0x41ce9a!==_0x7a13f3(0x1ea)||_0x41ce9a['length']<=0x8)return REDACTED_ACCESS_KEY;return''+_0x41ce9a[_0x7a13f3(0x1e9)](0x0,0x8)+'*'['repeat'](_0x41ce9a[_0x7a13f3(0x1f2)]-0x8);}export function redactCliConfigCredentials(_0x5409f1){const _0x3f199f=a167_0x7337e,_0x26ee66={..._0x5409f1};return Object['prototype'][_0x3f199f(0x1f9)][_0x3f199f(0x1f5)](_0x26ee66,_0x3f199f(0x1eb))&&(_0x26ee66['accessKey']=maskCliAccessKey(_0x26ee66[_0x3f199f(0x1eb)])),_0x26ee66[_0x3f199f(0x1fa)]&&typeof _0x26ee66[_0x3f199f(0x1fa)]===_0x3f199f(0x1f1)&&!Array[_0x3f199f(0x1ed)](_0x26ee66[_0x3f199f(0x1fa)])&&(_0x26ee66[_0x3f199f(0x1fa)]=redactLegacyAppCredentials(_0x26ee66[_0x3f199f(0x1fa)])),_0x26ee66;}function a167_0x55bd(_0x35beda,_0x6b964e){_0x35beda=_0x35beda-0x1e8;const _0x19b581=a167_0x19b5();let _0x55bdb0=_0x19b581[_0x35beda];return _0x55bdb0;}export function redactCliConfigValue(_0x130fb9,_0x46fb79){const _0x5e5ec7=a167_0x7337e;if(_0x130fb9==='accessKey'||/^apps\.[^.]+\.accessKey$/[_0x5e5ec7(0x1fd)](_0x130fb9))return maskCliAccessKey(_0x46fb79);if(_0x130fb9===_0x5e5ec7(0x1fa)&&_0x46fb79&&typeof _0x46fb79===_0x5e5ec7(0x1f1)&&!Array[_0x5e5ec7(0x1ed)](_0x46fb79))return redactLegacyAppCredentials(_0x46fb79);if(/^apps\.[^.]+$/[_0x5e5ec7(0x1fd)](_0x130fb9)&&_0x46fb79&&typeof _0x46fb79===_0x5e5ec7(0x1f1)&&!Array[_0x5e5ec7(0x1ed)](_0x46fb79)){const _0x25d528=_0x46fb79;return Object[_0x5e5ec7(0x1ec)]['hasOwnProperty'][_0x5e5ec7(0x1f5)](_0x25d528,'accessKey')?{..._0x25d528,'accessKey':maskCliAccessKey(_0x25d528['accessKey'])}:_0x46fb79;}return _0x46fb79;}function redactLegacyAppCredentials(_0x555f6b){const _0x48af31=a167_0x7337e;return Object[_0x48af31(0x1fe)](Object['entries'](_0x555f6b)[_0x48af31(0x1ee)](([_0x398f3b,_0x5d9181])=>{const _0x455076=_0x48af31;if(!_0x5d9181||typeof _0x5d9181!==_0x455076(0x1f1)||Array[_0x455076(0x1ed)](_0x5d9181))return[_0x398f3b,_0x5d9181];const _0x33f5fc={..._0x5d9181};return Object[_0x455076(0x1ec)]['hasOwnProperty']['call'](_0x33f5fc,'accessKey')&&(_0x33f5fc[_0x455076(0x1eb)]=maskCliAccessKey(_0x33f5fc[_0x455076(0x1eb)])),[_0x398f3b,_0x33f5fc];}));}
1
+ function a171_0x2024(_0x50d0b3,_0x53cef9){_0x50d0b3=_0x50d0b3-0xde;const _0x2cd9ed=a171_0x2cd9();let _0x202400=_0x2cd9ed[_0x50d0b3];return _0x202400;}const a171_0x5e25b4=a171_0x2024;(function(_0x46c22c,_0x4dea64){const _0xc3a203=a171_0x2024,_0x5c44d9=_0x46c22c();while(!![]){try{const _0x1b67f3=parseInt(_0xc3a203(0xf0))/0x1*(parseInt(_0xc3a203(0xe6))/0x2)+-parseInt(_0xc3a203(0xf2))/0x3+parseInt(_0xc3a203(0xed))/0x4+-parseInt(_0xc3a203(0xe0))/0x5+parseInt(_0xc3a203(0xe5))/0x6+-parseInt(_0xc3a203(0xe4))/0x7*(parseInt(_0xc3a203(0xe8))/0x8)+parseInt(_0xc3a203(0xe7))/0x9;if(_0x1b67f3===_0x4dea64)break;else _0x5c44d9['push'](_0x5c44d9['shift']());}catch(_0x1364b6){_0x5c44d9['push'](_0x5c44d9['shift']());}}}(a171_0x2cd9,0x24177));const REDACTED_ACCESS_KEY=a171_0x5e25b4(0xe3);export function maskCliAccessKey(_0x23b768){const _0x4eaab2=a171_0x5e25b4;if(typeof _0x23b768!=='string'||_0x23b768[_0x4eaab2(0xf3)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x23b768[_0x4eaab2(0xf4)](0x0,0x8)+'*'[_0x4eaab2(0xe2)](_0x23b768['length']-0x8);}function a171_0x2cd9(){const _0x340796=['269200WVLkCC','accessKey','call','10511ETxuTs','apps','297588satwVf','length','slice','hasOwnProperty','prototype','141445qTKomF','fromEntries','repeat','<redacted>','469pJrohl','1110846SyByOp','26DIhcZc','205002UJpOCl','16304kyJefq','object','map','isArray','test'];a171_0x2cd9=function(){return _0x340796;};return a171_0x2cd9();}export function redactCliConfigCredentials(_0x25e7ad){const _0x7e0757=a171_0x5e25b4,_0x1553e4={..._0x25e7ad};return Object[_0x7e0757(0xdf)]['hasOwnProperty'][_0x7e0757(0xef)](_0x1553e4,_0x7e0757(0xee))&&(_0x1553e4[_0x7e0757(0xee)]=maskCliAccessKey(_0x1553e4[_0x7e0757(0xee)])),_0x1553e4['apps']&&typeof _0x1553e4[_0x7e0757(0xf1)]===_0x7e0757(0xe9)&&!Array[_0x7e0757(0xeb)](_0x1553e4['apps'])&&(_0x1553e4[_0x7e0757(0xf1)]=redactLegacyAppCredentials(_0x1553e4[_0x7e0757(0xf1)])),_0x1553e4;}export function redactCliConfigValue(_0x34229,_0x2d03f3){const _0x5ec909=a171_0x5e25b4;if(_0x34229==='accessKey'||/^apps\.[^.]+\.accessKey$/[_0x5ec909(0xec)](_0x34229))return maskCliAccessKey(_0x2d03f3);if(_0x34229==='apps'&&_0x2d03f3&&typeof _0x2d03f3===_0x5ec909(0xe9)&&!Array[_0x5ec909(0xeb)](_0x2d03f3))return redactLegacyAppCredentials(_0x2d03f3);if(/^apps\.[^.]+$/[_0x5ec909(0xec)](_0x34229)&&_0x2d03f3&&typeof _0x2d03f3===_0x5ec909(0xe9)&&!Array['isArray'](_0x2d03f3)){const _0x3c83f1=_0x2d03f3;return Object[_0x5ec909(0xdf)][_0x5ec909(0xde)][_0x5ec909(0xef)](_0x3c83f1,'accessKey')?{..._0x3c83f1,'accessKey':maskCliAccessKey(_0x3c83f1['accessKey'])}:_0x2d03f3;}return _0x2d03f3;}function redactLegacyAppCredentials(_0x396814){const _0x34f79d=a171_0x5e25b4;return Object[_0x34f79d(0xe1)](Object['entries'](_0x396814)[_0x34f79d(0xea)](([_0x27994f,_0x50bd42])=>{const _0x182429=_0x34f79d;if(!_0x50bd42||typeof _0x50bd42!==_0x182429(0xe9)||Array['isArray'](_0x50bd42))return[_0x27994f,_0x50bd42];const _0x49a611={..._0x50bd42};return Object[_0x182429(0xdf)][_0x182429(0xde)][_0x182429(0xef)](_0x49a611,'accessKey')&&(_0x49a611[_0x182429(0xee)]=maskCliAccessKey(_0x49a611['accessKey'])),[_0x27994f,_0x49a611];}));}
@@ -1 +1 @@
1
- (function(_0x238f9c,_0x3b0802){const _0x28d967=a168_0x53d4,_0x292e99=_0x238f9c();while(!![]){try{const _0xeee7f9=parseInt(_0x28d967(0x1c2))/0x1*(parseInt(_0x28d967(0x1c4))/0x2)+parseInt(_0x28d967(0x1c5))/0x3*(-parseInt(_0x28d967(0x1bc))/0x4)+parseInt(_0x28d967(0x1bf))/0x5+parseInt(_0x28d967(0x1c1))/0x6+-parseInt(_0x28d967(0x1c3))/0x7+-parseInt(_0x28d967(0x1c0))/0x8*(-parseInt(_0x28d967(0x1c6))/0x9)+parseInt(_0x28d967(0x1bd))/0xa*(-parseInt(_0x28d967(0x1be))/0xb);if(_0xeee7f9===_0x3b0802)break;else _0x292e99['push'](_0x292e99['shift']());}catch(_0x1029bf){_0x292e99['push'](_0x292e99['shift']());}}}(a168_0xef1e,0xd44fd));function a168_0x53d4(_0x5c292c,_0x5dae8f){_0x5c292c=_0x5c292c-0x1bc;const _0xef1ebb=a168_0xef1e();let _0x53d4d9=_0xef1ebb[_0x5c292c];return _0x53d4d9;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a168_0xef1e(){const _0x5257d5=['6370140ThiHOM','2CdJiuX','2273152ASnQQb','317530QvhXiK','410217bgRwWm','27SSgEAZ','32AilKuI','670dbyAhB','136532uEtLzi','8419475ScLbqU','151376MqZgNQ'];a168_0xef1e=function(){return _0x5257d5;};return a168_0xef1e();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x5c2d62,_0x356c23){const _0x4539e0=a172_0x5349,_0x5e9963=_0x5c2d62();while(!![]){try{const _0x3d7a83=parseInt(_0x4539e0(0xb0))/0x1+-parseInt(_0x4539e0(0xb1))/0x2+-parseInt(_0x4539e0(0xae))/0x3+-parseInt(_0x4539e0(0xac))/0x4*(parseInt(_0x4539e0(0xaf))/0x5)+parseInt(_0x4539e0(0xb2))/0x6*(-parseInt(_0x4539e0(0xab))/0x7)+parseInt(_0x4539e0(0xb4))/0x8*(-parseInt(_0x4539e0(0xb3))/0x9)+parseInt(_0x4539e0(0xad))/0xa;if(_0x3d7a83===_0x356c23)break;else _0x5e9963['push'](_0x5e9963['shift']());}catch(_0x2ea19b){_0x5e9963['push'](_0x5e9963['shift']());}}}(a172_0x4eb1,0x61af6));function a172_0x4eb1(){const _0x49dc62=['1493868DWbVWT','14447930MLnSxH','59043ukyHYT','10vDubXY','609439IdRtEt','427788xDtsId','209316Iebsso','5463ZPsbeF','4280oKcJXB','70bTEwIK'];a172_0x4eb1=function(){return _0x49dc62;};return a172_0x4eb1();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a172_0x5349(_0x49e812,_0x212147){_0x49e812=_0x49e812-0xab;const _0x4eb16=a172_0x4eb1();let _0x5349f7=_0x4eb16[_0x49e812];return _0x5349f7;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a169_0x18b7(_0x3e7374,_0x5407e0){_0x3e7374=_0x3e7374-0xb0;const _0x16c768=a169_0x16c7();let _0x18b760=_0x16c768[_0x3e7374];return _0x18b760;}(function(_0x1c255d,_0x571da7){const _0x5f36f2=a169_0x18b7,_0x2cca15=_0x1c255d();while(!![]){try{const _0x3eff82=-parseInt(_0x5f36f2(0xc5))/0x1+-parseInt(_0x5f36f2(0xbd))/0x2*(parseInt(_0x5f36f2(0xb8))/0x3)+-parseInt(_0x5f36f2(0xc2))/0x4*(parseInt(_0x5f36f2(0xb0))/0x5)+-parseInt(_0x5f36f2(0xc1))/0x6*(parseInt(_0x5f36f2(0xb7))/0x7)+parseInt(_0x5f36f2(0xb2))/0x8+-parseInt(_0x5f36f2(0xc0))/0x9+-parseInt(_0x5f36f2(0xb1))/0xa*(-parseInt(_0x5f36f2(0xbf))/0xb);if(_0x3eff82===_0x571da7)break;else _0x2cca15['push'](_0x2cca15['shift']());}catch(_0x525dad){_0x2cca15['push'](_0x2cca15['shift']());}}}(a169_0x16c7,0x69907));import a169_0x2d283e 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 a169_0x16c7(){const _0x1a5722=['currentVersion','minimumVersion','259KRhUld','4026YGnyWl','belowMinimum','upgradeMessage','npm\x20install\x20-g\x20','stableVersion','44IClFUl','latest','11mBKQMB','5297850forQaQ','85818IKUfbY','32MDlQtI','join','Current\x20version:\x20','417157sRNrLV','minimumVersionMessage','validation','252620YosgVU','23690210bfXCyw','256832utNWza','Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.'];a169_0x16c7=function(){return _0x1a5722;};return a169_0x16c7();}import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x4f6cc9,_0x2dc5d1){const _0x108f72=a169_0x18b7,_0xc09568=a169_0x2d283e['valid'](_0x4f6cc9)===_0x4f6cc9,_0x5918f1=_0x2dc5d1?.[_0x108f72(0xbc)]??null,_0x11ee9f=_0x2dc5d1?.['minimumVersion']??null,_0x49d009=Boolean(_0xc09568&&_0x5918f1&&a169_0x2d283e['lt'](_0x4f6cc9,_0x5918f1)),_0x58248f=Boolean(_0xc09568&&_0x11ee9f&&a169_0x2d283e['lt'](_0x4f6cc9,_0x11ee9f));return{'currentVersion':_0x4f6cc9,'stableVersion':_0x5918f1,'minimumVersion':_0x11ee9f,'needsUpgrade':_0x49d009||_0x58248f,'belowMinimum':_0x58248f,'upgradeMessage':_0x2dc5d1?.[_0x108f72(0xba)],'minimumVersionMessage':_0x2dc5d1?.[_0x108f72(0xc6)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x40f073){const _0x1f8a4e=a169_0x18b7;return _0x1f8a4e(0xbb)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x40f073[_0x1f8a4e(0xbc)]??_0x1f8a4e(0xbe));}export function assertCliVersionSupported(_0x3e61c8){const _0x5aa584=a169_0x18b7;if(!_0x3e61c8[_0x5aa584(0xb9)])return;const _0x532b4d=[_0x3e61c8[_0x5aa584(0xc6)],_0x5aa584(0xc4)+_0x3e61c8[_0x5aa584(0xb5)],'Minimum\x20supported:\x20'+_0x3e61c8[_0x5aa584(0xb6)],'Recommended\x20stable:\x20'+(_0x3e61c8[_0x5aa584(0xbc)]??'unavailable'),_0x5aa584(0xb3)+getCliUpgradeCommand(_0x3e61c8)]['filter'](Boolean)[_0x5aa584(0xc3)]('\x0a');throw CliErrors[_0x5aa584(0xc7)](_0x5aa584(0xb4),_0x532b4d);}
1
+ (function(_0x4bf2e8,_0x59beab){const _0x1c9b27=a173_0xca42,_0x58e89b=_0x4bf2e8();while(!![]){try{const _0x11741c=-parseInt(_0x1c9b27(0x78))/0x1+-parseInt(_0x1c9b27(0x67))/0x2+-parseInt(_0x1c9b27(0x6d))/0x3+-parseInt(_0x1c9b27(0x73))/0x4+-parseInt(_0x1c9b27(0x68))/0x5*(-parseInt(_0x1c9b27(0x74))/0x6)+-parseInt(_0x1c9b27(0x7b))/0x7*(-parseInt(_0x1c9b27(0x71))/0x8)+parseInt(_0x1c9b27(0x6c))/0x9;if(_0x11741c===_0x59beab)break;else _0x58e89b['push'](_0x58e89b['shift']());}catch(_0x4af3ad){_0x58e89b['push'](_0x58e89b['shift']());}}}(a173_0xff88,0xf1e53));import a173_0x3bf737 from'semver';function a173_0xff88(){const _0x4651d2=['unavailable','Minimum\x20supported:\x20','currentVersion','7120dmggvs','minimumVersion','valid','607859xZMNcn','stableVersion','join','3430922KdvBZp','20tuHJXz','minimumVersionMessage','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','upgradeMessage','16452117Dpwdtu','2077632gAfNYT','Current\x20version:\x20','npm\x20install\x20-g\x20','Recommended\x20stable:\x20','128SpILLB','latest','1481012dBfuBJ','838164dRcQfI'];a173_0xff88=function(){return _0x4651d2;};return a173_0xff88();}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(_0x559762,_0x22b613){const _0xbc14c6=a173_0xca42,_0x434e20=a173_0x3bf737[_0xbc14c6(0x7a)](_0x559762)===_0x559762,_0x170e93=_0x22b613?.[_0xbc14c6(0x7c)]??null,_0x44c2a7=_0x22b613?.[_0xbc14c6(0x79)]??null,_0x89481b=Boolean(_0x434e20&&_0x170e93&&a173_0x3bf737['lt'](_0x559762,_0x170e93)),_0x4ff964=Boolean(_0x434e20&&_0x44c2a7&&a173_0x3bf737['lt'](_0x559762,_0x44c2a7));return{'currentVersion':_0x559762,'stableVersion':_0x170e93,'minimumVersion':_0x44c2a7,'needsUpgrade':_0x89481b||_0x4ff964,'belowMinimum':_0x4ff964,'upgradeMessage':_0x22b613?.[_0xbc14c6(0x6b)],'minimumVersionMessage':_0x22b613?.[_0xbc14c6(0x69)]};}function a173_0xca42(_0x320d62,_0x346810){_0x320d62=_0x320d62-0x66;const _0xff886=a173_0xff88();let _0xca4233=_0xff886[_0x320d62];return _0xca4233;}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x341684){const _0x2dae1f=a173_0xca42;return _0x2dae1f(0x6f)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x341684[_0x2dae1f(0x7c)]??_0x2dae1f(0x72));}export function assertCliVersionSupported(_0x251888){const _0x126403=a173_0xca42;if(!_0x251888['belowMinimum'])return;const _0x2c5301=[_0x251888[_0x126403(0x69)],_0x126403(0x6e)+_0x251888[_0x126403(0x77)],_0x126403(0x76)+_0x251888['minimumVersion'],_0x126403(0x70)+(_0x251888[_0x126403(0x7c)]??_0x126403(0x75)),'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x251888)]['filter'](Boolean)[_0x126403(0x66)]('\x0a');throw CliErrors['validation'](_0x126403(0x6a),_0x2c5301);}
@@ -1 +1 @@
1
- function a170_0x125a(){const _0xce2661=['minVersion','24YlEuXX','recommendedVersion','597474PFKBrR','6634nnfRSm','finally','386916rOZznn','315603AbDZgP','then','now','upgradeMessage','json','application/json','4gTKSiL','object','trim','4638990fsLMCU','valid','981946PiNtnz','string','stableVersion','timeout','minimumVersion','minimumVersionMessage','cli','latestVersion','906865RqpTlC','124xYAiTc'];a170_0x125a=function(){return _0xce2661;};return a170_0x125a();}(function(_0x4cfd91,_0x3a3428){const _0x126476=a170_0x1dc7,_0x5a6e69=_0x4cfd91();while(!![]){try{const _0x4b91ee=-parseInt(_0x126476(0x92))/0x1*(parseInt(_0x126476(0x8d))/0x2)+parseInt(_0x126476(0x91))/0x3+-parseInt(_0x126476(0x9b))/0x4*(parseInt(_0x126476(0x8c))/0x5)+-parseInt(_0x126476(0x94))/0x6+parseInt(_0x126476(0xa0))/0x7+parseInt(_0x126476(0x8f))/0x8*(parseInt(_0x126476(0x95))/0x9)+parseInt(_0x126476(0x9e))/0xa;if(_0x4b91ee===_0x3a3428)break;else _0x5a6e69['push'](_0x5a6e69['shift']());}catch(_0x527b4f){_0x5a6e69['push'](_0x5a6e69['shift']());}}}(a170_0x125a,0x3d5e9));function a170_0x1dc7(_0x1b7ed9,_0x555d1c){_0x1b7ed9=_0x1b7ed9-0x87;const _0x125a71=a170_0x125a();let _0x1dc7ce=_0x125a71[_0x1b7ed9];return _0x1dc7ce;}import a170_0x5d6f3f from'semver';import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0x5a158f){const _0x4649c9=a170_0x1dc7;return typeof _0x5a158f===_0x4649c9(0xa1)&&_0x5a158f[_0x4649c9(0x9d)]()?_0x5a158f[_0x4649c9(0x9d)]():null;}function pickStrictSemver(_0x30f707){const _0x267fdb=a170_0x1dc7,_0x3edf5a=pickString(_0x30f707);return _0x3edf5a&&a170_0x5d6f3f[_0x267fdb(0x9f)](_0x3edf5a)===_0x3edf5a?_0x3edf5a:null;}export function normalizeCliVersionPolicy(_0x4c0975){const _0x116b80=a170_0x1dc7;if(!_0x4c0975||typeof _0x4c0975!==_0x116b80(0x9c))return null;const _0x4ab7d5=_0x4c0975,_0x3775aa=_0x4ab7d5[_0x116b80(0x8a)]&&typeof _0x4ab7d5[_0x116b80(0x8a)]===_0x116b80(0x9c)?_0x4ab7d5[_0x116b80(0x8a)]:_0x4ab7d5,_0x1d6606=pickStrictSemver(_0x3775aa[_0x116b80(0xa2)]??_0x3775aa[_0x116b80(0x8b)]??_0x3775aa[_0x116b80(0x90)]),_0x2c6b42=pickStrictSemver(_0x3775aa[_0x116b80(0x88)]??_0x3775aa[_0x116b80(0x8e)]);if(!_0x1d6606&&!_0x2c6b42)return null;if(_0x1d6606&&_0x2c6b42&&a170_0x5d6f3f['gt'](_0x2c6b42,_0x1d6606))return null;return{'stableVersion':_0x1d6606,'minimumVersion':_0x2c6b42,'upgradeMessage':pickString(_0x3775aa[_0x116b80(0x98)])??undefined,'minimumVersionMessage':pickString(_0x3775aa[_0x116b80(0x89)])??undefined};}export async function fetchCliVersionPolicy(){const _0x2a6023=a170_0x1dc7;try{const _0xbe672a=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x2a6023(0x9a)},'signal':AbortSignal[_0x2a6023(0x87)](FETCH_TIMEOUT_MS)});if(!_0xbe672a['ok'])return null;return normalizeCliVersionPolicy(await _0xbe672a[_0x2a6023(0x99)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x1ceef2=a170_0x1dc7,_0x59b905=Date[_0x1ceef2(0x97)]();if(hasCachedPolicy){const _0x153582=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x59b905-cachedAt<_0x153582)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x1ceef2(0x96)](_0x2073e2=>{return cachedPolicy=_0x2073e2,cachedAt=Date['now'](),hasCachedPolicy=!![],_0x2073e2;})[_0x1ceef2(0x93)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
1
+ (function(_0x1256df,_0x186436){const _0x33a316=a174_0x5eae,_0x3dd3aa=_0x1256df();while(!![]){try{const _0x3b1917=-parseInt(_0x33a316(0x1e9))/0x1+parseInt(_0x33a316(0x1f9))/0x2*(-parseInt(_0x33a316(0x1ea))/0x3)+parseInt(_0x33a316(0x1fe))/0x4*(parseInt(_0x33a316(0x1f0))/0x5)+-parseInt(_0x33a316(0x1f6))/0x6+-parseInt(_0x33a316(0x1f5))/0x7+parseInt(_0x33a316(0x1ef))/0x8+-parseInt(_0x33a316(0x1ee))/0x9;if(_0x3b1917===_0x186436)break;else _0x3dd3aa['push'](_0x3dd3aa['shift']());}catch(_0x3ae312){_0x3dd3aa['push'](_0x3dd3aa['shift']());}}}(a174_0x15c5,0x31ba7));import a174_0x53e28a from'semver';import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0x49f016){const _0x399688=a174_0x5eae;return typeof _0x49f016==='string'&&_0x49f016[_0x399688(0x200)]()?_0x49f016[_0x399688(0x200)]():null;}function a174_0x15c5(){const _0x103133=['32421sibJTy','53886NezjDv','then','latestVersion','timeout','683604ADUJKR','1367016GAaTiR','1940435lXBkYe','minimumVersion','valid','finally','recommendedVersion','1435385bfEIhO','143298KnJlKv','cli','upgradeMessage','2NXGouF','stableVersion','json','minVersion','minimumVersionMessage','4QSpEah','object','trim'];a174_0x15c5=function(){return _0x103133;};return a174_0x15c5();}function pickStrictSemver(_0x1a1c43){const _0x3bb9d7=a174_0x5eae,_0x5d06c1=pickString(_0x1a1c43);return _0x5d06c1&&a174_0x53e28a[_0x3bb9d7(0x1f2)](_0x5d06c1)===_0x5d06c1?_0x5d06c1:null;}function a174_0x5eae(_0x5b9051,_0x27fabf){_0x5b9051=_0x5b9051-0x1e9;const _0x15c5cc=a174_0x15c5();let _0x5eae11=_0x15c5cc[_0x5b9051];return _0x5eae11;}export function normalizeCliVersionPolicy(_0x46a103){const _0x497cf2=a174_0x5eae;if(!_0x46a103||typeof _0x46a103!==_0x497cf2(0x1ff))return null;const _0x2a4c65=_0x46a103,_0x4030b9=_0x2a4c65[_0x497cf2(0x1f7)]&&typeof _0x2a4c65[_0x497cf2(0x1f7)]===_0x497cf2(0x1ff)?_0x2a4c65[_0x497cf2(0x1f7)]:_0x2a4c65,_0x4d28c8=pickStrictSemver(_0x4030b9[_0x497cf2(0x1fa)]??_0x4030b9[_0x497cf2(0x1ec)]??_0x4030b9[_0x497cf2(0x1f4)]),_0x1788a9=pickStrictSemver(_0x4030b9[_0x497cf2(0x1f1)]??_0x4030b9[_0x497cf2(0x1fc)]);if(!_0x4d28c8&&!_0x1788a9)return null;if(_0x4d28c8&&_0x1788a9&&a174_0x53e28a['gt'](_0x1788a9,_0x4d28c8))return null;return{'stableVersion':_0x4d28c8,'minimumVersion':_0x1788a9,'upgradeMessage':pickString(_0x4030b9[_0x497cf2(0x1f8)])??undefined,'minimumVersionMessage':pickString(_0x4030b9[_0x497cf2(0x1fd)])??undefined};}export async function fetchCliVersionPolicy(){const _0x1a9a21=a174_0x5eae;try{const _0x2b3275=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal[_0x1a9a21(0x1ed)](FETCH_TIMEOUT_MS)});if(!_0x2b3275['ok'])return null;return normalizeCliVersionPolicy(await _0x2b3275[_0x1a9a21(0x1fb)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x331c5e=a174_0x5eae,_0x4fc0d9=Date['now']();if(hasCachedPolicy){const _0x5393e3=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x4fc0d9-cachedAt<_0x5393e3)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x331c5e(0x1eb)](_0x3039c9=>{return cachedPolicy=_0x3039c9,cachedAt=Date['now'](),hasCachedPolicy=!![],_0x3039c9;})[_0x331c5e(0x1f3)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
@@ -1 +1 @@
1
- const a171_0x1f2e3b=a171_0x2a62;(function(_0x4c12ea,_0x2cec6e){const _0x20a949=a171_0x2a62,_0x53fb7e=_0x4c12ea();while(!![]){try{const _0x452c4b=parseInt(_0x20a949(0x1a3))/0x1+-parseInt(_0x20a949(0x1aa))/0x2*(parseInt(_0x20a949(0x1a8))/0x3)+parseInt(_0x20a949(0x19b))/0x4+parseInt(_0x20a949(0x1b7))/0x5*(-parseInt(_0x20a949(0x195))/0x6)+-parseInt(_0x20a949(0x198))/0x7+-parseInt(_0x20a949(0x199))/0x8+parseInt(_0x20a949(0x191))/0x9*(parseInt(_0x20a949(0x188))/0xa);if(_0x452c4b===_0x2cec6e)break;else _0x53fb7e['push'](_0x53fb7e['shift']());}catch(_0x27fac1){_0x53fb7e['push'](_0x53fb7e['shift']());}}}(a171_0x3d61,0x36a15));import a171_0x259ffa from'winston';import a171_0xee642f from'node:fs';import a171_0x5bd019 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a171_0x1f2e3b(0x193)];[a171_0x1f2e3b(0x186)]='';['currentRawCommand']='';constructor(){}[a171_0x1f2e3b(0x19a)](_0x264715){const _0x2bf6e1=a171_0x1f2e3b;this[_0x2bf6e1(0x1a2)]=_0x264715;}[a171_0x1f2e3b(0x194)](_0x256e1d){const _0x55de17=a171_0x1f2e3b;this[_0x55de17(0x186)]=a171_0x5bd019['join'](_0x256e1d,PRODUCT_CONFIG[_0x55de17(0x1b5)]),this[_0x55de17(0x193)]&&this[_0x55de17(0x193)][_0x55de17(0x1a7)](),this['initWinstonLogger']();}[a171_0x1f2e3b(0x1ae)](){const _0x46478e=a171_0x1f2e3b,_0x281c24=a171_0x5bd019['dirname'](this['logFilePath']);!a171_0xee642f['existsSync'](_0x281c24)&&a171_0xee642f[_0x46478e(0x189)](_0x281c24,{'recursive':!![]});const _0x3b6b29=a171_0x259ffa[_0x46478e(0x1a4)][_0x46478e(0x1ad)](a171_0x259ffa[_0x46478e(0x1a4)][_0x46478e(0x19d)](),a171_0x259ffa[_0x46478e(0x1a4)][_0x46478e(0x180)]({'stack':!![]}),a171_0x259ffa['format'][_0x46478e(0x18b)](_0x27f904=>{const _0x1e96b9=_0x46478e,_0x374b1b={'timestamp':_0x27f904[_0x1e96b9(0x19d)]||new Date()[_0x1e96b9(0x181)](),'level':_0x27f904[_0x1e96b9(0x19f)]||_0x1e96b9(0x1ac),'command':_0x27f904[_0x1e96b9(0x197)]||'unknown','rawCommand':_0x27f904['rawCommand']||this[_0x1e96b9(0x1a2)]||undefined,'message':_0x27f904['message']||'','duration':_0x27f904['duration']||undefined,'details':_0x27f904[_0x1e96b9(0x183)]||undefined};return JSON[_0x1e96b9(0x1a0)](_0x374b1b);}));this['winstonLogger']=a171_0x259ffa[_0x46478e(0x18c)]({'level':_0x46478e(0x1ac),'format':_0x3b6b29,'transports':[new a171_0x259ffa[(_0x46478e(0x1a5))][(_0x46478e(0x192))]({'filename':this[_0x46478e(0x186)],'level':_0x46478e(0x1ac)})],'silent':![]}),a171_0x259ffa[_0x46478e(0x19c)]({'success':'green','error':_0x46478e(0x1b1),'warn':_0x46478e(0x1b8),'info':'blue'});}[a171_0x1f2e3b(0x1ac)](_0xfba346,_0x47ebb6,_0x538e1d){const _0x5dae41=a171_0x1f2e3b;if(!this[_0x5dae41(0x186)]||!this[_0x5dae41(0x193)])return;this[_0x5dae41(0x193)][_0x5dae41(0x1ac)](_0x47ebb6,{'command':_0xfba346,'details':_0x538e1d});}[a171_0x1f2e3b(0x18e)](_0x5bb9a6,_0x4750f9,_0x429155,_0x1839a3){const _0x5e98b5=a171_0x1f2e3b;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger'][_0x5e98b5(0x1b2)]('info',_0x4750f9,{'level':_0x5e98b5(0x18e),'command':_0x5bb9a6,'duration':_0x429155,'details':_0x1839a3});}[a171_0x1f2e3b(0x1b3)](_0x17f785,_0x587a2c,_0x30876c){const _0xe1f1c3=a171_0x1f2e3b;if(!this[_0xe1f1c3(0x186)]||!this['winstonLogger'])return;this[_0xe1f1c3(0x193)]['error'](_0x587a2c,{'command':_0x17f785,'details':_0x30876c});}[a171_0x1f2e3b(0x17e)](_0x4d30d5,_0x4398de,_0x58d468){const _0x541a0f=a171_0x1f2e3b;if(!this[_0x541a0f(0x186)]||!this[_0x541a0f(0x193)])return;this['winstonLogger'][_0x541a0f(0x17e)](_0x4398de,{'command':_0x4d30d5,'details':_0x58d468});}async[a171_0x1f2e3b(0x187)](_0x2836fe,_0x570bd3,_0x167ab6){const _0xf92ed8=a171_0x1f2e3b,_0x2366ff=Date[_0xf92ed8(0x18f)]();this[_0xf92ed8(0x1ac)](_0x2836fe,_0xf92ed8(0x17f)+_0x570bd3);try{const _0x1f358b=await _0x167ab6(),_0xae14b=Date[_0xf92ed8(0x18f)]()-_0x2366ff;return this[_0xf92ed8(0x18e)](_0x2836fe,_0xf92ed8(0x18d)+_0x570bd3,_0xae14b),_0x1f358b;}catch(_0x4de9c6){const _0x15b956=Date[_0xf92ed8(0x18f)]()-_0x2366ff;this[_0xf92ed8(0x1b3)](_0x2836fe,_0xf92ed8(0x18a)+_0x570bd3,{'error':_0x4de9c6 instanceof Error?_0x4de9c6[_0xf92ed8(0x184)]:String(_0x4de9c6),'duration':_0x15b956});throw _0x4de9c6;}}[a171_0x1f2e3b(0x182)](){const _0x4201cb=a171_0x1f2e3b;try{if(!a171_0xee642f[_0x4201cb(0x185)](this[_0x4201cb(0x186)]))return[];const _0x480b9d=a171_0xee642f[_0x4201cb(0x190)](this[_0x4201cb(0x186)],_0x4201cb(0x1a1));return _0x480b9d[_0x4201cb(0x1b0)](/\r?\n/)[_0x4201cb(0x196)](_0x463925=>_0x463925[_0x4201cb(0x19e)]())[_0x4201cb(0x1ab)](_0x611850=>JSON[_0x4201cb(0x1af)](_0x611850));}catch(_0xdcd95e){return console[_0x4201cb(0x17e)](_0x4201cb(0x1a9),_0xdcd95e),[];}}[a171_0x1f2e3b(0x1b6)](){const _0x309e6c=a171_0x1f2e3b;try{a171_0xee642f[_0x309e6c(0x185)](this[_0x309e6c(0x186)])&&a171_0xee642f['writeFileSync'](this['logFilePath'],'',_0x309e6c(0x1a1));}catch(_0x3185d8){console[_0x309e6c(0x17e)](_0x309e6c(0x1a6),_0x3185d8);}}[a171_0x1f2e3b(0x1b4)](){const _0x5c9540=a171_0x1f2e3b;return this[_0x5c9540(0x193)];}}function a171_0x2a62(_0x4342ea,_0x190431){_0x4342ea=_0x4342ea-0x17e;const _0x3d6184=a171_0x3d61();let _0x2a6256=_0x3d6184[_0x4342ea];return _0x2a6256;}export const logger=new Logger();function a171_0x3d61(){const _0xfb7144=['1685324CTeymO','addColors','timestamp','trim','level','stringify','utf8','currentRawCommand','194387euJecY','format','transports','Failed\x20to\x20clear\x20logs:','clear','39WUVmlN','Failed\x20to\x20read\x20logs:','32878qhmuhN','map','info','combine','initWinstonLogger','parse','split','red','log','error','getWinstonInstance','logFileName','clearLogs','20lqCXhm','yellow','warn','Starting:\x20','errors','toISOString','readLogs','details','message','existsSync','logFilePath','logTask','20WwRoJx','mkdirSync','Failed:\x20','printf','createLogger','Completed:\x20','success','now','readFileSync','1564884RtNmmP','File','winstonLogger','setLogPath','227442YIpjsE','filter','command','1529640ipJUUm','1246800GqVKIK','setRawCommand'];a171_0x3d61=function(){return _0xfb7144;};return a171_0x3d61();}
1
+ const a175_0x66b291=a175_0xe081;(function(_0x35add8,_0x43e7ac){const _0x2c099f=a175_0xe081,_0x2cb392=_0x35add8();while(!![]){try{const _0xf2d3d9=parseInt(_0x2c099f(0x1ca))/0x1*(-parseInt(_0x2c099f(0x1c4))/0x2)+-parseInt(_0x2c099f(0x1bf))/0x3*(parseInt(_0x2c099f(0x1cc))/0x4)+parseInt(_0x2c099f(0x1b5))/0x5+parseInt(_0x2c099f(0x1b2))/0x6+parseInt(_0x2c099f(0x1b0))/0x7*(-parseInt(_0x2c099f(0x1da))/0x8)+parseInt(_0x2c099f(0x1d7))/0x9*(parseInt(_0x2c099f(0x1c8))/0xa)+parseInt(_0x2c099f(0x1d4))/0xb;if(_0xf2d3d9===_0x43e7ac)break;else _0x2cb392['push'](_0x2cb392['shift']());}catch(_0x34603d){_0x2cb392['push'](_0x2cb392['shift']());}}}(a175_0x19f7,0x60f1d));import a175_0x5aa22f from'winston';import a175_0x49387e from'node:fs';function a175_0xe081(_0x52e2dd,_0xf31ac){_0x52e2dd=_0x52e2dd-0x1a4;const _0x19f74e=a175_0x19f7();let _0xe0817=_0x19f74e[_0x52e2dd];return _0xe0817;}import a175_0x5cfb4a from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a175_0x66b291(0x1d9)];[a175_0x66b291(0x1c5)]='';[a175_0x66b291(0x1bb)]='';constructor(){}[a175_0x66b291(0x1d0)](_0x197940){this['currentRawCommand']=_0x197940;}[a175_0x66b291(0x1aa)](_0x37ae44){const _0x19d5d5=a175_0x66b291;this['logFilePath']=a175_0x5cfb4a[_0x19d5d5(0x1cf)](_0x37ae44,PRODUCT_CONFIG[_0x19d5d5(0x1b8)]),this[_0x19d5d5(0x1d9)]&&this['winstonLogger'][_0x19d5d5(0x1c1)](),this[_0x19d5d5(0x1ac)]();}[a175_0x66b291(0x1ac)](){const _0x353deb=a175_0x66b291,_0x42cb88=a175_0x5cfb4a[_0x353deb(0x1c0)](this[_0x353deb(0x1c5)]);!a175_0x49387e['existsSync'](_0x42cb88)&&a175_0x49387e[_0x353deb(0x1c7)](_0x42cb88,{'recursive':!![]});const _0x196953=a175_0x5aa22f[_0x353deb(0x1c3)][_0x353deb(0x1c6)](a175_0x5aa22f[_0x353deb(0x1c3)]['timestamp'](),a175_0x5aa22f[_0x353deb(0x1c3)]['errors']({'stack':!![]}),a175_0x5aa22f[_0x353deb(0x1c3)][_0x353deb(0x1ba)](_0x46c61b=>{const _0x19e1fa=_0x353deb,_0x418155={'timestamp':_0x46c61b[_0x19e1fa(0x1b1)]||new Date()['toISOString'](),'level':_0x46c61b[_0x19e1fa(0x1c9)]||_0x19e1fa(0x1be),'command':_0x46c61b['command']||_0x19e1fa(0x1b7),'rawCommand':_0x46c61b['rawCommand']||this[_0x19e1fa(0x1bb)]||undefined,'message':_0x46c61b[_0x19e1fa(0x1bd)]||'','duration':_0x46c61b[_0x19e1fa(0x1b9)]||undefined,'details':_0x46c61b[_0x19e1fa(0x1d6)]||undefined};return JSON[_0x19e1fa(0x1c2)](_0x418155);}));this[_0x353deb(0x1d9)]=a175_0x5aa22f['createLogger']({'level':_0x353deb(0x1be),'format':_0x196953,'transports':[new a175_0x5aa22f[(_0x353deb(0x1b6))][(_0x353deb(0x1cb))]({'filename':this['logFilePath'],'level':_0x353deb(0x1be)})],'silent':![]}),a175_0x5aa22f[_0x353deb(0x1a9)]({'success':'green','error':_0x353deb(0x1ab),'warn':_0x353deb(0x1db),'info':_0x353deb(0x1bc)});}['info'](_0x17fe10,_0x13ad1e,_0x3556a5){const _0x214efc=a175_0x66b291;if(!this[_0x214efc(0x1c5)]||!this['winstonLogger'])return;this['winstonLogger']['info'](_0x13ad1e,{'command':_0x17fe10,'details':_0x3556a5});}[a175_0x66b291(0x1d5)](_0x1dfbac,_0x14a99e,_0x2536e6,_0x1cfa1c){const _0x4f67fa=a175_0x66b291;if(!this[_0x4f67fa(0x1c5)]||!this[_0x4f67fa(0x1d9)])return;this['winstonLogger']['log'](_0x4f67fa(0x1be),_0x14a99e,{'level':_0x4f67fa(0x1d5),'command':_0x1dfbac,'duration':_0x2536e6,'details':_0x1cfa1c});}['error'](_0x47e180,_0x469933,_0x485a99){const _0x58619c=a175_0x66b291;if(!this['logFilePath']||!this[_0x58619c(0x1d9)])return;this[_0x58619c(0x1d9)][_0x58619c(0x1d1)](_0x469933,{'command':_0x47e180,'details':_0x485a99});}['warn'](_0x28bbca,_0x33112e,_0x36b80a){const _0x895d17=a175_0x66b291;if(!this[_0x895d17(0x1c5)]||!this[_0x895d17(0x1d9)])return;this[_0x895d17(0x1d9)][_0x895d17(0x1ce)](_0x33112e,{'command':_0x28bbca,'details':_0x36b80a});}async['logTask'](_0x2a7023,_0xa6f0ba,_0x1c367d){const _0x2dfcfd=a175_0x66b291,_0x15efd0=Date[_0x2dfcfd(0x1a6)]();this['info'](_0x2a7023,'Starting:\x20'+_0xa6f0ba);try{const _0x3b39fb=await _0x1c367d(),_0x3805a1=Date['now']()-_0x15efd0;return this[_0x2dfcfd(0x1d5)](_0x2a7023,_0x2dfcfd(0x1a5)+_0xa6f0ba,_0x3805a1),_0x3b39fb;}catch(_0x1f6cf6){const _0x37c285=Date['now']()-_0x15efd0;this[_0x2dfcfd(0x1d1)](_0x2a7023,_0x2dfcfd(0x1ae)+_0xa6f0ba,{'error':_0x1f6cf6 instanceof Error?_0x1f6cf6['message']:String(_0x1f6cf6),'duration':_0x37c285});throw _0x1f6cf6;}}['readLogs'](){const _0x451db6=a175_0x66b291;try{if(!a175_0x49387e[_0x451db6(0x1cd)](this['logFilePath']))return[];const _0x5ba233=a175_0x49387e[_0x451db6(0x1b4)](this[_0x451db6(0x1c5)],_0x451db6(0x1d8));return _0x5ba233[_0x451db6(0x1a4)](/\r?\n/)[_0x451db6(0x1a7)](_0x21e3e2=>_0x21e3e2[_0x451db6(0x1af)]())[_0x451db6(0x1ad)](_0x1cb50e=>JSON[_0x451db6(0x1a8)](_0x1cb50e));}catch(_0x4c7c11){return console[_0x451db6(0x1ce)](_0x451db6(0x1d3),_0x4c7c11),[];}}[a175_0x66b291(0x1d2)](){const _0x1aab36=a175_0x66b291;try{a175_0x49387e[_0x1aab36(0x1cd)](this[_0x1aab36(0x1c5)])&&a175_0x49387e[_0x1aab36(0x1b3)](this[_0x1aab36(0x1c5)],'',_0x1aab36(0x1d8));}catch(_0x518bc5){console[_0x1aab36(0x1ce)]('Failed\x20to\x20clear\x20logs:',_0x518bc5);}}['getWinstonInstance'](){const _0x117ca1=a175_0x66b291;return this[_0x117ca1(0x1d9)];}}export const logger=new Logger();function a175_0x19f7(){const _0x10f24e=['mkdirSync','34070ASFOZg','level','560846IqrVfw','File','276DsohdY','existsSync','warn','join','setRawCommand','error','clearLogs','Failed\x20to\x20read\x20logs:','4130346NsyybZ','success','details','1656OyghZq','utf8','winstonLogger','188456opBHEk','yellow','split','Completed:\x20','now','filter','parse','addColors','setLogPath','red','initWinstonLogger','map','Failed:\x20','trim','168erraJC','timestamp','1517208TmdiLi','writeFileSync','readFileSync','1988540MVGByu','transports','unknown','logFileName','duration','printf','currentRawCommand','blue','message','info','5637rNLMQR','dirname','clear','stringify','format','2OjNqaK','logFilePath','combine'];a175_0x19f7=function(){return _0x10f24e;};return a175_0x19f7();}
@@ -1 +1 @@
1
- const a172_0x52c092=a172_0x30a1;(function(_0x39eceb,_0x36c103){const _0x4fac7d=a172_0x30a1,_0x2efe06=_0x39eceb();while(!![]){try{const _0x3d0481=parseInt(_0x4fac7d(0x176))/0x1+-parseInt(_0x4fac7d(0x17b))/0x2+-parseInt(_0x4fac7d(0x17d))/0x3+-parseInt(_0x4fac7d(0x178))/0x4+parseInt(_0x4fac7d(0x17e))/0x5*(-parseInt(_0x4fac7d(0x177))/0x6)+parseInt(_0x4fac7d(0x17f))/0x7*(parseInt(_0x4fac7d(0x17a))/0x8)+parseInt(_0x4fac7d(0x17c))/0x9*(parseInt(_0x4fac7d(0x188))/0xa);if(_0x3d0481===_0x36c103)break;else _0x2efe06['push'](_0x2efe06['shift']());}catch(_0xc7dd83){_0x2efe06['push'](_0x2efe06['shift']());}}}(a172_0x16f9,0x19d26));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a172_0x52c092(0x185)]),MIN_SAFE_INTEGER=BigInt(Number[a172_0x52c092(0x181)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a172_0x16f9(){const _0x30ff5b=['getOwnPropertyDescriptor','includes','184395QZpWqZ','870mwSpMw','605852zMyrHV','json','8jTvtog','190480zBtDUG','2988954sukOUj','179508ZPAogQ','6985ndNpiK','688583Vgnnhx','length','MIN_SAFE_INTEGER','defineProperty','exec','prototype','MAX_SAFE_INTEGER','parse','text','10WQgxJU'];a172_0x16f9=function(){return _0x30ff5b;};return a172_0x16f9();}function a172_0x30a1(_0x3203d3,_0x5eca56){_0x3203d3=_0x3203d3-0x176;const _0x16f902=a172_0x16f9();let _0x30a126=_0x16f902[_0x3203d3];return _0x30a126;}function isUnsafeIntegerLiteral(_0x2a7073){const _0x51de91=a172_0x52c092;if(_0x2a7073[_0x51de91(0x18a)]('.')||_0x2a7073['includes']('e')||_0x2a7073[_0x51de91(0x18a)]('E'))return![];const _0x5e5ad6=BigInt(_0x2a7073);return _0x5e5ad6>MAX_SAFE_INTEGER||_0x5e5ad6<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x4ab5fe){const _0xf67009=a172_0x52c092;let _0x3ae81a='',_0x444f42=![],_0x57cb63=![];for(let _0x772fd8=0x0;_0x772fd8<_0x4ab5fe[_0xf67009(0x180)];){const _0x3225ad=_0x4ab5fe[_0x772fd8];if(_0x444f42){_0x3ae81a+=_0x3225ad,_0x772fd8+=0x1;if(_0x57cb63)_0x57cb63=![];else{if(_0x3225ad==='\x5c')_0x57cb63=!![];else _0x3225ad==='\x22'&&(_0x444f42=![]);}continue;}if(_0x3225ad==='\x22'){_0x444f42=!![],_0x3ae81a+=_0x3225ad,_0x772fd8+=0x1;continue;}if(_0x3225ad==='-'||_0x3225ad>='0'&&_0x3225ad<='9'){const _0x3d6e3d=JSON_NUMBER_PATTERN[_0xf67009(0x183)](_0x4ab5fe['slice'](_0x772fd8))?.[0x0];if(_0x3d6e3d){_0x3ae81a+=isUnsafeIntegerLiteral(_0x3d6e3d)?'\x22'+_0x3d6e3d+'\x22':_0x3d6e3d,_0x772fd8+=_0x3d6e3d[_0xf67009(0x180)];continue;}}_0x3ae81a+=_0x3225ad,_0x772fd8+=0x1;}return _0x3ae81a;}export function parseLosslessJson(_0x5530ca){const _0x50fefd=a172_0x52c092;return JSON[_0x50fefd(0x186)](quoteUnsafeIntegerLiterals(_0x5530ca));}export function installLosslessJsonResponseParser(){const _0x418dce=a172_0x52c092;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x418dce(0x184)],originalResponseJsonDescriptor=Object[_0x418dce(0x189)](responseJsonPrototype,_0x418dce(0x179)),Object[_0x418dce(0x182)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x4f084d(){const _0x24ea02=_0x418dce;return parseLosslessJson(await this[_0x24ea02(0x187)]());}}),restoreResponseJsonParser=()=>{const _0x552707=_0x418dce;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x552707(0x182)](responseJsonPrototype,_0x552707(0x179),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x552707(0x179)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ const a176_0x14be66=a176_0x32de;function a176_0x4c15(){const _0x4df071=['slice','1148589PMcuiC','4xrkkyk','exec','text','defineProperty','130267mkRCVC','MIN_SAFE_INTEGER','24XnTaQU','MAX_SAFE_INTEGER','getOwnPropertyDescriptor','22745IlOFyd','372xIyUup','1973364XCCvpq','length','prototype','json','includes','3937171AIXZeb','12257440xjMZtx','parse','1537011nmVWSC'];a176_0x4c15=function(){return _0x4df071;};return a176_0x4c15();}(function(_0x52748c,_0x145365){const _0x4dad4a=a176_0x32de,_0x365944=_0x52748c();while(!![]){try{const _0x330499=-parseInt(_0x4dad4a(0x1ae))/0x1*(parseInt(_0x4dad4a(0x1aa))/0x2)+-parseInt(_0x4dad4a(0x1a9))/0x3+parseInt(_0x4dad4a(0x1b5))/0x4+parseInt(_0x4dad4a(0x1b3))/0x5*(parseInt(_0x4dad4a(0x1b4))/0x6)+-parseInt(_0x4dad4a(0x1a4))/0x7+-parseInt(_0x4dad4a(0x1b0))/0x8*(parseInt(_0x4dad4a(0x1a7))/0x9)+parseInt(_0x4dad4a(0x1a5))/0xa;if(_0x330499===_0x145365)break;else _0x365944['push'](_0x365944['shift']());}catch(_0x3680aa){_0x365944['push'](_0x365944['shift']());}}}(a176_0x4c15,0x45138));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a176_0x14be66(0x1b1)]),MIN_SAFE_INTEGER=BigInt(Number[a176_0x14be66(0x1af)]);function a176_0x32de(_0x2fc2c2,_0x55d5e4){_0x2fc2c2=_0x2fc2c2-0x1a4;const _0x4c15df=a176_0x4c15();let _0x32de0d=_0x4c15df[_0x2fc2c2];return _0x32de0d;}let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x46d941){const _0x57d199=a176_0x14be66;if(_0x46d941[_0x57d199(0x1b9)]('.')||_0x46d941['includes']('e')||_0x46d941[_0x57d199(0x1b9)]('E'))return![];const _0xbc9c0e=BigInt(_0x46d941);return _0xbc9c0e>MAX_SAFE_INTEGER||_0xbc9c0e<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x2c5f75){const _0x4c52c3=a176_0x14be66;let _0x27d13a='',_0x91edff=![],_0xfeb6b7=![];for(let _0xd985f9=0x0;_0xd985f9<_0x2c5f75[_0x4c52c3(0x1b6)];){const _0x526d99=_0x2c5f75[_0xd985f9];if(_0x91edff){_0x27d13a+=_0x526d99,_0xd985f9+=0x1;if(_0xfeb6b7)_0xfeb6b7=![];else{if(_0x526d99==='\x5c')_0xfeb6b7=!![];else _0x526d99==='\x22'&&(_0x91edff=![]);}continue;}if(_0x526d99==='\x22'){_0x91edff=!![],_0x27d13a+=_0x526d99,_0xd985f9+=0x1;continue;}if(_0x526d99==='-'||_0x526d99>='0'&&_0x526d99<='9'){const _0x5d6e87=JSON_NUMBER_PATTERN[_0x4c52c3(0x1ab)](_0x2c5f75[_0x4c52c3(0x1a8)](_0xd985f9))?.[0x0];if(_0x5d6e87){_0x27d13a+=isUnsafeIntegerLiteral(_0x5d6e87)?'\x22'+_0x5d6e87+'\x22':_0x5d6e87,_0xd985f9+=_0x5d6e87[_0x4c52c3(0x1b6)];continue;}}_0x27d13a+=_0x526d99,_0xd985f9+=0x1;}return _0x27d13a;}export function parseLosslessJson(_0x49c2fd){const _0x1db41b=a176_0x14be66;return JSON[_0x1db41b(0x1a6)](quoteUnsafeIntegerLiterals(_0x49c2fd));}export function installLosslessJsonResponseParser(){const _0x3dde74=a176_0x14be66;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x3dde74(0x1b7)],originalResponseJsonDescriptor=Object[_0x3dde74(0x1b2)](responseJsonPrototype,_0x3dde74(0x1b8)),Object[_0x3dde74(0x1ad)](responseJsonPrototype,_0x3dde74(0x1b8),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0xee5f4a(){const _0x3881c2=_0x3dde74;return parseLosslessJson(await this[_0x3881c2(0x1ac)]());}}),restoreResponseJsonParser=()=>{const _0x58942b=_0x3dde74;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x58942b(0x1ad)](responseJsonPrototype,_0x58942b(0x1b8),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x58942b(0x1b8)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
@@ -1 +1 @@
1
- (function(_0x3c9c80,_0x7f0941){const _0x23c20a=a173_0x5e68,_0x12a343=_0x3c9c80();while(!![]){try{const _0x2396d8=-parseInt(_0x23c20a(0x1c8))/0x1+-parseInt(_0x23c20a(0x1d2))/0x2*(-parseInt(_0x23c20a(0x1ca))/0x3)+parseInt(_0x23c20a(0x1c1))/0x4+parseInt(_0x23c20a(0x1d7))/0x5+parseInt(_0x23c20a(0x1c4))/0x6*(parseInt(_0x23c20a(0x1c2))/0x7)+-parseInt(_0x23c20a(0x1c5))/0x8+-parseInt(_0x23c20a(0x1c9))/0x9;if(_0x2396d8===_0x7f0941)break;else _0x12a343['push'](_0x12a343['shift']());}catch(_0x44587a){_0x12a343['push'](_0x12a343['shift']());}}}(a173_0x2aae,0x543f2));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x31560a){const _0x5ef167=a173_0x5e68;if(!_0x31560a)return undefined;try{return parseLosslessJson(_0x31560a);}catch{throw CliErrors[_0x5ef167(0x1bf)](_0x5ef167(0x1d4)+_0x31560a);}}function a173_0x5e68(_0x34f737,_0xc3c712){_0x34f737=_0x34f737-0x1be;const _0x2aae4e=a173_0x2aae();let _0x5e6862=_0x2aae4e[_0x34f737];return _0x5e6862;}export function parseJsonParamsValue(_0xd7fef3){const _0x179502=a173_0x5e68;if(!_0xd7fef3)return undefined;try{return parseLosslessJson(_0xd7fef3);}catch{throw CliErrors[_0x179502(0x1bf)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0xd7fef3);}}function a173_0x2aae(){const _0x546837=['number','validation','\x20records\x20per\x20call;\x20received\x20','1870420TiiXSU','1920709DACZPu','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','6GzspmR','3825464Qfhosj','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','items','550629eLJqMc','2455722oWOoxg','3681rikfZP','object','length','test','id[','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','isArray','584ArnddE','join','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','2732340JhTGdr','map'];a173_0x2aae=function(){return _0x546837;};return a173_0x2aae();}export function parseBatchCreateItemsFromParams(_0x4cca38){const _0x3068bd=a173_0x5e68;if(Array[_0x3068bd(0x1d1)](_0x4cca38))return _0x4cca38;if(_0x4cca38!==null&&_0x4cca38!==undefined&&typeof _0x4cca38===_0x3068bd(0x1cb)&&Array[_0x3068bd(0x1d1)](_0x4cca38[_0x3068bd(0x1c7)]))return _0x4cca38[_0x3068bd(0x1c7)];throw CliErrors[_0x3068bd(0x1bf)](_0x3068bd(0x1d0),_0x3068bd(0x1d5));}function parseDataUpdateId(_0x31e25b,_0x3bc75e){const _0x19045c=a173_0x5e68;if(typeof _0x31e25b===_0x19045c(0x1be)&&Number['isSafeInteger'](_0x31e25b)&&_0x31e25b>0x0)return _0x31e25b;if(typeof _0x31e25b==='string'){if(/^[1-9]\d*$/[_0x19045c(0x1cd)](_0x31e25b))return _0x31e25b;}throw CliErrors['validation']('data\x20update\x20--params.'+_0x3bc75e+_0x19045c(0x1c6));}export function parseUpdateIdsFromParams(_0x527c73){const _0x273d16=a173_0x5e68;if(_0x527c73===null||_0x527c73===undefined||typeof _0x527c73!=='object'||Array[_0x273d16(0x1d1)](_0x527c73))throw CliErrors[_0x273d16(0x1bf)](_0x273d16(0x1cf),_0x273d16(0x1d6));const _0xf173cc=_0x527c73['id'];if(_0xf173cc===undefined||_0xf173cc===null)throw CliErrors[_0x273d16(0x1bf)](_0x273d16(0x1c3),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x2602f1=Array[_0x273d16(0x1d1)](_0xf173cc)?_0xf173cc:[_0xf173cc];if(_0x2602f1['length']===0x0)throw CliErrors[_0x273d16(0x1bf)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x2602f1[_0x273d16(0x1cc)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x273d16(0x1bf)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x273d16(0x1c0)+_0x2602f1[_0x273d16(0x1cc)]+'.');return _0x2602f1[_0x273d16(0x1d8)]((_0x2ed8b7,_0x33d63e)=>parseDataUpdateId(_0x2ed8b7,Array['isArray'](_0xf173cc)?_0x273d16(0x1ce)+_0x33d63e+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x3e3881,_0xa25bef){const _0x1182e9=a173_0x5e68;if(Array['isArray'](_0x3e3881['id'])&&_0xa25bef['length']>0x1)return{..._0x3e3881,'id':_0xa25bef[_0x1182e9(0x1d3)](',')};return _0x3e3881;}
1
+ (function(_0xa4e408,_0x477af2){const _0x1430cd=a177_0x5669,_0x4c55f2=_0xa4e408();while(!![]){try{const _0x2b9824=parseInt(_0x1430cd(0x8e))/0x1*(-parseInt(_0x1430cd(0x91))/0x2)+-parseInt(_0x1430cd(0x89))/0x3*(-parseInt(_0x1430cd(0x93))/0x4)+-parseInt(_0x1430cd(0x87))/0x5*(-parseInt(_0x1430cd(0x7a))/0x6)+-parseInt(_0x1430cd(0x78))/0x7+parseInt(_0x1430cd(0x82))/0x8*(-parseInt(_0x1430cd(0x85))/0x9)+-parseInt(_0x1430cd(0x7c))/0xa+parseInt(_0x1430cd(0x8f))/0xb*(parseInt(_0x1430cd(0x7e))/0xc);if(_0x2b9824===_0x477af2)break;else _0x4c55f2['push'](_0x4c55f2['shift']());}catch(_0x2dd817){_0x4c55f2['push'](_0x4c55f2['shift']());}}}(a177_0x10f4,0x60bd9));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x43a88a){const _0x19d9ea=a177_0x5669;if(!_0x43a88a)return undefined;try{return parseLosslessJson(_0x43a88a);}catch{throw CliErrors[_0x19d9ea(0x8a)](_0x19d9ea(0x86)+_0x43a88a);}}function a177_0x5669(_0x65e82b,_0x2637b8){_0x65e82b=_0x65e82b-0x78;const _0x10f4a4=a177_0x10f4();let _0x56695d=_0x10f4a4[_0x65e82b];return _0x56695d;}export function parseJsonParamsValue(_0x39a6de){const _0x385be6=a177_0x5669;if(!_0x39a6de)return undefined;try{return parseLosslessJson(_0x39a6de);}catch{throw CliErrors[_0x385be6(0x8a)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x39a6de);}}export function parseBatchCreateItemsFromParams(_0x2bbe96){const _0x1b87d2=a177_0x5669;if(Array[_0x1b87d2(0x8b)](_0x2bbe96))return _0x2bbe96;if(_0x2bbe96!==null&&_0x2bbe96!==undefined&&typeof _0x2bbe96===_0x1b87d2(0x7d)&&Array[_0x1b87d2(0x8b)](_0x2bbe96[_0x1b87d2(0x84)]))return _0x2bbe96['items'];throw CliErrors[_0x1b87d2(0x8a)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x1b87d2(0x7f));}function parseDataUpdateId(_0x148b1a,_0x5e3528){const _0x69547a=a177_0x5669;if(typeof _0x148b1a===_0x69547a(0x8d)&&Number[_0x69547a(0x81)](_0x148b1a)&&_0x148b1a>0x0)return _0x148b1a;if(typeof _0x148b1a===_0x69547a(0x80)){if(/^[1-9]\d*$/[_0x69547a(0x88)](_0x148b1a))return _0x148b1a;}throw CliErrors[_0x69547a(0x8a)](_0x69547a(0x90)+_0x5e3528+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x38b714){const _0x5687c4=a177_0x5669;if(_0x38b714===null||_0x38b714===undefined||typeof _0x38b714!=='object'||Array[_0x5687c4(0x8b)](_0x38b714))throw CliErrors[_0x5687c4(0x8a)](_0x5687c4(0x95),_0x5687c4(0x94));const _0x1c0c0d=_0x38b714['id'];if(_0x1c0c0d===undefined||_0x1c0c0d===null)throw CliErrors[_0x5687c4(0x8a)](_0x5687c4(0x7b),_0x5687c4(0x94));const _0x34e39f=Array[_0x5687c4(0x8b)](_0x1c0c0d)?_0x1c0c0d:[_0x1c0c0d];if(_0x34e39f['length']===0x0)throw CliErrors[_0x5687c4(0x8a)](_0x5687c4(0x83));if(_0x34e39f[_0x5687c4(0x92)]>MAX_DATA_UPDATE_IDS)throw CliErrors['validation']('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x5687c4(0x8c)+_0x34e39f[_0x5687c4(0x92)]+'.');return _0x34e39f[_0x5687c4(0x79)]((_0x4f4b61,_0x1fa826)=>parseDataUpdateId(_0x4f4b61,Array[_0x5687c4(0x8b)](_0x1c0c0d)?_0x5687c4(0x96)+_0x1fa826+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x111926,_0x5c2841){const _0x8026cd=a177_0x5669;if(Array[_0x8026cd(0x8b)](_0x111926['id'])&&_0x5c2841[_0x8026cd(0x92)]>0x1)return{..._0x111926,'id':_0x5c2841['join'](',')};return _0x111926;}function a177_0x10f4(){const _0x557181=['108048CsMAMQ','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','string','isSafeInteger','16jUFWnm','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','items','3290409PTUBhU','Invalid\x20JSON\x20for\x20--params:\x20','191305qiaaPA','test','6qiBJVa','validation','isArray','\x20records\x20per\x20call;\x20received\x20','number','1207WpaTHX','1144hKseTa','data\x20update\x20--params.','1284alOlCX','length','1398572emTHde','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','id[','1917496rTcGrs','map','102qXwnsd','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','1098660TOmIQj','object'];a177_0x10f4=function(){return _0x557181;};return a177_0x10f4();}
@@ -1 +1 @@
1
- (function(_0x54971c,_0x1b7db3){const _0x2e77c0=a174_0x1615,_0x5524c9=_0x54971c();while(!![]){try{const _0x4974e5=-parseInt(_0x2e77c0(0x142))/0x1+parseInt(_0x2e77c0(0x13e))/0x2*(parseInt(_0x2e77c0(0x13f))/0x3)+-parseInt(_0x2e77c0(0x144))/0x4+-parseInt(_0x2e77c0(0x146))/0x5+parseInt(_0x2e77c0(0x147))/0x6*(parseInt(_0x2e77c0(0x145))/0x7)+-parseInt(_0x2e77c0(0x13d))/0x8+-parseInt(_0x2e77c0(0x149))/0x9*(-parseInt(_0x2e77c0(0x140))/0xa);if(_0x4974e5===_0x1b7db3)break;else _0x5524c9['push'](_0x5524c9['shift']());}catch(_0x5830d4){_0x5524c9['push'](_0x5524c9['shift']());}}}(a174_0x559b,0x386a4));export function normalizePositiveSafeInteger(_0x476084){const _0x3461b4=a174_0x1615;if(typeof _0x476084==='number')return Number[_0x3461b4(0x143)](_0x476084)&&_0x476084>0x0?_0x476084:undefined;if(typeof _0x476084!==_0x3461b4(0x141)||!/^\d+$/[_0x3461b4(0x148)](_0x476084))return undefined;const _0x1301d0=Number(_0x476084);return Number[_0x3461b4(0x143)](_0x1301d0)&&_0x1301d0>0x0?_0x1301d0:undefined;}function a174_0x1615(_0x1bad85,_0x2db6f0){_0x1bad85=_0x1bad85-0x13d;const _0x559b1a=a174_0x559b();let _0x161594=_0x559b1a[_0x1bad85];return _0x161594;}function a174_0x559b(){const _0x4c4c24=['976764NGkhwt','test','1647711TaUgdl','3466456SfvvjI','20002TQjcfQ','6JgootU','50KrmuiR','string','130066fybVpj','isSafeInteger','102636rLtGCM','7yZQbvy','1390415EbMaej'];a174_0x559b=function(){return _0x4c4c24;};return a174_0x559b();}
1
+ function a178_0x2890(_0x1c5ca1,_0x52d78e){_0x1c5ca1=_0x1c5ca1-0x1da;const _0x5271ff=a178_0x5271();let _0x2890e6=_0x5271ff[_0x1c5ca1];return _0x2890e6;}function a178_0x5271(){const _0x344acd=['test','7857048gVbAfF','4191817nvObBz','1047055ladIsG','2xHYpGF','isSafeInteger','string','8YNZsRY','1083261YAyTgD','102751EnIjLi','5950896dfyAsY','7643745RgMqwZ'];a178_0x5271=function(){return _0x344acd;};return a178_0x5271();}(function(_0x417bac,_0x9c41c0){const _0x1041c5=a178_0x2890,_0x52717f=_0x417bac();while(!![]){try{const _0x27593e=-parseInt(_0x1041c5(0x1df))/0x1*(-parseInt(_0x1041c5(0x1da))/0x2)+parseInt(_0x1041c5(0x1de))/0x3*(-parseInt(_0x1041c5(0x1dd))/0x4)+-parseInt(_0x1041c5(0x1e5))/0x5+-parseInt(_0x1041c5(0x1e0))/0x6+parseInt(_0x1041c5(0x1e4))/0x7+parseInt(_0x1041c5(0x1e3))/0x8+parseInt(_0x1041c5(0x1e1))/0x9;if(_0x27593e===_0x9c41c0)break;else _0x52717f['push'](_0x52717f['shift']());}catch(_0x3e9221){_0x52717f['push'](_0x52717f['shift']());}}}(a178_0x5271,0x94d51));export function normalizePositiveSafeInteger(_0xf15ca9){const _0x4383c6=a178_0x2890;if(typeof _0xf15ca9==='number')return Number[_0x4383c6(0x1db)](_0xf15ca9)&&_0xf15ca9>0x0?_0xf15ca9:undefined;if(typeof _0xf15ca9!==_0x4383c6(0x1dc)||!/^\d+$/[_0x4383c6(0x1e2)](_0xf15ca9))return undefined;const _0x3917f9=Number(_0xf15ca9);return Number[_0x4383c6(0x1db)](_0x3917f9)&&_0x3917f9>0x0?_0x3917f9:undefined;}
@@ -1 +1 @@
1
- const a175_0x114e6f=a175_0x4cb2;(function(_0x3c3028,_0x5d59fd){const _0x46449d=a175_0x4cb2,_0x4d3cc8=_0x3c3028();while(!![]){try{const _0x5b7ea3=-parseInt(_0x46449d(0xbf))/0x1+parseInt(_0x46449d(0xbe))/0x2+parseInt(_0x46449d(0xc4))/0x3*(-parseInt(_0x46449d(0xcd))/0x4)+parseInt(_0x46449d(0xc8))/0x5+parseInt(_0x46449d(0xcc))/0x6*(-parseInt(_0x46449d(0xc5))/0x7)+parseInt(_0x46449d(0xc6))/0x8*(parseInt(_0x46449d(0xd2))/0x9)+-parseInt(_0x46449d(0xc1))/0xa*(-parseInt(_0x46449d(0xc2))/0xb);if(_0x5b7ea3===_0x5d59fd)break;else _0x4d3cc8['push'](_0x4d3cc8['shift']());}catch(_0x2a638e){_0x4d3cc8['push'](_0x4d3cc8['shift']());}}}(a175_0x4a81,0x395d2));const REDACTED_VALUE=a175_0x114e6f(0xbd),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a175_0x114e6f(0xd1),a175_0x114e6f(0xcf)]),SENSITIVE_VALUE_KEYS=new Set([a175_0x114e6f(0xd1)]);export function isSensitiveKey(_0x460043){const _0x564d63=a175_0x114e6f,_0xcc4aaf=_0x460043['replace'](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x564d63(0xce)](_0xcc4aaf);}export function isSensitiveFlagName(_0x558c86){const _0x199f43=a175_0x114e6f,_0x434afa=_0x558c86[_0x199f43(0xcb)](/_/g,'-')[_0x199f43(0xbc)]();return isSensitiveKey(_0x434afa)||SENSITIVE_FLAG_NAMES['has'](_0x434afa);}function a175_0x4a81(){const _0x354fe5=['701534vaceOQ','292044QbEzPq','push','220qkXTOv','122639QXPUBO','entries','67806PxjlGy','28126iFAfup','16yuVoRF','map','1979285gNJLND','fromEntries','match','replace','642hIgubE','28xoFMJJ','test','variables','object','comment','554598ENMoxH','toLowerCase','[REDACTED]'];a175_0x4a81=function(){return _0x354fe5;};return a175_0x4a81();}function redactVariableValues(_0x423b98){const _0x3fc99a=a175_0x114e6f;if(Array['isArray'](_0x423b98))return _0x423b98[_0x3fc99a(0xc7)](_0xbe7d5d=>redactVariableValues(_0xbe7d5d));if(_0x423b98&&typeof _0x423b98==='object')return Object[_0x3fc99a(0xc9)](Object[_0x3fc99a(0xc3)](_0x423b98)[_0x3fc99a(0xc7)](([_0x590100,_0x46b9a5])=>[_0x590100,redactVariableValues(_0x46b9a5)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x3a0ed7){const _0x41fba1=a175_0x114e6f;if(Array['isArray'](_0x3a0ed7))return _0x3a0ed7[_0x41fba1(0xc7)](_0x4ac2f5=>redactSensitiveValue(_0x4ac2f5));if(!_0x3a0ed7||typeof _0x3a0ed7!==_0x41fba1(0xd0))return _0x3a0ed7;const _0x3e4b0b={};for(const [_0x1f201a,_0x4997b0]of Object['entries'](_0x3a0ed7)){const _0x4da8f2=_0x1f201a[_0x41fba1(0xcb)](/_/g,'-')[_0x41fba1(0xbc)]();_0x3e4b0b[_0x1f201a]=_0x4da8f2==='variables'?redactVariableValues(_0x4997b0):SENSITIVE_VALUE_KEYS['has'](_0x4da8f2)||isSensitiveKey(_0x1f201a)?REDACTED_VALUE:redactSensitiveValue(_0x4997b0);}return _0x3e4b0b;}export function redactCommandArgv(_0x513516){const _0x50b2ac=a175_0x114e6f,_0x408919=[];let _0x54e7eb=![];for(const _0x2a3909 of _0x513516){if(_0x54e7eb){_0x408919[_0x50b2ac(0xc0)](REDACTED_VALUE),_0x54e7eb=![];continue;}const _0xad916f=_0x2a3909[_0x50b2ac(0xca)](/^--([^=]+)(?:=(.*))?$/);if(!_0xad916f||!isSensitiveFlagName(_0xad916f[0x1]??'')){_0x408919['push'](_0x2a3909);continue;}_0x408919[_0x50b2ac(0xc0)]('--'+_0xad916f[0x1]+(_0xad916f[0x2]===undefined?'':'='+REDACTED_VALUE)),_0xad916f[0x2]===undefined&&(_0x54e7eb=!![]);}return _0x408919;}function a175_0x4cb2(_0x480c8f,_0x3cf2ee){_0x480c8f=_0x480c8f-0xbc;const _0x4a81b1=a175_0x4a81();let _0x4cb28a=_0x4a81b1[_0x480c8f];return _0x4cb28a;}export{REDACTED_VALUE};
1
+ function a179_0x4462(_0x54b6d6,_0x1c1521){_0x54b6d6=_0x54b6d6-0xe9;const _0x433ec1=a179_0x433e();let _0x446255=_0x433ec1[_0x54b6d6];return _0x446255;}const a179_0x1ca169=a179_0x4462;function a179_0x433e(){const _0x14fd88=['480CwkJRK','604296qHTFar','18etvVeC','replace','variables','comment','1160214djSpMz','fromEntries','push','map','1032787LCNgaa','227602AsisKt','test','10yaBlWz','has','16919RsMlxz','toLowerCase','1221354QmNmlm','1238970zyJZfm','entries','isArray','16ypBAWL','object'];a179_0x433e=function(){return _0x14fd88;};return a179_0x433e();}(function(_0x375601,_0x456aff){const _0x261c40=a179_0x4462,_0x3f7894=_0x375601();while(!![]){try{const _0x5af795=-parseInt(_0x261c40(0xef))/0x1+-parseInt(_0x261c40(0xf0))/0x2*(-parseInt(_0x261c40(0xfe))/0x3)+-parseInt(_0x261c40(0xfa))/0x4*(-parseInt(_0x261c40(0xf7))/0x5)+-parseInt(_0x261c40(0xfc))/0x6*(parseInt(_0x261c40(0xf4))/0x7)+parseInt(_0x261c40(0xfd))/0x8+parseInt(_0x261c40(0xf6))/0x9+parseInt(_0x261c40(0xf2))/0xa*(-parseInt(_0x261c40(0xeb))/0xb);if(_0x5af795===_0x456aff)break;else _0x3f7894['push'](_0x3f7894['shift']());}catch(_0x22017f){_0x3f7894['push'](_0x3f7894['shift']());}}}(a179_0x433e,0x87284));const REDACTED_VALUE='[REDACTED]',SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a179_0x1ca169(0xea),a179_0x1ca169(0xe9)]),SENSITIVE_VALUE_KEYS=new Set([a179_0x1ca169(0xea)]);export function isSensitiveKey(_0x48d02a){const _0x1a3c03=a179_0x1ca169,_0x4108c6=_0x48d02a['replace'](/_/g,'-')[_0x1a3c03(0xf5)]();return SENSITIVE_KEY_PATTERN[_0x1a3c03(0xf1)](_0x4108c6);}export function isSensitiveFlagName(_0x582bf2){const _0x415f36=a179_0x1ca169,_0x2b943d=_0x582bf2[_0x415f36(0xff)](/_/g,'-')[_0x415f36(0xf5)]();return isSensitiveKey(_0x2b943d)||SENSITIVE_FLAG_NAMES['has'](_0x2b943d);}function redactVariableValues(_0x249a42){const _0x59a0f9=a179_0x1ca169;if(Array[_0x59a0f9(0xf9)](_0x249a42))return _0x249a42[_0x59a0f9(0xee)](_0x19003f=>redactVariableValues(_0x19003f));if(_0x249a42&&typeof _0x249a42===_0x59a0f9(0xfb))return Object[_0x59a0f9(0xec)](Object[_0x59a0f9(0xf8)](_0x249a42)[_0x59a0f9(0xee)](([_0x575fa7,_0x351f5d])=>[_0x575fa7,redactVariableValues(_0x351f5d)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x394bb4){const _0x26829d=a179_0x1ca169;if(Array[_0x26829d(0xf9)](_0x394bb4))return _0x394bb4['map'](_0x192841=>redactSensitiveValue(_0x192841));if(!_0x394bb4||typeof _0x394bb4!=='object')return _0x394bb4;const _0x722ed5={};for(const [_0x386414,_0x57d3f2]of Object['entries'](_0x394bb4)){const _0x2e30f3=_0x386414[_0x26829d(0xff)](/_/g,'-')[_0x26829d(0xf5)]();_0x722ed5[_0x386414]=_0x2e30f3===_0x26829d(0xe9)?redactVariableValues(_0x57d3f2):SENSITIVE_VALUE_KEYS[_0x26829d(0xf3)](_0x2e30f3)||isSensitiveKey(_0x386414)?REDACTED_VALUE:redactSensitiveValue(_0x57d3f2);}return _0x722ed5;}export function redactCommandArgv(_0x4f81cb){const _0x2eec68=a179_0x1ca169,_0x2e26d4=[];let _0x2d75fd=![];for(const _0x5ef50b of _0x4f81cb){if(_0x2d75fd){_0x2e26d4[_0x2eec68(0xed)](REDACTED_VALUE),_0x2d75fd=![];continue;}const _0x975f69=_0x5ef50b['match'](/^--([^=]+)(?:=(.*))?$/);if(!_0x975f69||!isSensitiveFlagName(_0x975f69[0x1]??'')){_0x2e26d4[_0x2eec68(0xed)](_0x5ef50b);continue;}_0x2e26d4[_0x2eec68(0xed)]('--'+_0x975f69[0x1]+(_0x975f69[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x975f69[0x2]===undefined&&(_0x2d75fd=!![]);}return _0x2e26d4;}export{REDACTED_VALUE};
@@ -1 +1 @@
1
- function a176_0x538a(_0x316323,_0x234c25){_0x316323=_0x316323-0x194;const _0x38742b=a176_0x3874();let _0x538acf=_0x38742b[_0x316323];return _0x538acf;}(function(_0x3934c5,_0x3dd264){const _0xf65dbb=a176_0x538a,_0x5d32c8=_0x3934c5();while(!![]){try{const _0x54f235=-parseInt(_0xf65dbb(0x1a1))/0x1+-parseInt(_0xf65dbb(0x198))/0x2*(parseInt(_0xf65dbb(0x19e))/0x3)+-parseInt(_0xf65dbb(0x1a0))/0x4+parseInt(_0xf65dbb(0x195))/0x5*(-parseInt(_0xf65dbb(0x19a))/0x6)+parseInt(_0xf65dbb(0x19d))/0x7+parseInt(_0xf65dbb(0x194))/0x8+parseInt(_0xf65dbb(0x199))/0x9;if(_0x54f235===_0x3dd264)break;else _0x5d32c8['push'](_0x5d32c8['shift']());}catch(_0x1f78fd){_0x5d32c8['push'](_0x5d32c8['shift']());}}}(a176_0x3874,0x89f45));export function normalizeRuntimeUserId(_0x7e0d87){const _0x19e619=a176_0x538a;if(typeof _0x7e0d87===_0x19e619(0x19b))return Number[_0x19e619(0x19c)](_0x7e0d87)&&_0x7e0d87>0x0?String(_0x7e0d87):undefined;if(typeof _0x7e0d87!==_0x19e619(0x196)||!/^\d+$/[_0x19e619(0x197)](_0x7e0d87))return undefined;const _0x12778f=_0x7e0d87[_0x19e619(0x19f)](/^0+/,'');return _0x12778f||undefined;}function a176_0x3874(){const _0x328a56=['isSafeInteger','7084007tnPiLI','4137RLXiGE','replace','1716424kufeTQ','114041IjakgW','3195136qjgGWG','5UwUYoC','string','test','1352klQMPv','5945814LHZTVj','189762hbjEhM','number'];a176_0x3874=function(){return _0x328a56;};return a176_0x3874();}
1
+ (function(_0x8b0128,_0x17e8f7){const _0x431efd=a180_0x2da2,_0x28e692=_0x8b0128();while(!![]){try{const _0x580ad1=-parseInt(_0x431efd(0x198))/0x1+parseInt(_0x431efd(0x19a))/0x2*(parseInt(_0x431efd(0x19b))/0x3)+parseInt(_0x431efd(0x197))/0x4+parseInt(_0x431efd(0x195))/0x5+parseInt(_0x431efd(0x191))/0x6*(parseInt(_0x431efd(0x199))/0x7)+-parseInt(_0x431efd(0x192))/0x8*(-parseInt(_0x431efd(0x19c))/0x9)+-parseInt(_0x431efd(0x193))/0xa;if(_0x580ad1===_0x17e8f7)break;else _0x28e692['push'](_0x28e692['shift']());}catch(_0x1487c1){_0x28e692['push'](_0x28e692['shift']());}}}(a180_0x1aef,0xd7520));function a180_0x2da2(_0x5e3f16,_0x1304d2){_0x5e3f16=_0x5e3f16-0x191;const _0x1aef8c=a180_0x1aef();let _0x2da2e1=_0x1aef8c[_0x5e3f16];return _0x2da2e1;}function a180_0x1aef(){const _0x3e284c=['2100861EDPFmk','number','isSafeInteger','114234btixHp','32IQdhQx','38939480GSIcLb','string','4496910NNFFYs','replace','2233016nSxbkY','189502zTAfLo','511GIFKVV','1394qIWlWZ','5097ypOEld'];a180_0x1aef=function(){return _0x3e284c;};return a180_0x1aef();}export function normalizeRuntimeUserId(_0x20849d){const _0x1039c0=a180_0x2da2;if(typeof _0x20849d===_0x1039c0(0x19d))return Number[_0x1039c0(0x19e)](_0x20849d)&&_0x20849d>0x0?String(_0x20849d):undefined;if(typeof _0x20849d!==_0x1039c0(0x194)||!/^\d+$/['test'](_0x20849d))return undefined;const _0xbede11=_0x20849d[_0x1039c0(0x196)](/^0+/,'');return _0xbede11||undefined;}