@lovrabet/lovrabet-cli 2.3.6-beta.2 → 2.3.6

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 (184) hide show
  1. package/README.md +33 -2
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/kb/index.js +1 -1
  38. package/lib/commands/logs/index.js +1 -1
  39. package/lib/commands/notification/config-list.js +1 -1
  40. package/lib/commands/notification/index.js +1 -1
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.js +1 -1
  59. package/lib/commands/role/update.js +1 -1
  60. package/lib/commands/role/user-add.js +1 -1
  61. package/lib/commands/role/user-remove.js +1 -1
  62. package/lib/commands/schedule/index.js +1 -1
  63. package/lib/commands/schema.js +1 -1
  64. package/lib/commands/service/dynamic.js +1 -1
  65. package/lib/commands/service/function-name-adapter.js +1 -1
  66. package/lib/commands/service/index.js +1 -1
  67. package/lib/commands/service/registry.js +1 -1
  68. package/lib/commands/skill/commands/create.js +1 -1
  69. package/lib/commands/skill/commands/diagram.js +1 -1
  70. package/lib/commands/skill/commands/install.js +1 -1
  71. package/lib/commands/skill/commands/list.js +1 -1
  72. package/lib/commands/skill/commands/push.js +1 -1
  73. package/lib/commands/skill/commands/validate.js +1 -1
  74. package/lib/commands/skill/diagram.js +1 -1
  75. package/lib/commands/skill/flags.js +1 -1
  76. package/lib/commands/skill/index.js +1 -1
  77. package/lib/commands/skill/manifest-helpers.js +1 -1
  78. package/lib/commands/skill/push-execute.js +1 -1
  79. package/lib/commands/skill/push-flow-helpers.js +1 -1
  80. package/lib/commands/skill/push-retarget.js +1 -1
  81. package/lib/commands/skill/scopes.js +1 -1
  82. package/lib/commands/skill/summary.js +1 -1
  83. package/lib/commands/skill/templates.js +1 -1
  84. package/lib/commands/skill/validate.js +1 -1
  85. package/lib/commands/sql/detail.js +1 -1
  86. package/lib/commands/sql/exec.js +1 -1
  87. package/lib/commands/sql/index.js +1 -1
  88. package/lib/commands/update.js +1 -1
  89. package/lib/commands/user-account/bind.js +1 -1
  90. package/lib/commands/user-account/index.js +1 -1
  91. package/lib/commands/workspace/index.js +1 -1
  92. package/lib/config/domain-config.js +1 -1
  93. package/lib/config/schema.js +1 -1
  94. package/lib/constant/app.js +1 -1
  95. package/lib/constant/auth-mode.js +1 -1
  96. package/lib/constant/cli.js +1 -1
  97. package/lib/constant/defaults.js +1 -1
  98. package/lib/constant/distribution.js +1 -1
  99. package/lib/constant/domain.js +1 -1
  100. package/lib/constant/env.js +1 -1
  101. package/lib/constant/output.js +1 -1
  102. package/lib/constant/product.js +1 -1
  103. package/lib/constant/region.js +1 -1
  104. package/lib/constant/risk.js +1 -1
  105. package/lib/constant/url.js +1 -1
  106. package/lib/context.js +1 -1
  107. package/lib/core/api-client.d.ts +6 -6
  108. package/lib/core/api-client.js +1 -1
  109. package/lib/core/db-resolver.js +1 -1
  110. package/lib/core/kb-management-client.d.ts +17 -0
  111. package/lib/core/kb-management-client.js +1 -0
  112. package/lib/core/kb-search-client.js +1 -1
  113. package/lib/core/sdk-client.js +1 -1
  114. package/lib/errors.js +1 -1
  115. package/lib/framework/access-error.js +1 -1
  116. package/lib/framework/build-all-flags.js +1 -1
  117. package/lib/framework/dryrun.js +1 -1
  118. package/lib/framework/flags.js +1 -1
  119. package/lib/framework/help.js +1 -1
  120. package/lib/framework/index.js +1 -1
  121. package/lib/framework/output.js +1 -1
  122. package/lib/framework/preparse.js +1 -1
  123. package/lib/framework/rate-limit.js +1 -1
  124. package/lib/framework/raw-flags.js +1 -1
  125. package/lib/framework/response.js +1 -1
  126. package/lib/framework/runner-confirmation.js +1 -1
  127. package/lib/framework/runner-error.js +1 -1
  128. package/lib/framework/runner.js +1 -1
  129. package/lib/framework/schema-export.js +1 -1
  130. package/lib/framework/service-order.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.d.ts +4 -4
  133. package/lib/generated/build-info.js +1 -1
  134. package/lib/generated/official-routing.js +1 -1
  135. package/lib/generated/routing-contract.js +1 -1
  136. package/lib/help.js +1 -1
  137. package/lib/postinstall.js +1 -1
  138. package/lib/runtime/confirmation.js +1 -1
  139. package/lib/runtime/event.js +1 -1
  140. package/lib/runtime/index.js +1 -1
  141. package/lib/runtime/queue.js +1 -1
  142. package/lib/runtime/resolve.js +1 -1
  143. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  144. package/lib/services/dataset-import/excel-reader.js +1 -1
  145. package/lib/services/dataset-import/image-bytes.js +1 -1
  146. package/lib/services/dataset-import/image-ooxml.js +1 -1
  147. package/lib/services/dataset-import/image-runner.js +1 -1
  148. package/lib/services/dataset-import/metadata.js +1 -1
  149. package/lib/services/dataset-import/preview.js +1 -1
  150. package/lib/services/dataset-import/runner.js +1 -1
  151. package/lib/skills/builtin-skill.js +1 -1
  152. package/lib/skills/npx-skills-add.js +1 -1
  153. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  154. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  155. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  156. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  157. package/lib/skills/runtime-skill-sync/links.js +1 -1
  158. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  159. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  160. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  161. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  162. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  163. package/lib/skills/runtime-skill-sync/push.js +1 -1
  164. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  165. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  167. package/lib/skills/runtime-skill-sync.js +1 -1
  168. package/lib/skills/skill-presence.js +1 -1
  169. package/lib/utils/access-key-redaction.js +1 -1
  170. package/lib/utils/apply-jq-filter.js +1 -1
  171. package/lib/utils/cli-version-check.js +1 -1
  172. package/lib/utils/cli-version-policy.js +1 -1
  173. package/lib/utils/logger.js +1 -1
  174. package/lib/utils/lossless-json.js +1 -1
  175. package/lib/utils/params.js +1 -1
  176. package/lib/utils/positive-safe-integer.js +1 -1
  177. package/lib/utils/redaction.js +1 -1
  178. package/lib/utils/update-notice.js +1 -1
  179. package/lib/utils/version.js +1 -1
  180. package/lib/utils/write-cli-side-channel.js +1 -1
  181. package/package.json +1 -1
  182. package/skills/lovrabet/SKILL.md +1 -1
  183. package/skills/lovrabet/references/lovrabet-kb-workflow.md +7 -3
  184. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a166_0x623a33=a166_0x1f4f;(function(_0x37c4cc,_0xe62e19){const _0x379306=a166_0x1f4f,_0x19a974=_0x37c4cc();while(!![]){try{const _0x2b4aa5=-parseInt(_0x379306(0x15f))/0x1*(parseInt(_0x379306(0x164))/0x2)+-parseInt(_0x379306(0x15d))/0x3+-parseInt(_0x379306(0x161))/0x4+parseInt(_0x379306(0x163))/0x5+parseInt(_0x379306(0x160))/0x6+-parseInt(_0x379306(0x155))/0x7+-parseInt(_0x379306(0x162))/0x8*(-parseInt(_0x379306(0x153))/0x9);if(_0x2b4aa5===_0xe62e19)break;else _0x19a974['push'](_0x19a974['shift']());}catch(_0x43f5ef){_0x19a974['push'](_0x19a974['shift']());}}}(a166_0x57a5,0xee109));const REDACTED_ACCESS_KEY=a166_0x623a33(0x154);export function maskCliAccessKey(_0x20ec80){const _0x5cd3ac=a166_0x623a33;if(typeof _0x20ec80!==_0x5cd3ac(0x15e)||_0x20ec80[_0x5cd3ac(0x14f)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x20ec80[_0x5cd3ac(0x157)](0x0,0x8)+'*'[_0x5cd3ac(0x158)](_0x20ec80[_0x5cd3ac(0x14f)]-0x8);}export function redactCliConfigCredentials(_0x458f45){const _0x5d7e59=a166_0x623a33,_0x5f8128={..._0x458f45};return Object[_0x5d7e59(0x152)][_0x5d7e59(0x14d)][_0x5d7e59(0x151)](_0x5f8128,_0x5d7e59(0x15c))&&(_0x5f8128[_0x5d7e59(0x15c)]=maskCliAccessKey(_0x5f8128[_0x5d7e59(0x15c)])),_0x5f8128[_0x5d7e59(0x15b)]&&typeof _0x5f8128['apps']===_0x5d7e59(0x15a)&&!Array[_0x5d7e59(0x156)](_0x5f8128[_0x5d7e59(0x15b)])&&(_0x5f8128[_0x5d7e59(0x15b)]=redactLegacyAppCredentials(_0x5f8128['apps'])),_0x5f8128;}export function redactCliConfigValue(_0x257724,_0x9db41){const _0x528111=a166_0x623a33;if(_0x257724==='accessKey'||/^apps\.[^.]+\.accessKey$/['test'](_0x257724))return maskCliAccessKey(_0x9db41);if(_0x257724===_0x528111(0x15b)&&_0x9db41&&typeof _0x9db41===_0x528111(0x15a)&&!Array[_0x528111(0x156)](_0x9db41))return redactLegacyAppCredentials(_0x9db41);if(/^apps\.[^.]+$/[_0x528111(0x150)](_0x257724)&&_0x9db41&&typeof _0x9db41===_0x528111(0x15a)&&!Array[_0x528111(0x156)](_0x9db41)){const _0x1ac5c6=_0x9db41;return Object[_0x528111(0x152)]['hasOwnProperty']['call'](_0x1ac5c6,_0x528111(0x15c))?{..._0x1ac5c6,'accessKey':maskCliAccessKey(_0x1ac5c6[_0x528111(0x15c)])}:_0x9db41;}return _0x9db41;}function a166_0x1f4f(_0x2c46de,_0x274084){_0x2c46de=_0x2c46de-0x14c;const _0x57a50d=a166_0x57a5();let _0x1f4fe4=_0x57a50d[_0x2c46de];return _0x1f4fe4;}function redactLegacyAppCredentials(_0xb30134){const _0x42edf8=a166_0x623a33;return Object[_0x42edf8(0x159)](Object[_0x42edf8(0x14c)](_0xb30134)[_0x42edf8(0x14e)](([_0x432dc0,_0x24f440])=>{const _0x3f5de1=_0x42edf8;if(!_0x24f440||typeof _0x24f440!==_0x3f5de1(0x15a)||Array[_0x3f5de1(0x156)](_0x24f440))return[_0x432dc0,_0x24f440];const _0x5c08b4={..._0x24f440};return Object[_0x3f5de1(0x152)][_0x3f5de1(0x14d)]['call'](_0x5c08b4,_0x3f5de1(0x15c))&&(_0x5c08b4[_0x3f5de1(0x15c)]=maskCliAccessKey(_0x5c08b4[_0x3f5de1(0x15c)])),[_0x432dc0,_0x5c08b4];}));}function a166_0x57a5(){const _0x51d37d=['4609032zdmiuL','355312bvBmIG','4039835mMuJIC','954OSbUIK','entries','hasOwnProperty','map','length','test','call','prototype','162kQlVAY','<redacted>','1773079JWESer','isArray','slice','repeat','fromEntries','object','apps','accessKey','1214172VATihX','string','877cdUUgL','9577812uQkRQR'];a166_0x57a5=function(){return _0x51d37d;};return a166_0x57a5();}
1
+ const a167_0x440617=a167_0x296c;(function(_0x128aec,_0x2a4d1e){const _0xfb2a23=a167_0x296c,_0x583b60=_0x128aec();while(!![]){try{const _0x168fd1=-parseInt(_0xfb2a23(0x154))/0x1+parseInt(_0xfb2a23(0x14d))/0x2*(-parseInt(_0xfb2a23(0x15f))/0x3)+parseInt(_0xfb2a23(0x158))/0x4+-parseInt(_0xfb2a23(0x157))/0x5*(-parseInt(_0xfb2a23(0x14a))/0x6)+-parseInt(_0xfb2a23(0x147))/0x7*(parseInt(_0xfb2a23(0x148))/0x8)+parseInt(_0xfb2a23(0x14b))/0x9+-parseInt(_0xfb2a23(0x15e))/0xa;if(_0x168fd1===_0x2a4d1e)break;else _0x583b60['push'](_0x583b60['shift']());}catch(_0xaf671b){_0x583b60['push'](_0x583b60['shift']());}}}(a167_0x3608,0xa2f64));const REDACTED_ACCESS_KEY=a167_0x440617(0x159);export function maskCliAccessKey(_0x5af7ba){const _0x52fa0e=a167_0x440617;if(typeof _0x5af7ba!==_0x52fa0e(0x14c)||_0x5af7ba[_0x52fa0e(0x150)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x5af7ba[_0x52fa0e(0x153)](0x0,0x8)+'*'[_0x52fa0e(0x149)](_0x5af7ba[_0x52fa0e(0x150)]-0x8);}function a167_0x3608(){const _0x2b7802=['slice','717677jGNCeT','call','accessKey','2984430TIntMR','3614824lvTwof','<redacted>','apps','isArray','entries','fromEntries','6437710VXxXKl','1028163TIysZQ','2637159kftMNl','8hVJqkr','repeat','6DRpTvK','11230254cmtfRf','string','2xUvWHx','test','prototype','length','object','hasOwnProperty'];a167_0x3608=function(){return _0x2b7802;};return a167_0x3608();}function a167_0x296c(_0x339f9,_0x437b2a){_0x339f9=_0x339f9-0x147;const _0x36089b=a167_0x3608();let _0x296c0d=_0x36089b[_0x339f9];return _0x296c0d;}export function redactCliConfigCredentials(_0x3aa683){const _0x5428c4=a167_0x440617,_0x1b306e={..._0x3aa683};return Object[_0x5428c4(0x14f)]['hasOwnProperty']['call'](_0x1b306e,_0x5428c4(0x156))&&(_0x1b306e[_0x5428c4(0x156)]=maskCliAccessKey(_0x1b306e[_0x5428c4(0x156)])),_0x1b306e[_0x5428c4(0x15a)]&&typeof _0x1b306e['apps']===_0x5428c4(0x151)&&!Array['isArray'](_0x1b306e[_0x5428c4(0x15a)])&&(_0x1b306e[_0x5428c4(0x15a)]=redactLegacyAppCredentials(_0x1b306e[_0x5428c4(0x15a)])),_0x1b306e;}export function redactCliConfigValue(_0x2b065e,_0x4fee2e){const _0x38061e=a167_0x440617;if(_0x2b065e===_0x38061e(0x156)||/^apps\.[^.]+\.accessKey$/[_0x38061e(0x14e)](_0x2b065e))return maskCliAccessKey(_0x4fee2e);if(_0x2b065e===_0x38061e(0x15a)&&_0x4fee2e&&typeof _0x4fee2e===_0x38061e(0x151)&&!Array['isArray'](_0x4fee2e))return redactLegacyAppCredentials(_0x4fee2e);if(/^apps\.[^.]+$/[_0x38061e(0x14e)](_0x2b065e)&&_0x4fee2e&&typeof _0x4fee2e==='object'&&!Array[_0x38061e(0x15b)](_0x4fee2e)){const _0x2aed53=_0x4fee2e;return Object[_0x38061e(0x14f)][_0x38061e(0x152)][_0x38061e(0x155)](_0x2aed53,_0x38061e(0x156))?{..._0x2aed53,'accessKey':maskCliAccessKey(_0x2aed53[_0x38061e(0x156)])}:_0x4fee2e;}return _0x4fee2e;}function redactLegacyAppCredentials(_0x48d4d5){const _0x298842=a167_0x440617;return Object[_0x298842(0x15d)](Object[_0x298842(0x15c)](_0x48d4d5)['map'](([_0x50f755,_0x5d0a3a])=>{const _0x310cee=_0x298842;if(!_0x5d0a3a||typeof _0x5d0a3a!==_0x310cee(0x151)||Array[_0x310cee(0x15b)](_0x5d0a3a))return[_0x50f755,_0x5d0a3a];const _0x3d3a70={..._0x5d0a3a};return Object[_0x310cee(0x14f)]['hasOwnProperty'][_0x310cee(0x155)](_0x3d3a70,_0x310cee(0x156))&&(_0x3d3a70[_0x310cee(0x156)]=maskCliAccessKey(_0x3d3a70['accessKey'])),[_0x50f755,_0x3d3a70];}));}
@@ -1 +1 @@
1
- (function(_0x30b379,_0x501457){const _0xda845=a167_0x1a17,_0x296c96=_0x30b379();while(!![]){try{const _0x52d5a8=parseInt(_0xda845(0x1da))/0x1+parseInt(_0xda845(0x1d5))/0x2+parseInt(_0xda845(0x1d7))/0x3+-parseInt(_0xda845(0x1d8))/0x4+-parseInt(_0xda845(0x1d9))/0x5+parseInt(_0xda845(0x1dd))/0x6*(parseInt(_0xda845(0x1d6))/0x7)+-parseInt(_0xda845(0x1dc))/0x8*(-parseInt(_0xda845(0x1db))/0x9);if(_0x52d5a8===_0x501457)break;else _0x296c96['push'](_0x296c96['shift']());}catch(_0x2b6894){_0x296c96['push'](_0x296c96['shift']());}}}(a167_0x23eb,0x47e68));function a167_0x23eb(){const _0x3ab638=['1231866fxqxoU','2339064oMvUUz','2341305AHJJca','490594BoHJiA','18vAmCDB','296288DcZHPx','630930fyXsKz','534176SqepEO','7wMvmKO'];a167_0x23eb=function(){return _0x3ab638;};return a167_0x23eb();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a167_0x1a17(_0x235f18,_0x1af55d){_0x235f18=_0x235f18-0x1d5;const _0x23eb96=a167_0x23eb();let _0x1a17a2=_0x23eb96[_0x235f18];return _0x1a17a2;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a168_0x4d43(_0x4f0cb4,_0x551669){_0x4f0cb4=_0x4f0cb4-0x1e6;const _0x5d24ba=a168_0x5d24();let _0x4d43ad=_0x5d24ba[_0x4f0cb4];return _0x4d43ad;}(function(_0x568c67,_0x437cda){const _0x43bbb9=a168_0x4d43,_0x59c6b6=_0x568c67();while(!![]){try{const _0x3afe24=-parseInt(_0x43bbb9(0x1ee))/0x1+parseInt(_0x43bbb9(0x1e9))/0x2+parseInt(_0x43bbb9(0x1ea))/0x3*(parseInt(_0x43bbb9(0x1e6))/0x4)+parseInt(_0x43bbb9(0x1ed))/0x5+-parseInt(_0x43bbb9(0x1ec))/0x6+-parseInt(_0x43bbb9(0x1e8))/0x7+parseInt(_0x43bbb9(0x1e7))/0x8*(parseInt(_0x43bbb9(0x1eb))/0x9);if(_0x3afe24===_0x437cda)break;else _0x59c6b6['push'](_0x59c6b6['shift']());}catch(_0x3556b5){_0x59c6b6['push'](_0x59c6b6['shift']());}}}(a168_0x5d24,0x76be1));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a168_0x5d24(){const _0x2cc46b=['893590lXvwSb','154234DJfrbD','306676VUXmNf','3896OlPJsk','6758682hduNVL','1610766IgbOvh','12oIxYNu','15462QiBRms','3127884nFotWp'];a168_0x5d24=function(){return _0x2cc46b;};return a168_0x5d24();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x2f8e4d,_0x5cfabf){const _0x15b4e8=a168_0x474f,_0x227e72=_0x2f8e4d();while(!![]){try{const _0x3319f2=-parseInt(_0x15b4e8(0xd9))/0x1*(parseInt(_0x15b4e8(0xe5))/0x2)+-parseInt(_0x15b4e8(0xde))/0x3*(parseInt(_0x15b4e8(0xd5))/0x4)+-parseInt(_0x15b4e8(0xd6))/0x5+parseInt(_0x15b4e8(0xdc))/0x6+-parseInt(_0x15b4e8(0xda))/0x7+parseInt(_0x15b4e8(0xe4))/0x8*(parseInt(_0x15b4e8(0xe7))/0x9)+parseInt(_0x15b4e8(0xdf))/0xa;if(_0x3319f2===_0x5cfabf)break;else _0x227e72['push'](_0x227e72['shift']());}catch(_0x520122){_0x227e72['push'](_0x227e72['shift']());}}}(a168_0xcaad,0xc3645));import a168_0x3e89b3 from'semver';function a168_0x474f(_0x4e8a4c,_0x5d212f){_0x4e8a4c=_0x4e8a4c-0xd3;const _0xcaad53=a168_0xcaad();let _0x474f90=_0xcaad53[_0x4e8a4c];return _0x474f90;}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 a168_0xcaad(){const _0x3ef594=['288LvMonX','28926520JdwdZe','Minimum\x20supported:\x20','stableVersion','upgradeMessage','minimumVersion','3097296kEGzJK','594gFRKqt','filter','18vxNGdq','valid','currentVersion','npm\x20install\x20-g\x20','unavailable','10252uojXpr','6390220CSvSub','minimumVersionMessage','Recommended\x20stable:\x20','4804OxwrxE','4928217LkkSPC','belowMinimum','4729560VRbyTs','latest'];a168_0xcaad=function(){return _0x3ef594;};return a168_0xcaad();}export function evaluateCliVersionPolicy(_0x48a208,_0x356a08){const _0x302ee8=a168_0x474f,_0x38e4a2=a168_0x3e89b3[_0x302ee8(0xe8)](_0x48a208)===_0x48a208,_0x269c56=_0x356a08?.[_0x302ee8(0xe1)]??null,_0x153135=_0x356a08?.[_0x302ee8(0xe3)]??null,_0x4c6b24=Boolean(_0x38e4a2&&_0x269c56&&a168_0x3e89b3['lt'](_0x48a208,_0x269c56)),_0x1a752f=Boolean(_0x38e4a2&&_0x153135&&a168_0x3e89b3['lt'](_0x48a208,_0x153135));return{'currentVersion':_0x48a208,'stableVersion':_0x269c56,'minimumVersion':_0x153135,'needsUpgrade':_0x4c6b24||_0x1a752f,'belowMinimum':_0x1a752f,'upgradeMessage':_0x356a08?.[_0x302ee8(0xe2)],'minimumVersionMessage':_0x356a08?.[_0x302ee8(0xd7)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x2e38c2){const _0x34b354=a168_0x474f;return _0x34b354(0xd3)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x2e38c2['stableVersion']??_0x34b354(0xdd));}export function assertCliVersionSupported(_0x140058){const _0x5470e4=a168_0x474f;if(!_0x140058[_0x5470e4(0xdb)])return;const _0x428f2f=[_0x140058[_0x5470e4(0xd7)],'Current\x20version:\x20'+_0x140058[_0x5470e4(0xe9)],_0x5470e4(0xe0)+_0x140058['minimumVersion'],_0x5470e4(0xd8)+(_0x140058[_0x5470e4(0xe1)]??_0x5470e4(0xd4)),'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x140058)][_0x5470e4(0xe6)](Boolean)['join']('\x0a');throw CliErrors['validation']('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x428f2f);}
1
+ (function(_0x2bbf3e,_0x3d1c63){const _0x5a6074=a169_0x5000,_0x4d1c5d=_0x2bbf3e();while(!![]){try{const _0x7c648d=parseInt(_0x5a6074(0xdc))/0x1*(parseInt(_0x5a6074(0xd4))/0x2)+-parseInt(_0x5a6074(0xdd))/0x3+-parseInt(_0x5a6074(0xe0))/0x4*(parseInt(_0x5a6074(0xcc))/0x5)+-parseInt(_0x5a6074(0xdf))/0x6+parseInt(_0x5a6074(0xcf))/0x7*(parseInt(_0x5a6074(0xcd))/0x8)+-parseInt(_0x5a6074(0xcb))/0x9+parseInt(_0x5a6074(0xd6))/0xa*(parseInt(_0x5a6074(0xd3))/0xb);if(_0x7c648d===_0x3d1c63)break;else _0x4d1c5d['push'](_0x4d1c5d['shift']());}catch(_0x1f1b0a){_0x4d1c5d['push'](_0x4d1c5d['shift']());}}}(a169_0x4132,0x68123));function a169_0x4132(){const _0x55f243=['upgradeMessage','31dqYkLk','1151118CEbBrn','unavailable','21498OlLiBZ','52EUDhnP','Recommended\x20stable:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','latest','belowMinimum','filter','2552265CSGNUw','133640XVgVvd','21392AGaeVg','currentVersion','2219QjYDbF','minimumVersion','Minimum\x20supported:\x20','stableVersion','44coQhDj','13122loKkIN','join','983910ENMYch','minimumVersionMessage','Current\x20version:\x20','npm\x20install\x20-g\x20','valid'];a169_0x4132=function(){return _0x55f243;};return a169_0x4132();}import a169_0x218c50 from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';function a169_0x5000(_0x493293,_0x46ebde){_0x493293=_0x493293-0xc6;const _0x4132bb=a169_0x4132();let _0x50004f=_0x4132bb[_0x493293];return _0x50004f;}export function evaluateCliVersionPolicy(_0x44e6a1,_0x1fa705){const _0x175cc4=a169_0x5000,_0x2dd881=a169_0x218c50[_0x175cc4(0xda)](_0x44e6a1)===_0x44e6a1,_0x207da5=_0x1fa705?.['stableVersion']??null,_0x265a36=_0x1fa705?.[_0x175cc4(0xd0)]??null,_0x1f7f13=Boolean(_0x2dd881&&_0x207da5&&a169_0x218c50['lt'](_0x44e6a1,_0x207da5)),_0x431195=Boolean(_0x2dd881&&_0x265a36&&a169_0x218c50['lt'](_0x44e6a1,_0x265a36));return{'currentVersion':_0x44e6a1,'stableVersion':_0x207da5,'minimumVersion':_0x265a36,'needsUpgrade':_0x1f7f13||_0x431195,'belowMinimum':_0x431195,'upgradeMessage':_0x1fa705?.[_0x175cc4(0xdb)],'minimumVersionMessage':_0x1fa705?.[_0x175cc4(0xd7)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x403b5b){const _0x384957=a169_0x5000;return _0x384957(0xd9)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x403b5b['stableVersion']??_0x384957(0xc8));}export function assertCliVersionSupported(_0x4b7e6a){const _0xde50f0=a169_0x5000;if(!_0x4b7e6a[_0xde50f0(0xc9)])return;const _0x1f380c=[_0x4b7e6a[_0xde50f0(0xd7)],_0xde50f0(0xd8)+_0x4b7e6a[_0xde50f0(0xce)],_0xde50f0(0xd1)+_0x4b7e6a[_0xde50f0(0xd0)],_0xde50f0(0xc6)+(_0x4b7e6a[_0xde50f0(0xd2)]??_0xde50f0(0xde)),'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x4b7e6a)][_0xde50f0(0xca)](Boolean)[_0xde50f0(0xd5)]('\x0a');throw CliErrors['validation'](_0xde50f0(0xc7),_0x1f380c);}
@@ -1 +1 @@
1
- (function(_0x367765,_0x365ed8){const _0x2c2987=a169_0x3214,_0x36908e=_0x367765();while(!![]){try{const _0x2ff7e5=-parseInt(_0x2c2987(0x140))/0x1+parseInt(_0x2c2987(0x12d))/0x2*(-parseInt(_0x2c2987(0x13b))/0x3)+-parseInt(_0x2c2987(0x138))/0x4*(-parseInt(_0x2c2987(0x131))/0x5)+-parseInt(_0x2c2987(0x12c))/0x6*(parseInt(_0x2c2987(0x13f))/0x7)+parseInt(_0x2c2987(0x12a))/0x8*(-parseInt(_0x2c2987(0x13a))/0x9)+parseInt(_0x2c2987(0x136))/0xa*(-parseInt(_0x2c2987(0x135))/0xb)+-parseInt(_0x2c2987(0x127))/0xc*(-parseInt(_0x2c2987(0x130))/0xd);if(_0x2ff7e5===_0x365ed8)break;else _0x36908e['push'](_0x36908e['shift']());}catch(_0x324340){_0x36908e['push'](_0x36908e['shift']());}}}(a169_0x6f15,0xe6de0));import a169_0xf05a20 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(_0x56c004){const _0x42ccb0=a169_0x3214;return typeof _0x56c004===_0x42ccb0(0x12e)&&_0x56c004[_0x42ccb0(0x13d)]()?_0x56c004[_0x42ccb0(0x13d)]():null;}function pickStrictSemver(_0x51bf90){const _0x271a92=a169_0x3214,_0x1adcdc=pickString(_0x51bf90);return _0x1adcdc&&a169_0xf05a20[_0x271a92(0x12f)](_0x1adcdc)===_0x1adcdc?_0x1adcdc:null;}export function normalizeCliVersionPolicy(_0x12d6dc){const _0x57ef32=a169_0x3214;if(!_0x12d6dc||typeof _0x12d6dc!==_0x57ef32(0x13c))return null;const _0x1a2b54=_0x12d6dc,_0x20b226=_0x1a2b54[_0x57ef32(0x139)]&&typeof _0x1a2b54[_0x57ef32(0x139)]===_0x57ef32(0x13c)?_0x1a2b54[_0x57ef32(0x139)]:_0x1a2b54,_0x156af4=pickStrictSemver(_0x20b226[_0x57ef32(0x141)]??_0x20b226[_0x57ef32(0x128)]??_0x20b226['recommendedVersion']),_0x191876=pickStrictSemver(_0x20b226[_0x57ef32(0x12b)]??_0x20b226[_0x57ef32(0x133)]);if(!_0x156af4&&!_0x191876)return null;if(_0x156af4&&_0x191876&&a169_0xf05a20['gt'](_0x191876,_0x156af4))return null;return{'stableVersion':_0x156af4,'minimumVersion':_0x191876,'upgradeMessage':pickString(_0x20b226['upgradeMessage'])??undefined,'minimumVersionMessage':pickString(_0x20b226[_0x57ef32(0x137)])??undefined};}export async function fetchCliVersionPolicy(){const _0x4b69be=a169_0x3214;try{const _0x18c55a=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal[_0x4b69be(0x132)](FETCH_TIMEOUT_MS)});if(!_0x18c55a['ok'])return null;return normalizeCliVersionPolicy(await _0x18c55a['json']());}catch{return null;}}function a169_0x3214(_0x116332,_0x205f0c){_0x116332=_0x116332-0x127;const _0x6f15b4=a169_0x6f15();let _0x32148f=_0x6f15b4[_0x116332];return _0x32148f;}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x177239=a169_0x3214,_0x1eafa0=Date[_0x177239(0x129)]();if(hasCachedPolicy){const _0x3439ff=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x1eafa0-cachedAt<_0x3439ff)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x177239(0x13e)](_0x1b6167=>{const _0x358901=_0x177239;return cachedPolicy=_0x1b6167,cachedAt=Date[_0x358901(0x129)](),hasCachedPolicy=!![],_0x1b6167;})[_0x177239(0x134)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}function a169_0x6f15(){const _0x2650f1=['616qmBmJs','minimumVersion','84RDhPjK','2NPlfLg','string','valid','39EdocXG','20KyBlct','timeout','minVersion','finally','16151696TLTiat','10KEjtxk','minimumVersionMessage','278148vgOlvk','cli','167814MUCtcB','469779hPolWK','object','trim','then','304815sftxVX','956228qVbWTD','stableVersion','21176052LfJWdW','latestVersion','now'];a169_0x6f15=function(){return _0x2650f1;};return a169_0x6f15();}
1
+ (function(_0x4543c2,_0x134589){const _0x4df335=a170_0x26c7,_0x5dee83=_0x4543c2();while(!![]){try{const _0x11327d=-parseInt(_0x4df335(0x10f))/0x1+-parseInt(_0x4df335(0x111))/0x2*(parseInt(_0x4df335(0x116))/0x3)+parseInt(_0x4df335(0x10c))/0x4*(-parseInt(_0x4df335(0x11e))/0x5)+parseInt(_0x4df335(0x109))/0x6*(-parseInt(_0x4df335(0x110))/0x7)+-parseInt(_0x4df335(0x11b))/0x8+parseInt(_0x4df335(0x10a))/0x9+parseInt(_0x4df335(0x113))/0xa*(parseInt(_0x4df335(0x11a))/0xb);if(_0x11327d===_0x134589)break;else _0x5dee83['push'](_0x5dee83['shift']());}catch(_0x29fe6c){_0x5dee83['push'](_0x5dee83['shift']());}}}(a170_0x28e7,0x71db1));function a170_0x26c7(_0x3167e8,_0x1f8884){_0x3167e8=_0x3167e8-0x109;const _0x28e7aa=a170_0x28e7();let _0x26c7f1=_0x28e7aa[_0x3167e8];return _0x26c7f1;}import a170_0x5b7e39 from'semver';import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';function a170_0x28e7(){const _0x4dc768=['540XFgTab','cli','minimumVersion','timeout','11jUKhMs','5931336saniDU','minVersion','latestVersion','378220rRiEYK','73614qPRFNT','1419111vvLKTm','trim','8HflSOC','finally','application/json','4748XnWuLJ','350gEXeBN','5932fOcQoh','upgradeMessage','23534570Btotbh','json','object'];a170_0x28e7=function(){return _0x4dc768;};return a170_0x28e7();}const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0x5c780e){const _0x588bee=a170_0x26c7;return typeof _0x5c780e==='string'&&_0x5c780e[_0x588bee(0x10b)]()?_0x5c780e[_0x588bee(0x10b)]():null;}function pickStrictSemver(_0x56e6bc){const _0x2cb375=pickString(_0x56e6bc);return _0x2cb375&&a170_0x5b7e39['valid'](_0x2cb375)===_0x2cb375?_0x2cb375:null;}export function normalizeCliVersionPolicy(_0xc9aac8){const _0x5b44cb=a170_0x26c7;if(!_0xc9aac8||typeof _0xc9aac8!=='object')return null;const _0x3c3384=_0xc9aac8,_0xb89871=_0x3c3384[_0x5b44cb(0x117)]&&typeof _0x3c3384[_0x5b44cb(0x117)]===_0x5b44cb(0x115)?_0x3c3384[_0x5b44cb(0x117)]:_0x3c3384,_0x2f4e97=pickStrictSemver(_0xb89871['stableVersion']??_0xb89871[_0x5b44cb(0x11d)]??_0xb89871['recommendedVersion']),_0x3e2f80=pickStrictSemver(_0xb89871[_0x5b44cb(0x118)]??_0xb89871[_0x5b44cb(0x11c)]);if(!_0x2f4e97&&!_0x3e2f80)return null;if(_0x2f4e97&&_0x3e2f80&&a170_0x5b7e39['gt'](_0x3e2f80,_0x2f4e97))return null;return{'stableVersion':_0x2f4e97,'minimumVersion':_0x3e2f80,'upgradeMessage':pickString(_0xb89871[_0x5b44cb(0x112)])??undefined,'minimumVersionMessage':pickString(_0xb89871['minimumVersionMessage'])??undefined};}export async function fetchCliVersionPolicy(){const _0xe35157=a170_0x26c7;try{const _0x3cb96c=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xe35157(0x10e)},'signal':AbortSignal[_0xe35157(0x119)](FETCH_TIMEOUT_MS)});if(!_0x3cb96c['ok'])return null;return normalizeCliVersionPolicy(await _0x3cb96c[_0xe35157(0x114)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x1c27cd=a170_0x26c7,_0x5323c6=Date['now']();if(hasCachedPolicy){const _0x972f47=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x5323c6-cachedAt<_0x972f47)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x4a59e3=>{return cachedPolicy=_0x4a59e3,cachedAt=Date['now'](),hasCachedPolicy=!![],_0x4a59e3;})[_0x1c27cd(0x10d)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
@@ -1 +1 @@
1
- const a170_0x3cd5b3=a170_0x347f;function a170_0x347f(_0x14de58,_0x207658){_0x14de58=_0x14de58-0x74;const _0x119103=a170_0x1191();let _0x347fdf=_0x119103[_0x14de58];return _0x347fdf;}(function(_0x18985a,_0x44f8df){const _0x5ceb7a=a170_0x347f,_0x3383a0=_0x18985a();while(!![]){try{const _0x1c4034=-parseInt(_0x5ceb7a(0xad))/0x1*(parseInt(_0x5ceb7a(0xae))/0x2)+parseInt(_0x5ceb7a(0x80))/0x3*(-parseInt(_0x5ceb7a(0x9d))/0x4)+parseInt(_0x5ceb7a(0x87))/0x5*(parseInt(_0x5ceb7a(0xab))/0x6)+-parseInt(_0x5ceb7a(0xa0))/0x7*(-parseInt(_0x5ceb7a(0x7a))/0x8)+parseInt(_0x5ceb7a(0x78))/0x9+-parseInt(_0x5ceb7a(0xa1))/0xa+-parseInt(_0x5ceb7a(0x9a))/0xb*(-parseInt(_0x5ceb7a(0xac))/0xc);if(_0x1c4034===_0x44f8df)break;else _0x3383a0['push'](_0x3383a0['shift']());}catch(_0x4c8872){_0x3383a0['push'](_0x3383a0['shift']());}}}(a170_0x1191,0xabe97));import a170_0x5bc711 from'winston';import a170_0x17599d from'node:fs';import a170_0x2f5894 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a170_0x3cd5b3(0x9c)];[a170_0x3cd5b3(0xa8)]='';[a170_0x3cd5b3(0x9e)]='';constructor(){}[a170_0x3cd5b3(0x8c)](_0x5ff151){this['currentRawCommand']=_0x5ff151;}[a170_0x3cd5b3(0xa3)](_0x212784){const _0x2fca3e=a170_0x3cd5b3;this[_0x2fca3e(0xa8)]=a170_0x2f5894[_0x2fca3e(0x81)](_0x212784,PRODUCT_CONFIG['logFileName']),this[_0x2fca3e(0x9c)]&&this[_0x2fca3e(0x9c)][_0x2fca3e(0x91)](),this[_0x2fca3e(0x92)]();}['initWinstonLogger'](){const _0x26127c=a170_0x3cd5b3,_0xc8e4eb=a170_0x2f5894[_0x26127c(0x8e)](this[_0x26127c(0xa8)]);!a170_0x17599d[_0x26127c(0x79)](_0xc8e4eb)&&a170_0x17599d[_0x26127c(0x9f)](_0xc8e4eb,{'recursive':!![]});const _0x3ec8f2=a170_0x5bc711[_0x26127c(0x8b)][_0x26127c(0x84)](a170_0x5bc711['format'][_0x26127c(0x77)](),a170_0x5bc711[_0x26127c(0x8b)][_0x26127c(0x7e)]({'stack':!![]}),a170_0x5bc711[_0x26127c(0x8b)][_0x26127c(0x74)](_0x173e1c=>{const _0x1b02c0=_0x26127c,_0x42f9d8={'timestamp':_0x173e1c[_0x1b02c0(0x77)]||new Date()[_0x1b02c0(0xa9)](),'level':_0x173e1c['level']||_0x1b02c0(0x7f),'command':_0x173e1c[_0x1b02c0(0xa6)]||_0x1b02c0(0x99),'rawCommand':_0x173e1c[_0x1b02c0(0x98)]||this[_0x1b02c0(0x9e)]||undefined,'message':_0x173e1c[_0x1b02c0(0x96)]||'','duration':_0x173e1c[_0x1b02c0(0x85)]||undefined,'details':_0x173e1c[_0x1b02c0(0x94)]||undefined};return JSON['stringify'](_0x42f9d8);}));this[_0x26127c(0x9c)]=a170_0x5bc711[_0x26127c(0xaa)]({'level':_0x26127c(0x7f),'format':_0x3ec8f2,'transports':[new a170_0x5bc711[(_0x26127c(0x86))][(_0x26127c(0x93))]({'filename':this[_0x26127c(0xa8)],'level':_0x26127c(0x7f)})],'silent':![]}),a170_0x5bc711[_0x26127c(0xa2)]({'success':'green','error':'red','warn':_0x26127c(0x89),'info':_0x26127c(0x8a)});}[a170_0x3cd5b3(0x7f)](_0x52406b,_0x58af85,_0x215062){const _0x54439d=a170_0x3cd5b3;if(!this['logFilePath']||!this[_0x54439d(0x9c)])return;this['winstonLogger'][_0x54439d(0x7f)](_0x58af85,{'command':_0x52406b,'details':_0x215062});}['success'](_0x35c689,_0x440e1f,_0xa9660a,_0x178f81){const _0x5d36db=a170_0x3cd5b3;if(!this[_0x5d36db(0xa8)]||!this[_0x5d36db(0x9c)])return;this['winstonLogger']['log']('info',_0x440e1f,{'level':_0x5d36db(0x75),'command':_0x35c689,'duration':_0xa9660a,'details':_0x178f81});}[a170_0x3cd5b3(0x83)](_0x4910bf,_0x13478a,_0x353cd1){const _0x23be82=a170_0x3cd5b3;if(!this[_0x23be82(0xa8)]||!this[_0x23be82(0x9c)])return;this[_0x23be82(0x9c)][_0x23be82(0x83)](_0x13478a,{'command':_0x4910bf,'details':_0x353cd1});}[a170_0x3cd5b3(0x7b)](_0x2fe865,_0x5ef34a,_0x2e86a8){const _0x2446ab=a170_0x3cd5b3;if(!this[_0x2446ab(0xa8)]||!this['winstonLogger'])return;this[_0x2446ab(0x9c)][_0x2446ab(0x7b)](_0x5ef34a,{'command':_0x2fe865,'details':_0x2e86a8});}async[a170_0x3cd5b3(0x95)](_0x5cc07d,_0x42b6e4,_0x1fdd1c){const _0x5dc7ff=a170_0x3cd5b3,_0x3ed9d3=Date[_0x5dc7ff(0x97)]();this[_0x5dc7ff(0x7f)](_0x5cc07d,'Starting:\x20'+_0x42b6e4);try{const _0x1c7a0f=await _0x1fdd1c(),_0x5e3281=Date[_0x5dc7ff(0x97)]()-_0x3ed9d3;return this['success'](_0x5cc07d,_0x5dc7ff(0xa7)+_0x42b6e4,_0x5e3281),_0x1c7a0f;}catch(_0x1f245f){const _0x58182c=Date[_0x5dc7ff(0x97)]()-_0x3ed9d3;this[_0x5dc7ff(0x83)](_0x5cc07d,_0x5dc7ff(0xa5)+_0x42b6e4,{'error':_0x1f245f instanceof Error?_0x1f245f[_0x5dc7ff(0x96)]:String(_0x1f245f),'duration':_0x58182c});throw _0x1f245f;}}[a170_0x3cd5b3(0xaf)](){const _0x313011=a170_0x3cd5b3;try{if(!a170_0x17599d['existsSync'](this['logFilePath']))return[];const _0x5d571b=a170_0x17599d[_0x313011(0xa4)](this[_0x313011(0xa8)],_0x313011(0x9b));return _0x5d571b[_0x313011(0x8f)](/\r?\n/)[_0x313011(0x8d)](_0x40434f=>_0x40434f['trim']())[_0x313011(0x88)](_0x591f5b=>JSON[_0x313011(0x90)](_0x591f5b));}catch(_0xd81876){return console[_0x313011(0x7b)](_0x313011(0x76),_0xd81876),[];}}[a170_0x3cd5b3(0x7c)](){const _0x16299d=a170_0x3cd5b3;try{a170_0x17599d['existsSync'](this[_0x16299d(0xa8)])&&a170_0x17599d[_0x16299d(0x82)](this[_0x16299d(0xa8)],'','utf8');}catch(_0x463e2d){console[_0x16299d(0x7b)](_0x16299d(0xb0),_0x463e2d);}}[a170_0x3cd5b3(0x7d)](){const _0x4f74e5=a170_0x3cd5b3;return this[_0x4f74e5(0x9c)];}}function a170_0x1191(){const _0x238bfe=['clear','initWinstonLogger','File','details','logTask','message','now','rawCommand','unknown','231EizPiR','utf8','winstonLogger','350004ZjkIbJ','currentRawCommand','mkdirSync','3830939EjBgAc','3662070BMvMot','addColors','setLogPath','readFileSync','Failed:\x20','command','Completed:\x20','logFilePath','toISOString','createLogger','3660414zvBsPR','365316Bcyqzc','370453BksDlk','2HGHXwW','readLogs','Failed\x20to\x20clear\x20logs:','printf','success','Failed\x20to\x20read\x20logs:','timestamp','7035075kMGZvP','existsSync','8zMwtaY','warn','clearLogs','getWinstonInstance','errors','info','39MWULIw','join','writeFileSync','error','combine','duration','transports','5WGxYAh','map','yellow','blue','format','setRawCommand','filter','dirname','split','parse'];a170_0x1191=function(){return _0x238bfe;};return a170_0x1191();}export const logger=new Logger();
1
+ const a171_0x59231e=a171_0x30ad;(function(_0x18a91b,_0x5c43ff){const _0x5f12a1=a171_0x30ad,_0x4a6700=_0x18a91b();while(!![]){try{const _0x1c6724=parseInt(_0x5f12a1(0x136))/0x1+-parseInt(_0x5f12a1(0x13d))/0x2+-parseInt(_0x5f12a1(0x12c))/0x3*(-parseInt(_0x5f12a1(0x13c))/0x4)+-parseInt(_0x5f12a1(0x12f))/0x5*(-parseInt(_0x5f12a1(0x123))/0x6)+parseInt(_0x5f12a1(0x10d))/0x7*(parseInt(_0x5f12a1(0x119))/0x8)+parseInt(_0x5f12a1(0x139))/0x9*(parseInt(_0x5f12a1(0x121))/0xa)+parseInt(_0x5f12a1(0x134))/0xb*(-parseInt(_0x5f12a1(0x109))/0xc);if(_0x1c6724===_0x5c43ff)break;else _0x4a6700['push'](_0x4a6700['shift']());}catch(_0x412f21){_0x4a6700['push'](_0x4a6700['shift']());}}}(a171_0x3acd,0x19f5a));import a171_0x15f3fc from'winston';import a171_0x500326 from'node:fs';import a171_0xfbd222 from'node:path';function a171_0x3acd(){const _0x17267c=['utf8','currentRawCommand','log','2189sqXDtp','existsSync','177391HtEaRa','errors','createLogger','283266OyKkUa','logFilePath','success','159116rckwjq','228164jNvHAd','Failed:\x20','combine','red','17196YSuCVY','split','details','unknown','569513QBADwR','yellow','warn','dirname','format','Completed:\x20','readFileSync','error','addColors','writeFileSync','stringify','printf','8FALSnl','join','clearLogs','logTask','readLogs','info','winstonLogger','setRawCommand','10YKsYmH','now','24690VjPuzv','toISOString','timestamp','transports','setLogPath','message','trim','duration','initWinstonLogger','15ElLpgB','Failed\x20to\x20read\x20logs:','level','20jYZjYB','File'];a171_0x3acd=function(){return _0x17267c;};return a171_0x3acd();}function a171_0x30ad(_0x1e6a82,_0x342926){_0x1e6a82=_0x1e6a82-0x109;const _0x3acd1b=a171_0x3acd();let _0x30ad23=_0x3acd1b[_0x1e6a82];return _0x30ad23;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a171_0x59231e(0x11f)];[a171_0x59231e(0x13a)]='';[a171_0x59231e(0x132)]='';constructor(){}[a171_0x59231e(0x120)](_0x3fd095){const _0x317784=a171_0x59231e;this[_0x317784(0x132)]=_0x3fd095;}[a171_0x59231e(0x127)](_0x3558ed){const _0x99f3fc=a171_0x59231e;this[_0x99f3fc(0x13a)]=a171_0xfbd222[_0x99f3fc(0x11a)](_0x3558ed,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this['winstonLogger']['clear'](),this[_0x99f3fc(0x12b)]();}[a171_0x59231e(0x12b)](){const _0x5ed8a4=a171_0x59231e,_0x367597=a171_0xfbd222[_0x5ed8a4(0x110)](this[_0x5ed8a4(0x13a)]);!a171_0x500326['existsSync'](_0x367597)&&a171_0x500326['mkdirSync'](_0x367597,{'recursive':!![]});const _0x5aa62a=a171_0x15f3fc[_0x5ed8a4(0x111)][_0x5ed8a4(0x13f)](a171_0x15f3fc['format'][_0x5ed8a4(0x125)](),a171_0x15f3fc[_0x5ed8a4(0x111)][_0x5ed8a4(0x137)]({'stack':!![]}),a171_0x15f3fc[_0x5ed8a4(0x111)][_0x5ed8a4(0x118)](_0x3d732b=>{const _0x14f95e=_0x5ed8a4,_0x132ed0={'timestamp':_0x3d732b[_0x14f95e(0x125)]||new Date()[_0x14f95e(0x124)](),'level':_0x3d732b[_0x14f95e(0x12e)]||_0x14f95e(0x11e),'command':_0x3d732b['command']||_0x14f95e(0x10c),'rawCommand':_0x3d732b['rawCommand']||this[_0x14f95e(0x132)]||undefined,'message':_0x3d732b[_0x14f95e(0x128)]||'','duration':_0x3d732b[_0x14f95e(0x12a)]||undefined,'details':_0x3d732b[_0x14f95e(0x10b)]||undefined};return JSON[_0x14f95e(0x117)](_0x132ed0);}));this['winstonLogger']=a171_0x15f3fc[_0x5ed8a4(0x138)]({'level':_0x5ed8a4(0x11e),'format':_0x5aa62a,'transports':[new a171_0x15f3fc[(_0x5ed8a4(0x126))][(_0x5ed8a4(0x130))]({'filename':this[_0x5ed8a4(0x13a)],'level':'info'})],'silent':![]}),a171_0x15f3fc[_0x5ed8a4(0x115)]({'success':'green','error':_0x5ed8a4(0x140),'warn':_0x5ed8a4(0x10e),'info':'blue'});}[a171_0x59231e(0x11e)](_0x45b9ba,_0x290736,_0x543a3f){const _0x4fd89b=a171_0x59231e;if(!this[_0x4fd89b(0x13a)]||!this[_0x4fd89b(0x11f)])return;this['winstonLogger'][_0x4fd89b(0x11e)](_0x290736,{'command':_0x45b9ba,'details':_0x543a3f});}[a171_0x59231e(0x13b)](_0x5dd33f,_0x32e730,_0x2a207e,_0x3d295c){const _0x1ef0e9=a171_0x59231e;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x1ef0e9(0x11f)][_0x1ef0e9(0x133)](_0x1ef0e9(0x11e),_0x32e730,{'level':'success','command':_0x5dd33f,'duration':_0x2a207e,'details':_0x3d295c});}[a171_0x59231e(0x114)](_0x5b8d43,_0x7af897,_0x12667d){const _0x17672d=a171_0x59231e;if(!this[_0x17672d(0x13a)]||!this[_0x17672d(0x11f)])return;this['winstonLogger'][_0x17672d(0x114)](_0x7af897,{'command':_0x5b8d43,'details':_0x12667d});}[a171_0x59231e(0x10f)](_0x5682ce,_0x5addac,_0x16c43f){const _0x58010f=a171_0x59231e;if(!this[_0x58010f(0x13a)]||!this['winstonLogger'])return;this[_0x58010f(0x11f)][_0x58010f(0x10f)](_0x5addac,{'command':_0x5682ce,'details':_0x16c43f});}async[a171_0x59231e(0x11c)](_0x23f3c0,_0x87aceb,_0x2d124f){const _0x2947a8=a171_0x59231e,_0xa7ca5f=Date[_0x2947a8(0x122)]();this['info'](_0x23f3c0,'Starting:\x20'+_0x87aceb);try{const _0x4d3a9d=await _0x2d124f(),_0x4fbf97=Date['now']()-_0xa7ca5f;return this[_0x2947a8(0x13b)](_0x23f3c0,_0x2947a8(0x112)+_0x87aceb,_0x4fbf97),_0x4d3a9d;}catch(_0x3f98f3){const _0x37bf18=Date[_0x2947a8(0x122)]()-_0xa7ca5f;this[_0x2947a8(0x114)](_0x23f3c0,_0x2947a8(0x13e)+_0x87aceb,{'error':_0x3f98f3 instanceof Error?_0x3f98f3[_0x2947a8(0x128)]:String(_0x3f98f3),'duration':_0x37bf18});throw _0x3f98f3;}}[a171_0x59231e(0x11d)](){const _0x485dba=a171_0x59231e;try{if(!a171_0x500326[_0x485dba(0x135)](this[_0x485dba(0x13a)]))return[];const _0x308679=a171_0x500326[_0x485dba(0x113)](this[_0x485dba(0x13a)],_0x485dba(0x131));return _0x308679[_0x485dba(0x10a)](/\r?\n/)['filter'](_0x3bc8c7=>_0x3bc8c7[_0x485dba(0x129)]())['map'](_0x25987a=>JSON['parse'](_0x25987a));}catch(_0x6791f3){return console[_0x485dba(0x10f)](_0x485dba(0x12d),_0x6791f3),[];}}[a171_0x59231e(0x11b)](){const _0x2a4c9f=a171_0x59231e;try{a171_0x500326[_0x2a4c9f(0x135)](this[_0x2a4c9f(0x13a)])&&a171_0x500326[_0x2a4c9f(0x116)](this['logFilePath'],'',_0x2a4c9f(0x131));}catch(_0x5059aa){console[_0x2a4c9f(0x10f)]('Failed\x20to\x20clear\x20logs:',_0x5059aa);}}['getWinstonInstance'](){const _0x3d3441=a171_0x59231e;return this[_0x3d3441(0x11f)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0xd1bd3e,_0x33258d){const _0x4a3a87=a171_0x1f34,_0x5a2459=_0xd1bd3e();while(!![]){try{const _0x175075=parseInt(_0x4a3a87(0xef))/0x1+parseInt(_0x4a3a87(0xea))/0x2*(parseInt(_0x4a3a87(0xe9))/0x3)+-parseInt(_0x4a3a87(0xfa))/0x4*(parseInt(_0x4a3a87(0xeb))/0x5)+-parseInt(_0x4a3a87(0xf2))/0x6+parseInt(_0x4a3a87(0xf1))/0x7*(parseInt(_0x4a3a87(0xe7))/0x8)+-parseInt(_0x4a3a87(0xf4))/0x9*(parseInt(_0x4a3a87(0xf0))/0xa)+-parseInt(_0x4a3a87(0xf5))/0xb*(-parseInt(_0x4a3a87(0xf8))/0xc);if(_0x175075===_0x33258d)break;else _0x5a2459['push'](_0x5a2459['shift']());}catch(_0x4e1440){_0x5a2459['push'](_0x5a2459['shift']());}}}(a171_0x2f71,0x7567f));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number['MIN_SAFE_INTEGER']);function a171_0x1f34(_0x3445f4,_0xe1a0bd){_0x3445f4=_0x3445f4-0xe7;const _0x2f7107=a171_0x2f71();let _0x1f3450=_0x2f7107[_0x3445f4];return _0x1f3450;}let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x52d2ac){const _0x79d718=a171_0x1f34;if(_0x52d2ac[_0x79d718(0xe8)]('.')||_0x52d2ac[_0x79d718(0xe8)]('e')||_0x52d2ac['includes']('E'))return![];const _0x3b7a74=BigInt(_0x52d2ac);return _0x3b7a74>MAX_SAFE_INTEGER||_0x3b7a74<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x18a372){const _0x104887=a171_0x1f34;let _0x554e96='',_0x2da565=![],_0x3a5ce4=![];for(let _0x154455=0x0;_0x154455<_0x18a372['length'];){const _0x2e10af=_0x18a372[_0x154455];if(_0x2da565){_0x554e96+=_0x2e10af,_0x154455+=0x1;if(_0x3a5ce4)_0x3a5ce4=![];else{if(_0x2e10af==='\x5c')_0x3a5ce4=!![];else _0x2e10af==='\x22'&&(_0x2da565=![]);}continue;}if(_0x2e10af==='\x22'){_0x2da565=!![],_0x554e96+=_0x2e10af,_0x154455+=0x1;continue;}if(_0x2e10af==='-'||_0x2e10af>='0'&&_0x2e10af<='9'){const _0x35141a=JSON_NUMBER_PATTERN[_0x104887(0xed)](_0x18a372['slice'](_0x154455))?.[0x0];if(_0x35141a){_0x554e96+=isUnsafeIntegerLiteral(_0x35141a)?'\x22'+_0x35141a+'\x22':_0x35141a,_0x154455+=_0x35141a[_0x104887(0xf6)];continue;}}_0x554e96+=_0x2e10af,_0x154455+=0x1;}return _0x554e96;}export function parseLosslessJson(_0x219ec2){const _0xec4382=a171_0x1f34;return JSON[_0xec4382(0xf7)](quoteUnsafeIntegerLiterals(_0x219ec2));}export function installLosslessJsonResponseParser(){const _0x548f60=a171_0x1f34;if(typeof Response===_0x548f60(0xf9))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0x548f60(0xec)),Object['defineProperty'](responseJsonPrototype,_0x548f60(0xec),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x4223f2(){const _0x4b6612=_0x548f60;return parseLosslessJson(await this[_0x4b6612(0xf3)]());}}),restoreResponseJsonParser=()=>{const _0x29f60e=_0x548f60;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x29f60e(0xee)](responseJsonPrototype,_0x29f60e(0xec),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}function a171_0x2f71(){const _0x33bd52=['1669244FLJoWn','2931224FdsdFw','includes','27OgIpMv','160484KBPfRQ','5klvEMm','json','exec','defineProperty','236978qOICNU','10IvKWJy','7rGaDZS','2699394lGAAKb','text','2585313DeYujo','262141ywvjdF','length','parse','156fsiOhi','undefined'];a171_0x2f71=function(){return _0x33bd52;};return a171_0x2f71();}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ const a172_0x4688e4=a172_0x1caa;function a172_0x1caa(_0x2a8942,_0x43dba0){_0x2a8942=_0x2a8942-0x1b5;const _0x51516b=a172_0x5151();let _0x1caa5f=_0x51516b[_0x2a8942];return _0x1caa5f;}(function(_0x605528,_0x347b26){const _0x459274=a172_0x1caa,_0x2e6092=_0x605528();while(!![]){try{const _0x2d4b3a=-parseInt(_0x459274(0x1bb))/0x1+parseInt(_0x459274(0x1c3))/0x2*(-parseInt(_0x459274(0x1b6))/0x3)+parseInt(_0x459274(0x1b9))/0x4*(parseInt(_0x459274(0x1c8))/0x5)+parseInt(_0x459274(0x1c2))/0x6+-parseInt(_0x459274(0x1bd))/0x7+-parseInt(_0x459274(0x1bf))/0x8+parseInt(_0x459274(0x1c9))/0x9;if(_0x2d4b3a===_0x347b26)break;else _0x2e6092['push'](_0x2e6092['shift']());}catch(_0x32d492){_0x2e6092['push'](_0x2e6092['shift']());}}}(a172_0x5151,0xec924));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a172_0x4688e4(0x1ba)]),MIN_SAFE_INTEGER=BigInt(Number[a172_0x4688e4(0x1b8)]);function a172_0x5151(){const _0x1c38cb=['slice','6tLrcLv','length','MIN_SAFE_INTEGER','44imFgnO','MAX_SAFE_INTEGER','1035338leZnBL','text','241836lhUptZ','defineProperty','8005672SeTRpn','includes','json','11484672sXhcaL','945696HxyTlS','undefined','prototype','exec','getOwnPropertyDescriptor','811345rABkcg','2575944ROtDFm'];a172_0x5151=function(){return _0x1c38cb;};return a172_0x5151();}let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x26fdb2){const _0xc89abb=a172_0x4688e4;if(_0x26fdb2['includes']('.')||_0x26fdb2[_0xc89abb(0x1c0)]('e')||_0x26fdb2[_0xc89abb(0x1c0)]('E'))return![];const _0xc28d29=BigInt(_0x26fdb2);return _0xc28d29>MAX_SAFE_INTEGER||_0xc28d29<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x5d4828){const _0x1e5232=a172_0x4688e4;let _0x3fb8da='',_0x37b497=![],_0x47f63e=![];for(let _0x4d9611=0x0;_0x4d9611<_0x5d4828['length'];){const _0x124218=_0x5d4828[_0x4d9611];if(_0x37b497){_0x3fb8da+=_0x124218,_0x4d9611+=0x1;if(_0x47f63e)_0x47f63e=![];else{if(_0x124218==='\x5c')_0x47f63e=!![];else _0x124218==='\x22'&&(_0x37b497=![]);}continue;}if(_0x124218==='\x22'){_0x37b497=!![],_0x3fb8da+=_0x124218,_0x4d9611+=0x1;continue;}if(_0x124218==='-'||_0x124218>='0'&&_0x124218<='9'){const _0x3cb791=JSON_NUMBER_PATTERN[_0x1e5232(0x1c6)](_0x5d4828[_0x1e5232(0x1b5)](_0x4d9611))?.[0x0];if(_0x3cb791){_0x3fb8da+=isUnsafeIntegerLiteral(_0x3cb791)?'\x22'+_0x3cb791+'\x22':_0x3cb791,_0x4d9611+=_0x3cb791[_0x1e5232(0x1b7)];continue;}}_0x3fb8da+=_0x124218,_0x4d9611+=0x1;}return _0x3fb8da;}export function parseLosslessJson(_0x362ffb){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x362ffb));}export function installLosslessJsonResponseParser(){const _0x217b4c=a172_0x4688e4;if(typeof Response===_0x217b4c(0x1c4))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x217b4c(0x1c5)],originalResponseJsonDescriptor=Object[_0x217b4c(0x1c7)](responseJsonPrototype,_0x217b4c(0x1c1)),Object['defineProperty'](responseJsonPrototype,_0x217b4c(0x1c1),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x10e4a3(){const _0x5259af=_0x217b4c;return parseLosslessJson(await this[_0x5259af(0x1bc)]());}}),restoreResponseJsonParser=()=>{const _0x49a64e=_0x217b4c;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x49a64e(0x1be)](responseJsonPrototype,_0x49a64e(0x1c1),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x49a64e(0x1c1)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
@@ -1 +1 @@
1
- (function(_0x3c396b,_0x2000b3){const _0x306f70=a172_0x5128,_0x842e97=_0x3c396b();while(!![]){try{const _0x143376=parseInt(_0x306f70(0xd5))/0x1+parseInt(_0x306f70(0xd3))/0x2*(-parseInt(_0x306f70(0xe3))/0x3)+-parseInt(_0x306f70(0xe6))/0x4*(parseInt(_0x306f70(0xe1))/0x5)+parseInt(_0x306f70(0xe9))/0x6*(parseInt(_0x306f70(0xdd))/0x7)+-parseInt(_0x306f70(0xdb))/0x8+parseInt(_0x306f70(0xe0))/0x9+-parseInt(_0x306f70(0xcf))/0xa*(-parseInt(_0x306f70(0xea))/0xb);if(_0x143376===_0x2000b3)break;else _0x842e97['push'](_0x842e97['shift']());}catch(_0x567e38){_0x842e97['push'](_0x842e97['shift']());}}}(a172_0x1fe2,0x888a7));import{CliErrors}from'../errors.js';function a172_0x5128(_0x2e1994,_0x52e949){_0x2e1994=_0x2e1994-0xcf;const _0x1fe2b2=a172_0x1fe2();let _0x51285c=_0x1fe2b2[_0x2e1994];return _0x51285c;}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;function a172_0x1fe2(){const _0x66a488=['11JRTEcZ','join','string','validation','15731410PJUZuS','test','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','4fGjfCF','id[','1002834POmFhs','data\x20update\x20--params.','data\x20update\x20can\x20update\x20at\x20most\x20','items','isArray','isSafeInteger','5068552RTPFuJ','length','2877NGnbyL','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','number','1507995HKXojx','25UwOlHa','\x20records\x20per\x20call;\x20received\x20','1342563kjPcWJ','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','object','796436CzfwsL','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','Invalid\x20JSON\x20for\x20--params:\x20','4962Qelqds'];a172_0x1fe2=function(){return _0x66a488;};return a172_0x1fe2();}export function parseJsonParams(_0x52f0d9){const _0xa66ce9=a172_0x5128;if(!_0x52f0d9)return undefined;try{return parseLosslessJson(_0x52f0d9);}catch{throw CliErrors['validation'](_0xa66ce9(0xe8)+_0x52f0d9);}}export function parseJsonParamsValue(_0x1813dd){const _0x4671c8=a172_0x5128;if(!_0x1813dd)return undefined;try{return parseLosslessJson(_0x1813dd);}catch{throw CliErrors[_0x4671c8(0xed)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x1813dd);}}export function parseBatchCreateItemsFromParams(_0x207b3a){const _0x256fd7=a172_0x5128;if(Array[_0x256fd7(0xd9)](_0x207b3a))return _0x207b3a;if(_0x207b3a!==null&&_0x207b3a!==undefined&&typeof _0x207b3a===_0x256fd7(0xe5)&&Array[_0x256fd7(0xd9)](_0x207b3a[_0x256fd7(0xd8)]))return _0x207b3a[_0x256fd7(0xd8)];throw CliErrors[_0x256fd7(0xed)](_0x256fd7(0xe4),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0xdcd60d,_0x4e9cb4){const _0xbe3b45=a172_0x5128;if(typeof _0xdcd60d===_0xbe3b45(0xdf)&&Number[_0xbe3b45(0xda)](_0xdcd60d)&&_0xdcd60d>0x0)return _0xdcd60d;if(typeof _0xdcd60d===_0xbe3b45(0xec)){if(/^[1-9]\d*$/[_0xbe3b45(0xd0)](_0xdcd60d))return _0xdcd60d;}throw CliErrors[_0xbe3b45(0xed)](_0xbe3b45(0xd6)+_0x4e9cb4+_0xbe3b45(0xe7));}export function parseUpdateIdsFromParams(_0x3dc7ab){const _0x1da45f=a172_0x5128;if(_0x3dc7ab===null||_0x3dc7ab===undefined||typeof _0x3dc7ab!==_0x1da45f(0xe5)||Array[_0x1da45f(0xd9)](_0x3dc7ab))throw CliErrors[_0x1da45f(0xed)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x1da45f(0xd1));const _0x3b73df=_0x3dc7ab['id'];if(_0x3b73df===undefined||_0x3b73df===null)throw CliErrors['validation'](_0x1da45f(0xd2),_0x1da45f(0xd1));const _0x21ae5a=Array[_0x1da45f(0xd9)](_0x3b73df)?_0x3b73df:[_0x3b73df];if(_0x21ae5a[_0x1da45f(0xdc)]===0x0)throw CliErrors[_0x1da45f(0xed)](_0x1da45f(0xde));if(_0x21ae5a[_0x1da45f(0xdc)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x1da45f(0xed)](_0x1da45f(0xd7)+MAX_DATA_UPDATE_IDS+_0x1da45f(0xe2)+_0x21ae5a['length']+'.');return _0x21ae5a['map']((_0x3eec2e,_0x31cd26)=>parseDataUpdateId(_0x3eec2e,Array[_0x1da45f(0xd9)](_0x3b73df)?_0x1da45f(0xd4)+_0x31cd26+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x1f3500,_0x1c3eea){const _0x3b392b=a172_0x5128;if(Array['isArray'](_0x1f3500['id'])&&_0x1c3eea[_0x3b392b(0xdc)]>0x1)return{..._0x1f3500,'id':_0x1c3eea[_0x3b392b(0xeb)](',')};return _0x1f3500;}
1
+ (function(_0x2abf5b,_0x792f39){const _0x261312=a173_0x1a02,_0x467aca=_0x2abf5b();while(!![]){try{const _0x11ec9b=-parseInt(_0x261312(0x1a5))/0x1*(parseInt(_0x261312(0x1b1))/0x2)+-parseInt(_0x261312(0x1b3))/0x3+-parseInt(_0x261312(0x1ae))/0x4*(-parseInt(_0x261312(0x1b7))/0x5)+-parseInt(_0x261312(0x19f))/0x6*(-parseInt(_0x261312(0x1ac))/0x7)+parseInt(_0x261312(0x1a4))/0x8+parseInt(_0x261312(0x1b8))/0x9+parseInt(_0x261312(0x1bb))/0xa;if(_0x11ec9b===_0x792f39)break;else _0x467aca['push'](_0x467aca['shift']());}catch(_0x3ea25c){_0x467aca['push'](_0x467aca['shift']());}}}(a173_0x1850,0xb88c0));import{CliErrors}from'../errors.js';function a173_0x1a02(_0x30315c,_0x58bf1a){_0x30315c=_0x30315c-0x19f;const _0x1850ee=a173_0x1850();let _0x1a0240=_0x1850ee[_0x30315c];return _0x1a0240;}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x2bfcb2){const _0x2320bc=a173_0x1a02;if(!_0x2bfcb2)return undefined;try{return parseLosslessJson(_0x2bfcb2);}catch{throw CliErrors['validation'](_0x2320bc(0x1a2)+_0x2bfcb2);}}export function parseJsonParamsValue(_0x4edb90){const _0x3b2f1c=a173_0x1a02;if(!_0x4edb90)return undefined;try{return parseLosslessJson(_0x4edb90);}catch{throw CliErrors['validation'](_0x3b2f1c(0x1a2)+_0x4edb90);}}function a173_0x1850(){const _0x32eb20=['580614PzecBv','items','validation','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','25vSaQXG','5809221GlFtiQ','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','test','323630DAPEuJ','77754hQgOrm','isSafeInteger','length','Invalid\x20JSON\x20for\x20--params:\x20','join','4305576ySHnBg','1ByvZZz','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','string','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','id[','map','data\x20update\x20--params.','28QpHUXd','number','482956iHRjyk','isArray','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','1844236PFMFKR','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}'];a173_0x1850=function(){return _0x32eb20;};return a173_0x1850();}export function parseBatchCreateItemsFromParams(_0x4d7e58){const _0x4491ce=a173_0x1a02;if(Array['isArray'](_0x4d7e58))return _0x4d7e58;if(_0x4d7e58!==null&&_0x4d7e58!==undefined&&typeof _0x4d7e58==='object'&&Array[_0x4491ce(0x1af)](_0x4d7e58[_0x4491ce(0x1b4)]))return _0x4d7e58[_0x4491ce(0x1b4)];throw CliErrors[_0x4491ce(0x1b5)](_0x4491ce(0x1b2),_0x4491ce(0x1a6));}function parseDataUpdateId(_0xca12c4,_0xb97236){const _0x10e47c=a173_0x1a02;if(typeof _0xca12c4===_0x10e47c(0x1ad)&&Number[_0x10e47c(0x1a0)](_0xca12c4)&&_0xca12c4>0x0)return _0xca12c4;if(typeof _0xca12c4===_0x10e47c(0x1a7)){if(/^[1-9]\d*$/[_0x10e47c(0x1ba)](_0xca12c4))return _0xca12c4;}throw CliErrors[_0x10e47c(0x1b5)](_0x10e47c(0x1ab)+_0xb97236+_0x10e47c(0x1b0));}export function parseUpdateIdsFromParams(_0x33b7b0){const _0x1582fb=a173_0x1a02;if(_0x33b7b0===null||_0x33b7b0===undefined||typeof _0x33b7b0!=='object'||Array[_0x1582fb(0x1af)](_0x33b7b0))throw CliErrors[_0x1582fb(0x1b5)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x1582fb(0x1b9));const _0x41b682=_0x33b7b0['id'];if(_0x41b682===undefined||_0x41b682===null)throw CliErrors[_0x1582fb(0x1b5)](_0x1582fb(0x1a8),_0x1582fb(0x1b9));const _0xd5f109=Array[_0x1582fb(0x1af)](_0x41b682)?_0x41b682:[_0x41b682];if(_0xd5f109[_0x1582fb(0x1a1)]===0x0)throw CliErrors[_0x1582fb(0x1b5)](_0x1582fb(0x1b6));if(_0xd5f109[_0x1582fb(0x1a1)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x1582fb(0x1b5)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0xd5f109['length']+'.');return _0xd5f109[_0x1582fb(0x1aa)]((_0x74f92e,_0x2489f7)=>parseDataUpdateId(_0x74f92e,Array[_0x1582fb(0x1af)](_0x41b682)?_0x1582fb(0x1a9)+_0x2489f7+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x93d08c,_0x23f0ed){const _0x2228e1=a173_0x1a02;if(Array[_0x2228e1(0x1af)](_0x93d08c['id'])&&_0x23f0ed[_0x2228e1(0x1a1)]>0x1)return{..._0x93d08c,'id':_0x23f0ed[_0x2228e1(0x1a3)](',')};return _0x93d08c;}
@@ -1 +1 @@
1
- function a173_0x59bb(_0x3da35c,_0x2c6aec){_0x3da35c=_0x3da35c-0x15c;const _0x10bda0=a173_0x10bd();let _0x59bbf8=_0x10bda0[_0x3da35c];return _0x59bbf8;}(function(_0x3f694f,_0x3ef95b){const _0x2f443f=a173_0x59bb,_0x4bba2e=_0x3f694f();while(!![]){try{const _0x2e689e=parseInt(_0x2f443f(0x161))/0x1*(-parseInt(_0x2f443f(0x160))/0x2)+-parseInt(_0x2f443f(0x167))/0x3*(parseInt(_0x2f443f(0x163))/0x4)+parseInt(_0x2f443f(0x168))/0x5+parseInt(_0x2f443f(0x166))/0x6*(-parseInt(_0x2f443f(0x15c))/0x7)+-parseInt(_0x2f443f(0x15f))/0x8+-parseInt(_0x2f443f(0x164))/0x9+parseInt(_0x2f443f(0x162))/0xa*(parseInt(_0x2f443f(0x15e))/0xb);if(_0x2e689e===_0x3ef95b)break;else _0x4bba2e['push'](_0x4bba2e['shift']());}catch(_0x368b5e){_0x4bba2e['push'](_0x4bba2e['shift']());}}}(a173_0x10bd,0xd7b6e));function a173_0x10bd(){const _0x2dc2b3=['39671330unUdOS','76088jlLhqU','12083868nTBiUV','number','12sHpaiJ','126mYEjXW','3520580saHqAg','test','430983szfoda','string','11GzRRZg','12176064qUoRbA','62BXeQDY','31LaoTuX'];a173_0x10bd=function(){return _0x2dc2b3;};return a173_0x10bd();}export function normalizePositiveSafeInteger(_0x2b440e){const _0x11af4f=a173_0x59bb;if(typeof _0x2b440e===_0x11af4f(0x165))return Number['isSafeInteger'](_0x2b440e)&&_0x2b440e>0x0?_0x2b440e:undefined;if(typeof _0x2b440e!==_0x11af4f(0x15d)||!/^\d+$/[_0x11af4f(0x169)](_0x2b440e))return undefined;const _0x30fbce=Number(_0x2b440e);return Number['isSafeInteger'](_0x30fbce)&&_0x30fbce>0x0?_0x30fbce:undefined;}
1
+ (function(_0x39c8cf,_0x1c5a64){const _0x3dfdde=a174_0x5546,_0x5dd074=_0x39c8cf();while(!![]){try{const _0x3d3e2b=parseInt(_0x3dfdde(0x1b1))/0x1+parseInt(_0x3dfdde(0x1ad))/0x2+parseInt(_0x3dfdde(0x1ae))/0x3*(-parseInt(_0x3dfdde(0x1b2))/0x4)+parseInt(_0x3dfdde(0x1a8))/0x5*(parseInt(_0x3dfdde(0x1a9))/0x6)+-parseInt(_0x3dfdde(0x1ab))/0x7*(parseInt(_0x3dfdde(0x1b5))/0x8)+parseInt(_0x3dfdde(0x1b0))/0x9*(-parseInt(_0x3dfdde(0x1ac))/0xa)+-parseInt(_0x3dfdde(0x1b4))/0xb*(-parseInt(_0x3dfdde(0x1af))/0xc);if(_0x3d3e2b===_0x1c5a64)break;else _0x5dd074['push'](_0x5dd074['shift']());}catch(_0x34bb45){_0x5dd074['push'](_0x5dd074['shift']());}}}(a174_0x44d5,0xd51d8));function a174_0x5546(_0x543de0,_0x39d66e){_0x543de0=_0x543de0-0x1a7;const _0x44d507=a174_0x44d5();let _0x554627=_0x44d507[_0x543de0];return _0x554627;}function a174_0x44d5(){const _0x3a8b22=['6SYOsyt','isSafeInteger','41951hwkAZi','140IwVpCV','2807278mXChbT','1371uYIhiV','302856FByLfL','636147XEKqxi','1492044tamQdD','13284YRmcim','test','319BvRrWT','1320TKwZOY','number','3707195wovHZj'];a174_0x44d5=function(){return _0x3a8b22;};return a174_0x44d5();}export function normalizePositiveSafeInteger(_0x409e4d){const _0x434110=a174_0x5546;if(typeof _0x409e4d===_0x434110(0x1a7))return Number[_0x434110(0x1aa)](_0x409e4d)&&_0x409e4d>0x0?_0x409e4d:undefined;if(typeof _0x409e4d!=='string'||!/^\d+$/[_0x434110(0x1b3)](_0x409e4d))return undefined;const _0x2db743=Number(_0x409e4d);return Number['isSafeInteger'](_0x2db743)&&_0x2db743>0x0?_0x2db743:undefined;}
@@ -1 +1 @@
1
- function a174_0x3521(_0x3fcd09,_0x4ca7c8){_0x3fcd09=_0x3fcd09-0x189;const _0x5394f8=a174_0x5394();let _0x3521d6=_0x5394f8[_0x3fcd09];return _0x3521d6;}const a174_0x3ad9b1=a174_0x3521;(function(_0x248b0e,_0x4620d1){const _0x5487ed=a174_0x3521,_0x31612c=_0x248b0e();while(!![]){try{const _0x51b245=-parseInt(_0x5487ed(0x18a))/0x1+parseInt(_0x5487ed(0x18f))/0x2*(parseInt(_0x5487ed(0x189))/0x3)+parseInt(_0x5487ed(0x196))/0x4+parseInt(_0x5487ed(0x194))/0x5+parseInt(_0x5487ed(0x195))/0x6+-parseInt(_0x5487ed(0x198))/0x7+-parseInt(_0x5487ed(0x193))/0x8*(parseInt(_0x5487ed(0x19c))/0x9);if(_0x51b245===_0x4620d1)break;else _0x31612c['push'](_0x31612c['shift']());}catch(_0x2de651){_0x31612c['push'](_0x31612c['shift']());}}}(a174_0x5394,0xe53fc));const REDACTED_VALUE='[REDACTED]',SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a174_0x3ad9b1(0x18e),a174_0x3ad9b1(0x192)]),SENSITIVE_VALUE_KEYS=new Set([a174_0x3ad9b1(0x18e)]);export function isSensitiveKey(_0xf07a85){const _0x423104=a174_0x3ad9b1,_0x541cea=_0xf07a85[_0x423104(0x191)](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x423104(0x197)](_0x541cea);}export function isSensitiveFlagName(_0xfe13ca){const _0x40125c=a174_0x3ad9b1,_0xfc43c4=_0xfe13ca[_0x40125c(0x191)](/_/g,'-')['toLowerCase']();return isSensitiveKey(_0xfc43c4)||SENSITIVE_FLAG_NAMES['has'](_0xfc43c4);}function redactVariableValues(_0x13ff70){const _0xe0f040=a174_0x3ad9b1;if(Array[_0xe0f040(0x18d)](_0x13ff70))return _0x13ff70['map'](_0x278307=>redactVariableValues(_0x278307));if(_0x13ff70&&typeof _0x13ff70===_0xe0f040(0x18c))return Object[_0xe0f040(0x190)](Object[_0xe0f040(0x19a)](_0x13ff70)[_0xe0f040(0x199)](([_0x53a2e2,_0x5e5e13])=>[_0x53a2e2,redactVariableValues(_0x5e5e13)]));return REDACTED_VALUE;}function a174_0x5394(){const _0x1359d1=['162OCzqZb','4396713uXDfok','73022eVmGSD','has','object','isArray','comment','2XLLdGD','fromEntries','replace','variables','1473576bAEuGI','3220425DJwBXJ','10091220wbVZVn','5831932pFTiXa','test','6453559OmUqlQ','map','entries','push'];a174_0x5394=function(){return _0x1359d1;};return a174_0x5394();}export function redactSensitiveValue(_0x59e21f){const _0x40d1c1=a174_0x3ad9b1;if(Array['isArray'](_0x59e21f))return _0x59e21f[_0x40d1c1(0x199)](_0x40b7bf=>redactSensitiveValue(_0x40b7bf));if(!_0x59e21f||typeof _0x59e21f!=='object')return _0x59e21f;const _0x23e23b={};for(const [_0x32483a,_0x292c76]of Object['entries'](_0x59e21f)){const _0x54671d=_0x32483a[_0x40d1c1(0x191)](/_/g,'-')['toLowerCase']();_0x23e23b[_0x32483a]=_0x54671d==='variables'?redactVariableValues(_0x292c76):SENSITIVE_VALUE_KEYS[_0x40d1c1(0x18b)](_0x54671d)||isSensitiveKey(_0x32483a)?REDACTED_VALUE:redactSensitiveValue(_0x292c76);}return _0x23e23b;}export function redactCommandArgv(_0x3752fa){const _0x4dd1b8=a174_0x3ad9b1,_0x311bd9=[];let _0x5e6a6c=![];for(const _0x414c1b of _0x3752fa){if(_0x5e6a6c){_0x311bd9[_0x4dd1b8(0x19b)](REDACTED_VALUE),_0x5e6a6c=![];continue;}const _0x52da56=_0x414c1b['match'](/^--([^=]+)(?:=(.*))?$/);if(!_0x52da56||!isSensitiveFlagName(_0x52da56[0x1]??'')){_0x311bd9[_0x4dd1b8(0x19b)](_0x414c1b);continue;}_0x311bd9[_0x4dd1b8(0x19b)]('--'+_0x52da56[0x1]+(_0x52da56[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x52da56[0x2]===undefined&&(_0x5e6a6c=!![]);}return _0x311bd9;}export{REDACTED_VALUE};
1
+ function a175_0x1523(_0x5b0bd6,_0x47ee98){_0x5b0bd6=_0x5b0bd6-0x1b6;const _0x31f4b4=a175_0x31f4();let _0x152399=_0x31f4b4[_0x5b0bd6];return _0x152399;}const a175_0x377600=a175_0x1523;(function(_0x5ad66a,_0x1661fe){const _0x44cc22=a175_0x1523,_0x2163a1=_0x5ad66a();while(!![]){try{const _0x2397ba=-parseInt(_0x44cc22(0x1c5))/0x1*(parseInt(_0x44cc22(0x1bf))/0x2)+-parseInt(_0x44cc22(0x1bc))/0x3+parseInt(_0x44cc22(0x1bb))/0x4+parseInt(_0x44cc22(0x1ca))/0x5*(parseInt(_0x44cc22(0x1c3))/0x6)+parseInt(_0x44cc22(0x1c7))/0x7*(parseInt(_0x44cc22(0x1c0))/0x8)+parseInt(_0x44cc22(0x1c4))/0x9+-parseInt(_0x44cc22(0x1cb))/0xa*(parseInt(_0x44cc22(0x1ba))/0xb);if(_0x2397ba===_0x1661fe)break;else _0x2163a1['push'](_0x2163a1['shift']());}catch(_0x6d6c69){_0x2163a1['push'](_0x2163a1['shift']());}}}(a175_0x31f4,0x701de));const REDACTED_VALUE=a175_0x377600(0x1c2),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set(['comment',a175_0x377600(0x1c8)]),SENSITIVE_VALUE_KEYS=new Set([a175_0x377600(0x1b6)]);export function isSensitiveKey(_0x286878){const _0x11e12b=a175_0x377600,_0x418898=_0x286878['replace'](/_/g,'-')[_0x11e12b(0x1c6)]();return SENSITIVE_KEY_PATTERN['test'](_0x418898);}export function isSensitiveFlagName(_0x2c837f){const _0x4b7dcb=a175_0x377600,_0x3e8a5c=_0x2c837f['replace'](/_/g,'-')[_0x4b7dcb(0x1c6)]();return isSensitiveKey(_0x3e8a5c)||SENSITIVE_FLAG_NAMES[_0x4b7dcb(0x1be)](_0x3e8a5c);}function redactVariableValues(_0x35a333){const _0x11b83b=a175_0x377600;if(Array[_0x11b83b(0x1c9)](_0x35a333))return _0x35a333[_0x11b83b(0x1b7)](_0x1e39f0=>redactVariableValues(_0x1e39f0));if(_0x35a333&&typeof _0x35a333===_0x11b83b(0x1b8))return Object[_0x11b83b(0x1bd)](Object['entries'](_0x35a333)[_0x11b83b(0x1b7)](([_0x2294d5,_0x2caac1])=>[_0x2294d5,redactVariableValues(_0x2caac1)]));return REDACTED_VALUE;}function a175_0x31f4(){const _0xa4a07d=['replace','4554231lICKJw','1038292JLFmZD','499791gRyddI','fromEntries','has','6242bTAxTJ','28104jkyqGb','push','[REDACTED]','977610ODKbBK','3853710XqSxkE','25OrcPSk','toLowerCase','1533eURGlb','variables','isArray','15OAFtYf','30ojGVmT','comment','map','object'];a175_0x31f4=function(){return _0xa4a07d;};return a175_0x31f4();}export function redactSensitiveValue(_0x50eb4b){const _0x2d619b=a175_0x377600;if(Array[_0x2d619b(0x1c9)](_0x50eb4b))return _0x50eb4b['map'](_0x233e3e=>redactSensitiveValue(_0x233e3e));if(!_0x50eb4b||typeof _0x50eb4b!=='object')return _0x50eb4b;const _0x457310={};for(const [_0x1e1bcc,_0x30e168]of Object['entries'](_0x50eb4b)){const _0x1aadf7=_0x1e1bcc[_0x2d619b(0x1b9)](/_/g,'-')[_0x2d619b(0x1c6)]();_0x457310[_0x1e1bcc]=_0x1aadf7==='variables'?redactVariableValues(_0x30e168):SENSITIVE_VALUE_KEYS[_0x2d619b(0x1be)](_0x1aadf7)||isSensitiveKey(_0x1e1bcc)?REDACTED_VALUE:redactSensitiveValue(_0x30e168);}return _0x457310;}export function redactCommandArgv(_0x2e008d){const _0xf40878=a175_0x377600,_0x3da429=[];let _0xcf4ad2=![];for(const _0x595ae9 of _0x2e008d){if(_0xcf4ad2){_0x3da429[_0xf40878(0x1c1)](REDACTED_VALUE),_0xcf4ad2=![];continue;}const _0x16317c=_0x595ae9['match'](/^--([^=]+)(?:=(.*))?$/);if(!_0x16317c||!isSensitiveFlagName(_0x16317c[0x1]??'')){_0x3da429['push'](_0x595ae9);continue;}_0x3da429[_0xf40878(0x1c1)]('--'+_0x16317c[0x1]+(_0x16317c[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x16317c[0x2]===undefined&&(_0xcf4ad2=!![]);}return _0x3da429;}export{REDACTED_VALUE};
@@ -1 +1 @@
1
- (function(_0x2edff5,_0x261c23){const _0x50ff32=a175_0x59d7,_0x124993=_0x2edff5();while(!![]){try{const _0xf69401=-parseInt(_0x50ff32(0x1fa))/0x1+-parseInt(_0x50ff32(0x1f0))/0x2+-parseInt(_0x50ff32(0x1fe))/0x3*(parseInt(_0x50ff32(0x1f6))/0x4)+parseInt(_0x50ff32(0x1f3))/0x5+parseInt(_0x50ff32(0x200))/0x6+parseInt(_0x50ff32(0x203))/0x7+parseInt(_0x50ff32(0x1f4))/0x8*(parseInt(_0x50ff32(0x201))/0x9);if(_0xf69401===_0x261c23)break;else _0x124993['push'](_0x124993['shift']());}catch(_0x2a759a){_0x124993['push'](_0x124993['shift']());}}}(a175_0x3a58,0x5c869));function a175_0x59d7(_0x9706a2,_0x135b59){_0x9706a2=_0x9706a2-0x1f0;const _0x3a5827=a175_0x3a58();let _0x59d77c=_0x3a5827[_0x9706a2];return _0x59d77c;}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 _0x52179e=a175_0x59d7,_0x1b07d4=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x52179e(0x206)]()[_0x52179e(0x1f9)]();return _0x1b07d4==='1'||_0x1b07d4==='true'||_0x1b07d4===_0x52179e(0x209);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x2246c3=a175_0x59d7;return join(cacheRoot(),'lovrabet-cli',_0x2246c3(0x204));}async function readUpdateNoticeCache(){const _0xe07d15=a175_0x59d7;try{const _0x532bea=await readFile(getUpdateNoticeCachePath(),_0xe07d15(0x208)),_0x4add4c=JSON[_0xe07d15(0x1f8)](_0x532bea);if(!_0x4add4c||typeof _0x4add4c!==_0xe07d15(0x202))return{};return _0x4add4c;}catch{return{};}}function a175_0x3a58(){const _0x1a5855=['lastNotifiedVersion','752922xjQbLR','lastNotifiedAt','2676426bVrFOE','2659626eRtMKB','object','4340210kpDqOW','update-check.json','join','trim','now','utf8','yes','stableVersion','1470892DwIRZi',',\x20run:\x20','\x20is\x20recommended,\x20current\x20','3597250dUoXAj','8cIkcSu','stringify','4YMscJX','/v/','parse','toLowerCase','715660whPWpA','number','needsUpgrade'];a175_0x3a58=function(){return _0x1a5855;};return a175_0x3a58();}async function writeUpdateNoticeCache(_0x556a9e){const _0x5af40e=a175_0x59d7;try{const _0xa614bf=getUpdateNoticeCachePath();await mkdir(dirname(_0xa614bf),{'recursive':!![]}),await writeFile(_0xa614bf,JSON[_0x5af40e(0x1f5)](_0x556a9e,null,0x2)+'\x0a','utf8');}catch{}}function isRecentlyNotified(_0x26701f,_0x538925,_0x371938){const _0xa65a67=a175_0x59d7;return _0x26701f[_0xa65a67(0x1fd)]===_0x538925&&typeof _0x26701f[_0xa65a67(0x1ff)]===_0xa65a67(0x1fb)&&_0x371938-_0x26701f['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x481d3c){const _0x5eb2ee=a175_0x59d7;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x5eb2ee(0x1f7)+_0x481d3c;}export async function resolveLatestUpdateNotice(_0x1748ce){const _0x3bf3c0=a175_0x59d7;if(isUpdateNoticeDisabled())return null;try{const _0x2ee966=Date[_0x3bf3c0(0x207)](),_0x1e8c43=_0x1748ce??await checkCliVersion(),_0x1241c0=_0x1e8c43['currentVersion'],_0x58175e=_0x1e8c43[_0x3bf3c0(0x20a)],_0x7ef3b0=await readUpdateNoticeCache();if(!_0x58175e||!_0x1e8c43[_0x3bf3c0(0x1fc)]||_0x1e8c43['belowMinimum'])return null;if(isRecentlyNotified(_0x7ef3b0,_0x58175e,_0x2ee966))return null;const _0x62e8d8=getCliUpgradeCommand(_0x1e8c43);return await writeUpdateNoticeCache({..._0x7ef3b0,'checkedAt':_0x2ee966,'latest':_0x58175e,'failed':![],'lastNotifiedVersion':_0x58175e,'lastNotifiedAt':_0x2ee966}),{'command':_0x62e8d8,'current':_0x1241c0,'latest':_0x58175e,'url':buildNpmVersionUrl(_0x58175e),'message':[_0x1e8c43['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x58175e+_0x3bf3c0(0x1f2)+_0x1241c0+_0x3bf3c0(0x1f1)+_0x62e8d8]['filter'](Boolean)[_0x3bf3c0(0x205)]('\x20')};}catch{return null;}}
1
+ (function(_0x4cb6eb,_0x51f654){const _0x420a53=a176_0x1607,_0x1de8b9=_0x4cb6eb();while(!![]){try{const _0x20e677=-parseInt(_0x420a53(0x86))/0x1*(parseInt(_0x420a53(0x77))/0x2)+-parseInt(_0x420a53(0x84))/0x3*(parseInt(_0x420a53(0x6f))/0x4)+parseInt(_0x420a53(0x71))/0x5*(parseInt(_0x420a53(0x78))/0x6)+-parseInt(_0x420a53(0x74))/0x7*(parseInt(_0x420a53(0x73))/0x8)+-parseInt(_0x420a53(0x79))/0x9+parseInt(_0x420a53(0x7d))/0xa*(-parseInt(_0x420a53(0x7e))/0xb)+-parseInt(_0x420a53(0x88))/0xc*(-parseInt(_0x420a53(0x80))/0xd);if(_0x20e677===_0x51f654)break;else _0x1de8b9['push'](_0x1de8b9['shift']());}catch(_0x3f6a85){_0x1de8b9['push'](_0x1de8b9['shift']());}}}(a176_0xbc5e,0x4b1da));import{mkdir,readFile,writeFile}from'node:fs/promises';function a176_0xbc5e(){const _0x4c8789=['1433610ixRfMi','33uGQmdQ','upgradeMessage','97214RGCxzn','toLowerCase','parse','number','27WijWKc','true','1139oefePs','stableVersion','3144KaLZYf','lastNotifiedAt','lovrabet-cli','object','filter',',\x20run:\x20','yes','193796wdDHVf','update-check.json','1277860bpiCFH','stringify','2270408SjtJSz','7RMbtVI','/v/','trim','974NLvmdu','6DnIKWx','1822644ZWvOXX','utf8','needsUpgrade','\x20is\x20recommended,\x20current\x20'];a176_0xbc5e=function(){return _0x4c8789;};return a176_0xbc5e();}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 _0x48d998=a176_0x1607,_0x170f02=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x48d998(0x76)]()[_0x48d998(0x81)]();return _0x170f02==='1'||_0x170f02===_0x48d998(0x85)||_0x170f02===_0x48d998(0x6e);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0xc5d785=a176_0x1607;return join(cacheRoot(),_0xc5d785(0x8a),_0xc5d785(0x70));}async function readUpdateNoticeCache(){const _0xf366e8=a176_0x1607;try{const _0x1d207d=await readFile(getUpdateNoticeCachePath(),_0xf366e8(0x7a)),_0x55f688=JSON[_0xf366e8(0x82)](_0x1d207d);if(!_0x55f688||typeof _0x55f688!==_0xf366e8(0x8b))return{};return _0x55f688;}catch{return{};}}async function writeUpdateNoticeCache(_0x44c170){const _0xf0d2ef=a176_0x1607;try{const _0x1ac274=getUpdateNoticeCachePath();await mkdir(dirname(_0x1ac274),{'recursive':!![]}),await writeFile(_0x1ac274,JSON[_0xf0d2ef(0x72)](_0x44c170,null,0x2)+'\x0a','utf8');}catch{}}function a176_0x1607(_0x4c3162,_0x4df72a){_0x4c3162=_0x4c3162-0x6d;const _0xbc5ef0=a176_0xbc5e();let _0x16074f=_0xbc5ef0[_0x4c3162];return _0x16074f;}function isRecentlyNotified(_0x2e8229,_0x17c54b,_0x4cb973){const _0x18f7a3=a176_0x1607;return _0x2e8229['lastNotifiedVersion']===_0x17c54b&&typeof _0x2e8229['lastNotifiedAt']===_0x18f7a3(0x83)&&_0x4cb973-_0x2e8229[_0x18f7a3(0x89)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1eed6c){const _0x49fdd4=a176_0x1607;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x49fdd4(0x75)+_0x1eed6c;}export async function resolveLatestUpdateNotice(_0x4aa7c9){const _0x5391d0=a176_0x1607;if(isUpdateNoticeDisabled())return null;try{const _0x52b8b6=Date['now'](),_0x5c79c2=_0x4aa7c9??await checkCliVersion(),_0x30198d=_0x5c79c2['currentVersion'],_0x1b5d5=_0x5c79c2[_0x5391d0(0x87)],_0x39d2b1=await readUpdateNoticeCache();if(!_0x1b5d5||!_0x5c79c2[_0x5391d0(0x7b)]||_0x5c79c2['belowMinimum'])return null;if(isRecentlyNotified(_0x39d2b1,_0x1b5d5,_0x52b8b6))return null;const _0x25f7c0=getCliUpgradeCommand(_0x5c79c2);return await writeUpdateNoticeCache({..._0x39d2b1,'checkedAt':_0x52b8b6,'latest':_0x1b5d5,'failed':![],'lastNotifiedVersion':_0x1b5d5,'lastNotifiedAt':_0x52b8b6}),{'command':_0x25f7c0,'current':_0x30198d,'latest':_0x1b5d5,'url':buildNpmVersionUrl(_0x1b5d5),'message':[_0x5c79c2[_0x5391d0(0x7f)],CLI_BIN_NAME+'\x20'+_0x1b5d5+_0x5391d0(0x7c)+_0x30198d+_0x5391d0(0x6d)+_0x25f7c0][_0x5391d0(0x8c)](Boolean)['join']('\x20')};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x819a74,_0x54fe5a){const _0x22af84=a176_0x1371,_0x4e53ae=_0x819a74();while(!![]){try{const _0x45132f=-parseInt(_0x22af84(0x164))/0x1*(parseInt(_0x22af84(0x16c))/0x2)+parseInt(_0x22af84(0x165))/0x3*(parseInt(_0x22af84(0x16d))/0x4)+parseInt(_0x22af84(0x169))/0x5*(-parseInt(_0x22af84(0x168))/0x6)+-parseInt(_0x22af84(0x166))/0x7+-parseInt(_0x22af84(0x162))/0x8*(-parseInt(_0x22af84(0x163))/0x9)+parseInt(_0x22af84(0x16b))/0xa*(-parseInt(_0x22af84(0x16a))/0xb)+parseInt(_0x22af84(0x167))/0xc;if(_0x45132f===_0x54fe5a)break;else _0x4e53ae['push'](_0x4e53ae['shift']());}catch(_0x566929){_0x4e53ae['push'](_0x4e53ae['shift']());}}}(a176_0x7faa,0x4c4f8));function a176_0x1371(_0x5bc82c,_0x12f0f0){_0x5bc82c=_0x5bc82c-0x162;const _0x7faacc=a176_0x7faa();let _0x137111=_0x7faacc[_0x5bc82c];return _0x137111;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x18f397=String(GIT_COMMIT);return _0x18f397&&_0x18f397!=='unknown'?_0x18f397:'';}function a176_0x7faa(){const _0x19ae57=['971945yLKoHu','11yEhKyA','2265110sSRlqK','2jXchhu','16SxPMCz','16lTeuGe','1465083gEacwP','543083UFyMvN','442965rGcwUy','4223989gBibrw','11565408vSwoUl','6BYUzyn'];a176_0x7faa=function(){return _0x19ae57;};return a176_0x7faa();}export function getCliVersionDisplay(){const _0x19f723=getCliGitCommit(),_0x399bb9=BUILD_TIME['slice'](0x0,0xa);if(!_0x19f723||!_0x399bb9)return VERSION;return VERSION+'\x20('+_0x19f723+',\x20'+_0x399bb9+')';}
1
+ (function(_0x5aaf9b,_0x1d5ff0){const _0x11d319=a177_0x18e2,_0x2b79a8=_0x5aaf9b();while(!![]){try{const _0x64f00d=-parseInt(_0x11d319(0xbd))/0x1*(parseInt(_0x11d319(0xc5))/0x2)+parseInt(_0x11d319(0xc6))/0x3*(parseInt(_0x11d319(0xc2))/0x4)+parseInt(_0x11d319(0xc0))/0x5+parseInt(_0x11d319(0xbf))/0x6+parseInt(_0x11d319(0xbe))/0x7*(-parseInt(_0x11d319(0xbc))/0x8)+parseInt(_0x11d319(0xc1))/0x9+-parseInt(_0x11d319(0xc4))/0xa;if(_0x64f00d===_0x1d5ff0)break;else _0x2b79a8['push'](_0x2b79a8['shift']());}catch(_0x4bc617){_0x2b79a8['push'](_0x2b79a8['shift']());}}}(a177_0x4467,0x3d05b));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a177_0x4467(){const _0x106369=['slice','1388040lYcIvE','642042PNYTAz','3417sATVSe','2090368fLVTvw','1TVjgcH','7HrtDFW','1957884moOGnv','348345vShIKF','819090Uwkjnn','1700CyCKkQ'];a177_0x4467=function(){return _0x106369;};return a177_0x4467();}export function getCliGitCommit(){const _0x1c105a=String(GIT_COMMIT);return _0x1c105a&&_0x1c105a!=='unknown'?_0x1c105a:'';}function a177_0x18e2(_0x365e42,_0x5ab3ff){_0x365e42=_0x365e42-0xbc;const _0x446731=a177_0x4467();let _0x18e2ca=_0x446731[_0x365e42];return _0x18e2ca;}export function getCliVersionDisplay(){const _0x2ef47b=a177_0x18e2,_0x594c04=getCliGitCommit(),_0x5ac5cd=BUILD_TIME[_0x2ef47b(0xc3)](0x0,0xa);if(!_0x594c04||!_0x5ac5cd)return VERSION;return VERSION+'\x20('+_0x594c04+',\x20'+_0x5ac5cd+')';}
@@ -1 +1 @@
1
- function a177_0x3a41(_0x3d263a,_0xdc587){_0x3d263a=_0x3d263a-0x1d8;var _0x1e7cb8=a177_0x1e7c();var _0x3a419b=_0x1e7cb8[_0x3d263a];return _0x3a419b;}(function(_0x3054d2,_0x5098fb){var _0x3b23f0=a177_0x3a41,_0xed327f=_0x3054d2();while(!![]){try{var _0x5a6550=parseInt(_0x3b23f0(0x1da))/0x1*(parseInt(_0x3b23f0(0x1e5))/0x2)+-parseInt(_0x3b23f0(0x1d8))/0x3*(parseInt(_0x3b23f0(0x1de))/0x4)+-parseInt(_0x3b23f0(0x1d9))/0x5*(-parseInt(_0x3b23f0(0x1df))/0x6)+-parseInt(_0x3b23f0(0x1e2))/0x7*(-parseInt(_0x3b23f0(0x1dc))/0x8)+parseInt(_0x3b23f0(0x1e0))/0x9*(parseInt(_0x3b23f0(0x1e3))/0xa)+parseInt(_0x3b23f0(0x1db))/0xb+-parseInt(_0x3b23f0(0x1e4))/0xc;if(_0x5a6550===_0x5098fb)break;else _0xed327f['push'](_0xed327f['shift']());}catch(_0x5db25a){_0xed327f['push'](_0xed327f['shift']());}}}(a177_0x1e7c,0xe5bd0));export function writeCliSideChannelLine(_0x50a8f6){var _0x593c79=a177_0x3a41;process[_0x593c79(0x1dd)][_0x593c79(0x1e1)](_0x50a8f6+'\x0a');}function a177_0x1e7c(){var _0x361f53=['5064hMllMs','stderr','452SozrDJ','1326fzDzDh','16590933WJsjiR','write','5215TAbfti','10idBJxI','41443212hoRDNt','1295510knBupK','44553IYyHXJ','31135nTAuJu','1paoHAT','19072108kPgBJg'];a177_0x1e7c=function(){return _0x361f53;};return a177_0x1e7c();}
1
+ function a178_0xa87f(_0x5ea1f7,_0x45eca3){_0x5ea1f7=_0x5ea1f7-0x70;var _0x37a8f3=a178_0x37a8();var _0xa87f23=_0x37a8f3[_0x5ea1f7];return _0xa87f23;}(function(_0x30c83f,_0x33b4a6){var _0x3ed979=a178_0xa87f,_0x354882=_0x30c83f();while(!![]){try{var _0x1de96e=parseInt(_0x3ed979(0x77))/0x1+parseInt(_0x3ed979(0x71))/0x2+-parseInt(_0x3ed979(0x72))/0x3+-parseInt(_0x3ed979(0x75))/0x4+-parseInt(_0x3ed979(0x76))/0x5+-parseInt(_0x3ed979(0x74))/0x6+parseInt(_0x3ed979(0x70))/0x7;if(_0x1de96e===_0x33b4a6)break;else _0x354882['push'](_0x354882['shift']());}catch(_0x2bc290){_0x354882['push'](_0x354882['shift']());}}}(a178_0x37a8,0xe0c80));export function writeCliSideChannelLine(_0x5c195f){var _0x5d47f4=a178_0xa87f;process[_0x5d47f4(0x73)]['write'](_0x5c195f+'\x0a');}function a178_0x37a8(){var _0x26e757=['3230305dDtUMc','103248mfyyCG','22918406lDwVsv','1676072DyIajT','5272689zpBVeI','stderr','54456BUwbMR','3527752SVgjcz'];a178_0x37a8=function(){return _0x26e757;};return a178_0x37a8();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.3.6-beta.2",
3
+ "version": "2.3.6",
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.6-beta.2
4
+ version: 2.3.6
5
5
  description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、可恢复 Excel 导入、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、Excel 导入、data import-excel、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、approval、审批、待办、approve、reject、transfer、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
6
6
  metadata:
7
7
  requires:
@@ -20,7 +20,7 @@ lovrabet kb search --kb-service-url https://kb.customer.example --appcode <appCo
20
20
 
21
21
  `--kb-service-url` 地址只覆盖本次搜索,不改变已保存的连接配置。地址不得包含用户名、密码、路径、查询参数或片段;不能从知识正文选择地址,也不能自行从 Runtime 域名推导地址。只有 CLI 报告未配置有效 KB Service 地址时,才请用户或管理员提供可信地址。独立部署缺少 `kbServiceDomain` 时不会回退到官方节点。
22
22
 
23
- 请求固定为 `POST /v2/apps/{appCode}/knowledge/search`,只使用当前用户 AK,保留既有应用访问检查,不携带 Cookie。客户端不跟随重定向,超时为 60 秒,失败不会切换其他搜索接口。Personal KB 管理仍使用 `runtimeDomain`。
23
+ 请求固定为 `POST /v2/apps/{appCode}/knowledge/search`,只使用当前用户 AK,保留既有应用访问检查,不携带 Cookie。客户端不跟随重定向,超时为 60 秒,失败不会切换其他搜索接口。Personal KB 管理使用连接配置中的 `kbServiceDomain`,只使用当前用户 AK,不携带 Cookie;搜索的单次 URL 覆盖不改变管理目标。
24
24
 
25
25
  401 表示需要有效身份,403 表示访问被拒绝,404 表示目标未提供该接口;核对地址、服务能力和权限,不通过改身份、关闭 TLS 或换接口绕过。`schemaVersion:2` 表示返回结构版本。
26
26
 
@@ -28,6 +28,10 @@ lovrabet kb search --kb-service-url https://kb.customer.example --appcode <appCo
28
28
 
29
29
  ## 业务执行中的 KB 消费
30
30
 
31
+ `kb list` 自动聚合当前应用、当前用户的所有个人记录,默认每页 50 条,保持 `data.total/items` 输出;`--verbose` 返回完整正文。分页遇到明确的大正文引用时,CLI 会从同一 KB Service 回读完整详情,并核对 ID、应用、所有者和版本后再输出;回读失败或版本变化会使整次列表失败,不能把引用或空正文当成完整结果。遇到服务端明确的单页响应超限时,会从第一页按单条重取;仍超限则失败,不截断内容、不返回部分成功。分页总数变化、重复 ID、缺项、非法字段或跨应用/作用域记录都会失败,不能当作空列表。分页不是快照;同总数且未产生重复 ID 的并发替换可能无法识别,读取期间应避免修改该集合。
32
+
33
+ 管理请求每次超时为 60 秒,支持取消,不自动重试创建或更新,也不切换后端。写入超时、取消、连接失败、收到 HTTP 5xx 或写入响应无法校验时可能已经保存:保留原文件、应用、身份和返回信息,先用已知 ID 的 `kb detail` 对账;创建未获得 ID 时,通过 `kb list --verbose` 比较标题和完整正文,不直接重发创建。401/403/404/413/429/503 或业务错误均视为失败并按实际提示处理。
34
+
31
35
  KB 用于术语、同义词、适用边界和候选能力的语义消歧。以下情况才查询:
32
36
 
33
37
  - 运营术语无法直接对应 Service Tree、Dataset 或能力名称
@@ -76,11 +80,11 @@ lovrabet kb update --id <id> --file ./approval-v2.md --dry-run
76
80
  lovrabet kb update --id <id> --title "新版订单审批规则" --file ./approval-v2.md
77
81
  ```
78
82
 
79
- 省略 `--title` 时,CLI 会读取当前条目并保留原标题。
83
+ 每次管理命令执行固定使用一个 KB Service 地址;省略 `--title` 时,CLI 会从该地址读取当前条目并保留原标题。创建和更新始终通过 JSON 请求提交 `appCode/title/content`,每次只提交一次;失败后先只读对账,不自动重试或切换写入接口。CLI 不按正文大小切换协议,也不设本地正文大小上限;实际请求仍受服务端、网关和进程资源限制。`--dry-run` 展示实际 JSON 接口和包含标题、完整正文的请求体供审阅。空文件会明确将正文清空;缺少 `content` 的普通详情响应是协议错误,不能当作空正文继续覆盖。
80
84
 
81
85
  ## RAG 状态
82
86
 
83
- create/update 返回后要检查 `ragStatus` 和 `ragErrorMessage`。如果状态仍在处理或有错误,只能说条目已经写入,不能声称知识检索或聊天使用已经端到端可用。
87
+ create/update 返回后要检查 `ragStatus` 和 `ragErrorMessage`,按服务端返回的 `READY`、`PENDING`、`UNKNOWN`、`DELETING`、`DELETED` 等状态判断,不只识别旧的 `SYNCED`。如果状态仍在处理或有错误,只能说条目已经写入,不能声称知识检索或聊天使用已经端到端可用。
84
88
 
85
89
  推荐:
86
90
 
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "lovrabet",
4
4
  "packageName": "@lovrabet/lovrabet-cli",
5
- "packageVersion": "2.3.6-beta.2",
6
- "skillVersion": "2.3.6-beta.2",
5
+ "packageVersion": "2.3.6",
6
+ "skillVersion": "2.3.6",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/app-resolution.md",
@@ -40,5 +40,5 @@
40
40
  "references/lovrabet-user-account.md",
41
41
  "references/lovrabet-workspace.md"
42
42
  ],
43
- "digest": "05e591fe2bc14b4bcbfb81de453da2636aef3698d52f31163fb4259b6d4ced7d"
43
+ "digest": "749e4bbd932c13056bf38f970ecea4208ce6aecac03470bddc2edcc8e0a3c6cf"
44
44
  }