@lovrabet/lovrabet-cli 2.3.7-beta.1 → 2.3.7

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 (180) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-management-client.js +1 -1
  109. package/lib/core/kb-search-client.js +1 -1
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/access-error.js +1 -1
  113. package/lib/framework/build-all-flags.js +1 -1
  114. package/lib/framework/dryrun.js +1 -1
  115. package/lib/framework/flags.js +1 -1
  116. package/lib/framework/help.js +1 -1
  117. package/lib/framework/index.js +1 -1
  118. package/lib/framework/output.js +1 -1
  119. package/lib/framework/preparse.js +1 -1
  120. package/lib/framework/rate-limit.js +1 -1
  121. package/lib/framework/raw-flags.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner-confirmation.js +1 -1
  124. package/lib/framework/runner-error.js +1 -1
  125. package/lib/framework/runner.js +1 -1
  126. package/lib/framework/schema-export.js +1 -1
  127. package/lib/framework/service-order.js +1 -1
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  141. package/lib/services/dataset-import/excel-reader.js +1 -1
  142. package/lib/services/dataset-import/image-bytes.js +1 -1
  143. package/lib/services/dataset-import/image-ooxml.js +1 -1
  144. package/lib/services/dataset-import/image-runner.js +1 -1
  145. package/lib/services/dataset-import/metadata.js +1 -1
  146. package/lib/services/dataset-import/preview.js +1 -1
  147. package/lib/services/dataset-import/runner.js +1 -1
  148. package/lib/skills/builtin-skill.js +1 -1
  149. package/lib/skills/npx-skills-add.js +1 -1
  150. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  151. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  152. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  153. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  154. package/lib/skills/runtime-skill-sync/links.js +1 -1
  155. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  156. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  157. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  158. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  159. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  160. package/lib/skills/runtime-skill-sync/push.js +1 -1
  161. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  162. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  163. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  164. package/lib/skills/runtime-skill-sync.js +1 -1
  165. package/lib/skills/skill-presence.js +1 -1
  166. package/lib/utils/access-key-redaction.js +1 -1
  167. package/lib/utils/apply-jq-filter.js +1 -1
  168. package/lib/utils/cli-version-check.js +1 -1
  169. package/lib/utils/cli-version-policy.js +1 -1
  170. package/lib/utils/logger.js +1 -1
  171. package/lib/utils/lossless-json.js +1 -1
  172. package/lib/utils/params.js +1 -1
  173. package/lib/utils/positive-safe-integer.js +1 -1
  174. package/lib/utils/redaction.js +1 -1
  175. package/lib/utils/update-notice.js +1 -1
  176. package/lib/utils/version.js +1 -1
  177. package/lib/utils/write-cli-side-channel.js +1 -1
  178. package/package.json +1 -1
  179. package/skills/lovrabet/SKILL.md +1 -1
  180. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x171cd4,_0x394258){const _0x5b8562=a158_0x251d,_0x2f9178=_0x171cd4();while(!![]){try{const _0x34c53c=parseInt(_0x5b8562(0x20e))/0x1*(-parseInt(_0x5b8562(0x1f7))/0x2)+-parseInt(_0x5b8562(0x1f9))/0x3*(-parseInt(_0x5b8562(0x1fc))/0x4)+-parseInt(_0x5b8562(0x20a))/0x5*(parseInt(_0x5b8562(0x213))/0x6)+-parseInt(_0x5b8562(0x212))/0x7*(parseInt(_0x5b8562(0x1f1))/0x8)+-parseInt(_0x5b8562(0x1ff))/0x9+-parseInt(_0x5b8562(0x207))/0xa+-parseInt(_0x5b8562(0x211))/0xb*(-parseInt(_0x5b8562(0x1f8))/0xc);if(_0x34c53c===_0x394258)break;else _0x2f9178['push'](_0x2f9178['shift']());}catch(_0x148593){_0x2f9178['push'](_0x2f9178['shift']());}}}(a158_0x4e4f,0x93997));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';function a158_0x251d(_0x1da522,_0x4c06d4){_0x1da522=_0x1da522-0x1f1;const _0x4e4f72=a158_0x4e4f();let _0x251dd8=_0x4e4f72[_0x1da522];return _0x251dd8;}function a158_0x4e4f(){const _0x234405=['zipSize','skillName','Runtime\x20Skill\x20is\x20missing\x20skillCode.','map','parse','string','path','3325900PfgUqI','trim','toISOString','217510ErTdwr','object','length','files','11rCscVr','isArray','fromEntries','154TDjpWC','7CUunug','132WFFBNu','example','hasUpstreamUpdate','readonly','skillCode','8464528tClWLk','sourceSessionId','manifest','validation','ossPath','tags','29884MmQBAZ','3640404BQPDYB','981nMPwBl','forkedFromSkillId','userId','12Jvmhgb','zipSha256','status','10183410vkxXir'];a158_0x4e4f=function(){return _0x234405;};return a158_0x4e4f();}export function buildMetadata(_0x297d54,_0xba1172,_0x449bc5,_0x5b003,_0x3b3057,_0x210d33,_0x34ce3c){const _0x43812e=a158_0x251d,_0x5fd9de=_0x210d33?normalizeLocalFiles(_0x210d33):[],_0x21ca50=!_0x34ce3c&&_0x5fd9de[_0x43812e(0x20c)]>0x0?buildSkillPackage(_0x5fd9de):undefined,_0xbdaf1f=_0x34ce3c?bufferSha256(_0x34ce3c):_0x21ca50?.[_0x43812e(0x1f3)][_0x43812e(0x1fd)],_0x471980=_0x34ce3c?.['length']??_0x21ca50?.[_0x43812e(0x1f3)][_0x43812e(0x200)],_0x5e47e4=_0x5fd9de[_0x43812e(0x20c)]>0x0?Object[_0x43812e(0x210)](_0x5fd9de[_0x43812e(0x203)](_0x2d6ff4=>[_0x2d6ff4[_0x43812e(0x206)],fileHash(_0x2d6ff4)])):undefined;return{'schemaVersion':_0x5fd9de[_0x43812e(0x20c)]>0x0?0x2:0x1,'id':_0x297d54['id'],'appCode':_0x449bc5,'skillCode':requireSkillCode(_0x297d54),'skillName':_0x297d54[_0x43812e(0x201)],'description':_0x297d54['description'],'example':_0x297d54[_0x43812e(0x214)],'scope':_0xba1172,'readonly':_0xba1172!=='personal'||_0x297d54[_0x43812e(0x216)]===!![],'tenantCode':_0x297d54['tenantCode'],'userId':_0x297d54[_0x43812e(0x1fb)],'version':_0x297d54['version'],'status':_0x297d54[_0x43812e(0x1fe)],'tags':Array[_0x43812e(0x20f)](_0x297d54['tags'])?_0x297d54[_0x43812e(0x1f6)]:[],'hasUpstreamUpdate':_0x297d54[_0x43812e(0x215)],'forkedFromSkillId':_0x297d54[_0x43812e(0x1fa)],'forkedFromVersion':_0x297d54['forkedFromVersion'],'sourceSessionId':_0x297d54[_0x43812e(0x1f2)],'contentHash':_0x5b003,'fileHashes':_0x5e47e4,'treeHash':_0x5fd9de[_0x43812e(0x20c)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x5fd9de)):undefined,'ossPath':remoteManifestOssPath(_0x297d54[_0x43812e(0x20d)]),'zipSha256':_0xbdaf1f,'zipSize':_0x471980,'files':_0x5fd9de[_0x43812e(0x20c)]>0x0?_0x5fd9de[_0x43812e(0x203)](_0xc0df94=>({'path':_0xc0df94['path'],'hash':fileHash(_0xc0df94),'size':fileContent(_0xc0df94)[_0x43812e(0x20c)]})):undefined,'pulledAt':_0x3b3057??new Date()[_0x43812e(0x209)]()};}export function requireSkillCode(_0x29a1eb){const _0x56b0cc=a158_0x251d,_0x3feea3=_0x29a1eb[_0x56b0cc(0x217)]?.[_0x56b0cc(0x208)]();if(!_0x3feea3)throw CliErrors[_0x56b0cc(0x1f4)](_0x56b0cc(0x202));return _0x3feea3;}export function readMetadataIfPresent(_0x1add28){const _0x43cb75=a158_0x251d;if(!existsSync(_0x1add28))return undefined;try{const _0x4d23e1=JSON[_0x43cb75(0x204)](readFileSync(_0x1add28,'utf8'));return _0x4d23e1;}catch{throw CliErrors[_0x43cb75(0x1f4)]('Invalid\x20'+METADATA_FILE+':\x20'+_0x1add28);}}function remoteManifestOssPath(_0x32a5a3){const _0x5d0235=a158_0x251d;if(!_0x32a5a3||typeof _0x32a5a3!==_0x5d0235(0x20b)||Array['isArray'](_0x32a5a3))return undefined;const _0x523a8b=_0x32a5a3[_0x5d0235(0x1f5)];return typeof _0x523a8b===_0x5d0235(0x205)&&_0x523a8b['trim']()?_0x523a8b[_0x5d0235(0x208)]():undefined;}
