@lovrabet/lovrabet-cli 2.3.0 → 2.3.1-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 (178) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.d.ts +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/index.js +1 -1
  28. package/lib/commands/dataset/detail.js +1 -1
  29. package/lib/commands/dataset/index.js +1 -1
  30. package/lib/commands/dataset/list.js +1 -1
  31. package/lib/commands/dataset/sdk-doc.js +1 -1
  32. package/lib/commands/doctor.js +1 -1
  33. package/lib/commands/file/index.js +1 -1
  34. package/lib/commands/init.js +1 -1
  35. package/lib/commands/kb/index.js +1 -1
  36. package/lib/commands/logs/index.js +1 -1
  37. package/lib/commands/notification/config-list.js +1 -1
  38. package/lib/commands/notification/index.js +1 -1
  39. package/lib/commands/notification/shared.js +1 -1
  40. package/lib/commands/ocr/index.js +1 -1
  41. package/lib/commands/permit/dataset-get.js +1 -1
  42. package/lib/commands/permit/dataset-set.js +1 -1
  43. package/lib/commands/permit/index.js +1 -1
  44. package/lib/commands/permit/page-get.js +1 -1
  45. package/lib/commands/permit/page-set.js +1 -1
  46. package/lib/commands/permit/role-menus-set.js +1 -1
  47. package/lib/commands/permit/role-menus.js +1 -1
  48. package/lib/commands/permit/shared.js +1 -1
  49. package/lib/commands/personal-bff/index.js +1 -1
  50. package/lib/commands/registry.js +1 -1
  51. package/lib/commands/role/create.js +1 -1
  52. package/lib/commands/role/delete.js +1 -1
  53. package/lib/commands/role/detail.js +1 -1
  54. package/lib/commands/role/index.js +1 -1
  55. package/lib/commands/role/list.js +1 -1
  56. package/lib/commands/role/shared.js +1 -1
  57. package/lib/commands/role/update.js +1 -1
  58. package/lib/commands/role/user-add.js +1 -1
  59. package/lib/commands/role/user-remove.js +1 -1
  60. package/lib/commands/schedule/index.js +1 -1
  61. package/lib/commands/schema.js +1 -1
  62. package/lib/commands/service/dynamic.js +1 -1
  63. package/lib/commands/service/function-name-adapter.js +1 -1
  64. package/lib/commands/service/index.js +1 -1
  65. package/lib/commands/service/registry.js +1 -1
  66. package/lib/commands/skill/commands/create.js +1 -1
  67. package/lib/commands/skill/commands/diagram.js +1 -1
  68. package/lib/commands/skill/commands/install.js +1 -1
  69. package/lib/commands/skill/commands/list.js +1 -1
  70. package/lib/commands/skill/commands/push.js +1 -1
  71. package/lib/commands/skill/commands/validate.js +1 -1
  72. package/lib/commands/skill/diagram.js +1 -1
  73. package/lib/commands/skill/flags.js +1 -1
  74. package/lib/commands/skill/index.js +1 -1
  75. package/lib/commands/skill/manifest-helpers.js +1 -1
  76. package/lib/commands/skill/push-execute.js +1 -1
  77. package/lib/commands/skill/push-flow-helpers.js +1 -1
  78. package/lib/commands/skill/push-retarget.js +1 -1
  79. package/lib/commands/skill/scopes.js +1 -1
  80. package/lib/commands/skill/summary.js +1 -1
  81. package/lib/commands/skill/templates.js +1 -1
  82. package/lib/commands/skill/validate.js +1 -1
  83. package/lib/commands/sql/detail.js +1 -1
  84. package/lib/commands/sql/exec.js +1 -1
  85. package/lib/commands/sql/index.js +1 -1
  86. package/lib/commands/update.js +1 -1
  87. package/lib/commands/user-account/bind.js +1 -1
  88. package/lib/commands/user-account/index.js +1 -1
  89. package/lib/commands/workspace/index.js +1 -1
  90. package/lib/config/domain-config.d.ts +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.d.ts +1 -1
  93. package/lib/config/schema.js +1 -1
  94. package/lib/constant/app.js +1 -1
  95. package/lib/constant/auth-mode.js +1 -1
  96. package/lib/constant/cli.js +1 -1
  97. package/lib/constant/defaults.js +1 -1
  98. package/lib/constant/distribution.js +1 -1
  99. package/lib/constant/domain.d.ts +6 -3
  100. package/lib/constant/domain.js +1 -1
  101. package/lib/constant/env.js +1 -1
  102. package/lib/constant/output.js +1 -1
  103. package/lib/constant/product.js +1 -1
  104. package/lib/constant/region.js +1 -1
  105. package/lib/constant/risk.js +1 -1
  106. package/lib/constant/url.js +1 -1
  107. package/lib/context.js +1 -1
  108. package/lib/core/api-client.d.ts +0 -16
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-search-client.d.ts +30 -0
  112. package/lib/core/kb-search-client.js +1 -0
  113. package/lib/core/sdk-client.js +1 -1
  114. package/lib/errors.js +1 -1
  115. package/lib/framework/build-all-flags.js +1 -1
  116. package/lib/framework/dryrun.js +1 -1
  117. package/lib/framework/flags.js +1 -1
  118. package/lib/framework/help.js +1 -1
  119. package/lib/framework/index.js +1 -1
  120. package/lib/framework/output.js +1 -1
  121. package/lib/framework/preparse.js +1 -1
  122. package/lib/framework/rate-limit.js +1 -1
  123. package/lib/framework/raw-flags.js +1 -1
  124. package/lib/framework/response.js +1 -1
  125. package/lib/framework/runner-confirmation.js +1 -1
  126. package/lib/framework/runner-error.js +1 -1
  127. package/lib/framework/runner.js +1 -1
  128. package/lib/framework/schema-export.js +1 -1
  129. package/lib/framework/service-order.js +1 -1
  130. package/lib/framework/types.d.ts +2 -0
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.d.ts +4 -4
  133. package/lib/generated/build-info.js +1 -1
  134. package/lib/help.js +1 -1
  135. package/lib/postinstall.js +1 -1
  136. package/lib/runtime/confirmation.js +1 -1
  137. package/lib/runtime/event.js +1 -1
  138. package/lib/runtime/index.js +1 -1
  139. package/lib/runtime/queue.js +1 -1
  140. package/lib/runtime/resolve.js +1 -1
  141. package/lib/skills/builtin-skill.js +1 -1
  142. package/lib/skills/npx-skills-add.js +1 -1
  143. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  144. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  145. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  146. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  147. package/lib/skills/runtime-skill-sync/links.js +1 -1
  148. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  149. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  150. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  151. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  152. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  153. package/lib/skills/runtime-skill-sync/push.js +1 -1
  154. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  155. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  156. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  157. package/lib/skills/runtime-skill-sync.js +1 -1
  158. package/lib/skills/skill-presence.js +1 -1
  159. package/lib/utils/access-key-redaction.js +1 -1
  160. package/lib/utils/apply-jq-filter.js +1 -1
  161. package/lib/utils/cli-version-check.js +1 -1
  162. package/lib/utils/cli-version-policy.js +1 -1
  163. package/lib/utils/logger.js +1 -1
  164. package/lib/utils/lossless-json.js +1 -1
  165. package/lib/utils/params.js +1 -1
  166. package/lib/utils/platform.js +1 -1
  167. package/lib/utils/update-notice.js +1 -1
  168. package/lib/utils/version.js +1 -1
  169. package/lib/utils/write-cli-side-channel.js +1 -1
  170. package/package.json +1 -1
  171. package/skills/lovrabet/SKILL.md +3 -2
  172. package/skills/lovrabet/guides/sql-and-bff-workflow.md +1 -1
  173. package/skills/lovrabet/references/lovrabet-config-commands.md +7 -6
  174. package/skills/lovrabet/references/lovrabet-config.md +9 -8
  175. package/skills/lovrabet/references/lovrabet-doctor.md +2 -0
  176. package/skills/lovrabet/references/lovrabet-kb-workflow.md +3 -1
  177. package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +32 -0
  178. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x16ec4b,_0x2f98dc){const _0x10811c=a144_0x12ec,_0x4d6df0=_0x16ec4b();while(!![]){try{const _0x111812=-parseInt(_0x10811c(0x1fa))/0x1*(parseInt(_0x10811c(0x1cb))/0x2)+parseInt(_0x10811c(0x207))/0x3+-parseInt(_0x10811c(0x1fe))/0x4*(-parseInt(_0x10811c(0x205))/0x5)+parseInt(_0x10811c(0x1e3))/0x6*(-parseInt(_0x10811c(0x1dc))/0x7)+-parseInt(_0x10811c(0x203))/0x8+parseInt(_0x10811c(0x1d5))/0x9+parseInt(_0x10811c(0x206))/0xa;if(_0x111812===_0x2f98dc)break;else _0x4d6df0['push'](_0x4d6df0['shift']());}catch(_0x2629cf){_0x4d6df0['push'](_0x4d6df0['shift']());}}}(a144_0x2a1d,0xb2d55));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a144_0x4a19ac}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';function a144_0x2a1d(){const _0x28dca4=['\x20has\x20scope=\x22','scope','object','ignoreInvalidMetadata','validation','personal','28742WYemvv','startsWith','match','string','tags','appCode','Missing\x20','\x20name\x20for\x20SkillHub\x20slug\x20generation.','builtin','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','1190610EiOeIh','ignoreMetadataAppCodeMismatch','path','replace','utf8','number','skillCode','2523332AAfdVk','find','slice','isArray','sourceSessionId','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','boolean','6KyrFgt','Remote\x20Skill\x20','name','isFile','dir','packageBase64','isDirectory','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','company','ignoreMetadataScope','skillName','example','files','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20',',\x20or\x20directory\x20name.','refreshedAt','excludedFilePaths','Skill\x20directory\x20not\x20found:\x20','pushedAt','version','content','description','ignoreMetadataForPayload','59FEINNd','displayName','ignoreMetadataSkillCode','metadata','732616gfTUXz','Unable\x20to\x20resolve\x20skillCode\x20from\x20','targetScope','Invalid\x20','trim','7800152hIgsOR','manifest','35zgzoWA','5490990cKXmPl','2857254xdLNWI'];a144_0x2a1d=function(){return _0x28dca4;};return a144_0x2a1d();}import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';function a144_0x12ec(_0x430fbc,_0x129b61){_0x430fbc=_0x430fbc-0x1c9;const _0x2a1dd4=a144_0x2a1d();let _0x12ecfb=_0x2a1dd4[_0x430fbc];return _0x12ecfb;}import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x14e544,_0x5a9ee0,_0x4a9160={}){const _0x367009=a144_0x12ec,_0x2508c0=resolvePushDirectoryRoot(_0x14e544),_0x5a4e2d=readPushMetadataIfPresent(resolve(_0x2508c0,METADATA_FILE),{'ignoreInvalidMetadata':_0x4a9160[_0x367009(0x20b)]});if(_0x5a4e2d?.[_0x367009(0x1d0)]&&_0x5a4e2d['appCode']!==_0x5a9ee0&&!_0x4a9160['allowAppCodeRetarget']&&!_0x4a9160[_0x367009(0x1d6)])throw CliErrors[_0x367009(0x1c9)]('Skill\x20metadata\x20appCode\x20\x22'+_0x5a4e2d['appCode']+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x5a9ee0+'\x22.');const _0xbb0d74=resolvePushSkillCode(_0x2508c0,_0x5a9ee0,_0x5a4e2d,_0x4a9160);if(!_0xbb0d74)throw CliErrors[_0x367009(0x1c9)](_0x367009(0x1ff)+SKILL_FILE+',\x20'+METADATA_FILE+_0x367009(0x1f1));return{'dir':_0x2508c0,'skillCode':_0xbb0d74,'metadata':_0x5a4e2d};}export function readPushDirectory(_0x546b5e,_0x19a699,_0x2f200e={}){const _0x3a7e2a=a144_0x12ec,_0x44520f=resolvePushDirectoryIdentity(_0x546b5e,_0x19a699,_0x2f200e),_0x3727be=_0x44520f[_0x3a7e2a(0x1e7)],_0x5d7b29=resolve(_0x3727be,SKILL_FILE);if(!existsSync(_0x5d7b29)||!lstatSync(_0x5d7b29)[_0x3a7e2a(0x1e6)]())throw CliErrors[_0x3a7e2a(0x1c9)](_0x3a7e2a(0x1d1)+SKILL_FILE+':\x20'+_0x5d7b29);const _0x2942d7=_0x44520f[_0x3a7e2a(0x1fd)],_0x567ebf=_0x2f200e[_0x3a7e2a(0x200)]??_0x3a7e2a(0x1ca);if(!_0x2f200e['ignoreMetadataScope']&&_0x2942d7?.['scope']===_0x3a7e2a(0x1d3))throw CliErrors['validation'](_0x3a7e2a(0x1f0)+METADATA_FILE+_0x3a7e2a(0x208)+_0x2942d7['scope']+'\x22.');if(!_0x2f200e[_0x3a7e2a(0x1ec)]&&_0x567ebf===_0x3a7e2a(0x1ca)&&_0x2942d7?.['scope']&&_0x2942d7[_0x3a7e2a(0x209)]!==_0x3a7e2a(0x1ca))throw CliErrors[_0x3a7e2a(0x1c9)](_0x3a7e2a(0x1d4)+METADATA_FILE+_0x3a7e2a(0x208)+_0x2942d7[_0x3a7e2a(0x209)]+'\x22.',_0x3a7e2a(0x1e1)+_0x3727be+_0x3a7e2a(0x1ea));const _0x36b896=scanSkillDirectory(_0x3727be,{'excludedFilePaths':_0x2f200e[_0x3a7e2a(0x1f3)]}),_0x3c42e6=buildSkillPackage(_0x36b896),_0x22378b=readFileSync(_0x5d7b29,'utf8'),_0x307769=_0x44520f[_0x3a7e2a(0x1db)],_0x5967a9=_0x2f200e[_0x3a7e2a(0x1f9)]?undefined:_0x2942d7,_0x48d3f1=readSkillDisplayName(_0x22378b);return{'skillCode':_0x307769,'metadata':_0x2942d7,'frontmatterDisplayName':_0x48d3f1,'input':{'skillCode':_0x307769,'skillName':_0x48d3f1??_0x5967a9?.[_0x3a7e2a(0x1ed)],'description':_0x5967a9?.[_0x3a7e2a(0x1f8)],'content':_0x22378b,'files':_0x3c42e6[_0x3a7e2a(0x204)],'packageBase64':_0x3c42e6[_0x3a7e2a(0x1e8)],'tags':_0x5967a9?.[_0x3a7e2a(0x1cf)],'version':_0x5967a9?.[_0x3a7e2a(0x1f6)],'sourceSessionId':_0x5967a9?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x3dc65f,_0x1251f1,_0xe75387,_0x2ece6b={}){const _0x5addbd=a144_0x12ec,_0x22e427=resolvePushDirectoryRoot(_0x3dc65f),_0xb21343=readPushMetadataIfPresent(resolve(_0x22e427,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x2b7fb6=requireRemoteScope(_0x1251f1),_0x5bbe18=readLocalSkillContent(_0x22e427),_0x36bd99={..._0x1251f1,'appCode':_0x1251f1['appCode']??_0xe75387,'skillName':_0x1251f1[_0x5addbd(0x1ed)]??_0xb21343?.[_0x5addbd(0x1ed)],'description':_0x1251f1[_0x5addbd(0x1f8)]??_0xb21343?.['description'],'example':_0x1251f1['example']??_0xb21343?.[_0x5addbd(0x1ee)],'tags':Array[_0x5addbd(0x1df)](_0x1251f1[_0x5addbd(0x1cf)])?_0x1251f1[_0x5addbd(0x1cf)]:_0xb21343?.[_0x5addbd(0x1cf)],'sourceSessionId':_0x1251f1[_0x5addbd(0x1e0)]??_0xb21343?.[_0x5addbd(0x1e0)],'content':_0x1251f1[_0x5addbd(0x1f7)]??_0x5bbe18},_0xfa6e9b=buildMetadata(_0x36bd99,_0x2b7fb6,_0xe75387,contentHash(_0x5bbe18),_0x2ece6b[_0x5addbd(0x1f2)]);writeJsonAtomic(resolve(_0x22e427,METADATA_FILE),_0xfa6e9b);}export function recordPushedRuntimeSkill(_0x1b1fb4,_0x23648f,_0x5c4944,_0x17760a={}){const _0x5848ce=a144_0x12ec,_0x5d1a59=resolvePushDirectoryRoot(_0x1b1fb4),_0x1365f5=scanSkillDirectory(_0x5d1a59),_0x4bcbfe=_0x1365f5[_0x5848ce(0x1dd)](_0x115533=>_0x115533[_0x5848ce(0x1d7)]===SKILL_FILE),_0x366376=_0x4bcbfe?fileText(_0x4bcbfe):'',_0x192804=tryNormalizePackageManifest(_0x23648f['files']),_0x14ffee={..._0x23648f,'content':_0x23648f[_0x5848ce(0x1f7)]??_0x366376,'files':_0x192804},_0xe22d0e=_0x192804?normalizeLocalFiles(_0x1365f5)['filter'](_0x4c9877=>_0x192804[_0x5848ce(0x1ef)]['some'](_0x32cdbf=>_0x32cdbf['path']===_0x4c9877['path'])):undefined,_0x4662a4=buildMetadata(_0x14ffee,_0x17760a[_0x5848ce(0x209)]??_0x5848ce(0x1ca),_0x5c4944,contentHash(_0x14ffee['content']??''),_0x17760a[_0x5848ce(0x1f5)],_0xe22d0e);writeJsonAtomic(resolve(_0x5d1a59,METADATA_FILE),_0x4662a4);}export function deriveSkillCodeFromDirectory(_0x94c70,_0x2f3d48){const _0x56dc96=a144_0x12ec,_0x1193e7=basename(resolve(_0x94c70)),_0x2955c2=_0x2f3d48+'--';return _0x1193e7[_0x56dc96(0x1cc)](_0x2955c2)?_0x1193e7[_0x56dc96(0x1de)](_0x2955c2['length']):_0x1193e7;}function resolvePushSkillCode(_0x9af777,_0x5e15d7,_0x1d8380,_0x5ed767){const _0x4e6058=a144_0x12ec,_0xc8fe64=deriveSkillCodeFromSkillFile(_0x9af777)||deriveSkillCodeFromDirectory(_0x9af777,_0x5e15d7);if(_0x5ed767[_0x4e6058(0x1fc)])return _0xc8fe64;return _0x1d8380?.[_0x4e6058(0x1db)]?.['trim']()||_0xc8fe64;}function deriveSkillCodeFromSkillFile(_0x3f1e1d){const _0x400f33=a144_0x12ec,_0x17b8ae=resolve(_0x3f1e1d,SKILL_FILE);if(!existsSync(_0x17b8ae)||!lstatSync(_0x17b8ae)['isFile']())return undefined;const _0x183b5e=readFileSync(_0x17b8ae,_0x400f33(0x1d9)),_0x1e8937=_0x183b5e[_0x400f33(0x1cd)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1e8937)return undefined;const _0x44b1cc=parseFrontmatterObject(_0x1e8937[0x1]??''),_0x43c12c=scalarToString(_0x44b1cc?.[_0x400f33(0x1e5)]);return _0x43c12c?slugifySkillName(_0x43c12c):undefined;}function readSkillDisplayName(_0x4f4903){const _0x2ca85e=a144_0x12ec,_0x1556fc=_0x4f4903['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1556fc)return undefined;const _0x2ce7f8=parseFrontmatterObject(_0x1556fc[0x1]??'');return scalarToString(_0x2ce7f8?.[_0x2ca85e(0x1fb)]);}function slugifySkillName(_0x46d4de){const _0x3fd966=a144_0x12ec,_0x53dc4c=_0x46d4de[_0x3fd966(0x202)]()['toLowerCase']()[_0x3fd966(0x1d8)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x3fd966(0x1d8)](/^-+/,'')[_0x3fd966(0x1d8)](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0x53dc4c)throw CliErrors[_0x3fd966(0x1c9)](_0x3fd966(0x201)+SKILL_FILE+_0x3fd966(0x1d2));return _0x53dc4c;}function parseFrontmatterObject(_0x24edeb){const _0x465b52=a144_0x12ec;try{const _0x172b6c=a144_0x4a19ac(_0x24edeb);return _0x172b6c&&typeof _0x172b6c===_0x465b52(0x20a)&&!Array['isArray'](_0x172b6c)?_0x172b6c:undefined;}catch{return undefined;}}function scalarToString(_0x990be6){const _0x297993=a144_0x12ec;if(typeof _0x990be6===_0x297993(0x1ce))return _0x990be6[_0x297993(0x202)]();if(typeof _0x990be6===_0x297993(0x1da)||typeof _0x990be6===_0x297993(0x1e2))return String(_0x990be6);return undefined;}function resolvePushDirectoryRoot(_0x51a7aa){const _0x5b0db6=a144_0x12ec,_0x16b586=resolve(_0x51a7aa);if(!existsSync(_0x16b586))throw CliErrors[_0x5b0db6(0x1c9)](_0x5b0db6(0x1f4)+_0x51a7aa);const _0xfe8cac=lstatSync(_0x16b586);if(_0xfe8cac[_0x5b0db6(0x1e9)]())return _0x16b586;if(_0xfe8cac['isSymbolicLink']()){const _0x2145e1=realpathSync(_0x16b586);if(lstatSync(_0x2145e1)['isDirectory']())return _0x2145e1;}throw CliErrors[_0x5b0db6(0x1c9)](_0x5b0db6(0x1f4)+_0x51a7aa);}function requireRemoteScope(_0x295242){const _0x60d77b=a144_0x12ec;if(_0x295242['scope']===_0x60d77b(0x1ca)||_0x295242[_0x60d77b(0x209)]===_0x60d77b(0x1eb)||_0x295242[_0x60d77b(0x209)]==='builtin')return _0x295242[_0x60d77b(0x209)];throw CliErrors['validation'](_0x60d77b(0x1e4)+(_0x295242[_0x60d77b(0x1db)]||'(unknown)')+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x295242[_0x60d77b(0x209)]??'unknown')+'\x22.');}function readLocalSkillContent(_0x4b4f7b){const _0x3ad7fc=a144_0x12ec,_0x3abe3d=resolve(_0x4b4f7b,SKILL_FILE);return existsSync(_0x3abe3d)&&lstatSync(_0x3abe3d)[_0x3ad7fc(0x1e6)]()?readFileSync(_0x3abe3d,_0x3ad7fc(0x1d9)):'';}function readPushMetadataIfPresent(_0x12d74d,_0xc59146={}){const _0x36f881=a144_0x12ec;try{return readMetadataIfPresent(_0x12d74d);}catch(_0x34fb52){if(_0xc59146[_0x36f881(0x20b)])return undefined;throw _0x34fb52;}}
1
+ (function(_0xed754a,_0x4ba896){const _0x48be78=a145_0x2f6f,_0x35be1e=_0xed754a();while(!![]){try{const _0x4f1c05=parseInt(_0x48be78(0x152))/0x1*(-parseInt(_0x48be78(0x161))/0x2)+parseInt(_0x48be78(0x18d))/0x3*(parseInt(_0x48be78(0x157))/0x4)+parseInt(_0x48be78(0x18b))/0x5+-parseInt(_0x48be78(0x17f))/0x6+parseInt(_0x48be78(0x176))/0x7+parseInt(_0x48be78(0x186))/0x8+parseInt(_0x48be78(0x15f))/0x9*(-parseInt(_0x48be78(0x149))/0xa);if(_0x4f1c05===_0x4ba896)break;else _0x35be1e['push'](_0x35be1e['shift']());}catch(_0x4ffe32){_0x35be1e['push'](_0x35be1e['shift']());}}}(a145_0x1c5e,0xde884));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a145_0x499a18}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(_0x1c95f0,_0x5a2240,_0x1828be={}){const _0x1e4358=a145_0x2f6f,_0xc49d25=resolvePushDirectoryRoot(_0x1c95f0),_0x5530fa=readPushMetadataIfPresent(resolve(_0xc49d25,METADATA_FILE),{'ignoreInvalidMetadata':_0x1828be['ignoreInvalidMetadata']});if(_0x5530fa?.[_0x1e4358(0x15d)]&&_0x5530fa[_0x1e4358(0x15d)]!==_0x5a2240&&!_0x1828be[_0x1e4358(0x185)]&&!_0x1828be[_0x1e4358(0x16e)])throw CliErrors['validation'](_0x1e4358(0x167)+_0x5530fa[_0x1e4358(0x15d)]+_0x1e4358(0x16f)+_0x5a2240+'\x22.');const _0x2be15d=resolvePushSkillCode(_0xc49d25,_0x5a2240,_0x5530fa,_0x1828be);if(!_0x2be15d)throw CliErrors[_0x1e4358(0x179)](_0x1e4358(0x160)+SKILL_FILE+',\x20'+METADATA_FILE+_0x1e4358(0x180));return{'dir':_0xc49d25,'skillCode':_0x2be15d,'metadata':_0x5530fa};}export function readPushDirectory(_0x40a796,_0x72c730,_0x51a6d9={}){const _0x3e01ed=a145_0x2f6f,_0x4029d0=resolvePushDirectoryIdentity(_0x40a796,_0x72c730,_0x51a6d9),_0x16574b=_0x4029d0[_0x3e01ed(0x183)],_0x2cdec8=resolve(_0x16574b,SKILL_FILE);if(!existsSync(_0x2cdec8)||!lstatSync(_0x2cdec8)[_0x3e01ed(0x17c)]())throw CliErrors[_0x3e01ed(0x179)](_0x3e01ed(0x177)+SKILL_FILE+':\x20'+_0x2cdec8);const _0x38fd64=_0x4029d0[_0x3e01ed(0x16a)],_0x25a1ac=_0x51a6d9[_0x3e01ed(0x154)]??_0x3e01ed(0x18a);if(!_0x51a6d9['ignoreMetadataScope']&&_0x38fd64?.[_0x3e01ed(0x188)]===_0x3e01ed(0x15c))throw CliErrors[_0x3e01ed(0x179)](_0x3e01ed(0x155)+METADATA_FILE+_0x3e01ed(0x181)+_0x38fd64['scope']+'\x22.');if(!_0x51a6d9['ignoreMetadataScope']&&_0x25a1ac===_0x3e01ed(0x18a)&&_0x38fd64?.[_0x3e01ed(0x188)]&&_0x38fd64[_0x3e01ed(0x188)]!==_0x3e01ed(0x18a))throw CliErrors[_0x3e01ed(0x179)](_0x3e01ed(0x166)+METADATA_FILE+_0x3e01ed(0x181)+_0x38fd64[_0x3e01ed(0x188)]+'\x22.',_0x3e01ed(0x191)+_0x16574b+_0x3e01ed(0x14d));const _0x450f12=scanSkillDirectory(_0x16574b,{'excludedFilePaths':_0x51a6d9['excludedFilePaths']}),_0x235ea1=buildSkillPackage(_0x450f12),_0x38085f=readFileSync(_0x2cdec8,_0x3e01ed(0x165)),_0x1f1e47=_0x4029d0[_0x3e01ed(0x18f)],_0x3380ed=_0x51a6d9[_0x3e01ed(0x189)]?undefined:_0x38fd64,_0xf6d43f=readSkillDisplayName(_0x38085f);return{'skillCode':_0x1f1e47,'metadata':_0x38fd64,'frontmatterDisplayName':_0xf6d43f,'input':{'skillCode':_0x1f1e47,'skillName':_0xf6d43f??_0x3380ed?.[_0x3e01ed(0x163)],'description':_0x3380ed?.[_0x3e01ed(0x171)],'content':_0x38085f,'files':_0x235ea1[_0x3e01ed(0x190)],'packageBase64':_0x235ea1[_0x3e01ed(0x18e)],'tags':_0x3380ed?.[_0x3e01ed(0x150)],'version':_0x3380ed?.[_0x3e01ed(0x175)],'sourceSessionId':_0x3380ed?.[_0x3e01ed(0x169)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x16dfa9,_0x276d5c,_0x2c97f3,_0x330fa8={}){const _0xcc6eb2=a145_0x2f6f,_0x1619fd=resolvePushDirectoryRoot(_0x16dfa9),_0x1734d6=readPushMetadataIfPresent(resolve(_0x1619fd,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x1d1272=requireRemoteScope(_0x276d5c),_0x376803=readLocalSkillContent(_0x1619fd),_0x1ce64b={..._0x276d5c,'appCode':_0x276d5c[_0xcc6eb2(0x15d)]??_0x2c97f3,'skillName':_0x276d5c[_0xcc6eb2(0x163)]??_0x1734d6?.[_0xcc6eb2(0x163)],'description':_0x276d5c[_0xcc6eb2(0x171)]??_0x1734d6?.[_0xcc6eb2(0x171)],'example':_0x276d5c[_0xcc6eb2(0x182)]??_0x1734d6?.['example'],'tags':Array[_0xcc6eb2(0x14c)](_0x276d5c[_0xcc6eb2(0x150)])?_0x276d5c[_0xcc6eb2(0x150)]:_0x1734d6?.[_0xcc6eb2(0x150)],'sourceSessionId':_0x276d5c[_0xcc6eb2(0x169)]??_0x1734d6?.[_0xcc6eb2(0x169)],'content':_0x276d5c[_0xcc6eb2(0x17b)]??_0x376803},_0x42597a=buildMetadata(_0x1ce64b,_0x1d1272,_0x2c97f3,contentHash(_0x376803),_0x330fa8[_0xcc6eb2(0x170)]);writeJsonAtomic(resolve(_0x1619fd,METADATA_FILE),_0x42597a);}export function recordPushedRuntimeSkill(_0x4a3abc,_0x5a7418,_0xe51337,_0x398c66={}){const _0x33f02b=a145_0x2f6f,_0x479c34=resolvePushDirectoryRoot(_0x4a3abc),_0x581f1d=scanSkillDirectory(_0x479c34),_0x37d325=_0x581f1d[_0x33f02b(0x14a)](_0x3fc01a=>_0x3fc01a[_0x33f02b(0x172)]===SKILL_FILE),_0x385342=_0x37d325?fileText(_0x37d325):'',_0x488f88=tryNormalizePackageManifest(_0x5a7418[_0x33f02b(0x173)]),_0x16d6be={..._0x5a7418,'content':_0x5a7418[_0x33f02b(0x17b)]??_0x385342,'files':_0x488f88},_0xa969a9=_0x488f88?normalizeLocalFiles(_0x581f1d)[_0x33f02b(0x158)](_0x9c1a81=>_0x488f88[_0x33f02b(0x173)]['some'](_0xfaf38=>_0xfaf38['path']===_0x9c1a81['path'])):undefined,_0x5a0f9e=buildMetadata(_0x16d6be,_0x398c66[_0x33f02b(0x188)]??_0x33f02b(0x18a),_0xe51337,contentHash(_0x16d6be[_0x33f02b(0x17b)]??''),_0x398c66[_0x33f02b(0x14b)],_0xa969a9);writeJsonAtomic(resolve(_0x479c34,METADATA_FILE),_0x5a0f9e);}function a145_0x2f6f(_0x1058f8,_0x52f9b9){_0x1058f8=_0x1058f8-0x149;const _0x1c5eb3=a145_0x1c5e();let _0x2f6fc2=_0x1c5eb3[_0x1058f8];return _0x2f6fc2;}export function deriveSkillCodeFromDirectory(_0x55ff90,_0x380e93){const _0x2747aa=a145_0x2f6f,_0x30ca82=basename(resolve(_0x55ff90)),_0xb44581=_0x380e93+'--';return _0x30ca82[_0x2747aa(0x15b)](_0xb44581)?_0x30ca82[_0x2747aa(0x14e)](_0xb44581[_0x2747aa(0x14f)]):_0x30ca82;}function resolvePushSkillCode(_0x352117,_0x4f2fc7,_0x36d631,_0x2158a3){const _0x512300=a145_0x2f6f,_0x14846e=deriveSkillCodeFromSkillFile(_0x352117)||deriveSkillCodeFromDirectory(_0x352117,_0x4f2fc7);if(_0x2158a3[_0x512300(0x16c)])return _0x14846e;return _0x36d631?.[_0x512300(0x18f)]?.['trim']()||_0x14846e;}function deriveSkillCodeFromSkillFile(_0x597930){const _0x548f75=a145_0x2f6f,_0x231bf7=resolve(_0x597930,SKILL_FILE);if(!existsSync(_0x231bf7)||!lstatSync(_0x231bf7)[_0x548f75(0x17c)]())return undefined;const _0x5e7a71=readFileSync(_0x231bf7,'utf8'),_0x49569b=_0x5e7a71[_0x548f75(0x164)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x49569b)return undefined;const _0xa5b6fb=parseFrontmatterObject(_0x49569b[0x1]??''),_0x59939b=scalarToString(_0xa5b6fb?.[_0x548f75(0x174)]);return _0x59939b?slugifySkillName(_0x59939b):undefined;}function readSkillDisplayName(_0x667c56){const _0x223136=a145_0x2f6f,_0x1c507f=_0x667c56[_0x223136(0x164)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1c507f)return undefined;const _0x3583ec=parseFrontmatterObject(_0x1c507f[0x1]??'');return scalarToString(_0x3583ec?.[_0x223136(0x17a)]);}function slugifySkillName(_0x2f6416){const _0xe08daf=a145_0x2f6f,_0xf76c7a=_0x2f6416[_0xe08daf(0x159)]()[_0xe08daf(0x162)]()['replace'](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0xe08daf(0x17e)](/^-+/,'')[_0xe08daf(0x17e)](/-+$/,'')[_0xe08daf(0x17e)](/-{2,}/g,'-');if(!_0xf76c7a)throw CliErrors[_0xe08daf(0x179)]('Invalid\x20'+SKILL_FILE+_0xe08daf(0x156));return _0xf76c7a;}function parseFrontmatterObject(_0x45daed){const _0x465cdc=a145_0x2f6f;try{const _0x19adc6=a145_0x499a18(_0x45daed);return _0x19adc6&&typeof _0x19adc6===_0x465cdc(0x168)&&!Array[_0x465cdc(0x14c)](_0x19adc6)?_0x19adc6:undefined;}catch{return undefined;}}function scalarToString(_0x2d3eaf){const _0x4179e3=a145_0x2f6f;if(typeof _0x2d3eaf===_0x4179e3(0x178))return _0x2d3eaf['trim']();if(typeof _0x2d3eaf===_0x4179e3(0x17d)||typeof _0x2d3eaf===_0x4179e3(0x187))return String(_0x2d3eaf);return undefined;}function a145_0x1c5e(){const _0x23f561=['1RMiDME','company','targetScope','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','\x20name\x20for\x20SkillHub\x20slug\x20generation.','44cchLay','filter','trim','unknown','startsWith','builtin','appCode','Remote\x20Skill\x20','78327UEIQkN','Unable\x20to\x20resolve\x20skillCode\x20from\x20','1034342oKnzZG','toLowerCase','skillName','match','utf8','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','Skill\x20metadata\x20appCode\x20\x22','object','sourceSessionId','metadata','isDirectory','ignoreMetadataSkillCode','Skill\x20directory\x20not\x20found:\x20','ignoreMetadataAppCodeMismatch','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','refreshedAt','description','path','files','name','version','4347014nvfwRQ','Missing\x20','string','validation','displayName','content','isFile','number','replace','9358068lrTTNG',',\x20or\x20directory\x20name.','\x20has\x20scope=\x22','example','dir','(unknown)','allowAppCodeRetarget','8691408XhnHEv','boolean','scope','ignoreMetadataForPayload','personal','7696735MCcAFu','\x20has\x20unsupported\x20scope\x20\x22','164499jEkueb','packageBase64','skillCode','manifest','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','990AASmAI','find','pushedAt','isArray','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','slice','length','tags','isSymbolicLink'];a145_0x1c5e=function(){return _0x23f561;};return a145_0x1c5e();}function resolvePushDirectoryRoot(_0x571b54){const _0x51df1a=a145_0x2f6f,_0x4f8d25=resolve(_0x571b54);if(!existsSync(_0x4f8d25))throw CliErrors[_0x51df1a(0x179)](_0x51df1a(0x16d)+_0x571b54);const _0x20bb83=lstatSync(_0x4f8d25);if(_0x20bb83[_0x51df1a(0x16b)]())return _0x4f8d25;if(_0x20bb83[_0x51df1a(0x151)]()){const _0x185b28=realpathSync(_0x4f8d25);if(lstatSync(_0x185b28)[_0x51df1a(0x16b)]())return _0x185b28;}throw CliErrors[_0x51df1a(0x179)](_0x51df1a(0x16d)+_0x571b54);}function requireRemoteScope(_0x2f87b6){const _0x25dacb=a145_0x2f6f;if(_0x2f87b6[_0x25dacb(0x188)]==='personal'||_0x2f87b6[_0x25dacb(0x188)]===_0x25dacb(0x153)||_0x2f87b6[_0x25dacb(0x188)]===_0x25dacb(0x15c))return _0x2f87b6[_0x25dacb(0x188)];throw CliErrors['validation'](_0x25dacb(0x15e)+(_0x2f87b6[_0x25dacb(0x18f)]||_0x25dacb(0x184))+_0x25dacb(0x18c)+(_0x2f87b6[_0x25dacb(0x188)]??_0x25dacb(0x15a))+'\x22.');}function readLocalSkillContent(_0x21631f){const _0x5f26ff=a145_0x2f6f,_0x7bbe53=resolve(_0x21631f,SKILL_FILE);return existsSync(_0x7bbe53)&&lstatSync(_0x7bbe53)[_0x5f26ff(0x17c)]()?readFileSync(_0x7bbe53,_0x5f26ff(0x165)):'';}function readPushMetadataIfPresent(_0x28d689,_0x1680dd={}){try{return readMetadataIfPresent(_0x28d689);}catch(_0x166e59){if(_0x1680dd['ignoreInvalidMetadata'])return undefined;throw _0x166e59;}}
@@ -1 +1 @@
1
- (function(_0x174369,_0x531a43){const _0x460fea=a145_0x2ddb,_0x25eb2f=_0x174369();while(!![]){try{const _0xde1bf9=parseInt(_0x460fea(0x7a))/0x1+parseInt(_0x460fea(0x6f))/0x2*(-parseInt(_0x460fea(0x73))/0x3)+-parseInt(_0x460fea(0x6c))/0x4*(-parseInt(_0x460fea(0x6e))/0x5)+-parseInt(_0x460fea(0x79))/0x6+-parseInt(_0x460fea(0x77))/0x7*(parseInt(_0x460fea(0x72))/0x8)+parseInt(_0x460fea(0x75))/0x9+parseInt(_0x460fea(0x71))/0xa;if(_0xde1bf9===_0x531a43)break;else _0x25eb2f['push'](_0x25eb2f['shift']());}catch(_0x3bae84){_0x25eb2f['push'](_0x25eb2f['shift']());}}}(a145_0x54ee,0x949f7));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x599cf4){const _0xb0c86e=a145_0x2ddb,_0x4fca01=_0x599cf4&&_0x599cf4[_0xb0c86e(0x6b)]>0x0?_0x599cf4:[_0xb0c86e(0x70),_0xb0c86e(0x6d),_0xb0c86e(0x78)],_0x883ae1=[];for(const _0x43f8fa of _0x4fca01){if(!isRuntimeSkillScope(_0x43f8fa))throw CliErrors['validation'](_0xb0c86e(0x76)+_0x43f8fa);!_0x883ae1['includes'](_0x43f8fa)&&_0x883ae1[_0xb0c86e(0x74)](_0x43f8fa);}return _0x883ae1;}function a145_0x2ddb(_0x1653fd,_0x345176){_0x1653fd=_0x1653fd-0x6b;const _0x54ee79=a145_0x54ee();let _0x2ddb67=_0x54ee79[_0x1653fd];return _0x2ddb67;}function a145_0x54ee(){const _0x2db18d=['builtin','6552474XwkHmp','307962CgyBTA','length','4QdqNLg','company','1947415tfhVjQ','8psDNQN','personal','28909540QIpGKd','5758712AwDehj','897363VXVZzn','push','258858rJzLJW','Unsupported\x20runtime\x20Skill\x20scope:\x20','7hJHXkm'];a145_0x54ee=function(){return _0x2db18d;};return a145_0x54ee();}export function isRuntimeSkillScope(_0x520bde){const _0x566bf4=a145_0x2ddb;return _0x520bde===_0x566bf4(0x70)||_0x520bde===_0x566bf4(0x6d)||_0x520bde===_0x566bf4(0x78);}
1
+ (function(_0x3a2bd0,_0xc90626){const _0x4fed8b=a146_0x10dc,_0xed8bad=_0x3a2bd0();while(!![]){try{const _0x153b6e=parseInt(_0x4fed8b(0x6b))/0x1*(parseInt(_0x4fed8b(0x73))/0x2)+-parseInt(_0x4fed8b(0x70))/0x3*(-parseInt(_0x4fed8b(0x64))/0x4)+-parseInt(_0x4fed8b(0x6a))/0x5*(-parseInt(_0x4fed8b(0x6c))/0x6)+parseInt(_0x4fed8b(0x74))/0x7+parseInt(_0x4fed8b(0x6f))/0x8+parseInt(_0x4fed8b(0x68))/0x9+-parseInt(_0x4fed8b(0x69))/0xa;if(_0x153b6e===_0xc90626)break;else _0xed8bad['push'](_0xed8bad['shift']());}catch(_0x5e615f){_0xed8bad['push'](_0xed8bad['shift']());}}}(a146_0x2559,0x218ee));import{CliErrors}from'../../errors.js';function a146_0x10dc(_0x2332a6,_0x443257){_0x2332a6=_0x2332a6-0x64;const _0x2559df=a146_0x2559();let _0x10dc7c=_0x2559df[_0x2332a6];return _0x10dc7c;}export function normalizeRuntimeSkillScopes(_0x5cb0c0){const _0x26f4cb=a146_0x10dc,_0x3be85b=_0x5cb0c0&&_0x5cb0c0['length']>0x0?_0x5cb0c0:[_0x26f4cb(0x65),_0x26f4cb(0x6e),_0x26f4cb(0x6d)],_0x352cb3=[];for(const _0x1fcf31 of _0x3be85b){if(!isRuntimeSkillScope(_0x1fcf31))throw CliErrors[_0x26f4cb(0x71)](_0x26f4cb(0x72)+_0x1fcf31);!_0x352cb3[_0x26f4cb(0x66)](_0x1fcf31)&&_0x352cb3[_0x26f4cb(0x67)](_0x1fcf31);}return _0x352cb3;}export function isRuntimeSkillScope(_0x5de5b9){const _0x5f271e=a146_0x10dc;return _0x5de5b9===_0x5f271e(0x65)||_0x5de5b9===_0x5f271e(0x6e)||_0x5de5b9==='builtin';}function a146_0x2559(){const _0xd25215=['215096yScEft','21198PEiWpE','validation','Unsupported\x20runtime\x20Skill\x20scope:\x20','45736gsZhxv','893046rQexhR','128skRYrc','personal','includes','push','1327671byFOXP','5258710xUHIjr','447465SRZYYR','2cULiHb','6OEMaWZ','builtin','company'];a146_0x2559=function(){return _0xd25215;};return a146_0x2559();}
@@ -1 +1 @@
1
- const a147_0x57ec36=a147_0x25b2;function a147_0x25b2(_0x825bfc,_0x333291){_0x825bfc=_0x825bfc-0xcd;const _0x1fe5e2=a147_0x1fe5();let _0x25b2d8=_0x1fe5e2[_0x825bfc];return _0x25b2d8;}function a147_0x1fe5(){const _0x30494f=['4852836hjEflJ','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','1980-01-01T00:00:00.000Z','642176zwHtiS','from','sort','30sOvbeU','map','11TYZBSe','endsWith','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','validation','59517GHMlgO','name','57916gmkKhL','1090718OktVLa','6FwnvjT','length','104126lhJMjq','7HXcCjg','path','1802230CnLUZR','21VsNMBk','object','code','entries'];a147_0x1fe5=function(){return _0x30494f;};return a147_0x1fe5();}(function(_0x918d93,_0x193df0){const _0x1de214=a147_0x25b2,_0x58c6f7=_0x918d93();while(!![]){try{const _0x31dddf=-parseInt(_0x1de214(0xd1))/0x1+parseInt(_0x1de214(0xce))/0x2+parseInt(_0x1de214(0xd5))/0x3*(-parseInt(_0x1de214(0xcd))/0x4)+-parseInt(_0x1de214(0xd4))/0x5*(parseInt(_0x1de214(0xcf))/0x6)+-parseInt(_0x1de214(0xd2))/0x7*(parseInt(_0x1de214(0xdc))/0x8)+parseInt(_0x1de214(0xe5))/0x9*(-parseInt(_0x1de214(0xdf))/0xa)+-parseInt(_0x1de214(0xe1))/0xb*(-parseInt(_0x1de214(0xd9))/0xc);if(_0x31dddf===_0x193df0)break;else _0x58c6f7['push'](_0x58c6f7['shift']());}catch(_0x5f12b0){_0x58c6f7['push'](_0x58c6f7['shift']());}}}(a147_0x1fe5,0x4544e));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a147_0x57ec36(0xdb));export function createDeterministicZipPackage(_0x197aed){const _0x503d29=a147_0x57ec36,_0x121925={};for(const _0x4c63ef of normalizeLocalFiles(_0x197aed)){_0x121925[_0x4c63ef[_0x503d29(0xd3)]]=fileContent(_0x4c63ef);}return Buffer[_0x503d29(0xdd)](zipSync(_0x121925,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x80f1f7){const _0x4e020c=a147_0x57ec36;if(_0x80f1f7[_0x4e020c(0xd0)]<0x16)throw CliErrors[_0x4e020c(0xe4)](_0x4e020c(0xda));let _0x22aafa;try{_0x22aafa=unzipSync(_0x80f1f7,{'filter'(_0x5eae10){const _0x287c39=_0x4e020c,_0x3ffde9=normalizeSkillRelativePath(_0x5eae10[_0x287c39(0xe6)]);if(_0x3ffde9[_0x287c39(0xe2)]('/'))throw CliErrors[_0x287c39(0xe4)](_0x287c39(0xe3)+_0x3ffde9);return!![];}});}catch(_0xf1a8cb){if(isRuntimeSkillValidationError(_0xf1a8cb))throw _0xf1a8cb;throw CliErrors['validation'](_0x4e020c(0xda));}return Object[_0x4e020c(0xd8)](_0x22aafa)[_0x4e020c(0xe0)](([_0x1971b4,_0x25d74f])=>({'path':normalizeSkillRelativePath(_0x1971b4),'bytes':Buffer[_0x4e020c(0xdd)](_0x25d74f)}))[_0x4e020c(0xde)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x5e39a5){const _0x440877=a147_0x57ec36;return typeof _0x5e39a5===_0x440877(0xd6)&&_0x5e39a5!==null&&_0x440877(0xd7)in _0x5e39a5&&_0x5e39a5['code']==='validation_error';}
1
+ (function(_0x4da6ba,_0x33f7f0){const _0x36c6f3=a148_0x4711,_0x567df4=_0x4da6ba();while(!![]){try{const _0x3b3c82=parseInt(_0x36c6f3(0x18f))/0x1*(-parseInt(_0x36c6f3(0x18b))/0x2)+-parseInt(_0x36c6f3(0x186))/0x3*(-parseInt(_0x36c6f3(0x18e))/0x4)+parseInt(_0x36c6f3(0x18d))/0x5+parseInt(_0x36c6f3(0x196))/0x6*(-parseInt(_0x36c6f3(0x188))/0x7)+-parseInt(_0x36c6f3(0x189))/0x8+parseInt(_0x36c6f3(0x184))/0x9+parseInt(_0x36c6f3(0x195))/0xa*(-parseInt(_0x36c6f3(0x18a))/0xb);if(_0x3b3c82===_0x33f7f0)break;else _0x567df4['push'](_0x567df4['shift']());}catch(_0x3560c8){_0x567df4['push'](_0x567df4['shift']());}}}(a148_0x5a57,0x70a23));function a148_0x5a57(){const _0x3bdd32=['4889610ZgaqUK','object','128637zGmLkc','code','389263qmvDBY','11216DBVdQk','416306PnSvdN','364pKpOWO','sort','3590250ATBQkO','40dONBNn','43NbSTGP','map','endsWith','validation_error','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','validation','190oXVWSU','54JZHUwh','from','name','entries'];a148_0x5a57=function(){return _0x3bdd32;};return a148_0x5a57();}import{unzipSync,zipSync}from'fflate';function a148_0x4711(_0xa62039,_0x1dcb5f){_0xa62039=_0xa62039-0x184;const _0x5a5786=a148_0x5a57();let _0x471110=_0x5a5786[_0xa62039];return _0x471110;}import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date('1980-01-01T00:00:00.000Z');export function createDeterministicZipPackage(_0x594286){const _0x2533c1=a148_0x4711,_0x4d1811={};for(const _0x3597dc of normalizeLocalFiles(_0x594286)){_0x4d1811[_0x3597dc['path']]=fileContent(_0x3597dc);}return Buffer[_0x2533c1(0x197)](zipSync(_0x4d1811,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x1c5208){const _0x1bd28a=a148_0x4711;if(_0x1c5208['length']<0x16)throw CliErrors[_0x1bd28a(0x194)](_0x1bd28a(0x193));let _0x50139c;try{_0x50139c=unzipSync(_0x1c5208,{'filter'(_0x57afbd){const _0x245252=_0x1bd28a,_0x529188=normalizeSkillRelativePath(_0x57afbd[_0x245252(0x198)]);if(_0x529188[_0x245252(0x191)]('/'))throw CliErrors['validation']('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x529188);return!![];}});}catch(_0x3473c2){if(isRuntimeSkillValidationError(_0x3473c2))throw _0x3473c2;throw CliErrors[_0x1bd28a(0x194)](_0x1bd28a(0x193));}return Object[_0x1bd28a(0x199)](_0x50139c)[_0x1bd28a(0x190)](([_0x429809,_0x3fa690])=>({'path':normalizeSkillRelativePath(_0x429809),'bytes':Buffer[_0x1bd28a(0x197)](_0x3fa690)}))[_0x1bd28a(0x18c)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x3db0b1){const _0x258a7a=a148_0x4711;return typeof _0x3db0b1===_0x258a7a(0x185)&&_0x3db0b1!==null&&_0x258a7a(0x187)in _0x3db0b1&&_0x3db0b1[_0x258a7a(0x187)]===_0x258a7a(0x192);}
@@ -1 +1 @@
1
- (function(_0x561d2d,_0x5354ad){const _0x7a3d6c=a148_0x4fcf,_0x1a3cfa=_0x561d2d();while(!![]){try{const _0x478d38=-parseInt(_0x7a3d6c(0xe4))/0x1+-parseInt(_0x7a3d6c(0xd5))/0x2+-parseInt(_0x7a3d6c(0xea))/0x3+-parseInt(_0x7a3d6c(0xd7))/0x4+-parseInt(_0x7a3d6c(0xd2))/0x5*(-parseInt(_0x7a3d6c(0xee))/0x6)+parseInt(_0x7a3d6c(0xef))/0x7+parseInt(_0x7a3d6c(0xf9))/0x8*(parseInt(_0x7a3d6c(0xf2))/0x9);if(_0x478d38===_0x5354ad)break;else _0x1a3cfa['push'](_0x1a3cfa['shift']());}catch(_0x250d42){_0x1a3cfa['push'](_0x1a3cfa['shift']());}}}(a148_0x2bb7,0xaecf7));function a148_0x2bb7(){const _0xaab651=['1705885OKZMIh','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','get','2853014kqMZHL','map','3561844nWkXBY','files','Runtime\x20Skill\x20package\x20size\x20mismatch.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','bytes','requireOssPath','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','toLowerCase','isSafeInteger','Missing\x20','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','base64','1056159joPBqV','trim','string','Duplicate\x20Skill\x20package\x20entry:\x20','object','treeSha256','4147443lsJWhq','has','length','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','6HzxMGr','1079533VoRVXL','push','zipSha256','4455JErEOv','isArray','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','schemaVersion','zipSize','path','80424eDjsiu','ossPath','set','validation','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','some','Runtime\x20Skill\x20manifest\x20is\x20missing\x20'];a148_0x2bb7=function(){return _0xaab651;};return a148_0x2bb7();}import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x25ae40){const _0x84685=a148_0x4fcf,_0x26dcc6=normalizeLocalFiles(_0x25ae40);if(!_0x26dcc6[_0x84685(0xd0)](_0x6f6b32=>_0x6f6b32[_0x84685(0xf8)]===SKILL_FILE))throw CliErrors[_0x84685(0xfc)](_0x84685(0xe1)+SKILL_FILE+_0x84685(0xf4));const _0x2dd307=localFilesToManifestFiles(_0x26dcc6),_0x4e4cf7=createDeterministicZipPackage(_0x26dcc6);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x2dd307),'zipSha256':bufferSha256(_0x4e4cf7),'zipSize':_0x4e4cf7['length'],'files':_0x2dd307},'packageBytes':_0x4e4cf7,'packageBase64':_0x4e4cf7['toString'](_0x84685(0xe3))};}export function verifyRuntimeSkillPackage(_0x4e16b1,_0x2235a6){const _0x290e9c=a148_0x4fcf,_0x54f652=normalizePackageManifest(_0x4e16b1,{'requireOssPath':![]});if(!_0x54f652)throw CliErrors[_0x290e9c(0xfc)](_0x290e9c(0xda));return extractAndVerifyPackage(_0x54f652,_0x2235a6);}export function verifyRuntimeSkillBundle(_0x4557b6,_0x50f24d){const _0x40db41=a148_0x4fcf,_0x36f24f=normalizePackageManifest(_0x4557b6,{'requireOssPath':![]});if(!_0x36f24f)throw CliErrors[_0x40db41(0xfc)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x36f24f,_0x50f24d);}export function tryNormalizePackageManifest(_0x45c636){return normalizePackageManifest(_0x45c636,{'requireOssPath':![]});}export function requirePackageBytes(_0xd31f58,_0x550517){const _0x435813=a148_0x4fcf;if(!_0x550517||_0x550517[_0x435813(0xec)]===0x0)throw CliErrors[_0x435813(0xfc)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0xd31f58);return _0x550517;}export function extractDownloadedPackage(_0x306167){const _0x39476d=a148_0x4fcf,_0x51d529=parseZipPackage(_0x306167)[_0x39476d(0xd6)](_0x221c33=>({'path':_0x221c33[_0x39476d(0xf8)],'bytes':_0x221c33['bytes']}));if(!_0x51d529['some'](_0x244797=>_0x244797[_0x39476d(0xf8)]===SKILL_FILE))throw CliErrors[_0x39476d(0xfc)](_0x39476d(0xdd)+SKILL_FILE+'.');return normalizeLocalFiles(_0x51d529);}export function localFilesToManifestFiles(_0xd98488){const _0x46c1fd=a148_0x4fcf;return normalizeLocalFiles(_0xd98488)[_0x46c1fd(0xd6)](_0x3220eb=>({'path':_0x3220eb[_0x46c1fd(0xf8)],'sha256':fileHash(_0x3220eb),'size':fileContent(_0x3220eb)[_0x46c1fd(0xec)]}));}function normalizePackageManifest(_0x37edef,_0x10499f){const _0x57c30e=a148_0x4fcf;if(!_0x37edef||typeof _0x37edef!==_0x57c30e(0xe8)||Array[_0x57c30e(0xf3)](_0x37edef))return undefined;const _0x5906e4=_0x37edef,_0x8e1f51=typeof _0x5906e4[_0x57c30e(0xfa)]===_0x57c30e(0xe6)?_0x5906e4[_0x57c30e(0xfa)][_0x57c30e(0xe5)]():undefined;if(_0x10499f[_0x57c30e(0xdc)]&&!_0x8e1f51)return undefined;if(!Array['isArray'](_0x5906e4[_0x57c30e(0xd8)])||_0x5906e4['files']['length']===0x0)return undefined;if(!isSha256Hex(_0x5906e4[_0x57c30e(0xe9)]))throw CliErrors[_0x57c30e(0xfc)](_0x57c30e(0xfd));if(!isSha256Hex(_0x5906e4['zipSha256']))throw CliErrors['validation'](_0x57c30e(0xde));if(!Number[_0x57c30e(0xe0)](_0x5906e4['zipSize'])||_0x5906e4[_0x57c30e(0xf7)]<0x0)throw CliErrors[_0x57c30e(0xfc)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x25de82=normalizeManifestFiles(_0x5906e4[_0x57c30e(0xd8)]);if(!_0x25de82['some'](_0x57fd12=>_0x57fd12[_0x57c30e(0xf8)]===SKILL_FILE))throw CliErrors[_0x57c30e(0xfc)](_0x57c30e(0xd1)+SKILL_FILE+'.');const _0x5b4ad9=fileTreeHash(_0x25de82);if(_0x5b4ad9!==_0x5906e4['treeSha256'][_0x57c30e(0xdf)]())throw CliErrors[_0x57c30e(0xfc)](_0x57c30e(0xf5));return{'schemaVersion':Number['isSafeInteger'](_0x5906e4[_0x57c30e(0xf6)])?_0x5906e4[_0x57c30e(0xf6)]:0x2,'ossPath':_0x8e1f51,'treeSha256':_0x5b4ad9,'zipSha256':_0x5906e4[_0x57c30e(0xf1)][_0x57c30e(0xdf)](),'zipSize':_0x5906e4[_0x57c30e(0xf7)],'files':_0x25de82};}function a148_0x4fcf(_0x13518f,_0x264c5a){_0x13518f=_0x13518f-0xd0;const _0x2bb76a=a148_0x2bb7();let _0x4fcf49=_0x2bb76a[_0x13518f];return _0x4fcf49;}function extractAndVerifyPackage(_0x30e88e,_0x2af6d1){const _0x233f81=a148_0x4fcf,_0x4fda98=normalizePackageManifest(_0x30e88e,{'requireOssPath':![]});if(!_0x4fda98)throw CliErrors[_0x233f81(0xfc)](_0x233f81(0xda));if(_0x2af6d1['length']!==_0x4fda98[_0x233f81(0xf7)])throw CliErrors[_0x233f81(0xfc)](_0x233f81(0xd9));const _0x49f632=bufferSha256(_0x2af6d1);if(_0x49f632!==_0x4fda98[_0x233f81(0xf1)])throw CliErrors['validation'](_0x233f81(0xe2));return extractAndVerifyPackageFiles(_0x4fda98,_0x2af6d1);}function extractAndVerifyPackageFiles(_0x1afa4d,_0x6120a0){const _0x10ba6f=a148_0x4fcf,_0x38d7f2=parseZipPackage(_0x6120a0);if(_0x38d7f2['length']!==_0x1afa4d[_0x10ba6f(0xd8)]['length'])throw CliErrors[_0x10ba6f(0xfc)](_0x10ba6f(0xd3));const _0x5cb372=new Map();for(const _0x4a40e0 of _0x38d7f2){if(_0x5cb372[_0x10ba6f(0xeb)](_0x4a40e0[_0x10ba6f(0xf8)]))throw CliErrors['validation'](_0x10ba6f(0xe7)+_0x4a40e0[_0x10ba6f(0xf8)]);_0x5cb372[_0x10ba6f(0xfb)](_0x4a40e0[_0x10ba6f(0xf8)],_0x4a40e0);}const _0x14e29d=[];for(const _0x3f5014 of _0x1afa4d[_0x10ba6f(0xd8)]){const _0x45b2a1=_0x5cb372[_0x10ba6f(0xd4)](_0x3f5014[_0x10ba6f(0xf8)]);if(!_0x45b2a1)throw CliErrors[_0x10ba6f(0xfc)](_0x10ba6f(0xed)+_0x3f5014[_0x10ba6f(0xf8)]);if(_0x45b2a1['bytes'][_0x10ba6f(0xec)]!==_0x3f5014['size'])throw CliErrors['validation'](_0x10ba6f(0xfe)+_0x3f5014[_0x10ba6f(0xf8)]);const _0x1d03e5=bufferSha256(_0x45b2a1[_0x10ba6f(0xdb)]);if(_0x1d03e5!==_0x3f5014['sha256'])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x3f5014[_0x10ba6f(0xf8)]);_0x14e29d[_0x10ba6f(0xf0)]({'path':_0x3f5014[_0x10ba6f(0xf8)],'bytes':_0x45b2a1[_0x10ba6f(0xdb)]});}return normalizeLocalFiles(_0x14e29d);}
1
+ function a149_0x4937(_0x4e45a6,_0x537742){_0x4e45a6=_0x4e45a6-0x13e;const _0x38a6b8=a149_0x38a6();let _0x4937aa=_0x38a6b8[_0x4e45a6];return _0x4937aa;}function a149_0x38a6(){const _0x21b311=['object','get','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Duplicate\x20Skill\x20package\x20entry:\x20','length','Runtime\x20Skill\x20package\x20size\x20mismatch.','zipSha256','schemaVersion','files','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','treeSha256','96JmAWGf','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','trim','requireOssPath','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','validation','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','isArray','2693752KRPVCz','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Missing\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','7672525MmQgnK','536256HpKBsi','map','Runtime\x20Skill\x20package\x20is\x20missing\x20','zipSize','sha256','3220865KMRRQB','toLowerCase','921321SuVttX','has','size','26256750StUHXG','6ummwYX','isSafeInteger','bytes','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','push','set','542428TwOLuz','some','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','ossPath','path','3xUTRvO'];a149_0x38a6=function(){return _0x21b311;};return a149_0x38a6();}(function(_0xe220f5,_0x504f7d){const _0x49ff97=a149_0x4937,_0x33c826=_0xe220f5();while(!![]){try{const _0x2fef38=-parseInt(_0x49ff97(0x147))/0x1+parseInt(_0x49ff97(0x158))/0x2*(parseInt(_0x49ff97(0x15d))/0x3)+-parseInt(_0x49ff97(0x140))/0x4+parseInt(_0x49ff97(0x14c))/0x5*(-parseInt(_0x49ff97(0x152))/0x6)+parseInt(_0x49ff97(0x146))/0x7+parseInt(_0x49ff97(0x16a))/0x8*(-parseInt(_0x49ff97(0x14e))/0x9)+parseInt(_0x49ff97(0x151))/0xa;if(_0x2fef38===_0x504f7d)break;else _0x33c826['push'](_0x33c826['shift']());}catch(_0x53ae0a){_0x33c826['push'](_0x33c826['shift']());}}}(a149_0x38a6,0xde54d));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x53889c){const _0x31b409=a149_0x4937,_0x2427ed=normalizeLocalFiles(_0x53889c);if(!_0x2427ed[_0x31b409(0x159)](_0x367e1a=>_0x367e1a[_0x31b409(0x15c)]===SKILL_FILE))throw CliErrors[_0x31b409(0x16f)](_0x31b409(0x143)+SKILL_FILE+_0x31b409(0x167));const _0x495b9b=localFilesToManifestFiles(_0x2427ed),_0x5378d7=createDeterministicZipPackage(_0x2427ed);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x495b9b),'zipSha256':bufferSha256(_0x5378d7),'zipSize':_0x5378d7[_0x31b409(0x162)],'files':_0x495b9b},'packageBytes':_0x5378d7,'packageBase64':_0x5378d7['toString']('base64')};}export function verifyRuntimeSkillPackage(_0x4fa8ea,_0x6ade12){const _0x166dd8=a149_0x4937,_0x186a9b=normalizePackageManifest(_0x4fa8ea,{'requireOssPath':![]});if(!_0x186a9b)throw CliErrors[_0x166dd8(0x16f)](_0x166dd8(0x13e));return extractAndVerifyPackage(_0x186a9b,_0x6ade12);}export function verifyRuntimeSkillBundle(_0x5cbd28,_0x525605){const _0x1836f4=a149_0x4937,_0x38a122=normalizePackageManifest(_0x5cbd28,{'requireOssPath':![]});if(!_0x38a122)throw CliErrors[_0x1836f4(0x16f)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x38a122,_0x525605);}export function tryNormalizePackageManifest(_0x52fd06){return normalizePackageManifest(_0x52fd06,{'requireOssPath':![]});}export function requirePackageBytes(_0x3adce6,_0x51a96d){const _0x94b46=a149_0x4937;if(!_0x51a96d||_0x51a96d[_0x94b46(0x162)]===0x0)throw CliErrors[_0x94b46(0x16f)](_0x94b46(0x160)+_0x3adce6);return _0x51a96d;}export function extractDownloadedPackage(_0x528efb){const _0x34143a=a149_0x4937,_0x1e2c32=parseZipPackage(_0x528efb)[_0x34143a(0x148)](_0x150c90=>({'path':_0x150c90[_0x34143a(0x15c)],'bytes':_0x150c90['bytes']}));if(!_0x1e2c32[_0x34143a(0x159)](_0x2e0114=>_0x2e0114['path']===SKILL_FILE))throw CliErrors[_0x34143a(0x16f)](_0x34143a(0x149)+SKILL_FILE+'.');return normalizeLocalFiles(_0x1e2c32);}export function localFilesToManifestFiles(_0x2e3948){const _0x35a0ba=a149_0x4937;return normalizeLocalFiles(_0x2e3948)[_0x35a0ba(0x148)](_0x5d4174=>({'path':_0x5d4174[_0x35a0ba(0x15c)],'sha256':fileHash(_0x5d4174),'size':fileContent(_0x5d4174)[_0x35a0ba(0x162)]}));}function normalizePackageManifest(_0x19cc91,_0x1374f7){const _0x27a058=a149_0x4937;if(!_0x19cc91||typeof _0x19cc91!==_0x27a058(0x15e)||Array[_0x27a058(0x13f)](_0x19cc91))return undefined;const _0x1599a9=_0x19cc91,_0x4e9f0c=typeof _0x1599a9[_0x27a058(0x15b)]==='string'?_0x1599a9[_0x27a058(0x15b)][_0x27a058(0x16c)]():undefined;if(_0x1374f7[_0x27a058(0x16d)]&&!_0x4e9f0c)return undefined;if(!Array['isArray'](_0x1599a9[_0x27a058(0x166)])||_0x1599a9['files'][_0x27a058(0x162)]===0x0)return undefined;if(!isSha256Hex(_0x1599a9['treeSha256']))throw CliErrors[_0x27a058(0x16f)](_0x27a058(0x168));if(!isSha256Hex(_0x1599a9['zipSha256']))throw CliErrors[_0x27a058(0x16f)](_0x27a058(0x16b));if(!Number[_0x27a058(0x153)](_0x1599a9[_0x27a058(0x14a)])||_0x1599a9['zipSize']<0x0)throw CliErrors[_0x27a058(0x16f)](_0x27a058(0x142));const _0x2a4c95=normalizeManifestFiles(_0x1599a9[_0x27a058(0x166)]);if(!_0x2a4c95[_0x27a058(0x159)](_0x53ff18=>_0x53ff18[_0x27a058(0x15c)]===SKILL_FILE))throw CliErrors[_0x27a058(0x16f)](_0x27a058(0x141)+SKILL_FILE+'.');const _0x15111e=fileTreeHash(_0x2a4c95);if(_0x15111e!==_0x1599a9[_0x27a058(0x169)][_0x27a058(0x14d)]())throw CliErrors['validation'](_0x27a058(0x144));return{'schemaVersion':Number[_0x27a058(0x153)](_0x1599a9[_0x27a058(0x165)])?_0x1599a9[_0x27a058(0x165)]:0x2,'ossPath':_0x4e9f0c,'treeSha256':_0x15111e,'zipSha256':_0x1599a9['zipSha256'][_0x27a058(0x14d)](),'zipSize':_0x1599a9[_0x27a058(0x14a)],'files':_0x2a4c95};}function extractAndVerifyPackage(_0x268fd9,_0x40f49b){const _0x4d19dd=a149_0x4937,_0x20344b=normalizePackageManifest(_0x268fd9,{'requireOssPath':![]});if(!_0x20344b)throw CliErrors['validation'](_0x4d19dd(0x13e));if(_0x40f49b['length']!==_0x20344b[_0x4d19dd(0x14a)])throw CliErrors['validation'](_0x4d19dd(0x163));const _0x296f32=bufferSha256(_0x40f49b);if(_0x296f32!==_0x20344b[_0x4d19dd(0x164)])throw CliErrors[_0x4d19dd(0x16f)](_0x4d19dd(0x155));return extractAndVerifyPackageFiles(_0x20344b,_0x40f49b);}function extractAndVerifyPackageFiles(_0x3681f5,_0x49eabd){const _0x188a0f=a149_0x4937,_0x3ff449=parseZipPackage(_0x49eabd);if(_0x3ff449['length']!==_0x3681f5[_0x188a0f(0x166)][_0x188a0f(0x162)])throw CliErrors[_0x188a0f(0x16f)](_0x188a0f(0x145));const _0x376a91=new Map();for(const _0x3ecc76 of _0x3ff449){if(_0x376a91[_0x188a0f(0x14f)](_0x3ecc76[_0x188a0f(0x15c)]))throw CliErrors['validation'](_0x188a0f(0x161)+_0x3ecc76[_0x188a0f(0x15c)]);_0x376a91[_0x188a0f(0x157)](_0x3ecc76[_0x188a0f(0x15c)],_0x3ecc76);}const _0x5070aa=[];for(const _0x3276b0 of _0x3681f5[_0x188a0f(0x166)]){const _0x438284=_0x376a91[_0x188a0f(0x15f)](_0x3276b0[_0x188a0f(0x15c)]);if(!_0x438284)throw CliErrors[_0x188a0f(0x16f)](_0x188a0f(0x15a)+_0x3276b0['path']);if(_0x438284['bytes'][_0x188a0f(0x162)]!==_0x3276b0[_0x188a0f(0x150)])throw CliErrors[_0x188a0f(0x16f)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x3276b0[_0x188a0f(0x15c)]);const _0x200441=bufferSha256(_0x438284[_0x188a0f(0x154)]);if(_0x200441!==_0x3276b0[_0x188a0f(0x14b)])throw CliErrors[_0x188a0f(0x16f)](_0x188a0f(0x16e)+_0x3276b0[_0x188a0f(0x15c)]);_0x5070aa[_0x188a0f(0x156)]({'path':_0x3276b0[_0x188a0f(0x15c)],'bytes':_0x438284['bytes']});}return normalizeLocalFiles(_0x5070aa);}
@@ -1 +1 @@
1
- (function(_0x519f74,_0x37ac7f){var _0x2a3b3c=a149_0x118b,_0x3ac2c3=_0x519f74();while(!![]){try{var _0x1781fb=parseInt(_0x2a3b3c(0x1eb))/0x1+parseInt(_0x2a3b3c(0x1ea))/0x2+-parseInt(_0x2a3b3c(0x1e7))/0x3*(parseInt(_0x2a3b3c(0x1e4))/0x4)+-parseInt(_0x2a3b3c(0x1e6))/0x5+parseInt(_0x2a3b3c(0x1e8))/0x6*(-parseInt(_0x2a3b3c(0x1e5))/0x7)+parseInt(_0x2a3b3c(0x1e3))/0x8+-parseInt(_0x2a3b3c(0x1e9))/0x9;if(_0x1781fb===_0x37ac7f)break;else _0x3ac2c3['push'](_0x3ac2c3['shift']());}catch(_0x5a85de){_0x3ac2c3['push'](_0x3ac2c3['shift']());}}}(a149_0x51e8,0x5a392));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 a149_0x118b(_0x16f2d0,_0x21b772){_0x16f2d0=_0x16f2d0-0x1e3;var _0x51e877=a149_0x51e8();var _0x118bf9=_0x51e877[_0x16f2d0];return _0x118bf9;}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 a149_0x51e8(){var _0x335e5b=['536583fzKKOE','6JgsWMn','3246615SrnWmk','489320OXPbeX','487441oYIerV','5286528jIokpw','8QHEvll','1572613AlpaYG','401235BNTYSx'];a149_0x51e8=function(){return _0x335e5b;};return a149_0x51e8();}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0x51aa69,_0x2745d4){var _0x5360cd=a150_0x1790,_0x101ac0=_0x51aa69();while(!![]){try{var _0x594904=parseInt(_0x5360cd(0x168))/0x1*(parseInt(_0x5360cd(0x167))/0x2)+-parseInt(_0x5360cd(0x16e))/0x3*(parseInt(_0x5360cd(0x165))/0x4)+-parseInt(_0x5360cd(0x16d))/0x5*(parseInt(_0x5360cd(0x16b))/0x6)+parseInt(_0x5360cd(0x166))/0x7*(-parseInt(_0x5360cd(0x16f))/0x8)+-parseInt(_0x5360cd(0x164))/0x9+-parseInt(_0x5360cd(0x16a))/0xa+-parseInt(_0x5360cd(0x169))/0xb*(-parseInt(_0x5360cd(0x16c))/0xc);if(_0x594904===_0x2745d4)break;else _0x101ac0['push'](_0x101ac0['shift']());}catch(_0x56b4c0){_0x101ac0['push'](_0x101ac0['shift']());}}}(a150_0x2ccb,0xf29da));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';function a150_0x1790(_0x58a934,_0x4881a7){_0x58a934=_0x58a934-0x164;var _0x2ccb2b=a150_0x2ccb();var _0x1790b0=_0x2ccb2b[_0x58a934];return _0x1790b0;}export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';function a150_0x2ccb(){var _0x44117f=['3882956ZvAbhH','1iAMUAv','3373612SZxxmO','11212970LwzPMS','12yfcspI','132JeOtEA','4568085npNuZZ','33PwMVAm','448wxuwHV','4064058lDVvTo','267268hAtqfc','23282PaREVi'];a150_0x2ccb=function(){return _0x44117f;};return a150_0x2ccb();}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- function a150_0x2b86(_0x2ba025,_0x6eed7d){_0x2ba025=_0x2ba025-0x19e;const _0x8f267e=a150_0x8f26();let _0x2b86e2=_0x8f267e[_0x2ba025];return _0x2b86e2;}const a150_0xaf92c7=a150_0x2b86;(function(_0x527efd,_0xa3ec4c){const _0x8f8188=a150_0x2b86,_0x274e1c=_0x527efd();while(!![]){try{const _0x16f6f0=parseInt(_0x8f8188(0x1ac))/0x1+-parseInt(_0x8f8188(0x1ae))/0x2+parseInt(_0x8f8188(0x19f))/0x3*(parseInt(_0x8f8188(0x1a7))/0x4)+parseInt(_0x8f8188(0x1b4))/0x5+-parseInt(_0x8f8188(0x1a8))/0x6*(-parseInt(_0x8f8188(0x1be))/0x7)+-parseInt(_0x8f8188(0x1a0))/0x8+-parseInt(_0x8f8188(0x1a1))/0x9;if(_0x16f6f0===_0xa3ec4c)break;else _0x274e1c['push'](_0x274e1c['shift']());}catch(_0x3b51c7){_0x274e1c['push'](_0x274e1c['shift']());}}}(a150_0x8f26,0x613f2));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a150_0x8f26(){const _0x4108a5=['object','63496LDoZsO','6TqkWxn','\x20uses\x20unsupported\x20version\x20','.agents','unverifiable','565969nzZQRL','not-recorded','388926zSXAMp','number','message','\x20is\x20unreadable:\x20','skills','.claude','149535dIXgaf','recorded','reason','present','parse','unusable','absent','.skill-lock.json','includes','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','2441866xhkyRi','find','kind','\x20records\x20\x22','home','69wAaSsb','1069000KRQsKc','5250654StUzwK','lockFile','utf8','version','map'];a150_0x8f26=function(){return _0x4108a5;};return a150_0x8f26();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a150_0xaf92c7(0x1aa),a150_0xaf92c7(0x1bb));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a150_0xaf92c7(0x1aa),'skills'),join(a150_0xaf92c7(0x1b3),a150_0xaf92c7(0x1b2))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x5ad599,_0x35d2b8){const _0x1c6e13=a150_0xaf92c7;if(!existsSync(_0x5ad599))return{'kind':_0x1c6e13(0x1ad)};let _0x4040a6;try{_0x4040a6=JSON[_0x1c6e13(0x1b8)](readFileSync(_0x5ad599,_0x1c6e13(0x1a3)));}catch(_0x5457c9){return{'kind':_0x1c6e13(0x1b9),'reason':_0x5ad599+_0x1c6e13(0x1b1)+_0x5457c9[_0x1c6e13(0x1b0)]};}const _0x340d3c=_0x4040a6;if(typeof _0x340d3c?.[_0x1c6e13(0x1a4)]!==_0x1c6e13(0x1af)||!SUPPORTED_LOCK_VERSIONS[_0x1c6e13(0x1bc)](_0x340d3c[_0x1c6e13(0x1a4)]))return{'kind':'unusable','reason':_0x5ad599+_0x1c6e13(0x1a9)+String(_0x340d3c?.['version'])};if(!_0x340d3c[_0x1c6e13(0x1b2)]||typeof _0x340d3c[_0x1c6e13(0x1b2)]!==_0x1c6e13(0x1a6))return{'kind':_0x1c6e13(0x1b9),'reason':_0x5ad599+'\x20has\x20no\x20skills\x20map'};return _0x340d3c[_0x1c6e13(0x1b2)][_0x35d2b8]?{'kind':_0x1c6e13(0x1b5)}:{'kind':_0x1c6e13(0x1ad)};}export function resolveInstalledSkill(_0x5c5402,_0x2df505){const _0x2ce168=a150_0xaf92c7,_0x317221=_0x2df505?.[_0x2ce168(0x19e)]??homedir(),_0x1ddce1=_0x2df505?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x2ce168(0x1a5)](_0x5716a9=>join(_0x317221,_0x5716a9)),_0x14e7e2=_0x2df505?.[_0x2ce168(0x1a2)]??join(_0x317221,SKILL_LOCK_RELATIVE_PATH),_0x444059=_0x1ddce1['map'](_0x2fabd2=>join(_0x2fabd2,_0x5c5402,'SKILL.md')),_0x280805=_0x444059[_0x2ce168(0x1bf)](_0xc03a45=>existsSync(_0xc03a45));if(_0x280805)return{'state':_0x2ce168(0x1b7),'path':_0x280805};const _0xd3f472=readLockLookup(_0x14e7e2,_0x5c5402);if(_0xd3f472['kind']==='unusable')return{'state':_0x2ce168(0x1ab),'reason':_0xd3f472[_0x2ce168(0x1b6)]};if(_0xd3f472[_0x2ce168(0x1c0)]===_0x2ce168(0x1b5))return{'state':_0x2ce168(0x1ab),'reason':_0x14e7e2+_0x2ce168(0x1c1)+_0x5c5402+_0x2ce168(0x1bd)+('('+_0x444059['join'](',\x20')+')')};return{'state':_0x2ce168(0x1ba),'checked':_0x444059};}
1
+ const a151_0x327a7f=a151_0x3b71;(function(_0x795f7b,_0x574b9f){const _0x40e5ad=a151_0x3b71,_0x548917=_0x795f7b();while(!![]){try{const _0x111927=-parseInt(_0x40e5ad(0x141))/0x1+-parseInt(_0x40e5ad(0x134))/0x2*(parseInt(_0x40e5ad(0x13e))/0x3)+-parseInt(_0x40e5ad(0x149))/0x4*(parseInt(_0x40e5ad(0x13a))/0x5)+-parseInt(_0x40e5ad(0x14c))/0x6+parseInt(_0x40e5ad(0x14e))/0x7+-parseInt(_0x40e5ad(0x14d))/0x8*(parseInt(_0x40e5ad(0x136))/0x9)+parseInt(_0x40e5ad(0x14f))/0xa*(parseInt(_0x40e5ad(0x139))/0xb);if(_0x111927===_0x574b9f)break;else _0x548917['push'](_0x548917['shift']());}catch(_0x32ee00){_0x548917['push'](_0x548917['shift']());}}}(a151_0x1507,0x27c8e));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a151_0x3b71(_0x584d78,_0x4adab9){_0x584d78=_0x584d78-0x130;const _0x150769=a151_0x1507();let _0x3b7109=_0x150769[_0x584d78];return _0x3b7109;}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a151_0x327a7f(0x132),a151_0x327a7f(0x137));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a151_0x327a7f(0x132),'skills'),join('.claude','skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function a151_0x1507(){const _0x55c6e7=['304746pUQlCI','\x20is\x20unreadable:\x20','unusable','present','not-recorded','recorded','skills','join','15728KeTdZs','home','\x20records\x20\x22','1070478NKCDCk','2504RhFQCj','1796235tCDLTy','10UtjlZl','absent','includes','object','find','\x20has\x20no\x20skills\x20map','.agents','reason','8150AHAEUw','map','7623GQagEC','.skill-lock.json','\x20uses\x20unsupported\x20version\x20','8112291AicayX','95wdWzZA','globalSkillsDirs','unverifiable','SKILL.md','6rZjJzH','kind','version'];a151_0x1507=function(){return _0x55c6e7;};return a151_0x1507();}function readLockLookup(_0x3922fc,_0x9514c1){const _0xe62ebc=a151_0x327a7f;if(!existsSync(_0x3922fc))return{'kind':_0xe62ebc(0x145)};let _0x3d333b;try{_0x3d333b=JSON['parse'](readFileSync(_0x3922fc,'utf8'));}catch(_0x126e90){return{'kind':_0xe62ebc(0x143),'reason':_0x3922fc+_0xe62ebc(0x142)+_0x126e90['message']};}const _0x8414f4=_0x3d333b;if(typeof _0x8414f4?.[_0xe62ebc(0x140)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0xe62ebc(0x151)](_0x8414f4['version']))return{'kind':_0xe62ebc(0x143),'reason':_0x3922fc+_0xe62ebc(0x138)+String(_0x8414f4?.['version'])};if(!_0x8414f4['skills']||typeof _0x8414f4[_0xe62ebc(0x147)]!==_0xe62ebc(0x152))return{'kind':_0xe62ebc(0x143),'reason':_0x3922fc+_0xe62ebc(0x131)};return _0x8414f4[_0xe62ebc(0x147)][_0x9514c1]?{'kind':_0xe62ebc(0x146)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x4e6a95,_0x2bdbc3){const _0x6d35b3=a151_0x327a7f,_0x1af87d=_0x2bdbc3?.[_0x6d35b3(0x14a)]??homedir(),_0x3b52b3=_0x2bdbc3?.[_0x6d35b3(0x13b)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x5ad5f1=>join(_0x1af87d,_0x5ad5f1)),_0x55c57d=_0x2bdbc3?.['lockFile']??join(_0x1af87d,SKILL_LOCK_RELATIVE_PATH),_0x28a9f2=_0x3b52b3[_0x6d35b3(0x135)](_0x17aa43=>join(_0x17aa43,_0x4e6a95,_0x6d35b3(0x13d))),_0x5c7645=_0x28a9f2[_0x6d35b3(0x130)](_0x5ecdb3=>existsSync(_0x5ecdb3));if(_0x5c7645)return{'state':_0x6d35b3(0x144),'path':_0x5c7645};const _0x5af80c=readLockLookup(_0x55c57d,_0x4e6a95);if(_0x5af80c[_0x6d35b3(0x13f)]==='unusable')return{'state':_0x6d35b3(0x13c),'reason':_0x5af80c[_0x6d35b3(0x133)]};if(_0x5af80c[_0x6d35b3(0x13f)]===_0x6d35b3(0x146))return{'state':'unverifiable','reason':_0x55c57d+_0x6d35b3(0x14b)+_0x4e6a95+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x28a9f2[_0x6d35b3(0x148)](',\x20')+')')};return{'state':_0x6d35b3(0x150),'checked':_0x28a9f2};}
@@ -1 +1 @@
1
- function a151_0x3df3(){const _0x5784db=['4193829hxIHfY','object','66EtpJNN','test','prototype','12513464nkeSge','repeat','9099937krrBwp','map','hasOwnProperty','apps','accessKey','call','isArray','453795mCfzqQ','slice','26225DSmKFU','60EJnEsa','5250688sPaxkL','7584777XNIzzg','length'];a151_0x3df3=function(){return _0x5784db;};return a151_0x3df3();}(function(_0x86d0bc,_0x2fa138){const _0x565501=a151_0x301a,_0x33b5b0=_0x86d0bc();while(!![]){try{const _0x43b496=parseInt(_0x565501(0x19c))/0x1*(-parseInt(_0x565501(0x19d))/0x2)+parseInt(_0x565501(0x1a1))/0x3+-parseInt(_0x565501(0x19e))/0x4+parseInt(_0x565501(0x19a))/0x5*(parseInt(_0x565501(0x1a3))/0x6)+parseInt(_0x565501(0x1a8))/0x7+-parseInt(_0x565501(0x1a6))/0x8+parseInt(_0x565501(0x19f))/0x9;if(_0x43b496===_0x2fa138)break;else _0x33b5b0['push'](_0x33b5b0['shift']());}catch(_0x1aab45){_0x33b5b0['push'](_0x33b5b0['shift']());}}}(a151_0x3df3,0xd5ba7));const REDACTED_ACCESS_KEY='<redacted>';function a151_0x301a(_0x30db30,_0x215160){_0x30db30=_0x30db30-0x195;const _0x3df346=a151_0x3df3();let _0x301a7d=_0x3df346[_0x30db30];return _0x301a7d;}export function maskCliAccessKey(_0x1f717f){const _0x1d51ec=a151_0x301a;if(typeof _0x1f717f!=='string'||_0x1f717f[_0x1d51ec(0x1a0)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x1f717f[_0x1d51ec(0x19b)](0x0,0x8)+'*'[_0x1d51ec(0x1a7)](_0x1f717f['length']-0x8);}export function redactCliConfigCredentials(_0x1bf3af){const _0x3c8e65=a151_0x301a,_0x56ac93={..._0x1bf3af};return Object[_0x3c8e65(0x1a5)][_0x3c8e65(0x195)][_0x3c8e65(0x198)](_0x56ac93,'accessKey')&&(_0x56ac93[_0x3c8e65(0x197)]=maskCliAccessKey(_0x56ac93['accessKey'])),_0x56ac93[_0x3c8e65(0x196)]&&typeof _0x56ac93[_0x3c8e65(0x196)]==='object'&&!Array[_0x3c8e65(0x199)](_0x56ac93[_0x3c8e65(0x196)])&&(_0x56ac93[_0x3c8e65(0x196)]=redactLegacyAppCredentials(_0x56ac93['apps'])),_0x56ac93;}export function redactCliConfigValue(_0xee96be,_0x42f120){const _0x30c92b=a151_0x301a;if(_0xee96be==='accessKey'||/^apps\.[^.]+\.accessKey$/[_0x30c92b(0x1a4)](_0xee96be))return maskCliAccessKey(_0x42f120);if(_0xee96be===_0x30c92b(0x196)&&_0x42f120&&typeof _0x42f120==='object'&&!Array[_0x30c92b(0x199)](_0x42f120))return redactLegacyAppCredentials(_0x42f120);if(/^apps\.[^.]+$/[_0x30c92b(0x1a4)](_0xee96be)&&_0x42f120&&typeof _0x42f120==='object'&&!Array['isArray'](_0x42f120)){const _0x5127ef=_0x42f120;return Object[_0x30c92b(0x1a5)]['hasOwnProperty']['call'](_0x5127ef,_0x30c92b(0x197))?{..._0x5127ef,'accessKey':maskCliAccessKey(_0x5127ef[_0x30c92b(0x197)])}:_0x42f120;}return _0x42f120;}function redactLegacyAppCredentials(_0x307f8c){const _0x31087f=a151_0x301a;return Object['fromEntries'](Object['entries'](_0x307f8c)[_0x31087f(0x1a9)](([_0x6fd02f,_0x1fbe2b])=>{const _0x2b5548=_0x31087f;if(!_0x1fbe2b||typeof _0x1fbe2b!==_0x2b5548(0x1a2)||Array[_0x2b5548(0x199)](_0x1fbe2b))return[_0x6fd02f,_0x1fbe2b];const _0x27e02c={..._0x1fbe2b};return Object[_0x2b5548(0x1a5)][_0x2b5548(0x195)][_0x2b5548(0x198)](_0x27e02c,_0x2b5548(0x197))&&(_0x27e02c['accessKey']=maskCliAccessKey(_0x27e02c[_0x2b5548(0x197)])),[_0x6fd02f,_0x27e02c];}));}
1
+ const a152_0x2f4464=a152_0x51fd;(function(_0x235c8f,_0x153378){const _0x45b9c5=a152_0x51fd,_0x3abb8b=_0x235c8f();while(!![]){try{const _0x66ed56=parseInt(_0x45b9c5(0xbc))/0x1*(-parseInt(_0x45b9c5(0xad))/0x2)+parseInt(_0x45b9c5(0xba))/0x3*(-parseInt(_0x45b9c5(0xab))/0x4)+-parseInt(_0x45b9c5(0xbb))/0x5*(parseInt(_0x45b9c5(0xb7))/0x6)+-parseInt(_0x45b9c5(0xa9))/0x7+parseInt(_0x45b9c5(0xae))/0x8+-parseInt(_0x45b9c5(0xb5))/0x9*(parseInt(_0x45b9c5(0xa7))/0xa)+parseInt(_0x45b9c5(0xa8))/0xb;if(_0x66ed56===_0x153378)break;else _0x3abb8b['push'](_0x3abb8b['shift']());}catch(_0x3e2237){_0x3abb8b['push'](_0x3abb8b['shift']());}}}(a152_0x29a3,0x1aef2));const REDACTED_ACCESS_KEY=a152_0x2f4464(0xaf);function a152_0x51fd(_0xa939dd,_0x27cac8){_0xa939dd=_0xa939dd-0xa6;const _0x29a3f3=a152_0x29a3();let _0x51fd34=_0x29a3f3[_0xa939dd];return _0x51fd34;}export function maskCliAccessKey(_0x5b3cd6){const _0x1f4d09=a152_0x2f4464;if(typeof _0x5b3cd6!==_0x1f4d09(0xb8)||_0x5b3cd6[_0x1f4d09(0xb0)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x5b3cd6[_0x1f4d09(0xb6)](0x0,0x8)+'*'['repeat'](_0x5b3cd6['length']-0x8);}function a152_0x29a3(){const _0x54addd=['entries','3KGlOmL','30XyNWpp','60793mzEICc','prototype','hasOwnProperty','70GPvSid','4836843NtdQSK','1254673FoXxfV','object','293164HfyZPL','apps','2VvfSPh','1117672SpDCfP','<redacted>','length','accessKey','call','fromEntries','isArray','11007uHyroL','slice','147216ogyDdN','string'];a152_0x29a3=function(){return _0x54addd;};return a152_0x29a3();}export function redactCliConfigCredentials(_0x50224a){const _0x58430e=a152_0x2f4464,_0x432cac={..._0x50224a};return Object[_0x58430e(0xbd)]['hasOwnProperty'][_0x58430e(0xb2)](_0x432cac,_0x58430e(0xb1))&&(_0x432cac[_0x58430e(0xb1)]=maskCliAccessKey(_0x432cac[_0x58430e(0xb1)])),_0x432cac[_0x58430e(0xac)]&&typeof _0x432cac[_0x58430e(0xac)]==='object'&&!Array[_0x58430e(0xb4)](_0x432cac[_0x58430e(0xac)])&&(_0x432cac[_0x58430e(0xac)]=redactLegacyAppCredentials(_0x432cac['apps'])),_0x432cac;}export function redactCliConfigValue(_0x479514,_0x5ed66c){const _0x2bf667=a152_0x2f4464;if(_0x479514===_0x2bf667(0xb1)||/^apps\.[^.]+\.accessKey$/['test'](_0x479514))return maskCliAccessKey(_0x5ed66c);if(_0x479514===_0x2bf667(0xac)&&_0x5ed66c&&typeof _0x5ed66c==='object'&&!Array[_0x2bf667(0xb4)](_0x5ed66c))return redactLegacyAppCredentials(_0x5ed66c);if(/^apps\.[^.]+$/['test'](_0x479514)&&_0x5ed66c&&typeof _0x5ed66c===_0x2bf667(0xaa)&&!Array[_0x2bf667(0xb4)](_0x5ed66c)){const _0x2ca1dd=_0x5ed66c;return Object[_0x2bf667(0xbd)][_0x2bf667(0xa6)][_0x2bf667(0xb2)](_0x2ca1dd,_0x2bf667(0xb1))?{..._0x2ca1dd,'accessKey':maskCliAccessKey(_0x2ca1dd['accessKey'])}:_0x5ed66c;}return _0x5ed66c;}function redactLegacyAppCredentials(_0x2f6523){const _0x436f9f=a152_0x2f4464;return Object[_0x436f9f(0xb3)](Object[_0x436f9f(0xb9)](_0x2f6523)['map'](([_0x49fd7b,_0x2bd5f0])=>{const _0x1b103e=_0x436f9f;if(!_0x2bd5f0||typeof _0x2bd5f0!=='object'||Array[_0x1b103e(0xb4)](_0x2bd5f0))return[_0x49fd7b,_0x2bd5f0];const _0x317a8f={..._0x2bd5f0};return Object[_0x1b103e(0xbd)][_0x1b103e(0xa6)][_0x1b103e(0xb2)](_0x317a8f,_0x1b103e(0xb1))&&(_0x317a8f[_0x1b103e(0xb1)]=maskCliAccessKey(_0x317a8f['accessKey'])),[_0x49fd7b,_0x317a8f];}));}
@@ -1 +1 @@
1
- (function(_0xd5c205,_0x44412b){const _0x44c544=a152_0x4202,_0x273b62=_0xd5c205();while(!![]){try{const _0x5b5609=-parseInt(_0x44c544(0xd6))/0x1*(parseInt(_0x44c544(0xd5))/0x2)+-parseInt(_0x44c544(0xdd))/0x3+-parseInt(_0x44c544(0xda))/0x4+-parseInt(_0x44c544(0xdc))/0x5+-parseInt(_0x44c544(0xde))/0x6*(-parseInt(_0x44c544(0xd7))/0x7)+-parseInt(_0x44c544(0xdb))/0x8*(parseInt(_0x44c544(0xd8))/0x9)+-parseInt(_0x44c544(0xd9))/0xa*(-parseInt(_0x44c544(0xdf))/0xb);if(_0x5b5609===_0x44412b)break;else _0x273b62['push'](_0x273b62['shift']());}catch(_0x7db6f7){_0x273b62['push'](_0x273b62['shift']());}}}(a152_0x2d2f,0xf19be));function a152_0x2d2f(){const _0x4fcb27=['10558042ZGixZu','116342JWkTbX','2vJwFgM','7KEhqoR','9AXSfra','70zRCrim','6876120bHvjuY','13150064UJQYqQ','9260230eCNGRM','4342986DwHGVx','6298284xfbjYJ'];a152_0x2d2f=function(){return _0x4fcb27;};return a152_0x2d2f();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a152_0x4202(_0x5db4b6,_0x386348){_0x5db4b6=_0x5db4b6-0xd5;const _0x2d2fae=a152_0x2d2f();let _0x4202a5=_0x2d2fae[_0x5db4b6];return _0x4202a5;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a153_0x54e8(){const _0xa80f3=['10155iYENlo','1986pttmkD','383beNYFN','2248710YpIyVw','4826608pvyWuZ','81155CrPBsA','28SSzgth','11585979djnuQJ','806674RAzaKV','250SjARZh','7IzGDMT'];a153_0x54e8=function(){return _0xa80f3;};return a153_0x54e8();}function a153_0x2d29(_0x3a3844,_0x4ae0ab){_0x3a3844=_0x3a3844-0x67;const _0x54e89c=a153_0x54e8();let _0x2d29cf=_0x54e89c[_0x3a3844];return _0x2d29cf;}(function(_0x53e7cc,_0x5c9131){const _0x51c26f=a153_0x2d29,_0x1d22fa=_0x53e7cc();while(!![]){try{const _0x1571dc=parseInt(_0x51c26f(0x71))/0x1*(parseInt(_0x51c26f(0x70))/0x2)+-parseInt(_0x51c26f(0x6f))/0x3*(-parseInt(_0x51c26f(0x6a))/0x4)+parseInt(_0x51c26f(0x69))/0x5+-parseInt(_0x51c26f(0x67))/0x6*(-parseInt(_0x51c26f(0x6e))/0x7)+-parseInt(_0x51c26f(0x68))/0x8+-parseInt(_0x51c26f(0x6b))/0x9+parseInt(_0x51c26f(0x6d))/0xa*(parseInt(_0x51c26f(0x6c))/0xb);if(_0x1571dc===_0x5c9131)break;else _0x1d22fa['push'](_0x1d22fa['shift']());}catch(_0x4f8f5e){_0x1d22fa['push'](_0x1d22fa['shift']());}}}(a153_0x54e8,0xb41bb));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x21af4b,_0x53aded){const _0x4957a6=a153_0x310a,_0x3a6449=_0x21af4b();while(!![]){try{const _0x58d86b=-parseInt(_0x4957a6(0x12a))/0x1+-parseInt(_0x4957a6(0x131))/0x2+parseInt(_0x4957a6(0x13a))/0x3*(-parseInt(_0x4957a6(0x133))/0x4)+parseInt(_0x4957a6(0x132))/0x5+parseInt(_0x4957a6(0x138))/0x6+parseInt(_0x4957a6(0x13f))/0x7*(parseInt(_0x4957a6(0x13e))/0x8)+parseInt(_0x4957a6(0x13d))/0x9*(parseInt(_0x4957a6(0x140))/0xa);if(_0x58d86b===_0x53aded)break;else _0x3a6449['push'](_0x3a6449['shift']());}catch(_0x1fa3ef){_0x3a6449['push'](_0x3a6449['shift']());}}}(a153_0x1eb5,0x35d2c));import a153_0x48550f from'semver';function a153_0x310a(_0x4fca6c,_0x2f4fc3){_0x4fca6c=_0x4fca6c-0x127;const _0x1eb568=a153_0x1eb5();let _0x310a44=_0x1eb568[_0x4fca6c];return _0x310a44;}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(_0x5b6504,_0x4307cc){const _0x255dbe=a153_0x310a,_0x31910c=a153_0x48550f['valid'](_0x5b6504)===_0x5b6504,_0x57298f=_0x4307cc?.[_0x255dbe(0x13b)]??null,_0xaff846=_0x4307cc?.['minimumVersion']??null,_0x578e09=Boolean(_0x31910c&&_0x57298f&&a153_0x48550f['lt'](_0x5b6504,_0x57298f)),_0x41b92a=Boolean(_0x31910c&&_0xaff846&&a153_0x48550f['lt'](_0x5b6504,_0xaff846));return{'currentVersion':_0x5b6504,'stableVersion':_0x57298f,'minimumVersion':_0xaff846,'needsUpgrade':_0x578e09||_0x41b92a,'belowMinimum':_0x41b92a,'upgradeMessage':_0x4307cc?.[_0x255dbe(0x139)],'minimumVersionMessage':_0x4307cc?.[_0x255dbe(0x12f)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x2f9683){const _0x39c5cc=a153_0x310a;return _0x39c5cc(0x127)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x2f9683[_0x39c5cc(0x13b)]??_0x39c5cc(0x129));}export function assertCliVersionSupported(_0x3cc7a0){const _0x1072d1=a153_0x310a;if(!_0x3cc7a0[_0x1072d1(0x136)])return;const _0x4218ae=[_0x3cc7a0[_0x1072d1(0x12f)],_0x1072d1(0x135)+_0x3cc7a0[_0x1072d1(0x12c)],_0x1072d1(0x12e)+_0x3cc7a0[_0x1072d1(0x12b)],_0x1072d1(0x134)+(_0x3cc7a0[_0x1072d1(0x13b)]??_0x1072d1(0x13c)),_0x1072d1(0x12d)+getCliUpgradeCommand(_0x3cc7a0)][_0x1072d1(0x137)](Boolean)[_0x1072d1(0x130)]('\x0a');throw CliErrors['validation'](_0x1072d1(0x128),_0x4218ae);}function a153_0x1eb5(){const _0x570634=['minimumVersionMessage','join','701204ZtdSbo','1253620BYsBPz','12xmlCWz','Recommended\x20stable:\x20','Current\x20version:\x20','belowMinimum','filter','1632000aZFAQC','upgradeMessage','186387rLyGDe','stableVersion','unavailable','1791GNZHIq','1738504UMseSO','14kJIYYc','11810vzWGEJ','npm\x20install\x20-g\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','latest','434920unfhyn','minimumVersion','currentVersion','Upgrade\x20command:\x20','Minimum\x20supported:\x20'];a153_0x1eb5=function(){return _0x570634;};return a153_0x1eb5();}
1
+ function a154_0x553e(_0x355119,_0x4b5aa8){_0x355119=_0x355119-0x1df;const _0x522711=a154_0x5227();let _0x553e43=_0x522711[_0x355119];return _0x553e43;}(function(_0x29ccad,_0x2fdda3){const _0x1579c0=a154_0x553e,_0x50f032=_0x29ccad();while(!![]){try{const _0x71bd70=-parseInt(_0x1579c0(0x1eb))/0x1+parseInt(_0x1579c0(0x1f3))/0x2*(parseInt(_0x1579c0(0x1f1))/0x3)+parseInt(_0x1579c0(0x1e6))/0x4*(-parseInt(_0x1579c0(0x1f4))/0x5)+parseInt(_0x1579c0(0x1df))/0x6+-parseInt(_0x1579c0(0x1ec))/0x7+parseInt(_0x1579c0(0x1e1))/0x8+parseInt(_0x1579c0(0x1ea))/0x9;if(_0x71bd70===_0x2fdda3)break;else _0x50f032['push'](_0x50f032['shift']());}catch(_0x2682e3){_0x50f032['push'](_0x50f032['shift']());}}}(a154_0x5227,0x1acdb));import a154_0x1a975e from'semver';function a154_0x5227(){const _0x523412=['valid','1411696KUnzIi','minimumVersionMessage','currentVersion','stableVersion','validation','8464wNYYNM','Recommended\x20stable:\x20','upgradeMessage','minimumVersion','367461dpQzrw','61402dXBLyQ','924630OLIUFE','filter','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','join','unavailable','9heZoCF','npm\x20install\x20-g\x20','5394AipuQy','295ZajtyK','1216446AEoNlh'];a154_0x5227=function(){return _0x523412;};return a154_0x5227();}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(_0x2d8132,_0x4a94b5){const _0x30d2fb=a154_0x553e,_0x183717=a154_0x1a975e[_0x30d2fb(0x1e0)](_0x2d8132)===_0x2d8132,_0x148625=_0x4a94b5?.[_0x30d2fb(0x1e4)]??null,_0x471ef1=_0x4a94b5?.['minimumVersion']??null,_0x11fbc7=Boolean(_0x183717&&_0x148625&&a154_0x1a975e['lt'](_0x2d8132,_0x148625)),_0xdf477b=Boolean(_0x183717&&_0x471ef1&&a154_0x1a975e['lt'](_0x2d8132,_0x471ef1));return{'currentVersion':_0x2d8132,'stableVersion':_0x148625,'minimumVersion':_0x471ef1,'needsUpgrade':_0x11fbc7||_0xdf477b,'belowMinimum':_0xdf477b,'upgradeMessage':_0x4a94b5?.[_0x30d2fb(0x1e8)],'minimumVersionMessage':_0x4a94b5?.[_0x30d2fb(0x1e2)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x142d71){const _0x3c0629=a154_0x553e;return _0x3c0629(0x1f2)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x142d71[_0x3c0629(0x1e4)]??'latest');}export function assertCliVersionSupported(_0x311236){const _0x5cd215=a154_0x553e;if(!_0x311236['belowMinimum'])return;const _0x4982f8=[_0x311236['minimumVersionMessage'],'Current\x20version:\x20'+_0x311236[_0x5cd215(0x1e3)],'Minimum\x20supported:\x20'+_0x311236[_0x5cd215(0x1e9)],_0x5cd215(0x1e7)+(_0x311236[_0x5cd215(0x1e4)]??_0x5cd215(0x1f0)),'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x311236)][_0x5cd215(0x1ed)](Boolean)[_0x5cd215(0x1ef)]('\x0a');throw CliErrors[_0x5cd215(0x1e5)](_0x5cd215(0x1ee),_0x4982f8);}
@@ -1 +1 @@
1
- (function(_0x5d5817,_0x5cef44){const _0x551859=a154_0xb5ad,_0x5ace3c=_0x5d5817();while(!![]){try{const _0x3f2cf6=parseInt(_0x551859(0x11f))/0x1+parseInt(_0x551859(0x116))/0x2*(-parseInt(_0x551859(0x120))/0x3)+parseInt(_0x551859(0x11b))/0x4+-parseInt(_0x551859(0x115))/0x5+parseInt(_0x551859(0x118))/0x6+parseInt(_0x551859(0x119))/0x7*(parseInt(_0x551859(0x11d))/0x8)+-parseInt(_0x551859(0x11e))/0x9;if(_0x3f2cf6===_0x5cef44)break;else _0x5ace3c['push'](_0x5ace3c['shift']());}catch(_0x4f5785){_0x5ace3c['push'](_0x5ace3c['shift']());}}}(a154_0xf318,0xec88d));import a154_0x33698d from'semver';function a154_0xb5ad(_0x1ae2ed,_0x2d36b2){_0x1ae2ed=_0x1ae2ed-0x10f;const _0xf318d0=a154_0xf318();let _0xb5ad5=_0xf318d0[_0x1ae2ed];return _0xb5ad5;}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(_0x2b07cf){const _0x5c8041=a154_0xb5ad;return typeof _0x2b07cf===_0x5c8041(0x10f)&&_0x2b07cf['trim']()?_0x2b07cf['trim']():null;}function pickStrictSemver(_0x1ac4ac){const _0x5a9b19=pickString(_0x1ac4ac);return _0x5a9b19&&a154_0x33698d['valid'](_0x5a9b19)===_0x5a9b19?_0x5a9b19:null;}export function normalizeCliVersionPolicy(_0x2c650c){const _0x37147a=a154_0xb5ad;if(!_0x2c650c||typeof _0x2c650c!==_0x37147a(0x113))return null;const _0x104ebe=_0x2c650c,_0x2f1b16=_0x104ebe[_0x37147a(0x114)]&&typeof _0x104ebe[_0x37147a(0x114)]==='object'?_0x104ebe['cli']:_0x104ebe,_0x20396f=pickStrictSemver(_0x2f1b16[_0x37147a(0x11a)]??_0x2f1b16['latestVersion']??_0x2f1b16[_0x37147a(0x110)]),_0xd1b361=pickStrictSemver(_0x2f1b16[_0x37147a(0x121)]??_0x2f1b16[_0x37147a(0x111)]);if(!_0x20396f&&!_0xd1b361)return null;if(_0x20396f&&_0xd1b361&&a154_0x33698d['gt'](_0xd1b361,_0x20396f))return null;return{'stableVersion':_0x20396f,'minimumVersion':_0xd1b361,'upgradeMessage':pickString(_0x2f1b16['upgradeMessage'])??undefined,'minimumVersionMessage':pickString(_0x2f1b16[_0x37147a(0x112)])??undefined};}export async function fetchCliVersionPolicy(){const _0x39fce4=a154_0xb5ad;try{const _0x1d103f=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x39fce4(0x117)},'signal':AbortSignal['timeout'](FETCH_TIMEOUT_MS)});if(!_0x1d103f['ok'])return null;return normalizeCliVersionPolicy(await _0x1d103f['json']());}catch{return null;}}function a154_0xf318(){const _0x24e099=['340748dbjjKo','application/json','4150362jQamtG','2437337MQrNfH','stableVersion','3024676GOOZBE','finally','32rcMvmH','16296120dikxgP','123540NsEPHF','3SMPYuL','minimumVersion','now','string','recommendedVersion','minVersion','minimumVersionMessage','object','cli','71505ZVYVFS'];a154_0xf318=function(){return _0x24e099;};return a154_0xf318();}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x274f12=a154_0xb5ad,_0x471f02=Date['now']();if(hasCachedPolicy){const _0x569249=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x471f02-cachedAt<_0x569249)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x15266c=>{const _0x5c2bde=a154_0xb5ad;return cachedPolicy=_0x15266c,cachedAt=Date[_0x5c2bde(0x122)](),hasCachedPolicy=!![],_0x15266c;})[_0x274f12(0x11c)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
1
+ (function(_0x485110,_0x1c73f2){const _0x1afad0=a155_0x4a61,_0x22590d=_0x485110();while(!![]){try{const _0x15d0d0=parseInt(_0x1afad0(0x20b))/0x1*(parseInt(_0x1afad0(0x200))/0x2)+parseInt(_0x1afad0(0x206))/0x3*(parseInt(_0x1afad0(0x1ff))/0x4)+parseInt(_0x1afad0(0x203))/0x5*(parseInt(_0x1afad0(0x208))/0x6)+-parseInt(_0x1afad0(0x1f5))/0x7+parseInt(_0x1afad0(0x1fa))/0x8*(-parseInt(_0x1afad0(0x205))/0x9)+-parseInt(_0x1afad0(0x202))/0xa*(parseInt(_0x1afad0(0x1f9))/0xb)+parseInt(_0x1afad0(0x1fd))/0xc*(-parseInt(_0x1afad0(0x204))/0xd);if(_0x15d0d0===_0x1c73f2)break;else _0x22590d['push'](_0x22590d['shift']());}catch(_0x467cc1){_0x22590d['push'](_0x22590d['shift']());}}}(a155_0x581c,0xb4692));import a155_0x41e730 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(_0xc7030e){const _0x4023de=a155_0x4a61;return typeof _0xc7030e===_0x4023de(0x209)&&_0xc7030e[_0x4023de(0x1fe)]()?_0xc7030e[_0x4023de(0x1fe)]():null;}function a155_0x581c(){const _0x6f6e91=['object','12LzbMnA','trim','452PbaYTG','10vzWjLl','recommendedVersion','6000liJSEz','25745oFEGqI','9036443idakMW','70947cOraZD','16206BtrBmZ','upgradeMessage','1578XUmqJJ','string','stableVersion','241739vjOyyI','cli','valid','8620283cssjum','minimumVersion','minimumVersionMessage','application/json','9020AyEbIF','16dVduOF','now'];a155_0x581c=function(){return _0x6f6e91;};return a155_0x581c();}function a155_0x4a61(_0x35c872,_0x3745e7){_0x35c872=_0x35c872-0x1f4;const _0x581c84=a155_0x581c();let _0x4a616b=_0x581c84[_0x35c872];return _0x4a616b;}function pickStrictSemver(_0x3aa144){const _0x2de1b=a155_0x4a61,_0x4db13e=pickString(_0x3aa144);return _0x4db13e&&a155_0x41e730[_0x2de1b(0x1f4)](_0x4db13e)===_0x4db13e?_0x4db13e:null;}export function normalizeCliVersionPolicy(_0x5133f3){const _0x524242=a155_0x4a61;if(!_0x5133f3||typeof _0x5133f3!=='object')return null;const _0xcde45a=_0x5133f3,_0x1d02e7=_0xcde45a[_0x524242(0x20c)]&&typeof _0xcde45a['cli']===_0x524242(0x1fc)?_0xcde45a['cli']:_0xcde45a,_0x1139fb=pickStrictSemver(_0x1d02e7[_0x524242(0x20a)]??_0x1d02e7['latestVersion']??_0x1d02e7[_0x524242(0x201)]),_0x17177c=pickStrictSemver(_0x1d02e7[_0x524242(0x1f6)]??_0x1d02e7['minVersion']);if(!_0x1139fb&&!_0x17177c)return null;if(_0x1139fb&&_0x17177c&&a155_0x41e730['gt'](_0x17177c,_0x1139fb))return null;return{'stableVersion':_0x1139fb,'minimumVersion':_0x17177c,'upgradeMessage':pickString(_0x1d02e7[_0x524242(0x207)])??undefined,'minimumVersionMessage':pickString(_0x1d02e7[_0x524242(0x1f7)])??undefined};}export async function fetchCliVersionPolicy(){const _0x2d4cbb=a155_0x4a61;try{const _0x4a5d6d=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x2d4cbb(0x1f8)},'signal':AbortSignal['timeout'](FETCH_TIMEOUT_MS)});if(!_0x4a5d6d['ok'])return null;return normalizeCliVersionPolicy(await _0x4a5d6d['json']());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x5d5b53=a155_0x4a61,_0x4bc53a=Date[_0x5d5b53(0x1fb)]();if(hasCachedPolicy){const _0x5ac375=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x4bc53a-cachedAt<_0x5ac375)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x263b5a=>{const _0x5f426d=_0x5d5b53;return cachedPolicy=_0x263b5a,cachedAt=Date[_0x5f426d(0x1fb)](),hasCachedPolicy=!![],_0x263b5a;})['finally'](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
@@ -1 +1 @@
1
- const a155_0xab53fc=a155_0x3624;(function(_0x436503,_0x196934){const _0x25f7ad=a155_0x3624,_0x269d5e=_0x436503();while(!![]){try{const _0x2e8a98=-parseInt(_0x25f7ad(0xa9))/0x1*(-parseInt(_0x25f7ad(0xba))/0x2)+-parseInt(_0x25f7ad(0xc3))/0x3+-parseInt(_0x25f7ad(0xb4))/0x4+-parseInt(_0x25f7ad(0xd8))/0x5*(-parseInt(_0x25f7ad(0xd1))/0x6)+-parseInt(_0x25f7ad(0xbb))/0x7+-parseInt(_0x25f7ad(0xab))/0x8+parseInt(_0x25f7ad(0xb5))/0x9;if(_0x2e8a98===_0x196934)break;else _0x269d5e['push'](_0x269d5e['shift']());}catch(_0xdfa2e1){_0x269d5e['push'](_0x269d5e['shift']());}}}(a155_0x4b3e,0x2a1ac));import a155_0x14bacc from'winston';import a155_0x174792 from'node:fs';import a155_0x2c058d from'node:path';function a155_0x3624(_0xcfeb44,_0x448b23){_0xcfeb44=_0xcfeb44-0xa2;const _0x4b3eb3=a155_0x4b3e();let _0x3624b9=_0x4b3eb3[_0xcfeb44];return _0x3624b9;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a155_0xab53fc(0xc0)];['logFilePath']='';['currentRawCommand']='';constructor(){}[a155_0xab53fc(0xc6)](_0x1385d8){this['currentRawCommand']=_0x1385d8;}['setLogPath'](_0x26e328){const _0x416642=a155_0xab53fc;this['logFilePath']=a155_0x2c058d[_0x416642(0xd2)](_0x26e328,PRODUCT_CONFIG[_0x416642(0xbe)]),this['winstonLogger']&&this[_0x416642(0xc0)]['clear'](),this[_0x416642(0xb9)]();}[a155_0xab53fc(0xb9)](){const _0x471c69=a155_0xab53fc,_0x33a88e=a155_0x2c058d[_0x471c69(0xb6)](this[_0x471c69(0xd0)]);!a155_0x174792[_0x471c69(0xc2)](_0x33a88e)&&a155_0x174792[_0x471c69(0xc7)](_0x33a88e,{'recursive':!![]});const _0x12f6d0=a155_0x14bacc[_0x471c69(0xaf)][_0x471c69(0xd5)](a155_0x14bacc[_0x471c69(0xaf)][_0x471c69(0xc5)](),a155_0x14bacc['format'][_0x471c69(0xd3)]({'stack':!![]}),a155_0x14bacc[_0x471c69(0xaf)][_0x471c69(0xac)](_0x73a965=>{const _0x260ab3=_0x471c69,_0x3b7b6a={'timestamp':_0x73a965['timestamp']||new Date()[_0x260ab3(0xcc)](),'level':_0x73a965[_0x260ab3(0xc4)]||_0x260ab3(0xa2),'command':_0x73a965[_0x260ab3(0xcd)]||_0x260ab3(0xa5),'rawCommand':_0x73a965[_0x260ab3(0xb1)]||this[_0x260ab3(0xb7)]||undefined,'message':_0x73a965[_0x260ab3(0xbc)]||'','duration':_0x73a965[_0x260ab3(0xa4)]||undefined,'details':_0x73a965[_0x260ab3(0xc9)]||undefined};return JSON[_0x260ab3(0xb8)](_0x3b7b6a);}));this[_0x471c69(0xc0)]=a155_0x14bacc[_0x471c69(0xb2)]({'level':_0x471c69(0xa2),'format':_0x12f6d0,'transports':[new a155_0x14bacc[(_0x471c69(0xce))][(_0x471c69(0xad))]({'filename':this[_0x471c69(0xd0)],'level':_0x471c69(0xa2)})],'silent':![]}),a155_0x14bacc['addColors']({'success':_0x471c69(0xcb),'error':_0x471c69(0xbf),'warn':_0x471c69(0xd7),'info':_0x471c69(0xb0)});}[a155_0xab53fc(0xa2)](_0x4306fc,_0x414a43,_0x3474e0){const _0x1d4b8e=a155_0xab53fc;if(!this[_0x1d4b8e(0xd0)]||!this[_0x1d4b8e(0xc0)])return;this[_0x1d4b8e(0xc0)][_0x1d4b8e(0xa2)](_0x414a43,{'command':_0x4306fc,'details':_0x3474e0});}[a155_0xab53fc(0xa6)](_0x53058f,_0x1a2fd6,_0x797f76,_0x342616){const _0x2c500a=a155_0xab53fc;if(!this[_0x2c500a(0xd0)]||!this['winstonLogger'])return;this[_0x2c500a(0xc0)][_0x2c500a(0xa7)](_0x2c500a(0xa2),_0x1a2fd6,{'level':_0x2c500a(0xa6),'command':_0x53058f,'duration':_0x797f76,'details':_0x342616});}[a155_0xab53fc(0xca)](_0x22a58,_0x38ea14,_0x55a469){const _0x5c82de=a155_0xab53fc;if(!this[_0x5c82de(0xd0)]||!this['winstonLogger'])return;this[_0x5c82de(0xc0)][_0x5c82de(0xca)](_0x38ea14,{'command':_0x22a58,'details':_0x55a469});}[a155_0xab53fc(0xd6)](_0xe9fbf9,_0x45f1ba,_0x59c76a){const _0x4a1c87=a155_0xab53fc;if(!this[_0x4a1c87(0xd0)]||!this['winstonLogger'])return;this['winstonLogger'][_0x4a1c87(0xd6)](_0x45f1ba,{'command':_0xe9fbf9,'details':_0x59c76a});}async['logTask'](_0x300a93,_0xdadf10,_0xabb64c){const _0x44d246=a155_0xab53fc,_0x4042f9=Date[_0x44d246(0xc8)]();this['info'](_0x300a93,_0x44d246(0xd9)+_0xdadf10);try{const _0x2ce4c8=await _0xabb64c(),_0x3d752e=Date[_0x44d246(0xc8)]()-_0x4042f9;return this['success'](_0x300a93,'Completed:\x20'+_0xdadf10,_0x3d752e),_0x2ce4c8;}catch(_0x2d0c03){const _0x4e45e5=Date[_0x44d246(0xc8)]()-_0x4042f9;this[_0x44d246(0xca)](_0x300a93,_0x44d246(0xb3)+_0xdadf10,{'error':_0x2d0c03 instanceof Error?_0x2d0c03[_0x44d246(0xbc)]:String(_0x2d0c03),'duration':_0x4e45e5});throw _0x2d0c03;}}[a155_0xab53fc(0xa3)](){const _0x18b75e=a155_0xab53fc;try{if(!a155_0x174792[_0x18b75e(0xc2)](this['logFilePath']))return[];const _0x28cd72=a155_0x174792[_0x18b75e(0xd4)](this[_0x18b75e(0xd0)],_0x18b75e(0xaa));return _0x28cd72['split'](/\r?\n/)[_0x18b75e(0xc1)](_0x1b764b=>_0x1b764b[_0x18b75e(0xa8)]())['map'](_0x2fdafe=>JSON[_0x18b75e(0xcf)](_0x2fdafe));}catch(_0x2274eb){return console[_0x18b75e(0xd6)]('Failed\x20to\x20read\x20logs:',_0x2274eb),[];}}['clearLogs'](){const _0x1fc3d3=a155_0xab53fc;try{a155_0x174792[_0x1fc3d3(0xc2)](this[_0x1fc3d3(0xd0)])&&a155_0x174792[_0x1fc3d3(0xbd)](this[_0x1fc3d3(0xd0)],'',_0x1fc3d3(0xaa));}catch(_0x2a5596){console[_0x1fc3d3(0xd6)]('Failed\x20to\x20clear\x20logs:',_0x2a5596);}}[a155_0xab53fc(0xae)](){const _0x50f730=a155_0xab53fc;return this[_0x50f730(0xc0)];}}function a155_0x4b3e(){const _0x2ab7f6=['readLogs','duration','unknown','success','log','trim','17CeMbJs','utf8','318328sGQnjr','printf','File','getWinstonInstance','format','blue','rawCommand','createLogger','Failed:\x20','429296xFEaXF','4716522zfBGHg','dirname','currentRawCommand','stringify','initWinstonLogger','23786cJBCPO','2137499WACwEx','message','writeFileSync','logFileName','red','winstonLogger','filter','existsSync','913899MmHxWE','level','timestamp','setRawCommand','mkdirSync','now','details','error','green','toISOString','command','transports','parse','logFilePath','12JlnXmx','join','errors','readFileSync','combine','warn','yellow','508315Rljcgd','Starting:\x20','info'];a155_0x4b3e=function(){return _0x2ab7f6;};return a155_0x4b3e();}export const logger=new Logger();
1
+ const a156_0xa2f2dc=a156_0x27c2;function a156_0x1b35(){const _0x4a2543=['log','addColors','combine','parse','setLogPath','duration','readFileSync','initWinstonLogger','trim','26665yPhpbF','Failed\x20to\x20read\x20logs:','now','4402748soAwTj','currentRawCommand','command','createLogger','stringify','dirname','map','4656490HTcsKd','join','details','split','info','green','warn','clearLogs','18thYXDM','910816JADJJX','level','winstonLogger','9025464dxzphl','success','transports','toISOString','logTask','clear','existsSync','format','filter','writeFileSync','2527798bQmiMp','6559014dIIHCu','unknown','setRawCommand','rawCommand','getWinstonInstance','timestamp','Failed\x20to\x20clear\x20logs:','readLogs','3GeGJoZ','Starting:\x20','blue','File','mkdirSync','message','logFilePath','366OgOIRp','utf8','error'];a156_0x1b35=function(){return _0x4a2543;};return a156_0x1b35();}function a156_0x27c2(_0x480420,_0x35d1f1){_0x480420=_0x480420-0x81;const _0x1b3584=a156_0x1b35();let _0x27c260=_0x1b3584[_0x480420];return _0x27c260;}(function(_0x5f5205,_0x108381){const _0x15f1c7=a156_0x27c2,_0x24df9f=_0x5f5205();while(!![]){try{const _0x2da3c5=-parseInt(_0x15f1c7(0xa5))/0x1+parseInt(_0x15f1c7(0xb2))/0x2+-parseInt(_0x15f1c7(0xbb))/0x3*(-parseInt(_0x15f1c7(0x95))/0x4)+-parseInt(_0x15f1c7(0x92))/0x5*(-parseInt(_0x15f1c7(0x86))/0x6)+parseInt(_0x15f1c7(0xb3))/0x7+-parseInt(_0x15f1c7(0xa8))/0x8+-parseInt(_0x15f1c7(0xa4))/0x9*(parseInt(_0x15f1c7(0x9c))/0xa);if(_0x2da3c5===_0x108381)break;else _0x24df9f['push'](_0x24df9f['shift']());}catch(_0x2edce9){_0x24df9f['push'](_0x24df9f['shift']());}}}(a156_0x1b35,0xa04dc));import a156_0x5d5da4 from'winston';import a156_0x432203 from'node:fs';import a156_0x331134 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a156_0xa2f2dc(0xa7)];[a156_0xa2f2dc(0x85)]='';[a156_0xa2f2dc(0x96)]='';constructor(){}[a156_0xa2f2dc(0xb5)](_0xc0138b){const _0x147663=a156_0xa2f2dc;this[_0x147663(0x96)]=_0xc0138b;}[a156_0xa2f2dc(0x8d)](_0x1cf6ec){const _0x169aff=a156_0xa2f2dc;this[_0x169aff(0x85)]=a156_0x331134[_0x169aff(0x9d)](_0x1cf6ec,PRODUCT_CONFIG['logFileName']),this[_0x169aff(0xa7)]&&this['winstonLogger'][_0x169aff(0xad)](),this[_0x169aff(0x90)]();}[a156_0xa2f2dc(0x90)](){const _0x2063dd=a156_0xa2f2dc,_0x5e3889=a156_0x331134[_0x2063dd(0x9a)](this[_0x2063dd(0x85)]);!a156_0x432203[_0x2063dd(0xae)](_0x5e3889)&&a156_0x432203[_0x2063dd(0x83)](_0x5e3889,{'recursive':!![]});const _0x55b218=a156_0x5d5da4[_0x2063dd(0xaf)][_0x2063dd(0x8b)](a156_0x5d5da4[_0x2063dd(0xaf)][_0x2063dd(0xb8)](),a156_0x5d5da4[_0x2063dd(0xaf)]['errors']({'stack':!![]}),a156_0x5d5da4['format']['printf'](_0x249668=>{const _0x1f59ab=_0x2063dd,_0x10a956={'timestamp':_0x249668[_0x1f59ab(0xb8)]||new Date()[_0x1f59ab(0xab)](),'level':_0x249668[_0x1f59ab(0xa6)]||'info','command':_0x249668[_0x1f59ab(0x97)]||_0x1f59ab(0xb4),'rawCommand':_0x249668[_0x1f59ab(0xb6)]||this['currentRawCommand']||undefined,'message':_0x249668[_0x1f59ab(0x84)]||'','duration':_0x249668[_0x1f59ab(0x8e)]||undefined,'details':_0x249668[_0x1f59ab(0x9e)]||undefined};return JSON[_0x1f59ab(0x99)](_0x10a956);}));this[_0x2063dd(0xa7)]=a156_0x5d5da4[_0x2063dd(0x98)]({'level':'info','format':_0x55b218,'transports':[new a156_0x5d5da4[(_0x2063dd(0xaa))][(_0x2063dd(0x82))]({'filename':this[_0x2063dd(0x85)],'level':_0x2063dd(0xa0)})],'silent':![]}),a156_0x5d5da4[_0x2063dd(0x8a)]({'success':_0x2063dd(0xa1),'error':'red','warn':'yellow','info':_0x2063dd(0x81)});}['info'](_0x2a3a3c,_0x4a906f,_0x43c881){const _0x10ea51=a156_0xa2f2dc;if(!this[_0x10ea51(0x85)]||!this[_0x10ea51(0xa7)])return;this['winstonLogger'][_0x10ea51(0xa0)](_0x4a906f,{'command':_0x2a3a3c,'details':_0x43c881});}[a156_0xa2f2dc(0xa9)](_0x4c5fff,_0x325c72,_0x3b506d,_0x523b62){const _0x14ba1b=a156_0xa2f2dc;if(!this[_0x14ba1b(0x85)]||!this[_0x14ba1b(0xa7)])return;this[_0x14ba1b(0xa7)][_0x14ba1b(0x89)]('info',_0x325c72,{'level':_0x14ba1b(0xa9),'command':_0x4c5fff,'duration':_0x3b506d,'details':_0x523b62});}[a156_0xa2f2dc(0x88)](_0xfad488,_0x1e2cf6,_0x29084e){const _0x2ace1c=a156_0xa2f2dc;if(!this[_0x2ace1c(0x85)]||!this[_0x2ace1c(0xa7)])return;this[_0x2ace1c(0xa7)][_0x2ace1c(0x88)](_0x1e2cf6,{'command':_0xfad488,'details':_0x29084e});}['warn'](_0x2f10dc,_0x10d6dd,_0x4de90b){const _0x4319b2=a156_0xa2f2dc;if(!this[_0x4319b2(0x85)]||!this[_0x4319b2(0xa7)])return;this[_0x4319b2(0xa7)]['warn'](_0x10d6dd,{'command':_0x2f10dc,'details':_0x4de90b});}async[a156_0xa2f2dc(0xac)](_0x5e5723,_0x419b4c,_0x2a68c3){const _0x9447a2=a156_0xa2f2dc,_0x2d190c=Date[_0x9447a2(0x94)]();this[_0x9447a2(0xa0)](_0x5e5723,_0x9447a2(0xbc)+_0x419b4c);try{const _0x227601=await _0x2a68c3(),_0x3890f5=Date[_0x9447a2(0x94)]()-_0x2d190c;return this[_0x9447a2(0xa9)](_0x5e5723,'Completed:\x20'+_0x419b4c,_0x3890f5),_0x227601;}catch(_0x1cb6bf){const _0x278955=Date[_0x9447a2(0x94)]()-_0x2d190c;this[_0x9447a2(0x88)](_0x5e5723,'Failed:\x20'+_0x419b4c,{'error':_0x1cb6bf instanceof Error?_0x1cb6bf['message']:String(_0x1cb6bf),'duration':_0x278955});throw _0x1cb6bf;}}[a156_0xa2f2dc(0xba)](){const _0x342b2c=a156_0xa2f2dc;try{if(!a156_0x432203[_0x342b2c(0xae)](this[_0x342b2c(0x85)]))return[];const _0x5d1128=a156_0x432203[_0x342b2c(0x8f)](this[_0x342b2c(0x85)],_0x342b2c(0x87));return _0x5d1128[_0x342b2c(0x9f)](/\r?\n/)[_0x342b2c(0xb0)](_0x272ab2=>_0x272ab2[_0x342b2c(0x91)]())[_0x342b2c(0x9b)](_0x1c05f5=>JSON[_0x342b2c(0x8c)](_0x1c05f5));}catch(_0x8a7bad){return console[_0x342b2c(0xa2)](_0x342b2c(0x93),_0x8a7bad),[];}}[a156_0xa2f2dc(0xa3)](){const _0x34684d=a156_0xa2f2dc;try{a156_0x432203[_0x34684d(0xae)](this['logFilePath'])&&a156_0x432203[_0x34684d(0xb1)](this[_0x34684d(0x85)],'',_0x34684d(0x87));}catch(_0x5ba645){console[_0x34684d(0xa2)](_0x34684d(0xb9),_0x5ba645);}}[a156_0xa2f2dc(0xb7)](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- const a156_0x12f3c3=a156_0x1f47;function a156_0x210a(){const _0x2a135e=['includes','defineProperty','3466445zTFeYT','18xKtsqJ','2425908TxUfjP','MIN_SAFE_INTEGER','undefined','length','slice','parse','33010nPzLjA','1vmMJgG','exec','160688XiKClU','prototype','1056392XRjPVy','json','2007248UecoJs','21iZbxeB','9196HfIFHT','443946ZCQopc'];a156_0x210a=function(){return _0x2a135e;};return a156_0x210a();}function a156_0x1f47(_0x53acbc,_0x56a7b2){_0x53acbc=_0x53acbc-0x77;const _0x210a1e=a156_0x210a();let _0x1f47aa=_0x210a1e[_0x53acbc];return _0x1f47aa;}(function(_0x2d6686,_0x5604aa){const _0x5e0f3d=a156_0x1f47,_0x203a29=_0x2d6686();while(!![]){try{const _0x45270f=parseInt(_0x5e0f3d(0x89))/0x1*(-parseInt(_0x5e0f3d(0x78))/0x2)+-parseInt(_0x5e0f3d(0x82))/0x3+-parseInt(_0x5e0f3d(0x8b))/0x4+-parseInt(_0x5e0f3d(0x80))/0x5+-parseInt(_0x5e0f3d(0x7d))/0x6*(-parseInt(_0x5e0f3d(0x7b))/0x7)+-parseInt(_0x5e0f3d(0x7a))/0x8*(parseInt(_0x5e0f3d(0x81))/0x9)+-parseInt(_0x5e0f3d(0x88))/0xa*(-parseInt(_0x5e0f3d(0x7c))/0xb);if(_0x45270f===_0x5604aa)break;else _0x203a29['push'](_0x203a29['shift']());}catch(_0x3e613d){_0x203a29['push'](_0x203a29['shift']());}}}(a156_0x210a,0x63fa0));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a156_0x12f3c3(0x83)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x37d66b){const _0xcd433=a156_0x12f3c3;if(_0x37d66b[_0xcd433(0x7e)]('.')||_0x37d66b[_0xcd433(0x7e)]('e')||_0x37d66b[_0xcd433(0x7e)]('E'))return![];const _0x1fe72a=BigInt(_0x37d66b);return _0x1fe72a>MAX_SAFE_INTEGER||_0x1fe72a<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x11010f){const _0x2dbe35=a156_0x12f3c3;let _0x101f34='',_0x2b15ad=![],_0x286a82=![];for(let _0x946395=0x0;_0x946395<_0x11010f['length'];){const _0x3f93f9=_0x11010f[_0x946395];if(_0x2b15ad){_0x101f34+=_0x3f93f9,_0x946395+=0x1;if(_0x286a82)_0x286a82=![];else{if(_0x3f93f9==='\x5c')_0x286a82=!![];else _0x3f93f9==='\x22'&&(_0x2b15ad=![]);}continue;}if(_0x3f93f9==='\x22'){_0x2b15ad=!![],_0x101f34+=_0x3f93f9,_0x946395+=0x1;continue;}if(_0x3f93f9==='-'||_0x3f93f9>='0'&&_0x3f93f9<='9'){const _0x34a421=JSON_NUMBER_PATTERN[_0x2dbe35(0x8a)](_0x11010f[_0x2dbe35(0x86)](_0x946395))?.[0x0];if(_0x34a421){_0x101f34+=isUnsafeIntegerLiteral(_0x34a421)?'\x22'+_0x34a421+'\x22':_0x34a421,_0x946395+=_0x34a421[_0x2dbe35(0x85)];continue;}}_0x101f34+=_0x3f93f9,_0x946395+=0x1;}return _0x101f34;}export function parseLosslessJson(_0x2a836c){const _0x356469=a156_0x12f3c3;return JSON[_0x356469(0x87)](quoteUnsafeIntegerLiterals(_0x2a836c));}export function installLosslessJsonResponseParser(){const _0x95094f=a156_0x12f3c3;if(typeof Response===_0x95094f(0x84))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x95094f(0x77)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,'json'),Object['defineProperty'](responseJsonPrototype,_0x95094f(0x79),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x31b31e(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x5a614b=_0x95094f;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x5a614b(0x7f)](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ const a157_0x4f18e0=a157_0x23b3;(function(_0x2c34f,_0x519223){const _0x2f5129=a157_0x23b3,_0x341862=_0x2c34f();while(!![]){try{const _0x43355e=parseInt(_0x2f5129(0x1a1))/0x1+-parseInt(_0x2f5129(0x193))/0x2*(parseInt(_0x2f5129(0x190))/0x3)+-parseInt(_0x2f5129(0x197))/0x4+-parseInt(_0x2f5129(0x198))/0x5+-parseInt(_0x2f5129(0x1a2))/0x6+-parseInt(_0x2f5129(0x195))/0x7+-parseInt(_0x2f5129(0x19a))/0x8*(-parseInt(_0x2f5129(0x1a0))/0x9);if(_0x43355e===_0x519223)break;else _0x341862['push'](_0x341862['shift']());}catch(_0x1a959c){_0x341862['push'](_0x341862['shift']());}}}(a157_0x1210,0x5b4e4));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a157_0x4f18e0(0x199)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x4ec963){const _0x5e38af=a157_0x4f18e0;if(_0x4ec963[_0x5e38af(0x192)]('.')||_0x4ec963[_0x5e38af(0x192)]('e')||_0x4ec963[_0x5e38af(0x192)]('E'))return![];const _0x4db401=BigInt(_0x4ec963);return _0x4db401>MAX_SAFE_INTEGER||_0x4db401<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0xd43150){const _0x2a7562=a157_0x4f18e0;let _0xf1a38e='',_0x2bf41c=![],_0x99037a=![];for(let _0x1c6fc2=0x0;_0x1c6fc2<_0xd43150[_0x2a7562(0x19d)];){const _0x4afb3a=_0xd43150[_0x1c6fc2];if(_0x2bf41c){_0xf1a38e+=_0x4afb3a,_0x1c6fc2+=0x1;if(_0x99037a)_0x99037a=![];else{if(_0x4afb3a==='\x5c')_0x99037a=!![];else _0x4afb3a==='\x22'&&(_0x2bf41c=![]);}continue;}if(_0x4afb3a==='\x22'){_0x2bf41c=!![],_0xf1a38e+=_0x4afb3a,_0x1c6fc2+=0x1;continue;}if(_0x4afb3a==='-'||_0x4afb3a>='0'&&_0x4afb3a<='9'){const _0x227c7c=JSON_NUMBER_PATTERN[_0x2a7562(0x19b)](_0xd43150[_0x2a7562(0x196)](_0x1c6fc2))?.[0x0];if(_0x227c7c){_0xf1a38e+=isUnsafeIntegerLiteral(_0x227c7c)?'\x22'+_0x227c7c+'\x22':_0x227c7c,_0x1c6fc2+=_0x227c7c[_0x2a7562(0x19d)];continue;}}_0xf1a38e+=_0x4afb3a,_0x1c6fc2+=0x1;}return _0xf1a38e;}function a157_0x23b3(_0x1d4c83,_0x3948a5){_0x1d4c83=_0x1d4c83-0x190;const _0x1210ff=a157_0x1210();let _0x23b3ba=_0x1210ff[_0x1d4c83];return _0x23b3ba;}export function parseLosslessJson(_0x4e3ff0){const _0x59a270=a157_0x4f18e0;return JSON[_0x59a270(0x194)](quoteUnsafeIntegerLiterals(_0x4e3ff0));}export function installLosslessJsonResponseParser(){const _0x14d8e0=a157_0x4f18e0;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x14d8e0(0x19f)],originalResponseJsonDescriptor=Object[_0x14d8e0(0x19e)](responseJsonPrototype,'json'),Object[_0x14d8e0(0x191)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x40e315(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x4c6f60=_0x14d8e0;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x4c6f60(0x191)](responseJsonPrototype,_0x4c6f60(0x19c),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x4c6f60(0x19c)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}function a157_0x1210(){const _0x55c349=['includes','10xwhNYF','parse','2457602KTxboR','slice','136268oWjVhB','1137555iEnLKp','MIN_SAFE_INTEGER','44152RYeKFX','exec','json','length','getOwnPropertyDescriptor','prototype','2691KHGeFv','276353wXXbhz','3281322cUEECM','235797ugJLEm','defineProperty'];a157_0x1210=function(){return _0x55c349;};return a157_0x1210();}
@@ -1 +1 @@
1
- (function(_0x1c9bca,_0x381e3f){const _0x250d39=a157_0x5bce,_0x4487ef=_0x1c9bca();while(!![]){try{const _0x552888=parseInt(_0x250d39(0x15b))/0x1+parseInt(_0x250d39(0x162))/0x2*(-parseInt(_0x250d39(0x14c))/0x3)+parseInt(_0x250d39(0x147))/0x4*(-parseInt(_0x250d39(0x156))/0x5)+-parseInt(_0x250d39(0x15c))/0x6*(parseInt(_0x250d39(0x14f))/0x7)+-parseInt(_0x250d39(0x14b))/0x8*(-parseInt(_0x250d39(0x159))/0x9)+parseInt(_0x250d39(0x15e))/0xa+parseInt(_0x250d39(0x15d))/0xb*(-parseInt(_0x250d39(0x157))/0xc);if(_0x552888===_0x381e3f)break;else _0x4487ef['push'](_0x4487ef['shift']());}catch(_0x46be3f){_0x4487ef['push'](_0x4487ef['shift']());}}}(a157_0x520c,0x3c660));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x55e4af){const _0xe50a29=a157_0x5bce;if(!_0x55e4af)return undefined;try{return parseLosslessJson(_0x55e4af);}catch{throw CliErrors[_0xe50a29(0x14d)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x55e4af);}}export function parseJsonParamsValue(_0x1cc0f1){const _0x5ba3ff=a157_0x5bce;if(!_0x1cc0f1)return undefined;try{return parseLosslessJson(_0x1cc0f1);}catch{throw CliErrors[_0x5ba3ff(0x14d)](_0x5ba3ff(0x150)+_0x1cc0f1);}}export function parseBatchCreateItemsFromParams(_0x2f48d5){const _0x1a6ac0=a157_0x5bce;if(Array['isArray'](_0x2f48d5))return _0x2f48d5;if(_0x2f48d5!==null&&_0x2f48d5!==undefined&&typeof _0x2f48d5===_0x1a6ac0(0x160)&&Array[_0x1a6ac0(0x15a)](_0x2f48d5['items']))return _0x2f48d5[_0x1a6ac0(0x161)];throw CliErrors['validation'](_0x1a6ac0(0x155),_0x1a6ac0(0x14e));}function a157_0x5bce(_0x2b8b70,_0xfd38a3){_0x2b8b70=_0x2b8b70-0x144;const _0x520c27=a157_0x520c();let _0x5bcee2=_0x520c27[_0x2b8b70];return _0x5bcee2;}function a157_0x520c(){const _0x2fcfe9=['1128663FenoxY','validation','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','7nafbMC','Invalid\x20JSON\x20for\x20--params:\x20','\x20records\x20per\x20call;\x20received\x20','id[','string','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','10fMxddd','259032TJVeDL','length','1960947CHgppK','isArray','268635nSiUtw','88554NwTVbE','99pUxqXM','4396530kkyRNJ','isSafeInteger','object','items','2tVlswm','test','join','data\x20update\x20can\x20update\x20at\x20most\x20','622816rHJxpE','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','map','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','16hJDYYp'];a157_0x520c=function(){return _0x2fcfe9;};return a157_0x520c();}function parseDataUpdateId(_0x2a1bb0,_0x340e17){const _0x2a2f34=a157_0x5bce;if(typeof _0x2a1bb0==='number'&&Number[_0x2a2f34(0x15f)](_0x2a1bb0)&&_0x2a1bb0>0x0)return _0x2a1bb0;if(typeof _0x2a1bb0===_0x2a2f34(0x153)){if(/^[1-9]\d*$/[_0x2a2f34(0x144)](_0x2a1bb0))return _0x2a1bb0;}throw CliErrors[_0x2a2f34(0x14d)]('data\x20update\x20--params.'+_0x340e17+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x4fe3d5){const _0x2d3646=a157_0x5bce;if(_0x4fe3d5===null||_0x4fe3d5===undefined||typeof _0x4fe3d5!==_0x2d3646(0x160)||Array[_0x2d3646(0x15a)](_0x4fe3d5))throw CliErrors[_0x2d3646(0x14d)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x2d3646(0x148));const _0x4b8abb=_0x4fe3d5['id'];if(_0x4b8abb===undefined||_0x4b8abb===null)throw CliErrors[_0x2d3646(0x14d)](_0x2d3646(0x14a),_0x2d3646(0x148));const _0x2e669b=Array[_0x2d3646(0x15a)](_0x4b8abb)?_0x4b8abb:[_0x4b8abb];if(_0x2e669b['length']===0x0)throw CliErrors[_0x2d3646(0x14d)](_0x2d3646(0x154));if(_0x2e669b['length']>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x2d3646(0x14d)](_0x2d3646(0x146)+MAX_DATA_UPDATE_IDS+_0x2d3646(0x151)+_0x2e669b['length']+'.');return _0x2e669b[_0x2d3646(0x149)]((_0x41b7d3,_0x300ca9)=>parseDataUpdateId(_0x41b7d3,Array[_0x2d3646(0x15a)](_0x4b8abb)?_0x2d3646(0x152)+_0x300ca9+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x486c2b,_0x26a2f1){const _0x5cb89e=a157_0x5bce;if(Array[_0x5cb89e(0x15a)](_0x486c2b['id'])&&_0x26a2f1[_0x5cb89e(0x158)]>0x1)return{..._0x486c2b,'id':_0x26a2f1[_0x5cb89e(0x145)](',')};return _0x486c2b;}
1
+ (function(_0x2f4f20,_0xfba19c){const _0x573eaf=a158_0x2c93,_0x44a58b=_0x2f4f20();while(!![]){try{const _0x136486=parseInt(_0x573eaf(0x117))/0x1*(parseInt(_0x573eaf(0x11c))/0x2)+-parseInt(_0x573eaf(0x109))/0x3*(-parseInt(_0x573eaf(0x105))/0x4)+-parseInt(_0x573eaf(0x113))/0x5+-parseInt(_0x573eaf(0x11d))/0x6+parseInt(_0x573eaf(0x112))/0x7+-parseInt(_0x573eaf(0x10a))/0x8+parseInt(_0x573eaf(0x111))/0x9*(-parseInt(_0x573eaf(0x11e))/0xa);if(_0x136486===_0xfba19c)break;else _0x44a58b['push'](_0x44a58b['shift']());}catch(_0x380419){_0x44a58b['push'](_0x44a58b['shift']());}}}(a158_0xf9af,0xcf287));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';function a158_0x2c93(_0xee106d,_0x13725d){_0xee106d=_0xee106d-0x101;const _0xf9afa3=a158_0xf9af();let _0x2c93a4=_0xf9afa3[_0xee106d];return _0x2c93a4;}export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x5dde58){const _0x4233f5=a158_0x2c93;if(!_0x5dde58)return undefined;try{return parseLosslessJson(_0x5dde58);}catch{throw CliErrors[_0x4233f5(0x10b)](_0x4233f5(0x119)+_0x5dde58);}}export function parseJsonParamsValue(_0x485040){const _0x5c9303=a158_0x2c93;if(!_0x485040)return undefined;try{return parseLosslessJson(_0x485040);}catch{throw CliErrors['validation'](_0x5c9303(0x119)+_0x485040);}}export function parseBatchCreateItemsFromParams(_0x381cb8){const _0x5980bb=a158_0x2c93;if(Array[_0x5980bb(0x115)](_0x381cb8))return _0x381cb8;if(_0x381cb8!==null&&_0x381cb8!==undefined&&typeof _0x381cb8==='object'&&Array[_0x5980bb(0x115)](_0x381cb8[_0x5980bb(0x106)]))return _0x381cb8[_0x5980bb(0x106)];throw CliErrors[_0x5980bb(0x10b)](_0x5980bb(0x10f),_0x5980bb(0x102));}function parseDataUpdateId(_0x2eb2a7,_0x5d4ae9){const _0x471f47=a158_0x2c93;if(typeof _0x2eb2a7===_0x471f47(0x103)&&Number[_0x471f47(0x110)](_0x2eb2a7)&&_0x2eb2a7>0x0)return _0x2eb2a7;if(typeof _0x2eb2a7===_0x471f47(0x114)){if(/^[1-9]\d*$/[_0x471f47(0x104)](_0x2eb2a7))return _0x2eb2a7;}throw CliErrors[_0x471f47(0x10b)]('data\x20update\x20--params.'+_0x5d4ae9+_0x471f47(0x11b));}export function parseUpdateIdsFromParams(_0x45dc4b){const _0x2a3e3e=a158_0x2c93;if(_0x45dc4b===null||_0x45dc4b===undefined||typeof _0x45dc4b!==_0x2a3e3e(0x108)||Array[_0x2a3e3e(0x115)](_0x45dc4b))throw CliErrors[_0x2a3e3e(0x10b)](_0x2a3e3e(0x11a),_0x2a3e3e(0x10c));const _0x27a52c=_0x45dc4b['id'];if(_0x27a52c===undefined||_0x27a52c===null)throw CliErrors[_0x2a3e3e(0x10b)](_0x2a3e3e(0x118),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x2a9c47=Array[_0x2a3e3e(0x115)](_0x27a52c)?_0x27a52c:[_0x27a52c];if(_0x2a9c47[_0x2a3e3e(0x116)]===0x0)throw CliErrors[_0x2a3e3e(0x10b)](_0x2a3e3e(0x107));if(_0x2a9c47[_0x2a3e3e(0x116)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x2a3e3e(0x10b)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x2a3e3e(0x10e)+_0x2a9c47['length']+'.');return _0x2a9c47['map']((_0x51054c,_0x1d4f29)=>parseDataUpdateId(_0x51054c,Array[_0x2a3e3e(0x115)](_0x27a52c)?_0x2a3e3e(0x10d)+_0x1d4f29+']':'id'));}function a158_0xf9af(){const _0x5ecdce=['6937818QTNNKV','727970DemLPw','join','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','number','test','6585872nsIUEv','items','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','object','3nHaCqa','13497624KObQuz','validation','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','id[','\x20records\x20per\x20call;\x20received\x20','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','isSafeInteger','144FkrUWi','11516519rfUpXe','191800GZntuA','string','isArray','length','2UuXZeC','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','Invalid\x20JSON\x20for\x20--params:\x20','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','1603452sRTnaf'];a158_0xf9af=function(){return _0x5ecdce;};return a158_0xf9af();}export function normalizeUpdateParamsForRuntime(_0x3c69b8,_0x20850b){const _0x2f1974=a158_0x2c93;if(Array[_0x2f1974(0x115)](_0x3c69b8['id'])&&_0x20850b[_0x2f1974(0x116)]>0x1)return{..._0x3c69b8,'id':_0x20850b[_0x2f1974(0x101)](',')};return _0x3c69b8;}
@@ -1 +1 @@
1
- const a158_0x51a0cd=a158_0x1424;(function(_0x24dba1,_0x273e8a){const _0x4305a6=a158_0x1424,_0x3f919e=_0x24dba1();while(!![]){try{const _0x2716ca=-parseInt(_0x4305a6(0x1ed))/0x1+-parseInt(_0x4305a6(0x1e8))/0x2+parseInt(_0x4305a6(0x1f2))/0x3*(-parseInt(_0x4305a6(0x1ec))/0x4)+-parseInt(_0x4305a6(0x1f1))/0x5*(parseInt(_0x4305a6(0x1f0))/0x6)+-parseInt(_0x4305a6(0x1f3))/0x7*(parseInt(_0x4305a6(0x1ef))/0x8)+parseInt(_0x4305a6(0x1eb))/0x9+parseInt(_0x4305a6(0x1ea))/0xa;if(_0x2716ca===_0x273e8a)break;else _0x3f919e['push'](_0x3f919e['shift']());}catch(_0x68e8fb){_0x3f919e['push'](_0x3f919e['shift']());}}}(a158_0x1eda,0x3b18f));function a158_0x1eda(){const _0x4f9b65=['181906ktoaHZ','win32','14816ZTFimb','744lqlFDh','8345erGZDK','879gADbHq','1204GIICtb','560520ggteVb','platform','8427020ysmUGq','4224240GOikNO','1124vuDMio'];a158_0x1eda=function(){return _0x4f9b65;};return a158_0x1eda();}function a158_0x1424(_0x3a471c,_0x1c2dcc){_0x3a471c=_0x3a471c-0x1e8;const _0x1eda09=a158_0x1eda();let _0x1424ce=_0x1eda09[_0x3a471c];return _0x1424ce;}export const isWindows=process[a158_0x51a0cd(0x1e9)]===a158_0x51a0cd(0x1ee);export function resolveNpmBin(_0x238f6a){return isWindows?_0x238f6a+'.cmd':_0x238f6a;}
1
+ const a159_0x178dad=a159_0x2b94;(function(_0x4c94d5,_0x1e7ea7){const _0xc12bed=a159_0x2b94,_0x2f6aa5=_0x4c94d5();while(!![]){try{const _0x2d4bfc=-parseInt(_0xc12bed(0xbb))/0x1*(-parseInt(_0xc12bed(0xba))/0x2)+-parseInt(_0xc12bed(0xbc))/0x3+-parseInt(_0xc12bed(0xc7))/0x4*(parseInt(_0xc12bed(0xb9))/0x5)+parseInt(_0xc12bed(0xc3))/0x6*(-parseInt(_0xc12bed(0xc2))/0x7)+parseInt(_0xc12bed(0xbf))/0x8*(parseInt(_0xc12bed(0xbd))/0x9)+-parseInt(_0xc12bed(0xc6))/0xa*(parseInt(_0xc12bed(0xc1))/0xb)+parseInt(_0xc12bed(0xc0))/0xc*(parseInt(_0xc12bed(0xc4))/0xd);if(_0x2d4bfc===_0x1e7ea7)break;else _0x2f6aa5['push'](_0x2f6aa5['shift']());}catch(_0x2484a5){_0x2f6aa5['push'](_0x2f6aa5['shift']());}}}(a159_0x1dc5,0xaadd4));export const isWindows=process[a159_0x178dad(0xc5)]==='win32';function a159_0x1dc5(){const _0x44d397=['5dwJYUZ','720801FrWNGd','2022183qrVYHt','.cmd','40IfQsXJ','131268MGjLQZ','5890687gWsLFJ','406ljKMJv','90654TVLcud','1573LbxhjC','platform','10otcDkV','3827052MxfBGY','5NQXmaV','344670pztVNh'];a159_0x1dc5=function(){return _0x44d397;};return a159_0x1dc5();}function a159_0x2b94(_0x5cb21e,_0x1ec7a2){_0x5cb21e=_0x5cb21e-0xb9;const _0x1dc5e0=a159_0x1dc5();let _0x2b947e=_0x1dc5e0[_0x5cb21e];return _0x2b947e;}export function resolveNpmBin(_0x3c5387){const _0x27e695=a159_0x178dad;return isWindows?_0x3c5387+_0x27e695(0xbe):_0x3c5387;}
@@ -1 +1 @@
1
- (function(_0x915850,_0x43d934){const _0x25b761=a159_0x46f6,_0x3cb3ab=_0x915850();while(!![]){try{const _0x40617d=parseInt(_0x25b761(0xe7))/0x1*(-parseInt(_0x25b761(0xd3))/0x2)+parseInt(_0x25b761(0xde))/0x3*(-parseInt(_0x25b761(0xd4))/0x4)+-parseInt(_0x25b761(0xdb))/0x5*(-parseInt(_0x25b761(0xdc))/0x6)+-parseInt(_0x25b761(0xeb))/0x7+-parseInt(_0x25b761(0xd5))/0x8*(parseInt(_0x25b761(0xe3))/0x9)+parseInt(_0x25b761(0xe8))/0xa*(parseInt(_0x25b761(0xd6))/0xb)+parseInt(_0x25b761(0xee))/0xc;if(_0x40617d===_0x43d934)break;else _0x3cb3ab['push'](_0x3cb3ab['shift']());}catch(_0xada21a){_0x3cb3ab['push'](_0x3cb3ab['shift']());}}}(a159_0x23e1,0x94090));function a159_0x46f6(_0x20a1ae,_0x2912ab){_0x20a1ae=_0x20a1ae-0xd3;const _0x23e1f8=a159_0x23e1();let _0x46f69a=_0x23e1f8[_0x20a1ae];return _0x46f69a;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function a159_0x23e1(){const _0x4f0491=['5155003MXVjpg','belowMinimum','stableVersion','41833608pjcYrc','276GHLvLt','76tTRLuh','14736CyPZlw','22uNGDiJ','.cache','number','filter','https://www.npmjs.com/package/','1195630gAcPGp','18VhVbZZ','stringify','166233NMjzbH','true','upgradeMessage','parse',',\x20run:\x20','4311jUOawo','utf8','join','trim','8617jEOTVg','1317710jgOyad','\x20is\x20recommended,\x20current\x20','lovrabet-cli'];a159_0x23e1=function(){return _0x4f0491;};return a159_0x23e1();}function isUpdateNoticeDisabled(){const _0x833967=a159_0x46f6,_0x1064fa=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x833967(0xe6)]()['toLowerCase']();return _0x1064fa==='1'||_0x1064fa===_0x833967(0xdf)||_0x1064fa==='yes';}function cacheRoot(){const _0x4c5670=a159_0x46f6;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4c5670(0xd7));}export function getUpdateNoticeCachePath(){const _0x532a03=a159_0x46f6;return join(cacheRoot(),_0x532a03(0xea),'update-check.json');}async function readUpdateNoticeCache(){const _0x55c11f=a159_0x46f6;try{const _0x35622d=await readFile(getUpdateNoticeCachePath(),'utf8'),_0xef13e2=JSON[_0x55c11f(0xe1)](_0x35622d);if(!_0xef13e2||typeof _0xef13e2!=='object')return{};return _0xef13e2;}catch{return{};}}async function writeUpdateNoticeCache(_0x2e9334){const _0x13205b=a159_0x46f6;try{const _0x5a5cf6=getUpdateNoticeCachePath();await mkdir(dirname(_0x5a5cf6),{'recursive':!![]}),await writeFile(_0x5a5cf6,JSON[_0x13205b(0xdd)](_0x2e9334,null,0x2)+'\x0a',_0x13205b(0xe4));}catch{}}function isRecentlyNotified(_0x32f6bc,_0x2c8669,_0x3a85a7){const _0xe20cda=a159_0x46f6;return _0x32f6bc['lastNotifiedVersion']===_0x2c8669&&typeof _0x32f6bc['lastNotifiedAt']===_0xe20cda(0xd8)&&_0x3a85a7-_0x32f6bc['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5e2898){const _0x18f482=a159_0x46f6;return _0x18f482(0xda)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x5e2898;}export async function resolveLatestUpdateNotice(_0x1b0efd){const _0x48ef3f=a159_0x46f6;if(isUpdateNoticeDisabled())return null;try{const _0x2817d4=Date['now'](),_0x217f70=_0x1b0efd??await checkCliVersion(),_0x114645=_0x217f70['currentVersion'],_0x1e321d=_0x217f70[_0x48ef3f(0xed)],_0x4d529a=await readUpdateNoticeCache();if(!_0x1e321d||!_0x217f70['needsUpgrade']||_0x217f70[_0x48ef3f(0xec)])return null;if(isRecentlyNotified(_0x4d529a,_0x1e321d,_0x2817d4))return null;const _0x152bca=getCliUpgradeCommand(_0x217f70);return await writeUpdateNoticeCache({..._0x4d529a,'checkedAt':_0x2817d4,'latest':_0x1e321d,'failed':![],'lastNotifiedVersion':_0x1e321d,'lastNotifiedAt':_0x2817d4}),{'command':_0x152bca,'current':_0x114645,'latest':_0x1e321d,'url':buildNpmVersionUrl(_0x1e321d),'message':[_0x217f70[_0x48ef3f(0xe0)],CLI_BIN_NAME+'\x20'+_0x1e321d+_0x48ef3f(0xe9)+_0x114645+_0x48ef3f(0xe2)+_0x152bca][_0x48ef3f(0xd9)](Boolean)[_0x48ef3f(0xe5)]('\x20')};}catch{return null;}}
1
+ (function(_0x1e0930,_0x25804d){const _0x154795=a160_0x29bb,_0x1366e4=_0x1e0930();while(!![]){try{const _0x9e911d=parseInt(_0x154795(0xde))/0x1*(-parseInt(_0x154795(0xd7))/0x2)+parseInt(_0x154795(0xd3))/0x3+-parseInt(_0x154795(0xca))/0x4*(parseInt(_0x154795(0xd0))/0x5)+parseInt(_0x154795(0xd4))/0x6+-parseInt(_0x154795(0xd9))/0x7+parseInt(_0x154795(0xdc))/0x8+-parseInt(_0x154795(0xda))/0x9;if(_0x9e911d===_0x25804d)break;else _0x1366e4['push'](_0x1366e4['shift']());}catch(_0x54be09){_0x1366e4['push'](_0x1366e4['shift']());}}}(a160_0xba79,0x96683));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a160_0x29bb(_0x51b6ce,_0x2d10c0){_0x51b6ce=_0x51b6ce-0xc9;const _0xba793f=a160_0xba79();let _0x29bbe2=_0xba793f[_0x51b6ce];return _0x29bbe2;}import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a160_0xba79(){const _0x5dc352=['update-check.json','lovrabet-cli','2560782jSxjxD','258378eoGgyJ','trim','number','9600KyZYul','now','7164654xnvYiK','2394135oYbxsE','stringify','8970088bOPcfx','object','13mAbgTV','lastNotifiedVersion','upgradeMessage','true','https://www.npmjs.com/package/','parse','stableVersion','1128RQMtOw','lastNotifiedAt','join','filter','needsUpgrade','utf8','885wjCUZs'];a160_0xba79=function(){return _0x5dc352;};return a160_0xba79();}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 _0x2e3899=a160_0x29bb,_0x2350d0=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x2e3899(0xd5)]()['toLowerCase']();return _0x2350d0==='1'||_0x2350d0===_0x2e3899(0xe1)||_0x2350d0==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x1e4c20=a160_0x29bb;return join(cacheRoot(),_0x1e4c20(0xd2),_0x1e4c20(0xd1));}async function readUpdateNoticeCache(){const _0x4c99ca=a160_0x29bb;try{const _0x3e7c61=await readFile(getUpdateNoticeCachePath(),_0x4c99ca(0xcf)),_0x303fe6=JSON[_0x4c99ca(0xe3)](_0x3e7c61);if(!_0x303fe6||typeof _0x303fe6!==_0x4c99ca(0xdd))return{};return _0x303fe6;}catch{return{};}}async function writeUpdateNoticeCache(_0x3c8be1){const _0x2b0b66=a160_0x29bb;try{const _0x4b2aed=getUpdateNoticeCachePath();await mkdir(dirname(_0x4b2aed),{'recursive':!![]}),await writeFile(_0x4b2aed,JSON[_0x2b0b66(0xdb)](_0x3c8be1,null,0x2)+'\x0a',_0x2b0b66(0xcf));}catch{}}function isRecentlyNotified(_0x31650b,_0x4a54e9,_0x123fd4){const _0x14cea2=a160_0x29bb;return _0x31650b[_0x14cea2(0xdf)]===_0x4a54e9&&typeof _0x31650b[_0x14cea2(0xcb)]===_0x14cea2(0xd6)&&_0x123fd4-_0x31650b[_0x14cea2(0xcb)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x251165){const _0xec1447=a160_0x29bb;return _0xec1447(0xe2)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x251165;}export async function resolveLatestUpdateNotice(_0x1f9020){const _0x2b071a=a160_0x29bb;if(isUpdateNoticeDisabled())return null;try{const _0x1d2883=Date[_0x2b071a(0xd8)](),_0xdde4eb=_0x1f9020??await checkCliVersion(),_0xe9816a=_0xdde4eb['currentVersion'],_0x3859aa=_0xdde4eb[_0x2b071a(0xc9)],_0x2472b1=await readUpdateNoticeCache();if(!_0x3859aa||!_0xdde4eb[_0x2b071a(0xce)]||_0xdde4eb['belowMinimum'])return null;if(isRecentlyNotified(_0x2472b1,_0x3859aa,_0x1d2883))return null;const _0x2483d6=getCliUpgradeCommand(_0xdde4eb);return await writeUpdateNoticeCache({..._0x2472b1,'checkedAt':_0x1d2883,'latest':_0x3859aa,'failed':![],'lastNotifiedVersion':_0x3859aa,'lastNotifiedAt':_0x1d2883}),{'command':_0x2483d6,'current':_0xe9816a,'latest':_0x3859aa,'url':buildNpmVersionUrl(_0x3859aa),'message':[_0xdde4eb[_0x2b071a(0xe0)],CLI_BIN_NAME+'\x20'+_0x3859aa+'\x20is\x20recommended,\x20current\x20'+_0xe9816a+',\x20run:\x20'+_0x2483d6][_0x2b071a(0xcd)](Boolean)[_0x2b071a(0xcc)]('\x20')};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x120b1e,_0x46f70c){const _0x4e701d=a160_0x23e8,_0x41cd48=_0x120b1e();while(!![]){try{const _0x381516=parseInt(_0x4e701d(0x168))/0x1+parseInt(_0x4e701d(0x160))/0x2*(parseInt(_0x4e701d(0x163))/0x3)+-parseInt(_0x4e701d(0x15c))/0x4*(parseInt(_0x4e701d(0x15f))/0x5)+parseInt(_0x4e701d(0x15e))/0x6*(parseInt(_0x4e701d(0x165))/0x7)+parseInt(_0x4e701d(0x162))/0x8+parseInt(_0x4e701d(0x164))/0x9*(parseInt(_0x4e701d(0x161))/0xa)+-parseInt(_0x4e701d(0x167))/0xb*(parseInt(_0x4e701d(0x15d))/0xc);if(_0x381516===_0x46f70c)break;else _0x41cd48['push'](_0x41cd48['shift']());}catch(_0x167921){_0x41cd48['push'](_0x41cd48['shift']());}}}(a160_0x110d,0x6ecee));function a160_0x110d(){const _0x5de4c3=['647501iGRTCm','4STnhuu','372vYifER','1574094PANRfO','4513945hrWStC','192686EAZZOv','4010JvZVDe','3954024Pdhwvb','15fbbZGW','17649tYxXbJ','14MscOtk','unknown','559889KYXUPq'];a160_0x110d=function(){return _0x5de4c3;};return a160_0x110d();}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a160_0x23e8(_0xa838b1,_0x5ad70b){_0xa838b1=_0xa838b1-0x15c;const _0x110d24=a160_0x110d();let _0x23e805=_0x110d24[_0xa838b1];return _0x23e805;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x4de677=a160_0x23e8,_0x650428=String(GIT_COMMIT);return _0x650428&&_0x650428!==_0x4de677(0x166)?_0x650428:'';}export function getCliVersionDisplay(){const _0xf6d082=getCliGitCommit(),_0x59f0b3=BUILD_TIME['slice'](0x0,0xa);if(!_0xf6d082||!_0x59f0b3)return VERSION;return VERSION+'\x20('+_0xf6d082+',\x20'+_0x59f0b3+')';}
1
+ (function(_0x2c4b53,_0x3ed644){const _0x40651a=a161_0x623c,_0x546a81=_0x2c4b53();while(!![]){try{const _0x54a764=-parseInt(_0x40651a(0x12a))/0x1*(-parseInt(_0x40651a(0x12c))/0x2)+parseInt(_0x40651a(0x12d))/0x3+parseInt(_0x40651a(0x12f))/0x4*(-parseInt(_0x40651a(0x12b))/0x5)+-parseInt(_0x40651a(0x126))/0x6*(-parseInt(_0x40651a(0x129))/0x7)+-parseInt(_0x40651a(0x132))/0x8*(-parseInt(_0x40651a(0x12e))/0x9)+-parseInt(_0x40651a(0x133))/0xa*(parseInt(_0x40651a(0x130))/0xb)+parseInt(_0x40651a(0x128))/0xc*(-parseInt(_0x40651a(0x131))/0xd);if(_0x54a764===_0x3ed644)break;else _0x546a81['push'](_0x546a81['shift']());}catch(_0x45056c){_0x546a81['push'](_0x546a81['shift']());}}}(a161_0x3909,0xad366));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x5001b8=a161_0x623c,_0x37cd8f=String(GIT_COMMIT);return _0x37cd8f&&_0x37cd8f!==_0x5001b8(0x125)?_0x37cd8f:'';}function a161_0x623c(_0x104f76,_0x3e7529){_0x104f76=_0x104f76-0x125;const _0x390949=a161_0x3909();let _0x623cd4=_0x390949[_0x104f76];return _0x623cd4;}export function getCliVersionDisplay(){const _0x5a5636=a161_0x623c,_0x4549aa=getCliGitCommit(),_0x270119=BUILD_TIME[_0x5a5636(0x127)](0x0,0xa);if(!_0x4549aa||!_0x270119)return VERSION;return VERSION+'\x20('+_0x4549aa+',\x20'+_0x270119+')';}function a161_0x3909(){const _0x8a1073=['27065WJSjXS','45nAxBkG','86JaDtlL','1420143sPTpTI','81522fvwVDU','537932eENVKy','1695947ZJDmUt','12250381UVALke','184NlMzhV','10SRWDfh','unknown','66fMNmMs','slice','12FrJXqP','745073zbadKm'];a161_0x3909=function(){return _0x8a1073;};return a161_0x3909();}
@@ -1 +1 @@
1
- function a161_0x26a9(_0x2c6692,_0x2b8d23){_0x2c6692=_0x2c6692-0x149;var _0x3bac0e=a161_0x3bac();var _0x26a9d8=_0x3bac0e[_0x2c6692];return _0x26a9d8;}(function(_0x3dad13,_0x1aa702){var _0x3e2c97=a161_0x26a9,_0x5d1596=_0x3dad13();while(!![]){try{var _0x53395a=-parseInt(_0x3e2c97(0x155))/0x1*(-parseInt(_0x3e2c97(0x14d))/0x2)+-parseInt(_0x3e2c97(0x156))/0x3*(parseInt(_0x3e2c97(0x14e))/0x4)+parseInt(_0x3e2c97(0x151))/0x5*(-parseInt(_0x3e2c97(0x14b))/0x6)+-parseInt(_0x3e2c97(0x154))/0x7*(-parseInt(_0x3e2c97(0x153))/0x8)+-parseInt(_0x3e2c97(0x149))/0x9*(-parseInt(_0x3e2c97(0x14a))/0xa)+parseInt(_0x3e2c97(0x14f))/0xb+-parseInt(_0x3e2c97(0x150))/0xc;if(_0x53395a===_0x1aa702)break;else _0x5d1596['push'](_0x5d1596['shift']());}catch(_0x357fc5){_0x5d1596['push'](_0x5d1596['shift']());}}}(a161_0x3bac,0x91f42));export function writeCliSideChannelLine(_0x1b9394){var _0x8daec=a161_0x26a9;process[_0x8daec(0x14c)][_0x8daec(0x152)](_0x1b9394+'\x0a');}function a161_0x3bac(){var _0x2b4eb8=['2tauTLO','13924YgpbQZ','4420196zBEEmG','9783276LhBkKB','1620995SNitkO','write','184mrMfmR','217077ZFKolV','637283Alvvai','366EdoKYe','6604263vzjFdA','10uGdcHs','12ukbUqP','stderr'];a161_0x3bac=function(){return _0x2b4eb8;};return a161_0x3bac();}
1
+ (function(_0x5576a0,_0x28b7df){var _0x5a49ec=a162_0x122f,_0x1b7bea=_0x5576a0();while(!![]){try{var _0x4248f9=-parseInt(_0x5a49ec(0x190))/0x1*(parseInt(_0x5a49ec(0x197))/0x2)+parseInt(_0x5a49ec(0x192))/0x3*(parseInt(_0x5a49ec(0x193))/0x4)+parseInt(_0x5a49ec(0x195))/0x5+parseInt(_0x5a49ec(0x199))/0x6*(parseInt(_0x5a49ec(0x19a))/0x7)+-parseInt(_0x5a49ec(0x18f))/0x8*(parseInt(_0x5a49ec(0x18e))/0x9)+-parseInt(_0x5a49ec(0x194))/0xa+parseInt(_0x5a49ec(0x191))/0xb*(parseInt(_0x5a49ec(0x196))/0xc);if(_0x4248f9===_0x28b7df)break;else _0x1b7bea['push'](_0x1b7bea['shift']());}catch(_0x2aa302){_0x1b7bea['push'](_0x1b7bea['shift']());}}}(a162_0x5e8d,0x787da));function a162_0x122f(_0x2be3b9,_0x37132c){_0x2be3b9=_0x2be3b9-0x18e;var _0x5e8d14=a162_0x5e8d();var _0x122f95=_0x5e8d14[_0x2be3b9];return _0x122f95;}function a162_0x5e8d(){var _0x3119dc=['5187AHbqdD','131796bDIHwa','344RJYEIH','59GDEMae','47509OqLKEf','20661xVQgvv','44TtsYGR','9206950gzhhSU','2282515gmVabQ','4764xShtuk','6906qssjqR','stderr','6PTfuxG'];a162_0x5e8d=function(){return _0x3119dc;};return a162_0x5e8d();}export function writeCliSideChannelLine(_0x45f84d){var _0x19ddee=a162_0x122f;process[_0x19ddee(0x198)]['write'](_0x45f84d+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.3.0",
3
+ "version": "2.3.1-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.0
4
+ version: 2.3.1-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、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
6
6
  metadata:
7
7
  requires:
@@ -331,7 +331,7 @@ Service Tree 未命中不是失败条件,也不代表业务能力不存在。
331
331
  | **kb** | `detail` | 查看 personal 知识库正文与 RAG 状态 | read | AK |
332
332
  | **kb** | `create` | 从本地文件创建 personal 知识库 | write | AK |
333
333
  | **kb** | `update` | 从本地文件更新 personal 知识库 | write | AK |
334
- | **kb** | `search` | 检索可见公司和个人知识 | read | AK |
334
+ | **kb** | `search` | 检索可见公共、公司和个人知识 | read | AK |
335
335
  | **schedule** | `validate` | 校验 UTC 定时任务,不创建计划 | read | AK |
336
336
  | **schedule** | `create` | 创建周期或单次定时任务(需确认) | high-risk-write | AK |
337
337
  | **schedule** | `list` | 分页查看当前应用的定时任务 | read | AK |
@@ -435,6 +435,7 @@ Service Tree 未命中不是失败条件,也不代表业务能力不存在。
435
435
  | 查看 Personal Backend Function | `lovrabet personal-bff detail --id <id>` |
436
436
  | 创建 Personal Backend Function | `lovrabet personal-bff create --name loadOrders --file ./load-orders.js --dry-run` |
437
437
  | 执行 Personal Backend Function | `lovrabet personal-bff exec --id <id> --params '{"key":"value"}'` |
438
+ | 页面调用 Personal Backend Function | 先用 CLI 核对返回契约,再按 [Personal Backend Function 工作流](references/lovrabet-personal-bff-workflow.md) 使用 `client.personal.bff.execute({ scriptId, params })`;禁止用可选调用静默吞掉能力缺失 |
438
439
 
439
440
  ### Personal Backend Function 与知识库
440
441
 
@@ -96,7 +96,7 @@ Personal Backend Function 是当前用户在当前应用下维护的个人脚本
96
96
  2. `lovrabet personal-bff detail --id <id>` 查看现有脚本后再更新
97
97
  3. 从本地脚本文件 `create` 或 `update`
98
98
  4. `lovrabet personal-bff exec --id <id> --params '<json>' --format compress` 确认返回形状
99
- 5. 再把结果形状用于下游调用或交付说明
99
+ 5. 页面接入时使用 `client.personal.bff.execute({ scriptId, params })`,并按 [Personal Backend Function 工作流](../references/lovrabet-personal-bff-workflow.md) 做能力检测、认证隔离和返回形状校验
100
100
 
101
101
  ```bash
102
102
  lovrabet personal-bff create --name loadOrders --file ./load-orders.js --dry-run