@lovrabet/lovrabet-cli 2.1.8-beta.3 → 2.1.8

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 (117) 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/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.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/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2dcdcc,_0x455d89){const _0x3f2517=a74_0x1a9d,_0x3d8d4b=_0x2dcdcc();while(!![]){try{const _0x500818=parseInt(_0x3f2517(0x112))/0x1*(parseInt(_0x3f2517(0x121))/0x2)+parseInt(_0x3f2517(0x155))/0x3*(parseInt(_0x3f2517(0x141))/0x4)+-parseInt(_0x3f2517(0x162))/0x5*(-parseInt(_0x3f2517(0x101))/0x6)+parseInt(_0x3f2517(0x13f))/0x7+parseInt(_0x3f2517(0x142))/0x8*(parseInt(_0x3f2517(0xe4))/0x9)+parseInt(_0x3f2517(0x137))/0xa*(-parseInt(_0x3f2517(0x111))/0xb)+-parseInt(_0x3f2517(0x16d))/0xc;if(_0x500818===_0x455d89)break;else _0x3d8d4b['push'](_0x3d8d4b['shift']());}catch(_0x3fb158){_0x3d8d4b['push'](_0x3d8d4b['shift']());}}}(a74_0x4099,0xf0d8c));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x39ae37){_activeAK=_0x39ae37||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x4228c9,_0x29c841={}){const _0x5a0989=a74_0x1a9d,{method:method='GET',body:_0x28e993,headers:headers={},timeout:timeout=0x7530}=_0x29c841,_0x3f10fc=_activeAK,_0x34f9bf=getRuntimeDomain();if(!_0x3f10fc)throw CliErrors[_0x5a0989(0xe2)](_0x5a0989(0xfb)+PRODUCT_CONFIG[_0x5a0989(0xe9)]+'.');const _0x18fbef=''+_0x34f9bf+_0x4228c9,_0x4f1019={'X-User-AK':_0x3f10fc},_0x3b8847=new AbortController(),_0x5a41fc=setTimeout(()=>_0x3b8847[_0x5a0989(0x13d)](),timeout);try{const _0x55711f=await fetch(_0x18fbef,{'method':method,'headers':{'Content-Type':_0x5a0989(0x143),'X-Invoke-Source':PRODUCT_CONFIG[_0x5a0989(0x11f)],..._0x4f1019,...headers},'body':_0x28e993?JSON[_0x5a0989(0x11a)](_0x28e993):undefined,'signal':_0x3b8847['signal']});let _0x3184fe;try{_0x3184fe=await _0x55711f[_0x5a0989(0xea)]();}catch{throw CliErrors[_0x5a0989(0xf5)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x55711f[_0x5a0989(0xfc)]+')',_0x55711f[_0x5a0989(0xfc)]>=0x190?_0x5a0989(0x119):undefined);}if(!_0x55711f['ok']||_0x3184fe[_0x5a0989(0x11b)]===![])throw CliErrors[_0x5a0989(0xf5)](_0x3184fe[_0x5a0989(0xf2)]||_0x3184fe['message']||_0x5a0989(0x131)+_0x55711f['status'],_0x3184fe[_0x5a0989(0x127)]?_0x5a0989(0xf1)+_0x3184fe[_0x5a0989(0x127)]:undefined);return _0x3184fe;}catch(_0x46f412){if(_0x46f412 instanceof Error&&_0x46f412[_0x5a0989(0x12b)]===_0x5a0989(0x156))throw CliErrors['apiError'](_0x5a0989(0xeb)+_0x18fbef);throw _0x46f412;}finally{clearTimeout(_0x5a41fc);}}async function apiBinaryRequest(_0x3094be,_0x988330={}){const _0x230bc5=a74_0x1a9d,{method:method=_0x230bc5(0x120),headers:headers={},timeout:timeout=0x7530}=_0x988330,_0x5168ee=_activeAK,_0x36a7ab=getRuntimeDomain();if(!_0x5168ee)throw CliErrors[_0x230bc5(0xe2)](_0x230bc5(0xfb)+PRODUCT_CONFIG[_0x230bc5(0xe9)]+'.');const _0x1ea032=''+_0x36a7ab+_0x3094be,_0x5abd2c=new AbortController(),_0x493335=setTimeout(()=>_0x5abd2c[_0x230bc5(0x13d)](),timeout);try{const _0x1fb326=await fetch(_0x1ea032,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x5168ee,...headers},'signal':_0x5abd2c[_0x230bc5(0x126)]});if(!_0x1fb326['ok']){let _0x2a16ea;try{const _0x5a1d56=await _0x1fb326[_0x230bc5(0xea)]();_0x2a16ea=_0x5a1d56[_0x230bc5(0xf2)]||_0x5a1d56[_0x230bc5(0xf8)]||_0x5a1d56[_0x230bc5(0x127)];}catch{_0x2a16ea=await _0x1fb326[_0x230bc5(0x122)]()[_0x230bc5(0x147)](()=>undefined);}throw CliErrors[_0x230bc5(0xf5)](_0x2a16ea||_0x230bc5(0x131)+_0x1fb326[_0x230bc5(0xfc)],'Download\x20failed:\x20'+_0x1ea032);}return Buffer[_0x230bc5(0x159)](await _0x1fb326[_0x230bc5(0x163)]());}catch(_0x1c9807){if(_0x1c9807 instanceof Error&&_0x1c9807['name']===_0x230bc5(0x156))throw CliErrors[_0x230bc5(0xf5)](_0x230bc5(0xeb)+_0x1ea032);throw _0x1c9807;}finally{clearTimeout(_0x493335);}}async function apiFormRequest(_0x42d45b,_0x19bd40,_0x7c2e2e={}){const _0x1451af=a74_0x1a9d,{timeout:timeout=0x7530}=_0x7c2e2e,_0x19f37f=_activeAK,_0x315d99=getRuntimeDomain();if(!_0x19f37f)throw CliErrors[_0x1451af(0xe2)](_0x1451af(0xfb)+PRODUCT_CONFIG[_0x1451af(0xe9)]+'.');const _0x200895=''+_0x315d99+_0x42d45b,_0x476e2a=new AbortController(),_0x1ffbce=setTimeout(()=>_0x476e2a[_0x1451af(0x13d)](),timeout);try{const _0x195995=await fetch(_0x200895,{'method':_0x1451af(0xf6),'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x19f37f},'body':_0x19bd40,'signal':_0x476e2a[_0x1451af(0x126)]});let _0x47a0bc;try{_0x47a0bc=await _0x195995[_0x1451af(0xea)]();}catch{throw CliErrors[_0x1451af(0xf5)](_0x1451af(0x16f)+_0x195995[_0x1451af(0xfc)]+')',_0x195995[_0x1451af(0xfc)]>=0x190?_0x1451af(0x119):undefined);}if(!_0x195995['ok']||_0x47a0bc['success']===![])throw CliErrors[_0x1451af(0xf5)](_0x47a0bc[_0x1451af(0xf2)]||_0x47a0bc[_0x1451af(0xf8)]||'API\x20error:\x20'+_0x195995[_0x1451af(0xfc)],_0x47a0bc[_0x1451af(0x127)]?_0x1451af(0xf1)+_0x47a0bc[_0x1451af(0x127)]:undefined);return _0x47a0bc;}catch(_0x579e31){if(_0x579e31 instanceof Error&&_0x579e31[_0x1451af(0x12b)]===_0x1451af(0x156))throw CliErrors[_0x1451af(0xf5)]('Request\x20timeout:\x20'+_0x200895);throw _0x579e31;}finally{clearTimeout(_0x1ffbce);}}async function toolboxRequest(_0x28efca,_0x5313c6,_0x1d681d={}){const _0x5a5a79=a74_0x1a9d,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x1d681d,_0x377a89=_activeAK;if(!_0x377a89)throw CliErrors['authRequired'](_0x5a5a79(0xfb)+PRODUCT_CONFIG[_0x5a5a79(0xe9)]+'.');const _0x701bd=getApiDomain()[_0x5a5a79(0x13a)](/\/$/,''),_0x4e3e08=new URL(_0x28efca,_0x701bd+_0x5a5a79(0x158));if(_0x5313c6)for(const [_0x54ae54,_0x1fa1f0]of Object['entries'](_0x5313c6)){_0x1fa1f0!==undefined&&_0x1fa1f0!==null&&_0x4e3e08['searchParams'][_0x5a5a79(0xf4)](_0x54ae54,String(_0x1fa1f0));}const _0x18abf8=new AbortController(),_0x56af13=setTimeout(()=>_0x18abf8[_0x5a5a79(0x13d)](),timeout);try{const _0x56245b=await fetch(_0x4e3e08,{'method':method,'headers':{'Content-Type':_0x5a5a79(0x143),'X-Invoke-Source':PRODUCT_CONFIG[_0x5a5a79(0x11f)],'X-User-AK':_0x377a89,...headers},'signal':_0x18abf8['signal']});let _0x372f5f;try{_0x372f5f=await _0x56245b[_0x5a5a79(0xea)]();}catch{throw CliErrors['apiError'](_0x5a5a79(0x149)+_0x56245b['status']+')',_0x56245b[_0x5a5a79(0xfc)]>=0x190?_0x5a5a79(0x119):undefined);}if(!_0x56245b['ok']){const _0x4c04ab=_0x372f5f&&typeof _0x372f5f===_0x5a5a79(0x15e)?_0x372f5f:{};throw CliErrors[_0x5a5a79(0xf5)](_0x4c04ab['errorMsg']||_0x4c04ab['message']||'Toolbox\x20API\x20error:\x20'+_0x56245b['status'],_0x4c04ab[_0x5a5a79(0x127)]?_0x5a5a79(0x14d)+_0x4c04ab['errorCode']:undefined);}if(_0x372f5f&&typeof _0x372f5f==='object'&&_0x5a5a79(0x11b)in _0x372f5f&&typeof _0x372f5f[_0x5a5a79(0x11b)]===_0x5a5a79(0x104)){const _0x1bd223=_0x372f5f;if(!_0x1bd223[_0x5a5a79(0x11b)])throw CliErrors[_0x5a5a79(0xf5)](_0x1bd223['errorMsg']||_0x1bd223[_0x5a5a79(0xf8)]||_0x5a5a79(0xe3),_0x1bd223[_0x5a5a79(0x127)]?'Toolbox\x20error\x20code:\x20'+_0x1bd223[_0x5a5a79(0x127)]:undefined);return _0x1bd223[_0x5a5a79(0xf9)];}return _0x372f5f;}catch(_0x42a6fe){if(_0x42a6fe instanceof Error&&_0x42a6fe[_0x5a5a79(0x12b)]===_0x5a5a79(0x156))throw CliErrors[_0x5a5a79(0xf5)](_0x5a5a79(0xeb)+_0x4e3e08['toString']());throw _0x42a6fe;}finally{clearTimeout(_0x56af13);}}async function skillHubJsonRequest(_0x4c8617,_0x54431b={}){const _0xb8e4f1=a74_0x1a9d,{method:method=_0xb8e4f1(0x120),query:_0x27f694,body:_0x2de966,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x54431b,_0x3b2163=_activeAK;if(!_0x3b2163)throw CliErrors[_0xb8e4f1(0xe2)](_0xb8e4f1(0xfb)+PRODUCT_CONFIG[_0xb8e4f1(0xe9)]+'.');const _0x3c07f0=getSkillHubDomain()[_0xb8e4f1(0x13a)](/\/$/,''),_0x5f2a28=new URL(_0x4c8617,_0x3c07f0+'/');if(_0x27f694)for(const [_0x3baa75,_0x2a5d01]of Object['entries'](_0x27f694)){_0x2a5d01!==undefined&&_0x2a5d01!==null&&_0x5f2a28[_0xb8e4f1(0xfe)]['set'](_0x3baa75,String(_0x2a5d01));}const _0x41126c=new AbortController(),_0x7a203e=setTimeout(()=>_0x41126c[_0xb8e4f1(0x13d)](),timeout);try{const _0x4ecdec=await fetch(_0x5f2a28[_0xb8e4f1(0x100)](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0xb8e4f1(0x11f)],'X-User-AK':_0x3b2163,...headers},'body':_0x2de966,'signal':_0x41126c[_0xb8e4f1(0x126)]});let _0x355c1e;try{_0x355c1e=await _0x4ecdec[_0xb8e4f1(0xea)]();}catch{if(allowNotFound&&_0x4ecdec[_0xb8e4f1(0xfc)]===0x194)return undefined;throw CliErrors['apiError'](_0xb8e4f1(0x107)+_0x4ecdec['status']+')',_0x4ecdec[_0xb8e4f1(0xfc)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(allowNotFound&&isSkillHubNotFoundResponse(_0x4ecdec[_0xb8e4f1(0xfc)],_0x355c1e))return undefined;const _0x374124=!_0x4ecdec['ok']||_0x355c1e?.[_0xb8e4f1(0x11b)]===![]||typeof _0x355c1e?.['code']==='number'&&_0x355c1e[_0xb8e4f1(0x138)]>=0x190;if(_0x374124)throw CliErrors['apiError'](_0x355c1e?.['errorMsg']||_0x355c1e?.[_0xb8e4f1(0xf8)]||_0x355c1e?.[_0xb8e4f1(0x124)]||_0xb8e4f1(0x123)+_0x4ecdec[_0xb8e4f1(0xfc)],_0x355c1e?.[_0xb8e4f1(0x127)]?'SkillHub\x20error\x20code:\x20'+_0x355c1e[_0xb8e4f1(0x127)]:undefined);return _0x355c1e?.['data']??_0x355c1e;}catch(_0x102776){if(_0x102776 instanceof Error&&_0x102776[_0xb8e4f1(0x12b)]===_0xb8e4f1(0x156))throw CliErrors[_0xb8e4f1(0xf5)]('Request\x20timeout:\x20'+_0x5f2a28[_0xb8e4f1(0x100)]());throw _0x102776;}finally{clearTimeout(_0x7a203e);}}function isSkillHubNotFoundResponse(_0x2fa124,_0x41655d){const _0x1d0718=a74_0x1a9d;if(_0x2fa124===0x194||_0x41655d?.[_0x1d0718(0x138)]===0x194)return!![];if(_0x2fa124!==0x190&&_0x41655d?.[_0x1d0718(0x138)]!==0x190)return![];const _0x4a2db9=[_0x41655d?.['msg'],_0x41655d?.['message'],_0x41655d?.[_0x1d0718(0xf2)],_0x41655d?.[_0x1d0718(0x167)]][_0x1d0718(0x15f)](_0xacff09=>typeof _0xacff09==='string')['join']('\x20');return/skill not found\b/i[_0x1d0718(0x11e)](_0x4a2db9);}async function skillHubBinaryRequest(_0x28adcf,_0x5aba77={}){const _0x261f3d=a74_0x1a9d,{query:_0x1bdb91,headers:headers={},timeout:timeout=0x7530}=_0x5aba77,_0x516d5a=_activeAK;if(!_0x516d5a)throw CliErrors['authRequired'](_0x261f3d(0xfb)+PRODUCT_CONFIG[_0x261f3d(0xe9)]+'.');const _0x56f90c=getSkillHubDomain()[_0x261f3d(0x13a)](/\/$/,''),_0x1106de=new URL(_0x28adcf,_0x56f90c+'/');if(_0x1bdb91)for(const [_0x327053,_0x134ad4]of Object[_0x261f3d(0x10e)](_0x1bdb91)){_0x134ad4!==undefined&&_0x134ad4!==null&&_0x1106de[_0x261f3d(0xfe)][_0x261f3d(0xf4)](_0x327053,String(_0x134ad4));}const _0x5a48bf=new AbortController(),_0x9b1be6=setTimeout(()=>_0x5a48bf['abort'](),timeout);try{const _0x55716d=await fetch(_0x1106de[_0x261f3d(0x100)](),{'method':_0x261f3d(0x120),'headers':{'Accept':_0x261f3d(0x11c),'X-Invoke-Source':PRODUCT_CONFIG[_0x261f3d(0x11f)],'X-User-AK':_0x516d5a,...headers},'signal':_0x5a48bf[_0x261f3d(0x126)]});if(!_0x55716d['ok']){let _0x1da09e;try{const _0x8536f=await _0x55716d[_0x261f3d(0xea)]();_0x1da09e=_0x8536f[_0x261f3d(0xf2)]||_0x8536f[_0x261f3d(0xf8)]||_0x8536f[_0x261f3d(0x124)]||_0x8536f['errorCode'];}catch{_0x1da09e=await _0x55716d[_0x261f3d(0x122)]()[_0x261f3d(0x147)](()=>undefined);}throw CliErrors['apiError'](_0x1da09e||_0x261f3d(0x123)+_0x55716d[_0x261f3d(0xfc)],_0x261f3d(0x106)+_0x1106de['toString']());}return Buffer[_0x261f3d(0x159)](await _0x55716d['arrayBuffer']());}catch(_0x24792f){if(_0x24792f instanceof Error&&_0x24792f['name']===_0x261f3d(0x156))throw CliErrors['apiError'](_0x261f3d(0xeb)+_0x1106de[_0x261f3d(0x100)]());throw _0x24792f;}finally{clearTimeout(_0x9b1be6);}}export async function getBffScriptInfo(_0x1005a2){const _0x5e618e=a74_0x1a9d,_0x342f7e=await apiRequest(_0x5e618e(0x170)+_0x1005a2);if(!_0x342f7e[_0x5e618e(0xf9)])throw CliErrors[_0x5e618e(0x148)](_0x5e618e(0x10f)+_0x1005a2);return _0x342f7e[_0x5e618e(0xf9)];}export async function getSqlQueryInfo(_0x590896,_0x1e071f){const _0x3abcc3=a74_0x1a9d,_0x58b8f6=await apiRequest(_0x3abcc3(0xed),{'method':'POST','body':{'appCode':_0x590896,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x1e071f}}),_0x4f274b=_0x58b8f6['data'],_0x377a3e=_0x4f274b&&typeof _0x4f274b===_0x3abcc3(0x15e)&&_0x3abcc3(0x109)in _0x4f274b?_0x4f274b[_0x3abcc3(0x109)]?.[0x0]:_0x4f274b&&typeof _0x4f274b==='object'&&_0x3abcc3(0x144)in _0x4f274b?_0x4f274b:undefined;if(!_0x377a3e)throw CliErrors[_0x3abcc3(0x148)]('SQL\x20query\x20not\x20found:\x20'+_0x1e071f);return _0x377a3e;}function isRemoteAppItem(_0x55cae0){const _0x2c4e9c=a74_0x1a9d;return!!_0x55cae0&&typeof _0x55cae0==='object'&&typeof _0x55cae0[_0x2c4e9c(0xec)]==='string'&&typeof _0x55cae0['appName']==='string';}function extractRemoteAppItems(_0x3195be){const _0x499299=a74_0x1a9d;if(Array[_0x499299(0x11d)](_0x3195be))return _0x3195be[_0x499299(0x15f)](isRemoteAppItem);if(!_0x3195be||typeof _0x3195be!==_0x499299(0x15e))throw CliErrors['apiError'](_0x499299(0x136));const _0x4ba298=_0x3195be;if(Array[_0x499299(0x11d)](_0x4ba298[_0x499299(0x109)]))return _0x4ba298['tableData'][_0x499299(0x15f)](isRemoteAppItem);if(_0x4ba298[_0x499299(0xf9)]&&typeof _0x4ba298[_0x499299(0xf9)]===_0x499299(0x15e)){const _0x10d56a=_0x4ba298['data'];if(Array['isArray'](_0x10d56a['tableData']))return _0x10d56a[_0x499299(0x109)]['filter'](isRemoteAppItem);}throw CliErrors[_0x499299(0xf5)](_0x499299(0x113));}export async function getMyApps(){const _0x4cf0e7=a74_0x1a9d,_0x2469aa=await apiRequest(_0x4cf0e7(0x118));return extractRemoteAppItems(_0x2469aa[_0x4cf0e7(0xf9)]);}export async function getLoginUserInfo(){const _0x3f6806=a74_0x1a9d,_0x4a004c=await apiRequest('/client/user/loginUserInfo');if(!_0x4a004c[_0x3f6806(0xf9)]||typeof _0x4a004c[_0x3f6806(0xf9)]!==_0x3f6806(0x15e)||Array['isArray'](_0x4a004c[_0x3f6806(0xf9)]))throw CliErrors[_0x3f6806(0xf5)](_0x3f6806(0x13b));return _0x4a004c[_0x3f6806(0xf9)];}export async function listDatasets(_0xe454b1,_0x153a48){const _0x1fe725=a74_0x1a9d,_0x1710c1=await apiRequest(_0x1fe725(0x10c),{'method':_0x1fe725(0xf6),'body':{'appCode':_0xe454b1,..._0x153a48?.[_0x1fe725(0x138)]&&{'code':_0x153a48[_0x1fe725(0x138)]},..._0x153a48?.['name']&&{'name':_0x153a48[_0x1fe725(0x12b)]}}});return extractList(_0x1710c1[_0x1fe725(0xf9)]);}export async function getDatasetDetail(_0x32c0c2){const _0x359d94=await apiRequest('/client/dataset/get-driven-data?code='+encodeURIComponent(_0x32c0c2));return _0x359d94['data'];}export async function getDatasetSdkUsageDoc(_0x517094,_0x2328fc){const _0x1fd683=a74_0x1a9d,_0x52e5df=await toolboxRequest(_0x1fd683(0x10d),{'datasetCode':_0x517094,'appCode':_0x2328fc});return typeof _0x52e5df?.[_0x1fd683(0x13c)]===_0x1fd683(0x14c)?_0x52e5df[_0x1fd683(0x13c)]:'';}export async function uploadRuntimeFile(_0x3dbecc,_0x24b9aa){const _0x5abebf=a74_0x1a9d,_0xda47cd=await readFile(_0x24b9aa),_0x180429=new FormData();_0x180429[_0x5abebf(0xfa)](_0x5abebf(0xec),_0x3dbecc),_0x180429[_0x5abebf(0xfa)](_0x5abebf(0x16a),new Blob([new Uint8Array(_0xda47cd)]),basename(_0x24b9aa));const _0x538acb=await apiFormRequest(_0x5abebf(0x16c),_0x180429);return _0x538acb[_0x5abebf(0xf9)];}export async function queryRuntimeFileUrl(_0x28ab9a,_0x4fcb6b={}){const _0x2439ac=a74_0x1a9d,_0x9562a4=await apiRequest('/client/queryFileUrl',{'method':_0x2439ac(0xf6),'body':{'filePath':_0x28ab9a,'downloadFlag':_0x4fcb6b[_0x2439ac(0x139)]??![]}});return _0x9562a4['data'];}export async function recognizeRuntimeOcr(_0x1bab95,_0x3d0f79){const _0x4bc794=a74_0x1a9d,_0x2ebde5=await apiRequest(_0x4bc794(0x115),{'method':_0x4bc794(0xf6),'body':{'appCode':_0x1bab95,'url':_0x3d0f79['url'],'type':_0x3d0f79[_0x4bc794(0x14e)]}});return _0x2ebde5[_0x4bc794(0xf9)];}export async function getRuntimeAppConfigByKey(_0x16705c,_0x45d1d5){const _0x247771=a74_0x1a9d,_0x4e8341=new URLSearchParams({'appCode':_0x16705c,'key':_0x45d1d5}),_0x1ce541=await apiRequest(_0x247771(0x165)+_0x4e8341['toString']());if(!_0x1ce541[_0x247771(0xf9)])throw CliErrors['validation'](_0x247771(0x129)+_0x45d1d5);return _0x1ce541[_0x247771(0xf9)];}function a74_0x1a9d(_0x1ceb5c,_0x5ad11c){_0x1ceb5c=_0x1ceb5c-0xe1;const _0x4099ee=a74_0x4099();let _0x1a9d5f=_0x4099ee[_0x1ceb5c];return _0x1a9d5f;}export async function listRuntimeArtifacts(_0x54f836,_0x3a5769){const _0x44f726=a74_0x1a9d,_0x418c36=new URLSearchParams({'appCode':_0x54f836});if(_0x3a5769?.[_0x44f726(0x14f)])_0x418c36[_0x44f726(0xf4)](_0x44f726(0x14f),_0x3a5769[_0x44f726(0x14f)]);if(_0x3a5769?.[_0x44f726(0x12d)])_0x418c36[_0x44f726(0xf4)](_0x44f726(0x12d),_0x3a5769[_0x44f726(0x12d)]);if(_0x3a5769?.[_0x44f726(0x130)]!==undefined)_0x418c36[_0x44f726(0xf4)]('favorite',String(_0x3a5769[_0x44f726(0x130)]));const _0x21efde=await apiRequest(_0x44f726(0x103)+_0x418c36['toString']());return Array[_0x44f726(0x11d)](_0x21efde[_0x44f726(0xf9)])?_0x21efde[_0x44f726(0xf9)]:[];}export async function getRuntimeArtifact(_0x51bf69,_0x313d7c){const _0x3722a2=a74_0x1a9d,_0x3704d3=await apiRequest('/client/artifact/'+_0x51bf69+'?appCode='+encodeURIComponent(_0x313d7c));if(!_0x3704d3[_0x3722a2(0xf9)])throw CliErrors['validation']('Artifact\x20not\x20found:\x20id='+_0x51bf69);return _0x3704d3[_0x3722a2(0xf9)];}export async function createRuntimeArtifact(_0x4d7842,_0x4835ff){const _0xdf4c2e=a74_0x1a9d,_0x38a267=await apiRequest(_0xdf4c2e(0x134),{'method':'POST','body':{'appCode':_0x4d7842,..._0x4835ff}});return _0x38a267['data'];}export async function updateRuntimeArtifact(_0x1ea321,_0x9d4880,_0x5cc923){const _0x5411d6=a74_0x1a9d,_0x58f946=await apiRequest(_0x5411d6(0x132)+_0x1ea321+_0x5411d6(0x145),{'method':_0x5411d6(0xf6),'body':{'appCode':_0x9d4880,..._0x5cc923}});return _0x58f946['data'];}export async function listPersonalBffs(_0x1f5b7f){const _0x32e2b5=a74_0x1a9d,_0x5f376e=await apiRequest(_0x32e2b5(0x168)+encodeURIComponent(_0x1f5b7f));return Array['isArray'](_0x5f376e['data'])?_0x5f376e[_0x32e2b5(0xf9)]:[];}export async function getPersonalBff(_0xb60b00,_0x33c96){const _0x206772=a74_0x1a9d,_0x2d2268=await apiRequest('/client/runtime-bff/personal/'+_0xb60b00+_0x206772(0x160)+encodeURIComponent(_0x33c96));if(!_0x2d2268[_0x206772(0xf9)])throw CliErrors[_0x206772(0x148)](_0x206772(0xe5)+_0xb60b00);return _0x2d2268[_0x206772(0xf9)];}export async function createPersonalBff(_0x33123a,_0x3a51ca){const _0x216dff=a74_0x1a9d,_0x2a2566=await apiRequest(_0x216dff(0x15d),{'method':_0x216dff(0xf6),'body':{'appCode':_0x33123a,..._0x3a51ca}});return _0x2a2566[_0x216dff(0xf9)];}export async function updatePersonalBff(_0x1823fb,_0x59715c,_0x214f67){const _0x3a8276=a74_0x1a9d,_0x33a280=await apiRequest(_0x3a8276(0x102)+_0x1823fb+_0x3a8276(0x145),{'method':_0x3a8276(0xf6),'body':{'appCode':_0x59715c,..._0x214f67}});return _0x33a280['data'];}export async function executePersonalBff(_0x56766f,_0x452ab1,_0x29405b){const _0x43110f=a74_0x1a9d,_0x1e1c69=await apiRequest('/client/runtime-bff/personal/'+_0x56766f+_0x43110f(0x161)+encodeURIComponent(_0x452ab1),{'method':'POST','body':_0x29405b});return _0x1e1c69[_0x43110f(0xf9)];}export async function listPersonalKnowledgeBaseItems(_0x260102){const _0x28a36f=a74_0x1a9d,_0x51dd76=await apiRequest(_0x28a36f(0x110)+encodeURIComponent(_0x260102));return Array[_0x28a36f(0x11d)](_0x51dd76[_0x28a36f(0xf9)])?_0x51dd76['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x3727fe,_0x62850c){const _0x35aee0=a74_0x1a9d,_0x50a359=await apiRequest('/client/knowledge-base/personal/'+_0x3727fe+_0x35aee0(0x160)+encodeURIComponent(_0x62850c));if(!_0x50a359[_0x35aee0(0xf9)])throw CliErrors['validation']('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0x3727fe);return _0x50a359['data'];}export async function createPersonalKnowledgeBaseItem(_0x34e5be,_0x3a3c96){const _0x317e6a=a74_0x1a9d,_0x1b2f73=await apiRequest(_0x317e6a(0x152),{'method':_0x317e6a(0xf6),'body':{'appCode':_0x34e5be,..._0x3a3c96}});return _0x1b2f73[_0x317e6a(0xf9)];}export async function updatePersonalKnowledgeBaseItem(_0x5b9098,_0x5006ee,_0x466e08){const _0x47051a=a74_0x1a9d,_0x3952b0=await apiRequest(_0x47051a(0xee)+_0x5b9098+_0x47051a(0x145),{'method':_0x47051a(0xf6),'body':{'appCode':_0x5006ee,..._0x466e08}});return _0x3952b0[_0x47051a(0xf9)];}export async function searchKnowledgeBase(_0x43e2af,_0x1b0820){const _0xd3f46d=a74_0x1a9d,_0x8d9c76=await apiRequest(_0xd3f46d(0x12c),{'method':'POST','body':{'appCode':_0x43e2af,'query':_0x1b0820[_0xd3f46d(0xe1)],..._0x1b0820[_0xd3f46d(0x16e)]!==undefined?{'topK':_0x1b0820[_0xd3f46d(0x16e)]}:{}}});return Array['isArray'](_0x8d9c76[_0xd3f46d(0xf9)])?_0x8d9c76[_0xd3f46d(0xf9)]:[];}export async function getRuntimeSkillByCode(_0xa9dcd0,_0x32716d){const _0x417356=a74_0x1a9d,_0xd453e2=await skillHubJsonRequest(_0x417356(0x125)+encodeURIComponent(_0xa9dcd0)+'/'+encodeURIComponent(_0x32716d),{'allowNotFound':!![]});return _0xd453e2?skillHubRuntimeDetailToRuntimeSkill(_0xd453e2):undefined;}export async function listRuntimeSkills(_0x5c7910){const _0x1af1aa=a74_0x1a9d,_0x2f9300=await skillHubJsonRequest(_0x1af1aa(0x15c)+encodeURIComponent(_0x5c7910[_0x1af1aa(0xec)])+_0x1af1aa(0x108),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x5c7910[_0x1af1aa(0xec)],_0x2f9300,_0x5c7910['scope']??_0x1af1aa(0x146),_0x5c7910[_0x1af1aa(0x138)]);}export async function listPersonalRuntimeSkills(_0x5d89f4){const _0x2fdbbc=a74_0x1a9d;return(await listRuntimeSkills({'appCode':_0x5d89f4,'scope':'personal'}))[_0x2fdbbc(0x12a)];}export async function listCompanyRuntimeSkills(_0x136fdb){const _0x59bc01=a74_0x1a9d;return(await listRuntimeSkills({'appCode':_0x136fdb,'scope':_0x59bc01(0x12e)}))[_0x59bc01(0x12e)];}export async function listVisibleRuntimeSkills(_0x5813c2){const _0x116061=a74_0x1a9d;return(await listRuntimeSkills({'appCode':_0x5813c2,'scope':_0x116061(0x146)}))[_0x116061(0x15b)];}export async function createPersonalRuntimeSkill(_0xa37f4c,_0x5c4745){return publishRuntimeSkill(_0xa37f4c,_0x5c4745,{'visibility':'PRIVATE'});}export async function updatePersonalRuntimeSkill(_0x2d3f5c,_0x3a1b5c,_0x4f83ac){const _0x1858a2=a74_0x1a9d;return publishRuntimeSkill(_0x3a1b5c,{..._0x4f83ac,'skillCode':_0x4f83ac[_0x1858a2(0x105)]??_0x2d3f5c},{'visibility':_0x1858a2(0xf3)});}export async function publishCompanyRuntimeSkill(_0x5727bc,_0x4b8d08,_0x3bc3e2={}){const _0x15855f=a74_0x1a9d;return publishRuntimeSkill(_0x5727bc,_0x4b8d08,{'visibility':_0x15855f(0x135),'confirmWarnings':_0x3bc3e2[_0x15855f(0x114)]});}export async function validateRuntimeSkillPublish(_0x47ee81,_0x22b19b,_0x14fcb9){const _0xba0d0e=a74_0x1a9d,_0x26c54=buildRuntimeSkillPublishForm(_0x22b19b,_0x14fcb9['visibility']),_0x179f18=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x47ee81)+_0xba0d0e(0x164),{'method':_0xba0d0e(0xf6),'body':_0x26c54});return{'valid':_0x179f18['valid']===!![],'errors':Array[_0xba0d0e(0x11d)](_0x179f18[_0xba0d0e(0x14a)])?_0x179f18[_0xba0d0e(0x14a)]:[],'warnings':Array['isArray'](_0x179f18[_0xba0d0e(0x133)])?_0x179f18[_0xba0d0e(0x133)]:[],'resolvedSlug':_0x179f18[_0xba0d0e(0xff)],'resolvedVersion':_0x179f18['resolvedVersion']};}export async function downloadRuntimeSkillPackage(_0xcc2b54,_0x332d00,_0x8ecccd,_0x1e2401){const _0x344582=a74_0x1a9d;void _0xcc2b54;const _0x338ece=_0x1e2401?'/api/cli/v1/skills/'+encodeURIComponent(_0x8ecccd)+'/'+encodeURIComponent(_0x332d00)+_0x344582(0x140)+encodeURIComponent(_0x1e2401)+_0x344582(0xe6):'/api/cli/v1/skills/'+encodeURIComponent(_0x8ecccd)+'/'+encodeURIComponent(_0x332d00)+_0x344582(0xe6);return skillHubBinaryRequest(_0x338ece);}async function publishRuntimeSkill(_0xbceb86,_0x447361,_0x1758cb){const _0x3935db=a74_0x1a9d,_0x448fb2=buildRuntimeSkillPublishForm(_0x447361,_0x1758cb[_0x3935db(0x116)]),_0x5bf37c=await skillHubJsonRequest(_0x3935db(0xf7)+encodeURIComponent(_0xbceb86)+'/publish',{'method':'POST','query':{'confirmWarnings':_0x1758cb['confirmWarnings']===!![]?!![]:undefined},'body':_0x448fb2});return{'appCode':_0x5bf37c[_0x3935db(0x14b)]??_0xbceb86,'skillCode':_0x5bf37c['slug']??_0x447361['skillCode']??'','skillName':_0x447361[_0x3935db(0x128)]??_0x5bf37c[_0x3935db(0x157)]??_0x447361[_0x3935db(0x105)],'description':_0x447361['description'],'scope':skillHubVisibilityToScope(_0x5bf37c[_0x3935db(0x116)]??_0x1758cb[_0x3935db(0x116)])??'personal','version':_0x5bf37c[_0x3935db(0x15a)]??_0x447361[_0x3935db(0x15a)],'tags':_0x447361[_0x3935db(0x151)],'content':_0x447361['content']};}function buildRuntimeSkillPublishForm(_0x26d697,_0x9aee10){const _0x12e7bc=a74_0x1a9d,_0x5f1b87=new FormData();return _0x5f1b87[_0x12e7bc(0xf4)](_0x12e7bc(0x16a),runtimeSkillPackageFile(_0x26d697)),_0x26d697[_0x12e7bc(0x128)]?.[_0x12e7bc(0x117)]()&&_0x5f1b87[_0x12e7bc(0xf4)](_0x12e7bc(0x10a),_0x26d697[_0x12e7bc(0x128)]['trim']()),_0x5f1b87[_0x12e7bc(0xf4)](_0x12e7bc(0x116),_0x9aee10),_0x5f1b87;}function runtimeSkillPackageFile(_0x265ac5){const _0x26cd9c=a74_0x1a9d;if(!_0x265ac5['packageBase64'])throw CliErrors[_0x26cd9c(0x148)](_0x26cd9c(0x16b));const _0x563c91=Buffer[_0x26cd9c(0x159)](_0x265ac5[_0x26cd9c(0xf0)],'base64'),_0x2b82d7=new Blob([_0x563c91],{'type':_0x26cd9c(0x13e)}),_0x27c98b=(_0x265ac5[_0x26cd9c(0x105)]||_0x26cd9c(0xfd))+_0x26cd9c(0x169);if(typeof File!==_0x26cd9c(0xef))return new File([_0x2b82d7],_0x27c98b,{'type':_0x26cd9c(0x13e)});return _0x2b82d7;}function normalizeSkillHubRuntimeListResponse(_0x5b6009,_0x213383,_0x5aef50,_0x29b6aa){const _0x2e3f9c=a74_0x1a9d,_0x30299a=Array[_0x2e3f9c(0x11d)](_0x213383)?_0x213383:Array[_0x2e3f9c(0x11d)](_0x213383?.[_0x2e3f9c(0x150)])?_0x213383[_0x2e3f9c(0x150)]:[],_0x5b2118=_0x29b6aa?.['trim'](),_0x54db59=_0x30299a['filter'](_0x3328fc=>!_0x5b2118||_0x3328fc[_0x2e3f9c(0x157)]===_0x5b2118)[_0x2e3f9c(0xe7)](skillHubRuntimeItemToRuntimeSkill)[_0x2e3f9c(0x15f)](_0x41a96f=>Boolean(_0x41a96f)),_0x17247a=_0x54db59[_0x2e3f9c(0x15f)](_0x4425c5=>_0x4425c5[_0x2e3f9c(0x12f)]===_0x2e3f9c(0x12a)),_0xb5334a=_0x54db59[_0x2e3f9c(0x15f)](_0x1b892c=>_0x1b892c[_0x2e3f9c(0x12f)]==='company');return{'appCode':_0x5b6009,'personal':_0x5aef50===_0x2e3f9c(0x12e)?[]:_0x17247a,'company':_0x5aef50===_0x2e3f9c(0x12a)?[]:_0xb5334a,'effective':buildEffectiveRuntimeSkills(_0x17247a,_0xb5334a,_0x5aef50)};}function skillHubRuntimeItemToRuntimeSkill(_0x333c08){const _0xe1fee9=a74_0x1a9d,_0xdaee73=_0x333c08[_0xe1fee9(0x157)]?.[_0xe1fee9(0x117)](),_0x43bf9c=skillHubVisibilityToScope(_0x333c08[_0xe1fee9(0x116)]);if(!_0xdaee73||!_0x43bf9c)return undefined;return{'id':_0x333c08['id'],'appCode':_0x333c08['namespace'],'skillCode':_0xdaee73,'skillName':_0x333c08[_0xe1fee9(0x10a)]??_0xdaee73,'description':_0x333c08[_0xe1fee9(0x153)],'scope':_0x43bf9c,'version':skillHubRuntimeItemVersion(_0x333c08),'status':_0x333c08['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x530fbf){const _0xaca329=a74_0x1a9d,_0x3b4900=_0x530fbf['slug']?.[_0xaca329(0x117)]();if(!_0x3b4900)return undefined;return{'id':_0x530fbf['id'],'appCode':_0x530fbf['namespace'],'skillCode':_0x3b4900,'skillName':_0x530fbf[_0xaca329(0x10a)]??_0x3b4900,'description':_0x530fbf[_0xaca329(0x153)],'scope':skillHubVisibilityToScope(_0x530fbf[_0xaca329(0x116)])??_0x530fbf[_0xaca329(0x116)]?.[_0xaca329(0xe8)](),'version':skillHubRuntimeItemVersion(_0x530fbf),'status':_0x530fbf[_0xaca329(0xfc)]};}function skillHubVisibilityToScope(_0x471315){const _0x3adae3=a74_0x1a9d;if(_0x471315==='PRIVATE')return _0x3adae3(0x12a);if(_0x471315==='NAMESPACE_ONLY')return _0x3adae3(0x12e);return undefined;}function skillHubRuntimeItemVersion(_0x90388){const _0x36d775=a74_0x1a9d;return _0x90388[_0x36d775(0x166)]?.[_0x36d775(0x15a)]??_0x90388[_0x36d775(0x154)]?.[_0x36d775(0x15a)]??_0x90388[_0x36d775(0x10b)]?.[_0x36d775(0x15a)];}function buildEffectiveRuntimeSkills(_0x155c1a,_0x32297b,_0x50015f){const _0x134eeb=a74_0x1a9d;if(_0x50015f===_0x134eeb(0x12a))return _0x155c1a;if(_0x50015f===_0x134eeb(0x12e))return _0x32297b;const _0x21f3a5=new Map();for(const _0x174820 of _0x32297b){_0x21f3a5[_0x134eeb(0xf4)](_0x174820[_0x134eeb(0x105)],_0x174820);}for(const _0x5de7d7 of _0x155c1a){_0x21f3a5[_0x134eeb(0xf4)](_0x5de7d7[_0x134eeb(0x105)],_0x5de7d7);}return Array[_0x134eeb(0x159)](_0x21f3a5['values']());}function a74_0x4099(){const _0x4da765=['/execute?appCode=','485OvBtFq','arrayBuffer','/publish/validate','/client/app-config/getByKey?','publishedVersion','error','/client/runtime-bff/personal/list?appCode=','.zip','file','Missing\x20Skill\x20package\x20payload.','/client/uploadFile','29168556LsBehF','topK','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/bff/query/','query','authRequired','Toolbox\x20API\x20error','9NnwzQY','Personal\x20BFF\x20not\x20found:\x20id=','/download','map','toLowerCase','newConfigFileName','json','Request\x20timeout:\x20','appCode','/client/sql/query','/client/knowledge-base/personal/','undefined','packageBase64','API\x20error\x20code:\x20','errorMsg','PRIVATE','set','apiError','POST','/api/cli/v1/skills/','message','data','append','Configure\x20accessKey\x20in\x20','status','skill','searchParams','resolvedSlug','toString','107412gdwELc','/client/runtime-bff/personal/','/client/artifact/list?','boolean','skillCode','Download\x20failed:\x20','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/skills','tableData','displayName','ownerPreviewVersion','/client/dataset/list','api-doc-generator','entries','BFF\x20script\x20not\x20found:\x20id=','/client/knowledge-base/personal/list?appCode=','99UizNDh','1KXqNmm','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','confirmWarnings','/client/ocr','visibility','trim','/client/app/my-apps','Check\x20your\x20credentials\x20and\x20try\x20again.','stringify','success','application/octet-stream','isArray','test','invokeSource','GET','1256808scEubo','text','SkillHub\x20API\x20error:\x20','msg','/api/v1/skills/','signal','errorCode','skillName','App\x20config\x20not\x20found:\x20key=','personal','name','/client/knowledge-base/search','source','company','scope','favorite','API\x20error:\x20','/client/artifact/','warnings','/client/artifact/create','NAMESPACE_ONLY','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','1821580IWVmHh','code','download','replace','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','markdown','abort','application/zip','8310337KivWct','/versions/','4qorRRm','11464168FxGZNs','application/json','sqlCode','/update','all','catch','validation','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','errors','namespace','string','Toolbox\x20error\x20code:\x20','type','artifactType','items','tags','/client/knowledge-base/personal/create','summary','headlineVersion','214599LzkfxD','AbortError','slug','/api/node-toolbox/','from','version','effective','/api/runtime/v1/namespaces/','/client/runtime-bff/personal/create','object','filter','?appCode='];a74_0x4099=function(){return _0x4da765;};return a74_0x4099();}function normalizeRuntimeSkillListResponse(_0x123e34,_0x3c13ad){const _0x55ed97=a74_0x1a9d;if(Array['isArray'](_0x3c13ad)){const _0x574bd9=_0x3c13ad[_0x55ed97(0x15f)](_0x502839=>_0x502839[_0x55ed97(0x12f)]===_0x55ed97(0x12a)),_0x51ffd7=_0x3c13ad[_0x55ed97(0x15f)](_0x1b8131=>_0x1b8131[_0x55ed97(0x12f)]===_0x55ed97(0x12e));return{'appCode':_0x123e34,'personal':_0x574bd9,'company':_0x51ffd7,'effective':[..._0x51ffd7,..._0x574bd9]};}return{'appCode':_0x3c13ad?.[_0x55ed97(0xec)]??_0x123e34,'personal':Array['isArray'](_0x3c13ad?.['personal'])?_0x3c13ad[_0x55ed97(0x12a)]:[],'company':Array[_0x55ed97(0x11d)](_0x3c13ad?.[_0x55ed97(0x12e)])?_0x3c13ad['company']:[],'effective':Array[_0x55ed97(0x11d)](_0x3c13ad?.[_0x55ed97(0x15b)])?_0x3c13ad[_0x55ed97(0x15b)]:[]};}
1
+ (function(_0x3b8ffc,_0x24590c){const _0x5961c3=a74_0x42b3,_0x5a3f8d=_0x3b8ffc();while(!![]){try{const _0x267d8a=-parseInt(_0x5961c3(0x12c))/0x1*(-parseInt(_0x5961c3(0x175))/0x2)+parseInt(_0x5961c3(0x13d))/0x3+parseInt(_0x5961c3(0x180))/0x4*(-parseInt(_0x5961c3(0x10a))/0x5)+parseInt(_0x5961c3(0x153))/0x6*(-parseInt(_0x5961c3(0x134))/0x7)+-parseInt(_0x5961c3(0x162))/0x8*(parseInt(_0x5961c3(0x18f))/0x9)+-parseInt(_0x5961c3(0x119))/0xa*(parseInt(_0x5961c3(0x112))/0xb)+parseInt(_0x5961c3(0x10c))/0xc;if(_0x267d8a===_0x24590c)break;else _0x5a3f8d['push'](_0x5a3f8d['shift']());}catch(_0x3ca2a9){_0x5a3f8d['push'](_0x5a3f8d['shift']());}}}(a74_0x182c,0xf1f5b));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x35b926){_activeAK=_0x35b926||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x1f61e1,_0x2be2b7={}){const _0x3bed8d=a74_0x42b3,{method:method=_0x3bed8d(0x167),body:_0x206988,headers:headers={},timeout:timeout=0x7530}=_0x2be2b7,_0x4ec338=_activeAK,_0x217158=getRuntimeDomain();if(!_0x4ec338)throw CliErrors[_0x3bed8d(0x14a)](_0x3bed8d(0x105)+PRODUCT_CONFIG[_0x3bed8d(0x12d)]+'.');const _0x299ea5=''+_0x217158+_0x1f61e1,_0x506297={'X-User-AK':_0x4ec338},_0x39d43b=new AbortController(),_0x4d9ce2=setTimeout(()=>_0x39d43b[_0x3bed8d(0x116)](),timeout);try{const _0xf9790f=await fetch(_0x299ea5,{'method':method,'headers':{'Content-Type':_0x3bed8d(0x177),'X-Invoke-Source':PRODUCT_CONFIG[_0x3bed8d(0x103)],..._0x506297,...headers},'body':_0x206988?JSON['stringify'](_0x206988):undefined,'signal':_0x39d43b[_0x3bed8d(0x173)]});let _0x481ad4;try{_0x481ad4=await _0xf9790f['json']();}catch{throw CliErrors[_0x3bed8d(0x11f)](_0x3bed8d(0x179)+_0xf9790f[_0x3bed8d(0x17b)]+')',_0xf9790f[_0x3bed8d(0x17b)]>=0x190?_0x3bed8d(0x14f):undefined);}if(!_0xf9790f['ok']||_0x481ad4[_0x3bed8d(0x17e)]===![])throw CliErrors[_0x3bed8d(0x11f)](_0x481ad4['errorMsg']||_0x481ad4[_0x3bed8d(0x189)]||'API\x20error:\x20'+_0xf9790f['status'],_0x481ad4[_0x3bed8d(0x188)]?'API\x20error\x20code:\x20'+_0x481ad4['errorCode']:undefined);return _0x481ad4;}catch(_0x4ff6b9){if(_0x4ff6b9 instanceof Error&&_0x4ff6b9[_0x3bed8d(0x165)]===_0x3bed8d(0x169))throw CliErrors[_0x3bed8d(0x11f)](_0x3bed8d(0x131)+_0x299ea5);throw _0x4ff6b9;}finally{clearTimeout(_0x4d9ce2);}}async function apiBinaryRequest(_0x338f1a,_0x56ed48={}){const _0x252bcf=a74_0x42b3,{method:method=_0x252bcf(0x167),headers:headers={},timeout:timeout=0x7530}=_0x56ed48,_0x3592c8=_activeAK,_0x22a2a6=getRuntimeDomain();if(!_0x3592c8)throw CliErrors[_0x252bcf(0x14a)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x358c95=''+_0x22a2a6+_0x338f1a,_0x34eb61=new AbortController(),_0x1b19b6=setTimeout(()=>_0x34eb61[_0x252bcf(0x116)](),timeout);try{const _0x37c2c1=await fetch(_0x358c95,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x252bcf(0x103)],'X-User-AK':_0x3592c8,...headers},'signal':_0x34eb61[_0x252bcf(0x173)]});if(!_0x37c2c1['ok']){let _0x2d8541;try{const _0x330b59=await _0x37c2c1[_0x252bcf(0x15b)]();_0x2d8541=_0x330b59[_0x252bcf(0x110)]||_0x330b59[_0x252bcf(0x189)]||_0x330b59[_0x252bcf(0x188)];}catch{_0x2d8541=await _0x37c2c1[_0x252bcf(0x10d)]()[_0x252bcf(0x127)](()=>undefined);}throw CliErrors['apiError'](_0x2d8541||_0x252bcf(0x151)+_0x37c2c1[_0x252bcf(0x17b)],'Download\x20failed:\x20'+_0x358c95);}return Buffer[_0x252bcf(0x137)](await _0x37c2c1['arrayBuffer']());}catch(_0x3c4a08){if(_0x3c4a08 instanceof Error&&_0x3c4a08[_0x252bcf(0x165)]===_0x252bcf(0x169))throw CliErrors[_0x252bcf(0x11f)]('Request\x20timeout:\x20'+_0x358c95);throw _0x3c4a08;}finally{clearTimeout(_0x1b19b6);}}async function apiFormRequest(_0x259809,_0x176293,_0x54125a={}){const _0x1e9f36=a74_0x42b3,{timeout:timeout=0x7530}=_0x54125a,_0x2f9d62=_activeAK,_0x5518f9=getRuntimeDomain();if(!_0x2f9d62)throw CliErrors[_0x1e9f36(0x14a)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x260b0b=''+_0x5518f9+_0x259809,_0xdcbcf5=new AbortController(),_0x5d6beb=setTimeout(()=>_0xdcbcf5[_0x1e9f36(0x116)](),timeout);try{const _0x581a7f=await fetch(_0x260b0b,{'method':_0x1e9f36(0x138),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1e9f36(0x103)],'X-User-AK':_0x2f9d62},'body':_0x176293,'signal':_0xdcbcf5[_0x1e9f36(0x173)]});let _0x221e8c;try{_0x221e8c=await _0x581a7f['json']();}catch{throw CliErrors['apiError'](_0x1e9f36(0x179)+_0x581a7f[_0x1e9f36(0x17b)]+')',_0x581a7f[_0x1e9f36(0x17b)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x581a7f['ok']||_0x221e8c[_0x1e9f36(0x17e)]===![])throw CliErrors[_0x1e9f36(0x11f)](_0x221e8c[_0x1e9f36(0x110)]||_0x221e8c['message']||_0x1e9f36(0x151)+_0x581a7f[_0x1e9f36(0x17b)],_0x221e8c[_0x1e9f36(0x188)]?'API\x20error\x20code:\x20'+_0x221e8c[_0x1e9f36(0x188)]:undefined);return _0x221e8c;}catch(_0xd96a72){if(_0xd96a72 instanceof Error&&_0xd96a72[_0x1e9f36(0x165)]===_0x1e9f36(0x169))throw CliErrors[_0x1e9f36(0x11f)](_0x1e9f36(0x131)+_0x260b0b);throw _0xd96a72;}finally{clearTimeout(_0x5d6beb);}}async function toolboxRequest(_0x127a7a,_0x13bf3d,_0x1eb391={}){const _0x229297=a74_0x42b3,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x1eb391,_0x6d5271=_activeAK;if(!_0x6d5271)throw CliErrors['authRequired'](_0x229297(0x105)+PRODUCT_CONFIG[_0x229297(0x12d)]+'.');const _0x2d1d56=getApiDomain()['replace'](/\/$/,''),_0x4fdf31=new URL(_0x127a7a,_0x2d1d56+_0x229297(0x164));if(_0x13bf3d)for(const [_0x263b5e,_0x486839]of Object[_0x229297(0x12b)](_0x13bf3d)){_0x486839!==undefined&&_0x486839!==null&&_0x4fdf31[_0x229297(0x118)]['set'](_0x263b5e,String(_0x486839));}const _0x2a0a56=new AbortController(),_0x13c7a9=setTimeout(()=>_0x2a0a56[_0x229297(0x116)](),timeout);try{const _0x45dab9=await fetch(_0x4fdf31,{'method':method,'headers':{'Content-Type':_0x229297(0x177),'X-Invoke-Source':PRODUCT_CONFIG[_0x229297(0x103)],'X-User-AK':_0x6d5271,...headers},'signal':_0x2a0a56[_0x229297(0x173)]});let _0x847685;try{_0x847685=await _0x45dab9[_0x229297(0x15b)]();}catch{throw CliErrors['apiError'](_0x229297(0x172)+_0x45dab9[_0x229297(0x17b)]+')',_0x45dab9[_0x229297(0x17b)]>=0x190?_0x229297(0x14f):undefined);}if(!_0x45dab9['ok']){const _0x15ff66=_0x847685&&typeof _0x847685===_0x229297(0x18c)?_0x847685:{};throw CliErrors[_0x229297(0x11f)](_0x15ff66[_0x229297(0x110)]||_0x15ff66[_0x229297(0x189)]||'Toolbox\x20API\x20error:\x20'+_0x45dab9[_0x229297(0x17b)],_0x15ff66[_0x229297(0x188)]?'Toolbox\x20error\x20code:\x20'+_0x15ff66[_0x229297(0x188)]:undefined);}if(_0x847685&&typeof _0x847685===_0x229297(0x18c)&&_0x229297(0x17e)in _0x847685&&typeof _0x847685['success']===_0x229297(0x161)){const _0x28a760=_0x847685;if(!_0x28a760[_0x229297(0x17e)])throw CliErrors['apiError'](_0x28a760[_0x229297(0x110)]||_0x28a760['message']||_0x229297(0x14d),_0x28a760[_0x229297(0x188)]?_0x229297(0x16f)+_0x28a760[_0x229297(0x188)]:undefined);return _0x28a760[_0x229297(0x147)];}return _0x847685;}catch(_0x4a5ce8){if(_0x4a5ce8 instanceof Error&&_0x4a5ce8['name']===_0x229297(0x169))throw CliErrors[_0x229297(0x11f)]('Request\x20timeout:\x20'+_0x4fdf31[_0x229297(0x15c)]());throw _0x4a5ce8;}finally{clearTimeout(_0x13c7a9);}}async function skillHubJsonRequest(_0x2fe871,_0x377f6e={}){const _0x168209=a74_0x42b3,{method:method=_0x168209(0x167),query:_0x526d70,body:_0x38e710,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x377f6e,_0x1cc3db=_activeAK;if(!_0x1cc3db)throw CliErrors[_0x168209(0x14a)](_0x168209(0x105)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x549ae5=getSkillHubDomain()[_0x168209(0x166)](/\/$/,''),_0x703549=new URL(_0x2fe871,_0x549ae5+'/');if(_0x526d70)for(const [_0x37528e,_0x455dd0]of Object[_0x168209(0x12b)](_0x526d70)){_0x455dd0!==undefined&&_0x455dd0!==null&&_0x703549[_0x168209(0x118)]['set'](_0x37528e,String(_0x455dd0));}const _0x476bac=new AbortController(),_0x5d4695=setTimeout(()=>_0x476bac['abort'](),timeout);try{const _0x379dfb=await fetch(_0x703549[_0x168209(0x15c)](),{'method':method,'headers':{'Accept':_0x168209(0x177),'X-Invoke-Source':PRODUCT_CONFIG[_0x168209(0x103)],'X-User-AK':_0x1cc3db,...headers},'body':_0x38e710,'signal':_0x476bac[_0x168209(0x173)]});let _0x3cb01e;try{_0x3cb01e=await _0x379dfb[_0x168209(0x15b)]();}catch{if(allowNotFound&&_0x379dfb[_0x168209(0x17b)]===0x194)return undefined;throw CliErrors[_0x168209(0x11f)](_0x168209(0x174)+_0x379dfb['status']+')',_0x379dfb[_0x168209(0x17b)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(allowNotFound&&isSkillHubNotFoundResponse(_0x379dfb[_0x168209(0x17b)],_0x3cb01e))return undefined;const _0x585511=!_0x379dfb['ok']||_0x3cb01e?.['success']===![]||typeof _0x3cb01e?.['code']===_0x168209(0x121)&&_0x3cb01e['code']>=0x190;if(_0x585511)throw CliErrors[_0x168209(0x11f)](_0x3cb01e?.[_0x168209(0x110)]||_0x3cb01e?.['message']||_0x3cb01e?.[_0x168209(0x115)]||_0x168209(0x150)+_0x379dfb['status'],_0x3cb01e?.[_0x168209(0x188)]?'SkillHub\x20error\x20code:\x20'+_0x3cb01e[_0x168209(0x188)]:undefined);return _0x3cb01e?.[_0x168209(0x147)]??_0x3cb01e;}catch(_0x4d2fab){if(_0x4d2fab instanceof Error&&_0x4d2fab[_0x168209(0x165)]===_0x168209(0x169))throw CliErrors[_0x168209(0x11f)](_0x168209(0x131)+_0x703549['toString']());throw _0x4d2fab;}finally{clearTimeout(_0x5d4695);}}function isSkillHubNotFoundResponse(_0x1d3439,_0xfa9533){const _0x14a27d=a74_0x42b3;if(_0x1d3439===0x194||_0xfa9533?.['code']===0x194)return!![];if(_0x1d3439!==0x190&&_0xfa9533?.[_0x14a27d(0x18a)]!==0x190)return![];const _0x5b8a3d=[_0xfa9533?.[_0x14a27d(0x115)],_0xfa9533?.[_0x14a27d(0x189)],_0xfa9533?.[_0x14a27d(0x110)],_0xfa9533?.[_0x14a27d(0x11c)]][_0x14a27d(0x106)](_0x5d6b03=>typeof _0x5d6b03==='string')['join']('\x20');return/skill not found\b/i[_0x14a27d(0x10f)](_0x5b8a3d);}async function skillHubBinaryRequest(_0x1f1dab,_0xc0da33={}){const _0x4d69d7=a74_0x42b3,{query:_0x321305,headers:headers={},timeout:timeout=0x7530}=_0xc0da33,_0x1eb21c=_activeAK;if(!_0x1eb21c)throw CliErrors[_0x4d69d7(0x14a)](_0x4d69d7(0x105)+PRODUCT_CONFIG[_0x4d69d7(0x12d)]+'.');const _0x1e4e5d=getSkillHubDomain()[_0x4d69d7(0x166)](/\/$/,''),_0x5a891c=new URL(_0x1f1dab,_0x1e4e5d+'/');if(_0x321305)for(const [_0x292d14,_0x4b7d81]of Object[_0x4d69d7(0x12b)](_0x321305)){_0x4b7d81!==undefined&&_0x4b7d81!==null&&_0x5a891c[_0x4d69d7(0x118)]['set'](_0x292d14,String(_0x4b7d81));}const _0x5617b3=new AbortController(),_0x426423=setTimeout(()=>_0x5617b3[_0x4d69d7(0x116)](),timeout);try{const _0x399fa3=await fetch(_0x5a891c[_0x4d69d7(0x15c)](),{'method':'GET','headers':{'Accept':_0x4d69d7(0x12e),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x1eb21c,...headers},'signal':_0x5617b3[_0x4d69d7(0x173)]});if(!_0x399fa3['ok']){let _0x535486;try{const _0xd62690=await _0x399fa3[_0x4d69d7(0x15b)]();_0x535486=_0xd62690[_0x4d69d7(0x110)]||_0xd62690[_0x4d69d7(0x189)]||_0xd62690[_0x4d69d7(0x115)]||_0xd62690[_0x4d69d7(0x188)];}catch{_0x535486=await _0x399fa3[_0x4d69d7(0x10d)]()['catch'](()=>undefined);}throw CliErrors[_0x4d69d7(0x11f)](_0x535486||_0x4d69d7(0x150)+_0x399fa3[_0x4d69d7(0x17b)],'Download\x20failed:\x20'+_0x5a891c['toString']());}return Buffer[_0x4d69d7(0x137)](await _0x399fa3['arrayBuffer']());}catch(_0x556908){if(_0x556908 instanceof Error&&_0x556908[_0x4d69d7(0x165)]==='AbortError')throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x5a891c[_0x4d69d7(0x15c)]());throw _0x556908;}finally{clearTimeout(_0x426423);}}export async function getBffScriptInfo(_0x1b61dd){const _0x391125=a74_0x42b3,_0x3b6d56=await apiRequest('/client/bff/query/'+_0x1b61dd);if(!_0x3b6d56[_0x391125(0x147)])throw CliErrors[_0x391125(0x125)](_0x391125(0x132)+_0x1b61dd);return _0x3b6d56[_0x391125(0x147)];}export async function getSqlQueryInfo(_0x4be75b,_0x2c1e82){const _0x2bf867=a74_0x42b3,_0x4c6924=await apiRequest(_0x2bf867(0x107),{'method':_0x2bf867(0x138),'body':{'appCode':_0x4be75b,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2c1e82}}),_0x16d665=_0x4c6924['data'],_0x4facfd=_0x16d665&&typeof _0x16d665==='object'&&'tableData'in _0x16d665?_0x16d665['tableData']?.[0x0]:_0x16d665&&typeof _0x16d665===_0x2bf867(0x18c)&&_0x2bf867(0x12f)in _0x16d665?_0x16d665:undefined;if(!_0x4facfd)throw CliErrors[_0x2bf867(0x125)](_0x2bf867(0x168)+_0x2c1e82);return _0x4facfd;}function isRemoteAppItem(_0x4e4557){const _0x374e15=a74_0x42b3;return!!_0x4e4557&&typeof _0x4e4557===_0x374e15(0x18c)&&typeof _0x4e4557['appCode']===_0x374e15(0x18d)&&typeof _0x4e4557[_0x374e15(0x130)]===_0x374e15(0x18d);}function extractRemoteAppItems(_0x3bab5a){const _0x348000=a74_0x42b3;if(Array[_0x348000(0x11a)](_0x3bab5a))return _0x3bab5a[_0x348000(0x106)](isRemoteAppItem);if(!_0x3bab5a||typeof _0x3bab5a!==_0x348000(0x18c))throw CliErrors[_0x348000(0x11f)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x11b73c=_0x3bab5a;if(Array[_0x348000(0x11a)](_0x11b73c[_0x348000(0x111)]))return _0x11b73c[_0x348000(0x111)]['filter'](isRemoteAppItem);if(_0x11b73c[_0x348000(0x147)]&&typeof _0x11b73c[_0x348000(0x147)]===_0x348000(0x18c)){const _0x3d2136=_0x11b73c[_0x348000(0x147)];if(Array[_0x348000(0x11a)](_0x3d2136[_0x348000(0x111)]))return _0x3d2136[_0x348000(0x111)][_0x348000(0x106)](isRemoteAppItem);}throw CliErrors[_0x348000(0x11f)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x4da0b4=a74_0x42b3,_0x145e3e=await apiRequest(_0x4da0b4(0x156));return extractRemoteAppItems(_0x145e3e[_0x4da0b4(0x147)]);}export async function getLoginUserInfo(){const _0x3e33db=a74_0x42b3,_0xb3fed8=await apiRequest(_0x3e33db(0x144));if(!_0xb3fed8[_0x3e33db(0x147)]||typeof _0xb3fed8[_0x3e33db(0x147)]!==_0x3e33db(0x18c)||Array['isArray'](_0xb3fed8[_0x3e33db(0x147)]))throw CliErrors[_0x3e33db(0x11f)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0xb3fed8[_0x3e33db(0x147)];}export async function listDatasets(_0x58985a,_0x4861f3){const _0x128c08=a74_0x42b3,_0x424565=await apiRequest('/client/dataset/list',{'method':_0x128c08(0x138),'body':{'appCode':_0x58985a,..._0x4861f3?.['code']&&{'code':_0x4861f3[_0x128c08(0x18a)]},..._0x4861f3?.[_0x128c08(0x165)]&&{'name':_0x4861f3['name']}}});return extractList(_0x424565[_0x128c08(0x147)]);}export async function getDatasetDetail(_0x3ea890){const _0x59a5d3=a74_0x42b3,_0x144c1c=await apiRequest(_0x59a5d3(0x11b)+encodeURIComponent(_0x3ea890));return _0x144c1c['data'];}export async function getDatasetSdkUsageDoc(_0x43490b,_0x499209){const _0xe6c07a=a74_0x42b3,_0x4d3aec=await toolboxRequest(_0xe6c07a(0x171),{'datasetCode':_0x43490b,'appCode':_0x499209});return typeof _0x4d3aec?.[_0xe6c07a(0x11e)]===_0xe6c07a(0x18d)?_0x4d3aec[_0xe6c07a(0x11e)]:'';}export async function uploadRuntimeFile(_0x5aa908,_0xe14d41){const _0x33b563=a74_0x42b3,_0x5c3acb=await readFile(_0xe14d41),_0x51db72=new FormData();_0x51db72[_0x33b563(0x113)](_0x33b563(0x16e),_0x5aa908),_0x51db72[_0x33b563(0x113)](_0x33b563(0x152),new Blob([new Uint8Array(_0x5c3acb)]),basename(_0xe14d41));const _0x286896=await apiFormRequest(_0x33b563(0x141),_0x51db72);return _0x286896[_0x33b563(0x147)];}export async function queryRuntimeFileUrl(_0x4eeabb,_0x2f3fe4={}){const _0x575c57=a74_0x42b3,_0xf7ac2=await apiRequest('/client/queryFileUrl',{'method':_0x575c57(0x138),'body':{'filePath':_0x4eeabb,'downloadFlag':_0x2f3fe4['download']??![]}});return _0xf7ac2[_0x575c57(0x147)];}export async function recognizeRuntimeOcr(_0x208132,_0x570e3d){const _0x40f537=a74_0x42b3,_0x269d52=await apiRequest(_0x40f537(0x10e),{'method':'POST','body':{'appCode':_0x208132,'url':_0x570e3d[_0x40f537(0x155)],'type':_0x570e3d[_0x40f537(0x17a)]}});return _0x269d52[_0x40f537(0x147)];}export async function getRuntimeAppConfigByKey(_0x3553e5,_0x1438e1){const _0x1dee2c=a74_0x42b3,_0x343df9=new URLSearchParams({'appCode':_0x3553e5,'key':_0x1438e1}),_0x12e218=await apiRequest(_0x1dee2c(0x143)+_0x343df9[_0x1dee2c(0x15c)]());if(!_0x12e218[_0x1dee2c(0x147)])throw CliErrors[_0x1dee2c(0x125)](_0x1dee2c(0x158)+_0x1438e1);return _0x12e218[_0x1dee2c(0x147)];}export async function listRuntimeArtifacts(_0xc87c94,_0x1aaeb8){const _0x49ab4c=a74_0x42b3,_0x4e00b0=new URLSearchParams({'appCode':_0xc87c94});if(_0x1aaeb8?.['artifactType'])_0x4e00b0['set'](_0x49ab4c(0x154),_0x1aaeb8['artifactType']);if(_0x1aaeb8?.[_0x49ab4c(0x145)])_0x4e00b0[_0x49ab4c(0x176)](_0x49ab4c(0x145),_0x1aaeb8[_0x49ab4c(0x145)]);if(_0x1aaeb8?.[_0x49ab4c(0x128)]!==undefined)_0x4e00b0['set'](_0x49ab4c(0x128),String(_0x1aaeb8['favorite']));const _0x28de26=await apiRequest(_0x49ab4c(0x15d)+_0x4e00b0[_0x49ab4c(0x15c)]());return Array['isArray'](_0x28de26[_0x49ab4c(0x147)])?_0x28de26[_0x49ab4c(0x147)]:[];}export async function getRuntimeArtifact(_0x1d8e22,_0x2a4eb5){const _0x5c229d=a74_0x42b3,_0x421c1d=await apiRequest(_0x5c229d(0x108)+_0x1d8e22+_0x5c229d(0x124)+encodeURIComponent(_0x2a4eb5));if(!_0x421c1d[_0x5c229d(0x147)])throw CliErrors[_0x5c229d(0x125)](_0x5c229d(0x15f)+_0x1d8e22);return _0x421c1d['data'];}export async function createRuntimeArtifact(_0x5cfa53,_0x2222e5){const _0x199cf0=a74_0x42b3,_0xa5e606=await apiRequest('/client/artifact/create',{'method':'POST','body':{'appCode':_0x5cfa53,..._0x2222e5}});return _0xa5e606[_0x199cf0(0x147)];}export async function updateRuntimeArtifact(_0x758376,_0x37a534,_0x47ca5c){const _0x20bfe3=a74_0x42b3,_0xcc38f2=await apiRequest(_0x20bfe3(0x108)+_0x758376+_0x20bfe3(0x16b),{'method':_0x20bfe3(0x138),'body':{'appCode':_0x37a534,..._0x47ca5c}});return _0xcc38f2[_0x20bfe3(0x147)];}export async function listPersonalBffs(_0x26382c){const _0x364cc1=a74_0x42b3,_0x2787dd=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x26382c));return Array['isArray'](_0x2787dd[_0x364cc1(0x147)])?_0x2787dd[_0x364cc1(0x147)]:[];}export async function getPersonalBff(_0x592652,_0x243549){const _0x2b1ba9=a74_0x42b3,_0x366741=await apiRequest(_0x2b1ba9(0x10b)+_0x592652+'?appCode='+encodeURIComponent(_0x243549));if(!_0x366741[_0x2b1ba9(0x147)])throw CliErrors['validation'](_0x2b1ba9(0x18e)+_0x592652);return _0x366741[_0x2b1ba9(0x147)];}export async function createPersonalBff(_0x36db,_0x28cf19){const _0x44332a=a74_0x42b3,_0x337ecf=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x44332a(0x138),'body':{'appCode':_0x36db,..._0x28cf19}});return _0x337ecf['data'];}export async function updatePersonalBff(_0x234f04,_0x38dcfa,_0xf754b8){const _0x2d3972=a74_0x42b3,_0x1ba317=await apiRequest(_0x2d3972(0x10b)+_0x234f04+_0x2d3972(0x16b),{'method':'POST','body':{'appCode':_0x38dcfa,..._0xf754b8}});return _0x1ba317[_0x2d3972(0x147)];}export async function executePersonalBff(_0x93d2e3,_0x3216e1,_0x18f30f){const _0xe1a6c1=a74_0x42b3,_0x54eac5=await apiRequest(_0xe1a6c1(0x10b)+_0x93d2e3+_0xe1a6c1(0x140)+encodeURIComponent(_0x3216e1),{'method':_0xe1a6c1(0x138),'body':_0x18f30f});return _0x54eac5['data'];}export async function listPersonalKnowledgeBaseItems(_0x4f0772){const _0x5426c8=a74_0x42b3,_0x5c3ee9=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x4f0772));return Array['isArray'](_0x5c3ee9[_0x5426c8(0x147)])?_0x5c3ee9[_0x5426c8(0x147)]:[];}export async function getPersonalKnowledgeBaseItem(_0x45ddb0,_0x3b909b){const _0x5b42a0=a74_0x42b3,_0x5d3e52=await apiRequest(_0x5b42a0(0x13a)+_0x45ddb0+_0x5b42a0(0x124)+encodeURIComponent(_0x3b909b));if(!_0x5d3e52[_0x5b42a0(0x147)])throw CliErrors[_0x5b42a0(0x125)](_0x5b42a0(0x13f)+_0x45ddb0);return _0x5d3e52[_0x5b42a0(0x147)];}export async function createPersonalKnowledgeBaseItem(_0x35fc24,_0x4ce593){const _0xbf619=a74_0x42b3,_0x212dbf=await apiRequest(_0xbf619(0x181),{'method':_0xbf619(0x138),'body':{'appCode':_0x35fc24,..._0x4ce593}});return _0x212dbf[_0xbf619(0x147)];}export async function updatePersonalKnowledgeBaseItem(_0x2f9289,_0x54072e,_0x2714a6){const _0x46176b=a74_0x42b3,_0x1e9ff7=await apiRequest(_0x46176b(0x13a)+_0x2f9289+_0x46176b(0x16b),{'method':_0x46176b(0x138),'body':{'appCode':_0x54072e,..._0x2714a6}});return _0x1e9ff7[_0x46176b(0x147)];}export async function searchKnowledgeBase(_0x2151d2,_0x34880b){const _0x3826f2=a74_0x42b3,_0x7e5454=await apiRequest('/client/knowledge-base/search',{'method':_0x3826f2(0x138),'body':{'appCode':_0x2151d2,'query':_0x34880b[_0x3826f2(0x120)],..._0x34880b['topK']!==undefined?{'topK':_0x34880b[_0x3826f2(0x178)]}:{}}});return Array[_0x3826f2(0x11a)](_0x7e5454[_0x3826f2(0x147)])?_0x7e5454[_0x3826f2(0x147)]:[];}export async function getRuntimeSkillByCode(_0x653b95,_0x52a8cc){const _0x3bc05a=a74_0x42b3,_0x563ffb=await skillHubJsonRequest(_0x3bc05a(0x184)+encodeURIComponent(_0x653b95)+'/'+encodeURIComponent(_0x52a8cc),{'allowNotFound':!![]});return _0x563ffb?skillHubRuntimeDetailToRuntimeSkill(_0x563ffb):undefined;}export async function listRuntimeSkills(_0x366524){const _0x111139=a74_0x42b3,_0xfcf112=await skillHubJsonRequest(_0x111139(0x136)+encodeURIComponent(_0x366524['appCode'])+_0x111139(0x16d),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x366524['appCode'],_0xfcf112,_0x366524['scope']??_0x111139(0x114),_0x366524[_0x111139(0x18a)]);}export async function listPersonalRuntimeSkills(_0xee8507){const _0x316bc7=a74_0x42b3;return(await listRuntimeSkills({'appCode':_0xee8507,'scope':_0x316bc7(0x122)}))[_0x316bc7(0x122)];}export async function listCompanyRuntimeSkills(_0x4e5486){const _0x5b140a=a74_0x42b3;return(await listRuntimeSkills({'appCode':_0x4e5486,'scope':_0x5b140a(0x13e)}))[_0x5b140a(0x13e)];}export async function listVisibleRuntimeSkills(_0x4d2cde){const _0x40b25d=a74_0x42b3;return(await listRuntimeSkills({'appCode':_0x4d2cde,'scope':_0x40b25d(0x114)}))[_0x40b25d(0x11d)];}export async function createPersonalRuntimeSkill(_0x40a15d,_0x206d44){return publishRuntimeSkill(_0x40a15d,_0x206d44,{'visibility':'PRIVATE'});}export async function updatePersonalRuntimeSkill(_0x427a6a,_0x202c27,_0x299be8){const _0x53df03=a74_0x42b3;return publishRuntimeSkill(_0x202c27,{..._0x299be8,'skillCode':_0x299be8[_0x53df03(0x123)]??_0x427a6a},{'visibility':_0x53df03(0x183)});}export async function publishCompanyRuntimeSkill(_0x2d8452,_0x1a2216,_0x578294={}){const _0x371e26=a74_0x42b3;return publishRuntimeSkill(_0x2d8452,_0x1a2216,{'visibility':_0x371e26(0x12a),'confirmWarnings':_0x578294[_0x371e26(0x163)]});}export async function validateRuntimeSkillPublish(_0x2d1440,_0x9a7304,_0x15723e){const _0x44064f=a74_0x42b3,_0x31d395=buildRuntimeSkillPublishForm(_0x9a7304,_0x15723e['visibility']),_0x37a505=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x2d1440)+_0x44064f(0x16c),{'method':_0x44064f(0x138),'body':_0x31d395});return{'valid':_0x37a505[_0x44064f(0x17c)]===!![],'errors':Array['isArray'](_0x37a505[_0x44064f(0x186)])?_0x37a505[_0x44064f(0x186)]:[],'warnings':Array[_0x44064f(0x11a)](_0x37a505[_0x44064f(0x182)])?_0x37a505[_0x44064f(0x182)]:[],'resolvedSlug':_0x37a505[_0x44064f(0x13c)],'resolvedVersion':_0x37a505[_0x44064f(0x146)]};}export async function downloadRuntimeSkillPackage(_0x2ba213,_0x5d5f37,_0x26756d,_0x57e8c8){const _0x50f65c=a74_0x42b3;void _0x2ba213;const _0x1e7d6=_0x57e8c8?'/api/cli/v1/skills/'+encodeURIComponent(_0x26756d)+'/'+encodeURIComponent(_0x5d5f37)+_0x50f65c(0x160)+encodeURIComponent(_0x57e8c8)+_0x50f65c(0x109):_0x50f65c(0x18b)+encodeURIComponent(_0x26756d)+'/'+encodeURIComponent(_0x5d5f37)+_0x50f65c(0x109);return skillHubBinaryRequest(_0x1e7d6);}async function publishRuntimeSkill(_0x5c836d,_0x1b86cf,_0xe05074){const _0x2381a3=a74_0x42b3,_0x4d286f=buildRuntimeSkillPublishForm(_0x1b86cf,_0xe05074[_0x2381a3(0x148)]),_0x68f3aa=await skillHubJsonRequest(_0x2381a3(0x18b)+encodeURIComponent(_0x5c836d)+_0x2381a3(0x135),{'method':'POST','query':{'confirmWarnings':_0xe05074[_0x2381a3(0x163)]===!![]?!![]:undefined},'body':_0x4d286f});return{'appCode':_0x68f3aa['namespace']??_0x5c836d,'skillCode':_0x68f3aa[_0x2381a3(0x17f)]??_0x1b86cf[_0x2381a3(0x123)]??'','skillName':_0x1b86cf['skillName']??_0x68f3aa['slug']??_0x1b86cf[_0x2381a3(0x123)],'description':_0x1b86cf[_0x2381a3(0x142)],'scope':skillHubVisibilityToScope(_0x68f3aa['visibility']??_0xe05074['visibility'])??'personal','version':_0x68f3aa[_0x2381a3(0x16a)]??_0x1b86cf[_0x2381a3(0x16a)],'tags':_0x1b86cf[_0x2381a3(0x15e)],'content':_0x1b86cf[_0x2381a3(0x126)]};}function buildRuntimeSkillPublishForm(_0x5a8559,_0x161705){const _0x3583ea=a74_0x42b3,_0x480c98=new FormData();return _0x480c98[_0x3583ea(0x176)](_0x3583ea(0x152),runtimeSkillPackageFile(_0x5a8559)),_0x5a8559[_0x3583ea(0x187)]?.[_0x3583ea(0x102)]()&&_0x480c98['set'](_0x3583ea(0x14c),_0x5a8559[_0x3583ea(0x187)]['trim']()),_0x480c98['set'](_0x3583ea(0x148),_0x161705),_0x480c98;}function runtimeSkillPackageFile(_0x17777f){const _0x2f8806=a74_0x42b3;if(!_0x17777f[_0x2f8806(0x14e)])throw CliErrors['validation'](_0x2f8806(0x133));const _0x3f20f3=Buffer['from'](_0x17777f[_0x2f8806(0x14e)],_0x2f8806(0x17d)),_0x514c46=new Blob([_0x3f20f3],{'type':_0x2f8806(0x129)}),_0x528ea6=(_0x17777f[_0x2f8806(0x123)]||_0x2f8806(0x159))+_0x2f8806(0x15a);if(typeof File!==_0x2f8806(0x149))return new File([_0x514c46],_0x528ea6,{'type':'application/zip'});return _0x514c46;}function normalizeSkillHubRuntimeListResponse(_0x27ddf8,_0x69a91,_0x5c4fc5,_0x540445){const _0x39121e=a74_0x42b3,_0x4e2816=Array[_0x39121e(0x11a)](_0x69a91)?_0x69a91:Array['isArray'](_0x69a91?.[_0x39121e(0x14b)])?_0x69a91[_0x39121e(0x14b)]:[],_0x3a6836=_0x540445?.[_0x39121e(0x102)](),_0x513440=_0x4e2816[_0x39121e(0x106)](_0x4bafd7=>!_0x3a6836||_0x4bafd7['slug']===_0x3a6836)[_0x39121e(0x170)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x5ea3fa=>Boolean(_0x5ea3fa)),_0x2738ea=_0x513440[_0x39121e(0x106)](_0xc651f=>_0xc651f[_0x39121e(0x185)]===_0x39121e(0x122)),_0x2d38de=_0x513440[_0x39121e(0x106)](_0x4fdb65=>_0x4fdb65[_0x39121e(0x185)]===_0x39121e(0x13e));return{'appCode':_0x27ddf8,'personal':_0x5c4fc5===_0x39121e(0x13e)?[]:_0x2738ea,'company':_0x5c4fc5===_0x39121e(0x122)?[]:_0x2d38de,'effective':buildEffectiveRuntimeSkills(_0x2738ea,_0x2d38de,_0x5c4fc5)};}function skillHubRuntimeItemToRuntimeSkill(_0x1e24b5){const _0x1ac3cb=a74_0x42b3,_0x3c2965=_0x1e24b5[_0x1ac3cb(0x17f)]?.['trim'](),_0x16f8e3=skillHubVisibilityToScope(_0x1e24b5[_0x1ac3cb(0x148)]);if(!_0x3c2965||!_0x16f8e3)return undefined;return{'id':_0x1e24b5['id'],'appCode':_0x1e24b5[_0x1ac3cb(0x157)],'skillCode':_0x3c2965,'skillName':_0x1e24b5[_0x1ac3cb(0x14c)]??_0x3c2965,'description':_0x1e24b5['summary'],'scope':_0x16f8e3,'version':skillHubRuntimeItemVersion(_0x1e24b5),'status':_0x1e24b5[_0x1ac3cb(0x17b)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x281400){const _0x489385=a74_0x42b3,_0x194392=_0x281400[_0x489385(0x17f)]?.[_0x489385(0x102)]();if(!_0x194392)return undefined;return{'id':_0x281400['id'],'appCode':_0x281400[_0x489385(0x157)],'skillCode':_0x194392,'skillName':_0x281400[_0x489385(0x14c)]??_0x194392,'description':_0x281400[_0x489385(0x13b)],'scope':skillHubVisibilityToScope(_0x281400[_0x489385(0x148)])??_0x281400[_0x489385(0x148)]?.[_0x489385(0x117)](),'version':skillHubRuntimeItemVersion(_0x281400),'status':_0x281400['status']};}function skillHubVisibilityToScope(_0x2ed619){const _0x1eb4fc=a74_0x42b3;if(_0x2ed619==='PRIVATE')return _0x1eb4fc(0x122);if(_0x2ed619===_0x1eb4fc(0x12a))return'company';return undefined;}function a74_0x182c(){const _0x306237=['Configure\x20accessKey\x20in\x20','filter','/client/sql/query','/client/artifact/','/download','5qODMRY','/client/runtime-bff/personal/','30853920jvuDDc','text','/client/ocr','test','errorMsg','tableData','98153cgHbhH','append','all','msg','abort','toLowerCase','searchParams','1010OTEXrz','isArray','/client/dataset/get-driven-data?code=','error','effective','markdown','apiError','query','number','personal','skillCode','?appCode=','validation','content','catch','favorite','application/zip','NAMESPACE_ONLY','entries','34PmVjnR','newConfigFileName','application/octet-stream','sqlCode','appName','Request\x20timeout:\x20','BFF\x20script\x20not\x20found:\x20id=','Missing\x20Skill\x20package\x20payload.','9023jLRxCg','/publish','/api/runtime/v1/namespaces/','from','POST','headlineVersion','/client/knowledge-base/personal/','summary','resolvedSlug','5139909kwJRKr','company','Knowledge-base\x20entry\x20not\x20found:\x20id=','/execute?appCode=','/client/uploadFile','description','/client/app-config/getByKey?','/client/user/loginUserInfo','source','resolvedVersion','data','visibility','undefined','authRequired','items','displayName','Toolbox\x20API\x20error','packageBase64','Check\x20your\x20credentials\x20and\x20try\x20again.','SkillHub\x20API\x20error:\x20','API\x20error:\x20','file','8214LsimCO','artifactType','url','/client/app/my-apps','namespace','App\x20config\x20not\x20found:\x20key=','skill','.zip','json','toString','/client/artifact/list?','tags','Artifact\x20not\x20found:\x20id=','/versions/','boolean','64264tmtFUN','confirmWarnings','/api/node-toolbox/','name','replace','GET','SQL\x20query\x20not\x20found:\x20','AbortError','version','/update','/publish/validate','/skills','appCode','Toolbox\x20error\x20code:\x20','map','api-doc-generator','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','signal','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','88978kbxkfF','set','application/json','topK','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','type','status','valid','base64','success','slug','2423420xcIYGl','/client/knowledge-base/personal/create','warnings','PRIVATE','/api/v1/skills/','scope','errors','skillName','errorCode','message','code','/api/cli/v1/skills/','object','string','Personal\x20BFF\x20not\x20found:\x20id=','1719tTbYrw','trim','invokeSource','values'];a74_0x182c=function(){return _0x306237;};return a74_0x182c();}function skillHubRuntimeItemVersion(_0x348c33){const _0x35f69a=a74_0x42b3;return _0x348c33['publishedVersion']?.[_0x35f69a(0x16a)]??_0x348c33[_0x35f69a(0x139)]?.[_0x35f69a(0x16a)]??_0x348c33['ownerPreviewVersion']?.['version'];}function a74_0x42b3(_0x23a27e,_0x470f98){_0x23a27e=_0x23a27e-0x102;const _0x182cf5=a74_0x182c();let _0x42b3b7=_0x182cf5[_0x23a27e];return _0x42b3b7;}function buildEffectiveRuntimeSkills(_0x3a665f,_0x199b02,_0x3354a2){const _0x8ad93d=a74_0x42b3;if(_0x3354a2===_0x8ad93d(0x122))return _0x3a665f;if(_0x3354a2===_0x8ad93d(0x13e))return _0x199b02;const _0x3da68c=new Map();for(const _0x2bd367 of _0x199b02){_0x3da68c[_0x8ad93d(0x176)](_0x2bd367[_0x8ad93d(0x123)],_0x2bd367);}for(const _0x306192 of _0x3a665f){_0x3da68c[_0x8ad93d(0x176)](_0x306192[_0x8ad93d(0x123)],_0x306192);}return Array[_0x8ad93d(0x137)](_0x3da68c[_0x8ad93d(0x104)]());}function normalizeRuntimeSkillListResponse(_0x591672,_0x5401a5){const _0x315580=a74_0x42b3;if(Array['isArray'](_0x5401a5)){const _0x32bf5e=_0x5401a5[_0x315580(0x106)](_0xa2ecd3=>_0xa2ecd3['scope']===_0x315580(0x122)),_0x1f5267=_0x5401a5['filter'](_0x4baa7d=>_0x4baa7d[_0x315580(0x185)]===_0x315580(0x13e));return{'appCode':_0x591672,'personal':_0x32bf5e,'company':_0x1f5267,'effective':[..._0x1f5267,..._0x32bf5e]};}return{'appCode':_0x5401a5?.['appCode']??_0x591672,'personal':Array['isArray'](_0x5401a5?.[_0x315580(0x122)])?_0x5401a5[_0x315580(0x122)]:[],'company':Array['isArray'](_0x5401a5?.[_0x315580(0x13e)])?_0x5401a5['company']:[],'effective':Array[_0x315580(0x11a)](_0x5401a5?.[_0x315580(0x11d)])?_0x5401a5[_0x315580(0x11d)]:[]};}
@@ -1 +1 @@
1
- (function(_0x2549cc,_0x280be7){const _0x455b05=a75_0x5463,_0x24f8bc=_0x2549cc();while(!![]){try{const _0x152584=-parseInt(_0x455b05(0x1cd))/0x1*(parseInt(_0x455b05(0x1d1))/0x2)+parseInt(_0x455b05(0x1d5))/0x3*(-parseInt(_0x455b05(0x1c4))/0x4)+-parseInt(_0x455b05(0x1ca))/0x5*(-parseInt(_0x455b05(0x1d2))/0x6)+parseInt(_0x455b05(0x1c8))/0x7+-parseInt(_0x455b05(0x1d3))/0x8+-parseInt(_0x455b05(0x1d4))/0x9*(parseInt(_0x455b05(0x1cc))/0xa)+parseInt(_0x455b05(0x1cf))/0xb*(parseInt(_0x455b05(0x1c7))/0xc);if(_0x152584===_0x280be7)break;else _0x24f8bc['push'](_0x24f8bc['shift']());}catch(_0x5d8744){_0x24f8bc['push'](_0x24f8bc['shift']());}}}(a75_0x3b11,0x4820c));function a75_0x3b11(){const _0x8ea433=['452365TpwsuQ','dbtableConfig','480bjGiKT','141583cAlzpo','set','530981dmnbfr','has','2bUALkX','24pTPIDu','1447656tAMRmV','104373UebNBx','3XaxJAo','get','find','1291676pRPpWs','db-','dbName','156DWYQKB','3556952spBWZK','dbId'];a75_0x3b11=function(){return _0x8ea433;};return a75_0x3b11();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x545141){const _0x2622bc=a75_0x5463;if(cache[_0x2622bc(0x1d0)](_0x545141))return cache[_0x2622bc(0x1d6)](_0x545141);const _0x503d6e=await listDatasets(_0x545141),_0x3c412f=new Map();for(const _0x21a277 of _0x503d6e){const _0x320ec9=_0x21a277[_0x2622bc(0x1cb)];_0x320ec9?.[_0x2622bc(0x1c9)]!=null&&_0x3c412f[_0x2622bc(0x1ce)](_0x320ec9[_0x2622bc(0x1c9)],_0x320ec9[_0x2622bc(0x1c6)]??_0x2622bc(0x1c5)+_0x320ec9['dbId']);}const _0x1f9a1d=[..._0x3c412f['entries']()]['map'](([_0x238821,_0x26e8a4])=>({'dbId':_0x238821,'dbName':_0x26e8a4}));return cache[_0x2622bc(0x1ce)](_0x545141,_0x1f9a1d),_0x1f9a1d;}function a75_0x5463(_0x1ed80a,_0x5f05de){_0x1ed80a=_0x1ed80a-0x1c3;const _0x3b114b=a75_0x3b11();let _0x5463ec=_0x3b114b[_0x1ed80a];return _0x5463ec;}export async function getDbName(_0x4e4334,_0x373846){const _0x3f1e32=a75_0x5463;try{const _0x476b09=await listDatabases(_0x4e4334);return _0x476b09[_0x3f1e32(0x1c3)](_0x616767=>_0x616767['dbId']===_0x373846)?.['dbName'];}catch{return undefined;}}
1
+ (function(_0x5d5d28,_0x2e536b){const _0x2946c2=a75_0x1920,_0x21fd9b=_0x5d5d28();while(!![]){try{const _0x4eb531=-parseInt(_0x2946c2(0x11d))/0x1*(-parseInt(_0x2946c2(0x11f))/0x2)+parseInt(_0x2946c2(0x11a))/0x3*(-parseInt(_0x2946c2(0x115))/0x4)+parseInt(_0x2946c2(0x126))/0x5*(-parseInt(_0x2946c2(0x120))/0x6)+parseInt(_0x2946c2(0x11b))/0x7+parseInt(_0x2946c2(0x11e))/0x8*(-parseInt(_0x2946c2(0x124))/0x9)+-parseInt(_0x2946c2(0x125))/0xa*(parseInt(_0x2946c2(0x11c))/0xb)+parseInt(_0x2946c2(0x123))/0xc;if(_0x4eb531===_0x2e536b)break;else _0x21fd9b['push'](_0x21fd9b['shift']());}catch(_0x3b96cd){_0x21fd9b['push'](_0x21fd9b['shift']());}}}(a75_0x340e,0x93e66));function a75_0x340e(){const _0x75fc0=['20tHCdSo','4158205YlqSqk','dbId','map','181564aEcQJS','set','db-','dbtableConfig','dbName','57NGVmFj','4018959yzVGNo','5067183DHJPWX','3287xpeSbu','6527624kPXSzh','2HPXOOV','6TXQysq','has','get','41516436YSiquW','9XquUCL'];a75_0x340e=function(){return _0x75fc0;};return a75_0x340e();}function a75_0x1920(_0x5100c7,_0x78df94){_0x5100c7=_0x5100c7-0x115;const _0x340eab=a75_0x340e();let _0x19202=_0x340eab[_0x5100c7];return _0x19202;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x268678){const _0x23d4ea=a75_0x1920;if(cache[_0x23d4ea(0x121)](_0x268678))return cache[_0x23d4ea(0x122)](_0x268678);const _0x105493=await listDatasets(_0x268678),_0x15cbc5=new Map();for(const _0x312dfd of _0x105493){const _0x3e8bdc=_0x312dfd[_0x23d4ea(0x118)];_0x3e8bdc?.[_0x23d4ea(0x127)]!=null&&_0x15cbc5[_0x23d4ea(0x116)](_0x3e8bdc[_0x23d4ea(0x127)],_0x3e8bdc[_0x23d4ea(0x119)]??_0x23d4ea(0x117)+_0x3e8bdc[_0x23d4ea(0x127)]);}const _0x26f861=[..._0x15cbc5['entries']()][_0x23d4ea(0x128)](([_0x1484ef,_0x51418e])=>({'dbId':_0x1484ef,'dbName':_0x51418e}));return cache['set'](_0x268678,_0x26f861),_0x26f861;}export async function getDbName(_0xda3cd0,_0x32b1ed){const _0x496b7c=a75_0x1920;try{const _0x423889=await listDatabases(_0xda3cd0);return _0x423889['find'](_0x44bc1d=>_0x44bc1d[_0x496b7c(0x127)]===_0x32b1ed)?.[_0x496b7c(0x119)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x5cafe6,_0x4d6209){const _0x3448bc=a76_0x4440,_0x2372d7=_0x5cafe6();while(!![]){try{const _0x58d8b4=-parseInt(_0x3448bc(0xb2))/0x1+-parseInt(_0x3448bc(0xc3))/0x2*(parseInt(_0x3448bc(0xb0))/0x3)+parseInt(_0x3448bc(0xb3))/0x4*(parseInt(_0x3448bc(0xb8))/0x5)+-parseInt(_0x3448bc(0xbf))/0x6*(parseInt(_0x3448bc(0xc6))/0x7)+-parseInt(_0x3448bc(0xb1))/0x8*(-parseInt(_0x3448bc(0xbb))/0x9)+-parseInt(_0x3448bc(0xc1))/0xa*(-parseInt(_0x3448bc(0xad))/0xb)+parseInt(_0x3448bc(0xbe))/0xc*(-parseInt(_0x3448bc(0xb6))/0xd);if(_0x58d8b4===_0x4d6209)break;else _0x2372d7['push'](_0x2372d7['shift']());}catch(_0x40b723){_0x2372d7['push'](_0x2372d7['shift']());}}}(a76_0x5462,0x43f74));function a76_0x5462(){const _0x470a1a=['95OwyOMX','aggregate','map','3080898PckXkP','getOne','models','791652ooadVW','589206SnIOAW','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','10tuxzRK','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','62158HvzZVQ','env','data\x20aggregate\x20--params.aggregate[','7uypUTF','object','delete','execute','accessKey','batchCreate','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','isArray','\x22.\x20','2539988EFixmC','bff','field','6DZDTwq','8ILIZAl','364048Hklhra','103884KIXxrf','trim','validation','52dwybpk','update'];a76_0x5462=function(){return _0x470a1a;};return a76_0x5462();}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x4440(_0x3775dd,_0x5dbd30){_0x3775dd=_0x3775dd-0xad;const _0x546283=a76_0x5462();let _0x4440e2=_0x546283[_0x3775dd];return _0x4440e2;}import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x42b74b){const _0x3dc4f4=a76_0x4440;_client=createClient({'appCode':_0x42b74b['appCode'],'env':_0x42b74b[_0x3dc4f4(0xc4)],'authMode':_0x42b74b['authMode'],..._0x42b74b[_0x3dc4f4(0xca)]?{'accessKey':_0x42b74b[_0x3dc4f4(0xca)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}function ensureClient(){const _0x4fcaf8=a76_0x4440;if(!_client)throw new Error(_0x4fcaf8(0xc2));return _client;}function normalizeAggregateParams(_0x4af326){const _0x3b57cf=a76_0x4440,_0xb35fd4=_0x4af326[_0x3b57cf(0xb9)];if(_0xb35fd4===undefined)return _0x4af326;if(!Array['isArray'](_0xb35fd4))throw CliErrors[_0x3b57cf(0xb5)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x4af326,'aggregate':_0xb35fd4[_0x3b57cf(0xba)]((_0x374800,_0x249c80)=>{const _0x5c30ae=_0x3b57cf;if(!_0x374800||typeof _0x374800!==_0x5c30ae(0xc7)||Array[_0x5c30ae(0xcd)](_0x374800))throw CliErrors['validation'](_0x5c30ae(0xc5)+_0x249c80+']\x20must\x20be\x20an\x20object.');const _0x317d33=_0x374800['column']??_0x374800[_0x5c30ae(0xaf)];if(typeof _0x317d33!=='string'||_0x317d33[_0x5c30ae(0xb4)]()==='')throw CliErrors[_0x5c30ae(0xb5)](_0x5c30ae(0xc5)+_0x249c80+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x227fad={..._0x374800,'column':_0x317d33};return delete _0x227fad['field'],_0x227fad;})};}export async function executeData(_0xcf74df,_0x19d9f6,_0x3dbffe){const _0x1ce6ea=a76_0x4440,_0x1e2760=ensureClient(),_0xc3e404='dataset_'+_0xcf74df,_0x3e043b=_0x1e2760[_0x1ce6ea(0xbd)][_0xc3e404];if(!_0x3e043b||typeof _0x3e043b[_0x19d9f6]!=='function')throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x19d9f6+_0x1ce6ea(0xce)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0x19d9f6===_0x1ce6ea(0xcb))return _0x3e043b[_0x1ce6ea(0xcb)](parseBatchCreateItemsFromParams(_0x3dbffe));const _0x1bc160=_0x3dbffe!==undefined&&_0x3dbffe!==null&&!Array['isArray'](_0x3dbffe)?_0x3dbffe:{};switch(_0x19d9f6){case _0x1ce6ea(0xbc):{const _0x4dd5ac=_0x1bc160['id'];if(_0x4dd5ac===undefined||_0x4dd5ac===null)throw new Error(_0x1ce6ea(0xc0));return _0x3e043b[_0x1ce6ea(0xbc)](_0x4dd5ac);}case _0x1ce6ea(0xb7):{const {id:_0x49a10d,..._0x4e689f}=_0x1bc160;if(_0x49a10d===undefined||_0x49a10d===null)throw new Error(_0x1ce6ea(0xcc));return _0x3e043b['update'](_0x49a10d,_0x4e689f);}case _0x1ce6ea(0xc8):{const _0x3f2c9b=_0x1bc160['id'];if(_0x3f2c9b===undefined||_0x3f2c9b===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x3e043b[_0x1ce6ea(0xc8)](_0x3f2c9b);}case _0x1ce6ea(0xb9):return _0x3e043b[_0x1ce6ea(0xb9)](normalizeAggregateParams(_0x1bc160));default:return _0x3e043b[_0x19d9f6](_0x1bc160);}}export async function executeSdkSql(_0x4086b6,_0x30ae80){const _0x3c40ba=a76_0x4440,_0x99d6cb=ensureClient();return _0x99d6cb['sql'][_0x3c40ba(0xc9)]({'sqlCode':_0x4086b6,'params':_0x30ae80});}export async function executeSdkBff(_0x345658,_0x4f6d85){const _0x4d6f2b=a76_0x4440,_0x4c3f4f=ensureClient();return _0x4c3f4f[_0x4d6f2b(0xae)][_0x4d6f2b(0xc9)]({'scriptName':_0x345658,'params':_0x4f6d85});}
1
+ (function(_0x270f9c,_0xa35122){const _0x4ff8b1=a76_0x2c38,_0x4b2c7f=_0x270f9c();while(!![]){try{const _0x3d17bf=-parseInt(_0x4ff8b1(0x159))/0x1*(-parseInt(_0x4ff8b1(0x17d))/0x2)+-parseInt(_0x4ff8b1(0x166))/0x3*(-parseInt(_0x4ff8b1(0x15c))/0x4)+-parseInt(_0x4ff8b1(0x165))/0x5+parseInt(_0x4ff8b1(0x161))/0x6+parseInt(_0x4ff8b1(0x172))/0x7*(parseInt(_0x4ff8b1(0x16c))/0x8)+parseInt(_0x4ff8b1(0x178))/0x9+-parseInt(_0x4ff8b1(0x162))/0xa*(parseInt(_0x4ff8b1(0x168))/0xb);if(_0x3d17bf===_0xa35122)break;else _0x4b2c7f['push'](_0x4b2c7f['shift']());}catch(_0x4cd24f){_0x4b2c7f['push'](_0x4b2c7f['shift']());}}}(a76_0x4ee1,0xc535d));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a76_0x2c38(_0x226d83,_0x44d271){_0x226d83=_0x226d83-0x159;const _0x4ee179=a76_0x4ee1();let _0x2c3871=_0x4ee179[_0x226d83];return _0x2c3871;}let _client;export function initSdkClient(_0x3a7890){const _0x305fd7=a76_0x2c38;_client=createClient({'appCode':_0x3a7890[_0x305fd7(0x173)],'env':_0x3a7890['env'],'authMode':_0x3a7890['authMode'],..._0x3a7890[_0x305fd7(0x15d)]?{'accessKey':_0x3a7890[_0x305fd7(0x15d)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x305fd7(0x15e)]}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x3e76e8){const _0x79d781=_0x3e76e8['aggregate'];if(_0x79d781===undefined)return _0x3e76e8;if(!Array['isArray'](_0x79d781))throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x3e76e8,'aggregate':_0x79d781['map']((_0x25d735,_0x1ac501)=>{const _0x32980a=a76_0x2c38;if(!_0x25d735||typeof _0x25d735!==_0x32980a(0x174)||Array[_0x32980a(0x16d)](_0x25d735))throw CliErrors[_0x32980a(0x17e)](_0x32980a(0x15b)+_0x1ac501+_0x32980a(0x17b));const _0x23a9b1=_0x25d735[_0x32980a(0x179)]??_0x25d735[_0x32980a(0x171)];if(typeof _0x23a9b1!==_0x32980a(0x169)||_0x23a9b1[_0x32980a(0x16a)]()==='')throw CliErrors[_0x32980a(0x17e)](_0x32980a(0x15b)+_0x1ac501+_0x32980a(0x15a));const _0x1d2be9={..._0x25d735,'column':_0x23a9b1};return delete _0x1d2be9['field'],_0x1d2be9;})};}export async function executeData(_0x46ea1e,_0x77be6,_0x5d8931){const _0x184c81=a76_0x2c38,_0x1d7ac2=ensureClient(),_0x27de41=_0x184c81(0x163)+_0x46ea1e,_0x544a03=_0x1d7ac2[_0x184c81(0x16b)][_0x27de41];if(!_0x544a03||typeof _0x544a03[_0x77be6]!=='function')throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x77be6+_0x184c81(0x164)+_0x184c81(0x17a));if(_0x77be6===_0x184c81(0x170))return _0x544a03['batchCreate'](parseBatchCreateItemsFromParams(_0x5d8931));const _0x180a57=_0x5d8931!==undefined&&_0x5d8931!==null&&!Array[_0x184c81(0x16d)](_0x5d8931)?_0x5d8931:{};switch(_0x77be6){case _0x184c81(0x16e):{const _0x235025=_0x180a57['id'];if(_0x235025===undefined||_0x235025===null)throw new Error(_0x184c81(0x15f));return _0x544a03['getOne'](_0x235025);}case _0x184c81(0x176):{const {id:_0x2e0d98,..._0x141176}=_0x180a57;if(_0x2e0d98===undefined||_0x2e0d98===null)throw new Error(_0x184c81(0x17c));return _0x544a03['update'](_0x2e0d98,_0x141176);}case _0x184c81(0x16f):{const _0x545933=_0x180a57['id'];if(_0x545933===undefined||_0x545933===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x544a03[_0x184c81(0x16f)](_0x545933);}case'aggregate':return _0x544a03[_0x184c81(0x167)](normalizeAggregateParams(_0x180a57));default:return _0x544a03[_0x77be6](_0x180a57);}}export async function executeSdkSql(_0x67fdf5,_0x15fa58){const _0x3a4211=a76_0x2c38,_0x2f5a29=ensureClient();return _0x2f5a29[_0x3a4211(0x177)][_0x3a4211(0x160)]({'sqlCode':_0x67fdf5,'params':_0x15fa58});}export async function executeSdkBff(_0x57ce74,_0x1c5196){const _0x5b83ef=a76_0x2c38,_0x505322=ensureClient();return _0x505322[_0x5b83ef(0x175)]['execute']({'scriptName':_0x57ce74,'params':_0x1c5196});}function a76_0x4ee1(){const _0x3c472c=['dataset_','\x22.\x20','5853530oKhUZG','3GWPrgb','aggregate','14498pGluQh','string','trim','models','864yRVuED','isArray','getOne','delete','batchCreate','field','61866vkmAWX','appCode','object','bff','update','sql','8164575HGyCQV','column','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.',']\x20must\x20be\x20an\x20object.','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','1739158QWTPNs','validation','1wAZLYK',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','data\x20aggregate\x20--params.aggregate[','1371712czyceC','accessKey','invokeSource','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','execute','7011702bTBKzF','17180BmbSwl'];a76_0x4ee1=function(){return _0x3c472c;};return a76_0x4ee1();}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a77_0xaa1d(_0x41335c,_0x3895b6){_0x41335c=_0x41335c-0x92;const _0x433e87=a77_0x433e();let _0xaa1db1=_0x433e87[_0x41335c];return _0xaa1db1;}const a77_0x1230ff=a77_0xaa1d;(function(_0x478d1f,_0x5bbc05){const _0x18ea3b=a77_0xaa1d,_0x5b3ad8=_0x478d1f();while(!![]){try{const _0x47a676=-parseInt(_0x18ea3b(0x94))/0x1+parseInt(_0x18ea3b(0x92))/0x2+-parseInt(_0x18ea3b(0x9f))/0x3*(parseInt(_0x18ea3b(0x95))/0x4)+parseInt(_0x18ea3b(0x9a))/0x5+parseInt(_0x18ea3b(0x9e))/0x6*(-parseInt(_0x18ea3b(0x9d))/0x7)+-parseInt(_0x18ea3b(0x93))/0x8*(parseInt(_0x18ea3b(0x9b))/0x9)+parseInt(_0x18ea3b(0xa0))/0xa;if(_0x47a676===_0x5bbc05)break;else _0x5b3ad8['push'](_0x5b3ad8['shift']());}catch(_0x857ee4){_0x5b3ad8['push'](_0x5b3ad8['shift']());}}}(a77_0x433e,0x7ed80));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a77_0x433e(){const _0x5972ca=['635740RVtBsR','35468VRfdKj','Configure\x20accessKey\x20in\x20','\x20or\x20run\x20`','Set\x20appcode\x20via\x20--appcode\x20or\x20','\x20auth\x20login`.','3956880JdZPAJ','45fOEMsp','newConfigFileName','7epcbXq','1608972dAwqNt','261wsmiUR','4289700zqOfAY','2012204yPrwVh','50504hRkdTh'];a77_0x433e=function(){return _0x5972ca;};return a77_0x433e();}import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a77_0x1230ff(0x96)+PRODUCT_CONFIG[a77_0x1230ff(0x9c)]+a77_0x1230ff(0x97)+CLI_BIN_NAME+a77_0x1230ff(0x99),'configMissingHint':a77_0x1230ff(0x98)+PRODUCT_CONFIG[a77_0x1230ff(0x9c)]+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG['newConfigFileName']+'\x20file.'});
1
+ const a77_0x4a115d=a77_0xcee2;(function(_0x2b1696,_0x1fa4f9){const _0x5d80ed=a77_0xcee2,_0x5ea861=_0x2b1696();while(!![]){try{const _0x24c9ba=parseInt(_0x5d80ed(0x1b4))/0x1+-parseInt(_0x5d80ed(0x1b6))/0x2*(parseInt(_0x5d80ed(0x1b7))/0x3)+parseInt(_0x5d80ed(0x1bd))/0x4+parseInt(_0x5d80ed(0x1b8))/0x5*(-parseInt(_0x5d80ed(0x1c1))/0x6)+-parseInt(_0x5d80ed(0x1bb))/0x7+-parseInt(_0x5d80ed(0x1be))/0x8+parseInt(_0x5d80ed(0x1bc))/0x9;if(_0x24c9ba===_0x1fa4f9)break;else _0x5ea861['push'](_0x5ea861['shift']());}catch(_0x51210c){_0x5ea861['push'](_0x5ea861['shift']());}}}(a77_0x2fd1,0x83867));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a77_0x2fd1(){const _0x5c23a5=['110031gOqoLW','1740tniRow','\x20file.','\x20or\x20run\x20`','2188410fsWnlw','17296029EjIkip','647288CmBADh','7598784JvSrna','\x20auth\x20login`.','Configure\x20accessKey\x20in\x20','1758xqETZB','2951BQtVOt','newConfigFileName','10RwBsXs'];a77_0x2fd1=function(){return _0x5c23a5;};return a77_0x2fd1();}function a77_0xcee2(_0x8f8dd4,_0x3d0e47){_0x8f8dd4=_0x8f8dd4-0x1b4;const _0x2fd1cd=a77_0x2fd1();let _0xcee293=_0x2fd1cd[_0x8f8dd4];return _0xcee293;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a77_0x4a115d(0x1c0)+PRODUCT_CONFIG[a77_0x4a115d(0x1b5)]+a77_0x4a115d(0x1ba)+CLI_BIN_NAME+a77_0x4a115d(0x1bf),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a77_0x4a115d(0x1b5)]+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a77_0x4a115d(0x1b5)]+a77_0x4a115d(0x1b9)});
@@ -1 +1 @@
1
- function a78_0x365b(_0x2bf43c,_0x16bc3a){_0x2bf43c=_0x2bf43c-0x1a6;var _0x49f1fc=a78_0x49f1();var _0x365b2a=_0x49f1fc[_0x2bf43c];return _0x365b2a;}function a78_0x49f1(){var _0x1f8973=['1199064KLDAjQ','2tCLINv','1247568cecKlu','2326160Qdmyve','6162723gqhbhU','88032qrazBz','1320261uLyqog','306597CubkcH','35vmekSu'];a78_0x49f1=function(){return _0x1f8973;};return a78_0x49f1();}(function(_0x30306b,_0x577446){var _0x22a6a2=a78_0x365b,_0x3c9bc5=_0x30306b();while(!![]){try{var _0x6e2058=parseInt(_0x22a6a2(0x1ad))/0x1*(parseInt(_0x22a6a2(0x1a7))/0x2)+-parseInt(_0x22a6a2(0x1ac))/0x3+-parseInt(_0x22a6a2(0x1a6))/0x4+-parseInt(_0x22a6a2(0x1ae))/0x5*(-parseInt(_0x22a6a2(0x1ab))/0x6)+parseInt(_0x22a6a2(0x1a8))/0x7+-parseInt(_0x22a6a2(0x1a9))/0x8+parseInt(_0x22a6a2(0x1aa))/0x9;if(_0x6e2058===_0x577446)break;else _0x3c9bc5['push'](_0x3c9bc5['shift']());}catch(_0x39a75a){_0x3c9bc5['push'](_0x3c9bc5['shift']());}}}(a78_0x49f1,0x3aff1));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a78_0x20154a}from'@lovrabet/cli-framework';export function buildAllFlags(_0x49f5d2){return a78_0x20154a(_0x49f5d2,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a78_0x16c9(_0x48861a,_0x508807){_0x48861a=_0x48861a-0xee;var _0x2a614a=a78_0x2a61();var _0x16c9e2=_0x2a614a[_0x48861a];return _0x16c9e2;}(function(_0x262d10,_0x21bcb4){var _0x3965dc=a78_0x16c9,_0x30c4b2=_0x262d10();while(!![]){try{var _0x2e3630=-parseInt(_0x3965dc(0xf8))/0x1*(parseInt(_0x3965dc(0xf0))/0x2)+-parseInt(_0x3965dc(0xf9))/0x3*(parseInt(_0x3965dc(0xf4))/0x4)+parseInt(_0x3965dc(0xef))/0x5*(-parseInt(_0x3965dc(0xf5))/0x6)+-parseInt(_0x3965dc(0xf1))/0x7*(-parseInt(_0x3965dc(0xf6))/0x8)+-parseInt(_0x3965dc(0xf7))/0x9+parseInt(_0x3965dc(0xf3))/0xa*(-parseInt(_0x3965dc(0xf2))/0xb)+parseInt(_0x3965dc(0xee))/0xc;if(_0x2e3630===_0x21bcb4)break;else _0x30c4b2['push'](_0x30c4b2['shift']());}catch(_0x5215b7){_0x30c4b2['push'](_0x30c4b2['shift']());}}}(a78_0x2a61,0x4ca06));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a78_0x2a61(){var _0x52d2ae=['355nTnpsE','2YGiiYr','161fBHoZf','44zkTBRO','1276690EdyLDF','264ssaSLF','8604zVDZtr','200296YECvDd','1156536rIoguP','572687EbIXcH','15843vKkZhk','16802856taNNkC'];a78_0x2a61=function(){return _0x52d2ae;};return a78_0x2a61();}import{buildAllFlags as a78_0x1fcbe6}from'@lovrabet/cli-framework';export function buildAllFlags(_0x4a403b){return a78_0x1fcbe6(_0x4a403b,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x198718,_0x476fb4){const _0x3701e6=a79_0xb818,_0x15e202=_0x198718();while(!![]){try{const _0x347366=-parseInt(_0x3701e6(0x18a))/0x1*(parseInt(_0x3701e6(0x17d))/0x2)+parseInt(_0x3701e6(0x180))/0x3*(parseInt(_0x3701e6(0x188))/0x4)+parseInt(_0x3701e6(0x189))/0x5*(parseInt(_0x3701e6(0x186))/0x6)+parseInt(_0x3701e6(0x185))/0x7+parseInt(_0x3701e6(0x182))/0x8*(parseInt(_0x3701e6(0x17f))/0x9)+parseInt(_0x3701e6(0x183))/0xa+-parseInt(_0x3701e6(0x181))/0xb*(parseInt(_0x3701e6(0x187))/0xc);if(_0x347366===_0x476fb4)break;else _0x15e202['push'](_0x15e202['shift']());}catch(_0x41e5ea){_0x15e202['push'](_0x15e202['shift']());}}}(a79_0x1bca,0xa747f));export function dryRun(_0xbf5dcb,_0x1fb134){const _0x222c2a={'method':_0xbf5dcb,'url':_0x1fb134},_0x43c58e={'body'(_0x4366b0){const _0x53d5fa=a79_0xb818;return _0x222c2a[_0x53d5fa(0x17e)]=_0x4366b0,_0x43c58e;},'description'(_0x35b2f7){const _0x46b04e=a79_0xb818;return _0x222c2a[_0x46b04e(0x184)]=_0x35b2f7,_0x43c58e;},'build'(){return{..._0x222c2a};}};return _0x43c58e;}function a79_0xb818(_0x10800e,_0x35d364){_0x10800e=_0x10800e-0x17d;const _0x1bca83=a79_0x1bca();let _0xb81893=_0x1bca83[_0x10800e];return _0xb81893;}function a79_0x1bca(){const _0x35a716=['33895qhRTCA','2cRQsxw','1150918YAbQeg','body','90sYuboB','927QtLpxJ','33rwfozS','289344kkSElA','10893050bwMlfo','description','6562367EIjCOM','462ixbisL','6493764HxywYm','7108IFzaaP'];a79_0x1bca=function(){return _0x35a716;};return a79_0x1bca();}
1
+ function a79_0x8478(_0x5e79cd,_0x40f0fa){_0x5e79cd=_0x5e79cd-0x84;const _0x15d226=a79_0x15d2();let _0x84781=_0x15d226[_0x5e79cd];return _0x84781;}(function(_0x5e0d16,_0x4c0b32){const _0x3d4069=a79_0x8478,_0x21c381=_0x5e0d16();while(!![]){try{const _0x4905e9=parseInt(_0x3d4069(0x8a))/0x1*(parseInt(_0x3d4069(0x8f))/0x2)+parseInt(_0x3d4069(0x88))/0x3*(parseInt(_0x3d4069(0x86))/0x4)+parseInt(_0x3d4069(0x89))/0x5*(-parseInt(_0x3d4069(0x92))/0x6)+parseInt(_0x3d4069(0x8d))/0x7*(-parseInt(_0x3d4069(0x91))/0x8)+parseInt(_0x3d4069(0x8b))/0x9+parseInt(_0x3d4069(0x90))/0xa*(parseInt(_0x3d4069(0x8e))/0xb)+parseInt(_0x3d4069(0x84))/0xc*(-parseInt(_0x3d4069(0x85))/0xd);if(_0x4905e9===_0x4c0b32)break;else _0x21c381['push'](_0x21c381['shift']());}catch(_0x4f8a04){_0x21c381['push'](_0x21c381['shift']());}}}(a79_0x15d2,0xbac55));function a79_0x15d2(){const _0x5a8587=['8821096AqWisf','484098XSUugA','168nkXOod','1278641kFNcjS','4tbFKMF','body','2808909eSncjP','5wtxSdU','590241JLTvRc','11337264EieCix','description','7KctRnn','3311cVSCYd','2eKuFxg','17910xLZqsW'];a79_0x15d2=function(){return _0x5a8587;};return a79_0x15d2();}export function dryRun(_0x159b56,_0xf656e5){const _0x27ba41={'method':_0x159b56,'url':_0xf656e5},_0x406bfd={'body'(_0x393899){const _0xa869b7=a79_0x8478;return _0x27ba41[_0xa869b7(0x87)]=_0x393899,_0x406bfd;},'description'(_0x53fdbb){const _0x591fd8=a79_0x8478;return _0x27ba41[_0x591fd8(0x8c)]=_0x53fdbb,_0x406bfd;},'build'(){return{..._0x27ba41};}};return _0x406bfd;}
@@ -1 +1 @@
1
- const a80_0x57b81f=a80_0x8210;(function(_0x3e3a77,_0x46a6ae){const _0x570495=a80_0x8210,_0x46b684=_0x3e3a77();while(!![]){try{const _0x4d9c8a=parseInt(_0x570495(0x1e1))/0x1+parseInt(_0x570495(0x1e4))/0x2*(parseInt(_0x570495(0x1e5))/0x3)+-parseInt(_0x570495(0x1e2))/0x4+parseInt(_0x570495(0x1df))/0x5+parseInt(_0x570495(0x1de))/0x6+parseInt(_0x570495(0x1e0))/0x7+-parseInt(_0x570495(0x1e3))/0x8;if(_0x4d9c8a===_0x46a6ae)break;else _0x46b684['push'](_0x46b684['shift']());}catch(_0x4cc7ee){_0x46b684['push'](_0x46b684['shift']());}}}(a80_0xb7db,0xec6e3));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a80_0x8210(_0x24b46b,_0x451e2a){_0x24b46b=_0x24b46b-0x1dd;const _0xb7db0f=a80_0xb7db();let _0x821054=_0xb7db0f[_0x24b46b];return _0x821054;}function a80_0xb7db(){const _0x533ac1=['1869455mcsYJt','9735523zqWZZn','630418TVeBUe','4080812oaXyfh','16006008bfzKYA','46646DPwzgc','99cetkoa','validateFlags','4947696JMGhPx'];a80_0xb7db=function(){return _0x533ac1;};return a80_0xb7db();}export const validateFlags=helpers[a80_0x57b81f(0x1dd)];
1
+ const a80_0x3f1886=a80_0x4349;function a80_0x4349(_0x3bad48,_0x3e84b3){_0x3bad48=_0x3bad48-0xf9;const _0x47b267=a80_0x47b2();let _0x4349e7=_0x47b267[_0x3bad48];return _0x4349e7;}(function(_0x2f24bb,_0x3107c3){const _0x36c0d8=a80_0x4349,_0x4eb179=_0x2f24bb();while(!![]){try{const _0x96d79c=parseInt(_0x36c0d8(0xfa))/0x1*(-parseInt(_0x36c0d8(0x101))/0x2)+parseInt(_0x36c0d8(0xfd))/0x3+parseInt(_0x36c0d8(0xff))/0x4+-parseInt(_0x36c0d8(0xfe))/0x5*(-parseInt(_0x36c0d8(0xf9))/0x6)+parseInt(_0x36c0d8(0xfb))/0x7+parseInt(_0x36c0d8(0xfc))/0x8+-parseInt(_0x36c0d8(0x102))/0x9;if(_0x96d79c===_0x3107c3)break;else _0x4eb179['push'](_0x4eb179['shift']());}catch(_0x3d8860){_0x4eb179['push'](_0x4eb179['shift']());}}}(a80_0x47b2,0xdd463));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a80_0x47b2(){const _0x4c5121=['10613KhhPDk','222026ZVCSNm','11312432sBbJvP','947118QFzZMY','310RidaSn','6085936wIPRhg','validateFlags','122vbdRuQ','17152254reJfxE','17088VcEQRr'];a80_0x47b2=function(){return _0x4c5121;};return a80_0x47b2();}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a80_0x3f1886(0x100)];
@@ -1 +1 @@
1
- function a81_0x21b0(_0x138fd0,_0x273ba5){_0x138fd0=_0x138fd0-0xbf;const _0x26df70=a81_0x26df();let _0x21b0f2=_0x26df70[_0x138fd0];return _0x21b0f2;}(function(_0x3f15d2,_0x4d93db){const _0x2d936b=a81_0x21b0,_0x4fa787=_0x3f15d2();while(!![]){try{const _0x1f1918=parseInt(_0x2d936b(0xca))/0x1*(-parseInt(_0x2d936b(0xce))/0x2)+parseInt(_0x2d936b(0xcc))/0x3+-parseInt(_0x2d936b(0xc4))/0x4*(-parseInt(_0x2d936b(0xcd))/0x5)+parseInt(_0x2d936b(0xc8))/0x6+parseInt(_0x2d936b(0xbf))/0x7+parseInt(_0x2d936b(0xcb))/0x8+-parseInt(_0x2d936b(0xcf))/0x9;if(_0x1f1918===_0x4d93db)break;else _0x4fa787['push'](_0x4fa787['shift']());}catch(_0x3deeca){_0x4fa787['push'](_0x4fa787['shift']());}}}(a81_0x26df,0x77f4b));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a81_0x26df(){const _0x3ed17d=['822500wZfvkM','filter','get','newConfigFileName','\x20or\x20--appcode).','3076VnYQLC','map','has','Requires\x20appcode\x20(set\x20via\x20','5508858QKxpvp','service','541737BICsRl','1743976uKedzH','1190721etxRbN','1295tLoepJ','2CewsKY','7349778kFQeAb','generateFullHelp'];a81_0x26df=function(){return _0x3ed17d;};return a81_0x26df();}function createGenerators(){const _0x570f5=a81_0x21b0;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x570f5(0xc7)+PRODUCT_CONFIG[_0x570f5(0xc2)]+_0x570f5(0xc3)});}export function generateCommandHelp(_0x419cee){return createGenerators()['generateCommandHelp'](_0x419cee);}export function generateServiceHelp(_0x5d3864){return createGenerators()['generateServiceHelp'](_0x5d3864);}export function generateFullHelp(){const _0x299871=a81_0x21b0;return createGenerators()[_0x299871(0xd0)]();}function getAnyServiceEntry(_0x487b37){const _0x54b7c9=getServiceEntry(_0x487b37);if(_0x54b7c9)return _0x54b7c9;try{return getDynamicServiceEntry(_0x487b37);}catch{return undefined;}}function getAnyServiceDefinitions(_0x90238a){const _0x506db1=a81_0x21b0,_0x2050b9=serviceGroups[_0x506db1(0xc1)](_0x90238a);if(_0x2050b9)return _0x2050b9;try{return getDynamicServiceDefinitions(_0x90238a);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0xe6feb1=a81_0x21b0,_0x3a0bf0=new Set(serviceRegistry[_0xe6feb1(0xc5)](_0x4df3be=>_0x4df3be['service']));try{return listDynamicServiceEntries()[_0xe6feb1(0xc0)](_0x23e9e1=>!_0x3a0bf0[_0xe6feb1(0xc6)](_0x23e9e1[_0xe6feb1(0xc9)]));}catch{return[];}}
1
+ (function(_0x4f65c4,_0x5a816d){const _0x5f5714=a81_0x2c8b,_0x57cd8a=_0x4f65c4();while(!![]){try{const _0x4904d5=-parseInt(_0x5f5714(0x1c8))/0x1*(-parseInt(_0x5f5714(0x1cb))/0x2)+-parseInt(_0x5f5714(0x1cd))/0x3+parseInt(_0x5f5714(0x1ce))/0x4+parseInt(_0x5f5714(0x1cc))/0x5*(parseInt(_0x5f5714(0x1c9))/0x6)+-parseInt(_0x5f5714(0x1d3))/0x7*(parseInt(_0x5f5714(0x1d0))/0x8)+parseInt(_0x5f5714(0x1c4))/0x9+parseInt(_0x5f5714(0x1c1))/0xa*(-parseInt(_0x5f5714(0x1c7))/0xb);if(_0x4904d5===_0x5a816d)break;else _0x57cd8a['push'](_0x57cd8a['shift']());}catch(_0x4eef65){_0x57cd8a['push'](_0x57cd8a['shift']());}}}(a81_0x46e5,0x96a44));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x316d37=a81_0x2c8b;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x316d37(0x1d1)+PRODUCT_CONFIG[_0x316d37(0x1c2)]+_0x316d37(0x1c5)});}export function generateCommandHelp(_0x559b00){const _0xdba35c=a81_0x2c8b;return createGenerators()[_0xdba35c(0x1ca)](_0x559b00);}export function generateServiceHelp(_0x406c02){return createGenerators()['generateServiceHelp'](_0x406c02);}export function generateFullHelp(){const _0x4f6d1a=a81_0x2c8b;return createGenerators()[_0x4f6d1a(0x1cf)]();}function getAnyServiceEntry(_0x78c3ab){const _0x4e375d=getServiceEntry(_0x78c3ab);if(_0x4e375d)return _0x4e375d;try{return getDynamicServiceEntry(_0x78c3ab);}catch{return undefined;}}function getAnyServiceDefinitions(_0xad2f18){const _0x111f86=serviceGroups['get'](_0xad2f18);if(_0x111f86)return _0x111f86;try{return getDynamicServiceDefinitions(_0xad2f18);}catch{return undefined;}}function a81_0x46e5(){const _0x20e8ff=['newConfigFileName','has','9324900wMfBPX','\x20or\x20--appcode).','filter','11wGEoua','1062xikRQj','6nmcEMy','generateCommandHelp','1878twQrFs','2747935oNkRLZ','424050iCmrSv','3675572neBxtL','generateFullHelp','8dUctce','Requires\x20appcode\x20(set\x20via\x20','service','3398381gVCZDW','22579370OzgPlz'];a81_0x46e5=function(){return _0x20e8ff;};return a81_0x46e5();}function a81_0x2c8b(_0x45b35c,_0x321047){_0x45b35c=_0x45b35c-0x1c1;const _0x46e59e=a81_0x46e5();let _0x2c8b16=_0x46e59e[_0x45b35c];return _0x2c8b16;}function safeListDynamicServiceEntries(){const _0xb10afb=a81_0x2c8b,_0x956f76=new Set(serviceRegistry['map'](_0x2cd6a4=>_0x2cd6a4[_0xb10afb(0x1d2)]));try{return listDynamicServiceEntries()[_0xb10afb(0x1c6)](_0x216f69=>!_0x956f76[_0xb10afb(0x1c3)](_0x216f69[_0xb10afb(0x1d2)]));}catch{return[];}}
@@ -1 +1 @@
1
- function a82_0x5847(_0x17ff01,_0x4bc290){_0x17ff01=_0x17ff01-0x1bb;var _0x3581de=a82_0x3581();var _0x5847b7=_0x3581de[_0x17ff01];return _0x5847b7;}(function(_0x216b45,_0x26c277){var _0x4f10b0=a82_0x5847,_0x41562e=_0x216b45();while(!![]){try{var _0x1f0e62=-parseInt(_0x4f10b0(0x1bc))/0x1+-parseInt(_0x4f10b0(0x1c2))/0x2*(-parseInt(_0x4f10b0(0x1c0))/0x3)+-parseInt(_0x4f10b0(0x1c5))/0x4+-parseInt(_0x4f10b0(0x1c1))/0x5*(parseInt(_0x4f10b0(0x1bb))/0x6)+parseInt(_0x4f10b0(0x1bf))/0x7+-parseInt(_0x4f10b0(0x1c3))/0x8*(parseInt(_0x4f10b0(0x1bd))/0x9)+parseInt(_0x4f10b0(0x1c4))/0xa*(parseInt(_0x4f10b0(0x1be))/0xb);if(_0x1f0e62===_0x26c277)break;else _0x41562e['push'](_0x41562e['shift']());}catch(_0x5bd737){_0x41562e['push'](_0x41562e['shift']());}}}(a82_0x3581,0x88cf4));export{runCommand}from'../framework/runner.js';function a82_0x3581(){var _0x12be00=['2393520IhRxRV','6322146jyzHma','444283VOQkPN','9xzmHBE','23980olmFbL','5231471XhDRkP','2579721fRHHQK','5WmAjiL','2uOEvXr','8538512XjkOsP','9710kVgeDW'];a82_0x3581=function(){return _0x12be00;};return a82_0x3581();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x9f77bb,_0x137572){var _0x2e5d71=a82_0xbcfe,_0x2ad0fe=_0x9f77bb();while(!![]){try{var _0x1465ef=-parseInt(_0x2e5d71(0x117))/0x1*(-parseInt(_0x2e5d71(0x111))/0x2)+-parseInt(_0x2e5d71(0x115))/0x3+parseInt(_0x2e5d71(0x116))/0x4*(parseInt(_0x2e5d71(0x114))/0x5)+-parseInt(_0x2e5d71(0x112))/0x6+parseInt(_0x2e5d71(0x110))/0x7*(parseInt(_0x2e5d71(0x119))/0x8)+parseInt(_0x2e5d71(0x113))/0x9+-parseInt(_0x2e5d71(0x118))/0xa;if(_0x1465ef===_0x137572)break;else _0x2ad0fe['push'](_0x2ad0fe['shift']());}catch(_0x35ae24){_0x2ad0fe['push'](_0x2ad0fe['shift']());}}}(a82_0x5448,0x84c4a));export{runCommand}from'../framework/runner.js';function a82_0x5448(){var _0xa39b4=['408IhDGhT','125944hTilQk','2146ivNGcp','368850RHGPPx','7675767sfrKHv','5835PofTsD','678567pdCANI','2480DCHOgx','178FBgxXJ','18535070GYuszO'];a82_0x5448=function(){return _0xa39b4;};return a82_0x5448();}export{parseFlags,validateFlags}from'../framework/flags.js';function a82_0xbcfe(_0x57195f,_0x50c15c){_0x57195f=_0x57195f-0x110;var _0x54488f=a82_0x5448();var _0xbcfea0=_0x54488f[_0x57195f];return _0xbcfea0;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x3067e3,_0x489552){const _0x24082c=a83_0x109c,_0x2a9755=_0x3067e3();while(!![]){try{const _0x177c8b=-parseInt(_0x24082c(0xb2))/0x1*(-parseInt(_0x24082c(0xb0))/0x2)+-parseInt(_0x24082c(0xae))/0x3+parseInt(_0x24082c(0xa9))/0x4*(parseInt(_0x24082c(0xac))/0x5)+-parseInt(_0x24082c(0xa7))/0x6*(parseInt(_0x24082c(0xaa))/0x7)+parseInt(_0x24082c(0xa6))/0x8+parseInt(_0x24082c(0xad))/0x9*(parseInt(_0x24082c(0xa8))/0xa)+-parseInt(_0x24082c(0xb1))/0xb;if(_0x177c8b===_0x489552)break;else _0x2a9755['push'](_0x2a9755['shift']());}catch(_0x3855ab){_0x2a9755['push'](_0x2a9755['shift']());}}}(a83_0x538f,0x5c901));function a83_0x109c(_0xf9ef5d,_0x5d33c9){_0xf9ef5d=_0xf9ef5d-0xa2;const _0x538fb7=a83_0x538f();let _0x109c9f=_0x538fb7[_0xf9ef5d];return _0x109c9f;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a83_0x538f(){const _0x4c8fbc=['message','pretty','format','update','406592nEZvBS','60BVzXPx','1522510YHfGTs','4wxRODS','55321QgFNLR','_notice','145165tovaBd','9kQCUbN','1317987IPFzBS','error','138iJfueE','222156gtaZjQ','9936cUwDzV'];a83_0x538f=function(){return _0x4c8fbc;};return a83_0x538f();}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0xeea882,_0x29cc76){const _0x22aee3=a83_0x109c,_0x1694fc=_0xeea882[_0x22aee3(0xab)],{_notice:_0x3dbc98,..._0x589ab5}=_0xeea882;void _0x3dbc98,baseFormatOutput(_0x589ab5,_0x29cc76),_0x29cc76[_0x22aee3(0xa4)]===_0x22aee3(0xa3)&&printPrettyNotice(_0x1694fc);}function printPrettyNotice(_0x273e52){const _0x56d431=a83_0x109c;if(!_0x273e52?.[_0x56d431(0xa5)])return;console[_0x56d431(0xaf)](_0x273e52[_0x56d431(0xa5)][_0x56d431(0xa2)]+'\x20('+_0x273e52['update']['url']+')');}
1
+ (function(_0x298e8e,_0x54262b){const _0xbf40f1=a83_0x8b8c,_0x4d29bb=_0x298e8e();while(!![]){try{const _0x216d68=-parseInt(_0xbf40f1(0x11a))/0x1+parseInt(_0xbf40f1(0x118))/0x2+-parseInt(_0xbf40f1(0x11e))/0x3+-parseInt(_0xbf40f1(0x11d))/0x4+parseInt(_0xbf40f1(0x120))/0x5+parseInt(_0xbf40f1(0x119))/0x6+parseInt(_0xbf40f1(0x122))/0x7;if(_0x216d68===_0x54262b)break;else _0x4d29bb['push'](_0x4d29bb['shift']());}catch(_0x4eec63){_0x4d29bb['push'](_0x4d29bb['shift']());}}}(a83_0x3ecc,0x94794));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a83_0x8b8c(_0x254851,_0x3f09c2){_0x254851=_0x254851-0x117;const _0x3ecc43=a83_0x3ecc();let _0x8b8c9f=_0x3ecc43[_0x254851];return _0x8b8c9f;}function a83_0x3ecc(){const _0x4a81c5=['_notice','322618KehpbJ','1791078SOnflY','1151251aOTHMY','update','error','2038508vvcUgN','311877JBghyT','format','1339730HbTFrh','message','11516519xsXBpb'];a83_0x3ecc=function(){return _0x4a81c5;};return a83_0x3ecc();}export function formatOutput(_0x5538e2,_0x3aae79){const _0x4b1199=a83_0x8b8c,_0x2ec468=_0x5538e2[_0x4b1199(0x117)],{_notice:_0x58ba6b,..._0x2e43f5}=_0x5538e2;void _0x58ba6b,baseFormatOutput(_0x2e43f5,_0x3aae79),_0x3aae79[_0x4b1199(0x11f)]==='pretty'&&printPrettyNotice(_0x2ec468);}function printPrettyNotice(_0x5eb421){const _0x464b93=a83_0x8b8c;if(!_0x5eb421?.[_0x464b93(0x11b)])return;console[_0x464b93(0x11c)](_0x5eb421[_0x464b93(0x11b)][_0x464b93(0x121)]+'\x20('+_0x5eb421[_0x464b93(0x11b)]['url']+')');}
@@ -1 +1 @@
1
- (function(_0xe5eaf1,_0x26d1e0){const _0x30b9af=a84_0x5c38,_0x1bea02=_0xe5eaf1();while(!![]){try{const _0x28e03b=parseInt(_0x30b9af(0x136))/0x1+-parseInt(_0x30b9af(0x148))/0x2+parseInt(_0x30b9af(0x13c))/0x3*(parseInt(_0x30b9af(0x13a))/0x4)+-parseInt(_0x30b9af(0x13f))/0x5*(parseInt(_0x30b9af(0x146))/0x6)+parseInt(_0x30b9af(0x14d))/0x7+parseInt(_0x30b9af(0x14e))/0x8*(-parseInt(_0x30b9af(0x12d))/0x9)+parseInt(_0x30b9af(0x142))/0xa;if(_0x28e03b===_0x26d1e0)break;else _0x1bea02['push'](_0x1bea02['shift']());}catch(_0x1b665f){_0x1bea02['push'](_0x1bea02['shift']());}}}(a84_0x3169,0xc499a));function a84_0x3169(){const _0x472288=['7251352zqmtWk','replace','app','alias','sticky','version','yes','9bgmhdr','format','slice','appcode','string','env','help','global','name','86262SsAQGH','nonInteractive','toUpperCase','corrected','52xlNpTC','original','100254QbedTH','boolean','toLowerCase','20385vpwPZE','has','get','7654970UUeOnL','indexOf','type','non-interactive','306rmfmmH','entries','1657462TSWCNn','keys','push','add','set','10235106POlFKe'];a84_0x3169=function(){return _0x472288;};return a84_0x3169();}function toKebab(_0x1a115f){const _0x3af61a=a84_0x5c38;return _0x1a115f[_0x3af61a(0x14f)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x27ccba,_0x2b1217)=>'-'+_0x2b1217[_0x3af61a(0x13e)]())[_0x3af61a(0x14f)](/([a-z0-9])([A-Z])/g,(_0x4dec03,_0x5f15ce,_0xc5fc2b)=>_0x5f15ce+'-'+_0xc5fc2b)[_0x3af61a(0x13e)]();}function buildKnownFlags(_0x326452){const _0x3d1040=a84_0x5c38,_0x22da7a=new Set();for(const _0x58a7da of _0x326452){_0x22da7a[_0x3d1040(0x14b)](_0x58a7da[_0x3d1040(0x135)]),_0x22da7a[_0x3d1040(0x14b)](toCamelCase(_0x58a7da[_0x3d1040(0x135)]));}for(const _0x54671a of['dry-run','dryRun',_0x3d1040(0x12c),_0x3d1040(0x12e)]){_0x22da7a[_0x3d1040(0x14b)](_0x54671a);}for(const _0x2f261c of[_0x3d1040(0x133),_0x3d1040(0x132),_0x3d1040(0x130),_0x3d1040(0x150),_0x3d1040(0x137),_0x3d1040(0x145),'ci',_0x3d1040(0x134),_0x3d1040(0x12b)]){_0x22da7a['add'](_0x2f261c);}return _0x22da7a;}function buildFlagTypeMap(_0x347517){const _0x542367=a84_0x5c38,_0x24c6eb=new Map();for(const _0x50957b of _0x347517){_0x24c6eb[_0x542367(0x14c)](_0x50957b[_0x542367(0x135)],_0x50957b[_0x542367(0x144)]),_0x24c6eb[_0x542367(0x14c)](toCamelCase(_0x50957b[_0x542367(0x135)]),_0x50957b[_0x542367(0x144)]);}return _0x24c6eb;}function toCamelCase(_0x2e03bf){const _0x471cdd=a84_0x5c38;return _0x2e03bf[_0x471cdd(0x14f)](/-([a-z])/g,(_0x25c3b7,_0x36f85f)=>_0x36f85f[_0x471cdd(0x138)]());}function aliasHandler(_0x115507,_0x1d792c){const _0x471c9a=a84_0x5c38,_0x7a53c4=[];for(const _0x494bd5 of Object[_0x471c9a(0x149)](_0x115507)){if(_0x1d792c['has'](_0x494bd5))continue;const _0x489aba=toKebab(_0x494bd5);_0x489aba!==_0x494bd5&&_0x1d792c['has'](_0x489aba)&&_0x7a53c4[_0x471c9a(0x14a)]({'original':_0x494bd5,'corrected':_0x489aba,'handler':_0x471c9a(0x151)});}return _0x7a53c4;}function a84_0x5c38(_0x269564,_0x34257e){_0x269564=_0x269564-0x12b;const _0x316901=a84_0x3169();let _0x5c389a=_0x316901[_0x269564];return _0x5c389a;}function stickyHandler(_0xabb699,_0x5e32fe,_0x533afe){const _0x4365d0=a84_0x5c38,_0x45aefe=[];for(const [_0x5e5408,_0x495953]of Object[_0x4365d0(0x147)](_0xabb699)){if(_0x495953!==!![])continue;for(let _0xbbee7b=_0x5e5408['length']-0x1;_0xbbee7b>0x0;_0xbbee7b--){const _0x303922=_0x5e5408['slice'](0x0,_0xbbee7b),_0x346bfd=_0x5e5408['slice'](_0xbbee7b),_0x3c9cc4=toKebab(_0x303922),_0x179f8c=toCamelCase(_0x303922),_0x82897b=_0x5e32fe['has'](_0x303922)?_0x303922:_0x5e32fe[_0x4365d0(0x140)](_0x3c9cc4)?_0x3c9cc4:_0x5e32fe[_0x4365d0(0x140)](_0x179f8c)?_0x179f8c:null;if(!_0x82897b)continue;const _0x5b102d=_0x533afe[_0x4365d0(0x141)](_0x82897b)??_0x4365d0(0x131);let _0x1fd9a8;if(_0x5b102d==='number'){const _0x287523=Number(_0x346bfd);if(isNaN(_0x287523)||_0x346bfd==='')continue;_0x1fd9a8=_0x287523;}else{if(_0x5b102d===_0x4365d0(0x13d))continue;else{if(_0x346bfd==='')continue;_0x1fd9a8=_0x346bfd;}}_0x45aefe[_0x4365d0(0x14a)]({'original':_0x5e5408,'corrected':_0x82897b+'='+_0x1fd9a8,'handler':_0x4365d0(0x152)});break;}}return _0x45aefe;}export function correctFlags(_0x4223fc,_0x40b6e8){const _0x1645a8=a84_0x5c38,_0x9df662=buildKnownFlags(_0x40b6e8),_0x1b92fb=buildFlagTypeMap(_0x40b6e8),_0x20b171=aliasHandler(_0x4223fc,_0x9df662),_0x3016b6=stickyHandler(_0x4223fc,_0x9df662,_0x1b92fb),_0x58b8ed=[..._0x20b171,..._0x3016b6];if(_0x58b8ed['length']===0x0)return{'flags':_0x4223fc,'corrections':[]};const _0x3e0293={..._0x4223fc},_0x2391c8=new Set();for(const _0x1e4766 of _0x20b171){_0x3e0293[_0x1e4766['corrected']]=_0x4223fc[_0x1e4766['original']],_0x2391c8['add'](_0x1e4766[_0x1645a8(0x13b)]);}for(const _0x227e38 of _0x3016b6){const _0x4a3178=_0x227e38[_0x1645a8(0x139)][_0x1645a8(0x143)]('='),_0xfc39d7=_0x227e38[_0x1645a8(0x139)][_0x1645a8(0x12f)](0x0,_0x4a3178),_0x2d0da4=_0x227e38[_0x1645a8(0x139)][_0x1645a8(0x12f)](_0x4a3178+0x1),_0x366a07=_0x1b92fb['get'](_0xfc39d7)??_0x1645a8(0x131);_0x366a07==='number'?_0x3e0293[_0xfc39d7]=Number(_0x2d0da4):_0x3e0293[_0xfc39d7]=_0x2d0da4,_0x2391c8[_0x1645a8(0x14b)](_0x227e38[_0x1645a8(0x13b)]);}for(const _0x448524 of _0x2391c8){delete _0x3e0293[_0x448524];}return{'flags':_0x3e0293,'corrections':_0x58b8ed};}
1
+ function a84_0x1c7a(_0x4a2587,_0x362de1){_0x4a2587=_0x4a2587-0x1cf;const _0x3abe36=a84_0x3abe();let _0x1c7ad6=_0x3abe36[_0x4a2587];return _0x1c7ad6;}(function(_0x83bcaf,_0x2bfdfa){const _0x181566=a84_0x1c7a,_0x272cc1=_0x83bcaf();while(!![]){try{const _0x574de5=-parseInt(_0x181566(0x1e2))/0x1*(parseInt(_0x181566(0x1cf))/0x2)+parseInt(_0x181566(0x1e1))/0x3+parseInt(_0x181566(0x1d5))/0x4+parseInt(_0x181566(0x1dd))/0x5*(parseInt(_0x181566(0x1d0))/0x6)+-parseInt(_0x181566(0x1e0))/0x7*(parseInt(_0x181566(0x1d1))/0x8)+parseInt(_0x181566(0x1d3))/0x9+-parseInt(_0x181566(0x1e6))/0xa;if(_0x574de5===_0x2bfdfa)break;else _0x272cc1['push'](_0x272cc1['shift']());}catch(_0x21a56f){_0x272cc1['push'](_0x272cc1['shift']());}}}(a84_0x3abe,0x87bf9));function a84_0x3abe(){const _0x38e00b=['1902884wYzNfI','corrected','number','slice','format','string','dry-run','sticky','2290645JtkZme','yes','help','31948CPFuvC','3062625jrGSDB','1EFzHPw','nonInteractive','toUpperCase','global','5612060eUqMZz','original','push','add','type','boolean','length','replace','alias','non-interactive','indexOf','has','set','env','get','1609818ngYxrH','6XqwKBR','512daKjCf','dryRun','2335599esiiSX','name'];a84_0x3abe=function(){return _0x38e00b;};return a84_0x3abe();}function toKebab(_0x2f5da6){const _0x315d33=a84_0x1c7a;return _0x2f5da6[_0x315d33(0x1ed)](/_/g,'-')[_0x315d33(0x1ed)](/-([A-Z]+)/g,(_0x4c1383,_0x57d839)=>'-'+_0x57d839['toLowerCase']())[_0x315d33(0x1ed)](/([a-z0-9])([A-Z])/g,(_0x314387,_0x5bf052,_0x1feacd)=>_0x5bf052+'-'+_0x1feacd)['toLowerCase']();}function buildKnownFlags(_0x3ee0fa){const _0x2abdc4=a84_0x1c7a,_0x3e3ef7=new Set();for(const _0x199504 of _0x3ee0fa){_0x3e3ef7[_0x2abdc4(0x1e9)](_0x199504[_0x2abdc4(0x1d4)]),_0x3e3ef7[_0x2abdc4(0x1e9)](toCamelCase(_0x199504[_0x2abdc4(0x1d4)]));}for(const _0x51cf32 of[_0x2abdc4(0x1db),_0x2abdc4(0x1d2),_0x2abdc4(0x1de),_0x2abdc4(0x1d9)]){_0x3e3ef7[_0x2abdc4(0x1e9)](_0x51cf32);}for(const _0x1df404 of[_0x2abdc4(0x1df),_0x2abdc4(0x1f3),'appcode','app',_0x2abdc4(0x1e3),_0x2abdc4(0x1ef),'ci',_0x2abdc4(0x1e5),'version']){_0x3e3ef7[_0x2abdc4(0x1e9)](_0x1df404);}return _0x3e3ef7;}function buildFlagTypeMap(_0x29bcd8){const _0x227711=a84_0x1c7a,_0x15b395=new Map();for(const _0x319dca of _0x29bcd8){_0x15b395[_0x227711(0x1f2)](_0x319dca[_0x227711(0x1d4)],_0x319dca[_0x227711(0x1ea)]),_0x15b395[_0x227711(0x1f2)](toCamelCase(_0x319dca[_0x227711(0x1d4)]),_0x319dca['type']);}return _0x15b395;}function toCamelCase(_0x50ebf3){const _0x32a877=a84_0x1c7a;return _0x50ebf3[_0x32a877(0x1ed)](/-([a-z])/g,(_0x116447,_0x4bfdb7)=>_0x4bfdb7[_0x32a877(0x1e4)]());}function aliasHandler(_0x1382dd,_0x35305f){const _0x8b225f=a84_0x1c7a,_0x2ea1d1=[];for(const _0xde5d22 of Object['keys'](_0x1382dd)){if(_0x35305f[_0x8b225f(0x1f1)](_0xde5d22))continue;const _0x482262=toKebab(_0xde5d22);_0x482262!==_0xde5d22&&_0x35305f[_0x8b225f(0x1f1)](_0x482262)&&_0x2ea1d1[_0x8b225f(0x1e8)]({'original':_0xde5d22,'corrected':_0x482262,'handler':_0x8b225f(0x1ee)});}return _0x2ea1d1;}function stickyHandler(_0x17e04e,_0xbdb412,_0x43099c){const _0x4940c6=a84_0x1c7a,_0x307f9b=[];for(const [_0x411285,_0x2d8430]of Object['entries'](_0x17e04e)){if(_0x2d8430!==!![])continue;for(let _0x97722e=_0x411285[_0x4940c6(0x1ec)]-0x1;_0x97722e>0x0;_0x97722e--){const _0xf31b3b=_0x411285[_0x4940c6(0x1d8)](0x0,_0x97722e),_0x39515c=_0x411285[_0x4940c6(0x1d8)](_0x97722e),_0x40ba80=toKebab(_0xf31b3b),_0x5b0bb3=toCamelCase(_0xf31b3b),_0x43b371=_0xbdb412[_0x4940c6(0x1f1)](_0xf31b3b)?_0xf31b3b:_0xbdb412[_0x4940c6(0x1f1)](_0x40ba80)?_0x40ba80:_0xbdb412[_0x4940c6(0x1f1)](_0x5b0bb3)?_0x5b0bb3:null;if(!_0x43b371)continue;const _0x4535b5=_0x43099c[_0x4940c6(0x1f4)](_0x43b371)??_0x4940c6(0x1da);let _0x23a2d0;if(_0x4535b5===_0x4940c6(0x1d7)){const _0x3c89bd=Number(_0x39515c);if(isNaN(_0x3c89bd)||_0x39515c==='')continue;_0x23a2d0=_0x3c89bd;}else{if(_0x4535b5===_0x4940c6(0x1eb))continue;else{if(_0x39515c==='')continue;_0x23a2d0=_0x39515c;}}_0x307f9b[_0x4940c6(0x1e8)]({'original':_0x411285,'corrected':_0x43b371+'='+_0x23a2d0,'handler':_0x4940c6(0x1dc)});break;}}return _0x307f9b;}export function correctFlags(_0x2193f1,_0x3cd52e){const _0x54cfa7=a84_0x1c7a,_0x49e6d9=buildKnownFlags(_0x3cd52e),_0x17a1ae=buildFlagTypeMap(_0x3cd52e),_0x5aa49b=aliasHandler(_0x2193f1,_0x49e6d9),_0x3c14e4=stickyHandler(_0x2193f1,_0x49e6d9,_0x17a1ae),_0x303c18=[..._0x5aa49b,..._0x3c14e4];if(_0x303c18[_0x54cfa7(0x1ec)]===0x0)return{'flags':_0x2193f1,'corrections':[]};const _0x298773={..._0x2193f1},_0x420757=new Set();for(const _0x282450 of _0x5aa49b){_0x298773[_0x282450[_0x54cfa7(0x1d6)]]=_0x2193f1[_0x282450[_0x54cfa7(0x1e7)]],_0x420757['add'](_0x282450['original']);}for(const _0x188c54 of _0x3c14e4){const _0x1f00c1=_0x188c54[_0x54cfa7(0x1d6)][_0x54cfa7(0x1f0)]('='),_0x37f0f1=_0x188c54[_0x54cfa7(0x1d6)][_0x54cfa7(0x1d8)](0x0,_0x1f00c1),_0x3fc2ad=_0x188c54['corrected']['slice'](_0x1f00c1+0x1),_0x4a3f15=_0x17a1ae['get'](_0x37f0f1)??_0x54cfa7(0x1da);_0x4a3f15===_0x54cfa7(0x1d7)?_0x298773[_0x37f0f1]=Number(_0x3fc2ad):_0x298773[_0x37f0f1]=_0x3fc2ad,_0x420757['add'](_0x188c54[_0x54cfa7(0x1e7)]);}for(const _0x308d87 of _0x420757){delete _0x298773[_0x308d87];}return{'flags':_0x298773,'corrections':_0x303c18};}
@@ -1 +1 @@
1
- (function(_0x3ad741,_0x4ee4bb){var _0x411678=a85_0x2840,_0x56db6a=_0x3ad741();while(!![]){try{var _0x203142=-parseInt(_0x411678(0x101))/0x1*(parseInt(_0x411678(0x109))/0x2)+parseInt(_0x411678(0x108))/0x3+-parseInt(_0x411678(0x103))/0x4*(-parseInt(_0x411678(0x10a))/0x5)+parseInt(_0x411678(0x107))/0x6+parseInt(_0x411678(0x104))/0x7*(parseInt(_0x411678(0x102))/0x8)+-parseInt(_0x411678(0x106))/0x9+-parseInt(_0x411678(0x105))/0xa*(parseInt(_0x411678(0x100))/0xb);if(_0x203142===_0x4ee4bb)break;else _0x56db6a['push'](_0x56db6a['shift']());}catch(_0xbdd9a){_0x56db6a['push'](_0x56db6a['shift']());}}}(a85_0x805a,0xaf3de));function a85_0x2840(_0x5527dd,_0x31cb8e){_0x5527dd=_0x5527dd-0x100;var _0x805a9d=a85_0x805a();var _0x2840d9=_0x805a9d[_0x5527dd];return _0x2840d9;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a85_0x805a(){var _0x10f0a2=['4532fgSMmP','42xvkxtm','8376980dgbfru','3363966yqhSuB','3523776CvFgge','3703998KrghaB','172JThDww','4470LvwtTh','22TRbUSF','8803yOtElk','918872oDGCvj'];a85_0x805a=function(){return _0x10f0a2;};return a85_0x805a();}
1
+ function a85_0x2076(_0x2fbb4d,_0x153a62){_0x2fbb4d=_0x2fbb4d-0xa2;var _0x3f6b2f=a85_0x3f6b();var _0x2076b8=_0x3f6b2f[_0x2fbb4d];return _0x2076b8;}function a85_0x3f6b(){var _0x5a5372=['2295513VcMvPX','540128vrlkdb','2346358SWqrQH','3063235rfmaAm','276964HEFUWS','69FrWhCq','5101872HjkTkj','9304uVIRqo','8BWBzmB'];a85_0x3f6b=function(){return _0x5a5372;};return a85_0x3f6b();}(function(_0x36f1cf,_0x2724f9){var _0x490b9d=a85_0x2076,_0x32787e=_0x36f1cf();while(!![]){try{var _0x5cd3b5=parseInt(_0x490b9d(0xa4))/0x1*(parseInt(_0x490b9d(0xa9))/0x2)+-parseInt(_0x490b9d(0xaa))/0x3*(parseInt(_0x490b9d(0xa3))/0x4)+-parseInt(_0x490b9d(0xa8))/0x5+parseInt(_0x490b9d(0xa2))/0x6+-parseInt(_0x490b9d(0xa7))/0x7+-parseInt(_0x490b9d(0xa6))/0x8+-parseInt(_0x490b9d(0xa5))/0x9;if(_0x5cd3b5===_0x2724f9)break;else _0x32787e['push'](_0x32787e['shift']());}catch(_0xc73380){_0x32787e['push'](_0x32787e['shift']());}}}(a85_0x3f6b,0x9ad90));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x481f19,_0x55503d){const _0x5148dc=a86_0x3c81,_0xfe27ed=_0x481f19();while(!![]){try{const _0x1fa47f=-parseInt(_0x5148dc(0x114))/0x1+parseInt(_0x5148dc(0x122))/0x2+-parseInt(_0x5148dc(0x112))/0x3*(-parseInt(_0x5148dc(0x10a))/0x4)+-parseInt(_0x5148dc(0x10c))/0x5+parseInt(_0x5148dc(0x11b))/0x6*(-parseInt(_0x5148dc(0x115))/0x7)+parseInt(_0x5148dc(0x10b))/0x8*(parseInt(_0x5148dc(0x113))/0x9)+-parseInt(_0x5148dc(0x10e))/0xa*(-parseInt(_0x5148dc(0x11a))/0xb);if(_0x1fa47f===_0x55503d)break;else _0xfe27ed['push'](_0xfe27ed['shift']());}catch(_0x21fdb2){_0xfe27ed['push'](_0xfe27ed['shift']());}}}(a86_0x1f31,0x86f81));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x382cd0,_0x56b28f,_0x19efda){const _0x2f9205=a86_0x3c81,_0x55ae11=buildConfirmationContext(_0x382cd0,_0x56b28f,_0x19efda),_0x4d99d3=[_0x2f9205(0x11d)+_0x55ae11['commandLabel']];return _0x55ae11[_0x2f9205(0x118)]&&_0x4d99d3['push'](_0x2f9205(0x108)+_0x55ae11[_0x2f9205(0x118)]),_0x55ae11[_0x2f9205(0x119)]&&_0x4d99d3[_0x2f9205(0x11e)](_0x2f9205(0x121)+_0x55ae11[_0x2f9205(0x119)]),_0x4d99d3[_0x2f9205(0x11e)](_0x2f9205(0x124)),_0x4d99d3;}export function reconstructCommandArgv(_0x2b3a6b,_0x2a51f6){const _0x3732d1=a86_0x3c81,_0xf008f7=[CLI_BIN_NAME,_0x2b3a6b['service'],_0x2b3a6b[_0x3732d1(0x11f)]];for(const [_0xda2a0e,_0x4a31b4]of Object[_0x3732d1(0x123)](_0x2a51f6)){if(_0x4a31b4===!![])_0xf008f7['push']('--'+_0xda2a0e);else _0x4a31b4!==![]&&_0x4a31b4!==undefined&&_0x4a31b4!==''&&_0xf008f7[_0x3732d1(0x11e)]('--'+_0xda2a0e+'\x20'+JSON[_0x3732d1(0x111)](_0x4a31b4));}return _0xf008f7['push'](_0x3732d1(0x109)),_0xf008f7['join']('\x20');}function buildConfirmationContext(_0x227cb1,_0x448228,_0x35ea52){const _0x37eb22=a86_0x3c81,_0x6ca2c1=extractAffectedRecords(_0x35ea52);return{'commandLabel':_0x448228,'description':_0x227cb1[_0x37eb22(0x118)],'affectedRecords':_0x6ca2c1};}function a86_0x3c81(_0x3d54d6,_0x179845){_0x3d54d6=_0x3d54d6-0x108;const _0x1f31ed=a86_0x1f31();let _0x3c81d6=_0x1f31ed[_0x3d54d6];return _0x3c81d6;}function a86_0x1f31(){const _0x1bf659=['params','644610Hsroiq','code=','join','stringify','851094SYZyAi','18JPwNsm','1000228nBioAi','7MfeMxY','length','name=','description','affectedRecords','11rLlfCt','26634tZSaLC','id=','⚠\x20\x20High-risk\x20operation:\x20','push','command','code','\x20\x20\x20Affected:\x20','1057286bROJmt','entries','\x20\x20\x20Continue?\x20[y/N]\x20','params=','\x20\x20\x20','--yes','12vYlvHA','848360vPwdJA','493940OLqxZT'];a86_0x1f31=function(){return _0x1bf659;};return a86_0x1f31();}function extractAffectedRecords(_0x3865de){const _0x28101b=a86_0x3c81,_0x8c72c9=[];if(_0x3865de[_0x28101b(0x120)])_0x8c72c9[_0x28101b(0x11e)](_0x28101b(0x10f)+_0x3865de[_0x28101b(0x120)]);if(_0x3865de['id'])_0x8c72c9['push'](_0x28101b(0x11c)+_0x3865de['id']);if(_0x3865de['name'])_0x8c72c9[_0x28101b(0x11e)](_0x28101b(0x117)+_0x3865de['name']);if(_0x3865de[_0x28101b(0x10d)])_0x8c72c9[_0x28101b(0x11e)](_0x28101b(0x125)+_0x3865de[_0x28101b(0x10d)]);return _0x8c72c9[_0x28101b(0x116)]>0x0?_0x8c72c9[_0x28101b(0x110)](',\x20'):undefined;}
1
+ (function(_0x2001f8,_0x19c4ed){const _0x1387f5=a86_0x1494,_0x531901=_0x2001f8();while(!![]){try{const _0x513f22=-parseInt(_0x1387f5(0x17b))/0x1+parseInt(_0x1387f5(0x170))/0x2*(-parseInt(_0x1387f5(0x183))/0x3)+-parseInt(_0x1387f5(0x16c))/0x4*(parseInt(_0x1387f5(0x176))/0x5)+parseInt(_0x1387f5(0x17c))/0x6+-parseInt(_0x1387f5(0x17a))/0x7*(parseInt(_0x1387f5(0x16e))/0x8)+-parseInt(_0x1387f5(0x185))/0x9+parseInt(_0x1387f5(0x171))/0xa*(parseInt(_0x1387f5(0x174))/0xb);if(_0x513f22===_0x19c4ed)break;else _0x531901['push'](_0x531901['shift']());}catch(_0x4c8d2b){_0x531901['push'](_0x531901['shift']());}}}(a86_0x331e,0x3b1ff));import{CLI_BIN_NAME}from'../constant/cli.js';function a86_0x1494(_0x2ae59a,_0xa4a34b){_0x2ae59a=_0x2ae59a-0x16c;const _0x331e49=a86_0x331e();let _0x14949a=_0x331e49[_0x2ae59a];return _0x14949a;}export function buildConfirmationLines(_0x2b0bd5,_0x8e71b1,_0x4c09cd){const _0x565b1a=a86_0x1494,_0x2e55dd=buildConfirmationContext(_0x2b0bd5,_0x8e71b1,_0x4c09cd),_0x254fca=['⚠\x20\x20High-risk\x20operation:\x20'+_0x2e55dd[_0x565b1a(0x189)]];return _0x2e55dd[_0x565b1a(0x188)]&&_0x254fca['push'](_0x565b1a(0x184)+_0x2e55dd[_0x565b1a(0x188)]),_0x2e55dd[_0x565b1a(0x18a)]&&_0x254fca['push'](_0x565b1a(0x182)+_0x2e55dd[_0x565b1a(0x18a)]),_0x254fca[_0x565b1a(0x17e)](_0x565b1a(0x181)),_0x254fca;}export function reconstructCommandArgv(_0x1b81c5,_0x1c2d1a){const _0x5821e9=a86_0x1494,_0x51227c=[CLI_BIN_NAME,_0x1b81c5[_0x5821e9(0x17f)],_0x1b81c5[_0x5821e9(0x16d)]];for(const [_0x4c73ad,_0x944e7f]of Object[_0x5821e9(0x173)](_0x1c2d1a)){if(_0x944e7f===!![])_0x51227c[_0x5821e9(0x17e)]('--'+_0x4c73ad);else _0x944e7f!==![]&&_0x944e7f!==undefined&&_0x944e7f!==''&&_0x51227c[_0x5821e9(0x17e)]('--'+_0x4c73ad+'\x20'+JSON['stringify'](_0x944e7f));}return _0x51227c[_0x5821e9(0x17e)](_0x5821e9(0x177)),_0x51227c[_0x5821e9(0x178)]('\x20');}function buildConfirmationContext(_0x52909d,_0x14f278,_0x15aa5c){const _0x5ce437=a86_0x1494,_0x3af860=extractAffectedRecords(_0x15aa5c);return{'commandLabel':_0x14f278,'description':_0x52909d[_0x5ce437(0x188)],'affectedRecords':_0x3af860};}function extractAffectedRecords(_0x52da32){const _0x551a50=a86_0x1494,_0x2830dd=[];if(_0x52da32[_0x551a50(0x17d)])_0x2830dd[_0x551a50(0x17e)](_0x551a50(0x180)+_0x52da32[_0x551a50(0x17d)]);if(_0x52da32['id'])_0x2830dd[_0x551a50(0x17e)](_0x551a50(0x179)+_0x52da32['id']);if(_0x52da32['name'])_0x2830dd[_0x551a50(0x17e)](_0x551a50(0x186)+_0x52da32[_0x551a50(0x175)]);if(_0x52da32['params'])_0x2830dd[_0x551a50(0x17e)](_0x551a50(0x172)+_0x52da32[_0x551a50(0x16f)]);return _0x2830dd[_0x551a50(0x187)]>0x0?_0x2830dd[_0x551a50(0x178)](',\x20'):undefined;}function a86_0x331e(){const _0x463147=['3111190WcRfXn','params=','entries','55eBGiuF','name','185PPYqzE','--yes','join','id=','539ZmUcah','414087MuwYpe','509418aLoZvm','code','push','service','code=','\x20\x20\x20Continue?\x20[y/N]\x20','\x20\x20\x20Affected:\x20','1779rmdsor','\x20\x20\x20','3228633UskiPp','name=','length','description','commandLabel','affectedRecords','17268TRXsuI','command','17032eRZgmX','params','1018pPwGVC'];a86_0x331e=function(){return _0x463147;};return a86_0x331e();}
@@ -1 +1 @@
1
- function a87_0x3515(){const _0x380d0e=['2870qqYPqq','validation','trim','1048915KiiOSI','5877KMBTZV','32mtCOuJ','452916XDJKoC','stringify','813lXpQuP','87845TOuyAw','890592eePxeE','826hKLevk','12FfsyJv','9282548VNXrXf','message','string','description'];a87_0x3515=function(){return _0x380d0e;};return a87_0x3515();}(function(_0xee6c6e,_0x51fbd1){const _0x61e05a=a87_0x2aa4,_0x471037=_0xee6c6e();while(!![]){try{const _0x204bfa=parseInt(_0x61e05a(0x135))/0x1*(-parseInt(_0x61e05a(0x138))/0x2)+parseInt(_0x61e05a(0x133))/0x3+-parseInt(_0x61e05a(0x132))/0x4*(-parseInt(_0x61e05a(0x136))/0x5)+-parseInt(_0x61e05a(0x128))/0x6*(parseInt(_0x61e05a(0x130))/0x7)+-parseInt(_0x61e05a(0x137))/0x8+parseInt(_0x61e05a(0x131))/0x9*(-parseInt(_0x61e05a(0x12d))/0xa)+parseInt(_0x61e05a(0x129))/0xb;if(_0x204bfa===_0x51fbd1)break;else _0x471037['push'](_0x471037['shift']());}catch(_0xa1e6bc){_0x471037['push'](_0x471037['shift']());}}}(a87_0x3515,0x311ee));import{LovrabetError}from'@lovrabet/sdk';function a87_0x2aa4(_0x4e21ff,_0x174dfd){_0x4e21ff=_0x4e21ff-0x128;const _0x3515c2=a87_0x3515();let _0x2aa4be=_0x3515c2[_0x4e21ff];return _0x2aa4be;}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x537adf){const _0x5888b5=a87_0x2aa4;if(_0x537adf instanceof LovrabetError)return CliErrors[_0x5888b5(0x12e)](userFacingLovrabetMessage(_0x537adf));return _0x537adf;}function userFacingLovrabetMessage(_0x5dbe3b){const _0x188c43=a87_0x2aa4,_0x5b2542=_0x5dbe3b[_0x188c43(0x12c)];if(_0x5b2542!==undefined&&_0x5b2542!==null){if(typeof _0x5b2542===_0x188c43(0x12b)&&_0x5b2542[_0x188c43(0x12f)]())return _0x5b2542['trim']();try{return JSON[_0x188c43(0x134)](_0x5b2542);}catch{}}return _0x5dbe3b[_0x188c43(0x12a)];}
1
+ (function(_0x15ff58,_0xce8b90){const _0x34639b=a87_0x588e,_0x299061=_0x15ff58();while(!![]){try{const _0x3f6142=-parseInt(_0x34639b(0x185))/0x1+-parseInt(_0x34639b(0x188))/0x2+parseInt(_0x34639b(0x18f))/0x3*(parseInt(_0x34639b(0x18a))/0x4)+-parseInt(_0x34639b(0x183))/0x5+-parseInt(_0x34639b(0x184))/0x6*(parseInt(_0x34639b(0x190))/0x7)+-parseInt(_0x34639b(0x181))/0x8+parseInt(_0x34639b(0x18d))/0x9*(parseInt(_0x34639b(0x18c))/0xa);if(_0x3f6142===_0xce8b90)break;else _0x299061['push'](_0x299061['shift']());}catch(_0xad0e9d){_0x299061['push'](_0x299061['shift']());}}}(a87_0xcd78,0x457c3));import{LovrabetError}from'@lovrabet/sdk';function a87_0xcd78(){const _0xdd19d=['830712bhqsXe','validation','2395540sshsqN','6aahegw','203375BaIskt','trim','stringify','545412RwiCnb','message','1995652ErMxJE','description','6116090rpQzon','18siPbXz','string','3XXOKen','2649444AnIRBa'];a87_0xcd78=function(){return _0xdd19d;};return a87_0xcd78();}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x63949b){const _0x17baf1=a87_0x588e;if(_0x63949b instanceof LovrabetError)return CliErrors[_0x17baf1(0x182)](userFacingLovrabetMessage(_0x63949b));return _0x63949b;}function a87_0x588e(_0x44aab9,_0x236286){_0x44aab9=_0x44aab9-0x181;const _0xcd7875=a87_0xcd78();let _0x588e56=_0xcd7875[_0x44aab9];return _0x588e56;}function userFacingLovrabetMessage(_0xd1f9aa){const _0x49759b=a87_0x588e,_0x4c9b76=_0xd1f9aa[_0x49759b(0x18b)];if(_0x4c9b76!==undefined&&_0x4c9b76!==null){if(typeof _0x4c9b76===_0x49759b(0x18e)&&_0x4c9b76['trim']())return _0x4c9b76[_0x49759b(0x186)]();try{return JSON[_0x49759b(0x187)](_0x4c9b76);}catch{}}return _0xd1f9aa[_0x49759b(0x189)];}
@@ -1 +1 @@
1
- const a88_0x12cc24=a88_0x3cc7;(function(_0x112061,_0x82d2d){const _0x325a5b=a88_0x3cc7,_0x51e0e4=_0x112061();while(!![]){try{const _0x2d38c0=parseInt(_0x325a5b(0x12f))/0x1+parseInt(_0x325a5b(0x122))/0x2+-parseInt(_0x325a5b(0x144))/0x3+parseInt(_0x325a5b(0x146))/0x4+-parseInt(_0x325a5b(0x143))/0x5+-parseInt(_0x325a5b(0x12c))/0x6*(-parseInt(_0x325a5b(0x14e))/0x7)+-parseInt(_0x325a5b(0x121))/0x8;if(_0x2d38c0===_0x82d2d)break;else _0x51e0e4['push'](_0x51e0e4['shift']());}catch(_0x469f10){_0x51e0e4['push'](_0x51e0e4['shift']());}}}(a88_0x1db2,0x31f8e));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x1014ad){const _0x135d8f=a88_0x3cc7;return void _0x1014ad,AUTH_MODE[_0x135d8f(0x130)];}export function createPipelineEnv(_0x347c43,_0x1e5dee){const _0xffba5c=a88_0x3cc7,_0x5b9978=typeof _0x1e5dee[_0xffba5c(0x153)]==='string'&&_0x1e5dee[_0xffba5c(0x153)][_0xffba5c(0x154)]();return{'rawFlags':_0x1e5dee,'appCode':_0x347c43[_0xffba5c(0x151)]||productEnv(_0xffba5c(0x137))||(_0x5b9978?undefined:readAppCodeFromConfig()),'appCodeSource':_0x347c43['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x1e5dee),'defaultFormat':_0x347c43[_0xffba5c(0x14a)],'defaultPageSize':_0x347c43['pageSize'],'defaultVerbose':_0x347c43['verbose'],'riskLevel':_0x347c43[_0xffba5c(0x123)],'accessKey':_0x347c43[_0xffba5c(0x150)],'env':_0x347c43[_0xffba5c(0x142)],'mergedCli':{'defaultApp':_0x347c43[_0xffba5c(0x13f)],'currentApp':_0x347c43[_0xffba5c(0x120)],'appCode':_0x347c43[_0xffba5c(0x151)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4c97c3=>PIPELINE_FLAG_NAMES[a88_0x12cc24(0x11b)](_0x4c97c3[a88_0x12cc24(0x139)]))[a88_0x12cc24(0x124)](({name:_0x2d8fec,type:_0x1d9e37,description:_0x46fc98})=>({'name':_0x2d8fec,'type':_0x1d9e37,'description':_0x46fc98})),'formatOutput':formatOutput,'getCommandLabel'(_0x2a9939){const _0x57c8c3=a88_0x12cc24;return CLI_BIN_NAME+'\x20'+_0x2a9939['service']+'\x20'+_0x2a9939[_0x57c8c3(0x128)];},'riskPolicy':{'onViolation'(_0xab70b7){const _0x550c77=a88_0x12cc24;console[_0x550c77(0x11e)](_0xab70b7);},'createError'(_0x7f47fb){const _0x3a5923=a88_0x12cc24;return CliErrors[_0x3a5923(0x126)](_0x7f47fb);}},async 'prepare'(_0x33e628,_0x597e81){const _0x31efab=a88_0x12cc24,_0x14e3b9=resolveAuthMode(_0x597e81);if(_0x33e628[_0x31efab(0x157)]!==![]){if(!_0x597e81['accessKey'])throw CliErrors[_0x31efab(0x158)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x31efab(0x11f)]+_0x31efab(0x12b)+productEnvName(_0x31efab(0x135))+'.');const {setActiveAK:_0x11f871}=await import(_0x31efab(0x149));_0x11f871(_0x597e81[_0x31efab(0x150)]);}let _0x59cf68='';if(_0x33e628[_0x31efab(0x13c)]!==![]){_0x59cf68=_0x597e81['appCode']??'',_0x59cf68=await resolveExplicitAppName(_0x33e628,_0x597e81,_0x59cf68);if(!_0x59cf68){await assertSelectedAppNameIsRuntimeAccessible(_0x33e628,_0x597e81);throw CliErrors[_0x31efab(0x133)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x31efab(0x11f)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x33e628,_0x597e81,_0x59cf68);}if(_0x59cf68){const {initSdkClient:_0x3579e7}=await import('../core/sdk-client.js');_0x3579e7({'appCode':_0x59cf68,'env':_0x597e81[_0x31efab(0x142)]??_0x31efab(0x131),'accessKey':_0x597e81[_0x31efab(0x150)],'authMode':_0x14e3b9});}return{'defaults':{'booleans':{'verbose':_0x597e81[_0x31efab(0x140)]},'numbers':{'pagesize':_0x597e81[_0x31efab(0x138)]}},'extras':{'appCode':_0x59cf68,'cookie':'','apiDomain':_0x597e81[_0x31efab(0x136)],'apiDir':'','accessKey':_0x597e81[_0x31efab(0x150)],'envName':_0x597e81[_0x31efab(0x142)],'mergedCli':_0x597e81[_0x31efab(0x13a)]}};},async 'confirmHighRisk'({def:_0x10c36c,env:_0x27bc2c,flags:_0x404735,commandLabel:_0x5896e8}){const _0x21c325=a88_0x12cc24;if(_0x27bc2c['isNonInteractive']){const _0xe29c9=reconstructCommandArgv(_0x10c36c,_0x404735);throw CliErrors[_0x21c325(0x132)](_0x21c325(0x11c)+_0x5896e8+_0x21c325(0x134)+('\x20\x20To\x20proceed:\x20'+_0xe29c9));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x10c36c,_0x5896e8,_0x404735),'createCancelledError':_0x2e0526=>CliErrors[_0x21c325(0x126)](_0x2e0526)});},'mapDryRunError'(_0x17730f){return mapUserFacingExecuteError(_0x17730f);},'mapExecuteError'(_0x386025){return mapUserFacingExecuteError(_0x386025);},async 'finalize'(){const {clearActiveAK:_0x502c26}=await import('../core/api-client.js');_0x502c26();}};async function resolveExplicitAppName(_0x839abc,_0x430b54,_0x384dc0){const _0x4abf2d=a88_0x12cc24;if(_0x839abc[_0x4abf2d(0x13c)]===![])return _0x384dc0;const _0x182304=typeof _0x430b54[_0x4abf2d(0x147)]['app']===_0x4abf2d(0x14d)?_0x430b54[_0x4abf2d(0x147)][_0x4abf2d(0x153)][_0x4abf2d(0x154)]():'';if(!_0x182304)return _0x384dc0;const _0x81c8a3=typeof _0x430b54['rawFlags'][_0x4abf2d(0x13b)]===_0x4abf2d(0x14d)&&_0x430b54[_0x4abf2d(0x147)][_0x4abf2d(0x13b)][_0x4abf2d(0x154)]()||productEnv(_0x4abf2d(0x137));if(_0x81c8a3||_0x430b54[_0x4abf2d(0x12d)]===_0x4abf2d(0x11d))return _0x384dc0;const {getRemoteAppList:_0x48940d}=await import(_0x4abf2d(0x13d)),_0x420637=await _0x48940d({'env':_0x430b54[_0x4abf2d(0x142)]??_0x4abf2d(0x131),'accessKey':_0x430b54[_0x4abf2d(0x150)]}),_0x12a9eb=findAppByName(_0x420637[_0x4abf2d(0x14f)],_0x182304);if(_0x12a9eb&&!isRuntimeAccessibleApp(_0x12a9eb))throw runtimeInaccessibleAppError(_0x12a9eb,'\x22'+_0x182304+'\x22');const _0x51820c=_0x12a9eb?.['appCode']?.[_0x4abf2d(0x154)]();if(_0x51820c)return _0x51820c;throw CliErrors[_0x4abf2d(0x132)](_0x4abf2d(0x156)+_0x182304,'Run\x20`'+CLI_BIN_NAME+_0x4abf2d(0x14c)+_0x182304+_0x4abf2d(0x125)+PRODUCT_CONFIG[_0x4abf2d(0x11f)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x18e1ee,_0x59968e){const _0x2ce271=a88_0x12cc24;if(_0x18e1ee[_0x2ce271(0x13c)]===![]||!_0x59968e[_0x2ce271(0x150)])return;const _0x19756e=(typeof _0x59968e[_0x2ce271(0x147)][_0x2ce271(0x153)]===_0x2ce271(0x14d)&&_0x59968e[_0x2ce271(0x147)][_0x2ce271(0x153)][_0x2ce271(0x154)]()?_0x59968e[_0x2ce271(0x147)][_0x2ce271(0x153)]:_0x59968e[_0x2ce271(0x13a)]?.[_0x2ce271(0x120)]??_0x59968e[_0x2ce271(0x13a)]?.[_0x2ce271(0x13f)])?.['trim']();if(!_0x19756e)return;const {getRemoteAppList:_0x147a57}=await import(_0x2ce271(0x13d)),_0x29c1f0=await _0x147a57({'env':_0x59968e[_0x2ce271(0x142)]??_0x2ce271(0x131),'accessKey':_0x59968e[_0x2ce271(0x150)]}),_0x73159f=findAppByName(_0x29c1f0['items'],_0x19756e);if(_0x73159f&&!isRuntimeAccessibleApp(_0x73159f))throw runtimeInaccessibleAppError(_0x73159f,'\x22'+_0x19756e+'\x22');}function a88_0x3cc7(_0x37adc3,_0x2b7513){_0x37adc3=_0x37adc3-0x11b;const _0x1db274=a88_0x1db2();let _0x3cc7b2=_0x1db274[_0x37adc3];return _0x3cc7b2;}async function assertAppCodeIsRuntimeAccessible(_0xe86f19,_0x241043,_0x4c6617){const _0x1a0a72=a88_0x12cc24;if(_0xe86f19['requiresAppCode']===![]||!_0x241043[_0x1a0a72(0x150)])return;const {getRemoteAppList:_0x49aa46}=await import(_0x1a0a72(0x13d)),_0x32a34a=await _0x49aa46({'env':_0x241043['env']??_0x1a0a72(0x131),'accessKey':_0x241043[_0x1a0a72(0x150)]}),_0x56b7af=findAppByCode(_0x32a34a['items'],_0x4c6617);if(_0x56b7af&&!isRuntimeAccessibleApp(_0x56b7af))throw runtimeInaccessibleAppError(_0x56b7af,_0x1a0a72(0x129)+_0x4c6617+'\x22');}function a88_0x1db2(){const _0xd87ff=['doctor','env','1037385yAlZwM','380691YSnvGU','object','215404fToKGa','rawFlags','update','../core/api-client.js','format','catch','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','string','1106MxIzxl','items','accessKey','appCode','includes','app','trim','resolve','Unknown\x20app:\x20','requiresAuth','authRequired','has','High-risk\x20operation\x20`','local-alias','error','newConfigFileName','currentApp','3894688HqCZds','794500GVUefV','riskLevel','map','.appcode\x20to\x20','cancelled','schema','command','appcode\x20\x22','pretty','\x20or\x20pass\x20','11400CPCzTv','appCodeSource','_notice','274595nhmfOz','ClientAk','production','validation','configMissing','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','ACCESS_KEY','apiDomain','APPCODE','defaultPageSize','name','mergedCli','appcode','requiresAppCode','../commands/app/remote-source.js','execute','defaultApp','defaultVerbose'];a88_0x1db2=function(){return _0xd87ff;};return a88_0x1db2();}export async function runCommand(_0x30c8c2,_0x42db52){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x30c8c2)?withUpdateNotice(_0x30c8c2):_0x30c8c2,_0x42db52,runnerAdapter);}function shouldAttachUpdateNotice(_0x4bfd92){const _0xeef4ce=a88_0x12cc24;return![_0xeef4ce(0x148),_0xeef4ce(0x127),_0xeef4ce(0x141)][_0xeef4ce(0x152)](_0x4bfd92['service']);}function withUpdateNotice(_0x696bf4){return{..._0x696bf4,async 'execute'(_0x4163c1){const _0x1cd23b=a88_0x3cc7,_0x13d371=shouldResolveUpdateNotice(_0x4163c1)?resolveLatestUpdateNotice()[_0x1cd23b(0x14b)](()=>null):Promise[_0x1cd23b(0x155)](null),_0x48333f=await _0x696bf4[_0x1cd23b(0x13e)](_0x4163c1);return attachUpdateNotice(_0x48333f,await _0x13d371);}};}function shouldResolveUpdateNotice(_0x2dec79){const _0x287c23=a88_0x12cc24;return _0x2dec79[_0x287c23(0x14a)]===_0x287c23(0x12a)&&!_0x2dec79['nonInteractive'];}function attachUpdateNotice(_0x24e011,_0x5ba16f){const _0x22d428=a88_0x12cc24;if(!_0x5ba16f||!_0x24e011||typeof _0x24e011!==_0x22d428(0x145))return _0x24e011;const _0x23152c=_0x24e011,_0x3e912f=typeof _0x23152c['_notice']===_0x22d428(0x145)&&_0x23152c['_notice']!==null?_0x23152c[_0x22d428(0x12e)]:{};return{..._0x23152c,'_notice':{..._0x3e912f,'update':_0x5ba16f}};}
1
+ const a88_0x1dcf10=a88_0xde3e;(function(_0x8d26ae,_0x407ac9){const _0x2f89d2=a88_0xde3e,_0x435195=_0x8d26ae();while(!![]){try{const _0x3d9cb0=-parseInt(_0x2f89d2(0x18e))/0x1+parseInt(_0x2f89d2(0x172))/0x2*(-parseInt(_0x2f89d2(0x15b))/0x3)+-parseInt(_0x2f89d2(0x17c))/0x4*(parseInt(_0x2f89d2(0x182))/0x5)+-parseInt(_0x2f89d2(0x17a))/0x6+-parseInt(_0x2f89d2(0x186))/0x7*(-parseInt(_0x2f89d2(0x159))/0x8)+-parseInt(_0x2f89d2(0x165))/0x9+-parseInt(_0x2f89d2(0x194))/0xa*(-parseInt(_0x2f89d2(0x18b))/0xb);if(_0x3d9cb0===_0x407ac9)break;else _0x435195['push'](_0x435195['shift']());}catch(_0x1a596a){_0x435195['push'](_0x435195['shift']());}}}(a88_0x2ef9,0xea6a5));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a88_0x2ef9(){const _0x26ada5=['isNonInteractive','.appcode\x20to\x20','execute','../core/api-client.js','service','defaultApp','validation','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','70677NYDHZJ','schema','production','appCodeSource','ACCESS_KEY','newConfigFileName','authRequired','includes','requiresAuth','configMissing','Unknown\x20app:\x20','../core/sdk-client.js','doctor','21674yjuzDh','mergedCli','update','riskLevel','defaultPageSize','pretty','filter','High-risk\x20operation\x20`','4614474zLujbr','app','1360356InvkCG','defaultVerbose','error','appCode','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','Run\x20`','25UBlzLd','currentApp','name','items','170975GBHuai','verbose','appcode','format','map','121XmLkNQ','accessKey','env','10238eGOSvL','cancelled','string','pageSize','apiDomain','rawFlags','3179130zsQDgR','APPCODE','_notice','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','object','requiresAppCode','local-alias','../commands/app/remote-source.js','424nNORyN','trim','372JxRKwJ','ClientAk'];a88_0x2ef9=function(){return _0x26ada5;};return a88_0x2ef9();}import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';function a88_0xde3e(_0x5aa338,_0x4b3aa1){_0x5aa338=_0x5aa338-0x158;const _0x2ef924=a88_0x2ef9();let _0xde3e91=_0x2ef924[_0x5aa338];return _0xde3e91;}import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x577aae){const _0x14f9b4=a88_0xde3e;return void _0x577aae,AUTH_MODE[_0x14f9b4(0x15c)];}export function createPipelineEnv(_0x3c2af2,_0x10aebc){const _0x59b4b3=a88_0xde3e,_0x789aa=typeof _0x10aebc[_0x59b4b3(0x17b)]===_0x59b4b3(0x190)&&_0x10aebc['app'][_0x59b4b3(0x15a)]();return{'rawFlags':_0x10aebc,'appCode':_0x3c2af2[_0x59b4b3(0x17f)]||productEnv(_0x59b4b3(0x195))||(_0x789aa?undefined:readAppCodeFromConfig()),'appCodeSource':_0x3c2af2[_0x59b4b3(0x168)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x10aebc),'defaultFormat':_0x3c2af2[_0x59b4b3(0x189)],'defaultPageSize':_0x3c2af2[_0x59b4b3(0x191)],'defaultVerbose':_0x3c2af2[_0x59b4b3(0x187)],'riskLevel':_0x3c2af2[_0x59b4b3(0x175)],'accessKey':_0x3c2af2[_0x59b4b3(0x18c)],'env':_0x3c2af2['env'],'mergedCli':{'defaultApp':_0x3c2af2['defaultApp'],'currentApp':_0x3c2af2[_0x59b4b3(0x183)],'appCode':_0x3c2af2[_0x59b4b3(0x17f)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a88_0x1dcf10(0x178)](_0x5de768=>PIPELINE_FLAG_NAMES['has'](_0x5de768[a88_0x1dcf10(0x184)]))[a88_0x1dcf10(0x18a)](({name:_0x1be36a,type:_0x48635c,description:_0x23a775})=>({'name':_0x1be36a,'type':_0x48635c,'description':_0x23a775})),'formatOutput':formatOutput,'getCommandLabel'(_0x428de6){const _0xe940dc=a88_0x1dcf10;return CLI_BIN_NAME+'\x20'+_0x428de6[_0xe940dc(0x161)]+'\x20'+_0x428de6['command'];},'riskPolicy':{'onViolation'(_0x40d1ca){const _0xadbd07=a88_0x1dcf10;console[_0xadbd07(0x17e)](_0x40d1ca);},'createError'(_0xbd3b12){const _0x1d092b=a88_0x1dcf10;return CliErrors[_0x1d092b(0x18f)](_0xbd3b12);}},async 'prepare'(_0x34f7bf,_0x118029){const _0x26bf06=a88_0x1dcf10,_0x4c2354=resolveAuthMode(_0x118029);if(_0x34f7bf[_0x26bf06(0x16d)]!==![]){if(!_0x118029[_0x26bf06(0x18c)])throw CliErrors[_0x26bf06(0x16b)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x26bf06(0x16a)]+'\x20or\x20pass\x20'+productEnvName(_0x26bf06(0x169))+'.');const {setActiveAK:_0x5bdf0b}=await import(_0x26bf06(0x160));_0x5bdf0b(_0x118029[_0x26bf06(0x18c)]);}let _0x125099='';if(_0x34f7bf[_0x26bf06(0x199)]!==![]){_0x125099=_0x118029[_0x26bf06(0x17f)]??'',_0x125099=await resolveExplicitAppName(_0x34f7bf,_0x118029,_0x125099);if(!_0x125099){await assertSelectedAppNameIsRuntimeAccessible(_0x34f7bf,_0x118029);throw CliErrors[_0x26bf06(0x16e)](_0x26bf06(0x180)+PRODUCT_CONFIG[_0x26bf06(0x16a)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x34f7bf,_0x118029,_0x125099);}if(_0x125099){const {initSdkClient:_0x555e1a}=await import(_0x26bf06(0x170));_0x555e1a({'appCode':_0x125099,'env':_0x118029[_0x26bf06(0x18d)]??'production','accessKey':_0x118029['accessKey'],'authMode':_0x4c2354});}return{'defaults':{'booleans':{'verbose':_0x118029[_0x26bf06(0x17d)]},'numbers':{'pagesize':_0x118029[_0x26bf06(0x176)]}},'extras':{'appCode':_0x125099,'cookie':'','apiDomain':_0x118029[_0x26bf06(0x192)],'apiDir':'','accessKey':_0x118029[_0x26bf06(0x18c)],'envName':_0x118029['env'],'mergedCli':_0x118029[_0x26bf06(0x173)]}};},async 'confirmHighRisk'({def:_0x1bb2dd,env:_0x5bd980,flags:_0x27edf2,commandLabel:_0x1ccdba}){const _0x2aa2f9=a88_0x1dcf10;if(_0x5bd980[_0x2aa2f9(0x15d)]){const _0x4e17ec=reconstructCommandArgv(_0x1bb2dd,_0x27edf2);throw CliErrors[_0x2aa2f9(0x163)](_0x2aa2f9(0x179)+_0x1ccdba+_0x2aa2f9(0x164)+('\x20\x20To\x20proceed:\x20'+_0x4e17ec));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x1bb2dd,_0x1ccdba,_0x27edf2),'createCancelledError':_0x2892f1=>CliErrors[_0x2aa2f9(0x18f)](_0x2892f1)});},'mapDryRunError'(_0x156ec3){return mapUserFacingExecuteError(_0x156ec3);},'mapExecuteError'(_0x366d60){return mapUserFacingExecuteError(_0x366d60);},async 'finalize'(){const _0x5e553a=a88_0x1dcf10,{clearActiveAK:_0x5a9181}=await import(_0x5e553a(0x160));_0x5a9181();}};async function resolveExplicitAppName(_0x160239,_0x83f0e1,_0x210c4f){const _0x5f3e6c=a88_0x1dcf10;if(_0x160239['requiresAppCode']===![])return _0x210c4f;const _0x594815=typeof _0x83f0e1[_0x5f3e6c(0x193)][_0x5f3e6c(0x17b)]===_0x5f3e6c(0x190)?_0x83f0e1[_0x5f3e6c(0x193)]['app'][_0x5f3e6c(0x15a)]():'';if(!_0x594815)return _0x210c4f;const _0x4a6a41=typeof _0x83f0e1[_0x5f3e6c(0x193)][_0x5f3e6c(0x188)]===_0x5f3e6c(0x190)&&_0x83f0e1['rawFlags'][_0x5f3e6c(0x188)][_0x5f3e6c(0x15a)]()||productEnv(_0x5f3e6c(0x195));if(_0x4a6a41||_0x83f0e1['appCodeSource']===_0x5f3e6c(0x19a))return _0x210c4f;const {getRemoteAppList:_0x1c74dd}=await import('../commands/app/remote-source.js'),_0x37711c=await _0x1c74dd({'env':_0x83f0e1['env']??'production','accessKey':_0x83f0e1['accessKey']}),_0xf729a1=findAppByName(_0x37711c[_0x5f3e6c(0x185)],_0x594815);if(_0xf729a1&&!isRuntimeAccessibleApp(_0xf729a1))throw runtimeInaccessibleAppError(_0xf729a1,'\x22'+_0x594815+'\x22');const _0x348e9d=_0xf729a1?.[_0x5f3e6c(0x17f)]?.['trim']();if(_0x348e9d)return _0x348e9d;throw CliErrors['validation'](_0x5f3e6c(0x16f)+_0x594815,_0x5f3e6c(0x181)+CLI_BIN_NAME+_0x5f3e6c(0x197)+_0x594815+_0x5f3e6c(0x15e)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x1e25e6,_0x593685){const _0x4bca02=a88_0x1dcf10;if(_0x1e25e6[_0x4bca02(0x199)]===![]||!_0x593685[_0x4bca02(0x18c)])return;const _0x3bf0b9=(typeof _0x593685[_0x4bca02(0x193)][_0x4bca02(0x17b)]==='string'&&_0x593685[_0x4bca02(0x193)][_0x4bca02(0x17b)][_0x4bca02(0x15a)]()?_0x593685[_0x4bca02(0x193)][_0x4bca02(0x17b)]:_0x593685[_0x4bca02(0x173)]?.[_0x4bca02(0x183)]??_0x593685[_0x4bca02(0x173)]?.[_0x4bca02(0x162)])?.['trim']();if(!_0x3bf0b9)return;const {getRemoteAppList:_0x4ed495}=await import('../commands/app/remote-source.js'),_0x118d5c=await _0x4ed495({'env':_0x593685[_0x4bca02(0x18d)]??_0x4bca02(0x167),'accessKey':_0x593685[_0x4bca02(0x18c)]}),_0x3f9f50=findAppByName(_0x118d5c[_0x4bca02(0x185)],_0x3bf0b9);if(_0x3f9f50&&!isRuntimeAccessibleApp(_0x3f9f50))throw runtimeInaccessibleAppError(_0x3f9f50,'\x22'+_0x3bf0b9+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x4250c2,_0x4fa4c6,_0x566445){const _0x222d0d=a88_0x1dcf10;if(_0x4250c2['requiresAppCode']===![]||!_0x4fa4c6[_0x222d0d(0x18c)])return;const {getRemoteAppList:_0x1bc997}=await import(_0x222d0d(0x158)),_0x256ad4=await _0x1bc997({'env':_0x4fa4c6[_0x222d0d(0x18d)]??'production','accessKey':_0x4fa4c6['accessKey']}),_0x46b3b4=findAppByCode(_0x256ad4[_0x222d0d(0x185)],_0x566445);if(_0x46b3b4&&!isRuntimeAccessibleApp(_0x46b3b4))throw runtimeInaccessibleAppError(_0x46b3b4,'appcode\x20\x22'+_0x566445+'\x22');}export async function runCommand(_0x5af4e6,_0x228bd4){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5af4e6)?withUpdateNotice(_0x5af4e6):_0x5af4e6,_0x228bd4,runnerAdapter);}function shouldAttachUpdateNotice(_0xc1ad0b){const _0x492c24=a88_0x1dcf10;return![_0x492c24(0x174),_0x492c24(0x166),_0x492c24(0x171)][_0x492c24(0x16c)](_0xc1ad0b[_0x492c24(0x161)]);}function withUpdateNotice(_0x200929){return{..._0x200929,async 'execute'(_0x475dc4){const _0x59792a=a88_0xde3e,_0x4d0361=shouldResolveUpdateNotice(_0x475dc4)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0x4fb196=await _0x200929[_0x59792a(0x15f)](_0x475dc4);return attachUpdateNotice(_0x4fb196,await _0x4d0361);}};}function shouldResolveUpdateNotice(_0x39521d){const _0x432ef5=a88_0x1dcf10;return _0x39521d[_0x432ef5(0x189)]===_0x432ef5(0x177)&&!_0x39521d['nonInteractive'];}function attachUpdateNotice(_0x3b3b9f,_0x45aa03){const _0x257774=a88_0x1dcf10;if(!_0x45aa03||!_0x3b3b9f||typeof _0x3b3b9f!==_0x257774(0x198))return _0x3b3b9f;const _0x3ee97f=_0x3b3b9f,_0x4866dc=typeof _0x3ee97f[_0x257774(0x196)]==='object'&&_0x3ee97f[_0x257774(0x196)]!==null?_0x3ee97f[_0x257774(0x196)]:{};return{..._0x3ee97f,'_notice':{..._0x4866dc,'update':_0x45aa03}};}
@@ -1 +1 @@
1
- (function(_0x15b901,_0x2e1586){const _0x4c0a85=a89_0x3803,_0x5a2d50=_0x15b901();while(!![]){try{const _0x43ceec=parseInt(_0x4c0a85(0x11e))/0x1*(-parseInt(_0x4c0a85(0x115))/0x2)+-parseInt(_0x4c0a85(0x120))/0x3*(parseInt(_0x4c0a85(0x11d))/0x4)+parseInt(_0x4c0a85(0x124))/0x5*(-parseInt(_0x4c0a85(0x116))/0x6)+-parseInt(_0x4c0a85(0x110))/0x7*(-parseInt(_0x4c0a85(0x122))/0x8)+parseInt(_0x4c0a85(0x121))/0x9*(parseInt(_0x4c0a85(0x11a))/0xa)+-parseInt(_0x4c0a85(0x114))/0xb*(-parseInt(_0x4c0a85(0x11c))/0xc)+parseInt(_0x4c0a85(0x123))/0xd;if(_0x43ceec===_0x2e1586)break;else _0x5a2d50['push'](_0x5a2d50['shift']());}catch(_0x2aade3){_0x5a2d50['push'](_0x5a2d50['shift']());}}}(a89_0x2d5f,0x51382));import{buildSchemaPayload as a89_0xceab7b}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';function a89_0x2d5f(){const _0x10744a=['requiresAuth','filter','2245694gOalyV','48dnrToB','273648jtrIbm','required','service','auth','20VQEmWM','map','36uEbTel','13828PDyAkF','9314eZIZjX','services','489QKPIQf','1817712WKnckc','664XcmIxL','6895928KsqOdH','65KFraQM','13979RFibJN','commands'];a89_0x2d5f=function(){return _0x10744a;};return a89_0x2d5f();}function a89_0x3803(_0x6e816b,_0x212e69){_0x6e816b=_0x6e816b-0x110;const _0x2d5f6f=a89_0x2d5f();let _0x3803ea=_0x2d5f6f[_0x6e816b];return _0x3803ea;}export async function buildSchemaPayload(){const _0x4f486a=a89_0x3803,{serviceRegistry:_0x10cd30,findDefinition:_0x224012}=await import('../commands/registry.js'),_0x54b11c=new Set(_0x10cd30[_0x4f486a(0x11b)](_0x554b93=>_0x554b93[_0x4f486a(0x118)])),_0x154777=listDynamicServiceEntries()[_0x4f486a(0x113)](_0xef2689=>!_0x54b11c['has'](_0xef2689[_0x4f486a(0x118)])),_0x1ce8dc=a89_0xceab7b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x10cd30,_0x154777),'buildAllFlags':buildAllFlags,'findDefinition':(_0x12b558,_0x3d89ef)=>_0x224012(_0x12b558,_0x3d89ef)??findDynamicServiceDefinition(_0x12b558,_0x3d89ef)});return normalizeSchemaPayload(_0x1ce8dc);}function normalizeSchemaPayload(_0x52d173){const _0x4176ca=a89_0x3803;return{..._0x52d173,'schemaVersion':0x2,'services':_0x52d173[_0x4176ca(0x11f)][_0x4176ca(0x11b)](_0x556b44=>({..._0x556b44,'commands':_0x556b44[_0x4176ca(0x111)][_0x4176ca(0x11b)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x3f4ff5){const _0x43dedc=a89_0x3803,_0x568301=_0x3f4ff5;return{..._0x3f4ff5,'auth':_0x568301[_0x43dedc(0x119)]??(_0x3f4ff5[_0x43dedc(0x112)]?_0x43dedc(0x117):'none')};}
1
+ (function(_0x451f05,_0x3d5bb1){const _0x512f49=a89_0x2cec,_0x4707f8=_0x451f05();while(!![]){try{const _0x5f65f4=-parseInt(_0x512f49(0x152))/0x1+parseInt(_0x512f49(0x15b))/0x2+-parseInt(_0x512f49(0x155))/0x3+parseInt(_0x512f49(0x160))/0x4+-parseInt(_0x512f49(0x15d))/0x5*(-parseInt(_0x512f49(0x163))/0x6)+-parseInt(_0x512f49(0x157))/0x7+parseInt(_0x512f49(0x161))/0x8*(parseInt(_0x512f49(0x15a))/0x9);if(_0x5f65f4===_0x3d5bb1)break;else _0x4707f8['push'](_0x4707f8['shift']());}catch(_0x3249b8){_0x4707f8['push'](_0x4707f8['shift']());}}}(a89_0x47df,0xcf076));import{buildSchemaPayload as a89_0xb5b2be}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a89_0x2cec(_0x3e41c7,_0x2ac143){_0x3e41c7=_0x3e41c7-0x152;const _0x47df05=a89_0x47df();let _0x2cec0f=_0x47df05[_0x3e41c7];return _0x2cec0f;}function a89_0x47df(){const _0x453908=['1884126KeRVXB','none','10997343HZqELX','auth','has','73341AqrKmD','2955760QkJmIc','map','2750645vIPCvi','requiresAuth','../commands/registry.js','2693240Utlnbr','8DrMRrr','services','18WgjPcA','commands','762645AxgLKu','required','service'];a89_0x47df=function(){return _0x453908;};return a89_0x47df();}import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1a37e4=a89_0x2cec,{serviceRegistry:_0x562aa6,findDefinition:_0x1b70d7}=await import(_0x1a37e4(0x15f)),_0xa72468=new Set(_0x562aa6[_0x1a37e4(0x15c)](_0x1d28a3=>_0x1d28a3[_0x1a37e4(0x154)])),_0x551601=listDynamicServiceEntries()['filter'](_0x2455e1=>!_0xa72468[_0x1a37e4(0x159)](_0x2455e1[_0x1a37e4(0x154)])),_0x4e6bdc=a89_0xb5b2be({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x562aa6,_0x551601),'buildAllFlags':buildAllFlags,'findDefinition':(_0x1e3a70,_0x155d9b)=>_0x1b70d7(_0x1e3a70,_0x155d9b)??findDynamicServiceDefinition(_0x1e3a70,_0x155d9b)});return normalizeSchemaPayload(_0x4e6bdc);}function normalizeSchemaPayload(_0x267d52){const _0x441748=a89_0x2cec;return{..._0x267d52,'schemaVersion':0x2,'services':_0x267d52[_0x441748(0x162)][_0x441748(0x15c)](_0x45a9c5=>({..._0x45a9c5,'commands':_0x45a9c5[_0x441748(0x164)][_0x441748(0x15c)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x23e6de){const _0x2a257d=a89_0x2cec,_0x47a92f=_0x23e6de;return{..._0x23e6de,'auth':_0x47a92f[_0x2a257d(0x158)]??(_0x23e6de[_0x2a257d(0x15e)]?_0x2a257d(0x153):_0x2a257d(0x156))};}
@@ -1 +1 @@
1
- function a90_0x9819(){const _0x1738d8=['7982320oFsvhW','service','11688750xqELQC','50ASuPBA','5173998LjOdAF','1678761TAqftC','slice','1076633SVsQCY','326085tFWNVv','20zRMiMQ','findIndex','33867HAKsnP','length'];a90_0x9819=function(){return _0x1738d8;};return a90_0x9819();}(function(_0x4c7466,_0x556ee6){const _0x4bf8f1=a90_0x14ab,_0x228856=_0x4c7466();while(!![]){try{const _0x315747=-parseInt(_0x4bf8f1(0xfc))/0x1+parseInt(_0x4bf8f1(0xf8))/0x2*(parseInt(_0x4bf8f1(0x100))/0x3)+parseInt(_0x4bf8f1(0xfe))/0x4*(-parseInt(_0x4bf8f1(0xfd))/0x5)+-parseInt(_0x4bf8f1(0xf9))/0x6+parseInt(_0x4bf8f1(0xfa))/0x7+parseInt(_0x4bf8f1(0x102))/0x8+parseInt(_0x4bf8f1(0x104))/0x9;if(_0x315747===_0x556ee6)break;else _0x228856['push'](_0x228856['shift']());}catch(_0xfd3ba9){_0x228856['push'](_0x228856['shift']());}}}(a90_0x9819,0x87241));function a90_0x14ab(_0x105877,_0x563bee){_0x105877=_0x105877-0xf8;const _0x981955=a90_0x9819();let _0x14ab7a=_0x981955[_0x105877];return _0x14ab7a;}export function insertDynamicServicesAfterServiceTree(_0x336975,_0x5ef5a8){const _0x14fb96=a90_0x14ab;if(_0x5ef5a8[_0x14fb96(0x101)]===0x0)return[..._0x336975];const _0x33d873=_0x336975[_0x14fb96(0xff)](_0x20d0e4=>_0x20d0e4[_0x14fb96(0x103)]===_0x14fb96(0x103));if(_0x33d873<0x0)return[..._0x336975,..._0x5ef5a8];return[..._0x336975['slice'](0x0,_0x33d873+0x1),..._0x5ef5a8,..._0x336975[_0x14fb96(0xfb)](_0x33d873+0x1)];}
1
+ (function(_0x2ed7aa,_0x2eb7c5){const _0x22650e=a90_0x5bba,_0x48996d=_0x2ed7aa();while(!![]){try{const _0x1eb1ab=-parseInt(_0x22650e(0x16f))/0x1+parseInt(_0x22650e(0x17a))/0x2*(parseInt(_0x22650e(0x173))/0x3)+-parseInt(_0x22650e(0x179))/0x4*(-parseInt(_0x22650e(0x177))/0x5)+-parseInt(_0x22650e(0x170))/0x6*(-parseInt(_0x22650e(0x176))/0x7)+-parseInt(_0x22650e(0x175))/0x8*(parseInt(_0x22650e(0x178))/0x9)+parseInt(_0x22650e(0x171))/0xa+-parseInt(_0x22650e(0x174))/0xb*(parseInt(_0x22650e(0x17c))/0xc);if(_0x1eb1ab===_0x2eb7c5)break;else _0x48996d['push'](_0x48996d['shift']());}catch(_0x2986f6){_0x48996d['push'](_0x48996d['shift']());}}}(a90_0x577a,0xd37d5));function a90_0x577a(){const _0x83f5d5=['911981ntkRxk','20XceYFm','203976BAPduF','968052XPMpFo','2GewGhJ','length','120bDMxpZ','findIndex','900744sGuSzt','12yEpNBj','15276350qMjRsl','slice','3237114XeHDWz','804221CZrJKl','472BwHtJb'];a90_0x577a=function(){return _0x83f5d5;};return a90_0x577a();}function a90_0x5bba(_0x5355c0,_0x23be15){_0x5355c0=_0x5355c0-0x16f;const _0x577a60=a90_0x577a();let _0x5bbae7=_0x577a60[_0x5355c0];return _0x5bbae7;}export function insertDynamicServicesAfterServiceTree(_0x185a1d,_0xba72c7){const _0x5716b6=a90_0x5bba;if(_0xba72c7[_0x5716b6(0x17b)]===0x0)return[..._0x185a1d];const _0x1b12fa=_0x185a1d[_0x5716b6(0x17d)](_0x33e484=>_0x33e484['service']==='service');if(_0x1b12fa<0x0)return[..._0x185a1d,..._0xba72c7];return[..._0x185a1d[_0x5716b6(0x172)](0x0,_0x1b12fa+0x1),..._0xba72c7,..._0x185a1d[_0x5716b6(0x172)](_0x1b12fa+0x1)];}
@@ -1 +1 @@
1
- function a91_0x2e0e(){var _0x4255bc=['2955705SBxTpV','6818KUhReq','10mTpEYh','148ebfsTl','6095520WroKxi','6983532LhaxDi','1367hJbsRb','6006760RclhKz','16871643hcTBnm','10624ykMGfG'];a91_0x2e0e=function(){return _0x4255bc;};return a91_0x2e0e();}function a91_0x260a(_0x19dbde,_0x2bc571){_0x19dbde=_0x19dbde-0x197;var _0x2e0ee7=a91_0x2e0e();var _0x260a3b=_0x2e0ee7[_0x19dbde];return _0x260a3b;}(function(_0x464d0b,_0xb23793){var _0x25c26c=a91_0x260a,_0x261604=_0x464d0b();while(!![]){try{var _0x485796=parseInt(_0x25c26c(0x198))/0x1*(parseInt(_0x25c26c(0x19f))/0x2)+-parseInt(_0x25c26c(0x19c))/0x3+-parseInt(_0x25c26c(0x1a0))/0x4+parseInt(_0x25c26c(0x199))/0x5+-parseInt(_0x25c26c(0x197))/0x6+-parseInt(_0x25c26c(0x19d))/0x7*(-parseInt(_0x25c26c(0x19b))/0x8)+parseInt(_0x25c26c(0x19a))/0x9*(parseInt(_0x25c26c(0x19e))/0xa);if(_0x485796===_0xb23793)break;else _0x261604['push'](_0x261604['shift']());}catch(_0x2ce48e){_0x261604['push'](_0x261604['shift']());}}}(a91_0x2e0e,0xc2b84));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a91_0x57eb(){var _0x1d09fa=['8112BpQLKE','774756uduHTf','20410QgxZAE','8CRTmLE','4037zbGoPp','2072grwItN','885585hHGWmO','4572909gqypuu','2185998EyIyeJ','237826jNvUiP','6rEMSah'];a91_0x57eb=function(){return _0x1d09fa;};return a91_0x57eb();}(function(_0x5e5924,_0x3ea751){var _0x138f50=a91_0x38c2,_0x2dc0b2=_0x5e5924();while(!![]){try{var _0xd6e01f=parseInt(_0x138f50(0x157))/0x1+-parseInt(_0x138f50(0x154))/0x2*(-parseInt(_0x138f50(0x155))/0x3)+parseInt(_0x138f50(0x159))/0x4*(parseInt(_0x138f50(0x15c))/0x5)+-parseInt(_0x138f50(0x15e))/0x6+parseInt(_0x138f50(0x15b))/0x7*(-parseInt(_0x138f50(0x156))/0x8)+parseInt(_0x138f50(0x15d))/0x9+parseInt(_0x138f50(0x158))/0xa*(-parseInt(_0x138f50(0x15a))/0xb);if(_0xd6e01f===_0x3ea751)break;else _0x2dc0b2['push'](_0x2dc0b2['shift']());}catch(_0x20ee69){_0x2dc0b2['push'](_0x2dc0b2['shift']());}}}(a91_0x57eb,0x70a51));function a91_0x38c2(_0x18706c,_0x5be407){_0x18706c=_0x18706c-0x154;var _0x57eb00=a91_0x57eb();var _0x38c2a9=_0x57eb00[_0x18706c];return _0x38c2a9;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';