@lovrabet/lovrabet-cli 2.3.3-beta.1 → 2.3.4-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/README.md +11 -0
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-search-client.d.ts +7 -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/build-all-flags.js +1 -1
  113. package/lib/framework/dryrun.js +1 -1
  114. package/lib/framework/flags.js +1 -1
  115. package/lib/framework/help.js +1 -1
  116. package/lib/framework/index.js +1 -1
  117. package/lib/framework/output.js +1 -1
  118. package/lib/framework/preparse.js +1 -1
  119. package/lib/framework/rate-limit.js +1 -1
  120. package/lib/framework/raw-flags.js +1 -1
  121. package/lib/framework/response.js +1 -1
  122. package/lib/framework/runner-confirmation.js +1 -1
  123. package/lib/framework/runner-error.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.js +1 -1
  128. package/lib/generated/build-info.d.ts +4 -4
  129. package/lib/generated/build-info.js +1 -1
  130. package/lib/generated/official-routing.js +1 -1
  131. package/lib/generated/routing-contract.js +1 -1
  132. package/lib/help.js +1 -1
  133. package/lib/postinstall.js +1 -1
  134. package/lib/runtime/confirmation.js +1 -1
  135. package/lib/runtime/event.js +1 -1
  136. package/lib/runtime/index.js +1 -1
  137. package/lib/runtime/queue.js +1 -1
  138. package/lib/runtime/resolve.js +1 -1
  139. package/lib/skills/builtin-skill.js +1 -1
  140. package/lib/skills/npx-skills-add.js +1 -1
  141. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  142. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  143. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  144. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  145. package/lib/skills/runtime-skill-sync/links.js +1 -1
  146. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  147. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  148. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  149. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  150. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  151. package/lib/skills/runtime-skill-sync/push.js +1 -1
  152. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  153. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  154. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  155. package/lib/skills/runtime-skill-sync.js +1 -1
  156. package/lib/skills/skill-presence.js +1 -1
  157. package/lib/utils/access-key-redaction.js +1 -1
  158. package/lib/utils/apply-jq-filter.js +1 -1
  159. package/lib/utils/cli-version-check.js +1 -1
  160. package/lib/utils/cli-version-policy.js +1 -1
  161. package/lib/utils/logger.js +1 -1
  162. package/lib/utils/lossless-json.js +1 -1
  163. package/lib/utils/params.js +1 -1
  164. package/lib/utils/positive-safe-integer.js +1 -1
  165. package/lib/utils/redaction.js +1 -1
  166. package/lib/utils/update-notice.js +1 -1
  167. package/lib/utils/version.js +1 -1
  168. package/lib/utils/write-cli-side-channel.js +1 -1
  169. package/package.json +1 -1
  170. package/skills/lovrabet/SKILL.md +4 -2
  171. package/skills/lovrabet/references/lovrabet-config-commands.md +1 -1
  172. package/skills/lovrabet/references/lovrabet-config.md +2 -2
  173. package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
  174. package/skills/lovrabet/references/lovrabet-kb-workflow.md +16 -6
  175. package/skills/lovrabet/references/lovrabet-service-tree.md +1 -1
  176. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x21d7b4,_0x91d6f6){const _0x39f189=a148_0x5067,_0x8a1d7d=_0x21d7b4();while(!![]){try{const _0x18ba11=parseInt(_0x39f189(0x1a7))/0x1*(parseInt(_0x39f189(0x1d0))/0x2)+parseInt(_0x39f189(0x1c7))/0x3*(parseInt(_0x39f189(0x1c5))/0x4)+parseInt(_0x39f189(0x1bc))/0x5+parseInt(_0x39f189(0x19f))/0x6+parseInt(_0x39f189(0x1b1))/0x7*(-parseInt(_0x39f189(0x1c8))/0x8)+parseInt(_0x39f189(0x1db))/0x9+-parseInt(_0x39f189(0x19c))/0xa;if(_0x18ba11===_0x91d6f6)break;else _0x8a1d7d['push'](_0x8a1d7d['shift']());}catch(_0x5bcdee){_0x8a1d7d['push'](_0x8a1d7d['shift']());}}}(a148_0x2075,0x7445b));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a148_0x2b34bd}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(_0xd366f,_0x7f369f,_0x2495b4={}){const _0x1b10ad=a148_0x5067,_0x2c36f9=resolvePushDirectoryRoot(_0xd366f),_0x309b27=readPushMetadataIfPresent(resolve(_0x2c36f9,METADATA_FILE),{'ignoreInvalidMetadata':_0x2495b4[_0x1b10ad(0x1cd)]});if(_0x309b27?.['appCode']&&_0x309b27['appCode']!==_0x7f369f&&!_0x2495b4[_0x1b10ad(0x1ac)]&&!_0x2495b4[_0x1b10ad(0x1c3)])throw CliErrors[_0x1b10ad(0x1ae)](_0x1b10ad(0x1dd)+_0x309b27[_0x1b10ad(0x1a3)]+_0x1b10ad(0x1da)+_0x7f369f+'\x22.');const _0x353e6a=resolvePushSkillCode(_0x2c36f9,_0x7f369f,_0x309b27,_0x2495b4);if(!_0x353e6a)throw CliErrors['validation']('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x2c36f9,'skillCode':_0x353e6a,'metadata':_0x309b27};}export function readPushDirectory(_0xa78a0f,_0x27952c,_0x4239de={}){const _0xa1f5b7=a148_0x5067,_0x10ca22=resolvePushDirectoryIdentity(_0xa78a0f,_0x27952c,_0x4239de),_0x26e084=_0x10ca22[_0xa1f5b7(0x1be)],_0x3ba27f=resolve(_0x26e084,SKILL_FILE);if(!existsSync(_0x3ba27f)||!lstatSync(_0x3ba27f)[_0xa1f5b7(0x1dc)]())throw CliErrors['validation']('Missing\x20'+SKILL_FILE+':\x20'+_0x3ba27f);const _0x29a69e=_0x10ca22[_0xa1f5b7(0x1c4)],_0x54d4c5=_0x4239de[_0xa1f5b7(0x19a)]??_0xa1f5b7(0x1cf);if(!_0x4239de[_0xa1f5b7(0x1b4)]&&_0x29a69e?.[_0xa1f5b7(0x1bb)]===_0xa1f5b7(0x1cb))throw CliErrors['validation'](_0xa1f5b7(0x1ca)+METADATA_FILE+_0xa1f5b7(0x1a4)+_0x29a69e[_0xa1f5b7(0x1bb)]+'\x22.');if(!_0x4239de[_0xa1f5b7(0x1b4)]&&_0x54d4c5===_0xa1f5b7(0x1cf)&&_0x29a69e?.[_0xa1f5b7(0x1bb)]&&_0x29a69e[_0xa1f5b7(0x1bb)]!==_0xa1f5b7(0x1cf))throw CliErrors[_0xa1f5b7(0x1ae)](_0xa1f5b7(0x1c1)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x29a69e['scope']+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x26e084+_0xa1f5b7(0x1ad));const _0x3d0378=scanSkillDirectory(_0x26e084,{'excludedFilePaths':_0x4239de[_0xa1f5b7(0x19b)]}),_0x74e3bf=buildSkillPackage(_0x3d0378),_0x2f2f3c=readFileSync(_0x3ba27f,_0xa1f5b7(0x1b3)),_0x387af1=_0x10ca22['skillCode'],_0x18bdea=_0x4239de['ignoreMetadataForPayload']?undefined:_0x29a69e,_0x3a7927=readSkillDisplayName(_0x2f2f3c);return{'skillCode':_0x387af1,'metadata':_0x29a69e,'frontmatterDisplayName':_0x3a7927,'input':{'skillCode':_0x387af1,'skillName':_0x3a7927??_0x18bdea?.[_0xa1f5b7(0x1bd)],'description':_0x18bdea?.[_0xa1f5b7(0x1b5)],'content':_0x2f2f3c,'files':_0x74e3bf[_0xa1f5b7(0x1af)],'packageBase64':_0x74e3bf[_0xa1f5b7(0x1b6)],'tags':_0x18bdea?.[_0xa1f5b7(0x1d4)],'version':_0x18bdea?.['version'],'sourceSessionId':_0x18bdea?.[_0xa1f5b7(0x1bf)]}};}function a148_0x5067(_0x3e6092,_0x2641ed){_0x3e6092=_0x3e6092-0x19a;const _0x20755b=a148_0x2075();let _0x50675a=_0x20755b[_0x3e6092];return _0x50675a;}export function refreshPushDirectoryMetadataFromRemote(_0x2daae2,_0x18cbc3,_0x248b00,_0x2d79bc={}){const _0x4176c0=a148_0x5067,_0x4fd5a4=resolvePushDirectoryRoot(_0x2daae2),_0x356d81=readPushMetadataIfPresent(resolve(_0x4fd5a4,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x54e0ff=requireRemoteScope(_0x18cbc3),_0x1334f5=readLocalSkillContent(_0x4fd5a4),_0xbb703c={..._0x18cbc3,'appCode':_0x18cbc3[_0x4176c0(0x1a3)]??_0x248b00,'skillName':_0x18cbc3[_0x4176c0(0x1bd)]??_0x356d81?.['skillName'],'description':_0x18cbc3['description']??_0x356d81?.['description'],'example':_0x18cbc3[_0x4176c0(0x1d7)]??_0x356d81?.[_0x4176c0(0x1d7)],'tags':Array['isArray'](_0x18cbc3[_0x4176c0(0x1d4)])?_0x18cbc3[_0x4176c0(0x1d4)]:_0x356d81?.[_0x4176c0(0x1d4)],'sourceSessionId':_0x18cbc3[_0x4176c0(0x1bf)]??_0x356d81?.[_0x4176c0(0x1bf)],'content':_0x18cbc3[_0x4176c0(0x1a2)]??_0x1334f5},_0x309288=buildMetadata(_0xbb703c,_0x54e0ff,_0x248b00,contentHash(_0x1334f5),_0x2d79bc[_0x4176c0(0x1a6)]);writeJsonAtomic(resolve(_0x4fd5a4,METADATA_FILE),_0x309288);}export function recordPushedRuntimeSkill(_0x31575a,_0xac9d71,_0x2e58d6,_0x45ad97={}){const _0x5da880=a148_0x5067,_0x2e4ecd=resolvePushDirectoryRoot(_0x31575a),_0x51e3a3=scanSkillDirectory(_0x2e4ecd),_0x2766a3=_0x51e3a3[_0x5da880(0x1a8)](_0x532c69=>_0x532c69[_0x5da880(0x1ba)]===SKILL_FILE),_0x12f42f=_0x2766a3?fileText(_0x2766a3):'',_0x55e4ee=tryNormalizePackageManifest(_0xac9d71[_0x5da880(0x1a0)]),_0x2a94fb={..._0xac9d71,'content':_0xac9d71['content']??_0x12f42f,'files':_0x55e4ee},_0x1f8094=_0x55e4ee?normalizeLocalFiles(_0x51e3a3)[_0x5da880(0x1b2)](_0x32dbd7=>_0x55e4ee['files']['some'](_0x1613c3=>_0x1613c3[_0x5da880(0x1ba)]===_0x32dbd7[_0x5da880(0x1ba)])):undefined,_0x98f99c=buildMetadata(_0x2a94fb,_0x45ad97[_0x5da880(0x1bb)]??_0x5da880(0x1cf),_0x2e58d6,contentHash(_0x2a94fb[_0x5da880(0x1a2)]??''),_0x45ad97[_0x5da880(0x1d1)],_0x1f8094);writeJsonAtomic(resolve(_0x2e4ecd,METADATA_FILE),_0x98f99c);}export function deriveSkillCodeFromDirectory(_0x42d0f4,_0x463838){const _0x1f0b2c=a148_0x5067,_0x268492=basename(resolve(_0x42d0f4)),_0x4b24ec=_0x463838+'--';return _0x268492[_0x1f0b2c(0x1aa)](_0x4b24ec)?_0x268492[_0x1f0b2c(0x1ce)](_0x4b24ec[_0x1f0b2c(0x1b0)]):_0x268492;}function resolvePushSkillCode(_0x47db4a,_0x368b61,_0x53b466,_0x3699e8){const _0x538076=a148_0x5067,_0x303c9b=deriveSkillCodeFromSkillFile(_0x47db4a)||deriveSkillCodeFromDirectory(_0x47db4a,_0x368b61);if(_0x3699e8[_0x538076(0x1b7)])return _0x303c9b;return _0x53b466?.[_0x538076(0x1a5)]?.[_0x538076(0x1c2)]()||_0x303c9b;}function deriveSkillCodeFromSkillFile(_0x19b564){const _0x5f33f7=a148_0x5067,_0x4b23fe=resolve(_0x19b564,SKILL_FILE);if(!existsSync(_0x4b23fe)||!lstatSync(_0x4b23fe)[_0x5f33f7(0x1dc)]())return undefined;const _0xb8c1d7=readFileSync(_0x4b23fe,_0x5f33f7(0x1b3)),_0x52e088=_0xb8c1d7['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x52e088)return undefined;const _0x288e36=parseFrontmatterObject(_0x52e088[0x1]??''),_0x5d2a6e=scalarToString(_0x288e36?.[_0x5f33f7(0x1d8)]);return _0x5d2a6e?slugifySkillName(_0x5d2a6e):undefined;}function readSkillDisplayName(_0x379e70){const _0x1a7083=a148_0x5067,_0x5e8e38=_0x379e70['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x5e8e38)return undefined;const _0x1b782a=parseFrontmatterObject(_0x5e8e38[0x1]??'');return scalarToString(_0x1b782a?.[_0x1a7083(0x1d2)]);}function slugifySkillName(_0x77e371){const _0x3bdb9e=a148_0x5067,_0x16d108=_0x77e371['trim']()[_0x3bdb9e(0x1a1)]()[_0x3bdb9e(0x1c6)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0x3bdb9e(0x1c6)](/-+$/,'')[_0x3bdb9e(0x1c6)](/-{2,}/g,'-');if(!_0x16d108)throw CliErrors['validation'](_0x3bdb9e(0x1d3)+SKILL_FILE+_0x3bdb9e(0x19d));return _0x16d108;}function parseFrontmatterObject(_0x3fccbb){const _0x402008=a148_0x5067;try{const _0xdc71c9=a148_0x2b34bd(_0x3fccbb);return _0xdc71c9&&typeof _0xdc71c9===_0x402008(0x1d5)&&!Array[_0x402008(0x1c0)](_0xdc71c9)?_0xdc71c9:undefined;}catch{return undefined;}}function scalarToString(_0x1ca0af){const _0x3f8692=a148_0x5067;if(typeof _0x1ca0af===_0x3f8692(0x1b8))return _0x1ca0af[_0x3f8692(0x1c2)]();if(typeof _0x1ca0af===_0x3f8692(0x1b9)||typeof _0x1ca0af===_0x3f8692(0x1d9))return String(_0x1ca0af);return undefined;}function resolvePushDirectoryRoot(_0x4a52e2){const _0x2fa28e=a148_0x5067,_0x31ae70=resolve(_0x4a52e2);if(!existsSync(_0x31ae70))throw CliErrors[_0x2fa28e(0x1ae)](_0x2fa28e(0x1ab)+_0x4a52e2);const _0x3df2da=lstatSync(_0x31ae70);if(_0x3df2da[_0x2fa28e(0x1cc)]())return _0x31ae70;if(_0x3df2da['isSymbolicLink']()){const _0x5e0511=realpathSync(_0x31ae70);if(lstatSync(_0x5e0511)[_0x2fa28e(0x1cc)]())return _0x5e0511;}throw CliErrors[_0x2fa28e(0x1ae)](_0x2fa28e(0x1ab)+_0x4a52e2);}function a148_0x2075(){const _0x29e242=['60692aZZKVo','find','(unknown)','startsWith','Skill\x20directory\x20not\x20found:\x20','allowAppCodeRetarget','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','validation','manifest','length','1484ITjfYo','filter','utf8','ignoreMetadataScope','description','packageBase64','ignoreMetadataSkillCode','string','number','path','scope','3202380YBoxwP','skillName','dir','sourceSessionId','isArray','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','trim','ignoreMetadataAppCodeMismatch','metadata','8WOUmxT','replace','549819yvXpcX','32584RIuBYe','Remote\x20Skill\x20','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','builtin','isDirectory','ignoreInvalidMetadata','slice','personal','6IviLbV','pushedAt','displayName','Invalid\x20','tags','object','\x20has\x20unsupported\x20scope\x20\x22','example','name','boolean','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','501786ADBoNt','isFile','Skill\x20metadata\x20appCode\x20\x22','targetScope','excludedFilePaths','2895940TbRbMs','\x20name\x20for\x20SkillHub\x20slug\x20generation.','unknown','2306814ESSzrw','files','toLowerCase','content','appCode','\x20has\x20scope=\x22','skillCode','refreshedAt'];a148_0x2075=function(){return _0x29e242;};return a148_0x2075();}function requireRemoteScope(_0x4804ec){const _0x4fe32d=a148_0x5067;if(_0x4804ec[_0x4fe32d(0x1bb)]==='personal'||_0x4804ec['scope']==='company'||_0x4804ec[_0x4fe32d(0x1bb)]===_0x4fe32d(0x1cb))return _0x4804ec[_0x4fe32d(0x1bb)];throw CliErrors[_0x4fe32d(0x1ae)](_0x4fe32d(0x1c9)+(_0x4804ec['skillCode']||_0x4fe32d(0x1a9))+_0x4fe32d(0x1d6)+(_0x4804ec[_0x4fe32d(0x1bb)]??_0x4fe32d(0x19e))+'\x22.');}function readLocalSkillContent(_0xe9372d){const _0x4e69c5=a148_0x5067,_0x596e88=resolve(_0xe9372d,SKILL_FILE);return existsSync(_0x596e88)&&lstatSync(_0x596e88)[_0x4e69c5(0x1dc)]()?readFileSync(_0x596e88,_0x4e69c5(0x1b3)):'';}function readPushMetadataIfPresent(_0x39a0cb,_0xd24b8b={}){const _0x19ebff=a148_0x5067;try{return readMetadataIfPresent(_0x39a0cb);}catch(_0x4dcfb0){if(_0xd24b8b[_0x19ebff(0x1cd)])return undefined;throw _0x4dcfb0;}}
1
+ (function(_0x115a9c,_0x2a7be1){const _0x4e975d=a148_0x118c,_0x295ef4=_0x115a9c();while(!![]){try{const _0x58053c=parseInt(_0x4e975d(0x102))/0x1+-parseInt(_0x4e975d(0xff))/0x2+-parseInt(_0x4e975d(0x11f))/0x3*(-parseInt(_0x4e975d(0x135))/0x4)+parseInt(_0x4e975d(0x13f))/0x5+-parseInt(_0x4e975d(0x120))/0x6*(-parseInt(_0x4e975d(0x126))/0x7)+parseInt(_0x4e975d(0x122))/0x8*(parseInt(_0x4e975d(0x13d))/0x9)+parseInt(_0x4e975d(0x13b))/0xa*(-parseInt(_0x4e975d(0x128))/0xb);if(_0x58053c===_0x2a7be1)break;else _0x295ef4['push'](_0x295ef4['shift']());}catch(_0x4fa90d){_0x295ef4['push'](_0x295ef4['shift']());}}}(a148_0x29c3,0x3e8fd));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a148_0x46d59d}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(_0x4cf804,_0x516acf,_0x1ea4ea={}){const _0x26bf5f=a148_0x118c,_0x344fb4=resolvePushDirectoryRoot(_0x4cf804),_0x11e77a=readPushMetadataIfPresent(resolve(_0x344fb4,METADATA_FILE),{'ignoreInvalidMetadata':_0x1ea4ea['ignoreInvalidMetadata']});if(_0x11e77a?.[_0x26bf5f(0x101)]&&_0x11e77a[_0x26bf5f(0x101)]!==_0x516acf&&!_0x1ea4ea['allowAppCodeRetarget']&&!_0x1ea4ea[_0x26bf5f(0x116)])throw CliErrors[_0x26bf5f(0x132)](_0x26bf5f(0x140)+_0x11e77a[_0x26bf5f(0x101)]+_0x26bf5f(0x103)+_0x516acf+'\x22.');const _0x49c8c9=resolvePushSkillCode(_0x344fb4,_0x516acf,_0x11e77a,_0x1ea4ea);if(!_0x49c8c9)throw CliErrors[_0x26bf5f(0x132)](_0x26bf5f(0x136)+SKILL_FILE+',\x20'+METADATA_FILE+_0x26bf5f(0x10f));return{'dir':_0x344fb4,'skillCode':_0x49c8c9,'metadata':_0x11e77a};}export function readPushDirectory(_0x45a80a,_0x120d2b,_0x1c079b={}){const _0x563628=a148_0x118c,_0x4d2bff=resolvePushDirectoryIdentity(_0x45a80a,_0x120d2b,_0x1c079b),_0xa39486=_0x4d2bff[_0x563628(0x13a)],_0x32e6bc=resolve(_0xa39486,SKILL_FILE);if(!existsSync(_0x32e6bc)||!lstatSync(_0x32e6bc)[_0x563628(0x12a)]())throw CliErrors['validation'](_0x563628(0x10d)+SKILL_FILE+':\x20'+_0x32e6bc);const _0x5224bd=_0x4d2bff['metadata'],_0x3825a7=_0x1c079b[_0x563628(0x11e)]??_0x563628(0x12c);if(!_0x1c079b[_0x563628(0x105)]&&_0x5224bd?.[_0x563628(0x104)]==='builtin')throw CliErrors['validation'](_0x563628(0x121)+METADATA_FILE+_0x563628(0x137)+_0x5224bd[_0x563628(0x104)]+'\x22.');if(!_0x1c079b[_0x563628(0x105)]&&_0x3825a7===_0x563628(0x12c)&&_0x5224bd?.[_0x563628(0x104)]&&_0x5224bd[_0x563628(0x104)]!==_0x563628(0x12c))throw CliErrors[_0x563628(0x132)](_0x563628(0x118)+METADATA_FILE+_0x563628(0x137)+_0x5224bd[_0x563628(0x104)]+'\x22.',_0x563628(0x10a)+_0xa39486+_0x563628(0x115));const _0x4b6a30=scanSkillDirectory(_0xa39486,{'excludedFilePaths':_0x1c079b[_0x563628(0x134)]}),_0x47aa24=buildSkillPackage(_0x4b6a30),_0x4bc213=readFileSync(_0x32e6bc,_0x563628(0x127)),_0x2b9bbd=_0x4d2bff[_0x563628(0x109)],_0x49c385=_0x1c079b[_0x563628(0x10e)]?undefined:_0x5224bd,_0x2e678e=readSkillDisplayName(_0x4bc213);return{'skillCode':_0x2b9bbd,'metadata':_0x5224bd,'frontmatterDisplayName':_0x2e678e,'input':{'skillCode':_0x2b9bbd,'skillName':_0x2e678e??_0x49c385?.[_0x563628(0x114)],'description':_0x49c385?.[_0x563628(0x138)],'content':_0x4bc213,'files':_0x47aa24[_0x563628(0x123)],'packageBase64':_0x47aa24[_0x563628(0x110)],'tags':_0x49c385?.['tags'],'version':_0x49c385?.[_0x563628(0x139)],'sourceSessionId':_0x49c385?.[_0x563628(0xfe)]}};}export function refreshPushDirectoryMetadataFromRemote(_0xd3e3dd,_0x443060,_0x49b090,_0x201a85={}){const _0x2f5abe=a148_0x118c,_0x3206af=resolvePushDirectoryRoot(_0xd3e3dd),_0xd83caa=readPushMetadataIfPresent(resolve(_0x3206af,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0xe3116c=requireRemoteScope(_0x443060),_0x1c2a96=readLocalSkillContent(_0x3206af),_0x525cd9={..._0x443060,'appCode':_0x443060[_0x2f5abe(0x101)]??_0x49b090,'skillName':_0x443060['skillName']??_0xd83caa?.[_0x2f5abe(0x114)],'description':_0x443060[_0x2f5abe(0x138)]??_0xd83caa?.[_0x2f5abe(0x138)],'example':_0x443060[_0x2f5abe(0x12d)]??_0xd83caa?.['example'],'tags':Array[_0x2f5abe(0x100)](_0x443060[_0x2f5abe(0x133)])?_0x443060['tags']:_0xd83caa?.[_0x2f5abe(0x133)],'sourceSessionId':_0x443060[_0x2f5abe(0xfe)]??_0xd83caa?.[_0x2f5abe(0xfe)],'content':_0x443060[_0x2f5abe(0x13e)]??_0x1c2a96},_0x30c9f3=buildMetadata(_0x525cd9,_0xe3116c,_0x49b090,contentHash(_0x1c2a96),_0x201a85[_0x2f5abe(0x11c)]);writeJsonAtomic(resolve(_0x3206af,METADATA_FILE),_0x30c9f3);}export function recordPushedRuntimeSkill(_0x8a0fa0,_0x369070,_0x269ffd,_0x4dd280={}){const _0x57d0ed=a148_0x118c,_0x1d48d3=resolvePushDirectoryRoot(_0x8a0fa0),_0x1d0aef=scanSkillDirectory(_0x1d48d3),_0xedd510=_0x1d0aef[_0x57d0ed(0xfd)](_0x1c261c=>_0x1c261c[_0x57d0ed(0x112)]===SKILL_FILE),_0x1b6d7f=_0xedd510?fileText(_0xedd510):'',_0x407393=tryNormalizePackageManifest(_0x369070[_0x57d0ed(0x124)]),_0x28f230={..._0x369070,'content':_0x369070[_0x57d0ed(0x13e)]??_0x1b6d7f,'files':_0x407393},_0x3cc1fe=_0x407393?normalizeLocalFiles(_0x1d0aef)['filter'](_0x25c53e=>_0x407393[_0x57d0ed(0x124)][_0x57d0ed(0x12b)](_0x34963b=>_0x34963b[_0x57d0ed(0x112)]===_0x25c53e['path'])):undefined,_0x1c2861=buildMetadata(_0x28f230,_0x4dd280[_0x57d0ed(0x104)]??'personal',_0x269ffd,contentHash(_0x28f230['content']??''),_0x4dd280[_0x57d0ed(0x12e)],_0x3cc1fe);writeJsonAtomic(resolve(_0x1d48d3,METADATA_FILE),_0x1c2861);}export function deriveSkillCodeFromDirectory(_0x4ef033,_0x3ad58c){const _0xfd7a27=a148_0x118c,_0x3b29cb=basename(resolve(_0x4ef033)),_0x50af08=_0x3ad58c+'--';return _0x3b29cb['startsWith'](_0x50af08)?_0x3b29cb[_0xfd7a27(0x12f)](_0x50af08[_0xfd7a27(0x125)]):_0x3b29cb;}function resolvePushSkillCode(_0x121ae1,_0x18eeb2,_0x3ddfd1,_0x718694){const _0x861ce1=a148_0x118c,_0x2ae9b7=deriveSkillCodeFromSkillFile(_0x121ae1)||deriveSkillCodeFromDirectory(_0x121ae1,_0x18eeb2);if(_0x718694['ignoreMetadataSkillCode'])return _0x2ae9b7;return _0x3ddfd1?.['skillCode']?.[_0x861ce1(0x11a)]()||_0x2ae9b7;}function a148_0x29c3(){const _0x2cf81d=['\x20has\x20unsupported\x20scope\x20\x22','name','validation','tags','excludedFilePaths','20VGAVIS','Unable\x20to\x20resolve\x20skillCode\x20from\x20','\x20has\x20scope=\x22','description','version','dir','10uFOXeR','displayName','9taJEzX','content','567165xczYEJ','Skill\x20metadata\x20appCode\x20\x22','find','sourceSessionId','716218LXZQIt','isArray','appCode','99336DWvGYD','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','scope','ignoreMetadataScope','replace','isDirectory','(unknown)','skillCode','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','builtin','isSymbolicLink','Missing\x20','ignoreMetadataForPayload',',\x20or\x20directory\x20name.','packageBase64','\x20name\x20for\x20SkillHub\x20slug\x20generation.','path','string','skillName','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','ignoreMetadataAppCodeMismatch','Skill\x20directory\x20not\x20found:\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','match','trim','toLowerCase','refreshedAt','ignoreInvalidMetadata','targetScope','268602peqCuO','120UIeMIp','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','3443816HQwsWO','manifest','files','length','777rHokOW','utf8','5266514MdcykP','object','isFile','some','personal','example','pushedAt','slice'];a148_0x29c3=function(){return _0x2cf81d;};return a148_0x29c3();}function deriveSkillCodeFromSkillFile(_0x24f528){const _0x24d851=a148_0x118c,_0x118687=resolve(_0x24f528,SKILL_FILE);if(!existsSync(_0x118687)||!lstatSync(_0x118687)['isFile']())return undefined;const _0x4be27f=readFileSync(_0x118687,'utf8'),_0x122fda=_0x4be27f[_0x24d851(0x119)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x122fda)return undefined;const _0x559bda=parseFrontmatterObject(_0x122fda[0x1]??''),_0x2d886e=scalarToString(_0x559bda?.[_0x24d851(0x131)]);return _0x2d886e?slugifySkillName(_0x2d886e):undefined;}function readSkillDisplayName(_0x45ca82){const _0xb01a05=a148_0x118c,_0x648b5a=_0x45ca82[_0xb01a05(0x119)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x648b5a)return undefined;const _0x1266fd=parseFrontmatterObject(_0x648b5a[0x1]??'');return scalarToString(_0x1266fd?.[_0xb01a05(0x13c)]);}function slugifySkillName(_0x1a83b9){const _0xa9d4a=a148_0x118c,_0xbd5f9e=_0x1a83b9[_0xa9d4a(0x11a)]()[_0xa9d4a(0x11b)]()[_0xa9d4a(0x106)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0xa9d4a(0x106)](/^-+/,'')['replace'](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0xbd5f9e)throw CliErrors[_0xa9d4a(0x132)]('Invalid\x20'+SKILL_FILE+_0xa9d4a(0x111));return _0xbd5f9e;}function parseFrontmatterObject(_0x17ee8d){const _0x22b857=a148_0x118c;try{const _0x22e841=a148_0x46d59d(_0x17ee8d);return _0x22e841&&typeof _0x22e841===_0x22b857(0x129)&&!Array[_0x22b857(0x100)](_0x22e841)?_0x22e841:undefined;}catch{return undefined;}}function scalarToString(_0x55f4cf){const _0x861b95=a148_0x118c;if(typeof _0x55f4cf===_0x861b95(0x113))return _0x55f4cf[_0x861b95(0x11a)]();if(typeof _0x55f4cf==='number'||typeof _0x55f4cf==='boolean')return String(_0x55f4cf);return undefined;}function resolvePushDirectoryRoot(_0x15ad94){const _0x53b89b=a148_0x118c,_0x18493d=resolve(_0x15ad94);if(!existsSync(_0x18493d))throw CliErrors[_0x53b89b(0x132)](_0x53b89b(0x117)+_0x15ad94);const _0x5c7915=lstatSync(_0x18493d);if(_0x5c7915[_0x53b89b(0x107)]())return _0x18493d;if(_0x5c7915[_0x53b89b(0x10c)]()){const _0x19204=realpathSync(_0x18493d);if(lstatSync(_0x19204)[_0x53b89b(0x107)]())return _0x19204;}throw CliErrors[_0x53b89b(0x132)](_0x53b89b(0x117)+_0x15ad94);}function requireRemoteScope(_0x25637e){const _0x4000df=a148_0x118c;if(_0x25637e[_0x4000df(0x104)]===_0x4000df(0x12c)||_0x25637e[_0x4000df(0x104)]==='company'||_0x25637e[_0x4000df(0x104)]===_0x4000df(0x10b))return _0x25637e[_0x4000df(0x104)];throw CliErrors[_0x4000df(0x132)]('Remote\x20Skill\x20'+(_0x25637e[_0x4000df(0x109)]||_0x4000df(0x108))+_0x4000df(0x130)+(_0x25637e[_0x4000df(0x104)]??'unknown')+'\x22.');}function a148_0x118c(_0x65e665,_0xaedb56){_0x65e665=_0x65e665-0xfd;const _0x29c391=a148_0x29c3();let _0x118c66=_0x29c391[_0x65e665];return _0x118c66;}function readLocalSkillContent(_0x4cc313){const _0x2c6acf=a148_0x118c,_0x5e592e=resolve(_0x4cc313,SKILL_FILE);return existsSync(_0x5e592e)&&lstatSync(_0x5e592e)[_0x2c6acf(0x12a)]()?readFileSync(_0x5e592e,_0x2c6acf(0x127)):'';}function readPushMetadataIfPresent(_0x3cc482,_0x4512ff={}){const _0x580fc4=a148_0x118c;try{return readMetadataIfPresent(_0x3cc482);}catch(_0x224480){if(_0x4512ff[_0x580fc4(0x11d)])return undefined;throw _0x224480;}}
@@ -1 +1 @@
1
- (function(_0x1f767e,_0xf428ec){const _0x323c2f=a149_0x165c,_0x6e1ff7=_0x1f767e();while(!![]){try{const _0x336ae3=-parseInt(_0x323c2f(0x137))/0x1*(-parseInt(_0x323c2f(0x13f))/0x2)+-parseInt(_0x323c2f(0x12f))/0x3*(-parseInt(_0x323c2f(0x139))/0x4)+parseInt(_0x323c2f(0x132))/0x5*(-parseInt(_0x323c2f(0x130))/0x6)+parseInt(_0x323c2f(0x141))/0x7*(-parseInt(_0x323c2f(0x13a))/0x8)+parseInt(_0x323c2f(0x136))/0x9*(-parseInt(_0x323c2f(0x13b))/0xa)+parseInt(_0x323c2f(0x13e))/0xb*(parseInt(_0x323c2f(0x140))/0xc)+parseInt(_0x323c2f(0x13d))/0xd;if(_0x336ae3===_0xf428ec)break;else _0x6e1ff7['push'](_0x6e1ff7['shift']());}catch(_0x5afd05){_0x6e1ff7['push'](_0x6e1ff7['shift']());}}}(a149_0x4a01,0x282d4));function a149_0x165c(_0x5200a5,_0x556186){_0x5200a5=_0x5200a5-0x12d;const _0x4a0146=a149_0x4a01();let _0x165c89=_0x4a0146[_0x5200a5];return _0x165c89;}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x3fb295){const _0x5b4adb=a149_0x165c,_0x983fea=_0x3fb295&&_0x3fb295[_0x5b4adb(0x131)]>0x0?_0x3fb295:[_0x5b4adb(0x12d),_0x5b4adb(0x13c),_0x5b4adb(0x134)],_0x4d0afd=[];for(const _0x57da7e of _0x983fea){if(!isRuntimeSkillScope(_0x57da7e))throw CliErrors[_0x5b4adb(0x133)](_0x5b4adb(0x138)+_0x57da7e);!_0x4d0afd[_0x5b4adb(0x12e)](_0x57da7e)&&_0x4d0afd[_0x5b4adb(0x135)](_0x57da7e);}return _0x4d0afd;}export function isRuntimeSkillScope(_0x2e2ed3){const _0x2a8ce3=a149_0x165c;return _0x2e2ed3===_0x2a8ce3(0x12d)||_0x2e2ed3==='company'||_0x2e2ed3===_0x2a8ce3(0x134);}function a149_0x4a01(){const _0xf1d160=['197551jEavEf','Unsupported\x20runtime\x20Skill\x20scope:\x20','1424WKWPHb','33296simKFn','455740gjvJeL','company','2947386VYlunB','11euawzH','2twxTih','3240444wXPOzP','385sntmYa','personal','includes','1347OxxdDv','12KatsHP','length','809895yDpHQp','validation','builtin','push','27MBGvbR'];a149_0x4a01=function(){return _0xf1d160;};return a149_0x4a01();}
1
+ function a149_0x67c6(){const _0x150b59=['includes','1701335LGWeMb','5149560yTeNTy','511741mKJXTB','validation','356022grqHIK','Unsupported\x20runtime\x20Skill\x20scope:\x20','company','7509qclyBS','1756930NWlURf','length','776RCFvBE','builtin','personal','2639730BvVcOZ'];a149_0x67c6=function(){return _0x150b59;};return a149_0x67c6();}(function(_0x4a18ee,_0x535cc0){const _0x2d43a0=a149_0x22c3,_0x194c87=_0x4a18ee();while(!![]){try{const _0x3aa6d0=parseInt(_0x2d43a0(0x148))/0x1+-parseInt(_0x2d43a0(0x14a))/0x2+-parseInt(_0x2d43a0(0x14d))/0x3*(-parseInt(_0x2d43a0(0x150))/0x4)+parseInt(_0x2d43a0(0x146))/0x5+-parseInt(_0x2d43a0(0x153))/0x6+parseInt(_0x2d43a0(0x14e))/0x7+-parseInt(_0x2d43a0(0x147))/0x8;if(_0x3aa6d0===_0x535cc0)break;else _0x194c87['push'](_0x194c87['shift']());}catch(_0x34a32f){_0x194c87['push'](_0x194c87['shift']());}}}(a149_0x67c6,0x4fd07));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x1fe5a1){const _0x3aa1be=a149_0x22c3,_0x1a9943=_0x1fe5a1&&_0x1fe5a1[_0x3aa1be(0x14f)]>0x0?_0x1fe5a1:[_0x3aa1be(0x152),_0x3aa1be(0x14c),_0x3aa1be(0x151)],_0x1a4fc6=[];for(const _0x58ac8f of _0x1a9943){if(!isRuntimeSkillScope(_0x58ac8f))throw CliErrors[_0x3aa1be(0x149)](_0x3aa1be(0x14b)+_0x58ac8f);!_0x1a4fc6[_0x3aa1be(0x154)](_0x58ac8f)&&_0x1a4fc6['push'](_0x58ac8f);}return _0x1a4fc6;}function a149_0x22c3(_0x11abb8,_0x73814){_0x11abb8=_0x11abb8-0x146;const _0x67c63d=a149_0x67c6();let _0x22c335=_0x67c63d[_0x11abb8];return _0x22c335;}export function isRuntimeSkillScope(_0x4c9d8){const _0x5cd92a=a149_0x22c3;return _0x4c9d8===_0x5cd92a(0x152)||_0x4c9d8==='company'||_0x4c9d8==='builtin';}
@@ -1 +1 @@
1
- const a151_0x251efd=a151_0x7080;(function(_0x221461,_0x50e3b7){const _0x3af8fe=a151_0x7080,_0x3a7bac=_0x221461();while(!![]){try{const _0xfd6ed9=parseInt(_0x3af8fe(0xc6))/0x1*(-parseInt(_0x3af8fe(0xc0))/0x2)+parseInt(_0x3af8fe(0xbf))/0x3+parseInt(_0x3af8fe(0xc5))/0x4+-parseInt(_0x3af8fe(0xce))/0x5+-parseInt(_0x3af8fe(0xca))/0x6+parseInt(_0x3af8fe(0xc9))/0x7*(-parseInt(_0x3af8fe(0xd2))/0x8)+-parseInt(_0x3af8fe(0xc7))/0x9*(-parseInt(_0x3af8fe(0xc8))/0xa);if(_0xfd6ed9===_0x50e3b7)break;else _0x3a7bac['push'](_0x3a7bac['shift']());}catch(_0x6810a8){_0x3a7bac['push'](_0x3a7bac['shift']());}}}(a151_0x3c00,0xca6bb));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';function a151_0x7080(_0x50de5e,_0x36434e){_0x50de5e=_0x50de5e-0xbe;const _0x3c004b=a151_0x3c00();let _0x7080c5=_0x3c004b[_0x50de5e];return _0x7080c5;}const ZIP_MTIME=new Date(a151_0x251efd(0xcf));export function createDeterministicZipPackage(_0x4494df){const _0x2cfccd={};for(const _0x46563a of normalizeLocalFiles(_0x4494df)){_0x2cfccd[_0x46563a['path']]=fileContent(_0x46563a);}return Buffer['from'](zipSync(_0x2cfccd,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x8b9328){const _0x5effaa=a151_0x251efd;if(_0x8b9328[_0x5effaa(0xcb)]<0x16)throw CliErrors[_0x5effaa(0xc2)](_0x5effaa(0xbe));let _0x29ff27;try{_0x29ff27=unzipSync(_0x8b9328,{'filter'(_0x4a8438){const _0x470593=_0x5effaa,_0x4393ae=normalizeSkillRelativePath(_0x4a8438[_0x470593(0xc1)]);if(_0x4393ae[_0x470593(0xd0)]('/'))throw CliErrors[_0x470593(0xc2)]('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x4393ae);return!![];}});}catch(_0x18db2b){if(isRuntimeSkillValidationError(_0x18db2b))throw _0x18db2b;throw CliErrors[_0x5effaa(0xc2)](_0x5effaa(0xbe));}return Object[_0x5effaa(0xc4)](_0x29ff27)['map'](([_0x1a3386,_0x394b53])=>({'path':normalizeSkillRelativePath(_0x1a3386),'bytes':Buffer[_0x5effaa(0xcd)](_0x394b53)}))[_0x5effaa(0xc3)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x5767fe){const _0x187e49=a151_0x251efd;return typeof _0x5767fe==='object'&&_0x5767fe!==null&&_0x187e49(0xd1)in _0x5767fe&&_0x5767fe[_0x187e49(0xd1)]===_0x187e49(0xcc);}function a151_0x3c00(){const _0x422b43=['776RBgppg','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','4313415WYmXCK','16hTxCgk','name','validation','sort','entries','3080780WUipUD','19259lOmFJe','1118889OLxrsy','40LTSqKQ','62636SSPgkA','2310030hlyfSR','length','validation_error','from','2345680KCJsaq','1980-01-01T00:00:00.000Z','endsWith','code'];a151_0x3c00=function(){return _0x422b43;};return a151_0x3c00();}
1
+ const a151_0x2aded5=a151_0x5d56;function a151_0x5d56(_0x1099a7,_0x161f0d){_0x1099a7=_0x1099a7-0xd5;const _0x410350=a151_0x4103();let _0x5d56e2=_0x410350[_0x1099a7];return _0x5d56e2;}(function(_0xffbfb2,_0xed80ae){const _0x53eaa8=a151_0x5d56,_0x53e10c=_0xffbfb2();while(!![]){try{const _0x272f41=parseInt(_0x53eaa8(0xe0))/0x1*(-parseInt(_0x53eaa8(0xdf))/0x2)+-parseInt(_0x53eaa8(0xda))/0x3*(-parseInt(_0x53eaa8(0xe4))/0x4)+parseInt(_0x53eaa8(0xd6))/0x5+parseInt(_0x53eaa8(0xd8))/0x6*(parseInt(_0x53eaa8(0xd7))/0x7)+-parseInt(_0x53eaa8(0xdc))/0x8+-parseInt(_0x53eaa8(0xe7))/0x9+parseInt(_0x53eaa8(0xdb))/0xa*(parseInt(_0x53eaa8(0xd5))/0xb);if(_0x272f41===_0xed80ae)break;else _0x53e10c['push'](_0x53e10c['shift']());}catch(_0x922a2){_0x53e10c['push'](_0x53e10c['shift']());}}}(a151_0x4103,0x7f4a7));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a151_0x4103(){const _0x358f2b=['validation','187ZhYqYB','957250KjzQWp','133MVUlsT','121578LwafBK','code','33pGZxHl','187210nvKjHa','2601720HdIqbn','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','1980-01-01T00:00:00.000Z','845390MgarPD','1ooQzLv','entries','from','map','222476giuEIr','length','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','2134980kQimGn','object','name'];a151_0x4103=function(){return _0x358f2b;};return a151_0x4103();}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a151_0x2aded5(0xde));export function createDeterministicZipPackage(_0x2d8c21){const _0x240e85=a151_0x2aded5,_0x3ad485={};for(const _0x311bab of normalizeLocalFiles(_0x2d8c21)){_0x3ad485[_0x311bab['path']]=fileContent(_0x311bab);}return Buffer[_0x240e85(0xe2)](zipSync(_0x3ad485,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x7234ed){const _0x14a301=a151_0x2aded5;if(_0x7234ed[_0x14a301(0xe5)]<0x16)throw CliErrors[_0x14a301(0xea)](_0x14a301(0xe6));let _0x5b47eb;try{_0x5b47eb=unzipSync(_0x7234ed,{'filter'(_0x1ff048){const _0x470ee5=_0x14a301,_0x30014c=normalizeSkillRelativePath(_0x1ff048[_0x470ee5(0xe9)]);if(_0x30014c['endsWith']('/'))throw CliErrors[_0x470ee5(0xea)](_0x470ee5(0xdd)+_0x30014c);return!![];}});}catch(_0x5e84fb){if(isRuntimeSkillValidationError(_0x5e84fb))throw _0x5e84fb;throw CliErrors[_0x14a301(0xea)](_0x14a301(0xe6));}return Object[_0x14a301(0xe1)](_0x5b47eb)[_0x14a301(0xe3)](([_0x19450d,_0x4405ba])=>({'path':normalizeSkillRelativePath(_0x19450d),'bytes':Buffer[_0x14a301(0xe2)](_0x4405ba)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x3c49ff){const _0x14547f=a151_0x2aded5;return typeof _0x3c49ff===_0x14547f(0xe8)&&_0x3c49ff!==null&&_0x14547f(0xd9)in _0x3c49ff&&_0x3c49ff[_0x14547f(0xd9)]==='validation_error';}
@@ -1 +1 @@
1
- (function(_0x52adba,_0x4aa1a8){const _0x33ccd7=a152_0x48df,_0x32fb2a=_0x52adba();while(!![]){try{const _0x57991b=-parseInt(_0x33ccd7(0x184))/0x1+-parseInt(_0x33ccd7(0x17b))/0x2+parseInt(_0x33ccd7(0x171))/0x3+-parseInt(_0x33ccd7(0x197))/0x4*(-parseInt(_0x33ccd7(0x195))/0x5)+parseInt(_0x33ccd7(0x17e))/0x6*(parseInt(_0x33ccd7(0x196))/0x7)+parseInt(_0x33ccd7(0x177))/0x8+parseInt(_0x33ccd7(0x176))/0x9*(-parseInt(_0x33ccd7(0x18e))/0xa);if(_0x57991b===_0x4aa1a8)break;else _0x32fb2a['push'](_0x32fb2a['shift']());}catch(_0x57260f){_0x32fb2a['push'](_0x32fb2a['shift']());}}}(a152_0x31c6,0xaa823));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';function a152_0x48df(_0x5a1465,_0x51f344){_0x5a1465=_0x5a1465-0x171;const _0x31c6c8=a152_0x31c6();let _0x48df43=_0x31c6c8[_0x5a1465];return _0x48df43;}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(_0x2160a7){const _0x4158f2=a152_0x48df,_0x584462=normalizeLocalFiles(_0x2160a7);if(!_0x584462['some'](_0x35d4c3=>_0x35d4c3[_0x4158f2(0x194)]===SKILL_FILE))throw CliErrors[_0x4158f2(0x198)](_0x4158f2(0x188)+SKILL_FILE+_0x4158f2(0x17c));const _0x6cf9c3=localFilesToManifestFiles(_0x584462),_0x2ad4b0=createDeterministicZipPackage(_0x584462);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x6cf9c3),'zipSha256':bufferSha256(_0x2ad4b0),'zipSize':_0x2ad4b0[_0x4158f2(0x18c)],'files':_0x6cf9c3},'packageBytes':_0x2ad4b0,'packageBase64':_0x2ad4b0[_0x4158f2(0x174)](_0x4158f2(0x18b))};}export function verifyRuntimeSkillPackage(_0xff74f9,_0x61cef3){const _0x3a286f=normalizePackageManifest(_0xff74f9,{'requireOssPath':![]});if(!_0x3a286f)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0x3a286f,_0x61cef3);}function a152_0x31c6(){const _0x4f687b=['ossPath','string','toLowerCase','some','1144353EDhusE','has','sha256','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','Missing\x20','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','base64','length','treeSha256','10XQdSKv','isSafeInteger','push','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','bytes','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','path','9810TmJtUw','777aZkFWN','1368ClOqXF','validation','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','zipSha256','files','trim','1822524YniKgC','get','zipSize','toString','object','3236895wzVVpY','3455040NExNlA','schemaVersion','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20is\x20missing\x20','304894mpCcza','\x20in\x20Skill\x20file\x20package.','map','34836KzKmcF','isArray'];a152_0x31c6=function(){return _0x4f687b;};return a152_0x31c6();}export function verifyRuntimeSkillBundle(_0x562ba8,_0x4467a6){const _0x34e267=a152_0x48df,_0x1d8955=normalizePackageManifest(_0x562ba8,{'requireOssPath':![]});if(!_0x1d8955)throw CliErrors[_0x34e267(0x198)](_0x34e267(0x19a));return extractAndVerifyPackageFiles(_0x1d8955,_0x4467a6);}export function tryNormalizePackageManifest(_0x246392){return normalizePackageManifest(_0x246392,{'requireOssPath':![]});}export function requirePackageBytes(_0xc82af3,_0x55404e){const _0x345b46=a152_0x48df;if(!_0x55404e||_0x55404e[_0x345b46(0x18c)]===0x0)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0xc82af3);return _0x55404e;}export function extractDownloadedPackage(_0x3e2a24){const _0x4ce4f7=a152_0x48df,_0x3e505e=parseZipPackage(_0x3e2a24)[_0x4ce4f7(0x17d)](_0x30cf8c=>({'path':_0x30cf8c[_0x4ce4f7(0x194)],'bytes':_0x30cf8c['bytes']}));if(!_0x3e505e[_0x4ce4f7(0x183)](_0x1aeac8=>_0x1aeac8[_0x4ce4f7(0x194)]===SKILL_FILE))throw CliErrors[_0x4ce4f7(0x198)](_0x4ce4f7(0x17a)+SKILL_FILE+'.');return normalizeLocalFiles(_0x3e505e);}export function localFilesToManifestFiles(_0x127dca){const _0x210db8=a152_0x48df;return normalizeLocalFiles(_0x127dca)[_0x210db8(0x17d)](_0x32dcce=>({'path':_0x32dcce['path'],'sha256':fileHash(_0x32dcce),'size':fileContent(_0x32dcce)[_0x210db8(0x18c)]}));}function normalizePackageManifest(_0x49f006,_0x414aa2){const _0x426553=a152_0x48df;if(!_0x49f006||typeof _0x49f006!==_0x426553(0x175)||Array[_0x426553(0x17f)](_0x49f006))return undefined;const _0x36fc9f=_0x49f006,_0x1d6bc4=typeof _0x36fc9f[_0x426553(0x180)]===_0x426553(0x181)?_0x36fc9f[_0x426553(0x180)][_0x426553(0x19e)]():undefined;if(_0x414aa2['requireOssPath']&&!_0x1d6bc4)return undefined;if(!Array[_0x426553(0x17f)](_0x36fc9f[_0x426553(0x19d)])||_0x36fc9f[_0x426553(0x19d)][_0x426553(0x18c)]===0x0)return undefined;if(!isSha256Hex(_0x36fc9f['treeSha256']))throw CliErrors[_0x426553(0x198)](_0x426553(0x191));if(!isSha256Hex(_0x36fc9f['zipSha256']))throw CliErrors[_0x426553(0x198)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0x426553(0x18f)](_0x36fc9f['zipSize'])||_0x36fc9f[_0x426553(0x173)]<0x0)throw CliErrors[_0x426553(0x198)](_0x426553(0x189));const _0x2113fd=normalizeManifestFiles(_0x36fc9f[_0x426553(0x19d)]);if(!_0x2113fd[_0x426553(0x183)](_0x265694=>_0x265694['path']===SKILL_FILE))throw CliErrors[_0x426553(0x198)](_0x426553(0x18a)+SKILL_FILE+'.');const _0x4d44a9=fileTreeHash(_0x2113fd);if(_0x4d44a9!==_0x36fc9f[_0x426553(0x18d)][_0x426553(0x182)]())throw CliErrors['validation'](_0x426553(0x179));return{'schemaVersion':Number['isSafeInteger'](_0x36fc9f[_0x426553(0x178)])?_0x36fc9f['schemaVersion']:0x2,'ossPath':_0x1d6bc4,'treeSha256':_0x4d44a9,'zipSha256':_0x36fc9f[_0x426553(0x19c)][_0x426553(0x182)](),'zipSize':_0x36fc9f[_0x426553(0x173)],'files':_0x2113fd};}function extractAndVerifyPackage(_0x4ff0a2,_0x5edb0a){const _0x57078c=a152_0x48df,_0x35329c=normalizePackageManifest(_0x4ff0a2,{'requireOssPath':![]});if(!_0x35329c)throw CliErrors[_0x57078c(0x198)](_0x57078c(0x19a));if(_0x5edb0a[_0x57078c(0x18c)]!==_0x35329c[_0x57078c(0x173)])throw CliErrors[_0x57078c(0x198)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x43f059=bufferSha256(_0x5edb0a);if(_0x43f059!==_0x35329c['zipSha256'])throw CliErrors[_0x57078c(0x198)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x35329c,_0x5edb0a);}function extractAndVerifyPackageFiles(_0x28b121,_0x185a71){const _0x1865a8=a152_0x48df,_0x2132f9=parseZipPackage(_0x185a71);if(_0x2132f9[_0x1865a8(0x18c)]!==_0x28b121[_0x1865a8(0x19d)][_0x1865a8(0x18c)])throw CliErrors[_0x1865a8(0x198)](_0x1865a8(0x19b));const _0x5e16a1=new Map();for(const _0x4d43e7 of _0x2132f9){if(_0x5e16a1[_0x1865a8(0x185)](_0x4d43e7[_0x1865a8(0x194)]))throw CliErrors[_0x1865a8(0x198)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x4d43e7[_0x1865a8(0x194)]);_0x5e16a1['set'](_0x4d43e7['path'],_0x4d43e7);}const _0x31448a=[];for(const _0x529fbc of _0x28b121[_0x1865a8(0x19d)]){const _0x4cbd49=_0x5e16a1[_0x1865a8(0x172)](_0x529fbc[_0x1865a8(0x194)]);if(!_0x4cbd49)throw CliErrors[_0x1865a8(0x198)](_0x1865a8(0x199)+_0x529fbc[_0x1865a8(0x194)]);if(_0x4cbd49[_0x1865a8(0x192)]['length']!==_0x529fbc['size'])throw CliErrors['validation'](_0x1865a8(0x187)+_0x529fbc[_0x1865a8(0x194)]);const _0x5ddaf6=bufferSha256(_0x4cbd49[_0x1865a8(0x192)]);if(_0x5ddaf6!==_0x529fbc[_0x1865a8(0x186)])throw CliErrors[_0x1865a8(0x198)](_0x1865a8(0x193)+_0x529fbc[_0x1865a8(0x194)]);_0x31448a[_0x1865a8(0x190)]({'path':_0x529fbc[_0x1865a8(0x194)],'bytes':_0x4cbd49['bytes']});}return normalizeLocalFiles(_0x31448a);}
1
+ (function(_0x494317,_0x2734ea){const _0x1c1149=a152_0x162c,_0x27cd79=_0x494317();while(!![]){try{const _0x236477=-parseInt(_0x1c1149(0x9d))/0x1+-parseInt(_0x1c1149(0x82))/0x2*(-parseInt(_0x1c1149(0x98))/0x3)+parseInt(_0x1c1149(0x77))/0x4*(-parseInt(_0x1c1149(0x92))/0x5)+-parseInt(_0x1c1149(0x93))/0x6*(parseInt(_0x1c1149(0x80))/0x7)+parseInt(_0x1c1149(0x9b))/0x8+-parseInt(_0x1c1149(0x94))/0x9*(parseInt(_0x1c1149(0x8b))/0xa)+parseInt(_0x1c1149(0x83))/0xb;if(_0x236477===_0x2734ea)break;else _0x27cd79['push'](_0x27cd79['shift']());}catch(_0x55aac8){_0x27cd79['push'](_0x27cd79['shift']());}}}(a152_0x50d7,0xbf381));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';function a152_0x50d7(){const _0x1ef342=['228zCZNAD','Missing\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','path','ossPath','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','treeSha256','trim','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','119QrDebF','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','1612GaTISw','4971362LFVdyG','files','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','string','zipSize','toLowerCase','isArray','Runtime\x20Skill\x20package\x20is\x20missing\x20','10xOrSUW','bytes','map','toString','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Duplicate\x20Skill\x20package\x20entry:\x20','length','66475JXfHbU','226494CUbQZy','832203qRigbt','has','push','zipSha256','5718nOJYUn','requireOssPath','isSafeInteger','8114312LPhirF','some','727219TgHRBg','get','object','validation','Runtime\x20Skill\x20manifest\x20is\x20missing\x20'];a152_0x50d7=function(){return _0x1ef342;};return a152_0x50d7();}import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x1774b1){const _0x5f543d=a152_0x162c,_0x5bf7b7=normalizeLocalFiles(_0x1774b1);if(!_0x5bf7b7[_0x5f543d(0x9c)](_0x403272=>_0x403272['path']===SKILL_FILE))throw CliErrors['validation'](_0x5f543d(0x78)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x1d6db6=localFilesToManifestFiles(_0x5bf7b7),_0x27fdb9=createDeterministicZipPackage(_0x5bf7b7);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x1d6db6),'zipSha256':bufferSha256(_0x27fdb9),'zipSize':_0x27fdb9[_0x5f543d(0x91)],'files':_0x1d6db6},'packageBytes':_0x27fdb9,'packageBase64':_0x27fdb9[_0x5f543d(0x8e)]('base64')};}export function verifyRuntimeSkillPackage(_0x31c1ab,_0x24e50c){const _0x23cb5f=a152_0x162c,_0x2d2f57=normalizePackageManifest(_0x31c1ab,{'requireOssPath':![]});if(!_0x2d2f57)throw CliErrors[_0x23cb5f(0x75)](_0x23cb5f(0x8f));return extractAndVerifyPackage(_0x2d2f57,_0x24e50c);}export function verifyRuntimeSkillBundle(_0xcd6e1d,_0x3926a6){const _0x1b7d98=a152_0x162c,_0x303e01=normalizePackageManifest(_0xcd6e1d,{'requireOssPath':![]});if(!_0x303e01)throw CliErrors[_0x1b7d98(0x75)](_0x1b7d98(0x8f));return extractAndVerifyPackageFiles(_0x303e01,_0x3926a6);}export function tryNormalizePackageManifest(_0x23dd3f){return normalizePackageManifest(_0x23dd3f,{'requireOssPath':![]});}export function requirePackageBytes(_0x405c2,_0x38732a){const _0xc81573=a152_0x162c;if(!_0x38732a||_0x38732a[_0xc81573(0x91)]===0x0)throw CliErrors['validation'](_0xc81573(0x7c)+_0x405c2);return _0x38732a;}function a152_0x162c(_0x1ac98c,_0x220d44){_0x1ac98c=_0x1ac98c-0x73;const _0x50d7dd=a152_0x50d7();let _0x162c6a=_0x50d7dd[_0x1ac98c];return _0x162c6a;}export function extractDownloadedPackage(_0x3d787b){const _0x3e0531=a152_0x162c,_0x2ec3d8=parseZipPackage(_0x3d787b)[_0x3e0531(0x8d)](_0x43bfab=>({'path':_0x43bfab['path'],'bytes':_0x43bfab['bytes']}));if(!_0x2ec3d8['some'](_0x10eda3=>_0x10eda3[_0x3e0531(0x7a)]===SKILL_FILE))throw CliErrors['validation'](_0x3e0531(0x8a)+SKILL_FILE+'.');return normalizeLocalFiles(_0x2ec3d8);}export function localFilesToManifestFiles(_0x19f715){const _0x4496dd=a152_0x162c;return normalizeLocalFiles(_0x19f715)[_0x4496dd(0x8d)](_0x536bdc=>({'path':_0x536bdc['path'],'sha256':fileHash(_0x536bdc),'size':fileContent(_0x536bdc)[_0x4496dd(0x91)]}));}function normalizePackageManifest(_0x4d672a,_0x2ae197){const _0x2dbf46=a152_0x162c;if(!_0x4d672a||typeof _0x4d672a!==_0x2dbf46(0x74)||Array[_0x2dbf46(0x89)](_0x4d672a))return undefined;const _0x2b9107=_0x4d672a,_0x49d6e8=typeof _0x2b9107[_0x2dbf46(0x7b)]===_0x2dbf46(0x86)?_0x2b9107[_0x2dbf46(0x7b)][_0x2dbf46(0x7e)]():undefined;if(_0x2ae197[_0x2dbf46(0x99)]&&!_0x49d6e8)return undefined;if(!Array['isArray'](_0x2b9107[_0x2dbf46(0x84)])||_0x2b9107[_0x2dbf46(0x84)][_0x2dbf46(0x91)]===0x0)return undefined;if(!isSha256Hex(_0x2b9107[_0x2dbf46(0x7d)]))throw CliErrors[_0x2dbf46(0x75)](_0x2dbf46(0x85));if(!isSha256Hex(_0x2b9107[_0x2dbf46(0x97)]))throw CliErrors[_0x2dbf46(0x75)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0x2dbf46(0x9a)](_0x2b9107[_0x2dbf46(0x87)])||_0x2b9107[_0x2dbf46(0x87)]<0x0)throw CliErrors[_0x2dbf46(0x75)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x1020ba=normalizeManifestFiles(_0x2b9107['files']);if(!_0x1020ba['some'](_0x4736fb=>_0x4736fb[_0x2dbf46(0x7a)]===SKILL_FILE))throw CliErrors[_0x2dbf46(0x75)](_0x2dbf46(0x76)+SKILL_FILE+'.');const _0x5da99c=fileTreeHash(_0x1020ba);if(_0x5da99c!==_0x2b9107['treeSha256'][_0x2dbf46(0x88)]())throw CliErrors[_0x2dbf46(0x75)](_0x2dbf46(0x79));return{'schemaVersion':Number[_0x2dbf46(0x9a)](_0x2b9107['schemaVersion'])?_0x2b9107['schemaVersion']:0x2,'ossPath':_0x49d6e8,'treeSha256':_0x5da99c,'zipSha256':_0x2b9107[_0x2dbf46(0x97)][_0x2dbf46(0x88)](),'zipSize':_0x2b9107[_0x2dbf46(0x87)],'files':_0x1020ba};}function extractAndVerifyPackage(_0x1bc90b,_0x161fa7){const _0xdb8a30=a152_0x162c,_0x31a32a=normalizePackageManifest(_0x1bc90b,{'requireOssPath':![]});if(!_0x31a32a)throw CliErrors['validation'](_0xdb8a30(0x8f));if(_0x161fa7[_0xdb8a30(0x91)]!==_0x31a32a[_0xdb8a30(0x87)])throw CliErrors[_0xdb8a30(0x75)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x4edba5=bufferSha256(_0x161fa7);if(_0x4edba5!==_0x31a32a['zipSha256'])throw CliErrors['validation'](_0xdb8a30(0x81));return extractAndVerifyPackageFiles(_0x31a32a,_0x161fa7);}function extractAndVerifyPackageFiles(_0x9e4328,_0x3364d4){const _0x2abb95=a152_0x162c,_0xcaa3cc=parseZipPackage(_0x3364d4);if(_0xcaa3cc[_0x2abb95(0x91)]!==_0x9e4328[_0x2abb95(0x84)][_0x2abb95(0x91)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x4639af=new Map();for(const _0x24b0a7 of _0xcaa3cc){if(_0x4639af[_0x2abb95(0x95)](_0x24b0a7[_0x2abb95(0x7a)]))throw CliErrors[_0x2abb95(0x75)](_0x2abb95(0x90)+_0x24b0a7[_0x2abb95(0x7a)]);_0x4639af['set'](_0x24b0a7[_0x2abb95(0x7a)],_0x24b0a7);}const _0x41cd0c=[];for(const _0x4d2fef of _0x9e4328[_0x2abb95(0x84)]){const _0x239578=_0x4639af[_0x2abb95(0x73)](_0x4d2fef[_0x2abb95(0x7a)]);if(!_0x239578)throw CliErrors[_0x2abb95(0x75)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x4d2fef[_0x2abb95(0x7a)]);if(_0x239578[_0x2abb95(0x8c)][_0x2abb95(0x91)]!==_0x4d2fef['size'])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x4d2fef['path']);const _0x3dedf2=bufferSha256(_0x239578['bytes']);if(_0x3dedf2!==_0x4d2fef['sha256'])throw CliErrors[_0x2abb95(0x75)](_0x2abb95(0x7f)+_0x4d2fef['path']);_0x41cd0c[_0x2abb95(0x96)]({'path':_0x4d2fef[_0x2abb95(0x7a)],'bytes':_0x239578[_0x2abb95(0x8c)]});}return normalizeLocalFiles(_0x41cd0c);}
@@ -1 +1 @@
1
- (function(_0x392d53,_0x25f586){var _0x296939=a153_0x581c,_0xf332d=_0x392d53();while(!![]){try{var _0x3a418=parseInt(_0x296939(0x140))/0x1+parseInt(_0x296939(0x143))/0x2*(-parseInt(_0x296939(0x147))/0x3)+parseInt(_0x296939(0x13f))/0x4+parseInt(_0x296939(0x149))/0x5*(-parseInt(_0x296939(0x145))/0x6)+parseInt(_0x296939(0x141))/0x7*(-parseInt(_0x296939(0x148))/0x8)+-parseInt(_0x296939(0x146))/0x9*(-parseInt(_0x296939(0x142))/0xa)+-parseInt(_0x296939(0x144))/0xb*(-parseInt(_0x296939(0x14a))/0xc);if(_0x3a418===_0x25f586)break;else _0xf332d['push'](_0xf332d['shift']());}catch(_0x6c2071){_0xf332d['push'](_0xf332d['shift']());}}}(a153_0x4c59,0x37dd7));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 a153_0x4c59(){var _0x4c9dc1=['12zTCPyl','1682044FLywgk','332204gqAxbw','7GnqYxQ','10NSRSwh','1076zLxBLm','1982772boyWYo','18nPImIq','2081484ZTJYwo','2403YUZANZ','625528twLiOz','710485ygxtuV'];a153_0x4c59=function(){return _0x4c9dc1;};return a153_0x4c59();}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';function a153_0x581c(_0xe3bbd0,_0x5e092a){_0xe3bbd0=_0xe3bbd0-0x13f;var _0x4c5971=a153_0x4c59();var _0x581ca2=_0x4c5971[_0xe3bbd0];return _0x581ca2;}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0x530973,_0x4c8e3f){var _0xdcc2e=a153_0x4c59,_0x29f8b1=_0x530973();while(!![]){try{var _0x2ae8d6=-parseInt(_0xdcc2e(0xba))/0x1*(parseInt(_0xdcc2e(0xbf))/0x2)+parseInt(_0xdcc2e(0xbe))/0x3*(parseInt(_0xdcc2e(0xbb))/0x4)+parseInt(_0xdcc2e(0xbc))/0x5+parseInt(_0xdcc2e(0xc1))/0x6+parseInt(_0xdcc2e(0xc3))/0x7+parseInt(_0xdcc2e(0xc2))/0x8*(parseInt(_0xdcc2e(0xc0))/0x9)+-parseInt(_0xdcc2e(0xbd))/0xa;if(_0x2ae8d6===_0x4c8e3f)break;else _0x29f8b1['push'](_0x29f8b1['shift']());}catch(_0x4ce4f8){_0x29f8b1['push'](_0x29f8b1['shift']());}}}(a153_0x1028,0xcfe07));function a153_0x4c59(_0xefe833,_0x28ab4f){_0xefe833=_0xefe833-0xba;var _0x10282f=a153_0x1028();var _0x4c5905=_0x10282f[_0xefe833];return _0x4c5905;}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 a153_0x1028(){var _0x7609fe=['4944185zHWSmU','25253420oQTEpr','3099OgegLH','2snldIF','1449ENISgF','3439128vngKxf','67544gfnegn','5406688xzXdBI','645421BDdabT','1272GTmEfq'];a153_0x1028=function(){return _0x7609fe;};return a153_0x1028();}export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- const a154_0x62fab3=a154_0x1305;(function(_0x31e054,_0x46391d){const _0x3d81f7=a154_0x1305,_0xfbca8d=_0x31e054();while(!![]){try{const _0x267086=parseInt(_0x3d81f7(0xe9))/0x1*(parseInt(_0x3d81f7(0xe0))/0x2)+parseInt(_0x3d81f7(0xe8))/0x3+-parseInt(_0x3d81f7(0xc6))/0x4*(parseInt(_0x3d81f7(0xdb))/0x5)+parseInt(_0x3d81f7(0xd5))/0x6*(-parseInt(_0x3d81f7(0xd8))/0x7)+parseInt(_0x3d81f7(0xdf))/0x8*(parseInt(_0x3d81f7(0xc5))/0x9)+parseInt(_0x3d81f7(0xe2))/0xa*(parseInt(_0x3d81f7(0xd4))/0xb)+-parseInt(_0x3d81f7(0xd9))/0xc;if(_0x267086===_0x46391d)break;else _0xfbca8d['push'](_0xfbca8d['shift']());}catch(_0x2e0d3a){_0xfbca8d['push'](_0xfbca8d['shift']());}}}(a154_0xbfca,0x52e18));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a154_0xbfca(){const _0x44e146=['message','not-recorded','.claude','\x20uses\x20unsupported\x20version\x20','\x20records\x20\x22','utf8','.skill-lock.json','11TLTRFP','282MHorII','object','includes','14497nvPYFe','9404760AvfQeS','find','1687270IjWXky','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','\x20is\x20unreadable:\x20','kind','2904Qxihlt','17954bTjpwx','lockFile','2725490pjBSgO','.agents','version','home','unverifiable','map','991380iEaTVM','71tWbxHU','join','number','7875tIgmlM','4DhieQz','present','unusable','recorded','\x20has\x20no\x20skills\x20map','globalSkillsDirs','skills'];a154_0xbfca=function(){return _0x44e146;};return a154_0xbfca();}export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a154_0x62fab3(0xd3));function a154_0x1305(_0x358dd4,_0x5ee381){_0x358dd4=_0x358dd4-0xc5;const _0xbfca69=a154_0xbfca();let _0x130503=_0xbfca69[_0x358dd4];return _0x130503;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a154_0x62fab3(0xe3),'skills'),join(a154_0x62fab3(0xcf),a154_0x62fab3(0xcc))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x3ca7cf,_0x337a26){const _0x303fbc=a154_0x62fab3;if(!existsSync(_0x3ca7cf))return{'kind':'not-recorded'};let _0x46b8ba;try{_0x46b8ba=JSON['parse'](readFileSync(_0x3ca7cf,_0x303fbc(0xd2)));}catch(_0x419cce){return{'kind':'unusable','reason':_0x3ca7cf+_0x303fbc(0xdd)+_0x419cce[_0x303fbc(0xcd)]};}const _0x426437=_0x46b8ba;if(typeof _0x426437?.[_0x303fbc(0xe4)]!==_0x303fbc(0xeb)||!SUPPORTED_LOCK_VERSIONS[_0x303fbc(0xd7)](_0x426437[_0x303fbc(0xe4)]))return{'kind':_0x303fbc(0xc8),'reason':_0x3ca7cf+_0x303fbc(0xd0)+String(_0x426437?.[_0x303fbc(0xe4)])};if(!_0x426437['skills']||typeof _0x426437[_0x303fbc(0xcc)]!==_0x303fbc(0xd6))return{'kind':_0x303fbc(0xc8),'reason':_0x3ca7cf+_0x303fbc(0xca)};return _0x426437[_0x303fbc(0xcc)][_0x337a26]?{'kind':_0x303fbc(0xc9)}:{'kind':_0x303fbc(0xce)};}export function resolveInstalledSkill(_0x1c9274,_0x3b3753){const _0x4f4956=a154_0x62fab3,_0x51e867=_0x3b3753?.[_0x4f4956(0xe5)]??homedir(),_0x361d5d=_0x3b3753?.[_0x4f4956(0xcb)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x4f4956(0xe7)](_0x4084ec=>join(_0x51e867,_0x4084ec)),_0x22211a=_0x3b3753?.[_0x4f4956(0xe1)]??join(_0x51e867,SKILL_LOCK_RELATIVE_PATH),_0x36ab08=_0x361d5d[_0x4f4956(0xe7)](_0x8020d=>join(_0x8020d,_0x1c9274,'SKILL.md')),_0x2a1b44=_0x36ab08[_0x4f4956(0xda)](_0x32c031=>existsSync(_0x32c031));if(_0x2a1b44)return{'state':_0x4f4956(0xc7),'path':_0x2a1b44};const _0x73bd0=readLockLookup(_0x22211a,_0x1c9274);if(_0x73bd0[_0x4f4956(0xde)]===_0x4f4956(0xc8))return{'state':_0x4f4956(0xe6),'reason':_0x73bd0['reason']};if(_0x73bd0['kind']===_0x4f4956(0xc9))return{'state':_0x4f4956(0xe6),'reason':_0x22211a+_0x4f4956(0xd1)+_0x1c9274+_0x4f4956(0xdc)+('('+_0x36ab08[_0x4f4956(0xea)](',\x20')+')')};return{'state':'absent','checked':_0x36ab08};}
1
+ const a154_0x5cb47a=a154_0x206c;function a154_0x3b85(){const _0x385efa=['5hNJllN','home','object','\x20records\x20\x22','map','find','number','5748903oOIlBQ','.agents','1073442TgWrBQ','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','includes','SKILL.md','913570kEpUtK','utf8','168660uZfUqo','796600iKBfUl','kind','\x20is\x20unreadable:\x20','389618ONjnZc','skills','unusable','8sXIseS','globalSkillsDirs','215649rVQMWk','version','message','not-recorded','unverifiable','absent','\x20uses\x20unsupported\x20version\x20','lockFile'];a154_0x3b85=function(){return _0x385efa;};return a154_0x3b85();}(function(_0x3efb31,_0x4f6cb3){const _0x129314=a154_0x206c,_0x17976c=_0x3efb31();while(!![]){try{const _0x4a37eb=-parseInt(_0x129314(0xc5))/0x1+-parseInt(_0x129314(0xe0))/0x2+parseInt(_0x129314(0xdc))/0x3+-parseInt(_0x129314(0xdd))/0x4+parseInt(_0x129314(0xcd))/0x5*(parseInt(_0x129314(0xd6))/0x6)+parseInt(_0x129314(0xda))/0x7*(-parseInt(_0x129314(0xe3))/0x8)+parseInt(_0x129314(0xd4))/0x9;if(_0x4a37eb===_0x4f6cb3)break;else _0x17976c['push'](_0x17976c['shift']());}catch(_0x570cdb){_0x17976c['push'](_0x17976c['shift']());}}}(a154_0x3b85,0x20a90));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents','.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a154_0x5cb47a(0xd5),'skills'),join('.claude',a154_0x5cb47a(0xe1))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x313163,_0x548a1e){const _0x4542a6=a154_0x5cb47a;if(!existsSync(_0x313163))return{'kind':_0x4542a6(0xc8)};let _0x13cdc0;try{_0x13cdc0=JSON['parse'](readFileSync(_0x313163,_0x4542a6(0xdb)));}catch(_0xddb65f){return{'kind':_0x4542a6(0xe2),'reason':_0x313163+_0x4542a6(0xdf)+_0xddb65f[_0x4542a6(0xc7)]};}const _0x283803=_0x13cdc0;if(typeof _0x283803?.[_0x4542a6(0xc6)]!==_0x4542a6(0xd3)||!SUPPORTED_LOCK_VERSIONS[_0x4542a6(0xd8)](_0x283803[_0x4542a6(0xc6)]))return{'kind':_0x4542a6(0xe2),'reason':_0x313163+_0x4542a6(0xcb)+String(_0x283803?.[_0x4542a6(0xc6)])};if(!_0x283803[_0x4542a6(0xe1)]||typeof _0x283803[_0x4542a6(0xe1)]!==_0x4542a6(0xcf))return{'kind':'unusable','reason':_0x313163+'\x20has\x20no\x20skills\x20map'};return _0x283803['skills'][_0x548a1e]?{'kind':'recorded'}:{'kind':'not-recorded'};}function a154_0x206c(_0x13d58b,_0x543e92){_0x13d58b=_0x13d58b-0xc5;const _0x3b85b4=a154_0x3b85();let _0x206c28=_0x3b85b4[_0x13d58b];return _0x206c28;}export function resolveInstalledSkill(_0x25257d,_0x4aaab4){const _0x5be4bd=a154_0x5cb47a,_0x43534a=_0x4aaab4?.[_0x5be4bd(0xce)]??homedir(),_0x51ee8d=_0x4aaab4?.[_0x5be4bd(0xe4)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x5be4bd(0xd1)](_0x5b355a=>join(_0x43534a,_0x5b355a)),_0x476122=_0x4aaab4?.[_0x5be4bd(0xcc)]??join(_0x43534a,SKILL_LOCK_RELATIVE_PATH),_0x41a7ab=_0x51ee8d['map'](_0x18f7b4=>join(_0x18f7b4,_0x25257d,_0x5be4bd(0xd9))),_0x3449d4=_0x41a7ab[_0x5be4bd(0xd2)](_0x3dd8fd=>existsSync(_0x3dd8fd));if(_0x3449d4)return{'state':'present','path':_0x3449d4};const _0x102e3f=readLockLookup(_0x476122,_0x25257d);if(_0x102e3f[_0x5be4bd(0xde)]===_0x5be4bd(0xe2))return{'state':_0x5be4bd(0xc9),'reason':_0x102e3f['reason']};if(_0x102e3f['kind']==='recorded')return{'state':_0x5be4bd(0xc9),'reason':_0x476122+_0x5be4bd(0xd0)+_0x25257d+_0x5be4bd(0xd7)+('('+_0x41a7ab['join'](',\x20')+')')};return{'state':_0x5be4bd(0xca),'checked':_0x41a7ab};}
@@ -1 +1 @@
1
- function a155_0x8cc7(){const _0x12f00e=['hasOwnProperty','1411039CHcXDo','136386aYwWhM','apps','fromEntries','707044DtjMDq','call','entries','8eAvsyy','5335002BarDjt','1206378kyRxJv','721815OcnpyF','841930VJtjzJ','<redacted>','length','slice','30iWvdDP','test','accessKey','string','prototype','isArray','object','68DVewVu'];a155_0x8cc7=function(){return _0x12f00e;};return a155_0x8cc7();}const a155_0x2fc6e3=a155_0x2525;(function(_0x58783f,_0x149c41){const _0x297f21=a155_0x2525,_0x44baa5=_0x58783f();while(!![]){try{const _0x2351f7=-parseInt(_0x297f21(0x179))/0x1+-parseInt(_0x297f21(0x180))/0x2+-parseInt(_0x297f21(0x18e))/0x3*(-parseInt(_0x297f21(0x18b))/0x4)+-parseInt(_0x297f21(0x17f))/0x5+parseInt(_0x297f21(0x17d))/0x6+-parseInt(_0x297f21(0x18d))/0x7*(parseInt(_0x297f21(0x17c))/0x8)+parseInt(_0x297f21(0x17e))/0x9*(parseInt(_0x297f21(0x184))/0xa);if(_0x2351f7===_0x149c41)break;else _0x44baa5['push'](_0x44baa5['shift']());}catch(_0x52fec1){_0x44baa5['push'](_0x44baa5['shift']());}}}(a155_0x8cc7,0x90176));const REDACTED_ACCESS_KEY=a155_0x2fc6e3(0x181);export function maskCliAccessKey(_0x2b7eec){const _0xc8337e=a155_0x2fc6e3;if(typeof _0x2b7eec!==_0xc8337e(0x187)||_0x2b7eec[_0xc8337e(0x182)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x2b7eec[_0xc8337e(0x183)](0x0,0x8)+'*'['repeat'](_0x2b7eec['length']-0x8);}export function redactCliConfigCredentials(_0x13e320){const _0x46a39c=a155_0x2fc6e3,_0x1fde41={..._0x13e320};return Object[_0x46a39c(0x188)][_0x46a39c(0x18c)][_0x46a39c(0x17a)](_0x1fde41,_0x46a39c(0x186))&&(_0x1fde41[_0x46a39c(0x186)]=maskCliAccessKey(_0x1fde41['accessKey'])),_0x1fde41[_0x46a39c(0x177)]&&typeof _0x1fde41['apps']===_0x46a39c(0x18a)&&!Array[_0x46a39c(0x189)](_0x1fde41[_0x46a39c(0x177)])&&(_0x1fde41[_0x46a39c(0x177)]=redactLegacyAppCredentials(_0x1fde41[_0x46a39c(0x177)])),_0x1fde41;}function a155_0x2525(_0x515983,_0xe42627){_0x515983=_0x515983-0x177;const _0x8cc747=a155_0x8cc7();let _0x2525ba=_0x8cc747[_0x515983];return _0x2525ba;}export function redactCliConfigValue(_0x5e6901,_0xdc8a86){const _0x22ee40=a155_0x2fc6e3;if(_0x5e6901===_0x22ee40(0x186)||/^apps\.[^.]+\.accessKey$/[_0x22ee40(0x185)](_0x5e6901))return maskCliAccessKey(_0xdc8a86);if(_0x5e6901===_0x22ee40(0x177)&&_0xdc8a86&&typeof _0xdc8a86==='object'&&!Array[_0x22ee40(0x189)](_0xdc8a86))return redactLegacyAppCredentials(_0xdc8a86);if(/^apps\.[^.]+$/['test'](_0x5e6901)&&_0xdc8a86&&typeof _0xdc8a86==='object'&&!Array['isArray'](_0xdc8a86)){const _0xe8ede9=_0xdc8a86;return Object[_0x22ee40(0x188)]['hasOwnProperty']['call'](_0xe8ede9,_0x22ee40(0x186))?{..._0xe8ede9,'accessKey':maskCliAccessKey(_0xe8ede9[_0x22ee40(0x186)])}:_0xdc8a86;}return _0xdc8a86;}function redactLegacyAppCredentials(_0x5d908d){const _0x3db482=a155_0x2fc6e3;return Object[_0x3db482(0x178)](Object[_0x3db482(0x17b)](_0x5d908d)['map'](([_0x4f5e54,_0x5064d3])=>{const _0x25a07b=_0x3db482;if(!_0x5064d3||typeof _0x5064d3!==_0x25a07b(0x18a)||Array[_0x25a07b(0x189)](_0x5064d3))return[_0x4f5e54,_0x5064d3];const _0x777119={..._0x5064d3};return Object['prototype']['hasOwnProperty'][_0x25a07b(0x17a)](_0x777119,'accessKey')&&(_0x777119[_0x25a07b(0x186)]=maskCliAccessKey(_0x777119['accessKey'])),[_0x4f5e54,_0x777119];}));}
1
+ function a155_0x5723(){const _0xa76b63=['repeat','179050zbWCyZ','call','36zoRjCm','137585czHmAy','hasOwnProperty','<redacted>','3bebBrV','accessKey','map','1332018VECIty','414CcGgME','6236593wHjhrb','test','40055IRMXAE','isArray','prototype','slice','length','fromEntries','652CaiRqo','apps','378674xWLYEx','10956232WYWsQH','string','object','261gxryRA'];a155_0x5723=function(){return _0xa76b63;};return a155_0x5723();}const a155_0x10a62e=a155_0x4e9c;(function(_0x3ce6ef,_0x23b874){const _0x391441=a155_0x4e9c,_0x3f55be=_0x3ce6ef();while(!![]){try{const _0xac3f5f=-parseInt(_0x391441(0x1e2))/0x1+-parseInt(_0x391441(0x1ee))/0x2*(parseInt(_0x391441(0x1df))/0x3)+parseInt(_0x391441(0x1ec))/0x4*(parseInt(_0x391441(0x1e6))/0x5)+parseInt(_0x391441(0x1e3))/0x6*(parseInt(_0x391441(0x1dc))/0x7)+-parseInt(_0x391441(0x1d4))/0x8+parseInt(_0x391441(0x1d7))/0x9*(-parseInt(_0x391441(0x1d9))/0xa)+-parseInt(_0x391441(0x1e4))/0xb*(-parseInt(_0x391441(0x1db))/0xc);if(_0xac3f5f===_0x23b874)break;else _0x3f55be['push'](_0x3f55be['shift']());}catch(_0x17545a){_0x3f55be['push'](_0x3f55be['shift']());}}}(a155_0x5723,0xe89ac));const REDACTED_ACCESS_KEY=a155_0x10a62e(0x1de);function a155_0x4e9c(_0x1acbf7,_0x111b64){_0x1acbf7=_0x1acbf7-0x1d4;const _0x572388=a155_0x5723();let _0x4e9c2c=_0x572388[_0x1acbf7];return _0x4e9c2c;}export function maskCliAccessKey(_0x424150){const _0x2c9496=a155_0x10a62e;if(typeof _0x424150!==_0x2c9496(0x1d5)||_0x424150['length']<=0x8)return REDACTED_ACCESS_KEY;return''+_0x424150[_0x2c9496(0x1e9)](0x0,0x8)+'*'[_0x2c9496(0x1d8)](_0x424150[_0x2c9496(0x1ea)]-0x8);}export function redactCliConfigCredentials(_0x51a824){const _0xb3bc1a=a155_0x10a62e,_0x1715d2={..._0x51a824};return Object[_0xb3bc1a(0x1e8)][_0xb3bc1a(0x1dd)]['call'](_0x1715d2,_0xb3bc1a(0x1e0))&&(_0x1715d2[_0xb3bc1a(0x1e0)]=maskCliAccessKey(_0x1715d2[_0xb3bc1a(0x1e0)])),_0x1715d2[_0xb3bc1a(0x1ed)]&&typeof _0x1715d2[_0xb3bc1a(0x1ed)]===_0xb3bc1a(0x1d6)&&!Array[_0xb3bc1a(0x1e7)](_0x1715d2['apps'])&&(_0x1715d2[_0xb3bc1a(0x1ed)]=redactLegacyAppCredentials(_0x1715d2[_0xb3bc1a(0x1ed)])),_0x1715d2;}export function redactCliConfigValue(_0x12ee8a,_0x21b0f5){const _0x441c0b=a155_0x10a62e;if(_0x12ee8a===_0x441c0b(0x1e0)||/^apps\.[^.]+\.accessKey$/[_0x441c0b(0x1e5)](_0x12ee8a))return maskCliAccessKey(_0x21b0f5);if(_0x12ee8a===_0x441c0b(0x1ed)&&_0x21b0f5&&typeof _0x21b0f5===_0x441c0b(0x1d6)&&!Array[_0x441c0b(0x1e7)](_0x21b0f5))return redactLegacyAppCredentials(_0x21b0f5);if(/^apps\.[^.]+$/[_0x441c0b(0x1e5)](_0x12ee8a)&&_0x21b0f5&&typeof _0x21b0f5===_0x441c0b(0x1d6)&&!Array[_0x441c0b(0x1e7)](_0x21b0f5)){const _0x2ab7d1=_0x21b0f5;return Object[_0x441c0b(0x1e8)][_0x441c0b(0x1dd)]['call'](_0x2ab7d1,_0x441c0b(0x1e0))?{..._0x2ab7d1,'accessKey':maskCliAccessKey(_0x2ab7d1[_0x441c0b(0x1e0)])}:_0x21b0f5;}return _0x21b0f5;}function redactLegacyAppCredentials(_0x3fbc8a){const _0x146291=a155_0x10a62e;return Object[_0x146291(0x1eb)](Object['entries'](_0x3fbc8a)[_0x146291(0x1e1)](([_0x10b64f,_0xc61489])=>{const _0x2f3b25=_0x146291;if(!_0xc61489||typeof _0xc61489!==_0x2f3b25(0x1d6)||Array[_0x2f3b25(0x1e7)](_0xc61489))return[_0x10b64f,_0xc61489];const _0x299697={..._0xc61489};return Object[_0x2f3b25(0x1e8)][_0x2f3b25(0x1dd)][_0x2f3b25(0x1da)](_0x299697,_0x2f3b25(0x1e0))&&(_0x299697[_0x2f3b25(0x1e0)]=maskCliAccessKey(_0x299697['accessKey'])),[_0x10b64f,_0x299697];}));}
@@ -1 +1 @@
1
- (function(_0x29d027,_0x57c840){const _0x41ea1d=a156_0x26b4,_0x5ac492=_0x29d027();while(!![]){try{const _0x9359bf=parseInt(_0x41ea1d(0xd6))/0x1+parseInt(_0x41ea1d(0xd9))/0x2+parseInt(_0x41ea1d(0xd7))/0x3*(-parseInt(_0x41ea1d(0xda))/0x4)+parseInt(_0x41ea1d(0xdd))/0x5+parseInt(_0x41ea1d(0xdc))/0x6+parseInt(_0x41ea1d(0xde))/0x7+parseInt(_0x41ea1d(0xdb))/0x8*(-parseInt(_0x41ea1d(0xd8))/0x9);if(_0x9359bf===_0x57c840)break;else _0x5ac492['push'](_0x5ac492['shift']());}catch(_0x3c9ebd){_0x5ac492['push'](_0x5ac492['shift']());}}}(a156_0x453f,0xdb93d));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a156_0x26b4(_0x451bff,_0xbb620b){_0x451bff=_0x451bff-0xd6;const _0x453f27=a156_0x453f();let _0x26b43c=_0x453f27[_0x451bff];return _0x26b43c;}import{CliErrors}from'../errors.js';function a156_0x453f(){const _0x2c78d2=['863601vdecYc','9BALGFS','3040460NUANTk','12nROsPJ','17757616zIRlTI','3311898gJvQrB','3103800hpjIKq','764176HrfNrf','1180551SOcibn'];a156_0x453f=function(){return _0x2c78d2;};return a156_0x453f();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0xbe793c,_0x586659){const _0x43d51e=a156_0x2c05,_0x366b52=_0xbe793c();while(!![]){try{const _0x28f301=parseInt(_0x43d51e(0x125))/0x1*(-parseInt(_0x43d51e(0x128))/0x2)+-parseInt(_0x43d51e(0x123))/0x3+parseInt(_0x43d51e(0x127))/0x4*(-parseInt(_0x43d51e(0x121))/0x5)+parseInt(_0x43d51e(0x12a))/0x6+-parseInt(_0x43d51e(0x122))/0x7*(-parseInt(_0x43d51e(0x124))/0x8)+parseInt(_0x43d51e(0x12b))/0x9+-parseInt(_0x43d51e(0x129))/0xa*(-parseInt(_0x43d51e(0x126))/0xb);if(_0x28f301===_0x586659)break;else _0x366b52['push'](_0x366b52['shift']());}catch(_0xf9d251){_0x366b52['push'](_0x366b52['shift']());}}}(a156_0x2baa,0x8c91a));function a156_0x2c05(_0x38953e,_0xc15c32){_0x38953e=_0x38953e-0x121;const _0x2baab0=a156_0x2baa();let _0x2c05a0=_0x2baab0[_0x38953e];return _0x2c05a0;}function a156_0x2baa(){const _0x3a4842=['4DDZXcD','10XpWrGh','6198822mXAINB','116649KdOQpz','2395mZpgXQ','10927jCUMYw','1156035yuttJT','1176IAYuHq','282457sGSQti','12613403KTuwWO','7484ORtWKo'];a156_0x2baa=function(){return _0x3a4842;};return a156_0x2baa();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a157_0x2475(){const _0x19b161=['filter','minimumVersionMessage','Upgrade\x20command:\x20','72QsApCp','1295462eSqnlf','currentVersion','95468iNRXDX','Recommended\x20stable:\x20','54868ZQugAA','latest','11341370AluGHw','upgradeMessage','join','21zmEuso','305328GXBsbO','stableVersion','minimumVersion','Minimum\x20supported:\x20','belowMinimum','1185714RUvmZH','15pPaSgW','valid','unavailable','1060350bywgXv','Current\x20version:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.'];a157_0x2475=function(){return _0x19b161;};return a157_0x2475();}(function(_0x4a5672,_0x3e5f19){const _0x1580c0=a157_0x5291,_0x2aedc7=_0x4a5672();while(!![]){try{const _0x3efa2c=-parseInt(_0x1580c0(0x198))/0x1+parseInt(_0x1580c0(0x1a7))/0x2+parseInt(_0x1580c0(0x19d))/0x3*(parseInt(_0x1580c0(0x196))/0x4)+-parseInt(_0x1580c0(0x1a4))/0x5*(-parseInt(_0x1580c0(0x19e))/0x6)+-parseInt(_0x1580c0(0x194))/0x7+parseInt(_0x1580c0(0x1ad))/0x8*(parseInt(_0x1580c0(0x1a3))/0x9)+-parseInt(_0x1580c0(0x19a))/0xa;if(_0x3efa2c===_0x3e5f19)break;else _0x2aedc7['push'](_0x2aedc7['shift']());}catch(_0x1d6926){_0x2aedc7['push'](_0x2aedc7['shift']());}}}(a157_0x2475,0xa182f));import a157_0x497c37 from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a157_0x5291(_0x38ad75,_0x2f5259){_0x38ad75=_0x38ad75-0x194;const _0x24754d=a157_0x2475();let _0x529144=_0x24754d[_0x38ad75];return _0x529144;}import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x3f71fa,_0x40c3f1){const _0x42ebac=a157_0x5291,_0x146499=a157_0x497c37[_0x42ebac(0x1a5)](_0x3f71fa)===_0x3f71fa,_0x1fa47e=_0x40c3f1?.[_0x42ebac(0x19f)]??null,_0x4a0d37=_0x40c3f1?.[_0x42ebac(0x1a0)]??null,_0xba514e=Boolean(_0x146499&&_0x1fa47e&&a157_0x497c37['lt'](_0x3f71fa,_0x1fa47e)),_0x52bc27=Boolean(_0x146499&&_0x4a0d37&&a157_0x497c37['lt'](_0x3f71fa,_0x4a0d37));return{'currentVersion':_0x3f71fa,'stableVersion':_0x1fa47e,'minimumVersion':_0x4a0d37,'needsUpgrade':_0xba514e||_0x52bc27,'belowMinimum':_0x52bc27,'upgradeMessage':_0x40c3f1?.[_0x42ebac(0x19b)],'minimumVersionMessage':_0x40c3f1?.[_0x42ebac(0x1ab)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x5137c5){const _0x32464e=a157_0x5291;return'npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x5137c5['stableVersion']??_0x32464e(0x199));}export function assertCliVersionSupported(_0x434bc8){const _0xa3ba3e=a157_0x5291;if(!_0x434bc8[_0xa3ba3e(0x1a2)])return;const _0x521516=[_0x434bc8[_0xa3ba3e(0x1ab)],_0xa3ba3e(0x1a8)+_0x434bc8[_0xa3ba3e(0x195)],_0xa3ba3e(0x1a1)+_0x434bc8[_0xa3ba3e(0x1a0)],_0xa3ba3e(0x197)+(_0x434bc8[_0xa3ba3e(0x19f)]??_0xa3ba3e(0x1a6)),_0xa3ba3e(0x1ac)+getCliUpgradeCommand(_0x434bc8)][_0xa3ba3e(0x1aa)](Boolean)[_0xa3ba3e(0x19c)]('\x0a');throw CliErrors['validation'](_0xa3ba3e(0x1a9),_0x521516);}
1
+ (function(_0x4dfa0c,_0x5a9b69){const _0x2e537f=a157_0x5779,_0x23c5b6=_0x4dfa0c();while(!![]){try{const _0x6d49e1=parseInt(_0x2e537f(0x181))/0x1*(parseInt(_0x2e537f(0x180))/0x2)+parseInt(_0x2e537f(0x186))/0x3+-parseInt(_0x2e537f(0x18d))/0x4+parseInt(_0x2e537f(0x187))/0x5+parseInt(_0x2e537f(0x18c))/0x6+parseInt(_0x2e537f(0x178))/0x7*(parseInt(_0x2e537f(0x18e))/0x8)+-parseInt(_0x2e537f(0x18f))/0x9;if(_0x6d49e1===_0x5a9b69)break;else _0x23c5b6['push'](_0x23c5b6['shift']());}catch(_0x4fc47d){_0x23c5b6['push'](_0x23c5b6['shift']());}}}(a157_0x3227,0x93752));import a157_0x17b0cf from'semver';function a157_0x3227(){const _0x529153=['1460090NbZnfc','stableVersion','filter','valid','Recommended\x20stable:\x20','2916552LmqxRa','2573340DXosCk','1888aVHJRI','7820298BiBOwb','Upgrade\x20command:\x20','minimumVersionMessage','4620CWfCFv','join','currentVersion','belowMinimum','upgradeMessage','validation','Minimum\x20supported:\x20','npm\x20install\x20-g\x20','6OILihT','272131DRPAIO','Current\x20version:\x20','unavailable','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','minimumVersion','1097940rOAbht'];a157_0x3227=function(){return _0x529153;};return a157_0x3227();}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x2cb137,_0x19777e){const _0x4df164=a157_0x5779,_0x3fd9c3=a157_0x17b0cf[_0x4df164(0x18a)](_0x2cb137)===_0x2cb137,_0x363802=_0x19777e?.[_0x4df164(0x188)]??null,_0x52ec9a=_0x19777e?.[_0x4df164(0x185)]??null,_0x1ccbcf=Boolean(_0x3fd9c3&&_0x363802&&a157_0x17b0cf['lt'](_0x2cb137,_0x363802)),_0x21109b=Boolean(_0x3fd9c3&&_0x52ec9a&&a157_0x17b0cf['lt'](_0x2cb137,_0x52ec9a));return{'currentVersion':_0x2cb137,'stableVersion':_0x363802,'minimumVersion':_0x52ec9a,'needsUpgrade':_0x1ccbcf||_0x21109b,'belowMinimum':_0x21109b,'upgradeMessage':_0x19777e?.[_0x4df164(0x17c)],'minimumVersionMessage':_0x19777e?.[_0x4df164(0x177)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x4395de){const _0x54cfeb=a157_0x5779;return _0x54cfeb(0x17f)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x4395de[_0x54cfeb(0x188)]??'latest');}function a157_0x5779(_0x31cbc3,_0x311954){_0x31cbc3=_0x31cbc3-0x176;const _0x322707=a157_0x3227();let _0x5779d4=_0x322707[_0x31cbc3];return _0x5779d4;}export function assertCliVersionSupported(_0x26224a){const _0x3ae7c6=a157_0x5779;if(!_0x26224a[_0x3ae7c6(0x17b)])return;const _0x58ea61=[_0x26224a[_0x3ae7c6(0x177)],_0x3ae7c6(0x182)+_0x26224a[_0x3ae7c6(0x17a)],_0x3ae7c6(0x17e)+_0x26224a[_0x3ae7c6(0x185)],_0x3ae7c6(0x18b)+(_0x26224a[_0x3ae7c6(0x188)]??_0x3ae7c6(0x183)),_0x3ae7c6(0x176)+getCliUpgradeCommand(_0x26224a)][_0x3ae7c6(0x189)](Boolean)[_0x3ae7c6(0x179)]('\x0a');throw CliErrors[_0x3ae7c6(0x17d)](_0x3ae7c6(0x184),_0x58ea61);}
@@ -1 +1 @@
1
- (function(_0x19b391,_0x1f740b){const _0x3f380c=a158_0xb907,_0x4ab83d=_0x19b391();while(!![]){try{const _0x543ca9=parseInt(_0x3f380c(0x7a))/0x1+parseInt(_0x3f380c(0x8d))/0x2*(-parseInt(_0x3f380c(0x88))/0x3)+parseInt(_0x3f380c(0x79))/0x4*(parseInt(_0x3f380c(0x87))/0x5)+parseInt(_0x3f380c(0x80))/0x6+-parseInt(_0x3f380c(0x82))/0x7+parseInt(_0x3f380c(0x8c))/0x8+-parseInt(_0x3f380c(0x8a))/0x9*(parseInt(_0x3f380c(0x7b))/0xa);if(_0x543ca9===_0x1f740b)break;else _0x4ab83d['push'](_0x4ab83d['shift']());}catch(_0x3182f1){_0x4ab83d['push'](_0x4ab83d['shift']());}}}(a158_0x28b9,0x3ad67));import a158_0x1f297c 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(_0x830553){const _0x4a03b3=a158_0xb907;return typeof _0x830553===_0x4a03b3(0x76)&&_0x830553[_0x4a03b3(0x84)]()?_0x830553['trim']():null;}function pickStrictSemver(_0x1219af){const _0x40924d=a158_0xb907,_0x2665fb=pickString(_0x1219af);return _0x2665fb&&a158_0x1f297c[_0x40924d(0x7e)](_0x2665fb)===_0x2665fb?_0x2665fb:null;}export function normalizeCliVersionPolicy(_0x1db2ea){const _0x53d409=a158_0xb907;if(!_0x1db2ea||typeof _0x1db2ea!==_0x53d409(0x83))return null;const _0x25bdb8=_0x1db2ea,_0x3efdaa=_0x25bdb8[_0x53d409(0x8b)]&&typeof _0x25bdb8['cli']===_0x53d409(0x83)?_0x25bdb8[_0x53d409(0x8b)]:_0x25bdb8,_0x13f65c=pickStrictSemver(_0x3efdaa[_0x53d409(0x7f)]??_0x3efdaa[_0x53d409(0x78)]??_0x3efdaa['recommendedVersion']),_0x17eb57=pickStrictSemver(_0x3efdaa[_0x53d409(0x89)]??_0x3efdaa[_0x53d409(0x81)]);if(!_0x13f65c&&!_0x17eb57)return null;if(_0x13f65c&&_0x17eb57&&a158_0x1f297c['gt'](_0x17eb57,_0x13f65c))return null;return{'stableVersion':_0x13f65c,'minimumVersion':_0x17eb57,'upgradeMessage':pickString(_0x3efdaa[_0x53d409(0x8e)])??undefined,'minimumVersionMessage':pickString(_0x3efdaa[_0x53d409(0x85)])??undefined};}function a158_0x28b9(){const _0x2f79d6=['object','trim','minimumVersionMessage','json','80MrVQZz','489XsGYiY','minimumVersion','9lqvrZu','cli','3189168Ehcebj','3998aPrdJp','upgradeMessage','string','finally','latestVersion','62976drzHar','206291jedRHX','4419370aXenTK','now','then','valid','stableVersion','2368566Fghqnb','minVersion','1699803jrwxjZ'];a158_0x28b9=function(){return _0x2f79d6;};return a158_0x28b9();}export async function fetchCliVersionPolicy(){const _0x3a9cd3=a158_0xb907;try{const _0x3f901a=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal['timeout'](FETCH_TIMEOUT_MS)});if(!_0x3f901a['ok'])return null;return normalizeCliVersionPolicy(await _0x3f901a[_0x3a9cd3(0x86)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;function a158_0xb907(_0x2f17e1,_0x41fb2b){_0x2f17e1=_0x2f17e1-0x76;const _0x28b9cb=a158_0x28b9();let _0xb907ec=_0x28b9cb[_0x2f17e1];return _0xb907ec;}export async function getCliVersionPolicy(){const _0x5f1f27=a158_0xb907,_0x1e02f3=Date['now']();if(hasCachedPolicy){const _0x4325a8=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x1e02f3-cachedAt<_0x4325a8)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x5f1f27(0x7d)](_0x1578fb=>{const _0x243581=_0x5f1f27;return cachedPolicy=_0x1578fb,cachedAt=Date[_0x243581(0x7c)](),hasCachedPolicy=!![],_0x1578fb;})[_0x5f1f27(0x77)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
1
+ (function(_0x4243d7,_0x25a4e9){const _0x1464b5=a158_0xf208,_0x5b5bc9=_0x4243d7();while(!![]){try{const _0x5e0a1a=parseInt(_0x1464b5(0xf2))/0x1+parseInt(_0x1464b5(0xee))/0x2+parseInt(_0x1464b5(0xdc))/0x3+-parseInt(_0x1464b5(0xdf))/0x4*(parseInt(_0x1464b5(0xf0))/0x5)+-parseInt(_0x1464b5(0xdd))/0x6+parseInt(_0x1464b5(0xe4))/0x7*(parseInt(_0x1464b5(0xf3))/0x8)+-parseInt(_0x1464b5(0xe1))/0x9;if(_0x5e0a1a===_0x25a4e9)break;else _0x5b5bc9['push'](_0x5b5bc9['shift']());}catch(_0xad2fbf){_0x5b5bc9['push'](_0x5b5bc9['shift']());}}}(a158_0x202f,0xcc884));import a158_0x65b27 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 a158_0x202f(){const _0xbb429b=['latestVersion','minimumVersionMessage','14903MgRfLn','cli','application/json','recommendedVersion','minVersion','finally','trim','then','minimumVersion','upgradeMessage','2943856GdAFMt','now','65aGjFJo','stableVersion','836416NgHXGN','5032cgnniv','2337582IpVmbS','4635786tbSeXW','object','167816OzHacv','string','20437938kYaTAJ'];a158_0x202f=function(){return _0xbb429b;};return a158_0x202f();}function pickString(_0x32a00b){const _0x49b265=a158_0xf208;return typeof _0x32a00b===_0x49b265(0xe0)&&_0x32a00b[_0x49b265(0xea)]()?_0x32a00b[_0x49b265(0xea)]():null;}function a158_0xf208(_0x33a56a,_0x4f4fc3){_0x33a56a=_0x33a56a-0xdc;const _0x202f64=a158_0x202f();let _0xf2087f=_0x202f64[_0x33a56a];return _0xf2087f;}function pickStrictSemver(_0x3a0ae4){const _0x124ae6=pickString(_0x3a0ae4);return _0x124ae6&&a158_0x65b27['valid'](_0x124ae6)===_0x124ae6?_0x124ae6:null;}export function normalizeCliVersionPolicy(_0x3f7351){const _0x1b4f35=a158_0xf208;if(!_0x3f7351||typeof _0x3f7351!==_0x1b4f35(0xde))return null;const _0x5c2fe8=_0x3f7351,_0x2a71ef=_0x5c2fe8[_0x1b4f35(0xe5)]&&typeof _0x5c2fe8['cli']==='object'?_0x5c2fe8[_0x1b4f35(0xe5)]:_0x5c2fe8,_0x20ef40=pickStrictSemver(_0x2a71ef[_0x1b4f35(0xf1)]??_0x2a71ef[_0x1b4f35(0xe2)]??_0x2a71ef[_0x1b4f35(0xe7)]),_0x13d874=pickStrictSemver(_0x2a71ef[_0x1b4f35(0xec)]??_0x2a71ef[_0x1b4f35(0xe8)]);if(!_0x20ef40&&!_0x13d874)return null;if(_0x20ef40&&_0x13d874&&a158_0x65b27['gt'](_0x13d874,_0x20ef40))return null;return{'stableVersion':_0x20ef40,'minimumVersion':_0x13d874,'upgradeMessage':pickString(_0x2a71ef[_0x1b4f35(0xed)])??undefined,'minimumVersionMessage':pickString(_0x2a71ef[_0x1b4f35(0xe3)])??undefined};}export async function fetchCliVersionPolicy(){const _0x7af160=a158_0xf208;try{const _0x4bbd38=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x7af160(0xe6)},'signal':AbortSignal['timeout'](FETCH_TIMEOUT_MS)});if(!_0x4bbd38['ok'])return null;return normalizeCliVersionPolicy(await _0x4bbd38['json']());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x2add27=a158_0xf208,_0x142e80=Date[_0x2add27(0xef)]();if(hasCachedPolicy){const _0x34a71f=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x142e80-cachedAt<_0x34a71f)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x2add27(0xeb)](_0x39486c=>{return cachedPolicy=_0x39486c,cachedAt=Date['now'](),hasCachedPolicy=!![],_0x39486c;})[_0x2add27(0xe9)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
@@ -1 +1 @@
1
- function a159_0x5677(_0x263ed6,_0x2a5504){_0x263ed6=_0x263ed6-0x70;const _0x653de7=a159_0x653d();let _0x567794=_0x653de7[_0x263ed6];return _0x567794;}function a159_0x653d(){const _0x18edf4=['winstonLogger','Failed:\x20','unknown','error','addColors','Failed\x20to\x20clear\x20logs:','errors','1266974FbQcUp','timestamp','2054540PJWaJp','writeFileSync','createLogger','logTask','137785twAtxQ','readFileSync','log','237314VsvLar','File','success','initWinstonLogger','split','map','144pSPSku','logFileName','now','clearLogs','filter','utf8','clear','readLogs','red','combine','8yGpNqi','logFilePath','format','warn','existsSync','setRawCommand','green','blue','toISOString','48565IsYYEy','duration','message','yellow','join','info','currentRawCommand','setLogPath','level','trim','168LWCSHs','2459835lIcxnP','36068CibFRy','rawCommand'];a159_0x653d=function(){return _0x18edf4;};return a159_0x653d();}const a159_0x73d006=a159_0x5677;(function(_0x32ac2c,_0x45d4bc){const _0x5bb1dd=a159_0x5677,_0x195339=_0x32ac2c();while(!![]){try{const _0x1748c2=-parseInt(_0x5bb1dd(0x83))/0x1+parseInt(_0x5bb1dd(0x7d))/0x2+-parseInt(_0x5bb1dd(0x72))/0x3*(parseInt(_0x5bb1dd(0x74))/0x4)+parseInt(_0x5bb1dd(0x9f))/0x5*(parseInt(_0x5bb1dd(0x8c))/0x6)+-parseInt(_0x5bb1dd(0x86))/0x7*(-parseInt(_0x5bb1dd(0x96))/0x8)+parseInt(_0x5bb1dd(0x73))/0x9+-parseInt(_0x5bb1dd(0x7f))/0xa;if(_0x1748c2===_0x45d4bc)break;else _0x195339['push'](_0x195339['shift']());}catch(_0x488812){_0x195339['push'](_0x195339['shift']());}}}(a159_0x653d,0x4f7f9));import a159_0x422633 from'winston';import a159_0x23a295 from'node:fs';import a159_0x520489 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a159_0x73d006(0x76)];['logFilePath']='';[a159_0x73d006(0xa5)]='';constructor(){}[a159_0x73d006(0x9b)](_0x5095e2){this['currentRawCommand']=_0x5095e2;}[a159_0x73d006(0xa6)](_0x78f835){const _0x3ba831=a159_0x73d006;this[_0x3ba831(0x97)]=a159_0x520489[_0x3ba831(0xa3)](_0x78f835,PRODUCT_CONFIG[_0x3ba831(0x8d)]),this[_0x3ba831(0x76)]&&this['winstonLogger'][_0x3ba831(0x92)](),this[_0x3ba831(0x89)]();}[a159_0x73d006(0x89)](){const _0xd73fe4=a159_0x73d006,_0x44840c=a159_0x520489['dirname'](this['logFilePath']);!a159_0x23a295[_0xd73fe4(0x9a)](_0x44840c)&&a159_0x23a295['mkdirSync'](_0x44840c,{'recursive':!![]});const _0x1645c7=a159_0x422633['format'][_0xd73fe4(0x95)](a159_0x422633['format'][_0xd73fe4(0x7e)](),a159_0x422633[_0xd73fe4(0x98)][_0xd73fe4(0x7c)]({'stack':!![]}),a159_0x422633[_0xd73fe4(0x98)]['printf'](_0x16d91b=>{const _0x4a90ce=_0xd73fe4,_0x3f6bd3={'timestamp':_0x16d91b['timestamp']||new Date()[_0x4a90ce(0x9e)](),'level':_0x16d91b[_0x4a90ce(0x70)]||_0x4a90ce(0xa4),'command':_0x16d91b['command']||_0x4a90ce(0x78),'rawCommand':_0x16d91b[_0x4a90ce(0x75)]||this[_0x4a90ce(0xa5)]||undefined,'message':_0x16d91b[_0x4a90ce(0xa1)]||'','duration':_0x16d91b[_0x4a90ce(0xa0)]||undefined,'details':_0x16d91b['details']||undefined};return JSON['stringify'](_0x3f6bd3);}));this['winstonLogger']=a159_0x422633[_0xd73fe4(0x81)]({'level':_0xd73fe4(0xa4),'format':_0x1645c7,'transports':[new a159_0x422633['transports'][(_0xd73fe4(0x87))]({'filename':this[_0xd73fe4(0x97)],'level':'info'})],'silent':![]}),a159_0x422633[_0xd73fe4(0x7a)]({'success':_0xd73fe4(0x9c),'error':_0xd73fe4(0x94),'warn':_0xd73fe4(0xa2),'info':_0xd73fe4(0x9d)});}['info'](_0x544ab3,_0x2c32bd,_0x28152c){const _0x2a16a6=a159_0x73d006;if(!this['logFilePath']||!this[_0x2a16a6(0x76)])return;this[_0x2a16a6(0x76)][_0x2a16a6(0xa4)](_0x2c32bd,{'command':_0x544ab3,'details':_0x28152c});}['success'](_0x776925,_0x2b1fd0,_0x599abf,_0x290e29){const _0xe345b5=a159_0x73d006;if(!this[_0xe345b5(0x97)]||!this['winstonLogger'])return;this[_0xe345b5(0x76)][_0xe345b5(0x85)](_0xe345b5(0xa4),_0x2b1fd0,{'level':'success','command':_0x776925,'duration':_0x599abf,'details':_0x290e29});}[a159_0x73d006(0x79)](_0x2f766a,_0x31971b,_0x4ff59c){const _0x17e675=a159_0x73d006;if(!this[_0x17e675(0x97)]||!this[_0x17e675(0x76)])return;this[_0x17e675(0x76)][_0x17e675(0x79)](_0x31971b,{'command':_0x2f766a,'details':_0x4ff59c});}[a159_0x73d006(0x99)](_0x54ba05,_0x3e57d7,_0x2303c4){const _0x2d2c17=a159_0x73d006;if(!this['logFilePath']||!this[_0x2d2c17(0x76)])return;this[_0x2d2c17(0x76)][_0x2d2c17(0x99)](_0x3e57d7,{'command':_0x54ba05,'details':_0x2303c4});}async[a159_0x73d006(0x82)](_0xa2b812,_0x4b8a44,_0x31f7d0){const _0x4e174c=a159_0x73d006,_0xf00b33=Date[_0x4e174c(0x8e)]();this[_0x4e174c(0xa4)](_0xa2b812,'Starting:\x20'+_0x4b8a44);try{const _0x509af8=await _0x31f7d0(),_0x40f724=Date[_0x4e174c(0x8e)]()-_0xf00b33;return this[_0x4e174c(0x88)](_0xa2b812,'Completed:\x20'+_0x4b8a44,_0x40f724),_0x509af8;}catch(_0x18919c){const _0x594577=Date[_0x4e174c(0x8e)]()-_0xf00b33;this['error'](_0xa2b812,_0x4e174c(0x77)+_0x4b8a44,{'error':_0x18919c instanceof Error?_0x18919c[_0x4e174c(0xa1)]:String(_0x18919c),'duration':_0x594577});throw _0x18919c;}}[a159_0x73d006(0x93)](){const _0x10984d=a159_0x73d006;try{if(!a159_0x23a295['existsSync'](this[_0x10984d(0x97)]))return[];const _0x204723=a159_0x23a295[_0x10984d(0x84)](this[_0x10984d(0x97)],_0x10984d(0x91));return _0x204723[_0x10984d(0x8a)](/\r?\n/)[_0x10984d(0x90)](_0x1c1aec=>_0x1c1aec[_0x10984d(0x71)]())[_0x10984d(0x8b)](_0x1cca4c=>JSON['parse'](_0x1cca4c));}catch(_0x3f4e4a){return console[_0x10984d(0x99)]('Failed\x20to\x20read\x20logs:',_0x3f4e4a),[];}}[a159_0x73d006(0x8f)](){const _0x23e231=a159_0x73d006;try{a159_0x23a295['existsSync'](this[_0x23e231(0x97)])&&a159_0x23a295[_0x23e231(0x80)](this['logFilePath'],'',_0x23e231(0x91));}catch(_0x18eda6){console[_0x23e231(0x99)](_0x23e231(0x7b),_0x18eda6);}}['getWinstonInstance'](){const _0x57f6f7=a159_0x73d006;return this[_0x57f6f7(0x76)];}}export const logger=new Logger();
1
+ const a159_0x315be3=a159_0x531d;(function(_0x2ff22f,_0x3e9274){const _0x23ff6c=a159_0x531d,_0x2de087=_0x2ff22f();while(!![]){try{const _0xa1c866=-parseInt(_0x23ff6c(0x15c))/0x1*(parseInt(_0x23ff6c(0x16e))/0x2)+-parseInt(_0x23ff6c(0x17f))/0x3+-parseInt(_0x23ff6c(0x168))/0x4+-parseInt(_0x23ff6c(0x15e))/0x5*(-parseInt(_0x23ff6c(0x185))/0x6)+-parseInt(_0x23ff6c(0x16f))/0x7+parseInt(_0x23ff6c(0x179))/0x8*(-parseInt(_0x23ff6c(0x15f))/0x9)+parseInt(_0x23ff6c(0x175))/0xa;if(_0xa1c866===_0x3e9274)break;else _0x2de087['push'](_0x2de087['shift']());}catch(_0x21af70){_0x2de087['push'](_0x2de087['shift']());}}}(a159_0xaa27,0x63451));import a159_0x506011 from'winston';import a159_0x8205d9 from'node:fs';import a159_0x4710d6 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];[a159_0x315be3(0x170)]='';[a159_0x315be3(0x181)]='';constructor(){}[a159_0x315be3(0x165)](_0x14a6ce){const _0x3d682e=a159_0x315be3;this[_0x3d682e(0x181)]=_0x14a6ce;}[a159_0x315be3(0x15b)](_0x579ed0){const _0x5f57f7=a159_0x315be3;this[_0x5f57f7(0x170)]=a159_0x4710d6['join'](_0x579ed0,PRODUCT_CONFIG[_0x5f57f7(0x191)]),this['winstonLogger']&&this[_0x5f57f7(0x17d)][_0x5f57f7(0x166)](),this['initWinstonLogger']();}[a159_0x315be3(0x184)](){const _0xf49fd5=a159_0x315be3,_0x4f1800=a159_0x4710d6['dirname'](this[_0xf49fd5(0x170)]);!a159_0x8205d9[_0xf49fd5(0x186)](_0x4f1800)&&a159_0x8205d9[_0xf49fd5(0x15d)](_0x4f1800,{'recursive':!![]});const _0x57c152=a159_0x506011[_0xf49fd5(0x177)][_0xf49fd5(0x176)](a159_0x506011[_0xf49fd5(0x177)]['timestamp'](),a159_0x506011[_0xf49fd5(0x177)][_0xf49fd5(0x16b)]({'stack':!![]}),a159_0x506011[_0xf49fd5(0x177)][_0xf49fd5(0x18b)](_0x3bee58=>{const _0x5def5a=_0xf49fd5,_0x3c5880={'timestamp':_0x3bee58['timestamp']||new Date()[_0x5def5a(0x174)](),'level':_0x3bee58[_0x5def5a(0x16c)]||_0x5def5a(0x18a),'command':_0x3bee58[_0x5def5a(0x187)]||_0x5def5a(0x172),'rawCommand':_0x3bee58[_0x5def5a(0x16d)]||this[_0x5def5a(0x181)]||undefined,'message':_0x3bee58[_0x5def5a(0x182)]||'','duration':_0x3bee58[_0x5def5a(0x188)]||undefined,'details':_0x3bee58['details']||undefined};return JSON['stringify'](_0x3c5880);}));this[_0xf49fd5(0x17d)]=a159_0x506011[_0xf49fd5(0x161)]({'level':_0xf49fd5(0x18a),'format':_0x57c152,'transports':[new a159_0x506011[(_0xf49fd5(0x160))][(_0xf49fd5(0x18c))]({'filename':this[_0xf49fd5(0x170)],'level':_0xf49fd5(0x18a)})],'silent':![]}),a159_0x506011[_0xf49fd5(0x18e)]({'success':_0xf49fd5(0x190),'error':'red','warn':_0xf49fd5(0x163),'info':'blue'});}[a159_0x315be3(0x18a)](_0x1dec16,_0x1b426f,_0x4c3558){const _0x3d7152=a159_0x315be3;if(!this[_0x3d7152(0x170)]||!this[_0x3d7152(0x17d)])return;this[_0x3d7152(0x17d)][_0x3d7152(0x18a)](_0x1b426f,{'command':_0x1dec16,'details':_0x4c3558});}[a159_0x315be3(0x167)](_0x14bbf8,_0x188b42,_0x443a91,_0x1f17dd){const _0x203928=a159_0x315be3;if(!this[_0x203928(0x170)]||!this[_0x203928(0x17d)])return;this[_0x203928(0x17d)][_0x203928(0x17e)](_0x203928(0x18a),_0x188b42,{'level':'success','command':_0x14bbf8,'duration':_0x443a91,'details':_0x1f17dd});}[a159_0x315be3(0x189)](_0x12831d,_0xbcfe1d,_0x5052f9){const _0x128c5e=a159_0x315be3;if(!this[_0x128c5e(0x170)]||!this[_0x128c5e(0x17d)])return;this['winstonLogger']['error'](_0xbcfe1d,{'command':_0x12831d,'details':_0x5052f9});}[a159_0x315be3(0x16a)](_0x2f420e,_0x3b07f3,_0x2ce5c2){const _0x3b118b=a159_0x315be3;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x3b118b(0x17d)][_0x3b118b(0x16a)](_0x3b07f3,{'command':_0x2f420e,'details':_0x2ce5c2});}async['logTask'](_0x27fdbf,_0x33866b,_0x19d4af){const _0x11886d=a159_0x315be3,_0x28fb29=Date[_0x11886d(0x192)]();this['info'](_0x27fdbf,_0x11886d(0x173)+_0x33866b);try{const _0x12ee6b=await _0x19d4af(),_0x39d669=Date['now']()-_0x28fb29;return this[_0x11886d(0x167)](_0x27fdbf,_0x11886d(0x180)+_0x33866b,_0x39d669),_0x12ee6b;}catch(_0x408fe4){const _0x2f17b2=Date[_0x11886d(0x192)]()-_0x28fb29;this[_0x11886d(0x189)](_0x27fdbf,_0x11886d(0x17b)+_0x33866b,{'error':_0x408fe4 instanceof Error?_0x408fe4[_0x11886d(0x182)]:String(_0x408fe4),'duration':_0x2f17b2});throw _0x408fe4;}}[a159_0x315be3(0x169)](){const _0x28f496=a159_0x315be3;try{if(!a159_0x8205d9[_0x28f496(0x186)](this[_0x28f496(0x170)]))return[];const _0x377c22=a159_0x8205d9['readFileSync'](this[_0x28f496(0x170)],_0x28f496(0x164));return _0x377c22[_0x28f496(0x162)](/\r?\n/)[_0x28f496(0x17a)](_0x10d056=>_0x10d056[_0x28f496(0x18d)]())['map'](_0x6eda55=>JSON[_0x28f496(0x18f)](_0x6eda55));}catch(_0x49ab1e){return console['warn'](_0x28f496(0x15a),_0x49ab1e),[];}}[a159_0x315be3(0x171)](){const _0x5398cf=a159_0x315be3;try{a159_0x8205d9['existsSync'](this[_0x5398cf(0x170)])&&a159_0x8205d9[_0x5398cf(0x178)](this['logFilePath'],'','utf8');}catch(_0x11a9ad){console[_0x5398cf(0x16a)](_0x5398cf(0x17c),_0x11a9ad);}}[a159_0x315be3(0x183)](){const _0x3e6844=a159_0x315be3;return this[_0x3e6844(0x17d)];}}function a159_0xaa27(){const _0x1267fb=['split','yellow','utf8','setRawCommand','clear','success','836344EMOjRh','readLogs','warn','errors','level','rawCommand','14bOdDhb','5180203FgcvMx','logFilePath','clearLogs','unknown','Starting:\x20','toISOString','30158260yZmaHr','combine','format','writeFileSync','32GtwKcY','filter','Failed:\x20','Failed\x20to\x20clear\x20logs:','winstonLogger','log','2001411NMdcUi','Completed:\x20','currentRawCommand','message','getWinstonInstance','initWinstonLogger','12HXORRy','existsSync','command','duration','error','info','printf','File','trim','addColors','parse','green','logFileName','now','Failed\x20to\x20read\x20logs:','setLogPath','89029WLVtKr','mkdirSync','927905HcaOYe','1667079IJTtRL','transports','createLogger'];a159_0xaa27=function(){return _0x1267fb;};return a159_0xaa27();}function a159_0x531d(_0x34f36a,_0xa9df93){_0x34f36a=_0x34f36a-0x15a;const _0xaa27fd=a159_0xaa27();let _0x531ddd=_0xaa27fd[_0x34f36a];return _0x531ddd;}export const logger=new Logger();
@@ -1 +1 @@
1
- const a160_0xf5fddd=a160_0x4dfc;(function(_0x1dcaf0,_0x6b5fc7){const _0xf485a5=a160_0x4dfc,_0x3c5358=_0x1dcaf0();while(!![]){try{const _0x3e9571=-parseInt(_0xf485a5(0x12d))/0x1*(parseInt(_0xf485a5(0x12b))/0x2)+-parseInt(_0xf485a5(0x11a))/0x3+parseInt(_0xf485a5(0x12a))/0x4+parseInt(_0xf485a5(0x11c))/0x5*(parseInt(_0xf485a5(0x123))/0x6)+parseInt(_0xf485a5(0x126))/0x7*(-parseInt(_0xf485a5(0x11b))/0x8)+-parseInt(_0xf485a5(0x121))/0x9+parseInt(_0xf485a5(0x11f))/0xa;if(_0x3e9571===_0x6b5fc7)break;else _0x3c5358['push'](_0x3c5358['shift']());}catch(_0x4a120c){_0x3c5358['push'](_0x3c5358['shift']());}}}(a160_0x405f,0xa1007));function a160_0x405f(){const _0x317352=['MIN_SAFE_INTEGER','parse','36621200NOyykU','length','6041304MBiPXZ','includes','11574QsiEBW','json','text','11634gXDOgD','defineProperty','undefined','exec','2957060vQVCik','58192CnJGgO','slice','43kahQXU','getOwnPropertyDescriptor','2878395hPdSKY','5672ImYSqy','825YgWgfP'];a160_0x405f=function(){return _0x317352;};return a160_0x405f();}const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a160_0xf5fddd(0x11d)]);function a160_0x4dfc(_0x118aed,_0x595e01){_0x118aed=_0x118aed-0x119;const _0x405ffd=a160_0x405f();let _0x4dfc7d=_0x405ffd[_0x118aed];return _0x4dfc7d;}let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x366b11){const _0x189657=a160_0xf5fddd;if(_0x366b11['includes']('.')||_0x366b11[_0x189657(0x122)]('e')||_0x366b11[_0x189657(0x122)]('E'))return![];const _0x474872=BigInt(_0x366b11);return _0x474872>MAX_SAFE_INTEGER||_0x474872<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x34d127){const _0x38123e=a160_0xf5fddd;let _0x3c656a='',_0x5e67a2=![],_0x82e67b=![];for(let _0x1903d9=0x0;_0x1903d9<_0x34d127['length'];){const _0x14dc5c=_0x34d127[_0x1903d9];if(_0x5e67a2){_0x3c656a+=_0x14dc5c,_0x1903d9+=0x1;if(_0x82e67b)_0x82e67b=![];else{if(_0x14dc5c==='\x5c')_0x82e67b=!![];else _0x14dc5c==='\x22'&&(_0x5e67a2=![]);}continue;}if(_0x14dc5c==='\x22'){_0x5e67a2=!![],_0x3c656a+=_0x14dc5c,_0x1903d9+=0x1;continue;}if(_0x14dc5c==='-'||_0x14dc5c>='0'&&_0x14dc5c<='9'){const _0x4f8777=JSON_NUMBER_PATTERN[_0x38123e(0x129)](_0x34d127[_0x38123e(0x12c)](_0x1903d9))?.[0x0];if(_0x4f8777){_0x3c656a+=isUnsafeIntegerLiteral(_0x4f8777)?'\x22'+_0x4f8777+'\x22':_0x4f8777,_0x1903d9+=_0x4f8777[_0x38123e(0x120)];continue;}}_0x3c656a+=_0x14dc5c,_0x1903d9+=0x1;}return _0x3c656a;}export function parseLosslessJson(_0x7b39ef){const _0x3ccf8e=a160_0xf5fddd;return JSON[_0x3ccf8e(0x11e)](quoteUnsafeIntegerLiterals(_0x7b39ef));}export function installLosslessJsonResponseParser(){const _0x5edcb8=a160_0xf5fddd;if(typeof Response===_0x5edcb8(0x128))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object[_0x5edcb8(0x119)](responseJsonPrototype,_0x5edcb8(0x124)),Object[_0x5edcb8(0x127)](responseJsonPrototype,_0x5edcb8(0x124),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0xc76c74(){const _0x1eb703=_0x5edcb8;return parseLosslessJson(await this[_0x1eb703(0x125)]());}}),restoreResponseJsonParser=()=>{const _0x516a68=_0x5edcb8;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x516a68(0x127)](responseJsonPrototype,_0x516a68(0x124),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x516a68(0x124)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ const a160_0x10d01c=a160_0x9ef4;(function(_0x2f6f20,_0x49f028){const _0x5575a8=a160_0x9ef4,_0x5f3034=_0x2f6f20();while(!![]){try{const _0x40b2a6=parseInt(_0x5575a8(0x129))/0x1*(-parseInt(_0x5575a8(0x120))/0x2)+parseInt(_0x5575a8(0x11c))/0x3*(parseInt(_0x5575a8(0x128))/0x4)+parseInt(_0x5575a8(0x123))/0x5*(-parseInt(_0x5575a8(0x12e))/0x6)+parseInt(_0x5575a8(0x12c))/0x7+-parseInt(_0x5575a8(0x121))/0x8+-parseInt(_0x5575a8(0x11b))/0x9*(-parseInt(_0x5575a8(0x11f))/0xa)+parseInt(_0x5575a8(0x12d))/0xb*(parseInt(_0x5575a8(0x119))/0xc);if(_0x40b2a6===_0x49f028)break;else _0x5f3034['push'](_0x5f3034['shift']());}catch(_0x348b87){_0x5f3034['push'](_0x5f3034['shift']());}}}(a160_0x2eca,0x84db3));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a160_0x10d01c(0x127)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a160_0x2eca(){const _0x3a49be=['3820RoTWJp','defineProperty','prototype','5424181EuhTBb','11choWgo','714qGCUck','undefined','1101684eBxjPP','includes','3474567ANSDKm','6MOFlcn','length','exec','10pGhdet','138igjXad','1604408xCYCiR','slice','29995AolHbW','parse','getOwnPropertyDescriptor','json','MIN_SAFE_INTEGER','938876rCsvYY'];a160_0x2eca=function(){return _0x3a49be;};return a160_0x2eca();}function isUnsafeIntegerLiteral(_0x545b3b){const _0x5d1efc=a160_0x10d01c;if(_0x545b3b[_0x5d1efc(0x11a)]('.')||_0x545b3b['includes']('e')||_0x545b3b[_0x5d1efc(0x11a)]('E'))return![];const _0xe2968c=BigInt(_0x545b3b);return _0xe2968c>MAX_SAFE_INTEGER||_0xe2968c<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x32c51f){const _0x3c1ee7=a160_0x10d01c;let _0x28f50e='',_0x21c13b=![],_0x166ed3=![];for(let _0x22f1bb=0x0;_0x22f1bb<_0x32c51f[_0x3c1ee7(0x11d)];){const _0x3239fe=_0x32c51f[_0x22f1bb];if(_0x21c13b){_0x28f50e+=_0x3239fe,_0x22f1bb+=0x1;if(_0x166ed3)_0x166ed3=![];else{if(_0x3239fe==='\x5c')_0x166ed3=!![];else _0x3239fe==='\x22'&&(_0x21c13b=![]);}continue;}if(_0x3239fe==='\x22'){_0x21c13b=!![],_0x28f50e+=_0x3239fe,_0x22f1bb+=0x1;continue;}if(_0x3239fe==='-'||_0x3239fe>='0'&&_0x3239fe<='9'){const _0xdc5409=JSON_NUMBER_PATTERN[_0x3c1ee7(0x11e)](_0x32c51f[_0x3c1ee7(0x122)](_0x22f1bb))?.[0x0];if(_0xdc5409){_0x28f50e+=isUnsafeIntegerLiteral(_0xdc5409)?'\x22'+_0xdc5409+'\x22':_0xdc5409,_0x22f1bb+=_0xdc5409[_0x3c1ee7(0x11d)];continue;}}_0x28f50e+=_0x3239fe,_0x22f1bb+=0x1;}return _0x28f50e;}function a160_0x9ef4(_0x240ff9,_0x541882){_0x240ff9=_0x240ff9-0x119;const _0x2eca39=a160_0x2eca();let _0x9ef4d2=_0x2eca39[_0x240ff9];return _0x9ef4d2;}export function parseLosslessJson(_0x202adb){const _0x4cbb87=a160_0x10d01c;return JSON[_0x4cbb87(0x124)](quoteUnsafeIntegerLiterals(_0x202adb));}export function installLosslessJsonResponseParser(){const _0x15a534=a160_0x10d01c;if(typeof Response===_0x15a534(0x12f))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x15a534(0x12b)],originalResponseJsonDescriptor=Object[_0x15a534(0x125)](responseJsonPrototype,_0x15a534(0x126)),Object[_0x15a534(0x12a)](responseJsonPrototype,_0x15a534(0x126),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x236c92(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x5e96a9=_0x15a534;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x5e96a9(0x12a)](responseJsonPrototype,_0x5e96a9(0x126),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x5e96a9(0x126)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
@@ -1 +1 @@
1
- (function(_0x4bc91b,_0x5cd670){const _0x1e0297=a161_0x2fb2,_0x17e671=_0x4bc91b();while(!![]){try{const _0x1fef85=-parseInt(_0x1e0297(0x1ec))/0x1+-parseInt(_0x1e0297(0x1dc))/0x2*(parseInt(_0x1e0297(0x1e9))/0x3)+-parseInt(_0x1e0297(0x1ed))/0x4+-parseInt(_0x1e0297(0x1de))/0x5*(-parseInt(_0x1e0297(0x1df))/0x6)+parseInt(_0x1e0297(0x1f3))/0x7+parseInt(_0x1e0297(0x1e6))/0x8+parseInt(_0x1e0297(0x1e7))/0x9*(parseInt(_0x1e0297(0x1e4))/0xa);if(_0x1fef85===_0x5cd670)break;else _0x17e671['push'](_0x17e671['shift']());}catch(_0x2032e8){_0x17e671['push'](_0x17e671['shift']());}}}(a161_0x413f,0x68802));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';function a161_0x2fb2(_0x5aa298,_0x53d468){_0x5aa298=_0x5aa298-0x1db;const _0x413f66=a161_0x413f();let _0x2fb228=_0x413f66[_0x5aa298];return _0x2fb228;}function a161_0x413f(){const _0xecd296=['1122568dQyxny','isArray','test','validation','object','Invalid\x20JSON\x20for\x20--params:\x20','2942156BFSbiz','\x20records\x20per\x20call;\x20received\x20','items','2OvOirG','length','1275WjKROX','3054yJmwsa','data\x20update\x20--params.','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','number','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','332250rGOEPu','string','3497688NesvUZ','162GPlapK','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','777867YMHYBR','id[','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','617399UbjFUa'];a161_0x413f=function(){return _0xecd296;};return a161_0x413f();}export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x53f6b4){const _0x36b993=a161_0x2fb2;if(!_0x53f6b4)return undefined;try{return parseLosslessJson(_0x53f6b4);}catch{throw CliErrors[_0x36b993(0x1f0)](_0x36b993(0x1f2)+_0x53f6b4);}}export function parseJsonParamsValue(_0x5ed284){const _0x476b02=a161_0x2fb2;if(!_0x5ed284)return undefined;try{return parseLosslessJson(_0x5ed284);}catch{throw CliErrors[_0x476b02(0x1f0)](_0x476b02(0x1f2)+_0x5ed284);}}export function parseBatchCreateItemsFromParams(_0x16f12f){const _0x2f5927=a161_0x2fb2;if(Array[_0x2f5927(0x1ee)](_0x16f12f))return _0x16f12f;if(_0x16f12f!==null&&_0x16f12f!==undefined&&typeof _0x16f12f===_0x2f5927(0x1f1)&&Array[_0x2f5927(0x1ee)](_0x16f12f['items']))return _0x16f12f[_0x2f5927(0x1db)];throw CliErrors[_0x2f5927(0x1f0)](_0x2f5927(0x1e3),_0x2f5927(0x1e8));}function parseDataUpdateId(_0x127789,_0x63a5c0){const _0x811268=a161_0x2fb2;if(typeof _0x127789===_0x811268(0x1e2)&&Number['isSafeInteger'](_0x127789)&&_0x127789>0x0)return _0x127789;if(typeof _0x127789===_0x811268(0x1e5)){if(/^[1-9]\d*$/[_0x811268(0x1ef)](_0x127789))return _0x127789;}throw CliErrors[_0x811268(0x1f0)](_0x811268(0x1e0)+_0x63a5c0+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x2c3041){const _0x5dcc5e=a161_0x2fb2;if(_0x2c3041===null||_0x2c3041===undefined||typeof _0x2c3041!==_0x5dcc5e(0x1f1)||Array['isArray'](_0x2c3041))throw CliErrors[_0x5dcc5e(0x1f0)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x5191a1=_0x2c3041['id'];if(_0x5191a1===undefined||_0x5191a1===null)throw CliErrors[_0x5dcc5e(0x1f0)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x5dcc5e(0x1eb));const _0x5f182e=Array['isArray'](_0x5191a1)?_0x5191a1:[_0x5191a1];if(_0x5f182e['length']===0x0)throw CliErrors[_0x5dcc5e(0x1f0)](_0x5dcc5e(0x1e1));if(_0x5f182e['length']>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x5dcc5e(0x1f0)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x5dcc5e(0x1f4)+_0x5f182e[_0x5dcc5e(0x1dd)]+'.');return _0x5f182e['map']((_0x449394,_0x523941)=>parseDataUpdateId(_0x449394,Array[_0x5dcc5e(0x1ee)](_0x5191a1)?_0x5dcc5e(0x1ea)+_0x523941+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x494181,_0x35739b){const _0x556c6d=a161_0x2fb2;if(Array['isArray'](_0x494181['id'])&&_0x35739b[_0x556c6d(0x1dd)]>0x1)return{..._0x494181,'id':_0x35739b['join'](',')};return _0x494181;}
1
+ (function(_0x26dae0,_0x3b45c4){const _0x8c4667=a161_0x3dfa,_0x1cb416=_0x26dae0();while(!![]){try{const _0x1eb364=parseInt(_0x8c4667(0x197))/0x1+-parseInt(_0x8c4667(0x198))/0x2+parseInt(_0x8c4667(0x19a))/0x3*(parseInt(_0x8c4667(0x19b))/0x4)+parseInt(_0x8c4667(0x199))/0x5+parseInt(_0x8c4667(0x19c))/0x6+parseInt(_0x8c4667(0x194))/0x7+parseInt(_0x8c4667(0x1a4))/0x8*(-parseInt(_0x8c4667(0x1a0))/0x9);if(_0x1eb364===_0x3b45c4)break;else _0x1cb416['push'](_0x1cb416['shift']());}catch(_0x3a4f4d){_0x1cb416['push'](_0x1cb416['shift']());}}}(a161_0x540f,0xf1041));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x27090b){const _0x2875a0=a161_0x3dfa;if(!_0x27090b)return undefined;try{return parseLosslessJson(_0x27090b);}catch{throw CliErrors[_0x2875a0(0x192)](_0x2875a0(0x1a9)+_0x27090b);}}export function parseJsonParamsValue(_0xbb010c){const _0x189cd8=a161_0x3dfa;if(!_0xbb010c)return undefined;try{return parseLosslessJson(_0xbb010c);}catch{throw CliErrors[_0x189cd8(0x192)](_0x189cd8(0x1a9)+_0xbb010c);}}export function parseBatchCreateItemsFromParams(_0x21f81b){const _0x1e99fe=a161_0x3dfa;if(Array[_0x1e99fe(0x1a1)](_0x21f81b))return _0x21f81b;if(_0x21f81b!==null&&_0x21f81b!==undefined&&typeof _0x21f81b===_0x1e99fe(0x191)&&Array[_0x1e99fe(0x1a1)](_0x21f81b[_0x1e99fe(0x196)]))return _0x21f81b[_0x1e99fe(0x196)];throw CliErrors[_0x1e99fe(0x192)](_0x1e99fe(0x1a7),_0x1e99fe(0x1a5));}function a161_0x3dfa(_0x11a3ea,_0x80fde5){_0x11a3ea=_0x11a3ea-0x190;const _0x540f02=a161_0x540f();let _0x3dfaf9=_0x540f02[_0x11a3ea];return _0x3dfaf9;}function parseDataUpdateId(_0xce32a9,_0x18e41d){const _0x22d808=a161_0x3dfa;if(typeof _0xce32a9===_0x22d808(0x19e)&&Number[_0x22d808(0x1ac)](_0xce32a9)&&_0xce32a9>0x0)return _0xce32a9;if(typeof _0xce32a9===_0x22d808(0x19f)){if(/^[1-9]\d*$/[_0x22d808(0x1a8)](_0xce32a9))return _0xce32a9;}throw CliErrors[_0x22d808(0x192)](_0x22d808(0x190)+_0x18e41d+_0x22d808(0x1a2));}export function parseUpdateIdsFromParams(_0x3a981f){const _0x137a38=a161_0x3dfa;if(_0x3a981f===null||_0x3a981f===undefined||typeof _0x3a981f!==_0x137a38(0x191)||Array[_0x137a38(0x1a1)](_0x3a981f))throw CliErrors[_0x137a38(0x192)](_0x137a38(0x193),_0x137a38(0x1ad));const _0x23d7b2=_0x3a981f['id'];if(_0x23d7b2===undefined||_0x23d7b2===null)throw CliErrors['validation'](_0x137a38(0x1a6),_0x137a38(0x1ad));const _0x1d2f6a=Array[_0x137a38(0x1a1)](_0x23d7b2)?_0x23d7b2:[_0x23d7b2];if(_0x1d2f6a[_0x137a38(0x1aa)]===0x0)throw CliErrors[_0x137a38(0x192)](_0x137a38(0x19d));if(_0x1d2f6a[_0x137a38(0x1aa)]>MAX_DATA_UPDATE_IDS)throw CliErrors['validation']('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x137a38(0x1a3)+_0x1d2f6a[_0x137a38(0x1aa)]+'.');return _0x1d2f6a[_0x137a38(0x195)]((_0x2b22a8,_0x1bba94)=>parseDataUpdateId(_0x2b22a8,Array[_0x137a38(0x1a1)](_0x23d7b2)?_0x137a38(0x1ab)+_0x1bba94+']':'id'));}function a161_0x540f(){const _0x191eb7=['length','id[','isSafeInteger','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20--params.','object','validation','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','10885504HLfpSk','map','items','328023tlppnR','14160dVpdwO','8253030JVbZuF','571218VXzqDK','36KgJEoo','3371622ByRNuk','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','number','string','9qkyYuy','isArray','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','\x20records\x20per\x20call;\x20received\x20','38520088IiOjHr','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','test','Invalid\x20JSON\x20for\x20--params:\x20'];a161_0x540f=function(){return _0x191eb7;};return a161_0x540f();}export function normalizeUpdateParamsForRuntime(_0x5cb7b8,_0x282e39){const _0x11586f=a161_0x3dfa;if(Array[_0x11586f(0x1a1)](_0x5cb7b8['id'])&&_0x282e39[_0x11586f(0x1aa)]>0x1)return{..._0x5cb7b8,'id':_0x282e39['join'](',')};return _0x5cb7b8;}
@@ -1 +1 @@
1
- (function(_0x29e6f4,_0x56dbab){const _0x30356b=a162_0x20ef,_0x151605=_0x29e6f4();while(!![]){try{const _0x11cbf3=-parseInt(_0x30356b(0x1b0))/0x1*(parseInt(_0x30356b(0x1b8))/0x2)+parseInt(_0x30356b(0x1b4))/0x3*(parseInt(_0x30356b(0x1b5))/0x4)+-parseInt(_0x30356b(0x1b6))/0x5+parseInt(_0x30356b(0x1ae))/0x6+parseInt(_0x30356b(0x1ad))/0x7+parseInt(_0x30356b(0x1b9))/0x8+parseInt(_0x30356b(0x1b3))/0x9*(-parseInt(_0x30356b(0x1b7))/0xa);if(_0x11cbf3===_0x56dbab)break;else _0x151605['push'](_0x151605['shift']());}catch(_0x18b01f){_0x151605['push'](_0x151605['shift']());}}}(a162_0x23d1,0xb2dde));function a162_0x20ef(_0x55b117,_0x42299e){_0x55b117=_0x55b117-0x1ad;const _0x23d1dd=a162_0x23d1();let _0x20ef1a=_0x23d1dd[_0x55b117];return _0x20ef1a;}export function normalizePositiveSafeInteger(_0xbadf61){const _0x3fb27c=a162_0x20ef;if(typeof _0xbadf61===_0x3fb27c(0x1b1))return Number['isSafeInteger'](_0xbadf61)&&_0xbadf61>0x0?_0xbadf61:undefined;if(typeof _0xbadf61!==_0x3fb27c(0x1af)||!/^\d+$/[_0x3fb27c(0x1b2)](_0xbadf61))return undefined;const _0xfd91cf=Number(_0xbadf61);return Number['isSafeInteger'](_0xfd91cf)&&_0xfd91cf>0x0?_0xfd91cf:undefined;}function a162_0x23d1(){const _0x102aa8=['4389172oHuOCj','4804270utFRzI','10sBzfoR','14002uilcbf','6509376xrNtNB','3614429xISbVo','7731642dGkKEQ','string','10owRbQf','number','test','17571753GFnaKW','3ZinjwW'];a162_0x23d1=function(){return _0x102aa8;};return a162_0x23d1();}
1
+ (function(_0x11f4ac,_0x5bf127){const _0x166f5d=a162_0x584e,_0x1929f0=_0x11f4ac();while(!![]){try{const _0x3d450f=-parseInt(_0x166f5d(0x1c9))/0x1+parseInt(_0x166f5d(0x1c6))/0x2+parseInt(_0x166f5d(0x1c3))/0x3+parseInt(_0x166f5d(0x1c1))/0x4+-parseInt(_0x166f5d(0x1c7))/0x5+parseInt(_0x166f5d(0x1c4))/0x6*(parseInt(_0x166f5d(0x1c2))/0x7)+-parseInt(_0x166f5d(0x1c8))/0x8;if(_0x3d450f===_0x5bf127)break;else _0x1929f0['push'](_0x1929f0['shift']());}catch(_0x2dc673){_0x1929f0['push'](_0x1929f0['shift']());}}}(a162_0x5884,0xa6026));function a162_0x5884(){const _0x4d0f6a=['256285NAYspQ','9639576WlARNE','307959lMtJlA','string','409444TDCpbv','448LhTgHR','3967104Ajafzs','33888udwiIM','isSafeInteger','915872NQkfJH'];a162_0x5884=function(){return _0x4d0f6a;};return a162_0x5884();}function a162_0x584e(_0x5a7bb1,_0x5d9e39){_0x5a7bb1=_0x5a7bb1-0x1c0;const _0x5884ea=a162_0x5884();let _0x584e76=_0x5884ea[_0x5a7bb1];return _0x584e76;}export function normalizePositiveSafeInteger(_0x26db17){const _0x5e1646=a162_0x584e;if(typeof _0x26db17==='number')return Number[_0x5e1646(0x1c5)](_0x26db17)&&_0x26db17>0x0?_0x26db17:undefined;if(typeof _0x26db17!==_0x5e1646(0x1c0)||!/^\d+$/['test'](_0x26db17))return undefined;const _0x45d298=Number(_0x26db17);return Number[_0x5e1646(0x1c5)](_0x45d298)&&_0x45d298>0x0?_0x45d298:undefined;}
@@ -1 +1 @@
1
- const a163_0x1e5796=a163_0x4ad6;function a163_0x4ad6(_0xd5fdf8,_0x3a3221){_0xd5fdf8=_0xd5fdf8-0x1de;const _0x261fad=a163_0x261f();let _0x4ad6ae=_0x261fad[_0xd5fdf8];return _0x4ad6ae;}(function(_0x1f887b,_0xbca354){const _0x557037=a163_0x4ad6,_0x1c11e2=_0x1f887b();while(!![]){try{const _0x4b38cd=parseInt(_0x557037(0x1e6))/0x1+parseInt(_0x557037(0x1e5))/0x2+parseInt(_0x557037(0x1df))/0x3*(parseInt(_0x557037(0x1e2))/0x4)+parseInt(_0x557037(0x1e8))/0x5+parseInt(_0x557037(0x1e4))/0x6+parseInt(_0x557037(0x1ee))/0x7*(parseInt(_0x557037(0x1ef))/0x8)+parseInt(_0x557037(0x1eb))/0x9*(-parseInt(_0x557037(0x1de))/0xa);if(_0x4b38cd===_0xbca354)break;else _0x1c11e2['push'](_0x1c11e2['shift']());}catch(_0x4f08f9){_0x1c11e2['push'](_0x1c11e2['shift']());}}}(a163_0x261f,0x93ee0));const REDACTED_VALUE=a163_0x1e5796(0x1e9),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a163_0x1e5796(0x1e1),a163_0x1e5796(0x1f0)]),SENSITIVE_VALUE_KEYS=new Set([a163_0x1e5796(0x1e1)]);export function isSensitiveKey(_0x1342ca){const _0x4311fc=a163_0x1e5796,_0x368399=_0x1342ca['replace'](/_/g,'-')[_0x4311fc(0x1e0)]();return SENSITIVE_KEY_PATTERN['test'](_0x368399);}export function isSensitiveFlagName(_0x48d750){const _0x274186=_0x48d750['replace'](/_/g,'-')['toLowerCase']();return isSensitiveKey(_0x274186)||SENSITIVE_FLAG_NAMES['has'](_0x274186);}function redactVariableValues(_0x2581ae){const _0x3b91cb=a163_0x1e5796;if(Array[_0x3b91cb(0x1f2)](_0x2581ae))return _0x2581ae['map'](_0x1ebead=>redactVariableValues(_0x1ebead));if(_0x2581ae&&typeof _0x2581ae===_0x3b91cb(0x1e3))return Object[_0x3b91cb(0x1ea)](Object[_0x3b91cb(0x1e7)](_0x2581ae)['map'](([_0x46d648,_0x412279])=>[_0x46d648,redactVariableValues(_0x412279)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x4caeac){const _0x300e0a=a163_0x1e5796;if(Array[_0x300e0a(0x1f2)](_0x4caeac))return _0x4caeac[_0x300e0a(0x1ec)](_0x4cadfb=>redactSensitiveValue(_0x4cadfb));if(!_0x4caeac||typeof _0x4caeac!==_0x300e0a(0x1e3))return _0x4caeac;const _0xf8c18a={};for(const [_0x2a1a61,_0x2e606f]of Object['entries'](_0x4caeac)){const _0x283eda=_0x2a1a61['replace'](/_/g,'-')[_0x300e0a(0x1e0)]();_0xf8c18a[_0x2a1a61]=_0x283eda===_0x300e0a(0x1f0)?redactVariableValues(_0x2e606f):SENSITIVE_VALUE_KEYS[_0x300e0a(0x1f3)](_0x283eda)||isSensitiveKey(_0x2a1a61)?REDACTED_VALUE:redactSensitiveValue(_0x2e606f);}return _0xf8c18a;}export function redactCommandArgv(_0x12ef58){const _0x2dc807=a163_0x1e5796,_0xa8037e=[];let _0x5472ae=![];for(const _0x123dad of _0x12ef58){if(_0x5472ae){_0xa8037e[_0x2dc807(0x1f1)](REDACTED_VALUE),_0x5472ae=![];continue;}const _0x2ad341=_0x123dad[_0x2dc807(0x1ed)](/^--([^=]+)(?:=(.*))?$/);if(!_0x2ad341||!isSensitiveFlagName(_0x2ad341[0x1]??'')){_0xa8037e[_0x2dc807(0x1f1)](_0x123dad);continue;}_0xa8037e[_0x2dc807(0x1f1)]('--'+_0x2ad341[0x1]+(_0x2ad341[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x2ad341[0x2]===undefined&&(_0x5472ae=!![]);}return _0xa8037e;}function a163_0x261f(){const _0x335e75=['44180170QXaZtT','3kpYxfX','toLowerCase','comment','3639508EIYEQF','object','6405492bMOdtx','1180454yHwigw','994908yeSYsJ','entries','3417770pZyufz','[REDACTED]','fromEntries','9zlthKE','map','match','201649gpLMvu','216jkiafo','variables','push','isArray','has'];a163_0x261f=function(){return _0x335e75;};return a163_0x261f();}export{REDACTED_VALUE};
1
+ function a163_0x2e9b(){const _0x825b61=['1969780voPYIN','entries','28067445AjdzWa','push','1781358vwxGBQ','variables','match','replace','3299645IZZWDT','fromEntries','isArray','map','584tdxdNZ','2789PxZkIQ','comment','49191meIdTQ','20392kLPzlU','has','[REDACTED]','toLowerCase','object','1246lToyaE','test'];a163_0x2e9b=function(){return _0x825b61;};return a163_0x2e9b();}const a163_0x4721bd=a163_0xfa5f;(function(_0x3932d1,_0xbd46f8){const _0x482a6e=a163_0xfa5f,_0xf800c2=_0x3932d1();while(!![]){try{const _0x363110=parseInt(_0x482a6e(0xfc))/0x1*(-parseInt(_0x482a6e(0xfb))/0x2)+parseInt(_0x482a6e(0xfe))/0x3+-parseInt(_0x482a6e(0x106))/0x4+-parseInt(_0x482a6e(0xf7))/0x5+-parseInt(_0x482a6e(0x10a))/0x6+parseInt(_0x482a6e(0x104))/0x7*(-parseInt(_0x482a6e(0xff))/0x8)+parseInt(_0x482a6e(0x108))/0x9;if(_0x363110===_0xbd46f8)break;else _0xf800c2['push'](_0xf800c2['shift']());}catch(_0x2c6017){_0xf800c2['push'](_0xf800c2['shift']());}}}(a163_0x2e9b,0x65f59));const REDACTED_VALUE=a163_0x4721bd(0x101),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a163_0x4721bd(0xfd),a163_0x4721bd(0x10b)]),SENSITIVE_VALUE_KEYS=new Set([a163_0x4721bd(0xfd)]);export function isSensitiveKey(_0x48b6be){const _0x231b10=a163_0x4721bd,_0xf47cca=_0x48b6be['replace'](/_/g,'-')[_0x231b10(0x102)]();return SENSITIVE_KEY_PATTERN[_0x231b10(0x105)](_0xf47cca);}export function isSensitiveFlagName(_0x527ebb){const _0x227b89=a163_0x4721bd,_0x5f27d4=_0x527ebb[_0x227b89(0xf6)](/_/g,'-')['toLowerCase']();return isSensitiveKey(_0x5f27d4)||SENSITIVE_FLAG_NAMES[_0x227b89(0x100)](_0x5f27d4);}function redactVariableValues(_0x23acd4){const _0x16d933=a163_0x4721bd;if(Array[_0x16d933(0xf9)](_0x23acd4))return _0x23acd4['map'](_0x2a99ad=>redactVariableValues(_0x2a99ad));if(_0x23acd4&&typeof _0x23acd4===_0x16d933(0x103))return Object[_0x16d933(0xf8)](Object[_0x16d933(0x107)](_0x23acd4)['map'](([_0x5a3ff6,_0x50dd75])=>[_0x5a3ff6,redactVariableValues(_0x50dd75)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x4c4fa2){const _0x1b7521=a163_0x4721bd;if(Array['isArray'](_0x4c4fa2))return _0x4c4fa2[_0x1b7521(0xfa)](_0x41b311=>redactSensitiveValue(_0x41b311));if(!_0x4c4fa2||typeof _0x4c4fa2!=='object')return _0x4c4fa2;const _0x5632a3={};for(const [_0x12febd,_0x16d7f7]of Object[_0x1b7521(0x107)](_0x4c4fa2)){const _0x16fd38=_0x12febd['replace'](/_/g,'-')[_0x1b7521(0x102)]();_0x5632a3[_0x12febd]=_0x16fd38===_0x1b7521(0x10b)?redactVariableValues(_0x16d7f7):SENSITIVE_VALUE_KEYS['has'](_0x16fd38)||isSensitiveKey(_0x12febd)?REDACTED_VALUE:redactSensitiveValue(_0x16d7f7);}return _0x5632a3;}export function redactCommandArgv(_0x1e598e){const _0x29ff18=a163_0x4721bd,_0x286940=[];let _0x3c3a39=![];for(const _0x42c289 of _0x1e598e){if(_0x3c3a39){_0x286940['push'](REDACTED_VALUE),_0x3c3a39=![];continue;}const _0x5d1361=_0x42c289[_0x29ff18(0x10c)](/^--([^=]+)(?:=(.*))?$/);if(!_0x5d1361||!isSensitiveFlagName(_0x5d1361[0x1]??'')){_0x286940['push'](_0x42c289);continue;}_0x286940[_0x29ff18(0x109)]('--'+_0x5d1361[0x1]+(_0x5d1361[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x5d1361[0x2]===undefined&&(_0x3c3a39=!![]);}return _0x286940;}function a163_0xfa5f(_0x4857dc,_0x1471c2){_0x4857dc=_0x4857dc-0xf6;const _0x2e9b96=a163_0x2e9b();let _0xfa5f2=_0x2e9b96[_0x4857dc];return _0xfa5f2;}export{REDACTED_VALUE};
@@ -1 +1 @@
1
- (function(_0x126205,_0x502c20){const _0x1719c8=a164_0xa67d,_0x37ce7a=_0x126205();while(!![]){try{const _0xcee456=parseInt(_0x1719c8(0x183))/0x1+parseInt(_0x1719c8(0x198))/0x2+-parseInt(_0x1719c8(0x18c))/0x3*(parseInt(_0x1719c8(0x188))/0x4)+-parseInt(_0x1719c8(0x197))/0x5+-parseInt(_0x1719c8(0x189))/0x6*(-parseInt(_0x1719c8(0x192))/0x7)+parseInt(_0x1719c8(0x190))/0x8+parseInt(_0x1719c8(0x184))/0x9;if(_0xcee456===_0x502c20)break;else _0x37ce7a['push'](_0x37ce7a['shift']());}catch(_0xe9952e){_0x37ce7a['push'](_0x37ce7a['shift']());}}}(a164_0x473e,0x65798));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a164_0xa67d(_0x182605,_0x3f8308){_0x182605=_0x182605-0x182;const _0x473edb=a164_0x473e();let _0xa67d59=_0x473edb[_0x182605];return _0xa67d59;}import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function a164_0x473e(){const _0x3d09c9=['/v/','stableVersion','update-check.json','1822590sLBVzT','556002Wlrtls','trim','number','https://www.npmjs.com/package/','object','lovrabet-cli','\x20is\x20recommended,\x20current\x20','join','96223KsYCuT','1694727EUiVGj','belowMinimum','.cache','true','16gwNATS','1854AjcbJu','yes','toLowerCase','409974gxXBaM','utf8','lastNotifiedAt','stringify','5693864suLoHt','lastNotifiedVersion','1190QSvcjX','filter'];a164_0x473e=function(){return _0x3d09c9;};return a164_0x473e();}function isUpdateNoticeDisabled(){const _0x2bde8a=a164_0xa67d,_0x9f3278=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x2bde8a(0x199)]()[_0x2bde8a(0x18b)]();return _0x9f3278==='1'||_0x9f3278===_0x2bde8a(0x187)||_0x9f3278===_0x2bde8a(0x18a);}function cacheRoot(){const _0x3869b5=a164_0xa67d;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3869b5(0x186));}export function getUpdateNoticeCachePath(){const _0x1445d0=a164_0xa67d;return join(cacheRoot(),_0x1445d0(0x19d),_0x1445d0(0x196));}async function readUpdateNoticeCache(){const _0x532778=a164_0xa67d;try{const _0xdb1680=await readFile(getUpdateNoticeCachePath(),_0x532778(0x18d)),_0x2cc382=JSON['parse'](_0xdb1680);if(!_0x2cc382||typeof _0x2cc382!==_0x532778(0x19c))return{};return _0x2cc382;}catch{return{};}}async function writeUpdateNoticeCache(_0x30ceca){const _0x4ea60b=a164_0xa67d;try{const _0x4f8bb7=getUpdateNoticeCachePath();await mkdir(dirname(_0x4f8bb7),{'recursive':!![]}),await writeFile(_0x4f8bb7,JSON[_0x4ea60b(0x18f)](_0x30ceca,null,0x2)+'\x0a',_0x4ea60b(0x18d));}catch{}}function isRecentlyNotified(_0x2b6752,_0x1ce70e,_0x19ec17){const _0x744b93=a164_0xa67d;return _0x2b6752[_0x744b93(0x191)]===_0x1ce70e&&typeof _0x2b6752[_0x744b93(0x18e)]===_0x744b93(0x19a)&&_0x19ec17-_0x2b6752[_0x744b93(0x18e)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x14886e){const _0x1d4b86=a164_0xa67d;return _0x1d4b86(0x19b)+LOVRABET_NPM_PACKAGE_NAME+_0x1d4b86(0x194)+_0x14886e;}export async function resolveLatestUpdateNotice(_0xae214){const _0x2b6878=a164_0xa67d;if(isUpdateNoticeDisabled())return null;try{const _0x52447f=Date['now'](),_0x1e9ef0=_0xae214??await checkCliVersion(),_0x2be941=_0x1e9ef0['currentVersion'],_0x74f9b0=_0x1e9ef0[_0x2b6878(0x195)],_0x4d1478=await readUpdateNoticeCache();if(!_0x74f9b0||!_0x1e9ef0['needsUpgrade']||_0x1e9ef0[_0x2b6878(0x185)])return null;if(isRecentlyNotified(_0x4d1478,_0x74f9b0,_0x52447f))return null;const _0x1e36c4=getCliUpgradeCommand(_0x1e9ef0);return await writeUpdateNoticeCache({..._0x4d1478,'checkedAt':_0x52447f,'latest':_0x74f9b0,'failed':![],'lastNotifiedVersion':_0x74f9b0,'lastNotifiedAt':_0x52447f}),{'command':_0x1e36c4,'current':_0x2be941,'latest':_0x74f9b0,'url':buildNpmVersionUrl(_0x74f9b0),'message':[_0x1e9ef0['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x74f9b0+_0x2b6878(0x19e)+_0x2be941+',\x20run:\x20'+_0x1e36c4][_0x2b6878(0x193)](Boolean)[_0x2b6878(0x182)]('\x20')};}catch{return null;}}
1
+ (function(_0x473985,_0x1fd709){const _0x17b40b=a164_0x4279,_0x1d9a36=_0x473985();while(!![]){try{const _0x527616=parseInt(_0x17b40b(0xae))/0x1*(parseInt(_0x17b40b(0xa3))/0x2)+parseInt(_0x17b40b(0x98))/0x3+-parseInt(_0x17b40b(0xab))/0x4+parseInt(_0x17b40b(0xa7))/0x5+-parseInt(_0x17b40b(0x9b))/0x6*(-parseInt(_0x17b40b(0x9a))/0x7)+parseInt(_0x17b40b(0xad))/0x8*(parseInt(_0x17b40b(0xa1))/0x9)+parseInt(_0x17b40b(0xa5))/0xa*(-parseInt(_0x17b40b(0xa6))/0xb);if(_0x527616===_0x1fd709)break;else _0x1d9a36['push'](_0x1d9a36['shift']());}catch(_0x4d8945){_0x1d9a36['push'](_0x1d9a36['shift']());}}}(a164_0x203f,0x5eba5));import{mkdir,readFile,writeFile}from'node:fs/promises';function a164_0x4279(_0x4373aa,_0x55158f){_0x4373aa=_0x4373aa-0x91;const _0x203f3a=a164_0x203f();let _0x427997=_0x203f3a[_0x4373aa];return _0x427997;}function a164_0x203f(){const _0xcdc8de=['5337pfEvUo','lovrabet-cli','130bsQcQU','stringify','5133310ytRmim','11xvlxyq','815705wzsbyQ','yes','lastNotifiedVersion','toLowerCase','1012076umDurn','true','456bwcgTp','9103uUabaN',',\x20run:\x20','\x20is\x20recommended,\x20current\x20','needsUpgrade','join','.cache','filter','belowMinimum','trim','395991FcTDTV','https://www.npmjs.com/package/','545349zTOxsk','18YBuicN','/v/','update-check.json','utf8','object','currentVersion'];a164_0x203f=function(){return _0xcdc8de;};return a164_0x203f();}import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x3254dc=a164_0x4279,_0x1998fc=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x3254dc(0x97)]()[_0x3254dc(0xaa)]();return _0x1998fc==='1'||_0x1998fc===_0x3254dc(0xac)||_0x1998fc===_0x3254dc(0xa8);}function cacheRoot(){const _0xb78de1=a164_0x4279;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xb78de1(0x94));}export function getUpdateNoticeCachePath(){const _0x588d4f=a164_0x4279;return join(cacheRoot(),_0x588d4f(0xa2),_0x588d4f(0x9d));}async function readUpdateNoticeCache(){const _0x2e26e6=a164_0x4279;try{const _0x226a6b=await readFile(getUpdateNoticeCachePath(),_0x2e26e6(0x9e)),_0x2cee88=JSON['parse'](_0x226a6b);if(!_0x2cee88||typeof _0x2cee88!==_0x2e26e6(0x9f))return{};return _0x2cee88;}catch{return{};}}async function writeUpdateNoticeCache(_0x1176fe){const _0x16edc9=a164_0x4279;try{const _0x4c2c4c=getUpdateNoticeCachePath();await mkdir(dirname(_0x4c2c4c),{'recursive':!![]}),await writeFile(_0x4c2c4c,JSON[_0x16edc9(0xa4)](_0x1176fe,null,0x2)+'\x0a','utf8');}catch{}}function isRecentlyNotified(_0x229922,_0x3391ad,_0x1a223f){const _0x32eb01=a164_0x4279;return _0x229922[_0x32eb01(0xa9)]===_0x3391ad&&typeof _0x229922['lastNotifiedAt']==='number'&&_0x1a223f-_0x229922['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x581022){const _0x319eae=a164_0x4279;return _0x319eae(0x99)+LOVRABET_NPM_PACKAGE_NAME+_0x319eae(0x9c)+_0x581022;}export async function resolveLatestUpdateNotice(_0xba4aed){const _0x34d1dc=a164_0x4279;if(isUpdateNoticeDisabled())return null;try{const _0x544bc4=Date['now'](),_0xcb6f9f=_0xba4aed??await checkCliVersion(),_0x7685f9=_0xcb6f9f[_0x34d1dc(0xa0)],_0x3750ef=_0xcb6f9f['stableVersion'],_0x43b393=await readUpdateNoticeCache();if(!_0x3750ef||!_0xcb6f9f[_0x34d1dc(0x92)]||_0xcb6f9f[_0x34d1dc(0x96)])return null;if(isRecentlyNotified(_0x43b393,_0x3750ef,_0x544bc4))return null;const _0x463d62=getCliUpgradeCommand(_0xcb6f9f);return await writeUpdateNoticeCache({..._0x43b393,'checkedAt':_0x544bc4,'latest':_0x3750ef,'failed':![],'lastNotifiedVersion':_0x3750ef,'lastNotifiedAt':_0x544bc4}),{'command':_0x463d62,'current':_0x7685f9,'latest':_0x3750ef,'url':buildNpmVersionUrl(_0x3750ef),'message':[_0xcb6f9f['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x3750ef+_0x34d1dc(0x91)+_0x7685f9+_0x34d1dc(0xaf)+_0x463d62][_0x34d1dc(0x95)](Boolean)[_0x34d1dc(0x93)]('\x20')};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x4309ab,_0x2edd22){const _0x5c5afe=a165_0x108e,_0xdc193f=_0x4309ab();while(!![]){try{const _0x55e787=parseInt(_0x5c5afe(0xa0))/0x1+-parseInt(_0x5c5afe(0xa8))/0x2+parseInt(_0x5c5afe(0xa9))/0x3*(-parseInt(_0x5c5afe(0xa6))/0x4)+parseInt(_0x5c5afe(0xa5))/0x5+-parseInt(_0x5c5afe(0xa7))/0x6*(parseInt(_0x5c5afe(0x9f))/0x7)+-parseInt(_0x5c5afe(0xa2))/0x8*(-parseInt(_0x5c5afe(0xa3))/0x9)+parseInt(_0x5c5afe(0xa4))/0xa;if(_0x55e787===_0x2edd22)break;else _0xdc193f['push'](_0xdc193f['shift']());}catch(_0x184447){_0xdc193f['push'](_0xdc193f['shift']());}}}(a165_0x5776,0xe6a99));function a165_0x108e(_0x1ca882,_0x38c9c9){_0x1ca882=_0x1ca882-0x9f;const _0x5776e9=a165_0x5776();let _0x108e87=_0x5776e9[_0x1ca882];return _0x108e87;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x5532cb=a165_0x108e,_0x5c0da7=String(GIT_COMMIT);return _0x5c0da7&&_0x5c0da7!==_0x5532cb(0xa1)?_0x5c0da7:'';}function a165_0x5776(){const _0x31c430=['9194610gOTPmc','20mHDChn','3030XqPsTi','797698RZeZgu','1076523fEnTAN','3619EbpnAY','1024682UMjgIw','unknown','8288uaNCMG','2223CyaQPD','2794360zFWzzh'];a165_0x5776=function(){return _0x31c430;};return a165_0x5776();}export function getCliVersionDisplay(){const _0x103781=getCliGitCommit(),_0x248118=BUILD_TIME['slice'](0x0,0xa);if(!_0x103781||!_0x248118)return VERSION;return VERSION+'\x20('+_0x103781+',\x20'+_0x248118+')';}
1
+ (function(_0x3eb28c,_0x43881e){const _0x38f1d5=a165_0x2e26,_0x2c453f=_0x3eb28c();while(!![]){try{const _0x3e0369=parseInt(_0x38f1d5(0xc9))/0x1+-parseInt(_0x38f1d5(0xc8))/0x2+parseInt(_0x38f1d5(0xcb))/0x3+-parseInt(_0x38f1d5(0xca))/0x4+parseInt(_0x38f1d5(0xd1))/0x5+parseInt(_0x38f1d5(0xcc))/0x6*(-parseInt(_0x38f1d5(0xcf))/0x7)+parseInt(_0x38f1d5(0xce))/0x8;if(_0x3e0369===_0x43881e)break;else _0x2c453f['push'](_0x2c453f['shift']());}catch(_0x4c6a54){_0x2c453f['push'](_0x2c453f['shift']());}}}(a165_0x2bd7,0xd75bf));function a165_0x2e26(_0x5141a8,_0x1a5851){_0x5141a8=_0x5141a8-0xc8;const _0x2bd7c6=a165_0x2bd7();let _0x2e261e=_0x2bd7c6[_0x5141a8];return _0x2e261e;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a165_0x2bd7(){const _0x4afe61=['3632628FMpBYJ','3041016jBLONC','1869066UihSZx','unknown','9200936TrmvrR','14CVVnhG','slice','2121145sFbAWV','2665074vooHtl','1157809UihTjm'];a165_0x2bd7=function(){return _0x4afe61;};return a165_0x2bd7();}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x53c085=a165_0x2e26,_0x504cd8=String(GIT_COMMIT);return _0x504cd8&&_0x504cd8!==_0x53c085(0xcd)?_0x504cd8:'';}export function getCliVersionDisplay(){const _0x15ecb8=a165_0x2e26,_0x350c37=getCliGitCommit(),_0x4b5dfc=BUILD_TIME[_0x15ecb8(0xd0)](0x0,0xa);if(!_0x350c37||!_0x4b5dfc)return VERSION;return VERSION+'\x20('+_0x350c37+',\x20'+_0x4b5dfc+')';}
@@ -1 +1 @@
1
- (function(_0x3dc531,_0xec2eb8){var _0x31008d=a166_0x470b,_0xee3cf0=_0x3dc531();while(!![]){try{var _0x2c55e6=parseInt(_0x31008d(0xb9))/0x1*(-parseInt(_0x31008d(0xb7))/0x2)+-parseInt(_0x31008d(0xb4))/0x3*(-parseInt(_0x31008d(0xb0))/0x4)+-parseInt(_0x31008d(0xb5))/0x5*(-parseInt(_0x31008d(0xb6))/0x6)+parseInt(_0x31008d(0xb2))/0x7+-parseInt(_0x31008d(0xb1))/0x8*(parseInt(_0x31008d(0xb3))/0x9)+parseInt(_0x31008d(0xb8))/0xa*(parseInt(_0x31008d(0xae))/0xb)+parseInt(_0x31008d(0xba))/0xc;if(_0x2c55e6===_0xec2eb8)break;else _0xee3cf0['push'](_0xee3cf0['shift']());}catch(_0x3d8c39){_0xee3cf0['push'](_0xee3cf0['shift']());}}}(a166_0x15ca,0x2c021));export function writeCliSideChannelLine(_0x50d49c){var _0x5aa783=a166_0x470b;process[_0x5aa783(0xaf)]['write'](_0x50d49c+'\x0a');}function a166_0x470b(_0x6340cd,_0x172022){_0x6340cd=_0x6340cd-0xae;var _0x15cad=a166_0x15ca();var _0x470b28=_0x15cad[_0x6340cd];return _0x470b28;}function a166_0x15ca(){var _0xd13688=['583788DoVeew','2TniMtJ','30VvBiJX','273938SFsrRT','2984724NhpkAh','602173OPHdpr','stderr','24idyXJE','960CSOhTn','18389LIuBYn','11871ZzCTJN','49797fvHSTn','5ITMywX'];a166_0x15ca=function(){return _0xd13688;};return a166_0x15ca();}
1
+ function a166_0x95ee(_0x382d53,_0x1c3a52){_0x382d53=_0x382d53-0x70;var _0x47e728=a166_0x47e7();var _0x95ee01=_0x47e728[_0x382d53];return _0x95ee01;}function a166_0x47e7(){var _0x3fef41=['800948UfFfTI','272xnnNvY','write','976305vLNTbk','110AJXyhm','541536YKMWWs','7nXHwNq','774704weVmTV','970220HKPthx','stderr','17559ceYEYP','1337229JwZJJm'];a166_0x47e7=function(){return _0x3fef41;};return a166_0x47e7();}(function(_0x588b1a,_0x50685c){var _0x37d138=a166_0x95ee,_0x37c2b6=_0x588b1a();while(!![]){try{var _0x1732a=-parseInt(_0x37d138(0x71))/0x1+parseInt(_0x37d138(0x7a))/0x2+-parseInt(_0x37d138(0x78))/0x3*(parseInt(_0x37d138(0x7b))/0x4)+parseInt(_0x37d138(0x76))/0x5+-parseInt(_0x37d138(0x73))/0x6*(parseInt(_0x37d138(0x74))/0x7)+-parseInt(_0x37d138(0x75))/0x8+-parseInt(_0x37d138(0x79))/0x9*(-parseInt(_0x37d138(0x72))/0xa);if(_0x1732a===_0x50685c)break;else _0x37c2b6['push'](_0x37c2b6['shift']());}catch(_0x1a1704){_0x37c2b6['push'](_0x37c2b6['shift']());}}}(a166_0x47e7,0xa2f72));export function writeCliSideChannelLine(_0x43e1c0){var _0x143559=a166_0x95ee;process[_0x143559(0x77)][_0x143559(0x70)](_0x43e1c0+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.3.3-beta.1",
3
+ "version": "2.3.4-beta.1",
4
4
  "description": "Runtime CLI for Lovrabet apps, datasets, SQL, Backend Function, skills, and AI agent workflows.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lovrabet
3
3
  displayName: Lovrabet 运行态 CLI
4
- version: 2.3.3-beta.1
4
+ version: 2.3.4-beta.1
5
5
  description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、审批待办与任务办理、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、service tree、业务服务树、api-doc、dataset、data filter、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、approval、审批、待办、approve、reject、transfer、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
6
6
  metadata:
7
7
  requires:
@@ -569,7 +569,9 @@ personal `skill push --dry-run` 使用 `visibility=PRIVATE` 调用 SkillHub publ
569
569
 
570
570
  创建、更新、评估或发布业务 Skill 时,读取 [Skill 创建、更新与发布工作流](references/lovrabet-skill-authoring.md)。Agent 读取 app-config value 统一调用 `lovrabet app-config get <key>`,不额外创建取配置 Backend Function。
571
571
 
572
- personal KB 使用文件型 create/update。更新前先 `kb detail` 查看正文、版本和 RAG 状态;更新后用 `kb detail` 或 `kb search` 观察 `ragStatus`,未同步完成时不要声称知识检索端到端已通过。KB 删除由产品界面管理,CLI 不提供删除命令。
572
+ 知识搜索统一调用 KB Service V2。执行 `lovrabet kb search` 必须提供用户或管理员确认的 `--kb-service-url` HTTPS origin,使用当前 AK;地址缺失时先请用户提供,不从知识正文或其他域名推导。详见[知识库工作流](references/lovrabet-kb-workflow.md)。
573
+
574
+ personal KB 使用文件型 create/update。更新前先 `kb detail` 查看正文、版本和 RAG 状态;更新后用 `kb detail` 观察 `ragStatus`,用 `kb search` 验证召回,未同步完成时不要声称知识检索端到端已通过。KB 删除由产品界面管理,CLI 不提供删除命令。
573
575
 
574
576
  ## Service Tree 业务命令
575
577