@lovrabet/lovrabet-cli 2.2.1 → 2.2.2-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 (136) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/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/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/diagram.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/diagram.js +1 -1
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.js +1 -1
  76. package/lib/constant/risk.js +1 -1
  77. package/lib/constant/url.js +1 -1
  78. package/lib/context.js +1 -1
  79. package/lib/core/api-client.js +1 -1
  80. package/lib/core/db-resolver.js +1 -1
  81. package/lib/core/sdk-client.js +1 -1
  82. package/lib/errors.js +1 -1
  83. package/lib/framework/build-all-flags.js +1 -1
  84. package/lib/framework/dryrun.js +1 -1
  85. package/lib/framework/flags.js +1 -1
  86. package/lib/framework/help.js +1 -1
  87. package/lib/framework/index.js +1 -1
  88. package/lib/framework/output.js +1 -1
  89. package/lib/framework/preparse.js +1 -1
  90. package/lib/framework/rate-limit.js +1 -1
  91. package/lib/framework/raw-flags.js +1 -1
  92. package/lib/framework/response.js +1 -1
  93. package/lib/framework/runner-confirmation.js +1 -1
  94. package/lib/framework/runner-error.js +1 -1
  95. package/lib/framework/runner.js +1 -1
  96. package/lib/framework/schema-export.js +1 -1
  97. package/lib/framework/service-order.js +1 -1
  98. package/lib/framework/types.js +1 -1
  99. package/lib/generated/build-info.d.ts +4 -4
  100. package/lib/generated/build-info.js +1 -1
  101. package/lib/help.js +1 -1
  102. package/lib/postinstall.js +1 -1
  103. package/lib/runtime/confirmation.js +1 -1
  104. package/lib/runtime/event.js +1 -1
  105. package/lib/runtime/index.js +1 -1
  106. package/lib/runtime/queue.js +1 -1
  107. package/lib/runtime/resolve.js +1 -1
  108. package/lib/skills/builtin-skill.js +1 -1
  109. package/lib/skills/npx-skills-add.js +1 -1
  110. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  111. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  112. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  113. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  114. package/lib/skills/runtime-skill-sync/links.js +1 -1
  115. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  116. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  117. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  118. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  119. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  120. package/lib/skills/runtime-skill-sync/push.js +1 -1
  121. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  122. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  123. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  124. package/lib/skills/runtime-skill-sync.js +1 -1
  125. package/lib/skills/skill-presence.js +1 -1
  126. package/lib/utils/apply-jq-filter.js +1 -1
  127. package/lib/utils/logger.js +1 -1
  128. package/lib/utils/lossless-json.js +1 -1
  129. package/lib/utils/params.js +1 -1
  130. package/lib/utils/platform.js +1 -1
  131. package/lib/utils/update-notice.js +1 -1
  132. package/lib/utils/version.js +1 -1
  133. package/lib/utils/write-cli-side-channel.js +1 -1
  134. package/package.json +2 -1
  135. package/skills/lovrabet/SKILL.md +1 -1
  136. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x48445b,_0x168c5f){const _0x16549a=a78_0x44c7,_0x6e7feb=_0x48445b();while(!![]){try{const _0x310eba=parseInt(_0x16549a(0x233))/0x1*(-parseInt(_0x16549a(0x209))/0x2)+parseInt(_0x16549a(0x269))/0x3*(-parseInt(_0x16549a(0x1cd))/0x4)+parseInt(_0x16549a(0x1f6))/0x5*(-parseInt(_0x16549a(0x213))/0x6)+parseInt(_0x16549a(0x230))/0x7*(-parseInt(_0x16549a(0x268))/0x8)+parseInt(_0x16549a(0x22c))/0x9*(-parseInt(_0x16549a(0x25c))/0xa)+parseInt(_0x16549a(0x262))/0xb*(parseInt(_0x16549a(0x272))/0xc)+parseInt(_0x16549a(0x210))/0xd*(parseInt(_0x16549a(0x21c))/0xe);if(_0x310eba===_0x168c5f)break;else _0x6e7feb['push'](_0x6e7feb['shift']());}catch(_0x1cad9d){_0x6e7feb['push'](_0x6e7feb['shift']());}}}(a78_0x2636,0x7445f));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{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x3ce7ee){_activeAK=_0x3ce7ee||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x70f146){const _0x364913=a78_0x44c7;for(const _0x3d3eaf of _0x70f146){if(typeof _0x3d3eaf===_0x364913(0x1dc)&&_0x3d3eaf['trim']())return _0x3d3eaf[_0x364913(0x221)]();}return undefined;}async function decodeResponseBody(_0xe9671){const _0x398b20=a78_0x44c7;if(typeof _0xe9671[_0x398b20(0x259)]==='function')try{const _0x2bd8d3=await _0xe9671['text']();try{return{'isJson':!![],'data':parseLosslessJson(_0x2bd8d3),'text':_0x2bd8d3};}catch{return{'isJson':![],'text':_0x2bd8d3['trim']()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0xe9671[_0x398b20(0x1eb)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x5d6079,_0x218fdf,_0x3f933d){const _0x220239=a78_0x44c7,_0x519f3a=_0x218fdf&&typeof _0x218fdf==='object'?_0x218fdf:{},_0xd6d30e=[_0x519f3a['status'],_0x519f3a[_0x220239(0x24a)]][_0x220239(0x20f)](_0x32c3d2=>Number(_0x32c3d2)===0x1ad),_0x42b5b0=createRateLimitError({'status':_0x5d6079['status']===0x1ad?_0x5d6079[_0x220239(0x236)]:_0xd6d30e??_0x5d6079['status'],'errorCode':firstString(_0x519f3a[_0x220239(0x1d8)],typeof _0x519f3a['code']==='string'?_0x519f3a[_0x220239(0x24a)]:undefined),'message':firstString(_0x519f3a[_0x220239(0x1d9)],_0x519f3a[_0x220239(0x216)],_0x519f3a['msg'],_0x3f933d),'retryAfter':readRetryAfter(_0x5d6079[_0x220239(0x239)])??readRetryAfterSeconds(_0x218fdf)});if(_0x42b5b0)throw _0x42b5b0;}async function apiRequest(_0x4e28b2,_0x108e1e={}){const _0x4b6a2f=a78_0x44c7,{method:method=_0x4b6a2f(0x25d),body:_0x1ce92c,headers:headers={},timeout:timeout=0x7530}=_0x108e1e,_0x987076=_activeAK,_0xc3728=getRuntimeDomain();if(!_0x987076)throw CliErrors[_0x4b6a2f(0x242)](_0x4b6a2f(0x1fa)+PRODUCT_CONFIG[_0x4b6a2f(0x276)]+'.');const _0x4df63f=''+_0xc3728+_0x4e28b2,_0x2e46ee={'X-User-AK':_0x987076},_0x1178ce=new AbortController(),_0x54beb5=setTimeout(()=>_0x1178ce[_0x4b6a2f(0x1fd)](),timeout);try{const _0x3fa0ab=await fetch(_0x4df63f,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x4b6a2f(0x201)],..._0x2e46ee,...headers},'body':_0x1ce92c?JSON[_0x4b6a2f(0x24f)](_0x1ce92c):undefined,'signal':_0x1178ce[_0x4b6a2f(0x208)]}),_0x264ffc=await decodeResponseBody(_0x3fa0ab);if(!_0x264ffc[_0x4b6a2f(0x249)]){throwIfRateLimited(_0x3fa0ab,undefined,_0x264ffc[_0x4b6a2f(0x259)]);throw CliErrors[_0x4b6a2f(0x271)](_0x4b6a2f(0x247)+_0x3fa0ab['status']+')',_0x3fa0ab[_0x4b6a2f(0x236)]>=0x190?_0x4b6a2f(0x1ea):undefined);}const _0x50096e=_0x264ffc[_0x4b6a2f(0x1ed)];throwIfRateLimited(_0x3fa0ab,_0x50096e);if(!_0x3fa0ab['ok']||_0x50096e[_0x4b6a2f(0x23d)]===![])throw CliErrors[_0x4b6a2f(0x271)](_0x50096e[_0x4b6a2f(0x1d9)]||_0x50096e['message']||_0x4b6a2f(0x227)+_0x3fa0ab[_0x4b6a2f(0x236)],_0x50096e[_0x4b6a2f(0x1d8)]?_0x4b6a2f(0x235)+_0x50096e[_0x4b6a2f(0x1d8)]:undefined);return _0x50096e;}catch(_0xfbde75){if(_0xfbde75 instanceof Error&&_0xfbde75[_0x4b6a2f(0x1da)]===_0x4b6a2f(0x220))throw CliErrors['apiError'](_0x4b6a2f(0x1d7)+_0x4df63f);throw _0xfbde75;}finally{clearTimeout(_0x54beb5);}}async function apiBinaryRequest(_0x32d474,_0x151682={}){const _0x3e7562=a78_0x44c7,{method:method=_0x3e7562(0x25d),headers:headers={},timeout:timeout=0x7530}=_0x151682,_0x5f474b=_activeAK,_0x46da7b=getRuntimeDomain();if(!_0x5f474b)throw CliErrors[_0x3e7562(0x242)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x3e7562(0x276)]+'.');const _0x4d2272=''+_0x46da7b+_0x32d474,_0x5dd501=new AbortController(),_0x5df91d=setTimeout(()=>_0x5dd501[_0x3e7562(0x1fd)](),timeout);try{const _0xee3080=await fetch(_0x4d2272,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3e7562(0x201)],'X-User-AK':_0x5f474b,...headers},'signal':_0x5dd501[_0x3e7562(0x208)]});if(!_0xee3080['ok']){const _0x3cf61b=await decodeResponseBody(_0xee3080),_0x11da50=_0x3cf61b['data']&&typeof _0x3cf61b[_0x3e7562(0x1ed)]===_0x3e7562(0x244)?_0x3cf61b['data']:{},_0x2b01a4=firstString(_0x11da50['errorMsg'],_0x11da50['message'],_0x11da50['errorCode'],_0x3cf61b[_0x3e7562(0x259)]);throwIfRateLimited(_0xee3080,_0x3cf61b[_0x3e7562(0x1ed)],_0x2b01a4);throw CliErrors[_0x3e7562(0x271)](_0x2b01a4||_0x3e7562(0x227)+_0xee3080['status'],_0x3e7562(0x1e0)+_0x4d2272);}return Buffer[_0x3e7562(0x1f8)](await _0xee3080[_0x3e7562(0x274)]());}catch(_0x546609){if(_0x546609 instanceof Error&&_0x546609[_0x3e7562(0x1da)]===_0x3e7562(0x220))throw CliErrors[_0x3e7562(0x271)](_0x3e7562(0x1d7)+_0x4d2272);throw _0x546609;}finally{clearTimeout(_0x5df91d);}}async function apiFormRequest(_0x14dc9f,_0x29dc24,_0x3c3a24={}){const _0x251931=a78_0x44c7,{timeout:timeout=0x7530}=_0x3c3a24,_0x66d760=_activeAK,_0x26a91d=getRuntimeDomain();if(!_0x66d760)throw CliErrors[_0x251931(0x242)](_0x251931(0x1fa)+PRODUCT_CONFIG[_0x251931(0x276)]+'.');const _0x432393=''+_0x26a91d+_0x14dc9f,_0x2f7072=new AbortController(),_0x1ad38d=setTimeout(()=>_0x2f7072[_0x251931(0x1fd)](),timeout);try{const _0x1febf2=await fetch(_0x432393,{'method':'POST','headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x251931(0x201)],'X-User-AK':_0x66d760},'body':_0x29dc24,'signal':_0x2f7072[_0x251931(0x208)]}),_0x4aafd8=await decodeResponseBody(_0x1febf2);if(!_0x4aafd8[_0x251931(0x249)]){throwIfRateLimited(_0x1febf2,undefined,_0x4aafd8[_0x251931(0x259)]);throw CliErrors[_0x251931(0x271)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x1febf2[_0x251931(0x236)]+')',_0x1febf2['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x2f63e5=_0x4aafd8[_0x251931(0x1ed)];throwIfRateLimited(_0x1febf2,_0x2f63e5);if(!_0x1febf2['ok']||_0x2f63e5['success']===![])throw CliErrors[_0x251931(0x271)](_0x2f63e5[_0x251931(0x1d9)]||_0x2f63e5[_0x251931(0x216)]||_0x251931(0x227)+_0x1febf2[_0x251931(0x236)],_0x2f63e5[_0x251931(0x1d8)]?_0x251931(0x235)+_0x2f63e5[_0x251931(0x1d8)]:undefined);return _0x2f63e5;}catch(_0x313bf1){if(_0x313bf1 instanceof Error&&_0x313bf1[_0x251931(0x1da)]==='AbortError')throw CliErrors['apiError'](_0x251931(0x1d7)+_0x432393);throw _0x313bf1;}finally{clearTimeout(_0x1ad38d);}}async function toolboxRequest(_0x20d9ff,_0x26e57f,_0x3b8978={}){const _0x2be57b=a78_0x44c7,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x3b8978,_0x3d08dd=_activeAK;if(!_0x3d08dd)throw CliErrors[_0x2be57b(0x242)](_0x2be57b(0x1fa)+PRODUCT_CONFIG[_0x2be57b(0x276)]+'.');const _0x1274d9=getApiDomain()[_0x2be57b(0x1fc)](/\/$/,''),_0x3837c3=new URL(_0x20d9ff,_0x1274d9+'/api/node-toolbox/');if(_0x26e57f)for(const [_0x4ba75c,_0x33080b]of Object[_0x2be57b(0x266)](_0x26e57f)){_0x33080b!==undefined&&_0x33080b!==null&&_0x3837c3['searchParams'][_0x2be57b(0x243)](_0x4ba75c,String(_0x33080b));}const _0x114bdf=new AbortController(),_0x34626f=setTimeout(()=>_0x114bdf['abort'](),timeout);try{const _0x5767cf=await fetch(_0x3837c3,{'method':method,'headers':{'Content-Type':_0x2be57b(0x225),'X-Invoke-Source':PRODUCT_CONFIG[_0x2be57b(0x201)],'X-User-AK':_0x3d08dd,...headers},'signal':_0x114bdf[_0x2be57b(0x208)]}),_0x3d706a=await decodeResponseBody(_0x5767cf);if(!_0x3d706a[_0x2be57b(0x249)]){throwIfRateLimited(_0x5767cf,undefined,_0x3d706a[_0x2be57b(0x259)]);throw CliErrors['apiError']('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x5767cf['status']+')',_0x5767cf[_0x2be57b(0x236)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x5925b1=_0x3d706a[_0x2be57b(0x1ed)];throwIfRateLimited(_0x5767cf,_0x5925b1);if(!_0x5767cf['ok']){const _0xb06db1=_0x5925b1&&typeof _0x5925b1===_0x2be57b(0x244)?_0x5925b1:{};throw CliErrors[_0x2be57b(0x271)](_0xb06db1['errorMsg']||_0xb06db1[_0x2be57b(0x216)]||_0x2be57b(0x24c)+_0x5767cf[_0x2be57b(0x236)],_0xb06db1[_0x2be57b(0x1d8)]?_0x2be57b(0x1d4)+_0xb06db1[_0x2be57b(0x1d8)]:undefined);}if(_0x5925b1&&typeof _0x5925b1===_0x2be57b(0x244)&&'success'in _0x5925b1&&typeof _0x5925b1['success']===_0x2be57b(0x215)){const _0x432464=_0x5925b1;if(!_0x432464['success'])throw CliErrors[_0x2be57b(0x271)](_0x432464[_0x2be57b(0x1d9)]||_0x432464['message']||_0x2be57b(0x1d3),_0x432464['errorCode']?'Toolbox\x20error\x20code:\x20'+_0x432464[_0x2be57b(0x1d8)]:undefined);return _0x432464[_0x2be57b(0x1ed)];}return _0x5925b1;}catch(_0x3cfbfe){if(_0x3cfbfe instanceof Error&&_0x3cfbfe['name']===_0x2be57b(0x220))throw CliErrors['apiError'](_0x2be57b(0x1d7)+_0x3837c3['toString']());throw _0x3cfbfe;}finally{clearTimeout(_0x34626f);}}async function skillHubJsonRequest(_0x58b8dc,_0x536372={}){const _0x4e7b6f=a78_0x44c7,{method:method='GET',query:_0x2f0ebd,body:_0x34ccf3,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x536372,_0x5289f4=_activeAK;if(!_0x5289f4)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x4e7b6f(0x276)]+'.');const _0x3dbf41=getSkillHubDomain()[_0x4e7b6f(0x1fc)](/\/$/,''),_0x3b88dd=new URL(_0x58b8dc,_0x3dbf41+'/');if(_0x2f0ebd)for(const [_0x55b0dd,_0x53b5a0]of Object[_0x4e7b6f(0x266)](_0x2f0ebd)){_0x53b5a0!==undefined&&_0x53b5a0!==null&&_0x3b88dd['searchParams']['set'](_0x55b0dd,String(_0x53b5a0));}const _0x29ebfb=new AbortController(),_0x229f3f=setTimeout(()=>_0x29ebfb[_0x4e7b6f(0x1fd)](),timeout);try{const _0x32c8fd=await fetch(_0x3b88dd[_0x4e7b6f(0x241)](),{'method':method,'headers':{'Accept':_0x4e7b6f(0x225),'X-Invoke-Source':PRODUCT_CONFIG[_0x4e7b6f(0x201)],'X-User-AK':_0x5289f4,...headers},'body':_0x34ccf3,'signal':_0x29ebfb[_0x4e7b6f(0x208)]}),_0x2f5cbb=await decodeResponseBody(_0x32c8fd);if(!_0x2f5cbb[_0x4e7b6f(0x249)]){if(allowNotFound&&_0x32c8fd[_0x4e7b6f(0x236)]===0x194)return undefined;throwIfRateLimited(_0x32c8fd,undefined,_0x2f5cbb[_0x4e7b6f(0x259)]);throw CliErrors[_0x4e7b6f(0x271)](_0x4e7b6f(0x248)+_0x32c8fd[_0x4e7b6f(0x236)]+')',_0x32c8fd[_0x4e7b6f(0x236)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x132831=_0x2f5cbb[_0x4e7b6f(0x1ed)];throwIfRateLimited(_0x32c8fd,_0x132831);if(allowNotFound&&isSkillHubNotFoundResponse(_0x32c8fd[_0x4e7b6f(0x236)],_0x132831))return undefined;const _0x333833=!_0x32c8fd['ok']||_0x132831?.[_0x4e7b6f(0x23d)]===![]||typeof _0x132831?.['code']==='number'&&_0x132831[_0x4e7b6f(0x24a)]>=0x190;if(_0x333833)throw CliErrors[_0x4e7b6f(0x271)](_0x132831?.[_0x4e7b6f(0x1d9)]||_0x132831?.['message']||_0x132831?.[_0x4e7b6f(0x207)]||'SkillHub\x20API\x20error:\x20'+_0x32c8fd[_0x4e7b6f(0x236)],_0x132831?.[_0x4e7b6f(0x1d8)]?'SkillHub\x20error\x20code:\x20'+_0x132831['errorCode']:undefined);return _0x132831?.[_0x4e7b6f(0x1ed)]??_0x132831;}catch(_0x47ece7){if(_0x47ece7 instanceof Error&&_0x47ece7['name']===_0x4e7b6f(0x220))throw CliErrors[_0x4e7b6f(0x271)](_0x4e7b6f(0x1d7)+_0x3b88dd[_0x4e7b6f(0x241)]());throw _0x47ece7;}finally{clearTimeout(_0x229f3f);}}function isSkillHubNotFoundResponse(_0x473be8,_0x8eeeef){const _0x2e73d7=a78_0x44c7;if(_0x473be8===0x194||_0x8eeeef?.['code']===0x194)return!![];if(_0x473be8!==0x190&&_0x8eeeef?.[_0x2e73d7(0x24a)]!==0x190)return![];const _0x35c25c=[_0x8eeeef?.[_0x2e73d7(0x207)],_0x8eeeef?.[_0x2e73d7(0x216)],_0x8eeeef?.[_0x2e73d7(0x1d9)],_0x8eeeef?.['error']][_0x2e73d7(0x1ef)](_0x32ed58=>typeof _0x32ed58==='string')[_0x2e73d7(0x260)]('\x20');return/skill not found\b/i[_0x2e73d7(0x1df)](_0x35c25c);}async function skillHubBinaryRequest(_0x178c6d,_0x5b06d2={}){const _0x19a70b=a78_0x44c7,{query:_0x323893,headers:headers={},timeout:timeout=0x7530}=_0x5b06d2,_0x150294=_activeAK;if(!_0x150294)throw CliErrors[_0x19a70b(0x242)](_0x19a70b(0x1fa)+PRODUCT_CONFIG[_0x19a70b(0x276)]+'.');const _0x4fbb2c=getSkillHubDomain()['replace'](/\/$/,''),_0x207aa9=new URL(_0x178c6d,_0x4fbb2c+'/');if(_0x323893)for(const [_0x4f6dff,_0xc27c91]of Object[_0x19a70b(0x266)](_0x323893)){_0xc27c91!==undefined&&_0xc27c91!==null&&_0x207aa9[_0x19a70b(0x26f)]['set'](_0x4f6dff,String(_0xc27c91));}const _0x26832=new AbortController(),_0x4a7bb4=setTimeout(()=>_0x26832[_0x19a70b(0x1fd)](),timeout);try{const _0x40bd81=await fetch(_0x207aa9[_0x19a70b(0x241)](),{'method':'GET','headers':{'Accept':_0x19a70b(0x1f7),'X-Invoke-Source':PRODUCT_CONFIG[_0x19a70b(0x201)],'X-User-AK':_0x150294,...headers},'signal':_0x26832[_0x19a70b(0x208)]});if(!_0x40bd81['ok']){const _0x4bfe0e=await decodeResponseBody(_0x40bd81),_0x4e0c0d=_0x4bfe0e['data']&&typeof _0x4bfe0e[_0x19a70b(0x1ed)]==='object'?_0x4bfe0e[_0x19a70b(0x1ed)]:{},_0x5e0ab8=firstString(_0x4e0c0d['errorMsg'],_0x4e0c0d['message'],_0x4e0c0d[_0x19a70b(0x207)],_0x4e0c0d[_0x19a70b(0x1d8)],_0x4bfe0e['text']);throwIfRateLimited(_0x40bd81,_0x4bfe0e['data'],_0x5e0ab8);throw CliErrors[_0x19a70b(0x271)](_0x5e0ab8||_0x19a70b(0x1db)+_0x40bd81[_0x19a70b(0x236)],_0x19a70b(0x1e0)+_0x207aa9[_0x19a70b(0x241)]());}return Buffer[_0x19a70b(0x1f8)](await _0x40bd81[_0x19a70b(0x274)]());}catch(_0x3d5a57){if(_0x3d5a57 instanceof Error&&_0x3d5a57[_0x19a70b(0x1da)]===_0x19a70b(0x220))throw CliErrors['apiError'](_0x19a70b(0x1d7)+_0x207aa9[_0x19a70b(0x241)]());throw _0x3d5a57;}finally{clearTimeout(_0x4a7bb4);}}export async function getBffEndpointContract(_0x5e82ec,_0x207578){const _0x2ef189=a78_0x44c7;if(_0x207578==='functions')throw CliErrors['validation']('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x5e82ec+_0x2ef189(0x1ce)+_0x207578);const _0x30b627=await apiRequest(_0x2ef189(0x263)+encodeURIComponent(_0x5e82ec)+'/'+encodeURIComponent(_0x207578)),_0x14b696=_0x30b627[_0x2ef189(0x1ed)];if(!_0x14b696||typeof _0x14b696!==_0x2ef189(0x244)||Array[_0x2ef189(0x1f3)](_0x14b696)||_0x14b696[_0x2ef189(0x238)]!==_0x5e82ec||_0x14b696[_0x2ef189(0x1d5)]!==_0x207578)throw CliErrors['validation'](_0x2ef189(0x1f5)+_0x5e82ec+_0x2ef189(0x1ce)+_0x207578);return{'appCode':_0x14b696[_0x2ef189(0x238)],'functionName':_0x14b696[_0x2ef189(0x1d5)],'description':_0x14b696[_0x2ef189(0x277)],'version':_0x14b696[_0x2ef189(0x1e4)],'gmtModified':_0x14b696['gmtModified']};}export async function getSqlQueryInfo(_0x4c7a8d,_0x1719a1){const _0x226745=a78_0x44c7,_0x156118=await apiRequest(_0x226745(0x22e),{'method':'POST','body':{'appCode':_0x4c7a8d,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x1719a1}}),_0x248760=_0x156118['data'],_0x43bc01=_0x248760&&typeof _0x248760===_0x226745(0x244)&&_0x226745(0x1f9)in _0x248760?_0x248760[_0x226745(0x1f9)]?.[0x0]:_0x248760&&typeof _0x248760===_0x226745(0x244)&&'sqlCode'in _0x248760?_0x248760:undefined;if(!_0x43bc01)throw CliErrors[_0x226745(0x255)](_0x226745(0x26b)+_0x1719a1);return _0x43bc01;}function isRemoteAppItem(_0x2b94e3){const _0xe2417d=a78_0x44c7;return!!_0x2b94e3&&typeof _0x2b94e3===_0xe2417d(0x244)&&typeof _0x2b94e3['appCode']===_0xe2417d(0x1dc)&&typeof _0x2b94e3['appName']==='string';}function extractRemoteAppItems(_0x5c884e){const _0x5d5f45=a78_0x44c7;if(Array['isArray'](_0x5c884e))return _0x5c884e[_0x5d5f45(0x1ef)](isRemoteAppItem);if(!_0x5c884e||typeof _0x5c884e!=='object')throw CliErrors[_0x5d5f45(0x271)](_0x5d5f45(0x26c));const _0x46d2ba=_0x5c884e;if(Array[_0x5d5f45(0x1f3)](_0x46d2ba['tableData']))return _0x46d2ba[_0x5d5f45(0x1f9)][_0x5d5f45(0x1ef)](isRemoteAppItem);if(_0x46d2ba[_0x5d5f45(0x1ed)]&&typeof _0x46d2ba[_0x5d5f45(0x1ed)]===_0x5d5f45(0x244)){const _0x33539d=_0x46d2ba['data'];if(Array[_0x5d5f45(0x1f3)](_0x33539d['tableData']))return _0x33539d['tableData'][_0x5d5f45(0x1ef)](isRemoteAppItem);}throw CliErrors[_0x5d5f45(0x271)](_0x5d5f45(0x21a));}export async function getMyApps(){const _0x3476f0=a78_0x44c7,_0x2507bf=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x2507bf[_0x3476f0(0x1ed)]);}export async function getLoginUserInfo(){const _0x51a08c=a78_0x44c7,_0x4c4e2c=await apiRequest(_0x51a08c(0x24e));if(!_0x4c4e2c[_0x51a08c(0x1ed)]||typeof _0x4c4e2c[_0x51a08c(0x1ed)]!==_0x51a08c(0x244)||Array['isArray'](_0x4c4e2c[_0x51a08c(0x1ed)]))throw CliErrors['apiError'](_0x51a08c(0x1f1));return _0x4c4e2c['data'];}function runtimeSchedulePath(_0x5e2d74,_0x1fc578=''){const _0x569908=a78_0x44c7;return'/api/harness/apps/'+encodeURIComponent(_0x5e2d74)+_0x569908(0x218)+_0x1fc578;}export async function validateRuntimeSchedule(_0x254e45,_0x36eb4f){const _0x444720=a78_0x44c7,_0x40bb34=await apiRequest(runtimeSchedulePath(_0x254e45,_0x444720(0x20e)),{'method':_0x444720(0x223),'body':_0x36eb4f});return _0x40bb34[_0x444720(0x1ed)];}export async function createRuntimeSchedule(_0x302bc6,_0x59b3be){const _0x2b9e4d=a78_0x44c7,_0x4963da=await apiRequest(runtimeSchedulePath(_0x302bc6),{'method':_0x2b9e4d(0x223),'body':_0x59b3be});return _0x4963da[_0x2b9e4d(0x1ed)];}export async function listRuntimeSchedules(_0x22fc5e,_0x34d136){const _0x717c78=a78_0x44c7,_0x111439=new URLSearchParams();_0x111439[_0x717c78(0x243)](_0x717c78(0x264),_0x34d136['kind']);if(_0x34d136[_0x717c78(0x22d)]!==undefined)_0x111439[_0x717c78(0x243)]('limit',String(_0x34d136[_0x717c78(0x22d)]));if(_0x34d136['cursor'])_0x111439[_0x717c78(0x243)](_0x717c78(0x23c),_0x34d136[_0x717c78(0x23c)]);const _0x5a8e45=_0x111439[_0x717c78(0x254)]>0x0?'?'+_0x111439[_0x717c78(0x241)]():'',_0x1ad002=await apiRequest(''+runtimeSchedulePath(_0x22fc5e)+_0x5a8e45);return _0x1ad002['data'];}export async function getRuntimeSchedule(_0x9b963f,_0x4020b3){const _0x5a08e6=await apiRequest(runtimeSchedulePath(_0x9b963f,'/'+encodeURIComponent(_0x4020b3)));return _0x5a08e6['data'];}export async function deleteRuntimeSchedule(_0x22eae5,_0xae2cca){const _0x110d78=a78_0x44c7,_0x5a35fe=await apiRequest(runtimeSchedulePath(_0x22eae5,'/'+encodeURIComponent(_0xae2cca)),{'method':_0x110d78(0x23e)});return _0x5a35fe[_0x110d78(0x1ed)];}export async function runRuntimeSchedule(_0x4bfbd5,_0x16da9f){const _0x1c01da=a78_0x44c7,_0x1abddd=await apiRequest(runtimeSchedulePath(_0x4bfbd5,'/'+encodeURIComponent(_0x16da9f)+_0x1c01da(0x1de)),{'method':_0x1c01da(0x223)});return _0x1abddd['data'];}export async function listDatasets(_0x581f6a,_0x5bf187){const _0xe8203d=a78_0x44c7,_0xccf8e2=await apiRequest(_0xe8203d(0x228),{'method':_0xe8203d(0x223),'body':{'appCode':_0x581f6a,..._0x5bf187?.[_0xe8203d(0x24a)]&&{'code':_0x5bf187[_0xe8203d(0x24a)]},..._0x5bf187?.[_0xe8203d(0x1da)]&&{'name':_0x5bf187[_0xe8203d(0x1da)]}}});return extractList(_0xccf8e2['data']);}export async function getDatasetDetail(_0x5723b0){const _0x556b36=a78_0x44c7,_0x9b5763=await apiRequest(_0x556b36(0x20b)+encodeURIComponent(_0x5723b0));return _0x9b5763[_0x556b36(0x1ed)];}export async function getDatasetSdkUsageDoc(_0x5f4f0a,_0x315936){const _0x532633=a78_0x44c7,_0x4c371f=await toolboxRequest('api-doc-generator',{'datasetCode':_0x5f4f0a,'appCode':_0x315936});return typeof _0x4c371f?.['markdown']===_0x532633(0x1dc)?_0x4c371f[_0x532633(0x267)]:'';}export async function uploadRuntimeFile(_0x5d2b44,_0x29fe44){const _0x3991a4=a78_0x44c7,_0xb56ad7=await readFile(_0x29fe44),_0x2c5a18=new FormData();_0x2c5a18['append']('appCode',_0x5d2b44),_0x2c5a18[_0x3991a4(0x23a)]('file',new Blob([new Uint8Array(_0xb56ad7)]),basename(_0x29fe44));const _0x36a3af=await apiFormRequest('/client/uploadFile',_0x2c5a18);return _0x36a3af[_0x3991a4(0x1ed)];}export async function queryRuntimeFileUrl(_0x58067e,_0x219ba7={}){const _0x400491=a78_0x44c7,_0x1a2f50=await apiRequest(_0x400491(0x1e9),{'method':_0x400491(0x223),'body':{'filePath':_0x58067e,'downloadFlag':_0x219ba7['download']??![],..._0x219ba7[_0x400491(0x23f)]?{'longTerm':!![]}:{}}});return _0x1a2f50[_0x400491(0x1ed)];}export async function recognizeRuntimeOcr(_0x23796a,_0x3e74c6){const _0x1542af=a78_0x44c7,_0x4ece8b=await apiRequest(_0x1542af(0x21d),{'method':_0x1542af(0x223),'body':{'appCode':_0x23796a,'url':_0x3e74c6['url'],'type':_0x3e74c6[_0x1542af(0x20c)]}});return _0x4ece8b[_0x1542af(0x1ed)];}export async function getRuntimeAppConfigByKey(_0x333ec6,_0x2999d6){const _0x433991=a78_0x44c7,_0x45cdb4=new URLSearchParams({'appCode':_0x333ec6,'key':_0x2999d6}),_0x2f2783=await apiRequest(_0x433991(0x25a)+_0x45cdb4[_0x433991(0x241)]());if(typeof _0x2f2783['data']!==_0x433991(0x1dc))throw CliErrors[_0x433991(0x255)](_0x433991(0x25b)+_0x2999d6);return _0x2f2783[_0x433991(0x1ed)];}export async function listRuntimeArtifacts(_0x1a92b4,_0x52bba9){const _0x30e96a=a78_0x44c7,_0x149b96=new URLSearchParams({'appCode':_0x1a92b4});if(_0x52bba9?.[_0x30e96a(0x206)])_0x149b96[_0x30e96a(0x243)](_0x30e96a(0x206),_0x52bba9[_0x30e96a(0x206)]);if(_0x52bba9?.[_0x30e96a(0x24d)])_0x149b96[_0x30e96a(0x243)](_0x30e96a(0x24d),_0x52bba9['source']);if(_0x52bba9?.['favorite']!==undefined)_0x149b96[_0x30e96a(0x243)](_0x30e96a(0x25e),String(_0x52bba9[_0x30e96a(0x25e)]));const _0x3b7043=await apiRequest(_0x30e96a(0x257)+_0x149b96[_0x30e96a(0x241)]());return Array[_0x30e96a(0x1f3)](_0x3b7043['data'])?_0x3b7043[_0x30e96a(0x1ed)]:[];}export async function getRuntimeArtifact(_0x4addd3,_0x20a9bd){const _0x57d10c=a78_0x44c7,_0x1144ae=await apiRequest(_0x57d10c(0x21e)+_0x4addd3+_0x57d10c(0x253)+encodeURIComponent(_0x20a9bd));if(!_0x1144ae[_0x57d10c(0x1ed)])throw CliErrors[_0x57d10c(0x255)](_0x57d10c(0x240)+_0x4addd3);return _0x1144ae[_0x57d10c(0x1ed)];}export async function createRuntimeArtifact(_0x1157c6,_0x575e70){const _0x44b3f1=a78_0x44c7,_0x4424d3=await apiRequest(_0x44b3f1(0x265),{'method':_0x44b3f1(0x223),'body':{'appCode':_0x1157c6,..._0x575e70}});return _0x4424d3[_0x44b3f1(0x1ed)];}export async function updateRuntimeArtifact(_0x593240,_0x2b6993,_0x29063f){const _0x5a9056=a78_0x44c7,_0x30a094=await apiRequest('/client/artifact/'+_0x593240+'/update',{'method':_0x5a9056(0x223),'body':{'appCode':_0x2b6993,..._0x29063f}});return _0x30a094['data'];}export async function listPersonalBffs(_0x128029){const _0x15df48=a78_0x44c7,_0x443320=await apiRequest(_0x15df48(0x1fb)+encodeURIComponent(_0x128029));return Array[_0x15df48(0x1f3)](_0x443320[_0x15df48(0x1ed)])?_0x443320['data']:[];}export async function getPersonalBff(_0x352725,_0x1e87a5){const _0x1ad09f=a78_0x44c7,_0x409ebb=await apiRequest(_0x1ad09f(0x22a)+_0x352725+_0x1ad09f(0x253)+encodeURIComponent(_0x1e87a5));if(!_0x409ebb['data'])throw CliErrors[_0x1ad09f(0x255)](_0x1ad09f(0x1d6)+_0x352725);return _0x409ebb[_0x1ad09f(0x1ed)];}export async function createPersonalBff(_0x453301,_0x3fdac8){const _0x1bf5cc=a78_0x44c7,_0x4734bd=await apiRequest(_0x1bf5cc(0x204),{'method':_0x1bf5cc(0x223),'body':{'appCode':_0x453301,..._0x3fdac8}});return _0x4734bd[_0x1bf5cc(0x1ed)];}export async function updatePersonalBff(_0x3600f8,_0x268b37,_0x284b56){const _0x1cf46c=a78_0x44c7,_0x140f37=await apiRequest(_0x1cf46c(0x22a)+_0x3600f8+_0x1cf46c(0x24b),{'method':'POST','body':{'appCode':_0x268b37,..._0x284b56}});return _0x140f37[_0x1cf46c(0x1ed)];}export async function executePersonalBff(_0x588a2b,_0x3cf298,_0x4ad156){const _0x50a226=a78_0x44c7,_0x31202e=await apiRequest('/client/runtime-bff/personal/'+_0x588a2b+_0x50a226(0x258)+encodeURIComponent(_0x3cf298),{'method':_0x50a226(0x223),'body':_0x4ad156});return _0x31202e[_0x50a226(0x1ed)];}export async function listPersonalKnowledgeBaseItems(_0x1fd0f9){const _0x3a9990=a78_0x44c7,_0x34e5bc=await apiRequest(_0x3a9990(0x26e)+encodeURIComponent(_0x1fd0f9));return Array['isArray'](_0x34e5bc[_0x3a9990(0x1ed)])?_0x34e5bc[_0x3a9990(0x1ed)]:[];}export async function getPersonalKnowledgeBaseItem(_0xcadbf0,_0x5862a5){const _0x322704=a78_0x44c7,_0x4fb8f9=await apiRequest(_0x322704(0x270)+_0xcadbf0+_0x322704(0x253)+encodeURIComponent(_0x5862a5));if(!_0x4fb8f9['data'])throw CliErrors['validation']('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0xcadbf0);return _0x4fb8f9['data'];}export async function createPersonalKnowledgeBaseItem(_0x38d95e,_0x54e03f){const _0x3cb201=a78_0x44c7,_0x1d3344=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x3cb201(0x223),'body':{'appCode':_0x38d95e,..._0x54e03f}});return _0x1d3344[_0x3cb201(0x1ed)];}export async function updatePersonalKnowledgeBaseItem(_0x2bc9e1,_0x22b0d1,_0x593174){const _0x55e304=a78_0x44c7,_0x4a5811=await apiRequest('/client/knowledge-base/personal/'+_0x2bc9e1+'/update',{'method':_0x55e304(0x223),'body':{'appCode':_0x22b0d1,..._0x593174}});return _0x4a5811['data'];}export async function searchKnowledgeBase(_0x219146,_0x111793){const _0x50b3a0=a78_0x44c7,_0x238515=await apiRequest('/client/knowledge-base/search',{'method':'POST','body':{'appCode':_0x219146,'query':_0x111793[_0x50b3a0(0x245)],..._0x111793[_0x50b3a0(0x25f)]!==undefined?{'topK':_0x111793[_0x50b3a0(0x25f)]}:{}}});return Array[_0x50b3a0(0x1f3)](_0x238515['data'])?_0x238515[_0x50b3a0(0x1ed)]:[];}export async function getRuntimeSkillByCode(_0x31fdba,_0x889c7){const _0x630553=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0x31fdba)+'/'+encodeURIComponent(_0x889c7),{'allowNotFound':!![]});return _0x630553?skillHubRuntimeDetailToRuntimeSkill(_0x630553):undefined;}export async function listRuntimeSkills(_0x522795){const _0x40afbd=a78_0x44c7,_0x6d6da0=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x522795[_0x40afbd(0x238)])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x522795[_0x40afbd(0x238)],_0x6d6da0,_0x522795[_0x40afbd(0x212)]??_0x40afbd(0x273),_0x522795[_0x40afbd(0x24a)]);}function a78_0x2636(){const _0x4137aa=['SkillHub\x20API\x20error:\x20','string','/versions/','/run','test','Download\x20failed:\x20','publishedVersion','summary','/api/cli/v1/skills/','version','namespace','packageBase64','headlineVersion','toLowerCase','/client/queryFileUrl','Check\x20your\x20credentials\x20and\x20try\x20again.','json','visibility','data','resolvedSlug','filter','/download','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','slug','isArray','tags','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','40XmWfQm','application/octet-stream','from','tableData','Configure\x20accessKey\x20in\x20','/client/runtime-bff/personal/list?appCode=','replace','abort','displayName','undefined','example','invokeSource','diagram','found','/client/runtime-bff/personal/create','diagramRevision','artifactType','msg','signal','7366ERwjjR','Missing\x20Skill\x20package\x20payload.','/client/dataset/get-driven-data?code=','type','PRIVATE','/validate','find','1820smiEpP','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','scope','2592EkLjsk','/diagram','boolean','message','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','/schedules','confirmWarnings','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','personal','158858iOqkFI','/client/ocr','/client/artifact/','/publish','AbortError','trim','isInteger','POST','base64','application/json','values','API\x20error:\x20','/client/dataset/list','skillName','/client/runtime-bff/personal/','PUT','20718lsCwJW','limit','/client/sql/query','skillCode','3772594uAmCak','.zip','warnings','89QqnEHd','NAMESPACE_ONLY','API\x20error\x20code:\x20','status','diagramBound','appCode','headers','append','ownerPreviewVersion','cursor','success','DELETE','longTerm','Artifact\x20not\x20found:\x20id=','toString','authRequired','set','object','query','file','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','isJson','code','/update','Toolbox\x20API\x20error:\x20','source','/client/user/loginUserInfo','stringify','errors','Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.','valid','?appCode=','size','validation','publish','/client/artifact/list?','/execute?appCode=','text','/client/app-config/getByKey?','Invalid\x20app\x20config\x20value:\x20key=','1130BymQCp','GET','favorite','topK','join','effective','378103drGcNg','/client/bff/endpoint/','kind','/client/artifact/create','entries','markdown','8QxiUGF','255399yvPaKW','diagramValidated','SQL\x20query\x20not\x20found:\x20','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','items','/client/knowledge-base/personal/list?appCode=','searchParams','/client/knowledge-base/personal/','apiError','36uDsulV','all','arrayBuffer','sourceFingerprint','newConfigFileName','description','4rdWHCv',',\x20name=','company','/publish/validate','application/zip','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','Toolbox\x20API\x20error','Toolbox\x20error\x20code:\x20','functionName','Personal\x20BFF\x20not\x20found:\x20id=','Request\x20timeout:\x20','errorCode','errorMsg','name'];a78_0x2636=function(){return _0x4137aa;};return a78_0x2636();}export async function listPersonalRuntimeSkills(_0x3cca3f){const _0x7567ab=a78_0x44c7;return(await listRuntimeSkills({'appCode':_0x3cca3f,'scope':_0x7567ab(0x21b)}))[_0x7567ab(0x21b)];}export async function listCompanyRuntimeSkills(_0x15fbff){return(await listRuntimeSkills({'appCode':_0x15fbff,'scope':'company'}))['company'];}export async function listVisibleRuntimeSkills(_0x15d4c7){const _0x391259=a78_0x44c7;return(await listRuntimeSkills({'appCode':_0x15d4c7,'scope':_0x391259(0x273)}))[_0x391259(0x261)];}export async function createPersonalRuntimeSkill(_0x37f4d1,_0x168212,_0x191882={}){const _0x417416=a78_0x44c7;return publishRuntimeSkill(_0x37f4d1,_0x168212,{'visibility':_0x417416(0x20d),'confirmWarnings':_0x191882[_0x417416(0x219)]});}export async function updatePersonalRuntimeSkill(_0x396ccc,_0x16655b,_0x999df,_0x4e6d8e={}){const _0x47144c=a78_0x44c7;return publishRuntimeSkill(_0x16655b,{..._0x999df,'skillCode':_0x999df[_0x47144c(0x22f)]??_0x396ccc},{'visibility':_0x47144c(0x20d),'confirmWarnings':_0x4e6d8e['confirmWarnings']});}export async function publishCompanyRuntimeSkill(_0x5ce9ee,_0x462f4a,_0x3f03ae={}){const _0x12ce61=a78_0x44c7;return publishRuntimeSkill(_0x5ce9ee,_0x462f4a,{'visibility':_0x12ce61(0x234),'confirmWarnings':_0x3f03ae[_0x12ce61(0x219)]});}export async function validateRuntimeSkillPublish(_0x25eca0,_0x4a210a,_0xea0a59){const _0x327eea=a78_0x44c7,_0x20f782=buildRuntimeSkillPublishForm(_0x4a210a,_0xea0a59[_0x327eea(0x1ec)]),_0xfe14d1=await skillHubJsonRequest(_0x327eea(0x1e3)+encodeURIComponent(_0x25eca0)+_0x327eea(0x1d0),{'method':'POST','body':_0x20f782});return assertJointDiagramAcknowledged(_0x4a210a[_0x327eea(0x202)],_0xfe14d1[_0x327eea(0x26a)],_0x327eea(0x255)),{'valid':_0xfe14d1[_0x327eea(0x252)]===!![],'errors':Array['isArray'](_0xfe14d1[_0x327eea(0x250)])?_0xfe14d1['errors']:[],'warnings':Array[_0x327eea(0x1f3)](_0xfe14d1['warnings'])?_0xfe14d1[_0x327eea(0x232)]:[],'resolvedSlug':_0xfe14d1[_0x327eea(0x1ee)],'resolvedVersion':_0xfe14d1['resolvedVersion'],'diagramValidated':_0xfe14d1['diagramValidated']===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x4f4c27,_0x1b9b1e,_0x1220ab,_0xa7d4c6,_0x265f1f){const _0x5a739b=a78_0x44c7;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x4f4c27,_0x1b9b1e,_0x1220ab,_0x5a739b(0x20e)),{'method':_0x5a739b(0x223),'query':{'scope':_0xa7d4c6},'headers':{'Content-Type':_0x5a739b(0x225)},'body':JSON[_0x5a739b(0x24f)](_0x265f1f)});}export async function putRuntimeSkillVersionDiagram(_0x189ca5,_0x524177,_0x40890c,_0xc59efe,_0x10b063){const _0x5bce02=a78_0x44c7;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x189ca5,_0x524177,_0x40890c),{'method':_0x5bce02(0x22b),'query':{'scope':_0xc59efe},'headers':{'Content-Type':_0x5bce02(0x225)},'body':JSON[_0x5bce02(0x24f)](_0x10b063)});}export async function getRuntimeSkillVersionDiagram(_0x264843,_0xb00a0f,_0x22cf7a,_0x5abf71){const _0x2deb16=a78_0x44c7,_0x387ebe=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x264843,_0xb00a0f,_0x22cf7a),{'query':{'scope':_0x5abf71}});if(typeof _0x387ebe[_0x2deb16(0x203)]!==_0x2deb16(0x215))throw CliErrors['apiError'](_0x2deb16(0x217));const _0x3628ef=_0x387ebe[_0x2deb16(0x275)];if(typeof _0x3628ef!==_0x2deb16(0x1dc)||!/^sha256:[0-9a-f]{64}$/[_0x2deb16(0x1df)](_0x3628ef))throw CliErrors[_0x2deb16(0x271)](_0x2deb16(0x1d2),'SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.');const _0x1ce378=_0x387ebe[_0x2deb16(0x205)];if(_0x387ebe['found']&&(!Number[_0x2deb16(0x222)](_0x1ce378)||Number(_0x1ce378)<0x1))throw CliErrors[_0x2deb16(0x271)](_0x2deb16(0x211));if(!_0x387ebe['found']&&_0x1ce378!==undefined&&_0x1ce378!==null)throw CliErrors[_0x2deb16(0x271)](_0x2deb16(0x251));const _0x379164=_0x387ebe['found']?Number(_0x1ce378):null;return{..._0x387ebe,'sourceFingerprint':_0x3628ef,'diagramRevision':_0x379164,'expectedDiagramRevision':_0x379164??0x0};}export async function downloadRuntimeSkillPackage(_0x501653,_0x1ee906,_0x5df953,_0x4086f2){const _0x4bfe72=a78_0x44c7;void _0x501653;const _0x26d287=_0x4086f2?_0x4bfe72(0x1e3)+encodeURIComponent(_0x5df953)+'/'+encodeURIComponent(_0x1ee906)+_0x4bfe72(0x1dd)+encodeURIComponent(_0x4086f2)+_0x4bfe72(0x1f0):_0x4bfe72(0x1e3)+encodeURIComponent(_0x5df953)+'/'+encodeURIComponent(_0x1ee906)+_0x4bfe72(0x1f0);return skillHubBinaryRequest(_0x26d287);}async function publishRuntimeSkill(_0x5ba057,_0xf11f4b,_0x6ed293){const _0x8878bf=a78_0x44c7,_0x290951=buildRuntimeSkillPublishForm(_0xf11f4b,_0x6ed293['visibility']),_0x527bd2=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x5ba057)+_0x8878bf(0x21f),{'method':_0x8878bf(0x223),'query':{'confirmWarnings':_0x6ed293[_0x8878bf(0x219)]===!![]?!![]:undefined},'body':_0x290951});return assertJointDiagramAcknowledged(_0xf11f4b[_0x8878bf(0x202)],_0x527bd2[_0x8878bf(0x237)],_0x8878bf(0x256)),{'appCode':_0x527bd2[_0x8878bf(0x1e5)]??_0x5ba057,'skillCode':_0x527bd2[_0x8878bf(0x1f2)]??_0xf11f4b[_0x8878bf(0x22f)]??'','skillName':_0xf11f4b['skillName']??_0x527bd2['slug']??_0xf11f4b[_0x8878bf(0x22f)],'description':_0xf11f4b[_0x8878bf(0x277)],'scope':skillHubVisibilityToScope(_0x527bd2[_0x8878bf(0x1ec)]??_0x6ed293['visibility'])??_0x8878bf(0x21b),'version':_0x527bd2['version']??_0xf11f4b[_0x8878bf(0x1e4)],'tags':_0xf11f4b[_0x8878bf(0x1f4)],'content':_0xf11f4b['content'],'diagramBound':_0x527bd2[_0x8878bf(0x237)]===!![]};}function assertJointDiagramAcknowledged(_0xd7461b,_0x4dd6c6,_0xfdc641){if(!_0xd7461b||_0x4dd6c6===!![])return;throw CliErrors['apiError']('SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20'+_0xfdc641+'.','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.');}function buildRuntimeSkillPublishForm(_0x320c9b,_0x3093a3){const _0x3ffd8d=a78_0x44c7,_0x3801d4=new FormData();return _0x3801d4[_0x3ffd8d(0x243)](_0x3ffd8d(0x246),runtimeSkillPackageFile(_0x320c9b)),_0x320c9b[_0x3ffd8d(0x229)]?.[_0x3ffd8d(0x221)]()&&_0x3801d4['set'](_0x3ffd8d(0x1fe),_0x320c9b['skillName'][_0x3ffd8d(0x221)]()),_0x3801d4['set'](_0x3ffd8d(0x1ec),_0x3093a3),_0x320c9b[_0x3ffd8d(0x202)]&&_0x3801d4['set'](_0x3ffd8d(0x202),new Blob([JSON[_0x3ffd8d(0x24f)](_0x320c9b['diagram'])],{'type':_0x3ffd8d(0x225)})),_0x3801d4;}function runtimeSkillVersionDiagramPath(_0x3ba3b6,_0x217e99,_0x4df7c8,_0x4625b0=''){const _0x2c8ef1=a78_0x44c7;return _0x2c8ef1(0x1e3)+encodeURIComponent(_0x3ba3b6)+'/'+encodeURIComponent(_0x217e99)+_0x2c8ef1(0x1dd)+encodeURIComponent(_0x4df7c8)+_0x2c8ef1(0x214)+_0x4625b0;}function runtimeSkillPackageFile(_0x1b7795){const _0x3b7db6=a78_0x44c7;if(!_0x1b7795['packageBase64'])throw CliErrors[_0x3b7db6(0x255)](_0x3b7db6(0x20a));const _0x56e0f3=Buffer[_0x3b7db6(0x1f8)](_0x1b7795[_0x3b7db6(0x1e6)],_0x3b7db6(0x224)),_0x1c3356=new Blob([_0x56e0f3],{'type':_0x3b7db6(0x1d1)}),_0xa3e0e0=(_0x1b7795['skillCode']||'skill')+_0x3b7db6(0x231);if(typeof File!==_0x3b7db6(0x1ff))return new File([_0x1c3356],_0xa3e0e0,{'type':_0x3b7db6(0x1d1)});return _0x1c3356;}function normalizeSkillHubRuntimeListResponse(_0x222459,_0x5ad73c,_0x1989fd,_0x26142b){const _0x387ad9=a78_0x44c7,_0x2b15d7=Array['isArray'](_0x5ad73c)?_0x5ad73c:Array[_0x387ad9(0x1f3)](_0x5ad73c?.['items'])?_0x5ad73c[_0x387ad9(0x26d)]:[],_0x4fb6e8=_0x26142b?.[_0x387ad9(0x221)](),_0x4e1956=_0x2b15d7['filter'](_0x4409d2=>!_0x4fb6e8||_0x4409d2['slug']===_0x4fb6e8)['map'](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x4d7107=>Boolean(_0x4d7107)),_0x1bb4a7=_0x4e1956['filter'](_0x3dc324=>_0x3dc324['scope']===_0x387ad9(0x21b)),_0x597501=_0x4e1956[_0x387ad9(0x1ef)](_0x10b3e7=>_0x10b3e7[_0x387ad9(0x212)]===_0x387ad9(0x1cf));return{'appCode':_0x222459,'personal':_0x1989fd===_0x387ad9(0x1cf)?[]:_0x1bb4a7,'company':_0x1989fd===_0x387ad9(0x21b)?[]:_0x597501,'effective':buildEffectiveRuntimeSkills(_0x1bb4a7,_0x597501,_0x1989fd)};}function skillHubRuntimeItemToRuntimeSkill(_0x505ef7){const _0x53473f=a78_0x44c7,_0x2422f1=_0x505ef7[_0x53473f(0x1f2)]?.['trim'](),_0x1c710c=skillHubVisibilityToScope(_0x505ef7[_0x53473f(0x1ec)]);if(!_0x2422f1||!_0x1c710c)return undefined;return{'id':_0x505ef7['id'],'appCode':_0x505ef7[_0x53473f(0x1e5)],'skillCode':_0x2422f1,'skillName':_0x505ef7[_0x53473f(0x1fe)]??_0x2422f1,'description':_0x505ef7[_0x53473f(0x1e2)],'scope':_0x1c710c,'version':skillHubRuntimeItemVersion(_0x505ef7),'status':_0x505ef7[_0x53473f(0x236)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x23c85f){const _0x200e73=a78_0x44c7,_0xca932e=_0x23c85f[_0x200e73(0x1f2)]?.[_0x200e73(0x221)]();if(!_0xca932e)return undefined;return{'id':_0x23c85f['id'],'appCode':_0x23c85f[_0x200e73(0x1e5)],'skillCode':_0xca932e,'skillName':_0x23c85f[_0x200e73(0x1fe)]??_0xca932e,'description':_0x23c85f['summary'],'example':_0x23c85f[_0x200e73(0x200)],'scope':skillHubVisibilityToScope(_0x23c85f[_0x200e73(0x1ec)])??_0x23c85f[_0x200e73(0x1ec)]?.[_0x200e73(0x1e8)](),'version':skillHubRuntimeItemVersion(_0x23c85f),'status':_0x23c85f[_0x200e73(0x236)]};}function skillHubVisibilityToScope(_0x494dc6){const _0x5e8275=a78_0x44c7;if(_0x494dc6===_0x5e8275(0x20d))return _0x5e8275(0x21b);if(_0x494dc6===_0x5e8275(0x234))return'company';return undefined;}function skillHubRuntimeItemVersion(_0x3bea85){const _0x35fdbe=a78_0x44c7;return _0x3bea85[_0x35fdbe(0x1e1)]?.[_0x35fdbe(0x1e4)]??_0x3bea85[_0x35fdbe(0x1e7)]?.[_0x35fdbe(0x1e4)]??_0x3bea85[_0x35fdbe(0x23b)]?.[_0x35fdbe(0x1e4)];}function a78_0x44c7(_0x450eee,_0x341047){_0x450eee=_0x450eee-0x1cd;const _0x263699=a78_0x2636();let _0x44c79f=_0x263699[_0x450eee];return _0x44c79f;}function buildEffectiveRuntimeSkills(_0x2f752e,_0x28f924,_0x475142){const _0x284539=a78_0x44c7;if(_0x475142===_0x284539(0x21b))return _0x2f752e;if(_0x475142===_0x284539(0x1cf))return _0x28f924;const _0x4c4f95=new Map();for(const _0xa49d0d of _0x28f924){_0x4c4f95[_0x284539(0x243)](_0xa49d0d['skillCode'],_0xa49d0d);}for(const _0x10aa4d of _0x2f752e){_0x4c4f95[_0x284539(0x243)](_0x10aa4d[_0x284539(0x22f)],_0x10aa4d);}return Array[_0x284539(0x1f8)](_0x4c4f95[_0x284539(0x226)]());}function normalizeRuntimeSkillListResponse(_0x3a0ffb,_0x527a86){const _0x4b8edc=a78_0x44c7;if(Array[_0x4b8edc(0x1f3)](_0x527a86)){const _0x5b148a=_0x527a86[_0x4b8edc(0x1ef)](_0x3a7261=>_0x3a7261[_0x4b8edc(0x212)]===_0x4b8edc(0x21b)),_0x5a07f0=_0x527a86[_0x4b8edc(0x1ef)](_0x1c07c0=>_0x1c07c0[_0x4b8edc(0x212)]===_0x4b8edc(0x1cf));return{'appCode':_0x3a0ffb,'personal':_0x5b148a,'company':_0x5a07f0,'effective':[..._0x5a07f0,..._0x5b148a]};}return{'appCode':_0x527a86?.[_0x4b8edc(0x238)]??_0x3a0ffb,'personal':Array[_0x4b8edc(0x1f3)](_0x527a86?.['personal'])?_0x527a86[_0x4b8edc(0x21b)]:[],'company':Array[_0x4b8edc(0x1f3)](_0x527a86?.[_0x4b8edc(0x1cf)])?_0x527a86[_0x4b8edc(0x1cf)]:[],'effective':Array[_0x4b8edc(0x1f3)](_0x527a86?.[_0x4b8edc(0x261)])?_0x527a86[_0x4b8edc(0x261)]:[]};}
1
+ (function(_0x31d732,_0x4aadc1){const _0x105186=a78_0x3a60,_0x125890=_0x31d732();while(!![]){try{const _0x197a39=parseInt(_0x105186(0x180))/0x1*(parseInt(_0x105186(0x166))/0x2)+parseInt(_0x105186(0x197))/0x3+-parseInt(_0x105186(0x194))/0x4*(parseInt(_0x105186(0x17b))/0x5)+-parseInt(_0x105186(0x1df))/0x6+parseInt(_0x105186(0x186))/0x7*(parseInt(_0x105186(0x19a))/0x8)+parseInt(_0x105186(0x1e1))/0x9+-parseInt(_0x105186(0x1ee))/0xa;if(_0x197a39===_0x4aadc1)break;else _0x125890['push'](_0x125890['shift']());}catch(_0x5a9b0d){_0x125890['push'](_0x125890['shift']());}}}(a78_0xac45,0xaf027));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{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x1efa64){_activeAK=_0x1efa64||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x2ae3ab){const _0x4a027d=a78_0x3a60;for(const _0x5309ad of _0x2ae3ab){if(typeof _0x5309ad===_0x4a027d(0x1bf)&&_0x5309ad[_0x4a027d(0x19e)]())return _0x5309ad[_0x4a027d(0x19e)]();}return undefined;}async function decodeResponseBody(_0x1cc928){const _0x4b55b6=a78_0x3a60;if(typeof _0x1cc928[_0x4b55b6(0x159)]===_0x4b55b6(0x1ce))try{const _0x2ece75=await _0x1cc928['text']();try{return{'isJson':!![],'data':parseLosslessJson(_0x2ece75),'text':_0x2ece75};}catch{return{'isJson':![],'text':_0x2ece75[_0x4b55b6(0x19e)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x1cc928[_0x4b55b6(0x153)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x4b5fc5,_0x2f7256,_0x5cd8b4){const _0x30214a=a78_0x3a60,_0x42c73f=_0x2f7256&&typeof _0x2f7256===_0x30214a(0x1de)?_0x2f7256:{},_0x412435=[_0x42c73f[_0x30214a(0x1d1)],_0x42c73f[_0x30214a(0x189)]][_0x30214a(0x1ba)](_0x39d291=>Number(_0x39d291)===0x1ad),_0xef9198=createRateLimitError({'status':_0x4b5fc5[_0x30214a(0x1d1)]===0x1ad?_0x4b5fc5[_0x30214a(0x1d1)]:_0x412435??_0x4b5fc5[_0x30214a(0x1d1)],'errorCode':firstString(_0x42c73f[_0x30214a(0x1e3)],typeof _0x42c73f[_0x30214a(0x189)]===_0x30214a(0x1bf)?_0x42c73f[_0x30214a(0x189)]:undefined),'message':firstString(_0x42c73f['errorMsg'],_0x42c73f[_0x30214a(0x1e0)],_0x42c73f[_0x30214a(0x1a3)],_0x5cd8b4),'retryAfter':readRetryAfter(_0x4b5fc5[_0x30214a(0x1f5)])??readRetryAfterSeconds(_0x2f7256)});if(_0xef9198)throw _0xef9198;}async function apiRequest(_0x23478f,_0x37cd29={}){const _0x1f8ad7=a78_0x3a60,{method:method=_0x1f8ad7(0x1c1),body:_0x4bc8d5,headers:headers={},timeout:timeout=0x7530}=_0x37cd29,_0x28b31d=_activeAK,_0x120ed4=getRuntimeDomain();if(!_0x28b31d)throw CliErrors[_0x1f8ad7(0x1ea)](_0x1f8ad7(0x1e4)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x358ad5=''+_0x120ed4+_0x23478f,_0x316311={'X-User-AK':_0x28b31d},_0x307d9d=new AbortController(),_0x11daed=setTimeout(()=>_0x307d9d[_0x1f8ad7(0x15d)](),timeout);try{const _0x39c46f=await fetch(_0x358ad5,{'method':method,'headers':{'Content-Type':_0x1f8ad7(0x14f),'X-Invoke-Source':PRODUCT_CONFIG[_0x1f8ad7(0x17c)],..._0x316311,...headers},'body':_0x4bc8d5?JSON[_0x1f8ad7(0x174)](_0x4bc8d5):undefined,'signal':_0x307d9d[_0x1f8ad7(0x17e)]}),_0x4d5938=await decodeResponseBody(_0x39c46f);if(!_0x4d5938[_0x1f8ad7(0x1d5)]){throwIfRateLimited(_0x39c46f,undefined,_0x4d5938[_0x1f8ad7(0x159)]);throw CliErrors[_0x1f8ad7(0x1e7)](_0x1f8ad7(0x190)+_0x39c46f[_0x1f8ad7(0x1d1)]+')',_0x39c46f['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x4ca74c=_0x4d5938[_0x1f8ad7(0x1cf)];throwIfRateLimited(_0x39c46f,_0x4ca74c);if(!_0x39c46f['ok']||_0x4ca74c[_0x1f8ad7(0x18f)]===![])throw CliErrors[_0x1f8ad7(0x1e7)](_0x4ca74c[_0x1f8ad7(0x16b)]||_0x4ca74c[_0x1f8ad7(0x1e0)]||_0x1f8ad7(0x170)+_0x39c46f['status'],_0x4ca74c['errorCode']?_0x1f8ad7(0x1eb)+_0x4ca74c[_0x1f8ad7(0x1e3)]:undefined);return _0x4ca74c;}catch(_0x44f075){if(_0x44f075 instanceof Error&&_0x44f075[_0x1f8ad7(0x1a0)]==='AbortError')throw CliErrors['apiError'](_0x1f8ad7(0x183)+_0x358ad5);throw _0x44f075;}finally{clearTimeout(_0x11daed);}}async function apiBinaryRequest(_0x149449,_0x430e24={}){const _0x5988b3=a78_0x3a60,{method:method=_0x5988b3(0x1c1),headers:headers={},timeout:timeout=0x7530}=_0x430e24,_0x4e6161=_activeAK,_0x494b7a=getRuntimeDomain();if(!_0x4e6161)throw CliErrors[_0x5988b3(0x1ea)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x5988b3(0x15b)]+'.');const _0x4c335b=''+_0x494b7a+_0x149449,_0x10662d=new AbortController(),_0x262810=setTimeout(()=>_0x10662d[_0x5988b3(0x15d)](),timeout);try{const _0x4fde7f=await fetch(_0x4c335b,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5988b3(0x17c)],'X-User-AK':_0x4e6161,...headers},'signal':_0x10662d[_0x5988b3(0x17e)]});if(!_0x4fde7f['ok']){const _0x5708ce=await decodeResponseBody(_0x4fde7f),_0x11e977=_0x5708ce[_0x5988b3(0x1cf)]&&typeof _0x5708ce[_0x5988b3(0x1cf)]===_0x5988b3(0x1de)?_0x5708ce[_0x5988b3(0x1cf)]:{},_0x4154e9=firstString(_0x11e977['errorMsg'],_0x11e977[_0x5988b3(0x1e0)],_0x11e977[_0x5988b3(0x1e3)],_0x5708ce[_0x5988b3(0x159)]);throwIfRateLimited(_0x4fde7f,_0x5708ce[_0x5988b3(0x1cf)],_0x4154e9);throw CliErrors[_0x5988b3(0x1e7)](_0x4154e9||_0x5988b3(0x170)+_0x4fde7f[_0x5988b3(0x1d1)],_0x5988b3(0x18a)+_0x4c335b);}return Buffer['from'](await _0x4fde7f[_0x5988b3(0x157)]());}catch(_0x1ee4b9){if(_0x1ee4b9 instanceof Error&&_0x1ee4b9['name']===_0x5988b3(0x1a1))throw CliErrors[_0x5988b3(0x1e7)](_0x5988b3(0x183)+_0x4c335b);throw _0x1ee4b9;}finally{clearTimeout(_0x262810);}}async function apiFormRequest(_0x3eeec8,_0x2443aa,_0x349d66={}){const _0x5f3c74=a78_0x3a60,{timeout:timeout=0x7530}=_0x349d66,_0x4dea3a=_activeAK,_0x133b59=getRuntimeDomain();if(!_0x4dea3a)throw CliErrors[_0x5f3c74(0x1ea)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x5f3c74(0x15b)]+'.');const _0x245ab3=''+_0x133b59+_0x3eeec8,_0x232415=new AbortController(),_0x5bb950=setTimeout(()=>_0x232415['abort'](),timeout);try{const _0x43148b=await fetch(_0x245ab3,{'method':_0x5f3c74(0x15e),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5f3c74(0x17c)],'X-User-AK':_0x4dea3a},'body':_0x2443aa,'signal':_0x232415[_0x5f3c74(0x17e)]}),_0x45a6b8=await decodeResponseBody(_0x43148b);if(!_0x45a6b8[_0x5f3c74(0x1d5)]){throwIfRateLimited(_0x43148b,undefined,_0x45a6b8[_0x5f3c74(0x159)]);throw CliErrors[_0x5f3c74(0x1e7)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x43148b['status']+')',_0x43148b[_0x5f3c74(0x1d1)]>=0x190?_0x5f3c74(0x193):undefined);}const _0x299071=_0x45a6b8[_0x5f3c74(0x1cf)];throwIfRateLimited(_0x43148b,_0x299071);if(!_0x43148b['ok']||_0x299071[_0x5f3c74(0x18f)]===![])throw CliErrors[_0x5f3c74(0x1e7)](_0x299071[_0x5f3c74(0x16b)]||_0x299071[_0x5f3c74(0x1e0)]||_0x5f3c74(0x170)+_0x43148b[_0x5f3c74(0x1d1)],_0x299071[_0x5f3c74(0x1e3)]?_0x5f3c74(0x1eb)+_0x299071[_0x5f3c74(0x1e3)]:undefined);return _0x299071;}catch(_0x1f8e20){if(_0x1f8e20 instanceof Error&&_0x1f8e20[_0x5f3c74(0x1a0)]===_0x5f3c74(0x1a1))throw CliErrors[_0x5f3c74(0x1e7)]('Request\x20timeout:\x20'+_0x245ab3);throw _0x1f8e20;}finally{clearTimeout(_0x5bb950);}}async function toolboxRequest(_0x3af282,_0x52611a,_0x5a1026={}){const _0x16b0a7=a78_0x3a60,{method:method=_0x16b0a7(0x1c1),headers:headers={},timeout:timeout=0x7530}=_0x5a1026,_0x47d533=_activeAK;if(!_0x47d533)throw CliErrors[_0x16b0a7(0x1ea)](_0x16b0a7(0x1e4)+PRODUCT_CONFIG[_0x16b0a7(0x15b)]+'.');const _0x46cee1=getApiDomain()['replace'](/\/$/,''),_0x7f3d1b=new URL(_0x3af282,_0x46cee1+_0x16b0a7(0x1af));if(_0x52611a)for(const [_0x36622c,_0x51887f]of Object['entries'](_0x52611a)){_0x51887f!==undefined&&_0x51887f!==null&&_0x7f3d1b[_0x16b0a7(0x14e)][_0x16b0a7(0x16a)](_0x36622c,String(_0x51887f));}const _0x4b3245=new AbortController(),_0x60391=setTimeout(()=>_0x4b3245[_0x16b0a7(0x15d)](),timeout);try{const _0x3019be=await fetch(_0x7f3d1b,{'method':method,'headers':{'Content-Type':_0x16b0a7(0x14f),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x47d533,...headers},'signal':_0x4b3245[_0x16b0a7(0x17e)]}),_0x52ddcf=await decodeResponseBody(_0x3019be);if(!_0x52ddcf[_0x16b0a7(0x1d5)]){throwIfRateLimited(_0x3019be,undefined,_0x52ddcf['text']);throw CliErrors[_0x16b0a7(0x1e7)](_0x16b0a7(0x1c7)+_0x3019be[_0x16b0a7(0x1d1)]+')',_0x3019be[_0x16b0a7(0x1d1)]>=0x190?_0x16b0a7(0x193):undefined);}const _0x17f57a=_0x52ddcf[_0x16b0a7(0x1cf)];throwIfRateLimited(_0x3019be,_0x17f57a);if(!_0x3019be['ok']){const _0x392881=_0x17f57a&&typeof _0x17f57a===_0x16b0a7(0x1de)?_0x17f57a:{};throw CliErrors[_0x16b0a7(0x1e7)](_0x392881[_0x16b0a7(0x16b)]||_0x392881[_0x16b0a7(0x1e0)]||_0x16b0a7(0x1ef)+_0x3019be[_0x16b0a7(0x1d1)],_0x392881[_0x16b0a7(0x1e3)]?'Toolbox\x20error\x20code:\x20'+_0x392881[_0x16b0a7(0x1e3)]:undefined);}if(_0x17f57a&&typeof _0x17f57a===_0x16b0a7(0x1de)&&_0x16b0a7(0x18f)in _0x17f57a&&typeof _0x17f57a[_0x16b0a7(0x18f)]==='boolean'){const _0x5677f5=_0x17f57a;if(!_0x5677f5[_0x16b0a7(0x18f)])throw CliErrors['apiError'](_0x5677f5['errorMsg']||_0x5677f5[_0x16b0a7(0x1e0)]||_0x16b0a7(0x1f8),_0x5677f5[_0x16b0a7(0x1e3)]?_0x16b0a7(0x1b1)+_0x5677f5[_0x16b0a7(0x1e3)]:undefined);return _0x5677f5[_0x16b0a7(0x1cf)];}return _0x17f57a;}catch(_0x195334){if(_0x195334 instanceof Error&&_0x195334[_0x16b0a7(0x1a0)]===_0x16b0a7(0x1a1))throw CliErrors[_0x16b0a7(0x1e7)](_0x16b0a7(0x183)+_0x7f3d1b[_0x16b0a7(0x18b)]());throw _0x195334;}finally{clearTimeout(_0x60391);}}async function skillHubJsonRequest(_0x415c91,_0x125651={}){const _0x5b78fd=a78_0x3a60,{method:method=_0x5b78fd(0x1c1),query:_0xa78140,body:_0xe19516,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x125651,_0x302eba=_activeAK;if(!_0x302eba)throw CliErrors['authRequired'](_0x5b78fd(0x1e4)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x19e15c=getSkillHubDomain()[_0x5b78fd(0x1a8)](/\/$/,''),_0x3452d8=new URL(_0x415c91,_0x19e15c+'/');if(_0xa78140)for(const [_0x56727f,_0x13916e]of Object[_0x5b78fd(0x1bc)](_0xa78140)){_0x13916e!==undefined&&_0x13916e!==null&&_0x3452d8[_0x5b78fd(0x14e)][_0x5b78fd(0x16a)](_0x56727f,String(_0x13916e));}const _0x1ef55e=new AbortController(),_0x396ee2=setTimeout(()=>_0x1ef55e['abort'](),timeout);try{const _0x1c9378=await fetch(_0x3452d8[_0x5b78fd(0x18b)](),{'method':method,'headers':{'Accept':_0x5b78fd(0x14f),'X-Invoke-Source':PRODUCT_CONFIG[_0x5b78fd(0x17c)],'X-User-AK':_0x302eba,...headers},'body':_0xe19516,'signal':_0x1ef55e[_0x5b78fd(0x17e)]}),_0x4c58cf=await decodeResponseBody(_0x1c9378);if(!_0x4c58cf[_0x5b78fd(0x1d5)]){if(allowNotFound&&_0x1c9378[_0x5b78fd(0x1d1)]===0x194)return undefined;throwIfRateLimited(_0x1c9378,undefined,_0x4c58cf[_0x5b78fd(0x159)]);throw CliErrors[_0x5b78fd(0x1e7)](_0x5b78fd(0x184)+_0x1c9378[_0x5b78fd(0x1d1)]+')',_0x1c9378[_0x5b78fd(0x1d1)]>=0x190?_0x5b78fd(0x193):undefined);}const _0xbc6bea=_0x4c58cf[_0x5b78fd(0x1cf)];throwIfRateLimited(_0x1c9378,_0xbc6bea);if(allowNotFound&&isSkillHubNotFoundResponse(_0x1c9378[_0x5b78fd(0x1d1)],_0xbc6bea))return undefined;const _0x4d446d=!_0x1c9378['ok']||_0xbc6bea?.['success']===![]||typeof _0xbc6bea?.['code']===_0x5b78fd(0x188)&&_0xbc6bea['code']>=0x190;if(_0x4d446d)throw CliErrors[_0x5b78fd(0x1e7)](_0xbc6bea?.['errorMsg']||_0xbc6bea?.[_0x5b78fd(0x1e0)]||_0xbc6bea?.['msg']||'SkillHub\x20API\x20error:\x20'+_0x1c9378[_0x5b78fd(0x1d1)],_0xbc6bea?.[_0x5b78fd(0x1e3)]?'SkillHub\x20error\x20code:\x20'+_0xbc6bea[_0x5b78fd(0x1e3)]:undefined);return _0xbc6bea?.['data']??_0xbc6bea;}catch(_0x4a2661){if(_0x4a2661 instanceof Error&&_0x4a2661[_0x5b78fd(0x1a0)]===_0x5b78fd(0x1a1))throw CliErrors[_0x5b78fd(0x1e7)](_0x5b78fd(0x183)+_0x3452d8['toString']());throw _0x4a2661;}finally{clearTimeout(_0x396ee2);}}function isSkillHubNotFoundResponse(_0x1c87d4,_0x8b675f){const _0x441b84=a78_0x3a60;if(_0x1c87d4===0x194||_0x8b675f?.['code']===0x194)return!![];if(_0x1c87d4!==0x190&&_0x8b675f?.['code']!==0x190)return![];const _0x12b330=[_0x8b675f?.['msg'],_0x8b675f?.[_0x441b84(0x1e0)],_0x8b675f?.['errorMsg'],_0x8b675f?.[_0x441b84(0x1ad)]][_0x441b84(0x1e8)](_0x518225=>typeof _0x518225===_0x441b84(0x1bf))[_0x441b84(0x15a)]('\x20');return/skill not found\b/i[_0x441b84(0x1ac)](_0x12b330);}async function skillHubBinaryRequest(_0x2be297,_0x1f7195={}){const _0x5dd087=a78_0x3a60,{query:_0x1bfb76,headers:headers={},timeout:timeout=0x7530}=_0x1f7195,_0x23d6d1=_activeAK;if(!_0x23d6d1)throw CliErrors[_0x5dd087(0x1ea)](_0x5dd087(0x1e4)+PRODUCT_CONFIG[_0x5dd087(0x15b)]+'.');const _0x8af280=getSkillHubDomain()[_0x5dd087(0x1a8)](/\/$/,''),_0x47762f=new URL(_0x2be297,_0x8af280+'/');if(_0x1bfb76)for(const [_0x52fd33,_0x5dd280]of Object[_0x5dd087(0x1bc)](_0x1bfb76)){_0x5dd280!==undefined&&_0x5dd280!==null&&_0x47762f[_0x5dd087(0x14e)][_0x5dd087(0x16a)](_0x52fd33,String(_0x5dd280));}const _0x229f93=new AbortController(),_0x43839f=setTimeout(()=>_0x229f93[_0x5dd087(0x15d)](),timeout);try{const _0x3838ba=await fetch(_0x47762f['toString'](),{'method':_0x5dd087(0x1c1),'headers':{'Accept':_0x5dd087(0x1f6),'X-Invoke-Source':PRODUCT_CONFIG[_0x5dd087(0x17c)],'X-User-AK':_0x23d6d1,...headers},'signal':_0x229f93[_0x5dd087(0x17e)]});if(!_0x3838ba['ok']){const _0x3ada75=await decodeResponseBody(_0x3838ba),_0x2faff8=_0x3ada75[_0x5dd087(0x1cf)]&&typeof _0x3ada75[_0x5dd087(0x1cf)]===_0x5dd087(0x1de)?_0x3ada75[_0x5dd087(0x1cf)]:{},_0x2bfb07=firstString(_0x2faff8['errorMsg'],_0x2faff8[_0x5dd087(0x1e0)],_0x2faff8[_0x5dd087(0x1a3)],_0x2faff8[_0x5dd087(0x1e3)],_0x3ada75[_0x5dd087(0x159)]);throwIfRateLimited(_0x3838ba,_0x3ada75[_0x5dd087(0x1cf)],_0x2bfb07);throw CliErrors[_0x5dd087(0x1e7)](_0x2bfb07||_0x5dd087(0x165)+_0x3838ba[_0x5dd087(0x1d1)],_0x5dd087(0x18a)+_0x47762f[_0x5dd087(0x18b)]());}return Buffer[_0x5dd087(0x1b4)](await _0x3838ba[_0x5dd087(0x157)]());}catch(_0x35c57b){if(_0x35c57b instanceof Error&&_0x35c57b['name']==='AbortError')throw CliErrors[_0x5dd087(0x1e7)]('Request\x20timeout:\x20'+_0x47762f['toString']());throw _0x35c57b;}finally{clearTimeout(_0x43839f);}}export async function getBffEndpointContract(_0x478856,_0x44f6a8){const _0x1cdcb8=a78_0x3a60;if(_0x44f6a8===_0x1cdcb8(0x1ec))throw CliErrors['validation'](_0x1cdcb8(0x1f2)+_0x478856+',\x20name='+_0x44f6a8);const _0xfefb44=await apiRequest(_0x1cdcb8(0x18c)+encodeURIComponent(_0x478856)+'/'+encodeURIComponent(_0x44f6a8)),_0x1f98d8=_0xfefb44['data'];if(!_0x1f98d8||typeof _0x1f98d8!==_0x1cdcb8(0x1de)||Array['isArray'](_0x1f98d8)||_0x1f98d8['appCode']!==_0x478856||_0x1f98d8[_0x1cdcb8(0x18d)]!==_0x44f6a8)throw CliErrors[_0x1cdcb8(0x1c8)](_0x1cdcb8(0x1f2)+_0x478856+_0x1cdcb8(0x1b5)+_0x44f6a8);return{'appCode':_0x1f98d8[_0x1cdcb8(0x167)],'functionName':_0x1f98d8[_0x1cdcb8(0x18d)],'description':_0x1f98d8[_0x1cdcb8(0x16c)],'version':_0x1f98d8[_0x1cdcb8(0x1b7)],'gmtModified':_0x1f98d8[_0x1cdcb8(0x168)]};}export async function getSqlQueryInfo(_0x31b3bc,_0x2db329){const _0x1c331d=a78_0x3a60,_0x181981=await apiRequest(_0x1c331d(0x151),{'method':_0x1c331d(0x15e),'body':{'appCode':_0x31b3bc,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2db329}}),_0x3bcac8=_0x181981[_0x1c331d(0x1cf)],_0x35ebab=_0x3bcac8&&typeof _0x3bcac8===_0x1c331d(0x1de)&&_0x1c331d(0x1b2)in _0x3bcac8?_0x3bcac8[_0x1c331d(0x1b2)]?.[0x0]:_0x3bcac8&&typeof _0x3bcac8===_0x1c331d(0x1de)&&'sqlCode'in _0x3bcac8?_0x3bcac8:undefined;if(!_0x35ebab)throw CliErrors[_0x1c331d(0x1c8)]('SQL\x20query\x20not\x20found:\x20'+_0x2db329);return _0x35ebab;}function isRemoteAppItem(_0x2ff34a){const _0x439eb0=a78_0x3a60;return!!_0x2ff34a&&typeof _0x2ff34a===_0x439eb0(0x1de)&&typeof _0x2ff34a[_0x439eb0(0x167)]===_0x439eb0(0x1bf)&&typeof _0x2ff34a[_0x439eb0(0x182)]===_0x439eb0(0x1bf);}function extractRemoteAppItems(_0x490ab8){const _0x1bc25a=a78_0x3a60;if(Array['isArray'](_0x490ab8))return _0x490ab8[_0x1bc25a(0x1e8)](isRemoteAppItem);if(!_0x490ab8||typeof _0x490ab8!=='object')throw CliErrors[_0x1bc25a(0x1e7)](_0x1bc25a(0x181));const _0x15bcee=_0x490ab8;if(Array[_0x1bc25a(0x14d)](_0x15bcee[_0x1bc25a(0x1b2)]))return _0x15bcee[_0x1bc25a(0x1b2)]['filter'](isRemoteAppItem);if(_0x15bcee[_0x1bc25a(0x1cf)]&&typeof _0x15bcee[_0x1bc25a(0x1cf)]===_0x1bc25a(0x1de)){const _0x83242b=_0x15bcee[_0x1bc25a(0x1cf)];if(Array[_0x1bc25a(0x14d)](_0x83242b[_0x1bc25a(0x1b2)]))return _0x83242b[_0x1bc25a(0x1b2)]['filter'](isRemoteAppItem);}throw CliErrors[_0x1bc25a(0x1e7)](_0x1bc25a(0x1a2));}export async function getMyApps(){const _0x880bd6=a78_0x3a60,_0x1e31bf=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x1e31bf[_0x880bd6(0x1cf)]);}export async function getLoginUserInfo(){const _0x284b18=a78_0x3a60,_0x4b79cd=await apiRequest(_0x284b18(0x19f));if(!_0x4b79cd[_0x284b18(0x1cf)]||typeof _0x4b79cd[_0x284b18(0x1cf)]!==_0x284b18(0x1de)||Array[_0x284b18(0x14d)](_0x4b79cd[_0x284b18(0x1cf)]))throw CliErrors[_0x284b18(0x1e7)](_0x284b18(0x15f));return _0x4b79cd[_0x284b18(0x1cf)];}function runtimeSchedulePath(_0x3bff91,_0x42198f=''){const _0x3e666c=a78_0x3a60;return _0x3e666c(0x171)+encodeURIComponent(_0x3bff91)+_0x3e666c(0x1e2)+_0x42198f;}export async function validateRuntimeSchedule(_0x364e1f,_0x3d2335){const _0x350927=a78_0x3a60,_0x41f100=await apiRequest(runtimeSchedulePath(_0x364e1f,_0x350927(0x187)),{'method':_0x350927(0x15e),'body':_0x3d2335});return _0x41f100[_0x350927(0x1cf)];}export async function createRuntimeSchedule(_0x45de15,_0x358bc5){const _0x97e018=a78_0x3a60,_0x24d0cf=await apiRequest(runtimeSchedulePath(_0x45de15),{'method':_0x97e018(0x15e),'body':_0x358bc5});return _0x24d0cf[_0x97e018(0x1cf)];}function a78_0x3a60(_0x1da260,_0x43f97d){_0x1da260=_0x1da260-0x14d;const _0xac45ea=a78_0xac45();let _0x3a6007=_0xac45ea[_0x1da260];return _0x3a6007;}export async function listRuntimeSchedules(_0x8688cc,_0x5b608f){const _0x59d927=a78_0x3a60,_0x439166=new URLSearchParams();_0x439166[_0x59d927(0x16a)](_0x59d927(0x1db),_0x5b608f[_0x59d927(0x1db)]);if(_0x5b608f[_0x59d927(0x1d4)]!==undefined)_0x439166[_0x59d927(0x16a)](_0x59d927(0x1d4),String(_0x5b608f[_0x59d927(0x1d4)]));if(_0x5b608f[_0x59d927(0x1b0)])_0x439166[_0x59d927(0x16a)](_0x59d927(0x1b0),_0x5b608f[_0x59d927(0x1b0)]);const _0x1abbcb=_0x439166['size']>0x0?'?'+_0x439166['toString']():'',_0x4a8e4e=await apiRequest(''+runtimeSchedulePath(_0x8688cc)+_0x1abbcb);return _0x4a8e4e['data'];}export async function getRuntimeSchedule(_0x4b1413,_0x4b2f3b){const _0x2dbb09=a78_0x3a60,_0x92357c=await apiRequest(runtimeSchedulePath(_0x4b1413,'/'+encodeURIComponent(_0x4b2f3b)));return _0x92357c[_0x2dbb09(0x1cf)];}export async function deleteRuntimeSchedule(_0x31132d,_0x7324e3){const _0x2e146c=a78_0x3a60,_0x5df5d2=await apiRequest(runtimeSchedulePath(_0x31132d,'/'+encodeURIComponent(_0x7324e3)),{'method':_0x2e146c(0x1e6)});return _0x5df5d2[_0x2e146c(0x1cf)];}export async function runRuntimeSchedule(_0x41ce5d,_0x59da6f){const _0x26d709=a78_0x3a60,_0x5e004a=await apiRequest(runtimeSchedulePath(_0x41ce5d,'/'+encodeURIComponent(_0x59da6f)+_0x26d709(0x192)),{'method':_0x26d709(0x15e)});return _0x5e004a[_0x26d709(0x1cf)];}export async function listDatasets(_0x542f9f,_0x4f8383){const _0x461375=a78_0x3a60,_0x3b9871=await apiRequest(_0x461375(0x178),{'method':_0x461375(0x15e),'body':{'appCode':_0x542f9f,..._0x4f8383?.['code']&&{'code':_0x4f8383[_0x461375(0x189)]},..._0x4f8383?.[_0x461375(0x1a0)]&&{'name':_0x4f8383[_0x461375(0x1a0)]}}});return extractList(_0x3b9871[_0x461375(0x1cf)]);}export async function getDatasetDetail(_0x37e946){const _0x46cbe8=a78_0x3a60,_0x5322a1=await apiRequest(_0x46cbe8(0x1c3)+encodeURIComponent(_0x37e946));return _0x5322a1[_0x46cbe8(0x1cf)];}export async function getDatasetSdkUsageDoc(_0x185e81,_0x4f3bd0){const _0x2e27c1=a78_0x3a60,_0x5eef12=await toolboxRequest(_0x2e27c1(0x152),{'datasetCode':_0x185e81,'appCode':_0x4f3bd0});return typeof _0x5eef12?.['markdown']===_0x2e27c1(0x1bf)?_0x5eef12['markdown']:'';}export async function uploadRuntimeFile(_0x25b248,_0xfdae0d){const _0x3e2d84=a78_0x3a60,_0x21b606=await readFile(_0xfdae0d),_0x1d440e=new FormData();_0x1d440e['append']('appCode',_0x25b248),_0x1d440e['append']('file',new Blob([new Uint8Array(_0x21b606)]),basename(_0xfdae0d));const _0x5c2e2c=await apiFormRequest(_0x3e2d84(0x1c4),_0x1d440e);return _0x5c2e2c[_0x3e2d84(0x1cf)];}export async function queryRuntimeFileUrl(_0x108df0,_0x4a4778={}){const _0x1c0c31=a78_0x3a60,_0x248880=await apiRequest(_0x1c0c31(0x19b),{'method':'POST','body':{'filePath':_0x108df0,'downloadFlag':_0x4a4778[_0x1c0c31(0x1ab)]??![],..._0x4a4778[_0x1c0c31(0x1d6)]?{'longTerm':!![]}:{}}});return _0x248880[_0x1c0c31(0x1cf)];}export async function recognizeRuntimeOcr(_0x3cbccb,_0x1371da){const _0x20b48d=a78_0x3a60,_0x2705b1=await apiRequest(_0x20b48d(0x16e),{'method':_0x20b48d(0x15e),'body':{'appCode':_0x3cbccb,'url':_0x1371da[_0x20b48d(0x1b3)],'type':_0x1371da[_0x20b48d(0x1da)]}});return _0x2705b1[_0x20b48d(0x1cf)];}export async function getRuntimeAppConfigByKey(_0x3fb24e,_0x45f99c){const _0x432a52=a78_0x3a60,_0x21a564=new URLSearchParams({'appCode':_0x3fb24e,'key':_0x45f99c}),_0x3b8c0a=await apiRequest(_0x432a52(0x1d9)+_0x21a564[_0x432a52(0x18b)]());if(typeof _0x3b8c0a['data']!=='string')throw CliErrors[_0x432a52(0x1c8)](_0x432a52(0x163)+_0x45f99c);return _0x3b8c0a[_0x432a52(0x1cf)];}export async function listRuntimeArtifacts(_0x555cf7,_0xbdf349){const _0x5e99ee=a78_0x3a60,_0x5e10f3=new URLSearchParams({'appCode':_0x555cf7});if(_0xbdf349?.[_0x5e99ee(0x1a4)])_0x5e10f3[_0x5e99ee(0x16a)](_0x5e99ee(0x1a4),_0xbdf349[_0x5e99ee(0x1a4)]);if(_0xbdf349?.[_0x5e99ee(0x169)])_0x5e10f3[_0x5e99ee(0x16a)](_0x5e99ee(0x169),_0xbdf349['source']);if(_0xbdf349?.['favorite']!==undefined)_0x5e10f3[_0x5e99ee(0x16a)](_0x5e99ee(0x1bb),String(_0xbdf349[_0x5e99ee(0x1bb)]));const _0x269a30=await apiRequest(_0x5e99ee(0x1dc)+_0x5e10f3['toString']());return Array[_0x5e99ee(0x14d)](_0x269a30[_0x5e99ee(0x1cf)])?_0x269a30['data']:[];}export async function getRuntimeArtifact(_0x93b23c,_0x724a19){const _0x5af651=a78_0x3a60,_0x69bd5e=await apiRequest(_0x5af651(0x1c9)+_0x93b23c+_0x5af651(0x1ed)+encodeURIComponent(_0x724a19));if(!_0x69bd5e[_0x5af651(0x1cf)])throw CliErrors[_0x5af651(0x1c8)](_0x5af651(0x1d8)+_0x93b23c);return _0x69bd5e[_0x5af651(0x1cf)];}export async function createRuntimeArtifact(_0x3c6995,_0x3d198a){const _0x3ffff3=a78_0x3a60,_0x4550b7=await apiRequest(_0x3ffff3(0x1ae),{'method':_0x3ffff3(0x15e),'body':{'appCode':_0x3c6995,..._0x3d198a}});return _0x4550b7['data'];}export async function updateRuntimeArtifact(_0x24ceb5,_0x344e6a,_0x228736){const _0x1fad77=a78_0x3a60,_0x220313=await apiRequest(_0x1fad77(0x1c9)+_0x24ceb5+_0x1fad77(0x1cd),{'method':_0x1fad77(0x15e),'body':{'appCode':_0x344e6a,..._0x228736}});return _0x220313[_0x1fad77(0x1cf)];}export async function listPersonalBffs(_0xabe55f){const _0x216941=a78_0x3a60,_0x46866c=await apiRequest(_0x216941(0x1a9)+encodeURIComponent(_0xabe55f));return Array[_0x216941(0x14d)](_0x46866c['data'])?_0x46866c['data']:[];}export async function getPersonalBff(_0x1625c7,_0x1b4613){const _0x16f2bf=a78_0x3a60,_0x4fd2d3=await apiRequest(_0x16f2bf(0x1f1)+_0x1625c7+'?appCode='+encodeURIComponent(_0x1b4613));if(!_0x4fd2d3['data'])throw CliErrors[_0x16f2bf(0x1c8)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x1625c7);return _0x4fd2d3['data'];}export async function createPersonalBff(_0x121966,_0xc21a3){const _0x550fe1=a78_0x3a60,_0x184f33=await apiRequest(_0x550fe1(0x199),{'method':_0x550fe1(0x15e),'body':{'appCode':_0x121966,..._0xc21a3}});return _0x184f33['data'];}function a78_0xac45(){const _0x569153=['20XcoJgF','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','appName','Request\x20timeout:\x20','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','valid','6224715ZwjHre','/validate','number','code','Download\x20failed:\x20','toString','/client/bff/endpoint/','functionName','displayName','success','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','application/zip','/run','Check\x20your\x20credentials\x20and\x20try\x20again.','103780riSiil','packageBase64','topK','146388wdddCt','/execute?appCode=','/client/runtime-bff/personal/create','8IcpBsz','/client/queryFileUrl','skillCode','values','trim','/client/user/loginUserInfo','name','AbortError','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','msg','artifactType','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','namespace','.zip','replace','/client/runtime-bff/personal/list?appCode=','warnings','download','test','error','/client/artifact/create','/api/node-toolbox/','cursor','Toolbox\x20error\x20code:\x20','tableData','url','from',',\x20name=','Knowledge-base\x20entry\x20not\x20found:\x20id=','version','/client/knowledge-base/search','/client/knowledge-base/personal/list?appCode=','find','favorite','entries','/publish/validate','SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20','string','slug','GET','scope','/client/dataset/get-driven-data?code=','/client/uploadFile','/api/runtime/v1/namespaces/','company','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','validation','/client/artifact/','PRIVATE','NAMESPACE_ONLY','diagram','/update','function','data','headlineVersion','status','/client/knowledge-base/personal/','diagramValidated','limit','isJson','longTerm','ownerPreviewVersion','Artifact\x20not\x20found:\x20id=','/client/app-config/getByKey?','type','kind','/client/artifact/list?','example','object','4288866TkkXbU','message','11048418vtMNgh','/schedules','errorCode','Configure\x20accessKey\x20in\x20','/client/knowledge-base/personal/create','DELETE','apiError','filter','personal','authRequired','API\x20error\x20code:\x20','functions','?appCode=','21141680fGLefb','Toolbox\x20API\x20error:\x20','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','/client/runtime-bff/personal/','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','visibility','base64','headers','application/octet-stream','toLowerCase','Toolbox\x20API\x20error','isArray','searchParams','application/json','/publish','/client/sql/query','api-doc-generator','json','/versions/','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','effective','arrayBuffer','content','text','join','newConfigFileName','/diagram','abort','POST','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','sourceFingerprint','undefined','skillName','Invalid\x20app\x20config\x20value:\x20key=','/download','SkillHub\x20API\x20error:\x20','140612jweyeK','appCode','gmtModified','source','set','errorMsg','description','summary','/client/ocr','tags','API\x20error:\x20','/api/harness/apps/','/api/v1/skills/','query','stringify','Missing\x20Skill\x20package\x20payload.','confirmWarnings','found','/client/dataset/list','/api/cli/v1/skills/','/skills','5TRVgZv','invokeSource','errors','signal','items'];a78_0xac45=function(){return _0x569153;};return a78_0xac45();}export async function updatePersonalBff(_0x683261,_0x54b9b4,_0x51578f){const _0x1981fa=a78_0x3a60,_0x4757a7=await apiRequest(_0x1981fa(0x1f1)+_0x683261+_0x1981fa(0x1cd),{'method':_0x1981fa(0x15e),'body':{'appCode':_0x54b9b4,..._0x51578f}});return _0x4757a7[_0x1981fa(0x1cf)];}export async function executePersonalBff(_0x2cd7b0,_0x5c9e60,_0x4e39cb){const _0x177714=a78_0x3a60,_0x2750a8=await apiRequest(_0x177714(0x1f1)+_0x2cd7b0+_0x177714(0x198)+encodeURIComponent(_0x5c9e60),{'method':_0x177714(0x15e),'body':_0x4e39cb});return _0x2750a8[_0x177714(0x1cf)];}export async function listPersonalKnowledgeBaseItems(_0xd77109){const _0x280dd8=a78_0x3a60,_0x322979=await apiRequest(_0x280dd8(0x1b9)+encodeURIComponent(_0xd77109));return Array[_0x280dd8(0x14d)](_0x322979[_0x280dd8(0x1cf)])?_0x322979[_0x280dd8(0x1cf)]:[];}export async function getPersonalKnowledgeBaseItem(_0x3841b6,_0x5e9080){const _0x1b1cdc=a78_0x3a60,_0x27f015=await apiRequest(_0x1b1cdc(0x1d2)+_0x3841b6+_0x1b1cdc(0x1ed)+encodeURIComponent(_0x5e9080));if(!_0x27f015['data'])throw CliErrors[_0x1b1cdc(0x1c8)](_0x1b1cdc(0x1b6)+_0x3841b6);return _0x27f015['data'];}export async function createPersonalKnowledgeBaseItem(_0x19d31e,_0x193732){const _0x579cc2=a78_0x3a60,_0x5cba97=await apiRequest(_0x579cc2(0x1e5),{'method':'POST','body':{'appCode':_0x19d31e,..._0x193732}});return _0x5cba97[_0x579cc2(0x1cf)];}export async function updatePersonalKnowledgeBaseItem(_0x1222ce,_0x3a7dbd,_0x560cd8){const _0x1a01eb=a78_0x3a60,_0x456f4e=await apiRequest(_0x1a01eb(0x1d2)+_0x1222ce+_0x1a01eb(0x1cd),{'method':_0x1a01eb(0x15e),'body':{'appCode':_0x3a7dbd,..._0x560cd8}});return _0x456f4e[_0x1a01eb(0x1cf)];}export async function searchKnowledgeBase(_0x53fd0a,_0x116896){const _0x2ad916=a78_0x3a60,_0x52b68f=await apiRequest(_0x2ad916(0x1b8),{'method':_0x2ad916(0x15e),'body':{'appCode':_0x53fd0a,'query':_0x116896[_0x2ad916(0x173)],..._0x116896[_0x2ad916(0x196)]!==undefined?{'topK':_0x116896[_0x2ad916(0x196)]}:{}}});return Array[_0x2ad916(0x14d)](_0x52b68f[_0x2ad916(0x1cf)])?_0x52b68f[_0x2ad916(0x1cf)]:[];}export async function getRuntimeSkillByCode(_0x348500,_0x151f3f){const _0x1edd9a=a78_0x3a60,_0xa399e4=await skillHubJsonRequest(_0x1edd9a(0x172)+encodeURIComponent(_0x348500)+'/'+encodeURIComponent(_0x151f3f),{'allowNotFound':!![]});return _0xa399e4?skillHubRuntimeDetailToRuntimeSkill(_0xa399e4):undefined;}export async function listRuntimeSkills(_0x5ec1c0){const _0x1c86b2=a78_0x3a60,_0x44267f=await skillHubJsonRequest(_0x1c86b2(0x1c5)+encodeURIComponent(_0x5ec1c0['appCode'])+_0x1c86b2(0x17a),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x5ec1c0[_0x1c86b2(0x167)],_0x44267f,_0x5ec1c0[_0x1c86b2(0x1c2)]??'all',_0x5ec1c0[_0x1c86b2(0x189)]);}export async function listPersonalRuntimeSkills(_0x101bf8){const _0x12d2d2=a78_0x3a60;return(await listRuntimeSkills({'appCode':_0x101bf8,'scope':_0x12d2d2(0x1e9)}))['personal'];}export async function listCompanyRuntimeSkills(_0xe9d31a){const _0xd566b8=a78_0x3a60;return(await listRuntimeSkills({'appCode':_0xe9d31a,'scope':_0xd566b8(0x1c6)}))['company'];}export async function listVisibleRuntimeSkills(_0x158b10){const _0x5645ee=a78_0x3a60;return(await listRuntimeSkills({'appCode':_0x158b10,'scope':'all'}))[_0x5645ee(0x156)];}export async function createPersonalRuntimeSkill(_0x4da9af,_0x1f875c,_0x102a7e={}){const _0x71e889=a78_0x3a60;return publishRuntimeSkill(_0x4da9af,_0x1f875c,{'visibility':_0x71e889(0x1ca),'confirmWarnings':_0x102a7e[_0x71e889(0x176)]});}export async function updatePersonalRuntimeSkill(_0x272583,_0x5251d8,_0x34f35,_0x130c3c={}){const _0x2be243=a78_0x3a60;return publishRuntimeSkill(_0x5251d8,{..._0x34f35,'skillCode':_0x34f35[_0x2be243(0x19c)]??_0x272583},{'visibility':_0x2be243(0x1ca),'confirmWarnings':_0x130c3c[_0x2be243(0x176)]});}export async function publishCompanyRuntimeSkill(_0x13e33b,_0xb6ae49,_0x5a0d9a={}){const _0x3ec8f7=a78_0x3a60;return publishRuntimeSkill(_0x13e33b,_0xb6ae49,{'visibility':_0x3ec8f7(0x1cb),'confirmWarnings':_0x5a0d9a[_0x3ec8f7(0x176)]});}export async function validateRuntimeSkillPublish(_0x30e816,_0x2e4a08,_0x33e4f3){const _0x260f0b=a78_0x3a60,_0x5dd38f=buildRuntimeSkillPublishForm(_0x2e4a08,_0x33e4f3[_0x260f0b(0x1f3)]),_0x2d3ace=await skillHubJsonRequest(_0x260f0b(0x179)+encodeURIComponent(_0x30e816)+_0x260f0b(0x1bd),{'method':_0x260f0b(0x15e),'body':_0x5dd38f});return assertJointDiagramAcknowledged(_0x2e4a08[_0x260f0b(0x1cc)],_0x2d3ace[_0x260f0b(0x1d3)],'validation'),{'valid':_0x2d3ace[_0x260f0b(0x185)]===!![],'errors':Array[_0x260f0b(0x14d)](_0x2d3ace[_0x260f0b(0x17d)])?_0x2d3ace[_0x260f0b(0x17d)]:[],'warnings':Array[_0x260f0b(0x14d)](_0x2d3ace[_0x260f0b(0x1aa)])?_0x2d3ace['warnings']:[],'resolvedSlug':_0x2d3ace['resolvedSlug'],'resolvedVersion':_0x2d3ace['resolvedVersion'],'diagramValidated':_0x2d3ace[_0x260f0b(0x1d3)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x28ab14,_0x2c996f,_0x2a528d,_0x311d2f,_0x4245a4){const _0x2c59e2=a78_0x3a60;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x28ab14,_0x2c996f,_0x2a528d,_0x2c59e2(0x187)),{'method':'POST','query':{'scope':_0x311d2f},'headers':{'Content-Type':_0x2c59e2(0x14f)},'body':JSON[_0x2c59e2(0x174)](_0x4245a4)});}export async function putRuntimeSkillVersionDiagram(_0x7a56b0,_0x3cd3f2,_0x2c1392,_0x14948d,_0x3c5380){const _0x4a4c1d=a78_0x3a60;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x7a56b0,_0x3cd3f2,_0x2c1392),{'method':'PUT','query':{'scope':_0x14948d},'headers':{'Content-Type':_0x4a4c1d(0x14f)},'body':JSON[_0x4a4c1d(0x174)](_0x3c5380)});}export async function getRuntimeSkillVersionDiagram(_0x948885,_0x148f28,_0x42b339,_0xb5e888){const _0x1a2098=a78_0x3a60,_0x50ee8b=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x948885,_0x148f28,_0x42b339),{'query':{'scope':_0xb5e888}});if(typeof _0x50ee8b[_0x1a2098(0x177)]!=='boolean')throw CliErrors[_0x1a2098(0x1e7)](_0x1a2098(0x1a5));const _0x1c6658=_0x50ee8b[_0x1a2098(0x160)];if(typeof _0x1c6658!==_0x1a2098(0x1bf)||!/^sha256:[0-9a-f]{64}$/[_0x1a2098(0x1ac)](_0x1c6658))throw CliErrors[_0x1a2098(0x1e7)]('Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.');const _0x193a75=_0x50ee8b['diagramRevision'];if(_0x50ee8b[_0x1a2098(0x177)]&&(!Number['isInteger'](_0x193a75)||Number(_0x193a75)<0x1))throw CliErrors[_0x1a2098(0x1e7)](_0x1a2098(0x155));if(!_0x50ee8b[_0x1a2098(0x177)]&&_0x193a75!==undefined&&_0x193a75!==null)throw CliErrors[_0x1a2098(0x1e7)]('Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.');const _0xe869b3=_0x50ee8b[_0x1a2098(0x177)]?Number(_0x193a75):null;return{..._0x50ee8b,'sourceFingerprint':_0x1c6658,'diagramRevision':_0xe869b3,'expectedDiagramRevision':_0xe869b3??0x0};}export async function downloadRuntimeSkillPackage(_0x14a0c3,_0x20c5e5,_0x467893,_0x223d4b){const _0x50b7ca=a78_0x3a60;void _0x14a0c3;const _0x4f64cf=_0x223d4b?_0x50b7ca(0x179)+encodeURIComponent(_0x467893)+'/'+encodeURIComponent(_0x20c5e5)+_0x50b7ca(0x154)+encodeURIComponent(_0x223d4b)+_0x50b7ca(0x164):_0x50b7ca(0x179)+encodeURIComponent(_0x467893)+'/'+encodeURIComponent(_0x20c5e5)+_0x50b7ca(0x164);return skillHubBinaryRequest(_0x4f64cf);}async function publishRuntimeSkill(_0x59beb6,_0x4d96a0,_0x57e8fc){const _0x35a7ec=a78_0x3a60,_0x4ff21c=buildRuntimeSkillPublishForm(_0x4d96a0,_0x57e8fc['visibility']),_0x2bd05a=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x59beb6)+_0x35a7ec(0x150),{'method':_0x35a7ec(0x15e),'query':{'confirmWarnings':_0x57e8fc[_0x35a7ec(0x176)]===!![]?!![]:undefined},'body':_0x4ff21c});return assertJointDiagramAcknowledged(_0x4d96a0[_0x35a7ec(0x1cc)],_0x2bd05a['diagramBound'],'publish'),{'appCode':_0x2bd05a[_0x35a7ec(0x1a6)]??_0x59beb6,'skillCode':_0x2bd05a[_0x35a7ec(0x1c0)]??_0x4d96a0[_0x35a7ec(0x19c)]??'','skillName':_0x4d96a0[_0x35a7ec(0x162)]??_0x2bd05a['slug']??_0x4d96a0[_0x35a7ec(0x19c)],'description':_0x4d96a0[_0x35a7ec(0x16c)],'scope':skillHubVisibilityToScope(_0x2bd05a['visibility']??_0x57e8fc[_0x35a7ec(0x1f3)])??_0x35a7ec(0x1e9),'version':_0x2bd05a['version']??_0x4d96a0[_0x35a7ec(0x1b7)],'tags':_0x4d96a0[_0x35a7ec(0x16f)],'content':_0x4d96a0[_0x35a7ec(0x158)],'diagramBound':_0x2bd05a['diagramBound']===!![]};}function assertJointDiagramAcknowledged(_0x118a11,_0x12e70a,_0x49a90e){const _0x39fb36=a78_0x3a60;if(!_0x118a11||_0x12e70a===!![])return;throw CliErrors['apiError'](_0x39fb36(0x1be)+_0x49a90e+'.',_0x39fb36(0x1f0));}function buildRuntimeSkillPublishForm(_0x1b3e3a,_0x30b66f){const _0x2ad7d3=a78_0x3a60,_0x268853=new FormData();return _0x268853[_0x2ad7d3(0x16a)]('file',runtimeSkillPackageFile(_0x1b3e3a)),_0x1b3e3a['skillName']?.[_0x2ad7d3(0x19e)]()&&_0x268853[_0x2ad7d3(0x16a)](_0x2ad7d3(0x18e),_0x1b3e3a[_0x2ad7d3(0x162)][_0x2ad7d3(0x19e)]()),_0x268853[_0x2ad7d3(0x16a)](_0x2ad7d3(0x1f3),_0x30b66f),_0x1b3e3a[_0x2ad7d3(0x1cc)]&&_0x268853[_0x2ad7d3(0x16a)](_0x2ad7d3(0x1cc),new Blob([JSON[_0x2ad7d3(0x174)](_0x1b3e3a[_0x2ad7d3(0x1cc)])],{'type':_0x2ad7d3(0x14f)})),_0x268853;}function runtimeSkillVersionDiagramPath(_0x4dae42,_0x51483a,_0x31ef36,_0x5a33f3=''){const _0x527025=a78_0x3a60;return _0x527025(0x179)+encodeURIComponent(_0x4dae42)+'/'+encodeURIComponent(_0x51483a)+_0x527025(0x154)+encodeURIComponent(_0x31ef36)+_0x527025(0x15c)+_0x5a33f3;}function runtimeSkillPackageFile(_0x58da39){const _0x45f58a=a78_0x3a60;if(!_0x58da39[_0x45f58a(0x195)])throw CliErrors[_0x45f58a(0x1c8)](_0x45f58a(0x175));const _0x473be0=Buffer['from'](_0x58da39['packageBase64'],_0x45f58a(0x1f4)),_0xb4a0eb=new Blob([_0x473be0],{'type':_0x45f58a(0x191)}),_0x27d461=(_0x58da39['skillCode']||'skill')+_0x45f58a(0x1a7);if(typeof File!==_0x45f58a(0x161))return new File([_0xb4a0eb],_0x27d461,{'type':_0x45f58a(0x191)});return _0xb4a0eb;}function normalizeSkillHubRuntimeListResponse(_0x36d201,_0xfa0d4f,_0x599479,_0x2391d1){const _0x29c740=a78_0x3a60,_0x1c0490=Array[_0x29c740(0x14d)](_0xfa0d4f)?_0xfa0d4f:Array['isArray'](_0xfa0d4f?.[_0x29c740(0x17f)])?_0xfa0d4f[_0x29c740(0x17f)]:[],_0x2c1062=_0x2391d1?.[_0x29c740(0x19e)](),_0x502726=_0x1c0490[_0x29c740(0x1e8)](_0x11bdb5=>!_0x2c1062||_0x11bdb5[_0x29c740(0x1c0)]===_0x2c1062)['map'](skillHubRuntimeItemToRuntimeSkill)[_0x29c740(0x1e8)](_0x42b433=>Boolean(_0x42b433)),_0x15f6a2=_0x502726['filter'](_0x597bd8=>_0x597bd8['scope']===_0x29c740(0x1e9)),_0x443350=_0x502726[_0x29c740(0x1e8)](_0x23e3f8=>_0x23e3f8['scope']===_0x29c740(0x1c6));return{'appCode':_0x36d201,'personal':_0x599479===_0x29c740(0x1c6)?[]:_0x15f6a2,'company':_0x599479===_0x29c740(0x1e9)?[]:_0x443350,'effective':buildEffectiveRuntimeSkills(_0x15f6a2,_0x443350,_0x599479)};}function skillHubRuntimeItemToRuntimeSkill(_0x4ed2e7){const _0x5b7c55=a78_0x3a60,_0x5b96a4=_0x4ed2e7['slug']?.[_0x5b7c55(0x19e)](),_0x34030b=skillHubVisibilityToScope(_0x4ed2e7[_0x5b7c55(0x1f3)]);if(!_0x5b96a4||!_0x34030b)return undefined;return{'id':_0x4ed2e7['id'],'appCode':_0x4ed2e7[_0x5b7c55(0x1a6)],'skillCode':_0x5b96a4,'skillName':_0x4ed2e7[_0x5b7c55(0x18e)]??_0x5b96a4,'description':_0x4ed2e7[_0x5b7c55(0x16d)],'scope':_0x34030b,'version':skillHubRuntimeItemVersion(_0x4ed2e7),'status':_0x4ed2e7['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x16f339){const _0x134f39=a78_0x3a60,_0x183d77=_0x16f339[_0x134f39(0x1c0)]?.[_0x134f39(0x19e)]();if(!_0x183d77)return undefined;return{'id':_0x16f339['id'],'appCode':_0x16f339[_0x134f39(0x1a6)],'skillCode':_0x183d77,'skillName':_0x16f339[_0x134f39(0x18e)]??_0x183d77,'description':_0x16f339['summary'],'example':_0x16f339[_0x134f39(0x1dd)],'scope':skillHubVisibilityToScope(_0x16f339['visibility'])??_0x16f339[_0x134f39(0x1f3)]?.[_0x134f39(0x1f7)](),'version':skillHubRuntimeItemVersion(_0x16f339),'status':_0x16f339['status']};}function skillHubVisibilityToScope(_0x519b84){const _0xb223a3=a78_0x3a60;if(_0x519b84==='PRIVATE')return _0xb223a3(0x1e9);if(_0x519b84==='NAMESPACE_ONLY')return _0xb223a3(0x1c6);return undefined;}function skillHubRuntimeItemVersion(_0x570589){const _0x2e335c=a78_0x3a60;return _0x570589['publishedVersion']?.[_0x2e335c(0x1b7)]??_0x570589[_0x2e335c(0x1d0)]?.[_0x2e335c(0x1b7)]??_0x570589[_0x2e335c(0x1d7)]?.[_0x2e335c(0x1b7)];}function buildEffectiveRuntimeSkills(_0x58bee9,_0x382a18,_0x417f58){const _0x1e9e26=a78_0x3a60;if(_0x417f58==='personal')return _0x58bee9;if(_0x417f58===_0x1e9e26(0x1c6))return _0x382a18;const _0x5daa53=new Map();for(const _0x244842 of _0x382a18){_0x5daa53[_0x1e9e26(0x16a)](_0x244842[_0x1e9e26(0x19c)],_0x244842);}for(const _0x41efc4 of _0x58bee9){_0x5daa53['set'](_0x41efc4[_0x1e9e26(0x19c)],_0x41efc4);}return Array[_0x1e9e26(0x1b4)](_0x5daa53[_0x1e9e26(0x19d)]());}function normalizeRuntimeSkillListResponse(_0x5d57aa,_0x9dc8ed){const _0x2480e2=a78_0x3a60;if(Array[_0x2480e2(0x14d)](_0x9dc8ed)){const _0x1615c0=_0x9dc8ed['filter'](_0x4b7c47=>_0x4b7c47[_0x2480e2(0x1c2)]===_0x2480e2(0x1e9)),_0x176f02=_0x9dc8ed[_0x2480e2(0x1e8)](_0x55f2a9=>_0x55f2a9[_0x2480e2(0x1c2)]===_0x2480e2(0x1c6));return{'appCode':_0x5d57aa,'personal':_0x1615c0,'company':_0x176f02,'effective':[..._0x176f02,..._0x1615c0]};}return{'appCode':_0x9dc8ed?.[_0x2480e2(0x167)]??_0x5d57aa,'personal':Array[_0x2480e2(0x14d)](_0x9dc8ed?.[_0x2480e2(0x1e9)])?_0x9dc8ed[_0x2480e2(0x1e9)]:[],'company':Array[_0x2480e2(0x14d)](_0x9dc8ed?.[_0x2480e2(0x1c6)])?_0x9dc8ed['company']:[],'effective':Array[_0x2480e2(0x14d)](_0x9dc8ed?.['effective'])?_0x9dc8ed['effective']:[]};}
@@ -1 +1 @@
1
- function a79_0x9e79(_0x2ccacb,_0x325ede){_0x2ccacb=_0x2ccacb-0xed;const _0x178634=a79_0x1786();let _0x9e7921=_0x178634[_0x2ccacb];return _0x9e7921;}(function(_0x4d12fc,_0x5c727f){const _0x31ba5d=a79_0x9e79,_0x1e7c20=_0x4d12fc();while(!![]){try{const _0x1733ec=parseInt(_0x31ba5d(0xf8))/0x1+-parseInt(_0x31ba5d(0xff))/0x2*(parseInt(_0x31ba5d(0xf5))/0x3)+parseInt(_0x31ba5d(0xf6))/0x4+-parseInt(_0x31ba5d(0xfb))/0x5+parseInt(_0x31ba5d(0xee))/0x6+parseInt(_0x31ba5d(0xf3))/0x7*(-parseInt(_0x31ba5d(0xef))/0x8)+parseInt(_0x31ba5d(0xf7))/0x9;if(_0x1733ec===_0x5c727f)break;else _0x1e7c20['push'](_0x1e7c20['shift']());}catch(_0x3ec3d9){_0x1e7c20['push'](_0x1e7c20['shift']());}}}(a79_0x1786,0x20f73));import{listDatasets}from'../core/api-client.js';function a79_0x1786(){const _0x1c129d=['261076tuMxYQ','entries','db-','26320uZVKAU','find','has','dbId','398054LGMrys','dbName','281838PMKzoA','2005144sNGlJR','map','set','get','7TVilik','dbtableConfig','3WUoBBs','573648JLBrKK','1246500ffFeKG'];a79_0x1786=function(){return _0x1c129d;};return a79_0x1786();}const cache=new Map();export async function listDatabases(_0x3c2893){const _0x578d55=a79_0x9e79;if(cache[_0x578d55(0xfd)](_0x3c2893))return cache[_0x578d55(0xf2)](_0x3c2893);const _0x273187=await listDatasets(_0x3c2893),_0x59dc71=new Map();for(const _0x3d6680 of _0x273187){const _0x3456ca=_0x3d6680[_0x578d55(0xf4)];_0x3456ca?.[_0x578d55(0xfe)]!=null&&_0x59dc71[_0x578d55(0xf1)](_0x3456ca[_0x578d55(0xfe)],_0x3456ca[_0x578d55(0xed)]??_0x578d55(0xfa)+_0x3456ca['dbId']);}const _0x5082d7=[..._0x59dc71[_0x578d55(0xf9)]()][_0x578d55(0xf0)](([_0x381e0e,_0x273d65])=>({'dbId':_0x381e0e,'dbName':_0x273d65}));return cache[_0x578d55(0xf1)](_0x3c2893,_0x5082d7),_0x5082d7;}export async function getDbName(_0x56163d,_0x5dd388){const _0x3340af=a79_0x9e79;try{const _0x50e43c=await listDatabases(_0x56163d);return _0x50e43c[_0x3340af(0xfc)](_0x34ed4c=>_0x34ed4c['dbId']===_0x5dd388)?.[_0x3340af(0xed)];}catch{return undefined;}}
1
+ (function(_0x5e6ca6,_0x1dc5d0){const _0x524bf1=a79_0x9954,_0x169c3d=_0x5e6ca6();while(!![]){try{const _0x133452=parseInt(_0x524bf1(0x10e))/0x1+-parseInt(_0x524bf1(0x118))/0x2+parseInt(_0x524bf1(0x117))/0x3*(parseInt(_0x524bf1(0x113))/0x4)+parseInt(_0x524bf1(0x11a))/0x5*(-parseInt(_0x524bf1(0x120))/0x6)+parseInt(_0x524bf1(0x11b))/0x7*(parseInt(_0x524bf1(0x110))/0x8)+parseInt(_0x524bf1(0x11e))/0x9+parseInt(_0x524bf1(0x11f))/0xa*(-parseInt(_0x524bf1(0x119))/0xb);if(_0x133452===_0x1dc5d0)break;else _0x169c3d['push'](_0x169c3d['shift']());}catch(_0x2e0f37){_0x169c3d['push'](_0x169c3d['shift']());}}}(a79_0x54a0,0xb727f));function a79_0x9954(_0x548f77,_0x50f220){_0x548f77=_0x548f77-0x10d;const _0x54a0b5=a79_0x54a0();let _0x995420=_0x54a0b5[_0x548f77];return _0x995420;}import{listDatasets}from'../core/api-client.js';const cache=new Map();function a79_0x54a0(){const _0x521508=['entries','map','get','13560FQlwug','535390cYZqCD','8833253sGdWaa','2643065UmNyDI','178556rqJtsg','db-','dbtableConfig','5981841KskgQv','10voTHUq','6CRmPpF','dbId','187441lmOPsh','set','128ipDxnC','has','find','964XLqmIk'];a79_0x54a0=function(){return _0x521508;};return a79_0x54a0();}export async function listDatabases(_0x169906){const _0xd0324=a79_0x9954;if(cache[_0xd0324(0x111)](_0x169906))return cache[_0xd0324(0x116)](_0x169906);const _0x1dc202=await listDatasets(_0x169906),_0x426ee7=new Map();for(const _0x5df075 of _0x1dc202){const _0x280e7e=_0x5df075[_0xd0324(0x11d)];_0x280e7e?.[_0xd0324(0x10d)]!=null&&_0x426ee7[_0xd0324(0x10f)](_0x280e7e[_0xd0324(0x10d)],_0x280e7e['dbName']??_0xd0324(0x11c)+_0x280e7e[_0xd0324(0x10d)]);}const _0x1dae51=[..._0x426ee7[_0xd0324(0x114)]()][_0xd0324(0x115)](([_0x16c53c,_0x537276])=>({'dbId':_0x16c53c,'dbName':_0x537276}));return cache[_0xd0324(0x10f)](_0x169906,_0x1dae51),_0x1dae51;}export async function getDbName(_0x36afeb,_0x126ce5){const _0x400f0f=a79_0x9954;try{const _0x502b10=await listDatabases(_0x36afeb);return _0x502b10[_0x400f0f(0x112)](_0x405468=>_0x405468['dbId']===_0x126ce5)?.['dbName'];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x77442a,_0x181460){const _0x563ec6=a80_0x4d40,_0x50f57a=_0x77442a();while(!![]){try{const _0x5953b2=-parseInt(_0x563ec6(0x6f))/0x1*(-parseInt(_0x563ec6(0x82))/0x2)+-parseInt(_0x563ec6(0x6e))/0x3*(-parseInt(_0x563ec6(0x71))/0x4)+parseInt(_0x563ec6(0x72))/0x5+-parseInt(_0x563ec6(0x90))/0x6+-parseInt(_0x563ec6(0x7a))/0x7+parseInt(_0x563ec6(0x70))/0x8+-parseInt(_0x563ec6(0x84))/0x9;if(_0x5953b2===_0x181460)break;else _0x50f57a['push'](_0x50f57a['shift']());}catch(_0x3b79ec){_0x50f57a['push'](_0x50f57a['shift']());}}}(a80_0x3c94,0x612ad));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';function a80_0x3c94(){const _0x27cd39=['execute','models','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','appCode','640926utMGxj',']\x20must\x20be\x20an\x20object.','data\x20aggregate\x20--params.aggregate[','getOne','trim','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','57945xAKrmC','152hqkUZX','3518800hcKQQz','44XbovHi','1509070KdXTGU','batchCreate','env','accessKey','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','aggregate','update','map','1896895WkAZbl','\x22.\x20','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','bff','authMode','dataset_','object','6602DyHLKE','field','6120702PApaBu','string','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','column','validation','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','isArray'];a80_0x3c94=function(){return _0x27cd39;};return a80_0x3c94();}let _client,restoreResponseJsonParser;export function initSdkClient(_0x4eeacf){const _0x27392c=a80_0x4d40;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x4eeacf[_0x27392c(0x8f)],'env':_0x4eeacf[_0x27392c(0x74)],'authMode':_0x4eeacf[_0x27392c(0x7f)],..._0x4eeacf[_0x27392c(0x75)]?{'accessKey':_0x4eeacf[_0x27392c(0x75)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}catch(_0x4044f8){clearSdkClient();throw _0x4044f8;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function a80_0x4d40(_0x3985da,_0x5e26dc){_0x3985da=_0x3985da-0x6c;const _0x3c9440=a80_0x3c94();let _0x4d40bd=_0x3c9440[_0x3985da];return _0x4d40bd;}function ensureClient(){const _0x568171=a80_0x4d40;if(!_client)throw new Error(_0x568171(0x7c));return _client;}function normalizeAggregateParams(_0x564867){const _0xa838da=a80_0x4d40,_0x53505a=_0x564867[_0xa838da(0x77)];if(_0x53505a===undefined)return _0x564867;if(!Array[_0xa838da(0x8b)](_0x53505a))throw CliErrors[_0xa838da(0x89)](_0xa838da(0x86));return{..._0x564867,'aggregate':_0x53505a[_0xa838da(0x79)]((_0x78fbc8,_0x30c702)=>{const _0x491b16=_0xa838da;if(!_0x78fbc8||typeof _0x78fbc8!==_0x491b16(0x81)||Array[_0x491b16(0x8b)](_0x78fbc8))throw CliErrors[_0x491b16(0x89)](_0x491b16(0x92)+_0x30c702+_0x491b16(0x91));const _0x339d99=_0x78fbc8[_0x491b16(0x88)]??_0x78fbc8[_0x491b16(0x83)];if(typeof _0x339d99!==_0x491b16(0x85)||_0x339d99[_0x491b16(0x6c)]()==='')throw CliErrors[_0x491b16(0x89)](_0x491b16(0x92)+_0x30c702+_0x491b16(0x87));const _0x342f5a={..._0x78fbc8,'column':_0x339d99};return delete _0x342f5a[_0x491b16(0x83)],_0x342f5a;})};}export async function executeData(_0x2fd385,_0x5b0a8f,_0x4f3309){const _0xfff2db=a80_0x4d40,_0x13b6b3=ensureClient(),_0x5e9719=_0xfff2db(0x80)+_0x2fd385,_0x55f022=_0x13b6b3[_0xfff2db(0x8d)][_0x5e9719];if(!_0x55f022||typeof _0x55f022[_0x5b0a8f]!=='function')throw new Error(_0xfff2db(0x8a)+_0x5b0a8f+_0xfff2db(0x7b)+_0xfff2db(0x6d));if(_0x5b0a8f==='batchCreate')return _0x55f022[_0xfff2db(0x73)](parseBatchCreateItemsFromParams(_0x4f3309));const _0x365776=_0x4f3309!==undefined&&_0x4f3309!==null&&!Array[_0xfff2db(0x8b)](_0x4f3309)?_0x4f3309:{};switch(_0x5b0a8f){case _0xfff2db(0x93):{const _0x17aea0=_0x365776['id'];if(_0x17aea0===undefined||_0x17aea0===null)throw new Error(_0xfff2db(0x8e));return _0x55f022[_0xfff2db(0x93)](_0x17aea0);}case _0xfff2db(0x78):{const {id:_0x210c56,..._0x17c9bd}=_0x365776;if(_0x210c56===undefined||_0x210c56===null)throw new Error(_0xfff2db(0x76));return _0x55f022[_0xfff2db(0x78)](_0x210c56,_0x17c9bd);}case'delete':{const _0x345438=_0x365776['id'];if(_0x345438===undefined||_0x345438===null)throw new Error(_0xfff2db(0x7d));return _0x55f022['delete'](_0x345438);}case _0xfff2db(0x77):return _0x55f022[_0xfff2db(0x77)](normalizeAggregateParams(_0x365776));default:return _0x55f022[_0x5b0a8f](_0x365776);}}export async function executeSdkSql(_0x584e6a,_0x511d4c){const _0x2b7765=a80_0x4d40,_0x9be71c=ensureClient();return _0x9be71c['sql'][_0x2b7765(0x8c)]({'sqlCode':_0x584e6a,'params':_0x511d4c});}export async function executeSdkBff(_0x1f8ad5,_0x300e77){const _0x27be16=a80_0x4d40,_0x5d2070=ensureClient();return _0x5d2070[_0x27be16(0x7e)][_0x27be16(0x8c)]({'scriptName':_0x1f8ad5,'params':_0x300e77});}
1
+ (function(_0x3a70cb,_0x42605e){const _0x576994=a80_0x1c45,_0x55b36c=_0x3a70cb();while(!![]){try{const _0x499bee=parseInt(_0x576994(0x164))/0x1*(parseInt(_0x576994(0x169))/0x2)+-parseInt(_0x576994(0x15a))/0x3+parseInt(_0x576994(0x178))/0x4+-parseInt(_0x576994(0x166))/0x5+parseInt(_0x576994(0x16c))/0x6+parseInt(_0x576994(0x17d))/0x7*(-parseInt(_0x576994(0x15c))/0x8)+-parseInt(_0x576994(0x176))/0x9;if(_0x499bee===_0x42605e)break;else _0x55b36c['push'](_0x55b36c['shift']());}catch(_0x5de8e5){_0x55b36c['push'](_0x55b36c['shift']());}}}(a80_0x5d46,0xcacbd));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x33629f){const _0xe967f1=a80_0x1c45;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x33629f[_0xe967f1(0x16b)],'env':_0x33629f[_0xe967f1(0x175)],'authMode':_0x33629f[_0xe967f1(0x174)],..._0x33629f['accessKey']?{'accessKey':_0x33629f['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0xe967f1(0x15d)]}}});}catch(_0x5ac682){clearSdkClient();throw _0x5ac682;}}function a80_0x5d46(){const _0x3725ff=['240182bgxmds','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','appCode','668922usbDqr','data\x20aggregate\x20--params.aggregate[','\x22.\x20','isArray','batchCreate','aggregate','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','execute','authMode','env','3980853HZElvO','validation','6413892sbaqvP','models','map','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','object','7aAiDPP','224997MtOBNm','update','1195464tfWaow','invokeSource',']\x20must\x20be\x20an\x20object.','field','bff','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','dataset_','delete','6DoqClw','function','4690520pkeGRX','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','string'];a80_0x5d46=function(){return _0x3725ff;};return a80_0x5d46();}function a80_0x1c45(_0x3faa2a,_0x4fb0f8){_0x3faa2a=_0x3faa2a-0x15a;const _0x5d46f5=a80_0x5d46();let _0x1c458a=_0x5d46f5[_0x3faa2a];return _0x1c458a;}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0x4b2b82=a80_0x1c45;if(!_client)throw new Error(_0x4b2b82(0x167));return _client;}function normalizeAggregateParams(_0x246027){const _0xdcef09=a80_0x1c45,_0x5c2fc4=_0x246027['aggregate'];if(_0x5c2fc4===undefined)return _0x246027;if(!Array['isArray'](_0x5c2fc4))throw CliErrors[_0xdcef09(0x177)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x246027,'aggregate':_0x5c2fc4[_0xdcef09(0x17a)]((_0x335af1,_0xbc0f58)=>{const _0x4f09a3=_0xdcef09;if(!_0x335af1||typeof _0x335af1!==_0x4f09a3(0x17c)||Array[_0x4f09a3(0x16f)](_0x335af1))throw CliErrors[_0x4f09a3(0x177)](_0x4f09a3(0x16d)+_0xbc0f58+_0x4f09a3(0x15e));const _0x382610=_0x335af1['column']??_0x335af1[_0x4f09a3(0x15f)];if(typeof _0x382610!==_0x4f09a3(0x168)||_0x382610['trim']()==='')throw CliErrors[_0x4f09a3(0x177)]('data\x20aggregate\x20--params.aggregate['+_0xbc0f58+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x5e6b58={..._0x335af1,'column':_0x382610};return delete _0x5e6b58[_0x4f09a3(0x15f)],_0x5e6b58;})};}export async function executeData(_0x5911c2,_0x3c9981,_0x2955c2){const _0x1f4ca7=a80_0x1c45,_0x1e6fd5=ensureClient(),_0x19aea7=_0x1f4ca7(0x162)+_0x5911c2,_0x2f8d8d=_0x1e6fd5[_0x1f4ca7(0x179)][_0x19aea7];if(!_0x2f8d8d||typeof _0x2f8d8d[_0x3c9981]!==_0x1f4ca7(0x165))throw new Error(_0x1f4ca7(0x16a)+_0x3c9981+_0x1f4ca7(0x16e)+_0x1f4ca7(0x161));if(_0x3c9981===_0x1f4ca7(0x170))return _0x2f8d8d[_0x1f4ca7(0x170)](parseBatchCreateItemsFromParams(_0x2955c2));const _0x5f1125=_0x2955c2!==undefined&&_0x2955c2!==null&&!Array[_0x1f4ca7(0x16f)](_0x2955c2)?_0x2955c2:{};switch(_0x3c9981){case'getOne':{const _0x502124=_0x5f1125['id'];if(_0x502124===undefined||_0x502124===null)throw new Error(_0x1f4ca7(0x172));return _0x2f8d8d['getOne'](_0x502124);}case _0x1f4ca7(0x15b):{const {id:_0x562ae8,..._0x1fab4b}=_0x5f1125;if(_0x562ae8===undefined||_0x562ae8===null)throw new Error(_0x1f4ca7(0x17b));return _0x2f8d8d['update'](_0x562ae8,_0x1fab4b);}case'delete':{const _0x206ad7=_0x5f1125['id'];if(_0x206ad7===undefined||_0x206ad7===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x2f8d8d[_0x1f4ca7(0x163)](_0x206ad7);}case _0x1f4ca7(0x171):return _0x2f8d8d[_0x1f4ca7(0x171)](normalizeAggregateParams(_0x5f1125));default:return _0x2f8d8d[_0x3c9981](_0x5f1125);}}export async function executeSdkSql(_0x440efe,_0x4a047c){const _0x55a58d=ensureClient();return _0x55a58d['sql']['execute']({'sqlCode':_0x440efe,'params':_0x4a047c});}export async function executeSdkBff(_0x5784da,_0x7637ac){const _0x4bddb7=a80_0x1c45,_0x15de74=ensureClient();return _0x15de74[_0x4bddb7(0x160)][_0x4bddb7(0x173)]({'scriptName':_0x5784da,'params':_0x7637ac});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a81_0xcec7a9=a81_0xc72b;function a81_0x36cc(){const _0x4dbf9c=['2uIWHxZ','\x20file.','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','newConfigFileName','\x20auth\x20login`.','Configure\x20accessKey\x20in\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20','27CjTyyA','1713383XAPrEx','247614hDjJoz','608161HKuiTB','1469412xaJKEU','1913290xLkEjQ','33qHPAUu','2910YMuAHu','4098UZWibz','20qasBtZ','4505000CbbcgQ'];a81_0x36cc=function(){return _0x4dbf9c;};return a81_0x36cc();}(function(_0x5cd0f5,_0x5c3754){const _0x1b0b6d=a81_0xc72b,_0x1b6d68=_0x5cd0f5();while(!![]){try{const _0x425fc3=parseInt(_0x1b0b6d(0xb3))/0x1*(parseInt(_0x1b0b6d(0xbb))/0x2)+-parseInt(_0x1b0b6d(0xb2))/0x3*(parseInt(_0x1b0b6d(0xb9))/0x4)+parseInt(_0x1b0b6d(0xb7))/0x5*(-parseInt(_0x1b0b6d(0xb8))/0x6)+-parseInt(_0x1b0b6d(0xb1))/0x7+parseInt(_0x1b0b6d(0xba))/0x8+parseInt(_0x1b0b6d(0xb0))/0x9*(parseInt(_0x1b0b6d(0xb5))/0xa)+-parseInt(_0x1b0b6d(0xb6))/0xb*(parseInt(_0x1b0b6d(0xb4))/0xc);if(_0x425fc3===_0x5c3754)break;else _0x1b6d68['push'](_0x1b6d68['shift']());}catch(_0x476543){_0x1b6d68['push'](_0x1b6d68['shift']());}}}(a81_0x36cc,0x4ed8b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a81_0xc72b(_0xafa097,_0x506906){_0xafa097=_0xafa097-0xad;const _0x36cc14=a81_0x36cc();let _0xc72b70=_0x36cc14[_0xafa097];return _0xc72b70;}import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a81_0xcec7a9(0xae)+PRODUCT_CONFIG[a81_0xcec7a9(0xbe)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a81_0xcec7a9(0xad),'configMissingHint':a81_0xcec7a9(0xaf)+PRODUCT_CONFIG[a81_0xcec7a9(0xbe)]+'.','notInProjectHint':a81_0xcec7a9(0xbd)+PRODUCT_CONFIG['newConfigFileName']+a81_0xcec7a9(0xbc)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x494ce2,_0x3641d5)=>new CliError('rate_limited',0x2,_0x494ce2,_0x3641d5)};
1
+ const a81_0x464441=a81_0x12fd;function a81_0x12fd(_0x3cce3d,_0xf25d4f){_0x3cce3d=_0x3cce3d-0x136;const _0x537e31=a81_0x537e();let _0x12fd9e=_0x537e31[_0x3cce3d];return _0x12fd9e;}(function(_0x5a7781,_0x423534){const _0x1ea8f6=a81_0x12fd,_0x2da49c=_0x5a7781();while(!![]){try{const _0x32e1bf=parseInt(_0x1ea8f6(0x13e))/0x1*(parseInt(_0x1ea8f6(0x13a))/0x2)+parseInt(_0x1ea8f6(0x13c))/0x3*(parseInt(_0x1ea8f6(0x136))/0x4)+parseInt(_0x1ea8f6(0x138))/0x5*(parseInt(_0x1ea8f6(0x137))/0x6)+-parseInt(_0x1ea8f6(0x144))/0x7*(-parseInt(_0x1ea8f6(0x13f))/0x8)+-parseInt(_0x1ea8f6(0x142))/0x9+-parseInt(_0x1ea8f6(0x146))/0xa*(-parseInt(_0x1ea8f6(0x145))/0xb)+parseInt(_0x1ea8f6(0x140))/0xc*(-parseInt(_0x1ea8f6(0x143))/0xd);if(_0x32e1bf===_0x423534)break;else _0x2da49c['push'](_0x2da49c['shift']());}catch(_0x56d44d){_0x2da49c['push'](_0x2da49c['shift']());}}}(a81_0x537e,0x583ad));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a81_0x464441(0x139)+PRODUCT_CONFIG[a81_0x464441(0x13d)]+a81_0x464441(0x141)+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a81_0x464441(0x13d)]+'.','notInProjectHint':a81_0x464441(0x13b)+PRODUCT_CONFIG[a81_0x464441(0x13d)]+'\x20file.'});export const CliErrors={...baseCliErrors,'rateLimited':(_0x3b85f7,_0x5ea4c5)=>new CliError(a81_0x464441(0x147),0x2,_0x3b85f7,_0x5ea4c5)};function a81_0x537e(){const _0x3803de=['44010lIVIgy','rate_limited','180248JdGize','42uVJdfX','118595SJthYc','Configure\x20accessKey\x20in\x20','56348mwEUmg','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','48mlESBR','newConfigFileName','11FyjJzw','2196736YFvcqX','14775204OtxAvE','\x20or\x20run\x20`','6490764lWEtXf','13bIIJAy','14NXYoKr','1419tcsTru'];a81_0x537e=function(){return _0x3803de;};return a81_0x537e();}
@@ -1 +1 @@
1
- function a82_0x31ec(_0x555601,_0x26e7cc){_0x555601=_0x555601-0x19d;var _0xaa3851=a82_0xaa38();var _0x31ecc1=_0xaa3851[_0x555601];return _0x31ecc1;}function a82_0xaa38(){var _0xbffda5=['22555yzJtXR','19407oOPTNi','16vhxkzb','43630grFYIy','117209HylUTg','171717nZQshu','5803356TeBdIK','11cmrWZX','4465672EfEuYF','24AxOcda','9tSuNNx','32gdYsvQ'];a82_0xaa38=function(){return _0xbffda5;};return a82_0xaa38();}(function(_0x209a16,_0x7ea1b6){var _0x340e95=a82_0x31ec,_0x571a00=_0x209a16();while(!![]){try{var _0x4f9c62=parseInt(_0x340e95(0x1a6))/0x1+-parseInt(_0x340e95(0x1a4))/0x2*(-parseInt(_0x340e95(0x1a3))/0x3)+-parseInt(_0x340e95(0x1a1))/0x4*(parseInt(_0x340e95(0x1a2))/0x5)+parseInt(_0x340e95(0x19f))/0x6*(parseInt(_0x340e95(0x1a7))/0x7)+parseInt(_0x340e95(0x19e))/0x8+parseInt(_0x340e95(0x1a0))/0x9*(-parseInt(_0x340e95(0x1a5))/0xa)+-parseInt(_0x340e95(0x19d))/0xb*(parseInt(_0x340e95(0x1a8))/0xc);if(_0x4f9c62===_0x7ea1b6)break;else _0x571a00['push'](_0x571a00['shift']());}catch(_0x589d32){_0x571a00['push'](_0x571a00['shift']());}}}(a82_0xaa38,0x498ae));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a82_0x5047d3}from'@lovrabet/cli-framework';export function buildAllFlags(_0xd0436){return a82_0x5047d3(_0xd0436,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x1f61e6,_0xcf1885){var _0x23f131=a82_0x2cd8,_0x10e1e1=_0x1f61e6();while(!![]){try{var _0x72e989=-parseInt(_0x23f131(0xe0))/0x1+-parseInt(_0x23f131(0xe7))/0x2*(parseInt(_0x23f131(0xe3))/0x3)+-parseInt(_0x23f131(0xe4))/0x4+-parseInt(_0x23f131(0xe5))/0x5+parseInt(_0x23f131(0xe6))/0x6+-parseInt(_0x23f131(0xdf))/0x7*(parseInt(_0x23f131(0xe2))/0x8)+parseInt(_0x23f131(0xe1))/0x9;if(_0x72e989===_0xcf1885)break;else _0x10e1e1['push'](_0x10e1e1['shift']());}catch(_0x2a9371){_0x10e1e1['push'](_0x10e1e1['shift']());}}}(a82_0x5da3,0x325c5));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a82_0x1b545b}from'@lovrabet/cli-framework';function a82_0x2cd8(_0x1720c8,_0x27e440){_0x1720c8=_0x1720c8-0xdf;var _0x5da3f5=a82_0x5da3();var _0x2cd86b=_0x5da3f5[_0x1720c8];return _0x2cd86b;}export function buildAllFlags(_0x311c83){return a82_0x1b545b(_0x311c83,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a82_0x5da3(){var _0x329cec=['119cDVoNG','78239zGlLcu','8098317FNjCrP','70264oXgVap','35652znPQNN','48128osuRvg','1804285FADyQz','1152714lmuzwd','48JsYfml'];a82_0x5da3=function(){return _0x329cec;};return a82_0x5da3();}
@@ -1 +1 @@
1
- function a83_0x80ad(_0x9d0f3a,_0x11117f){_0x9d0f3a=_0x9d0f3a-0x1ed;const _0x34962f=a83_0x3496();let _0x80ad22=_0x34962f[_0x9d0f3a];return _0x80ad22;}(function(_0x30286a,_0x3dcece){const _0x1f2c84=a83_0x80ad,_0x34e885=_0x30286a();while(!![]){try{const _0x124a34=-parseInt(_0x1f2c84(0x1ed))/0x1*(-parseInt(_0x1f2c84(0x1f6))/0x2)+parseInt(_0x1f2c84(0x1f0))/0x3+parseInt(_0x1f2c84(0x1f2))/0x4+parseInt(_0x1f2c84(0x1f4))/0x5+-parseInt(_0x1f2c84(0x1ef))/0x6*(parseInt(_0x1f2c84(0x1f8))/0x7)+-parseInt(_0x1f2c84(0x1f5))/0x8*(-parseInt(_0x1f2c84(0x1ee))/0x9)+-parseInt(_0x1f2c84(0x1f1))/0xa;if(_0x124a34===_0x3dcece)break;else _0x34e885['push'](_0x34e885['shift']());}catch(_0x2ba11a){_0x34e885['push'](_0x34e885['shift']());}}}(a83_0x3496,0xa8a2a));export function dryRun(_0x3b7936,_0x4e02b3){const _0x34fd3a={'method':_0x3b7936,'url':_0x4e02b3},_0x46f895={'body'(_0x3d29c0){const _0x59d2bb=a83_0x80ad;return _0x34fd3a[_0x59d2bb(0x1f3)]=_0x3d29c0,_0x46f895;},'description'(_0x49d12b){const _0x59a991=a83_0x80ad;return _0x34fd3a[_0x59a991(0x1f7)]=_0x49d12b,_0x46f895;},'build'(){return{..._0x34fd3a};}};return _0x46f895;}function a83_0x3496(){const _0x35f8cb=['832805McmcFW','17320xNcSxi','10RdiBrg','description','70fxHAWf','217153KRFPLT','1665kxtQlp','101586ZqhrzL','953631EAyUMP','16929930vQvSSn','2329220TcqqHE','body'];a83_0x3496=function(){return _0x35f8cb;};return a83_0x3496();}
1
+ (function(_0x24499f,_0x30f0d7){const _0x2cdd69=a83_0xfabd,_0x5d3aa3=_0x24499f();while(!![]){try{const _0x5b6fed=-parseInt(_0x2cdd69(0xac))/0x1*(parseInt(_0x2cdd69(0xa9))/0x2)+parseInt(_0x2cdd69(0xab))/0x3+parseInt(_0x2cdd69(0xa7))/0x4+parseInt(_0x2cdd69(0xa6))/0x5+-parseInt(_0x2cdd69(0xb1))/0x6*(parseInt(_0x2cdd69(0xa8))/0x7)+parseInt(_0x2cdd69(0xad))/0x8+parseInt(_0x2cdd69(0xaa))/0x9*(-parseInt(_0x2cdd69(0xaf))/0xa);if(_0x5b6fed===_0x30f0d7)break;else _0x5d3aa3['push'](_0x5d3aa3['shift']());}catch(_0xa1fe51){_0x5d3aa3['push'](_0x5d3aa3['shift']());}}}(a83_0x1b1e,0xe72a4));function a83_0x1b1e(){const _0x3be706=['7484409NeJzzi','5160855sVcZxH','1056042YEJlRe','6769032VwMaGE','body','20yKEQWO','description','6329574DguHvy','7389285iTlAdh','2707016xgkafE','7rNxRvv','2TUldBr'];a83_0x1b1e=function(){return _0x3be706;};return a83_0x1b1e();}function a83_0xfabd(_0x200239,_0x196906){_0x200239=_0x200239-0xa6;const _0x1b1eaa=a83_0x1b1e();let _0xfabdfe=_0x1b1eaa[_0x200239];return _0xfabdfe;}export function dryRun(_0x2fbacd,_0x437cc2){const _0x58bd38={'method':_0x2fbacd,'url':_0x437cc2},_0x2813fb={'body'(_0x47a41c){const _0x31b4ff=a83_0xfabd;return _0x58bd38[_0x31b4ff(0xae)]=_0x47a41c,_0x2813fb;},'description'(_0x5bb1bd){const _0x3e93e2=a83_0xfabd;return _0x58bd38[_0x3e93e2(0xb0)]=_0x5bb1bd,_0x2813fb;},'build'(){return{..._0x58bd38};}};return _0x2813fb;}
@@ -1 +1 @@
1
- function a84_0x4826(_0xfcc96a,_0x577d2d){_0xfcc96a=_0xfcc96a-0xd9;const _0x37d14d=a84_0x37d1();let _0x48265d=_0x37d14d[_0xfcc96a];return _0x48265d;}const a84_0x23529d=a84_0x4826;(function(_0x1cd378,_0x16a486){const _0x1f4c9f=a84_0x4826,_0xa37a08=_0x1cd378();while(!![]){try{const _0x1b4074=-parseInt(_0x1f4c9f(0xdd))/0x1*(parseInt(_0x1f4c9f(0xda))/0x2)+-parseInt(_0x1f4c9f(0xdc))/0x3*(-parseInt(_0x1f4c9f(0xd9))/0x4)+-parseInt(_0x1f4c9f(0xe4))/0x5+parseInt(_0x1f4c9f(0xe2))/0x6*(-parseInt(_0x1f4c9f(0xde))/0x7)+-parseInt(_0x1f4c9f(0xdf))/0x8+parseInt(_0x1f4c9f(0xe3))/0x9+parseInt(_0x1f4c9f(0xe0))/0xa;if(_0x1b4074===_0x16a486)break;else _0xa37a08['push'](_0xa37a08['shift']());}catch(_0x1cf1db){_0xa37a08['push'](_0xa37a08['shift']());}}}(a84_0x37d1,0xf2fc6));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a84_0x37d1(){const _0x583c00=['292649yMKOdS','10438032xUovmR','24905810ISDHJC','validateFlags','30HxzDng','4227264XbpZcc','631280FMcMTF','32AqSRHw','1158wMlRxS','parseFlags','249423ZtGCwH','1710thOnGZ'];a84_0x37d1=function(){return _0x583c00;};return a84_0x37d1();}export const parseFlags=helpers[a84_0x23529d(0xdb)];export const validateFlags=helpers[a84_0x23529d(0xe1)];
1
+ function a84_0x2cb6(){const _0x34c4eb=['733044GiGNRX','6104592qgSVOe','parseFlags','21dZVLwS','5949095VxjTQn','validateFlags','3522928OFtukH','459988nWgnGu','2640465ciAJKI','7CCSCZU','1582349xUOIIq'];a84_0x2cb6=function(){return _0x34c4eb;};return a84_0x2cb6();}const a84_0x3b0f91=a84_0x4660;(function(_0x331ba6,_0x105629){const _0x22da84=a84_0x4660,_0x172ecc=_0x331ba6();while(!![]){try{const _0x1823f1=-parseInt(_0x22da84(0x14c))/0x1+-parseInt(_0x22da84(0x149))/0x2+-parseInt(_0x22da84(0x145))/0x3*(-parseInt(_0x22da84(0x14d))/0x4)+parseInt(_0x22da84(0x146))/0x5+parseInt(_0x22da84(0x14e))/0x6+-parseInt(_0x22da84(0x14b))/0x7*(parseInt(_0x22da84(0x148))/0x8)+-parseInt(_0x22da84(0x14a))/0x9;if(_0x1823f1===_0x105629)break;else _0x172ecc['push'](_0x172ecc['shift']());}catch(_0x3528d2){_0x172ecc['push'](_0x172ecc['shift']());}}}(a84_0x2cb6,0xe6770));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a84_0x4660(_0xc77b93,_0x4d80bd){_0xc77b93=_0xc77b93-0x144;const _0x2cb61e=a84_0x2cb6();let _0x4660fb=_0x2cb61e[_0xc77b93];return _0x4660fb;}export const parseFlags=helpers[a84_0x3b0f91(0x144)];export const validateFlags=helpers[a84_0x3b0f91(0x147)];
@@ -1 +1 @@
1
- (function(_0x19038e,_0x195bfb){const _0x239c0f=a85_0x29c1,_0x708bbb=_0x19038e();while(!![]){try{const _0x3e8515=parseInt(_0x239c0f(0xa4))/0x1+-parseInt(_0x239c0f(0xac))/0x2+-parseInt(_0x239c0f(0xaa))/0x3+parseInt(_0x239c0f(0xa3))/0x4+-parseInt(_0x239c0f(0x9e))/0x5+parseInt(_0x239c0f(0xa9))/0x6*(-parseInt(_0x239c0f(0xa2))/0x7)+parseInt(_0x239c0f(0xa5))/0x8;if(_0x3e8515===_0x195bfb)break;else _0x708bbb['push'](_0x708bbb['shift']());}catch(_0x651555){_0x708bbb['push'](_0x708bbb['shift']());}}}(a85_0x4b2e,0xeb2af));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x1c17df=a85_0x29c1;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x1c17df(0xa6)+PRODUCT_CONFIG[_0x1c17df(0xad)]+_0x1c17df(0xae)});}function a85_0x4b2e(){const _0x3c3146=['Requires\x20appcode\x20(set\x20via\x20','generateServiceHelp','has','36sNpmNd','1335441bxfpfV','generateFullHelp','3226546lSZxvX','newConfigFileName','\x20or\x20--appcode).','333655lhmEfd','generateCommandHelp','service','filter','463134krZClc','6316284jkRuGX','582582CUFuQy','10589736HeKspq'];a85_0x4b2e=function(){return _0x3c3146;};return a85_0x4b2e();}function a85_0x29c1(_0x2b8756,_0x1ea5d2){_0x2b8756=_0x2b8756-0x9e;const _0x4b2e0c=a85_0x4b2e();let _0x29c15e=_0x4b2e0c[_0x2b8756];return _0x29c15e;}export function generateCommandHelp(_0x447b8a){const _0x5e3b6e=a85_0x29c1;return createGenerators()[_0x5e3b6e(0x9f)](_0x447b8a);}export function generateServiceHelp(_0x594856){const _0x537eb1=a85_0x29c1;return createGenerators()[_0x537eb1(0xa7)](_0x594856);}export function generateFullHelp(){const _0x514de9=a85_0x29c1;return createGenerators()[_0x514de9(0xab)]();}function getAnyServiceEntry(_0x40083d){const _0x25bccd=getServiceEntry(_0x40083d);if(_0x25bccd)return _0x25bccd;try{return getDynamicServiceEntry(_0x40083d);}catch{return undefined;}}function getAnyServiceDefinitions(_0x5614cd){const _0x4a499a=serviceGroups['get'](_0x5614cd);if(_0x4a499a)return _0x4a499a;try{return getDynamicServiceDefinitions(_0x5614cd);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x2b55c9=a85_0x29c1,_0x405d9e=new Set(serviceRegistry['map'](_0x54edb4=>_0x54edb4['service']));try{return listDynamicServiceEntries()[_0x2b55c9(0xa1)](_0x3bc8fc=>!_0x405d9e[_0x2b55c9(0xa8)](_0x3bc8fc[_0x2b55c9(0xa0)]));}catch{return[];}}
1
+ function a85_0x510b(_0x1d7374,_0xa2586e){_0x1d7374=_0x1d7374-0x1b2;const _0x1b0c68=a85_0x1b0c();let _0x510be1=_0x1b0c68[_0x1d7374];return _0x510be1;}(function(_0x1932e7,_0x5f63dd){const _0x39c97d=a85_0x510b,_0x4601e8=_0x1932e7();while(!![]){try{const _0x3d81dd=-parseInt(_0x39c97d(0x1b7))/0x1+-parseInt(_0x39c97d(0x1c4))/0x2+-parseInt(_0x39c97d(0x1b3))/0x3+parseInt(_0x39c97d(0x1b8))/0x4*(-parseInt(_0x39c97d(0x1bf))/0x5)+parseInt(_0x39c97d(0x1c0))/0x6+-parseInt(_0x39c97d(0x1c2))/0x7+-parseInt(_0x39c97d(0x1bc))/0x8*(-parseInt(_0x39c97d(0x1c3))/0x9);if(_0x3d81dd===_0x5f63dd)break;else _0x4601e8['push'](_0x4601e8['shift']());}catch(_0x59241d){_0x4601e8['push'](_0x4601e8['shift']());}}}(a85_0x1b0c,0x5512a));import{createHelpGenerators}from'@lovrabet/cli-framework';function a85_0x1b0c(){const _0x13a680=['589610cJrNYG','45060tzwgrO','generateServiceHelp','generateFullHelp','has','8ZjAWaJ','Requires\x20appcode\x20(set\x20via\x20','filter','145ZmLsvZ','1133184HGkZuu','get','2246552OHIPTL','17990685bXeZTQ','428604BNQLCC','\x20or\x20--appcode).','1163514XRYDDN','generateCommandHelp','service','newConfigFileName'];a85_0x1b0c=function(){return _0x13a680;};return a85_0x1b0c();}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 _0x57d593=a85_0x510b;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x57d593(0x1bd)+PRODUCT_CONFIG[_0x57d593(0x1b6)]+_0x57d593(0x1b2)});}export function generateCommandHelp(_0x1f0229){const _0x21de59=a85_0x510b;return createGenerators()[_0x21de59(0x1b4)](_0x1f0229);}export function generateServiceHelp(_0x4446ab){const _0x54afd8=a85_0x510b;return createGenerators()[_0x54afd8(0x1b9)](_0x4446ab);}export function generateFullHelp(){const _0x5bc226=a85_0x510b;return createGenerators()[_0x5bc226(0x1ba)]();}function getAnyServiceEntry(_0x552e66){const _0x45d939=getServiceEntry(_0x552e66);if(_0x45d939)return _0x45d939;try{return getDynamicServiceEntry(_0x552e66);}catch{return undefined;}}function getAnyServiceDefinitions(_0x5046f2){const _0x5d0856=a85_0x510b,_0xc49b6e=serviceGroups[_0x5d0856(0x1c1)](_0x5046f2);if(_0xc49b6e)return _0xc49b6e;try{return getDynamicServiceDefinitions(_0x5046f2);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x33b7ad=a85_0x510b,_0x2d242b=new Set(serviceRegistry['map'](_0x474e75=>_0x474e75['service']));try{return listDynamicServiceEntries()[_0x33b7ad(0x1be)](_0x580810=>!_0x2d242b[_0x33b7ad(0x1bb)](_0x580810[_0x33b7ad(0x1b5)]));}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x2eab76,_0x45677b){var _0xe838d6=a86_0x3a0d,_0x35c1a1=_0x2eab76();while(!![]){try{var _0x56ebd1=-parseInt(_0xe838d6(0x134))/0x1*(parseInt(_0xe838d6(0x13b))/0x2)+parseInt(_0xe838d6(0x136))/0x3*(-parseInt(_0xe838d6(0x13a))/0x4)+parseInt(_0xe838d6(0x137))/0x5+-parseInt(_0xe838d6(0x139))/0x6+-parseInt(_0xe838d6(0x138))/0x7+parseInt(_0xe838d6(0x13c))/0x8+-parseInt(_0xe838d6(0x13d))/0x9*(-parseInt(_0xe838d6(0x135))/0xa);if(_0x56ebd1===_0x45677b)break;else _0x35c1a1['push'](_0x35c1a1['shift']());}catch(_0x519f80){_0x35c1a1['push'](_0x35c1a1['shift']());}}}(a86_0xc6bd,0xe9bb9));export{runCommand}from'../framework/runner.js';function a86_0x3a0d(_0x267357,_0x406aa0){_0x267357=_0x267357-0x134;var _0xc6bda7=a86_0xc6bd();var _0x3a0d3b=_0xc6bda7[_0x267357];return _0x3a0d3b;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a86_0xc6bd(){var _0x1472e9=['8251075rjxAfI','5699700uSQmAS','20984PsSNTD','2dNyqQq','10152832qMgNKJ','36xXGSPA','360120QJmzne','6389270qFTdXB','318ibASqC','887140QSpbaL'];a86_0xc6bd=function(){return _0x1472e9;};return a86_0xc6bd();}export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x4613bd,_0x5d0934){var _0x3dcc48=a86_0x3437,_0x3a9bfd=_0x4613bd();while(!![]){try{var _0x26d3d9=-parseInt(_0x3dcc48(0x1a5))/0x1*(-parseInt(_0x3dcc48(0x19d))/0x2)+parseInt(_0x3dcc48(0x1a2))/0x3+-parseInt(_0x3dcc48(0x1a4))/0x4+parseInt(_0x3dcc48(0x19f))/0x5+parseInt(_0x3dcc48(0x19e))/0x6+-parseInt(_0x3dcc48(0x1a0))/0x7+parseInt(_0x3dcc48(0x1a3))/0x8*(-parseInt(_0x3dcc48(0x1a1))/0x9);if(_0x26d3d9===_0x5d0934)break;else _0x3a9bfd['push'](_0x3a9bfd['shift']());}catch(_0x196095){_0x3a9bfd['push'](_0x3a9bfd['shift']());}}}(a86_0x3a2a,0x669b7));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';function a86_0x3a2a(){var _0x162af6=['300IRZJGS','4814466EtqeDF','961165apTmGj','2708335kfiJrt','225vDbTFW','2378292NussDx','305144PhAHEG','2999796QceaGS','4822HGESsq'];a86_0x3a2a=function(){return _0x162af6;};return a86_0x3a2a();}function a86_0x3437(_0x35a992,_0x1d6caa){_0x35a992=_0x35a992-0x19d;var _0x3a2aed=a86_0x3a2a();var _0x343773=_0x3a2aed[_0x35a992];return _0x343773;}export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x68daf7,_0x74fadd){const _0x32f5bd=a87_0x58d2,_0x1dd33e=_0x68daf7();while(!![]){try{const _0x11301e=parseInt(_0x32f5bd(0x1be))/0x1+parseInt(_0x32f5bd(0x1c5))/0x2+parseInt(_0x32f5bd(0x1c7))/0x3*(parseInt(_0x32f5bd(0x1c4))/0x4)+parseInt(_0x32f5bd(0x1bc))/0x5*(parseInt(_0x32f5bd(0x1bb))/0x6)+parseInt(_0x32f5bd(0x1c6))/0x7*(-parseInt(_0x32f5bd(0x1bf))/0x8)+-parseInt(_0x32f5bd(0x1c8))/0x9*(parseInt(_0x32f5bd(0x1c1))/0xa)+-parseInt(_0x32f5bd(0x1bd))/0xb;if(_0x11301e===_0x74fadd)break;else _0x1dd33e['push'](_0x1dd33e['shift']());}catch(_0x292118){_0x1dd33e['push'](_0x1dd33e['shift']());}}}(a87_0x2a55,0xd6f66));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a87_0x2a55(){const _0x29463f=['1630091DVUotx','232GWYJMR','_notice','30hEQaDI','pretty','update','813268ZRsuZJ','610978EAzcep','112154JGOesg','24zVlzxT','990891gOSBVM','678702zBGNMC','25KNrWhf','26975080DTpMwI'];a87_0x2a55=function(){return _0x29463f;};return a87_0x2a55();}import{CliErrors}from'../errors.js';function a87_0x58d2(_0x30456f,_0x551681){_0x30456f=_0x30456f-0x1bb;const _0x2a55c2=a87_0x2a55();let _0x58d297=_0x2a55c2[_0x30456f];return _0x58d297;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4a7463,_0x5ba256){const _0x44175e=a87_0x58d2,_0x1de3a6=_0x4a7463[_0x44175e(0x1c0)],{_notice:_0x16469c,..._0x35df1f}=_0x4a7463;void _0x16469c,baseFormatOutput(_0x35df1f,_0x5ba256),_0x5ba256['format']===_0x44175e(0x1c2)&&printPrettyNotice(_0x1de3a6);}function printPrettyNotice(_0x5de5bb){const _0x2b06f2=a87_0x58d2;if(!_0x5de5bb?.[_0x2b06f2(0x1c3)])return;console['error'](_0x5de5bb['update']['message']+'\x20('+_0x5de5bb[_0x2b06f2(0x1c3)]['url']+')');}
1
+ (function(_0x1ebd03,_0x45bb2c){const _0x527eb7=a87_0x2b91,_0x139bd1=_0x1ebd03();while(!![]){try{const _0x196900=-parseInt(_0x527eb7(0x144))/0x1*(-parseInt(_0x527eb7(0x14d))/0x2)+-parseInt(_0x527eb7(0x14a))/0x3+-parseInt(_0x527eb7(0x145))/0x4+parseInt(_0x527eb7(0x151))/0x5+-parseInt(_0x527eb7(0x146))/0x6+-parseInt(_0x527eb7(0x14f))/0x7*(-parseInt(_0x527eb7(0x14c))/0x8)+parseInt(_0x527eb7(0x148))/0x9*(-parseInt(_0x527eb7(0x14e))/0xa);if(_0x196900===_0x45bb2c)break;else _0x139bd1['push'](_0x139bd1['shift']());}catch(_0x3356fa){_0x139bd1['push'](_0x139bd1['shift']());}}}(a87_0x30b0,0xd3bf1));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a87_0x30b0(){const _0x1a8677=['url','955872YodXqx','format','432969eFVJXH','_notice','16NAnSfX','2103074ibkSzg','110IoCAEN','5321708XISaUr','message','6265185QEODDR','update','pretty','1EzLabD','5494864TSjCwm','1628532uTUfAu'];a87_0x30b0=function(){return _0x1a8677;};return a87_0x30b0();}import{CliErrors}from'../errors.js';function a87_0x2b91(_0x377cd6,_0x3bd221){_0x377cd6=_0x377cd6-0x144;const _0x30b0ac=a87_0x30b0();let _0x2b91ca=_0x30b0ac[_0x377cd6];return _0x2b91ca;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x54d1ea,_0x400a6c){const _0x524dd9=a87_0x2b91,_0x55829d=_0x54d1ea[_0x524dd9(0x14b)],{_notice:_0x4ac32d,..._0x33b67d}=_0x54d1ea;void _0x4ac32d,baseFormatOutput(_0x33b67d,_0x400a6c),_0x400a6c[_0x524dd9(0x149)]===_0x524dd9(0x153)&&printPrettyNotice(_0x55829d);}function printPrettyNotice(_0x5bb0c7){const _0x39c566=a87_0x2b91;if(!_0x5bb0c7?.[_0x39c566(0x152)])return;console['error'](_0x5bb0c7[_0x39c566(0x152)][_0x39c566(0x150)]+'\x20('+_0x5bb0c7['update'][_0x39c566(0x147)]+')');}
@@ -1 +1 @@
1
- function a88_0x5ad4(_0x3fb022,_0x33ece9){_0x3fb022=_0x3fb022-0x118;const _0x41b062=a88_0x41b0();let _0x5ad417=_0x41b062[_0x3fb022];return _0x5ad417;}function a88_0x41b0(){const _0x45e3e2=['2002818MdJxPC','slice','toUpperCase','indexOf','global','toLowerCase','non-interactive','3gYWaSX','3342215tyYVum','replace','4123816ntsfHc','add','env','get','version','type','format','corrected','boolean','2602IycQDl','2510CVwXeW','9UGnLYm','set','entries','has','sticky','dry-run','1459616FUNjIY','1255uLgUDX','app','5727324kiHAnA','string','appcode','help','keys','22055QVZWHT','number','dryRun','original','name','alias','length','push','28mhqBhb'];a88_0x41b0=function(){return _0x45e3e2;};return a88_0x41b0();}(function(_0x5312c1,_0x16dae8){const _0x54b9c7=a88_0x5ad4,_0x29695b=_0x5312c1();while(!![]){try{const _0x31525b=-parseInt(_0x54b9c7(0x140))/0x1*(-parseInt(_0x54b9c7(0x137))/0x2)+-parseInt(_0x54b9c7(0x12b))/0x3*(-parseInt(_0x54b9c7(0x13f))/0x4)+parseInt(_0x54b9c7(0x12c))/0x5+-parseInt(_0x54b9c7(0x124))/0x6*(parseInt(_0x54b9c7(0x123))/0x7)+-parseInt(_0x54b9c7(0x12e))/0x8*(parseInt(_0x54b9c7(0x139))/0x9)+parseInt(_0x54b9c7(0x138))/0xa*(parseInt(_0x54b9c7(0x11b))/0xb)+-parseInt(_0x54b9c7(0x142))/0xc;if(_0x31525b===_0x16dae8)break;else _0x29695b['push'](_0x29695b['shift']());}catch(_0x4de7a8){_0x29695b['push'](_0x29695b['shift']());}}}(a88_0x41b0,0xcd6af));export function toKebab(_0x8ebcf6){const _0x2bd710=a88_0x5ad4;return _0x8ebcf6[_0x2bd710(0x12d)](/_/g,'-')[_0x2bd710(0x12d)](/-([A-Z]+)/g,(_0x35d7f9,_0x3d501a)=>'-'+_0x3d501a[_0x2bd710(0x129)]())[_0x2bd710(0x12d)](/([a-z0-9])([A-Z])/g,(_0x275a3b,_0x535d93,_0x266fe7)=>_0x535d93+'-'+_0x266fe7)[_0x2bd710(0x129)]();}function buildKnownFlags(_0x1a9dba){const _0x87d1bc=a88_0x5ad4,_0x23d761=new Set();for(const _0x19a2fd of _0x1a9dba){_0x23d761[_0x87d1bc(0x12f)](_0x19a2fd['name']),_0x23d761['add'](toCamelCase(_0x19a2fd['name']));}for(const _0x435384 of[_0x87d1bc(0x13e),_0x87d1bc(0x11d),'yes',_0x87d1bc(0x134)]){_0x23d761[_0x87d1bc(0x12f)](_0x435384);}for(const _0x7f94e of[_0x87d1bc(0x119),_0x87d1bc(0x130),_0x87d1bc(0x118),_0x87d1bc(0x141),'nonInteractive',_0x87d1bc(0x12a),'ci',_0x87d1bc(0x128),_0x87d1bc(0x132)]){_0x23d761[_0x87d1bc(0x12f)](_0x7f94e);}return _0x23d761;}function buildFlagTypeMap(_0x3cc9fb){const _0x583d60=a88_0x5ad4,_0x4352b4=new Map();for(const _0x1d3f9d of _0x3cc9fb){_0x4352b4[_0x583d60(0x13a)](_0x1d3f9d[_0x583d60(0x11f)],_0x1d3f9d['type']),_0x4352b4[_0x583d60(0x13a)](toCamelCase(_0x1d3f9d['name']),_0x1d3f9d[_0x583d60(0x133)]);}return _0x4352b4;}function toCamelCase(_0x135234){const _0x448af9=a88_0x5ad4;return _0x135234[_0x448af9(0x12d)](/-([a-z])/g,(_0x4d70d2,_0x350193)=>_0x350193[_0x448af9(0x126)]());}function aliasHandler(_0x9d92b3,_0x26f515){const _0xfcf3e2=a88_0x5ad4,_0x32b5e6=[];for(const _0x30416e of Object[_0xfcf3e2(0x11a)](_0x9d92b3)){if(_0x26f515[_0xfcf3e2(0x13c)](_0x30416e))continue;const _0x4b7974=toKebab(_0x30416e);_0x4b7974!==_0x30416e&&_0x26f515[_0xfcf3e2(0x13c)](_0x4b7974)&&_0x32b5e6[_0xfcf3e2(0x122)]({'original':_0x30416e,'corrected':_0x4b7974,'handler':_0xfcf3e2(0x120)});}return _0x32b5e6;}function stickyHandler(_0x25f8c9,_0x10e466,_0x35fb77){const _0x356f16=a88_0x5ad4,_0x384f2b=[];for(const [_0x269f55,_0x4ac6f9]of Object[_0x356f16(0x13b)](_0x25f8c9)){if(_0x4ac6f9!==!![])continue;for(let _0x51cbf0=_0x269f55[_0x356f16(0x121)]-0x1;_0x51cbf0>0x0;_0x51cbf0--){const _0x5d41cc=_0x269f55['slice'](0x0,_0x51cbf0),_0x57026c=_0x269f55['slice'](_0x51cbf0),_0x175f65=toKebab(_0x5d41cc),_0x9377e2=toCamelCase(_0x5d41cc),_0x5a98b0=_0x10e466[_0x356f16(0x13c)](_0x5d41cc)?_0x5d41cc:_0x10e466[_0x356f16(0x13c)](_0x175f65)?_0x175f65:_0x10e466[_0x356f16(0x13c)](_0x9377e2)?_0x9377e2:null;if(!_0x5a98b0)continue;const _0x542bd3=_0x35fb77[_0x356f16(0x131)](_0x5a98b0)??_0x356f16(0x143);let _0x2ed54c;if(_0x542bd3===_0x356f16(0x11c)){const _0x146d44=Number(_0x57026c);if(isNaN(_0x146d44)||_0x57026c==='')continue;_0x2ed54c=_0x146d44;}else{if(_0x542bd3===_0x356f16(0x136))continue;else{if(_0x57026c==='')continue;_0x2ed54c=_0x57026c;}}_0x384f2b[_0x356f16(0x122)]({'original':_0x269f55,'corrected':_0x5a98b0+'='+_0x2ed54c,'handler':_0x356f16(0x13d)});break;}}return _0x384f2b;}export function correctFlags(_0x5e698d,_0x1eec60){const _0x499308=a88_0x5ad4,_0x374dcf=buildKnownFlags(_0x1eec60),_0x15fc69=buildFlagTypeMap(_0x1eec60),_0x349634=aliasHandler(_0x5e698d,_0x374dcf),_0x2c599e=stickyHandler(_0x5e698d,_0x374dcf,_0x15fc69),_0x5bef83=[..._0x349634,..._0x2c599e];if(_0x5bef83['length']===0x0)return{'flags':_0x5e698d,'corrections':[]};const _0x317fa5={..._0x5e698d},_0x2819ad=new Set();for(const _0x445a20 of _0x349634){_0x317fa5[_0x445a20['corrected']]=_0x5e698d[_0x445a20[_0x499308(0x11e)]],_0x2819ad['add'](_0x445a20['original']);}for(const _0x2af3ef of _0x2c599e){const _0x2600dd=_0x2af3ef[_0x499308(0x135)][_0x499308(0x127)]('='),_0x488b45=_0x2af3ef[_0x499308(0x135)][_0x499308(0x125)](0x0,_0x2600dd),_0x3bbb6c=_0x2af3ef['corrected'][_0x499308(0x125)](_0x2600dd+0x1),_0x55569d=_0x15fc69[_0x499308(0x131)](_0x488b45)??_0x499308(0x143);_0x55569d==='number'?_0x317fa5[_0x488b45]=Number(_0x3bbb6c):_0x317fa5[_0x488b45]=_0x3bbb6c,_0x2819ad[_0x499308(0x12f)](_0x2af3ef[_0x499308(0x11e)]);}for(const _0x35b7aa of _0x2819ad){delete _0x317fa5[_0x35b7aa];}return{'flags':_0x317fa5,'corrections':_0x5bef83};}
1
+ function a88_0x1393(_0x414068,_0x5435fd){_0x414068=_0x414068-0x19b;const _0x1e263d=a88_0x1e26();let _0x13933=_0x1e263d[_0x414068];return _0x13933;}(function(_0x161a4d,_0xf72103){const _0x439741=a88_0x1393,_0x41bdb3=_0x161a4d();while(!![]){try{const _0x626e5b=parseInt(_0x439741(0x1b1))/0x1*(-parseInt(_0x439741(0x1bf))/0x2)+-parseInt(_0x439741(0x1a0))/0x3+-parseInt(_0x439741(0x1b2))/0x4*(parseInt(_0x439741(0x1b4))/0x5)+-parseInt(_0x439741(0x1ab))/0x6+parseInt(_0x439741(0x1ad))/0x7*(-parseInt(_0x439741(0x1a6))/0x8)+-parseInt(_0x439741(0x1be))/0x9+parseInt(_0x439741(0x1bb))/0xa;if(_0x626e5b===_0xf72103)break;else _0x41bdb3['push'](_0x41bdb3['shift']());}catch(_0x2ed0d3){_0x41bdb3['push'](_0x41bdb3['shift']());}}}(a88_0x1e26,0xa2e7f));function a88_0x1e26(){const _0x4415b1=['3545675PlxOam','entries','has','dry-run','1akKSlT','64DZoVwe','get','322340OsyPYb','push','app','string','indexOf','toLowerCase','appcode','51902640wvwUmG','global','keys','10923921SxSyPr','332606IneuxE','corrected','yes','format','help','set','boolean','2020662WhJHPH','replace','name','number','dryRun','slice','8jAVqpD','alias','type','original','add','5588172fRwJyG','length'];a88_0x1e26=function(){return _0x4415b1;};return a88_0x1e26();}export function toKebab(_0x3e7c58){const _0x47c707=a88_0x1393;return _0x3e7c58[_0x47c707(0x1a1)](/_/g,'-')[_0x47c707(0x1a1)](/-([A-Z]+)/g,(_0x166eb6,_0x569932)=>'-'+_0x569932[_0x47c707(0x1b9)]())[_0x47c707(0x1a1)](/([a-z0-9])([A-Z])/g,(_0x164d03,_0x5d1aae,_0x310e98)=>_0x5d1aae+'-'+_0x310e98)['toLowerCase']();}function buildKnownFlags(_0x1d2630){const _0x33787b=a88_0x1393,_0x4cd46a=new Set();for(const _0x2b2425 of _0x1d2630){_0x4cd46a['add'](_0x2b2425[_0x33787b(0x1a2)]),_0x4cd46a['add'](toCamelCase(_0x2b2425[_0x33787b(0x1a2)]));}for(const _0x45c62b of[_0x33787b(0x1b0),_0x33787b(0x1a4),_0x33787b(0x19b),_0x33787b(0x19c)]){_0x4cd46a[_0x33787b(0x1aa)](_0x45c62b);}for(const _0x316a93 of[_0x33787b(0x19d),'env',_0x33787b(0x1ba),_0x33787b(0x1b6),'nonInteractive','non-interactive','ci',_0x33787b(0x1bc),'version']){_0x4cd46a[_0x33787b(0x1aa)](_0x316a93);}return _0x4cd46a;}function buildFlagTypeMap(_0x2401f2){const _0x33e081=a88_0x1393,_0x2521cc=new Map();for(const _0x15fd5a of _0x2401f2){_0x2521cc[_0x33e081(0x19e)](_0x15fd5a[_0x33e081(0x1a2)],_0x15fd5a[_0x33e081(0x1a8)]),_0x2521cc[_0x33e081(0x19e)](toCamelCase(_0x15fd5a[_0x33e081(0x1a2)]),_0x15fd5a[_0x33e081(0x1a8)]);}return _0x2521cc;}function toCamelCase(_0x195ae8){return _0x195ae8['replace'](/-([a-z])/g,(_0x34c29d,_0x220eb4)=>_0x220eb4['toUpperCase']());}function aliasHandler(_0x1b9f30,_0x1e92d9){const _0x31d027=a88_0x1393,_0x53adb6=[];for(const _0x19c4c8 of Object[_0x31d027(0x1bd)](_0x1b9f30)){if(_0x1e92d9['has'](_0x19c4c8))continue;const _0x17d629=toKebab(_0x19c4c8);_0x17d629!==_0x19c4c8&&_0x1e92d9[_0x31d027(0x1af)](_0x17d629)&&_0x53adb6[_0x31d027(0x1b5)]({'original':_0x19c4c8,'corrected':_0x17d629,'handler':_0x31d027(0x1a7)});}return _0x53adb6;}function stickyHandler(_0x5d827b,_0x55ffb2,_0x444d03){const _0x579a12=a88_0x1393,_0x1f42ef=[];for(const [_0x308fd6,_0x496cbb]of Object[_0x579a12(0x1ae)](_0x5d827b)){if(_0x496cbb!==!![])continue;for(let _0x29fe1a=_0x308fd6['length']-0x1;_0x29fe1a>0x0;_0x29fe1a--){const _0x2f7002=_0x308fd6[_0x579a12(0x1a5)](0x0,_0x29fe1a),_0xa314f2=_0x308fd6[_0x579a12(0x1a5)](_0x29fe1a),_0x58b9f6=toKebab(_0x2f7002),_0x3cc9dc=toCamelCase(_0x2f7002),_0x5667ce=_0x55ffb2['has'](_0x2f7002)?_0x2f7002:_0x55ffb2['has'](_0x58b9f6)?_0x58b9f6:_0x55ffb2[_0x579a12(0x1af)](_0x3cc9dc)?_0x3cc9dc:null;if(!_0x5667ce)continue;const _0x456316=_0x444d03['get'](_0x5667ce)??_0x579a12(0x1b7);let _0x4969de;if(_0x456316===_0x579a12(0x1a3)){const _0x14fc4c=Number(_0xa314f2);if(isNaN(_0x14fc4c)||_0xa314f2==='')continue;_0x4969de=_0x14fc4c;}else{if(_0x456316===_0x579a12(0x19f))continue;else{if(_0xa314f2==='')continue;_0x4969de=_0xa314f2;}}_0x1f42ef[_0x579a12(0x1b5)]({'original':_0x308fd6,'corrected':_0x5667ce+'='+_0x4969de,'handler':'sticky'});break;}}return _0x1f42ef;}export function correctFlags(_0x23383d,_0x1253f3){const _0x26acd9=a88_0x1393,_0x189000=buildKnownFlags(_0x1253f3),_0x655ed4=buildFlagTypeMap(_0x1253f3),_0x3af952=aliasHandler(_0x23383d,_0x189000),_0x1fed0f=stickyHandler(_0x23383d,_0x189000,_0x655ed4),_0x43f7c6=[..._0x3af952,..._0x1fed0f];if(_0x43f7c6[_0x26acd9(0x1ac)]===0x0)return{'flags':_0x23383d,'corrections':[]};const _0x4d2530={..._0x23383d},_0x2efd45=new Set();for(const _0x11aaaa of _0x3af952){_0x4d2530[_0x11aaaa[_0x26acd9(0x1c0)]]=_0x23383d[_0x11aaaa[_0x26acd9(0x1a9)]],_0x2efd45[_0x26acd9(0x1aa)](_0x11aaaa['original']);}for(const _0x2c76ed of _0x1fed0f){const _0x216b6c=_0x2c76ed[_0x26acd9(0x1c0)][_0x26acd9(0x1b8)]('='),_0x4ef761=_0x2c76ed['corrected'][_0x26acd9(0x1a5)](0x0,_0x216b6c),_0x1b5635=_0x2c76ed['corrected'][_0x26acd9(0x1a5)](_0x216b6c+0x1),_0x25b42b=_0x655ed4[_0x26acd9(0x1b3)](_0x4ef761)??_0x26acd9(0x1b7);_0x25b42b===_0x26acd9(0x1a3)?_0x4d2530[_0x4ef761]=Number(_0x1b5635):_0x4d2530[_0x4ef761]=_0x1b5635,_0x2efd45[_0x26acd9(0x1aa)](_0x2c76ed[_0x26acd9(0x1a9)]);}for(const _0x1055c1 of _0x2efd45){delete _0x4d2530[_0x1055c1];}return{'flags':_0x4d2530,'corrections':_0x43f7c6};}
@@ -1 +1 @@
1
- function a89_0x4959(){const _0x2bc165=['status','isArray','Retry\x20after\x20','Wait\x20','isInteger','errorCode','752658HXYRvV','\x20seconds\x20before\x20retrying.','test','rateLimited','get','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','30230mUDEoT','111eHOpKD','retry-after','9zanKHn','5864rjppJh','288RxpraE','toLowerCase','entries','EXCEED_MAX_QPS_LIMIT','call','has','Retry-After','2933wDRbDG','134EiMnDy','Retry\x20after\x20a\x20short\x20delay.','Request\x20rate\x20limit\x20exceeded.','string','1476365CgAzuK','696Soqoaz','object','10648fCOfiZ','1351ggzGcu','MAX_QPS_LIMIT','function'];a89_0x4959=function(){return _0x2bc165;};return a89_0x4959();}const a89_0x3fc5e9=a89_0x2634;(function(_0x3d6705,_0x47f8ad){const _0x5e60ec=a89_0x2634,_0x44529=_0x3d6705();while(!![]){try{const _0x117adc=-parseInt(_0x5e60ec(0xea))/0x1*(parseInt(_0x5e60ec(0x106))/0x2)+parseInt(_0x5e60ec(0xfa))/0x3*(parseInt(_0x5e60ec(0xfd))/0x4)+parseInt(_0x5e60ec(0x10a))/0x5+-parseInt(_0x5e60ec(0xf3))/0x6+parseInt(_0x5e60ec(0x105))/0x7*(parseInt(_0x5e60ec(0xe7))/0x8)+-parseInt(_0x5e60ec(0xfc))/0x9*(parseInt(_0x5e60ec(0xf9))/0xa)+-parseInt(_0x5e60ec(0xe9))/0xb*(-parseInt(_0x5e60ec(0xfe))/0xc);if(_0x117adc===_0x47f8ad)break;else _0x44529['push'](_0x44529['shift']());}catch(_0x2dd861){_0x44529['push'](_0x44529['shift']());}}}(a89_0x4959,0x2e709));function a89_0x2634(_0x25c544,_0x4495e3){_0x25c544=_0x25c544-0xe7;const _0x495962=a89_0x4959();let _0x26345e=_0x495962[_0x25c544];return _0x26345e;}import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a89_0x3fc5e9(0x101),a89_0x3fc5e9(0xeb),'IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0x5101b0){const _0x4c02be=a89_0x3fc5e9;if(typeof _0x5101b0!==_0x4c02be(0x109))return undefined;const _0x17600d=_0x5101b0['trim']();return _0x17600d||undefined;}function buildRetryHint(_0x469a26){const _0xfe8ce6=a89_0x3fc5e9,_0x49f015=nonEmptyString(_0x469a26),_0x298eca=_0x49f015?/^\d+$/[_0xfe8ce6(0xf5)](_0x49f015)?_0xfe8ce6(0xf0)+_0x49f015+_0xfe8ce6(0xf4):_0xfe8ce6(0xef)+_0x49f015+'.':_0xfe8ce6(0x107);return _0x298eca+_0xfe8ce6(0xf8);}export function createRateLimitError(_0x256513){const _0x3901c2=a89_0x3fc5e9,_0x53518d=nonEmptyString(_0x256513[_0x3901c2(0xf2)])?.['toUpperCase'](),_0x40c233=Number(_0x256513[_0x3901c2(0xed)])===0x1ad||_0x53518d!==undefined&&RATE_LIMIT_ERROR_CODES[_0x3901c2(0x103)](_0x53518d);if(!_0x40c233)return undefined;return CliErrors[_0x3901c2(0xf6)](nonEmptyString(_0x256513['message'])??_0x3901c2(0x108),buildRetryHint(_0x256513['retryAfter']));}export function readRetryAfter(_0x467755){const _0x44f132=a89_0x3fc5e9;if(!_0x467755||typeof _0x467755!==_0x44f132(0xe8))return undefined;const _0x155812=_0x467755[_0x44f132(0xf7)];if(typeof _0x155812===_0x44f132(0xec)){const _0x3d877e=_0x155812[_0x44f132(0x102)](_0x467755,_0x44f132(0x104))??_0x155812['call'](_0x467755,_0x44f132(0xfb));return nonEmptyString(_0x3d877e);}for(const [_0x514001,_0x83374e]of Object[_0x44f132(0x100)](_0x467755)){if(_0x514001[_0x44f132(0xff)]()==='retry-after')return nonEmptyString(_0x83374e)??(typeof _0x83374e==='number'?String(_0x83374e):undefined);}return undefined;}export function readRetryAfterSeconds(_0x573a4d){const _0x4423ee=a89_0x3fc5e9;if(!_0x573a4d||typeof _0x573a4d!==_0x4423ee(0xe8)||Array[_0x4423ee(0xee)](_0x573a4d))return undefined;const _0xc12317=_0x573a4d['retryAfterSeconds'];if(typeof _0xc12317==='number')return Number[_0x4423ee(0xf1)](_0xc12317)&&_0xc12317>=0x0?String(_0xc12317):undefined;const _0x4705be=nonEmptyString(_0xc12317);return _0x4705be&&/^\d+$/[_0x4423ee(0xf5)](_0x4705be)?_0x4705be:undefined;}
1
+ const a89_0x18d69e=a89_0x5bdf;function a89_0x5330(){const _0x587d87=['EXCEED_MAX_QPS_LIMIT','isArray','\x20seconds\x20before\x20retrying.','213046jDVwUp','call','MAX_QPS_LIMIT','retryAfterSeconds','524804LADmep','IP_RATE_LIMIT_EXCEEDED','2423514dZXWXw','2iXkUpL','function','message','Wait\x20','117856GjGwZc','toUpperCase','110530IWDFRm','retry-after','752466jlNDwk','Retry-After','Request\x20rate\x20limit\x20exceeded.','27GtXcHn','rateLimited','15gmJGar','Retry\x20after\x20','entries','42312wqFsEq','has','220BQmRXU','retryAfter','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','trim','errorCode','isInteger'];a89_0x5330=function(){return _0x587d87;};return a89_0x5330();}(function(_0x1deb01,_0x5c5c92){const _0x354e3b=a89_0x5bdf,_0x2eced2=_0x1deb01();while(!![]){try{const _0x1d7b3b=-parseInt(_0x354e3b(0x1da))/0x1+-parseInt(_0x354e3b(0x1e1))/0x2*(-parseInt(_0x354e3b(0x1e9))/0x3)+parseInt(_0x354e3b(0x1cf))/0x4*(-parseInt(_0x354e3b(0x1cc))/0x5)+parseInt(_0x354e3b(0x1e0))/0x6+parseInt(_0x354e3b(0x1de))/0x7+parseInt(_0x354e3b(0x1e5))/0x8*(-parseInt(_0x354e3b(0x1ca))/0x9)+-parseInt(_0x354e3b(0x1e7))/0xa*(parseInt(_0x354e3b(0x1d1))/0xb);if(_0x1d7b3b===_0x5c5c92)break;else _0x2eced2['push'](_0x2eced2['shift']());}catch(_0x3fa034){_0x2eced2['push'](_0x2eced2['shift']());}}}(a89_0x5330,0x35a1d));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a89_0x18d69e(0x1d7),a89_0x18d69e(0x1dc),a89_0x18d69e(0x1df)]);function nonEmptyString(_0x46ff01){const _0x5168f2=a89_0x18d69e;if(typeof _0x46ff01!=='string')return undefined;const _0x448bcd=_0x46ff01[_0x5168f2(0x1d4)]();return _0x448bcd||undefined;}function buildRetryHint(_0x5edb09){const _0x47fadc=a89_0x18d69e,_0x13364e=nonEmptyString(_0x5edb09),_0x36b731=_0x13364e?/^\d+$/['test'](_0x13364e)?_0x47fadc(0x1e4)+_0x13364e+_0x47fadc(0x1d9):_0x47fadc(0x1cd)+_0x13364e+'.':'Retry\x20after\x20a\x20short\x20delay.';return _0x36b731+_0x47fadc(0x1d3);}export function createRateLimitError(_0xf022a3){const _0x5eb07b=a89_0x18d69e,_0x228d49=nonEmptyString(_0xf022a3[_0x5eb07b(0x1d5)])?.[_0x5eb07b(0x1e6)](),_0x2560a3=Number(_0xf022a3['status'])===0x1ad||_0x228d49!==undefined&&RATE_LIMIT_ERROR_CODES[_0x5eb07b(0x1d0)](_0x228d49);if(!_0x2560a3)return undefined;return CliErrors[_0x5eb07b(0x1cb)](nonEmptyString(_0xf022a3[_0x5eb07b(0x1e3)])??_0x5eb07b(0x1c9),buildRetryHint(_0xf022a3[_0x5eb07b(0x1d2)]));}function a89_0x5bdf(_0x1847c0,_0x5db7d1){_0x1847c0=_0x1847c0-0x1c9;const _0x5330d1=a89_0x5330();let _0x5bdf35=_0x5330d1[_0x1847c0];return _0x5bdf35;}export function readRetryAfter(_0x28ccab){const _0x5e4f47=a89_0x18d69e;if(!_0x28ccab||typeof _0x28ccab!=='object')return undefined;const _0x1f6495=_0x28ccab['get'];if(typeof _0x1f6495===_0x5e4f47(0x1e2)){const _0x241726=_0x1f6495['call'](_0x28ccab,_0x5e4f47(0x1ea))??_0x1f6495[_0x5e4f47(0x1db)](_0x28ccab,_0x5e4f47(0x1e8));return nonEmptyString(_0x241726);}for(const [_0x5541c9,_0x52f165]of Object[_0x5e4f47(0x1ce)](_0x28ccab)){if(_0x5541c9['toLowerCase']()===_0x5e4f47(0x1e8))return nonEmptyString(_0x52f165)??(typeof _0x52f165==='number'?String(_0x52f165):undefined);}return undefined;}export function readRetryAfterSeconds(_0x1973ec){const _0x5913d4=a89_0x18d69e;if(!_0x1973ec||typeof _0x1973ec!=='object'||Array[_0x5913d4(0x1d8)](_0x1973ec))return undefined;const _0xcb03b8=_0x1973ec[_0x5913d4(0x1dd)];if(typeof _0xcb03b8==='number')return Number[_0x5913d4(0x1d6)](_0xcb03b8)&&_0xcb03b8>=0x0?String(_0xcb03b8):undefined;const _0x1af938=nonEmptyString(_0xcb03b8);return _0x1af938&&/^\d+$/['test'](_0x1af938)?_0x1af938:undefined;}
@@ -1 +1 @@
1
- const a90_0x145881=a90_0x1cab;(function(_0x2ba937,_0x42a811){const _0x39f96e=a90_0x1cab,_0x380581=_0x2ba937();while(!![]){try{const _0x2f076d=-parseInt(_0x39f96e(0x157))/0x1+parseInt(_0x39f96e(0x161))/0x2*(parseInt(_0x39f96e(0x155))/0x3)+-parseInt(_0x39f96e(0x151))/0x4+-parseInt(_0x39f96e(0x15f))/0x5+parseInt(_0x39f96e(0x15e))/0x6+parseInt(_0x39f96e(0x15d))/0x7+-parseInt(_0x39f96e(0x14c))/0x8;if(_0x2f076d===_0x42a811)break;else _0x380581['push'](_0x380581['shift']());}catch(_0x22b0ff){_0x380581['push'](_0x380581['shift']());}}}(a90_0x1749,0x8a8c9));import{CliErrors}from'../errors.js';function a90_0x1cab(_0x3a67d9,_0x1b3e3b){_0x3a67d9=_0x3a67d9-0x147;const _0x17495a=a90_0x1749();let _0x1cabdf=_0x17495a[_0x3a67d9];return _0x1cabdf;}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a90_0x1749(){const _0x266da7=['data','order-by','page','version','2598208wTRzna','Run\x20`','\x20--help`\x20to\x20see\x20accepted\x20flags.','validation','meowKey','382048zZqtpZ','active','page-size','name','320592DPIuKN','select','869037bkmcav','no-','command','orderby','current-page','add','2923438JPFKXZ','5034756rbSBVQ','739930zGPVEI','entries','14BxmCFZ','filter','where','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','\x20data\x20filter`.','currentpage','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','has','pagesize','service'];a90_0x1749=function(){return _0x266da7;};return a90_0x1749();}import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a90_0x145881(0x163),a90_0x145881(0x156),a90_0x145881(0x149),a90_0x145881(0x15a),a90_0x145881(0x15b),a90_0x145881(0x166),a90_0x145881(0x14a),a90_0x145881(0x153),a90_0x145881(0x169)]);export function assertKnownCommandFlags(_0x4fcf0b,_0x3cc3e9){const _0x673c0a=a90_0x145881,_0x16a7ba=new Set([_0x673c0a(0x14b)]);for(const _0x32d3f5 of GLOBAL_FLAGS){_0x16a7ba[_0x673c0a(0x15c)](_0x32d3f5['name']),_0x16a7ba[_0x673c0a(0x15c)](toKebab(_0x32d3f5[_0x673c0a(0x150)]));}for(const _0x164044 of _0x4fcf0b['flags']??[]){_0x16a7ba['add'](_0x164044[_0x673c0a(0x154)]);}for(const [_0x186a2f,_0x40b509]of Object[_0x673c0a(0x160)](_0x3cc3e9)){const _0x1fbcaf=toKebab(_0x186a2f);if(_0x16a7ba[_0x673c0a(0x168)](_0x1fbcaf))continue;if(_0x40b509===![]&&_0x16a7ba[_0x673c0a(0x168)](_0x673c0a(0x158)+_0x1fbcaf))continue;if(_0x4fcf0b['service']===_0x673c0a(0x148)&&_0x4fcf0b[_0x673c0a(0x159)]===_0x673c0a(0x162)&&FILTER_BODY_FIELDS['has'](_0x1fbcaf))throw CliErrors[_0x673c0a(0x14f)]('--'+_0x1fbcaf+_0x673c0a(0x167)+CLI_BIN_NAME+_0x673c0a(0x165),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+('Example:\x20'+CLI_BIN_NAME+_0x673c0a(0x164))+('\x27'+JSON['stringify']({'where':{'status':{'$eq':_0x673c0a(0x152)}},'orderBy':[{'id':'asc'}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x673c0a(0x14f)]('Unknown\x20flag\x20--'+_0x1fbcaf+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x4fcf0b[_0x673c0a(0x147)]+'\x20'+_0x4fcf0b[_0x673c0a(0x159)]+'`.',_0x673c0a(0x14d)+CLI_BIN_NAME+'\x20'+_0x4fcf0b['service']+'\x20'+_0x4fcf0b[_0x673c0a(0x159)]+_0x673c0a(0x14e));}}
1
+ const a90_0x4e3e99=a90_0x3657;function a90_0x3657(_0x163b48,_0x3eb4e3){_0x163b48=_0x163b48-0x8a;const _0x2adb92=a90_0x2adb();let _0x365719=_0x2adb92[_0x163b48];return _0x365719;}(function(_0x5f23c9,_0x5f6ac6){const _0x40b769=a90_0x3657,_0x2929e7=_0x5f23c9();while(!![]){try{const _0x1cd593=parseInt(_0x40b769(0x92))/0x1+-parseInt(_0x40b769(0xa3))/0x2+parseInt(_0x40b769(0x9c))/0x3*(parseInt(_0x40b769(0x8d))/0x4)+parseInt(_0x40b769(0x8e))/0x5+parseInt(_0x40b769(0xa0))/0x6+parseInt(_0x40b769(0xa4))/0x7+-parseInt(_0x40b769(0x96))/0x8;if(_0x1cd593===_0x5f6ac6)break;else _0x2929e7['push'](_0x2929e7['shift']());}catch(_0x2358f5){_0x2929e7['push'](_0x2929e7['shift']());}}}(a90_0x2adb,0x78abe));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set(['where','select',a90_0x4e3e99(0x8b),a90_0x4e3e99(0x95),'current-page',a90_0x4e3e99(0x93),a90_0x4e3e99(0xa2),a90_0x4e3e99(0xa5),a90_0x4e3e99(0x9a)]);function a90_0x2adb(){const _0x3b09cf=['filter','data','315534waMmxF','currentpage','has','orderby','12646936tPvCFk','\x20--help`\x20to\x20see\x20accepted\x20flags.','command','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','pagesize','Run\x20`','3PmaCyw','validation','flags','Unknown\x20flag\x20--','614178tCDXXO','\x20for\x20`','page','577210MmgzAg','5868177mBusZv','page-size','Example:\x20','\x20data\x20filter`.','version','add','entries','asc','order-by','name','2002876VkhzaA','3034075gRjepN','service'];a90_0x2adb=function(){return _0x3b09cf;};return a90_0x2adb();}export function assertKnownCommandFlags(_0x29354a,_0xc192d0){const _0x8bcaf4=a90_0x4e3e99,_0x2cf696=new Set([_0x8bcaf4(0xa8)]);for(const _0x5fc7f3 of GLOBAL_FLAGS){_0x2cf696[_0x8bcaf4(0xa9)](_0x5fc7f3[_0x8bcaf4(0x8c)]),_0x2cf696[_0x8bcaf4(0xa9)](toKebab(_0x5fc7f3['meowKey']));}for(const _0x49e844 of _0x29354a[_0x8bcaf4(0x9e)]??[]){_0x2cf696[_0x8bcaf4(0xa9)](_0x49e844[_0x8bcaf4(0x8c)]);}for(const [_0x439487,_0x1ab052]of Object[_0x8bcaf4(0xaa)](_0xc192d0)){const _0x25ff56=toKebab(_0x439487);if(_0x2cf696[_0x8bcaf4(0x94)](_0x25ff56))continue;if(_0x1ab052===![]&&_0x2cf696[_0x8bcaf4(0x94)]('no-'+_0x25ff56))continue;if(_0x29354a[_0x8bcaf4(0x8f)]===_0x8bcaf4(0x91)&&_0x29354a[_0x8bcaf4(0x98)]===_0x8bcaf4(0x90)&&FILTER_BODY_FIELDS[_0x8bcaf4(0x94)](_0x25ff56))throw CliErrors[_0x8bcaf4(0x9d)]('--'+_0x25ff56+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+_0x8bcaf4(0xa7),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+(_0x8bcaf4(0xa6)+CLI_BIN_NAME+_0x8bcaf4(0x99))+('\x27'+JSON['stringify']({'where':{'status':{'$eq':'active'}},'orderBy':[{'id':_0x8bcaf4(0x8a)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x8bcaf4(0x9d)](_0x8bcaf4(0x9f)+_0x25ff56+_0x8bcaf4(0xa1)+CLI_BIN_NAME+'\x20'+_0x29354a['service']+'\x20'+_0x29354a[_0x8bcaf4(0x98)]+'`.',_0x8bcaf4(0x9b)+CLI_BIN_NAME+'\x20'+_0x29354a[_0x8bcaf4(0x8f)]+'\x20'+_0x29354a['command']+_0x8bcaf4(0x97));}}
@@ -1 +1 @@
1
- function a91_0x21d6(_0x3b8b43,_0x8272ca){_0x3b8b43=_0x3b8b43-0x14f;var _0x33d5d1=a91_0x33d5();var _0x21d63d=_0x33d5d1[_0x3b8b43];return _0x21d63d;}(function(_0x31f2ec,_0x60d42c){var _0x386a11=a91_0x21d6,_0x319588=_0x31f2ec();while(!![]){try{var _0x35181e=parseInt(_0x386a11(0x14f))/0x1*(parseInt(_0x386a11(0x153))/0x2)+parseInt(_0x386a11(0x158))/0x3*(parseInt(_0x386a11(0x150))/0x4)+parseInt(_0x386a11(0x152))/0x5*(parseInt(_0x386a11(0x157))/0x6)+parseInt(_0x386a11(0x151))/0x7*(parseInt(_0x386a11(0x155))/0x8)+parseInt(_0x386a11(0x154))/0x9+parseInt(_0x386a11(0x156))/0xa+-parseInt(_0x386a11(0x159))/0xb;if(_0x35181e===_0x60d42c)break;else _0x319588['push'](_0x319588['shift']());}catch(_0x2736b2){_0x319588['push'](_0x319588['shift']());}}}(a91_0x33d5,0x585d2));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a91_0x33d5(){var _0x4e571b=['178297GGmMza','55rSNTYb','994610ruaKgy','3580938IKPBlh','136MqgRWp','5709690sKUuYS','351954jvOYPD','3yXolxa','28264390ehScvQ','1Hrfvxm','1548064fstSPf'];a91_0x33d5=function(){return _0x4e571b;};return a91_0x33d5();}
1
+ function a91_0x751e(){var _0x37d126=['2594070YhsUJW','12189530mbSxoC','160PoAaFI','2199756QNzFBP','64708xJaeMi','902531upVJNW','4112eBZCqz','1CshVjz','466342DxveNl','7299BBSiWF'];a91_0x751e=function(){return _0x37d126;};return a91_0x751e();}function a91_0x4995(_0x1672c9,_0x4d7201){_0x1672c9=_0x1672c9-0x10c;var _0x751ea8=a91_0x751e();var _0x4995ae=_0x751ea8[_0x1672c9];return _0x4995ae;}(function(_0x30dac1,_0x33da58){var _0x47d6a1=a91_0x4995,_0x32efb3=_0x30dac1();while(!![]){try{var _0x221fe3=-parseInt(_0x47d6a1(0x113))/0x1*(-parseInt(_0x47d6a1(0x114))/0x2)+-parseInt(_0x47d6a1(0x10f))/0x3+-parseInt(_0x47d6a1(0x110))/0x4*(-parseInt(_0x47d6a1(0x10e))/0x5)+-parseInt(_0x47d6a1(0x10c))/0x6+parseInt(_0x47d6a1(0x111))/0x7+parseInt(_0x47d6a1(0x112))/0x8*(-parseInt(_0x47d6a1(0x115))/0x9)+parseInt(_0x47d6a1(0x10d))/0xa;if(_0x221fe3===_0x33da58)break;else _0x32efb3['push'](_0x32efb3['shift']());}catch(_0x3e183e){_0x32efb3['push'](_0x32efb3['shift']());}}}(a91_0x751e,0x7e0ae));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x95c9d8,_0xd75b2){const _0x1c62de=a92_0x263d,_0x4087ac=_0x95c9d8();while(!![]){try{const _0x124cbe=-parseInt(_0x1c62de(0x111))/0x1+-parseInt(_0x1c62de(0x127))/0x2*(parseInt(_0x1c62de(0x10c))/0x3)+parseInt(_0x1c62de(0x126))/0x4+parseInt(_0x1c62de(0x128))/0x5*(-parseInt(_0x1c62de(0x110))/0x6)+parseInt(_0x1c62de(0x119))/0x7*(parseInt(_0x1c62de(0x117))/0x8)+-parseInt(_0x1c62de(0x11b))/0x9+parseInt(_0x1c62de(0x116))/0xa;if(_0x124cbe===_0xd75b2)break;else _0x4087ac['push'](_0x4087ac['shift']());}catch(_0x448db6){_0x4087ac['push'](_0x4087ac['shift']());}}}(a92_0x3b4f,0xa061d));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x587496,_0x2c6de1,_0x6993cc){const _0x37b44b=a92_0x263d,_0x22505e=buildConfirmationContext(_0x587496,_0x2c6de1,_0x6993cc),_0x4dfe06=[_0x37b44b(0x123)+_0x22505e[_0x37b44b(0x120)]];return _0x22505e[_0x37b44b(0x11d)]&&_0x4dfe06[_0x37b44b(0x11a)](_0x37b44b(0x115)+_0x22505e[_0x37b44b(0x11d)]),_0x22505e[_0x37b44b(0x118)]&&_0x4dfe06[_0x37b44b(0x11a)]('\x20\x20\x20Affected:\x20'+_0x22505e['affectedRecords']),_0x4dfe06['push'](_0x37b44b(0x12b)),_0x4dfe06;}function a92_0x263d(_0x29faf6,_0x1e0ff2){_0x29faf6=_0x29faf6-0x105;const _0x3b4f81=a92_0x3b4f();let _0x263dc2=_0x3b4f81[_0x29faf6];return _0x263dc2;}export function reconstructCommandArgv(_0x41a628,_0x140cd1){const _0x3e5d8b=a92_0x263d,_0x2a11a5=[CLI_BIN_NAME,_0x41a628['service'],_0x41a628[_0x3e5d8b(0x11e)]];for(const [_0x39671f,_0x2f95fa]of Object[_0x3e5d8b(0x107)](_0x140cd1)){if(_0x2f95fa===!![])_0x2a11a5[_0x3e5d8b(0x11a)]('--'+_0x39671f);else _0x2f95fa!==![]&&_0x2f95fa!==undefined&&_0x2f95fa!==''&&_0x2a11a5['push']('--'+_0x39671f+'\x20'+JSON[_0x3e5d8b(0x129)](_0x2f95fa));}return _0x2a11a5['push'](_0x3e5d8b(0x112)),_0x2a11a5['join']('\x20');}function buildConfirmationContext(_0x52ec0b,_0x5df1c3,_0x34d915){const _0x4700af=extractAffectedRecords(_0x34d915);return{'commandLabel':_0x5df1c3,'description':_0x52ec0b['description'],'affectedRecords':_0x4700af};}function extractAffectedRecords(_0x16a419){const _0x2773cf=a92_0x263d,_0x46e22c=[];if(_0x16a419[_0x2773cf(0x124)])_0x46e22c[_0x2773cf(0x11a)](_0x2773cf(0x106)+_0x16a419[_0x2773cf(0x124)]);if(_0x16a419['id'])_0x46e22c[_0x2773cf(0x11a)](_0x2773cf(0x122)+_0x16a419['id']);if(_0x16a419[_0x2773cf(0x11c)])_0x46e22c[_0x2773cf(0x11a)]('schedule-id='+_0x16a419['schedule-id']);if(_0x16a419['name'])_0x46e22c[_0x2773cf(0x11a)](_0x2773cf(0x113)+_0x16a419[_0x2773cf(0x10e)]);if(_0x16a419[_0x2773cf(0x10d)])_0x46e22c[_0x2773cf(0x11a)](_0x2773cf(0x12c)+_0x16a419[_0x2773cf(0x10d)]);if(_0x16a419[_0x2773cf(0x10b)])_0x46e22c[_0x2773cf(0x11a)](_0x2773cf(0x11f)+_0x16a419[_0x2773cf(0x10b)]);if(_0x16a419[_0x2773cf(0x121)])_0x46e22c['push'](_0x2773cf(0x114)+_0x16a419[_0x2773cf(0x121)]);if(_0x16a419[_0x2773cf(0x109)])_0x46e22c[_0x2773cf(0x11a)](_0x2773cf(0x105)+_0x16a419[_0x2773cf(0x109)]);if(_0x16a419['channel'])_0x46e22c[_0x2773cf(0x11a)](_0x2773cf(0x125)+_0x16a419[_0x2773cf(0x12d)]);if(_0x16a419['params'])_0x46e22c['push'](_0x2773cf(0x10a)+_0x16a419[_0x2773cf(0x12a)]);return _0x46e22c[_0x2773cf(0x108)]>0x0?_0x46e22c[_0x2773cf(0x10f)](',\x20'):undefined;}function a92_0x3b4f(){const _0x5cd5bc=['channel','scheduled-at=','code=','entries','length','scheduled-at','params=','kind','18528UnIpJe','title','name','join','20898xTyzfb','752962rwOZmU','--yes','name=','cron=','\x20\x20\x20','5779060UIPQVQ','4137928xHtitj','affectedRecords','14XPqjIB','push','3227841UBakWM','schedule-id','description','command','kind=','commandLabel','cron','id=','⚠\x20\x20High-risk\x20operation:\x20','code','channel=','2733492qJZvHx','32iafjLv','615uzarqD','stringify','params','\x20\x20\x20Continue?\x20[y/N]\x20','title='];a92_0x3b4f=function(){return _0x5cd5bc;};return a92_0x3b4f();}
1
+ (function(_0x52a23d,_0x3846fc){const _0x2415d1=a92_0x4c97,_0x920f4a=_0x52a23d();while(!![]){try{const _0x3e8706=-parseInt(_0x2415d1(0x122))/0x1*(-parseInt(_0x2415d1(0x125))/0x2)+parseInt(_0x2415d1(0x128))/0x3+parseInt(_0x2415d1(0x11f))/0x4+-parseInt(_0x2415d1(0x11d))/0x5+-parseInt(_0x2415d1(0x116))/0x6*(parseInt(_0x2415d1(0x12a))/0x7)+parseInt(_0x2415d1(0x11a))/0x8+-parseInt(_0x2415d1(0x132))/0x9;if(_0x3e8706===_0x3846fc)break;else _0x920f4a['push'](_0x920f4a['shift']());}catch(_0x5eb07b){_0x920f4a['push'](_0x920f4a['shift']());}}}(a92_0x1aa0,0xb5eac));function a92_0x1aa0(){const _0x5b33f2=['schedule-id','3654124WONHlo','kind','--yes','53826VSrjuF','command','cron=','6NdRHJw','push','title','1575564cUyRhM','code=','108185NqnMnI','code','⚠\x20\x20High-risk\x20operation:\x20','channel=','entries','join','\x20\x20\x20Affected:\x20','id=','2245005GctKYn','\x20\x20\x20','stringify','params=','schedule-id=','cron','length','description','service','90LrZBlX','scheduled-at=','name','kind=','7657816igAufH','name=','affectedRecords','6655110pgRYnu'];a92_0x1aa0=function(){return _0x5b33f2;};return a92_0x1aa0();}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x42a8a3,_0x273e4c,_0x1da243){const _0x5d6e2d=a92_0x4c97,_0x50c41a=buildConfirmationContext(_0x42a8a3,_0x273e4c,_0x1da243),_0x43e103=[_0x5d6e2d(0x12c)+_0x50c41a['commandLabel']];return _0x50c41a[_0x5d6e2d(0x114)]&&_0x43e103[_0x5d6e2d(0x126)](_0x5d6e2d(0x133)+_0x50c41a[_0x5d6e2d(0x114)]),_0x50c41a[_0x5d6e2d(0x11c)]&&_0x43e103[_0x5d6e2d(0x126)](_0x5d6e2d(0x130)+_0x50c41a[_0x5d6e2d(0x11c)]),_0x43e103[_0x5d6e2d(0x126)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x43e103;}export function reconstructCommandArgv(_0x2bbe29,_0x234865){const _0x1681bb=a92_0x4c97,_0x5b59ea=[CLI_BIN_NAME,_0x2bbe29[_0x1681bb(0x115)],_0x2bbe29[_0x1681bb(0x123)]];for(const [_0x5057fd,_0x498f21]of Object[_0x1681bb(0x12e)](_0x234865)){if(_0x498f21===!![])_0x5b59ea['push']('--'+_0x5057fd);else _0x498f21!==![]&&_0x498f21!==undefined&&_0x498f21!==''&&_0x5b59ea['push']('--'+_0x5057fd+'\x20'+JSON[_0x1681bb(0x134)](_0x498f21));}return _0x5b59ea[_0x1681bb(0x126)](_0x1681bb(0x121)),_0x5b59ea[_0x1681bb(0x12f)]('\x20');}function a92_0x4c97(_0x489263,_0x56ac14){_0x489263=_0x489263-0x114;const _0x1aa061=a92_0x1aa0();let _0x4c97b1=_0x1aa061[_0x489263];return _0x4c97b1;}function buildConfirmationContext(_0x3db4df,_0x4db922,_0x3c0a8c){const _0x60c392=a92_0x4c97,_0x191ddc=extractAffectedRecords(_0x3c0a8c);return{'commandLabel':_0x4db922,'description':_0x3db4df[_0x60c392(0x114)],'affectedRecords':_0x191ddc};}function extractAffectedRecords(_0x5390fa){const _0xfa4f6d=a92_0x4c97,_0x4ec214=[];if(_0x5390fa['code'])_0x4ec214['push'](_0xfa4f6d(0x129)+_0x5390fa[_0xfa4f6d(0x12b)]);if(_0x5390fa['id'])_0x4ec214['push'](_0xfa4f6d(0x131)+_0x5390fa['id']);if(_0x5390fa[_0xfa4f6d(0x11e)])_0x4ec214[_0xfa4f6d(0x126)](_0xfa4f6d(0x136)+_0x5390fa[_0xfa4f6d(0x11e)]);if(_0x5390fa[_0xfa4f6d(0x118)])_0x4ec214[_0xfa4f6d(0x126)](_0xfa4f6d(0x11b)+_0x5390fa['name']);if(_0x5390fa['title'])_0x4ec214['push']('title='+_0x5390fa[_0xfa4f6d(0x127)]);if(_0x5390fa[_0xfa4f6d(0x120)])_0x4ec214[_0xfa4f6d(0x126)](_0xfa4f6d(0x119)+_0x5390fa['kind']);if(_0x5390fa[_0xfa4f6d(0x137)])_0x4ec214[_0xfa4f6d(0x126)](_0xfa4f6d(0x124)+_0x5390fa['cron']);if(_0x5390fa['scheduled-at'])_0x4ec214[_0xfa4f6d(0x126)](_0xfa4f6d(0x117)+_0x5390fa['scheduled-at']);if(_0x5390fa['channel'])_0x4ec214['push'](_0xfa4f6d(0x12d)+_0x5390fa['channel']);if(_0x5390fa['params'])_0x4ec214[_0xfa4f6d(0x126)](_0xfa4f6d(0x135)+_0x5390fa['params']);return _0x4ec214[_0xfa4f6d(0x138)]>0x0?_0x4ec214[_0xfa4f6d(0x12f)](',\x20'):undefined;}
@@ -1 +1 @@
1
- (function(_0x362d92,_0x3b10e0){const _0x489806=a93_0xab8d,_0x5b785c=_0x362d92();while(!![]){try{const _0x3f7a92=-parseInt(_0x489806(0x11f))/0x1+parseInt(_0x489806(0x11b))/0x2*(-parseInt(_0x489806(0x11e))/0x3)+-parseInt(_0x489806(0x11c))/0x4+parseInt(_0x489806(0x119))/0x5+-parseInt(_0x489806(0x116))/0x6+-parseInt(_0x489806(0x121))/0x7+-parseInt(_0x489806(0x115))/0x8*(-parseInt(_0x489806(0x11d))/0x9);if(_0x3f7a92===_0x3b10e0)break;else _0x5b785c['push'](_0x5b785c['shift']());}catch(_0x3f59ae){_0x5b785c['push'](_0x5b785c['shift']());}}}(a93_0x196d,0xdffdd));import{LovrabetError}from'@lovrabet/sdk';function a93_0xab8d(_0x41ecb5,_0x4bc877){_0x41ecb5=_0x41ecb5-0x115;const _0x196d5b=a93_0x196d();let _0xab8d8f=_0x196d5b[_0x41ecb5];return _0xab8d8f;}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0xa2c16){const _0xd7c903=a93_0xab8d;if(_0xa2c16 instanceof LovrabetError){const _0x175c67=userFacingLovrabetMessage(_0xa2c16),_0x2b866f=_0xa2c16,_0x673151=createRateLimitError({'status':_0x2b866f[_0xd7c903(0x122)],'errorCode':_0x2b866f[_0xd7c903(0x118)],'message':_0x175c67,'retryAfter':readRetryAfter(_0x2b866f['response']?.['headers'])??readRetryAfterSeconds(_0x2b866f[_0xd7c903(0x11a)])});return _0x673151??CliErrors[_0xd7c903(0x123)](_0x175c67);}return _0xa2c16;}function userFacingLovrabetMessage(_0x592cfa){const _0x398422=a93_0xab8d,_0x36be3e=_0x592cfa['description'];if(_0x36be3e!==undefined&&_0x36be3e!==null){if(typeof _0x36be3e===_0x398422(0x120)&&_0x36be3e[_0x398422(0x117)]())return _0x36be3e[_0x398422(0x117)]();try{return JSON[_0x398422(0x124)](_0x36be3e);}catch{}}return _0x592cfa[_0x398422(0x125)];}function a93_0x196d(){const _0x1c736f=['validation','stringify','message','16RWfXUy','4910592JbvsRl','trim','code','2677150KoNaoI','response','118FMGVNg','6249832uMcOqI','25444143qQCdvk','29541BpbLdh','1605649epzfrK','string','4932921cGNhZW','status'];a93_0x196d=function(){return _0x1c736f;};return a93_0x196d();}
1
+ (function(_0x42a9cf,_0x3bb1bb){const _0x518efe=a93_0x34a0,_0x519658=_0x42a9cf();while(!![]){try{const _0x292037=parseInt(_0x518efe(0x1e9))/0x1*(-parseInt(_0x518efe(0x1fb))/0x2)+-parseInt(_0x518efe(0x1f6))/0x3*(parseInt(_0x518efe(0x1fa))/0x4)+-parseInt(_0x518efe(0x1f4))/0x5+parseInt(_0x518efe(0x1f8))/0x6+-parseInt(_0x518efe(0x1f7))/0x7*(-parseInt(_0x518efe(0x1ee))/0x8)+parseInt(_0x518efe(0x1f5))/0x9*(-parseInt(_0x518efe(0x1ea))/0xa)+parseInt(_0x518efe(0x1f9))/0xb*(parseInt(_0x518efe(0x1f1))/0xc);if(_0x292037===_0x3bb1bb)break;else _0x519658['push'](_0x519658['shift']());}catch(_0x20b4a9){_0x519658['push'](_0x519658['shift']());}}}(a93_0x2c09,0x6dbcf));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a93_0x2c09(){const _0x80d360=['357vApiVd','4826964baUFqg','77mUzJJp','36TETlUF','574040QlxjsP','validation','2DMLHhq','10CkmxBl','stringify','string','trim','3000OmsVzv','description','response','1772796FVlZar','code','message','150285kKZPGA','3475287dlJBQq','139341KdlvQb'];a93_0x2c09=function(){return _0x80d360;};return a93_0x2c09();}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';function a93_0x34a0(_0x31fd26,_0x470fb2){_0x31fd26=_0x31fd26-0x1e9;const _0x2c093c=a93_0x2c09();let _0x34a0ca=_0x2c093c[_0x31fd26];return _0x34a0ca;}export function mapUserFacingExecuteError(_0x55f3b2){const _0x2195c5=a93_0x34a0;if(_0x55f3b2 instanceof LovrabetError){const _0x2dc0ed=userFacingLovrabetMessage(_0x55f3b2),_0x484931=_0x55f3b2,_0x1349a8=createRateLimitError({'status':_0x484931['status'],'errorCode':_0x484931[_0x2195c5(0x1f2)],'message':_0x2dc0ed,'retryAfter':readRetryAfter(_0x484931[_0x2195c5(0x1f0)]?.['headers'])??readRetryAfterSeconds(_0x484931['response'])});return _0x1349a8??CliErrors[_0x2195c5(0x1fc)](_0x2dc0ed);}return _0x55f3b2;}function userFacingLovrabetMessage(_0x1d157e){const _0x2b47ba=a93_0x34a0,_0x44d2cc=_0x1d157e[_0x2b47ba(0x1ef)];if(_0x44d2cc!==undefined&&_0x44d2cc!==null){if(typeof _0x44d2cc===_0x2b47ba(0x1ec)&&_0x44d2cc[_0x2b47ba(0x1ed)]())return _0x44d2cc[_0x2b47ba(0x1ed)]();try{return JSON[_0x2b47ba(0x1eb)](_0x44d2cc);}catch{}}return _0x1d157e[_0x2b47ba(0x1f3)];}