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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/README.md +11 -0
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-search-client.d.ts +7 -1
  109. package/lib/core/kb-search-client.js +1 -1
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/build-all-flags.js +1 -1
  113. package/lib/framework/dryrun.js +1 -1
  114. package/lib/framework/flags.js +1 -1
  115. package/lib/framework/help.js +1 -1
  116. package/lib/framework/index.js +1 -1
  117. package/lib/framework/output.js +1 -1
  118. package/lib/framework/preparse.js +1 -1
  119. package/lib/framework/rate-limit.js +1 -1
  120. package/lib/framework/raw-flags.js +1 -1
  121. package/lib/framework/response.js +1 -1
  122. package/lib/framework/runner-confirmation.js +1 -1
  123. package/lib/framework/runner-error.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.js +1 -1
  128. package/lib/generated/build-info.d.ts +4 -4
  129. package/lib/generated/build-info.js +1 -1
  130. package/lib/generated/official-routing.js +1 -1
  131. package/lib/generated/routing-contract.js +1 -1
  132. package/lib/help.js +1 -1
  133. package/lib/postinstall.js +1 -1
  134. package/lib/runtime/confirmation.js +1 -1
  135. package/lib/runtime/event.js +1 -1
  136. package/lib/runtime/index.js +1 -1
  137. package/lib/runtime/queue.js +1 -1
  138. package/lib/runtime/resolve.js +1 -1
  139. package/lib/skills/builtin-skill.js +1 -1
  140. package/lib/skills/npx-skills-add.js +1 -1
  141. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  142. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  143. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  144. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  145. package/lib/skills/runtime-skill-sync/links.js +1 -1
  146. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  147. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  148. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  149. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  150. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  151. package/lib/skills/runtime-skill-sync/push.js +1 -1
  152. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  153. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  154. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  155. package/lib/skills/runtime-skill-sync.js +1 -1
  156. package/lib/skills/skill-presence.js +1 -1
  157. package/lib/utils/access-key-redaction.js +1 -1
  158. package/lib/utils/apply-jq-filter.js +1 -1
  159. package/lib/utils/cli-version-check.js +1 -1
  160. package/lib/utils/cli-version-policy.js +1 -1
  161. package/lib/utils/logger.js +1 -1
  162. package/lib/utils/lossless-json.js +1 -1
  163. package/lib/utils/params.js +1 -1
  164. package/lib/utils/positive-safe-integer.js +1 -1
  165. package/lib/utils/redaction.js +1 -1
  166. package/lib/utils/update-notice.js +1 -1
  167. package/lib/utils/version.js +1 -1
  168. package/lib/utils/write-cli-side-channel.js +1 -1
  169. package/package.json +1 -1
  170. package/skills/lovrabet/SKILL.md +4 -2
  171. package/skills/lovrabet/references/lovrabet-config-commands.md +1 -1
  172. package/skills/lovrabet/references/lovrabet-config.md +2 -2
  173. package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
  174. package/skills/lovrabet/references/lovrabet-kb-workflow.md +16 -6
  175. package/skills/lovrabet/references/lovrabet-service-tree.md +1 -1
  176. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- function a151_0x413a(){const _0x4b2e96=['51957seUBVx','38030tYKFck','4112724ZRoqAd','206532aIjvPb','781qjYCan','name','endsWith','object','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','8248jqqnGl','664gHYcDC','from','validation_error','code','1490LxqbXi','length','1980-01-01T00:00:00.000Z','validation','map','383508yqRuSK','entries','3FeMNsz','1820931NnLHZI'];a151_0x413a=function(){return _0x4b2e96;};return a151_0x413a();}const a151_0x2e381b=a151_0x9f71;(function(_0x38df9c,_0x19ca84){const _0x50408a=a151_0x9f71,_0x5366ea=_0x38df9c();while(!![]){try{const _0x101857=parseInt(_0x50408a(0xe3))/0x1+parseInt(_0x50408a(0xf3))/0x2*(parseInt(_0x50408a(0xde))/0x3)+-parseInt(_0x50408a(0xe9))/0x4*(-parseInt(_0x50408a(0xee))/0x5)+-parseInt(_0x50408a(0xe2))/0x6+parseInt(_0x50408a(0xdf))/0x7+-parseInt(_0x50408a(0xea))/0x8*(parseInt(_0x50408a(0xe0))/0x9)+parseInt(_0x50408a(0xe1))/0xa*(parseInt(_0x50408a(0xe4))/0xb);if(_0x101857===_0x19ca84)break;else _0x5366ea['push'](_0x5366ea['shift']());}catch(_0x4a9049){_0x5366ea['push'](_0x5366ea['shift']());}}}(a151_0x413a,0x5c5b7));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a151_0x2e381b(0xf0));export function createDeterministicZipPackage(_0xc7d03a){const _0x45d5c2=a151_0x2e381b,_0x25e8ae={};for(const _0x3476e4 of normalizeLocalFiles(_0xc7d03a)){_0x25e8ae[_0x3476e4['path']]=fileContent(_0x3476e4);}return Buffer[_0x45d5c2(0xeb)](zipSync(_0x25e8ae,{'level':0x0,'mtime':ZIP_MTIME}));}function a151_0x9f71(_0x1ba7ef,_0xc300e6){_0x1ba7ef=_0x1ba7ef-0xde;const _0x413ac4=a151_0x413a();let _0x9f7104=_0x413ac4[_0x1ba7ef];return _0x9f7104;}export function parseZipPackage(_0x520d66){const _0x71d3ec=a151_0x2e381b;if(_0x520d66[_0x71d3ec(0xef)]<0x16)throw CliErrors[_0x71d3ec(0xf1)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0xf14266;try{_0xf14266=unzipSync(_0x520d66,{'filter'(_0x10b2e7){const _0x128fa9=_0x71d3ec,_0x24a373=normalizeSkillRelativePath(_0x10b2e7[_0x128fa9(0xe5)]);if(_0x24a373[_0x128fa9(0xe6)]('/'))throw CliErrors['validation'](_0x128fa9(0xe8)+_0x24a373);return!![];}});}catch(_0x21865c){if(isRuntimeSkillValidationError(_0x21865c))throw _0x21865c;throw CliErrors[_0x71d3ec(0xf1)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object[_0x71d3ec(0xf4)](_0xf14266)[_0x71d3ec(0xf2)](([_0x18a9d4,_0x77330])=>({'path':normalizeSkillRelativePath(_0x18a9d4),'bytes':Buffer['from'](_0x77330)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x4a2c97){const _0x535863=a151_0x2e381b;return typeof _0x4a2c97===_0x535863(0xe7)&&_0x4a2c97!==null&&_0x535863(0xed)in _0x4a2c97&&_0x4a2c97[_0x535863(0xed)]===_0x535863(0xec);}
1
+ const a151_0x2aded5=a151_0x5d56;function a151_0x5d56(_0x1099a7,_0x161f0d){_0x1099a7=_0x1099a7-0xd5;const _0x410350=a151_0x4103();let _0x5d56e2=_0x410350[_0x1099a7];return _0x5d56e2;}(function(_0xffbfb2,_0xed80ae){const _0x53eaa8=a151_0x5d56,_0x53e10c=_0xffbfb2();while(!![]){try{const _0x272f41=parseInt(_0x53eaa8(0xe0))/0x1*(-parseInt(_0x53eaa8(0xdf))/0x2)+-parseInt(_0x53eaa8(0xda))/0x3*(-parseInt(_0x53eaa8(0xe4))/0x4)+parseInt(_0x53eaa8(0xd6))/0x5+parseInt(_0x53eaa8(0xd8))/0x6*(parseInt(_0x53eaa8(0xd7))/0x7)+-parseInt(_0x53eaa8(0xdc))/0x8+-parseInt(_0x53eaa8(0xe7))/0x9+parseInt(_0x53eaa8(0xdb))/0xa*(parseInt(_0x53eaa8(0xd5))/0xb);if(_0x272f41===_0xed80ae)break;else _0x53e10c['push'](_0x53e10c['shift']());}catch(_0x922a2){_0x53e10c['push'](_0x53e10c['shift']());}}}(a151_0x4103,0x7f4a7));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a151_0x4103(){const _0x358f2b=['validation','187ZhYqYB','957250KjzQWp','133MVUlsT','121578LwafBK','code','33pGZxHl','187210nvKjHa','2601720HdIqbn','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','1980-01-01T00:00:00.000Z','845390MgarPD','1ooQzLv','entries','from','map','222476giuEIr','length','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','2134980kQimGn','object','name'];a151_0x4103=function(){return _0x358f2b;};return a151_0x4103();}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a151_0x2aded5(0xde));export function createDeterministicZipPackage(_0x2d8c21){const _0x240e85=a151_0x2aded5,_0x3ad485={};for(const _0x311bab of normalizeLocalFiles(_0x2d8c21)){_0x3ad485[_0x311bab['path']]=fileContent(_0x311bab);}return Buffer[_0x240e85(0xe2)](zipSync(_0x3ad485,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x7234ed){const _0x14a301=a151_0x2aded5;if(_0x7234ed[_0x14a301(0xe5)]<0x16)throw CliErrors[_0x14a301(0xea)](_0x14a301(0xe6));let _0x5b47eb;try{_0x5b47eb=unzipSync(_0x7234ed,{'filter'(_0x1ff048){const _0x470ee5=_0x14a301,_0x30014c=normalizeSkillRelativePath(_0x1ff048[_0x470ee5(0xe9)]);if(_0x30014c['endsWith']('/'))throw CliErrors[_0x470ee5(0xea)](_0x470ee5(0xdd)+_0x30014c);return!![];}});}catch(_0x5e84fb){if(isRuntimeSkillValidationError(_0x5e84fb))throw _0x5e84fb;throw CliErrors[_0x14a301(0xea)](_0x14a301(0xe6));}return Object[_0x14a301(0xe1)](_0x5b47eb)[_0x14a301(0xe3)](([_0x19450d,_0x4405ba])=>({'path':normalizeSkillRelativePath(_0x19450d),'bytes':Buffer[_0x14a301(0xe2)](_0x4405ba)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x3c49ff){const _0x14547f=a151_0x2aded5;return typeof _0x3c49ff===_0x14547f(0xe8)&&_0x3c49ff!==null&&_0x14547f(0xd9)in _0x3c49ff&&_0x3c49ff[_0x14547f(0xd9)]==='validation_error';}
@@ -1 +1 @@
1
- (function(_0x56d67b,_0x1ec256){const _0x3a5b0a=a152_0x3d59,_0x46d5b0=_0x56d67b();while(!![]){try{const _0x499caf=-parseInt(_0x3a5b0a(0x1e6))/0x1+parseInt(_0x3a5b0a(0x1fe))/0x2*(-parseInt(_0x3a5b0a(0x212))/0x3)+parseInt(_0x3a5b0a(0x1fc))/0x4+parseInt(_0x3a5b0a(0x1e7))/0x5+parseInt(_0x3a5b0a(0x1ef))/0x6*(-parseInt(_0x3a5b0a(0x1fb))/0x7)+parseInt(_0x3a5b0a(0x1f3))/0x8*(-parseInt(_0x3a5b0a(0x1f0))/0x9)+parseInt(_0x3a5b0a(0x1f4))/0xa;if(_0x499caf===_0x1ec256)break;else _0x46d5b0['push'](_0x46d5b0['shift']());}catch(_0x31b21e){_0x46d5b0['push'](_0x46d5b0['shift']());}}}(a152_0x57e6,0x311e7));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(_0x513149){const _0x46c6df=a152_0x3d59,_0x3589b3=normalizeLocalFiles(_0x513149);if(!_0x3589b3[_0x46c6df(0x1f1)](_0x240559=>_0x240559[_0x46c6df(0x1e9)]===SKILL_FILE))throw CliErrors[_0x46c6df(0x208)](_0x46c6df(0x20e)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0xfad2d2=localFilesToManifestFiles(_0x3589b3),_0x36da65=createDeterministicZipPackage(_0x3589b3);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0xfad2d2),'zipSha256':bufferSha256(_0x36da65),'zipSize':_0x36da65[_0x46c6df(0x204)],'files':_0xfad2d2},'packageBytes':_0x36da65,'packageBase64':_0x36da65[_0x46c6df(0x1e8)](_0x46c6df(0x1ea))};}export function verifyRuntimeSkillPackage(_0x283d0e,_0x5e24af){const _0x359f82=a152_0x3d59,_0x5d7c87=normalizePackageManifest(_0x283d0e,{'requireOssPath':![]});if(!_0x5d7c87)throw CliErrors[_0x359f82(0x208)](_0x359f82(0x1f8));return extractAndVerifyPackage(_0x5d7c87,_0x5e24af);}export function verifyRuntimeSkillBundle(_0xb5b0dd,_0x9356fc){const _0x1e4d08=a152_0x3d59,_0x28ff01=normalizePackageManifest(_0xb5b0dd,{'requireOssPath':![]});if(!_0x28ff01)throw CliErrors[_0x1e4d08(0x208)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x28ff01,_0x9356fc);}export function tryNormalizePackageManifest(_0x46fa59){return normalizePackageManifest(_0x46fa59,{'requireOssPath':![]});}function a152_0x57e6(){const _0x45b775=['has','154534IOuyVa','set','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','zipSha256','schemaVersion','ossPath','length','isSafeInteger','Duplicate\x20Skill\x20package\x20entry:\x20','sha256','validation','isArray','get','size','requireOssPath','files','Missing\x20','Runtime\x20Skill\x20package\x20size\x20mismatch.','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','toLowerCase','3hUOoAi','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','323927FeQvOL','1505605LJdNAy','toString','path','base64','push','bytes','treeSha256','zipSize','5286FsmbtM','9DbTUwC','some','Runtime\x20Skill\x20package\x20is\x20missing\x20','68776lgGVnB','4151360XZEZgx','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','string','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','1743lPefRP','456376JyAbvS'];a152_0x57e6=function(){return _0x45b775;};return a152_0x57e6();}export function requirePackageBytes(_0x574499,_0x273d84){const _0x1aad8b=a152_0x3d59;if(!_0x273d84||_0x273d84[_0x1aad8b(0x204)]===0x0)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x574499);return _0x273d84;}export function extractDownloadedPackage(_0xd5fa81){const _0x489f4c=a152_0x3d59,_0x975d83=parseZipPackage(_0xd5fa81)['map'](_0x28c94b=>({'path':_0x28c94b['path'],'bytes':_0x28c94b[_0x489f4c(0x1ec)]}));if(!_0x975d83[_0x489f4c(0x1f1)](_0x1444c5=>_0x1444c5[_0x489f4c(0x1e9)]===SKILL_FILE))throw CliErrors['validation'](_0x489f4c(0x1f2)+SKILL_FILE+'.');return normalizeLocalFiles(_0x975d83);}export function localFilesToManifestFiles(_0x19ab2f){const _0x186c7d=a152_0x3d59;return normalizeLocalFiles(_0x19ab2f)['map'](_0x34ae84=>({'path':_0x34ae84['path'],'sha256':fileHash(_0x34ae84),'size':fileContent(_0x34ae84)[_0x186c7d(0x204)]}));}function normalizePackageManifest(_0x5bd1d9,_0x19b653){const _0xdfca41=a152_0x3d59;if(!_0x5bd1d9||typeof _0x5bd1d9!=='object'||Array[_0xdfca41(0x209)](_0x5bd1d9))return undefined;const _0x54a77e=_0x5bd1d9,_0x13c299=typeof _0x54a77e[_0xdfca41(0x203)]===_0xdfca41(0x1f9)?_0x54a77e[_0xdfca41(0x203)]['trim']():undefined;if(_0x19b653[_0xdfca41(0x20c)]&&!_0x13c299)return undefined;if(!Array['isArray'](_0x54a77e['files'])||_0x54a77e[_0xdfca41(0x20d)][_0xdfca41(0x204)]===0x0)return undefined;if(!isSha256Hex(_0x54a77e[_0xdfca41(0x1ed)]))throw CliErrors[_0xdfca41(0x208)](_0xdfca41(0x1f7));if(!isSha256Hex(_0x54a77e['zipSha256']))throw CliErrors[_0xdfca41(0x208)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0xdfca41(0x205)](_0x54a77e[_0xdfca41(0x1ee)])||_0x54a77e[_0xdfca41(0x1ee)]<0x0)throw CliErrors[_0xdfca41(0x208)](_0xdfca41(0x1f6));const _0x280d29=normalizeManifestFiles(_0x54a77e['files']);if(!_0x280d29[_0xdfca41(0x1f1)](_0x49e5a0=>_0x49e5a0['path']===SKILL_FILE))throw CliErrors[_0xdfca41(0x208)](_0xdfca41(0x200)+SKILL_FILE+'.');const _0x49871=fileTreeHash(_0x280d29);if(_0x49871!==_0x54a77e[_0xdfca41(0x1ed)][_0xdfca41(0x211)]())throw CliErrors[_0xdfca41(0x208)](_0xdfca41(0x1fa));return{'schemaVersion':Number[_0xdfca41(0x205)](_0x54a77e[_0xdfca41(0x202)])?_0x54a77e[_0xdfca41(0x202)]:0x2,'ossPath':_0x13c299,'treeSha256':_0x49871,'zipSha256':_0x54a77e['zipSha256'][_0xdfca41(0x211)](),'zipSize':_0x54a77e[_0xdfca41(0x1ee)],'files':_0x280d29};}function a152_0x3d59(_0x6ee96c,_0x19a3d3){_0x6ee96c=_0x6ee96c-0x1e6;const _0x57e638=a152_0x57e6();let _0x3d5999=_0x57e638[_0x6ee96c];return _0x3d5999;}function extractAndVerifyPackage(_0x2988dd,_0x4c7e20){const _0x175b32=a152_0x3d59,_0x2424d9=normalizePackageManifest(_0x2988dd,{'requireOssPath':![]});if(!_0x2424d9)throw CliErrors[_0x175b32(0x208)](_0x175b32(0x1f8));if(_0x4c7e20[_0x175b32(0x204)]!==_0x2424d9[_0x175b32(0x1ee)])throw CliErrors['validation'](_0x175b32(0x20f));const _0x30d065=bufferSha256(_0x4c7e20);if(_0x30d065!==_0x2424d9[_0x175b32(0x201)])throw CliErrors[_0x175b32(0x208)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x2424d9,_0x4c7e20);}function extractAndVerifyPackageFiles(_0x3826b4,_0x77d12){const _0x3ddb6=a152_0x3d59,_0x3fa65c=parseZipPackage(_0x77d12);if(_0x3fa65c[_0x3ddb6(0x204)]!==_0x3826b4[_0x3ddb6(0x20d)][_0x3ddb6(0x204)])throw CliErrors[_0x3ddb6(0x208)](_0x3ddb6(0x210));const _0x24c82b=new Map();for(const _0x539c72 of _0x3fa65c){if(_0x24c82b[_0x3ddb6(0x1fd)](_0x539c72[_0x3ddb6(0x1e9)]))throw CliErrors['validation'](_0x3ddb6(0x206)+_0x539c72[_0x3ddb6(0x1e9)]);_0x24c82b[_0x3ddb6(0x1ff)](_0x539c72[_0x3ddb6(0x1e9)],_0x539c72);}const _0x423551=[];for(const _0x1bf06d of _0x3826b4[_0x3ddb6(0x20d)]){const _0x735bd0=_0x24c82b[_0x3ddb6(0x20a)](_0x1bf06d[_0x3ddb6(0x1e9)]);if(!_0x735bd0)throw CliErrors['validation'](_0x3ddb6(0x1f5)+_0x1bf06d[_0x3ddb6(0x1e9)]);if(_0x735bd0['bytes']['length']!==_0x1bf06d[_0x3ddb6(0x20b)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x1bf06d[_0x3ddb6(0x1e9)]);const _0x556760=bufferSha256(_0x735bd0[_0x3ddb6(0x1ec)]);if(_0x556760!==_0x1bf06d[_0x3ddb6(0x207)])throw CliErrors['validation'](_0x3ddb6(0x213)+_0x1bf06d[_0x3ddb6(0x1e9)]);_0x423551[_0x3ddb6(0x1eb)]({'path':_0x1bf06d[_0x3ddb6(0x1e9)],'bytes':_0x735bd0[_0x3ddb6(0x1ec)]});}return normalizeLocalFiles(_0x423551);}
1
+ (function(_0x494317,_0x2734ea){const _0x1c1149=a152_0x162c,_0x27cd79=_0x494317();while(!![]){try{const _0x236477=-parseInt(_0x1c1149(0x9d))/0x1+-parseInt(_0x1c1149(0x82))/0x2*(-parseInt(_0x1c1149(0x98))/0x3)+parseInt(_0x1c1149(0x77))/0x4*(-parseInt(_0x1c1149(0x92))/0x5)+-parseInt(_0x1c1149(0x93))/0x6*(parseInt(_0x1c1149(0x80))/0x7)+parseInt(_0x1c1149(0x9b))/0x8+-parseInt(_0x1c1149(0x94))/0x9*(parseInt(_0x1c1149(0x8b))/0xa)+parseInt(_0x1c1149(0x83))/0xb;if(_0x236477===_0x2734ea)break;else _0x27cd79['push'](_0x27cd79['shift']());}catch(_0x55aac8){_0x27cd79['push'](_0x27cd79['shift']());}}}(a152_0x50d7,0xbf381));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';function a152_0x50d7(){const _0x1ef342=['228zCZNAD','Missing\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','path','ossPath','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','treeSha256','trim','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','119QrDebF','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','1612GaTISw','4971362LFVdyG','files','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','string','zipSize','toLowerCase','isArray','Runtime\x20Skill\x20package\x20is\x20missing\x20','10xOrSUW','bytes','map','toString','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Duplicate\x20Skill\x20package\x20entry:\x20','length','66475JXfHbU','226494CUbQZy','832203qRigbt','has','push','zipSha256','5718nOJYUn','requireOssPath','isSafeInteger','8114312LPhirF','some','727219TgHRBg','get','object','validation','Runtime\x20Skill\x20manifest\x20is\x20missing\x20'];a152_0x50d7=function(){return _0x1ef342;};return a152_0x50d7();}import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x1774b1){const _0x5f543d=a152_0x162c,_0x5bf7b7=normalizeLocalFiles(_0x1774b1);if(!_0x5bf7b7[_0x5f543d(0x9c)](_0x403272=>_0x403272['path']===SKILL_FILE))throw CliErrors['validation'](_0x5f543d(0x78)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x1d6db6=localFilesToManifestFiles(_0x5bf7b7),_0x27fdb9=createDeterministicZipPackage(_0x5bf7b7);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x1d6db6),'zipSha256':bufferSha256(_0x27fdb9),'zipSize':_0x27fdb9[_0x5f543d(0x91)],'files':_0x1d6db6},'packageBytes':_0x27fdb9,'packageBase64':_0x27fdb9[_0x5f543d(0x8e)]('base64')};}export function verifyRuntimeSkillPackage(_0x31c1ab,_0x24e50c){const _0x23cb5f=a152_0x162c,_0x2d2f57=normalizePackageManifest(_0x31c1ab,{'requireOssPath':![]});if(!_0x2d2f57)throw CliErrors[_0x23cb5f(0x75)](_0x23cb5f(0x8f));return extractAndVerifyPackage(_0x2d2f57,_0x24e50c);}export function verifyRuntimeSkillBundle(_0xcd6e1d,_0x3926a6){const _0x1b7d98=a152_0x162c,_0x303e01=normalizePackageManifest(_0xcd6e1d,{'requireOssPath':![]});if(!_0x303e01)throw CliErrors[_0x1b7d98(0x75)](_0x1b7d98(0x8f));return extractAndVerifyPackageFiles(_0x303e01,_0x3926a6);}export function tryNormalizePackageManifest(_0x23dd3f){return normalizePackageManifest(_0x23dd3f,{'requireOssPath':![]});}export function requirePackageBytes(_0x405c2,_0x38732a){const _0xc81573=a152_0x162c;if(!_0x38732a||_0x38732a[_0xc81573(0x91)]===0x0)throw CliErrors['validation'](_0xc81573(0x7c)+_0x405c2);return _0x38732a;}function a152_0x162c(_0x1ac98c,_0x220d44){_0x1ac98c=_0x1ac98c-0x73;const _0x50d7dd=a152_0x50d7();let _0x162c6a=_0x50d7dd[_0x1ac98c];return _0x162c6a;}export function extractDownloadedPackage(_0x3d787b){const _0x3e0531=a152_0x162c,_0x2ec3d8=parseZipPackage(_0x3d787b)[_0x3e0531(0x8d)](_0x43bfab=>({'path':_0x43bfab['path'],'bytes':_0x43bfab['bytes']}));if(!_0x2ec3d8['some'](_0x10eda3=>_0x10eda3[_0x3e0531(0x7a)]===SKILL_FILE))throw CliErrors['validation'](_0x3e0531(0x8a)+SKILL_FILE+'.');return normalizeLocalFiles(_0x2ec3d8);}export function localFilesToManifestFiles(_0x19f715){const _0x4496dd=a152_0x162c;return normalizeLocalFiles(_0x19f715)[_0x4496dd(0x8d)](_0x536bdc=>({'path':_0x536bdc['path'],'sha256':fileHash(_0x536bdc),'size':fileContent(_0x536bdc)[_0x4496dd(0x91)]}));}function normalizePackageManifest(_0x4d672a,_0x2ae197){const _0x2dbf46=a152_0x162c;if(!_0x4d672a||typeof _0x4d672a!==_0x2dbf46(0x74)||Array[_0x2dbf46(0x89)](_0x4d672a))return undefined;const _0x2b9107=_0x4d672a,_0x49d6e8=typeof _0x2b9107[_0x2dbf46(0x7b)]===_0x2dbf46(0x86)?_0x2b9107[_0x2dbf46(0x7b)][_0x2dbf46(0x7e)]():undefined;if(_0x2ae197[_0x2dbf46(0x99)]&&!_0x49d6e8)return undefined;if(!Array['isArray'](_0x2b9107[_0x2dbf46(0x84)])||_0x2b9107[_0x2dbf46(0x84)][_0x2dbf46(0x91)]===0x0)return undefined;if(!isSha256Hex(_0x2b9107[_0x2dbf46(0x7d)]))throw CliErrors[_0x2dbf46(0x75)](_0x2dbf46(0x85));if(!isSha256Hex(_0x2b9107[_0x2dbf46(0x97)]))throw CliErrors[_0x2dbf46(0x75)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0x2dbf46(0x9a)](_0x2b9107[_0x2dbf46(0x87)])||_0x2b9107[_0x2dbf46(0x87)]<0x0)throw CliErrors[_0x2dbf46(0x75)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x1020ba=normalizeManifestFiles(_0x2b9107['files']);if(!_0x1020ba['some'](_0x4736fb=>_0x4736fb[_0x2dbf46(0x7a)]===SKILL_FILE))throw CliErrors[_0x2dbf46(0x75)](_0x2dbf46(0x76)+SKILL_FILE+'.');const _0x5da99c=fileTreeHash(_0x1020ba);if(_0x5da99c!==_0x2b9107['treeSha256'][_0x2dbf46(0x88)]())throw CliErrors[_0x2dbf46(0x75)](_0x2dbf46(0x79));return{'schemaVersion':Number[_0x2dbf46(0x9a)](_0x2b9107['schemaVersion'])?_0x2b9107['schemaVersion']:0x2,'ossPath':_0x49d6e8,'treeSha256':_0x5da99c,'zipSha256':_0x2b9107[_0x2dbf46(0x97)][_0x2dbf46(0x88)](),'zipSize':_0x2b9107[_0x2dbf46(0x87)],'files':_0x1020ba};}function extractAndVerifyPackage(_0x1bc90b,_0x161fa7){const _0xdb8a30=a152_0x162c,_0x31a32a=normalizePackageManifest(_0x1bc90b,{'requireOssPath':![]});if(!_0x31a32a)throw CliErrors['validation'](_0xdb8a30(0x8f));if(_0x161fa7[_0xdb8a30(0x91)]!==_0x31a32a[_0xdb8a30(0x87)])throw CliErrors[_0xdb8a30(0x75)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x4edba5=bufferSha256(_0x161fa7);if(_0x4edba5!==_0x31a32a['zipSha256'])throw CliErrors['validation'](_0xdb8a30(0x81));return extractAndVerifyPackageFiles(_0x31a32a,_0x161fa7);}function extractAndVerifyPackageFiles(_0x9e4328,_0x3364d4){const _0x2abb95=a152_0x162c,_0xcaa3cc=parseZipPackage(_0x3364d4);if(_0xcaa3cc[_0x2abb95(0x91)]!==_0x9e4328[_0x2abb95(0x84)][_0x2abb95(0x91)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x4639af=new Map();for(const _0x24b0a7 of _0xcaa3cc){if(_0x4639af[_0x2abb95(0x95)](_0x24b0a7[_0x2abb95(0x7a)]))throw CliErrors[_0x2abb95(0x75)](_0x2abb95(0x90)+_0x24b0a7[_0x2abb95(0x7a)]);_0x4639af['set'](_0x24b0a7[_0x2abb95(0x7a)],_0x24b0a7);}const _0x41cd0c=[];for(const _0x4d2fef of _0x9e4328[_0x2abb95(0x84)]){const _0x239578=_0x4639af[_0x2abb95(0x73)](_0x4d2fef[_0x2abb95(0x7a)]);if(!_0x239578)throw CliErrors[_0x2abb95(0x75)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x4d2fef[_0x2abb95(0x7a)]);if(_0x239578[_0x2abb95(0x8c)][_0x2abb95(0x91)]!==_0x4d2fef['size'])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x4d2fef['path']);const _0x3dedf2=bufferSha256(_0x239578['bytes']);if(_0x3dedf2!==_0x4d2fef['sha256'])throw CliErrors[_0x2abb95(0x75)](_0x2abb95(0x7f)+_0x4d2fef['path']);_0x41cd0c[_0x2abb95(0x96)]({'path':_0x4d2fef[_0x2abb95(0x7a)],'bytes':_0x239578[_0x2abb95(0x8c)]});}return normalizeLocalFiles(_0x41cd0c);}
@@ -1 +1 @@
1
- function a153_0x3efb(){var _0x5dd78c=['1674607jjVxcx','580779AciPXU','5LEtDjB','10353368HBgmLZ','10UyHJDi','1aSkgrM','2511596SapcPf','5020569mJZHov','6flkDOl','6657016Kifuub','11559919SILPMl','60mSCxQP'];a153_0x3efb=function(){return _0x5dd78c;};return a153_0x3efb();}(function(_0x530dc5,_0x3bc5c9){var _0x259f44=a153_0x1481,_0x31d3d=_0x530dc5();while(!![]){try{var _0xfb000c=parseInt(_0x259f44(0x100))/0x1*(parseInt(_0x259f44(0x101))/0x2)+parseInt(_0x259f44(0x102))/0x3+-parseInt(_0x259f44(0x104))/0x4*(parseInt(_0x259f44(0x109))/0x5)+-parseInt(_0x259f44(0x103))/0x6*(-parseInt(_0x259f44(0x105))/0x7)+-parseInt(_0x259f44(0xfe))/0x8+parseInt(_0x259f44(0x108))/0x9*(parseInt(_0x259f44(0xff))/0xa)+-parseInt(_0x259f44(0x107))/0xb*(parseInt(_0x259f44(0x106))/0xc);if(_0xfb000c===_0x3bc5c9)break;else _0x31d3d['push'](_0x31d3d['shift']());}catch(_0x1ae6f0){_0x31d3d['push'](_0x31d3d['shift']());}}}(a153_0x3efb,0xe1fdb));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';function a153_0x1481(_0x51197e,_0x5b7a6a){_0x51197e=_0x51197e-0xfe;var _0x3efbec=a153_0x3efb();var _0x14814a=_0x3efbec[_0x51197e];return _0x14814a;}export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0x530973,_0x4c8e3f){var _0xdcc2e=a153_0x4c59,_0x29f8b1=_0x530973();while(!![]){try{var _0x2ae8d6=-parseInt(_0xdcc2e(0xba))/0x1*(parseInt(_0xdcc2e(0xbf))/0x2)+parseInt(_0xdcc2e(0xbe))/0x3*(parseInt(_0xdcc2e(0xbb))/0x4)+parseInt(_0xdcc2e(0xbc))/0x5+parseInt(_0xdcc2e(0xc1))/0x6+parseInt(_0xdcc2e(0xc3))/0x7+parseInt(_0xdcc2e(0xc2))/0x8*(parseInt(_0xdcc2e(0xc0))/0x9)+-parseInt(_0xdcc2e(0xbd))/0xa;if(_0x2ae8d6===_0x4c8e3f)break;else _0x29f8b1['push'](_0x29f8b1['shift']());}catch(_0x4ce4f8){_0x29f8b1['push'](_0x29f8b1['shift']());}}}(a153_0x1028,0xcfe07));function a153_0x4c59(_0xefe833,_0x28ab4f){_0xefe833=_0xefe833-0xba;var _0x10282f=a153_0x1028();var _0x4c5905=_0x10282f[_0xefe833];return _0x4c5905;}export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';function a153_0x1028(){var _0x7609fe=['4944185zHWSmU','25253420oQTEpr','3099OgegLH','2snldIF','1449ENISgF','3439128vngKxf','67544gfnegn','5406688xzXdBI','645421BDdabT','1272GTmEfq'];a153_0x1028=function(){return _0x7609fe;};return a153_0x1028();}export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- function a154_0x4611(){const _0x36748c=['reason','4782EHcKXR','lockFile','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','absent','globalSkillsDirs','recorded','kind','5528mDSbYK','.agents','map','includes','9258645NkuDxe','67605HrJIDi','find','SKILL.md','message','unusable','skills','235576FioSBU','present','number','50MGtGsp','220416gcgLFa','not-recorded','.skill-lock.json','join','version','962520yATvPl','.claude','64dnpvpv','unverifiable','home','parse','9729oxHAGj','12908BbEZPU'];a154_0x4611=function(){return _0x36748c;};return a154_0x4611();}const a154_0x4ec67b=a154_0x1ed2;(function(_0x2a59c4,_0x5c8508){const _0x1cf979=a154_0x1ed2,_0x283b28=_0x2a59c4();while(!![]){try{const _0x5b8386=-parseInt(_0x1cf979(0x162))/0x1+parseInt(_0x1cf979(0x145))/0x2*(-parseInt(_0x1cf979(0x158))/0x3)+-parseInt(_0x1cf979(0x15e))/0x4+-parseInt(_0x1cf979(0x143))/0x5+-parseInt(_0x1cf979(0x14c))/0x6*(parseInt(_0x1cf979(0x14a))/0x7)+parseInt(_0x1cf979(0x153))/0x8*(-parseInt(_0x1cf979(0x149))/0x9)+parseInt(_0x1cf979(0x161))/0xa*(parseInt(_0x1cf979(0x157))/0xb);if(_0x5b8386===_0x5c8508)break;else _0x283b28['push'](_0x283b28['shift']());}catch(_0x1fcd7e){_0x283b28['push'](_0x283b28['shift']());}}}(a154_0x4611,0xc30b6));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a154_0x4ec67b(0x154),a154_0x4ec67b(0x164));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a154_0x4ec67b(0x154),a154_0x4ec67b(0x15d)),join(a154_0x4ec67b(0x144),a154_0x4ec67b(0x15d))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x28e70a,_0x3f62e5){const _0x596351=a154_0x4ec67b;if(!existsSync(_0x28e70a))return{'kind':_0x596351(0x163)};let _0x573e4f;try{_0x573e4f=JSON[_0x596351(0x148)](readFileSync(_0x28e70a,'utf8'));}catch(_0x27585b){return{'kind':'unusable','reason':_0x28e70a+'\x20is\x20unreadable:\x20'+_0x27585b[_0x596351(0x15b)]};}const _0x99684b=_0x573e4f;if(typeof _0x99684b?.[_0x596351(0x142)]!==_0x596351(0x160)||!SUPPORTED_LOCK_VERSIONS[_0x596351(0x156)](_0x99684b[_0x596351(0x142)]))return{'kind':_0x596351(0x15c),'reason':_0x28e70a+'\x20uses\x20unsupported\x20version\x20'+String(_0x99684b?.[_0x596351(0x142)])};if(!_0x99684b[_0x596351(0x15d)]||typeof _0x99684b['skills']!=='object')return{'kind':_0x596351(0x15c),'reason':_0x28e70a+'\x20has\x20no\x20skills\x20map'};return _0x99684b[_0x596351(0x15d)][_0x3f62e5]?{'kind':'recorded'}:{'kind':_0x596351(0x163)};}function a154_0x1ed2(_0x456207,_0x1eb6c1){_0x456207=_0x456207-0x141;const _0x4611b0=a154_0x4611();let _0x1ed2fa=_0x4611b0[_0x456207];return _0x1ed2fa;}export function resolveInstalledSkill(_0x2e1951,_0x155439){const _0x2d857c=a154_0x4ec67b,_0x55c4ea=_0x155439?.[_0x2d857c(0x147)]??homedir(),_0x693497=_0x155439?.[_0x2d857c(0x150)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x2d857c(0x155)](_0x3fb2a2=>join(_0x55c4ea,_0x3fb2a2)),_0x46357c=_0x155439?.[_0x2d857c(0x14d)]??join(_0x55c4ea,SKILL_LOCK_RELATIVE_PATH),_0x52e4e3=_0x693497['map'](_0x11b87d=>join(_0x11b87d,_0x2e1951,_0x2d857c(0x15a))),_0xb52ead=_0x52e4e3[_0x2d857c(0x159)](_0x2d4c34=>existsSync(_0x2d4c34));if(_0xb52ead)return{'state':_0x2d857c(0x15f),'path':_0xb52ead};const _0x5babb7=readLockLookup(_0x46357c,_0x2e1951);if(_0x5babb7[_0x2d857c(0x152)]===_0x2d857c(0x15c))return{'state':_0x2d857c(0x146),'reason':_0x5babb7[_0x2d857c(0x14b)]};if(_0x5babb7[_0x2d857c(0x152)]===_0x2d857c(0x151))return{'state':_0x2d857c(0x146),'reason':_0x46357c+'\x20records\x20\x22'+_0x2e1951+_0x2d857c(0x14e)+('('+_0x52e4e3[_0x2d857c(0x141)](',\x20')+')')};return{'state':_0x2d857c(0x14f),'checked':_0x52e4e3};}
1
+ const a154_0x5cb47a=a154_0x206c;function a154_0x3b85(){const _0x385efa=['5hNJllN','home','object','\x20records\x20\x22','map','find','number','5748903oOIlBQ','.agents','1073442TgWrBQ','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','includes','SKILL.md','913570kEpUtK','utf8','168660uZfUqo','796600iKBfUl','kind','\x20is\x20unreadable:\x20','389618ONjnZc','skills','unusable','8sXIseS','globalSkillsDirs','215649rVQMWk','version','message','not-recorded','unverifiable','absent','\x20uses\x20unsupported\x20version\x20','lockFile'];a154_0x3b85=function(){return _0x385efa;};return a154_0x3b85();}(function(_0x3efb31,_0x4f6cb3){const _0x129314=a154_0x206c,_0x17976c=_0x3efb31();while(!![]){try{const _0x4a37eb=-parseInt(_0x129314(0xc5))/0x1+-parseInt(_0x129314(0xe0))/0x2+parseInt(_0x129314(0xdc))/0x3+-parseInt(_0x129314(0xdd))/0x4+parseInt(_0x129314(0xcd))/0x5*(parseInt(_0x129314(0xd6))/0x6)+parseInt(_0x129314(0xda))/0x7*(-parseInt(_0x129314(0xe3))/0x8)+parseInt(_0x129314(0xd4))/0x9;if(_0x4a37eb===_0x4f6cb3)break;else _0x17976c['push'](_0x17976c['shift']());}catch(_0x570cdb){_0x17976c['push'](_0x17976c['shift']());}}}(a154_0x3b85,0x20a90));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents','.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a154_0x5cb47a(0xd5),'skills'),join('.claude',a154_0x5cb47a(0xe1))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x313163,_0x548a1e){const _0x4542a6=a154_0x5cb47a;if(!existsSync(_0x313163))return{'kind':_0x4542a6(0xc8)};let _0x13cdc0;try{_0x13cdc0=JSON['parse'](readFileSync(_0x313163,_0x4542a6(0xdb)));}catch(_0xddb65f){return{'kind':_0x4542a6(0xe2),'reason':_0x313163+_0x4542a6(0xdf)+_0xddb65f[_0x4542a6(0xc7)]};}const _0x283803=_0x13cdc0;if(typeof _0x283803?.[_0x4542a6(0xc6)]!==_0x4542a6(0xd3)||!SUPPORTED_LOCK_VERSIONS[_0x4542a6(0xd8)](_0x283803[_0x4542a6(0xc6)]))return{'kind':_0x4542a6(0xe2),'reason':_0x313163+_0x4542a6(0xcb)+String(_0x283803?.[_0x4542a6(0xc6)])};if(!_0x283803[_0x4542a6(0xe1)]||typeof _0x283803[_0x4542a6(0xe1)]!==_0x4542a6(0xcf))return{'kind':'unusable','reason':_0x313163+'\x20has\x20no\x20skills\x20map'};return _0x283803['skills'][_0x548a1e]?{'kind':'recorded'}:{'kind':'not-recorded'};}function a154_0x206c(_0x13d58b,_0x543e92){_0x13d58b=_0x13d58b-0xc5;const _0x3b85b4=a154_0x3b85();let _0x206c28=_0x3b85b4[_0x13d58b];return _0x206c28;}export function resolveInstalledSkill(_0x25257d,_0x4aaab4){const _0x5be4bd=a154_0x5cb47a,_0x43534a=_0x4aaab4?.[_0x5be4bd(0xce)]??homedir(),_0x51ee8d=_0x4aaab4?.[_0x5be4bd(0xe4)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x5be4bd(0xd1)](_0x5b355a=>join(_0x43534a,_0x5b355a)),_0x476122=_0x4aaab4?.[_0x5be4bd(0xcc)]??join(_0x43534a,SKILL_LOCK_RELATIVE_PATH),_0x41a7ab=_0x51ee8d['map'](_0x18f7b4=>join(_0x18f7b4,_0x25257d,_0x5be4bd(0xd9))),_0x3449d4=_0x41a7ab[_0x5be4bd(0xd2)](_0x3dd8fd=>existsSync(_0x3dd8fd));if(_0x3449d4)return{'state':'present','path':_0x3449d4};const _0x102e3f=readLockLookup(_0x476122,_0x25257d);if(_0x102e3f[_0x5be4bd(0xde)]===_0x5be4bd(0xe2))return{'state':_0x5be4bd(0xc9),'reason':_0x102e3f['reason']};if(_0x102e3f['kind']==='recorded')return{'state':_0x5be4bd(0xc9),'reason':_0x476122+_0x5be4bd(0xd0)+_0x25257d+_0x5be4bd(0xd7)+('('+_0x41a7ab['join'](',\x20')+')')};return{'state':_0x5be4bd(0xca),'checked':_0x41a7ab};}
@@ -1 +1 @@
1
- const a155_0x1f2493=a155_0x21c2;function a155_0x21c2(_0x2f0d8b,_0x174a28){_0x2f0d8b=_0x2f0d8b-0xd4;const _0x587705=a155_0x5877();let _0x21c271=_0x587705[_0x2f0d8b];return _0x21c271;}(function(_0xdd4e0b,_0x2d98d5){const _0x2110cd=a155_0x21c2,_0x531992=_0xdd4e0b();while(!![]){try{const _0x1043c5=parseInt(_0x2110cd(0xd7))/0x1+-parseInt(_0x2110cd(0xe0))/0x2*(parseInt(_0x2110cd(0xd4))/0x3)+parseInt(_0x2110cd(0xe9))/0x4+parseInt(_0x2110cd(0xd6))/0x5*(parseInt(_0x2110cd(0xe2))/0x6)+-parseInt(_0x2110cd(0xe8))/0x7*(-parseInt(_0x2110cd(0xda))/0x8)+parseInt(_0x2110cd(0xe5))/0x9+-parseInt(_0x2110cd(0xe3))/0xa;if(_0x1043c5===_0x2d98d5)break;else _0x531992['push'](_0x531992['shift']());}catch(_0x30ea08){_0x531992['push'](_0x531992['shift']());}}}(a155_0x5877,0x7cdd5));const REDACTED_ACCESS_KEY=a155_0x1f2493(0xe7);export function maskCliAccessKey(_0x5c33c9){const _0x19f2f3=a155_0x1f2493;if(typeof _0x5c33c9!==_0x19f2f3(0xd5)||_0x5c33c9[_0x19f2f3(0xde)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x5c33c9[_0x19f2f3(0xeb)](0x0,0x8)+'*'[_0x19f2f3(0xdf)](_0x5c33c9[_0x19f2f3(0xde)]-0x8);}export function redactCliConfigCredentials(_0x1e9008){const _0x4defc2=a155_0x1f2493,_0xec51e5={..._0x1e9008};return Object[_0x4defc2(0xea)][_0x4defc2(0xd8)]['call'](_0xec51e5,_0x4defc2(0xe6))&&(_0xec51e5['accessKey']=maskCliAccessKey(_0xec51e5[_0x4defc2(0xe6)])),_0xec51e5[_0x4defc2(0xdc)]&&typeof _0xec51e5['apps']===_0x4defc2(0xdb)&&!Array[_0x4defc2(0xe4)](_0xec51e5[_0x4defc2(0xdc)])&&(_0xec51e5[_0x4defc2(0xdc)]=redactLegacyAppCredentials(_0xec51e5[_0x4defc2(0xdc)])),_0xec51e5;}export function redactCliConfigValue(_0x5b4bbf,_0x393576){const _0x15e68b=a155_0x1f2493;if(_0x5b4bbf===_0x15e68b(0xe6)||/^apps\.[^.]+\.accessKey$/['test'](_0x5b4bbf))return maskCliAccessKey(_0x393576);if(_0x5b4bbf===_0x15e68b(0xdc)&&_0x393576&&typeof _0x393576===_0x15e68b(0xdb)&&!Array[_0x15e68b(0xe4)](_0x393576))return redactLegacyAppCredentials(_0x393576);if(/^apps\.[^.]+$/[_0x15e68b(0xd9)](_0x5b4bbf)&&_0x393576&&typeof _0x393576===_0x15e68b(0xdb)&&!Array[_0x15e68b(0xe4)](_0x393576)){const _0x27de62=_0x393576;return Object[_0x15e68b(0xea)]['hasOwnProperty'][_0x15e68b(0xdd)](_0x27de62,'accessKey')?{..._0x27de62,'accessKey':maskCliAccessKey(_0x27de62[_0x15e68b(0xe6)])}:_0x393576;}return _0x393576;}function a155_0x5877(){const _0x157c40=['hasOwnProperty','test','32ZHhjqp','object','apps','call','length','repeat','58ecHRBe','entries','84144ZbRsKC','14556340mCFcET','isArray','810306JOJupG','accessKey','<redacted>','1445451FPZabC','2060832EejdRf','prototype','slice','60789xHNYUN','string','125UrPXtr','772892fdSzPK'];a155_0x5877=function(){return _0x157c40;};return a155_0x5877();}function redactLegacyAppCredentials(_0x29d5dd){const _0x18610d=a155_0x1f2493;return Object['fromEntries'](Object[_0x18610d(0xe1)](_0x29d5dd)['map'](([_0x30af66,_0x4445ed])=>{const _0x391011=_0x18610d;if(!_0x4445ed||typeof _0x4445ed!==_0x391011(0xdb)||Array[_0x391011(0xe4)](_0x4445ed))return[_0x30af66,_0x4445ed];const _0x4e105d={..._0x4445ed};return Object[_0x391011(0xea)][_0x391011(0xd8)]['call'](_0x4e105d,_0x391011(0xe6))&&(_0x4e105d[_0x391011(0xe6)]=maskCliAccessKey(_0x4e105d[_0x391011(0xe6)])),[_0x30af66,_0x4e105d];}));}
1
+ function a155_0x5723(){const _0xa76b63=['repeat','179050zbWCyZ','call','36zoRjCm','137585czHmAy','hasOwnProperty','<redacted>','3bebBrV','accessKey','map','1332018VECIty','414CcGgME','6236593wHjhrb','test','40055IRMXAE','isArray','prototype','slice','length','fromEntries','652CaiRqo','apps','378674xWLYEx','10956232WYWsQH','string','object','261gxryRA'];a155_0x5723=function(){return _0xa76b63;};return a155_0x5723();}const a155_0x10a62e=a155_0x4e9c;(function(_0x3ce6ef,_0x23b874){const _0x391441=a155_0x4e9c,_0x3f55be=_0x3ce6ef();while(!![]){try{const _0xac3f5f=-parseInt(_0x391441(0x1e2))/0x1+-parseInt(_0x391441(0x1ee))/0x2*(parseInt(_0x391441(0x1df))/0x3)+parseInt(_0x391441(0x1ec))/0x4*(parseInt(_0x391441(0x1e6))/0x5)+parseInt(_0x391441(0x1e3))/0x6*(parseInt(_0x391441(0x1dc))/0x7)+-parseInt(_0x391441(0x1d4))/0x8+parseInt(_0x391441(0x1d7))/0x9*(-parseInt(_0x391441(0x1d9))/0xa)+-parseInt(_0x391441(0x1e4))/0xb*(-parseInt(_0x391441(0x1db))/0xc);if(_0xac3f5f===_0x23b874)break;else _0x3f55be['push'](_0x3f55be['shift']());}catch(_0x17545a){_0x3f55be['push'](_0x3f55be['shift']());}}}(a155_0x5723,0xe89ac));const REDACTED_ACCESS_KEY=a155_0x10a62e(0x1de);function a155_0x4e9c(_0x1acbf7,_0x111b64){_0x1acbf7=_0x1acbf7-0x1d4;const _0x572388=a155_0x5723();let _0x4e9c2c=_0x572388[_0x1acbf7];return _0x4e9c2c;}export function maskCliAccessKey(_0x424150){const _0x2c9496=a155_0x10a62e;if(typeof _0x424150!==_0x2c9496(0x1d5)||_0x424150['length']<=0x8)return REDACTED_ACCESS_KEY;return''+_0x424150[_0x2c9496(0x1e9)](0x0,0x8)+'*'[_0x2c9496(0x1d8)](_0x424150[_0x2c9496(0x1ea)]-0x8);}export function redactCliConfigCredentials(_0x51a824){const _0xb3bc1a=a155_0x10a62e,_0x1715d2={..._0x51a824};return Object[_0xb3bc1a(0x1e8)][_0xb3bc1a(0x1dd)]['call'](_0x1715d2,_0xb3bc1a(0x1e0))&&(_0x1715d2[_0xb3bc1a(0x1e0)]=maskCliAccessKey(_0x1715d2[_0xb3bc1a(0x1e0)])),_0x1715d2[_0xb3bc1a(0x1ed)]&&typeof _0x1715d2[_0xb3bc1a(0x1ed)]===_0xb3bc1a(0x1d6)&&!Array[_0xb3bc1a(0x1e7)](_0x1715d2['apps'])&&(_0x1715d2[_0xb3bc1a(0x1ed)]=redactLegacyAppCredentials(_0x1715d2[_0xb3bc1a(0x1ed)])),_0x1715d2;}export function redactCliConfigValue(_0x12ee8a,_0x21b0f5){const _0x441c0b=a155_0x10a62e;if(_0x12ee8a===_0x441c0b(0x1e0)||/^apps\.[^.]+\.accessKey$/[_0x441c0b(0x1e5)](_0x12ee8a))return maskCliAccessKey(_0x21b0f5);if(_0x12ee8a===_0x441c0b(0x1ed)&&_0x21b0f5&&typeof _0x21b0f5===_0x441c0b(0x1d6)&&!Array[_0x441c0b(0x1e7)](_0x21b0f5))return redactLegacyAppCredentials(_0x21b0f5);if(/^apps\.[^.]+$/[_0x441c0b(0x1e5)](_0x12ee8a)&&_0x21b0f5&&typeof _0x21b0f5===_0x441c0b(0x1d6)&&!Array[_0x441c0b(0x1e7)](_0x21b0f5)){const _0x2ab7d1=_0x21b0f5;return Object[_0x441c0b(0x1e8)][_0x441c0b(0x1dd)]['call'](_0x2ab7d1,_0x441c0b(0x1e0))?{..._0x2ab7d1,'accessKey':maskCliAccessKey(_0x2ab7d1[_0x441c0b(0x1e0)])}:_0x21b0f5;}return _0x21b0f5;}function redactLegacyAppCredentials(_0x3fbc8a){const _0x146291=a155_0x10a62e;return Object[_0x146291(0x1eb)](Object['entries'](_0x3fbc8a)[_0x146291(0x1e1)](([_0x10b64f,_0xc61489])=>{const _0x2f3b25=_0x146291;if(!_0xc61489||typeof _0xc61489!==_0x2f3b25(0x1d6)||Array[_0x2f3b25(0x1e7)](_0xc61489))return[_0x10b64f,_0xc61489];const _0x299697={..._0xc61489};return Object[_0x2f3b25(0x1e8)][_0x2f3b25(0x1dd)][_0x2f3b25(0x1da)](_0x299697,_0x2f3b25(0x1e0))&&(_0x299697[_0x2f3b25(0x1e0)]=maskCliAccessKey(_0x299697['accessKey'])),[_0x10b64f,_0x299697];}));}
@@ -1 +1 @@
1
- function a156_0x4e20(){const _0x29372d=['7361574BoTTTr','72FoyWod','1235882ldBQXj','14phWDBS','4956024tlXPYM','2326572XmACFh','5355160KJVSHw','3470706LKorGj','325055kGYKcO','1wcUKcr'];a156_0x4e20=function(){return _0x29372d;};return a156_0x4e20();}(function(_0x21933e,_0x4a2bc5){const _0x4ad52f=a156_0x5d67,_0x12d40f=_0x21933e();while(!![]){try{const _0x34c075=-parseInt(_0x4ad52f(0x9e))/0x1*(parseInt(_0x4ad52f(0xa1))/0x2)+-parseInt(_0x4ad52f(0x9a))/0x3+-parseInt(_0x4ad52f(0xa0))/0x4*(-parseInt(_0x4ad52f(0x9d))/0x5)+parseInt(_0x4ad52f(0x9f))/0x6+parseInt(_0x4ad52f(0x98))/0x7*(-parseInt(_0x4ad52f(0x99))/0x8)+parseInt(_0x4ad52f(0x9c))/0x9+parseInt(_0x4ad52f(0x9b))/0xa;if(_0x34c075===_0x4a2bc5)break;else _0x12d40f['push'](_0x12d40f['shift']());}catch(_0x1cb2ec){_0x12d40f['push'](_0x12d40f['shift']());}}}(a156_0x4e20,0xa76ee));function a156_0x5d67(_0x43f220,_0x4d11a4){_0x43f220=_0x43f220-0x98;const _0x4e20d9=a156_0x4e20();let _0x5d671e=_0x4e20d9[_0x43f220];return _0x5d671e;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0xbe793c,_0x586659){const _0x43d51e=a156_0x2c05,_0x366b52=_0xbe793c();while(!![]){try{const _0x28f301=parseInt(_0x43d51e(0x125))/0x1*(-parseInt(_0x43d51e(0x128))/0x2)+-parseInt(_0x43d51e(0x123))/0x3+parseInt(_0x43d51e(0x127))/0x4*(-parseInt(_0x43d51e(0x121))/0x5)+parseInt(_0x43d51e(0x12a))/0x6+-parseInt(_0x43d51e(0x122))/0x7*(-parseInt(_0x43d51e(0x124))/0x8)+parseInt(_0x43d51e(0x12b))/0x9+-parseInt(_0x43d51e(0x129))/0xa*(-parseInt(_0x43d51e(0x126))/0xb);if(_0x28f301===_0x586659)break;else _0x366b52['push'](_0x366b52['shift']());}catch(_0xf9d251){_0x366b52['push'](_0x366b52['shift']());}}}(a156_0x2baa,0x8c91a));function a156_0x2c05(_0x38953e,_0xc15c32){_0x38953e=_0x38953e-0x121;const _0x2baab0=a156_0x2baa();let _0x2c05a0=_0x2baab0[_0x38953e];return _0x2c05a0;}function a156_0x2baa(){const _0x3a4842=['4DDZXcD','10XpWrGh','6198822mXAINB','116649KdOQpz','2395mZpgXQ','10927jCUMYw','1156035yuttJT','1176IAYuHq','282457sGSQti','12613403KTuwWO','7484ORtWKo'];a156_0x2baa=function(){return _0x3a4842;};return a156_0x2baa();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x2d419b,_0x141e83){const _0xd8b5a9=a157_0x1f8e,_0x192cef=_0x2d419b();while(!![]){try{const _0x48429a=parseInt(_0xd8b5a9(0x160))/0x1+-parseInt(_0xd8b5a9(0x151))/0x2*(-parseInt(_0xd8b5a9(0x14e))/0x3)+-parseInt(_0xd8b5a9(0x14f))/0x4*(-parseInt(_0xd8b5a9(0x149))/0x5)+-parseInt(_0xd8b5a9(0x150))/0x6*(-parseInt(_0xd8b5a9(0x15b))/0x7)+parseInt(_0xd8b5a9(0x14b))/0x8+-parseInt(_0xd8b5a9(0x15f))/0x9*(-parseInt(_0xd8b5a9(0x15e))/0xa)+-parseInt(_0xd8b5a9(0x158))/0xb*(parseInt(_0xd8b5a9(0x161))/0xc);if(_0x48429a===_0x141e83)break;else _0x192cef['push'](_0x192cef['shift']());}catch(_0xde471f){_0x192cef['push'](_0x192cef['shift']());}}}(a157_0x391a,0x37c1c));import a157_0x41ee83 from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a157_0x1f8e(_0xdc8d49,_0x2aa5c5){_0xdc8d49=_0xdc8d49-0x147;const _0x391a7c=a157_0x391a();let _0x1f8ec0=_0x391a7c[_0xdc8d49];return _0x1f8ec0;}function a157_0x391a(){const _0x3b677b=['join','stableVersion','currentVersion','Upgrade\x20command:\x20','latest','filter','2380356OOHkHj','minimumVersion','unavailable','812nlkZJf','minimumVersionMessage','validation','940uXrVKn','31698xApxPp','182150VeZLRf','48hODmqA','Recommended\x20stable:\x20','upgradeMessage','5yRMyQD','Current\x20version:\x20','306160qQFBGT','valid','npm\x20install\x20-g\x20','51351cCCgcq','1552356VCZyvl','1788CwaCfr','14QykYrP'];a157_0x391a=function(){return _0x3b677b;};return a157_0x391a();}import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x5e7927,_0x48ed2d){const _0x4e40fe=a157_0x1f8e,_0x4951b8=a157_0x41ee83[_0x4e40fe(0x14c)](_0x5e7927)===_0x5e7927,_0x54335f=_0x48ed2d?.[_0x4e40fe(0x153)]??null,_0x2111cf=_0x48ed2d?.[_0x4e40fe(0x159)]??null,_0x1ff77d=Boolean(_0x4951b8&&_0x54335f&&a157_0x41ee83['lt'](_0x5e7927,_0x54335f)),_0x137f36=Boolean(_0x4951b8&&_0x2111cf&&a157_0x41ee83['lt'](_0x5e7927,_0x2111cf));return{'currentVersion':_0x5e7927,'stableVersion':_0x54335f,'minimumVersion':_0x2111cf,'needsUpgrade':_0x1ff77d||_0x137f36,'belowMinimum':_0x137f36,'upgradeMessage':_0x48ed2d?.[_0x4e40fe(0x148)],'minimumVersionMessage':_0x48ed2d?.['minimumVersionMessage']};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x8aa871){const _0xf48981=a157_0x1f8e;return _0xf48981(0x14d)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x8aa871[_0xf48981(0x153)]??_0xf48981(0x156));}export function assertCliVersionSupported(_0x3c11dc){const _0x562afa=a157_0x1f8e;if(!_0x3c11dc['belowMinimum'])return;const _0x1c83c5=[_0x3c11dc[_0x562afa(0x15c)],_0x562afa(0x14a)+_0x3c11dc[_0x562afa(0x154)],'Minimum\x20supported:\x20'+_0x3c11dc[_0x562afa(0x159)],_0x562afa(0x147)+(_0x3c11dc[_0x562afa(0x153)]??_0x562afa(0x15a)),_0x562afa(0x155)+getCliUpgradeCommand(_0x3c11dc)][_0x562afa(0x157)](Boolean)[_0x562afa(0x152)]('\x0a');throw CliErrors[_0x562afa(0x15d)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x1c83c5);}
1
+ (function(_0x4dfa0c,_0x5a9b69){const _0x2e537f=a157_0x5779,_0x23c5b6=_0x4dfa0c();while(!![]){try{const _0x6d49e1=parseInt(_0x2e537f(0x181))/0x1*(parseInt(_0x2e537f(0x180))/0x2)+parseInt(_0x2e537f(0x186))/0x3+-parseInt(_0x2e537f(0x18d))/0x4+parseInt(_0x2e537f(0x187))/0x5+parseInt(_0x2e537f(0x18c))/0x6+parseInt(_0x2e537f(0x178))/0x7*(parseInt(_0x2e537f(0x18e))/0x8)+-parseInt(_0x2e537f(0x18f))/0x9;if(_0x6d49e1===_0x5a9b69)break;else _0x23c5b6['push'](_0x23c5b6['shift']());}catch(_0x4fc47d){_0x23c5b6['push'](_0x23c5b6['shift']());}}}(a157_0x3227,0x93752));import a157_0x17b0cf from'semver';function a157_0x3227(){const _0x529153=['1460090NbZnfc','stableVersion','filter','valid','Recommended\x20stable:\x20','2916552LmqxRa','2573340DXosCk','1888aVHJRI','7820298BiBOwb','Upgrade\x20command:\x20','minimumVersionMessage','4620CWfCFv','join','currentVersion','belowMinimum','upgradeMessage','validation','Minimum\x20supported:\x20','npm\x20install\x20-g\x20','6OILihT','272131DRPAIO','Current\x20version:\x20','unavailable','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','minimumVersion','1097940rOAbht'];a157_0x3227=function(){return _0x529153;};return a157_0x3227();}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x2cb137,_0x19777e){const _0x4df164=a157_0x5779,_0x3fd9c3=a157_0x17b0cf[_0x4df164(0x18a)](_0x2cb137)===_0x2cb137,_0x363802=_0x19777e?.[_0x4df164(0x188)]??null,_0x52ec9a=_0x19777e?.[_0x4df164(0x185)]??null,_0x1ccbcf=Boolean(_0x3fd9c3&&_0x363802&&a157_0x17b0cf['lt'](_0x2cb137,_0x363802)),_0x21109b=Boolean(_0x3fd9c3&&_0x52ec9a&&a157_0x17b0cf['lt'](_0x2cb137,_0x52ec9a));return{'currentVersion':_0x2cb137,'stableVersion':_0x363802,'minimumVersion':_0x52ec9a,'needsUpgrade':_0x1ccbcf||_0x21109b,'belowMinimum':_0x21109b,'upgradeMessage':_0x19777e?.[_0x4df164(0x17c)],'minimumVersionMessage':_0x19777e?.[_0x4df164(0x177)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x4395de){const _0x54cfeb=a157_0x5779;return _0x54cfeb(0x17f)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x4395de[_0x54cfeb(0x188)]??'latest');}function a157_0x5779(_0x31cbc3,_0x311954){_0x31cbc3=_0x31cbc3-0x176;const _0x322707=a157_0x3227();let _0x5779d4=_0x322707[_0x31cbc3];return _0x5779d4;}export function assertCliVersionSupported(_0x26224a){const _0x3ae7c6=a157_0x5779;if(!_0x26224a[_0x3ae7c6(0x17b)])return;const _0x58ea61=[_0x26224a[_0x3ae7c6(0x177)],_0x3ae7c6(0x182)+_0x26224a[_0x3ae7c6(0x17a)],_0x3ae7c6(0x17e)+_0x26224a[_0x3ae7c6(0x185)],_0x3ae7c6(0x18b)+(_0x26224a[_0x3ae7c6(0x188)]??_0x3ae7c6(0x183)),_0x3ae7c6(0x176)+getCliUpgradeCommand(_0x26224a)][_0x3ae7c6(0x189)](Boolean)[_0x3ae7c6(0x179)]('\x0a');throw CliErrors[_0x3ae7c6(0x17d)](_0x3ae7c6(0x184),_0x58ea61);}
@@ -1 +1 @@
1
- (function(_0x2db1ff,_0x28c412){const _0x5cedd5=a158_0x1f10,_0x3d3934=_0x2db1ff();while(!![]){try{const _0x4cba42=-parseInt(_0x5cedd5(0x1e1))/0x1*(-parseInt(_0x5cedd5(0x1ec))/0x2)+parseInt(_0x5cedd5(0x1e2))/0x3+parseInt(_0x5cedd5(0x1f4))/0x4+-parseInt(_0x5cedd5(0x1e8))/0x5*(-parseInt(_0x5cedd5(0x1ed))/0x6)+-parseInt(_0x5cedd5(0x1f7))/0x7*(-parseInt(_0x5cedd5(0x1e4))/0x8)+parseInt(_0x5cedd5(0x1e6))/0x9+parseInt(_0x5cedd5(0x1ee))/0xa*(-parseInt(_0x5cedd5(0x1f0))/0xb);if(_0x4cba42===_0x28c412)break;else _0x3d3934['push'](_0x3d3934['shift']());}catch(_0x3aedc4){_0x3d3934['push'](_0x3d3934['shift']());}}}(a158_0x400b,0x4bd98));function a158_0x1f10(_0x572717,_0x50c263){_0x572717=_0x572717-0x1df;const _0x400bd7=a158_0x400b();let _0x1f10fc=_0x400bd7[_0x572717];return _0x1f10fc;}import a158_0x196e22 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(_0x227dca){const _0x3e75fa=a158_0x1f10;return typeof _0x227dca===_0x3e75fa(0x1df)&&_0x227dca[_0x3e75fa(0x1e3)]()?_0x227dca[_0x3e75fa(0x1e3)]():null;}function pickStrictSemver(_0x5729a1){const _0x90c38c=pickString(_0x5729a1);return _0x90c38c&&a158_0x196e22['valid'](_0x90c38c)===_0x90c38c?_0x90c38c:null;}export function normalizeCliVersionPolicy(_0x5be1a0){const _0x4f3168=a158_0x1f10;if(!_0x5be1a0||typeof _0x5be1a0!==_0x4f3168(0x1f8))return null;const _0x448c87=_0x5be1a0,_0x417a35=_0x448c87[_0x4f3168(0x1f5)]&&typeof _0x448c87['cli']===_0x4f3168(0x1f8)?_0x448c87[_0x4f3168(0x1f5)]:_0x448c87,_0x3153e8=pickStrictSemver(_0x417a35[_0x4f3168(0x1f6)]??_0x417a35['latestVersion']??_0x417a35[_0x4f3168(0x1e9)]),_0x164b1a=pickStrictSemver(_0x417a35[_0x4f3168(0x1f1)]??_0x417a35[_0x4f3168(0x1f2)]);if(!_0x3153e8&&!_0x164b1a)return null;if(_0x3153e8&&_0x164b1a&&a158_0x196e22['gt'](_0x164b1a,_0x3153e8))return null;return{'stableVersion':_0x3153e8,'minimumVersion':_0x164b1a,'upgradeMessage':pickString(_0x417a35[_0x4f3168(0x1ea)])??undefined,'minimumVersionMessage':pickString(_0x417a35[_0x4f3168(0x1e0)])??undefined};}export async function fetchCliVersionPolicy(){const _0x3f8b06=a158_0x1f10;try{const _0x4501a2=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3f8b06(0x1e5)},'signal':AbortSignal[_0x3f8b06(0x1f3)](FETCH_TIMEOUT_MS)});if(!_0x4501a2['ok'])return null;return normalizeCliVersionPolicy(await _0x4501a2['json']());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0xa193f9=a158_0x1f10,_0x114278=Date['now']();if(hasCachedPolicy){const _0x9052e5=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x114278-cachedAt<_0x9052e5)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0xa193f9(0x1ef)](_0x2dd67b=>{const _0x885550=_0xa193f9;return cachedPolicy=_0x2dd67b,cachedAt=Date[_0x885550(0x1e7)](),hasCachedPolicy=!![],_0x2dd67b;})[_0xa193f9(0x1eb)](()=>{pendingPolicy=null;}),pendingPolicy;}function a158_0x400b(){const _0x23c16f=['minimumVersion','minVersion','timeout','1831980pltxKd','cli','stableVersion','7mdmcgO','object','string','minimumVersionMessage','416226tYFDuB','1179861aBHbWn','trim','152080ncTkXT','application/json','423054BphkpX','now','140IObZeM','recommendedVersion','upgradeMessage','finally','2XmNBBq','92370KbHIBR','7120gncCNQ','then','22462qhIdvp'];a158_0x400b=function(){return _0x23c16f;};return a158_0x400b();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
1
+ (function(_0x4243d7,_0x25a4e9){const _0x1464b5=a158_0xf208,_0x5b5bc9=_0x4243d7();while(!![]){try{const _0x5e0a1a=parseInt(_0x1464b5(0xf2))/0x1+parseInt(_0x1464b5(0xee))/0x2+parseInt(_0x1464b5(0xdc))/0x3+-parseInt(_0x1464b5(0xdf))/0x4*(parseInt(_0x1464b5(0xf0))/0x5)+-parseInt(_0x1464b5(0xdd))/0x6+parseInt(_0x1464b5(0xe4))/0x7*(parseInt(_0x1464b5(0xf3))/0x8)+-parseInt(_0x1464b5(0xe1))/0x9;if(_0x5e0a1a===_0x25a4e9)break;else _0x5b5bc9['push'](_0x5b5bc9['shift']());}catch(_0xad2fbf){_0x5b5bc9['push'](_0x5b5bc9['shift']());}}}(a158_0x202f,0xcc884));import a158_0x65b27 from'semver';import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function a158_0x202f(){const _0xbb429b=['latestVersion','minimumVersionMessage','14903MgRfLn','cli','application/json','recommendedVersion','minVersion','finally','trim','then','minimumVersion','upgradeMessage','2943856GdAFMt','now','65aGjFJo','stableVersion','836416NgHXGN','5032cgnniv','2337582IpVmbS','4635786tbSeXW','object','167816OzHacv','string','20437938kYaTAJ'];a158_0x202f=function(){return _0xbb429b;};return a158_0x202f();}function pickString(_0x32a00b){const _0x49b265=a158_0xf208;return typeof _0x32a00b===_0x49b265(0xe0)&&_0x32a00b[_0x49b265(0xea)]()?_0x32a00b[_0x49b265(0xea)]():null;}function a158_0xf208(_0x33a56a,_0x4f4fc3){_0x33a56a=_0x33a56a-0xdc;const _0x202f64=a158_0x202f();let _0xf2087f=_0x202f64[_0x33a56a];return _0xf2087f;}function pickStrictSemver(_0x3a0ae4){const _0x124ae6=pickString(_0x3a0ae4);return _0x124ae6&&a158_0x65b27['valid'](_0x124ae6)===_0x124ae6?_0x124ae6:null;}export function normalizeCliVersionPolicy(_0x3f7351){const _0x1b4f35=a158_0xf208;if(!_0x3f7351||typeof _0x3f7351!==_0x1b4f35(0xde))return null;const _0x5c2fe8=_0x3f7351,_0x2a71ef=_0x5c2fe8[_0x1b4f35(0xe5)]&&typeof _0x5c2fe8['cli']==='object'?_0x5c2fe8[_0x1b4f35(0xe5)]:_0x5c2fe8,_0x20ef40=pickStrictSemver(_0x2a71ef[_0x1b4f35(0xf1)]??_0x2a71ef[_0x1b4f35(0xe2)]??_0x2a71ef[_0x1b4f35(0xe7)]),_0x13d874=pickStrictSemver(_0x2a71ef[_0x1b4f35(0xec)]??_0x2a71ef[_0x1b4f35(0xe8)]);if(!_0x20ef40&&!_0x13d874)return null;if(_0x20ef40&&_0x13d874&&a158_0x65b27['gt'](_0x13d874,_0x20ef40))return null;return{'stableVersion':_0x20ef40,'minimumVersion':_0x13d874,'upgradeMessage':pickString(_0x2a71ef[_0x1b4f35(0xed)])??undefined,'minimumVersionMessage':pickString(_0x2a71ef[_0x1b4f35(0xe3)])??undefined};}export async function fetchCliVersionPolicy(){const _0x7af160=a158_0xf208;try{const _0x4bbd38=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x7af160(0xe6)},'signal':AbortSignal['timeout'](FETCH_TIMEOUT_MS)});if(!_0x4bbd38['ok'])return null;return normalizeCliVersionPolicy(await _0x4bbd38['json']());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x2add27=a158_0xf208,_0x142e80=Date[_0x2add27(0xef)]();if(hasCachedPolicy){const _0x34a71f=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x142e80-cachedAt<_0x34a71f)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x2add27(0xeb)](_0x39486c=>{return cachedPolicy=_0x39486c,cachedAt=Date['now'](),hasCachedPolicy=!![],_0x39486c;})[_0x2add27(0xe9)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
@@ -1 +1 @@
1
- function a159_0x424d(_0x141ca6,_0x1d9814){_0x141ca6=_0x141ca6-0x133;const _0x448a55=a159_0x448a();let _0x424d21=_0x448a55[_0x141ca6];return _0x424d21;}const a159_0x9f4237=a159_0x424d;(function(_0x4c7253,_0x171cf3){const _0x5ef874=a159_0x424d,_0x392e5e=_0x4c7253();while(!![]){try{const _0x57cec7=parseInt(_0x5ef874(0x149))/0x1*(parseInt(_0x5ef874(0x156))/0x2)+parseInt(_0x5ef874(0x159))/0x3+parseInt(_0x5ef874(0x163))/0x4+-parseInt(_0x5ef874(0x147))/0x5+-parseInt(_0x5ef874(0x148))/0x6+parseInt(_0x5ef874(0x14a))/0x7+-parseInt(_0x5ef874(0x139))/0x8;if(_0x57cec7===_0x171cf3)break;else _0x392e5e['push'](_0x392e5e['shift']());}catch(_0x38bbf1){_0x392e5e['push'](_0x392e5e['shift']());}}}(a159_0x448a,0x6c17f));import a159_0x2ed4dd from'winston';import a159_0x245dab from'node:fs';import a159_0x1e6aa9 from'node:path';function a159_0x448a(){const _0x158702=['winstonLogger','logTask','command','now','setRawCommand','File','printf','Failed\x20to\x20read\x20logs:','success','existsSync','createLogger','2FPlqkR','details','split','138414dUKJfm','combine','yellow','blue','info','dirname','currentRawCommand','Starting:\x20','initWinstonLogger','log','3284652RCggvR','red','trim','readFileSync','Failed:\x20','green','errors','clear','3266456oycBpw','filter','mkdirSync','timestamp','error','toISOString','writeFileSync','logFilePath','warn','getWinstonInstance','format','addColors','utf8','logFileName','40305VQIFgT','4102002aoIbuG','503137GLthZr','1206436PymwTG'];a159_0x448a=function(){return _0x158702;};return a159_0x448a();}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a159_0x9f4237(0x14b)];['logFilePath']='';[a159_0x9f4237(0x15f)]='';constructor(){}[a159_0x9f4237(0x14f)](_0x34e6a1){const _0x892ddd=a159_0x9f4237;this[_0x892ddd(0x15f)]=_0x34e6a1;}['setLogPath'](_0x4e8405){const _0x6bd9a6=a159_0x9f4237;this[_0x6bd9a6(0x140)]=a159_0x1e6aa9['join'](_0x4e8405,PRODUCT_CONFIG[_0x6bd9a6(0x146)]),this['winstonLogger']&&this['winstonLogger'][_0x6bd9a6(0x138)](),this[_0x6bd9a6(0x161)]();}[a159_0x9f4237(0x161)](){const _0x42c267=a159_0x9f4237,_0x278738=a159_0x1e6aa9[_0x42c267(0x15e)](this[_0x42c267(0x140)]);!a159_0x245dab['existsSync'](_0x278738)&&a159_0x245dab[_0x42c267(0x13b)](_0x278738,{'recursive':!![]});const _0x1979fa=a159_0x2ed4dd[_0x42c267(0x143)][_0x42c267(0x15a)](a159_0x2ed4dd[_0x42c267(0x143)][_0x42c267(0x13c)](),a159_0x2ed4dd[_0x42c267(0x143)][_0x42c267(0x137)]({'stack':!![]}),a159_0x2ed4dd[_0x42c267(0x143)][_0x42c267(0x151)](_0x72ed30=>{const _0x4cbbb2=_0x42c267,_0x367719={'timestamp':_0x72ed30[_0x4cbbb2(0x13c)]||new Date()[_0x4cbbb2(0x13e)](),'level':_0x72ed30['level']||'info','command':_0x72ed30[_0x4cbbb2(0x14d)]||'unknown','rawCommand':_0x72ed30['rawCommand']||this['currentRawCommand']||undefined,'message':_0x72ed30['message']||'','duration':_0x72ed30['duration']||undefined,'details':_0x72ed30[_0x4cbbb2(0x157)]||undefined};return JSON['stringify'](_0x367719);}));this[_0x42c267(0x14b)]=a159_0x2ed4dd[_0x42c267(0x155)]({'level':_0x42c267(0x15d),'format':_0x1979fa,'transports':[new a159_0x2ed4dd['transports'][(_0x42c267(0x150))]({'filename':this[_0x42c267(0x140)],'level':_0x42c267(0x15d)})],'silent':![]}),a159_0x2ed4dd[_0x42c267(0x144)]({'success':_0x42c267(0x136),'error':_0x42c267(0x164),'warn':_0x42c267(0x15b),'info':_0x42c267(0x15c)});}[a159_0x9f4237(0x15d)](_0x1141bb,_0x35cc04,_0x18bd52){const _0x6e8068=a159_0x9f4237;if(!this[_0x6e8068(0x140)]||!this[_0x6e8068(0x14b)])return;this['winstonLogger'][_0x6e8068(0x15d)](_0x35cc04,{'command':_0x1141bb,'details':_0x18bd52});}[a159_0x9f4237(0x153)](_0x33bd4a,_0x1e61ee,_0x263004,_0x576bbf){const _0xafd2d8=a159_0x9f4237;if(!this[_0xafd2d8(0x140)]||!this[_0xafd2d8(0x14b)])return;this['winstonLogger'][_0xafd2d8(0x162)]('info',_0x1e61ee,{'level':_0xafd2d8(0x153),'command':_0x33bd4a,'duration':_0x263004,'details':_0x576bbf});}[a159_0x9f4237(0x13d)](_0x517668,_0x23ed2a,_0x1b9138){const _0x1a1751=a159_0x9f4237;if(!this[_0x1a1751(0x140)]||!this[_0x1a1751(0x14b)])return;this['winstonLogger'][_0x1a1751(0x13d)](_0x23ed2a,{'command':_0x517668,'details':_0x1b9138});}[a159_0x9f4237(0x141)](_0x2ba6eb,_0x1c6571,_0x572fac){const _0x3ee534=a159_0x9f4237;if(!this['logFilePath']||!this[_0x3ee534(0x14b)])return;this[_0x3ee534(0x14b)]['warn'](_0x1c6571,{'command':_0x2ba6eb,'details':_0x572fac});}async[a159_0x9f4237(0x14c)](_0x3f26e9,_0x344ef4,_0x119338){const _0x14fff6=a159_0x9f4237,_0x1eb124=Date[_0x14fff6(0x14e)]();this['info'](_0x3f26e9,_0x14fff6(0x160)+_0x344ef4);try{const _0x248250=await _0x119338(),_0x2b721d=Date['now']()-_0x1eb124;return this[_0x14fff6(0x153)](_0x3f26e9,'Completed:\x20'+_0x344ef4,_0x2b721d),_0x248250;}catch(_0x2fcedd){const _0x2864c0=Date[_0x14fff6(0x14e)]()-_0x1eb124;this[_0x14fff6(0x13d)](_0x3f26e9,_0x14fff6(0x135)+_0x344ef4,{'error':_0x2fcedd instanceof Error?_0x2fcedd['message']:String(_0x2fcedd),'duration':_0x2864c0});throw _0x2fcedd;}}['readLogs'](){const _0x3eaec0=a159_0x9f4237;try{if(!a159_0x245dab[_0x3eaec0(0x154)](this['logFilePath']))return[];const _0x3f53d3=a159_0x245dab[_0x3eaec0(0x134)](this[_0x3eaec0(0x140)],_0x3eaec0(0x145));return _0x3f53d3[_0x3eaec0(0x158)](/\r?\n/)[_0x3eaec0(0x13a)](_0x328bea=>_0x328bea[_0x3eaec0(0x133)]())['map'](_0x34323a=>JSON['parse'](_0x34323a));}catch(_0x1abebd){return console[_0x3eaec0(0x141)](_0x3eaec0(0x152),_0x1abebd),[];}}['clearLogs'](){const _0x2ade4a=a159_0x9f4237;try{a159_0x245dab['existsSync'](this[_0x2ade4a(0x140)])&&a159_0x245dab[_0x2ade4a(0x13f)](this[_0x2ade4a(0x140)],'','utf8');}catch(_0x1d576b){console['warn']('Failed\x20to\x20clear\x20logs:',_0x1d576b);}}[a159_0x9f4237(0x142)](){const _0x52fec0=a159_0x9f4237;return this[_0x52fec0(0x14b)];}}export const logger=new Logger();
1
+ const a159_0x315be3=a159_0x531d;(function(_0x2ff22f,_0x3e9274){const _0x23ff6c=a159_0x531d,_0x2de087=_0x2ff22f();while(!![]){try{const _0xa1c866=-parseInt(_0x23ff6c(0x15c))/0x1*(parseInt(_0x23ff6c(0x16e))/0x2)+-parseInt(_0x23ff6c(0x17f))/0x3+-parseInt(_0x23ff6c(0x168))/0x4+-parseInt(_0x23ff6c(0x15e))/0x5*(-parseInt(_0x23ff6c(0x185))/0x6)+-parseInt(_0x23ff6c(0x16f))/0x7+parseInt(_0x23ff6c(0x179))/0x8*(-parseInt(_0x23ff6c(0x15f))/0x9)+parseInt(_0x23ff6c(0x175))/0xa;if(_0xa1c866===_0x3e9274)break;else _0x2de087['push'](_0x2de087['shift']());}catch(_0x21af70){_0x2de087['push'](_0x2de087['shift']());}}}(a159_0xaa27,0x63451));import a159_0x506011 from'winston';import a159_0x8205d9 from'node:fs';import a159_0x4710d6 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];[a159_0x315be3(0x170)]='';[a159_0x315be3(0x181)]='';constructor(){}[a159_0x315be3(0x165)](_0x14a6ce){const _0x3d682e=a159_0x315be3;this[_0x3d682e(0x181)]=_0x14a6ce;}[a159_0x315be3(0x15b)](_0x579ed0){const _0x5f57f7=a159_0x315be3;this[_0x5f57f7(0x170)]=a159_0x4710d6['join'](_0x579ed0,PRODUCT_CONFIG[_0x5f57f7(0x191)]),this['winstonLogger']&&this[_0x5f57f7(0x17d)][_0x5f57f7(0x166)](),this['initWinstonLogger']();}[a159_0x315be3(0x184)](){const _0xf49fd5=a159_0x315be3,_0x4f1800=a159_0x4710d6['dirname'](this[_0xf49fd5(0x170)]);!a159_0x8205d9[_0xf49fd5(0x186)](_0x4f1800)&&a159_0x8205d9[_0xf49fd5(0x15d)](_0x4f1800,{'recursive':!![]});const _0x57c152=a159_0x506011[_0xf49fd5(0x177)][_0xf49fd5(0x176)](a159_0x506011[_0xf49fd5(0x177)]['timestamp'](),a159_0x506011[_0xf49fd5(0x177)][_0xf49fd5(0x16b)]({'stack':!![]}),a159_0x506011[_0xf49fd5(0x177)][_0xf49fd5(0x18b)](_0x3bee58=>{const _0x5def5a=_0xf49fd5,_0x3c5880={'timestamp':_0x3bee58['timestamp']||new Date()[_0x5def5a(0x174)](),'level':_0x3bee58[_0x5def5a(0x16c)]||_0x5def5a(0x18a),'command':_0x3bee58[_0x5def5a(0x187)]||_0x5def5a(0x172),'rawCommand':_0x3bee58[_0x5def5a(0x16d)]||this[_0x5def5a(0x181)]||undefined,'message':_0x3bee58[_0x5def5a(0x182)]||'','duration':_0x3bee58[_0x5def5a(0x188)]||undefined,'details':_0x3bee58['details']||undefined};return JSON['stringify'](_0x3c5880);}));this[_0xf49fd5(0x17d)]=a159_0x506011[_0xf49fd5(0x161)]({'level':_0xf49fd5(0x18a),'format':_0x57c152,'transports':[new a159_0x506011[(_0xf49fd5(0x160))][(_0xf49fd5(0x18c))]({'filename':this[_0xf49fd5(0x170)],'level':_0xf49fd5(0x18a)})],'silent':![]}),a159_0x506011[_0xf49fd5(0x18e)]({'success':_0xf49fd5(0x190),'error':'red','warn':_0xf49fd5(0x163),'info':'blue'});}[a159_0x315be3(0x18a)](_0x1dec16,_0x1b426f,_0x4c3558){const _0x3d7152=a159_0x315be3;if(!this[_0x3d7152(0x170)]||!this[_0x3d7152(0x17d)])return;this[_0x3d7152(0x17d)][_0x3d7152(0x18a)](_0x1b426f,{'command':_0x1dec16,'details':_0x4c3558});}[a159_0x315be3(0x167)](_0x14bbf8,_0x188b42,_0x443a91,_0x1f17dd){const _0x203928=a159_0x315be3;if(!this[_0x203928(0x170)]||!this[_0x203928(0x17d)])return;this[_0x203928(0x17d)][_0x203928(0x17e)](_0x203928(0x18a),_0x188b42,{'level':'success','command':_0x14bbf8,'duration':_0x443a91,'details':_0x1f17dd});}[a159_0x315be3(0x189)](_0x12831d,_0xbcfe1d,_0x5052f9){const _0x128c5e=a159_0x315be3;if(!this[_0x128c5e(0x170)]||!this[_0x128c5e(0x17d)])return;this['winstonLogger']['error'](_0xbcfe1d,{'command':_0x12831d,'details':_0x5052f9});}[a159_0x315be3(0x16a)](_0x2f420e,_0x3b07f3,_0x2ce5c2){const _0x3b118b=a159_0x315be3;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x3b118b(0x17d)][_0x3b118b(0x16a)](_0x3b07f3,{'command':_0x2f420e,'details':_0x2ce5c2});}async['logTask'](_0x27fdbf,_0x33866b,_0x19d4af){const _0x11886d=a159_0x315be3,_0x28fb29=Date[_0x11886d(0x192)]();this['info'](_0x27fdbf,_0x11886d(0x173)+_0x33866b);try{const _0x12ee6b=await _0x19d4af(),_0x39d669=Date['now']()-_0x28fb29;return this[_0x11886d(0x167)](_0x27fdbf,_0x11886d(0x180)+_0x33866b,_0x39d669),_0x12ee6b;}catch(_0x408fe4){const _0x2f17b2=Date[_0x11886d(0x192)]()-_0x28fb29;this[_0x11886d(0x189)](_0x27fdbf,_0x11886d(0x17b)+_0x33866b,{'error':_0x408fe4 instanceof Error?_0x408fe4[_0x11886d(0x182)]:String(_0x408fe4),'duration':_0x2f17b2});throw _0x408fe4;}}[a159_0x315be3(0x169)](){const _0x28f496=a159_0x315be3;try{if(!a159_0x8205d9[_0x28f496(0x186)](this[_0x28f496(0x170)]))return[];const _0x377c22=a159_0x8205d9['readFileSync'](this[_0x28f496(0x170)],_0x28f496(0x164));return _0x377c22[_0x28f496(0x162)](/\r?\n/)[_0x28f496(0x17a)](_0x10d056=>_0x10d056[_0x28f496(0x18d)]())['map'](_0x6eda55=>JSON[_0x28f496(0x18f)](_0x6eda55));}catch(_0x49ab1e){return console['warn'](_0x28f496(0x15a),_0x49ab1e),[];}}[a159_0x315be3(0x171)](){const _0x5398cf=a159_0x315be3;try{a159_0x8205d9['existsSync'](this[_0x5398cf(0x170)])&&a159_0x8205d9[_0x5398cf(0x178)](this['logFilePath'],'','utf8');}catch(_0x11a9ad){console[_0x5398cf(0x16a)](_0x5398cf(0x17c),_0x11a9ad);}}[a159_0x315be3(0x183)](){const _0x3e6844=a159_0x315be3;return this[_0x3e6844(0x17d)];}}function a159_0xaa27(){const _0x1267fb=['split','yellow','utf8','setRawCommand','clear','success','836344EMOjRh','readLogs','warn','errors','level','rawCommand','14bOdDhb','5180203FgcvMx','logFilePath','clearLogs','unknown','Starting:\x20','toISOString','30158260yZmaHr','combine','format','writeFileSync','32GtwKcY','filter','Failed:\x20','Failed\x20to\x20clear\x20logs:','winstonLogger','log','2001411NMdcUi','Completed:\x20','currentRawCommand','message','getWinstonInstance','initWinstonLogger','12HXORRy','existsSync','command','duration','error','info','printf','File','trim','addColors','parse','green','logFileName','now','Failed\x20to\x20read\x20logs:','setLogPath','89029WLVtKr','mkdirSync','927905HcaOYe','1667079IJTtRL','transports','createLogger'];a159_0xaa27=function(){return _0x1267fb;};return a159_0xaa27();}function a159_0x531d(_0x34f36a,_0xa9df93){_0x34f36a=_0x34f36a-0x15a;const _0xaa27fd=a159_0xaa27();let _0x531ddd=_0xaa27fd[_0x34f36a];return _0x531ddd;}export const logger=new Logger();
@@ -1 +1 @@
1
- function a160_0x2311(){const _0x2f1034=['includes','exec','undefined','5161784YareYj','getOwnPropertyDescriptor','MAX_SAFE_INTEGER','prototype','9KtJSig','length','1607032lIWSHF','defineProperty','json','3458856xqtQvL','1436978RfBxtE','168332kAotUN','text','2162795MOjIGy','642039EsWZGd'];a160_0x2311=function(){return _0x2f1034;};return a160_0x2311();}const a160_0x16aec7=a160_0x39cd;(function(_0x41123b,_0x5e701c){const _0x5462a4=a160_0x39cd,_0x211cb0=_0x41123b();while(!![]){try{const _0x4872c5=-parseInt(_0x5462a4(0xe6))/0x1+parseInt(_0x5462a4(0xe2))/0x2+-parseInt(_0x5462a4(0xdc))/0x3*(parseInt(_0x5462a4(0xe3))/0x4)+-parseInt(_0x5462a4(0xe5))/0x5+parseInt(_0x5462a4(0xe1))/0x6+-parseInt(_0x5462a4(0xde))/0x7+parseInt(_0x5462a4(0xd8))/0x8;if(_0x4872c5===_0x5e701c)break;else _0x211cb0['push'](_0x211cb0['shift']());}catch(_0x55c3d7){_0x211cb0['push'](_0x211cb0['shift']());}}}(a160_0x2311,0x7c745));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a160_0x16aec7(0xda)]),MIN_SAFE_INTEGER=BigInt(Number['MIN_SAFE_INTEGER']);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x570f1f){const _0x1b845e=a160_0x16aec7;if(_0x570f1f['includes']('.')||_0x570f1f[_0x1b845e(0xe7)]('e')||_0x570f1f[_0x1b845e(0xe7)]('E'))return![];const _0xbcfb9a=BigInt(_0x570f1f);return _0xbcfb9a>MAX_SAFE_INTEGER||_0xbcfb9a<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x31b5f2){const _0x4620e8=a160_0x16aec7;let _0x49ebea='',_0x54a740=![],_0x3f8179=![];for(let _0x293328=0x0;_0x293328<_0x31b5f2['length'];){const _0x4768b3=_0x31b5f2[_0x293328];if(_0x54a740){_0x49ebea+=_0x4768b3,_0x293328+=0x1;if(_0x3f8179)_0x3f8179=![];else{if(_0x4768b3==='\x5c')_0x3f8179=!![];else _0x4768b3==='\x22'&&(_0x54a740=![]);}continue;}if(_0x4768b3==='\x22'){_0x54a740=!![],_0x49ebea+=_0x4768b3,_0x293328+=0x1;continue;}if(_0x4768b3==='-'||_0x4768b3>='0'&&_0x4768b3<='9'){const _0x9eaac8=JSON_NUMBER_PATTERN[_0x4620e8(0xe8)](_0x31b5f2['slice'](_0x293328))?.[0x0];if(_0x9eaac8){_0x49ebea+=isUnsafeIntegerLiteral(_0x9eaac8)?'\x22'+_0x9eaac8+'\x22':_0x9eaac8,_0x293328+=_0x9eaac8[_0x4620e8(0xdd)];continue;}}_0x49ebea+=_0x4768b3,_0x293328+=0x1;}return _0x49ebea;}export function parseLosslessJson(_0x18f1dd){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x18f1dd));}function a160_0x39cd(_0x39c315,_0x222a38){_0x39c315=_0x39c315-0xd8;const _0x2311e8=a160_0x2311();let _0x39cd60=_0x2311e8[_0x39c315];return _0x39cd60;}export function installLosslessJsonResponseParser(){const _0x4d627e=a160_0x16aec7;if(typeof Response===_0x4d627e(0xe9))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x4d627e(0xdb)],originalResponseJsonDescriptor=Object[_0x4d627e(0xd9)](responseJsonPrototype,_0x4d627e(0xe0)),Object[_0x4d627e(0xdf)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x33a23d(){const _0x35939b=_0x4d627e;return parseLosslessJson(await this[_0x35939b(0xe4)]());}}),restoreResponseJsonParser=()=>{const _0x55d99b=_0x4d627e;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x55d99b(0xdf)](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0x55d99b(0xe0)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ const a160_0x10d01c=a160_0x9ef4;(function(_0x2f6f20,_0x49f028){const _0x5575a8=a160_0x9ef4,_0x5f3034=_0x2f6f20();while(!![]){try{const _0x40b2a6=parseInt(_0x5575a8(0x129))/0x1*(-parseInt(_0x5575a8(0x120))/0x2)+parseInt(_0x5575a8(0x11c))/0x3*(parseInt(_0x5575a8(0x128))/0x4)+parseInt(_0x5575a8(0x123))/0x5*(-parseInt(_0x5575a8(0x12e))/0x6)+parseInt(_0x5575a8(0x12c))/0x7+-parseInt(_0x5575a8(0x121))/0x8+-parseInt(_0x5575a8(0x11b))/0x9*(-parseInt(_0x5575a8(0x11f))/0xa)+parseInt(_0x5575a8(0x12d))/0xb*(parseInt(_0x5575a8(0x119))/0xc);if(_0x40b2a6===_0x49f028)break;else _0x5f3034['push'](_0x5f3034['shift']());}catch(_0x348b87){_0x5f3034['push'](_0x5f3034['shift']());}}}(a160_0x2eca,0x84db3));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a160_0x10d01c(0x127)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a160_0x2eca(){const _0x3a49be=['3820RoTWJp','defineProperty','prototype','5424181EuhTBb','11choWgo','714qGCUck','undefined','1101684eBxjPP','includes','3474567ANSDKm','6MOFlcn','length','exec','10pGhdet','138igjXad','1604408xCYCiR','slice','29995AolHbW','parse','getOwnPropertyDescriptor','json','MIN_SAFE_INTEGER','938876rCsvYY'];a160_0x2eca=function(){return _0x3a49be;};return a160_0x2eca();}function isUnsafeIntegerLiteral(_0x545b3b){const _0x5d1efc=a160_0x10d01c;if(_0x545b3b[_0x5d1efc(0x11a)]('.')||_0x545b3b['includes']('e')||_0x545b3b[_0x5d1efc(0x11a)]('E'))return![];const _0xe2968c=BigInt(_0x545b3b);return _0xe2968c>MAX_SAFE_INTEGER||_0xe2968c<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x32c51f){const _0x3c1ee7=a160_0x10d01c;let _0x28f50e='',_0x21c13b=![],_0x166ed3=![];for(let _0x22f1bb=0x0;_0x22f1bb<_0x32c51f[_0x3c1ee7(0x11d)];){const _0x3239fe=_0x32c51f[_0x22f1bb];if(_0x21c13b){_0x28f50e+=_0x3239fe,_0x22f1bb+=0x1;if(_0x166ed3)_0x166ed3=![];else{if(_0x3239fe==='\x5c')_0x166ed3=!![];else _0x3239fe==='\x22'&&(_0x21c13b=![]);}continue;}if(_0x3239fe==='\x22'){_0x21c13b=!![],_0x28f50e+=_0x3239fe,_0x22f1bb+=0x1;continue;}if(_0x3239fe==='-'||_0x3239fe>='0'&&_0x3239fe<='9'){const _0xdc5409=JSON_NUMBER_PATTERN[_0x3c1ee7(0x11e)](_0x32c51f[_0x3c1ee7(0x122)](_0x22f1bb))?.[0x0];if(_0xdc5409){_0x28f50e+=isUnsafeIntegerLiteral(_0xdc5409)?'\x22'+_0xdc5409+'\x22':_0xdc5409,_0x22f1bb+=_0xdc5409[_0x3c1ee7(0x11d)];continue;}}_0x28f50e+=_0x3239fe,_0x22f1bb+=0x1;}return _0x28f50e;}function a160_0x9ef4(_0x240ff9,_0x541882){_0x240ff9=_0x240ff9-0x119;const _0x2eca39=a160_0x2eca();let _0x9ef4d2=_0x2eca39[_0x240ff9];return _0x9ef4d2;}export function parseLosslessJson(_0x202adb){const _0x4cbb87=a160_0x10d01c;return JSON[_0x4cbb87(0x124)](quoteUnsafeIntegerLiterals(_0x202adb));}export function installLosslessJsonResponseParser(){const _0x15a534=a160_0x10d01c;if(typeof Response===_0x15a534(0x12f))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x15a534(0x12b)],originalResponseJsonDescriptor=Object[_0x15a534(0x125)](responseJsonPrototype,_0x15a534(0x126)),Object[_0x15a534(0x12a)](responseJsonPrototype,_0x15a534(0x126),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x236c92(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x5e96a9=_0x15a534;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x5e96a9(0x12a)](responseJsonPrototype,_0x5e96a9(0x126),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x5e96a9(0x126)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
@@ -1 +1 @@
1
- (function(_0x3e60c2,_0x45116e){const _0x5ba379=a161_0x5e1f,_0x43d509=_0x3e60c2();while(!![]){try{const _0x5eb01e=parseInt(_0x5ba379(0x169))/0x1+parseInt(_0x5ba379(0x15f))/0x2*(parseInt(_0x5ba379(0x167))/0x3)+-parseInt(_0x5ba379(0x16f))/0x4*(parseInt(_0x5ba379(0x16c))/0x5)+parseInt(_0x5ba379(0x15e))/0x6*(parseInt(_0x5ba379(0x154))/0x7)+parseInt(_0x5ba379(0x16e))/0x8*(-parseInt(_0x5ba379(0x156))/0x9)+-parseInt(_0x5ba379(0x164))/0xa*(-parseInt(_0x5ba379(0x15a))/0xb)+parseInt(_0x5ba379(0x16b))/0xc;if(_0x5eb01e===_0x45116e)break;else _0x43d509['push'](_0x43d509['shift']());}catch(_0xdf9eff){_0x43d509['push'](_0x43d509['shift']());}}}(a161_0x59b2,0x505d3));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x7cd7fc){const _0x53a7ef=a161_0x5e1f;if(!_0x7cd7fc)return undefined;try{return parseLosslessJson(_0x7cd7fc);}catch{throw CliErrors[_0x53a7ef(0x16a)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x7cd7fc);}}function a161_0x59b2(){const _0x605505=['Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','3730jIRtzr','items','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','217197ICWBZW','object','7885iLLVVg','validation','9453396TaGNfK','11365CgKDPu','data\x20update\x20can\x20update\x20at\x20most\x20','416mOFKih','580bIXYne','Invalid\x20JSON\x20for\x20--params:\x20','\x20records\x20per\x20call;\x20received\x20','7oRTjSa','data\x20update\x20--params.','99801xLcugx','id[','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','length','1529sFIiGZ','string','number','isArray','1892820bMJabJ','2PDMwUY','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','test'];a161_0x59b2=function(){return _0x605505;};return a161_0x59b2();}export function parseJsonParamsValue(_0x5188be){const _0x17a925=a161_0x5e1f;if(!_0x5188be)return undefined;try{return parseLosslessJson(_0x5188be);}catch{throw CliErrors['validation'](_0x17a925(0x170)+_0x5188be);}}function a161_0x5e1f(_0x123ccf,_0x4399be){_0x123ccf=_0x123ccf-0x154;const _0x59b219=a161_0x59b2();let _0x5e1f43=_0x59b219[_0x123ccf];return _0x5e1f43;}export function parseBatchCreateItemsFromParams(_0x507e7a){const _0x511e08=a161_0x5e1f;if(Array[_0x511e08(0x15d)](_0x507e7a))return _0x507e7a;if(_0x507e7a!==null&&_0x507e7a!==undefined&&typeof _0x507e7a==='object'&&Array[_0x511e08(0x15d)](_0x507e7a['items']))return _0x507e7a[_0x511e08(0x165)];throw CliErrors[_0x511e08(0x16a)](_0x511e08(0x166),_0x511e08(0x160));}function parseDataUpdateId(_0x3b9c63,_0xf9d2ae){const _0x5de738=a161_0x5e1f;if(typeof _0x3b9c63===_0x5de738(0x15c)&&Number['isSafeInteger'](_0x3b9c63)&&_0x3b9c63>0x0)return _0x3b9c63;if(typeof _0x3b9c63===_0x5de738(0x15b)){if(/^[1-9]\d*$/[_0x5de738(0x161)](_0x3b9c63))return _0x3b9c63;}throw CliErrors[_0x5de738(0x16a)](_0x5de738(0x155)+_0xf9d2ae+_0x5de738(0x163));}export function parseUpdateIdsFromParams(_0x34b247){const _0x24b16b=a161_0x5e1f;if(_0x34b247===null||_0x34b247===undefined||typeof _0x34b247!==_0x24b16b(0x168)||Array[_0x24b16b(0x15d)](_0x34b247))throw CliErrors[_0x24b16b(0x16a)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0xcc0d49=_0x34b247['id'];if(_0xcc0d49===undefined||_0xcc0d49===null)throw CliErrors['validation']('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x24b16b(0x162));const _0x5ac8f5=Array[_0x24b16b(0x15d)](_0xcc0d49)?_0xcc0d49:[_0xcc0d49];if(_0x5ac8f5['length']===0x0)throw CliErrors[_0x24b16b(0x16a)](_0x24b16b(0x158));if(_0x5ac8f5['length']>MAX_DATA_UPDATE_IDS)throw CliErrors['validation'](_0x24b16b(0x16d)+MAX_DATA_UPDATE_IDS+_0x24b16b(0x171)+_0x5ac8f5[_0x24b16b(0x159)]+'.');return _0x5ac8f5['map']((_0x39cf92,_0x38dcee)=>parseDataUpdateId(_0x39cf92,Array[_0x24b16b(0x15d)](_0xcc0d49)?_0x24b16b(0x157)+_0x38dcee+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x6747fc,_0x26968e){const _0x2a52eb=a161_0x5e1f;if(Array[_0x2a52eb(0x15d)](_0x6747fc['id'])&&_0x26968e[_0x2a52eb(0x159)]>0x1)return{..._0x6747fc,'id':_0x26968e['join'](',')};return _0x6747fc;}
1
+ (function(_0x26dae0,_0x3b45c4){const _0x8c4667=a161_0x3dfa,_0x1cb416=_0x26dae0();while(!![]){try{const _0x1eb364=parseInt(_0x8c4667(0x197))/0x1+-parseInt(_0x8c4667(0x198))/0x2+parseInt(_0x8c4667(0x19a))/0x3*(parseInt(_0x8c4667(0x19b))/0x4)+parseInt(_0x8c4667(0x199))/0x5+parseInt(_0x8c4667(0x19c))/0x6+parseInt(_0x8c4667(0x194))/0x7+parseInt(_0x8c4667(0x1a4))/0x8*(-parseInt(_0x8c4667(0x1a0))/0x9);if(_0x1eb364===_0x3b45c4)break;else _0x1cb416['push'](_0x1cb416['shift']());}catch(_0x3a4f4d){_0x1cb416['push'](_0x1cb416['shift']());}}}(a161_0x540f,0xf1041));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x27090b){const _0x2875a0=a161_0x3dfa;if(!_0x27090b)return undefined;try{return parseLosslessJson(_0x27090b);}catch{throw CliErrors[_0x2875a0(0x192)](_0x2875a0(0x1a9)+_0x27090b);}}export function parseJsonParamsValue(_0xbb010c){const _0x189cd8=a161_0x3dfa;if(!_0xbb010c)return undefined;try{return parseLosslessJson(_0xbb010c);}catch{throw CliErrors[_0x189cd8(0x192)](_0x189cd8(0x1a9)+_0xbb010c);}}export function parseBatchCreateItemsFromParams(_0x21f81b){const _0x1e99fe=a161_0x3dfa;if(Array[_0x1e99fe(0x1a1)](_0x21f81b))return _0x21f81b;if(_0x21f81b!==null&&_0x21f81b!==undefined&&typeof _0x21f81b===_0x1e99fe(0x191)&&Array[_0x1e99fe(0x1a1)](_0x21f81b[_0x1e99fe(0x196)]))return _0x21f81b[_0x1e99fe(0x196)];throw CliErrors[_0x1e99fe(0x192)](_0x1e99fe(0x1a7),_0x1e99fe(0x1a5));}function a161_0x3dfa(_0x11a3ea,_0x80fde5){_0x11a3ea=_0x11a3ea-0x190;const _0x540f02=a161_0x540f();let _0x3dfaf9=_0x540f02[_0x11a3ea];return _0x3dfaf9;}function parseDataUpdateId(_0xce32a9,_0x18e41d){const _0x22d808=a161_0x3dfa;if(typeof _0xce32a9===_0x22d808(0x19e)&&Number[_0x22d808(0x1ac)](_0xce32a9)&&_0xce32a9>0x0)return _0xce32a9;if(typeof _0xce32a9===_0x22d808(0x19f)){if(/^[1-9]\d*$/[_0x22d808(0x1a8)](_0xce32a9))return _0xce32a9;}throw CliErrors[_0x22d808(0x192)](_0x22d808(0x190)+_0x18e41d+_0x22d808(0x1a2));}export function parseUpdateIdsFromParams(_0x3a981f){const _0x137a38=a161_0x3dfa;if(_0x3a981f===null||_0x3a981f===undefined||typeof _0x3a981f!==_0x137a38(0x191)||Array[_0x137a38(0x1a1)](_0x3a981f))throw CliErrors[_0x137a38(0x192)](_0x137a38(0x193),_0x137a38(0x1ad));const _0x23d7b2=_0x3a981f['id'];if(_0x23d7b2===undefined||_0x23d7b2===null)throw CliErrors['validation'](_0x137a38(0x1a6),_0x137a38(0x1ad));const _0x1d2f6a=Array[_0x137a38(0x1a1)](_0x23d7b2)?_0x23d7b2:[_0x23d7b2];if(_0x1d2f6a[_0x137a38(0x1aa)]===0x0)throw CliErrors[_0x137a38(0x192)](_0x137a38(0x19d));if(_0x1d2f6a[_0x137a38(0x1aa)]>MAX_DATA_UPDATE_IDS)throw CliErrors['validation']('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x137a38(0x1a3)+_0x1d2f6a[_0x137a38(0x1aa)]+'.');return _0x1d2f6a[_0x137a38(0x195)]((_0x2b22a8,_0x1bba94)=>parseDataUpdateId(_0x2b22a8,Array[_0x137a38(0x1a1)](_0x23d7b2)?_0x137a38(0x1ab)+_0x1bba94+']':'id'));}function a161_0x540f(){const _0x191eb7=['length','id[','isSafeInteger','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20--params.','object','validation','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','10885504HLfpSk','map','items','328023tlppnR','14160dVpdwO','8253030JVbZuF','571218VXzqDK','36KgJEoo','3371622ByRNuk','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','number','string','9qkyYuy','isArray','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','\x20records\x20per\x20call;\x20received\x20','38520088IiOjHr','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','test','Invalid\x20JSON\x20for\x20--params:\x20'];a161_0x540f=function(){return _0x191eb7;};return a161_0x540f();}export function normalizeUpdateParamsForRuntime(_0x5cb7b8,_0x282e39){const _0x11586f=a161_0x3dfa;if(Array[_0x11586f(0x1a1)](_0x5cb7b8['id'])&&_0x282e39[_0x11586f(0x1aa)]>0x1)return{..._0x5cb7b8,'id':_0x282e39['join'](',')};return _0x5cb7b8;}
@@ -1 +1 @@
1
- function a162_0x58d4(_0x4417f7,_0x33d2ac){_0x4417f7=_0x4417f7-0x7b;const _0x43a578=a162_0x43a5();let _0x58d4a3=_0x43a578[_0x4417f7];return _0x58d4a3;}function a162_0x43a5(){const _0x38165d=['isSafeInteger','1396230ZJaexy','648gmicvW','262416lOlEIV','test','77dYOZsM','8VzCADR','140568HSwXah','34600ZsJMxX','4zsqJmU','81715gWZJZc','7163292EafZKa','number','11KtWnGV','1122265IpfiAK','string'];a162_0x43a5=function(){return _0x38165d;};return a162_0x43a5();}(function(_0x1544a5,_0x57d820){const _0x61c356=a162_0x58d4,_0x36f395=_0x1544a5();while(!![]){try{const _0x409488=parseInt(_0x61c356(0x87))/0x1*(parseInt(_0x61c356(0x83))/0x2)+parseInt(_0x61c356(0x7e))/0x3+-parseInt(_0x61c356(0x86))/0x4*(-parseInt(_0x61c356(0x7b))/0x5)+-parseInt(_0x61c356(0x80))/0x6+-parseInt(_0x61c356(0x82))/0x7*(-parseInt(_0x61c356(0x84))/0x8)+parseInt(_0x61c356(0x7f))/0x9*(-parseInt(_0x61c356(0x85))/0xa)+-parseInt(_0x61c356(0x8a))/0xb*(parseInt(_0x61c356(0x88))/0xc);if(_0x409488===_0x57d820)break;else _0x36f395['push'](_0x36f395['shift']());}catch(_0x4386af){_0x36f395['push'](_0x36f395['shift']());}}}(a162_0x43a5,0x4e2cf));export function normalizePositiveSafeInteger(_0x3cb92f){const _0x1562f0=a162_0x58d4;if(typeof _0x3cb92f===_0x1562f0(0x89))return Number[_0x1562f0(0x7d)](_0x3cb92f)&&_0x3cb92f>0x0?_0x3cb92f:undefined;if(typeof _0x3cb92f!==_0x1562f0(0x7c)||!/^\d+$/[_0x1562f0(0x81)](_0x3cb92f))return undefined;const _0x9306c4=Number(_0x3cb92f);return Number[_0x1562f0(0x7d)](_0x9306c4)&&_0x9306c4>0x0?_0x9306c4:undefined;}
1
+ (function(_0x11f4ac,_0x5bf127){const _0x166f5d=a162_0x584e,_0x1929f0=_0x11f4ac();while(!![]){try{const _0x3d450f=-parseInt(_0x166f5d(0x1c9))/0x1+parseInt(_0x166f5d(0x1c6))/0x2+parseInt(_0x166f5d(0x1c3))/0x3+parseInt(_0x166f5d(0x1c1))/0x4+-parseInt(_0x166f5d(0x1c7))/0x5+parseInt(_0x166f5d(0x1c4))/0x6*(parseInt(_0x166f5d(0x1c2))/0x7)+-parseInt(_0x166f5d(0x1c8))/0x8;if(_0x3d450f===_0x5bf127)break;else _0x1929f0['push'](_0x1929f0['shift']());}catch(_0x2dc673){_0x1929f0['push'](_0x1929f0['shift']());}}}(a162_0x5884,0xa6026));function a162_0x5884(){const _0x4d0f6a=['256285NAYspQ','9639576WlARNE','307959lMtJlA','string','409444TDCpbv','448LhTgHR','3967104Ajafzs','33888udwiIM','isSafeInteger','915872NQkfJH'];a162_0x5884=function(){return _0x4d0f6a;};return a162_0x5884();}function a162_0x584e(_0x5a7bb1,_0x5d9e39){_0x5a7bb1=_0x5a7bb1-0x1c0;const _0x5884ea=a162_0x5884();let _0x584e76=_0x5884ea[_0x5a7bb1];return _0x584e76;}export function normalizePositiveSafeInteger(_0x26db17){const _0x5e1646=a162_0x584e;if(typeof _0x26db17==='number')return Number[_0x5e1646(0x1c5)](_0x26db17)&&_0x26db17>0x0?_0x26db17:undefined;if(typeof _0x26db17!==_0x5e1646(0x1c0)||!/^\d+$/['test'](_0x26db17))return undefined;const _0x45d298=Number(_0x26db17);return Number[_0x5e1646(0x1c5)](_0x45d298)&&_0x45d298>0x0?_0x45d298:undefined;}
@@ -1 +1 @@
1
- const a163_0x4ac741=a163_0x4200;(function(_0x18b7f5,_0x34d8db){const _0x4b26e6=a163_0x4200,_0x1cb6b2=_0x18b7f5();while(!![]){try{const _0x40a405=-parseInt(_0x4b26e6(0x1b4))/0x1*(parseInt(_0x4b26e6(0x1c2))/0x2)+parseInt(_0x4b26e6(0x1b8))/0x3*(-parseInt(_0x4b26e6(0x1b3))/0x4)+parseInt(_0x4b26e6(0x1ad))/0x5*(-parseInt(_0x4b26e6(0x1b6))/0x6)+parseInt(_0x4b26e6(0x1b5))/0x7+parseInt(_0x4b26e6(0x1ba))/0x8+-parseInt(_0x4b26e6(0x1bb))/0x9*(parseInt(_0x4b26e6(0x1af))/0xa)+parseInt(_0x4b26e6(0x1bd))/0xb;if(_0x40a405===_0x34d8db)break;else _0x1cb6b2['push'](_0x1cb6b2['shift']());}catch(_0x42435a){_0x1cb6b2['push'](_0x1cb6b2['shift']());}}}(a163_0x1a4c,0x2f6f4));const REDACTED_VALUE=a163_0x4ac741(0x1ab),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set(['comment',a163_0x4ac741(0x1bf)]),SENSITIVE_VALUE_KEYS=new Set([a163_0x4ac741(0x1b1)]);export function isSensitiveKey(_0x443adb){const _0x913b49=a163_0x4ac741,_0x38e7d2=_0x443adb[_0x913b49(0x1bc)](/_/g,'-')[_0x913b49(0x1ae)]();return SENSITIVE_KEY_PATTERN[_0x913b49(0x1b7)](_0x38e7d2);}export function isSensitiveFlagName(_0x1c499c){const _0x517b0d=a163_0x4ac741,_0x4754c2=_0x1c499c[_0x517b0d(0x1bc)](/_/g,'-')[_0x517b0d(0x1ae)]();return isSensitiveKey(_0x4754c2)||SENSITIVE_FLAG_NAMES[_0x517b0d(0x1ac)](_0x4754c2);}function a163_0x4200(_0x1480ff,_0x53ab13){_0x1480ff=_0x1480ff-0x1ab;const _0x1a4c57=a163_0x1a4c();let _0x420017=_0x1a4c57[_0x1480ff];return _0x420017;}function redactVariableValues(_0x22858d){const _0x26b1de=a163_0x4ac741;if(Array[_0x26b1de(0x1c0)](_0x22858d))return _0x22858d['map'](_0x1acf66=>redactVariableValues(_0x1acf66));if(_0x22858d&&typeof _0x22858d===_0x26b1de(0x1b2))return Object['fromEntries'](Object['entries'](_0x22858d)[_0x26b1de(0x1c1)](([_0x38d169,_0x4bb949])=>[_0x38d169,redactVariableValues(_0x4bb949)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x445dd8){const _0x474ee9=a163_0x4ac741;if(Array[_0x474ee9(0x1c0)](_0x445dd8))return _0x445dd8['map'](_0x4cb793=>redactSensitiveValue(_0x4cb793));if(!_0x445dd8||typeof _0x445dd8!==_0x474ee9(0x1b2))return _0x445dd8;const _0x32a64f={};for(const [_0x4a08e0,_0x45c7f2]of Object[_0x474ee9(0x1be)](_0x445dd8)){const _0x2f544c=_0x4a08e0[_0x474ee9(0x1bc)](/_/g,'-')['toLowerCase']();_0x32a64f[_0x4a08e0]=_0x2f544c===_0x474ee9(0x1bf)?redactVariableValues(_0x45c7f2):SENSITIVE_VALUE_KEYS['has'](_0x2f544c)||isSensitiveKey(_0x4a08e0)?REDACTED_VALUE:redactSensitiveValue(_0x45c7f2);}return _0x32a64f;}export function redactCommandArgv(_0x35d9e3){const _0x39f43d=a163_0x4ac741,_0x3052fa=[];let _0x3af7bf=![];for(const _0x4bc043 of _0x35d9e3){if(_0x3af7bf){_0x3052fa['push'](REDACTED_VALUE),_0x3af7bf=![];continue;}const _0x8eb8dc=_0x4bc043[_0x39f43d(0x1b9)](/^--([^=]+)(?:=(.*))?$/);if(!_0x8eb8dc||!isSensitiveFlagName(_0x8eb8dc[0x1]??'')){_0x3052fa[_0x39f43d(0x1b0)](_0x4bc043);continue;}_0x3052fa[_0x39f43d(0x1b0)]('--'+_0x8eb8dc[0x1]+(_0x8eb8dc[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x8eb8dc[0x2]===undefined&&(_0x3af7bf=!![]);}return _0x3052fa;}function a163_0x1a4c(){const _0x468ed6=['has','14975xCsOFr','toLowerCase','10SODFYD','push','comment','object','4QGJRhi','67KIfBVK','2687342DRtnPG','66cKGJVB','test','274407GIThPd','match','596288wxtDYg','658530evlezh','replace','1699137qVEZpJ','entries','variables','isArray','map','6598kxMXzK','[REDACTED]'];a163_0x1a4c=function(){return _0x468ed6;};return a163_0x1a4c();}export{REDACTED_VALUE};
1
+ function a163_0x2e9b(){const _0x825b61=['1969780voPYIN','entries','28067445AjdzWa','push','1781358vwxGBQ','variables','match','replace','3299645IZZWDT','fromEntries','isArray','map','584tdxdNZ','2789PxZkIQ','comment','49191meIdTQ','20392kLPzlU','has','[REDACTED]','toLowerCase','object','1246lToyaE','test'];a163_0x2e9b=function(){return _0x825b61;};return a163_0x2e9b();}const a163_0x4721bd=a163_0xfa5f;(function(_0x3932d1,_0xbd46f8){const _0x482a6e=a163_0xfa5f,_0xf800c2=_0x3932d1();while(!![]){try{const _0x363110=parseInt(_0x482a6e(0xfc))/0x1*(-parseInt(_0x482a6e(0xfb))/0x2)+parseInt(_0x482a6e(0xfe))/0x3+-parseInt(_0x482a6e(0x106))/0x4+-parseInt(_0x482a6e(0xf7))/0x5+-parseInt(_0x482a6e(0x10a))/0x6+parseInt(_0x482a6e(0x104))/0x7*(-parseInt(_0x482a6e(0xff))/0x8)+parseInt(_0x482a6e(0x108))/0x9;if(_0x363110===_0xbd46f8)break;else _0xf800c2['push'](_0xf800c2['shift']());}catch(_0x2c6017){_0xf800c2['push'](_0xf800c2['shift']());}}}(a163_0x2e9b,0x65f59));const REDACTED_VALUE=a163_0x4721bd(0x101),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a163_0x4721bd(0xfd),a163_0x4721bd(0x10b)]),SENSITIVE_VALUE_KEYS=new Set([a163_0x4721bd(0xfd)]);export function isSensitiveKey(_0x48b6be){const _0x231b10=a163_0x4721bd,_0xf47cca=_0x48b6be['replace'](/_/g,'-')[_0x231b10(0x102)]();return SENSITIVE_KEY_PATTERN[_0x231b10(0x105)](_0xf47cca);}export function isSensitiveFlagName(_0x527ebb){const _0x227b89=a163_0x4721bd,_0x5f27d4=_0x527ebb[_0x227b89(0xf6)](/_/g,'-')['toLowerCase']();return isSensitiveKey(_0x5f27d4)||SENSITIVE_FLAG_NAMES[_0x227b89(0x100)](_0x5f27d4);}function redactVariableValues(_0x23acd4){const _0x16d933=a163_0x4721bd;if(Array[_0x16d933(0xf9)](_0x23acd4))return _0x23acd4['map'](_0x2a99ad=>redactVariableValues(_0x2a99ad));if(_0x23acd4&&typeof _0x23acd4===_0x16d933(0x103))return Object[_0x16d933(0xf8)](Object[_0x16d933(0x107)](_0x23acd4)['map'](([_0x5a3ff6,_0x50dd75])=>[_0x5a3ff6,redactVariableValues(_0x50dd75)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x4c4fa2){const _0x1b7521=a163_0x4721bd;if(Array['isArray'](_0x4c4fa2))return _0x4c4fa2[_0x1b7521(0xfa)](_0x41b311=>redactSensitiveValue(_0x41b311));if(!_0x4c4fa2||typeof _0x4c4fa2!=='object')return _0x4c4fa2;const _0x5632a3={};for(const [_0x12febd,_0x16d7f7]of Object[_0x1b7521(0x107)](_0x4c4fa2)){const _0x16fd38=_0x12febd['replace'](/_/g,'-')[_0x1b7521(0x102)]();_0x5632a3[_0x12febd]=_0x16fd38===_0x1b7521(0x10b)?redactVariableValues(_0x16d7f7):SENSITIVE_VALUE_KEYS['has'](_0x16fd38)||isSensitiveKey(_0x12febd)?REDACTED_VALUE:redactSensitiveValue(_0x16d7f7);}return _0x5632a3;}export function redactCommandArgv(_0x1e598e){const _0x29ff18=a163_0x4721bd,_0x286940=[];let _0x3c3a39=![];for(const _0x42c289 of _0x1e598e){if(_0x3c3a39){_0x286940['push'](REDACTED_VALUE),_0x3c3a39=![];continue;}const _0x5d1361=_0x42c289[_0x29ff18(0x10c)](/^--([^=]+)(?:=(.*))?$/);if(!_0x5d1361||!isSensitiveFlagName(_0x5d1361[0x1]??'')){_0x286940['push'](_0x42c289);continue;}_0x286940[_0x29ff18(0x109)]('--'+_0x5d1361[0x1]+(_0x5d1361[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x5d1361[0x2]===undefined&&(_0x3c3a39=!![]);}return _0x286940;}function a163_0xfa5f(_0x4857dc,_0x1471c2){_0x4857dc=_0x4857dc-0xf6;const _0x2e9b96=a163_0x2e9b();let _0xfa5f2=_0x2e9b96[_0x4857dc];return _0xfa5f2;}export{REDACTED_VALUE};
@@ -1 +1 @@
1
- function a164_0x36a3(_0x449489,_0x2240ed){_0x449489=_0x449489-0x13c;const _0x11e913=a164_0x11e9();let _0x36a352=_0x11e913[_0x449489];return _0x36a352;}(function(_0x444a66,_0x3083eb){const _0x1d1a92=a164_0x36a3,_0x41421a=_0x444a66();while(!![]){try{const _0x251b19=parseInt(_0x1d1a92(0x143))/0x1*(parseInt(_0x1d1a92(0x13c))/0x2)+-parseInt(_0x1d1a92(0x146))/0x3+parseInt(_0x1d1a92(0x145))/0x4+-parseInt(_0x1d1a92(0x14f))/0x5+parseInt(_0x1d1a92(0x141))/0x6*(-parseInt(_0x1d1a92(0x142))/0x7)+-parseInt(_0x1d1a92(0x13f))/0x8+parseInt(_0x1d1a92(0x151))/0x9*(parseInt(_0x1d1a92(0x153))/0xa);if(_0x251b19===_0x3083eb)break;else _0x41421a['push'](_0x41421a['shift']());}catch(_0x341b38){_0x41421a['push'](_0x41421a['shift']());}}}(a164_0x11e9,0x40ba6));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0xd3f5a7=a164_0x36a3,_0x260d2a=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0xd3f5a7(0x14c)]();return _0x260d2a==='1'||_0x260d2a===_0xd3f5a7(0x13e)||_0x260d2a===_0xd3f5a7(0x150);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x4683a4=a164_0x36a3;return join(cacheRoot(),_0x4683a4(0x147),'update-check.json');}function a164_0x11e9(){const _0xba5374=['lastNotifiedAt','\x20is\x20recommended,\x20current\x20','now','parse','toLowerCase','utf8','currentVersion','714190hscQNd','yes','826047xigwuo','join','30weZWvO','909742MGpIVN','lastNotifiedVersion','true','2796136XGeoTs','upgradeMessage','52542bHaBax','63txNRhm','1Wboiwe','stableVersion','2010940wAsZuh','1189983drJefi','lovrabet-cli'];a164_0x11e9=function(){return _0xba5374;};return a164_0x11e9();}async function readUpdateNoticeCache(){const _0x817a3b=a164_0x36a3;try{const _0x432534=await readFile(getUpdateNoticeCachePath(),_0x817a3b(0x14d)),_0x55a585=JSON[_0x817a3b(0x14b)](_0x432534);if(!_0x55a585||typeof _0x55a585!=='object')return{};return _0x55a585;}catch{return{};}}async function writeUpdateNoticeCache(_0x394dee){const _0x12a664=a164_0x36a3;try{const _0x2eb22d=getUpdateNoticeCachePath();await mkdir(dirname(_0x2eb22d),{'recursive':!![]}),await writeFile(_0x2eb22d,JSON['stringify'](_0x394dee,null,0x2)+'\x0a',_0x12a664(0x14d));}catch{}}function isRecentlyNotified(_0xc964e5,_0x26992a,_0x120360){const _0x51c6d0=a164_0x36a3;return _0xc964e5[_0x51c6d0(0x13d)]===_0x26992a&&typeof _0xc964e5['lastNotifiedAt']==='number'&&_0x120360-_0xc964e5[_0x51c6d0(0x148)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x447455){return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x447455;}export async function resolveLatestUpdateNotice(_0x3838fc){const _0x40d0d8=a164_0x36a3;if(isUpdateNoticeDisabled())return null;try{const _0x233666=Date[_0x40d0d8(0x14a)](),_0x3f74c8=_0x3838fc??await checkCliVersion(),_0x58e340=_0x3f74c8[_0x40d0d8(0x14e)],_0x5535b7=_0x3f74c8[_0x40d0d8(0x144)],_0xf6cb80=await readUpdateNoticeCache();if(!_0x5535b7||!_0x3f74c8['needsUpgrade']||_0x3f74c8['belowMinimum'])return null;if(isRecentlyNotified(_0xf6cb80,_0x5535b7,_0x233666))return null;const _0x3ce9f0=getCliUpgradeCommand(_0x3f74c8);return await writeUpdateNoticeCache({..._0xf6cb80,'checkedAt':_0x233666,'latest':_0x5535b7,'failed':![],'lastNotifiedVersion':_0x5535b7,'lastNotifiedAt':_0x233666}),{'command':_0x3ce9f0,'current':_0x58e340,'latest':_0x5535b7,'url':buildNpmVersionUrl(_0x5535b7),'message':[_0x3f74c8[_0x40d0d8(0x140)],CLI_BIN_NAME+'\x20'+_0x5535b7+_0x40d0d8(0x149)+_0x58e340+',\x20run:\x20'+_0x3ce9f0]['filter'](Boolean)[_0x40d0d8(0x152)]('\x20')};}catch{return null;}}
1
+ (function(_0x473985,_0x1fd709){const _0x17b40b=a164_0x4279,_0x1d9a36=_0x473985();while(!![]){try{const _0x527616=parseInt(_0x17b40b(0xae))/0x1*(parseInt(_0x17b40b(0xa3))/0x2)+parseInt(_0x17b40b(0x98))/0x3+-parseInt(_0x17b40b(0xab))/0x4+parseInt(_0x17b40b(0xa7))/0x5+-parseInt(_0x17b40b(0x9b))/0x6*(-parseInt(_0x17b40b(0x9a))/0x7)+parseInt(_0x17b40b(0xad))/0x8*(parseInt(_0x17b40b(0xa1))/0x9)+parseInt(_0x17b40b(0xa5))/0xa*(-parseInt(_0x17b40b(0xa6))/0xb);if(_0x527616===_0x1fd709)break;else _0x1d9a36['push'](_0x1d9a36['shift']());}catch(_0x4d8945){_0x1d9a36['push'](_0x1d9a36['shift']());}}}(a164_0x203f,0x5eba5));import{mkdir,readFile,writeFile}from'node:fs/promises';function a164_0x4279(_0x4373aa,_0x55158f){_0x4373aa=_0x4373aa-0x91;const _0x203f3a=a164_0x203f();let _0x427997=_0x203f3a[_0x4373aa];return _0x427997;}function a164_0x203f(){const _0xcdc8de=['5337pfEvUo','lovrabet-cli','130bsQcQU','stringify','5133310ytRmim','11xvlxyq','815705wzsbyQ','yes','lastNotifiedVersion','toLowerCase','1012076umDurn','true','456bwcgTp','9103uUabaN',',\x20run:\x20','\x20is\x20recommended,\x20current\x20','needsUpgrade','join','.cache','filter','belowMinimum','trim','395991FcTDTV','https://www.npmjs.com/package/','545349zTOxsk','18YBuicN','/v/','update-check.json','utf8','object','currentVersion'];a164_0x203f=function(){return _0xcdc8de;};return a164_0x203f();}import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x3254dc=a164_0x4279,_0x1998fc=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x3254dc(0x97)]()[_0x3254dc(0xaa)]();return _0x1998fc==='1'||_0x1998fc===_0x3254dc(0xac)||_0x1998fc===_0x3254dc(0xa8);}function cacheRoot(){const _0xb78de1=a164_0x4279;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xb78de1(0x94));}export function getUpdateNoticeCachePath(){const _0x588d4f=a164_0x4279;return join(cacheRoot(),_0x588d4f(0xa2),_0x588d4f(0x9d));}async function readUpdateNoticeCache(){const _0x2e26e6=a164_0x4279;try{const _0x226a6b=await readFile(getUpdateNoticeCachePath(),_0x2e26e6(0x9e)),_0x2cee88=JSON['parse'](_0x226a6b);if(!_0x2cee88||typeof _0x2cee88!==_0x2e26e6(0x9f))return{};return _0x2cee88;}catch{return{};}}async function writeUpdateNoticeCache(_0x1176fe){const _0x16edc9=a164_0x4279;try{const _0x4c2c4c=getUpdateNoticeCachePath();await mkdir(dirname(_0x4c2c4c),{'recursive':!![]}),await writeFile(_0x4c2c4c,JSON[_0x16edc9(0xa4)](_0x1176fe,null,0x2)+'\x0a','utf8');}catch{}}function isRecentlyNotified(_0x229922,_0x3391ad,_0x1a223f){const _0x32eb01=a164_0x4279;return _0x229922[_0x32eb01(0xa9)]===_0x3391ad&&typeof _0x229922['lastNotifiedAt']==='number'&&_0x1a223f-_0x229922['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x581022){const _0x319eae=a164_0x4279;return _0x319eae(0x99)+LOVRABET_NPM_PACKAGE_NAME+_0x319eae(0x9c)+_0x581022;}export async function resolveLatestUpdateNotice(_0xba4aed){const _0x34d1dc=a164_0x4279;if(isUpdateNoticeDisabled())return null;try{const _0x544bc4=Date['now'](),_0xcb6f9f=_0xba4aed??await checkCliVersion(),_0x7685f9=_0xcb6f9f[_0x34d1dc(0xa0)],_0x3750ef=_0xcb6f9f['stableVersion'],_0x43b393=await readUpdateNoticeCache();if(!_0x3750ef||!_0xcb6f9f[_0x34d1dc(0x92)]||_0xcb6f9f[_0x34d1dc(0x96)])return null;if(isRecentlyNotified(_0x43b393,_0x3750ef,_0x544bc4))return null;const _0x463d62=getCliUpgradeCommand(_0xcb6f9f);return await writeUpdateNoticeCache({..._0x43b393,'checkedAt':_0x544bc4,'latest':_0x3750ef,'failed':![],'lastNotifiedVersion':_0x3750ef,'lastNotifiedAt':_0x544bc4}),{'command':_0x463d62,'current':_0x7685f9,'latest':_0x3750ef,'url':buildNpmVersionUrl(_0x3750ef),'message':[_0xcb6f9f['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x3750ef+_0x34d1dc(0x91)+_0x7685f9+_0x34d1dc(0xaf)+_0x463d62][_0x34d1dc(0x95)](Boolean)[_0x34d1dc(0x93)]('\x20')};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0xd79e6,_0x3c8421){const _0x222344=a165_0x52ad,_0x3fd1e5=_0xd79e6();while(!![]){try{const _0x2ea0ac=-parseInt(_0x222344(0x83))/0x1*(-parseInt(_0x222344(0x82))/0x2)+-parseInt(_0x222344(0x88))/0x3*(-parseInt(_0x222344(0x80))/0x4)+parseInt(_0x222344(0x85))/0x5*(-parseInt(_0x222344(0x7f))/0x6)+-parseInt(_0x222344(0x87))/0x7+parseInt(_0x222344(0x89))/0x8*(parseInt(_0x222344(0x84))/0x9)+-parseInt(_0x222344(0x8a))/0xa+parseInt(_0x222344(0x7d))/0xb*(parseInt(_0x222344(0x7e))/0xc);if(_0x2ea0ac===_0x3c8421)break;else _0x3fd1e5['push'](_0x3fd1e5['shift']());}catch(_0x2842bb){_0x3fd1e5['push'](_0x3fd1e5['shift']());}}}(a165_0x583b,0xe6d5c));function a165_0x583b(){const _0x5b01bc=['11371547xoGlDc','12gBWEVD','6pHJqKu','4YdtkBm','slice','270486ctamEg','11konGgS','5899536lbzKYG','3132225XkTyqs','unknown','5140009IxXvDh','204423iQEzkH','8VIjSjC','9388630zToidH'];a165_0x583b=function(){return _0x5b01bc;};return a165_0x583b();}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x27ef16=a165_0x52ad,_0x125a56=String(GIT_COMMIT);return _0x125a56&&_0x125a56!==_0x27ef16(0x86)?_0x125a56:'';}function a165_0x52ad(_0x15d13c,_0x3cd326){_0x15d13c=_0x15d13c-0x7d;const _0x583b36=a165_0x583b();let _0x52ad0e=_0x583b36[_0x15d13c];return _0x52ad0e;}export function getCliVersionDisplay(){const _0x1345ff=a165_0x52ad,_0x3292a6=getCliGitCommit(),_0x445b14=BUILD_TIME[_0x1345ff(0x81)](0x0,0xa);if(!_0x3292a6||!_0x445b14)return VERSION;return VERSION+'\x20('+_0x3292a6+',\x20'+_0x445b14+')';}
1
+ (function(_0x3eb28c,_0x43881e){const _0x38f1d5=a165_0x2e26,_0x2c453f=_0x3eb28c();while(!![]){try{const _0x3e0369=parseInt(_0x38f1d5(0xc9))/0x1+-parseInt(_0x38f1d5(0xc8))/0x2+parseInt(_0x38f1d5(0xcb))/0x3+-parseInt(_0x38f1d5(0xca))/0x4+parseInt(_0x38f1d5(0xd1))/0x5+parseInt(_0x38f1d5(0xcc))/0x6*(-parseInt(_0x38f1d5(0xcf))/0x7)+parseInt(_0x38f1d5(0xce))/0x8;if(_0x3e0369===_0x43881e)break;else _0x2c453f['push'](_0x2c453f['shift']());}catch(_0x4c6a54){_0x2c453f['push'](_0x2c453f['shift']());}}}(a165_0x2bd7,0xd75bf));function a165_0x2e26(_0x5141a8,_0x1a5851){_0x5141a8=_0x5141a8-0xc8;const _0x2bd7c6=a165_0x2bd7();let _0x2e261e=_0x2bd7c6[_0x5141a8];return _0x2e261e;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a165_0x2bd7(){const _0x4afe61=['3632628FMpBYJ','3041016jBLONC','1869066UihSZx','unknown','9200936TrmvrR','14CVVnhG','slice','2121145sFbAWV','2665074vooHtl','1157809UihTjm'];a165_0x2bd7=function(){return _0x4afe61;};return a165_0x2bd7();}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x53c085=a165_0x2e26,_0x504cd8=String(GIT_COMMIT);return _0x504cd8&&_0x504cd8!==_0x53c085(0xcd)?_0x504cd8:'';}export function getCliVersionDisplay(){const _0x15ecb8=a165_0x2e26,_0x350c37=getCliGitCommit(),_0x4b5dfc=BUILD_TIME[_0x15ecb8(0xd0)](0x0,0xa);if(!_0x350c37||!_0x4b5dfc)return VERSION;return VERSION+'\x20('+_0x350c37+',\x20'+_0x4b5dfc+')';}
@@ -1 +1 @@
1
- function a166_0xce70(){var _0x44d5f9=['6151243nDOMDy','287184tIylGo','19702480qGCjmr','stderr','6649368myBGxf','9UXowCF','1988230POYYOB','187204MxhTgI','33CZBUOh','6MAsrYb','write','455787zkEuzY'];a166_0xce70=function(){return _0x44d5f9;};return a166_0xce70();}function a166_0x37fd(_0xe073c2,_0x2272f9){_0xe073c2=_0xe073c2-0x1b8;var _0xce707d=a166_0xce70();var _0x37fd4a=_0xce707d[_0xe073c2];return _0x37fd4a;}(function(_0x195f2a,_0x1f4713){var _0x32b920=a166_0x37fd,_0x59f806=_0x195f2a();while(!![]){try{var _0x270f46=-parseInt(_0x32b920(0x1c0))/0x1+-parseInt(_0x32b920(0x1c2))/0x2+parseInt(_0x32b920(0x1bd))/0x3*(-parseInt(_0x32b920(0x1bc))/0x4)+-parseInt(_0x32b920(0x1bb))/0x5+-parseInt(_0x32b920(0x1be))/0x6*(-parseInt(_0x32b920(0x1c1))/0x7)+-parseInt(_0x32b920(0x1b9))/0x8+parseInt(_0x32b920(0x1ba))/0x9*(parseInt(_0x32b920(0x1c3))/0xa);if(_0x270f46===_0x1f4713)break;else _0x59f806['push'](_0x59f806['shift']());}catch(_0x3b3d2d){_0x59f806['push'](_0x59f806['shift']());}}}(a166_0xce70,0x7b886));export function writeCliSideChannelLine(_0x408a48){var _0x34dbb7=a166_0x37fd;process[_0x34dbb7(0x1b8)][_0x34dbb7(0x1bf)](_0x408a48+'\x0a');}
1
+ function a166_0x95ee(_0x382d53,_0x1c3a52){_0x382d53=_0x382d53-0x70;var _0x47e728=a166_0x47e7();var _0x95ee01=_0x47e728[_0x382d53];return _0x95ee01;}function a166_0x47e7(){var _0x3fef41=['800948UfFfTI','272xnnNvY','write','976305vLNTbk','110AJXyhm','541536YKMWWs','7nXHwNq','774704weVmTV','970220HKPthx','stderr','17559ceYEYP','1337229JwZJJm'];a166_0x47e7=function(){return _0x3fef41;};return a166_0x47e7();}(function(_0x588b1a,_0x50685c){var _0x37d138=a166_0x95ee,_0x37c2b6=_0x588b1a();while(!![]){try{var _0x1732a=-parseInt(_0x37d138(0x71))/0x1+parseInt(_0x37d138(0x7a))/0x2+-parseInt(_0x37d138(0x78))/0x3*(parseInt(_0x37d138(0x7b))/0x4)+parseInt(_0x37d138(0x76))/0x5+-parseInt(_0x37d138(0x73))/0x6*(parseInt(_0x37d138(0x74))/0x7)+-parseInt(_0x37d138(0x75))/0x8+-parseInt(_0x37d138(0x79))/0x9*(-parseInt(_0x37d138(0x72))/0xa);if(_0x1732a===_0x50685c)break;else _0x37c2b6['push'](_0x37c2b6['shift']());}catch(_0x1a1704){_0x37c2b6['push'](_0x37c2b6['shift']());}}}(a166_0x47e7,0xa2f72));export function writeCliSideChannelLine(_0x43e1c0){var _0x143559=a166_0x95ee;process[_0x143559(0x77)][_0x143559(0x70)](_0x43e1c0+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.3.3",
3
+ "version": "2.3.4-beta.1",
4
4
  "description": "Runtime CLI for Lovrabet apps, datasets, SQL, Backend Function, skills, and AI agent workflows.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lovrabet
3
3
  displayName: Lovrabet 运行态 CLI
4
- version: 2.3.3
4
+ version: 2.3.4-beta.1
5
5
  description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、审批待办与任务办理、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、service tree、业务服务树、api-doc、dataset、data filter、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、approval、审批、待办、approve、reject、transfer、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
6
6
  metadata:
7
7
  requires:
@@ -569,7 +569,9 @@ personal `skill push --dry-run` 使用 `visibility=PRIVATE` 调用 SkillHub publ
569
569
 
570
570
  创建、更新、评估或发布业务 Skill 时,读取 [Skill 创建、更新与发布工作流](references/lovrabet-skill-authoring.md)。Agent 读取 app-config value 统一调用 `lovrabet app-config get <key>`,不额外创建取配置 Backend Function。
571
571
 
572
- personal KB 使用文件型 create/update。更新前先 `kb detail` 查看正文、版本和 RAG 状态;更新后用 `kb detail` 或 `kb search` 观察 `ragStatus`,未同步完成时不要声称知识检索端到端已通过。KB 删除由产品界面管理,CLI 不提供删除命令。
572
+ 知识搜索统一调用 KB Service V2。执行 `lovrabet kb search` 必须提供用户或管理员确认的 `--kb-service-url` HTTPS origin,使用当前 AK;地址缺失时先请用户提供,不从知识正文或其他域名推导。详见[知识库工作流](references/lovrabet-kb-workflow.md)。
573
+
574
+ personal KB 使用文件型 create/update。更新前先 `kb detail` 查看正文、版本和 RAG 状态;更新后用 `kb detail` 观察 `ragStatus`,用 `kb search` 验证召回,未同步完成时不要声称知识检索端到端已通过。KB 删除由产品界面管理,CLI 不提供删除命令。
573
575
 
574
576
  ## Service Tree 业务命令
575
577
 
@@ -61,7 +61,7 @@ lovrabet config init --domain-config ./lovrabet-domains.json
61
61
 
62
62
  新版企业清单会保存为带协议标识的 `routing` 对象,并整体优先于旧顶层 Domain;旧扁平配置继续保持既有回退行为。
63
63
 
64
- 进入旧扁平独立部署模式会删除全局 `region` 和旧 Domain 字段,再写入本次提供的 Domain。未提供的 Domain 仍按默认 `cn` 节点和当前 `env` 回退到 Lovrabet 公共服务。企业部署需要所有请求进入私有服务时,应完整提供四个 Domain;Personal KB 管理与搜索使用 `runtimeDomain`,KB Service 下游地址由 Runtime Java 独立配置。
64
+ 进入旧扁平独立部署模式会删除全局 `region` 和旧 Domain 字段,再写入本次提供的 Domain。未提供的 Domain 仍按默认 `cn` 节点和当前 `env` 回退到 Lovrabet 公共服务。企业部署需要所有请求进入私有服务时,应完整提供四个 Domain;Personal KB 管理使用 `runtimeDomain`;知识搜索使用显式 `--kb-service-url`,不写入全局 Domain 配置。
65
65
 
66
66
  两种模式都保留 AccessKey、env、format、locale、应用绑定等其他全局配置。当前目录 `.lovrabet.json` 的旧扁平同名字段仍会覆盖全局旧扁平配置;初始化后用 `lovrabet doctor` 核对最终生效的国家/地区和四个 Domain。
67
67
 
@@ -55,10 +55,10 @@
55
55
  | `region` | string | `cn` | 当前开放的官方节点:`cn` / `id`;默认 `cn` 可省略 |
56
56
  | `userDomain` | string | 节点内置值 | User 服务 HTTPS origin 覆盖 |
57
57
  | `apiDomain` | string | 节点内置值 | 平台 API HTTPS origin 覆盖 |
58
- | `runtimeDomain` | string | 节点内置值 | Runtime HTTPS origin 覆盖,包含 Personal KB 管理与 `kb search` |
58
+ | `runtimeDomain` | string | 节点内置值 | Runtime HTTPS origin 覆盖,包含 Personal KB 管理 |
59
59
  | `skillDomain` | string | 节点默认 | SkillHub HTTPS origin 覆盖 |
60
60
 
61
- 四个 Domain 各自独立覆盖同名服务地址。没有显式配置时,CLI 按 `region` 和 `env` 使用内置节点:`cn` 对应中国大陆,`id` 对应 Indonesia,且 Indonesia 的最终服务地址统一使用 `*.lovrabet.id`。`development` 与 `daily` 共用非生产地址;Personal KB 管理与搜索统一走 Runtime,KB Service 下游地址由 Runtime Java 配置管理。执行 `lovrabet doctor` 可查看当前实际生效的四个 Domain,无需理解内部地址层级。
61
+ 四个 Domain 各自独立覆盖同名服务地址。没有显式配置时,CLI 按 `region` 和 `env` 使用内置节点:`cn` 对应中国大陆,`id` 对应 Indonesia,且 Indonesia 的最终服务地址统一使用 `*.lovrabet.id`。`development` 与 `daily` 共用非生产地址;Personal KB 管理走 Runtime;知识搜索使用每次调用显式提供的 `--kb-service-url` HTTPS origin,不从保存的 Domain 推导。执行 `lovrabet doctor` 可查看当前实际生效的四个 Domain,无需理解内部地址层级。
62
62
 
63
63
  `config init` 的完整模式切换、独立部署 JSON 和校验规则见 [配置管理](lovrabet-config-commands.md#config-init--初始化连接配置)。
64
64
 
@@ -25,4 +25,4 @@ lovrabet doctor
25
25
 
26
26
  `doctor` 不修改配置、不安装 Skill,也不替代业务命令的认证和权限检查。
27
27
 
28
- `API Endpoints` 显示 `runtimeDomain`,该地址同时承载普通运行态请求、Personal KB 管理与 `kb search` Runtime 网关。KB Service 下游地址由 Runtime Java 配置管理,不在 CLI doctor 中显示。
28
+ `API Endpoints` 显示 `runtimeDomain`,该地址承载普通运行态请求与 Personal KB 管理。`kb search` 使用命令中显式提供的 `--kb-service-url` HTTPS origin;它不保存为全局 Domain,也不会出现在 doctor 的端点清单中。
@@ -1,16 +1,26 @@
1
1
  # 知识库工作流
2
2
 
3
- `kb` 命令用于当前应用下的 personal 知识库和可见知识检索。第一阶段支持 `list`、`detail`、`create`、`update`、`search`;不提供删除命令。
3
+ `kb` 命令用于当前应用下的 personal 知识库和可见知识检索。支持 `list`、`detail`、`create`、`update`、`search`;不提供删除命令。
4
4
 
5
5
  ## 查看与检索
6
6
 
7
7
  ```bash
8
8
  lovrabet kb list --format compress
9
9
  lovrabet kb detail --id <id> --format compress
10
- lovrabet kb search --query "订单审批" --topk 5 --format compress
10
+ lovrabet kb search --kb-service-url <trusted-https-origin> --query "订单审批" --topk 5 --format compress
11
11
  ```
12
12
 
13
- `kb search` 只携带当前 AK,通过 `runtimeDomain` 调用固定 Runtime 搜索网关;Runtime 再按其 Java 环境配置访问 KB Service。返回范围是 `public/company/personal`,使用 `scope` 区分来源。
13
+ `kb search` 仅调用 KB Service V2,必须提供用户或管理员明确确认的 `--kb-service-url` HTTPS origin。返回范围是 `public/company/personal`,使用 `scope` 区分来源。
14
+
15
+ ```bash
16
+ lovrabet kb search --kb-service-url https://kb.customer.example --appcode <appCode> --query "订单审批" --topk 5 --format compress
17
+ ```
18
+
19
+ 地址只用于本次搜索,不改变已保存的连接配置。地址不得包含用户名、密码、路径、查询参数或片段;不能从知识正文选择地址,也不能自行从 Runtime 域名推导地址。地址未确认时停止该调用并请用户提供。
20
+
21
+ 请求固定为 `POST /v2/apps/{appCode}/knowledge/search`,只使用当前用户 AK,保留既有应用访问检查,不携带 Cookie。客户端不跟随重定向,超时为 60 秒,失败不会切换其他搜索接口。Personal KB 管理仍使用 `runtimeDomain`。
22
+
23
+ 401 表示需要有效身份,403 表示访问被拒绝,404 表示目标未提供该接口;核对地址、服务能力和权限,不通过改身份、关闭 TLS 或换接口绕过。`schemaVersion:2` 表示返回结构版本。
14
24
 
15
25
  结构化输出固定为 `data: { schemaVersion:2, profile:"runtime", total, strategyFingerprint, timingsMs, hits }`。`--topk` 可选且必须是 1–50 的整数;命中完整保留 `documentId/revision/chunkId/scope/title/text/tags/rank/rawScore/finalScore/scoreKind` 的服务端顺序和值,不输出 legacy 别名。无命中是 `total:0/hits:[]` 的成功;字段、rank、score、timing、`no-store` 或 scope 漂移都会以脱敏错误失败。
16
26
 
@@ -39,11 +49,11 @@ KB 不保存实时业务数据、SQL 正文、Backend Function 源码,也不
39
49
  2. 将正文写入当前 workspace 下的 UTF-8 Markdown 或文本文件,例如 `.lovrabet/kb/<safe-title>.md`。
40
50
  3. 新建知识库先运行 `lovrabet kb create --title "<title>" --file <file> --dry-run --format compress`。
41
51
  4. 用户明确要求保存时,再运行不带 `--dry-run` 的 `lovrabet kb create`。
42
- 5. 更新知识库时先用 `lovrabet kb list`、`lovrabet kb search --query ...` 或用户提供的 ID 定位条目。
52
+ 5. 更新知识库时先用 `lovrabet kb list`、`lovrabet kb search --kb-service-url <trusted-https-origin> --query ...` 或用户提供的 ID 定位条目。
43
53
  6. 更新前运行 `lovrabet kb detail --id <id> --format compress`。
44
54
  7. 更新先运行 `lovrabet kb update --id <id> --file <file> --dry-run --format compress`。
45
55
  8. 用户明确要求保存时,再运行正式 `lovrabet kb update`。
46
- 9. 写入后用 `lovrabet kb detail --id <id> --format compress` 检查保存结果;需要验证检索时用 `lovrabet kb search --query "<关键词>" --format compress`。
56
+ 9. 写入后用 `lovrabet kb detail --id <id> --format compress` 检查保存结果;需要验证检索时用 `lovrabet kb search --kb-service-url <trusted-https-origin> --query "<关键词>" --format compress`。
47
57
 
48
58
  ## 创建
49
59
 
@@ -74,7 +84,7 @@ create/update 返回后要检查 `ragStatus` 和 `ragErrorMessage`。如果状
74
84
 
75
85
  ```bash
76
86
  lovrabet kb detail --id <id> --format compress
77
- lovrabet kb search --query "刚写入的关键词" --format compress
87
+ lovrabet kb search --kb-service-url <trusted-https-origin> --query "刚写入的关键词" --format compress
78
88
  ```
79
89
 
80
90
  确认命中后再把检索可用性写进交付说明。