@lovrabet/lovrabet-cli 2.3.1-beta.3 → 2.3.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 (175) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.d.ts +3 -3
  97. package/lib/constant/domain.js +1 -1
  98. package/lib/constant/env.js +1 -1
  99. package/lib/constant/output.js +1 -1
  100. package/lib/constant/product.js +1 -1
  101. package/lib/constant/region.js +1 -1
  102. package/lib/constant/risk.js +1 -1
  103. package/lib/constant/url.js +1 -1
  104. package/lib/context.js +1 -1
  105. package/lib/core/api-client.d.ts +0 -16
  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 +30 -0
  109. package/lib/core/kb-search-client.js +1 -0
  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.d.ts +2 -0
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/skills/builtin-skill.js +1 -1
  141. package/lib/skills/npx-skills-add.js +1 -1
  142. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  143. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  144. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  145. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  146. package/lib/skills/runtime-skill-sync/links.js +1 -1
  147. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  148. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  149. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  150. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  151. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  152. package/lib/skills/runtime-skill-sync/push.js +1 -1
  153. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  154. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  155. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  156. package/lib/skills/runtime-skill-sync.js +1 -1
  157. package/lib/skills/skill-presence.js +1 -1
  158. package/lib/utils/access-key-redaction.js +1 -1
  159. package/lib/utils/apply-jq-filter.js +1 -1
  160. package/lib/utils/cli-version-check.js +1 -1
  161. package/lib/utils/cli-version-policy.js +1 -1
  162. package/lib/utils/logger.js +1 -1
  163. package/lib/utils/lossless-json.js +1 -1
  164. package/lib/utils/params.js +1 -1
  165. package/lib/utils/platform.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 +2 -2
  171. package/skills/lovrabet/references/lovrabet-config-commands.md +3 -1
  172. package/skills/lovrabet/references/lovrabet-config.md +2 -2
  173. package/skills/lovrabet/references/lovrabet-doctor.md +2 -0
  174. package/skills/lovrabet/references/lovrabet-kb-workflow.md +3 -1
  175. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a149_0x7c58af=a149_0x6251;(function(_0x49e809,_0x3eccf4){const _0x2e67a7=a149_0x6251,_0x47d17e=_0x49e809();while(!![]){try{const _0x1f33c2=parseInt(_0x2e67a7(0x1fe))/0x1*(-parseInt(_0x2e67a7(0x1fc))/0x2)+-parseInt(_0x2e67a7(0x1ec))/0x3*(-parseInt(_0x2e67a7(0x1f0))/0x4)+parseInt(_0x2e67a7(0x1eb))/0x5*(parseInt(_0x2e67a7(0x1fb))/0x6)+-parseInt(_0x2e67a7(0x1f6))/0x7*(parseInt(_0x2e67a7(0x1f7))/0x8)+parseInt(_0x2e67a7(0x1f3))/0x9+-parseInt(_0x2e67a7(0x1f2))/0xa+-parseInt(_0x2e67a7(0x1f8))/0xb*(-parseInt(_0x2e67a7(0x1f1))/0xc);if(_0x1f33c2===_0x3eccf4)break;else _0x47d17e['push'](_0x47d17e['shift']());}catch(_0x322393){_0x47d17e['push'](_0x47d17e['shift']());}}}(a149_0x3891,0x74f51));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a149_0x7c58af(0x1f5));function a149_0x6251(_0x28ad10,_0x24adc7){_0x28ad10=_0x28ad10-0x1e8;const _0x389148=a149_0x3891();let _0x6251=_0x389148[_0x28ad10];return _0x6251;}function a149_0x3891(){const _0x4f6b03=['895433BHtQQY','endsWith','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','78mWqwBz','931492XcAalV','name','2vOvkIl','validation_error','code','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','341870bpgDmJ','225RkpMbV','from','object','validation','15896ymUQdd','72BDRaIT','4704630ebARPE','6912801olHdQv','path','1980-01-01T00:00:00.000Z','1312283VlksLy','24jxrtbN'];a149_0x3891=function(){return _0x4f6b03;};return a149_0x3891();}export function createDeterministicZipPackage(_0x3edbca){const _0x462d6d=a149_0x7c58af,_0x1060f2={};for(const _0x16c816 of normalizeLocalFiles(_0x3edbca)){_0x1060f2[_0x16c816[_0x462d6d(0x1f4)]]=fileContent(_0x16c816);}return Buffer[_0x462d6d(0x1ed)](zipSync(_0x1060f2,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x5bcb10){const _0x55bb4f=a149_0x7c58af;if(_0x5bcb10['length']<0x16)throw CliErrors[_0x55bb4f(0x1ef)](_0x55bb4f(0x1ea));let _0x1b1cf9;try{_0x1b1cf9=unzipSync(_0x5bcb10,{'filter'(_0x4e8ba5){const _0x49c1aa=_0x55bb4f,_0x4feb54=normalizeSkillRelativePath(_0x4e8ba5[_0x49c1aa(0x1fd)]);if(_0x4feb54[_0x49c1aa(0x1f9)]('/'))throw CliErrors[_0x49c1aa(0x1ef)](_0x49c1aa(0x1fa)+_0x4feb54);return!![];}});}catch(_0x455466){if(isRuntimeSkillValidationError(_0x455466))throw _0x455466;throw CliErrors[_0x55bb4f(0x1ef)](_0x55bb4f(0x1ea));}return Object['entries'](_0x1b1cf9)['map'](([_0x516930,_0x1640b8])=>({'path':normalizeSkillRelativePath(_0x516930),'bytes':Buffer[_0x55bb4f(0x1ed)](_0x1640b8)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x275ce6){const _0x4d7ccd=a149_0x7c58af;return typeof _0x275ce6===_0x4d7ccd(0x1ee)&&_0x275ce6!==null&&_0x4d7ccd(0x1e9)in _0x275ce6&&_0x275ce6['code']===_0x4d7ccd(0x1e8);}
1
+ function a150_0x4a7c(){const _0x37191a=['validation_error','entries','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','length','code','map','7659264WHhJHg','name','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','1980-01-01T00:00:00.000Z','508tIggKk','validation','1121000VOTlru','7468590tWiohf','5141375rDTDot','1664362UiCSIi','from','3279taAeFM','1432504CgbwaS','sort'];a150_0x4a7c=function(){return _0x37191a;};return a150_0x4a7c();}const a150_0x2ff45b=a150_0x954d;(function(_0x3cf152,_0x201d82){const _0x4d4737=a150_0x954d,_0xb7d275=_0x3cf152();while(!![]){try{const _0x43e4aa=parseInt(_0x4d4737(0x1f9))/0x1+parseInt(_0x4d4737(0x1f3))/0x2+parseInt(_0x4d4737(0x1f8))/0x3*(-parseInt(_0x4d4737(0x1f1))/0x4)+-parseInt(_0x4d4737(0x1f5))/0x5+-parseInt(_0x4d4737(0x1f4))/0x6+parseInt(_0x4d4737(0x1f6))/0x7+parseInt(_0x4d4737(0x1ed))/0x8;if(_0x43e4aa===_0x201d82)break;else _0xb7d275['push'](_0xb7d275['shift']());}catch(_0x51f515){_0xb7d275['push'](_0xb7d275['shift']());}}}(a150_0x4a7c,0xbd887));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a150_0x2ff45b(0x1f0));export function createDeterministicZipPackage(_0x280a6f){const _0x7e0751=a150_0x2ff45b,_0x27d544={};for(const _0x281784 of normalizeLocalFiles(_0x280a6f)){_0x27d544[_0x281784['path']]=fileContent(_0x281784);}return Buffer[_0x7e0751(0x1f7)](zipSync(_0x27d544,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x24f34b){const _0x39ed35=a150_0x2ff45b;if(_0x24f34b[_0x39ed35(0x1ea)]<0x16)throw CliErrors[_0x39ed35(0x1f2)](_0x39ed35(0x1ef));let _0x17aa8a;try{_0x17aa8a=unzipSync(_0x24f34b,{'filter'(_0x41e29e){const _0x166516=_0x39ed35,_0x5e6961=normalizeSkillRelativePath(_0x41e29e[_0x166516(0x1ee)]);if(_0x5e6961['endsWith']('/'))throw CliErrors[_0x166516(0x1f2)](_0x166516(0x1e9)+_0x5e6961);return!![];}});}catch(_0x3c487f){if(isRuntimeSkillValidationError(_0x3c487f))throw _0x3c487f;throw CliErrors['validation'](_0x39ed35(0x1ef));}return Object[_0x39ed35(0x1e8)](_0x17aa8a)[_0x39ed35(0x1ec)](([_0xc7cb47,_0x528416])=>({'path':normalizeSkillRelativePath(_0xc7cb47),'bytes':Buffer[_0x39ed35(0x1f7)](_0x528416)}))[_0x39ed35(0x1e6)](compareSkillFiles);}function a150_0x954d(_0xfda74a,_0x2277a0){_0xfda74a=_0xfda74a-0x1e6;const _0x4a7c9a=a150_0x4a7c();let _0x954dac=_0x4a7c9a[_0xfda74a];return _0x954dac;}function isRuntimeSkillValidationError(_0x551964){const _0x3b1e27=a150_0x2ff45b;return typeof _0x551964==='object'&&_0x551964!==null&&'code'in _0x551964&&_0x551964[_0x3b1e27(0x1eb)]===_0x3b1e27(0x1e7);}
@@ -1 +1 @@
1
- (function(_0x3ad092,_0x3e376f){const _0x560435=a150_0x2dc7,_0x2d5ebc=_0x3ad092();while(!![]){try{const _0x2ccf91=-parseInt(_0x560435(0x9a))/0x1*(-parseInt(_0x560435(0x7f))/0x2)+-parseInt(_0x560435(0x97))/0x3*(parseInt(_0x560435(0x84))/0x4)+-parseInt(_0x560435(0x7b))/0x5*(-parseInt(_0x560435(0xa4))/0x6)+parseInt(_0x560435(0xa6))/0x7+-parseInt(_0x560435(0x9c))/0x8+parseInt(_0x560435(0x8d))/0x9+-parseInt(_0x560435(0x90))/0xa;if(_0x2ccf91===_0x3e376f)break;else _0x2d5ebc['push'](_0x2d5ebc['shift']());}catch(_0x1bc305){_0x2d5ebc['push'](_0x2d5ebc['shift']());}}}(a150_0x1ee9,0x8c697));function a150_0x2dc7(_0x28ff07,_0x45fd87){_0x28ff07=_0x28ff07-0x79;const _0x1ee9eb=a150_0x1ee9();let _0x2dc764=_0x1ee9eb[_0x28ff07];return _0x2dc764;}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(_0x1a33bb){const _0xbbd938=a150_0x2dc7,_0x592bce=normalizeLocalFiles(_0x1a33bb);if(!_0x592bce['some'](_0x5d700f=>_0x5d700f[_0xbbd938(0xa1)]===SKILL_FILE))throw CliErrors[_0xbbd938(0x95)]('Missing\x20'+SKILL_FILE+_0xbbd938(0x99));const _0x4d9a2a=localFilesToManifestFiles(_0x592bce),_0x2d44bf=createDeterministicZipPackage(_0x592bce);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x4d9a2a),'zipSha256':bufferSha256(_0x2d44bf),'zipSize':_0x2d44bf[_0xbbd938(0x94)],'files':_0x4d9a2a},'packageBytes':_0x2d44bf,'packageBase64':_0x2d44bf[_0xbbd938(0x86)](_0xbbd938(0x88))};}export function verifyRuntimeSkillPackage(_0x4c8f86,_0x2dd8c5){const _0x107ff4=a150_0x2dc7,_0x35b7c9=normalizePackageManifest(_0x4c8f86,{'requireOssPath':![]});if(!_0x35b7c9)throw CliErrors[_0x107ff4(0x95)](_0x107ff4(0x98));return extractAndVerifyPackage(_0x35b7c9,_0x2dd8c5);}function a150_0x1ee9(){const _0x2aa8a2=['5507568uimDyd','files','treeSha256','some','sha256','path','zipSize','Duplicate\x20Skill\x20package\x20entry:\x20','6aVqyZU','trim','6159251FzSbUP','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','set','isArray','4676965tYUPBS','get','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','has','7166wsUdYY','size','ossPath','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','string','4QMMTRo','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','toString','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','base64','zipSha256','push','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','requireOssPath','6042132CMzkid','Runtime\x20Skill\x20package\x20is\x20missing\x20','toLowerCase','11209420oOAiGR','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','bytes','schemaVersion','length','validation','map','2391663uYWMNy','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','\x20in\x20Skill\x20file\x20package.','194wzWTEE','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.'];a150_0x1ee9=function(){return _0x2aa8a2;};return a150_0x1ee9();}export function verifyRuntimeSkillBundle(_0x33610c,_0x5b2c79){const _0x2ed411=normalizePackageManifest(_0x33610c,{'requireOssPath':![]});if(!_0x2ed411)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x2ed411,_0x5b2c79);}export function tryNormalizePackageManifest(_0x19d674){return normalizePackageManifest(_0x19d674,{'requireOssPath':![]});}export function requirePackageBytes(_0x154174,_0x115400){const _0x3dc0f9=a150_0x2dc7;if(!_0x115400||_0x115400[_0x3dc0f9(0x94)]===0x0)throw CliErrors[_0x3dc0f9(0x95)](_0x3dc0f9(0xa7)+_0x154174);return _0x115400;}export function extractDownloadedPackage(_0x55da2e){const _0x9e2ffb=a150_0x2dc7,_0x25b2a7=parseZipPackage(_0x55da2e)[_0x9e2ffb(0x96)](_0x2459dc=>({'path':_0x2459dc[_0x9e2ffb(0xa1)],'bytes':_0x2459dc[_0x9e2ffb(0x92)]}));if(!_0x25b2a7['some'](_0x2a5272=>_0x2a5272['path']===SKILL_FILE))throw CliErrors[_0x9e2ffb(0x95)](_0x9e2ffb(0x8e)+SKILL_FILE+'.');return normalizeLocalFiles(_0x25b2a7);}export function localFilesToManifestFiles(_0x2ffa82){const _0x122561=a150_0x2dc7;return normalizeLocalFiles(_0x2ffa82)[_0x122561(0x96)](_0x3ccb8b=>({'path':_0x3ccb8b[_0x122561(0xa1)],'sha256':fileHash(_0x3ccb8b),'size':fileContent(_0x3ccb8b)[_0x122561(0x94)]}));}function normalizePackageManifest(_0x32ff5e,_0x2255d2){const _0x4ecad4=a150_0x2dc7;if(!_0x32ff5e||typeof _0x32ff5e!=='object'||Array[_0x4ecad4(0x7a)](_0x32ff5e))return undefined;const _0x353f3b=_0x32ff5e,_0x445831=typeof _0x353f3b[_0x4ecad4(0x81)]===_0x4ecad4(0x83)?_0x353f3b['ossPath'][_0x4ecad4(0xa5)]():undefined;if(_0x2255d2[_0x4ecad4(0x8c)]&&!_0x445831)return undefined;if(!Array[_0x4ecad4(0x7a)](_0x353f3b[_0x4ecad4(0x9d)])||_0x353f3b['files'][_0x4ecad4(0x94)]===0x0)return undefined;if(!isSha256Hex(_0x353f3b['treeSha256']))throw CliErrors[_0x4ecad4(0x95)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x353f3b['zipSha256']))throw CliErrors[_0x4ecad4(0x95)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number['isSafeInteger'](_0x353f3b[_0x4ecad4(0xa2)])||_0x353f3b[_0x4ecad4(0xa2)]<0x0)throw CliErrors[_0x4ecad4(0x95)](_0x4ecad4(0x85));const _0x1151d9=normalizeManifestFiles(_0x353f3b[_0x4ecad4(0x9d)]);if(!_0x1151d9[_0x4ecad4(0x9f)](_0x25e6ea=>_0x25e6ea[_0x4ecad4(0xa1)]===SKILL_FILE))throw CliErrors[_0x4ecad4(0x95)](_0x4ecad4(0x87)+SKILL_FILE+'.');const _0x20324f=fileTreeHash(_0x1151d9);if(_0x20324f!==_0x353f3b[_0x4ecad4(0x9e)][_0x4ecad4(0x8f)]())throw CliErrors['validation'](_0x4ecad4(0x9b));return{'schemaVersion':Number['isSafeInteger'](_0x353f3b[_0x4ecad4(0x93)])?_0x353f3b[_0x4ecad4(0x93)]:0x2,'ossPath':_0x445831,'treeSha256':_0x20324f,'zipSha256':_0x353f3b[_0x4ecad4(0x89)][_0x4ecad4(0x8f)](),'zipSize':_0x353f3b[_0x4ecad4(0xa2)],'files':_0x1151d9};}function extractAndVerifyPackage(_0x523f63,_0x1dfd44){const _0x59a627=a150_0x2dc7,_0x2bf157=normalizePackageManifest(_0x523f63,{'requireOssPath':![]});if(!_0x2bf157)throw CliErrors[_0x59a627(0x95)](_0x59a627(0x98));if(_0x1dfd44[_0x59a627(0x94)]!==_0x2bf157[_0x59a627(0xa2)])throw CliErrors[_0x59a627(0x95)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x111b58=bufferSha256(_0x1dfd44);if(_0x111b58!==_0x2bf157[_0x59a627(0x89)])throw CliErrors['validation'](_0x59a627(0x7d));return extractAndVerifyPackageFiles(_0x2bf157,_0x1dfd44);}function extractAndVerifyPackageFiles(_0xe95031,_0x1c7fa1){const _0xed35f8=a150_0x2dc7,_0x4230f4=parseZipPackage(_0x1c7fa1);if(_0x4230f4[_0xed35f8(0x94)]!==_0xe95031['files'][_0xed35f8(0x94)])throw CliErrors[_0xed35f8(0x95)](_0xed35f8(0x91));const _0x2f37aa=new Map();for(const _0x320c97 of _0x4230f4){if(_0x2f37aa[_0xed35f8(0x7e)](_0x320c97[_0xed35f8(0xa1)]))throw CliErrors[_0xed35f8(0x95)](_0xed35f8(0xa3)+_0x320c97['path']);_0x2f37aa[_0xed35f8(0x79)](_0x320c97[_0xed35f8(0xa1)],_0x320c97);}const _0x2264fc=[];for(const _0x11cf7c of _0xe95031[_0xed35f8(0x9d)]){const _0x3ca81f=_0x2f37aa[_0xed35f8(0x7c)](_0x11cf7c[_0xed35f8(0xa1)]);if(!_0x3ca81f)throw CliErrors[_0xed35f8(0x95)](_0xed35f8(0x82)+_0x11cf7c[_0xed35f8(0xa1)]);if(_0x3ca81f[_0xed35f8(0x92)][_0xed35f8(0x94)]!==_0x11cf7c[_0xed35f8(0x80)])throw CliErrors['validation'](_0xed35f8(0x8b)+_0x11cf7c[_0xed35f8(0xa1)]);const _0x486c96=bufferSha256(_0x3ca81f[_0xed35f8(0x92)]);if(_0x486c96!==_0x11cf7c[_0xed35f8(0xa0)])throw CliErrors[_0xed35f8(0x95)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x11cf7c[_0xed35f8(0xa1)]);_0x2264fc[_0xed35f8(0x8a)]({'path':_0x11cf7c[_0xed35f8(0xa1)],'bytes':_0x3ca81f['bytes']});}return normalizeLocalFiles(_0x2264fc);}
1
+ (function(_0x793ec9,_0x2044cd){const _0x5701c9=a151_0x4eb7,_0x471cf3=_0x793ec9();while(!![]){try{const _0x79550b=-parseInt(_0x5701c9(0x136))/0x1+parseInt(_0x5701c9(0x11f))/0x2+-parseInt(_0x5701c9(0x134))/0x3*(parseInt(_0x5701c9(0x12e))/0x4)+-parseInt(_0x5701c9(0x131))/0x5+-parseInt(_0x5701c9(0x123))/0x6*(-parseInt(_0x5701c9(0x13f))/0x7)+-parseInt(_0x5701c9(0x124))/0x8*(parseInt(_0x5701c9(0x116))/0x9)+parseInt(_0x5701c9(0x12c))/0xa;if(_0x79550b===_0x2044cd)break;else _0x471cf3['push'](_0x471cf3['shift']());}catch(_0x1ff423){_0x471cf3['push'](_0x471cf3['shift']());}}}(a151_0x3e31,0x9fd6d));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(_0xaa420c){const _0x312bc7=a151_0x4eb7,_0x2ec61b=normalizeLocalFiles(_0xaa420c);if(!_0x2ec61b[_0x312bc7(0x12d)](_0x479a19=>_0x479a19[_0x312bc7(0x11c)]===SKILL_FILE))throw CliErrors[_0x312bc7(0x120)](_0x312bc7(0x122)+SKILL_FILE+_0x312bc7(0x128));const _0x479d4f=localFilesToManifestFiles(_0x2ec61b),_0x3c8654=createDeterministicZipPackage(_0x2ec61b);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x479d4f),'zipSha256':bufferSha256(_0x3c8654),'zipSize':_0x3c8654['length'],'files':_0x479d4f},'packageBytes':_0x3c8654,'packageBase64':_0x3c8654[_0x312bc7(0x133)](_0x312bc7(0x118))};}export function verifyRuntimeSkillPackage(_0x141cbf,_0x3cb8ca){const _0x2428ea=a151_0x4eb7,_0x4e55d7=normalizePackageManifest(_0x141cbf,{'requireOssPath':![]});if(!_0x4e55d7)throw CliErrors[_0x2428ea(0x120)](_0x2428ea(0x141));return extractAndVerifyPackage(_0x4e55d7,_0x3cb8ca);}export function verifyRuntimeSkillBundle(_0x3ae6f2,_0x4c0d94){const _0x31b3c2=a151_0x4eb7,_0xf147f8=normalizePackageManifest(_0x3ae6f2,{'requireOssPath':![]});if(!_0xf147f8)throw CliErrors[_0x31b3c2(0x120)](_0x31b3c2(0x141));return extractAndVerifyPackageFiles(_0xf147f8,_0x4c0d94);}export function tryNormalizePackageManifest(_0x47327d){return normalizePackageManifest(_0x47327d,{'requireOssPath':![]});}function a151_0x3e31(){const _0x58854c=['treeSha256','length','Runtime\x20Skill\x20package\x20is\x20missing\x20','zipSha256','map','files','schemaVersion','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','7BFjHFi','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','trim','set','toLowerCase','263637femmHK','isArray','base64','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','zipSize','ossPath','path','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','object','2488336nloFwE','validation','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Missing\x20','438054FVpJeR','304BLgqJX','isSafeInteger','sha256','requireOssPath','\x20in\x20Skill\x20file\x20package.','bytes','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','get','20223320QPXaJN','some','2939740jnWQAk','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','size','1318000CqnbGX','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','toString','3sFxNCQ','has','573139DZQeWF'];a151_0x3e31=function(){return _0x58854c;};return a151_0x3e31();}export function requirePackageBytes(_0x4a3f2b,_0x1b9e84){const _0x59b38a=a151_0x4eb7;if(!_0x1b9e84||_0x1b9e84[_0x59b38a(0x138)]===0x0)throw CliErrors[_0x59b38a(0x120)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x4a3f2b);return _0x1b9e84;}export function extractDownloadedPackage(_0x531337){const _0x2c68ed=a151_0x4eb7,_0xc2e397=parseZipPackage(_0x531337)[_0x2c68ed(0x13b)](_0x595cd2=>({'path':_0x595cd2[_0x2c68ed(0x11c)],'bytes':_0x595cd2[_0x2c68ed(0x129)]}));if(!_0xc2e397[_0x2c68ed(0x12d)](_0x68afd7=>_0x68afd7[_0x2c68ed(0x11c)]===SKILL_FILE))throw CliErrors[_0x2c68ed(0x120)](_0x2c68ed(0x139)+SKILL_FILE+'.');return normalizeLocalFiles(_0xc2e397);}export function localFilesToManifestFiles(_0x227ef2){const _0x32a5e0=a151_0x4eb7;return normalizeLocalFiles(_0x227ef2)[_0x32a5e0(0x13b)](_0x59621c=>({'path':_0x59621c[_0x32a5e0(0x11c)],'sha256':fileHash(_0x59621c),'size':fileContent(_0x59621c)[_0x32a5e0(0x138)]}));}function normalizePackageManifest(_0x38a7a6,_0x2705d2){const _0x234c4b=a151_0x4eb7;if(!_0x38a7a6||typeof _0x38a7a6!==_0x234c4b(0x11e)||Array[_0x234c4b(0x117)](_0x38a7a6))return undefined;const _0x77310d=_0x38a7a6,_0x465b6b=typeof _0x77310d[_0x234c4b(0x11b)]==='string'?_0x77310d[_0x234c4b(0x11b)][_0x234c4b(0x142)]():undefined;if(_0x2705d2[_0x234c4b(0x127)]&&!_0x465b6b)return undefined;if(!Array[_0x234c4b(0x117)](_0x77310d['files'])||_0x77310d['files'][_0x234c4b(0x138)]===0x0)return undefined;if(!isSha256Hex(_0x77310d[_0x234c4b(0x137)]))throw CliErrors['validation'](_0x234c4b(0x140));if(!isSha256Hex(_0x77310d['zipSha256']))throw CliErrors['validation'](_0x234c4b(0x119));if(!Number[_0x234c4b(0x125)](_0x77310d[_0x234c4b(0x11a)])||_0x77310d[_0x234c4b(0x11a)]<0x0)throw CliErrors[_0x234c4b(0x120)](_0x234c4b(0x132));const _0x4bc351=normalizeManifestFiles(_0x77310d[_0x234c4b(0x13c)]);if(!_0x4bc351[_0x234c4b(0x12d)](_0x29c2d7=>_0x29c2d7[_0x234c4b(0x11c)]===SKILL_FILE))throw CliErrors[_0x234c4b(0x120)](_0x234c4b(0x12f)+SKILL_FILE+'.');const _0xebe21d=fileTreeHash(_0x4bc351);if(_0xebe21d!==_0x77310d['treeSha256'][_0x234c4b(0x115)]())throw CliErrors['validation'](_0x234c4b(0x13e));return{'schemaVersion':Number[_0x234c4b(0x125)](_0x77310d['schemaVersion'])?_0x77310d[_0x234c4b(0x13d)]:0x2,'ossPath':_0x465b6b,'treeSha256':_0xebe21d,'zipSha256':_0x77310d[_0x234c4b(0x13a)]['toLowerCase'](),'zipSize':_0x77310d[_0x234c4b(0x11a)],'files':_0x4bc351};}function a151_0x4eb7(_0x405217,_0x4ce977){_0x405217=_0x405217-0x115;const _0x3e310a=a151_0x3e31();let _0x4eb765=_0x3e310a[_0x405217];return _0x4eb765;}function extractAndVerifyPackage(_0x48a5da,_0x507120){const _0x5beb48=a151_0x4eb7,_0x801084=normalizePackageManifest(_0x48a5da,{'requireOssPath':![]});if(!_0x801084)throw CliErrors[_0x5beb48(0x120)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x507120[_0x5beb48(0x138)]!==_0x801084[_0x5beb48(0x11a)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x441c0a=bufferSha256(_0x507120);if(_0x441c0a!==_0x801084[_0x5beb48(0x13a)])throw CliErrors['validation'](_0x5beb48(0x121));return extractAndVerifyPackageFiles(_0x801084,_0x507120);}function extractAndVerifyPackageFiles(_0x5959f9,_0x11599c){const _0x49fb88=a151_0x4eb7,_0x1dbf99=parseZipPackage(_0x11599c);if(_0x1dbf99['length']!==_0x5959f9[_0x49fb88(0x13c)][_0x49fb88(0x138)])throw CliErrors[_0x49fb88(0x120)](_0x49fb88(0x11d));const _0x2de272=new Map();for(const _0xc6f8bf of _0x1dbf99){if(_0x2de272[_0x49fb88(0x135)](_0xc6f8bf[_0x49fb88(0x11c)]))throw CliErrors[_0x49fb88(0x120)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0xc6f8bf['path']);_0x2de272[_0x49fb88(0x143)](_0xc6f8bf[_0x49fb88(0x11c)],_0xc6f8bf);}const _0x22b0b0=[];for(const _0x2ba735 of _0x5959f9[_0x49fb88(0x13c)]){const _0x5ad5bb=_0x2de272[_0x49fb88(0x12b)](_0x2ba735['path']);if(!_0x5ad5bb)throw CliErrors[_0x49fb88(0x120)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x2ba735['path']);if(_0x5ad5bb[_0x49fb88(0x129)][_0x49fb88(0x138)]!==_0x2ba735[_0x49fb88(0x130)])throw CliErrors[_0x49fb88(0x120)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x2ba735['path']);const _0xc3d22d=bufferSha256(_0x5ad5bb[_0x49fb88(0x129)]);if(_0xc3d22d!==_0x2ba735[_0x49fb88(0x126)])throw CliErrors[_0x49fb88(0x120)](_0x49fb88(0x12a)+_0x2ba735[_0x49fb88(0x11c)]);_0x22b0b0['push']({'path':_0x2ba735[_0x49fb88(0x11c)],'bytes':_0x5ad5bb[_0x49fb88(0x129)]});}return normalizeLocalFiles(_0x22b0b0);}
@@ -1 +1 @@
1
- (function(_0x3c234b,_0x1b99a5){var _0x29029e=a151_0x839b,_0x5b4c94=_0x3c234b();while(!![]){try{var _0x4a9921=parseInt(_0x29029e(0x1b3))/0x1*(parseInt(_0x29029e(0x1b6))/0x2)+parseInt(_0x29029e(0x1b0))/0x3+parseInt(_0x29029e(0x1b4))/0x4*(-parseInt(_0x29029e(0x1b8))/0x5)+parseInt(_0x29029e(0x1b7))/0x6*(parseInt(_0x29029e(0x1ba))/0x7)+parseInt(_0x29029e(0x1b1))/0x8+parseInt(_0x29029e(0x1b5))/0x9*(-parseInt(_0x29029e(0x1b2))/0xa)+-parseInt(_0x29029e(0x1b9))/0xb*(parseInt(_0x29029e(0x1af))/0xc);if(_0x4a9921===_0x1b99a5)break;else _0x5b4c94['push'](_0x5b4c94['shift']());}catch(_0x4f6180){_0x5b4c94['push'](_0x5b4c94['shift']());}}}(a151_0x4023,0x1b38c));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';function a151_0x839b(_0x20689d,_0x5e8c2e){_0x20689d=_0x20689d-0x1af;var _0x402376=a151_0x4023();var _0x839be0=_0x402376[_0x20689d];return _0x839be0;}export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';function a151_0x4023(){var _0x235ecf=['1057926PxPhDw','5zLrOoh','11skndIP','7RCXmCI','2878068kmVffs','207183VREpBI','1034912Gtzruc','3370xiuXZK','3vicGjV','389900ArebRz','3582GWjbyp','138796UEWZOR'];a151_0x4023=function(){return _0x235ecf;};return a151_0x4023();}export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0x4cda8e,_0x50905e){var _0x555de1=a152_0x1015,_0x371717=_0x4cda8e();while(!![]){try{var _0x17d8d6=parseInt(_0x555de1(0x126))/0x1+-parseInt(_0x555de1(0x129))/0x2*(parseInt(_0x555de1(0x12c))/0x3)+parseInt(_0x555de1(0x12e))/0x4*(parseInt(_0x555de1(0x127))/0x5)+-parseInt(_0x555de1(0x128))/0x6+-parseInt(_0x555de1(0x12b))/0x7+-parseInt(_0x555de1(0x12d))/0x8*(-parseInt(_0x555de1(0x124))/0x9)+-parseInt(_0x555de1(0x12a))/0xa*(parseInt(_0x555de1(0x125))/0xb);if(_0x17d8d6===_0x50905e)break;else _0x371717['push'](_0x371717['shift']());}catch(_0x32266f){_0x371717['push'](_0x371717['shift']());}}}(a152_0x26a6,0x1d634));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 a152_0x1015(_0x5af0eb,_0x1912cc){_0x5af0eb=_0x5af0eb-0x124;var _0x26a661=a152_0x26a6();var _0x101582=_0x26a661[_0x5af0eb];return _0x101582;}export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';function a152_0x26a6(){var _0x1488a0=['7045QQSifm','458100pAYYUj','116hOhaYa','10XFvjpu','1042979JieFzx','5289QTlwgA','26208zRhXik','628DTLPAz','306RNWIYc','62018KizGHk','121014lhPEfn'];a152_0x26a6=function(){return _0x1488a0;};return a152_0x26a6();}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- const a152_0x2f46ac=a152_0x17bf;(function(_0x4ba32a,_0x37da86){const _0x48e255=a152_0x17bf,_0x43ae62=_0x4ba32a();while(!![]){try{const _0x365696=-parseInt(_0x48e255(0x109))/0x1*(parseInt(_0x48e255(0x120))/0x2)+parseInt(_0x48e255(0x122))/0x3*(-parseInt(_0x48e255(0x10b))/0x4)+parseInt(_0x48e255(0x10f))/0x5+parseInt(_0x48e255(0x124))/0x6+-parseInt(_0x48e255(0x123))/0x7*(parseInt(_0x48e255(0x11d))/0x8)+-parseInt(_0x48e255(0x11c))/0x9+parseInt(_0x48e255(0x128))/0xa;if(_0x365696===_0x37da86)break;else _0x43ae62['push'](_0x43ae62['shift']());}catch(_0xd5552a){_0x43ae62['push'](_0x43ae62['shift']());}}}(a152_0x3941,0xb9543));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a152_0x2f46ac(0x119),a152_0x2f46ac(0x111));function a152_0x3941(){const _0x3fa51=['77suMsqt','4819890bywAJv','find','\x20records\x20\x22','unusable','28696930nMpsyF','unverifiable','\x20uses\x20unsupported\x20version\x20','kind','version','.claude','95486ZPerRl','utf8','28848bmEqHI','includes','reason','SKILL.md','5369060WfvuBb','join','.skill-lock.json','number','message','skills','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','absent','parse','not-recorded','.agents','present','object','8188011sAkdsG','774496emwANC','recorded','home','26tAmKiV','map','321HsPCTC'];a152_0x3941=function(){return _0x3fa51;};return a152_0x3941();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a152_0x2f46ac(0x114)),join(a152_0x2f46ac(0x108),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x517241,_0x5a5f4f){const _0x4beb58=a152_0x2f46ac;if(!existsSync(_0x517241))return{'kind':'not-recorded'};let _0x317cd2;try{_0x317cd2=JSON[_0x4beb58(0x117)](readFileSync(_0x517241,_0x4beb58(0x10a)));}catch(_0x5aca52){return{'kind':'unusable','reason':_0x517241+'\x20is\x20unreadable:\x20'+_0x5aca52[_0x4beb58(0x113)]};}const _0x260efb=_0x317cd2;if(typeof _0x260efb?.['version']!==_0x4beb58(0x112)||!SUPPORTED_LOCK_VERSIONS[_0x4beb58(0x10c)](_0x260efb[_0x4beb58(0x107)]))return{'kind':_0x4beb58(0x127),'reason':_0x517241+_0x4beb58(0x105)+String(_0x260efb?.[_0x4beb58(0x107)])};if(!_0x260efb[_0x4beb58(0x114)]||typeof _0x260efb[_0x4beb58(0x114)]!==_0x4beb58(0x11b))return{'kind':_0x4beb58(0x127),'reason':_0x517241+'\x20has\x20no\x20skills\x20map'};return _0x260efb['skills'][_0x5a5f4f]?{'kind':_0x4beb58(0x11e)}:{'kind':_0x4beb58(0x118)};}function a152_0x17bf(_0x7573ce,_0x31c021){_0x7573ce=_0x7573ce-0x105;const _0x3941fc=a152_0x3941();let _0x17bf85=_0x3941fc[_0x7573ce];return _0x17bf85;}export function resolveInstalledSkill(_0x42d017,_0x4a606a){const _0x23a7a9=a152_0x2f46ac,_0x23c224=_0x4a606a?.[_0x23a7a9(0x11f)]??homedir(),_0x2785c8=_0x4a606a?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x23a7a9(0x121)](_0x4f80b0=>join(_0x23c224,_0x4f80b0)),_0x4f9740=_0x4a606a?.['lockFile']??join(_0x23c224,SKILL_LOCK_RELATIVE_PATH),_0x974c3e=_0x2785c8[_0x23a7a9(0x121)](_0x2c8504=>join(_0x2c8504,_0x42d017,_0x23a7a9(0x10e))),_0x4e4787=_0x974c3e[_0x23a7a9(0x125)](_0x2f6513=>existsSync(_0x2f6513));if(_0x4e4787)return{'state':_0x23a7a9(0x11a),'path':_0x4e4787};const _0xff0707=readLockLookup(_0x4f9740,_0x42d017);if(_0xff0707['kind']===_0x23a7a9(0x127))return{'state':_0x23a7a9(0x129),'reason':_0xff0707[_0x23a7a9(0x10d)]};if(_0xff0707[_0x23a7a9(0x106)]===_0x23a7a9(0x11e))return{'state':_0x23a7a9(0x129),'reason':_0x4f9740+_0x23a7a9(0x126)+_0x42d017+_0x23a7a9(0x115)+('('+_0x974c3e[_0x23a7a9(0x110)](',\x20')+')')};return{'state':_0x23a7a9(0x116),'checked':_0x974c3e};}
1
+ const a153_0x3a3c3b=a153_0x118c;(function(_0x565019,_0x458e67){const _0x57d196=a153_0x118c,_0x59f850=_0x565019();while(!![]){try{const _0x32e296=-parseInt(_0x57d196(0x1a5))/0x1+-parseInt(_0x57d196(0x1a7))/0x2+-parseInt(_0x57d196(0x1c0))/0x3*(-parseInt(_0x57d196(0x1ba))/0x4)+-parseInt(_0x57d196(0x1b5))/0x5*(-parseInt(_0x57d196(0x1b9))/0x6)+parseInt(_0x57d196(0x1b6))/0x7*(parseInt(_0x57d196(0x1c3))/0x8)+parseInt(_0x57d196(0x1aa))/0x9+-parseInt(_0x57d196(0x1a3))/0xa;if(_0x32e296===_0x458e67)break;else _0x59f850['push'](_0x59f850['shift']());}catch(_0x56fa8e){_0x59f850['push'](_0x59f850['shift']());}}}(a153_0xc01d,0xe8994));import{existsSync,readFileSync}from'node:fs';function a153_0xc01d(){const _0x3bf1a8=['.skill-lock.json','7684504GckVib','23756680qjwpTO','\x20records\x20\x22','524306PItBFS','utf8','2184038ZjykSg','\x20is\x20unreadable:\x20','not-recorded','14533947NOzWcE','kind','.agents','reason','unverifiable','version','find','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','parse','includes','unusable','1277585gMokkv','7CDOPRW','map','skills','42RPojDO','1161304PItzvw','SKILL.md','message','present','\x20uses\x20unsupported\x20version\x20','join','6rqfSzB','.claude'];a153_0xc01d=function(){return _0x3bf1a8;};return a153_0xc01d();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a153_0x3a3c3b(0x1ac),a153_0x3a3c3b(0x1c2));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a153_0x3a3c3b(0x1b8)),join(a153_0x3a3c3b(0x1c1),a153_0x3a3c3b(0x1b8))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x332505,_0x16f56f){const _0x340aca=a153_0x3a3c3b;if(!existsSync(_0x332505))return{'kind':'not-recorded'};let _0xed8faf;try{_0xed8faf=JSON[_0x340aca(0x1b2)](readFileSync(_0x332505,_0x340aca(0x1a6)));}catch(_0x9f969d){return{'kind':'unusable','reason':_0x332505+_0x340aca(0x1a8)+_0x9f969d[_0x340aca(0x1bc)]};}const _0x52119a=_0xed8faf;if(typeof _0x52119a?.[_0x340aca(0x1af)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x340aca(0x1b3)](_0x52119a['version']))return{'kind':_0x340aca(0x1b4),'reason':_0x332505+_0x340aca(0x1be)+String(_0x52119a?.['version'])};if(!_0x52119a[_0x340aca(0x1b8)]||typeof _0x52119a[_0x340aca(0x1b8)]!=='object')return{'kind':_0x340aca(0x1b4),'reason':_0x332505+'\x20has\x20no\x20skills\x20map'};return _0x52119a['skills'][_0x16f56f]?{'kind':'recorded'}:{'kind':_0x340aca(0x1a9)};}function a153_0x118c(_0x199b09,_0x4178e9){_0x199b09=_0x199b09-0x1a3;const _0xc01d98=a153_0xc01d();let _0x118c4d=_0xc01d98[_0x199b09];return _0x118c4d;}export function resolveInstalledSkill(_0x322a6b,_0x380613){const _0x173240=a153_0x3a3c3b,_0x499454=_0x380613?.['home']??homedir(),_0x2347d5=_0x380613?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x173240(0x1b7)](_0x37827c=>join(_0x499454,_0x37827c)),_0xdfbfb9=_0x380613?.['lockFile']??join(_0x499454,SKILL_LOCK_RELATIVE_PATH),_0x3fda11=_0x2347d5[_0x173240(0x1b7)](_0x56a049=>join(_0x56a049,_0x322a6b,_0x173240(0x1bb))),_0x5223e9=_0x3fda11[_0x173240(0x1b0)](_0x4681ff=>existsSync(_0x4681ff));if(_0x5223e9)return{'state':_0x173240(0x1bd),'path':_0x5223e9};const _0x3678d8=readLockLookup(_0xdfbfb9,_0x322a6b);if(_0x3678d8[_0x173240(0x1ab)]===_0x173240(0x1b4))return{'state':_0x173240(0x1ae),'reason':_0x3678d8[_0x173240(0x1ad)]};if(_0x3678d8[_0x173240(0x1ab)]==='recorded')return{'state':'unverifiable','reason':_0xdfbfb9+_0x173240(0x1a4)+_0x322a6b+_0x173240(0x1b1)+('('+_0x3fda11[_0x173240(0x1bf)](',\x20')+')')};return{'state':'absent','checked':_0x3fda11};}
@@ -1 +1 @@
1
- const a153_0x41565f=a153_0x268d;(function(_0x22d5f4,_0x5cd573){const _0x1991cf=a153_0x268d,_0x8a5712=_0x22d5f4();while(!![]){try{const _0x1d3bea=-parseInt(_0x1991cf(0x131))/0x1*(parseInt(_0x1991cf(0x123))/0x2)+parseInt(_0x1991cf(0x127))/0x3*(parseInt(_0x1991cf(0x124))/0x4)+-parseInt(_0x1991cf(0x12b))/0x5+parseInt(_0x1991cf(0x12e))/0x6*(parseInt(_0x1991cf(0x132))/0x7)+parseInt(_0x1991cf(0x139))/0x8*(parseInt(_0x1991cf(0x135))/0x9)+-parseInt(_0x1991cf(0x12f))/0xa+parseInt(_0x1991cf(0x126))/0xb;if(_0x1d3bea===_0x5cd573)break;else _0x8a5712['push'](_0x8a5712['shift']());}catch(_0x5cc7af){_0x8a5712['push'](_0x8a5712['shift']());}}}(a153_0x1726,0x46444));const REDACTED_ACCESS_KEY=a153_0x41565f(0x129);export function maskCliAccessKey(_0x4a1e44){const _0x343f3d=a153_0x41565f;if(typeof _0x4a1e44!==_0x343f3d(0x13a)||_0x4a1e44[_0x343f3d(0x130)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x4a1e44['slice'](0x0,0x8)+'*'['repeat'](_0x4a1e44[_0x343f3d(0x130)]-0x8);}export function redactCliConfigCredentials(_0x1e9c92){const _0xdb8e6c=a153_0x41565f,_0x194c37={..._0x1e9c92};return Object['prototype'][_0xdb8e6c(0x128)]['call'](_0x194c37,'accessKey')&&(_0x194c37[_0xdb8e6c(0x137)]=maskCliAccessKey(_0x194c37[_0xdb8e6c(0x137)])),_0x194c37[_0xdb8e6c(0x136)]&&typeof _0x194c37[_0xdb8e6c(0x136)]===_0xdb8e6c(0x138)&&!Array['isArray'](_0x194c37[_0xdb8e6c(0x136)])&&(_0x194c37[_0xdb8e6c(0x136)]=redactLegacyAppCredentials(_0x194c37['apps'])),_0x194c37;}function a153_0x1726(){const _0x478464=['117TixgVZ','apps','accessKey','object','107608wBbiNl','string','1510PngKhf','42088IdKvRj','fromEntries','2495504tXSjmL','105UQiZTC','hasOwnProperty','<redacted>','test','1397280EyHBNs','isArray','call','6SSRYzp','757000tAdDyn','length','551lHOhIv','2022832VkxpDL','map','prototype'];a153_0x1726=function(){return _0x478464;};return a153_0x1726();}export function redactCliConfigValue(_0x4d026e,_0x5ca483){const _0x3d9ffa=a153_0x41565f;if(_0x4d026e===_0x3d9ffa(0x137)||/^apps\.[^.]+\.accessKey$/[_0x3d9ffa(0x12a)](_0x4d026e))return maskCliAccessKey(_0x5ca483);if(_0x4d026e===_0x3d9ffa(0x136)&&_0x5ca483&&typeof _0x5ca483==='object'&&!Array[_0x3d9ffa(0x12c)](_0x5ca483))return redactLegacyAppCredentials(_0x5ca483);if(/^apps\.[^.]+$/[_0x3d9ffa(0x12a)](_0x4d026e)&&_0x5ca483&&typeof _0x5ca483===_0x3d9ffa(0x138)&&!Array[_0x3d9ffa(0x12c)](_0x5ca483)){const _0x34cb2c=_0x5ca483;return Object[_0x3d9ffa(0x134)]['hasOwnProperty']['call'](_0x34cb2c,_0x3d9ffa(0x137))?{..._0x34cb2c,'accessKey':maskCliAccessKey(_0x34cb2c[_0x3d9ffa(0x137)])}:_0x5ca483;}return _0x5ca483;}function a153_0x268d(_0x251e03,_0x425b26){_0x251e03=_0x251e03-0x123;const _0x1726dc=a153_0x1726();let _0x268dfd=_0x1726dc[_0x251e03];return _0x268dfd;}function redactLegacyAppCredentials(_0x2bc8e7){const _0xdd7d0c=a153_0x41565f;return Object[_0xdd7d0c(0x125)](Object['entries'](_0x2bc8e7)[_0xdd7d0c(0x133)](([_0x568c44,_0x22169a])=>{const _0x4d2bf5=_0xdd7d0c;if(!_0x22169a||typeof _0x22169a!==_0x4d2bf5(0x138)||Array[_0x4d2bf5(0x12c)](_0x22169a))return[_0x568c44,_0x22169a];const _0x1929bf={..._0x22169a};return Object['prototype']['hasOwnProperty'][_0x4d2bf5(0x12d)](_0x1929bf,_0x4d2bf5(0x137))&&(_0x1929bf['accessKey']=maskCliAccessKey(_0x1929bf[_0x4d2bf5(0x137)])),[_0x568c44,_0x1929bf];}));}
1
+ const a154_0x3a94da=a154_0x5d50;function a154_0x5d50(_0x1a9208,_0x1f2191){_0x1a9208=_0x1a9208-0x159;const _0x4a6b7e=a154_0x4a6b();let _0x5d50d2=_0x4a6b7e[_0x1a9208];return _0x5d50d2;}function a154_0x4a6b(){const _0x4095e6=['accessKey','hasOwnProperty','3067113WAzzQm','apps','test','2729460HfoHpy','entries','length','isArray','prototype','slice','28685592bOKVeU','427568AUBTLD','string','2IIrcWY','object','538605yshMdu','28zwfKnk','<redacted>','call','repeat','2704617yTOBsv','1023455POXOwK'];a154_0x4a6b=function(){return _0x4095e6;};return a154_0x4a6b();}(function(_0x27b49f,_0x52990d){const _0x2ea1ee=a154_0x5d50,_0xc761de=_0x27b49f();while(!![]){try{const _0x15542f=parseInt(_0x2ea1ee(0x15c))/0x1*(-parseInt(_0x2ea1ee(0x16b))/0x2)+-parseInt(_0x2ea1ee(0x15b))/0x3+-parseInt(_0x2ea1ee(0x16e))/0x4*(parseInt(_0x2ea1ee(0x16d))/0x5)+-parseInt(_0x2ea1ee(0x162))/0x6+parseInt(_0x2ea1ee(0x15f))/0x7+parseInt(_0x2ea1ee(0x169))/0x8+parseInt(_0x2ea1ee(0x168))/0x9;if(_0x15542f===_0x52990d)break;else _0xc761de['push'](_0xc761de['shift']());}catch(_0x357ecc){_0xc761de['push'](_0xc761de['shift']());}}}(a154_0x4a6b,0x850ae));const REDACTED_ACCESS_KEY=a154_0x3a94da(0x16f);export function maskCliAccessKey(_0x77d419){const _0x4deaa4=a154_0x3a94da;if(typeof _0x77d419!==_0x4deaa4(0x16a)||_0x77d419[_0x4deaa4(0x164)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x77d419[_0x4deaa4(0x167)](0x0,0x8)+'*'[_0x4deaa4(0x15a)](_0x77d419[_0x4deaa4(0x164)]-0x8);}export function redactCliConfigCredentials(_0x1b1ec0){const _0x5c2f3d=a154_0x3a94da,_0x4c4b37={..._0x1b1ec0};return Object['prototype'][_0x5c2f3d(0x15e)][_0x5c2f3d(0x159)](_0x4c4b37,_0x5c2f3d(0x15d))&&(_0x4c4b37[_0x5c2f3d(0x15d)]=maskCliAccessKey(_0x4c4b37[_0x5c2f3d(0x15d)])),_0x4c4b37[_0x5c2f3d(0x160)]&&typeof _0x4c4b37['apps']===_0x5c2f3d(0x16c)&&!Array[_0x5c2f3d(0x165)](_0x4c4b37[_0x5c2f3d(0x160)])&&(_0x4c4b37[_0x5c2f3d(0x160)]=redactLegacyAppCredentials(_0x4c4b37[_0x5c2f3d(0x160)])),_0x4c4b37;}export function redactCliConfigValue(_0x4cd9e5,_0x38a04d){const _0x42572a=a154_0x3a94da;if(_0x4cd9e5===_0x42572a(0x15d)||/^apps\.[^.]+\.accessKey$/[_0x42572a(0x161)](_0x4cd9e5))return maskCliAccessKey(_0x38a04d);if(_0x4cd9e5===_0x42572a(0x160)&&_0x38a04d&&typeof _0x38a04d==='object'&&!Array[_0x42572a(0x165)](_0x38a04d))return redactLegacyAppCredentials(_0x38a04d);if(/^apps\.[^.]+$/[_0x42572a(0x161)](_0x4cd9e5)&&_0x38a04d&&typeof _0x38a04d==='object'&&!Array[_0x42572a(0x165)](_0x38a04d)){const _0x1b8b9d=_0x38a04d;return Object[_0x42572a(0x166)]['hasOwnProperty'][_0x42572a(0x159)](_0x1b8b9d,'accessKey')?{..._0x1b8b9d,'accessKey':maskCliAccessKey(_0x1b8b9d[_0x42572a(0x15d)])}:_0x38a04d;}return _0x38a04d;}function redactLegacyAppCredentials(_0x43b67c){const _0x9e1c1d=a154_0x3a94da;return Object['fromEntries'](Object[_0x9e1c1d(0x163)](_0x43b67c)['map'](([_0x50f1cb,_0x430ec2])=>{const _0x1198e8=_0x9e1c1d;if(!_0x430ec2||typeof _0x430ec2!==_0x1198e8(0x16c)||Array['isArray'](_0x430ec2))return[_0x50f1cb,_0x430ec2];const _0xa28843={..._0x430ec2};return Object[_0x1198e8(0x166)][_0x1198e8(0x15e)][_0x1198e8(0x159)](_0xa28843,_0x1198e8(0x15d))&&(_0xa28843['accessKey']=maskCliAccessKey(_0xa28843['accessKey'])),[_0x50f1cb,_0xa28843];}));}
@@ -1 +1 @@
1
- function a154_0x395b(){const _0x1cf938=['1XTQvbL','3574700YEnESX','11585079cRDlji','1987180MqIlxc','2564722QzhJfk','14OgxzPz','11019990IERTDs','5676128kXTZtd','959982dbNGkj'];a154_0x395b=function(){return _0x1cf938;};return a154_0x395b();}(function(_0x4836a0,_0x504ed7){const _0x2395e8=a154_0x1798,_0x132c96=_0x4836a0();while(!![]){try{const _0x55082b=parseInt(_0x2395e8(0x174))/0x1*(parseInt(_0x2395e8(0x178))/0x2)+parseInt(_0x2395e8(0x173))/0x3+parseInt(_0x2395e8(0x175))/0x4+parseInt(_0x2395e8(0x177))/0x5+-parseInt(_0x2395e8(0x17a))/0x6+-parseInt(_0x2395e8(0x179))/0x7*(parseInt(_0x2395e8(0x17b))/0x8)+parseInt(_0x2395e8(0x176))/0x9;if(_0x55082b===_0x504ed7)break;else _0x132c96['push'](_0x132c96['shift']());}catch(_0x571039){_0x132c96['push'](_0x132c96['shift']());}}}(a154_0x395b,0xe1d48));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a154_0x1798(_0x5ac5a5,_0x248255){_0x5ac5a5=_0x5ac5a5-0x173;const _0x395be0=a154_0x395b();let _0x179836=_0x395be0[_0x5ac5a5];return _0x179836;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a155_0xe20a(){const _0x595671=['12LJBTZd','7983QTjoXf','17eloHHA','1511477Wamqwo','63RZZcHT','773576alWVhh','1307367YJhaaG','22778dscKLQ','110gyVESE','1898478WyFgAl','1423335KgrKzq'];a155_0xe20a=function(){return _0x595671;};return a155_0xe20a();}(function(_0x60fd47,_0x1748e1){const _0x9426f2=a155_0x4fc9,_0x5d7fee=_0x60fd47();while(!![]){try{const _0x15f7fa=parseInt(_0x9426f2(0x1e2))/0x1*(parseInt(_0x9426f2(0x1e7))/0x2)+parseInt(_0x9426f2(0x1e6))/0x3+parseInt(_0x9426f2(0x1e0))/0x4*(-parseInt(_0x9426f2(0x1df))/0x5)+-parseInt(_0x9426f2(0x1de))/0x6+parseInt(_0x9426f2(0x1e4))/0x7*(parseInt(_0x9426f2(0x1e5))/0x8)+parseInt(_0x9426f2(0x1e1))/0x9*(-parseInt(_0x9426f2(0x1e8))/0xa)+parseInt(_0x9426f2(0x1e3))/0xb;if(_0x15f7fa===_0x1748e1)break;else _0x5d7fee['push'](_0x5d7fee['shift']());}catch(_0x419f26){_0x5d7fee['push'](_0x5d7fee['shift']());}}}(a155_0xe20a,0x6f8cf));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a155_0x4fc9(_0x4ea822,_0x4ce180){_0x4ea822=_0x4ea822-0x1de;const _0xe20a97=a155_0xe20a();let _0x4fc964=_0xe20a97[_0x4ea822];return _0x4fc964;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0xfdf38c,_0x219f9e){const _0x52cd62=a155_0x42ab,_0x10e6cb=_0xfdf38c();while(!![]){try{const _0x20e028=parseInt(_0x52cd62(0x1a4))/0x1*(parseInt(_0x52cd62(0x19b))/0x2)+parseInt(_0x52cd62(0x1a5))/0x3+parseInt(_0x52cd62(0x1a1))/0x4*(parseInt(_0x52cd62(0x1b4))/0x5)+-parseInt(_0x52cd62(0x1a7))/0x6+parseInt(_0x52cd62(0x1af))/0x7*(parseInt(_0x52cd62(0x1a9))/0x8)+parseInt(_0x52cd62(0x19e))/0x9*(-parseInt(_0x52cd62(0x1ab))/0xa)+-parseInt(_0x52cd62(0x19a))/0xb;if(_0x20e028===_0x219f9e)break;else _0x10e6cb['push'](_0x10e6cb['shift']());}catch(_0x307983){_0x10e6cb['push'](_0x10e6cb['shift']());}}}(a155_0x4533,0x77180));import a155_0x5a3d7a from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';function a155_0x4533(){const _0x30cba5=['npm\x20install\x20-g\x20','latest','stableVersion','valid','35ozCMcU','11214093lYncMB','341756bMnOIu','minimumVersionMessage','upgradeMessage','639801vREbwR','validation','join','90328UUcxUa','currentVersion','Current\x20version:\x20','4AApQHB','1441182GUTCNR','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','1174854AZAOas','minimumVersion','328hJPTHR','Recommended\x20stable:\x20','10Xmtbsp','unavailable','Upgrade\x20command:\x20','belowMinimum','77203ytTOjC'];a155_0x4533=function(){return _0x30cba5;};return a155_0x4533();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x1b581f,_0x55d018){const _0x57842d=a155_0x42ab,_0x39cbfd=a155_0x5a3d7a[_0x57842d(0x1b3)](_0x1b581f)===_0x1b581f,_0x165e03=_0x55d018?.[_0x57842d(0x1b2)]??null,_0x392f27=_0x55d018?.[_0x57842d(0x1a8)]??null,_0x104bc2=Boolean(_0x39cbfd&&_0x165e03&&a155_0x5a3d7a['lt'](_0x1b581f,_0x165e03)),_0x46cef0=Boolean(_0x39cbfd&&_0x392f27&&a155_0x5a3d7a['lt'](_0x1b581f,_0x392f27));return{'currentVersion':_0x1b581f,'stableVersion':_0x165e03,'minimumVersion':_0x392f27,'needsUpgrade':_0x104bc2||_0x46cef0,'belowMinimum':_0x46cef0,'upgradeMessage':_0x55d018?.[_0x57842d(0x19d)],'minimumVersionMessage':_0x55d018?.[_0x57842d(0x19c)]};}function a155_0x42ab(_0xb77a3e,_0x554723){_0xb77a3e=_0xb77a3e-0x19a;const _0x45332c=a155_0x4533();let _0x42abde=_0x45332c[_0xb77a3e];return _0x42abde;}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x26e8ca){const _0x526e3e=a155_0x42ab;return _0x526e3e(0x1b0)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x26e8ca[_0x526e3e(0x1b2)]??_0x526e3e(0x1b1));}export function assertCliVersionSupported(_0x16399e){const _0x47df0d=a155_0x42ab;if(!_0x16399e[_0x47df0d(0x1ae)])return;const _0x57ed9d=[_0x16399e['minimumVersionMessage'],_0x47df0d(0x1a3)+_0x16399e[_0x47df0d(0x1a2)],'Minimum\x20supported:\x20'+_0x16399e[_0x47df0d(0x1a8)],_0x47df0d(0x1aa)+(_0x16399e['stableVersion']??_0x47df0d(0x1ac)),_0x47df0d(0x1ad)+getCliUpgradeCommand(_0x16399e)]['filter'](Boolean)[_0x47df0d(0x1a0)]('\x0a');throw CliErrors[_0x47df0d(0x19f)](_0x47df0d(0x1a6),_0x57ed9d);}
1
+ function a156_0x31f1(){const _0x43c036=['minimumVersion','npm\x20install\x20-g\x20','7508490LkDtJK','Upgrade\x20command:\x20','currentVersion','2570212xcdweI','join','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','belowMinimum','unavailable','upgradeMessage','30216BrNuOF','10cMMcCW','latest','757395pIrpSD','filter','stableVersion','18742194eUzutI','3fYtcIW','valid','35312OCwGvZ','693fpWtxz','Recommended\x20stable:\x20','Current\x20version:\x20','3962225WqtiMS'];a156_0x31f1=function(){return _0x43c036;};return a156_0x31f1();}(function(_0x51c12e,_0x4b164c){const _0x33f1a8=a156_0x7257,_0x4c4ddc=_0x51c12e();while(!![]){try{const _0x402442=-parseInt(_0x33f1a8(0xbe))/0x1+-parseInt(_0x33f1a8(0xbb))/0x2+parseInt(_0x33f1a8(0xc2))/0x3*(-parseInt(_0x33f1a8(0xb5))/0x4)+parseInt(_0x33f1a8(0xaf))/0x5+-parseInt(_0x33f1a8(0xb2))/0x6+parseInt(_0x33f1a8(0xc5))/0x7*(parseInt(_0x33f1a8(0xc4))/0x8)+-parseInt(_0x33f1a8(0xc1))/0x9*(-parseInt(_0x33f1a8(0xbc))/0xa);if(_0x402442===_0x4b164c)break;else _0x4c4ddc['push'](_0x4c4ddc['shift']());}catch(_0x4fa681){_0x4c4ddc['push'](_0x4c4ddc['shift']());}}}(a156_0x31f1,0x9d932));import a156_0xc36a9e from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';function a156_0x7257(_0x12deae,_0x38bbb3){_0x12deae=_0x12deae-0xad;const _0x31f11b=a156_0x31f1();let _0x7257d3=_0x31f11b[_0x12deae];return _0x7257d3;}export function evaluateCliVersionPolicy(_0xf4507,_0x49951c){const _0x39fa2d=a156_0x7257,_0x389cc8=a156_0xc36a9e[_0x39fa2d(0xc3)](_0xf4507)===_0xf4507,_0x595719=_0x49951c?.[_0x39fa2d(0xc0)]??null,_0x30d713=_0x49951c?.[_0x39fa2d(0xb0)]??null,_0x4a0603=Boolean(_0x389cc8&&_0x595719&&a156_0xc36a9e['lt'](_0xf4507,_0x595719)),_0xb0bdf1=Boolean(_0x389cc8&&_0x30d713&&a156_0xc36a9e['lt'](_0xf4507,_0x30d713));return{'currentVersion':_0xf4507,'stableVersion':_0x595719,'minimumVersion':_0x30d713,'needsUpgrade':_0x4a0603||_0xb0bdf1,'belowMinimum':_0xb0bdf1,'upgradeMessage':_0x49951c?.[_0x39fa2d(0xba)],'minimumVersionMessage':_0x49951c?.['minimumVersionMessage']};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x5cdd0b){const _0x46f2f7=a156_0x7257;return _0x46f2f7(0xb1)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x5cdd0b[_0x46f2f7(0xc0)]??_0x46f2f7(0xbd));}export function assertCliVersionSupported(_0x4c680c){const _0x16d2ab=a156_0x7257;if(!_0x4c680c[_0x16d2ab(0xb8)])return;const _0x99eefd=[_0x4c680c['minimumVersionMessage'],_0x16d2ab(0xae)+_0x4c680c[_0x16d2ab(0xb4)],'Minimum\x20supported:\x20'+_0x4c680c[_0x16d2ab(0xb0)],_0x16d2ab(0xad)+(_0x4c680c[_0x16d2ab(0xc0)]??_0x16d2ab(0xb9)),_0x16d2ab(0xb3)+getCliUpgradeCommand(_0x4c680c)][_0x16d2ab(0xbf)](Boolean)[_0x16d2ab(0xb6)]('\x0a');throw CliErrors['validation'](_0x16d2ab(0xb7),_0x99eefd);}
@@ -1 +1 @@
1
- (function(_0x5a0aa4,_0x105893){const _0x3ca06d=a156_0x34b4,_0x10a4a2=_0x5a0aa4();while(!![]){try{const _0x5bab06=parseInt(_0x3ca06d(0x1f5))/0x1+parseInt(_0x3ca06d(0x1eb))/0x2+parseInt(_0x3ca06d(0x1ec))/0x3*(parseInt(_0x3ca06d(0x1f9))/0x4)+-parseInt(_0x3ca06d(0x1fe))/0x5*(parseInt(_0x3ca06d(0x1fc))/0x6)+-parseInt(_0x3ca06d(0x1f3))/0x7*(parseInt(_0x3ca06d(0x1e5))/0x8)+-parseInt(_0x3ca06d(0x1e8))/0x9+-parseInt(_0x3ca06d(0x1ed))/0xa*(parseInt(_0x3ca06d(0x1fd))/0xb);if(_0x5bab06===_0x105893)break;else _0x10a4a2['push'](_0x10a4a2['shift']());}catch(_0x1c64f9){_0x10a4a2['push'](_0x10a4a2['shift']());}}}(a156_0x2408,0xcf253));import a156_0x29a2e3 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(_0x52b437){const _0x1bbc8c=a156_0x34b4;return typeof _0x52b437===_0x1bbc8c(0x1e6)&&_0x52b437['trim']()?_0x52b437[_0x1bbc8c(0x1ea)]():null;}function pickStrictSemver(_0x29d0cb){const _0x5945ba=a156_0x34b4,_0x2a7184=pickString(_0x29d0cb);return _0x2a7184&&a156_0x29a2e3[_0x5945ba(0x1f6)](_0x2a7184)===_0x2a7184?_0x2a7184:null;}function a156_0x34b4(_0x312df0,_0x179219){_0x312df0=_0x312df0-0x1e4;const _0x240832=a156_0x2408();let _0x34b483=_0x240832[_0x312df0];return _0x34b483;}export function normalizeCliVersionPolicy(_0x1ed485){const _0x45feb6=a156_0x34b4;if(!_0x1ed485||typeof _0x1ed485!=='object')return null;const _0x516421=_0x1ed485,_0x48b569=_0x516421['cli']&&typeof _0x516421['cli']===_0x45feb6(0x1fb)?_0x516421[_0x45feb6(0x1e7)]:_0x516421,_0x3fccf9=pickStrictSemver(_0x48b569[_0x45feb6(0x1fa)]??_0x48b569['latestVersion']??_0x48b569[_0x45feb6(0x1f2)]),_0x461bac=pickStrictSemver(_0x48b569[_0x45feb6(0x1f7)]??_0x48b569[_0x45feb6(0x1e9)]);if(!_0x3fccf9&&!_0x461bac)return null;if(_0x3fccf9&&_0x461bac&&a156_0x29a2e3['gt'](_0x461bac,_0x3fccf9))return null;return{'stableVersion':_0x3fccf9,'minimumVersion':_0x461bac,'upgradeMessage':pickString(_0x48b569[_0x45feb6(0x1f0)])??undefined,'minimumVersionMessage':pickString(_0x48b569[_0x45feb6(0x1ee)])??undefined};}export async function fetchCliVersionPolicy(){const _0x1f144d=a156_0x34b4;try{const _0x3a4894=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x1f144d(0x1ef)},'signal':AbortSignal[_0x1f144d(0x1f4)](FETCH_TIMEOUT_MS)});if(!_0x3a4894['ok'])return null;return normalizeCliVersionPolicy(await _0x3a4894[_0x1f144d(0x1f1)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;function a156_0x2408(){const _0x205c25=['trim','2146026pfEsXu','5217HdxKuO','16390IXsZyY','minimumVersionMessage','application/json','upgradeMessage','json','recommendedVersion','287567BeeDZK','timeout','554537cwKxGv','valid','minimumVersion','now','3688IJLPcf','stableVersion','object','6syAvrp','836WmZvbk','3528815EvRCVK','then','208pwhuYY','string','cli','4356072GAGZZt','minVersion'];a156_0x2408=function(){return _0x205c25;};return a156_0x2408();}export async function getCliVersionPolicy(){const _0x3cabd1=a156_0x34b4,_0x47278d=Date[_0x3cabd1(0x1f8)]();if(hasCachedPolicy){const _0x1f749c=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x47278d-cachedAt<_0x1f749c)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x3cabd1(0x1e4)](_0x59dd28=>{const _0x9d36f8=_0x3cabd1;return cachedPolicy=_0x59dd28,cachedAt=Date[_0x9d36f8(0x1f8)](),hasCachedPolicy=!![],_0x59dd28;})['finally'](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
1
+ function a157_0x1ed5(){const _0x38e256=['latestVersion','1424632PSetOX','object','8348SZPKMD','string','2045FPVsXB','6mfYoRE','valid','stableVersion','finally','trim','cli','now','then','3067449bpSHHt','3659080SkoNTn','1059060bJotox','timeout','984130MgpLQH','330eGjDwU','299826IpmtCS','upgradeMessage','minVersion','recommendedVersion'];a157_0x1ed5=function(){return _0x38e256;};return a157_0x1ed5();}(function(_0x48fc08,_0x661b79){const _0x177232=a157_0x3cf4,_0xbfdf52=_0x48fc08();while(!![]){try{const _0x4510d1=-parseInt(_0x177232(0x127))/0x1+-parseInt(_0x177232(0x12e))/0x2+parseInt(_0x177232(0x13d))/0x3+-parseInt(_0x177232(0x130))/0x4*(-parseInt(_0x177232(0x132))/0x5)+-parseInt(_0x177232(0x133))/0x6*(parseInt(_0x177232(0x13b))/0x7)+parseInt(_0x177232(0x13c))/0x8+-parseInt(_0x177232(0x129))/0x9*(-parseInt(_0x177232(0x128))/0xa);if(_0x4510d1===_0x661b79)break;else _0xbfdf52['push'](_0xbfdf52['shift']());}catch(_0x4851f0){_0xbfdf52['push'](_0xbfdf52['shift']());}}}(a157_0x1ed5,0x997d9));import a157_0x20d751 from'semver';function a157_0x3cf4(_0xc406ba,_0x5e3778){_0xc406ba=_0xc406ba-0x126;const _0x1ed54d=a157_0x1ed5();let _0x3cf4f4=_0x1ed54d[_0xc406ba];return _0x3cf4f4;}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(_0x198127){const _0x4f14ea=a157_0x3cf4;return typeof _0x198127===_0x4f14ea(0x131)&&_0x198127['trim']()?_0x198127[_0x4f14ea(0x137)]():null;}function pickStrictSemver(_0x5ea50c){const _0x109bc2=a157_0x3cf4,_0x74f0=pickString(_0x5ea50c);return _0x74f0&&a157_0x20d751[_0x109bc2(0x134)](_0x74f0)===_0x74f0?_0x74f0:null;}export function normalizeCliVersionPolicy(_0x759ddf){const _0x28e771=a157_0x3cf4;if(!_0x759ddf||typeof _0x759ddf!==_0x28e771(0x12f))return null;const _0x570a8b=_0x759ddf,_0x3afbf2=_0x570a8b['cli']&&typeof _0x570a8b[_0x28e771(0x138)]===_0x28e771(0x12f)?_0x570a8b['cli']:_0x570a8b,_0x458b55=pickStrictSemver(_0x3afbf2[_0x28e771(0x135)]??_0x3afbf2[_0x28e771(0x12d)]??_0x3afbf2[_0x28e771(0x12c)]),_0x4d76e0=pickStrictSemver(_0x3afbf2['minimumVersion']??_0x3afbf2[_0x28e771(0x12b)]);if(!_0x458b55&&!_0x4d76e0)return null;if(_0x458b55&&_0x4d76e0&&a157_0x20d751['gt'](_0x4d76e0,_0x458b55))return null;return{'stableVersion':_0x458b55,'minimumVersion':_0x4d76e0,'upgradeMessage':pickString(_0x3afbf2[_0x28e771(0x12a)])??undefined,'minimumVersionMessage':pickString(_0x3afbf2['minimumVersionMessage'])??undefined};}export async function fetchCliVersionPolicy(){const _0x5b6d55=a157_0x3cf4;try{const _0x3af3b4=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal[_0x5b6d55(0x126)](FETCH_TIMEOUT_MS)});if(!_0x3af3b4['ok'])return null;return normalizeCliVersionPolicy(await _0x3af3b4['json']());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x2d9d33=a157_0x3cf4,_0x5c5e8a=Date[_0x2d9d33(0x139)]();if(hasCachedPolicy){const _0x26d8ea=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x5c5e8a-cachedAt<_0x26d8ea)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x2d9d33(0x13a)](_0x5a0f8f=>{const _0x538279=_0x2d9d33;return cachedPolicy=_0x5a0f8f,cachedAt=Date[_0x538279(0x139)](),hasCachedPolicy=!![],_0x5a0f8f;})[_0x2d9d33(0x136)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
@@ -1 +1 @@
1
- function a157_0x2557(_0x4bc3f,_0x2e679c){_0x4bc3f=_0x4bc3f-0x14d;const _0x889fe0=a157_0x889f();let _0x2557a3=_0x889fe0[_0x4bc3f];return _0x2557a3;}function a157_0x889f(){const _0xe78682=['filter','toISOString','dirname','273308vAmhJx','Failed\x20to\x20clear\x20logs:','format','now','error','setLogPath','duration','trim','15YhoBBI','804018vtMkCT','message','setRawCommand','writeFileSync','red','command','join','readFileSync','utf8','rawCommand','errors','addColors','Completed:\x20','logTask','winstonLogger','timestamp','map','4TLIRlg','split','Starting:\x20','stringify','getWinstonInstance','currentRawCommand','2355904HSsKpK','12ejZRuT','File','2420595vlCQIy','initWinstonLogger','parse','logFilePath','green','warn','info','Failed:\x20','logFileName','243128EmKWRk','3567560mRqgqM','yellow','clearLogs','success','82361PbnOjs','transports','existsSync'];a157_0x889f=function(){return _0xe78682;};return a157_0x889f();}const a157_0x14dde7=a157_0x2557;(function(_0x1457ee,_0x74278){const _0x19a614=a157_0x2557,_0xf8df50=_0x1457ee();while(!![]){try{const _0x30d0f1=parseInt(_0x19a614(0x175))/0x1*(parseInt(_0x19a614(0x15e))/0x2)+parseInt(_0x19a614(0x14d))/0x3+parseInt(_0x19a614(0x170))/0x4*(parseInt(_0x19a614(0x183))/0x5)+parseInt(_0x19a614(0x165))/0x6*(-parseInt(_0x19a614(0x17b))/0x7)+-parseInt(_0x19a614(0x164))/0x8+parseInt(_0x19a614(0x167))/0x9+-parseInt(_0x19a614(0x171))/0xa;if(_0x30d0f1===_0x74278)break;else _0xf8df50['push'](_0xf8df50['shift']());}catch(_0x333b5b){_0xf8df50['push'](_0xf8df50['shift']());}}}(a157_0x889f,0x25c49));import a157_0x1ceb56 from'winston';import a157_0xecfcef from'node:fs';import a157_0x518be4 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a157_0x14dde7(0x15b)];[a157_0x14dde7(0x16a)]='';[a157_0x14dde7(0x163)]='';constructor(){}[a157_0x14dde7(0x14f)](_0x3796e4){const _0x170621=a157_0x14dde7;this[_0x170621(0x163)]=_0x3796e4;}[a157_0x14dde7(0x180)](_0x4c3d42){const _0x8cb160=a157_0x14dde7;this[_0x8cb160(0x16a)]=a157_0x518be4[_0x8cb160(0x153)](_0x4c3d42,PRODUCT_CONFIG[_0x8cb160(0x16f)]),this[_0x8cb160(0x15b)]&&this[_0x8cb160(0x15b)]['clear'](),this[_0x8cb160(0x168)]();}['initWinstonLogger'](){const _0x162615=a157_0x14dde7,_0x525d8e=a157_0x518be4[_0x162615(0x17a)](this[_0x162615(0x16a)]);!a157_0xecfcef[_0x162615(0x177)](_0x525d8e)&&a157_0xecfcef['mkdirSync'](_0x525d8e,{'recursive':!![]});const _0x4da56b=a157_0x1ceb56[_0x162615(0x17d)]['combine'](a157_0x1ceb56[_0x162615(0x17d)]['timestamp'](),a157_0x1ceb56[_0x162615(0x17d)][_0x162615(0x157)]({'stack':!![]}),a157_0x1ceb56[_0x162615(0x17d)]['printf'](_0x5c4ae1=>{const _0x169725=_0x162615,_0x4fa872={'timestamp':_0x5c4ae1[_0x169725(0x15c)]||new Date()[_0x169725(0x179)](),'level':_0x5c4ae1['level']||'info','command':_0x5c4ae1[_0x169725(0x152)]||'unknown','rawCommand':_0x5c4ae1[_0x169725(0x156)]||this[_0x169725(0x163)]||undefined,'message':_0x5c4ae1[_0x169725(0x14e)]||'','duration':_0x5c4ae1[_0x169725(0x181)]||undefined,'details':_0x5c4ae1['details']||undefined};return JSON[_0x169725(0x161)](_0x4fa872);}));this[_0x162615(0x15b)]=a157_0x1ceb56['createLogger']({'level':_0x162615(0x16d),'format':_0x4da56b,'transports':[new a157_0x1ceb56[(_0x162615(0x176))][(_0x162615(0x166))]({'filename':this['logFilePath'],'level':_0x162615(0x16d)})],'silent':![]}),a157_0x1ceb56[_0x162615(0x158)]({'success':_0x162615(0x16b),'error':_0x162615(0x151),'warn':_0x162615(0x172),'info':'blue'});}[a157_0x14dde7(0x16d)](_0xb54ac8,_0xa4189d,_0x28e96c){const _0xd20517=a157_0x14dde7;if(!this[_0xd20517(0x16a)]||!this[_0xd20517(0x15b)])return;this[_0xd20517(0x15b)][_0xd20517(0x16d)](_0xa4189d,{'command':_0xb54ac8,'details':_0x28e96c});}['success'](_0xf69389,_0x5e01bd,_0x46af51,_0x4e51ee){const _0x1de6f8=a157_0x14dde7;if(!this[_0x1de6f8(0x16a)]||!this['winstonLogger'])return;this[_0x1de6f8(0x15b)]['log'](_0x1de6f8(0x16d),_0x5e01bd,{'level':_0x1de6f8(0x174),'command':_0xf69389,'duration':_0x46af51,'details':_0x4e51ee});}['error'](_0x4aa73a,_0x37a497,_0x20b902){const _0x1d903a=a157_0x14dde7;if(!this[_0x1d903a(0x16a)]||!this[_0x1d903a(0x15b)])return;this['winstonLogger'][_0x1d903a(0x17f)](_0x37a497,{'command':_0x4aa73a,'details':_0x20b902});}[a157_0x14dde7(0x16c)](_0x532e65,_0x17ea11,_0x453e67){const _0x3f43ce=a157_0x14dde7;if(!this[_0x3f43ce(0x16a)]||!this[_0x3f43ce(0x15b)])return;this[_0x3f43ce(0x15b)]['warn'](_0x17ea11,{'command':_0x532e65,'details':_0x453e67});}async[a157_0x14dde7(0x15a)](_0x5f4b16,_0x34c191,_0x144e73){const _0x4057f9=a157_0x14dde7,_0x4b3ad5=Date['now']();this[_0x4057f9(0x16d)](_0x5f4b16,_0x4057f9(0x160)+_0x34c191);try{const _0x396c6f=await _0x144e73(),_0x380d63=Date[_0x4057f9(0x17e)]()-_0x4b3ad5;return this['success'](_0x5f4b16,_0x4057f9(0x159)+_0x34c191,_0x380d63),_0x396c6f;}catch(_0x2b1e75){const _0x1f93b9=Date[_0x4057f9(0x17e)]()-_0x4b3ad5;this[_0x4057f9(0x17f)](_0x5f4b16,_0x4057f9(0x16e)+_0x34c191,{'error':_0x2b1e75 instanceof Error?_0x2b1e75['message']:String(_0x2b1e75),'duration':_0x1f93b9});throw _0x2b1e75;}}['readLogs'](){const _0x47459=a157_0x14dde7;try{if(!a157_0xecfcef[_0x47459(0x177)](this[_0x47459(0x16a)]))return[];const _0x16efbb=a157_0xecfcef[_0x47459(0x154)](this[_0x47459(0x16a)],_0x47459(0x155));return _0x16efbb[_0x47459(0x15f)](/\r?\n/)[_0x47459(0x178)](_0xf358ed=>_0xf358ed[_0x47459(0x182)]())[_0x47459(0x15d)](_0x478809=>JSON[_0x47459(0x169)](_0x478809));}catch(_0x2c34e0){return console['warn']('Failed\x20to\x20read\x20logs:',_0x2c34e0),[];}}[a157_0x14dde7(0x173)](){const _0x20db1d=a157_0x14dde7;try{a157_0xecfcef[_0x20db1d(0x177)](this[_0x20db1d(0x16a)])&&a157_0xecfcef[_0x20db1d(0x150)](this[_0x20db1d(0x16a)],'',_0x20db1d(0x155));}catch(_0x41fb61){console[_0x20db1d(0x16c)](_0x20db1d(0x17c),_0x41fb61);}}[a157_0x14dde7(0x162)](){const _0x4fa914=a157_0x14dde7;return this[_0x4fa914(0x15b)];}}export const logger=new Logger();
1
+ const a158_0x4eada8=a158_0x58ec;(function(_0x1bd971,_0x1bdfcb){const _0xfc5b97=a158_0x58ec,_0x579aab=_0x1bd971();while(!![]){try{const _0x47291d=parseInt(_0xfc5b97(0xaa))/0x1*(-parseInt(_0xfc5b97(0xa2))/0x2)+parseInt(_0xfc5b97(0xa5))/0x3*(-parseInt(_0xfc5b97(0xb2))/0x4)+parseInt(_0xfc5b97(0xb5))/0x5*(parseInt(_0xfc5b97(0x98))/0x6)+parseInt(_0xfc5b97(0xab))/0x7+parseInt(_0xfc5b97(0xb6))/0x8+-parseInt(_0xfc5b97(0xc0))/0x9*(-parseInt(_0xfc5b97(0xba))/0xa)+parseInt(_0xfc5b97(0x9f))/0xb*(-parseInt(_0xfc5b97(0xa3))/0xc);if(_0x47291d===_0x1bdfcb)break;else _0x579aab['push'](_0x579aab['shift']());}catch(_0x3bdffc){_0x579aab['push'](_0x579aab['shift']());}}}(a158_0x448e,0x260d5));function a158_0x58ec(_0x49be7f,_0x1dce54){_0x49be7f=_0x49be7f-0x97;const _0x448eaf=a158_0x448e();let _0x58ecc7=_0x448eaf[_0x49be7f];return _0x58ecc7;}import a158_0x21357f from'winston';import a158_0x1aa233 from'node:fs';import a158_0x2a0364 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a158_0x448e(){const _0x4fb94b=['warn','message','initWinstonLogger','errors','yellow','blue','clear','details','log','green','printf','178932EKlMAF','filter','timestamp','logTask','join','parse','Completed:\x20','11sdnjVi','level','Failed\x20to\x20clear\x20logs:','94880lQprIl','5750952bikcaU','now','336RWmJxH','combine','command','info','transports','1TxEOhB','1497867kLpFxr','File','utf8','Starting:\x20','Failed:\x20','trim','existsSync','4036uAKbsL','unknown','logFilePath','30eokIVm','1532504BJFnnL','readLogs','clearLogs','currentRawCommand','10cQpgwO','readFileSync','duration','addColors','winstonLogger','error','1899711joJdoL','success','format','Failed\x20to\x20read\x20logs:','writeFileSync','mkdirSync','split','logFileName'];a158_0x448e=function(){return _0x4fb94b;};return a158_0x448e();}class Logger{[a158_0x4eada8(0xbe)];[a158_0x4eada8(0xb4)]='';['currentRawCommand']='';constructor(){}['setRawCommand'](_0x1e3a7f){const _0xd3e508=a158_0x4eada8;this[_0xd3e508(0xb9)]=_0x1e3a7f;}['setLogPath'](_0x132232){const _0x16237c=a158_0x4eada8;this[_0x16237c(0xb4)]=a158_0x2a0364[_0x16237c(0x9c)](_0x132232,PRODUCT_CONFIG[_0x16237c(0xc7)]),this[_0x16237c(0xbe)]&&this[_0x16237c(0xbe)][_0x16237c(0xce)](),this[_0x16237c(0xca)]();}[a158_0x4eada8(0xca)](){const _0x3f948a=a158_0x4eada8,_0x46d8e6=a158_0x2a0364['dirname'](this[_0x3f948a(0xb4)]);!a158_0x1aa233[_0x3f948a(0xb1)](_0x46d8e6)&&a158_0x1aa233[_0x3f948a(0xc5)](_0x46d8e6,{'recursive':!![]});const _0x35e07d=a158_0x21357f['format'][_0x3f948a(0xa6)](a158_0x21357f[_0x3f948a(0xc2)][_0x3f948a(0x9a)](),a158_0x21357f[_0x3f948a(0xc2)][_0x3f948a(0xcb)]({'stack':!![]}),a158_0x21357f[_0x3f948a(0xc2)][_0x3f948a(0x97)](_0x290b0d=>{const _0x267319=_0x3f948a,_0x26b0f4={'timestamp':_0x290b0d[_0x267319(0x9a)]||new Date()['toISOString'](),'level':_0x290b0d[_0x267319(0xa0)]||_0x267319(0xa8),'command':_0x290b0d[_0x267319(0xa7)]||_0x267319(0xb3),'rawCommand':_0x290b0d['rawCommand']||this['currentRawCommand']||undefined,'message':_0x290b0d[_0x267319(0xc9)]||'','duration':_0x290b0d[_0x267319(0xbc)]||undefined,'details':_0x290b0d[_0x267319(0xcf)]||undefined};return JSON['stringify'](_0x26b0f4);}));this[_0x3f948a(0xbe)]=a158_0x21357f['createLogger']({'level':'info','format':_0x35e07d,'transports':[new a158_0x21357f[(_0x3f948a(0xa9))][(_0x3f948a(0xac))]({'filename':this[_0x3f948a(0xb4)],'level':_0x3f948a(0xa8)})],'silent':![]}),a158_0x21357f[_0x3f948a(0xbd)]({'success':_0x3f948a(0xd1),'error':'red','warn':_0x3f948a(0xcc),'info':_0x3f948a(0xcd)});}[a158_0x4eada8(0xa8)](_0x29424a,_0x2acc0e,_0x4b301e){const _0x5a6c88=a158_0x4eada8;if(!this['logFilePath']||!this[_0x5a6c88(0xbe)])return;this[_0x5a6c88(0xbe)][_0x5a6c88(0xa8)](_0x2acc0e,{'command':_0x29424a,'details':_0x4b301e});}['success'](_0x171615,_0xd41b59,_0x53a2cb,_0x1530d4){const _0x5bcebd=a158_0x4eada8;if(!this['logFilePath']||!this[_0x5bcebd(0xbe)])return;this['winstonLogger'][_0x5bcebd(0xd0)](_0x5bcebd(0xa8),_0xd41b59,{'level':_0x5bcebd(0xc1),'command':_0x171615,'duration':_0x53a2cb,'details':_0x1530d4});}['error'](_0x4561de,_0x1b6803,_0x42815){const _0xcabae=a158_0x4eada8;if(!this[_0xcabae(0xb4)]||!this[_0xcabae(0xbe)])return;this['winstonLogger'][_0xcabae(0xbf)](_0x1b6803,{'command':_0x4561de,'details':_0x42815});}[a158_0x4eada8(0xc8)](_0x38b278,_0x15e966,_0x51acbc){const _0x26fbe3=a158_0x4eada8;if(!this[_0x26fbe3(0xb4)]||!this[_0x26fbe3(0xbe)])return;this[_0x26fbe3(0xbe)][_0x26fbe3(0xc8)](_0x15e966,{'command':_0x38b278,'details':_0x51acbc});}async[a158_0x4eada8(0x9b)](_0x43e9de,_0x3baca0,_0xbfecb2){const _0x34350f=a158_0x4eada8,_0x379a0d=Date[_0x34350f(0xa4)]();this[_0x34350f(0xa8)](_0x43e9de,_0x34350f(0xae)+_0x3baca0);try{const _0x1d07d3=await _0xbfecb2(),_0x56e854=Date[_0x34350f(0xa4)]()-_0x379a0d;return this[_0x34350f(0xc1)](_0x43e9de,_0x34350f(0x9e)+_0x3baca0,_0x56e854),_0x1d07d3;}catch(_0x3f13ec){const _0x4d1b85=Date['now']()-_0x379a0d;this[_0x34350f(0xbf)](_0x43e9de,_0x34350f(0xaf)+_0x3baca0,{'error':_0x3f13ec instanceof Error?_0x3f13ec['message']:String(_0x3f13ec),'duration':_0x4d1b85});throw _0x3f13ec;}}[a158_0x4eada8(0xb7)](){const _0x15df57=a158_0x4eada8;try{if(!a158_0x1aa233[_0x15df57(0xb1)](this['logFilePath']))return[];const _0x183550=a158_0x1aa233[_0x15df57(0xbb)](this['logFilePath'],_0x15df57(0xad));return _0x183550[_0x15df57(0xc6)](/\r?\n/)[_0x15df57(0x99)](_0x10d3ef=>_0x10d3ef[_0x15df57(0xb0)]())['map'](_0x1cbd56=>JSON[_0x15df57(0x9d)](_0x1cbd56));}catch(_0x2ea0c0){return console['warn'](_0x15df57(0xc3),_0x2ea0c0),[];}}[a158_0x4eada8(0xb8)](){const _0x14edd8=a158_0x4eada8;try{a158_0x1aa233[_0x14edd8(0xb1)](this['logFilePath'])&&a158_0x1aa233[_0x14edd8(0xc4)](this[_0x14edd8(0xb4)],'',_0x14edd8(0xad));}catch(_0x16ef60){console[_0x14edd8(0xc8)](_0x14edd8(0xa1),_0x16ef60);}}['getWinstonInstance'](){const _0x5476fc=a158_0x4eada8;return this[_0x5476fc(0xbe)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- const a158_0x51a8d6=a158_0x2f78;(function(_0x51f351,_0x3871a0){const _0x41f33d=a158_0x2f78,_0x7023f3=_0x51f351();while(!![]){try{const _0x5010ed=parseInt(_0x41f33d(0x16c))/0x1+parseInt(_0x41f33d(0x166))/0x2*(parseInt(_0x41f33d(0x164))/0x3)+parseInt(_0x41f33d(0x15a))/0x4*(-parseInt(_0x41f33d(0x15d))/0x5)+parseInt(_0x41f33d(0x15f))/0x6+parseInt(_0x41f33d(0x16a))/0x7+-parseInt(_0x41f33d(0x168))/0x8+-parseInt(_0x41f33d(0x161))/0x9*(-parseInt(_0x41f33d(0x169))/0xa);if(_0x5010ed===_0x3871a0)break;else _0x7023f3['push'](_0x7023f3['shift']());}catch(_0x4869fe){_0x7023f3['push'](_0x7023f3['shift']());}}}(a158_0x2455,0x661e0));function a158_0x2455(){const _0x1f9148=['includes','length','64545MLdqmb','MAX_SAFE_INTEGER','2nXdLkG','getOwnPropertyDescriptor','1385648yVVsvn','10eNthhf','2982987IQesgy','parse','71592RGXsSY','json','undefined','1500244tTOrDq','defineProperty','MIN_SAFE_INTEGER','10EiSvXO','slice','1958382plKVtH','exec','4463595vZJUyh'];a158_0x2455=function(){return _0x1f9148;};return a158_0x2455();}const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a158_0x51a8d6(0x165)]),MIN_SAFE_INTEGER=BigInt(Number[a158_0x51a8d6(0x15c)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x8395b5){const _0x369981=a158_0x51a8d6;if(_0x8395b5['includes']('.')||_0x8395b5[_0x369981(0x162)]('e')||_0x8395b5[_0x369981(0x162)]('E'))return![];const _0x37060b=BigInt(_0x8395b5);return _0x37060b>MAX_SAFE_INTEGER||_0x37060b<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x538f19){const _0x5926d2=a158_0x51a8d6;let _0x5360dd='',_0x44197d=![],_0x3ccf19=![];for(let _0xb7a89c=0x0;_0xb7a89c<_0x538f19[_0x5926d2(0x163)];){const _0x175bec=_0x538f19[_0xb7a89c];if(_0x44197d){_0x5360dd+=_0x175bec,_0xb7a89c+=0x1;if(_0x3ccf19)_0x3ccf19=![];else{if(_0x175bec==='\x5c')_0x3ccf19=!![];else _0x175bec==='\x22'&&(_0x44197d=![]);}continue;}if(_0x175bec==='\x22'){_0x44197d=!![],_0x5360dd+=_0x175bec,_0xb7a89c+=0x1;continue;}if(_0x175bec==='-'||_0x175bec>='0'&&_0x175bec<='9'){const _0x1842e9=JSON_NUMBER_PATTERN[_0x5926d2(0x160)](_0x538f19[_0x5926d2(0x15e)](_0xb7a89c))?.[0x0];if(_0x1842e9){_0x5360dd+=isUnsafeIntegerLiteral(_0x1842e9)?'\x22'+_0x1842e9+'\x22':_0x1842e9,_0xb7a89c+=_0x1842e9[_0x5926d2(0x163)];continue;}}_0x5360dd+=_0x175bec,_0xb7a89c+=0x1;}return _0x5360dd;}function a158_0x2f78(_0x4e6340,_0x43990a){_0x4e6340=_0x4e6340-0x15a;const _0x24550b=a158_0x2455();let _0x2f7808=_0x24550b[_0x4e6340];return _0x2f7808;}export function parseLosslessJson(_0x9be0f8){const _0x4133d7=a158_0x51a8d6;return JSON[_0x4133d7(0x16b)](quoteUnsafeIntegerLiterals(_0x9be0f8));}export function installLosslessJsonResponseParser(){const _0x2d8a11=a158_0x51a8d6;if(typeof Response===_0x2d8a11(0x16e))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object[_0x2d8a11(0x167)](responseJsonPrototype,_0x2d8a11(0x16d)),Object[_0x2d8a11(0x15b)](responseJsonPrototype,_0x2d8a11(0x16d),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0xd56003(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x48c9c0=_0x2d8a11;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x48c9c0(0x15b)](responseJsonPrototype,_0x48c9c0(0x16d),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x48c9c0(0x16d)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ function a159_0x6870(_0x114042,_0x17e8e9){_0x114042=_0x114042-0xd8;const _0x572e2a=a159_0x572e();let _0x6870fa=_0x572e2a[_0x114042];return _0x6870fa;}const a159_0x48fc3d=a159_0x6870;(function(_0x4b096f,_0x5507f8){const _0x140d14=a159_0x6870,_0x506bef=_0x4b096f();while(!![]){try{const _0x5b279a=parseInt(_0x140d14(0xe5))/0x1+-parseInt(_0x140d14(0xea))/0x2*(parseInt(_0x140d14(0xe8))/0x3)+-parseInt(_0x140d14(0xe0))/0x4*(-parseInt(_0x140d14(0xd8))/0x5)+-parseInt(_0x140d14(0xe3))/0x6+parseInt(_0x140d14(0xe6))/0x7*(-parseInt(_0x140d14(0xdc))/0x8)+parseInt(_0x140d14(0xdd))/0x9+parseInt(_0x140d14(0xe4))/0xa;if(_0x5b279a===_0x5507f8)break;else _0x506bef['push'](_0x506bef['shift']());}catch(_0x37b501){_0x506bef['push'](_0x506bef['shift']());}}}(a159_0x572e,0x48b82));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a159_0x48fc3d(0xe7)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0xdbaa6){const _0x5ab329=a159_0x48fc3d;if(_0xdbaa6['includes']('.')||_0xdbaa6[_0x5ab329(0xde)]('e')||_0xdbaa6[_0x5ab329(0xde)]('E'))return![];const _0x48f7a7=BigInt(_0xdbaa6);return _0x48f7a7>MAX_SAFE_INTEGER||_0x48f7a7<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x5d2a34){const _0x536127=a159_0x48fc3d;let _0x570941='',_0x396041=![],_0x2fe24d=![];for(let _0x1bebd7=0x0;_0x1bebd7<_0x5d2a34[_0x536127(0xda)];){const _0x26a058=_0x5d2a34[_0x1bebd7];if(_0x396041){_0x570941+=_0x26a058,_0x1bebd7+=0x1;if(_0x2fe24d)_0x2fe24d=![];else{if(_0x26a058==='\x5c')_0x2fe24d=!![];else _0x26a058==='\x22'&&(_0x396041=![]);}continue;}if(_0x26a058==='\x22'){_0x396041=!![],_0x570941+=_0x26a058,_0x1bebd7+=0x1;continue;}if(_0x26a058==='-'||_0x26a058>='0'&&_0x26a058<='9'){const _0x138696=JSON_NUMBER_PATTERN[_0x536127(0xe2)](_0x5d2a34[_0x536127(0xdb)](_0x1bebd7))?.[0x0];if(_0x138696){_0x570941+=isUnsafeIntegerLiteral(_0x138696)?'\x22'+_0x138696+'\x22':_0x138696,_0x1bebd7+=_0x138696['length'];continue;}}_0x570941+=_0x26a058,_0x1bebd7+=0x1;}return _0x570941;}export function parseLosslessJson(_0x3433b0){const _0x557629=a159_0x48fc3d;return JSON[_0x557629(0xe1)](quoteUnsafeIntegerLiterals(_0x3433b0));}function a159_0x572e(){const _0x314577=['parse','exec','3285918XBTOcJ','5597520LIIqcw','246062zraVft','1627199klJfae','MIN_SAFE_INTEGER','44751DrUNMC','getOwnPropertyDescriptor','24WdsVua','prototype','undefined','text','4075ONDRml','json','length','slice','16jjmsSO','3086505gKRNQS','includes','defineProperty','1672zKrZjH'];a159_0x572e=function(){return _0x314577;};return a159_0x572e();}export function installLosslessJsonResponseParser(){const _0x1491fe=a159_0x48fc3d;if(typeof Response===_0x1491fe(0xec))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x1491fe(0xeb)],originalResponseJsonDescriptor=Object[_0x1491fe(0xe9)](responseJsonPrototype,_0x1491fe(0xd9)),Object[_0x1491fe(0xdf)](responseJsonPrototype,_0x1491fe(0xd9),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x278a1e(){const _0x1c4978=_0x1491fe;return parseLosslessJson(await this[_0x1c4978(0xed)]());}}),restoreResponseJsonParser=()=>{const _0x38a41a=_0x1491fe;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x38a41a(0xdf)](responseJsonPrototype,_0x38a41a(0xd9),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
@@ -1 +1 @@
1
- (function(_0x2338d3,_0x5390f7){const _0x51a685=a159_0x5012,_0x4b6aea=_0x2338d3();while(!![]){try{const _0xf703dc=parseInt(_0x51a685(0xb3))/0x1*(parseInt(_0x51a685(0xc8))/0x2)+-parseInt(_0x51a685(0xbd))/0x3+-parseInt(_0x51a685(0xb8))/0x4+parseInt(_0x51a685(0xba))/0x5+parseInt(_0x51a685(0xc7))/0x6*(parseInt(_0x51a685(0xb0))/0x7)+parseInt(_0x51a685(0xb1))/0x8+-parseInt(_0x51a685(0xc2))/0x9*(parseInt(_0x51a685(0xc6))/0xa);if(_0xf703dc===_0x5390f7)break;else _0x4b6aea['push'](_0x4b6aea['shift']());}catch(_0x5d5e3e){_0x4b6aea['push'](_0x4b6aea['shift']());}}}(a159_0x58a8,0x729ba));function a159_0x58a8(){const _0x4d2df4=['5271640WWjlFi','string','473561fJbuXj','map','object','join','data\x20update\x20--params.','992552QiTIlc','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','3486385GsLTqp','data\x20update\x20can\x20update\x20at\x20most\x20','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','1185222zVpoEo','Invalid\x20JSON\x20for\x20--params:\x20','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','id[','isSafeInteger','9YgWjBp','test','validation','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','16529970xvkEIk','1123020rdgnUz','2AAIMSA','\x20records\x20per\x20call;\x20received\x20','isArray','length','items','35aQcVtd'];a159_0x58a8=function(){return _0x4d2df4;};return a159_0x58a8();}import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x332ab0){const _0x43438c=a159_0x5012;if(!_0x332ab0)return undefined;try{return parseLosslessJson(_0x332ab0);}catch{throw CliErrors[_0x43438c(0xc4)](_0x43438c(0xbe)+_0x332ab0);}}export function parseJsonParamsValue(_0x506446){const _0x177e30=a159_0x5012;if(!_0x506446)return undefined;try{return parseLosslessJson(_0x506446);}catch{throw CliErrors[_0x177e30(0xc4)](_0x177e30(0xbe)+_0x506446);}}export function parseBatchCreateItemsFromParams(_0x1d4f3d){const _0x52e0c4=a159_0x5012;if(Array['isArray'](_0x1d4f3d))return _0x1d4f3d;if(_0x1d4f3d!==null&&_0x1d4f3d!==undefined&&typeof _0x1d4f3d===_0x52e0c4(0xb5)&&Array[_0x52e0c4(0xad)](_0x1d4f3d[_0x52e0c4(0xaf)]))return _0x1d4f3d[_0x52e0c4(0xaf)];throw CliErrors[_0x52e0c4(0xc4)](_0x52e0c4(0xb9),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x30e0d6,_0x44118d){const _0x3ea4b4=a159_0x5012;if(typeof _0x30e0d6==='number'&&Number[_0x3ea4b4(0xc1)](_0x30e0d6)&&_0x30e0d6>0x0)return _0x30e0d6;if(typeof _0x30e0d6===_0x3ea4b4(0xb2)){if(/^[1-9]\d*$/[_0x3ea4b4(0xc3)](_0x30e0d6))return _0x30e0d6;}throw CliErrors[_0x3ea4b4(0xc4)](_0x3ea4b4(0xb7)+_0x44118d+_0x3ea4b4(0xbc));}export function parseUpdateIdsFromParams(_0x34f544){const _0x1345ab=a159_0x5012;if(_0x34f544===null||_0x34f544===undefined||typeof _0x34f544!=='object'||Array['isArray'](_0x34f544))throw CliErrors['validation']('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x1345ab(0xc5));const _0x2e4be3=_0x34f544['id'];if(_0x2e4be3===undefined||_0x2e4be3===null)throw CliErrors[_0x1345ab(0xc4)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x1345ab(0xc5));const _0x1ac81d=Array[_0x1345ab(0xad)](_0x2e4be3)?_0x2e4be3:[_0x2e4be3];if(_0x1ac81d[_0x1345ab(0xae)]===0x0)throw CliErrors[_0x1345ab(0xc4)](_0x1345ab(0xbf));if(_0x1ac81d[_0x1345ab(0xae)]>MAX_DATA_UPDATE_IDS)throw CliErrors['validation'](_0x1345ab(0xbb)+MAX_DATA_UPDATE_IDS+_0x1345ab(0xc9)+_0x1ac81d[_0x1345ab(0xae)]+'.');return _0x1ac81d[_0x1345ab(0xb4)]((_0x55021c,_0x241dd8)=>parseDataUpdateId(_0x55021c,Array[_0x1345ab(0xad)](_0x2e4be3)?_0x1345ab(0xc0)+_0x241dd8+']':'id'));}function a159_0x5012(_0x478067,_0x520336){_0x478067=_0x478067-0xad;const _0x58a8eb=a159_0x58a8();let _0x50129a=_0x58a8eb[_0x478067];return _0x50129a;}export function normalizeUpdateParamsForRuntime(_0x55a822,_0x25d805){const _0x44de07=a159_0x5012;if(Array[_0x44de07(0xad)](_0x55a822['id'])&&_0x25d805[_0x44de07(0xae)]>0x1)return{..._0x55a822,'id':_0x25d805[_0x44de07(0xb6)](',')};return _0x55a822;}
1
+ (function(_0x552ca8,_0x40cec7){const _0x35a570=a160_0x3f58,_0x22ac02=_0x552ca8();while(!![]){try{const _0x362978=-parseInt(_0x35a570(0x15f))/0x1+parseInt(_0x35a570(0x158))/0x2+parseInt(_0x35a570(0x16c))/0x3*(-parseInt(_0x35a570(0x16e))/0x4)+parseInt(_0x35a570(0x15e))/0x5+-parseInt(_0x35a570(0x167))/0x6*(-parseInt(_0x35a570(0x165))/0x7)+-parseInt(_0x35a570(0x161))/0x8+parseInt(_0x35a570(0x164))/0x9*(parseInt(_0x35a570(0x168))/0xa);if(_0x362978===_0x40cec7)break;else _0x22ac02['push'](_0x22ac02['shift']());}catch(_0x10b6f3){_0x22ac02['push'](_0x22ac02['shift']());}}}(a160_0x10cc,0x8b560));import{CliErrors}from'../errors.js';function a160_0x3f58(_0x64ffa8,_0x5f599e){_0x64ffa8=_0x64ffa8-0x156;const _0x10cc30=a160_0x10cc();let _0x3f5896=_0x10cc30[_0x64ffa8];return _0x3f5896;}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x20524e){const _0x2b4ff8=a160_0x3f58;if(!_0x20524e)return undefined;try{return parseLosslessJson(_0x20524e);}catch{throw CliErrors['validation'](_0x2b4ff8(0x166)+_0x20524e);}}function a160_0x10cc(){const _0x4b19c8=['data\x20update\x20can\x20update\x20at\x20most\x20','isArray','66RSUfjy','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','156652jXojKy','validation','items','object','data\x20update\x20--params.','1285120ZJtDus','length','number','map','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','join','4430735BBtDDC','749240qVerhQ','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','1913368fGswYC','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','isSafeInteger','9GwGwLe','423962eFTVGA','Invalid\x20JSON\x20for\x20--params:\x20','36RBmeOU','5286140uiQAhw','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.'];a160_0x10cc=function(){return _0x4b19c8;};return a160_0x10cc();}export function parseJsonParamsValue(_0x189074){const _0x478887=a160_0x3f58;if(!_0x189074)return undefined;try{return parseLosslessJson(_0x189074);}catch{throw CliErrors[_0x478887(0x16f)](_0x478887(0x166)+_0x189074);}}export function parseBatchCreateItemsFromParams(_0x4fa6d6){const _0x5b61d1=a160_0x3f58;if(Array[_0x5b61d1(0x16b)](_0x4fa6d6))return _0x4fa6d6;if(_0x4fa6d6!==null&&_0x4fa6d6!==undefined&&typeof _0x4fa6d6===_0x5b61d1(0x156)&&Array[_0x5b61d1(0x16b)](_0x4fa6d6[_0x5b61d1(0x170)]))return _0x4fa6d6[_0x5b61d1(0x170)];throw CliErrors[_0x5b61d1(0x16f)](_0x5b61d1(0x15c),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x2f167e,_0x2ed40a){const _0x58ae83=a160_0x3f58;if(typeof _0x2f167e===_0x58ae83(0x15a)&&Number[_0x58ae83(0x163)](_0x2f167e)&&_0x2f167e>0x0)return _0x2f167e;if(typeof _0x2f167e==='string'){if(/^[1-9]\d*$/['test'](_0x2f167e))return _0x2f167e;}throw CliErrors[_0x58ae83(0x16f)](_0x58ae83(0x157)+_0x2ed40a+_0x58ae83(0x162));}export function parseUpdateIdsFromParams(_0x1a69bc){const _0x42bb5f=a160_0x3f58;if(_0x1a69bc===null||_0x1a69bc===undefined||typeof _0x1a69bc!==_0x42bb5f(0x156)||Array[_0x42bb5f(0x16b)](_0x1a69bc))throw CliErrors[_0x42bb5f(0x16f)](_0x42bb5f(0x16d),_0x42bb5f(0x160));const _0x21d011=_0x1a69bc['id'];if(_0x21d011===undefined||_0x21d011===null)throw CliErrors[_0x42bb5f(0x16f)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x42bb5f(0x160));const _0x508325=Array[_0x42bb5f(0x16b)](_0x21d011)?_0x21d011:[_0x21d011];if(_0x508325[_0x42bb5f(0x159)]===0x0)throw CliErrors[_0x42bb5f(0x16f)](_0x42bb5f(0x169));if(_0x508325[_0x42bb5f(0x159)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x42bb5f(0x16f)](_0x42bb5f(0x16a)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x508325[_0x42bb5f(0x159)]+'.');return _0x508325[_0x42bb5f(0x15b)]((_0x17067c,_0x52b63b)=>parseDataUpdateId(_0x17067c,Array[_0x42bb5f(0x16b)](_0x21d011)?'id['+_0x52b63b+']':'id'));}export function normalizeUpdateParamsForRuntime(_0xc4177e,_0x569fad){const _0x146940=a160_0x3f58;if(Array['isArray'](_0xc4177e['id'])&&_0x569fad['length']>0x1)return{..._0xc4177e,'id':_0x569fad[_0x146940(0x15d)](',')};return _0xc4177e;}
@@ -1 +1 @@
1
- function a160_0x10db(_0x55c0e3,_0x2cf782){_0x55c0e3=_0x55c0e3-0x121;const _0x4faecb=a160_0x4fae();let _0x10db75=_0x4faecb[_0x55c0e3];return _0x10db75;}function a160_0x4fae(){const _0x91a5f5=['1GfaSTH','2954954ExeoYv','25BLKlLs','13093713bFkUnM','platform','9552pbXuyz','.cmd','3896526uROZzF','5873LAyrdP','win32','977152UuuPJR','806524vuBCBJ','615591CRKrlH','190xFUQWH'];a160_0x4fae=function(){return _0x91a5f5;};return a160_0x4fae();}const a160_0x51f370=a160_0x10db;(function(_0x1b45fb,_0x3743e3){const _0x4a3b63=a160_0x10db,_0x5813ad=_0x1b45fb();while(!![]){try{const _0x1b8bcd=parseInt(_0x4a3b63(0x12a))/0x1*(parseInt(_0x4a3b63(0x12b))/0x2)+-parseInt(_0x4a3b63(0x128))/0x3+parseInt(_0x4a3b63(0x127))/0x4*(-parseInt(_0x4a3b63(0x12c))/0x5)+-parseInt(_0x4a3b63(0x123))/0x6+parseInt(_0x4a3b63(0x124))/0x7*(parseInt(_0x4a3b63(0x121))/0x8)+-parseInt(_0x4a3b63(0x12d))/0x9+-parseInt(_0x4a3b63(0x129))/0xa*(-parseInt(_0x4a3b63(0x126))/0xb);if(_0x1b8bcd===_0x3743e3)break;else _0x5813ad['push'](_0x5813ad['shift']());}catch(_0x1ce417){_0x5813ad['push'](_0x5813ad['shift']());}}}(a160_0x4fae,0xcf60d));export const isWindows=process[a160_0x51f370(0x12e)]===a160_0x51f370(0x125);export function resolveNpmBin(_0x215cc5){const _0x15e9b5=a160_0x51f370;return isWindows?_0x215cc5+_0x15e9b5(0x122):_0x215cc5;}
1
+ const a161_0x324350=a161_0x35b2;(function(_0x55da17,_0x5d4770){const _0x484e07=a161_0x35b2,_0x110bed=_0x55da17();while(!![]){try{const _0x5928eb=parseInt(_0x484e07(0x97))/0x1+parseInt(_0x484e07(0x9c))/0x2*(-parseInt(_0x484e07(0x9e))/0x3)+-parseInt(_0x484e07(0x9f))/0x4+-parseInt(_0x484e07(0x96))/0x5*(parseInt(_0x484e07(0x95))/0x6)+-parseInt(_0x484e07(0x9a))/0x7+parseInt(_0x484e07(0x94))/0x8*(-parseInt(_0x484e07(0x9b))/0x9)+parseInt(_0x484e07(0x99))/0xa;if(_0x5928eb===_0x5d4770)break;else _0x110bed['push'](_0x110bed['shift']());}catch(_0x3f8b66){_0x110bed['push'](_0x110bed['shift']());}}}(a161_0x3905,0x80fc4));export const isWindows=process['platform']===a161_0x324350(0x98);function a161_0x35b2(_0x3d8012,_0x1098e8){_0x3d8012=_0x3d8012-0x94;const _0x3905cf=a161_0x3905();let _0x35b205=_0x3905cf[_0x3d8012];return _0x35b205;}export function resolveNpmBin(_0x3699de){const _0x1eb8ac=a161_0x324350;return isWindows?_0x3699de+_0x1eb8ac(0x9d):_0x3699de;}function a161_0x3905(){const _0x3e3a3a=['10gMuhEV','714434deCwAj','win32','21043440skrvyQ','31899fxVHaK','1988982wnVmgL','100306bjTQjp','.cmd','15wUPohg','3359648IcZuQB','8llrQDg','2922666UBWOVX'];a161_0x3905=function(){return _0x3e3a3a;};return a161_0x3905();}
@@ -1 +1 @@
1
- (function(_0x117974,_0x436a31){const _0x2281fb=a161_0x4161,_0x64ecb=_0x117974();while(!![]){try{const _0x4c4e40=-parseInt(_0x2281fb(0xe6))/0x1+parseInt(_0x2281fb(0xe9))/0x2+-parseInt(_0x2281fb(0xcf))/0x3+-parseInt(_0x2281fb(0xe8))/0x4+parseInt(_0x2281fb(0xe1))/0x5*(-parseInt(_0x2281fb(0xd9))/0x6)+parseInt(_0x2281fb(0xde))/0x7*(parseInt(_0x2281fb(0xe7))/0x8)+-parseInt(_0x2281fb(0xd7))/0x9*(-parseInt(_0x2281fb(0xe4))/0xa);if(_0x4c4e40===_0x436a31)break;else _0x64ecb['push'](_0x64ecb['shift']());}catch(_0xb95d4a){_0x64ecb['push'](_0x64ecb['shift']());}}}(a161_0x57ee,0x54d10));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a161_0x57ee(){const _0x31bc9d=['391344iIzvAB','1314804CdHjIs','lastNotifiedAt','update-check.json','1892412nRsXMy','toLowerCase','filter','object','.cache','join','stableVersion','\x20is\x20recommended,\x20current\x20','9566190nxVBHv','lastNotifiedVersion','96tfsWNH','https://www.npmjs.com/package/','lovrabet-cli','belowMinimum','needsUpgrade','2058aIFAhu','yes','trim','215980bzlUdo','utf8','parse','10qedNca','stringify','49854Plshvq','2632ivNWWp'];a161_0x57ee=function(){return _0x31bc9d;};return a161_0x57ee();}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 _0x5a54fb=a161_0x4161,_0x3fac51=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x5a54fb(0xe0)]()[_0x5a54fb(0xd0)]();return _0x3fac51==='1'||_0x3fac51==='true'||_0x3fac51===_0x5a54fb(0xdf);}function cacheRoot(){const _0xa3dc62=a161_0x4161;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xa3dc62(0xd3));}export function getUpdateNoticeCachePath(){const _0x1003b8=a161_0x4161;return join(cacheRoot(),_0x1003b8(0xdb),_0x1003b8(0xce));}function a161_0x4161(_0x315b21,_0x43c0e6){_0x315b21=_0x315b21-0xce;const _0x57eeba=a161_0x57ee();let _0x416180=_0x57eeba[_0x315b21];return _0x416180;}async function readUpdateNoticeCache(){const _0xf611c3=a161_0x4161;try{const _0x1e2ba0=await readFile(getUpdateNoticeCachePath(),_0xf611c3(0xe2)),_0x757b6f=JSON[_0xf611c3(0xe3)](_0x1e2ba0);if(!_0x757b6f||typeof _0x757b6f!==_0xf611c3(0xd2))return{};return _0x757b6f;}catch{return{};}}async function writeUpdateNoticeCache(_0x250cc6){const _0x42f9da=a161_0x4161;try{const _0x1e5feb=getUpdateNoticeCachePath();await mkdir(dirname(_0x1e5feb),{'recursive':!![]}),await writeFile(_0x1e5feb,JSON[_0x42f9da(0xe5)](_0x250cc6,null,0x2)+'\x0a',_0x42f9da(0xe2));}catch{}}function isRecentlyNotified(_0x59a7bf,_0x347a94,_0x4003ef){const _0x20487f=a161_0x4161;return _0x59a7bf[_0x20487f(0xd8)]===_0x347a94&&typeof _0x59a7bf[_0x20487f(0xea)]==='number'&&_0x4003ef-_0x59a7bf[_0x20487f(0xea)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x2919b5){const _0x2d52ff=a161_0x4161;return _0x2d52ff(0xda)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x2919b5;}export async function resolveLatestUpdateNotice(_0xe792fa){const _0x55d23f=a161_0x4161;if(isUpdateNoticeDisabled())return null;try{const _0x51f8de=Date['now'](),_0x405dec=_0xe792fa??await checkCliVersion(),_0x1e0652=_0x405dec['currentVersion'],_0x36c12c=_0x405dec[_0x55d23f(0xd5)],_0x1d9c0d=await readUpdateNoticeCache();if(!_0x36c12c||!_0x405dec[_0x55d23f(0xdd)]||_0x405dec[_0x55d23f(0xdc)])return null;if(isRecentlyNotified(_0x1d9c0d,_0x36c12c,_0x51f8de))return null;const _0x51d3ad=getCliUpgradeCommand(_0x405dec);return await writeUpdateNoticeCache({..._0x1d9c0d,'checkedAt':_0x51f8de,'latest':_0x36c12c,'failed':![],'lastNotifiedVersion':_0x36c12c,'lastNotifiedAt':_0x51f8de}),{'command':_0x51d3ad,'current':_0x1e0652,'latest':_0x36c12c,'url':buildNpmVersionUrl(_0x36c12c),'message':[_0x405dec['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x36c12c+_0x55d23f(0xd6)+_0x1e0652+',\x20run:\x20'+_0x51d3ad][_0x55d23f(0xd1)](Boolean)[_0x55d23f(0xd4)]('\x20')};}catch{return null;}}
1
+ (function(_0x2716e7,_0x2254aa){const _0x41d438=a162_0x3f0a,_0x5c069b=_0x2716e7();while(!![]){try{const _0x210748=parseInt(_0x41d438(0x89))/0x1+parseInt(_0x41d438(0x81))/0x2+parseInt(_0x41d438(0x8b))/0x3+parseInt(_0x41d438(0x8e))/0x4+-parseInt(_0x41d438(0x92))/0x5*(-parseInt(_0x41d438(0x8a))/0x6)+-parseInt(_0x41d438(0x7a))/0x7+parseInt(_0x41d438(0x8f))/0x8*(-parseInt(_0x41d438(0x83))/0x9);if(_0x210748===_0x2254aa)break;else _0x5c069b['push'](_0x5c069b['shift']());}catch(_0x7651c8){_0x5c069b['push'](_0x5c069b['shift']());}}}(a162_0x4170,0x27fe4));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 _0x509f7a=a162_0x3f0a,_0x1d8d09=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x509f7a(0x80)]()[_0x509f7a(0x95)]();return _0x1d8d09==='1'||_0x1d8d09===_0x509f7a(0x84)||_0x1d8d09===_0x509f7a(0x91);}function a162_0x3f0a(_0x3360db,_0x319653){_0x3360db=_0x3360db-0x7a;const _0x4170c6=a162_0x4170();let _0x3f0a61=_0x4170c6[_0x3360db];return _0x3f0a61;}function a162_0x4170(){const _0x4f6426=['56zYPmAY',',\x20run:\x20','yes','1206350YaLbBQ','stableVersion','https://www.npmjs.com/package/','toLowerCase','1718353tvPhkn','upgradeMessage','number','update-check.json','.cache','object','trim','69866rATqKN','lovrabet-cli','598077NEVjjd','true','currentVersion','lastNotifiedVersion','needsUpgrade','utf8','141151SyIVfS','6GVgwru','394662KVlZDr','lastNotifiedAt','\x20is\x20recommended,\x20current\x20','1302216VZfaPr'];a162_0x4170=function(){return _0x4f6426;};return a162_0x4170();}function cacheRoot(){const _0x202914=a162_0x3f0a;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x202914(0x7e));}export function getUpdateNoticeCachePath(){const _0x2e00da=a162_0x3f0a;return join(cacheRoot(),_0x2e00da(0x82),_0x2e00da(0x7d));}async function readUpdateNoticeCache(){const _0x1d5af4=a162_0x3f0a;try{const _0x27d72a=await readFile(getUpdateNoticeCachePath(),_0x1d5af4(0x88)),_0x5d2e4e=JSON['parse'](_0x27d72a);if(!_0x5d2e4e||typeof _0x5d2e4e!==_0x1d5af4(0x7f))return{};return _0x5d2e4e;}catch{return{};}}async function writeUpdateNoticeCache(_0x492400){const _0x532f68=a162_0x3f0a;try{const _0x129f62=getUpdateNoticeCachePath();await mkdir(dirname(_0x129f62),{'recursive':!![]}),await writeFile(_0x129f62,JSON['stringify'](_0x492400,null,0x2)+'\x0a',_0x532f68(0x88));}catch{}}function isRecentlyNotified(_0x5b774a,_0x50e78b,_0x2d29b7){const _0x25cdd5=a162_0x3f0a;return _0x5b774a[_0x25cdd5(0x86)]===_0x50e78b&&typeof _0x5b774a[_0x25cdd5(0x8c)]===_0x25cdd5(0x7c)&&_0x2d29b7-_0x5b774a[_0x25cdd5(0x8c)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x2b4c23){const _0x551a95=a162_0x3f0a;return _0x551a95(0x94)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x2b4c23;}export async function resolveLatestUpdateNotice(_0x3a1b86){const _0x1b2214=a162_0x3f0a;if(isUpdateNoticeDisabled())return null;try{const _0x4323a9=Date['now'](),_0x28deac=_0x3a1b86??await checkCliVersion(),_0x459db7=_0x28deac[_0x1b2214(0x85)],_0x2bc4dc=_0x28deac[_0x1b2214(0x93)],_0x588487=await readUpdateNoticeCache();if(!_0x2bc4dc||!_0x28deac[_0x1b2214(0x87)]||_0x28deac['belowMinimum'])return null;if(isRecentlyNotified(_0x588487,_0x2bc4dc,_0x4323a9))return null;const _0x5f447e=getCliUpgradeCommand(_0x28deac);return await writeUpdateNoticeCache({..._0x588487,'checkedAt':_0x4323a9,'latest':_0x2bc4dc,'failed':![],'lastNotifiedVersion':_0x2bc4dc,'lastNotifiedAt':_0x4323a9}),{'command':_0x5f447e,'current':_0x459db7,'latest':_0x2bc4dc,'url':buildNpmVersionUrl(_0x2bc4dc),'message':[_0x28deac[_0x1b2214(0x7b)],CLI_BIN_NAME+'\x20'+_0x2bc4dc+_0x1b2214(0x8d)+_0x459db7+_0x1b2214(0x90)+_0x5f447e]['filter'](Boolean)['join']('\x20')};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x1bc50f,_0x4d1dcd){const _0x3613ff=a162_0x27ea,_0x43552f=_0x1bc50f();while(!![]){try{const _0x2656e2=parseInt(_0x3613ff(0x135))/0x1*(-parseInt(_0x3613ff(0x130))/0x2)+parseInt(_0x3613ff(0x134))/0x3*(-parseInt(_0x3613ff(0x12d))/0x4)+-parseInt(_0x3613ff(0x132))/0x5*(parseInt(_0x3613ff(0x12e))/0x6)+parseInt(_0x3613ff(0x12f))/0x7+-parseInt(_0x3613ff(0x131))/0x8+parseInt(_0x3613ff(0x136))/0x9*(-parseInt(_0x3613ff(0x12c))/0xa)+parseInt(_0x3613ff(0x133))/0xb;if(_0x2656e2===_0x4d1dcd)break;else _0x43552f['push'](_0x43552f['shift']());}catch(_0x5d21f1){_0x43552f['push'](_0x43552f['shift']());}}}(a162_0x2064,0xbe335));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x2d6c10=a162_0x27ea,_0x4e5005=String(GIT_COMMIT);return _0x4e5005&&_0x4e5005!==_0x2d6c10(0x137)?_0x4e5005:'';}function a162_0x2064(){const _0x228cdc=['unknown','10HjnhlQ','127756bYdLpM','6488244FgZhYl','4931878Cwmzdb','22TiHSll','11731104jPdYTh','5iYxAmF','49736654tzEeSS','93syZIRd','18013AxLwHJ','6398937cXFPSw'];a162_0x2064=function(){return _0x228cdc;};return a162_0x2064();}function a162_0x27ea(_0x4768eb,_0x4b8c7a){_0x4768eb=_0x4768eb-0x12c;const _0x206426=a162_0x2064();let _0x27ea1d=_0x206426[_0x4768eb];return _0x27ea1d;}export function getCliVersionDisplay(){const _0xb4da1f=getCliGitCommit(),_0x398425=BUILD_TIME['slice'](0x0,0xa);if(!_0xb4da1f||!_0x398425)return VERSION;return VERSION+'\x20('+_0xb4da1f+',\x20'+_0x398425+')';}
1
+ (function(_0x44bc7e,_0x232f1f){const _0x4ad0e2=a163_0xe389,_0x4fb5c2=_0x44bc7e();while(!![]){try{const _0x5e4d02=parseInt(_0x4ad0e2(0x196))/0x1+parseInt(_0x4ad0e2(0x195))/0x2*(-parseInt(_0x4ad0e2(0x197))/0x3)+-parseInt(_0x4ad0e2(0x193))/0x4*(parseInt(_0x4ad0e2(0x198))/0x5)+parseInt(_0x4ad0e2(0x18e))/0x6*(-parseInt(_0x4ad0e2(0x199))/0x7)+-parseInt(_0x4ad0e2(0x18f))/0x8*(-parseInt(_0x4ad0e2(0x194))/0x9)+-parseInt(_0x4ad0e2(0x191))/0xa*(-parseInt(_0x4ad0e2(0x18d))/0xb)+-parseInt(_0x4ad0e2(0x18c))/0xc*(-parseInt(_0x4ad0e2(0x192))/0xd);if(_0x5e4d02===_0x232f1f)break;else _0x4fb5c2['push'](_0x4fb5c2['shift']());}catch(_0x50a6e3){_0x4fb5c2['push'](_0x4fb5c2['shift']());}}}(a163_0x5ce6,0x8d66e));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x105617=String(GIT_COMMIT);return _0x105617&&_0x105617!=='unknown'?_0x105617:'';}function a163_0xe389(_0x14df9b,_0x5ba916){_0x14df9b=_0x14df9b-0x18c;const _0x5ce65e=a163_0x5ce6();let _0xe3891c=_0x5ce65e[_0x14df9b];return _0xe3891c;}export function getCliVersionDisplay(){const _0x1f7322=a163_0xe389,_0x2b57cf=getCliGitCommit(),_0x541e25=BUILD_TIME[_0x1f7322(0x190)](0x0,0xa);if(!_0x2b57cf||!_0x541e25)return VERSION;return VERSION+'\x20('+_0x2b57cf+',\x20'+_0x541e25+')';}function a163_0x5ce6(){const _0x84985c=['417012hvHhjE','10087946EnAvQr','637926ncEeZM','24456gmOmFS','slice','10RQicWJ','52gJbbnU','4TYdPjA','837BHXqLG','27108ioEdtw','487460maSUgp','114IwGfTa','1010060OLholg','35pAUWYJ'];a163_0x5ce6=function(){return _0x84985c;};return a163_0x5ce6();}
@@ -1 +1 @@
1
- (function(_0x2d3de8,_0x302bf0){var _0x3ea5c0=a163_0x454d,_0xb6dc59=_0x2d3de8();while(!![]){try{var _0xca1b9e=parseInt(_0x3ea5c0(0x1ad))/0x1+-parseInt(_0x3ea5c0(0x1ae))/0x2+-parseInt(_0x3ea5c0(0x1b1))/0x3*(parseInt(_0x3ea5c0(0x1af))/0x4)+-parseInt(_0x3ea5c0(0x1b2))/0x5*(-parseInt(_0x3ea5c0(0x1ac))/0x6)+parseInt(_0x3ea5c0(0x1ab))/0x7+parseInt(_0x3ea5c0(0x1b3))/0x8*(-parseInt(_0x3ea5c0(0x1b4))/0x9)+parseInt(_0x3ea5c0(0x1b5))/0xa;if(_0xca1b9e===_0x302bf0)break;else _0xb6dc59['push'](_0xb6dc59['shift']());}catch(_0x181f3c){_0xb6dc59['push'](_0xb6dc59['shift']());}}}(a163_0x483f,0xe2064));export function writeCliSideChannelLine(_0x1243ae){var _0x204151=a163_0x454d;process[_0x204151(0x1b6)][_0x204151(0x1b0)](_0x1243ae+'\x0a');}function a163_0x454d(_0xf42ad6,_0x26d389){_0xf42ad6=_0xf42ad6-0x1ab;var _0x483f87=a163_0x483f();var _0x454d65=_0x483f87[_0xf42ad6];return _0x454d65;}function a163_0x483f(){var _0x1908c5=['720QHQjPE','4815860AEgDVX','stderr','7944258uXFhai','2846202CANrBK','397146roXhrW','730976TqLFBs','4nvOmke','write','338367LceSWi','5KeGWRp','108392oKqSYu'];a163_0x483f=function(){return _0x1908c5;};return a163_0x483f();}
1
+ function a164_0x2882(_0x259748,_0x4cd38e){_0x259748=_0x259748-0xdf;var _0x2132e6=a164_0x2132();var _0x2882a1=_0x2132e6[_0x259748];return _0x2882a1;}(function(_0x3dec5a,_0x3359b5){var _0x195202=a164_0x2882,_0x523473=_0x3dec5a();while(!![]){try{var _0x512bbc=parseInt(_0x195202(0xe3))/0x1*(-parseInt(_0x195202(0xea))/0x2)+-parseInt(_0x195202(0xec))/0x3*(parseInt(_0x195202(0xe2))/0x4)+parseInt(_0x195202(0xe0))/0x5+-parseInt(_0x195202(0xeb))/0x6+parseInt(_0x195202(0xe8))/0x7*(-parseInt(_0x195202(0xdf))/0x8)+parseInt(_0x195202(0xe1))/0x9*(parseInt(_0x195202(0xe5))/0xa)+-parseInt(_0x195202(0xe4))/0xb*(-parseInt(_0x195202(0xe9))/0xc);if(_0x512bbc===_0x3359b5)break;else _0x523473['push'](_0x523473['shift']());}catch(_0x851d64){_0x523473['push'](_0x523473['shift']());}}}(a164_0x2132,0x9c203));function a164_0x2132(){var _0x29bb44=['141jZEFdT','11pPrYvX','10QAexbR','stderr','write','35gekFLM','30925536eedEvH','6412bZwEdk','3493020szJfph','523293mNaOAS','1845752UIUAIX','3334050jhtiuu','959913GlsXEB','12UJBLrD'];a164_0x2132=function(){return _0x29bb44;};return a164_0x2132();}export function writeCliSideChannelLine(_0x318137){var _0x2b053e=a164_0x2882;process[_0x2b053e(0xe6)][_0x2b053e(0xe7)](_0x318137+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.3.1-beta.3",
3
+ "version": "2.3.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.1-beta.3
4
+ version: 2.3.1
5
5
  description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、service tree、业务服务树、api-doc、dataset、data filter、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
6
6
  metadata:
7
7
  requires:
@@ -331,7 +331,7 @@ Service Tree 未命中不是失败条件,也不代表业务能力不存在。
331
331
  | **kb** | `detail` | 查看 personal 知识库正文与 RAG 状态 | read | AK |
332
332
  | **kb** | `create` | 从本地文件创建 personal 知识库 | write | AK |
333
333
  | **kb** | `update` | 从本地文件更新 personal 知识库 | write | AK |
334
- | **kb** | `search` | 检索可见公司和个人知识 | read | AK |
334
+ | **kb** | `search` | 检索可见公共、公司和个人知识 | read | AK |
335
335
  | **schedule** | `validate` | 校验 UTC 定时任务,不创建计划 | read | AK |
336
336
  | **schedule** | `create` | 创建周期或单次定时任务(需确认) | high-risk-write | AK |
337
337
  | **schedule** | `list` | 分页查看当前应用的定时任务 | read | AK |
@@ -65,7 +65,9 @@ lovrabet config init --domain-config ./lovrabet-domains.json
65
65
 
66
66
  新版企业清单会保存为带协议标识的 `routing` 对象,并整体优先于旧顶层 Domain;旧扁平配置继续保持既有回退行为。
67
67
 
68
- 两种模式都保留 AccessKey、format、locale、应用绑定等其他配置。初始化后用 `lovrabet doctor` 核对最终生效的国家/地区和五个 Domain。
68
+ 进入旧扁平独立部署模式会删除全局 `region` 和旧 Domain 字段,再写入本次提供的 Domain。未提供的 Domain 仍按默认 `cn` 节点和当前 `env` 回退到 Lovrabet 公共服务。企业部署需要所有请求进入私有服务时,应完整提供五个 Domain;KB Service 下游地址由 Runtime Java 独立配置。
69
+
70
+ 两种模式都保留 AccessKey、env、format、locale、应用绑定等其他全局配置。当前目录 `.lovrabet.json` 的旧扁平同名字段仍会覆盖全局旧扁平配置;初始化后用 `lovrabet doctor` 核对最终生效的国家/地区和五个 Domain。
69
71
 
70
72
  ## config list — 查看完整配置
71
73
 
@@ -57,9 +57,9 @@
57
57
  | `apiDomain` | string | 节点内置值 | 平台 API HTTPS origin 覆盖 |
58
58
  | `runtimeDomain` | string | 节点内置值 | 普通 Runtime HTTPS origin 覆盖 |
59
59
  | `skillDomain` | string | 节点默认 | SkillHub HTTPS origin 覆盖 |
60
- | `kbDomain` | string | 节点默认 | 知识库 HTTPS origin 覆盖 |
60
+ | `kbDomain` | string | 节点默认 | Personal KB 管理与 `kb search` Runtime 网关 HTTPS origin 覆盖 |
61
61
 
62
- 五个 Domain 各自独立覆盖同名服务地址。没有显式配置时,CLI 按 `region` 使用内置节点:`cn` 对应中国大陆,`id` 对应 Indonesia,且 Indonesia 的最终服务地址统一使用 `*.lovrabet.id`。执行 `lovrabet doctor` 可查看当前实际生效的五个 Domain,无需理解内部地址层级。
62
+ 五个 Domain 各自独立覆盖同名服务地址。没有显式配置时,CLI 按 `region` 和 `env` 使用内置节点:`cn` 对应中国大陆,`id` 对应 Indonesia,且 Indonesia 的最终服务地址统一使用 `*.lovrabet.id`。`development` 与 `daily` 共用非生产地址;KB Service 下游地址由 Runtime Java 配置管理。执行 `lovrabet doctor` 可查看当前实际生效的五个 Domain,无需理解内部地址层级。
63
63
 
64
64
  `config init` 的完整模式切换、独立部署 JSON 和校验规则见 [配置管理](lovrabet-config-commands.md#config-init--初始化连接配置)。
65
65
 
@@ -24,3 +24,5 @@ lovrabet doctor
24
24
  ```
25
25
 
26
26
  `doctor` 不修改配置、不安装 Skill,也不替代业务命令的认证和权限检查。
27
+
28
+ `API Endpoints` 显示 `kbDomain`,该地址同时承载 Personal KB 管理与 `kb search` Runtime 网关。KB Service 下游地址由 Runtime Java 配置管理,不在 CLI doctor 中显示。
@@ -10,7 +10,9 @@ lovrabet kb detail --id <id> --format compress
10
10
  lovrabet kb search --query "订单审批" --topk 5 --format compress
11
11
  ```
12
12
 
13
- `kb search` 会返回当前用户可见的多来源知识,使用 `scope` 区分来源。结果顺序由服务端当前检索策略决定;CLI 保留服务端返回顺序,不在本地重新排序,也不根据 `scope` 推断固定来源优先级。
13
+ `kb search` 只携带当前 AK,通过 `kbDomain` 调用固定 Runtime 搜索网关;Runtime 再按其 Java 环境配置访问 KB Service。返回范围是 `public/company/personal`,使用 `scope` 区分来源。
14
+
15
+ 结构化输出固定为 `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 漂移都会以脱敏错误失败。
14
16
 
15
17
  ## 业务执行中的 KB 消费
16
18
 
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "lovrabet",
4
4
  "packageName": "@lovrabet/lovrabet-cli",
5
- "packageVersion": "2.3.1-beta.3",
6
- "skillVersion": "2.3.1-beta.3",
5
+ "packageVersion": "2.3.1",
6
+ "skillVersion": "2.3.1",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/app-resolution.md",
@@ -37,5 +37,5 @@
37
37
  "references/lovrabet-user-account.md",
38
38
  "references/lovrabet-workspace.md"
39
39
  ],
40
- "digest": "a731aa4a6155920b8d585bd588c640933ef8d32de8567d7c88a9ceb3e6221be5"
40
+ "digest": "d330bc66b207592115986ab7eb259be8104c53ea8908d4b1583f6f9e82fde931"
41
41
  }