1
+ (function(_0x591316,_0x532218){const _0x3d5ee7=a158_0x10f8,_0x22ecf6=_0x591316();while(!![]){try{const _0x473743=-parseInt(_0x3d5ee7(0xd1))/0x1*(-parseInt(_0x3d5ee7(0xf6))/0x2)+-parseInt(_0x3d5ee7(0xef))/0x3+parseInt(_0x3d5ee7(0xdb))/0x4*(-parseInt(_0x3d5ee7(0xdc))/0x5)+parseInt(_0x3d5ee7(0xd8))/0x6*(-parseInt(_0x3d5ee7(0xe1))/0x7)+parseInt(_0x3d5ee7(0xde))/0x8+-parseInt(_0x3d5ee7(0xf2))/0x9*(-parseInt(_0x3d5ee7(0xe0))/0xa)+parseInt(_0x3d5ee7(0xe6))/0xb*(parseInt(_0x3d5ee7(0xf0))/0xc);if(_0x473743===_0x532218)break;else _0x22ecf6['push'](_0x22ecf6['shift']());}catch(_0x10be72){_0x22ecf6['push'](_0x22ecf6['shift']());}}}(a158_0x2756,0xb02ed));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';function a158_0x10f8(_0x3f7135,_0x593ff8){_0x3f7135=_0x3f7135-0xd1;const _0x2756cf=a158_0x2756();let _0x10f87d=_0x2756cf[_0x3f7135];return _0x10f87d;}import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';function a158_0x2756(){const _0x4950d8=['object','1948uGswyU','58ZOJvyT','toISOString','Runtime\x20Skill\x20is\x20missing\x20skillCode.','validation','string','map','trim','6bwPPYC','zipSize','example','76052RCSBQo','265stTMwD','isArray','3383400FWssbD','length','30CrYqCf','7643734gImrrh','skillCode','fromEntries','status','path','1923317cHoiKz','ossPath','userId','description','manifest','forkedFromVersion','tags','skillName','utf8','115254PotJFj','156fqJPAi','files','321858SQRlOj','hasUpstreamUpdate','version'];a158_0x2756=function(){return _0x4950d8;};return a158_0x2756();}export function buildMetadata(_0x2f3b8f,_0x1f6109,_0xbe805,_0x5699fe,_0x32fc92,_0x1acc0b,_0x19413e){const _0x37f5aa=a158_0x10f8,_0x5adb55=_0x1acc0b?normalizeLocalFiles(_0x1acc0b):[],_0x14ca0d=!_0x19413e&&_0x5adb55['length']>0x0?buildSkillPackage(_0x5adb55):undefined,_0x219337=_0x19413e?bufferSha256(_0x19413e):_0x14ca0d?.[_0x37f5aa(0xea)]['zipSha256'],_0x4e3965=_0x19413e?.[_0x37f5aa(0xdf)]??_0x14ca0d?.['manifest'][_0x37f5aa(0xd9)],_0x461084=_0x5adb55['length']>0x0?Object[_0x37f5aa(0xe3)](_0x5adb55[_0x37f5aa(0xd6)](_0x29a939=>[_0x29a939[_0x37f5aa(0xe5)],fileHash(_0x29a939)])):undefined;return{'schemaVersion':_0x5adb55[_0x37f5aa(0xdf)]>0x0?0x2:0x1,'id':_0x2f3b8f['id'],'appCode':_0xbe805,'skillCode':requireSkillCode(_0x2f3b8f),'skillName':_0x2f3b8f[_0x37f5aa(0xed)],'description':_0x2f3b8f[_0x37f5aa(0xe9)],'example':_0x2f3b8f[_0x37f5aa(0xda)],'scope':_0x1f6109,'readonly':_0x1f6109!=='personal'||_0x2f3b8f['readonly']===!![],'tenantCode':_0x2f3b8f['tenantCode'],'userId':_0x2f3b8f[_0x37f5aa(0xe8)],'version':_0x2f3b8f[_0x37f5aa(0xf4)],'status':_0x2f3b8f[_0x37f5aa(0xe4)],'tags':Array[_0x37f5aa(0xdd)](_0x2f3b8f[_0x37f5aa(0xec)])?_0x2f3b8f[_0x37f5aa(0xec)]:[],'hasUpstreamUpdate':_0x2f3b8f[_0x37f5aa(0xf3)],'forkedFromSkillId':_0x2f3b8f['forkedFromSkillId'],'forkedFromVersion':_0x2f3b8f[_0x37f5aa(0xeb)],'sourceSessionId':_0x2f3b8f['sourceSessionId'],'contentHash':_0x5699fe,'fileHashes':_0x461084,'treeHash':_0x5adb55[_0x37f5aa(0xdf)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x5adb55)):undefined,'ossPath':remoteManifestOssPath(_0x2f3b8f[_0x37f5aa(0xf1)]),'zipSha256':_0x219337,'zipSize':_0x4e3965,'files':_0x5adb55[_0x37f5aa(0xdf)]>0x0?_0x5adb55[_0x37f5aa(0xd6)](_0x3dd341=>({'path':_0x3dd341['path'],'hash':fileHash(_0x3dd341),'size':fileContent(_0x3dd341)[_0x37f5aa(0xdf)]})):undefined,'pulledAt':_0x32fc92??new Date()[_0x37f5aa(0xd2)]()};}export function requireSkillCode(_0x399cd0){const _0x323fec=a158_0x10f8,_0x537280=_0x399cd0[_0x323fec(0xe2)]?.['trim']();if(!_0x537280)throw CliErrors[_0x323fec(0xd4)](_0x323fec(0xd3));return _0x537280;}export function readMetadataIfPresent(_0x529aea){const _0x4927f1=a158_0x10f8;if(!existsSync(_0x529aea))return undefined;try{const _0x4c1f98=JSON['parse'](readFileSync(_0x529aea,_0x4927f1(0xee)));return _0x4c1f98;}catch{throw CliErrors['validation']('Invalid\x20'+METADATA_FILE+':\x20'+_0x529aea);}}function remoteManifestOssPath(_0x48a561){const _0x2ca5fe=a158_0x10f8;if(!_0x48a561||typeof _0x48a561!==_0x2ca5fe(0xf5)||Array[_0x2ca5fe(0xdd)](_0x48a561))return undefined;const _0x7b4140=_0x48a561[_0x2ca5fe(0xe7)];return typeof _0x7b4140===_0x2ca5fe(0xd5)&&_0x7b4140[_0x2ca5fe(0xd7)]()?_0x7b4140[_0x2ca5fe(0xd7)]():undefined;}
@@ -1 +1 @@
1
- const a159_0x23bbb2=a159_0x428f;(function(_0x18fb87,_0x3db6ae){const _0x36d697=a159_0x428f,_0x3ba087=_0x18fb87();while(!![]){try{const _0x14548d=parseInt(_0x36d697(0x10d))/0x1+parseInt(_0x36d697(0x108))/0x2*(-parseInt(_0x36d697(0x11c))/0x3)+-parseInt(_0x36d697(0x118))/0x4+parseInt(_0x36d697(0x11b))/0x5+-parseInt(_0x36d697(0x115))/0x6+-parseInt(_0x36d697(0x10b))/0x7+parseInt(_0x36d697(0x10a))/0x8;if(_0x14548d===_0x3db6ae)break;else _0x3ba087['push'](_0x3ba087['shift']());}catch(_0x141315){_0x3ba087['push'](_0x3ba087['shift']());}}}(a159_0x4551,0x4a875));function a159_0x4551(){const _0x5c123b=['Unsafe\x20','homeDir','homeDirName','filter','396852AYPWuW','skills','workbuddySkillsDir','1371636GceguU','.claude','includes','2731595FPDgoK','6YYlCkO','claudeSkillsDir','cacheRoot','path\x20segment','\x20for\x20local\x20path:\x20','519484uXoImB','skillCode','4480120vxLTke','3359118GiDnWo','.workbuddy','607344MHrOoy','agentsSkillsDir','SKILL_ROOT','.agents'];a159_0x4551=function(){return _0x5c123b;};return a159_0x4551();}import{existsSync}from'node:fs';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';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x4bde97={}){const _0x5ac1bd=a159_0x428f,_0x284469=_0x4bde97[_0x5ac1bd(0x112)]??homedir(),_0x38b4e3=resolve(_0x284469,PRODUCT_CONFIG['homeDirName'],'cache'),_0x307b03=trimmedEnv(_0x5ac1bd(0x10f)),_0x17f374=trimmedEnv('CLAUDE_SKILL_ROOT'),_0x5123e1=resolve(_0x284469,_0x5ac1bd(0x10c)),_0x40ce44=_0x4bde97[_0x5ac1bd(0x117)]??(existsSync(_0x5123e1)?resolve(_0x5123e1,'skills'):undefined);return{'homeDir':_0x284469,'cacheRoot':_0x38b4e3,'managedRoot':resolve(_0x284469,PRODUCT_CONFIG[_0x5ac1bd(0x113)]),'agentsSkillsDir':_0x4bde97[_0x5ac1bd(0x10e)]??_0x307b03??resolve(_0x284469,_0x5ac1bd(0x110),'skills'),'claudeSkillsDir':_0x4bde97[_0x5ac1bd(0x11d)]??_0x17f374??resolve(_0x284469,_0x5ac1bd(0x119),_0x5ac1bd(0x116)),'workbuddySkillsDir':_0x40ce44};}export function runtimeAgentSkillRoots(_0x25f545){const _0xf8fb8c=a159_0x428f;return[_0x25f545[_0xf8fb8c(0x10e)],_0x25f545[_0xf8fb8c(0x11d)],_0x25f545[_0xf8fb8c(0x117)]][_0xf8fb8c(0x114)](_0x35d22f=>Boolean(_0x35d22f));}export function getRuntimeSkillCacheRoot(_0x42bf50,_0xe0836e,_0x27d9c5={}){const _0x2c160c=a159_0x428f,_0x180818=resolveSkillSyncPaths(_0x27d9c5);return resolve(_0x180818[_0x2c160c(0x11e)],_0x42bf50,fingerprintAccessKey(_0xe0836e),_0x2c160c(0x116));}function a159_0x428f(_0x459299,_0x157a31){_0x459299=_0x459299-0x106;const _0x455189=a159_0x4551();let _0x428f44=_0x455189[_0x459299];return _0x428f44;}export function getRuntimeSkillDir(_0x163b39,_0x31b905,_0x172e74,_0x51e230,_0xbedbfb,_0x442436={}){const _0x21d7b4=a159_0x428f;return resolve(getRuntimeSkillCacheRoot(_0x163b39,_0x31b905,_0x442436),safePathSegment(_0x172e74,'appCode'),_0x51e230,safePathSegment(_0xbedbfb,_0x21d7b4(0x109)));}export function safePathSegment(_0x1069ed,_0x456d74=a159_0x23bbb2(0x106)){const _0x2b3c07=a159_0x23bbb2;if(!_0x1069ed||_0x1069ed[_0x2b3c07(0x11a)]('/')||_0x1069ed[_0x2b3c07(0x11a)]('\x5c')||_0x1069ed[_0x2b3c07(0x11a)]('..'))throw CliErrors['validation'](_0x2b3c07(0x111)+_0x456d74+_0x2b3c07(0x107)+_0x1069ed);return _0x1069ed;}function trimmedEnv(_0x2ada8c){const _0x46d5de=productEnv(_0x2ada8c)?.['trim']();return _0x46d5de?_0x46d5de:undefined;}
1
+ const a159_0x18d638=a159_0x116f;(function(_0x512abf,_0x2c2c01){const _0x13acfe=a159_0x116f,_0x3d0f95=_0x512abf();while(!![]){try{const _0x48cf9e=parseInt(_0x13acfe(0x13d))/0x1*(parseInt(_0x13acfe(0x13a))/0x2)+-parseInt(_0x13acfe(0x141))/0x3+-parseInt(_0x13acfe(0x139))/0x4+parseInt(_0x13acfe(0x12e))/0x5+parseInt(_0x13acfe(0x12f))/0x6*(parseInt(_0x13acfe(0x142))/0x7)+-parseInt(_0x13acfe(0x13e))/0x8+parseInt(_0x13acfe(0x12b))/0x9;if(_0x48cf9e===_0x2c2c01)break;else _0x3d0f95['push'](_0x3d0f95['shift']());}catch(_0x5cdd26){_0x3d0f95['push'](_0x3d0f95['shift']());}}}(a159_0x172a,0x74d24));function a159_0x172a(){const _0x105fe1=['cacheRoot','path\x20segment','CLAUDE_SKILL_ROOT','trim','workbuddySkillsDir','\x20for\x20local\x20path:\x20','.claude','1285016bBUJbL','2396OkYLnH','skills','homeDirName','180aLvpOJ','6877600uJqjWq','cache','includes','743553RKTJCd','7RVByMX','homeDir','appCode','agentsSkillsDir','Unsafe\x20','filter','2162808LHylpN','SKILL_ROOT','skillCode','3415390iLePlj','4609650KzAFFt','validation','claudeSkillsDir'];a159_0x172a=function(){return _0x105fe1;};return a159_0x172a();}import{existsSync}from'node:fs';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';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x546abb={}){const _0x2ac2a5=a159_0x116f,_0x5c5a9e=_0x546abb[_0x2ac2a5(0x143)]??homedir(),_0x403b50=resolve(_0x5c5a9e,PRODUCT_CONFIG[_0x2ac2a5(0x13c)],_0x2ac2a5(0x13f)),_0x3dd223=trimmedEnv(_0x2ac2a5(0x12c)),_0x5b662c=trimmedEnv(_0x2ac2a5(0x134)),_0x14bb46=resolve(_0x5c5a9e,'.workbuddy'),_0x154493=_0x546abb[_0x2ac2a5(0x136)]??(existsSync(_0x14bb46)?resolve(_0x14bb46,_0x2ac2a5(0x13b)):undefined);return{'homeDir':_0x5c5a9e,'cacheRoot':_0x403b50,'managedRoot':resolve(_0x5c5a9e,PRODUCT_CONFIG[_0x2ac2a5(0x13c)]),'agentsSkillsDir':_0x546abb[_0x2ac2a5(0x145)]??_0x3dd223??resolve(_0x5c5a9e,'.agents','skills'),'claudeSkillsDir':_0x546abb[_0x2ac2a5(0x131)]??_0x5b662c??resolve(_0x5c5a9e,_0x2ac2a5(0x138),_0x2ac2a5(0x13b)),'workbuddySkillsDir':_0x154493};}export function runtimeAgentSkillRoots(_0x48523e){const _0xb409ca=a159_0x116f;return[_0x48523e[_0xb409ca(0x145)],_0x48523e[_0xb409ca(0x131)],_0x48523e[_0xb409ca(0x136)]][_0xb409ca(0x147)](_0x48fea9=>Boolean(_0x48fea9));}export function getRuntimeSkillCacheRoot(_0x44a72d,_0x3dbea5,_0x278a7f={}){const _0x2b2876=a159_0x116f,_0x222a6c=resolveSkillSyncPaths(_0x278a7f);return resolve(_0x222a6c[_0x2b2876(0x132)],_0x44a72d,fingerprintAccessKey(_0x3dbea5),'skills');}export function getRuntimeSkillDir(_0x1b7d55,_0xc93823,_0x50287f,_0x16bdd9,_0x2d411d,_0x45ac6d={}){const _0x458188=a159_0x116f;return resolve(getRuntimeSkillCacheRoot(_0x1b7d55,_0xc93823,_0x45ac6d),safePathSegment(_0x50287f,_0x458188(0x144)),_0x16bdd9,safePathSegment(_0x2d411d,_0x458188(0x12d)));}function a159_0x116f(_0x424f88,_0xcb7924){_0x424f88=_0x424f88-0x12b;const _0x172ac4=a159_0x172a();let _0x116f48=_0x172ac4[_0x424f88];return _0x116f48;}export function safePathSegment(_0x51b0da,_0x1f0777=a159_0x18d638(0x133)){const _0x2d727b=a159_0x18d638;if(!_0x51b0da||_0x51b0da[_0x2d727b(0x140)]('/')||_0x51b0da['includes']('\x5c')||_0x51b0da[_0x2d727b(0x140)]('..'))throw CliErrors[_0x2d727b(0x130)](_0x2d727b(0x146)+_0x1f0777+_0x2d727b(0x137)+_0x51b0da);return _0x51b0da;}function trimmedEnv(_0x2fc0da){const _0x2b1e02=a159_0x18d638,_0x40318c=productEnv(_0x2fc0da)?.[_0x2b1e02(0x135)]();return _0x40318c?_0x40318c:undefined;}
@@ -1 +1 @@
1
- (function(_0x44ff6f,_0x3b2fbf){const _0x40657d=a160_0x3050,_0x366f4e=_0x44ff6f();while(!![]){try{const _0x34ebda=parseInt(_0x40657d(0x19c))/0x1*(-parseInt(_0x40657d(0x1a2))/0x2)+parseInt(_0x40657d(0x1c0))/0x3*(parseInt(_0x40657d(0x1a8))/0x4)+parseInt(_0x40657d(0x199))/0x5+parseInt(_0x40657d(0x1ae))/0x6+parseInt(_0x40657d(0x19b))/0x7*(-parseInt(_0x40657d(0x1a7))/0x8)+parseInt(_0x40657d(0x1b2))/0x9+-parseInt(_0x40657d(0x1b4))/0xa;if(_0x34ebda===_0x3b2fbf)break;else _0x366f4e['push'](_0x366f4e['shift']());}catch(_0x2a8f29){_0x366f4e['push'](_0x366f4e['shift']());}}}(a160_0x3034,0x4ca71));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a160_0x38aa99}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(_0x342585,_0x153e47,_0x21225b={}){const _0x8f7979=a160_0x3050,_0x1a33ae=resolvePushDirectoryRoot(_0x342585),_0x5d0990=readPushMetadataIfPresent(resolve(_0x1a33ae,METADATA_FILE),{'ignoreInvalidMetadata':_0x21225b['ignoreInvalidMetadata']});if(_0x5d0990?.[_0x8f7979(0x189)]&&_0x5d0990[_0x8f7979(0x189)]!==_0x153e47&&!_0x21225b['allowAppCodeRetarget']&&!_0x21225b[_0x8f7979(0x194)])throw CliErrors[_0x8f7979(0x18f)](_0x8f7979(0x1a3)+_0x5d0990[_0x8f7979(0x189)]+_0x8f7979(0x1c1)+_0x153e47+'\x22.');const _0x30a091=resolvePushSkillCode(_0x1a33ae,_0x153e47,_0x5d0990,_0x21225b);if(!_0x30a091)throw CliErrors[_0x8f7979(0x18f)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0x8f7979(0x1b6));return{'dir':_0x1a33ae,'skillCode':_0x30a091,'metadata':_0x5d0990};}export function readPushDirectory(_0x1aae01,_0x138d91,_0x289972={}){const _0x2e200b=a160_0x3050,_0x4032a8=resolvePushDirectoryIdentity(_0x1aae01,_0x138d91,_0x289972),_0x4724b2=_0x4032a8[_0x2e200b(0x195)],_0x2ffd2a=resolve(_0x4724b2,SKILL_FILE);if(!existsSync(_0x2ffd2a)||!lstatSync(_0x2ffd2a)[_0x2e200b(0x1a9)]())throw CliErrors[_0x2e200b(0x18f)](_0x2e200b(0x18c)+SKILL_FILE+':\x20'+_0x2ffd2a);const _0xf3a548=_0x4032a8['metadata'],_0xbb6214=_0x289972[_0x2e200b(0x186)]??_0x2e200b(0x18b);if(!_0x289972[_0x2e200b(0x191)]&&_0xf3a548?.['scope']===_0x2e200b(0x1b1))throw CliErrors[_0x2e200b(0x18f)](_0x2e200b(0x1ba)+METADATA_FILE+_0x2e200b(0x1a0)+_0xf3a548[_0x2e200b(0x1b5)]+'\x22.');if(!_0x289972[_0x2e200b(0x191)]&&_0xbb6214===_0x2e200b(0x18b)&&_0xf3a548?.[_0x2e200b(0x1b5)]&&_0xf3a548['scope']!==_0x2e200b(0x18b))throw CliErrors[_0x2e200b(0x18f)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+_0x2e200b(0x1a0)+_0xf3a548[_0x2e200b(0x1b5)]+'\x22.',_0x2e200b(0x193)+_0x4724b2+_0x2e200b(0x1bc));const _0x562109=scanSkillDirectory(_0x4724b2,{'excludedFilePaths':_0x289972[_0x2e200b(0x1b3)]}),_0x21e932=buildSkillPackage(_0x562109),_0x3e53b1=readFileSync(_0x2ffd2a,'utf8'),_0x52eac1=_0x4032a8[_0x2e200b(0x190)],_0x3a20d1=_0x289972['ignoreMetadataForPayload']?undefined:_0xf3a548,_0x194f7c=readSkillDisplayName(_0x3e53b1);return{'skillCode':_0x52eac1,'metadata':_0xf3a548,'frontmatterDisplayName':_0x194f7c,'input':{'skillCode':_0x52eac1,'skillName':_0x194f7c??_0x3a20d1?.['skillName'],'description':_0x3a20d1?.[_0x2e200b(0x1bb)],'content':_0x3e53b1,'files':_0x21e932[_0x2e200b(0x198)],'packageBase64':_0x21e932[_0x2e200b(0x18a)],'tags':_0x3a20d1?.[_0x2e200b(0x1c2)],'version':_0x3a20d1?.[_0x2e200b(0x188)],'sourceSessionId':_0x3a20d1?.[_0x2e200b(0x187)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x28bdae,_0x555785,_0x191d84,_0x5dec4b={}){const _0x32c3e4=a160_0x3050,_0x275cc6=resolvePushDirectoryRoot(_0x28bdae),_0x4a4281=readPushMetadataIfPresent(resolve(_0x275cc6,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x18a707=requireRemoteScope(_0x555785),_0x423b6d=readLocalSkillContent(_0x275cc6),_0x45d332={..._0x555785,'appCode':_0x555785['appCode']??_0x191d84,'skillName':_0x555785[_0x32c3e4(0x1a4)]??_0x4a4281?.[_0x32c3e4(0x1a4)],'description':_0x555785[_0x32c3e4(0x1bb)]??_0x4a4281?.[_0x32c3e4(0x1bb)],'example':_0x555785[_0x32c3e4(0x1aa)]??_0x4a4281?.[_0x32c3e4(0x1aa)],'tags':Array['isArray'](_0x555785[_0x32c3e4(0x1c2)])?_0x555785[_0x32c3e4(0x1c2)]:_0x4a4281?.[_0x32c3e4(0x1c2)],'sourceSessionId':_0x555785[_0x32c3e4(0x187)]??_0x4a4281?.[_0x32c3e4(0x187)],'content':_0x555785[_0x32c3e4(0x19d)]??_0x423b6d},_0x4949f8=buildMetadata(_0x45d332,_0x18a707,_0x191d84,contentHash(_0x423b6d),_0x5dec4b['refreshedAt']);writeJsonAtomic(resolve(_0x275cc6,METADATA_FILE),_0x4949f8);}export function recordPushedRuntimeSkill(_0x1832ac,_0x344590,_0x425305,_0x1109a8={}){const _0x2a8413=a160_0x3050,_0x5c131c=resolvePushDirectoryRoot(_0x1832ac),_0x23ab95=scanSkillDirectory(_0x5c131c),_0xa21e97=_0x23ab95[_0x2a8413(0x1b9)](_0x527ad6=>_0x527ad6[_0x2a8413(0x185)]===SKILL_FILE),_0xdb8d65=_0xa21e97?fileText(_0xa21e97):'',_0x3306b0=tryNormalizePackageManifest(_0x344590[_0x2a8413(0x1ad)]),_0x144f3f={..._0x344590,'content':_0x344590[_0x2a8413(0x19d)]??_0xdb8d65,'files':_0x3306b0},_0x329634=_0x3306b0?normalizeLocalFiles(_0x23ab95)['filter'](_0x1a14f3=>_0x3306b0[_0x2a8413(0x1ad)][_0x2a8413(0x1af)](_0x2442d8=>_0x2442d8[_0x2a8413(0x185)]===_0x1a14f3[_0x2a8413(0x185)])):undefined,_0x572c64=buildMetadata(_0x144f3f,_0x1109a8[_0x2a8413(0x1b5)]??'personal',_0x425305,contentHash(_0x144f3f[_0x2a8413(0x19d)]??''),_0x1109a8[_0x2a8413(0x1b7)],_0x329634);writeJsonAtomic(resolve(_0x5c131c,METADATA_FILE),_0x572c64);}export function deriveSkillCodeFromDirectory(_0x5079cc,_0x174035){const _0x19453c=a160_0x3050,_0x374bc3=basename(resolve(_0x5079cc)),_0x58117e=_0x174035+'--';return _0x374bc3['startsWith'](_0x58117e)?_0x374bc3['slice'](_0x58117e[_0x19453c(0x1ab)]):_0x374bc3;}function resolvePushSkillCode(_0x5c5cd8,_0x2656b3,_0x16f5cc,_0x5adde0){const _0xa7904c=a160_0x3050,_0x41f195=deriveSkillCodeFromSkillFile(_0x5c5cd8)||deriveSkillCodeFromDirectory(_0x5c5cd8,_0x2656b3);if(_0x5adde0[_0xa7904c(0x19f)])return _0x41f195;return _0x16f5cc?.[_0xa7904c(0x190)]?.[_0xa7904c(0x18d)]()||_0x41f195;}function deriveSkillCodeFromSkillFile(_0x349128){const _0x350a93=a160_0x3050,_0x4ff056=resolve(_0x349128,SKILL_FILE);if(!existsSync(_0x4ff056)||!lstatSync(_0x4ff056)[_0x350a93(0x1a9)]())return undefined;const _0x3fdcb5=readFileSync(_0x4ff056,'utf8'),_0x339b20=_0x3fdcb5[_0x350a93(0x196)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x339b20)return undefined;const _0x3b6d1e=parseFrontmatterObject(_0x339b20[0x1]??''),_0x2e05e0=scalarToString(_0x3b6d1e?.[_0x350a93(0x1bd)]);return _0x2e05e0?slugifySkillName(_0x2e05e0):undefined;}function readSkillDisplayName(_0x1c67b7){const _0x4ee292=a160_0x3050,_0x38d835=_0x1c67b7[_0x4ee292(0x196)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x38d835)return undefined;const _0x128493=parseFrontmatterObject(_0x38d835[0x1]??'');return scalarToString(_0x128493?.[_0x4ee292(0x197)]);}function slugifySkillName(_0x2051f2){const _0x21e2b6=a160_0x3050,_0x1d7554=_0x2051f2[_0x21e2b6(0x18d)]()[_0x21e2b6(0x1b0)]()[_0x21e2b6(0x1b8)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0x21e2b6(0x1b8)](/-+$/,'')[_0x21e2b6(0x1b8)](/-{2,}/g,'-');if(!_0x1d7554)throw CliErrors['validation'](_0x21e2b6(0x1c3)+SKILL_FILE+_0x21e2b6(0x19a));return _0x1d7554;}function parseFrontmatterObject(_0x21289a){const _0x5211a9=a160_0x3050;try{const _0x4e9516=a160_0x38aa99(_0x21289a);return _0x4e9516&&typeof _0x4e9516===_0x5211a9(0x1bf)&&!Array[_0x5211a9(0x18e)](_0x4e9516)?_0x4e9516:undefined;}catch{return undefined;}}function scalarToString(_0x423809){const _0x4e9972=a160_0x3050;if(typeof _0x423809==='string')return _0x423809[_0x4e9972(0x18d)]();if(typeof _0x423809===_0x4e9972(0x192)||typeof _0x423809==='boolean')return String(_0x423809);return undefined;}function a160_0x3034(){const _0x338cdf=['isFile','example','length','company','files','2085528HeWLOJ','some','toLowerCase','builtin','991620eEPMtn','excludedFilePaths','4232370UGUbHs','scope',',\x20or\x20directory\x20name.','pushedAt','replace','find','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','description','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','name','(unknown)','object','141BGAisH','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','tags','Invalid\x20','Remote\x20Skill\x20','path','targetScope','sourceSessionId','version','appCode','packageBase64','personal','Missing\x20','trim','isArray','validation','skillCode','ignoreMetadataScope','number','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','ignoreMetadataAppCodeMismatch','dir','match','displayName','manifest','979980CCWlhN','\x20name\x20for\x20SkillHub\x20slug\x20generation.','7mddhlF','2330HmzxAZ','content','Skill\x20directory\x20not\x20found:\x20','ignoreMetadataSkillCode','\x20has\x20scope=\x22','isDirectory','32nqEFUj','Skill\x20metadata\x20appCode\x20\x22','skillName','ignoreInvalidMetadata','utf8','3485688fVaaIJ','47356pfEVxZ'];a160_0x3034=function(){return _0x338cdf;};return a160_0x3034();}function a160_0x3050(_0x514a6c,_0x4f234e){_0x514a6c=_0x514a6c-0x185;const _0x30348e=a160_0x3034();let _0x3050ae=_0x30348e[_0x514a6c];return _0x3050ae;}function resolvePushDirectoryRoot(_0x471463){const _0x2db54e=a160_0x3050,_0x55bc27=resolve(_0x471463);if(!existsSync(_0x55bc27))throw CliErrors[_0x2db54e(0x18f)](_0x2db54e(0x19e)+_0x471463);const _0x3708cb=lstatSync(_0x55bc27);if(_0x3708cb[_0x2db54e(0x1a1)]())return _0x55bc27;if(_0x3708cb['isSymbolicLink']()){const _0x1558fa=realpathSync(_0x55bc27);if(lstatSync(_0x1558fa)['isDirectory']())return _0x1558fa;}throw CliErrors[_0x2db54e(0x18f)]('Skill\x20directory\x20not\x20found:\x20'+_0x471463);}function requireRemoteScope(_0x242333){const _0x21daa2=a160_0x3050;if(_0x242333[_0x21daa2(0x1b5)]===_0x21daa2(0x18b)||_0x242333[_0x21daa2(0x1b5)]===_0x21daa2(0x1ac)||_0x242333[_0x21daa2(0x1b5)]==='builtin')return _0x242333[_0x21daa2(0x1b5)];throw CliErrors[_0x21daa2(0x18f)](_0x21daa2(0x1c4)+(_0x242333['skillCode']||_0x21daa2(0x1be))+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x242333[_0x21daa2(0x1b5)]??'unknown')+'\x22.');}function readLocalSkillContent(_0x28e7b9){const _0x31cc1b=a160_0x3050,_0x444849=resolve(_0x28e7b9,SKILL_FILE);return existsSync(_0x444849)&&lstatSync(_0x444849)[_0x31cc1b(0x1a9)]()?readFileSync(_0x444849,_0x31cc1b(0x1a6)):'';}function readPushMetadataIfPresent(_0x1095ef,_0x216b37={}){const _0x5f2a14=a160_0x3050;try{return readMetadataIfPresent(_0x1095ef);}catch(_0x45699d){if(_0x216b37[_0x5f2a14(0x1a5)])return undefined;throw _0x45699d;}}
1
+ (function(_0xefc03a,_0x1dc62f){const _0x3ba6e9=a160_0x1f5e,_0xf6c114=_0xefc03a();while(!![]){try{const _0x13c86e=parseInt(_0x3ba6e9(0xbf))/0x1+-parseInt(_0x3ba6e9(0xbc))/0x2+parseInt(_0x3ba6e9(0xa7))/0x3*(parseInt(_0x3ba6e9(0xa0))/0x4)+parseInt(_0x3ba6e9(0xa3))/0x5+-parseInt(_0x3ba6e9(0xca))/0x6+-parseInt(_0x3ba6e9(0x9e))/0x7*(-parseInt(_0x3ba6e9(0xa6))/0x8)+parseInt(_0x3ba6e9(0xb5))/0x9*(parseInt(_0x3ba6e9(0xc9))/0xa);if(_0x13c86e===_0x1dc62f)break;else _0xf6c114['push'](_0xf6c114['shift']());}catch(_0x4a5a54){_0xf6c114['push'](_0xf6c114['shift']());}}}(a160_0x2fc7,0x5a6b5));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a160_0x2fc7(){const _0x3a31da=['tags','filter','builtin','content','Invalid\x20','pushedAt','Skill\x20directory\x20not\x20found:\x20','trim','unknown','205299aryQXK','boolean','ignoreInvalidMetadata','isDirectory','packageBase64','allowAppCodeRetarget','Remote\x20Skill\x20','217068PkRAlz','path','skillCode','136018MVyQZf','example','files','startsWith','match','utf8','Skill\x20metadata\x20appCode\x20\x22','metadata','manifest','displayName','10NzghvJ','2852412aQhZwc','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','ignoreMetadataAppCodeMismatch','ignoreMetadataSkillCode','validation','\x20has\x20unsupported\x20scope\x20\x22','skillName','toLowerCase','length','Missing\x20','personal','sourceSessionId','version','\x20has\x20scope=\x22','find','isSymbolicLink','isFile','company','name','description','slice','70NGPSWg','number','1116xDTuPM','object','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','3122365aRimdV','replace','isArray','92376UCUsuF','597wJUEzp','Unable\x20to\x20resolve\x20skillCode\x20from\x20','appCode','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','scope'];a160_0x2fc7=function(){return _0x3a31da;};return a160_0x2fc7();}import{basename,resolve}from'node:path';import{parse as a160_0x159db6}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(_0x40a596,_0x27e9a5,_0x3947d4={}){const _0x1a9398=a160_0x1f5e,_0x14a6f6=resolvePushDirectoryRoot(_0x40a596),_0x3d9d4f=readPushMetadataIfPresent(resolve(_0x14a6f6,METADATA_FILE),{'ignoreInvalidMetadata':_0x3947d4[_0x1a9398(0xb7)]});if(_0x3d9d4f?.[_0x1a9398(0xa9)]&&_0x3d9d4f['appCode']!==_0x27e9a5&&!_0x3947d4[_0x1a9398(0xba)]&&!_0x3947d4[_0x1a9398(0xcc)])throw CliErrors[_0x1a9398(0xce)](_0x1a9398(0xc5)+_0x3d9d4f[_0x1a9398(0xa9)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x27e9a5+'\x22.');const _0x661fb1=resolvePushSkillCode(_0x14a6f6,_0x27e9a5,_0x3d9d4f,_0x3947d4);if(!_0x661fb1)throw CliErrors['validation'](_0x1a9398(0xa8)+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x14a6f6,'skillCode':_0x661fb1,'metadata':_0x3d9d4f};}export function readPushDirectory(_0x5a45cc,_0x3c371d,_0x1fbd7a={}){const _0x4aba09=a160_0x1f5e,_0x4089a4=resolvePushDirectoryIdentity(_0x5a45cc,_0x3c371d,_0x1fbd7a),_0x5bb434=_0x4089a4['dir'],_0x74f88f=resolve(_0x5bb434,SKILL_FILE);if(!existsSync(_0x74f88f)||!lstatSync(_0x74f88f)[_0x4aba09(0x99)]())throw CliErrors[_0x4aba09(0xce)](_0x4aba09(0xd3)+SKILL_FILE+':\x20'+_0x74f88f);const _0x5b0d98=_0x4089a4[_0x4aba09(0xc6)],_0x312a67=_0x1fbd7a['targetScope']??_0x4aba09(0xd4);if(!_0x1fbd7a['ignoreMetadataScope']&&_0x5b0d98?.[_0x4aba09(0xab)]===_0x4aba09(0xae))throw CliErrors[_0x4aba09(0xce)](_0x4aba09(0xcb)+METADATA_FILE+_0x4aba09(0xd7)+_0x5b0d98['scope']+'\x22.');if(!_0x1fbd7a['ignoreMetadataScope']&&_0x312a67==='personal'&&_0x5b0d98?.['scope']&&_0x5b0d98[_0x4aba09(0xab)]!==_0x4aba09(0xd4))throw CliErrors[_0x4aba09(0xce)](_0x4aba09(0xa2)+METADATA_FILE+_0x4aba09(0xd7)+_0x5b0d98[_0x4aba09(0xab)]+'\x22.',_0x4aba09(0xaa)+_0x5bb434+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x2d62ec=scanSkillDirectory(_0x5bb434,{'excludedFilePaths':_0x1fbd7a['excludedFilePaths']}),_0x3e36d4=buildSkillPackage(_0x2d62ec),_0x53f456=readFileSync(_0x74f88f,_0x4aba09(0xc4)),_0x5914e4=_0x4089a4['skillCode'],_0x440f86=_0x1fbd7a['ignoreMetadataForPayload']?undefined:_0x5b0d98,_0x9ae4cc=readSkillDisplayName(_0x53f456);return{'skillCode':_0x5914e4,'metadata':_0x5b0d98,'frontmatterDisplayName':_0x9ae4cc,'input':{'skillCode':_0x5914e4,'skillName':_0x9ae4cc??_0x440f86?.[_0x4aba09(0xd0)],'description':_0x440f86?.['description'],'content':_0x53f456,'files':_0x3e36d4[_0x4aba09(0xc7)],'packageBase64':_0x3e36d4[_0x4aba09(0xb9)],'tags':_0x440f86?.[_0x4aba09(0xac)],'version':_0x440f86?.[_0x4aba09(0xd6)],'sourceSessionId':_0x440f86?.[_0x4aba09(0xd5)]}};}export function refreshPushDirectoryMetadataFromRemote(_0xc9d13d,_0x4029db,_0x1ec758,_0x45c04f={}){const _0x4f6e6c=a160_0x1f5e,_0x5bd01f=resolvePushDirectoryRoot(_0xc9d13d),_0x94e275=readPushMetadataIfPresent(resolve(_0x5bd01f,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x13daab=requireRemoteScope(_0x4029db),_0x59c72f=readLocalSkillContent(_0x5bd01f),_0xdde965={..._0x4029db,'appCode':_0x4029db[_0x4f6e6c(0xa9)]??_0x1ec758,'skillName':_0x4029db[_0x4f6e6c(0xd0)]??_0x94e275?.[_0x4f6e6c(0xd0)],'description':_0x4029db['description']??_0x94e275?.[_0x4f6e6c(0x9c)],'example':_0x4029db[_0x4f6e6c(0xc0)]??_0x94e275?.[_0x4f6e6c(0xc0)],'tags':Array[_0x4f6e6c(0xa5)](_0x4029db['tags'])?_0x4029db[_0x4f6e6c(0xac)]:_0x94e275?.[_0x4f6e6c(0xac)],'sourceSessionId':_0x4029db[_0x4f6e6c(0xd5)]??_0x94e275?.[_0x4f6e6c(0xd5)],'content':_0x4029db[_0x4f6e6c(0xaf)]??_0x59c72f},_0x3bb449=buildMetadata(_0xdde965,_0x13daab,_0x1ec758,contentHash(_0x59c72f),_0x45c04f['refreshedAt']);writeJsonAtomic(resolve(_0x5bd01f,METADATA_FILE),_0x3bb449);}export function recordPushedRuntimeSkill(_0xb2c13c,_0xf32298,_0x79e4a6,_0x262ec0={}){const _0x4f2ad5=a160_0x1f5e,_0x26f315=resolvePushDirectoryRoot(_0xb2c13c),_0x485248=scanSkillDirectory(_0x26f315),_0x59df8a=_0x485248[_0x4f2ad5(0x97)](_0x45df2f=>_0x45df2f[_0x4f2ad5(0xbd)]===SKILL_FILE),_0x38cf1a=_0x59df8a?fileText(_0x59df8a):'',_0x454ee2=tryNormalizePackageManifest(_0xf32298['files']),_0x25b01b={..._0xf32298,'content':_0xf32298[_0x4f2ad5(0xaf)]??_0x38cf1a,'files':_0x454ee2},_0x145eeb=_0x454ee2?normalizeLocalFiles(_0x485248)[_0x4f2ad5(0xad)](_0x8b874f=>_0x454ee2[_0x4f2ad5(0xc1)]['some'](_0x514997=>_0x514997['path']===_0x8b874f['path'])):undefined,_0x392240=buildMetadata(_0x25b01b,_0x262ec0[_0x4f2ad5(0xab)]??'personal',_0x79e4a6,contentHash(_0x25b01b[_0x4f2ad5(0xaf)]??''),_0x262ec0[_0x4f2ad5(0xb1)],_0x145eeb);writeJsonAtomic(resolve(_0x26f315,METADATA_FILE),_0x392240);}export function deriveSkillCodeFromDirectory(_0x560e25,_0x8c7041){const _0x519d90=a160_0x1f5e,_0x3fe3e2=basename(resolve(_0x560e25)),_0x42f27e=_0x8c7041+'--';return _0x3fe3e2[_0x519d90(0xc2)](_0x42f27e)?_0x3fe3e2[_0x519d90(0x9d)](_0x42f27e[_0x519d90(0xd2)]):_0x3fe3e2;}function resolvePushSkillCode(_0x1fec46,_0x1c25ce,_0xd508d7,_0x167272){const _0x2aa7f0=a160_0x1f5e,_0x35e374=deriveSkillCodeFromSkillFile(_0x1fec46)||deriveSkillCodeFromDirectory(_0x1fec46,_0x1c25ce);if(_0x167272[_0x2aa7f0(0xcd)])return _0x35e374;return _0xd508d7?.[_0x2aa7f0(0xbe)]?.[_0x2aa7f0(0xb3)]()||_0x35e374;}function deriveSkillCodeFromSkillFile(_0x46a7d7){const _0x58bbd7=a160_0x1f5e,_0x49cfd9=resolve(_0x46a7d7,SKILL_FILE);if(!existsSync(_0x49cfd9)||!lstatSync(_0x49cfd9)['isFile']())return undefined;const _0xfee15c=readFileSync(_0x49cfd9,'utf8'),_0x132bb7=_0xfee15c[_0x58bbd7(0xc3)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x132bb7)return undefined;const _0x581f54=parseFrontmatterObject(_0x132bb7[0x1]??''),_0xbfb946=scalarToString(_0x581f54?.[_0x58bbd7(0x9b)]);return _0xbfb946?slugifySkillName(_0xbfb946):undefined;}function readSkillDisplayName(_0x55543f){const _0x53a70b=a160_0x1f5e,_0x3d2d45=_0x55543f[_0x53a70b(0xc3)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3d2d45)return undefined;const _0x3b7d43=parseFrontmatterObject(_0x3d2d45[0x1]??'');return scalarToString(_0x3b7d43?.[_0x53a70b(0xc8)]);}function a160_0x1f5e(_0xdf3ba7,_0x5059a2){_0xdf3ba7=_0xdf3ba7-0x97;const _0x2fc765=a160_0x2fc7();let _0x1f5ed1=_0x2fc765[_0xdf3ba7];return _0x1f5ed1;}function slugifySkillName(_0x53954c){const _0xc77f73=a160_0x1f5e,_0x235da1=_0x53954c[_0xc77f73(0xb3)]()[_0xc77f73(0xd1)]()[_0xc77f73(0xa4)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0xc77f73(0xa4)](/-+$/,'')[_0xc77f73(0xa4)](/-{2,}/g,'-');if(!_0x235da1)throw CliErrors[_0xc77f73(0xce)](_0xc77f73(0xb0)+SKILL_FILE+'\x20name\x20for\x20SkillHub\x20slug\x20generation.');return _0x235da1;}function parseFrontmatterObject(_0x6f733d){const _0x572c1=a160_0x1f5e;try{const _0x377c33=a160_0x159db6(_0x6f733d);return _0x377c33&&typeof _0x377c33===_0x572c1(0xa1)&&!Array[_0x572c1(0xa5)](_0x377c33)?_0x377c33:undefined;}catch{return undefined;}}function scalarToString(_0x380c0d){const _0x9dbb23=a160_0x1f5e;if(typeof _0x380c0d==='string')return _0x380c0d['trim']();if(typeof _0x380c0d===_0x9dbb23(0x9f)||typeof _0x380c0d===_0x9dbb23(0xb6))return String(_0x380c0d);return undefined;}function resolvePushDirectoryRoot(_0x413fa8){const _0x5007e0=a160_0x1f5e,_0xbc1aed=resolve(_0x413fa8);if(!existsSync(_0xbc1aed))throw CliErrors[_0x5007e0(0xce)](_0x5007e0(0xb2)+_0x413fa8);const _0x1e51ba=lstatSync(_0xbc1aed);if(_0x1e51ba[_0x5007e0(0xb8)]())return _0xbc1aed;if(_0x1e51ba[_0x5007e0(0x98)]()){const _0x4738ed=realpathSync(_0xbc1aed);if(lstatSync(_0x4738ed)[_0x5007e0(0xb8)]())return _0x4738ed;}throw CliErrors[_0x5007e0(0xce)](_0x5007e0(0xb2)+_0x413fa8);}function requireRemoteScope(_0x53b0ae){const _0x55ef16=a160_0x1f5e;if(_0x53b0ae[_0x55ef16(0xab)]===_0x55ef16(0xd4)||_0x53b0ae[_0x55ef16(0xab)]===_0x55ef16(0x9a)||_0x53b0ae[_0x55ef16(0xab)]==='builtin')return _0x53b0ae[_0x55ef16(0xab)];throw CliErrors[_0x55ef16(0xce)](_0x55ef16(0xbb)+(_0x53b0ae[_0x55ef16(0xbe)]||'(unknown)')+_0x55ef16(0xcf)+(_0x53b0ae['scope']??_0x55ef16(0xb4))+'\x22.');}function readLocalSkillContent(_0x3ac269){const _0x3a39ab=a160_0x1f5e,_0xfa56e=resolve(_0x3ac269,SKILL_FILE);return existsSync(_0xfa56e)&&lstatSync(_0xfa56e)[_0x3a39ab(0x99)]()?readFileSync(_0xfa56e,_0x3a39ab(0xc4)):'';}function readPushMetadataIfPresent(_0x262b4c,_0x35b705={}){const _0x3a79d6=a160_0x1f5e;try{return readMetadataIfPresent(_0x262b4c);}catch(_0x2f4f31){if(_0x35b705[_0x3a79d6(0xb7)])return undefined;throw _0x2f4f31;}}
@@ -1 +1 @@
1
- (function(_0x1ca1cd,_0x226d19){const _0xb81c27=a161_0xe1f2,_0x34ee56=_0x1ca1cd();while(!![]){try{const _0x29091a=parseInt(_0xb81c27(0xdb))/0x1*(-parseInt(_0xb81c27(0xdf))/0x2)+parseInt(_0xb81c27(0xda))/0x3+parseInt(_0xb81c27(0xd6))/0x4+parseInt(_0xb81c27(0xe4))/0x5*(-parseInt(_0xb81c27(0xe0))/0x6)+parseInt(_0xb81c27(0xde))/0x7+-parseInt(_0xb81c27(0xdc))/0x8+-parseInt(_0xb81c27(0xd7))/0x9;if(_0x29091a===_0x226d19)break;else _0x34ee56['push'](_0x34ee56['shift']());}catch(_0x2d4fea){_0x34ee56['push'](_0x34ee56['shift']());}}}(a161_0x1f62,0x72d0b));function a161_0xe1f2(_0x2d517f,_0x53193d){_0x2d517f=_0x2d517f-0xd6;const _0x1f6260=a161_0x1f62();let _0xe1f27f=_0x1f6260[_0x2d517f];return _0xe1f27f;}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x1a478c){const _0x291c65=a161_0xe1f2,_0x523fae=_0x1a478c&&_0x1a478c[_0x291c65(0xe5)]>0x0?_0x1a478c:[_0x291c65(0xe6),_0x291c65(0xe1),_0x291c65(0xd8)],_0x520560=[];for(const _0x233900 of _0x523fae){if(!isRuntimeSkillScope(_0x233900))throw CliErrors[_0x291c65(0xdd)](_0x291c65(0xe2)+_0x233900);!_0x520560[_0x291c65(0xd9)](_0x233900)&&_0x520560[_0x291c65(0xe3)](_0x233900);}return _0x520560;}function a161_0x1f62(){const _0x3fe68e=['builtin','includes','2316597XnFEZD','5395SIHcUt','1643592cZaNWZ','validation','3635520GlsTkM','290JYeTCJ','12VhXrtT','company','Unsupported\x20runtime\x20Skill\x20scope:\x20','push','1618720tuNsXi','length','personal','3478212ZTXnWH','500553Eljmgt'];a161_0x1f62=function(){return _0x3fe68e;};return a161_0x1f62();}export function isRuntimeSkillScope(_0x12d0f8){const _0x46c093=a161_0xe1f2;return _0x12d0f8===_0x46c093(0xe6)||_0x12d0f8===_0x46c093(0xe1)||_0x12d0f8===_0x46c093(0xd8);}
1
+ (function(_0x2216e9,_0x4b874b){const _0x4cad7b=a161_0x4897,_0x35a3d4=_0x2216e9();while(!![]){try{const _0x261b2a=-parseInt(_0x4cad7b(0x97))/0x1+-parseInt(_0x4cad7b(0x99))/0x2+parseInt(_0x4cad7b(0x98))/0x3+-parseInt(_0x4cad7b(0x8a))/0x4*(-parseInt(_0x4cad7b(0x8c))/0x5)+-parseInt(_0x4cad7b(0x91))/0x6*(parseInt(_0x4cad7b(0x95))/0x7)+-parseInt(_0x4cad7b(0x92))/0x8*(-parseInt(_0x4cad7b(0x8f))/0x9)+parseInt(_0x4cad7b(0x89))/0xa;if(_0x261b2a===_0x4b874b)break;else _0x35a3d4['push'](_0x35a3d4['shift']());}catch(_0x432e10){_0x35a3d4['push'](_0x35a3d4['shift']());}}}(a161_0x5f4f,0x3bf22));function a161_0x5f4f(){const _0x439c6d=['45936ZrDzhB','validation','includes','7910GTuNbd','push','442087KgYakv','870669JalDyK','400946dNylHO','Unsupported\x20runtime\x20Skill\x20scope:\x20','4173770ijtvWN','4lMezBK','company','2300930OlzCEW','personal','builtin','54bIWuha','length','1668VkUTHp'];a161_0x5f4f=function(){return _0x439c6d;};return a161_0x5f4f();}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x453039){const _0x41ce7e=a161_0x4897,_0x50d696=_0x453039&&_0x453039[_0x41ce7e(0x90)]>0x0?_0x453039:[_0x41ce7e(0x8d),'company',_0x41ce7e(0x8e)],_0x489a9e=[];for(const _0x58e323 of _0x50d696){if(!isRuntimeSkillScope(_0x58e323))throw CliErrors[_0x41ce7e(0x93)](_0x41ce7e(0x9a)+_0x58e323);!_0x489a9e[_0x41ce7e(0x94)](_0x58e323)&&_0x489a9e[_0x41ce7e(0x96)](_0x58e323);}return _0x489a9e;}function a161_0x4897(_0x264fb1,_0x5b47a8){_0x264fb1=_0x264fb1-0x89;const _0x5f4f4c=a161_0x5f4f();let _0x4897af=_0x5f4f4c[_0x264fb1];return _0x4897af;}export function isRuntimeSkillScope(_0x34849c){const _0xb48aa4=a161_0x4897;return _0x34849c===_0xb48aa4(0x8d)||_0x34849c===_0xb48aa4(0x8b)||_0x34849c===_0xb48aa4(0x8e);}
@@ -1 +1 @@
1
- const a163_0x340efa=a163_0x5009;(function(_0x4ce2f0,_0x5b7696){const _0x57503b=a163_0x5009,_0x41ead0=_0x4ce2f0();while(!![]){try{const _0x205ad3=-parseInt(_0x57503b(0x15c))/0x1+-parseInt(_0x57503b(0x152))/0x2+parseInt(_0x57503b(0x160))/0x3+parseInt(_0x57503b(0x162))/0x4*(parseInt(_0x57503b(0x14e))/0x5)+-parseInt(_0x57503b(0x161))/0x6*(parseInt(_0x57503b(0x155))/0x7)+-parseInt(_0x57503b(0x154))/0x8+parseInt(_0x57503b(0x15e))/0x9*(parseInt(_0x57503b(0x164))/0xa);if(_0x205ad3===_0x5b7696)break;else _0x41ead0['push'](_0x41ead0['shift']());}catch(_0x1c3272){_0x41ead0['push'](_0x41ead0['shift']());}}}(a163_0x241e,0xe92ea));import{unzipSync,zipSync}from'fflate';function a163_0x5009(_0x3898e4,_0x42cb32){_0x3898e4=_0x3898e4-0x14e;const _0x241e4b=a163_0x241e();let _0x500982=_0x241e4b[_0x3898e4];return _0x500982;}import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';function a163_0x241e(){const _0x2ab62c=['object','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','validation_error','code','validation','1494643OsXXIa','entries','36jwyFcV','map','36141YZJULc','12bpilMX','164HXdWvr','sort','10339870UMrNxs','84305XTIdbf','endsWith','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','length','1504902zJVVhd','name','6353360meJMrf','2950213OSBxiq','1980-01-01T00:00:00.000Z'];a163_0x241e=function(){return _0x2ab62c;};return a163_0x241e();}const ZIP_MTIME=new Date(a163_0x340efa(0x156));export function createDeterministicZipPackage(_0x3d56d0){const _0x1715e6={};for(const _0x55f2ea of normalizeLocalFiles(_0x3d56d0)){_0x1715e6[_0x55f2ea['path']]=fileContent(_0x55f2ea);}return Buffer['from'](zipSync(_0x1715e6,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x16c56f){const _0x42f6b2=a163_0x340efa;if(_0x16c56f[_0x42f6b2(0x151)]<0x16)throw CliErrors[_0x42f6b2(0x15b)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x487a1b;try{_0x487a1b=unzipSync(_0x16c56f,{'filter'(_0x3e9dd3){const _0x1d8b54=_0x42f6b2,_0x34904f=normalizeSkillRelativePath(_0x3e9dd3[_0x1d8b54(0x153)]);if(_0x34904f[_0x1d8b54(0x14f)]('/'))throw CliErrors[_0x1d8b54(0x15b)](_0x1d8b54(0x158)+_0x34904f);return!![];}});}catch(_0x32a931){if(isRuntimeSkillValidationError(_0x32a931))throw _0x32a931;throw CliErrors['validation'](_0x42f6b2(0x150));}return Object[_0x42f6b2(0x15d)](_0x487a1b)[_0x42f6b2(0x15f)](([_0x4fdd48,_0x269938])=>({'path':normalizeSkillRelativePath(_0x4fdd48),'bytes':Buffer['from'](_0x269938)}))[_0x42f6b2(0x163)](compareSkillFiles);}function isRuntimeSkillValidationError(_0xcaf36b){const _0x511f57=a163_0x340efa;return typeof _0xcaf36b===_0x511f57(0x157)&&_0xcaf36b!==null&&_0x511f57(0x15a)in _0xcaf36b&&_0xcaf36b['code']===_0x511f57(0x159);}
1
+ const a163_0x143514=a163_0x5947;function a163_0x3f91(){const _0x51a52f=['entries','length','3392kipjMR','1980-01-01T00:00:00.000Z','from','code','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','1225861TjDxEd','1180624sFLMWB','sort','name','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','98203pzFXfr','11895dNQlhH','399632nyLKeJ','map','90jRoSkq','4256055qQCvXc','validation','633hHUcXU'];a163_0x3f91=function(){return _0x51a52f;};return a163_0x3f91();}(function(_0x3ba6cc,_0x33a03f){const _0x55afbd=a163_0x5947,_0x373978=_0x3ba6cc();while(!![]){try{const _0x36c1f8=parseInt(_0x55afbd(0xb6))/0x1+-parseInt(_0x55afbd(0xb8))/0x2+-parseInt(_0x55afbd(0xbd))/0x3*(parseInt(_0x55afbd(0xac))/0x4)+parseInt(_0x55afbd(0xb7))/0x5*(-parseInt(_0x55afbd(0xba))/0x6)+-parseInt(_0x55afbd(0xb1))/0x7+parseInt(_0x55afbd(0xb2))/0x8+parseInt(_0x55afbd(0xbb))/0x9;if(_0x36c1f8===_0x33a03f)break;else _0x373978['push'](_0x373978['shift']());}catch(_0xcec6f4){_0x373978['push'](_0x373978['shift']());}}}(a163_0x3f91,0x1f864));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a163_0x5947(_0x531ed4,_0x2866a6){_0x531ed4=_0x531ed4-0xac;const _0x3f91f7=a163_0x3f91();let _0x594776=_0x3f91f7[_0x531ed4];return _0x594776;}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a163_0x143514(0xad));export function createDeterministicZipPackage(_0x6fc8ae){const _0x2ae38b=a163_0x143514,_0x5f1176={};for(const _0x48f339 of normalizeLocalFiles(_0x6fc8ae)){_0x5f1176[_0x48f339['path']]=fileContent(_0x48f339);}return Buffer[_0x2ae38b(0xae)](zipSync(_0x5f1176,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0xc8015e){const _0x5db76a=a163_0x143514;if(_0xc8015e[_0x5db76a(0xbf)]<0x16)throw CliErrors[_0x5db76a(0xbc)](_0x5db76a(0xb5));let _0x4eb89e;try{_0x4eb89e=unzipSync(_0xc8015e,{'filter'(_0x7c36f2){const _0x118f56=_0x5db76a,_0x3a2923=normalizeSkillRelativePath(_0x7c36f2[_0x118f56(0xb4)]);if(_0x3a2923['endsWith']('/'))throw CliErrors[_0x118f56(0xbc)](_0x118f56(0xb0)+_0x3a2923);return!![];}});}catch(_0x28a7db){if(isRuntimeSkillValidationError(_0x28a7db))throw _0x28a7db;throw CliErrors[_0x5db76a(0xbc)](_0x5db76a(0xb5));}return Object[_0x5db76a(0xbe)](_0x4eb89e)[_0x5db76a(0xb9)](([_0x124cda,_0x309590])=>({'path':normalizeSkillRelativePath(_0x124cda),'bytes':Buffer[_0x5db76a(0xae)](_0x309590)}))[_0x5db76a(0xb3)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x175264){const _0x802011=a163_0x143514;return typeof _0x175264==='object'&&_0x175264!==null&&_0x802011(0xaf)in _0x175264&&_0x175264[_0x802011(0xaf)]==='validation_error';}
@@ -1 +1 @@
1
- (function(_0x1087c,_0x5080b8){const _0x4093ea=a164_0x58dc,_0x19e3f8=_0x1087c();while(!![]){try{const _0x3e3f44=parseInt(_0x4093ea(0x12b))/0x1+parseInt(_0x4093ea(0x115))/0x2+parseInt(_0x4093ea(0x12a))/0x3*(-parseInt(_0x4093ea(0x104))/0x4)+parseInt(_0x4093ea(0x12f))/0x5*(parseInt(_0x4093ea(0x11d))/0x6)+-parseInt(_0x4093ea(0x113))/0x7*(parseInt(_0x4093ea(0x11e))/0x8)+parseInt(_0x4093ea(0x109))/0x9*(parseInt(_0x4093ea(0x107))/0xa)+-parseInt(_0x4093ea(0x12d))/0xb*(-parseInt(_0x4093ea(0x111))/0xc);if(_0x3e3f44===_0x5080b8)break;else _0x19e3f8['push'](_0x19e3f8['shift']());}catch(_0x5a04c6){_0x19e3f8['push'](_0x19e3f8['shift']());}}}(a164_0xdcd9,0x96edd));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(_0x12160b){const _0x2854d8=a164_0x58dc,_0x10d65c=normalizeLocalFiles(_0x12160b);if(!_0x10d65c[_0x2854d8(0x127)](_0x31d915=>_0x31d915[_0x2854d8(0x12c)]===SKILL_FILE))throw CliErrors[_0x2854d8(0x10d)](_0x2854d8(0x126)+SKILL_FILE+_0x2854d8(0x122));const _0x3faf50=localFilesToManifestFiles(_0x10d65c),_0x50687b=createDeterministicZipPackage(_0x10d65c);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x3faf50),'zipSha256':bufferSha256(_0x50687b),'zipSize':_0x50687b[_0x2854d8(0x116)],'files':_0x3faf50},'packageBytes':_0x50687b,'packageBase64':_0x50687b['toString']('base64')};}export function verifyRuntimeSkillPackage(_0x32bf4a,_0x2dce42){const _0x373c23=normalizePackageManifest(_0x32bf4a,{'requireOssPath':![]});if(!_0x373c23)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0x373c23,_0x2dce42);}function a164_0xdcd9(){const _0x3d6807=['object','has','Duplicate\x20Skill\x20package\x20entry:\x20','11922KHBLpc','8klqQZs','files','bytes','isArray','\x20in\x20Skill\x20file\x20package.','size','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Missing\x20','some','Runtime\x20Skill\x20package\x20is\x20missing\x20','isSafeInteger','6oKCpuA','1067527IjaTut','path','11NePndm','zipSize','1230DppCrr','ossPath','1898596UufpiX','zipSha256','requireOssPath','10sLGvFe','get','886122eONeAC','set','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','push','validation','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','toLowerCase','5519964debsis','map','7219891FTEdEw','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','968264flMlUl','length','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','sha256'];a164_0xdcd9=function(){return _0x3d6807;};return a164_0xdcd9();}export function verifyRuntimeSkillBundle(_0x5f50d6,_0x2e3cc3){const _0x337f3c=normalizePackageManifest(_0x5f50d6,{'requireOssPath':![]});if(!_0x337f3c)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x337f3c,_0x2e3cc3);}export function tryNormalizePackageManifest(_0x4dc872){return normalizePackageManifest(_0x4dc872,{'requireOssPath':![]});}export function requirePackageBytes(_0x2fec20,_0x3af09e){const _0x43fc38=a164_0x58dc;if(!_0x3af09e||_0x3af09e[_0x43fc38(0x116)]===0x0)throw CliErrors[_0x43fc38(0x10d)](_0x43fc38(0x10e)+_0x2fec20);return _0x3af09e;}export function extractDownloadedPackage(_0x5a196d){const _0x3148f9=a164_0x58dc,_0x1c774c=parseZipPackage(_0x5a196d)[_0x3148f9(0x112)](_0x46448b=>({'path':_0x46448b[_0x3148f9(0x12c)],'bytes':_0x46448b[_0x3148f9(0x120)]}));if(!_0x1c774c['some'](_0x771ceb=>_0x771ceb[_0x3148f9(0x12c)]===SKILL_FILE))throw CliErrors[_0x3148f9(0x10d)](_0x3148f9(0x128)+SKILL_FILE+'.');return normalizeLocalFiles(_0x1c774c);}export function localFilesToManifestFiles(_0x4aba09){const _0x5bf624=a164_0x58dc;return normalizeLocalFiles(_0x4aba09)[_0x5bf624(0x112)](_0x253745=>({'path':_0x253745[_0x5bf624(0x12c)],'sha256':fileHash(_0x253745),'size':fileContent(_0x253745)[_0x5bf624(0x116)]}));}function normalizePackageManifest(_0x2cb406,_0x5f537b){const _0x23f053=a164_0x58dc;if(!_0x2cb406||typeof _0x2cb406!==_0x23f053(0x11a)||Array[_0x23f053(0x121)](_0x2cb406))return undefined;const _0x3450dc=_0x2cb406,_0x22cf3f=typeof _0x3450dc['ossPath']==='string'?_0x3450dc[_0x23f053(0x103)]['trim']():undefined;if(_0x5f537b[_0x23f053(0x106)]&&!_0x22cf3f)return undefined;if(!Array[_0x23f053(0x121)](_0x3450dc[_0x23f053(0x11f)])||_0x3450dc[_0x23f053(0x11f)][_0x23f053(0x116)]===0x0)return undefined;if(!isSha256Hex(_0x3450dc['treeSha256']))throw CliErrors[_0x23f053(0x10d)](_0x23f053(0x117));if(!isSha256Hex(_0x3450dc['zipSha256']))throw CliErrors[_0x23f053(0x10d)](_0x23f053(0x10b));if(!Number['isSafeInteger'](_0x3450dc[_0x23f053(0x12e)])||_0x3450dc['zipSize']<0x0)throw CliErrors['validation'](_0x23f053(0x125));const _0x5e1125=normalizeManifestFiles(_0x3450dc[_0x23f053(0x11f)]);if(!_0x5e1125[_0x23f053(0x127)](_0x4184b1=>_0x4184b1[_0x23f053(0x12c)]===SKILL_FILE))throw CliErrors[_0x23f053(0x10d)]('Runtime\x20Skill\x20manifest\x20is\x20missing\x20'+SKILL_FILE+'.');const _0x2cdabd=fileTreeHash(_0x5e1125);if(_0x2cdabd!==_0x3450dc['treeSha256'][_0x23f053(0x110)]())throw CliErrors[_0x23f053(0x10d)](_0x23f053(0x118));return{'schemaVersion':Number[_0x23f053(0x129)](_0x3450dc['schemaVersion'])?_0x3450dc['schemaVersion']:0x2,'ossPath':_0x22cf3f,'treeSha256':_0x2cdabd,'zipSha256':_0x3450dc['zipSha256']['toLowerCase'](),'zipSize':_0x3450dc[_0x23f053(0x12e)],'files':_0x5e1125};}function a164_0x58dc(_0x201eab,_0x1a1d2f){_0x201eab=_0x201eab-0x103;const _0xdcd91b=a164_0xdcd9();let _0x58dcde=_0xdcd91b[_0x201eab];return _0x58dcde;}function extractAndVerifyPackage(_0x3edef0,_0x564369){const _0x12b816=a164_0x58dc,_0x592c4a=normalizePackageManifest(_0x3edef0,{'requireOssPath':![]});if(!_0x592c4a)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x564369[_0x12b816(0x116)]!==_0x592c4a[_0x12b816(0x12e)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x5c41a3=bufferSha256(_0x564369);if(_0x5c41a3!==_0x592c4a[_0x12b816(0x105)])throw CliErrors[_0x12b816(0x10d)](_0x12b816(0x114));return extractAndVerifyPackageFiles(_0x592c4a,_0x564369);}function extractAndVerifyPackageFiles(_0x92eef5,_0x22925a){const _0x41392c=a164_0x58dc,_0x34b338=parseZipPackage(_0x22925a);if(_0x34b338[_0x41392c(0x116)]!==_0x92eef5[_0x41392c(0x11f)][_0x41392c(0x116)])throw CliErrors[_0x41392c(0x10d)]('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x4fcace=new Map();for(const _0xa709b7 of _0x34b338){if(_0x4fcace[_0x41392c(0x11b)](_0xa709b7['path']))throw CliErrors[_0x41392c(0x10d)](_0x41392c(0x11c)+_0xa709b7['path']);_0x4fcace[_0x41392c(0x10a)](_0xa709b7[_0x41392c(0x12c)],_0xa709b7);}const _0x425b32=[];for(const _0x295ef3 of _0x92eef5[_0x41392c(0x11f)]){const _0x5d00b2=_0x4fcace[_0x41392c(0x108)](_0x295ef3[_0x41392c(0x12c)]);if(!_0x5d00b2)throw CliErrors[_0x41392c(0x10d)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x295ef3[_0x41392c(0x12c)]);if(_0x5d00b2[_0x41392c(0x120)]['length']!==_0x295ef3[_0x41392c(0x123)])throw CliErrors['validation'](_0x41392c(0x124)+_0x295ef3[_0x41392c(0x12c)]);const _0x2fa388=bufferSha256(_0x5d00b2[_0x41392c(0x120)]);if(_0x2fa388!==_0x295ef3[_0x41392c(0x119)])throw CliErrors[_0x41392c(0x10d)](_0x41392c(0x10f)+_0x295ef3[_0x41392c(0x12c)]);_0x425b32[_0x41392c(0x10c)]({'path':_0x295ef3[_0x41392c(0x12c)],'bytes':_0x5d00b2['bytes']});}return normalizeLocalFiles(_0x425b32);}
1
+ (function(_0x45b629,_0xfccc0d){const _0x53cb4c=a164_0x5986,_0x30431a=_0x45b629();while(!![]){try{const _0x3e783e=parseInt(_0x53cb4c(0x101))/0x1+-parseInt(_0x53cb4c(0x109))/0x2+parseInt(_0x53cb4c(0x118))/0x3*(-parseInt(_0x53cb4c(0xf1))/0x4)+parseInt(_0x53cb4c(0x10a))/0x5*(parseInt(_0x53cb4c(0x11a))/0x6)+-parseInt(_0x53cb4c(0xf4))/0x7+-parseInt(_0x53cb4c(0xf6))/0x8*(-parseInt(_0x53cb4c(0x116))/0x9)+parseInt(_0x53cb4c(0xf9))/0xa*(parseInt(_0x53cb4c(0x11c))/0xb);if(_0x3e783e===_0xfccc0d)break;else _0x30431a['push'](_0x30431a['shift']());}catch(_0x118e22){_0x30431a['push'](_0x30431a['shift']());}}}(a164_0x1a0d,0xe33dd));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(_0x4adca2){const _0x4c3903=a164_0x5986,_0x5c5aae=normalizeLocalFiles(_0x4adca2);if(!_0x5c5aae['some'](_0x5cf254=>_0x5cf254[_0x4c3903(0xfa)]===SKILL_FILE))throw CliErrors[_0x4c3903(0x10d)](_0x4c3903(0x111)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x5a8510=localFilesToManifestFiles(_0x5c5aae),_0x2d0998=createDeterministicZipPackage(_0x5c5aae);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x5a8510),'zipSha256':bufferSha256(_0x2d0998),'zipSize':_0x2d0998[_0x4c3903(0xfb)],'files':_0x5a8510},'packageBytes':_0x2d0998,'packageBase64':_0x2d0998['toString'](_0x4c3903(0x115))};}export function verifyRuntimeSkillPackage(_0x4baaa8,_0x395e6f){const _0x288770=a164_0x5986,_0x492ae8=normalizePackageManifest(_0x4baaa8,{'requireOssPath':![]});if(!_0x492ae8)throw CliErrors[_0x288770(0x10d)](_0x288770(0x106));return extractAndVerifyPackage(_0x492ae8,_0x395e6f);}export function verifyRuntimeSkillBundle(_0x3b0d35,_0x38eb3f){const _0x3a1ac1=a164_0x5986,_0x460db5=normalizePackageManifest(_0x3b0d35,{'requireOssPath':![]});if(!_0x460db5)throw CliErrors[_0x3a1ac1(0x10d)](_0x3a1ac1(0x106));return extractAndVerifyPackageFiles(_0x460db5,_0x38eb3f);}export function tryNormalizePackageManifest(_0x453526){return normalizePackageManifest(_0x453526,{'requireOssPath':![]});}export function requirePackageBytes(_0x56cb5e,_0x264e90){const _0x494dae=a164_0x5986;if(!_0x264e90||_0x264e90['length']===0x0)throw CliErrors['validation'](_0x494dae(0xfc)+_0x56cb5e);return _0x264e90;}function a164_0x1a0d(){const _0x227476=['686550YoOUHm','ossPath','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','trim','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','treeSha256','Duplicate\x20Skill\x20package\x20entry:\x20','989748TfByhP','29990XnHnUm','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20is\x20missing\x20','validation','zipSize','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','bytes','Missing\x20','set','map','push','base64','16452wMgLfF','isArray','953202cgSvmA','toLowerCase','1506zJrkAQ','schemaVersion','4118367Iyywul','some','20rhubmo','Runtime\x20Skill\x20package\x20size\x20mismatch.','size','6085954rmEsca','sha256','2488iANqXp','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','30ezsMAB','path','length','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','zipSha256','files','has','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'];a164_0x1a0d=function(){return _0x227476;};return a164_0x1a0d();}export function extractDownloadedPackage(_0x42cfb3){const _0x97a97a=a164_0x5986,_0x5b0c07=parseZipPackage(_0x42cfb3)['map'](_0xe2415=>({'path':_0xe2415['path'],'bytes':_0xe2415[_0x97a97a(0x110)]}));if(!_0x5b0c07[_0x97a97a(0xf0)](_0x3cf76a=>_0x3cf76a[_0x97a97a(0xfa)]===SKILL_FILE))throw CliErrors[_0x97a97a(0x10d)](_0x97a97a(0x10c)+SKILL_FILE+'.');return normalizeLocalFiles(_0x5b0c07);}export function localFilesToManifestFiles(_0x48652e){const _0x14d203=a164_0x5986;return normalizeLocalFiles(_0x48652e)[_0x14d203(0x113)](_0x1d375c=>({'path':_0x1d375c['path'],'sha256':fileHash(_0x1d375c),'size':fileContent(_0x1d375c)['length']}));}function normalizePackageManifest(_0x1bc7cd,_0xc07a0b){const _0x44970c=a164_0x5986;if(!_0x1bc7cd||typeof _0x1bc7cd!=='object'||Array[_0x44970c(0x117)](_0x1bc7cd))return undefined;const _0x23dbee=_0x1bc7cd,_0x386501=typeof _0x23dbee[_0x44970c(0x102)]==='string'?_0x23dbee[_0x44970c(0x102)][_0x44970c(0x104)]():undefined;if(_0xc07a0b['requireOssPath']&&!_0x386501)return undefined;if(!Array[_0x44970c(0x117)](_0x23dbee[_0x44970c(0xfe)])||_0x23dbee[_0x44970c(0xfe)][_0x44970c(0xfb)]===0x0)return undefined;if(!isSha256Hex(_0x23dbee['treeSha256']))throw CliErrors[_0x44970c(0x10d)](_0x44970c(0x10b));if(!isSha256Hex(_0x23dbee['zipSha256']))throw CliErrors[_0x44970c(0x10d)](_0x44970c(0xf7));if(!Number['isSafeInteger'](_0x23dbee[_0x44970c(0x10e)])||_0x23dbee[_0x44970c(0x10e)]<0x0)throw CliErrors[_0x44970c(0x10d)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x339112=normalizeManifestFiles(_0x23dbee[_0x44970c(0xfe)]);if(!_0x339112[_0x44970c(0xf0)](_0x1e6e75=>_0x1e6e75['path']===SKILL_FILE))throw CliErrors['validation'](_0x44970c(0xf8)+SKILL_FILE+'.');const _0x463874=fileTreeHash(_0x339112);if(_0x463874!==_0x23dbee[_0x44970c(0x107)][_0x44970c(0x119)]())throw CliErrors[_0x44970c(0x10d)](_0x44970c(0x10f));return{'schemaVersion':Number['isSafeInteger'](_0x23dbee[_0x44970c(0x11b)])?_0x23dbee[_0x44970c(0x11b)]:0x2,'ossPath':_0x386501,'treeSha256':_0x463874,'zipSha256':_0x23dbee['zipSha256'][_0x44970c(0x119)](),'zipSize':_0x23dbee[_0x44970c(0x10e)],'files':_0x339112};}function extractAndVerifyPackage(_0x4d83ca,_0x5cab9b){const _0x138775=a164_0x5986,_0xb0171b=normalizePackageManifest(_0x4d83ca,{'requireOssPath':![]});if(!_0xb0171b)throw CliErrors['validation'](_0x138775(0x106));if(_0x5cab9b[_0x138775(0xfb)]!==_0xb0171b[_0x138775(0x10e)])throw CliErrors[_0x138775(0x10d)](_0x138775(0xf2));const _0x135544=bufferSha256(_0x5cab9b);if(_0x135544!==_0xb0171b[_0x138775(0xfd)])throw CliErrors['validation'](_0x138775(0x103));return extractAndVerifyPackageFiles(_0xb0171b,_0x5cab9b);}function a164_0x5986(_0x1c247b,_0x403dd0){_0x1c247b=_0x1c247b-0xf0;const _0x1a0d3a=a164_0x1a0d();let _0x5986d5=_0x1a0d3a[_0x1c247b];return _0x5986d5;}function extractAndVerifyPackageFiles(_0x460454,_0x12a999){const _0x3f0c16=a164_0x5986,_0x2eb5c9=parseZipPackage(_0x12a999);if(_0x2eb5c9[_0x3f0c16(0xfb)]!==_0x460454['files']['length'])throw CliErrors[_0x3f0c16(0x10d)](_0x3f0c16(0x105));const _0x494e20=new Map();for(const _0x3ef0ed of _0x2eb5c9){if(_0x494e20[_0x3f0c16(0xff)](_0x3ef0ed[_0x3f0c16(0xfa)]))throw CliErrors['validation'](_0x3f0c16(0x108)+_0x3ef0ed['path']);_0x494e20[_0x3f0c16(0x112)](_0x3ef0ed['path'],_0x3ef0ed);}const _0x1b1032=[];for(const _0x35cb1c of _0x460454[_0x3f0c16(0xfe)]){const _0x32e614=_0x494e20['get'](_0x35cb1c['path']);if(!_0x32e614)throw CliErrors[_0x3f0c16(0x10d)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x35cb1c['path']);if(_0x32e614[_0x3f0c16(0x110)][_0x3f0c16(0xfb)]!==_0x35cb1c[_0x3f0c16(0xf3)])throw CliErrors[_0x3f0c16(0x10d)](_0x3f0c16(0x100)+_0x35cb1c[_0x3f0c16(0xfa)]);const _0x266622=bufferSha256(_0x32e614['bytes']);if(_0x266622!==_0x35cb1c[_0x3f0c16(0xf5)])throw CliErrors[_0x3f0c16(0x10d)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x35cb1c[_0x3f0c16(0xfa)]);_0x1b1032[_0x3f0c16(0x114)]({'path':_0x35cb1c[_0x3f0c16(0xfa)],'bytes':_0x32e614[_0x3f0c16(0x110)]});}return normalizeLocalFiles(_0x1b1032);}
@@ -1 +1 @@
1
- (function(_0x58f849,_0x5845d6){var _0x5a1df2=a165_0x50c3,_0x2cec78=_0x58f849();while(!![]){try{var _0x40f063=-parseInt(_0x5a1df2(0xa0))/0x1+parseInt(_0x5a1df2(0x96))/0x2*(parseInt(_0x5a1df2(0x9e))/0x3)+-parseInt(_0x5a1df2(0x9c))/0x4*(parseInt(_0x5a1df2(0x98))/0x5)+parseInt(_0x5a1df2(0x9d))/0x6*(parseInt(_0x5a1df2(0x9b))/0x7)+parseInt(_0x5a1df2(0x9a))/0x8*(-parseInt(_0x5a1df2(0x9f))/0x9)+parseInt(_0x5a1df2(0x97))/0xa*(-parseInt(_0x5a1df2(0x99))/0xb)+parseInt(_0x5a1df2(0xa1))/0xc;if(_0x40f063===_0x5845d6)break;else _0x2cec78['push'](_0x2cec78['shift']());}catch(_0x4a9c4a){_0x2cec78['push'](_0x2cec78['shift']());}}}(a165_0x59c5,0xc22d8));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';function a165_0x59c5(){var _0x390fd9=['40qneiXR','31472aEBxZE','4MfxLrd','228tiBnoB','1590NSmXdp','2462139vBWuTB','427833aHlBCo','37442652wmmfhK','3260IDJEzs','10VpvRXg','28300hgdTmE','17140959nQaCyi'];a165_0x59c5=function(){return _0x390fd9;};return a165_0x59c5();}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';function a165_0x50c3(_0x583983,_0x52789c){_0x583983=_0x583983-0x96;var _0x59c5d1=a165_0x59c5();var _0x50c3f9=_0x59c5d1[_0x583983];return _0x50c3f9;}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(_0x3673f2,_0x356418){var _0x37f48c=a165_0x1f08,_0x15ca4b=_0x3673f2();while(!![]){try{var _0x1fa88d=parseInt(_0x37f48c(0x180))/0x1*(-parseInt(_0x37f48c(0x189))/0x2)+-parseInt(_0x37f48c(0x182))/0x3*(parseInt(_0x37f48c(0x181))/0x4)+parseInt(_0x37f48c(0x188))/0x5+parseInt(_0x37f48c(0x186))/0x6*(-parseInt(_0x37f48c(0x17e))/0x7)+parseInt(_0x37f48c(0x185))/0x8*(parseInt(_0x37f48c(0x184))/0x9)+-parseInt(_0x37f48c(0x187))/0xa*(parseInt(_0x37f48c(0x17f))/0xb)+parseInt(_0x37f48c(0x183))/0xc;if(_0x1fa88d===_0x356418)break;else _0x15ca4b['push'](_0x15ca4b['shift']());}catch(_0x434b51){_0x15ca4b['push'](_0x15ca4b['shift']());}}}(a165_0x4ad3,0x1d160));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 a165_0x1f08(_0x4b5181,_0x52b239){_0x4b5181=_0x4b5181-0x17e;var _0x4ad35f=a165_0x4ad3();var _0x1f087e=_0x4ad35f[_0x4b5181];return _0x1f087e;}function a165_0x4ad3(){var _0x1923b9=['1203055DHpOiH','55132lgrQKo','63BOoBTX','8ZzdhQl','104970XxPtAY','645696JcIYvK','9hSocHX','1303208KksStu','6MUhaMj','170UtRQnz','1160295SwrAQT','82sIIHTh'];a165_0x4ad3=function(){return _0x1923b9;};return a165_0x4ad3();}export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- function a166_0x1f16(_0x41819d,_0x3bf51e){_0x41819d=_0x41819d-0x198;const _0x3d0d18=a166_0x3d0d();let _0x1f16c2=_0x3d0d18[_0x41819d];return _0x1f16c2;}const a166_0x1927df=a166_0x1f16;(function(_0xfdb75b,_0xe33e09){const _0x2d650e=a166_0x1f16,_0xe98fc7=_0xfdb75b();while(!![]){try{const _0x4ecec9=parseInt(_0x2d650e(0x19f))/0x1*(parseInt(_0x2d650e(0x1b4))/0x2)+-parseInt(_0x2d650e(0x1b9))/0x3+parseInt(_0x2d650e(0x199))/0x4*(-parseInt(_0x2d650e(0x1a1))/0x5)+parseInt(_0x2d650e(0x198))/0x6*(parseInt(_0x2d650e(0x19b))/0x7)+-parseInt(_0x2d650e(0x19a))/0x8+parseInt(_0x2d650e(0x1a0))/0x9*(-parseInt(_0x2d650e(0x1b1))/0xa)+parseInt(_0x2d650e(0x1a9))/0xb;if(_0x4ecec9===_0xe33e09)break;else _0xe98fc7['push'](_0xe98fc7['shift']());}catch(_0x3d8819){_0xe98fc7['push'](_0xe98fc7['shift']());}}}(a166_0x3d0d,0x7387d));function a166_0x3d0d(){const _0xfb5963=['skills','unusable','17544417iJPFUD','home','number','\x20uses\x20unsupported\x20version\x20','not-recorded','.claude','absent','.skill-lock.json','2400KjIxSc','globalSkillsDirs','\x20has\x20no\x20skills\x20map','672962dxWxGN','kind','object','recorded','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','2115675GtWjur','.agents','unverifiable','reason','6tbyrEp','1572CYAYYh','284616IHryeU','174153ZFZaRB','utf8','parse','map','2ydkwjN','14796upUsio','8705rzxSXF','version','find','message','\x20is\x20unreadable:\x20','join'];a166_0x3d0d=function(){return _0xfb5963;};return a166_0x3d0d();}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a166_0x1927df(0x1ba),a166_0x1927df(0x1b0));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a166_0x1927df(0x1a7)),join(a166_0x1927df(0x1ae),a166_0x1927df(0x1a7))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x835fde,_0x120bd2){const _0x5be7a6=a166_0x1927df;if(!existsSync(_0x835fde))return{'kind':'not-recorded'};let _0x2824f7;try{_0x2824f7=JSON[_0x5be7a6(0x19d)](readFileSync(_0x835fde,_0x5be7a6(0x19c)));}catch(_0x485cd2){return{'kind':'unusable','reason':_0x835fde+_0x5be7a6(0x1a5)+_0x485cd2[_0x5be7a6(0x1a4)]};}const _0xcbcf2f=_0x2824f7;if(typeof _0xcbcf2f?.[_0x5be7a6(0x1a2)]!==_0x5be7a6(0x1ab)||!SUPPORTED_LOCK_VERSIONS['includes'](_0xcbcf2f['version']))return{'kind':_0x5be7a6(0x1a8),'reason':_0x835fde+_0x5be7a6(0x1ac)+String(_0xcbcf2f?.[_0x5be7a6(0x1a2)])};if(!_0xcbcf2f[_0x5be7a6(0x1a7)]||typeof _0xcbcf2f['skills']!==_0x5be7a6(0x1b6))return{'kind':_0x5be7a6(0x1a8),'reason':_0x835fde+_0x5be7a6(0x1b3)};return _0xcbcf2f[_0x5be7a6(0x1a7)][_0x120bd2]?{'kind':_0x5be7a6(0x1b7)}:{'kind':_0x5be7a6(0x1ad)};}export function resolveInstalledSkill(_0x1270a9,_0x131afa){const _0x51de10=a166_0x1927df,_0x3cd814=_0x131afa?.[_0x51de10(0x1aa)]??homedir(),_0x4c74a9=_0x131afa?.[_0x51de10(0x1b2)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x51de10(0x19e)](_0x4fb795=>join(_0x3cd814,_0x4fb795)),_0xe482a6=_0x131afa?.['lockFile']??join(_0x3cd814,SKILL_LOCK_RELATIVE_PATH),_0xf358dc=_0x4c74a9['map'](_0x17c235=>join(_0x17c235,_0x1270a9,'SKILL.md')),_0x228972=_0xf358dc[_0x51de10(0x1a3)](_0x95da41=>existsSync(_0x95da41));if(_0x228972)return{'state':'present','path':_0x228972};const _0x426fbc=readLockLookup(_0xe482a6,_0x1270a9);if(_0x426fbc[_0x51de10(0x1b5)]===_0x51de10(0x1a8))return{'state':_0x51de10(0x1bb),'reason':_0x426fbc[_0x51de10(0x1bc)]};if(_0x426fbc['kind']===_0x51de10(0x1b7))return{'state':_0x51de10(0x1bb),'reason':_0xe482a6+'\x20records\x20\x22'+_0x1270a9+_0x51de10(0x1b8)+('('+_0xf358dc[_0x51de10(0x1a6)](',\x20')+')')};return{'state':_0x51de10(0x1af),'checked':_0xf358dc};}
1
+ function a166_0x3045(_0xfeebb,_0x1cc539){_0xfeebb=_0xfeebb-0x18e;const _0x341f26=a166_0x341f();let _0x3045a8=_0x341f26[_0xfeebb];return _0x3045a8;}const a166_0x5edf06=a166_0x3045;(function(_0x23c55e,_0x5ec2fd){const _0x33ce46=a166_0x3045,_0x3a75ae=_0x23c55e();while(!![]){try{const _0x258628=-parseInt(_0x33ce46(0x1a8))/0x1*(-parseInt(_0x33ce46(0x1a1))/0x2)+-parseInt(_0x33ce46(0x1ac))/0x3*(-parseInt(_0x33ce46(0x1a0))/0x4)+parseInt(_0x33ce46(0x1a4))/0x5*(parseInt(_0x33ce46(0x1b0))/0x6)+parseInt(_0x33ce46(0x194))/0x7+-parseInt(_0x33ce46(0x1a9))/0x8+-parseInt(_0x33ce46(0x1a3))/0x9*(-parseInt(_0x33ce46(0x1aa))/0xa)+parseInt(_0x33ce46(0x19d))/0xb*(-parseInt(_0x33ce46(0x196))/0xc);if(_0x258628===_0x5ec2fd)break;else _0x3a75ae['push'](_0x3a75ae['shift']());}catch(_0xd5f757){_0x3a75ae['push'](_0x3a75ae['shift']());}}}(a166_0x341f,0xe2d83));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a166_0x5edf06(0x1a7),a166_0x5edf06(0x1a2));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a166_0x5edf06(0x1a7),'skills'),join(a166_0x5edf06(0x198),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2c02c0,_0x4e4750){const _0x41dd28=a166_0x5edf06;if(!existsSync(_0x2c02c0))return{'kind':_0x41dd28(0x18f)};let _0x14a7e5;try{_0x14a7e5=JSON['parse'](readFileSync(_0x2c02c0,_0x41dd28(0x1ad)));}catch(_0x316c06){return{'kind':'unusable','reason':_0x2c02c0+_0x41dd28(0x192)+_0x316c06['message']};}const _0xa8891e=_0x14a7e5;if(typeof _0xa8891e?.[_0x41dd28(0x1a5)]!==_0x41dd28(0x1ae)||!SUPPORTED_LOCK_VERSIONS[_0x41dd28(0x19f)](_0xa8891e[_0x41dd28(0x1a5)]))return{'kind':_0x41dd28(0x18e),'reason':_0x2c02c0+_0x41dd28(0x190)+String(_0xa8891e?.[_0x41dd28(0x1a5)])};if(!_0xa8891e['skills']||typeof _0xa8891e[_0x41dd28(0x19e)]!==_0x41dd28(0x1a6))return{'kind':_0x41dd28(0x18e),'reason':_0x2c02c0+_0x41dd28(0x19a)};return _0xa8891e[_0x41dd28(0x19e)][_0x4e4750]?{'kind':_0x41dd28(0x195)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0xe7fa1,_0x34be7c){const _0x2266c8=a166_0x5edf06,_0x5974e1=_0x34be7c?.[_0x2266c8(0x193)]??homedir(),_0xd27e5e=_0x34be7c?.[_0x2266c8(0x1ab)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x1f9637=>join(_0x5974e1,_0x1f9637)),_0x16a2b4=_0x34be7c?.[_0x2266c8(0x1af)]??join(_0x5974e1,SKILL_LOCK_RELATIVE_PATH),_0x5ef0fb=_0xd27e5e[_0x2266c8(0x19c)](_0x493f51=>join(_0x493f51,_0xe7fa1,'SKILL.md')),_0x5ab608=_0x5ef0fb[_0x2266c8(0x191)](_0x2fb2ce=>existsSync(_0x2fb2ce));if(_0x5ab608)return{'state':_0x2266c8(0x197),'path':_0x5ab608};const _0x241e03=readLockLookup(_0x16a2b4,_0xe7fa1);if(_0x241e03['kind']===_0x2266c8(0x18e))return{'state':'unverifiable','reason':_0x241e03[_0x2266c8(0x199)]};if(_0x241e03[_0x2266c8(0x1b1)]===_0x2266c8(0x195))return{'state':'unverifiable','reason':_0x16a2b4+'\x20records\x20\x22'+_0xe7fa1+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x5ef0fb[_0x2266c8(0x19b)](',\x20')+')')};return{'state':'absent','checked':_0x5ef0fb};}function a166_0x341f(){const _0x5884af=['\x20has\x20no\x20skills\x20map','join','map','39608877HhPznW','skills','includes','4xkGIWm','606yaEvOG','.skill-lock.json','81sWEFtc','1660ETAiwL','version','object','.agents','4793qFFNmh','10421240TzbNgR','140570PSWULu','globalSkillsDirs','5261643ejUrML','utf8','number','lockFile','15558SvEyzJ','kind','unusable','not-recorded','\x20uses\x20unsupported\x20version\x20','find','\x20is\x20unreadable:\x20','home','11473476qEPsaJ','recorded','12jGdEaa','present','.claude','reason'];a166_0x341f=function(){return _0x5884af;};return a166_0x341f();}
@@ -1 +1 @@
1
- const a167_0x3e4dbf=a167_0x20b8;(function(_0x1b1c5e,_0x4dd5aa){const _0x37cbbd=a167_0x20b8,_0x2e0e5c=_0x1b1c5e();while(!![]){try{const _0x4ea74f=parseInt(_0x37cbbd(0x170))/0x1*(parseInt(_0x37cbbd(0x167))/0x2)+parseInt(_0x37cbbd(0x17d))/0x3+-parseInt(_0x37cbbd(0x178))/0x4*(parseInt(_0x37cbbd(0x17a))/0x5)+parseInt(_0x37cbbd(0x16f))/0x6+parseInt(_0x37cbbd(0x174))/0x7*(parseInt(_0x37cbbd(0x176))/0x8)+parseInt(_0x37cbbd(0x175))/0x9+-parseInt(_0x37cbbd(0x171))/0xa;if(_0x4ea74f===_0x4dd5aa)break;else _0x2e0e5c['push'](_0x2e0e5c['shift']());}catch(_0x1971fc){_0x2e0e5c['push'](_0x2e0e5c['shift']());}}}(a167_0x1ece,0x67ef9));const REDACTED_ACCESS_KEY=a167_0x3e4dbf(0x17c);export function maskCliAccessKey(_0x5cc1e0){const _0x34f9df=a167_0x3e4dbf;if(typeof _0x5cc1e0!=='string'||_0x5cc1e0[_0x34f9df(0x172)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x5cc1e0[_0x34f9df(0x179)](0x0,0x8)+'*'[_0x34f9df(0x17b)](_0x5cc1e0[_0x34f9df(0x172)]-0x8);}export function redactCliConfigCredentials(_0x41ee43){const _0x396892=a167_0x3e4dbf,_0x51ce8a={..._0x41ee43};return Object[_0x396892(0x173)][_0x396892(0x168)][_0x396892(0x16d)](_0x51ce8a,_0x396892(0x16c))&&(_0x51ce8a['accessKey']=maskCliAccessKey(_0x51ce8a[_0x396892(0x16c)])),_0x51ce8a[_0x396892(0x16b)]&&typeof _0x51ce8a[_0x396892(0x16b)]===_0x396892(0x17e)&&!Array['isArray'](_0x51ce8a[_0x396892(0x16b)])&&(_0x51ce8a['apps']=redactLegacyAppCredentials(_0x51ce8a[_0x396892(0x16b)])),_0x51ce8a;}function a167_0x20b8(_0x69941b,_0x4266dc){_0x69941b=_0x69941b-0x166;const _0x1ece63=a167_0x1ece();let _0x20b8a7=_0x1ece63[_0x69941b];return _0x20b8a7;}function a167_0x1ece(){const _0x3d04a1=['map','670McLUFx','hasOwnProperty','entries','test','apps','accessKey','call','isArray','245628UGbrZI','1648GgviXJ','3040670XaVvIZ','length','prototype','13153WMcPAb','2969019cXlwpa','976SJykYX','fromEntries','61620owxhgJ','slice','235GdBbpc','repeat','<redacted>','905028UfZJEW','object'];a167_0x1ece=function(){return _0x3d04a1;};return a167_0x1ece();}export function redactCliConfigValue(_0x3fa8d8,_0x8f85a3){const _0x315de7=a167_0x3e4dbf;if(_0x3fa8d8==='accessKey'||/^apps\.[^.]+\.accessKey$/[_0x315de7(0x16a)](_0x3fa8d8))return maskCliAccessKey(_0x8f85a3);if(_0x3fa8d8===_0x315de7(0x16b)&&_0x8f85a3&&typeof _0x8f85a3===_0x315de7(0x17e)&&!Array[_0x315de7(0x16e)](_0x8f85a3))return redactLegacyAppCredentials(_0x8f85a3);if(/^apps\.[^.]+$/[_0x315de7(0x16a)](_0x3fa8d8)&&_0x8f85a3&&typeof _0x8f85a3===_0x315de7(0x17e)&&!Array[_0x315de7(0x16e)](_0x8f85a3)){const _0x529a4f=_0x8f85a3;return Object[_0x315de7(0x173)]['hasOwnProperty'][_0x315de7(0x16d)](_0x529a4f,'accessKey')?{..._0x529a4f,'accessKey':maskCliAccessKey(_0x529a4f[_0x315de7(0x16c)])}:_0x8f85a3;}return _0x8f85a3;}function redactLegacyAppCredentials(_0x2333cc){const _0x1b21e5=a167_0x3e4dbf;return Object[_0x1b21e5(0x177)](Object[_0x1b21e5(0x169)](_0x2333cc)[_0x1b21e5(0x166)](([_0x47c1a1,_0x5944fb])=>{const _0x124914=_0x1b21e5;if(!_0x5944fb||typeof _0x5944fb!==_0x124914(0x17e)||Array[_0x124914(0x16e)](_0x5944fb))return[_0x47c1a1,_0x5944fb];const _0x582117={..._0x5944fb};return Object['prototype'][_0x124914(0x168)][_0x124914(0x16d)](_0x582117,'accessKey')&&(_0x582117[_0x124914(0x16c)]=maskCliAccessKey(_0x582117[_0x124914(0x16c)])),[_0x47c1a1,_0x582117];}));}
1
+ const a167_0x187452=a167_0x2d96;function a167_0xcba8(){const _0x34a682=['string','4098440tsWMfM','hasOwnProperty','length','repeat','5473096qztOcZ','object','test','23075584XrdqFI','<redacted>','apps','call','isArray','9XPfABG','12LOfKOw','1456016XzQoSj','300044wLAwfj','fromEntries','prototype','437206HLZFmE','275964waUdHT','accessKey'];a167_0xcba8=function(){return _0x34a682;};return a167_0xcba8();}(function(_0x578d63,_0x10e6a7){const _0x412a11=a167_0x2d96,_0x2beb58=_0x578d63();while(!![]){try{const _0x267366=parseInt(_0x412a11(0x90))/0x1+parseInt(_0x412a11(0x8f))/0x2+parseInt(_0x412a11(0x94))/0x3+-parseInt(_0x412a11(0x85))/0x4+-parseInt(_0x412a11(0x97))/0x5*(parseInt(_0x412a11(0x8e))/0x6)+-parseInt(_0x412a11(0x93))/0x7+parseInt(_0x412a11(0x88))/0x8*(parseInt(_0x412a11(0x8d))/0x9);if(_0x267366===_0x10e6a7)break;else _0x2beb58['push'](_0x2beb58['shift']());}catch(_0x40f649){_0x2beb58['push'](_0x2beb58['shift']());}}}(a167_0xcba8,0xe41ec));function a167_0x2d96(_0x2b6d9d,_0x31381c){_0x2b6d9d=_0x2b6d9d-0x85;const _0xcba892=a167_0xcba8();let _0x2d9643=_0xcba892[_0x2b6d9d];return _0x2d9643;}const REDACTED_ACCESS_KEY=a167_0x187452(0x89);export function maskCliAccessKey(_0x34fa5f){const _0xe7aec8=a167_0x187452;if(typeof _0x34fa5f!==_0xe7aec8(0x96)||_0x34fa5f[_0xe7aec8(0x99)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x34fa5f['slice'](0x0,0x8)+'*'[_0xe7aec8(0x9a)](_0x34fa5f[_0xe7aec8(0x99)]-0x8);}export function redactCliConfigCredentials(_0x207e16){const _0x1d1d48=a167_0x187452,_0x798820={..._0x207e16};return Object[_0x1d1d48(0x92)][_0x1d1d48(0x98)][_0x1d1d48(0x8b)](_0x798820,_0x1d1d48(0x95))&&(_0x798820[_0x1d1d48(0x95)]=maskCliAccessKey(_0x798820[_0x1d1d48(0x95)])),_0x798820[_0x1d1d48(0x8a)]&&typeof _0x798820[_0x1d1d48(0x8a)]===_0x1d1d48(0x86)&&!Array[_0x1d1d48(0x8c)](_0x798820[_0x1d1d48(0x8a)])&&(_0x798820['apps']=redactLegacyAppCredentials(_0x798820[_0x1d1d48(0x8a)])),_0x798820;}export function redactCliConfigValue(_0xa6ea61,_0x4c214f){const _0x2e9a77=a167_0x187452;if(_0xa6ea61===_0x2e9a77(0x95)||/^apps\.[^.]+\.accessKey$/[_0x2e9a77(0x87)](_0xa6ea61))return maskCliAccessKey(_0x4c214f);if(_0xa6ea61===_0x2e9a77(0x8a)&&_0x4c214f&&typeof _0x4c214f==='object'&&!Array[_0x2e9a77(0x8c)](_0x4c214f))return redactLegacyAppCredentials(_0x4c214f);if(/^apps\.[^.]+$/[_0x2e9a77(0x87)](_0xa6ea61)&&_0x4c214f&&typeof _0x4c214f==='object'&&!Array[_0x2e9a77(0x8c)](_0x4c214f)){const _0x332871=_0x4c214f;return Object[_0x2e9a77(0x92)][_0x2e9a77(0x98)][_0x2e9a77(0x8b)](_0x332871,_0x2e9a77(0x95))?{..._0x332871,'accessKey':maskCliAccessKey(_0x332871[_0x2e9a77(0x95)])}:_0x4c214f;}return _0x4c214f;}function redactLegacyAppCredentials(_0x394402){const _0x34c691=a167_0x187452;return Object[_0x34c691(0x91)](Object['entries'](_0x394402)['map'](([_0x424d67,_0xc79060])=>{const _0x436248=_0x34c691;if(!_0xc79060||typeof _0xc79060!=='object'||Array[_0x436248(0x8c)](_0xc79060))return[_0x424d67,_0xc79060];const _0x15c70d={..._0xc79060};return Object[_0x436248(0x92)]['hasOwnProperty'][_0x436248(0x8b)](_0x15c70d,_0x436248(0x95))&&(_0x15c70d[_0x436248(0x95)]=maskCliAccessKey(_0x15c70d[_0x436248(0x95)])),[_0x424d67,_0x15c70d];}));}
@@ -1 +1 @@
1
- function a168_0x3d9a(_0x154898,_0x1b327d){_0x154898=_0x154898-0x10b;const _0x551c73=a168_0x551c();let _0x3d9a44=_0x551c73[_0x154898];return _0x3d9a44;}(function(_0x17a06f,_0x1a56e9){const _0x3dc069=a168_0x3d9a,_0x3b7988=_0x17a06f();while(!![]){try{const _0x12508f=parseInt(_0x3dc069(0x112))/0x1+-parseInt(_0x3dc069(0x113))/0x2+-parseInt(_0x3dc069(0x10b))/0x3*(parseInt(_0x3dc069(0x111))/0x4)+-parseInt(_0x3dc069(0x10e))/0x5+parseInt(_0x3dc069(0x10c))/0x6+parseInt(_0x3dc069(0x110))/0x7+parseInt(_0x3dc069(0x10d))/0x8*(parseInt(_0x3dc069(0x10f))/0x9);if(_0x12508f===_0x1a56e9)break;else _0x3b7988['push'](_0x3b7988['shift']());}catch(_0x43bb37){_0x3b7988['push'](_0x3b7988['shift']());}}}(a168_0x551c,0x2b1ec));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a168_0x551c(){const _0x3b89cf=['24580lUVCVg','21223WgMBRj','459744OEjJBw','15ThQdYR','335844ETBJwZ','24VOmeON','1462830iZIouU','943146rFFoEJ','2367428tZVzFB'];a168_0x551c=function(){return _0x3b89cf;};return a168_0x551c();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x1d8c5a,_0x5ae106){const _0x4888ee=a168_0x1e92,_0x29bd60=_0x1d8c5a();while(!![]){try{const _0xd98944=parseInt(_0x4888ee(0x13b))/0x1*(-parseInt(_0x4888ee(0x13d))/0x2)+-parseInt(_0x4888ee(0x13c))/0x3*(-parseInt(_0x4888ee(0x141))/0x4)+parseInt(_0x4888ee(0x139))/0x5+-parseInt(_0x4888ee(0x13a))/0x6*(parseInt(_0x4888ee(0x140))/0x7)+-parseInt(_0x4888ee(0x142))/0x8*(-parseInt(_0x4888ee(0x138))/0x9)+parseInt(_0x4888ee(0x13e))/0xa+-parseInt(_0x4888ee(0x13f))/0xb;if(_0xd98944===_0x5ae106)break;else _0x29bd60['push'](_0x29bd60['shift']());}catch(_0xb85e67){_0x29bd60['push'](_0x29bd60['shift']());}}}(a168_0x24b1,0x99e8d));function a168_0x1e92(_0x390e95,_0x2a87d9){_0x390e95=_0x390e95-0x138;const _0x24b1d0=a168_0x24b1();let _0x1e926a=_0x24b1d0[_0x390e95];return _0x1e926a;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a168_0x24b1(){const _0x3ba201=['6745450kBdjVV','5097609pZPqGQ','7uOxaxc','52mAzNWw','152cuhmrq','85329UowoUE','1180740UaRqQr','4202202NKhBOf','3NBTkOn','198591NGIVIB','104796iraiaS'];a168_0x24b1=function(){return _0x3ba201;};return a168_0x24b1();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x43bfa6,_0x3d61b9){const _0x431b50=a169_0x4c3e,_0x5f26bb=_0x43bfa6();while(!![]){try{const _0xe90483=-parseInt(_0x431b50(0xa7))/0x1+parseInt(_0x431b50(0xaf))/0x2+parseInt(_0x431b50(0xa0))/0x3+-parseInt(_0x431b50(0xb1))/0x4+parseInt(_0x431b50(0xa3))/0x5+-parseInt(_0x431b50(0xa8))/0x6+parseInt(_0x431b50(0xae))/0x7;if(_0xe90483===_0x3d61b9)break;else _0x5f26bb['push'](_0x5f26bb['shift']());}catch(_0x24601a){_0x5f26bb['push'](_0x5f26bb['shift']());}}}(a169_0xf634,0x50900));import a169_0x1c0301 from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';function a169_0xf634(){const _0x439c28=['Upgrade\x20command:\x20','minimumVersion','1715441yeOuiL','998368GlBTWP','valid','251184noxNwA','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','Recommended\x20stable:\x20','Current\x20version:\x20','1728525tVSETq','filter','latest','1331425fKBSzB','npm\x20install\x20-g\x20','stableVersion','upgradeMessage','555544eONGoA','3830298cWXunP','minimumVersionMessage','join','Minimum\x20supported:\x20'];a169_0xf634=function(){return _0x439c28;};return a169_0xf634();}export function evaluateCliVersionPolicy(_0x4c2583,_0x727a99){const _0x3e78ff=a169_0x4c3e,_0x579e34=a169_0x1c0301[_0x3e78ff(0xb0)](_0x4c2583)===_0x4c2583,_0x89f1e8=_0x727a99?.[_0x3e78ff(0xa5)]??null,_0x4f9ca6=_0x727a99?.['minimumVersion']??null,_0x2eec4d=Boolean(_0x579e34&&_0x89f1e8&&a169_0x1c0301['lt'](_0x4c2583,_0x89f1e8)),_0xe9ce90=Boolean(_0x579e34&&_0x4f9ca6&&a169_0x1c0301['lt'](_0x4c2583,_0x4f9ca6));return{'currentVersion':_0x4c2583,'stableVersion':_0x89f1e8,'minimumVersion':_0x4f9ca6,'needsUpgrade':_0x2eec4d||_0xe9ce90,'belowMinimum':_0xe9ce90,'upgradeMessage':_0x727a99?.[_0x3e78ff(0xa6)],'minimumVersionMessage':_0x727a99?.[_0x3e78ff(0xa9)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0xe6028c){const _0x54a3e0=a169_0x4c3e;return _0x54a3e0(0xa4)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0xe6028c[_0x54a3e0(0xa5)]??_0x54a3e0(0xa2));}function a169_0x4c3e(_0x279ba2,_0x52889c){_0x279ba2=_0x279ba2-0xa0;const _0xf634bf=a169_0xf634();let _0x4c3e9e=_0xf634bf[_0x279ba2];return _0x4c3e9e;}export function assertCliVersionSupported(_0x205b8c){const _0xc5ca2=a169_0x4c3e;if(!_0x205b8c['belowMinimum'])return;const _0x15a233=[_0x205b8c[_0xc5ca2(0xa9)],_0xc5ca2(0xb4)+_0x205b8c['currentVersion'],_0xc5ca2(0xab)+_0x205b8c[_0xc5ca2(0xad)],_0xc5ca2(0xb3)+(_0x205b8c[_0xc5ca2(0xa5)]??'unavailable'),_0xc5ca2(0xac)+getCliUpgradeCommand(_0x205b8c)][_0xc5ca2(0xa1)](Boolean)[_0xc5ca2(0xaa)]('\x0a');throw CliErrors['validation'](_0xc5ca2(0xb2),_0x15a233);}
1
+ (function(_0x3d153a,_0x10b763){const _0x14921a=a169_0xc012,_0x40f1f6=_0x3d153a();while(!![]){try{const _0x46909e=parseInt(_0x14921a(0x1b6))/0x1*(parseInt(_0x14921a(0x1ac))/0x2)+-parseInt(_0x14921a(0x1c0))/0x3+-parseInt(_0x14921a(0x1b8))/0x4+parseInt(_0x14921a(0x1be))/0x5+-parseInt(_0x14921a(0x1bf))/0x6*(-parseInt(_0x14921a(0x1b2))/0x7)+parseInt(_0x14921a(0x1ab))/0x8*(-parseInt(_0x14921a(0x1bc))/0x9)+parseInt(_0x14921a(0x1af))/0xa;if(_0x46909e===_0x10b763)break;else _0x40f1f6['push'](_0x40f1f6['shift']());}catch(_0x5e4328){_0x40f1f6['push'](_0x40f1f6['shift']());}}}(a169_0x36c6,0xe51d1));import a169_0x3cd17a from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';function a169_0x36c6(){const _0x4f2770=['stableVersion','1521470nsEYfR','42360iBARcL','5619636TCmzGs','valid','minimumVersion','Current\x20version:\x20','minimumVersionMessage','1176Vvuuvq','569290KseLZV','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','npm\x20install\x20-g\x20','34316500OZDuYs','Recommended\x20stable:\x20','validation','721YSRKea','unavailable','upgradeMessage','join','5jcExKS','latest','5617308CsRhVK','belowMinimum','Minimum\x20supported:\x20','currentVersion','102267GhiZZr'];a169_0x36c6=function(){return _0x4f2770;};return a169_0x36c6();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a169_0xc012(_0x4eaff8,_0x14bbe9){_0x4eaff8=_0x4eaff8-0x1a7;const _0x36c6d7=a169_0x36c6();let _0xc01207=_0x36c6d7[_0x4eaff8];return _0xc01207;}import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x47696a,_0x123e76){const _0x3dfd48=a169_0xc012,_0x3b106c=a169_0x3cd17a[_0x3dfd48(0x1a7)](_0x47696a)===_0x47696a,_0x4dd70c=_0x123e76?.[_0x3dfd48(0x1bd)]??null,_0x5d9ea3=_0x123e76?.[_0x3dfd48(0x1a8)]??null,_0x5561f0=Boolean(_0x3b106c&&_0x4dd70c&&a169_0x3cd17a['lt'](_0x47696a,_0x4dd70c)),_0x239ff6=Boolean(_0x3b106c&&_0x5d9ea3&&a169_0x3cd17a['lt'](_0x47696a,_0x5d9ea3));return{'currentVersion':_0x47696a,'stableVersion':_0x4dd70c,'minimumVersion':_0x5d9ea3,'needsUpgrade':_0x5561f0||_0x239ff6,'belowMinimum':_0x239ff6,'upgradeMessage':_0x123e76?.[_0x3dfd48(0x1b4)],'minimumVersionMessage':_0x123e76?.[_0x3dfd48(0x1aa)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x6f08a9){const _0x107094=a169_0xc012;return _0x107094(0x1ae)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x6f08a9[_0x107094(0x1bd)]??_0x107094(0x1b7));}export function assertCliVersionSupported(_0x1d38f6){const _0x2f3fe3=a169_0xc012;if(!_0x1d38f6[_0x2f3fe3(0x1b9)])return;const _0xe95871=[_0x1d38f6['minimumVersionMessage'],_0x2f3fe3(0x1a9)+_0x1d38f6[_0x2f3fe3(0x1bb)],_0x2f3fe3(0x1ba)+_0x1d38f6[_0x2f3fe3(0x1a8)],_0x2f3fe3(0x1b0)+(_0x1d38f6[_0x2f3fe3(0x1bd)]??_0x2f3fe3(0x1b3)),'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x1d38f6)]['filter'](Boolean)[_0x2f3fe3(0x1b5)]('\x0a');throw CliErrors[_0x2f3fe3(0x1b1)](_0x2f3fe3(0x1ad),_0xe95871);}
@@ -1 +1 @@
1
- (function(_0x2fc143,_0x19ecba){const _0x231afb=a170_0x3b94,_0x5647d3=_0x2fc143();while(!![]){try{const _0x37acd8=parseInt(_0x231afb(0x15c))/0x1+-parseInt(_0x231afb(0x14d))/0x2*(parseInt(_0x231afb(0x14c))/0x3)+-parseInt(_0x231afb(0x158))/0x4+-parseInt(_0x231afb(0x14e))/0x5*(parseInt(_0x231afb(0x14f))/0x6)+-parseInt(_0x231afb(0x164))/0x7+-parseInt(_0x231afb(0x159))/0x8*(parseInt(_0x231afb(0x153))/0x9)+-parseInt(_0x231afb(0x161))/0xa*(-parseInt(_0x231afb(0x15f))/0xb);if(_0x37acd8===_0x19ecba)break;else _0x5647d3['push'](_0x5647d3['shift']());}catch(_0xaf2542){_0x5647d3['push'](_0x5647d3['shift']());}}}(a170_0x3e56,0x18caa));import a170_0x1ab70e 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(_0x16b2e6){const _0x12e18d=a170_0x3b94;return typeof _0x16b2e6===_0x12e18d(0x163)&&_0x16b2e6[_0x12e18d(0x156)]()?_0x16b2e6[_0x12e18d(0x156)]():null;}function pickStrictSemver(_0x58dd41){const _0x4a5c7e=a170_0x3b94,_0x4c76cf=pickString(_0x58dd41);return _0x4c76cf&&a170_0x1ab70e[_0x4a5c7e(0x15e)](_0x4c76cf)===_0x4c76cf?_0x4c76cf:null;}function a170_0x3e56(){const _0x290ac4=['184563tnLClS','recommendedVersion','now','trim','minimumVersionMessage','104520qAhhYp','24tKJWYa','cli','upgradeMessage','84343npQfdC','application/json','valid','252692IBDUNh','timeout','110svgDNX','object','string','682591UUrRtN','6Oieydw','2872COTdWC','5sVQyAg','284718uNVIcq','minVersion','latestVersion','stableVersion'];a170_0x3e56=function(){return _0x290ac4;};return a170_0x3e56();}export function normalizeCliVersionPolicy(_0x540f8b){const _0x71e557=a170_0x3b94;if(!_0x540f8b||typeof _0x540f8b!==_0x71e557(0x162))return null;const _0x2b4520=_0x540f8b,_0x36c2c7=_0x2b4520[_0x71e557(0x15a)]&&typeof _0x2b4520[_0x71e557(0x15a)]===_0x71e557(0x162)?_0x2b4520[_0x71e557(0x15a)]:_0x2b4520,_0x27851e=pickStrictSemver(_0x36c2c7[_0x71e557(0x152)]??_0x36c2c7[_0x71e557(0x151)]??_0x36c2c7[_0x71e557(0x154)]),_0x1e9c38=pickStrictSemver(_0x36c2c7['minimumVersion']??_0x36c2c7[_0x71e557(0x150)]);if(!_0x27851e&&!_0x1e9c38)return null;if(_0x27851e&&_0x1e9c38&&a170_0x1ab70e['gt'](_0x1e9c38,_0x27851e))return null;return{'stableVersion':_0x27851e,'minimumVersion':_0x1e9c38,'upgradeMessage':pickString(_0x36c2c7[_0x71e557(0x15b)])??undefined,'minimumVersionMessage':pickString(_0x36c2c7[_0x71e557(0x157)])??undefined};}export async function fetchCliVersionPolicy(){const _0x4aad38=a170_0x3b94;try{const _0x349464=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4aad38(0x15d)},'signal':AbortSignal[_0x4aad38(0x160)](FETCH_TIMEOUT_MS)});if(!_0x349464['ok'])return null;return normalizeCliVersionPolicy(await _0x349464['json']());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x512670=a170_0x3b94,_0x1c9f25=Date[_0x512670(0x155)]();if(hasCachedPolicy){const _0x108fb2=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x1c9f25-cachedAt<_0x108fb2)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x4f9f08=>{const _0x2fd6a4=_0x512670;return cachedPolicy=_0x4f9f08,cachedAt=Date[_0x2fd6a4(0x155)](),hasCachedPolicy=!![],_0x4f9f08;})['finally'](()=>{pendingPolicy=null;}),pendingPolicy;}function a170_0x3b94(_0x141462,_0x1aa152){_0x141462=_0x141462-0x14c;const _0x3e5643=a170_0x3e56();let _0x3b9402=_0x3e5643[_0x141462];return _0x3b9402;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
1
+ (function(_0x192e24,_0x2b1127){const _0x5ac4c6=a170_0x84b8,_0x48c6ad=_0x192e24();while(!![]){try{const _0x3b8206=-parseInt(_0x5ac4c6(0x182))/0x1+-parseInt(_0x5ac4c6(0x175))/0x2*(parseInt(_0x5ac4c6(0x16f))/0x3)+-parseInt(_0x5ac4c6(0x178))/0x4*(-parseInt(_0x5ac4c6(0x17c))/0x5)+-parseInt(_0x5ac4c6(0x17b))/0x6+parseInt(_0x5ac4c6(0x170))/0x7*(-parseInt(_0x5ac4c6(0x17d))/0x8)+parseInt(_0x5ac4c6(0x176))/0x9*(-parseInt(_0x5ac4c6(0x17a))/0xa)+parseInt(_0x5ac4c6(0x177))/0xb*(parseInt(_0x5ac4c6(0x173))/0xc);if(_0x3b8206===_0x2b1127)break;else _0x48c6ad['push'](_0x48c6ad['shift']());}catch(_0x42147b){_0x48c6ad['push'](_0x48c6ad['shift']());}}}(a170_0x5ae3,0xa1fd7));import a170_0x25b912 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(_0x5f5aca){const _0x241b7c=a170_0x84b8;return typeof _0x5f5aca==='string'&&_0x5f5aca[_0x241b7c(0x180)]()?_0x5f5aca[_0x241b7c(0x180)]():null;}function a170_0x5ae3(){const _0x502036=['timeout','2VJmPUE','874557sazJnO','824549miBPrl','68992SzOLjH','latestVersion','50NrAahs','3060870BkCHMr','55JLbVoO','473848teFjJN','minimumVersion','upgradeMessage','trim','json','468896mLsAVZ','application/json','then','minimumVersionMessage','object','minVersion','2326689wOTCqJ','7ooUOUK','valid','recommendedVersion','444VOyNVI'];a170_0x5ae3=function(){return _0x502036;};return a170_0x5ae3();}function pickStrictSemver(_0x265599){const _0xc841b3=a170_0x84b8,_0x45d746=pickString(_0x265599);return _0x45d746&&a170_0x25b912[_0xc841b3(0x171)](_0x45d746)===_0x45d746?_0x45d746:null;}export function normalizeCliVersionPolicy(_0x3aa374){const _0x3b096e=a170_0x84b8;if(!_0x3aa374||typeof _0x3aa374!==_0x3b096e(0x16d))return null;const _0x72439a=_0x3aa374,_0x1ad7d5=_0x72439a['cli']&&typeof _0x72439a['cli']===_0x3b096e(0x16d)?_0x72439a['cli']:_0x72439a,_0x399a34=pickStrictSemver(_0x1ad7d5['stableVersion']??_0x1ad7d5[_0x3b096e(0x179)]??_0x1ad7d5[_0x3b096e(0x172)]),_0x447cec=pickStrictSemver(_0x1ad7d5[_0x3b096e(0x17e)]??_0x1ad7d5[_0x3b096e(0x16e)]);if(!_0x399a34&&!_0x447cec)return null;if(_0x399a34&&_0x447cec&&a170_0x25b912['gt'](_0x447cec,_0x399a34))return null;return{'stableVersion':_0x399a34,'minimumVersion':_0x447cec,'upgradeMessage':pickString(_0x1ad7d5[_0x3b096e(0x17f)])??undefined,'minimumVersionMessage':pickString(_0x1ad7d5[_0x3b096e(0x185)])??undefined};}function a170_0x84b8(_0x427896,_0xf018ee){_0x427896=_0x427896-0x16d;const _0x5ae319=a170_0x5ae3();let _0x84b838=_0x5ae319[_0x427896];return _0x84b838;}export async function fetchCliVersionPolicy(){const _0x238ca3=a170_0x84b8;try{const _0x324869=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x238ca3(0x183)},'signal':AbortSignal[_0x238ca3(0x174)](FETCH_TIMEOUT_MS)});if(!_0x324869['ok'])return null;return normalizeCliVersionPolicy(await _0x324869[_0x238ca3(0x181)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x5611da=a170_0x84b8,_0x363451=Date['now']();if(hasCachedPolicy){const _0x384c03=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x363451-cachedAt<_0x384c03)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x5611da(0x184)](_0x5153c8=>{return cachedPolicy=_0x5153c8,cachedAt=Date['now'](),hasCachedPolicy=!![],_0x5153c8;})['finally'](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
@@ -1 +1 @@
1
- function a171_0x3c7b(){const _0xc15474=['trim','logFileName','Failed\x20to\x20read\x20logs:','now','688695NMMVtX','writeFileSync','Failed:\x20','rawCommand','map','initWinstonLogger','4465764VLxaSb','2455565eNtTgm','1154936fghrOF','52ohnNzJ','toISOString','Failed\x20to\x20clear\x20logs:','level','8986850qOLiwM','success','combine','10NoGdNl','command','Completed:\x20','error','mkdirSync','logTask','winstonLogger','message','info','Starting:\x20','warn','format','File','unknown','existsSync','green','logFilePath','log','details','189009MUFjTF','getWinstonInstance','clear','readLogs','utf8','createLogger','duration','transports','split','dirname','blue','9BSFNDX','63995vdvWSE','currentRawCommand','timestamp','errors','setRawCommand','yellow'];a171_0x3c7b=function(){return _0xc15474;};return a171_0x3c7b();}const a171_0x4fe3eb=a171_0x288c;(function(_0x39a597,_0x73f579){const _0x3fbe0e=a171_0x288c,_0x1d6230=_0x39a597();while(!![]){try{const _0x1da67a=-parseInt(_0x3fbe0e(0xb6))/0x1+parseInt(_0x3fbe0e(0xc6))/0x2*(parseInt(_0x3fbe0e(0xd9))/0x3)+-parseInt(_0x3fbe0e(0xbf))/0x4*(-parseInt(_0x3fbe0e(0xe5))/0x5)+-parseInt(_0x3fbe0e(0xbc))/0x6+parseInt(_0x3fbe0e(0xbd))/0x7+parseInt(_0x3fbe0e(0xbe))/0x8+parseInt(_0x3fbe0e(0xe4))/0x9*(parseInt(_0x3fbe0e(0xc3))/0xa);if(_0x1da67a===_0x73f579)break;else _0x1d6230['push'](_0x1d6230['shift']());}catch(_0x4541fa){_0x1d6230['push'](_0x1d6230['shift']());}}}(a171_0x3c7b,0x6bf94));import a171_0x2cee21 from'winston';import a171_0x499352 from'node:fs';import a171_0x7609b1 from'node:path';function a171_0x288c(_0xb9598f,_0x3622d8){_0xb9598f=_0xb9598f-0xad;const _0x3c7b59=a171_0x3c7b();let _0x288c62=_0x3c7b59[_0xb9598f];return _0x288c62;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a171_0x4fe3eb(0xcc)];[a171_0x4fe3eb(0xd6)]='';[a171_0x4fe3eb(0xad)]='';constructor(){}[a171_0x4fe3eb(0xb0)](_0x385e56){this['currentRawCommand']=_0x385e56;}['setLogPath'](_0x55dbc6){const _0x15f86a=a171_0x4fe3eb;this[_0x15f86a(0xd6)]=a171_0x7609b1['join'](_0x55dbc6,PRODUCT_CONFIG[_0x15f86a(0xb3)]),this[_0x15f86a(0xcc)]&&this['winstonLogger'][_0x15f86a(0xdb)](),this[_0x15f86a(0xbb)]();}['initWinstonLogger'](){const _0x4bbe8e=a171_0x4fe3eb,_0x2d1b3a=a171_0x7609b1[_0x4bbe8e(0xe2)](this[_0x4bbe8e(0xd6)]);!a171_0x499352['existsSync'](_0x2d1b3a)&&a171_0x499352[_0x4bbe8e(0xca)](_0x2d1b3a,{'recursive':!![]});const _0x319d55=a171_0x2cee21[_0x4bbe8e(0xd1)][_0x4bbe8e(0xc5)](a171_0x2cee21[_0x4bbe8e(0xd1)][_0x4bbe8e(0xae)](),a171_0x2cee21[_0x4bbe8e(0xd1)][_0x4bbe8e(0xaf)]({'stack':!![]}),a171_0x2cee21[_0x4bbe8e(0xd1)]['printf'](_0x5941d3=>{const _0x470a69=_0x4bbe8e,_0x117dcd={'timestamp':_0x5941d3[_0x470a69(0xae)]||new Date()[_0x470a69(0xc0)](),'level':_0x5941d3[_0x470a69(0xc2)]||_0x470a69(0xce),'command':_0x5941d3[_0x470a69(0xc7)]||_0x470a69(0xd3),'rawCommand':_0x5941d3[_0x470a69(0xb9)]||this[_0x470a69(0xad)]||undefined,'message':_0x5941d3[_0x470a69(0xcd)]||'','duration':_0x5941d3[_0x470a69(0xdf)]||undefined,'details':_0x5941d3[_0x470a69(0xd8)]||undefined};return JSON['stringify'](_0x117dcd);}));this['winstonLogger']=a171_0x2cee21[_0x4bbe8e(0xde)]({'level':_0x4bbe8e(0xce),'format':_0x319d55,'transports':[new a171_0x2cee21[(_0x4bbe8e(0xe0))][(_0x4bbe8e(0xd2))]({'filename':this[_0x4bbe8e(0xd6)],'level':_0x4bbe8e(0xce)})],'silent':![]}),a171_0x2cee21['addColors']({'success':_0x4bbe8e(0xd5),'error':'red','warn':_0x4bbe8e(0xb1),'info':_0x4bbe8e(0xe3)});}[a171_0x4fe3eb(0xce)](_0x5b0be1,_0x1cbdbd,_0x68d622){const _0x4b8ca9=a171_0x4fe3eb;if(!this[_0x4b8ca9(0xd6)]||!this[_0x4b8ca9(0xcc)])return;this['winstonLogger'][_0x4b8ca9(0xce)](_0x1cbdbd,{'command':_0x5b0be1,'details':_0x68d622});}[a171_0x4fe3eb(0xc4)](_0x560b6b,_0x415163,_0x144ee1,_0x4aaec7){const _0x465a86=a171_0x4fe3eb;if(!this[_0x465a86(0xd6)]||!this[_0x465a86(0xcc)])return;this[_0x465a86(0xcc)][_0x465a86(0xd7)](_0x465a86(0xce),_0x415163,{'level':_0x465a86(0xc4),'command':_0x560b6b,'duration':_0x144ee1,'details':_0x4aaec7});}[a171_0x4fe3eb(0xc9)](_0x15a755,_0x3f5c4c,_0x3e0b61){const _0x460f5e=a171_0x4fe3eb;if(!this[_0x460f5e(0xd6)]||!this[_0x460f5e(0xcc)])return;this[_0x460f5e(0xcc)][_0x460f5e(0xc9)](_0x3f5c4c,{'command':_0x15a755,'details':_0x3e0b61});}['warn'](_0x83e1a6,_0x346d48,_0x561fb6){const _0x5b5e94=a171_0x4fe3eb;if(!this[_0x5b5e94(0xd6)]||!this['winstonLogger'])return;this[_0x5b5e94(0xcc)][_0x5b5e94(0xd0)](_0x346d48,{'command':_0x83e1a6,'details':_0x561fb6});}async[a171_0x4fe3eb(0xcb)](_0x30d0ef,_0xe68cd1,_0x282c91){const _0x3495d8=a171_0x4fe3eb,_0x40c514=Date[_0x3495d8(0xb5)]();this[_0x3495d8(0xce)](_0x30d0ef,_0x3495d8(0xcf)+_0xe68cd1);try{const _0x4af55b=await _0x282c91(),_0x1fb001=Date['now']()-_0x40c514;return this[_0x3495d8(0xc4)](_0x30d0ef,_0x3495d8(0xc8)+_0xe68cd1,_0x1fb001),_0x4af55b;}catch(_0x5a7b8f){const _0x362a12=Date['now']()-_0x40c514;this['error'](_0x30d0ef,_0x3495d8(0xb8)+_0xe68cd1,{'error':_0x5a7b8f instanceof Error?_0x5a7b8f[_0x3495d8(0xcd)]:String(_0x5a7b8f),'duration':_0x362a12});throw _0x5a7b8f;}}[a171_0x4fe3eb(0xdc)](){const _0x47c27c=a171_0x4fe3eb;try{if(!a171_0x499352[_0x47c27c(0xd4)](this[_0x47c27c(0xd6)]))return[];const _0x3fdfc8=a171_0x499352['readFileSync'](this[_0x47c27c(0xd6)],_0x47c27c(0xdd));return _0x3fdfc8[_0x47c27c(0xe1)](/\r?\n/)['filter'](_0x26c973=>_0x26c973[_0x47c27c(0xb2)]())[_0x47c27c(0xba)](_0x17d59f=>JSON['parse'](_0x17d59f));}catch(_0x11b361){return console[_0x47c27c(0xd0)](_0x47c27c(0xb4),_0x11b361),[];}}['clearLogs'](){const _0xd4de1d=a171_0x4fe3eb;try{a171_0x499352[_0xd4de1d(0xd4)](this[_0xd4de1d(0xd6)])&&a171_0x499352[_0xd4de1d(0xb7)](this[_0xd4de1d(0xd6)],'',_0xd4de1d(0xdd));}catch(_0x3d0609){console['warn'](_0xd4de1d(0xc1),_0x3d0609);}}[a171_0x4fe3eb(0xda)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a171_0xbb720c=a171_0x2421;(function(_0x58954b,_0x56d85f){const _0x449547=a171_0x2421,_0xc2b70d=_0x58954b();while(!![]){try{const _0x1af207=parseInt(_0x449547(0x21b))/0x1*(-parseInt(_0x449547(0x1f6))/0x2)+-parseInt(_0x449547(0x1fc))/0x3+-parseInt(_0x449547(0x20b))/0x4*(-parseInt(_0x449547(0x205))/0x5)+-parseInt(_0x449547(0x212))/0x6+-parseInt(_0x449547(0x1eb))/0x7*(-parseInt(_0x449547(0x206))/0x8)+parseInt(_0x449547(0x1f4))/0x9*(parseInt(_0x449547(0x20f))/0xa)+parseInt(_0x449547(0x1f3))/0xb;if(_0x1af207===_0x56d85f)break;else _0xc2b70d['push'](_0xc2b70d['shift']());}catch(_0x25b032){_0xc2b70d['push'](_0xc2b70d['shift']());}}}(a171_0x1e83,0xebecc));function a171_0x1e83(){const _0x3a27df=['transports','timestamp','2900MmXUqO','addColors','now','9274680QmCRVy','level','green','logTask','setRawCommand','rawCommand','setLogPath','File','initWinstonLogger','1FdFMqm','duration','blue','log','info','red','format','errors','createLogger','clear','warn','writeFileSync','error','70kHLALa','utf8','logFilePath','existsSync','logFileName','toISOString','success','join','28801795VlQaNq','21501cpbFYo','Failed:\x20','1818878KFhYXx','parse','Failed\x20to\x20read\x20logs:','unknown','combine','map','2165586IBDfNl','stringify','readFileSync','Starting:\x20','dirname','message','readLogs','split','clearLogs','20rqTFod','470744rXctxM','command','currentRawCommand','winstonLogger','yellow','243844VbomAp','Completed:\x20'];a171_0x1e83=function(){return _0x3a27df;};return a171_0x1e83();}import a171_0x2f5251 from'winston';import a171_0x3e709f from'node:fs';function a171_0x2421(_0x3d0bb3,_0x7fd4db){_0x3d0bb3=_0x3d0bb3-0x1ea;const _0x1e839d=a171_0x1e83();let _0x242130=_0x1e839d[_0x3d0bb3];return _0x242130;}import a171_0x4a8c26 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a171_0xbb720c(0x209)];[a171_0xbb720c(0x1ed)]='';[a171_0xbb720c(0x208)]='';constructor(){}[a171_0xbb720c(0x216)](_0xb4f548){const _0x43ade8=a171_0xbb720c;this[_0x43ade8(0x208)]=_0xb4f548;}[a171_0xbb720c(0x218)](_0x506e2c){const _0x7416bf=a171_0xbb720c;this[_0x7416bf(0x1ed)]=a171_0x4a8c26[_0x7416bf(0x1f2)](_0x506e2c,PRODUCT_CONFIG[_0x7416bf(0x1ef)]),this[_0x7416bf(0x209)]&&this[_0x7416bf(0x209)][_0x7416bf(0x224)](),this[_0x7416bf(0x21a)]();}['initWinstonLogger'](){const _0x1a8c7e=a171_0xbb720c,_0xd0346e=a171_0x4a8c26[_0x1a8c7e(0x200)](this['logFilePath']);!a171_0x3e709f[_0x1a8c7e(0x1ee)](_0xd0346e)&&a171_0x3e709f['mkdirSync'](_0xd0346e,{'recursive':!![]});const _0x21d1b6=a171_0x2f5251['format'][_0x1a8c7e(0x1fa)](a171_0x2f5251['format'][_0x1a8c7e(0x20e)](),a171_0x2f5251['format'][_0x1a8c7e(0x222)]({'stack':!![]}),a171_0x2f5251[_0x1a8c7e(0x221)]['printf'](_0x231762=>{const _0x117bab=_0x1a8c7e,_0x29e86e={'timestamp':_0x231762[_0x117bab(0x20e)]||new Date()[_0x117bab(0x1f0)](),'level':_0x231762[_0x117bab(0x213)]||_0x117bab(0x21f),'command':_0x231762[_0x117bab(0x207)]||_0x117bab(0x1f9),'rawCommand':_0x231762[_0x117bab(0x217)]||this['currentRawCommand']||undefined,'message':_0x231762[_0x117bab(0x201)]||'','duration':_0x231762[_0x117bab(0x21c)]||undefined,'details':_0x231762['details']||undefined};return JSON[_0x117bab(0x1fd)](_0x29e86e);}));this[_0x1a8c7e(0x209)]=a171_0x2f5251[_0x1a8c7e(0x223)]({'level':_0x1a8c7e(0x21f),'format':_0x21d1b6,'transports':[new a171_0x2f5251[(_0x1a8c7e(0x20d))][(_0x1a8c7e(0x219))]({'filename':this[_0x1a8c7e(0x1ed)],'level':_0x1a8c7e(0x21f)})],'silent':![]}),a171_0x2f5251[_0x1a8c7e(0x210)]({'success':_0x1a8c7e(0x214),'error':_0x1a8c7e(0x220),'warn':_0x1a8c7e(0x20a),'info':_0x1a8c7e(0x21d)});}[a171_0xbb720c(0x21f)](_0xe3e422,_0x49b472,_0x1a7967){const _0x243628=a171_0xbb720c;if(!this[_0x243628(0x1ed)]||!this[_0x243628(0x209)])return;this[_0x243628(0x209)]['info'](_0x49b472,{'command':_0xe3e422,'details':_0x1a7967});}[a171_0xbb720c(0x1f1)](_0x4cb150,_0x3ed530,_0x76424a,_0x2cb78b){const _0x34ac87=a171_0xbb720c;if(!this[_0x34ac87(0x1ed)]||!this[_0x34ac87(0x209)])return;this[_0x34ac87(0x209)][_0x34ac87(0x21e)](_0x34ac87(0x21f),_0x3ed530,{'level':_0x34ac87(0x1f1),'command':_0x4cb150,'duration':_0x76424a,'details':_0x2cb78b});}[a171_0xbb720c(0x1ea)](_0x79dc2e,_0x456f20,_0x2628ba){const _0x3b9b8d=a171_0xbb720c;if(!this['logFilePath']||!this[_0x3b9b8d(0x209)])return;this['winstonLogger']['error'](_0x456f20,{'command':_0x79dc2e,'details':_0x2628ba});}[a171_0xbb720c(0x225)](_0x16bc17,_0x357fbf,_0xe9947b){const _0x4c2948=a171_0xbb720c;if(!this[_0x4c2948(0x1ed)]||!this[_0x4c2948(0x209)])return;this[_0x4c2948(0x209)][_0x4c2948(0x225)](_0x357fbf,{'command':_0x16bc17,'details':_0xe9947b});}async[a171_0xbb720c(0x215)](_0x1a9f0d,_0x2ab4ca,_0x2e1428){const _0x2cf567=a171_0xbb720c,_0x50c328=Date[_0x2cf567(0x211)]();this[_0x2cf567(0x21f)](_0x1a9f0d,_0x2cf567(0x1ff)+_0x2ab4ca);try{const _0x5b7cbd=await _0x2e1428(),_0x29d11d=Date[_0x2cf567(0x211)]()-_0x50c328;return this['success'](_0x1a9f0d,_0x2cf567(0x20c)+_0x2ab4ca,_0x29d11d),_0x5b7cbd;}catch(_0x1ba893){const _0x390d99=Date['now']()-_0x50c328;this[_0x2cf567(0x1ea)](_0x1a9f0d,_0x2cf567(0x1f5)+_0x2ab4ca,{'error':_0x1ba893 instanceof Error?_0x1ba893[_0x2cf567(0x201)]:String(_0x1ba893),'duration':_0x390d99});throw _0x1ba893;}}[a171_0xbb720c(0x202)](){const _0x4895e5=a171_0xbb720c;try{if(!a171_0x3e709f[_0x4895e5(0x1ee)](this[_0x4895e5(0x1ed)]))return[];const _0x402ef6=a171_0x3e709f[_0x4895e5(0x1fe)](this[_0x4895e5(0x1ed)],_0x4895e5(0x1ec));return _0x402ef6[_0x4895e5(0x203)](/\r?\n/)['filter'](_0x590b2b=>_0x590b2b['trim']())[_0x4895e5(0x1fb)](_0x2a761b=>JSON[_0x4895e5(0x1f7)](_0x2a761b));}catch(_0x2bd088){return console[_0x4895e5(0x225)](_0x4895e5(0x1f8),_0x2bd088),[];}}[a171_0xbb720c(0x204)](){const _0x1a19dc=a171_0xbb720c;try{a171_0x3e709f[_0x1a19dc(0x1ee)](this['logFilePath'])&&a171_0x3e709f[_0x1a19dc(0x226)](this[_0x1a19dc(0x1ed)],'',_0x1a19dc(0x1ec));}catch(_0x244141){console[_0x1a19dc(0x225)]('Failed\x20to\x20clear\x20logs:',_0x244141);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- const a172_0x3f256b=a172_0x505c;(function(_0x1b4683,_0x11bc38){const _0x31eb0d=a172_0x505c,_0x1dcd51=_0x1b4683();while(!![]){try{const _0x274541=-parseInt(_0x31eb0d(0x19a))/0x1*(parseInt(_0x31eb0d(0x19f))/0x2)+-parseInt(_0x31eb0d(0x194))/0x3*(parseInt(_0x31eb0d(0x19e))/0x4)+parseInt(_0x31eb0d(0x1a4))/0x5+parseInt(_0x31eb0d(0x19c))/0x6*(parseInt(_0x31eb0d(0x198))/0x7)+-parseInt(_0x31eb0d(0x1a6))/0x8*(-parseInt(_0x31eb0d(0x19b))/0x9)+parseInt(_0x31eb0d(0x1a7))/0xa*(-parseInt(_0x31eb0d(0x19d))/0xb)+parseInt(_0x31eb0d(0x199))/0xc;if(_0x274541===_0x11bc38)break;else _0x1dcd51['push'](_0x1dcd51['shift']());}catch(_0x467c45){_0x1dcd51['push'](_0x1dcd51['shift']());}}}(a172_0x5102,0x96294));function a172_0x505c(_0x165973,_0x150b57){_0x165973=_0x165973-0x192;const _0x5102c1=a172_0x5102();let _0x505c00=_0x5102c1[_0x165973];return _0x505c00;}const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a172_0x3f256b(0x192)]),MIN_SAFE_INTEGER=BigInt(Number[a172_0x3f256b(0x1a2)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x5f02c3){const _0x4dc991=a172_0x3f256b;if(_0x5f02c3['includes']('.')||_0x5f02c3[_0x4dc991(0x196)]('e')||_0x5f02c3[_0x4dc991(0x196)]('E'))return![];const _0x2f4818=BigInt(_0x5f02c3);return _0x2f4818>MAX_SAFE_INTEGER||_0x2f4818<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x6e00af){const _0xda30cd=a172_0x3f256b;let _0x284860='',_0x2fe37d=![],_0x1ab096=![];for(let _0xe82c33=0x0;_0xe82c33<_0x6e00af[_0xda30cd(0x195)];){const _0x25fc48=_0x6e00af[_0xe82c33];if(_0x2fe37d){_0x284860+=_0x25fc48,_0xe82c33+=0x1;if(_0x1ab096)_0x1ab096=![];else{if(_0x25fc48==='\x5c')_0x1ab096=!![];else _0x25fc48==='\x22'&&(_0x2fe37d=![]);}continue;}if(_0x25fc48==='\x22'){_0x2fe37d=!![],_0x284860+=_0x25fc48,_0xe82c33+=0x1;continue;}if(_0x25fc48==='-'||_0x25fc48>='0'&&_0x25fc48<='9'){const _0x241163=JSON_NUMBER_PATTERN[_0xda30cd(0x193)](_0x6e00af[_0xda30cd(0x197)](_0xe82c33))?.[0x0];if(_0x241163){_0x284860+=isUnsafeIntegerLiteral(_0x241163)?'\x22'+_0x241163+'\x22':_0x241163,_0xe82c33+=_0x241163[_0xda30cd(0x195)];continue;}}_0x284860+=_0x25fc48,_0xe82c33+=0x1;}return _0x284860;}function a172_0x5102(){const _0x31bd18=['80OmHbXR','30iWYAIg','json','MAX_SAFE_INTEGER','exec','2853267BfdNwT','length','includes','slice','764372UzvXMG','16934196QwxyCP','1EMSoJO','456363JuzEAx','18otZFYI','4274941BvDqzy','4TKURXp','1291754vIQilE','text','defineProperty','MIN_SAFE_INTEGER','parse','5660390TBiJkx','prototype'];a172_0x5102=function(){return _0x31bd18;};return a172_0x5102();}export function parseLosslessJson(_0x53d48e){const _0xcd883=a172_0x3f256b;return JSON[_0xcd883(0x1a3)](quoteUnsafeIntegerLiterals(_0x53d48e));}export function installLosslessJsonResponseParser(){const _0x43973d=a172_0x3f256b;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x43973d(0x1a5)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0x43973d(0x1a8)),Object[_0x43973d(0x1a1)](responseJsonPrototype,_0x43973d(0x1a8),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x58b594(){const _0x3c0284=_0x43973d;return parseLosslessJson(await this[_0x3c0284(0x1a0)]());}}),restoreResponseJsonParser=()=>{const _0x2cf9a9=_0x43973d;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,_0x2cf9a9(0x1a8),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x2cf9a9(0x1a8)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ function a172_0x504e(){const _0x30e53a=['99uovAYu','8afBqiG','MIN_SAFE_INTEGER','1526FBmmhh','219485lvsbNR','length','195700rUcYQq','1190990rMbkda','1441425XQWUUc','text','MAX_SAFE_INTEGER','4083633rOypyD','parse','defineProperty','json','3528mJWNdc','591198mTwyNP','includes','prototype','2gVZnCs','undefined','slice','exec'];a172_0x504e=function(){return _0x30e53a;};return a172_0x504e();}const a172_0x1d575e=a172_0x7c34;(function(_0x4de965,_0xfb4022){const _0x403d84=a172_0x7c34,_0x59d6d4=_0x4de965();while(!![]){try{const _0x4b5576=parseInt(_0x403d84(0x105))/0x1+parseInt(_0x403d84(0xfd))/0x2*(-parseInt(_0x403d84(0xfa))/0x3)+parseInt(_0x403d84(0x107))/0x4+-parseInt(_0x403d84(0x109))/0x5+parseInt(_0x403d84(0xf9))/0x6*(-parseInt(_0x403d84(0x104))/0x7)+parseInt(_0x403d84(0x102))/0x8*(-parseInt(_0x403d84(0x10c))/0x9)+parseInt(_0x403d84(0x108))/0xa*(parseInt(_0x403d84(0x101))/0xb);if(_0x4b5576===_0xfb4022)break;else _0x59d6d4['push'](_0x59d6d4['shift']());}catch(_0x44bc0e){_0x59d6d4['push'](_0x59d6d4['shift']());}}}(a172_0x504e,0x42a85));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a172_0x1d575e(0x10b)]),MIN_SAFE_INTEGER=BigInt(Number[a172_0x1d575e(0x103)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a172_0x7c34(_0x5add13,_0xa83b5f){_0x5add13=_0x5add13-0xf7;const _0x504e8e=a172_0x504e();let _0x7c3493=_0x504e8e[_0x5add13];return _0x7c3493;}function isUnsafeIntegerLiteral(_0x5d77b0){const _0x39bd6a=a172_0x1d575e;if(_0x5d77b0[_0x39bd6a(0xfb)]('.')||_0x5d77b0[_0x39bd6a(0xfb)]('e')||_0x5d77b0[_0x39bd6a(0xfb)]('E'))return![];const _0x560019=BigInt(_0x5d77b0);return _0x560019>MAX_SAFE_INTEGER||_0x560019<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x53061c){const _0x3b48a5=a172_0x1d575e;let _0x4cf752='',_0x2823c1=![],_0x2c7618=![];for(let _0x3c9724=0x0;_0x3c9724<_0x53061c['length'];){const _0x2aa01a=_0x53061c[_0x3c9724];if(_0x2823c1){_0x4cf752+=_0x2aa01a,_0x3c9724+=0x1;if(_0x2c7618)_0x2c7618=![];else{if(_0x2aa01a==='\x5c')_0x2c7618=!![];else _0x2aa01a==='\x22'&&(_0x2823c1=![]);}continue;}if(_0x2aa01a==='\x22'){_0x2823c1=!![],_0x4cf752+=_0x2aa01a,_0x3c9724+=0x1;continue;}if(_0x2aa01a==='-'||_0x2aa01a>='0'&&_0x2aa01a<='9'){const _0x5a0882=JSON_NUMBER_PATTERN[_0x3b48a5(0x100)](_0x53061c[_0x3b48a5(0xff)](_0x3c9724))?.[0x0];if(_0x5a0882){_0x4cf752+=isUnsafeIntegerLiteral(_0x5a0882)?'\x22'+_0x5a0882+'\x22':_0x5a0882,_0x3c9724+=_0x5a0882[_0x3b48a5(0x106)];continue;}}_0x4cf752+=_0x2aa01a,_0x3c9724+=0x1;}return _0x4cf752;}export function parseLosslessJson(_0x54cf90){const _0x30cb45=a172_0x1d575e;return JSON[_0x30cb45(0x10d)](quoteUnsafeIntegerLiterals(_0x54cf90));}export function installLosslessJsonResponseParser(){const _0x441bb3=a172_0x1d575e;if(typeof Response===_0x441bb3(0xfe))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x441bb3(0xfc)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0x441bb3(0xf8)),Object[_0x441bb3(0xf7)](responseJsonPrototype,_0x441bb3(0xf8),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0xa82f75(){const _0x47845e=_0x441bb3;return parseLosslessJson(await this[_0x47845e(0x10a)]());}}),restoreResponseJsonParser=()=>{const _0x2419a9=_0x441bb3;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x2419a9(0xf7)](responseJsonPrototype,_0x2419a9(0xf8),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
@@ -1 +1 @@
1
- (function(_0x1a7c54,_0x182230){const _0xe155b2=a173_0xef1f,_0x1bcc35=_0x1a7c54();while(!![]){try{const _0x4fa929=parseInt(_0xe155b2(0xcf))/0x1*(parseInt(_0xe155b2(0xc8))/0x2)+-parseInt(_0xe155b2(0xd0))/0x3*(parseInt(_0xe155b2(0xc6))/0x4)+-parseInt(_0xe155b2(0xbd))/0x5*(parseInt(_0xe155b2(0xbb))/0x6)+-parseInt(_0xe155b2(0xd4))/0x7+parseInt(_0xe155b2(0xbe))/0x8*(-parseInt(_0xe155b2(0xc1))/0x9)+-parseInt(_0xe155b2(0xc4))/0xa*(parseInt(_0xe155b2(0xc7))/0xb)+parseInt(_0xe155b2(0xd5))/0xc;if(_0x4fa929===_0x182230)break;else _0x1bcc35['push'](_0x1bcc35['shift']());}catch(_0x65445a){_0x1bcc35['push'](_0x1bcc35['shift']());}}}(a173_0x2c3e,0xafcc2));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x452a79){const _0x24d850=a173_0xef1f;if(!_0x452a79)return undefined;try{return parseLosslessJson(_0x452a79);}catch{throw CliErrors[_0x24d850(0xcb)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x452a79);}}function a173_0xef1f(_0x5cb2b5,_0x17be91){_0x5cb2b5=_0x5cb2b5-0xbb;const _0x2c3e17=a173_0x2c3e();let _0xef1f0=_0x2c3e17[_0x5cb2b5];return _0xef1f0;}function a173_0x2c3e(){const _0x31326b=['map','188631frPnxx','string','Invalid\x20JSON\x20for\x20--params:\x20','6229060ssVbih','object','4QuCfNA','22eKVtPr','830Wgcsqa','test','items','validation','data\x20update\x20--params.','isSafeInteger','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','15UJsEzN','94476jxHoBM','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','join','5434793uKKxcF','50264364nCPysM','length','16836ljIrdo','isArray','2495uGDVYj','8JSMpMM','\x20records\x20per\x20call;\x20received\x20'];a173_0x2c3e=function(){return _0x31326b;};return a173_0x2c3e();}export function parseJsonParamsValue(_0x45917b){const _0x1ba128=a173_0xef1f;if(!_0x45917b)return undefined;try{return parseLosslessJson(_0x45917b);}catch{throw CliErrors[_0x1ba128(0xcb)](_0x1ba128(0xc3)+_0x45917b);}}export function parseBatchCreateItemsFromParams(_0x32a601){const _0x41359d=a173_0xef1f;if(Array[_0x41359d(0xbc)](_0x32a601))return _0x32a601;if(_0x32a601!==null&&_0x32a601!==undefined&&typeof _0x32a601==='object'&&Array[_0x41359d(0xbc)](_0x32a601[_0x41359d(0xca)]))return _0x32a601[_0x41359d(0xca)];throw CliErrors[_0x41359d(0xcb)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x568ffc,_0x2e2a8d){const _0x14be16=a173_0xef1f;if(typeof _0x568ffc==='number'&&Number[_0x14be16(0xcd)](_0x568ffc)&&_0x568ffc>0x0)return _0x568ffc;if(typeof _0x568ffc===_0x14be16(0xc2)){if(/^[1-9]\d*$/[_0x14be16(0xc9)](_0x568ffc))return _0x568ffc;}throw CliErrors[_0x14be16(0xcb)](_0x14be16(0xcc)+_0x2e2a8d+_0x14be16(0xce));}export function parseUpdateIdsFromParams(_0x17e8d0){const _0x555c21=a173_0xef1f;if(_0x17e8d0===null||_0x17e8d0===undefined||typeof _0x17e8d0!==_0x555c21(0xc5)||Array[_0x555c21(0xbc)](_0x17e8d0))throw CliErrors['validation']('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x555c21(0xd1));const _0x5971a3=_0x17e8d0['id'];if(_0x5971a3===undefined||_0x5971a3===null)throw CliErrors[_0x555c21(0xcb)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x555c21(0xd1));const _0x21b864=Array[_0x555c21(0xbc)](_0x5971a3)?_0x5971a3:[_0x5971a3];if(_0x21b864[_0x555c21(0xd6)]===0x0)throw CliErrors[_0x555c21(0xcb)](_0x555c21(0xd2));if(_0x21b864[_0x555c21(0xd6)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x555c21(0xcb)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x555c21(0xbf)+_0x21b864[_0x555c21(0xd6)]+'.');return _0x21b864[_0x555c21(0xc0)]((_0x190402,_0x1ff2f8)=>parseDataUpdateId(_0x190402,Array['isArray'](_0x5971a3)?'id['+_0x1ff2f8+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x4ae44f,_0xdd439f){const _0x5d1efa=a173_0xef1f;if(Array['isArray'](_0x4ae44f['id'])&&_0xdd439f[_0x5d1efa(0xd6)]>0x1)return{..._0x4ae44f,'id':_0xdd439f[_0x5d1efa(0xd3)](',')};return _0x4ae44f;}
1
+ function a173_0x3f51(_0x73cdf,_0x422cdb){_0x73cdf=_0x73cdf-0x10a;const _0x184a91=a173_0x184a();let _0x3f5123=_0x184a91[_0x73cdf];return _0x3f5123;}(function(_0x3a1682,_0x1a5fee){const _0x456939=a173_0x3f51,_0x515536=_0x3a1682();while(!![]){try{const _0x418404=-parseInt(_0x456939(0x112))/0x1+-parseInt(_0x456939(0x10e))/0x2+-parseInt(_0x456939(0x10b))/0x3*(-parseInt(_0x456939(0x115))/0x4)+parseInt(_0x456939(0x120))/0x5*(parseInt(_0x456939(0x116))/0x6)+parseInt(_0x456939(0x11d))/0x7+parseInt(_0x456939(0x126))/0x8+-parseInt(_0x456939(0x11e))/0x9;if(_0x418404===_0x1a5fee)break;else _0x515536['push'](_0x515536['shift']());}catch(_0x59d6f0){_0x515536['push'](_0x515536['shift']());}}}(a173_0x184a,0x64b3e));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x4548ec){const _0x734591=a173_0x3f51;if(!_0x4548ec)return undefined;try{return parseLosslessJson(_0x4548ec);}catch{throw CliErrors[_0x734591(0x10c)](_0x734591(0x119)+_0x4548ec);}}export function parseJsonParamsValue(_0x25dfa8){const _0x2f156c=a173_0x3f51;if(!_0x25dfa8)return undefined;try{return parseLosslessJson(_0x25dfa8);}catch{throw CliErrors['validation'](_0x2f156c(0x119)+_0x25dfa8);}}export function parseBatchCreateItemsFromParams(_0x7dbfe3){const _0x174f70=a173_0x3f51;if(Array[_0x174f70(0x114)](_0x7dbfe3))return _0x7dbfe3;if(_0x7dbfe3!==null&&_0x7dbfe3!==undefined&&typeof _0x7dbfe3==='object'&&Array[_0x174f70(0x114)](_0x7dbfe3[_0x174f70(0x118)]))return _0x7dbfe3[_0x174f70(0x118)];throw CliErrors['validation'](_0x174f70(0x113),_0x174f70(0x110));}function a173_0x184a(){const _0x3a558b=['string','155739sQFbxi','validation','isSafeInteger','1051400pnNWvK','id[','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','137416DhwlNK','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','isArray','28NyzeqK','613182AcznCM','\x20records\x20per\x20call;\x20received\x20','items','Invalid\x20JSON\x20for\x20--params:\x20','data\x20update\x20can\x20update\x20at\x20most\x20','map','join','4042668hVubdY','2857284JeDcyA','number','5qYnEFA','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','length','object','2799664vAMFNM'];a173_0x184a=function(){return _0x3a558b;};return a173_0x184a();}function parseDataUpdateId(_0x565197,_0x3dda35){const _0x25c8c1=a173_0x3f51;if(typeof _0x565197===_0x25c8c1(0x11f)&&Number[_0x25c8c1(0x10d)](_0x565197)&&_0x565197>0x0)return _0x565197;if(typeof _0x565197===_0x25c8c1(0x10a)){if(/^[1-9]\d*$/['test'](_0x565197))return _0x565197;}throw CliErrors[_0x25c8c1(0x10c)]('data\x20update\x20--params.'+_0x3dda35+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x933c5d){const _0x57aabe=a173_0x3f51;if(_0x933c5d===null||_0x933c5d===undefined||typeof _0x933c5d!==_0x57aabe(0x125)||Array[_0x57aabe(0x114)](_0x933c5d))throw CliErrors[_0x57aabe(0x10c)](_0x57aabe(0x123),_0x57aabe(0x121));const _0xe06277=_0x933c5d['id'];if(_0xe06277===undefined||_0xe06277===null)throw CliErrors[_0x57aabe(0x10c)](_0x57aabe(0x122),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x37a4d4=Array[_0x57aabe(0x114)](_0xe06277)?_0xe06277:[_0xe06277];if(_0x37a4d4['length']===0x0)throw CliErrors[_0x57aabe(0x10c)](_0x57aabe(0x111));if(_0x37a4d4[_0x57aabe(0x124)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x57aabe(0x10c)](_0x57aabe(0x11a)+MAX_DATA_UPDATE_IDS+_0x57aabe(0x117)+_0x37a4d4[_0x57aabe(0x124)]+'.');return _0x37a4d4[_0x57aabe(0x11b)]((_0x4e0b3c,_0x542a9a)=>parseDataUpdateId(_0x4e0b3c,Array[_0x57aabe(0x114)](_0xe06277)?_0x57aabe(0x10f)+_0x542a9a+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x34184d,_0x3db836){const _0x539ed6=a173_0x3f51;if(Array['isArray'](_0x34184d['id'])&&_0x3db836[_0x539ed6(0x124)]>0x1)return{..._0x34184d,'id':_0x3db836[_0x539ed6(0x11c)](',')};return _0x34184d;}
@@ -1 +1 @@
1
- function a174_0x576f(_0x555dbe,_0x3d546b){_0x555dbe=_0x555dbe-0x17e;const _0xa250e5=a174_0xa250();let _0x576f06=_0xa250e5[_0x555dbe];return _0x576f06;}(function(_0x468d97,_0x14b32a){const _0x484668=a174_0x576f,_0x5ddc1c=_0x468d97();while(!![]){try{const _0x59b409=-parseInt(_0x484668(0x185))/0x1*(-parseInt(_0x484668(0x18a))/0x2)+-parseInt(_0x484668(0x189))/0x3+parseInt(_0x484668(0x17f))/0x4+parseInt(_0x484668(0x181))/0x5*(-parseInt(_0x484668(0x183))/0x6)+-parseInt(_0x484668(0x17e))/0x7*(-parseInt(_0x484668(0x182))/0x8)+-parseInt(_0x484668(0x187))/0x9+-parseInt(_0x484668(0x180))/0xa;if(_0x59b409===_0x14b32a)break;else _0x5ddc1c['push'](_0x5ddc1c['shift']());}catch(_0x6f3b43){_0x5ddc1c['push'](_0x5ddc1c['shift']());}}}(a174_0xa250,0xc523b));export function normalizePositiveSafeInteger(_0x30d2c1){const _0x119578=a174_0x576f;if(typeof _0x30d2c1==='number')return Number[_0x119578(0x184)](_0x30d2c1)&&_0x30d2c1>0x0?_0x30d2c1:undefined;if(typeof _0x30d2c1!==_0x119578(0x186)||!/^\d+$/[_0x119578(0x188)](_0x30d2c1))return undefined;const _0x57710=Number(_0x30d2c1);return Number['isSafeInteger'](_0x57710)&&_0x57710>0x0?_0x57710:undefined;}function a174_0xa250(){const _0x3e34c4=['2835558cFjjGy','test','2063850OVcRJX','500aBPXWF','63QbNrDB','4657464ulWBZX','1757090qzfFkZ','5bwIgQD','848984Bxhxke','4981614SXlIzt','isSafeInteger','2788lFJWdQ','string'];a174_0xa250=function(){return _0x3e34c4;};return a174_0xa250();}
1
+ (function(_0xb33829,_0x6a0abd){const _0x589d60=a174_0x43f6,_0x139dff=_0xb33829();while(!![]){try{const _0x3f15b3=-parseInt(_0x589d60(0x158))/0x1+-parseInt(_0x589d60(0x15b))/0x2+-parseInt(_0x589d60(0x159))/0x3+-parseInt(_0x589d60(0x15d))/0x4*(-parseInt(_0x589d60(0x15a))/0x5)+parseInt(_0x589d60(0x157))/0x6+-parseInt(_0x589d60(0x15f))/0x7*(parseInt(_0x589d60(0x15e))/0x8)+parseInt(_0x589d60(0x15c))/0x9*(parseInt(_0x589d60(0x156))/0xa);if(_0x3f15b3===_0x6a0abd)break;else _0x139dff['push'](_0x139dff['shift']());}catch(_0x1bc5d4){_0x139dff['push'](_0x139dff['shift']());}}}(a174_0x24eb,0x9f51a));function a174_0x43f6(_0x5afd8b,_0x5c7818){_0x5afd8b=_0x5afd8b-0x155;const _0x24ebf0=a174_0x24eb();let _0x43f63b=_0x24ebf0[_0x5afd8b];return _0x43f63b;}function a174_0x24eb(){const _0x1da6c4=['231NIaelW','isSafeInteger','number','47130yUcnDm','1637880MzvdEL','1091312fshCjM','2695233TNtolR','82885WWEgfO','2316408jcAkHI','6759meOzPe','48dSEgHu','51120nusBXS'];a174_0x24eb=function(){return _0x1da6c4;};return a174_0x24eb();}export function normalizePositiveSafeInteger(_0x562ad9){const _0x4436fd=a174_0x43f6;if(typeof _0x562ad9===_0x4436fd(0x155))return Number['isSafeInteger'](_0x562ad9)&&_0x562ad9>0x0?_0x562ad9:undefined;if(typeof _0x562ad9!=='string'||!/^\d+$/['test'](_0x562ad9))return undefined;const _0x2200e9=Number(_0x562ad9);return Number[_0x4436fd(0x160)](_0x2200e9)&&_0x2200e9>0x0?_0x2200e9:undefined;}
@@ -1 +1 @@
1
- const a175_0x1d3cf4=a175_0x4371;(function(_0x25572e,_0x343a6b){const _0x5df851=a175_0x4371,_0x3b9c40=_0x25572e();while(!![]){try{const _0xcd0f86=-parseInt(_0x5df851(0xca))/0x1+-parseInt(_0x5df851(0xcc))/0x2+-parseInt(_0x5df851(0xd7))/0x3*(parseInt(_0x5df851(0xcd))/0x4)+-parseInt(_0x5df851(0xc6))/0x5*(-parseInt(_0x5df851(0xd2))/0x6)+-parseInt(_0x5df851(0xd0))/0x7+parseInt(_0x5df851(0xd4))/0x8*(-parseInt(_0x5df851(0xce))/0x9)+-parseInt(_0x5df851(0xd6))/0xa*(-parseInt(_0x5df851(0xd3))/0xb);if(_0xcd0f86===_0x343a6b)break;else _0x3b9c40['push'](_0x3b9c40['shift']());}catch(_0x3d8b5c){_0x3b9c40['push'](_0x3b9c40['shift']());}}}(a175_0x1efc,0xe4903));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([a175_0x1d3cf4(0xd5),a175_0x1d3cf4(0xc2)]),SENSITIVE_VALUE_KEYS=new Set(['comment']);export function isSensitiveKey(_0x3ade03){const _0x3fbc91=a175_0x1d3cf4,_0x5028ae=_0x3ade03[_0x3fbc91(0xc4)](/_/g,'-')[_0x3fbc91(0xc5)]();return SENSITIVE_KEY_PATTERN[_0x3fbc91(0xc1)](_0x5028ae);}export function isSensitiveFlagName(_0xebad1b){const _0x59eb2b=a175_0x1d3cf4,_0x5db80a=_0xebad1b['replace'](/_/g,'-')[_0x59eb2b(0xc5)]();return isSensitiveKey(_0x5db80a)||SENSITIVE_FLAG_NAMES[_0x59eb2b(0xc9)](_0x5db80a);}function a175_0x4371(_0x24ee10,_0x167de0){_0x24ee10=_0x24ee10-0xc1;const _0x1efc1e=a175_0x1efc();let _0x43717b=_0x1efc1e[_0x24ee10];return _0x43717b;}function redactVariableValues(_0x533635){const _0x59079f=a175_0x1d3cf4;if(Array[_0x59079f(0xc8)](_0x533635))return _0x533635['map'](_0x37f6a7=>redactVariableValues(_0x37f6a7));if(_0x533635&&typeof _0x533635==='object')return Object['fromEntries'](Object[_0x59079f(0xc7)](_0x533635)[_0x59079f(0xcf)](([_0x59d43b,_0x48b53b])=>[_0x59d43b,redactVariableValues(_0x48b53b)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x627a04){const _0x34e34c=a175_0x1d3cf4;if(Array[_0x34e34c(0xc8)](_0x627a04))return _0x627a04['map'](_0x362fb1=>redactSensitiveValue(_0x362fb1));if(!_0x627a04||typeof _0x627a04!==_0x34e34c(0xd1))return _0x627a04;const _0x1ab458={};for(const [_0x573c3c,_0x3222fb]of Object[_0x34e34c(0xc7)](_0x627a04)){const _0x2b5042=_0x573c3c[_0x34e34c(0xc4)](/_/g,'-')[_0x34e34c(0xc5)]();_0x1ab458[_0x573c3c]=_0x2b5042===_0x34e34c(0xc2)?redactVariableValues(_0x3222fb):SENSITIVE_VALUE_KEYS['has'](_0x2b5042)||isSensitiveKey(_0x573c3c)?REDACTED_VALUE:redactSensitiveValue(_0x3222fb);}return _0x1ab458;}export function redactCommandArgv(_0x164bd5){const _0x3252cf=a175_0x1d3cf4,_0x4afc19=[];let _0x4f85f6=![];for(const _0x1e1d04 of _0x164bd5){if(_0x4f85f6){_0x4afc19['push'](REDACTED_VALUE),_0x4f85f6=![];continue;}const _0x4ca8e3=_0x1e1d04[_0x3252cf(0xcb)](/^--([^=]+)(?:=(.*))?$/);if(!_0x4ca8e3||!isSensitiveFlagName(_0x4ca8e3[0x1]??'')){_0x4afc19[_0x3252cf(0xc3)](_0x1e1d04);continue;}_0x4afc19[_0x3252cf(0xc3)]('--'+_0x4ca8e3[0x1]+(_0x4ca8e3[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x4ca8e3[0x2]===undefined&&(_0x4f85f6=!![]);}return _0x4afc19;}export{REDACTED_VALUE};function a175_0x1efc(){const _0x1ef890=['isArray','has','846010MyvCvW','match','2610094CsBbrB','4744tKXqwk','405FniXGy','map','13104483YCPyek','object','6HngFcv','9515ccNejm','2224NgStPc','comment','60850oPohpx','1797fjuKaW','test','variables','push','replace','toLowerCase','2093600rZhlvB','entries'];a175_0x1efc=function(){return _0x1ef890;};return a175_0x1efc();}
1
+ const a175_0x1d810f=a175_0x4bdf;(function(_0x3be9a5,_0x14035d){const _0x5083e9=a175_0x4bdf,_0x964a62=_0x3be9a5();while(!![]){try{const _0x560f0e=-parseInt(_0x5083e9(0x12f))/0x1*(-parseInt(_0x5083e9(0x139))/0x2)+parseInt(_0x5083e9(0x133))/0x3+-parseInt(_0x5083e9(0x13a))/0x4+parseInt(_0x5083e9(0x134))/0x5+parseInt(_0x5083e9(0x132))/0x6+parseInt(_0x5083e9(0x13f))/0x7*(-parseInt(_0x5083e9(0x142))/0x8)+parseInt(_0x5083e9(0x13d))/0x9;if(_0x560f0e===_0x14035d)break;else _0x964a62['push'](_0x964a62['shift']());}catch(_0x11eeaf){_0x964a62['push'](_0x964a62['shift']());}}}(a175_0xd546,0xbddd4));const REDACTED_VALUE=a175_0x1d810f(0x13c),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a175_0x1d810f(0x135),a175_0x1d810f(0x136)]),SENSITIVE_VALUE_KEYS=new Set([a175_0x1d810f(0x135)]);export function isSensitiveKey(_0x1f5e7f){const _0x5b8b55=a175_0x1d810f,_0x7edee4=_0x1f5e7f[_0x5b8b55(0x131)](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x5b8b55(0x137)](_0x7edee4);}export function isSensitiveFlagName(_0x82412a){const _0x45351e=a175_0x1d810f,_0x504ada=_0x82412a[_0x45351e(0x131)](/_/g,'-')[_0x45351e(0x145)]();return isSensitiveKey(_0x504ada)||SENSITIVE_FLAG_NAMES[_0x45351e(0x13b)](_0x504ada);}function redactVariableValues(_0x2cc814){const _0x56002b=a175_0x1d810f;if(Array[_0x56002b(0x143)](_0x2cc814))return _0x2cc814['map'](_0x731e8b=>redactVariableValues(_0x731e8b));if(_0x2cc814&&typeof _0x2cc814===_0x56002b(0x144))return Object[_0x56002b(0x140)](Object['entries'](_0x2cc814)['map'](([_0x1a4375,_0xf58d2a])=>[_0x1a4375,redactVariableValues(_0xf58d2a)]));return REDACTED_VALUE;}function a175_0xd546(){const _0x4b3862=['99928wRoYce','isArray','object','toLowerCase','12982jIuoTn','match','replace','4436430fmBxSg','4451334RPUReY','1251485dBbRru','comment','variables','test','push','38iwfQfQ','4518812rfNqGT','has','[REDACTED]','217314GZoOOH','map','469puvADN','fromEntries','entries'];a175_0xd546=function(){return _0x4b3862;};return a175_0xd546();}export function redactSensitiveValue(_0x39416d){const _0x3c9617=a175_0x1d810f;if(Array[_0x3c9617(0x143)](_0x39416d))return _0x39416d[_0x3c9617(0x13e)](_0x4aa103=>redactSensitiveValue(_0x4aa103));if(!_0x39416d||typeof _0x39416d!==_0x3c9617(0x144))return _0x39416d;const _0x3a9796={};for(const [_0x4ab266,_0x14ad98]of Object[_0x3c9617(0x141)](_0x39416d)){const _0x22eb14=_0x4ab266[_0x3c9617(0x131)](/_/g,'-')[_0x3c9617(0x145)]();_0x3a9796[_0x4ab266]=_0x22eb14===_0x3c9617(0x136)?redactVariableValues(_0x14ad98):SENSITIVE_VALUE_KEYS[_0x3c9617(0x13b)](_0x22eb14)||isSensitiveKey(_0x4ab266)?REDACTED_VALUE:redactSensitiveValue(_0x14ad98);}return _0x3a9796;}function a175_0x4bdf(_0x21220f,_0x9a3df0){_0x21220f=_0x21220f-0x12f;const _0xd54603=a175_0xd546();let _0x4bdfae=_0xd54603[_0x21220f];return _0x4bdfae;}export function redactCommandArgv(_0x57ef05){const _0x3a757b=a175_0x1d810f,_0x4d44b2=[];let _0x1d9866=![];for(const _0x2dc029 of _0x57ef05){if(_0x1d9866){_0x4d44b2['push'](REDACTED_VALUE),_0x1d9866=![];continue;}const _0x5548ae=_0x2dc029[_0x3a757b(0x130)](/^--([^=]+)(?:=(.*))?$/);if(!_0x5548ae||!isSensitiveFlagName(_0x5548ae[0x1]??'')){_0x4d44b2[_0x3a757b(0x138)](_0x2dc029);continue;}_0x4d44b2['push']('--'+_0x5548ae[0x1]+(_0x5548ae[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x5548ae[0x2]===undefined&&(_0x1d9866=!![]);}return _0x4d44b2;}export{REDACTED_VALUE};