@lovrabet/lovrabet-cli 2.1.9 → 2.1.11-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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(_0x2008bd,_0x31bb84){const _0x1f906c=a74_0x4a5d,_0x575f7b=_0x2008bd();while(!![]){try{const _0x1eab50=-parseInt(_0x1f906c(0x24e))/0x1+-parseInt(_0x1f906c(0x1f7))/0x2*(parseInt(_0x1f906c(0x1ef))/0x3)+-parseInt(_0x1f906c(0x24a))/0x4+parseInt(_0x1f906c(0x22a))/0x5*(parseInt(_0x1f906c(0x232))/0x6)+-parseInt(_0x1f906c(0x1e0))/0x7*(parseInt(_0x1f906c(0x236))/0x8)+parseInt(_0x1f906c(0x242))/0x9+parseInt(_0x1f906c(0x25f))/0xa*(parseInt(_0x1f906c(0x204))/0xb);if(_0x1eab50===_0x31bb84)break;else _0x575f7b['push'](_0x575f7b['shift']());}catch(_0x529c08){_0x575f7b['push'](_0x575f7b['shift']());}}}(a74_0xc3cf,0xce6e9));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(_0x341984){_activeAK=_0x341984||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x24421e,_0x22c737={}){const _0x377452=a74_0x4a5d,{method:method=_0x377452(0x21c),body:_0x3cc6ba,headers:headers={},timeout:timeout=0x7530}=_0x22c737,_0x5724db=_activeAK,_0x4726a7=getRuntimeDomain();if(!_0x5724db)throw CliErrors[_0x377452(0x247)](_0x377452(0x220)+PRODUCT_CONFIG[_0x377452(0x20a)]+'.');const _0x4f189c=''+_0x4726a7+_0x24421e,_0xbbc93={'X-User-AK':_0x5724db},_0x1f6ea9=new AbortController(),_0x50cab7=setTimeout(()=>_0x1f6ea9['abort'](),timeout);try{const _0xc27098=await fetch(_0x4f189c,{'method':method,'headers':{'Content-Type':_0x377452(0x235),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0xbbc93,...headers},'body':_0x3cc6ba?JSON[_0x377452(0x1e1)](_0x3cc6ba):undefined,'signal':_0x1f6ea9['signal']});let _0xe32259;try{_0xe32259=await _0xc27098['json']();}catch{throw CliErrors[_0x377452(0x22f)](_0x377452(0x209)+_0xc27098[_0x377452(0x1fd)]+')',_0xc27098[_0x377452(0x1fd)]>=0x190?_0x377452(0x1e2):undefined);}if(!_0xc27098['ok']||_0xe32259['success']===![])throw CliErrors[_0x377452(0x22f)](_0xe32259[_0x377452(0x228)]||_0xe32259[_0x377452(0x1de)]||_0x377452(0x212)+_0xc27098[_0x377452(0x1fd)],_0xe32259['errorCode']?_0x377452(0x23b)+_0xe32259['errorCode']:undefined);return _0xe32259;}catch(_0x26d8b2){if(_0x26d8b2 instanceof Error&&_0x26d8b2[_0x377452(0x1f1)]===_0x377452(0x1d6))throw CliErrors[_0x377452(0x22f)](_0x377452(0x1e3)+_0x4f189c);throw _0x26d8b2;}finally{clearTimeout(_0x50cab7);}}async function apiBinaryRequest(_0x1bab3a,_0x4f1bec={}){const _0x1cb921=a74_0x4a5d,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x4f1bec,_0x3ba0fe=_activeAK,_0x180e17=getRuntimeDomain();if(!_0x3ba0fe)throw CliErrors[_0x1cb921(0x247)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x1cb921(0x20a)]+'.');const _0x495abf=''+_0x180e17+_0x1bab3a,_0x209a69=new AbortController(),_0x1930f4=setTimeout(()=>_0x209a69[_0x1cb921(0x24f)](),timeout);try{const _0x40d631=await fetch(_0x495abf,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1cb921(0x210)],'X-User-AK':_0x3ba0fe,...headers},'signal':_0x209a69['signal']});if(!_0x40d631['ok']){let _0x342fe1;try{const _0x410819=await _0x40d631[_0x1cb921(0x1db)]();_0x342fe1=_0x410819[_0x1cb921(0x228)]||_0x410819['message']||_0x410819[_0x1cb921(0x244)];}catch{_0x342fe1=await _0x40d631[_0x1cb921(0x249)]()[_0x1cb921(0x1f3)](()=>undefined);}throw CliErrors[_0x1cb921(0x22f)](_0x342fe1||'API\x20error:\x20'+_0x40d631[_0x1cb921(0x1fd)],_0x1cb921(0x251)+_0x495abf);}return Buffer[_0x1cb921(0x254)](await _0x40d631[_0x1cb921(0x224)]());}catch(_0x5e6ef0){if(_0x5e6ef0 instanceof Error&&_0x5e6ef0[_0x1cb921(0x1f1)]===_0x1cb921(0x1d6))throw CliErrors[_0x1cb921(0x22f)]('Request\x20timeout:\x20'+_0x495abf);throw _0x5e6ef0;}finally{clearTimeout(_0x1930f4);}}async function apiFormRequest(_0x1383b5,_0x320aac,_0x4f9078={}){const _0x71bd66=a74_0x4a5d,{timeout:timeout=0x7530}=_0x4f9078,_0x296c1b=_activeAK,_0x5523c5=getRuntimeDomain();if(!_0x296c1b)throw CliErrors[_0x71bd66(0x247)](_0x71bd66(0x220)+PRODUCT_CONFIG[_0x71bd66(0x20a)]+'.');const _0x394edb=''+_0x5523c5+_0x1383b5,_0x57ae10=new AbortController(),_0x2cdacf=setTimeout(()=>_0x57ae10['abort'](),timeout);try{const _0x1c5dbf=await fetch(_0x394edb,{'method':_0x71bd66(0x20f),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x71bd66(0x210)],'X-User-AK':_0x296c1b},'body':_0x320aac,'signal':_0x57ae10['signal']});let _0x208d13;try{_0x208d13=await _0x1c5dbf[_0x71bd66(0x1db)]();}catch{throw CliErrors[_0x71bd66(0x22f)](_0x71bd66(0x209)+_0x1c5dbf[_0x71bd66(0x1fd)]+')',_0x1c5dbf[_0x71bd66(0x1fd)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x1c5dbf['ok']||_0x208d13[_0x71bd66(0x1f0)]===![])throw CliErrors['apiError'](_0x208d13[_0x71bd66(0x228)]||_0x208d13[_0x71bd66(0x1de)]||_0x71bd66(0x212)+_0x1c5dbf['status'],_0x208d13[_0x71bd66(0x244)]?_0x71bd66(0x23b)+_0x208d13[_0x71bd66(0x244)]:undefined);return _0x208d13;}catch(_0x42643c){if(_0x42643c instanceof Error&&_0x42643c[_0x71bd66(0x1f1)]===_0x71bd66(0x1d6))throw CliErrors[_0x71bd66(0x22f)](_0x71bd66(0x1e3)+_0x394edb);throw _0x42643c;}finally{clearTimeout(_0x2cdacf);}}async function toolboxRequest(_0x438a1a,_0x5ce519,_0x264c76={}){const _0x3db380=a74_0x4a5d,{method:method=_0x3db380(0x21c),headers:headers={},timeout:timeout=0x7530}=_0x264c76,_0x521045=_activeAK;if(!_0x521045)throw CliErrors[_0x3db380(0x247)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x3db380(0x20a)]+'.');const _0x59d045=getApiDomain()['replace'](/\/$/,''),_0x381396=new URL(_0x438a1a,_0x59d045+_0x3db380(0x256));if(_0x5ce519)for(const [_0x514af9,_0x153ef4]of Object[_0x3db380(0x219)](_0x5ce519)){_0x153ef4!==undefined&&_0x153ef4!==null&&_0x381396[_0x3db380(0x1ea)]['set'](_0x514af9,String(_0x153ef4));}const _0x4fa86a=new AbortController(),_0x5afad8=setTimeout(()=>_0x4fa86a[_0x3db380(0x24f)](),timeout);try{const _0x43a2a0=await fetch(_0x381396,{'method':method,'headers':{'Content-Type':_0x3db380(0x235),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x521045,...headers},'signal':_0x4fa86a[_0x3db380(0x1e4)]});let _0x550102;try{_0x550102=await _0x43a2a0[_0x3db380(0x1db)]();}catch{throw CliErrors[_0x3db380(0x22f)](_0x3db380(0x22e)+_0x43a2a0[_0x3db380(0x1fd)]+')',_0x43a2a0['status']>=0x190?_0x3db380(0x1e2):undefined);}if(!_0x43a2a0['ok']){const _0x286f69=_0x550102&&typeof _0x550102==='object'?_0x550102:{};throw CliErrors['apiError'](_0x286f69['errorMsg']||_0x286f69[_0x3db380(0x1de)]||'Toolbox\x20API\x20error:\x20'+_0x43a2a0[_0x3db380(0x1fd)],_0x286f69[_0x3db380(0x244)]?_0x3db380(0x1fc)+_0x286f69['errorCode']:undefined);}if(_0x550102&&typeof _0x550102==='object'&&_0x3db380(0x1f0)in _0x550102&&typeof _0x550102['success']===_0x3db380(0x257)){const _0x31abd8=_0x550102;if(!_0x31abd8[_0x3db380(0x1f0)])throw CliErrors[_0x3db380(0x22f)](_0x31abd8[_0x3db380(0x228)]||_0x31abd8[_0x3db380(0x1de)]||'Toolbox\x20API\x20error',_0x31abd8[_0x3db380(0x244)]?_0x3db380(0x1fc)+_0x31abd8[_0x3db380(0x244)]:undefined);return _0x31abd8[_0x3db380(0x211)];}return _0x550102;}catch(_0x3b9fab){if(_0x3b9fab instanceof Error&&_0x3b9fab[_0x3db380(0x1f1)]===_0x3db380(0x1d6))throw CliErrors[_0x3db380(0x22f)](_0x3db380(0x1e3)+_0x381396['toString']());throw _0x3b9fab;}finally{clearTimeout(_0x5afad8);}}async function skillHubJsonRequest(_0x297549,_0x3d0cf5={}){const _0x5f187c=a74_0x4a5d,{method:method=_0x5f187c(0x21c),query:_0x2ca2c4,body:_0x147bcf,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x3d0cf5,_0x808c7f=_activeAK;if(!_0x808c7f)throw CliErrors[_0x5f187c(0x247)](_0x5f187c(0x220)+PRODUCT_CONFIG[_0x5f187c(0x20a)]+'.');const _0x1c076f=getSkillHubDomain()[_0x5f187c(0x20e)](/\/$/,''),_0x120c4e=new URL(_0x297549,_0x1c076f+'/');if(_0x2ca2c4)for(const [_0x45e3d3,_0x57b524]of Object[_0x5f187c(0x219)](_0x2ca2c4)){_0x57b524!==undefined&&_0x57b524!==null&&_0x120c4e[_0x5f187c(0x1ea)]['set'](_0x45e3d3,String(_0x57b524));}const _0x91f3d0=new AbortController(),_0x158fe3=setTimeout(()=>_0x91f3d0[_0x5f187c(0x24f)](),timeout);try{const _0xbe00b5=await fetch(_0x120c4e['toString'](),{'method':method,'headers':{'Accept':_0x5f187c(0x235),'X-Invoke-Source':PRODUCT_CONFIG[_0x5f187c(0x210)],'X-User-AK':_0x808c7f,...headers},'body':_0x147bcf,'signal':_0x91f3d0['signal']});let _0x4e7638;try{_0x4e7638=await _0xbe00b5[_0x5f187c(0x1db)]();}catch{if(allowNotFound&&_0xbe00b5[_0x5f187c(0x1fd)]===0x194)return undefined;throw CliErrors[_0x5f187c(0x22f)]('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0xbe00b5['status']+')',_0xbe00b5[_0x5f187c(0x1fd)]>=0x190?_0x5f187c(0x1e2):undefined);}if(allowNotFound&&isSkillHubNotFoundResponse(_0xbe00b5['status'],_0x4e7638))return undefined;const _0x18dc38=!_0xbe00b5['ok']||_0x4e7638?.['success']===![]||typeof _0x4e7638?.[_0x5f187c(0x260)]===_0x5f187c(0x213)&&_0x4e7638[_0x5f187c(0x260)]>=0x190;if(_0x18dc38)throw CliErrors[_0x5f187c(0x22f)](_0x4e7638?.[_0x5f187c(0x228)]||_0x4e7638?.[_0x5f187c(0x1de)]||_0x4e7638?.[_0x5f187c(0x223)]||_0x5f187c(0x1d5)+_0xbe00b5[_0x5f187c(0x1fd)],_0x4e7638?.[_0x5f187c(0x244)]?_0x5f187c(0x217)+_0x4e7638[_0x5f187c(0x244)]:undefined);return _0x4e7638?.[_0x5f187c(0x211)]??_0x4e7638;}catch(_0x4a7210){if(_0x4a7210 instanceof Error&&_0x4a7210[_0x5f187c(0x1f1)]===_0x5f187c(0x1d6))throw CliErrors[_0x5f187c(0x22f)](_0x5f187c(0x1e3)+_0x120c4e[_0x5f187c(0x1e9)]());throw _0x4a7210;}finally{clearTimeout(_0x158fe3);}}function isSkillHubNotFoundResponse(_0x26a805,_0x1fd1fa){const _0x39c061=a74_0x4a5d;if(_0x26a805===0x194||_0x1fd1fa?.['code']===0x194)return!![];if(_0x26a805!==0x190&&_0x1fd1fa?.[_0x39c061(0x260)]!==0x190)return![];const _0x94955e=[_0x1fd1fa?.[_0x39c061(0x223)],_0x1fd1fa?.[_0x39c061(0x1de)],_0x1fd1fa?.[_0x39c061(0x228)],_0x1fd1fa?.[_0x39c061(0x218)]][_0x39c061(0x1e7)](_0x275935=>typeof _0x275935===_0x39c061(0x1ed))[_0x39c061(0x202)]('\x20');return/skill not found\b/i[_0x39c061(0x259)](_0x94955e);}async function skillHubBinaryRequest(_0x5dae8b,_0xb18f57={}){const _0x4de8ae=a74_0x4a5d,{query:_0x413e49,headers:headers={},timeout:timeout=0x7530}=_0xb18f57,_0x568e9c=_activeAK;if(!_0x568e9c)throw CliErrors['authRequired'](_0x4de8ae(0x220)+PRODUCT_CONFIG[_0x4de8ae(0x20a)]+'.');const _0x8e79a5=getSkillHubDomain()[_0x4de8ae(0x20e)](/\/$/,''),_0x3809b2=new URL(_0x5dae8b,_0x8e79a5+'/');if(_0x413e49)for(const [_0x18f6b6,_0x993c49]of Object[_0x4de8ae(0x219)](_0x413e49)){_0x993c49!==undefined&&_0x993c49!==null&&_0x3809b2['searchParams'][_0x4de8ae(0x243)](_0x18f6b6,String(_0x993c49));}const _0x5a354a=new AbortController(),_0x276519=setTimeout(()=>_0x5a354a[_0x4de8ae(0x24f)](),timeout);try{const _0x5158eb=await fetch(_0x3809b2['toString'](),{'method':_0x4de8ae(0x21c),'headers':{'Accept':_0x4de8ae(0x1d8),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x568e9c,...headers},'signal':_0x5a354a[_0x4de8ae(0x1e4)]});if(!_0x5158eb['ok']){let _0x5b79b8;try{const _0x9ec69d=await _0x5158eb['json']();_0x5b79b8=_0x9ec69d[_0x4de8ae(0x228)]||_0x9ec69d['message']||_0x9ec69d[_0x4de8ae(0x223)]||_0x9ec69d[_0x4de8ae(0x244)];}catch{_0x5b79b8=await _0x5158eb['text']()[_0x4de8ae(0x1f3)](()=>undefined);}throw CliErrors[_0x4de8ae(0x22f)](_0x5b79b8||_0x4de8ae(0x1d5)+_0x5158eb[_0x4de8ae(0x1fd)],'Download\x20failed:\x20'+_0x3809b2['toString']());}return Buffer[_0x4de8ae(0x254)](await _0x5158eb[_0x4de8ae(0x224)]());}catch(_0x59d52b){if(_0x59d52b instanceof Error&&_0x59d52b[_0x4de8ae(0x1f1)]==='AbortError')throw CliErrors[_0x4de8ae(0x22f)](_0x4de8ae(0x1e3)+_0x3809b2[_0x4de8ae(0x1e9)]());throw _0x59d52b;}finally{clearTimeout(_0x276519);}}export async function getBffScriptInfo(_0x20ad07){const _0x3b2068=a74_0x4a5d,_0x58098e=await apiRequest('/client/bff/query/'+_0x20ad07);if(!_0x58098e[_0x3b2068(0x211)])throw CliErrors[_0x3b2068(0x23c)](_0x3b2068(0x25d)+_0x20ad07);return _0x58098e[_0x3b2068(0x211)];}export async function getSqlQueryInfo(_0x82f2c,_0x25a872){const _0x374d15=a74_0x4a5d,_0x55d6df=await apiRequest(_0x374d15(0x252),{'method':'POST','body':{'appCode':_0x82f2c,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x25a872}}),_0x5ae265=_0x55d6df[_0x374d15(0x211)],_0x42a6ab=_0x5ae265&&typeof _0x5ae265===_0x374d15(0x24b)&&'tableData'in _0x5ae265?_0x5ae265[_0x374d15(0x25b)]?.[0x0]:_0x5ae265&&typeof _0x5ae265===_0x374d15(0x24b)&&_0x374d15(0x1fa)in _0x5ae265?_0x5ae265:undefined;if(!_0x42a6ab)throw CliErrors[_0x374d15(0x23c)](_0x374d15(0x201)+_0x25a872);return _0x42a6ab;}function isRemoteAppItem(_0x1ba88e){const _0xc672ae=a74_0x4a5d;return!!_0x1ba88e&&typeof _0x1ba88e===_0xc672ae(0x24b)&&typeof _0x1ba88e[_0xc672ae(0x250)]===_0xc672ae(0x1ed)&&typeof _0x1ba88e[_0xc672ae(0x20d)]===_0xc672ae(0x1ed);}function extractRemoteAppItems(_0x2e65f9){const _0x2c8dfd=a74_0x4a5d;if(Array[_0x2c8dfd(0x21d)](_0x2e65f9))return _0x2e65f9['filter'](isRemoteAppItem);if(!_0x2e65f9||typeof _0x2e65f9!==_0x2c8dfd(0x24b))throw CliErrors[_0x2c8dfd(0x22f)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x3b3412=_0x2e65f9;if(Array[_0x2c8dfd(0x21d)](_0x3b3412[_0x2c8dfd(0x25b)]))return _0x3b3412[_0x2c8dfd(0x25b)]['filter'](isRemoteAppItem);if(_0x3b3412[_0x2c8dfd(0x211)]&&typeof _0x3b3412[_0x2c8dfd(0x211)]===_0x2c8dfd(0x24b)){const _0x9ebe27=_0x3b3412[_0x2c8dfd(0x211)];if(Array['isArray'](_0x9ebe27[_0x2c8dfd(0x25b)]))return _0x9ebe27[_0x2c8dfd(0x25b)][_0x2c8dfd(0x1e7)](isRemoteAppItem);}throw CliErrors[_0x2c8dfd(0x22f)](_0x2c8dfd(0x261));}export async function getMyApps(){const _0x5323b7=a74_0x4a5d,_0x522721=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x522721[_0x5323b7(0x211)]);}export async function getLoginUserInfo(){const _0x373ecc=a74_0x4a5d,_0x2d6348=await apiRequest(_0x373ecc(0x1f2));if(!_0x2d6348[_0x373ecc(0x211)]||typeof _0x2d6348[_0x373ecc(0x211)]!==_0x373ecc(0x24b)||Array[_0x373ecc(0x21d)](_0x2d6348[_0x373ecc(0x211)]))throw CliErrors['apiError'](_0x373ecc(0x248));return _0x2d6348[_0x373ecc(0x211)];}export async function listDatasets(_0x1d38bc,_0x2b4d20){const _0x37e69c=a74_0x4a5d,_0x5894c3=await apiRequest(_0x37e69c(0x258),{'method':_0x37e69c(0x20f),'body':{'appCode':_0x1d38bc,..._0x2b4d20?.['code']&&{'code':_0x2b4d20[_0x37e69c(0x260)]},..._0x2b4d20?.['name']&&{'name':_0x2b4d20[_0x37e69c(0x1f1)]}}});return extractList(_0x5894c3[_0x37e69c(0x211)]);}export async function getDatasetDetail(_0x22d942){const _0xfaaba1=a74_0x4a5d,_0xc3aa00=await apiRequest(_0xfaaba1(0x245)+encodeURIComponent(_0x22d942));return _0xc3aa00['data'];}export async function getDatasetSdkUsageDoc(_0x42988f,_0x164fad){const _0x22d849=a74_0x4a5d,_0x422b9a=await toolboxRequest(_0x22d849(0x22b),{'datasetCode':_0x42988f,'appCode':_0x164fad});return typeof _0x422b9a?.[_0x22d849(0x1d7)]==='string'?_0x422b9a[_0x22d849(0x1d7)]:'';}export async function uploadRuntimeFile(_0x197d42,_0x35c004){const _0x48d3ce=a74_0x4a5d,_0x3d35b2=await readFile(_0x35c004),_0x3f4ff5=new FormData();_0x3f4ff5[_0x48d3ce(0x200)](_0x48d3ce(0x250),_0x197d42),_0x3f4ff5['append'](_0x48d3ce(0x229),new Blob([new Uint8Array(_0x3d35b2)]),basename(_0x35c004));const _0x1e2894=await apiFormRequest(_0x48d3ce(0x1df),_0x3f4ff5);return _0x1e2894['data'];}export async function queryRuntimeFileUrl(_0x147a54,_0x4c3d87={}){const _0x2adc90=a74_0x4a5d,_0x6ae499=await apiRequest(_0x2adc90(0x241),{'method':_0x2adc90(0x20f),'body':{'filePath':_0x147a54,'downloadFlag':_0x4c3d87['download']??![]}});return _0x6ae499[_0x2adc90(0x211)];}export async function recognizeRuntimeOcr(_0x1d1a3e,_0x111ec){const _0xc8ca54=a74_0x4a5d,_0x6f5495=await apiRequest(_0xc8ca54(0x1da),{'method':_0xc8ca54(0x20f),'body':{'appCode':_0x1d1a3e,'url':_0x111ec['url'],'type':_0x111ec[_0xc8ca54(0x25c)]}});return _0x6f5495['data'];}export async function getRuntimeAppConfigByKey(_0x201a6f,_0xc82d2e){const _0x493edb=a74_0x4a5d,_0x4a29cd=new URLSearchParams({'appCode':_0x201a6f,'key':_0xc82d2e}),_0x43663f=await apiRequest('/client/app-config/getByKey?'+_0x4a29cd[_0x493edb(0x1e9)]());if(!_0x43663f['data'])throw CliErrors['validation'](_0x493edb(0x203)+_0xc82d2e);return _0x43663f[_0x493edb(0x211)];}export async function listRuntimeArtifacts(_0x10c63f,_0x411bc2){const _0x437657=a74_0x4a5d,_0x2903b3=new URLSearchParams({'appCode':_0x10c63f});if(_0x411bc2?.['artifactType'])_0x2903b3[_0x437657(0x243)]('artifactType',_0x411bc2[_0x437657(0x23f)]);if(_0x411bc2?.[_0x437657(0x24d)])_0x2903b3['set']('source',_0x411bc2[_0x437657(0x24d)]);if(_0x411bc2?.[_0x437657(0x253)]!==undefined)_0x2903b3[_0x437657(0x243)]('favorite',String(_0x411bc2['favorite']));const _0x4ddcae=await apiRequest(_0x437657(0x1e8)+_0x2903b3[_0x437657(0x1e9)]());return Array[_0x437657(0x21d)](_0x4ddcae[_0x437657(0x211)])?_0x4ddcae['data']:[];}export async function getRuntimeArtifact(_0x1bcda7,_0x511a6e){const _0x4f0774=a74_0x4a5d,_0x35b863=await apiRequest(_0x4f0774(0x255)+_0x1bcda7+_0x4f0774(0x21e)+encodeURIComponent(_0x511a6e));if(!_0x35b863[_0x4f0774(0x211)])throw CliErrors[_0x4f0774(0x23c)]('Artifact\x20not\x20found:\x20id='+_0x1bcda7);return _0x35b863[_0x4f0774(0x211)];}export async function createRuntimeArtifact(_0x541789,_0x4a9bf9){const _0x3647bf=a74_0x4a5d,_0x5e2a25=await apiRequest(_0x3647bf(0x1dc),{'method':_0x3647bf(0x20f),'body':{'appCode':_0x541789,..._0x4a9bf9}});return _0x5e2a25['data'];}export async function updateRuntimeArtifact(_0x13b3f7,_0x52d5f7,_0x47bf01){const _0x2fe8e6=a74_0x4a5d,_0x1edb45=await apiRequest(_0x2fe8e6(0x255)+_0x13b3f7+_0x2fe8e6(0x227),{'method':_0x2fe8e6(0x20f),'body':{'appCode':_0x52d5f7,..._0x47bf01}});return _0x1edb45[_0x2fe8e6(0x211)];}export async function listPersonalBffs(_0x2ab16b){const _0xc52328=a74_0x4a5d,_0x44ee5e=await apiRequest(_0xc52328(0x1fb)+encodeURIComponent(_0x2ab16b));return Array[_0xc52328(0x21d)](_0x44ee5e[_0xc52328(0x211)])?_0x44ee5e['data']:[];}export async function getPersonalBff(_0x1beef7,_0x115412){const _0x121da9=a74_0x4a5d,_0x3c8bbe=await apiRequest(_0x121da9(0x221)+_0x1beef7+'?appCode='+encodeURIComponent(_0x115412));if(!_0x3c8bbe[_0x121da9(0x211)])throw CliErrors['validation']('Personal\x20BFF\x20not\x20found:\x20id='+_0x1beef7);return _0x3c8bbe['data'];}export async function createPersonalBff(_0x3e1236,_0x3ee784){const _0x30221c=a74_0x4a5d,_0x18f25a=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x30221c(0x20f),'body':{'appCode':_0x3e1236,..._0x3ee784}});return _0x18f25a[_0x30221c(0x211)];}export async function updatePersonalBff(_0x95c15c,_0x3edef2,_0x4d5d5d){const _0x4e4426=a74_0x4a5d,_0x251f7a=await apiRequest('/client/runtime-bff/personal/'+_0x95c15c+'/update',{'method':_0x4e4426(0x20f),'body':{'appCode':_0x3edef2,..._0x4d5d5d}});return _0x251f7a[_0x4e4426(0x211)];}function a74_0x4a5d(_0x5c1dc7,_0x50a942){_0x5c1dc7=_0x5c1dc7-0x1d5;const _0xc3cf39=a74_0xc3cf();let _0x4a5d95=_0xc3cf39[_0x5c1dc7];return _0x4a5d95;}function a74_0xc3cf(){const _0x1f0104=['appCode','Download\x20failed:\x20','/client/sql/query','favorite','from','/client/artifact/','/api/node-toolbox/','boolean','/client/dataset/list','test','skillName','tableData','type','BFF\x20script\x20not\x20found:\x20id=','Missing\x20Skill\x20package\x20payload.','486270IkcAtC','code','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','SkillHub\x20API\x20error:\x20','AbortError','markdown','application/octet-stream','query','/client/ocr','json','/client/artifact/create','toLowerCase','message','/client/uploadFile','12817zdOUHG','stringify','Check\x20your\x20credentials\x20and\x20try\x20again.','Request\x20timeout:\x20','signal','/client/knowledge-base/personal/list?appCode=','application/zip','filter','/client/artifact/list?','toString','searchParams','topK','warnings','string','/api/runtime/v1/namespaces/','3PEZxvb','success','name','/client/user/loginUserInfo','catch','/client/knowledge-base/personal/','/client/knowledge-base/personal/create','values','52082TdPPSn','items','/client/knowledge-base/search','sqlCode','/client/runtime-bff/personal/list?appCode=','Toolbox\x20error\x20code:\x20','status','namespace','description','append','SQL\x20query\x20not\x20found:\x20','join','App\x20config\x20not\x20found:\x20key=','385tKWuHj','/publish/validate','/skills','summary','publishedVersion','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','newConfigFileName','base64','visibility','appName','replace','POST','invokeSource','data','API\x20error:\x20','number','all','/versions/','PRIVATE','SkillHub\x20error\x20code:\x20','error','entries','resolvedVersion','displayName','GET','isArray','?appCode=','trim','Configure\x20accessKey\x20in\x20','/client/runtime-bff/personal/','version','msg','arrayBuffer','company','/api/cli/v1/skills/','/update','errorMsg','file','145ARLTdX','api-doc-generator','/download','ownerPreviewVersion','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','apiError','NAMESPACE_ONLY','skillCode','94368RrFMyJ','map','resolvedSlug','application/json','6632CinNWo','tags','packageBase64','personal','effective','API\x20error\x20code:\x20','validation','scope','errors','artifactType','slug','/client/queryFileUrl','15012270AoWaYb','set','errorCode','/client/dataset/get-driven-data?code=','undefined','authRequired','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','text','4141504jqUFec','object','headlineVersion','source','401226XWDEsd','abort'];a74_0xc3cf=function(){return _0x1f0104;};return a74_0xc3cf();}export async function executePersonalBff(_0x1884ef,_0x48d7aa,_0x3bf95d){const _0x40a563=await apiRequest('/client/runtime-bff/personal/'+_0x1884ef+'/execute?appCode='+encodeURIComponent(_0x48d7aa),{'method':'POST','body':_0x3bf95d});return _0x40a563['data'];}export async function listPersonalKnowledgeBaseItems(_0xe91373){const _0x3bbe7c=a74_0x4a5d,_0x5198a5=await apiRequest(_0x3bbe7c(0x1e5)+encodeURIComponent(_0xe91373));return Array['isArray'](_0x5198a5['data'])?_0x5198a5['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x4bcf46,_0x5bea35){const _0x5d4b71=a74_0x4a5d,_0x4f9ee9=await apiRequest(_0x5d4b71(0x1f4)+_0x4bcf46+_0x5d4b71(0x21e)+encodeURIComponent(_0x5bea35));if(!_0x4f9ee9[_0x5d4b71(0x211)])throw CliErrors[_0x5d4b71(0x23c)]('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0x4bcf46);return _0x4f9ee9[_0x5d4b71(0x211)];}export async function createPersonalKnowledgeBaseItem(_0x49e86f,_0x24534a){const _0x4c75db=a74_0x4a5d,_0x37b842=await apiRequest(_0x4c75db(0x1f5),{'method':_0x4c75db(0x20f),'body':{'appCode':_0x49e86f,..._0x24534a}});return _0x37b842[_0x4c75db(0x211)];}export async function updatePersonalKnowledgeBaseItem(_0x4e48a7,_0x500132,_0x598800){const _0x39fd51=a74_0x4a5d,_0x54b7b4=await apiRequest(_0x39fd51(0x1f4)+_0x4e48a7+_0x39fd51(0x227),{'method':'POST','body':{'appCode':_0x500132,..._0x598800}});return _0x54b7b4[_0x39fd51(0x211)];}export async function searchKnowledgeBase(_0x5b520a,_0x277fe){const _0x5ea696=a74_0x4a5d,_0x56ce8d=await apiRequest(_0x5ea696(0x1f9),{'method':'POST','body':{'appCode':_0x5b520a,'query':_0x277fe[_0x5ea696(0x1d9)],..._0x277fe[_0x5ea696(0x1eb)]!==undefined?{'topK':_0x277fe[_0x5ea696(0x1eb)]}:{}}});return Array[_0x5ea696(0x21d)](_0x56ce8d[_0x5ea696(0x211)])?_0x56ce8d[_0x5ea696(0x211)]:[];}export async function getRuntimeSkillByCode(_0x4a48cd,_0x51581a){const _0x3afa10=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0x4a48cd)+'/'+encodeURIComponent(_0x51581a),{'allowNotFound':!![]});return _0x3afa10?skillHubRuntimeDetailToRuntimeSkill(_0x3afa10):undefined;}export async function listRuntimeSkills(_0x44af4c){const _0x580cee=a74_0x4a5d,_0x3b4e71=await skillHubJsonRequest(_0x580cee(0x1ee)+encodeURIComponent(_0x44af4c[_0x580cee(0x250)])+_0x580cee(0x206),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x44af4c['appCode'],_0x3b4e71,_0x44af4c[_0x580cee(0x23d)]??'all',_0x44af4c[_0x580cee(0x260)]);}export async function listPersonalRuntimeSkills(_0x32bdc5){const _0xe8063d=a74_0x4a5d;return(await listRuntimeSkills({'appCode':_0x32bdc5,'scope':_0xe8063d(0x239)}))[_0xe8063d(0x239)];}export async function listCompanyRuntimeSkills(_0x2bdbad){const _0x46215e=a74_0x4a5d;return(await listRuntimeSkills({'appCode':_0x2bdbad,'scope':'company'}))[_0x46215e(0x225)];}export async function listVisibleRuntimeSkills(_0x1a32be){const _0x424d10=a74_0x4a5d;return(await listRuntimeSkills({'appCode':_0x1a32be,'scope':_0x424d10(0x214)}))[_0x424d10(0x23a)];}export async function createPersonalRuntimeSkill(_0x3c4707,_0x41593f){const _0x401108=a74_0x4a5d;return publishRuntimeSkill(_0x3c4707,_0x41593f,{'visibility':_0x401108(0x216)});}export async function updatePersonalRuntimeSkill(_0xdc6d4,_0x49c97e,_0x8a6352){const _0x11c8bd=a74_0x4a5d;return publishRuntimeSkill(_0x49c97e,{..._0x8a6352,'skillCode':_0x8a6352[_0x11c8bd(0x231)]??_0xdc6d4},{'visibility':_0x11c8bd(0x216)});}export async function publishCompanyRuntimeSkill(_0x23d961,_0x1dcc03,_0x462c8e={}){return publishRuntimeSkill(_0x23d961,_0x1dcc03,{'visibility':'NAMESPACE_ONLY','confirmWarnings':_0x462c8e['confirmWarnings']});}export async function validateRuntimeSkillPublish(_0x4c7654,_0x1f842c,_0x3b56b5){const _0x30f265=a74_0x4a5d,_0x5a136b=buildRuntimeSkillPublishForm(_0x1f842c,_0x3b56b5[_0x30f265(0x20c)]),_0x11a19a=await skillHubJsonRequest(_0x30f265(0x226)+encodeURIComponent(_0x4c7654)+_0x30f265(0x205),{'method':_0x30f265(0x20f),'body':_0x5a136b});return{'valid':_0x11a19a['valid']===!![],'errors':Array['isArray'](_0x11a19a[_0x30f265(0x23e)])?_0x11a19a[_0x30f265(0x23e)]:[],'warnings':Array['isArray'](_0x11a19a[_0x30f265(0x1ec)])?_0x11a19a[_0x30f265(0x1ec)]:[],'resolvedSlug':_0x11a19a[_0x30f265(0x234)],'resolvedVersion':_0x11a19a[_0x30f265(0x21a)]};}export async function downloadRuntimeSkillPackage(_0x31ef84,_0x403ef4,_0x4f0895,_0x45939e){const _0x33db71=a74_0x4a5d;void _0x31ef84;const _0x23195a=_0x45939e?_0x33db71(0x226)+encodeURIComponent(_0x4f0895)+'/'+encodeURIComponent(_0x403ef4)+_0x33db71(0x215)+encodeURIComponent(_0x45939e)+_0x33db71(0x22c):_0x33db71(0x226)+encodeURIComponent(_0x4f0895)+'/'+encodeURIComponent(_0x403ef4)+'/download';return skillHubBinaryRequest(_0x23195a);}async function publishRuntimeSkill(_0x55e4cf,_0x20e5e4,_0x4ea6de){const _0x20d05e=a74_0x4a5d,_0x4c063d=buildRuntimeSkillPublishForm(_0x20e5e4,_0x4ea6de[_0x20d05e(0x20c)]),_0x20b038=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x55e4cf)+'/publish',{'method':_0x20d05e(0x20f),'query':{'confirmWarnings':_0x4ea6de['confirmWarnings']===!![]?!![]:undefined},'body':_0x4c063d});return{'appCode':_0x20b038[_0x20d05e(0x1fe)]??_0x55e4cf,'skillCode':_0x20b038[_0x20d05e(0x240)]??_0x20e5e4[_0x20d05e(0x231)]??'','skillName':_0x20e5e4[_0x20d05e(0x25a)]??_0x20b038[_0x20d05e(0x240)]??_0x20e5e4['skillCode'],'description':_0x20e5e4[_0x20d05e(0x1ff)],'scope':skillHubVisibilityToScope(_0x20b038[_0x20d05e(0x20c)]??_0x4ea6de[_0x20d05e(0x20c)])??_0x20d05e(0x239),'version':_0x20b038[_0x20d05e(0x222)]??_0x20e5e4[_0x20d05e(0x222)],'tags':_0x20e5e4[_0x20d05e(0x237)],'content':_0x20e5e4['content']};}function buildRuntimeSkillPublishForm(_0x3399d1,_0x12614f){const _0x266298=a74_0x4a5d,_0x2492de=new FormData();return _0x2492de['set'](_0x266298(0x229),runtimeSkillPackageFile(_0x3399d1)),_0x3399d1['skillName']?.[_0x266298(0x21f)]()&&_0x2492de[_0x266298(0x243)](_0x266298(0x21b),_0x3399d1[_0x266298(0x25a)][_0x266298(0x21f)]()),_0x2492de[_0x266298(0x243)](_0x266298(0x20c),_0x12614f),_0x2492de;}function runtimeSkillPackageFile(_0x5e731f){const _0x4d19d5=a74_0x4a5d;if(!_0x5e731f[_0x4d19d5(0x238)])throw CliErrors[_0x4d19d5(0x23c)](_0x4d19d5(0x25e));const _0x133c4f=Buffer[_0x4d19d5(0x254)](_0x5e731f[_0x4d19d5(0x238)],_0x4d19d5(0x20b)),_0x14a7bd=new Blob([_0x133c4f],{'type':_0x4d19d5(0x1e6)}),_0xb3997e=(_0x5e731f['skillCode']||'skill')+'.zip';if(typeof File!==_0x4d19d5(0x246))return new File([_0x14a7bd],_0xb3997e,{'type':_0x4d19d5(0x1e6)});return _0x14a7bd;}function normalizeSkillHubRuntimeListResponse(_0x1a8b1c,_0x11c84f,_0x4b0850,_0x506bf2){const _0x4d0ee4=a74_0x4a5d,_0x4d1710=Array[_0x4d0ee4(0x21d)](_0x11c84f)?_0x11c84f:Array[_0x4d0ee4(0x21d)](_0x11c84f?.[_0x4d0ee4(0x1f8)])?_0x11c84f[_0x4d0ee4(0x1f8)]:[],_0xee76d7=_0x506bf2?.[_0x4d0ee4(0x21f)](),_0x39c1db=_0x4d1710[_0x4d0ee4(0x1e7)](_0x492981=>!_0xee76d7||_0x492981['slug']===_0xee76d7)[_0x4d0ee4(0x233)](skillHubRuntimeItemToRuntimeSkill)[_0x4d0ee4(0x1e7)](_0x5e551d=>Boolean(_0x5e551d)),_0x16071a=_0x39c1db[_0x4d0ee4(0x1e7)](_0x22a780=>_0x22a780['scope']===_0x4d0ee4(0x239)),_0x44e170=_0x39c1db['filter'](_0x381d8a=>_0x381d8a['scope']==='company');return{'appCode':_0x1a8b1c,'personal':_0x4b0850===_0x4d0ee4(0x225)?[]:_0x16071a,'company':_0x4b0850==='personal'?[]:_0x44e170,'effective':buildEffectiveRuntimeSkills(_0x16071a,_0x44e170,_0x4b0850)};}function skillHubRuntimeItemToRuntimeSkill(_0x5c42a4){const _0x101d34=a74_0x4a5d,_0x1f117c=_0x5c42a4[_0x101d34(0x240)]?.[_0x101d34(0x21f)](),_0x5a5fca=skillHubVisibilityToScope(_0x5c42a4[_0x101d34(0x20c)]);if(!_0x1f117c||!_0x5a5fca)return undefined;return{'id':_0x5c42a4['id'],'appCode':_0x5c42a4['namespace'],'skillCode':_0x1f117c,'skillName':_0x5c42a4[_0x101d34(0x21b)]??_0x1f117c,'description':_0x5c42a4[_0x101d34(0x207)],'scope':_0x5a5fca,'version':skillHubRuntimeItemVersion(_0x5c42a4),'status':_0x5c42a4[_0x101d34(0x1fd)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x5cdc91){const _0x21d455=a74_0x4a5d,_0x20ce1b=_0x5cdc91[_0x21d455(0x240)]?.[_0x21d455(0x21f)]();if(!_0x20ce1b)return undefined;return{'id':_0x5cdc91['id'],'appCode':_0x5cdc91['namespace'],'skillCode':_0x20ce1b,'skillName':_0x5cdc91[_0x21d455(0x21b)]??_0x20ce1b,'description':_0x5cdc91[_0x21d455(0x207)],'scope':skillHubVisibilityToScope(_0x5cdc91[_0x21d455(0x20c)])??_0x5cdc91[_0x21d455(0x20c)]?.[_0x21d455(0x1dd)](),'version':skillHubRuntimeItemVersion(_0x5cdc91),'status':_0x5cdc91['status']};}function skillHubVisibilityToScope(_0x209118){const _0x1daacb=a74_0x4a5d;if(_0x209118===_0x1daacb(0x216))return _0x1daacb(0x239);if(_0x209118===_0x1daacb(0x230))return _0x1daacb(0x225);return undefined;}function skillHubRuntimeItemVersion(_0x109fbb){const _0x55e2a5=a74_0x4a5d;return _0x109fbb[_0x55e2a5(0x208)]?.[_0x55e2a5(0x222)]??_0x109fbb[_0x55e2a5(0x24c)]?.[_0x55e2a5(0x222)]??_0x109fbb[_0x55e2a5(0x22d)]?.[_0x55e2a5(0x222)];}function buildEffectiveRuntimeSkills(_0x9b9cce,_0x39b7f3,_0x45f56c){const _0x154257=a74_0x4a5d;if(_0x45f56c===_0x154257(0x239))return _0x9b9cce;if(_0x45f56c===_0x154257(0x225))return _0x39b7f3;const _0x386d24=new Map();for(const _0x48ff19 of _0x39b7f3){_0x386d24[_0x154257(0x243)](_0x48ff19[_0x154257(0x231)],_0x48ff19);}for(const _0x524213 of _0x9b9cce){_0x386d24[_0x154257(0x243)](_0x524213[_0x154257(0x231)],_0x524213);}return Array['from'](_0x386d24[_0x154257(0x1f6)]());}function normalizeRuntimeSkillListResponse(_0x1e78d7,_0x1bf2b5){const _0x4ea5a6=a74_0x4a5d;if(Array[_0x4ea5a6(0x21d)](_0x1bf2b5)){const _0x1b4f30=_0x1bf2b5[_0x4ea5a6(0x1e7)](_0x1960d4=>_0x1960d4[_0x4ea5a6(0x23d)]==='personal'),_0x2efef6=_0x1bf2b5[_0x4ea5a6(0x1e7)](_0x3e3abe=>_0x3e3abe['scope']===_0x4ea5a6(0x225));return{'appCode':_0x1e78d7,'personal':_0x1b4f30,'company':_0x2efef6,'effective':[..._0x2efef6,..._0x1b4f30]};}return{'appCode':_0x1bf2b5?.[_0x4ea5a6(0x250)]??_0x1e78d7,'personal':Array['isArray'](_0x1bf2b5?.['personal'])?_0x1bf2b5[_0x4ea5a6(0x239)]:[],'company':Array[_0x4ea5a6(0x21d)](_0x1bf2b5?.[_0x4ea5a6(0x225)])?_0x1bf2b5[_0x4ea5a6(0x225)]:[],'effective':Array[_0x4ea5a6(0x21d)](_0x1bf2b5?.[_0x4ea5a6(0x23a)])?_0x1bf2b5[_0x4ea5a6(0x23a)]:[]};}
1
+ (function(_0x44916c,_0x20c190){const _0x51da2b=a74_0x369d,_0x519b97=_0x44916c();while(!![]){try{const _0x52ed9a=-parseInt(_0x51da2b(0x154))/0x1*(parseInt(_0x51da2b(0x197))/0x2)+parseInt(_0x51da2b(0x155))/0x3+parseInt(_0x51da2b(0x175))/0x4*(parseInt(_0x51da2b(0x190))/0x5)+-parseInt(_0x51da2b(0x16d))/0x6+-parseInt(_0x51da2b(0x145))/0x7*(-parseInt(_0x51da2b(0x19f))/0x8)+parseInt(_0x51da2b(0x162))/0x9*(-parseInt(_0x51da2b(0x16c))/0xa)+parseInt(_0x51da2b(0x191))/0xb*(parseInt(_0x51da2b(0x17c))/0xc);if(_0x52ed9a===_0x20c190)break;else _0x519b97['push'](_0x519b97['shift']());}catch(_0x2465f1){_0x519b97['push'](_0x519b97['shift']());}}}(a74_0x5d5f,0xf33fe));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(_0x34e4c9){_activeAK=_0x34e4c9||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x5df043,_0x11b263={}){const _0x1e03b0=a74_0x369d,{method:method='GET',body:_0x22d11e,headers:headers={},timeout:timeout=0x7530}=_0x11b263,_0x15df59=_activeAK,_0x523a6a=getRuntimeDomain();if(!_0x15df59)throw CliErrors[_0x1e03b0(0x19b)](_0x1e03b0(0x16b)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x20a0e5=''+_0x523a6a+_0x5df043,_0x18a15e={'X-User-AK':_0x15df59},_0x24af7e=new AbortController(),_0x23faf8=setTimeout(()=>_0x24af7e['abort'](),timeout);try{const _0x4986b1=await fetch(_0x20a0e5,{'method':method,'headers':{'Content-Type':_0x1e03b0(0x1a2),'X-Invoke-Source':PRODUCT_CONFIG[_0x1e03b0(0x15e)],..._0x18a15e,...headers},'body':_0x22d11e?JSON[_0x1e03b0(0x1a4)](_0x22d11e):undefined,'signal':_0x24af7e['signal']});let _0x3ca649;try{_0x3ca649=await _0x4986b1[_0x1e03b0(0x1d6)]();}catch{throw CliErrors[_0x1e03b0(0x14f)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x4986b1[_0x1e03b0(0x1a3)]+')',_0x4986b1[_0x1e03b0(0x1a3)]>=0x190?_0x1e03b0(0x1a9):undefined);}if(!_0x4986b1['ok']||_0x3ca649[_0x1e03b0(0x18a)]===![])throw CliErrors[_0x1e03b0(0x14f)](_0x3ca649[_0x1e03b0(0x1ad)]||_0x3ca649[_0x1e03b0(0x1b0)]||'API\x20error:\x20'+_0x4986b1['status'],_0x3ca649['errorCode']?'API\x20error\x20code:\x20'+_0x3ca649['errorCode']:undefined);return _0x3ca649;}catch(_0x130890){if(_0x130890 instanceof Error&&_0x130890['name']===_0x1e03b0(0x1b3))throw CliErrors[_0x1e03b0(0x14f)](_0x1e03b0(0x161)+_0x20a0e5);throw _0x130890;}finally{clearTimeout(_0x23faf8);}}async function apiBinaryRequest(_0x25adda,_0xfe5f7c={}){const _0x3940b9=a74_0x369d,{method:method=_0x3940b9(0x160),headers:headers={},timeout:timeout=0x7530}=_0xfe5f7c,_0x551fd7=_activeAK,_0x29e6fb=getRuntimeDomain();if(!_0x551fd7)throw CliErrors[_0x3940b9(0x19b)](_0x3940b9(0x16b)+PRODUCT_CONFIG[_0x3940b9(0x146)]+'.');const _0x540793=''+_0x29e6fb+_0x25adda,_0x3539f8=new AbortController(),_0x2612c6=setTimeout(()=>_0x3539f8['abort'](),timeout);try{const _0x372f02=await fetch(_0x540793,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3940b9(0x15e)],'X-User-AK':_0x551fd7,...headers},'signal':_0x3539f8[_0x3940b9(0x14d)]});if(!_0x372f02['ok']){let _0x2ee20f;try{const _0x2ec2ff=await _0x372f02[_0x3940b9(0x1d6)]();_0x2ee20f=_0x2ec2ff[_0x3940b9(0x1ad)]||_0x2ec2ff['message']||_0x2ec2ff[_0x3940b9(0x183)];}catch{_0x2ee20f=await _0x372f02[_0x3940b9(0x179)]()['catch'](()=>undefined);}throw CliErrors[_0x3940b9(0x14f)](_0x2ee20f||_0x3940b9(0x186)+_0x372f02['status'],'Download\x20failed:\x20'+_0x540793);}return Buffer['from'](await _0x372f02[_0x3940b9(0x1bf)]());}catch(_0x5c46d9){if(_0x5c46d9 instanceof Error&&_0x5c46d9[_0x3940b9(0x164)]===_0x3940b9(0x1b3))throw CliErrors['apiError'](_0x3940b9(0x161)+_0x540793);throw _0x5c46d9;}finally{clearTimeout(_0x2612c6);}}async function apiFormRequest(_0x4b0323,_0x1eb5d4,_0x1ccba8={}){const _0x47a56c=a74_0x369d,{timeout:timeout=0x7530}=_0x1ccba8,_0x5bca7e=_activeAK,_0xf76d5c=getRuntimeDomain();if(!_0x5bca7e)throw CliErrors[_0x47a56c(0x19b)](_0x47a56c(0x16b)+PRODUCT_CONFIG[_0x47a56c(0x146)]+'.');const _0x50f10f=''+_0xf76d5c+_0x4b0323,_0x4166f3=new AbortController(),_0xdadbec=setTimeout(()=>_0x4166f3[_0x47a56c(0x14a)](),timeout);try{const _0x1ac2bb=await fetch(_0x50f10f,{'method':_0x47a56c(0x184),'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x5bca7e},'body':_0x1eb5d4,'signal':_0x4166f3['signal']});let _0x2d0d55;try{_0x2d0d55=await _0x1ac2bb[_0x47a56c(0x1d6)]();}catch{throw CliErrors[_0x47a56c(0x14f)](_0x47a56c(0x173)+_0x1ac2bb[_0x47a56c(0x1a3)]+')',_0x1ac2bb[_0x47a56c(0x1a3)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x1ac2bb['ok']||_0x2d0d55['success']===![])throw CliErrors[_0x47a56c(0x14f)](_0x2d0d55[_0x47a56c(0x1ad)]||_0x2d0d55[_0x47a56c(0x1b0)]||_0x47a56c(0x186)+_0x1ac2bb[_0x47a56c(0x1a3)],_0x2d0d55['errorCode']?_0x47a56c(0x143)+_0x2d0d55[_0x47a56c(0x183)]:undefined);return _0x2d0d55;}catch(_0x28b820){if(_0x28b820 instanceof Error&&_0x28b820[_0x47a56c(0x164)]==='AbortError')throw CliErrors['apiError'](_0x47a56c(0x161)+_0x50f10f);throw _0x28b820;}finally{clearTimeout(_0xdadbec);}}async function toolboxRequest(_0x4a9522,_0x413a92,_0x338976={}){const _0x3d8686=a74_0x369d,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x338976,_0x579a33=_activeAK;if(!_0x579a33)throw CliErrors[_0x3d8686(0x19b)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x3d8686(0x146)]+'.');const _0x1a5472=getApiDomain()[_0x3d8686(0x17e)](/\/$/,''),_0x1fba3b=new URL(_0x4a9522,_0x1a5472+_0x3d8686(0x1c8));if(_0x413a92)for(const [_0x260371,_0x292a29]of Object[_0x3d8686(0x1c9)](_0x413a92)){_0x292a29!==undefined&&_0x292a29!==null&&_0x1fba3b[_0x3d8686(0x187)][_0x3d8686(0x148)](_0x260371,String(_0x292a29));}const _0x2e4a30=new AbortController(),_0x10ce19=setTimeout(()=>_0x2e4a30[_0x3d8686(0x14a)](),timeout);try{const _0x5d9cbc=await fetch(_0x1fba3b,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x3d8686(0x15e)],'X-User-AK':_0x579a33,...headers},'signal':_0x2e4a30[_0x3d8686(0x14d)]});let _0xe37611;try{_0xe37611=await _0x5d9cbc[_0x3d8686(0x1d6)]();}catch{throw CliErrors[_0x3d8686(0x14f)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x5d9cbc[_0x3d8686(0x1a3)]+')',_0x5d9cbc['status']>=0x190?_0x3d8686(0x1a9):undefined);}if(!_0x5d9cbc['ok']){const _0x41dd76=_0xe37611&&typeof _0xe37611===_0x3d8686(0x144)?_0xe37611:{};throw CliErrors[_0x3d8686(0x14f)](_0x41dd76[_0x3d8686(0x1ad)]||_0x41dd76['message']||_0x3d8686(0x14b)+_0x5d9cbc[_0x3d8686(0x1a3)],_0x41dd76[_0x3d8686(0x183)]?_0x3d8686(0x181)+_0x41dd76[_0x3d8686(0x183)]:undefined);}if(_0xe37611&&typeof _0xe37611===_0x3d8686(0x144)&&_0x3d8686(0x18a)in _0xe37611&&typeof _0xe37611['success']===_0x3d8686(0x1ac)){const _0x408722=_0xe37611;if(!_0x408722[_0x3d8686(0x18a)])throw CliErrors['apiError'](_0x408722[_0x3d8686(0x1ad)]||_0x408722['message']||_0x3d8686(0x169),_0x408722['errorCode']?_0x3d8686(0x181)+_0x408722[_0x3d8686(0x183)]:undefined);return _0x408722[_0x3d8686(0x151)];}return _0xe37611;}catch(_0x306976){if(_0x306976 instanceof Error&&_0x306976[_0x3d8686(0x164)]===_0x3d8686(0x1b3))throw CliErrors[_0x3d8686(0x14f)]('Request\x20timeout:\x20'+_0x1fba3b[_0x3d8686(0x15f)]());throw _0x306976;}finally{clearTimeout(_0x10ce19);}}async function skillHubJsonRequest(_0x5c5192,_0x45cc6b={}){const _0x411263=a74_0x369d,{method:method=_0x411263(0x160),query:_0x3c7f51,body:_0x25f7c0,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x45cc6b,_0x199644=_activeAK;if(!_0x199644)throw CliErrors['authRequired'](_0x411263(0x16b)+PRODUCT_CONFIG[_0x411263(0x146)]+'.');const _0x1f9d91=getSkillHubDomain()['replace'](/\/$/,''),_0x3968cc=new URL(_0x5c5192,_0x1f9d91+'/');if(_0x3c7f51)for(const [_0x4ba8fd,_0x580ece]of Object[_0x411263(0x1c9)](_0x3c7f51)){_0x580ece!==undefined&&_0x580ece!==null&&_0x3968cc['searchParams']['set'](_0x4ba8fd,String(_0x580ece));}const _0x1b1391=new AbortController(),_0x4c018e=setTimeout(()=>_0x1b1391[_0x411263(0x14a)](),timeout);try{const _0x442be4=await fetch(_0x3968cc[_0x411263(0x15f)](),{'method':method,'headers':{'Accept':_0x411263(0x1a2),'X-Invoke-Source':PRODUCT_CONFIG[_0x411263(0x15e)],'X-User-AK':_0x199644,...headers},'body':_0x25f7c0,'signal':_0x1b1391['signal']});let _0x30a8bd;try{_0x30a8bd=await _0x442be4[_0x411263(0x1d6)]();}catch{if(allowNotFound&&_0x442be4[_0x411263(0x1a3)]===0x194)return undefined;throw CliErrors[_0x411263(0x14f)]('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x442be4[_0x411263(0x1a3)]+')',_0x442be4['status']>=0x190?_0x411263(0x1a9):undefined);}if(allowNotFound&&isSkillHubNotFoundResponse(_0x442be4[_0x411263(0x1a3)],_0x30a8bd))return undefined;const _0x5c631e=!_0x442be4['ok']||_0x30a8bd?.['success']===![]||typeof _0x30a8bd?.[_0x411263(0x165)]===_0x411263(0x1d1)&&_0x30a8bd[_0x411263(0x165)]>=0x190;if(_0x5c631e)throw CliErrors[_0x411263(0x14f)](_0x30a8bd?.[_0x411263(0x1ad)]||_0x30a8bd?.[_0x411263(0x1b0)]||_0x30a8bd?.[_0x411263(0x1d0)]||'SkillHub\x20API\x20error:\x20'+_0x442be4['status'],_0x30a8bd?.['errorCode']?_0x411263(0x1b8)+_0x30a8bd[_0x411263(0x183)]:undefined);return _0x30a8bd?.[_0x411263(0x151)]??_0x30a8bd;}catch(_0x84f81a){if(_0x84f81a instanceof Error&&_0x84f81a[_0x411263(0x164)]===_0x411263(0x1b3))throw CliErrors[_0x411263(0x14f)]('Request\x20timeout:\x20'+_0x3968cc[_0x411263(0x15f)]());throw _0x84f81a;}finally{clearTimeout(_0x4c018e);}}function isSkillHubNotFoundResponse(_0x14962e,_0x4db804){const _0x265447=a74_0x369d;if(_0x14962e===0x194||_0x4db804?.[_0x265447(0x165)]===0x194)return!![];if(_0x14962e!==0x190&&_0x4db804?.['code']!==0x190)return![];const _0x49b930=[_0x4db804?.[_0x265447(0x1d0)],_0x4db804?.[_0x265447(0x1b0)],_0x4db804?.[_0x265447(0x1ad)],_0x4db804?.[_0x265447(0x1cc)]][_0x265447(0x1c5)](_0x3c7f05=>typeof _0x3c7f05===_0x265447(0x1cd))[_0x265447(0x174)]('\x20');return/skill not found\b/i['test'](_0x49b930);}async function skillHubBinaryRequest(_0xe5f6b1,_0x20e6a1={}){const _0x251340=a74_0x369d,{query:_0x5c3aa7,headers:headers={},timeout:timeout=0x7530}=_0x20e6a1,_0x5ddf7f=_activeAK;if(!_0x5ddf7f)throw CliErrors['authRequired'](_0x251340(0x16b)+PRODUCT_CONFIG[_0x251340(0x146)]+'.');const _0x1eb3b9=getSkillHubDomain()[_0x251340(0x17e)](/\/$/,''),_0x2be0bb=new URL(_0xe5f6b1,_0x1eb3b9+'/');if(_0x5c3aa7)for(const [_0xaf5e58,_0x4ef97e]of Object[_0x251340(0x1c9)](_0x5c3aa7)){_0x4ef97e!==undefined&&_0x4ef97e!==null&&_0x2be0bb['searchParams'][_0x251340(0x148)](_0xaf5e58,String(_0x4ef97e));}const _0x5b8d77=new AbortController(),_0x3c3d62=setTimeout(()=>_0x5b8d77[_0x251340(0x14a)](),timeout);try{const _0x120d0=await fetch(_0x2be0bb[_0x251340(0x15f)](),{'method':'GET','headers':{'Accept':_0x251340(0x1c1),'X-Invoke-Source':PRODUCT_CONFIG[_0x251340(0x15e)],'X-User-AK':_0x5ddf7f,...headers},'signal':_0x5b8d77[_0x251340(0x14d)]});if(!_0x120d0['ok']){let _0x4d56ec;try{const _0x4daec7=await _0x120d0[_0x251340(0x1d6)]();_0x4d56ec=_0x4daec7[_0x251340(0x1ad)]||_0x4daec7[_0x251340(0x1b0)]||_0x4daec7[_0x251340(0x1d0)]||_0x4daec7[_0x251340(0x183)];}catch{_0x4d56ec=await _0x120d0['text']()[_0x251340(0x182)](()=>undefined);}throw CliErrors[_0x251340(0x14f)](_0x4d56ec||_0x251340(0x1aa)+_0x120d0[_0x251340(0x1a3)],_0x251340(0x1b6)+_0x2be0bb['toString']());}return Buffer['from'](await _0x120d0[_0x251340(0x1bf)]());}catch(_0x1b3021){if(_0x1b3021 instanceof Error&&_0x1b3021['name']==='AbortError')throw CliErrors['apiError'](_0x251340(0x161)+_0x2be0bb[_0x251340(0x15f)]());throw _0x1b3021;}finally{clearTimeout(_0x3c3d62);}}export async function getBffScriptInfo(_0x3b0bc1){const _0x461afc=a74_0x369d,_0x1210e2=await apiRequest(_0x461afc(0x192)+_0x3b0bc1);if(!_0x1210e2['data'])throw CliErrors[_0x461afc(0x185)](_0x461afc(0x1c4)+_0x3b0bc1);return _0x1210e2['data'];}export async function getSqlQueryInfo(_0x2cab9c,_0x3cc770){const _0x5e0ec9=a74_0x369d,_0x3eb21f=await apiRequest('/client/sql/query',{'method':'POST','body':{'appCode':_0x2cab9c,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x3cc770}}),_0x5d9d75=_0x3eb21f[_0x5e0ec9(0x151)],_0xe5afe5=_0x5d9d75&&typeof _0x5d9d75===_0x5e0ec9(0x144)&&_0x5e0ec9(0x1b9)in _0x5d9d75?_0x5d9d75[_0x5e0ec9(0x1b9)]?.[0x0]:_0x5d9d75&&typeof _0x5d9d75===_0x5e0ec9(0x144)&&'sqlCode'in _0x5d9d75?_0x5d9d75:undefined;if(!_0xe5afe5)throw CliErrors[_0x5e0ec9(0x185)]('SQL\x20query\x20not\x20found:\x20'+_0x3cc770);return _0xe5afe5;}function isRemoteAppItem(_0x1f7d8f){const _0x2eb255=a74_0x369d;return!!_0x1f7d8f&&typeof _0x1f7d8f===_0x2eb255(0x144)&&typeof _0x1f7d8f[_0x2eb255(0x1bc)]===_0x2eb255(0x1cd)&&typeof _0x1f7d8f['appName']===_0x2eb255(0x1cd);}function extractRemoteAppItems(_0x2641af){const _0x1efa96=a74_0x369d;if(Array[_0x1efa96(0x1cb)](_0x2641af))return _0x2641af[_0x1efa96(0x1c5)](isRemoteAppItem);if(!_0x2641af||typeof _0x2641af!==_0x1efa96(0x144))throw CliErrors['apiError']('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x3b0718=_0x2641af;if(Array['isArray'](_0x3b0718[_0x1efa96(0x1b9)]))return _0x3b0718['tableData'][_0x1efa96(0x1c5)](isRemoteAppItem);if(_0x3b0718[_0x1efa96(0x151)]&&typeof _0x3b0718['data']===_0x1efa96(0x144)){const _0x4c3f89=_0x3b0718[_0x1efa96(0x151)];if(Array[_0x1efa96(0x1cb)](_0x4c3f89[_0x1efa96(0x1b9)]))return _0x4c3f89[_0x1efa96(0x1b9)][_0x1efa96(0x1c5)](isRemoteAppItem);}throw CliErrors[_0x1efa96(0x14f)](_0x1efa96(0x14c));}export async function getMyApps(){const _0x43d7e0=a74_0x369d,_0x50e316=await apiRequest(_0x43d7e0(0x19d));return extractRemoteAppItems(_0x50e316['data']);}export async function getLoginUserInfo(){const _0x5a180c=a74_0x369d,_0x3d40a2=await apiRequest(_0x5a180c(0x196));if(!_0x3d40a2[_0x5a180c(0x151)]||typeof _0x3d40a2[_0x5a180c(0x151)]!==_0x5a180c(0x144)||Array[_0x5a180c(0x1cb)](_0x3d40a2[_0x5a180c(0x151)]))throw CliErrors['apiError']('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x3d40a2['data'];}export async function listDatasets(_0x14d94c,_0x215ca4){const _0x58ab38=a74_0x369d,_0x5f4361=await apiRequest(_0x58ab38(0x1c6),{'method':'POST','body':{'appCode':_0x14d94c,..._0x215ca4?.[_0x58ab38(0x165)]&&{'code':_0x215ca4[_0x58ab38(0x165)]},..._0x215ca4?.['name']&&{'name':_0x215ca4[_0x58ab38(0x164)]}}});return extractList(_0x5f4361['data']);}export async function getDatasetDetail(_0x145dbb){const _0x584818=a74_0x369d,_0x4b267e=await apiRequest(_0x584818(0x17a)+encodeURIComponent(_0x145dbb));return _0x4b267e[_0x584818(0x151)];}export async function getDatasetSdkUsageDoc(_0x3a817a,_0x2edae3){const _0x31ee9b=a74_0x369d,_0x5de22f=await toolboxRequest('api-doc-generator',{'datasetCode':_0x3a817a,'appCode':_0x2edae3});return typeof _0x5de22f?.[_0x31ee9b(0x18d)]===_0x31ee9b(0x1cd)?_0x5de22f[_0x31ee9b(0x18d)]:'';}export async function uploadRuntimeFile(_0x4c2ef4,_0x2d42fe){const _0x2ed758=a74_0x369d,_0x2d856b=await readFile(_0x2d42fe),_0x4b2db7=new FormData();_0x4b2db7['append'](_0x2ed758(0x1bc),_0x4c2ef4),_0x4b2db7[_0x2ed758(0x1a6)](_0x2ed758(0x163),new Blob([new Uint8Array(_0x2d856b)]),basename(_0x2d42fe));const _0x1e94dd=await apiFormRequest(_0x2ed758(0x198),_0x4b2db7);return _0x1e94dd['data'];}export async function queryRuntimeFileUrl(_0x5da627,_0x4d4ed7={}){const _0x1e8cf7=a74_0x369d,_0x9895c0=await apiRequest(_0x1e8cf7(0x14e),{'method':'POST','body':{'filePath':_0x5da627,'downloadFlag':_0x4d4ed7[_0x1e8cf7(0x1a7)]??![]}});return _0x9895c0[_0x1e8cf7(0x151)];}export async function recognizeRuntimeOcr(_0x4c654b,_0x2ac698){const _0x2e63e0=a74_0x369d,_0x1b1ac0=await apiRequest('/client/ocr',{'method':_0x2e63e0(0x184),'body':{'appCode':_0x4c654b,'url':_0x2ac698[_0x2e63e0(0x153)],'type':_0x2ac698[_0x2e63e0(0x1a0)]}});return _0x1b1ac0[_0x2e63e0(0x151)];}function a74_0x369d(_0x264d94,_0x46ba0d){_0x264d94=_0x264d94-0x142;const _0x5d5f65=a74_0x5d5f();let _0x369ddc=_0x5d5f65[_0x264d94];return _0x369ddc;}export async function getRuntimeAppConfigByKey(_0x3431de,_0x13b449){const _0x5b44ab=a74_0x369d,_0x210c8a=new URLSearchParams({'appCode':_0x3431de,'key':_0x13b449}),_0x2fc3d1=await apiRequest(_0x5b44ab(0x1b1)+_0x210c8a[_0x5b44ab(0x15f)]());if(!_0x2fc3d1[_0x5b44ab(0x151)])throw CliErrors[_0x5b44ab(0x185)](_0x5b44ab(0x195)+_0x13b449);return _0x2fc3d1[_0x5b44ab(0x151)];}export async function listRuntimeArtifacts(_0x27f8e7,_0x5bc151){const _0x1863ef=a74_0x369d,_0x1d73d6=new URLSearchParams({'appCode':_0x27f8e7});if(_0x5bc151?.[_0x1863ef(0x19c)])_0x1d73d6[_0x1863ef(0x148)]('artifactType',_0x5bc151[_0x1863ef(0x19c)]);if(_0x5bc151?.[_0x1863ef(0x1ab)])_0x1d73d6[_0x1863ef(0x148)](_0x1863ef(0x1ab),_0x5bc151['source']);if(_0x5bc151?.[_0x1863ef(0x150)]!==undefined)_0x1d73d6[_0x1863ef(0x148)](_0x1863ef(0x150),String(_0x5bc151['favorite']));const _0xaf1ba=await apiRequest(_0x1863ef(0x1bb)+_0x1d73d6['toString']());return Array[_0x1863ef(0x1cb)](_0xaf1ba[_0x1863ef(0x151)])?_0xaf1ba[_0x1863ef(0x151)]:[];}export async function getRuntimeArtifact(_0x2c7846,_0x1719f2){const _0x336e89=a74_0x369d,_0x44c04b=await apiRequest(_0x336e89(0x149)+_0x2c7846+_0x336e89(0x188)+encodeURIComponent(_0x1719f2));if(!_0x44c04b[_0x336e89(0x151)])throw CliErrors[_0x336e89(0x185)](_0x336e89(0x15a)+_0x2c7846);return _0x44c04b[_0x336e89(0x151)];}export async function createRuntimeArtifact(_0x8a5a2a,_0x533718){const _0x5e65e7=a74_0x369d,_0x16f02e=await apiRequest(_0x5e65e7(0x17b),{'method':_0x5e65e7(0x184),'body':{'appCode':_0x8a5a2a,..._0x533718}});return _0x16f02e[_0x5e65e7(0x151)];}export async function updateRuntimeArtifact(_0x12667d,_0x7f5399,_0x322b4a){const _0x2193d8=a74_0x369d,_0x1850a3=await apiRequest('/client/artifact/'+_0x12667d+_0x2193d8(0x15b),{'method':'POST','body':{'appCode':_0x7f5399,..._0x322b4a}});return _0x1850a3[_0x2193d8(0x151)];}export async function listPersonalBffs(_0x30a533){const _0x576249=a74_0x369d,_0x29e181=await apiRequest(_0x576249(0x18e)+encodeURIComponent(_0x30a533));return Array[_0x576249(0x1cb)](_0x29e181[_0x576249(0x151)])?_0x29e181[_0x576249(0x151)]:[];}export async function getPersonalBff(_0x380036,_0x1d6063){const _0xda1015=a74_0x369d,_0x47b859=await apiRequest(_0xda1015(0x1b2)+_0x380036+_0xda1015(0x188)+encodeURIComponent(_0x1d6063));if(!_0x47b859[_0xda1015(0x151)])throw CliErrors['validation'](_0xda1015(0x1d3)+_0x380036);return _0x47b859[_0xda1015(0x151)];}export async function createPersonalBff(_0xe60a58,_0x4e0f93){const _0x1348a5=a74_0x369d,_0x23155f=await apiRequest('/client/runtime-bff/personal/create',{'method':'POST','body':{'appCode':_0xe60a58,..._0x4e0f93}});return _0x23155f[_0x1348a5(0x151)];}export async function updatePersonalBff(_0x548e16,_0x5982fa,_0x3caf08){const _0xfb4514=a74_0x369d,_0x168a9d=await apiRequest(_0xfb4514(0x1b2)+_0x548e16+_0xfb4514(0x15b),{'method':_0xfb4514(0x184),'body':{'appCode':_0x5982fa,..._0x3caf08}});return _0x168a9d[_0xfb4514(0x151)];}export async function executePersonalBff(_0x1bcada,_0x47e97e,_0x4b64cd){const _0x544af1=a74_0x369d,_0x377282=await apiRequest(_0x544af1(0x1b2)+_0x1bcada+_0x544af1(0x1be)+encodeURIComponent(_0x47e97e),{'method':_0x544af1(0x184),'body':_0x4b64cd});return _0x377282['data'];}export async function listPersonalKnowledgeBaseItems(_0x1f91a6){const _0x373af6=a74_0x369d,_0x4bf85d=await apiRequest(_0x373af6(0x189)+encodeURIComponent(_0x1f91a6));return Array[_0x373af6(0x1cb)](_0x4bf85d[_0x373af6(0x151)])?_0x4bf85d[_0x373af6(0x151)]:[];}export async function getPersonalKnowledgeBaseItem(_0x2f78f4,_0x5e2bde){const _0x2ea2e5=a74_0x369d,_0x170e73=await apiRequest(_0x2ea2e5(0x1cf)+_0x2f78f4+_0x2ea2e5(0x188)+encodeURIComponent(_0x5e2bde));if(!_0x170e73[_0x2ea2e5(0x151)])throw CliErrors[_0x2ea2e5(0x185)](_0x2ea2e5(0x1d5)+_0x2f78f4);return _0x170e73['data'];}export async function createPersonalKnowledgeBaseItem(_0x23f1a1,_0xd888ee){const _0x37a768=a74_0x369d,_0x178fa2=await apiRequest('/client/knowledge-base/personal/create',{'method':'POST','body':{'appCode':_0x23f1a1,..._0xd888ee}});return _0x178fa2[_0x37a768(0x151)];}export async function updatePersonalKnowledgeBaseItem(_0x17f158,_0xe6f288,_0xb62283){const _0x269545=a74_0x369d,_0x32f0c2=await apiRequest(_0x269545(0x1cf)+_0x17f158+_0x269545(0x15b),{'method':'POST','body':{'appCode':_0xe6f288,..._0xb62283}});return _0x32f0c2[_0x269545(0x151)];}export async function searchKnowledgeBase(_0x445a05,_0x5dfd5f){const _0x1877f7=a74_0x369d,_0xe8a994=await apiRequest(_0x1877f7(0x167),{'method':'POST','body':{'appCode':_0x445a05,'query':_0x5dfd5f[_0x1877f7(0x1c0)],..._0x5dfd5f[_0x1877f7(0x15d)]!==undefined?{'topK':_0x5dfd5f[_0x1877f7(0x15d)]}:{}}});return Array[_0x1877f7(0x1cb)](_0xe8a994['data'])?_0xe8a994['data']:[];}export async function getRuntimeSkillByCode(_0x3cd237,_0x270e91){const _0x4dae41=a74_0x369d,_0x5e6cf1=await skillHubJsonRequest(_0x4dae41(0x177)+encodeURIComponent(_0x3cd237)+'/'+encodeURIComponent(_0x270e91),{'allowNotFound':!![]});return _0x5e6cf1?skillHubRuntimeDetailToRuntimeSkill(_0x5e6cf1):undefined;}export async function listRuntimeSkills(_0x12070b){const _0x57be5d=a74_0x369d,_0x3ca2bc=await skillHubJsonRequest(_0x57be5d(0x1c3)+encodeURIComponent(_0x12070b[_0x57be5d(0x1bc)])+_0x57be5d(0x1c2),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x12070b[_0x57be5d(0x1bc)],_0x3ca2bc,_0x12070b[_0x57be5d(0x170)]??_0x57be5d(0x16f),_0x12070b[_0x57be5d(0x165)]);}export async function listPersonalRuntimeSkills(_0x45c65c){const _0x55902a=a74_0x369d;return(await listRuntimeSkills({'appCode':_0x45c65c,'scope':'personal'}))[_0x55902a(0x1a8)];}export async function listCompanyRuntimeSkills(_0x3f1ba4){const _0x2088f4=a74_0x369d;return(await listRuntimeSkills({'appCode':_0x3f1ba4,'scope':_0x2088f4(0x16e)}))['company'];}export async function listVisibleRuntimeSkills(_0x267b7b){const _0x280f90=a74_0x369d;return(await listRuntimeSkills({'appCode':_0x267b7b,'scope':_0x280f90(0x16f)}))['effective'];}export async function createPersonalRuntimeSkill(_0x3de17d,_0x2a3b13){const _0x4aadf9=a74_0x369d;return publishRuntimeSkill(_0x3de17d,_0x2a3b13,{'visibility':_0x4aadf9(0x142)});}export async function updatePersonalRuntimeSkill(_0x2e2336,_0x1193c0,_0x4eecd8){const _0x2042ea=a74_0x369d;return publishRuntimeSkill(_0x1193c0,{..._0x4eecd8,'skillCode':_0x4eecd8[_0x2042ea(0x16a)]??_0x2e2336},{'visibility':_0x2042ea(0x142)});}export async function publishCompanyRuntimeSkill(_0x44907e,_0x5a67bd,_0x38bc83={}){const _0x5e7c12=a74_0x369d;return publishRuntimeSkill(_0x44907e,_0x5a67bd,{'visibility':_0x5e7c12(0x1ba),'confirmWarnings':_0x38bc83[_0x5e7c12(0x194)]});}export async function validateRuntimeSkillPublish(_0x1fa30d,_0x459d65,_0x54520c){const _0xadbaf5=a74_0x369d,_0x5b6b11=buildRuntimeSkillPublishForm(_0x459d65,_0x54520c['visibility']),_0x25cf6f=await skillHubJsonRequest(_0xadbaf5(0x1d2)+encodeURIComponent(_0x1fa30d)+_0xadbaf5(0x1af),{'method':_0xadbaf5(0x184),'body':_0x5b6b11});return{'valid':_0x25cf6f[_0xadbaf5(0x1a5)]===!![],'errors':Array[_0xadbaf5(0x1cb)](_0x25cf6f[_0xadbaf5(0x1ca)])?_0x25cf6f[_0xadbaf5(0x1ca)]:[],'warnings':Array['isArray'](_0x25cf6f['warnings'])?_0x25cf6f[_0xadbaf5(0x147)]:[],'resolvedSlug':_0x25cf6f['resolvedSlug'],'resolvedVersion':_0x25cf6f[_0xadbaf5(0x178)]};}export async function downloadRuntimeSkillPackage(_0x3a9d59,_0xa8eb22,_0x2ae50c,_0x1c9f6a){const _0x3a2aae=a74_0x369d;void _0x3a9d59;const _0x4a9313=_0x1c9f6a?_0x3a2aae(0x1d2)+encodeURIComponent(_0x2ae50c)+'/'+encodeURIComponent(_0xa8eb22)+_0x3a2aae(0x19a)+encodeURIComponent(_0x1c9f6a)+_0x3a2aae(0x156):_0x3a2aae(0x1d2)+encodeURIComponent(_0x2ae50c)+'/'+encodeURIComponent(_0xa8eb22)+_0x3a2aae(0x156);return skillHubBinaryRequest(_0x4a9313);}async function publishRuntimeSkill(_0x2aa1ab,_0x35548a,_0x527e82){const _0x208eb4=a74_0x369d,_0x4330c9=buildRuntimeSkillPublishForm(_0x35548a,_0x527e82['visibility']),_0x519488=await skillHubJsonRequest(_0x208eb4(0x1d2)+encodeURIComponent(_0x2aa1ab)+_0x208eb4(0x193),{'method':_0x208eb4(0x184),'query':{'confirmWarnings':_0x527e82['confirmWarnings']===!![]?!![]:undefined},'body':_0x4330c9});return{'appCode':_0x519488['namespace']??_0x2aa1ab,'skillCode':_0x519488[_0x208eb4(0x1ae)]??_0x35548a[_0x208eb4(0x16a)]??'','skillName':_0x35548a[_0x208eb4(0x1b7)]??_0x519488['slug']??_0x35548a[_0x208eb4(0x16a)],'description':_0x35548a[_0x208eb4(0x152)],'scope':skillHubVisibilityToScope(_0x519488[_0x208eb4(0x158)]??_0x527e82[_0x208eb4(0x158)])??_0x208eb4(0x1a8),'version':_0x519488[_0x208eb4(0x157)]??_0x35548a[_0x208eb4(0x157)],'tags':_0x35548a[_0x208eb4(0x159)],'content':_0x35548a[_0x208eb4(0x1ce)]};}function buildRuntimeSkillPublishForm(_0xfb5172,_0x3159eb){const _0x3e69ba=a74_0x369d,_0x50eba8=new FormData();return _0x50eba8[_0x3e69ba(0x148)](_0x3e69ba(0x163),runtimeSkillPackageFile(_0xfb5172)),_0xfb5172[_0x3e69ba(0x1b7)]?.[_0x3e69ba(0x199)]()&&_0x50eba8[_0x3e69ba(0x148)]('displayName',_0xfb5172[_0x3e69ba(0x1b7)][_0x3e69ba(0x199)]()),_0x50eba8['set'](_0x3e69ba(0x158),_0x3159eb),_0x50eba8;}function runtimeSkillPackageFile(_0x4bd89b){const _0x56ab8d=a74_0x369d;if(!_0x4bd89b[_0x56ab8d(0x1b4)])throw CliErrors[_0x56ab8d(0x185)](_0x56ab8d(0x18b));const _0x25ceb7=Buffer[_0x56ab8d(0x176)](_0x4bd89b[_0x56ab8d(0x1b4)],_0x56ab8d(0x166)),_0x477c21=new Blob([_0x25ceb7],{'type':_0x56ab8d(0x1a1)}),_0x73f4f9=(_0x4bd89b[_0x56ab8d(0x16a)]||_0x56ab8d(0x1d4))+_0x56ab8d(0x1b5);if(typeof File!==_0x56ab8d(0x18c))return new File([_0x477c21],_0x73f4f9,{'type':'application/zip'});return _0x477c21;}function normalizeSkillHubRuntimeListResponse(_0x2de6aa,_0x376379,_0x54c5d3,_0x16682d){const _0x310582=a74_0x369d,_0x36509d=Array['isArray'](_0x376379)?_0x376379:Array[_0x310582(0x1cb)](_0x376379?.[_0x310582(0x18f)])?_0x376379['items']:[],_0x50ce1f=_0x16682d?.[_0x310582(0x199)](),_0x4f93ba=_0x36509d[_0x310582(0x1c5)](_0x4d92bd=>!_0x50ce1f||_0x4d92bd[_0x310582(0x1ae)]===_0x50ce1f)[_0x310582(0x17f)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x403331=>Boolean(_0x403331)),_0x53a547=_0x4f93ba['filter'](_0x4ff1c3=>_0x4ff1c3[_0x310582(0x170)]==='personal'),_0xd87fe=_0x4f93ba['filter'](_0x5ac025=>_0x5ac025[_0x310582(0x170)]==='company');return{'appCode':_0x2de6aa,'personal':_0x54c5d3===_0x310582(0x16e)?[]:_0x53a547,'company':_0x54c5d3===_0x310582(0x1a8)?[]:_0xd87fe,'effective':buildEffectiveRuntimeSkills(_0x53a547,_0xd87fe,_0x54c5d3)};}function skillHubRuntimeItemToRuntimeSkill(_0x58d9cf){const _0x5169f9=a74_0x369d,_0x1cb951=_0x58d9cf[_0x5169f9(0x1ae)]?.[_0x5169f9(0x199)](),_0x449a2e=skillHubVisibilityToScope(_0x58d9cf[_0x5169f9(0x158)]);if(!_0x1cb951||!_0x449a2e)return undefined;return{'id':_0x58d9cf['id'],'appCode':_0x58d9cf[_0x5169f9(0x171)],'skillCode':_0x1cb951,'skillName':_0x58d9cf[_0x5169f9(0x17d)]??_0x1cb951,'description':_0x58d9cf[_0x5169f9(0x15c)],'scope':_0x449a2e,'version':skillHubRuntimeItemVersion(_0x58d9cf),'status':_0x58d9cf[_0x5169f9(0x1a3)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x45c8ea){const _0x4b1479=a74_0x369d,_0x4a9f7a=_0x45c8ea[_0x4b1479(0x1ae)]?.[_0x4b1479(0x199)]();if(!_0x4a9f7a)return undefined;return{'id':_0x45c8ea['id'],'appCode':_0x45c8ea['namespace'],'skillCode':_0x4a9f7a,'skillName':_0x45c8ea[_0x4b1479(0x17d)]??_0x4a9f7a,'description':_0x45c8ea[_0x4b1479(0x15c)],'example':_0x45c8ea[_0x4b1479(0x1c7)],'scope':skillHubVisibilityToScope(_0x45c8ea[_0x4b1479(0x158)])??_0x45c8ea['visibility']?.[_0x4b1479(0x168)](),'version':skillHubRuntimeItemVersion(_0x45c8ea),'status':_0x45c8ea[_0x4b1479(0x1a3)]};}function a74_0x5d5f(){const _0x2eb75e=['personal','Check\x20your\x20credentials\x20and\x20try\x20again.','SkillHub\x20API\x20error:\x20','source','boolean','errorMsg','slug','/publish/validate','message','/client/app-config/getByKey?','/client/runtime-bff/personal/','AbortError','packageBase64','.zip','Download\x20failed:\x20','skillName','SkillHub\x20error\x20code:\x20','tableData','NAMESPACE_ONLY','/client/artifact/list?','appCode','headlineVersion','/execute?appCode=','arrayBuffer','query','application/octet-stream','/skills','/api/runtime/v1/namespaces/','BFF\x20script\x20not\x20found:\x20id=','filter','/client/dataset/list','example','/api/node-toolbox/','entries','errors','isArray','error','string','content','/client/knowledge-base/personal/','msg','number','/api/cli/v1/skills/','Personal\x20BFF\x20not\x20found:\x20id=','skill','Knowledge-base\x20entry\x20not\x20found:\x20id=','json','PRIVATE','API\x20error\x20code:\x20','object','112NBOjSV','newConfigFileName','warnings','set','/client/artifact/','abort','Toolbox\x20API\x20error:\x20','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','signal','/client/queryFileUrl','apiError','favorite','data','description','url','1563322ZVMHci','2156220GEBMoZ','/download','version','visibility','tags','Artifact\x20not\x20found:\x20id=','/update','summary','topK','invokeSource','toString','GET','Request\x20timeout:\x20','301203ZPSoFS','file','name','code','base64','/client/knowledge-base/search','toLowerCase','Toolbox\x20API\x20error','skillCode','Configure\x20accessKey\x20in\x20','80AKzzAG','8387532ftPfQF','company','all','scope','namespace','effective','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','join','282512QvfxKp','from','/api/v1/skills/','resolvedVersion','text','/client/dataset/get-driven-data?code=','/client/artifact/create','18324VdUnGw','displayName','replace','map','ownerPreviewVersion','Toolbox\x20error\x20code:\x20','catch','errorCode','POST','validation','API\x20error:\x20','searchParams','?appCode=','/client/knowledge-base/personal/list?appCode=','success','Missing\x20Skill\x20package\x20payload.','undefined','markdown','/client/runtime-bff/personal/list?appCode=','items','60duklqN','11814inYUlN','/client/bff/query/','/publish','confirmWarnings','App\x20config\x20not\x20found:\x20key=','/client/user/loginUserInfo','2zNaKPm','/client/uploadFile','trim','/versions/','authRequired','artifactType','/client/app/my-apps','publishedVersion','509528TWRKRZ','type','application/zip','application/json','status','stringify','valid','append','download'];a74_0x5d5f=function(){return _0x2eb75e;};return a74_0x5d5f();}function skillHubVisibilityToScope(_0x131512){const _0x506f9c=a74_0x369d;if(_0x131512===_0x506f9c(0x142))return _0x506f9c(0x1a8);if(_0x131512===_0x506f9c(0x1ba))return'company';return undefined;}function skillHubRuntimeItemVersion(_0x44f1a0){const _0x4bd083=a74_0x369d;return _0x44f1a0[_0x4bd083(0x19e)]?.[_0x4bd083(0x157)]??_0x44f1a0[_0x4bd083(0x1bd)]?.[_0x4bd083(0x157)]??_0x44f1a0[_0x4bd083(0x180)]?.[_0x4bd083(0x157)];}function buildEffectiveRuntimeSkills(_0xe6c0c5,_0x1c6f95,_0xcdd1e2){const _0xac4b31=a74_0x369d;if(_0xcdd1e2===_0xac4b31(0x1a8))return _0xe6c0c5;if(_0xcdd1e2===_0xac4b31(0x16e))return _0x1c6f95;const _0x35a8b9=new Map();for(const _0x493ff9 of _0x1c6f95){_0x35a8b9['set'](_0x493ff9[_0xac4b31(0x16a)],_0x493ff9);}for(const _0x285764 of _0xe6c0c5){_0x35a8b9[_0xac4b31(0x148)](_0x285764[_0xac4b31(0x16a)],_0x285764);}return Array[_0xac4b31(0x176)](_0x35a8b9['values']());}function normalizeRuntimeSkillListResponse(_0x37bbc5,_0x49d232){const _0x143e66=a74_0x369d;if(Array[_0x143e66(0x1cb)](_0x49d232)){const _0x380b40=_0x49d232[_0x143e66(0x1c5)](_0x5e6b97=>_0x5e6b97[_0x143e66(0x170)]==='personal'),_0x45e99b=_0x49d232[_0x143e66(0x1c5)](_0x2cad3c=>_0x2cad3c[_0x143e66(0x170)]===_0x143e66(0x16e));return{'appCode':_0x37bbc5,'personal':_0x380b40,'company':_0x45e99b,'effective':[..._0x45e99b,..._0x380b40]};}return{'appCode':_0x49d232?.[_0x143e66(0x1bc)]??_0x37bbc5,'personal':Array[_0x143e66(0x1cb)](_0x49d232?.[_0x143e66(0x1a8)])?_0x49d232[_0x143e66(0x1a8)]:[],'company':Array[_0x143e66(0x1cb)](_0x49d232?.[_0x143e66(0x16e)])?_0x49d232[_0x143e66(0x16e)]:[],'effective':Array['isArray'](_0x49d232?.[_0x143e66(0x172)])?_0x49d232[_0x143e66(0x172)]:[]};}
@@ -1 +1 @@
1
- (function(_0x58d0ca,_0x1b25d3){const _0x5c4047=a75_0x37f6,_0xb5e7d5=_0x58d0ca();while(!![]){try{const _0x2a0453=-parseInt(_0x5c4047(0x1be))/0x1+parseInt(_0x5c4047(0x1c8))/0x2*(-parseInt(_0x5c4047(0x1cf))/0x3)+parseInt(_0x5c4047(0x1c5))/0x4*(parseInt(_0x5c4047(0x1cb))/0x5)+parseInt(_0x5c4047(0x1c1))/0x6*(parseInt(_0x5c4047(0x1ce))/0x7)+-parseInt(_0x5c4047(0x1c4))/0x8+-parseInt(_0x5c4047(0x1bd))/0x9*(-parseInt(_0x5c4047(0x1c9))/0xa)+parseInt(_0x5c4047(0x1c3))/0xb*(parseInt(_0x5c4047(0x1ca))/0xc);if(_0x2a0453===_0x1b25d3)break;else _0xb5e7d5['push'](_0xb5e7d5['shift']());}catch(_0x355b72){_0xb5e7d5['push'](_0xb5e7d5['shift']());}}}(a75_0x7dc2,0x7f834));function a75_0x37f6(_0x980ba9,_0x29b5af){_0x980ba9=_0x980ba9-0x1bd;const _0x7dc2e3=a75_0x7dc2();let _0x37f661=_0x7dc2e3[_0x980ba9];return _0x37f661;}import{listDatasets}from'../core/api-client.js';const cache=new Map();function a75_0x7dc2(){const _0x559fec=['set','dbId','12TtgAAf','db-','11fSAStm','2282368NhlmXt','2923124abDzsb','find','has','2qsaole','20200XuCSsx','1481544fleDlV','5UPVoCF','get','entries','3375407aCKtBU','1717137euHwAX','dbtableConfig','1467CMRbkO','767938lBMifi'];a75_0x7dc2=function(){return _0x559fec;};return a75_0x7dc2();}export async function listDatabases(_0x52b914){const _0x507d0c=a75_0x37f6;if(cache[_0x507d0c(0x1c7)](_0x52b914))return cache[_0x507d0c(0x1cc)](_0x52b914);const _0x93258b=await listDatasets(_0x52b914),_0x5819cf=new Map();for(const _0x7d990a of _0x93258b){const _0x588da3=_0x7d990a[_0x507d0c(0x1d0)];_0x588da3?.[_0x507d0c(0x1c0)]!=null&&_0x5819cf[_0x507d0c(0x1bf)](_0x588da3['dbId'],_0x588da3['dbName']??_0x507d0c(0x1c2)+_0x588da3['dbId']);}const _0x462777=[..._0x5819cf[_0x507d0c(0x1cd)]()]['map'](([_0x229f4e,_0x5c4777])=>({'dbId':_0x229f4e,'dbName':_0x5c4777}));return cache[_0x507d0c(0x1bf)](_0x52b914,_0x462777),_0x462777;}export async function getDbName(_0x39e9de,_0x3640c7){const _0x34a38e=a75_0x37f6;try{const _0x1278d9=await listDatabases(_0x39e9de);return _0x1278d9[_0x34a38e(0x1c6)](_0x4a1b30=>_0x4a1b30[_0x34a38e(0x1c0)]===_0x3640c7)?.['dbName'];}catch{return undefined;}}
1
+ (function(_0x3e86ab,_0x249a6b){const _0x4b3425=a75_0x4ab2,_0x1ac28b=_0x3e86ab();while(!![]){try{const _0x437cff=-parseInt(_0x4b3425(0x1a5))/0x1*(-parseInt(_0x4b3425(0x1a9))/0x2)+parseInt(_0x4b3425(0x1a4))/0x3*(parseInt(_0x4b3425(0x1a8))/0x4)+parseInt(_0x4b3425(0x1a1))/0x5*(parseInt(_0x4b3425(0x19d))/0x6)+-parseInt(_0x4b3425(0x1a2))/0x7*(parseInt(_0x4b3425(0x19e))/0x8)+-parseInt(_0x4b3425(0x197))/0x9*(-parseInt(_0x4b3425(0x199))/0xa)+parseInt(_0x4b3425(0x1a0))/0xb+-parseInt(_0x4b3425(0x1a6))/0xc*(parseInt(_0x4b3425(0x1a7))/0xd);if(_0x437cff===_0x249a6b)break;else _0x1ac28b['push'](_0x1ac28b['shift']());}catch(_0x23ead1){_0x1ac28b['push'](_0x1ac28b['shift']());}}}(a75_0x5066,0x56f29));function a75_0x4ab2(_0x3b37f4,_0x34567d){_0x3b37f4=_0x3b37f4-0x195;const _0x5066c5=a75_0x5066();let _0x4ab232=_0x5066c5[_0x3b37f4];return _0x4ab232;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x318190){const _0x4e9ec4=a75_0x4ab2;if(cache[_0x4e9ec4(0x195)](_0x318190))return cache[_0x4e9ec4(0x196)](_0x318190);const _0x586d48=await listDatasets(_0x318190),_0x2840f9=new Map();for(const _0xef7ff5 of _0x586d48){const _0x24db37=_0xef7ff5[_0x4e9ec4(0x198)];_0x24db37?.['dbId']!=null&&_0x2840f9[_0x4e9ec4(0x19c)](_0x24db37['dbId'],_0x24db37[_0x4e9ec4(0x1a3)]??_0x4e9ec4(0x19f)+_0x24db37['dbId']);}const _0x1768c3=[..._0x2840f9['entries']()][_0x4e9ec4(0x19b)](([_0x3f3a2c,_0x25a443])=>({'dbId':_0x3f3a2c,'dbName':_0x25a443}));return cache[_0x4e9ec4(0x19c)](_0x318190,_0x1768c3),_0x1768c3;}function a75_0x5066(){const _0x855d4f=['802274WecqMF','691575gZwehd','7CvyUGy','dbName','2487gMfzpP','2jFskuZ','6455004YDurQG','13jfFAQn','1132CaQGES','164572sbjzkD','has','get','18rCmvPT','dbtableConfig','2940720eMwGEH','find','map','set','6zhaQeG','2436144qvDvNs','db-'];a75_0x5066=function(){return _0x855d4f;};return a75_0x5066();}export async function getDbName(_0x1d91c6,_0x2a8536){const _0x4fa72a=a75_0x4ab2;try{const _0x4d6498=await listDatabases(_0x1d91c6);return _0x4d6498[_0x4fa72a(0x19a)](_0x3af4d7=>_0x3af4d7['dbId']===_0x2a8536)?.[_0x4fa72a(0x1a3)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x447f76,_0x133b97){const _0x5c7f25=a76_0x4b5a,_0x554e68=_0x447f76();while(!![]){try{const _0x5e1072=parseInt(_0x5c7f25(0xcf))/0x1*(parseInt(_0x5c7f25(0xcb))/0x2)+-parseInt(_0x5c7f25(0xc5))/0x3*(parseInt(_0x5c7f25(0xea))/0x4)+-parseInt(_0x5c7f25(0xd7))/0x5*(-parseInt(_0x5c7f25(0xd2))/0x6)+parseInt(_0x5c7f25(0xe1))/0x7*(-parseInt(_0x5c7f25(0xce))/0x8)+parseInt(_0x5c7f25(0xde))/0x9+-parseInt(_0x5c7f25(0xe4))/0xa+parseInt(_0x5c7f25(0xca))/0xb*(parseInt(_0x5c7f25(0xe3))/0xc);if(_0x5e1072===_0x133b97)break;else _0x554e68['push'](_0x554e68['shift']());}catch(_0x3c418b){_0x554e68['push'](_0x554e68['shift']());}}}(a76_0x473c,0x78ae5));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x228368){const _0x88de3e=a76_0x4b5a;_client=createClient({'appCode':_0x228368[_0x88de3e(0xdf)],'env':_0x228368[_0x88de3e(0xd6)],'authMode':_0x228368[_0x88de3e(0xe7)],..._0x228368[_0x88de3e(0xcc)]?{'accessKey':_0x228368[_0x88de3e(0xcc)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}function a76_0x473c(){const _0x1da7e0=['5462710UVAaUB','dataset_','isArray','authMode','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','trim','4rhgash','2703HwzIDt','execute','column','data\x20aggregate\x20--params.aggregate[','getOne','11DsQeFM','308030bSIqdc','accessKey','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','776zQVvem','5TmOsGK',']\x20must\x20be\x20an\x20object.','string','42mHMzfb','batchCreate','bff','field','env','163045vuEzQf','models','update','delete','aggregate','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','sql','1346589ciMnQK','appCode','validation','29799kqPHVc','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','3677412rPvqzg'];a76_0x473c=function(){return _0x1da7e0;};return a76_0x473c();}function ensureClient(){const _0x5f464d=a76_0x4b5a;if(!_client)throw new Error(_0x5f464d(0xe8));return _client;}function normalizeAggregateParams(_0x2bb770){const _0x1dd314=a76_0x4b5a,_0x3360eb=_0x2bb770[_0x1dd314(0xdb)];if(_0x3360eb===undefined)return _0x2bb770;if(!Array['isArray'](_0x3360eb))throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x2bb770,'aggregate':_0x3360eb['map']((_0x3280fb,_0xdd8ecc)=>{const _0xefa8d5=_0x1dd314;if(!_0x3280fb||typeof _0x3280fb!=='object'||Array[_0xefa8d5(0xe6)](_0x3280fb))throw CliErrors[_0xefa8d5(0xe0)]('data\x20aggregate\x20--params.aggregate['+_0xdd8ecc+_0xefa8d5(0xd0));const _0x48cd01=_0x3280fb[_0xefa8d5(0xc7)]??_0x3280fb['field'];if(typeof _0x48cd01!==_0xefa8d5(0xd1)||_0x48cd01[_0xefa8d5(0xe9)]()==='')throw CliErrors['validation'](_0xefa8d5(0xc8)+_0xdd8ecc+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x48c477={..._0x3280fb,'column':_0x48cd01};return delete _0x48c477[_0xefa8d5(0xd5)],_0x48c477;})};}function a76_0x4b5a(_0x443275,_0x567eef){_0x443275=_0x443275-0xc5;const _0x473c2e=a76_0x473c();let _0x4b5aa0=_0x473c2e[_0x443275];return _0x4b5aa0;}export async function executeData(_0x25f57a,_0x27e627,_0x45cb25){const _0x32169a=a76_0x4b5a,_0x526ea2=ensureClient(),_0x595670=_0x32169a(0xe5)+_0x25f57a,_0x1357d0=_0x526ea2[_0x32169a(0xd8)][_0x595670];if(!_0x1357d0||typeof _0x1357d0[_0x27e627]!=='function')throw new Error(_0x32169a(0xe2)+_0x27e627+'\x22.\x20'+_0x32169a(0xcd));if(_0x27e627===_0x32169a(0xd3))return _0x1357d0[_0x32169a(0xd3)](parseBatchCreateItemsFromParams(_0x45cb25));const _0x4aca84=_0x45cb25!==undefined&&_0x45cb25!==null&&!Array[_0x32169a(0xe6)](_0x45cb25)?_0x45cb25:{};switch(_0x27e627){case _0x32169a(0xc9):{const _0x5023a0=_0x4aca84['id'];if(_0x5023a0===undefined||_0x5023a0===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x1357d0['getOne'](_0x5023a0);}case _0x32169a(0xd9):{const {id:_0x44ca71,..._0x3a3ec7}=_0x4aca84;if(_0x44ca71===undefined||_0x44ca71===null)throw new Error(_0x32169a(0xdc));return _0x1357d0[_0x32169a(0xd9)](_0x44ca71,_0x3a3ec7);}case'delete':{const _0xee6273=_0x4aca84['id'];if(_0xee6273===undefined||_0xee6273===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x1357d0[_0x32169a(0xda)](_0xee6273);}case _0x32169a(0xdb):return _0x1357d0[_0x32169a(0xdb)](normalizeAggregateParams(_0x4aca84));default:return _0x1357d0[_0x27e627](_0x4aca84);}}export async function executeSdkSql(_0x54070a,_0x2a37d1){const _0x3598f3=a76_0x4b5a,_0x44cefd=ensureClient();return _0x44cefd[_0x3598f3(0xdd)][_0x3598f3(0xc6)]({'sqlCode':_0x54070a,'params':_0x2a37d1});}export async function executeSdkBff(_0x41566b,_0x3ca93c){const _0x1a9ca5=a76_0x4b5a,_0x2e1a79=ensureClient();return _0x2e1a79[_0x1a9ca5(0xd4)]['execute']({'scriptName':_0x41566b,'params':_0x3ca93c});}
1
+ (function(_0x3fcca1,_0x4ce98e){const _0x4cf7d6=a76_0x554c,_0x4898d1=_0x3fcca1();while(!![]){try{const _0x3ddde0=parseInt(_0x4cf7d6(0x153))/0x1*(-parseInt(_0x4cf7d6(0x158))/0x2)+parseInt(_0x4cf7d6(0x161))/0x3+-parseInt(_0x4cf7d6(0x16f))/0x4+parseInt(_0x4cf7d6(0x151))/0x5*(-parseInt(_0x4cf7d6(0x152))/0x6)+-parseInt(_0x4cf7d6(0x157))/0x7+parseInt(_0x4cf7d6(0x171))/0x8*(-parseInt(_0x4cf7d6(0x168))/0x9)+-parseInt(_0x4cf7d6(0x16d))/0xa*(-parseInt(_0x4cf7d6(0x15e))/0xb);if(_0x3ddde0===_0x4ce98e)break;else _0x4898d1['push'](_0x4898d1['shift']());}catch(_0x352e4d){_0x4898d1['push'](_0x4898d1['shift']());}}}(a76_0x5ab3,0xcd694));import{createClient}from'@lovrabet/sdk';function a76_0x554c(_0x4a732a,_0x424e7b){_0x4a732a=_0x4a732a-0x14d;const _0x5ab33a=a76_0x5ab3();let _0x554cdf=_0x5ab33a[_0x4a732a];return _0x554cdf;}import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x242986){const _0x4d8ede=a76_0x554c;_client=createClient({'appCode':_0x242986[_0x4d8ede(0x16c)],'env':_0x242986[_0x4d8ede(0x14e)],'authMode':_0x242986[_0x4d8ede(0x164)],..._0x242986[_0x4d8ede(0x16e)]?{'accessKey':_0x242986[_0x4d8ede(0x16e)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x4d8ede(0x16a)]}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x39a7f3){const _0xff291c=a76_0x554c,_0x403e53=_0x39a7f3[_0xff291c(0x169)];if(_0x403e53===undefined)return _0x39a7f3;if(!Array[_0xff291c(0x14d)](_0x403e53))throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x39a7f3,'aggregate':_0x403e53[_0xff291c(0x159)]((_0x172c72,_0x53f58a)=>{const _0x26a5de=_0xff291c;if(!_0x172c72||typeof _0x172c72!=='object'||Array[_0x26a5de(0x14d)](_0x172c72))throw CliErrors[_0x26a5de(0x174)](_0x26a5de(0x15c)+_0x53f58a+_0x26a5de(0x172));const _0x4e5545=_0x172c72[_0x26a5de(0x15d)]??_0x172c72[_0x26a5de(0x16b)];if(typeof _0x4e5545!=='string'||_0x4e5545[_0x26a5de(0x15a)]()==='')throw CliErrors[_0x26a5de(0x174)](_0x26a5de(0x15c)+_0x53f58a+_0x26a5de(0x14f));const _0x44e14e={..._0x172c72,'column':_0x4e5545};return delete _0x44e14e[_0x26a5de(0x16b)],_0x44e14e;})};}export async function executeData(_0x34da46,_0x31e20d,_0x39075a){const _0x2c48f9=a76_0x554c,_0x15b4c0=ensureClient(),_0x4a9aab=_0x2c48f9(0x155)+_0x34da46,_0x53e9eb=_0x15b4c0[_0x2c48f9(0x15f)][_0x4a9aab];if(!_0x53e9eb||typeof _0x53e9eb[_0x31e20d]!==_0x2c48f9(0x160))throw new Error(_0x2c48f9(0x15b)+_0x31e20d+_0x2c48f9(0x150)+_0x2c48f9(0x163));if(_0x31e20d===_0x2c48f9(0x165))return _0x53e9eb[_0x2c48f9(0x165)](parseBatchCreateItemsFromParams(_0x39075a));const _0x3037ee=_0x39075a!==undefined&&_0x39075a!==null&&!Array[_0x2c48f9(0x14d)](_0x39075a)?_0x39075a:{};switch(_0x31e20d){case _0x2c48f9(0x156):{const _0x4b2533=_0x3037ee['id'];if(_0x4b2533===undefined||_0x4b2533===null)throw new Error(_0x2c48f9(0x173));return _0x53e9eb['getOne'](_0x4b2533);}case _0x2c48f9(0x154):{const {id:_0x1e8cff,..._0x38f99e}=_0x3037ee;if(_0x1e8cff===undefined||_0x1e8cff===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27');return _0x53e9eb[_0x2c48f9(0x154)](_0x1e8cff,_0x38f99e);}case _0x2c48f9(0x170):{const _0x253a61=_0x3037ee['id'];if(_0x253a61===undefined||_0x253a61===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x53e9eb['delete'](_0x253a61);}case _0x2c48f9(0x169):return _0x53e9eb[_0x2c48f9(0x169)](normalizeAggregateParams(_0x3037ee));default:return _0x53e9eb[_0x31e20d](_0x3037ee);}}export async function executeSdkSql(_0x7d7a2b,_0xf79622){const _0x201d4c=a76_0x554c,_0x45f6f5=ensureClient();return _0x45f6f5[_0x201d4c(0x166)]['execute']({'sqlCode':_0x7d7a2b,'params':_0xf79622});}export async function executeSdkBff(_0xeaf25b,_0x35cf01){const _0x402944=a76_0x554c,_0x27bf4a=ensureClient();return _0x27bf4a[_0x402944(0x162)][_0x402944(0x167)]({'scriptName':_0xeaf25b,'params':_0x35cf01});}function a76_0x5ab3(){const _0x4beca9=[']\x20must\x20be\x20an\x20object.','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','validation','isArray','env',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','\x22.\x20','25oardTe','1361310BCbUfw','103zaMMpI','update','dataset_','getOne','1011836BgIYBx','25446fthviW','map','trim','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','data\x20aggregate\x20--params.aggregate[','column','4345NbOtUK','models','function','2428884gYCpIb','bff','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','authMode','batchCreate','sql','execute','53883KdUwtl','aggregate','invokeSource','field','appCode','128010uqmYHc','accessKey','4831528ujxaXZ','delete','1640skNIKB'];a76_0x5ab3=function(){return _0x4beca9;};return a76_0x5ab3();}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a77_0x465703=a77_0x56a6;(function(_0x10f757,_0x3289f5){const _0x4f61ee=a77_0x56a6,_0xe93293=_0x10f757();while(!![]){try{const _0x5ba662=parseInt(_0x4f61ee(0x194))/0x1+-parseInt(_0x4f61ee(0x196))/0x2*(parseInt(_0x4f61ee(0x18f))/0x3)+-parseInt(_0x4f61ee(0x195))/0x4+parseInt(_0x4f61ee(0x188))/0x5*(parseInt(_0x4f61ee(0x189))/0x6)+-parseInt(_0x4f61ee(0x18a))/0x7*(parseInt(_0x4f61ee(0x190))/0x8)+parseInt(_0x4f61ee(0x191))/0x9+parseInt(_0x4f61ee(0x18c))/0xa;if(_0x5ba662===_0x3289f5)break;else _0xe93293['push'](_0xe93293['shift']());}catch(_0x4a97c9){_0xe93293['push'](_0xe93293['shift']());}}}(a77_0xfe42,0xa88ab));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a77_0xfe42(){const _0x2eb294=['55aJIQyY','73374wtaJFD','7kdPnxr','\x20auth\x20login`.','5686640wtvcXb','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20','493851EQsBdU','3022688orBXgF','8635446KTeZfE','newConfigFileName','\x20or\x20run\x20`','830984uppmvI','5043444BVtstg','2EcieDX','\x20file.'];a77_0xfe42=function(){return _0x2eb294;};return a77_0xfe42();}function a77_0x56a6(_0x3c26f7,_0x49c9fb){_0x3c26f7=_0x3c26f7-0x187;const _0xfe4273=a77_0xfe42();let _0x56a628=_0xfe4273[_0x3c26f7];return _0x56a628;}import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+a77_0x465703(0x193)+CLI_BIN_NAME+a77_0x465703(0x18b),'configMissingHint':a77_0x465703(0x18e)+PRODUCT_CONFIG[a77_0x465703(0x192)]+'.','notInProjectHint':a77_0x465703(0x18d)+PRODUCT_CONFIG['newConfigFileName']+a77_0x465703(0x187)});
1
+ function a77_0x29af(_0x31446f,_0x47f089){_0x31446f=_0x31446f-0x12c;const _0x4ce122=a77_0x4ce1();let _0x29afc1=_0x4ce122[_0x31446f];return _0x29afc1;}const a77_0x43a0eb=a77_0x29af;(function(_0x1dbd95,_0xac2f){const _0x5d7191=a77_0x29af,_0x1b80be=_0x1dbd95();while(!![]){try{const _0x5b57ce=-parseInt(_0x5d7191(0x131))/0x1+parseInt(_0x5d7191(0x12f))/0x2+parseInt(_0x5d7191(0x139))/0x3*(parseInt(_0x5d7191(0x133))/0x4)+-parseInt(_0x5d7191(0x12e))/0x5+parseInt(_0x5d7191(0x137))/0x6*(parseInt(_0x5d7191(0x13b))/0x7)+-parseInt(_0x5d7191(0x13c))/0x8+parseInt(_0x5d7191(0x130))/0x9*(parseInt(_0x5d7191(0x135))/0xa);if(_0x5b57ce===_0xac2f)break;else _0x1b80be['push'](_0x1b80be['shift']());}catch(_0x10091f){_0x1b80be['push'](_0x1b80be['shift']());}}}(a77_0x4ce1,0x3d5b4));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a77_0x43a0eb(0x132)+PRODUCT_CONFIG[a77_0x43a0eb(0x13a)]+a77_0x43a0eb(0x136)+CLI_BIN_NAME+a77_0x43a0eb(0x134),'configMissingHint':a77_0x43a0eb(0x12d)+PRODUCT_CONFIG[a77_0x43a0eb(0x13a)]+'.','notInProjectHint':a77_0x43a0eb(0x12c)+PRODUCT_CONFIG['newConfigFileName']+a77_0x43a0eb(0x138)});function a77_0x4ce1(){const _0x15ea46=['\x20or\x20run\x20`','270NGlPcp','\x20file.','69GepGbH','newConfigFileName','32151XCcFJV','3727416JbZUVu','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20','1098790CdDhtN','538082iRuexc','206019OlBanz','108156mRUaoC','Configure\x20accessKey\x20in\x20','55240eTXfaF','\x20auth\x20login`.','110shXMha'];a77_0x4ce1=function(){return _0x15ea46;};return a77_0x4ce1();}
@@ -1 +1 @@
1
- (function(_0x3fdc49,_0x26f23f){var _0x216cf8=a78_0x12e8,_0x2f58ae=_0x3fdc49();while(!![]){try{var _0x19d22b=-parseInt(_0x216cf8(0x135))/0x1*(-parseInt(_0x216cf8(0x131))/0x2)+parseInt(_0x216cf8(0x132))/0x3*(-parseInt(_0x216cf8(0x130))/0x4)+-parseInt(_0x216cf8(0x12b))/0x5+-parseInt(_0x216cf8(0x12e))/0x6+-parseInt(_0x216cf8(0x134))/0x7+-parseInt(_0x216cf8(0x12f))/0x8*(-parseInt(_0x216cf8(0x133))/0x9)+parseInt(_0x216cf8(0x12c))/0xa*(parseInt(_0x216cf8(0x12d))/0xb);if(_0x19d22b===_0x26f23f)break;else _0x2f58ae['push'](_0x2f58ae['shift']());}catch(_0x41f70a){_0x2f58ae['push'](_0x2f58ae['shift']());}}}(a78_0x2ed0,0xdcdd0));function a78_0x2ed0(){var _0x593567=['11jtsXgV','10127622TetOem','63944dIijvo','2206396jzgBDi','264FUjhWF','3UFuysu','1782FWieRF','10251038mtoXfa','3964bLzlIZ','6106745lTtjeI','37241130MuIVNm'];a78_0x2ed0=function(){return _0x593567;};return a78_0x2ed0();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a78_0x597cff}from'@lovrabet/cli-framework';function a78_0x12e8(_0x19b106,_0x4ef35d){_0x19b106=_0x19b106-0x12b;var _0x2ed0c0=a78_0x2ed0();var _0x12e812=_0x2ed0c0[_0x19b106];return _0x12e812;}export function buildAllFlags(_0x5906fe){return a78_0x597cff(_0x5906fe,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a78_0x6351(){var _0x17dde0=['799899UowKRg','241124IARQwx','1342632xuabLJ','114468lMsogN','50rfacMu','76164BfIVKf','1424515PKpcRe','315EdftDn','2EFJyFO','23864AGZxRL','4fPGeBp','91mwfafR'];a78_0x6351=function(){return _0x17dde0;};return a78_0x6351();}(function(_0xb4e921,_0x3ee106){var _0x52ef00=a78_0x21e8,_0x5043f4=_0xb4e921();while(!![]){try{var _0x2ef742=-parseInt(_0x52ef00(0x156))/0x1*(-parseInt(_0x52ef00(0x151))/0x2)+parseInt(_0x52ef00(0x155))/0x3+parseInt(_0x52ef00(0x153))/0x4*(-parseInt(_0x52ef00(0x14f))/0x5)+-parseInt(_0x52ef00(0x158))/0x6*(parseInt(_0x52ef00(0x154))/0x7)+-parseInt(_0x52ef00(0x152))/0x8*(-parseInt(_0x52ef00(0x150))/0x9)+-parseInt(_0x52ef00(0x159))/0xa*(parseInt(_0x52ef00(0x14e))/0xb)+parseInt(_0x52ef00(0x157))/0xc;if(_0x2ef742===_0x3ee106)break;else _0x5043f4['push'](_0x5043f4['shift']());}catch(_0x327381){_0x5043f4['push'](_0x5043f4['shift']());}}}(a78_0x6351,0x2635f));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a78_0x21e8(_0x2b5102,_0x57f75e){_0x2b5102=_0x2b5102-0x14e;var _0x6351ed=a78_0x6351();var _0x21e8f=_0x6351ed[_0x2b5102];return _0x21e8f;}import{buildAllFlags as a78_0x185903}from'@lovrabet/cli-framework';export function buildAllFlags(_0x198e29){return a78_0x185903(_0x198e29,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x13fb2c,_0x2f6c24){const _0x457736=a79_0x2fc4,_0x169a8c=_0x13fb2c();while(!![]){try{const _0xf287d2=parseInt(_0x457736(0x1c4))/0x1+-parseInt(_0x457736(0x1c6))/0x2+parseInt(_0x457736(0x1bf))/0x3+parseInt(_0x457736(0x1c8))/0x4*(-parseInt(_0x457736(0x1c7))/0x5)+parseInt(_0x457736(0x1c5))/0x6+-parseInt(_0x457736(0x1c0))/0x7*(-parseInt(_0x457736(0x1be))/0x8)+parseInt(_0x457736(0x1c1))/0x9*(-parseInt(_0x457736(0x1c3))/0xa);if(_0xf287d2===_0x2f6c24)break;else _0x169a8c['push'](_0x169a8c['shift']());}catch(_0x3680fc){_0x169a8c['push'](_0x169a8c['shift']());}}}(a79_0x32c2,0x29ce1));function a79_0x32c2(){const _0x1f2f75=['221409RXwhvg','311544XKOksf','386716ejYlkV','143305ucdelF','20zSiTar','1065296MaGJRH','309987xqcMmf','14aaMtof','711ixXifG','body','17100frZNwN'];a79_0x32c2=function(){return _0x1f2f75;};return a79_0x32c2();}function a79_0x2fc4(_0x4e28f3,_0x1ad1b7){_0x4e28f3=_0x4e28f3-0x1be;const _0x32c251=a79_0x32c2();let _0x2fc45c=_0x32c251[_0x4e28f3];return _0x2fc45c;}export function dryRun(_0x30dc12,_0x1699f8){const _0x548e05={'method':_0x30dc12,'url':_0x1699f8},_0x4935c2={'body'(_0x5c5d59){const _0x1ce9da=a79_0x2fc4;return _0x548e05[_0x1ce9da(0x1c2)]=_0x5c5d59,_0x4935c2;},'description'(_0x2cb9fb){return _0x548e05['description']=_0x2cb9fb,_0x4935c2;},'build'(){return{..._0x548e05};}};return _0x4935c2;}
1
+ function a79_0x16f8(_0x2b290c,_0x2a56e3){_0x2b290c=_0x2b290c-0xa1;const _0xcf21a9=a79_0xcf21();let _0x16f854=_0xcf21a9[_0x2b290c];return _0x16f854;}(function(_0x50e4b7,_0x4bd50d){const _0x1f0072=a79_0x16f8,_0x3a5b30=_0x50e4b7();while(!![]){try{const _0x18da00=-parseInt(_0x1f0072(0xa2))/0x1*(parseInt(_0x1f0072(0xa5))/0x2)+-parseInt(_0x1f0072(0xa9))/0x3+-parseInt(_0x1f0072(0xa3))/0x4*(parseInt(_0x1f0072(0xaa))/0x5)+-parseInt(_0x1f0072(0xad))/0x6*(-parseInt(_0x1f0072(0xa8))/0x7)+-parseInt(_0x1f0072(0xab))/0x8*(-parseInt(_0x1f0072(0xa7))/0x9)+parseInt(_0x1f0072(0xac))/0xa*(-parseInt(_0x1f0072(0xa6))/0xb)+parseInt(_0x1f0072(0xa1))/0xc;if(_0x18da00===_0x4bd50d)break;else _0x3a5b30['push'](_0x3a5b30['shift']());}catch(_0x365238){_0x3a5b30['push'](_0x3a5b30['shift']());}}}(a79_0xcf21,0x245d7));export function dryRun(_0xdbe15,_0x33fcc5){const _0x1355c5={'method':_0xdbe15,'url':_0x33fcc5},_0x57796e={'body'(_0x2fcc3f){return _0x1355c5['body']=_0x2fcc3f,_0x57796e;},'description'(_0x125313){const _0x314e17=a79_0x16f8;return _0x1355c5[_0x314e17(0xa4)]=_0x125313,_0x57796e;},'build'(){return{..._0x1355c5};}};return _0x57796e;}function a79_0xcf21(){const _0x11bfc3=['description','285776OYBocV','11VzLQQb','27TEcefA','130991DCsKfw','484803QNIfNh','469850uoMTVk','762424BTQTLV','2502420CXXmwO','24jTmSyr','5242692AohaeQ','1DZFGBW','4wKlUne'];a79_0xcf21=function(){return _0x11bfc3;};return a79_0xcf21();}
@@ -1 +1 @@
1
- const a80_0x108b53=a80_0xbd1c;function a80_0x3084(){const _0x43a27a=['342QPzbGP','904552nZprkE','328SDhkzF','50JZpkFA','104490ulLEqE','validateFlags','10554944gvrKMH','8819027nWVhfd','822524sdqaSX','7573158qaRzFW','32001gzVDsn'];a80_0x3084=function(){return _0x43a27a;};return a80_0x3084();}(function(_0x5bf72a,_0x3b7df8){const _0x51c985=a80_0xbd1c,_0x475b33=_0x5bf72a();while(!![]){try{const _0x40e438=parseInt(_0x51c985(0x193))/0x1+parseInt(_0x51c985(0x18c))/0x2+-parseInt(_0x51c985(0x18a))/0x3*(parseInt(_0x51c985(0x18d))/0x4)+-parseInt(_0x51c985(0x18f))/0x5*(parseInt(_0x51c985(0x18b))/0x6)+-parseInt(_0x51c985(0x192))/0x7+-parseInt(_0x51c985(0x191))/0x8+-parseInt(_0x51c985(0x189))/0x9*(-parseInt(_0x51c985(0x18e))/0xa);if(_0x40e438===_0x3b7df8)break;else _0x475b33['push'](_0x475b33['shift']());}catch(_0xcf87c3){_0x475b33['push'](_0x475b33['shift']());}}}(a80_0x3084,0xcc589));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a80_0xbd1c(_0x547a7e,_0x2aa723){_0x547a7e=_0x547a7e-0x189;const _0x3084ec=a80_0x3084();let _0xbd1c50=_0x3084ec[_0x547a7e];return _0xbd1c50;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a80_0x108b53(0x190)];
1
+ const a80_0x4a14b4=a80_0x185f;(function(_0x480b07,_0x3f1c46){const _0x338c0b=a80_0x185f,_0x560059=_0x480b07();while(!![]){try{const _0x7c848=parseInt(_0x338c0b(0xfb))/0x1*(parseInt(_0x338c0b(0x100))/0x2)+parseInt(_0x338c0b(0xfa))/0x3+parseInt(_0x338c0b(0xfe))/0x4*(parseInt(_0x338c0b(0x102))/0x5)+-parseInt(_0x338c0b(0xf8))/0x6+-parseInt(_0x338c0b(0xff))/0x7+-parseInt(_0x338c0b(0xf9))/0x8+-parseInt(_0x338c0b(0x101))/0x9*(parseInt(_0x338c0b(0xfd))/0xa);if(_0x7c848===_0x3f1c46)break;else _0x560059['push'](_0x560059['shift']());}catch(_0x21a857){_0x560059['push'](_0x560059['shift']());}}}(a80_0x3b24,0xa19f3));function a80_0x185f(_0x45fbe9,_0x1dfbb7){_0x45fbe9=_0x45fbe9-0xf8;const _0x3b24d4=a80_0x3b24();let _0x185f5f=_0x3b24d4[_0x45fbe9];return _0x185f5f;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a80_0x3b24(){const _0x30c47c=['8132830OTOpYC','15712newBof','253288rqPzCw','6UqLuzF','9WsuHdo','1175LEvmfw','6170988VnIGug','1609184etthPn','3217149GqhKyL','248551aYAgJS','parseFlags'];a80_0x3b24=function(){return _0x30c47c;};return a80_0x3b24();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a80_0x4a14b4(0xfc)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- (function(_0x1bad27,_0x49a483){const _0x428c50=a81_0x1a41,_0x4465c1=_0x1bad27();while(!![]){try{const _0x43fe35=-parseInt(_0x428c50(0x17c))/0x1*(parseInt(_0x428c50(0x178))/0x2)+parseInt(_0x428c50(0x185))/0x3*(-parseInt(_0x428c50(0x17b))/0x4)+parseInt(_0x428c50(0x17a))/0x5+-parseInt(_0x428c50(0x179))/0x6*(parseInt(_0x428c50(0x177))/0x7)+-parseInt(_0x428c50(0x17d))/0x8+-parseInt(_0x428c50(0x176))/0x9+-parseInt(_0x428c50(0x182))/0xa*(-parseInt(_0x428c50(0x175))/0xb);if(_0x43fe35===_0x49a483)break;else _0x4465c1['push'](_0x4465c1['shift']());}catch(_0x5a5189){_0x4465c1['push'](_0x4465c1['shift']());}}}(a81_0x3ec9,0x8558f));import{createHelpGenerators}from'@lovrabet/cli-framework';function a81_0x1a41(_0x157dd6,_0x4239d4){_0x157dd6=_0x157dd6-0x175;const _0x3ec9db=a81_0x3ec9();let _0x1a41e4=_0x3ec9db[_0x157dd6];return _0x1a41e4;}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 _0x2a624d=a81_0x1a41;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x2a624d(0x181)+PRODUCT_CONFIG[_0x2a624d(0x17e)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x3a9ce1){return createGenerators()['generateCommandHelp'](_0x3a9ce1);}export function generateServiceHelp(_0x33ba50){const _0x29a827=a81_0x1a41;return createGenerators()[_0x29a827(0x187)](_0x33ba50);}export function generateFullHelp(){const _0x41b9c1=a81_0x1a41;return createGenerators()[_0x41b9c1(0x17f)]();}function getAnyServiceEntry(_0x1fcd73){const _0x168f4a=getServiceEntry(_0x1fcd73);if(_0x168f4a)return _0x168f4a;try{return getDynamicServiceEntry(_0x1fcd73);}catch{return undefined;}}function getAnyServiceDefinitions(_0x1a497f){const _0x4efca9=a81_0x1a41,_0x3e8b10=serviceGroups[_0x4efca9(0x184)](_0x1a497f);if(_0x3e8b10)return _0x3e8b10;try{return getDynamicServiceDefinitions(_0x1a497f);}catch{return undefined;}}function a81_0x3ec9(){const _0x1b736e=['8eaqmuq','3397352UbOAFT','newConfigFileName','generateFullHelp','has','Requires\x20appcode\x20(set\x20via\x20','219860fzBTVo','service','get','6906NieAlX','map','generateServiceHelp','869rDJSkk','6852609cbWEHF','7xAwYnl','164676MeNeTP','2014020kbHNNX','5052295puoMDN','36GHCqrq'];a81_0x3ec9=function(){return _0x1b736e;};return a81_0x3ec9();}function safeListDynamicServiceEntries(){const _0x189092=a81_0x1a41,_0x392d7f=new Set(serviceRegistry[_0x189092(0x186)](_0x5bac90=>_0x5bac90['service']));try{return listDynamicServiceEntries()['filter'](_0x3afa55=>!_0x392d7f[_0x189092(0x180)](_0x3afa55[_0x189092(0x183)]));}catch{return[];}}
1
+ (function(_0x5ecfa1,_0x235ce8){const _0x4a4de3=a81_0xc34c,_0x3455ed=_0x5ecfa1();while(!![]){try{const _0x216db8=-parseInt(_0x4a4de3(0x16d))/0x1+-parseInt(_0x4a4de3(0x161))/0x2*(-parseInt(_0x4a4de3(0x16e))/0x3)+parseInt(_0x4a4de3(0x16b))/0x4*(parseInt(_0x4a4de3(0x15f))/0x5)+parseInt(_0x4a4de3(0x166))/0x6*(parseInt(_0x4a4de3(0x164))/0x7)+-parseInt(_0x4a4de3(0x16f))/0x8*(-parseInt(_0x4a4de3(0x160))/0x9)+parseInt(_0x4a4de3(0x163))/0xa+-parseInt(_0x4a4de3(0x165))/0xb;if(_0x216db8===_0x235ce8)break;else _0x3455ed['push'](_0x3455ed['shift']());}catch(_0x570e42){_0x3455ed['push'](_0x3455ed['shift']());}}}(a81_0x4fad,0x507ba));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a81_0x4fad(){const _0x177684=['generateServiceHelp','3007REYhYF','23751mbBLrS','8OgDqXw','has','get','newConfigFileName','10CIbYvj','5481018AeiyyL','14vgdIur','Requires\x20appcode\x20(set\x20via\x20','4422390XwYdKZ','780647FSBqyx','12856118YjWDgD','6BQNhWD','\x20or\x20--appcode).','generateCommandHelp','filter','service','566444PiEorp'];a81_0x4fad=function(){return _0x177684;};return a81_0x4fad();}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 _0x5e6930=a81_0xc34c;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x5e6930(0x162)+PRODUCT_CONFIG[_0x5e6930(0x15e)]+_0x5e6930(0x167)});}export function generateCommandHelp(_0x4dca5c){const _0x4d93a8=a81_0xc34c;return createGenerators()[_0x4d93a8(0x168)](_0x4dca5c);}export function generateServiceHelp(_0xe33239){const _0x20f984=a81_0xc34c;return createGenerators()[_0x20f984(0x16c)](_0xe33239);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x200b89){const _0x2d2478=getServiceEntry(_0x200b89);if(_0x2d2478)return _0x2d2478;try{return getDynamicServiceEntry(_0x200b89);}catch{return undefined;}}function getAnyServiceDefinitions(_0x4cefc5){const _0x4801cf=a81_0xc34c,_0x1cd3cf=serviceGroups[_0x4801cf(0x15d)](_0x4cefc5);if(_0x1cd3cf)return _0x1cd3cf;try{return getDynamicServiceDefinitions(_0x4cefc5);}catch{return undefined;}}function a81_0xc34c(_0xd81321,_0x10475f){_0xd81321=_0xd81321-0x15d;const _0x4fad0d=a81_0x4fad();let _0xc34c5d=_0x4fad0d[_0xd81321];return _0xc34c5d;}function safeListDynamicServiceEntries(){const _0x5474a8=a81_0xc34c,_0x45d8d8=new Set(serviceRegistry['map'](_0x2f405a=>_0x2f405a[_0x5474a8(0x16a)]));try{return listDynamicServiceEntries()[_0x5474a8(0x169)](_0x40839b=>!_0x45d8d8[_0x5474a8(0x170)](_0x40839b[_0x5474a8(0x16a)]));}catch{return[];}}
@@ -1 +1 @@
1
- function a82_0x34d3(_0x3ce166,_0x4f7da9){_0x3ce166=_0x3ce166-0x1a9;var _0xc48285=a82_0xc482();var _0x34d3d0=_0xc48285[_0x3ce166];return _0x34d3d0;}(function(_0x4825ef,_0x26e4d5){var _0x349dd6=a82_0x34d3,_0x51f7b7=_0x4825ef();while(!![]){try{var _0x16c4c4=parseInt(_0x349dd6(0x1ae))/0x1+-parseInt(_0x349dd6(0x1aa))/0x2*(-parseInt(_0x349dd6(0x1b1))/0x3)+parseInt(_0x349dd6(0x1b0))/0x4+-parseInt(_0x349dd6(0x1a9))/0x5+-parseInt(_0x349dd6(0x1ad))/0x6*(parseInt(_0x349dd6(0x1ac))/0x7)+parseInt(_0x349dd6(0x1ab))/0x8*(-parseInt(_0x349dd6(0x1b2))/0x9)+-parseInt(_0x349dd6(0x1b3))/0xa*(-parseInt(_0x349dd6(0x1af))/0xb);if(_0x16c4c4===_0x26e4d5)break;else _0x51f7b7['push'](_0x51f7b7['shift']());}catch(_0x4f1b79){_0x51f7b7['push'](_0x51f7b7['shift']());}}}(a82_0xc482,0x92974));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a82_0xc482(){var _0x274104=['91KufsyU','400170ncAPfY','972177RObyLQ','836JLnhWj','2608392lGhXuF','108xWMhtZ','406476sYROrA','23870FwmewY','3321320AqWZlw','45714HZYGDX','88bIFzKU'];a82_0xc482=function(){return _0x274104;};return a82_0xc482();}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 a82_0x190e(){var _0x57d430=['5BLeQKt','7118656EQvxAx','372334ytRCsr','505880usLtPv','9328249iMqsEn','25061148Ymsvsb','806938OShqvi','7790916UMKrBL','3PEEGca'];a82_0x190e=function(){return _0x57d430;};return a82_0x190e();}function a82_0x5a21(_0x1d513d,_0x819e89){_0x1d513d=_0x1d513d-0x1f0;var _0x190e15=a82_0x190e();var _0x5a21bb=_0x190e15[_0x1d513d];return _0x5a21bb;}(function(_0x6a9a34,_0x436676){var _0x2d9c20=a82_0x5a21,_0x395c78=_0x6a9a34();while(!![]){try{var _0x34738a=-parseInt(_0x2d9c20(0x1f7))/0x1+parseInt(_0x2d9c20(0x1f3))/0x2*(-parseInt(_0x2d9c20(0x1f0))/0x3)+-parseInt(_0x2d9c20(0x1f4))/0x4*(parseInt(_0x2d9c20(0x1f1))/0x5)+parseInt(_0x2d9c20(0x1f8))/0x6+-parseInt(_0x2d9c20(0x1f5))/0x7+-parseInt(_0x2d9c20(0x1f2))/0x8+parseInt(_0x2d9c20(0x1f6))/0x9;if(_0x34738a===_0x436676)break;else _0x395c78['push'](_0x395c78['shift']());}catch(_0x9673c3){_0x395c78['push'](_0x395c78['shift']());}}}(a82_0x190e,0xb4eb4));export{runCommand}from'../framework/runner.js';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 +1 @@
1
- function a83_0x5b7f(_0x371bbc,_0x391cdd){_0x371bbc=_0x371bbc-0x129;const _0x1f2631=a83_0x1f26();let _0x5b7fd0=_0x1f2631[_0x371bbc];return _0x5b7fd0;}(function(_0x493522,_0x4ed8ab){const _0x7ee626=a83_0x5b7f,_0x1ac467=_0x493522();while(!![]){try{const _0x5378ae=-parseInt(_0x7ee626(0x12e))/0x1*(parseInt(_0x7ee626(0x133))/0x2)+parseInt(_0x7ee626(0x136))/0x3*(-parseInt(_0x7ee626(0x129))/0x4)+-parseInt(_0x7ee626(0x135))/0x5+parseInt(_0x7ee626(0x132))/0x6*(parseInt(_0x7ee626(0x134))/0x7)+parseInt(_0x7ee626(0x12f))/0x8+-parseInt(_0x7ee626(0x137))/0x9+parseInt(_0x7ee626(0x12a))/0xa;if(_0x5378ae===_0x4ed8ab)break;else _0x1ac467['push'](_0x1ac467['shift']());}catch(_0x154910){_0x1ac467['push'](_0x1ac467['shift']());}}}(a83_0x1f26,0x7b638));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a83_0x1f26(){const _0x39bce9=['update','error','78oyogwM','299756rUvDLV','100555KPcYPh','1819530WjChUK','170271bfNKhj','7009362nuvqta','40jqPFnm','20473060WFIwxi','_notice','message','pretty','2jpgiaq','2251192rMpUBU'];a83_0x1f26=function(){return _0x39bce9;};return a83_0x1f26();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x17e20c,_0x1697bc){const _0x446c42=a83_0x5b7f,_0xbac3f0=_0x17e20c[_0x446c42(0x12b)],{_notice:_0x4fdddb,..._0x352ae7}=_0x17e20c;void _0x4fdddb,baseFormatOutput(_0x352ae7,_0x1697bc),_0x1697bc['format']===_0x446c42(0x12d)&&printPrettyNotice(_0xbac3f0);}function printPrettyNotice(_0x1444e1){const _0x5b0fc7=a83_0x5b7f;if(!_0x1444e1?.['update'])return;console[_0x5b0fc7(0x131)](_0x1444e1[_0x5b0fc7(0x130)][_0x5b0fc7(0x12c)]+'\x20('+_0x1444e1[_0x5b0fc7(0x130)]['url']+')');}
1
+ function a83_0x28a7(_0x4259f4,_0x3044b8){_0x4259f4=_0x4259f4-0x10b;const _0x4a055a=a83_0x4a05();let _0x28a760=_0x4a055a[_0x4259f4];return _0x28a760;}function a83_0x4a05(){const _0x2f3842=['892iOZfcX','url','error','977466SaeWEE','message','_notice','3134680OpKdEh','update','36NWCEwd','1624PyZUqi','6321rVnoGT','3170pxJHGd','1738881qoIlmh','pretty','150198cDtTTa','161905IUHRuS'];a83_0x4a05=function(){return _0x2f3842;};return a83_0x4a05();}(function(_0x3fb584,_0x437403){const _0x456f22=a83_0x28a7,_0x20a15a=_0x3fb584();while(!![]){try{const _0x5412e2=-parseInt(_0x456f22(0x11a))/0x1+-parseInt(_0x456f22(0x119))/0x2+-parseInt(_0x456f22(0x117))/0x3+-parseInt(_0x456f22(0x10b))/0x4*(parseInt(_0x456f22(0x116))/0x5)+-parseInt(_0x456f22(0x10e))/0x6+parseInt(_0x456f22(0x115))/0x7*(parseInt(_0x456f22(0x114))/0x8)+-parseInt(_0x456f22(0x113))/0x9*(-parseInt(_0x456f22(0x111))/0xa);if(_0x5412e2===_0x437403)break;else _0x20a15a['push'](_0x20a15a['shift']());}catch(_0x5db962){_0x20a15a['push'](_0x20a15a['shift']());}}}(a83_0x4a05,0x4d361));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x5283a0,_0x50cd00){const _0x4feceb=a83_0x28a7,_0x185f81=_0x5283a0[_0x4feceb(0x110)],{_notice:_0x196c97,..._0x392cbc}=_0x5283a0;void _0x196c97,baseFormatOutput(_0x392cbc,_0x50cd00),_0x50cd00['format']===_0x4feceb(0x118)&&printPrettyNotice(_0x185f81);}function printPrettyNotice(_0x43b146){const _0x5d3f32=a83_0x28a7;if(!_0x43b146?.[_0x5d3f32(0x112)])return;console[_0x5d3f32(0x10d)](_0x43b146[_0x5d3f32(0x112)][_0x5d3f32(0x10f)]+'\x20('+_0x43b146[_0x5d3f32(0x112)][_0x5d3f32(0x10c)]+')');}
@@ -1 +1 @@
1
- (function(_0x54396c,_0x1e3824){const _0x545998=a84_0x44f0,_0x3b5cb5=_0x54396c();while(!![]){try{const _0x29f7d4=parseInt(_0x545998(0x1a5))/0x1+parseInt(_0x545998(0x199))/0x2+parseInt(_0x545998(0x196))/0x3*(parseInt(_0x545998(0x1a2))/0x4)+-parseInt(_0x545998(0x185))/0x5+parseInt(_0x545998(0x187))/0x6*(parseInt(_0x545998(0x1a8))/0x7)+parseInt(_0x545998(0x180))/0x8+parseInt(_0x545998(0x19f))/0x9*(-parseInt(_0x545998(0x184))/0xa);if(_0x29f7d4===_0x1e3824)break;else _0x3b5cb5['push'](_0x3b5cb5['shift']());}catch(_0x299cff){_0x3b5cb5['push'](_0x3b5cb5['shift']());}}}(a84_0x2fcc,0x18b8a));function toKebab(_0x3838c7){const _0x143796=a84_0x44f0;return _0x3838c7[_0x143796(0x1a4)](/_/g,'-')[_0x143796(0x1a4)](/-([A-Z]+)/g,(_0x11c706,_0x3b92cb)=>'-'+_0x3b92cb['toLowerCase']())[_0x143796(0x1a4)](/([a-z0-9])([A-Z])/g,(_0x48ad65,_0x38cb51,_0x56f4f2)=>_0x38cb51+'-'+_0x56f4f2)[_0x143796(0x19c)]();}function buildKnownFlags(_0x4fdafc){const _0x89a069=a84_0x44f0,_0x187c95=new Set();for(const _0x3160bb of _0x4fdafc){_0x187c95[_0x89a069(0x19e)](_0x3160bb[_0x89a069(0x18e)]),_0x187c95[_0x89a069(0x19e)](toCamelCase(_0x3160bb[_0x89a069(0x18e)]));}for(const _0x39640c of[_0x89a069(0x192),_0x89a069(0x182),'yes',_0x89a069(0x198)]){_0x187c95['add'](_0x39640c);}for(const _0x3c8e9b of[_0x89a069(0x193),_0x89a069(0x197),_0x89a069(0x19d),_0x89a069(0x18f),_0x89a069(0x18c),'non-interactive','ci',_0x89a069(0x1a1),_0x89a069(0x19a)]){_0x187c95['add'](_0x3c8e9b);}return _0x187c95;}function buildFlagTypeMap(_0x3fb7eb){const _0x4348c9=a84_0x44f0,_0x1f1bc1=new Map();for(const _0x384dec of _0x3fb7eb){_0x1f1bc1[_0x4348c9(0x1a7)](_0x384dec[_0x4348c9(0x18e)],_0x384dec[_0x4348c9(0x190)]),_0x1f1bc1[_0x4348c9(0x1a7)](toCamelCase(_0x384dec['name']),_0x384dec['type']);}return _0x1f1bc1;}function a84_0x44f0(_0xe0b712,_0xef1729){_0xe0b712=_0xe0b712-0x180;const _0x2fccc6=a84_0x2fcc();let _0x44f02b=_0x2fccc6[_0xe0b712];return _0x44f02b;}function toCamelCase(_0x2911af){const _0x5a0240=a84_0x44f0;return _0x2911af[_0x5a0240(0x1a4)](/-([a-z])/g,(_0x3c04d3,_0x459dfd)=>_0x459dfd['toUpperCase']());}function aliasHandler(_0x32ae00,_0x69010e){const _0x58d098=a84_0x44f0,_0x2377ae=[];for(const _0x167edc of Object[_0x58d098(0x18b)](_0x32ae00)){if(_0x69010e[_0x58d098(0x191)](_0x167edc))continue;const _0x5442c2=toKebab(_0x167edc);_0x5442c2!==_0x167edc&&_0x69010e[_0x58d098(0x191)](_0x5442c2)&&_0x2377ae['push']({'original':_0x167edc,'corrected':_0x5442c2,'handler':_0x58d098(0x195)});}return _0x2377ae;}function a84_0x2fcc(){const _0x26c04c=['60976vIsBth','string','dryRun','entries','900GRcQpI','338660PCpEOI','length','6042tMYuQj','original','get','sticky','keys','nonInteractive','corrected','name','app','type','has','dry-run','help','slice','alias','6927UliIMW','env','format','65140pgjHcT','version','boolean','toLowerCase','appcode','add','33237YsGmeS','number','global','152TvSxkg','push','replace','178068jIaZoG','indexOf','set','1358kTDdAT'];a84_0x2fcc=function(){return _0x26c04c;};return a84_0x2fcc();}function stickyHandler(_0x5dcef4,_0x2f88c0,_0x72eedd){const _0x57daa6=a84_0x44f0,_0x5955eb=[];for(const [_0x583dd6,_0x1f03a6]of Object[_0x57daa6(0x183)](_0x5dcef4)){if(_0x1f03a6!==!![])continue;for(let _0x5e39ce=_0x583dd6[_0x57daa6(0x186)]-0x1;_0x5e39ce>0x0;_0x5e39ce--){const _0x42a1ce=_0x583dd6['slice'](0x0,_0x5e39ce),_0x36c6c1=_0x583dd6[_0x57daa6(0x194)](_0x5e39ce),_0x2caba5=toKebab(_0x42a1ce),_0x4e6d6e=toCamelCase(_0x42a1ce),_0x24a232=_0x2f88c0['has'](_0x42a1ce)?_0x42a1ce:_0x2f88c0[_0x57daa6(0x191)](_0x2caba5)?_0x2caba5:_0x2f88c0[_0x57daa6(0x191)](_0x4e6d6e)?_0x4e6d6e:null;if(!_0x24a232)continue;const _0x3b0b78=_0x72eedd[_0x57daa6(0x189)](_0x24a232)??_0x57daa6(0x181);let _0x414f6c;if(_0x3b0b78==='number'){const _0x501b4e=Number(_0x36c6c1);if(isNaN(_0x501b4e)||_0x36c6c1==='')continue;_0x414f6c=_0x501b4e;}else{if(_0x3b0b78===_0x57daa6(0x19b))continue;else{if(_0x36c6c1==='')continue;_0x414f6c=_0x36c6c1;}}_0x5955eb[_0x57daa6(0x1a3)]({'original':_0x583dd6,'corrected':_0x24a232+'='+_0x414f6c,'handler':_0x57daa6(0x18a)});break;}}return _0x5955eb;}export function correctFlags(_0x116c59,_0x245356){const _0x1d9b1b=a84_0x44f0,_0xfa6a6d=buildKnownFlags(_0x245356),_0x8d9a03=buildFlagTypeMap(_0x245356),_0x49d7bb=aliasHandler(_0x116c59,_0xfa6a6d),_0x39f0a4=stickyHandler(_0x116c59,_0xfa6a6d,_0x8d9a03),_0x302697=[..._0x49d7bb,..._0x39f0a4];if(_0x302697[_0x1d9b1b(0x186)]===0x0)return{'flags':_0x116c59,'corrections':[]};const _0x15fc22={..._0x116c59},_0x1a5fdb=new Set();for(const _0x210ae5 of _0x49d7bb){_0x15fc22[_0x210ae5[_0x1d9b1b(0x18d)]]=_0x116c59[_0x210ae5[_0x1d9b1b(0x188)]],_0x1a5fdb[_0x1d9b1b(0x19e)](_0x210ae5[_0x1d9b1b(0x188)]);}for(const _0x4ebac0 of _0x39f0a4){const _0x2d37c0=_0x4ebac0[_0x1d9b1b(0x18d)][_0x1d9b1b(0x1a6)]('='),_0x1269ad=_0x4ebac0[_0x1d9b1b(0x18d)][_0x1d9b1b(0x194)](0x0,_0x2d37c0),_0x3b8787=_0x4ebac0[_0x1d9b1b(0x18d)][_0x1d9b1b(0x194)](_0x2d37c0+0x1),_0xa60b71=_0x8d9a03['get'](_0x1269ad)??_0x1d9b1b(0x181);_0xa60b71===_0x1d9b1b(0x1a0)?_0x15fc22[_0x1269ad]=Number(_0x3b8787):_0x15fc22[_0x1269ad]=_0x3b8787,_0x1a5fdb[_0x1d9b1b(0x19e)](_0x4ebac0[_0x1d9b1b(0x188)]);}for(const _0x4a7169 of _0x1a5fdb){delete _0x15fc22[_0x4a7169];}return{'flags':_0x15fc22,'corrections':_0x302697};}
1
+ (function(_0x4b9c0d,_0x3314d1){const _0x1e1858=a84_0x20d5,_0x896b02=_0x4b9c0d();while(!![]){try{const _0x333c3a=-parseInt(_0x1e1858(0x10c))/0x1*(parseInt(_0x1e1858(0x11a))/0x2)+-parseInt(_0x1e1858(0xf7))/0x3*(parseInt(_0x1e1858(0x113))/0x4)+parseInt(_0x1e1858(0x101))/0x5*(-parseInt(_0x1e1858(0xf0))/0x6)+-parseInt(_0x1e1858(0x10d))/0x7*(-parseInt(_0x1e1858(0x10e))/0x8)+-parseInt(_0x1e1858(0xf4))/0x9*(-parseInt(_0x1e1858(0x100))/0xa)+parseInt(_0x1e1858(0x111))/0xb+-parseInt(_0x1e1858(0xfe))/0xc*(parseInt(_0x1e1858(0x108))/0xd);if(_0x333c3a===_0x3314d1)break;else _0x896b02['push'](_0x896b02['shift']());}catch(_0x2d2036){_0x896b02['push'](_0x896b02['shift']());}}}(a84_0x43e2,0x37f3e));function toKebab(_0x42b337){const _0x5708d1=a84_0x20d5;return _0x42b337[_0x5708d1(0x118)](/_/g,'-')[_0x5708d1(0x118)](/-([A-Z]+)/g,(_0xe4ac74,_0x46acb6)=>'-'+_0x46acb6[_0x5708d1(0x106)]())[_0x5708d1(0x118)](/([a-z0-9])([A-Z])/g,(_0x3d565e,_0x8f7010,_0x5b2b17)=>_0x8f7010+'-'+_0x5b2b17)['toLowerCase']();}function a84_0x20d5(_0xddd555,_0x3aa50a){_0xddd555=_0xddd555-0xf0;const _0x43e2b4=a84_0x43e2();let _0x20d51d=_0x43e2b4[_0xddd555];return _0x20d51d;}function buildKnownFlags(_0x3297e8){const _0x3a264e=a84_0x20d5,_0x142326=new Set();for(const _0x54183c of _0x3297e8){_0x142326[_0x3a264e(0xf5)](_0x54183c[_0x3a264e(0xf6)]),_0x142326[_0x3a264e(0xf5)](toCamelCase(_0x54183c['name']));}for(const _0x3aa63e of[_0x3a264e(0x10f),_0x3a264e(0x103),_0x3a264e(0xf8),_0x3a264e(0x10b)]){_0x142326['add'](_0x3aa63e);}for(const _0x318c40 of[_0x3a264e(0xf2),_0x3a264e(0xf3),_0x3a264e(0xfd),_0x3a264e(0x112),'nonInteractive',_0x3a264e(0x110),'ci','global',_0x3a264e(0x104)]){_0x142326[_0x3a264e(0xf5)](_0x318c40);}return _0x142326;}function buildFlagTypeMap(_0x4fc4f2){const _0xb855e4=a84_0x20d5,_0x1c5884=new Map();for(const _0x14088e of _0x4fc4f2){_0x1c5884[_0xb855e4(0x115)](_0x14088e[_0xb855e4(0xf6)],_0x14088e['type']),_0x1c5884[_0xb855e4(0x115)](toCamelCase(_0x14088e[_0xb855e4(0xf6)]),_0x14088e[_0xb855e4(0x105)]);}return _0x1c5884;}function toCamelCase(_0x4d34c5){return _0x4d34c5['replace'](/-([a-z])/g,(_0x46f16c,_0x4046ba)=>_0x4046ba['toUpperCase']());}function aliasHandler(_0x59bbad,_0x506339){const _0x497b78=a84_0x20d5,_0x55e4a5=[];for(const _0x55f1a9 of Object[_0x497b78(0x10a)](_0x59bbad)){if(_0x506339['has'](_0x55f1a9))continue;const _0x1191f5=toKebab(_0x55f1a9);_0x1191f5!==_0x55f1a9&&_0x506339[_0x497b78(0xfa)](_0x1191f5)&&_0x55e4a5[_0x497b78(0x117)]({'original':_0x55f1a9,'corrected':_0x1191f5,'handler':_0x497b78(0xfc)});}return _0x55e4a5;}function a84_0x43e2(){const _0x41b838=['version','type','toLowerCase','get','104kONXAY','corrected','keys','format','2Pswzoj','1949703VCYAyx','8gKXUZd','dry-run','non-interactive','3061586Mcorlf','app','52VYNSyW','sticky','set','entries','push','replace','original','150036efLjTw','6nplrsL','length','help','env','9TDFFWp','add','name','10653sGQuPV','yes','boolean','has','string','alias','appcode','613464fRbiab','slice','2838810WJXWxS','31895Qqhxvo','number','dryRun'];a84_0x43e2=function(){return _0x41b838;};return a84_0x43e2();}function stickyHandler(_0x2858e9,_0x276585,_0x4f6438){const _0x13032f=a84_0x20d5,_0x29f73f=[];for(const [_0x1a243d,_0x14f171]of Object[_0x13032f(0x116)](_0x2858e9)){if(_0x14f171!==!![])continue;for(let _0x2b10a5=_0x1a243d[_0x13032f(0xf1)]-0x1;_0x2b10a5>0x0;_0x2b10a5--){const _0x40cbe0=_0x1a243d[_0x13032f(0xff)](0x0,_0x2b10a5),_0x1da2b7=_0x1a243d[_0x13032f(0xff)](_0x2b10a5),_0xb2e01c=toKebab(_0x40cbe0),_0x56b1e3=toCamelCase(_0x40cbe0),_0x1f55a0=_0x276585[_0x13032f(0xfa)](_0x40cbe0)?_0x40cbe0:_0x276585[_0x13032f(0xfa)](_0xb2e01c)?_0xb2e01c:_0x276585[_0x13032f(0xfa)](_0x56b1e3)?_0x56b1e3:null;if(!_0x1f55a0)continue;const _0x4aa34e=_0x4f6438[_0x13032f(0x107)](_0x1f55a0)??_0x13032f(0xfb);let _0x81b851;if(_0x4aa34e===_0x13032f(0x102)){const _0xbdf69f=Number(_0x1da2b7);if(isNaN(_0xbdf69f)||_0x1da2b7==='')continue;_0x81b851=_0xbdf69f;}else{if(_0x4aa34e===_0x13032f(0xf9))continue;else{if(_0x1da2b7==='')continue;_0x81b851=_0x1da2b7;}}_0x29f73f[_0x13032f(0x117)]({'original':_0x1a243d,'corrected':_0x1f55a0+'='+_0x81b851,'handler':_0x13032f(0x114)});break;}}return _0x29f73f;}export function correctFlags(_0x222799,_0x26c2f8){const _0x22a51c=a84_0x20d5,_0x9dd893=buildKnownFlags(_0x26c2f8),_0x5ebf4e=buildFlagTypeMap(_0x26c2f8),_0x3bb2e4=aliasHandler(_0x222799,_0x9dd893),_0x31ac20=stickyHandler(_0x222799,_0x9dd893,_0x5ebf4e),_0x3f63a5=[..._0x3bb2e4,..._0x31ac20];if(_0x3f63a5['length']===0x0)return{'flags':_0x222799,'corrections':[]};const _0x8aa65b={..._0x222799},_0x27c1b6=new Set();for(const _0xd7cfbd of _0x3bb2e4){_0x8aa65b[_0xd7cfbd[_0x22a51c(0x109)]]=_0x222799[_0xd7cfbd[_0x22a51c(0x119)]],_0x27c1b6[_0x22a51c(0xf5)](_0xd7cfbd[_0x22a51c(0x119)]);}for(const _0x46c6b6 of _0x31ac20){const _0xc52cf=_0x46c6b6['corrected']['indexOf']('='),_0x3bab28=_0x46c6b6[_0x22a51c(0x109)][_0x22a51c(0xff)](0x0,_0xc52cf),_0xe7a5cd=_0x46c6b6[_0x22a51c(0x109)][_0x22a51c(0xff)](_0xc52cf+0x1),_0x336d2b=_0x5ebf4e[_0x22a51c(0x107)](_0x3bab28)??_0x22a51c(0xfb);_0x336d2b===_0x22a51c(0x102)?_0x8aa65b[_0x3bab28]=Number(_0xe7a5cd):_0x8aa65b[_0x3bab28]=_0xe7a5cd,_0x27c1b6['add'](_0x46c6b6[_0x22a51c(0x119)]);}for(const _0x115f22 of _0x27c1b6){delete _0x8aa65b[_0x115f22];}return{'flags':_0x8aa65b,'corrections':_0x3f63a5};}
@@ -1 +1 @@
1
- (function(_0x2d0aab,_0x37dd9e){var _0xdaf2d8=a85_0xa516,_0x29a66f=_0x2d0aab();while(!![]){try{var _0x5ac373=-parseInt(_0xdaf2d8(0xca))/0x1+-parseInt(_0xdaf2d8(0xcb))/0x2*(parseInt(_0xdaf2d8(0xc5))/0x3)+-parseInt(_0xdaf2d8(0xc7))/0x4+-parseInt(_0xdaf2d8(0xc8))/0x5+parseInt(_0xdaf2d8(0xc4))/0x6+-parseInt(_0xdaf2d8(0xc9))/0x7*(parseInt(_0xdaf2d8(0xcc))/0x8)+parseInt(_0xdaf2d8(0xc6))/0x9;if(_0x5ac373===_0x37dd9e)break;else _0x29a66f['push'](_0x29a66f['shift']());}catch(_0x4cec75){_0x29a66f['push'](_0x29a66f['shift']());}}}(a85_0x2385,0x37913));function a85_0xa516(_0x3d5d5d,_0x2b9968){_0x3d5d5d=_0x3d5d5d-0xc4;var _0x2385ff=a85_0x2385();var _0xa516d0=_0x2385ff[_0x3d5d5d];return _0xa516d0;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a85_0x2385(){var _0x19370d=['792LMZwfl','551814piPVGz','90zqvosi','11793852hPbqTm','806968yRynRl','1500020hvzsUN','24374qIUgeQ','294100aCQfXs','2282cslVml'];a85_0x2385=function(){return _0x19370d;};return a85_0x2385();}
1
+ function a85_0x291b(){var _0x259f3a=['174786WaWIiz','652290tEPGXO','1189488UyXeBN','470187vhXeeB','8mjgUSN','343gvQLDH','634319SiwIHE','5993950vWKLXn','10eMNnLq','1732tuieBT'];a85_0x291b=function(){return _0x259f3a;};return a85_0x291b();}function a85_0xb5d1(_0x7a2717,_0x2696a1){_0x7a2717=_0x7a2717-0x13f;var _0x291b87=a85_0x291b();var _0xb5d163=_0x291b87[_0x7a2717];return _0xb5d163;}(function(_0x490a9f,_0x5ab4f6){var _0x57d593=a85_0xb5d1,_0x5e7e49=_0x490a9f();while(!![]){try{var _0x23c34f=-parseInt(_0x57d593(0x148))/0x1*(parseInt(_0x57d593(0x142))/0x2)+parseInt(_0x57d593(0x144))/0x3+-parseInt(_0x57d593(0x145))/0x4+parseInt(_0x57d593(0x141))/0x5*(parseInt(_0x57d593(0x143))/0x6)+-parseInt(_0x57d593(0x13f))/0x7+parseInt(_0x57d593(0x147))/0x8*(parseInt(_0x57d593(0x146))/0x9)+parseInt(_0x57d593(0x140))/0xa;if(_0x23c34f===_0x5ab4f6)break;else _0x5e7e49['push'](_0x5e7e49['shift']());}catch(_0x10aac9){_0x5e7e49['push'](_0x5e7e49['shift']());}}}(a85_0x291b,0x3b27f));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x2adac3,_0x3eca05){const _0x2193a2=a86_0x525d,_0x529dc2=_0x2adac3();while(!![]){try{const _0x432183=parseInt(_0x2193a2(0x117))/0x1+parseInt(_0x2193a2(0x119))/0x2*(-parseInt(_0x2193a2(0x11f))/0x3)+parseInt(_0x2193a2(0x120))/0x4+-parseInt(_0x2193a2(0x11e))/0x5*(parseInt(_0x2193a2(0x125))/0x6)+-parseInt(_0x2193a2(0x124))/0x7+parseInt(_0x2193a2(0x12a))/0x8*(-parseInt(_0x2193a2(0x12e))/0x9)+parseInt(_0x2193a2(0x127))/0xa;if(_0x432183===_0x3eca05)break;else _0x529dc2['push'](_0x529dc2['shift']());}catch(_0x1a5ba5){_0x529dc2['push'](_0x529dc2['shift']());}}}(a86_0x3b6c,0x84c1c));function a86_0x525d(_0x44f28b,_0x33d0c0){_0x44f28b=_0x44f28b-0x114;const _0x3b6cbe=a86_0x3b6c();let _0x525d78=_0x3b6cbe[_0x44f28b];return _0x525d78;}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x46a338,_0x144d76,_0x29f09e){const _0x5657fe=a86_0x525d,_0x2f71e3=buildConfirmationContext(_0x46a338,_0x144d76,_0x29f09e),_0x106fa7=[_0x5657fe(0x12b)+_0x2f71e3[_0x5657fe(0x115)]];return _0x2f71e3[_0x5657fe(0x122)]&&_0x106fa7[_0x5657fe(0x118)](_0x5657fe(0x116)+_0x2f71e3[_0x5657fe(0x122)]),_0x2f71e3['affectedRecords']&&_0x106fa7['push']('\x20\x20\x20Affected:\x20'+_0x2f71e3[_0x5657fe(0x11a)]),_0x106fa7[_0x5657fe(0x118)](_0x5657fe(0x126)),_0x106fa7;}function a86_0x3b6c(){const _0x251548=['\x20\x20\x20Continue?\x20[y/N]\x20','6314820nCngRa','id=','code','1784OyIxLA','⚠\x20\x20High-risk\x20operation:\x20','params','code=','19170CBEJTM','command','commandLabel','\x20\x20\x20','831276ODEEMM','push','2fgMxQo','affectedRecords','length','entries','join','615245HNidAJ','50763wRtCbW','2523024kTlgvx','name','description','name=','6543474VkXCEd','6CJGupp'];a86_0x3b6c=function(){return _0x251548;};return a86_0x3b6c();}export function reconstructCommandArgv(_0x2b98c4,_0x15e711){const _0x3c0a80=a86_0x525d,_0x43561f=[CLI_BIN_NAME,_0x2b98c4['service'],_0x2b98c4[_0x3c0a80(0x114)]];for(const [_0x42f19e,_0x4a1fd6]of Object[_0x3c0a80(0x11c)](_0x15e711)){if(_0x4a1fd6===!![])_0x43561f['push']('--'+_0x42f19e);else _0x4a1fd6!==![]&&_0x4a1fd6!==undefined&&_0x4a1fd6!==''&&_0x43561f[_0x3c0a80(0x118)]('--'+_0x42f19e+'\x20'+JSON['stringify'](_0x4a1fd6));}return _0x43561f['push']('--yes'),_0x43561f[_0x3c0a80(0x11d)]('\x20');}function buildConfirmationContext(_0x13ce7c,_0x595b1b,_0x1132ee){const _0x3a52b8=a86_0x525d,_0x35cf79=extractAffectedRecords(_0x1132ee);return{'commandLabel':_0x595b1b,'description':_0x13ce7c[_0x3a52b8(0x122)],'affectedRecords':_0x35cf79};}function extractAffectedRecords(_0x314fef){const _0x257768=a86_0x525d,_0x2be70d=[];if(_0x314fef[_0x257768(0x129)])_0x2be70d['push'](_0x257768(0x12d)+_0x314fef[_0x257768(0x129)]);if(_0x314fef['id'])_0x2be70d[_0x257768(0x118)](_0x257768(0x128)+_0x314fef['id']);if(_0x314fef[_0x257768(0x121)])_0x2be70d['push'](_0x257768(0x123)+_0x314fef[_0x257768(0x121)]);if(_0x314fef[_0x257768(0x12c)])_0x2be70d['push']('params='+_0x314fef[_0x257768(0x12c)]);return _0x2be70d[_0x257768(0x11b)]>0x0?_0x2be70d[_0x257768(0x11d)](',\x20'):undefined;}
1
+ (function(_0xb9d37c,_0x3be92f){const _0x1a33ff=a86_0x16fc,_0xee6bee=_0xb9d37c();while(!![]){try{const _0x4a1d76=parseInt(_0x1a33ff(0x169))/0x1*(parseInt(_0x1a33ff(0x176))/0x2)+-parseInt(_0x1a33ff(0x181))/0x3+-parseInt(_0x1a33ff(0x180))/0x4*(-parseInt(_0x1a33ff(0x16a))/0x5)+parseInt(_0x1a33ff(0x17d))/0x6+parseInt(_0x1a33ff(0x17f))/0x7+-parseInt(_0x1a33ff(0x182))/0x8+-parseInt(_0x1a33ff(0x16f))/0x9;if(_0x4a1d76===_0x3be92f)break;else _0xee6bee['push'](_0xee6bee['shift']());}catch(_0xa4e805){_0xee6bee['push'](_0xee6bee['shift']());}}}(a86_0xcb6c,0xcc2e3));import{CLI_BIN_NAME}from'../constant/cli.js';function a86_0xcb6c(){const _0x3cddfe=['10337256kIbbxM','4ncRjGO','7679125zLHUkv','code=','service','code','name=','14150178jUrAYV','length','params','⚠\x20\x20High-risk\x20operation:\x20','--yes','join','stringify','763454RlSCYl','affectedRecords','description','push','entries','\x20\x20\x20Continue?\x20[y/N]\x20','name','5489490MfSvNe','params=','8639190dfknBm','4tyZXxc','4533288ndBByt'];a86_0xcb6c=function(){return _0x3cddfe;};return a86_0xcb6c();}export function buildConfirmationLines(_0x3f9464,_0x3b6e9f,_0x480035){const _0x2cb22c=a86_0x16fc,_0x6bf44e=buildConfirmationContext(_0x3f9464,_0x3b6e9f,_0x480035),_0x125583=[_0x2cb22c(0x172)+_0x6bf44e['commandLabel']];return _0x6bf44e['description']&&_0x125583[_0x2cb22c(0x179)]('\x20\x20\x20'+_0x6bf44e[_0x2cb22c(0x178)]),_0x6bf44e[_0x2cb22c(0x177)]&&_0x125583['push']('\x20\x20\x20Affected:\x20'+_0x6bf44e[_0x2cb22c(0x177)]),_0x125583['push'](_0x2cb22c(0x17b)),_0x125583;}export function reconstructCommandArgv(_0x59c241,_0x5e1d63){const _0x31a870=a86_0x16fc,_0x38a3fa=[CLI_BIN_NAME,_0x59c241[_0x31a870(0x16c)],_0x59c241['command']];for(const [_0x3dc89f,_0x51591f]of Object[_0x31a870(0x17a)](_0x5e1d63)){if(_0x51591f===!![])_0x38a3fa['push']('--'+_0x3dc89f);else _0x51591f!==![]&&_0x51591f!==undefined&&_0x51591f!==''&&_0x38a3fa['push']('--'+_0x3dc89f+'\x20'+JSON[_0x31a870(0x175)](_0x51591f));}return _0x38a3fa[_0x31a870(0x179)](_0x31a870(0x173)),_0x38a3fa['join']('\x20');}function buildConfirmationContext(_0x37afe7,_0x41d790,_0x5cde68){const _0x24ce48=extractAffectedRecords(_0x5cde68);return{'commandLabel':_0x41d790,'description':_0x37afe7['description'],'affectedRecords':_0x24ce48};}function a86_0x16fc(_0x1c8c47,_0x3c433c){_0x1c8c47=_0x1c8c47-0x169;const _0xcb6c50=a86_0xcb6c();let _0x16fc77=_0xcb6c50[_0x1c8c47];return _0x16fc77;}function extractAffectedRecords(_0x5f413a){const _0xa5d9e3=a86_0x16fc,_0x108a1c=[];if(_0x5f413a[_0xa5d9e3(0x16d)])_0x108a1c[_0xa5d9e3(0x179)](_0xa5d9e3(0x16b)+_0x5f413a['code']);if(_0x5f413a['id'])_0x108a1c[_0xa5d9e3(0x179)]('id='+_0x5f413a['id']);if(_0x5f413a[_0xa5d9e3(0x17c)])_0x108a1c['push'](_0xa5d9e3(0x16e)+_0x5f413a[_0xa5d9e3(0x17c)]);if(_0x5f413a[_0xa5d9e3(0x171)])_0x108a1c[_0xa5d9e3(0x179)](_0xa5d9e3(0x17e)+_0x5f413a['params']);return _0x108a1c[_0xa5d9e3(0x170)]>0x0?_0x108a1c[_0xa5d9e3(0x174)](',\x20'):undefined;}
@@ -1 +1 @@
1
- function a87_0x52a5(_0x30f511,_0x519e86){_0x30f511=_0x30f511-0x1ec;const _0x15f43e=a87_0x15f4();let _0x52a509=_0x15f43e[_0x30f511];return _0x52a509;}(function(_0x35098b,_0x3ac192){const _0x5916f3=a87_0x52a5,_0x5b87bb=_0x35098b();while(!![]){try{const _0x2600e0=parseInt(_0x5916f3(0x1ed))/0x1*(-parseInt(_0x5916f3(0x1f0))/0x2)+-parseInt(_0x5916f3(0x1f4))/0x3+-parseInt(_0x5916f3(0x1f8))/0x4*(-parseInt(_0x5916f3(0x1f6))/0x5)+parseInt(_0x5916f3(0x1f9))/0x6*(parseInt(_0x5916f3(0x1f7))/0x7)+-parseInt(_0x5916f3(0x1fb))/0x8+parseInt(_0x5916f3(0x1fa))/0x9+parseInt(_0x5916f3(0x1f2))/0xa*(parseInt(_0x5916f3(0x1ef))/0xb);if(_0x2600e0===_0x3ac192)break;else _0x5b87bb['push'](_0x5b87bb['shift']());}catch(_0x1fea4e){_0x5b87bb['push'](_0x5b87bb['shift']());}}}(a87_0x15f4,0xdd51a));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x25af51){const _0x5926ea=a87_0x52a5;if(_0x25af51 instanceof LovrabetError)return CliErrors[_0x5926ea(0x1ec)](userFacingLovrabetMessage(_0x25af51));return _0x25af51;}function a87_0x15f4(){const _0x839b0f=['4367mgtueY','209890dhixhC','stringify','41780rsGjdp','message','3494193MTzACu','string','15layQbE','458332NAZUgt','1406552abNutQ','24POlAWL','5898132Blfcqe','1562352hiZRdP','validation','13gAESsO','description'];a87_0x15f4=function(){return _0x839b0f;};return a87_0x15f4();}function userFacingLovrabetMessage(_0x20014c){const _0x4a2671=a87_0x52a5,_0x535856=_0x20014c[_0x4a2671(0x1ee)];if(_0x535856!==undefined&&_0x535856!==null){if(typeof _0x535856===_0x4a2671(0x1f5)&&_0x535856['trim']())return _0x535856['trim']();try{return JSON[_0x4a2671(0x1f1)](_0x535856);}catch{}}return _0x20014c[_0x4a2671(0x1f3)];}
1
+ (function(_0x10a0c7,_0x5b2b25){const _0xc8e899=a87_0x6607,_0x354045=_0x10a0c7();while(!![]){try{const _0x30db41=-parseInt(_0xc8e899(0x7f))/0x1+parseInt(_0xc8e899(0x82))/0x2+-parseInt(_0xc8e899(0x85))/0x3+-parseInt(_0xc8e899(0x86))/0x4+parseInt(_0xc8e899(0x88))/0x5*(parseInt(_0xc8e899(0x8a))/0x6)+-parseInt(_0xc8e899(0x89))/0x7*(parseInt(_0xc8e899(0x84))/0x8)+parseInt(_0xc8e899(0x83))/0x9;if(_0x30db41===_0x5b2b25)break;else _0x354045['push'](_0x354045['shift']());}catch(_0x56bc0a){_0x354045['push'](_0x354045['shift']());}}}(a87_0x56b4,0xa3270));function a87_0x6607(_0x1b560c,_0x44d33a){_0x1b560c=_0x1b560c-0x7f;const _0x56b426=a87_0x56b4();let _0x66075f=_0x56b426[_0x1b560c];return _0x66075f;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x102f8c){if(_0x102f8c instanceof LovrabetError)return CliErrors['validation'](userFacingLovrabetMessage(_0x102f8c));return _0x102f8c;}function a87_0x56b4(){const _0x2e692d=['2169864SZsUkg','2934027uClGen','2453120rwNPZU','message','480rVYNul','14YGeADY','15492vgiYmT','862914RMDSqJ','string','stringify','1975250XXfMJo','21864996lYFsgo'];a87_0x56b4=function(){return _0x2e692d;};return a87_0x56b4();}function userFacingLovrabetMessage(_0x1be0d3){const _0x425529=a87_0x6607,_0x5f2ef0=_0x1be0d3['description'];if(_0x5f2ef0!==undefined&&_0x5f2ef0!==null){if(typeof _0x5f2ef0===_0x425529(0x80)&&_0x5f2ef0['trim']())return _0x5f2ef0['trim']();try{return JSON[_0x425529(0x81)](_0x5f2ef0);}catch{}}return _0x1be0d3[_0x425529(0x87)];}
@@ -1 +1 @@
1
- const a88_0x32fb34=a88_0x5bed;(function(_0x1bbcb5,_0x279e45){const _0x467ada=a88_0x5bed,_0x3bcd09=_0x1bbcb5();while(!![]){try{const _0x3f88b2=parseInt(_0x467ada(0x1c8))/0x1+parseInt(_0x467ada(0x1dd))/0x2*(-parseInt(_0x467ada(0x1de))/0x3)+-parseInt(_0x467ada(0x1be))/0x4*(-parseInt(_0x467ada(0x1e3))/0x5)+-parseInt(_0x467ada(0x1ba))/0x6*(parseInt(_0x467ada(0x1d6))/0x7)+-parseInt(_0x467ada(0x1af))/0x8+parseInt(_0x467ada(0x1c3))/0x9*(parseInt(_0x467ada(0x1bc))/0xa)+-parseInt(_0x467ada(0x1ae))/0xb*(parseInt(_0x467ada(0x1d5))/0xc);if(_0x3f88b2===_0x279e45)break;else _0x3bcd09['push'](_0x3bcd09['shift']());}catch(_0x30f2ed){_0x3bcd09['push'](_0x3bcd09['shift']());}}}(a88_0x2151,0xbd1be));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(_0x1adc86){const _0x252d3c=a88_0x5bed;return void _0x1adc86,AUTH_MODE[_0x252d3c(0x1c1)];}export function createPipelineEnv(_0x11f6f1,_0x97baff){const _0x36660e=a88_0x5bed,_0xa86ac=typeof _0x97baff[_0x36660e(0x1ab)]===_0x36660e(0x1a9)&&_0x97baff[_0x36660e(0x1ab)][_0x36660e(0x1da)]();return{'rawFlags':_0x97baff,'appCode':_0x11f6f1[_0x36660e(0x1b1)]||productEnv(_0x36660e(0x1d7))||(_0xa86ac?undefined:readAppCodeFromConfig()),'appCodeSource':_0x11f6f1['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x97baff),'defaultFormat':_0x11f6f1[_0x36660e(0x1cd)],'defaultPageSize':_0x11f6f1['pageSize'],'defaultVerbose':_0x11f6f1['verbose'],'riskLevel':_0x11f6f1['riskLevel'],'accessKey':_0x11f6f1[_0x36660e(0x1cf)],'env':_0x11f6f1[_0x36660e(0x1d3)],'mergedCli':{'defaultApp':_0x11f6f1['defaultApp'],'currentApp':_0x11f6f1[_0x36660e(0x1b2)],'appCode':_0x11f6f1[_0x36660e(0x1b1)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x7faef=>PIPELINE_FLAG_NAMES[a88_0x32fb34(0x1ac)](_0x7faef['name']))[a88_0x32fb34(0x1d2)](({name:_0x35a23e,type:_0x2ad089,description:_0x26038d})=>({'name':_0x35a23e,'type':_0x2ad089,'description':_0x26038d})),'formatOutput':formatOutput,'getCommandLabel'(_0x119689){const _0x556f7d=a88_0x32fb34;return CLI_BIN_NAME+'\x20'+_0x119689[_0x556f7d(0x1e4)]+'\x20'+_0x119689[_0x556f7d(0x1e2)];},'riskPolicy':{'onViolation'(_0x37dcde){console['error'](_0x37dcde);},'createError'(_0x4d592d){const _0x19155a=a88_0x32fb34;return CliErrors[_0x19155a(0x1b3)](_0x4d592d);}},async 'prepare'(_0x4f3930,_0x535319){const _0x1a6695=a88_0x32fb34,_0x32190c=resolveAuthMode(_0x535319);if(_0x4f3930[_0x1a6695(0x1db)]!==![]){if(!_0x535319[_0x1a6695(0x1cf)])throw CliErrors[_0x1a6695(0x1ca)](_0x1a6695(0x1d8)+PRODUCT_CONFIG[_0x1a6695(0x1ce)]+_0x1a6695(0x1c0)+productEnvName(_0x1a6695(0x1b4))+'.');const {setActiveAK:_0x2a231c}=await import(_0x1a6695(0x1cb));_0x2a231c(_0x535319['accessKey']);}let _0x315784='';if(_0x4f3930[_0x1a6695(0x1aa)]!==![]){_0x315784=_0x535319[_0x1a6695(0x1b1)]??'',_0x315784=await resolveExplicitAppName(_0x4f3930,_0x535319,_0x315784);if(!_0x315784){await assertSelectedAppNameIsRuntimeAccessible(_0x4f3930,_0x535319);throw CliErrors[_0x1a6695(0x1bf)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x4f3930,_0x535319,_0x315784);}if(_0x315784){const {initSdkClient:_0x2e3f0b}=await import(_0x1a6695(0x1b0));_0x2e3f0b({'appCode':_0x315784,'env':_0x535319[_0x1a6695(0x1d3)]??_0x1a6695(0x1cc),'accessKey':_0x535319[_0x1a6695(0x1cf)],'authMode':_0x32190c});}return{'defaults':{'booleans':{'verbose':_0x535319[_0x1a6695(0x1a8)]},'numbers':{'pagesize':_0x535319[_0x1a6695(0x1b7)]}},'extras':{'appCode':_0x315784,'cookie':'','apiDomain':_0x535319[_0x1a6695(0x1b8)],'apiDir':'','accessKey':_0x535319[_0x1a6695(0x1cf)],'envName':_0x535319[_0x1a6695(0x1d3)],'mergedCli':_0x535319[_0x1a6695(0x1e6)]}};},async 'confirmHighRisk'({def:_0x270c04,env:_0x26be59,flags:_0x497021,commandLabel:_0x5d4d99}){const _0x2f53ed=a88_0x32fb34;if(_0x26be59[_0x2f53ed(0x1a6)]){const _0x3502e3=reconstructCommandArgv(_0x270c04,_0x497021);throw CliErrors[_0x2f53ed(0x1c5)](_0x2f53ed(0x1ad)+_0x5d4d99+_0x2f53ed(0x1c9)+(_0x2f53ed(0x1e0)+_0x3502e3));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x270c04,_0x5d4d99,_0x497021),'createCancelledError':_0x127585=>CliErrors['cancelled'](_0x127585)});},'mapDryRunError'(_0x54321b){return mapUserFacingExecuteError(_0x54321b);},'mapExecuteError'(_0x5a0a22){return mapUserFacingExecuteError(_0x5a0a22);},async 'finalize'(){const {clearActiveAK:_0x21b635}=await import('../core/api-client.js');_0x21b635();}};async function resolveExplicitAppName(_0x4643da,_0x8df302,_0x221cbf){const _0x19a6e0=a88_0x32fb34;if(_0x4643da['requiresAppCode']===![])return _0x221cbf;const _0x3c38d8=typeof _0x8df302[_0x19a6e0(0x1b6)][_0x19a6e0(0x1ab)]===_0x19a6e0(0x1a9)?_0x8df302[_0x19a6e0(0x1b6)][_0x19a6e0(0x1ab)][_0x19a6e0(0x1da)]():'';if(!_0x3c38d8)return _0x221cbf;const _0x18cc6c=typeof _0x8df302[_0x19a6e0(0x1b6)][_0x19a6e0(0x1d4)]===_0x19a6e0(0x1a9)&&_0x8df302[_0x19a6e0(0x1b6)]['appcode'][_0x19a6e0(0x1da)]()||productEnv('APPCODE');if(_0x18cc6c||_0x8df302['appCodeSource']===_0x19a6e0(0x1d9))return _0x221cbf;const {getRemoteAppList:_0x1a4c6c}=await import(_0x19a6e0(0x1b9)),_0x631dc2=await _0x1a4c6c({'env':_0x8df302[_0x19a6e0(0x1d3)]??_0x19a6e0(0x1cc),'accessKey':_0x8df302[_0x19a6e0(0x1cf)]}),_0x59e48b=findAppByName(_0x631dc2[_0x19a6e0(0x1e1)],_0x3c38d8);if(_0x59e48b&&!isRuntimeAccessibleApp(_0x59e48b))throw runtimeInaccessibleAppError(_0x59e48b,'\x22'+_0x3c38d8+'\x22');const _0x5940ed=_0x59e48b?.[_0x19a6e0(0x1b1)]?.['trim']();if(_0x5940ed)return _0x5940ed;throw CliErrors[_0x19a6e0(0x1c5)](_0x19a6e0(0x1e5)+_0x3c38d8,_0x19a6e0(0x1c6)+CLI_BIN_NAME+_0x19a6e0(0x1bb)+_0x3c38d8+_0x19a6e0(0x1c4)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x4bcf93,_0x49bb92){const _0xc2f3c4=a88_0x32fb34;if(_0x4bcf93['requiresAppCode']===![]||!_0x49bb92[_0xc2f3c4(0x1cf)])return;const _0x2f686f=(typeof _0x49bb92['rawFlags']['app']==='string'&&_0x49bb92['rawFlags'][_0xc2f3c4(0x1ab)][_0xc2f3c4(0x1da)]()?_0x49bb92[_0xc2f3c4(0x1b6)][_0xc2f3c4(0x1ab)]:_0x49bb92['mergedCli']?.[_0xc2f3c4(0x1b2)]??_0x49bb92[_0xc2f3c4(0x1e6)]?.['defaultApp'])?.['trim']();if(!_0x2f686f)return;const {getRemoteAppList:_0x3b0978}=await import(_0xc2f3c4(0x1b9)),_0x1de4ee=await _0x3b0978({'env':_0x49bb92[_0xc2f3c4(0x1d3)]??_0xc2f3c4(0x1cc),'accessKey':_0x49bb92[_0xc2f3c4(0x1cf)]}),_0x8b7241=findAppByName(_0x1de4ee[_0xc2f3c4(0x1e1)],_0x2f686f);if(_0x8b7241&&!isRuntimeAccessibleApp(_0x8b7241))throw runtimeInaccessibleAppError(_0x8b7241,'\x22'+_0x2f686f+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1eeab4,_0x26b90f,_0x560be0){const _0x24f515=a88_0x32fb34;if(_0x1eeab4[_0x24f515(0x1aa)]===![]||!_0x26b90f['accessKey'])return;const {getRemoteAppList:_0x65febf}=await import('../commands/app/remote-source.js'),_0x124705=await _0x65febf({'env':_0x26b90f[_0x24f515(0x1d3)]??'production','accessKey':_0x26b90f[_0x24f515(0x1cf)]}),_0x511ac2=findAppByCode(_0x124705['items'],_0x560be0);if(_0x511ac2&&!isRuntimeAccessibleApp(_0x511ac2))throw runtimeInaccessibleAppError(_0x511ac2,'appcode\x20\x22'+_0x560be0+'\x22');}export async function runCommand(_0x1d8411,_0x298cd3){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1d8411)?withUpdateNotice(_0x1d8411):_0x1d8411,_0x298cd3,runnerAdapter);}function a88_0x2151(){const _0x5794c3=['string','requiresAppCode','app','has','High-risk\x20operation\x20`','2882LOMSfJ','1299608zzdKsI','../core/sdk-client.js','appCode','currentApp','cancelled','ACCESS_KEY','nonInteractive','rawFlags','defaultPageSize','apiDomain','../commands/app/remote-source.js','6LnQNuP','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','1860MHMLna','resolve','12524gLMhnP','configMissing','\x20or\x20pass\x20','ClientAk','execute','63837cdqBkX','.appcode\x20to\x20','validation','Run\x20`','pretty','1186560qSWmAR','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','authRequired','../core/api-client.js','production','format','newConfigFileName','accessKey','schema','update','map','env','appcode','46524BUDHBW','1965719HYvWxw','APPCODE','Set\x20accessKey\x20in\x20','local-alias','trim','requiresAuth','object','2oAbdwP','1709013Kaxpax','_notice','\x20\x20To\x20proceed:\x20','items','command','475NnYuDb','service','Unknown\x20app:\x20','mergedCli','isNonInteractive','includes','defaultVerbose'];a88_0x2151=function(){return _0x5794c3;};return a88_0x2151();}function a88_0x5bed(_0x342b77,_0x264d27){_0x342b77=_0x342b77-0x1a6;const _0x215151=a88_0x2151();let _0x5bed04=_0x215151[_0x342b77];return _0x5bed04;}function shouldAttachUpdateNotice(_0x195ca4){const _0x3f0be5=a88_0x32fb34;return![_0x3f0be5(0x1d1),_0x3f0be5(0x1d0),'doctor'][_0x3f0be5(0x1a7)](_0x195ca4[_0x3f0be5(0x1e4)]);}function withUpdateNotice(_0x465a6f){return{..._0x465a6f,async 'execute'(_0x20cdc9){const _0x562b30=a88_0x5bed,_0x106656=shouldResolveUpdateNotice(_0x20cdc9)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x562b30(0x1bd)](null),_0x5492b9=await _0x465a6f[_0x562b30(0x1c2)](_0x20cdc9);return attachUpdateNotice(_0x5492b9,await _0x106656);}};}function shouldResolveUpdateNotice(_0x5e7f3c){const _0x221935=a88_0x32fb34;return _0x5e7f3c[_0x221935(0x1cd)]===_0x221935(0x1c7)&&!_0x5e7f3c[_0x221935(0x1b5)];}function attachUpdateNotice(_0x16eae9,_0x4ff3b4){const _0x396697=a88_0x32fb34;if(!_0x4ff3b4||!_0x16eae9||typeof _0x16eae9!=='object')return _0x16eae9;const _0x4df038=_0x16eae9,_0x334608=typeof _0x4df038[_0x396697(0x1df)]===_0x396697(0x1dc)&&_0x4df038[_0x396697(0x1df)]!==null?_0x4df038['_notice']:{};return{..._0x4df038,'_notice':{..._0x334608,'update':_0x4ff3b4}};}
1
+ const a88_0x3a1216=a88_0x12df;(function(_0x3147ee,_0x632e7c){const _0x2e443d=a88_0x12df,_0x22a99e=_0x3147ee();while(!![]){try{const _0x1193df=-parseInt(_0x2e443d(0x153))/0x1*(parseInt(_0x2e443d(0x12c))/0x2)+-parseInt(_0x2e443d(0x144))/0x3+parseInt(_0x2e443d(0x127))/0x4*(parseInt(_0x2e443d(0x14e))/0x5)+parseInt(_0x2e443d(0x129))/0x6+-parseInt(_0x2e443d(0x13e))/0x7*(-parseInt(_0x2e443d(0x15b))/0x8)+parseInt(_0x2e443d(0x13c))/0x9*(-parseInt(_0x2e443d(0x155))/0xa)+parseInt(_0x2e443d(0x147))/0xb;if(_0x1193df===_0x632e7c)break;else _0x22a99e['push'](_0x22a99e['shift']());}catch(_0x334e81){_0x22a99e['push'](_0x22a99e['shift']());}}}(a88_0x4eca,0x2fae2));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(_0x3d32e5){return void _0x3d32e5,AUTH_MODE['ClientAk'];}export function createPipelineEnv(_0x5348f1,_0x46a3dc){const _0x2383cb=a88_0x12df,_0x3fd978=typeof _0x46a3dc['app']===_0x2383cb(0x162)&&_0x46a3dc[_0x2383cb(0x165)][_0x2383cb(0x150)]();return{'rawFlags':_0x46a3dc,'appCode':_0x5348f1[_0x2383cb(0x13f)]||productEnv(_0x2383cb(0x148))||(_0x3fd978?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5348f1[_0x2383cb(0x12e)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x46a3dc),'defaultFormat':_0x5348f1[_0x2383cb(0x14c)],'defaultPageSize':_0x5348f1[_0x2383cb(0x146)],'defaultVerbose':_0x5348f1['verbose'],'riskLevel':_0x5348f1[_0x2383cb(0x15d)],'accessKey':_0x5348f1[_0x2383cb(0x149)],'env':_0x5348f1[_0x2383cb(0x139)],'mergedCli':{'defaultApp':_0x5348f1[_0x2383cb(0x163)],'currentApp':_0x5348f1[_0x2383cb(0x142)],'appCode':_0x5348f1[_0x2383cb(0x13f)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a88_0x3a1216(0x125)](_0x2fb52f=>PIPELINE_FLAG_NAMES[a88_0x3a1216(0x14f)](_0x2fb52f[a88_0x3a1216(0x15c)]))['map'](({name:_0x347fe3,type:_0x112414,description:_0x3f3f1b})=>({'name':_0x347fe3,'type':_0x112414,'description':_0x3f3f1b})),'formatOutput':formatOutput,'getCommandLabel'(_0x3a4948){const _0x15b7cd=a88_0x3a1216;return CLI_BIN_NAME+'\x20'+_0x3a4948[_0x15b7cd(0x15f)]+'\x20'+_0x3a4948[_0x15b7cd(0x152)];},'riskPolicy':{'onViolation'(_0x27c747){console['error'](_0x27c747);},'createError'(_0x1f02f7){return CliErrors['cancelled'](_0x1f02f7);}},async 'prepare'(_0x339093,_0x1a6520){const _0xc2eee8=a88_0x3a1216,_0x3334df=resolveAuthMode(_0x1a6520);if(_0x339093[_0xc2eee8(0x130)]!==![]){if(!_0x1a6520[_0xc2eee8(0x149)])throw CliErrors[_0xc2eee8(0x136)](_0xc2eee8(0x12d)+PRODUCT_CONFIG['newConfigFileName']+_0xc2eee8(0x164)+productEnvName(_0xc2eee8(0x128))+'.');const {setActiveAK:_0x57bf97}=await import(_0xc2eee8(0x12b));_0x57bf97(_0x1a6520[_0xc2eee8(0x149)]);}let _0x52f214='';if(_0x339093[_0xc2eee8(0x158)]!==![]){_0x52f214=_0x1a6520['appCode']??'',_0x52f214=await resolveExplicitAppName(_0x339093,_0x1a6520,_0x52f214);if(!_0x52f214){await assertSelectedAppNameIsRuntimeAccessible(_0x339093,_0x1a6520);throw CliErrors[_0xc2eee8(0x140)](_0xc2eee8(0x160)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x339093,_0x1a6520,_0x52f214);}if(_0x52f214){const {initSdkClient:_0x5c34ca}=await import(_0xc2eee8(0x141));_0x5c34ca({'appCode':_0x52f214,'env':_0x1a6520[_0xc2eee8(0x139)]??_0xc2eee8(0x14d),'accessKey':_0x1a6520[_0xc2eee8(0x149)],'authMode':_0x3334df});}return{'defaults':{'booleans':{'verbose':_0x1a6520[_0xc2eee8(0x159)]},'numbers':{'pagesize':_0x1a6520[_0xc2eee8(0x15e)]}},'extras':{'appCode':_0x52f214,'cookie':'','apiDomain':_0x1a6520[_0xc2eee8(0x157)],'apiDir':'','accessKey':_0x1a6520[_0xc2eee8(0x149)],'envName':_0x1a6520[_0xc2eee8(0x139)],'mergedCli':_0x1a6520[_0xc2eee8(0x13b)]}};},async 'confirmHighRisk'({def:_0x789318,env:_0x4fb6b1,flags:_0x4277f2,commandLabel:_0x282dd8}){const _0x2ca826=a88_0x3a1216;if(_0x4fb6b1[_0x2ca826(0x13a)]){const _0x29f737=reconstructCommandArgv(_0x789318,_0x4277f2);throw CliErrors[_0x2ca826(0x156)](_0x2ca826(0x166)+_0x282dd8+_0x2ca826(0x151)+(_0x2ca826(0x13d)+_0x29f737));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x789318,_0x282dd8,_0x4277f2),'createCancelledError':_0x3c002b=>CliErrors[_0x2ca826(0x133)](_0x3c002b)});},'mapDryRunError'(_0x2a5bdb){return mapUserFacingExecuteError(_0x2a5bdb);},'mapExecuteError'(_0xab0d13){return mapUserFacingExecuteError(_0xab0d13);},async 'finalize'(){const {clearActiveAK:_0xb0529f}=await import('../core/api-client.js');_0xb0529f();}};async function resolveExplicitAppName(_0x117737,_0x36ae02,_0x239660){const _0x90ad89=a88_0x3a1216;if(_0x117737[_0x90ad89(0x158)]===![])return _0x239660;const _0x376850=typeof _0x36ae02[_0x90ad89(0x15a)][_0x90ad89(0x165)]==='string'?_0x36ae02[_0x90ad89(0x15a)][_0x90ad89(0x165)][_0x90ad89(0x150)]():'';if(!_0x376850)return _0x239660;const _0x1ab0be=typeof _0x36ae02[_0x90ad89(0x15a)][_0x90ad89(0x161)]==='string'&&_0x36ae02[_0x90ad89(0x15a)]['appcode'][_0x90ad89(0x150)]()||productEnv(_0x90ad89(0x148));if(_0x1ab0be||_0x36ae02[_0x90ad89(0x12e)]==='local-alias')return _0x239660;const {getRemoteAppList:_0xa8a26a}=await import(_0x90ad89(0x143)),_0x49fc82=await _0xa8a26a({'env':_0x36ae02[_0x90ad89(0x139)]??_0x90ad89(0x14d),'accessKey':_0x36ae02[_0x90ad89(0x149)]}),_0x1ac48f=findAppByName(_0x49fc82[_0x90ad89(0x131)],_0x376850);if(_0x1ac48f&&!isRuntimeAccessibleApp(_0x1ac48f))throw runtimeInaccessibleAppError(_0x1ac48f,'\x22'+_0x376850+'\x22');const _0x337c4d=_0x1ac48f?.['appCode']?.['trim']();if(_0x337c4d)return _0x337c4d;throw CliErrors['validation'](_0x90ad89(0x137)+_0x376850,_0x90ad89(0x12f)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x376850+_0x90ad89(0x138)+PRODUCT_CONFIG[_0x90ad89(0x132)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x33bd8e,_0x200cf3){const _0x110a45=a88_0x3a1216;if(_0x33bd8e[_0x110a45(0x158)]===![]||!_0x200cf3[_0x110a45(0x149)])return;const _0x3cede5=(typeof _0x200cf3[_0x110a45(0x15a)][_0x110a45(0x165)]===_0x110a45(0x162)&&_0x200cf3[_0x110a45(0x15a)][_0x110a45(0x165)][_0x110a45(0x150)]()?_0x200cf3[_0x110a45(0x15a)][_0x110a45(0x165)]:_0x200cf3[_0x110a45(0x13b)]?.[_0x110a45(0x142)]??_0x200cf3[_0x110a45(0x13b)]?.[_0x110a45(0x163)])?.[_0x110a45(0x150)]();if(!_0x3cede5)return;const {getRemoteAppList:_0x1ecab9}=await import(_0x110a45(0x143)),_0xc8623f=await _0x1ecab9({'env':_0x200cf3['env']??_0x110a45(0x14d),'accessKey':_0x200cf3[_0x110a45(0x149)]}),_0x1eae70=findAppByName(_0xc8623f[_0x110a45(0x131)],_0x3cede5);if(_0x1eae70&&!isRuntimeAccessibleApp(_0x1eae70))throw runtimeInaccessibleAppError(_0x1eae70,'\x22'+_0x3cede5+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1287e8,_0x355f72,_0x48517a){const _0x5c7442=a88_0x3a1216;if(_0x1287e8[_0x5c7442(0x158)]===![]||!_0x355f72[_0x5c7442(0x149)])return;const {getRemoteAppList:_0x1ae46e}=await import(_0x5c7442(0x143)),_0x37e6df=await _0x1ae46e({'env':_0x355f72[_0x5c7442(0x139)]??'production','accessKey':_0x355f72[_0x5c7442(0x149)]}),_0x25ffe1=findAppByCode(_0x37e6df[_0x5c7442(0x131)],_0x48517a);if(_0x25ffe1&&!isRuntimeAccessibleApp(_0x25ffe1))throw runtimeInaccessibleAppError(_0x25ffe1,_0x5c7442(0x167)+_0x48517a+'\x22');}export async function runCommand(_0x2d66b3,_0x308bed){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2d66b3)?withUpdateNotice(_0x2d66b3):_0x2d66b3,_0x308bed,runnerAdapter);}function shouldAttachUpdateNotice(_0x56c760){const _0x3c4fa8=a88_0x3a1216;return![_0x3c4fa8(0x14a),'schema',_0x3c4fa8(0x12a)][_0x3c4fa8(0x135)](_0x56c760[_0x3c4fa8(0x15f)]);}function withUpdateNotice(_0xeecfba){return{..._0xeecfba,async 'execute'(_0x46eda7){const _0x5a9852=a88_0x12df,_0x2585cf=shouldResolveUpdateNotice(_0x46eda7)?resolveLatestUpdateNotice()[_0x5a9852(0x124)](()=>null):Promise[_0x5a9852(0x14b)](null),_0x25fd25=await _0xeecfba[_0x5a9852(0x134)](_0x46eda7);return attachUpdateNotice(_0x25fd25,await _0x2585cf);}};}function a88_0x4eca(){const _0x227490=['app','High-risk\x20operation\x20`','appcode\x20\x22','catch','filter','object','32dWFJar','ACCESS_KEY','2149824gsollb','doctor','../core/api-client.js','10TaTrGm','Set\x20accessKey\x20in\x20','appCodeSource','Run\x20`','requiresAuth','items','newConfigFileName','cancelled','execute','includes','authRequired','Unknown\x20app:\x20','.appcode\x20to\x20','env','isNonInteractive','mergedCli','54GKelPw','\x20\x20To\x20proceed:\x20','7lLtNiK','appCode','configMissing','../core/sdk-client.js','currentApp','../commands/app/remote-source.js','278373LkcdHz','_notice','pageSize','556127WFlOPh','APPCODE','accessKey','update','resolve','format','production','129940sALlbi','has','trim','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','command','61616WujKBs','nonInteractive','595170qkkDaQ','validation','apiDomain','requiresAppCode','defaultVerbose','rawFlags','2692048qetzfi','name','riskLevel','defaultPageSize','service','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','appcode','string','defaultApp','\x20or\x20pass\x20'];a88_0x4eca=function(){return _0x227490;};return a88_0x4eca();}function shouldResolveUpdateNotice(_0x532c0f){const _0x27eb4d=a88_0x3a1216;return _0x532c0f[_0x27eb4d(0x14c)]==='pretty'&&!_0x532c0f[_0x27eb4d(0x154)];}function a88_0x12df(_0x37221a,_0x1fbc95){_0x37221a=_0x37221a-0x124;const _0x4eca4e=a88_0x4eca();let _0x12dfc2=_0x4eca4e[_0x37221a];return _0x12dfc2;}function attachUpdateNotice(_0x126e29,_0x1685e0){const _0x4623da=a88_0x3a1216;if(!_0x1685e0||!_0x126e29||typeof _0x126e29!==_0x4623da(0x126))return _0x126e29;const _0xce4001=_0x126e29,_0x54d457=typeof _0xce4001['_notice']===_0x4623da(0x126)&&_0xce4001['_notice']!==null?_0xce4001[_0x4623da(0x145)]:{};return{..._0xce4001,'_notice':{..._0x54d457,'update':_0x1685e0}};}
@@ -1 +1 @@
1
- (function(_0x505744,_0x5a9e3d){const _0x2d252b=a89_0xb34e,_0x398eaf=_0x505744();while(!![]){try{const _0x3a3ac4=-parseInt(_0x2d252b(0x8c))/0x1*(-parseInt(_0x2d252b(0x83))/0x2)+-parseInt(_0x2d252b(0x7f))/0x3*(-parseInt(_0x2d252b(0x7d))/0x4)+-parseInt(_0x2d252b(0x89))/0x5+-parseInt(_0x2d252b(0x88))/0x6+parseInt(_0x2d252b(0x84))/0x7*(parseInt(_0x2d252b(0x7a))/0x8)+-parseInt(_0x2d252b(0x80))/0x9+parseInt(_0x2d252b(0x82))/0xa*(parseInt(_0x2d252b(0x87))/0xb);if(_0x3a3ac4===_0x5a9e3d)break;else _0x398eaf['push'](_0x398eaf['shift']());}catch(_0x23e1b9){_0x398eaf['push'](_0x398eaf['shift']());}}}(a89_0x1e52,0x6c113));import{buildSchemaPayload as a89_0x5e9844}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_0xb34e(_0x3f78da,_0x1ea88f){_0x3f78da=_0x3f78da-0x79;const _0x1e526d=a89_0x1e52();let _0xb34ecd=_0x1e526d[_0x3f78da];return _0xb34ecd;}export async function buildSchemaPayload(){const _0x35bc5f=a89_0xb34e,{serviceRegistry:_0xbb619c,findDefinition:_0x54ff86}=await import(_0x35bc5f(0x85)),_0x2c9ecd=new Set(_0xbb619c[_0x35bc5f(0x7c)](_0x99b924=>_0x99b924['service'])),_0x1a8fe1=listDynamicServiceEntries()[_0x35bc5f(0x86)](_0x232ee3=>!_0x2c9ecd['has'](_0x232ee3[_0x35bc5f(0x8a)])),_0x12ff6c=a89_0x5e9844({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0xbb619c,_0x1a8fe1),'buildAllFlags':buildAllFlags,'findDefinition':(_0x570671,_0x18dc82)=>_0x54ff86(_0x570671,_0x18dc82)??findDynamicServiceDefinition(_0x570671,_0x18dc82)});return normalizeSchemaPayload(_0x12ff6c);}function a89_0x1e52(){const _0x288b4e=['559jaIgfu','required','208Bbfujn','none','map','563708JKPZTE','requiresAuth','18GUjJcN','1514205QWtUYi','services','90xNZWLJ','1454sBdVEj','26026WzUgga','../commands/registry.js','filter','1075272HfWZGO','4462416qNShSh','4368835zJnylS','service','commands'];a89_0x1e52=function(){return _0x288b4e;};return a89_0x1e52();}function normalizeSchemaPayload(_0x5e8814){const _0x5281e7=a89_0xb34e;return{..._0x5e8814,'schemaVersion':0x2,'services':_0x5e8814[_0x5281e7(0x81)][_0x5281e7(0x7c)](_0x55f170=>({..._0x55f170,'commands':_0x55f170[_0x5281e7(0x8b)][_0x5281e7(0x7c)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x3b9570){const _0x454158=a89_0xb34e,_0x4c2b4b=_0x3b9570;return{..._0x3b9570,'auth':_0x4c2b4b['auth']??(_0x3b9570[_0x454158(0x7e)]?_0x454158(0x79):_0x454158(0x7b))};}
1
+ function a89_0x3b54(_0x5c2860,_0x1b5c67){_0x5c2860=_0x5c2860-0xc8;const _0x45b616=a89_0x45b6();let _0x3b5443=_0x45b616[_0x5c2860];return _0x3b5443;}function a89_0x45b6(){const _0x7e237f=['9qErGWh','862832HkvfjL','3ThUAsy','commands','services','auth','service','466qjDhmn','341jdbXXS','411656ExxQlk','requiresAuth','876CdaEUI','map','required','236525KlyaSp','filter','1503887YHHqdp','none','209030FRxadS','has','1355838ZWZvqW'];a89_0x45b6=function(){return _0x7e237f;};return a89_0x45b6();}(function(_0x48ac12,_0x57703c){const _0x18d36e=a89_0x3b54,_0x363a67=_0x48ac12();while(!![]){try{const _0x209f22=parseInt(_0x18d36e(0xce))/0x1*(parseInt(_0x18d36e(0xca))/0x2)+-parseInt(_0x18d36e(0xda))/0x3*(-parseInt(_0x18d36e(0xd9))/0x4)+-parseInt(_0x18d36e(0xd1))/0x5+parseInt(_0x18d36e(0xd7))/0x6+parseInt(_0x18d36e(0xd3))/0x7+parseInt(_0x18d36e(0xcc))/0x8*(-parseInt(_0x18d36e(0xd8))/0x9)+parseInt(_0x18d36e(0xd5))/0xa*(-parseInt(_0x18d36e(0xcb))/0xb);if(_0x209f22===_0x57703c)break;else _0x363a67['push'](_0x363a67['shift']());}catch(_0x1427f3){_0x363a67['push'](_0x363a67['shift']());}}}(a89_0x45b6,0x1bcd3));import{buildSchemaPayload as a89_0x1839b4}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';export async function buildSchemaPayload(){const _0x4f1e48=a89_0x3b54,{serviceRegistry:_0x3558df,findDefinition:_0x3c14b2}=await import('../commands/registry.js'),_0x558eed=new Set(_0x3558df['map'](_0xffc115=>_0xffc115['service'])),_0xaad6ce=listDynamicServiceEntries()[_0x4f1e48(0xd2)](_0x7c1c18=>!_0x558eed[_0x4f1e48(0xd6)](_0x7c1c18[_0x4f1e48(0xc9)])),_0x1dbd23=a89_0x1839b4({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x3558df,_0xaad6ce),'buildAllFlags':buildAllFlags,'findDefinition':(_0x366b59,_0x217663)=>_0x3c14b2(_0x366b59,_0x217663)??findDynamicServiceDefinition(_0x366b59,_0x217663)});return normalizeSchemaPayload(_0x1dbd23);}function normalizeSchemaPayload(_0x5d2435){const _0x5b3582=a89_0x3b54;return{..._0x5d2435,'schemaVersion':0x2,'services':_0x5d2435[_0x5b3582(0xdc)]['map'](_0x14911e=>({..._0x14911e,'commands':_0x14911e[_0x5b3582(0xdb)][_0x5b3582(0xcf)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x318ed3){const _0x148f28=a89_0x3b54,_0x2b2be1=_0x318ed3;return{..._0x318ed3,'auth':_0x2b2be1[_0x148f28(0xc8)]??(_0x318ed3[_0x148f28(0xcd)]?_0x148f28(0xd0):_0x148f28(0xd4))};}
@@ -1 +1 @@
1
- function a90_0x40f1(){const _0x4c737b=['18606AMdQYC','1325520seaUSV','length','2968jUDBBe','5931xUejEp','slice','20zfuoww','34860YJlhaB','1466008drlMaH','277054obBUds','595GwVlqY','2538019rmkTaj','findIndex','3RyiDcM','service'];a90_0x40f1=function(){return _0x4c737b;};return a90_0x40f1();}function a90_0x2d00(_0x2e157e,_0x318310){_0x2e157e=_0x2e157e-0xcc;const _0x40f170=a90_0x40f1();let _0x2d0034=_0x40f170[_0x2e157e];return _0x2d0034;}(function(_0x23675e,_0x2d1d6d){const _0x6c8ea4=a90_0x2d00,_0x3c847d=_0x23675e();while(!![]){try{const _0x51463a=parseInt(_0x6c8ea4(0xd9))/0x1+parseInt(_0x6c8ea4(0xcc))/0x2*(parseInt(_0x6c8ea4(0xd0))/0x3)+parseInt(_0x6c8ea4(0xda))/0x4+parseInt(_0x6c8ea4(0xd3))/0x5+-parseInt(_0x6c8ea4(0xd2))/0x6*(parseInt(_0x6c8ea4(0xcd))/0x7)+parseInt(_0x6c8ea4(0xd5))/0x8*(parseInt(_0x6c8ea4(0xd6))/0x9)+parseInt(_0x6c8ea4(0xd8))/0xa*(-parseInt(_0x6c8ea4(0xce))/0xb);if(_0x51463a===_0x2d1d6d)break;else _0x3c847d['push'](_0x3c847d['shift']());}catch(_0x416e6b){_0x3c847d['push'](_0x3c847d['shift']());}}}(a90_0x40f1,0x4f357));export function insertDynamicServicesAfterServiceTree(_0x5dcfd7,_0xc572e6){const _0x6a7dd9=a90_0x2d00;if(_0xc572e6[_0x6a7dd9(0xd4)]===0x0)return[..._0x5dcfd7];const _0x1a5d44=_0x5dcfd7[_0x6a7dd9(0xcf)](_0x38bb52=>_0x38bb52['service']===_0x6a7dd9(0xd1));if(_0x1a5d44<0x0)return[..._0x5dcfd7,..._0xc572e6];return[..._0x5dcfd7[_0x6a7dd9(0xd7)](0x0,_0x1a5d44+0x1),..._0xc572e6,..._0x5dcfd7[_0x6a7dd9(0xd7)](_0x1a5d44+0x1)];}
1
+ function a90_0xea9c(_0x4c3145,_0x182b09){_0x4c3145=_0x4c3145-0x120;const _0x143162=a90_0x1431();let _0xea9c45=_0x143162[_0x4c3145];return _0xea9c45;}(function(_0x5b2a59,_0x487dcb){const _0x59e67a=a90_0xea9c,_0x2fdc25=_0x5b2a59();while(!![]){try{const _0x1e46e8=-parseInt(_0x59e67a(0x124))/0x1*(-parseInt(_0x59e67a(0x129))/0x2)+parseInt(_0x59e67a(0x12c))/0x3*(-parseInt(_0x59e67a(0x122))/0x4)+parseInt(_0x59e67a(0x120))/0x5+-parseInt(_0x59e67a(0x125))/0x6+-parseInt(_0x59e67a(0x12b))/0x7+parseInt(_0x59e67a(0x121))/0x8*(-parseInt(_0x59e67a(0x126))/0x9)+parseInt(_0x59e67a(0x12a))/0xa;if(_0x1e46e8===_0x487dcb)break;else _0x2fdc25['push'](_0x2fdc25['shift']());}catch(_0x177df5){_0x2fdc25['push'](_0x2fdc25['shift']());}}}(a90_0x1431,0x2b195));function a90_0x1431(){const _0xf98c32=['2715460QUtKrN','1070587YaDOYI','3bcBdrk','527445gDgArN','8QJbxHe','643588CnOYqT','slice','13929BNHOLg','179436uaHhzF','1719486LxuLGJ','findIndex','service','48nzZgYg'];a90_0x1431=function(){return _0xf98c32;};return a90_0x1431();}export function insertDynamicServicesAfterServiceTree(_0x17f41d,_0x1e962f){const _0x5a0caf=a90_0xea9c;if(_0x1e962f['length']===0x0)return[..._0x17f41d];const _0x1d2a88=_0x17f41d[_0x5a0caf(0x127)](_0x38cb24=>_0x38cb24['service']===_0x5a0caf(0x128));if(_0x1d2a88<0x0)return[..._0x17f41d,..._0x1e962f];return[..._0x17f41d[_0x5a0caf(0x123)](0x0,_0x1d2a88+0x1),..._0x1e962f,..._0x17f41d[_0x5a0caf(0x123)](_0x1d2a88+0x1)];}
@@ -1 +1 @@
1
- function a91_0x72b0(_0x482b97,_0x4c552e){_0x482b97=_0x482b97-0x1c2;var _0x2ad2a4=a91_0x2ad2();var _0x72b0fc=_0x2ad2a4[_0x482b97];return _0x72b0fc;}(function(_0x29e0fe,_0x5ce87b){var _0x314c6a=a91_0x72b0,_0x312488=_0x29e0fe();while(!![]){try{var _0x4cffcb=parseInt(_0x314c6a(0x1cb))/0x1*(parseInt(_0x314c6a(0x1c5))/0x2)+-parseInt(_0x314c6a(0x1ca))/0x3+parseInt(_0x314c6a(0x1c7))/0x4+parseInt(_0x314c6a(0x1c9))/0x5*(-parseInt(_0x314c6a(0x1c3))/0x6)+parseInt(_0x314c6a(0x1c4))/0x7*(parseInt(_0x314c6a(0x1c8))/0x8)+parseInt(_0x314c6a(0x1c2))/0x9+-parseInt(_0x314c6a(0x1c6))/0xa;if(_0x4cffcb===_0x5ce87b)break;else _0x312488['push'](_0x312488['shift']());}catch(_0x380f71){_0x312488['push'](_0x312488['shift']());}}}(a91_0x2ad2,0xe99d6));function a91_0x2ad2(){var _0x5f5947=['35JrMMmB','550258zYLdoA','8430860JLyiLU','2588536QTcspT','1243096HtaHek','263695wEnyLC','2810277dxJUaO','3nxsNsq','8182683lzEeFG','48NDLWkx'];a91_0x2ad2=function(){return _0x5f5947;};return a91_0x2ad2();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a91_0x227c(){var _0x1d2a18=['439300gMWwBp','1071868ExuzrY','72cdkTpF','210833GiyElS','781470GnKYDQ','30YYPsTP','3288774SrTqDO','1348515MtOddI','513uCyUYs','1338762hPssLo'];a91_0x227c=function(){return _0x1d2a18;};return a91_0x227c();}function a91_0x2d39(_0x109faf,_0x243f5f){_0x109faf=_0x109faf-0x1e4;var _0x227c38=a91_0x227c();var _0x2d39bc=_0x227c38[_0x109faf];return _0x2d39bc;}(function(_0x31dc14,_0x47cbd8){var _0x26a7f2=a91_0x2d39,_0x306bde=_0x31dc14();while(!![]){try{var _0x382f19=-parseInt(_0x26a7f2(0x1e6))/0x1+-parseInt(_0x26a7f2(0x1e9))/0x2+parseInt(_0x26a7f2(0x1e8))/0x3+parseInt(_0x26a7f2(0x1ea))/0x4*(-parseInt(_0x26a7f2(0x1e4))/0x5)+-parseInt(_0x26a7f2(0x1e5))/0x6+parseInt(_0x26a7f2(0x1ec))/0x7*(-parseInt(_0x26a7f2(0x1eb))/0x8)+parseInt(_0x26a7f2(0x1e7))/0x9*(parseInt(_0x26a7f2(0x1ed))/0xa);if(_0x382f19===_0x47cbd8)break;else _0x306bde['push'](_0x306bde['shift']());}catch(_0x2319fe){_0x306bde['push'](_0x306bde['shift']());}}}(a91_0x227c,0xdd0fa));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';