@lovrabet/lovrabet-cli 2.1.23-beta.1 → 2.1.23-beta.2

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 (138) 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.d.ts +4 -8
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.d.ts +1 -16
  10. package/lib/commands/app/shared.js +1 -1
  11. package/lib/commands/app-config/get.js +1 -1
  12. package/lib/commands/app-config/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.d.ts +2 -2
  16. package/lib/commands/auth/index.js +1 -1
  17. package/lib/commands/auth/prompt.js +1 -1
  18. package/lib/commands/bff/detail.js +1 -1
  19. package/lib/commands/bff/exec.js +1 -1
  20. package/lib/commands/bff/index.js +1 -1
  21. package/lib/commands/cli-skill/index.js +1 -1
  22. package/lib/commands/common/config-policy.d.ts +4 -8
  23. package/lib/commands/common/config-policy.js +1 -1
  24. package/lib/commands/common/constraints.js +1 -1
  25. package/lib/commands/common/flags.js +1 -1
  26. package/lib/commands/common/local-file.js +1 -1
  27. package/lib/commands/config/definitions.js +1 -1
  28. package/lib/commands/config/shared.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.d.ts +6 -24
  37. package/lib/commands/init.js +1 -1
  38. package/lib/commands/kb/index.js +1 -1
  39. package/lib/commands/logs/index.js +1 -1
  40. package/lib/commands/ocr/index.js +1 -1
  41. package/lib/commands/personal-bff/index.js +1 -1
  42. package/lib/commands/registry.d.ts +7 -0
  43. package/lib/commands/registry.js +1 -1
  44. package/lib/commands/schedule/index.js +1 -1
  45. package/lib/commands/schema.js +1 -1
  46. package/lib/commands/service/dynamic.js +1 -1
  47. package/lib/commands/service/function-name-adapter.js +1 -1
  48. package/lib/commands/service/index.js +1 -1
  49. package/lib/commands/service/registry.js +1 -1
  50. package/lib/commands/skill/commands/create.js +1 -1
  51. package/lib/commands/skill/commands/diagram.js +1 -1
  52. package/lib/commands/skill/commands/install.js +1 -1
  53. package/lib/commands/skill/commands/list.js +1 -1
  54. package/lib/commands/skill/commands/push.js +1 -1
  55. package/lib/commands/skill/commands/validate.js +1 -1
  56. package/lib/commands/skill/diagram.js +1 -1
  57. package/lib/commands/skill/flags.js +1 -1
  58. package/lib/commands/skill/index.js +1 -1
  59. package/lib/commands/skill/manifest-helpers.js +1 -1
  60. package/lib/commands/skill/push-execute.js +1 -1
  61. package/lib/commands/skill/push-flow-helpers.js +1 -1
  62. package/lib/commands/skill/push-retarget.js +1 -1
  63. package/lib/commands/skill/scopes.js +1 -1
  64. package/lib/commands/skill/summary.js +1 -1
  65. package/lib/commands/skill/templates.js +1 -1
  66. package/lib/commands/skill/validate.js +1 -1
  67. package/lib/commands/sql/detail.js +1 -1
  68. package/lib/commands/sql/exec.js +1 -1
  69. package/lib/commands/sql/index.js +1 -1
  70. package/lib/commands/update.js +1 -1
  71. package/lib/commands/workspace/index.js +1 -1
  72. package/lib/config/schema.js +1 -1
  73. package/lib/constant/app.js +1 -1
  74. package/lib/constant/auth-mode.js +1 -1
  75. package/lib/constant/cli.js +1 -1
  76. package/lib/constant/defaults.js +1 -1
  77. package/lib/constant/distribution.js +1 -1
  78. package/lib/constant/domain.js +1 -1
  79. package/lib/constant/env.js +1 -1
  80. package/lib/constant/output.js +1 -1
  81. package/lib/constant/product.js +1 -1
  82. package/lib/constant/risk.js +1 -1
  83. package/lib/constant/url.js +1 -1
  84. package/lib/context.d.ts +5 -5
  85. package/lib/context.js +1 -1
  86. package/lib/core/api-client.js +1 -1
  87. package/lib/core/db-resolver.js +1 -1
  88. package/lib/core/sdk-client.js +1 -1
  89. package/lib/errors.js +1 -1
  90. package/lib/framework/build-all-flags.js +1 -1
  91. package/lib/framework/dryrun.js +1 -1
  92. package/lib/framework/flags.js +1 -1
  93. package/lib/framework/help.js +1 -1
  94. package/lib/framework/index.js +1 -1
  95. package/lib/framework/output.js +1 -1
  96. package/lib/framework/preparse.js +1 -1
  97. package/lib/framework/rate-limit.js +1 -1
  98. package/lib/framework/raw-flags.js +1 -1
  99. package/lib/framework/response.js +1 -1
  100. package/lib/framework/runner-confirmation.js +1 -1
  101. package/lib/framework/runner-error.js +1 -1
  102. package/lib/framework/runner.js +1 -1
  103. package/lib/framework/schema-export.js +1 -1
  104. package/lib/framework/service-order.js +1 -1
  105. package/lib/framework/types.js +1 -1
  106. package/lib/generated/build-info.d.ts +4 -4
  107. package/lib/generated/build-info.js +1 -1
  108. package/lib/help.js +1 -1
  109. package/lib/runtime/confirmation.js +1 -1
  110. package/lib/runtime/event.js +1 -1
  111. package/lib/runtime/index.js +1 -1
  112. package/lib/runtime/queue.js +1 -1
  113. package/lib/runtime/resolve.js +1 -1
  114. package/lib/skills/npx-skills-add.js +1 -1
  115. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  116. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  117. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  118. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  119. package/lib/skills/runtime-skill-sync/links.js +1 -1
  120. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  121. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  122. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  123. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  124. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  125. package/lib/skills/runtime-skill-sync/push.js +1 -1
  126. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  127. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  128. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  129. package/lib/skills/runtime-skill-sync.js +1 -1
  130. package/lib/utils/apply-jq-filter.js +1 -1
  131. package/lib/utils/logger.js +1 -1
  132. package/lib/utils/lossless-json.js +1 -1
  133. package/lib/utils/params.js +1 -1
  134. package/lib/utils/platform.js +1 -1
  135. package/lib/utils/update-notice.js +1 -1
  136. package/lib/utils/version.js +1 -1
  137. package/lib/utils/write-cli-side-channel.js +1 -1
  138. package/package.json +1 -1
@@ -1 +1 @@
1
- function a78_0x42e1(){const _0x1580f7=['publishedVersion','Check\x20your\x20credentials\x20and\x20try\x20again.','PRIVATE','headers','string','Toolbox\x20API\x20error:\x20','message','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','skillCode','/schedules','?appCode=','PUT','favorite','msg','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','1218180SjFIGZ','Request\x20timeout:\x20','Invalid\x20app\x20config\x20value:\x20key=','warnings','Toolbox\x20error\x20code:\x20','example','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','query','skillName','Configure\x20accessKey\x20in\x20','effective','isJson','text','undefined','/execute?appCode=','entries','visibility','application/octet-stream','DELETE','boolean','/publish','invokeSource','validation','headlineVersion','224188wMHnAd','application/json','/diagram','displayName','GET','/run','/client/dataset/get-driven-data?code=','/client/app-config/getByKey?',',\x20name=','/client/artifact/list?','/client/artifact/','functions','valid','isArray','file','AbortError','appName','ownerPreviewVersion','code','SQL\x20query\x20not\x20found:\x20','/client/bff/endpoint/','from','slug','131551vdBNat','base64','artifactType','functionName','/client/artifact/create','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','version','application/zip','stringify','diagram','found','isInteger','apiError','/update','object','/client/dataset/list','sourceFingerprint','errors','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','NAMESPACE_ONLY','publish','2286954wsynrW','/client/runtime-bff/personal/','/versions/','diagramValidated','cursor','abort','arrayBuffer','replace','markdown','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','success','6DgvSPB','appCode','scope','errorMsg','/client/knowledge-base/personal/','/validate','values','searchParams','source','96TglsoI','/client/app/my-apps','API\x20error:\x20','trim','resolvedSlug','filter','/api/cli/v1/skills/','Personal\x20BFF\x20not\x20found:\x20id=','summary','status','personal','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','/client/ocr','set','error','/client/runtime-bff/personal/create','Download\x20failed:\x20','diagramBound','test','Knowledge-base\x20entry\x20not\x20found:\x20id=','data','7385520shFarv','tableData','skill','join','sqlCode','resolvedVersion','Toolbox\x20API\x20error','name','/client/knowledge-base/personal/list?appCode=','confirmWarnings','packageBase64','topK','SkillHub\x20API\x20error:\x20','items','errorCode','1zpNdYD','POST','append','limit','625682ENrpWx','API\x20error\x20code:\x20','newConfigFileName','toLowerCase','Artifact\x20not\x20found:\x20id=','signal','/client/knowledge-base/personal/create','toString','company','/client/sql/query','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','namespace','1021509JHZztN','tags','authRequired','description'];a78_0x42e1=function(){return _0x1580f7;};return a78_0x42e1();}(function(_0x5da8d6,_0x2d71cb){const _0x286520=a78_0x2f37,_0x242855=_0x5da8d6();while(!![]){try{const _0x197712=-parseInt(_0x286520(0x78))/0x1*(-parseInt(_0x286520(0x7c))/0x2)+parseInt(_0x286520(0x8a))/0x3+parseInt(_0x286520(0xb5))/0x4+-parseInt(_0x286520(0x9d))/0x5*(-parseInt(_0x286520(0xec))/0x6)+parseInt(_0x286520(0xcc))/0x7*(parseInt(_0x286520(0xf5))/0x8)+-parseInt(_0x286520(0xe1))/0x9+-parseInt(_0x286520(0x10a))/0xa;if(_0x197712===_0x2d71cb)break;else _0x242855['push'](_0x242855['shift']());}catch(_0x147dbc){_0x242855['push'](_0x242855['shift']());}}}(a78_0x42e1,0x2d61d));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(_0x595f27){_activeAK=_0x595f27||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x4867f6){const _0xb0c936=a78_0x2f37;for(const _0xd65bb of _0x4867f6){if(typeof _0xd65bb==='string'&&_0xd65bb[_0xb0c936(0xf8)]())return _0xd65bb[_0xb0c936(0xf8)]();}return undefined;}async function decodeResponseBody(_0x641ac3){const _0x563da9=a78_0x2f37;if(typeof _0x641ac3[_0x563da9(0xa9)]==='function')try{const _0x538896=await _0x641ac3[_0x563da9(0xa9)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x538896),'text':_0x538896};}catch{return{'isJson':![],'text':_0x538896['trim']()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x641ac3['json']()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0xce3c63,_0x10309a,_0x20d4a0){const _0x4535b1=a78_0x2f37,_0x5296ff=_0x10309a&&typeof _0x10309a===_0x4535b1(0xda)?_0x10309a:{},_0x9258eb=[_0x5296ff[_0x4535b1(0xfe)],_0x5296ff[_0x4535b1(0xc7)]]['find'](_0x227286=>Number(_0x227286)===0x1ad),_0x3d6fa6=createRateLimitError({'status':_0xce3c63[_0x4535b1(0xfe)]===0x1ad?_0xce3c63[_0x4535b1(0xfe)]:_0x9258eb??_0xce3c63[_0x4535b1(0xfe)],'errorCode':firstString(_0x5296ff[_0x4535b1(0x77)],typeof _0x5296ff['code']===_0x4535b1(0x92)?_0x5296ff[_0x4535b1(0xc7)]:undefined),'message':firstString(_0x5296ff['errorMsg'],_0x5296ff[_0x4535b1(0x94)],_0x5296ff['msg'],_0x20d4a0),'retryAfter':readRetryAfter(_0xce3c63[_0x4535b1(0x91)])??readRetryAfterSeconds(_0x10309a)});if(_0x3d6fa6)throw _0x3d6fa6;}async function apiRequest(_0x41df5a,_0x296fdc={}){const _0x5f564e=a78_0x2f37,{method:method=_0x5f564e(0xb9),body:_0x46e1c4,headers:headers={},timeout:timeout=0x7530}=_0x296fdc,_0x1314d2=_activeAK,_0x1fb24d=getRuntimeDomain();if(!_0x1314d2)throw CliErrors['authRequired'](_0x5f564e(0xa6)+PRODUCT_CONFIG[_0x5f564e(0x7e)]+'.');const _0x3a4502=''+_0x1fb24d+_0x41df5a,_0x364f64={'X-User-AK':_0x1314d2},_0x391b15=new AbortController(),_0x53e595=setTimeout(()=>_0x391b15[_0x5f564e(0xe6)](),timeout);try{const _0x3b8640=await fetch(_0x3a4502,{'method':method,'headers':{'Content-Type':_0x5f564e(0xb6),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x364f64,...headers},'body':_0x46e1c4?JSON['stringify'](_0x46e1c4):undefined,'signal':_0x391b15[_0x5f564e(0x81)]}),_0x838f5d=await decodeResponseBody(_0x3b8640);if(!_0x838f5d[_0x5f564e(0xa8)]){throwIfRateLimited(_0x3b8640,undefined,_0x838f5d[_0x5f564e(0xa9)]);throw CliErrors['apiError']('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x3b8640[_0x5f564e(0xfe)]+')',_0x3b8640[_0x5f564e(0xfe)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x4088dd=_0x838f5d[_0x5f564e(0x109)];throwIfRateLimited(_0x3b8640,_0x4088dd);if(!_0x3b8640['ok']||_0x4088dd[_0x5f564e(0xeb)]===![])throw CliErrors[_0x5f564e(0xd8)](_0x4088dd[_0x5f564e(0xef)]||_0x4088dd['message']||_0x5f564e(0xf7)+_0x3b8640['status'],_0x4088dd[_0x5f564e(0x77)]?_0x5f564e(0x7d)+_0x4088dd[_0x5f564e(0x77)]:undefined);return _0x4088dd;}catch(_0xfcd1e9){if(_0xfcd1e9 instanceof Error&&_0xfcd1e9[_0x5f564e(0x111)]===_0x5f564e(0xc4))throw CliErrors[_0x5f564e(0xd8)](_0x5f564e(0x9e)+_0x3a4502);throw _0xfcd1e9;}finally{clearTimeout(_0x53e595);}}async function apiBinaryRequest(_0x2135c5,_0x1b5ec0={}){const _0x1da783=a78_0x2f37,{method:method=_0x1da783(0xb9),headers:headers={},timeout:timeout=0x7530}=_0x1b5ec0,_0x4646f7=_activeAK,_0x39e3ef=getRuntimeDomain();if(!_0x4646f7)throw CliErrors[_0x1da783(0x8c)](_0x1da783(0xa6)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x278f83=''+_0x39e3ef+_0x2135c5,_0x522a29=new AbortController(),_0x47639e=setTimeout(()=>_0x522a29[_0x1da783(0xe6)](),timeout);try{const _0x2fa4d9=await fetch(_0x278f83,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x4646f7,...headers},'signal':_0x522a29[_0x1da783(0x81)]});if(!_0x2fa4d9['ok']){const _0x4dbed1=await decodeResponseBody(_0x2fa4d9),_0x36cbe2=_0x4dbed1[_0x1da783(0x109)]&&typeof _0x4dbed1[_0x1da783(0x109)]===_0x1da783(0xda)?_0x4dbed1[_0x1da783(0x109)]:{},_0x359e72=firstString(_0x36cbe2['errorMsg'],_0x36cbe2[_0x1da783(0x94)],_0x36cbe2[_0x1da783(0x77)],_0x4dbed1[_0x1da783(0xa9)]);throwIfRateLimited(_0x2fa4d9,_0x4dbed1[_0x1da783(0x109)],_0x359e72);throw CliErrors['apiError'](_0x359e72||_0x1da783(0xf7)+_0x2fa4d9['status'],_0x1da783(0x105)+_0x278f83);}return Buffer[_0x1da783(0xca)](await _0x2fa4d9[_0x1da783(0xe7)]());}catch(_0x1d75f6){if(_0x1d75f6 instanceof Error&&_0x1d75f6[_0x1da783(0x111)]==='AbortError')throw CliErrors[_0x1da783(0xd8)]('Request\x20timeout:\x20'+_0x278f83);throw _0x1d75f6;}finally{clearTimeout(_0x47639e);}}async function apiFormRequest(_0x3678f1,_0x12f68c,_0x1a362e={}){const _0x1170e8=a78_0x2f37,{timeout:timeout=0x7530}=_0x1a362e,_0x4cbacf=_activeAK,_0x48972b=getRuntimeDomain();if(!_0x4cbacf)throw CliErrors['authRequired'](_0x1170e8(0xa6)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x434b04=''+_0x48972b+_0x3678f1,_0x32f6d1=new AbortController(),_0x28ad5b=setTimeout(()=>_0x32f6d1[_0x1170e8(0xe6)](),timeout);try{const _0x4e516e=await fetch(_0x434b04,{'method':_0x1170e8(0x79),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1170e8(0xb2)],'X-User-AK':_0x4cbacf},'body':_0x12f68c,'signal':_0x32f6d1['signal']}),_0x54246e=await decodeResponseBody(_0x4e516e);if(!_0x54246e['isJson']){throwIfRateLimited(_0x4e516e,undefined,_0x54246e[_0x1170e8(0xa9)]);throw CliErrors[_0x1170e8(0xd8)](_0x1170e8(0xde)+_0x4e516e[_0x1170e8(0xfe)]+')',_0x4e516e['status']>=0x190?_0x1170e8(0x8f):undefined);}const _0x54f187=_0x54246e[_0x1170e8(0x109)];throwIfRateLimited(_0x4e516e,_0x54f187);if(!_0x4e516e['ok']||_0x54f187[_0x1170e8(0xeb)]===![])throw CliErrors[_0x1170e8(0xd8)](_0x54f187['errorMsg']||_0x54f187[_0x1170e8(0x94)]||_0x1170e8(0xf7)+_0x4e516e[_0x1170e8(0xfe)],_0x54f187[_0x1170e8(0x77)]?'API\x20error\x20code:\x20'+_0x54f187[_0x1170e8(0x77)]:undefined);return _0x54f187;}catch(_0x437013){if(_0x437013 instanceof Error&&_0x437013[_0x1170e8(0x111)]===_0x1170e8(0xc4))throw CliErrors['apiError'](_0x1170e8(0x9e)+_0x434b04);throw _0x437013;}finally{clearTimeout(_0x28ad5b);}}async function toolboxRequest(_0x1df727,_0x475ab4,_0xe5f76a={}){const _0x558a7b=a78_0x2f37,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0xe5f76a,_0x44cf2e=_activeAK;if(!_0x44cf2e)throw CliErrors['authRequired'](_0x558a7b(0xa6)+PRODUCT_CONFIG[_0x558a7b(0x7e)]+'.');const _0x370eb6=getApiDomain()[_0x558a7b(0xe8)](/\/$/,''),_0x242f92=new URL(_0x1df727,_0x370eb6+'/api/node-toolbox/');if(_0x475ab4)for(const [_0x113c57,_0x29e556]of Object[_0x558a7b(0xac)](_0x475ab4)){_0x29e556!==undefined&&_0x29e556!==null&&_0x242f92[_0x558a7b(0xf3)][_0x558a7b(0x102)](_0x113c57,String(_0x29e556));}const _0x4f1703=new AbortController(),_0x838f7f=setTimeout(()=>_0x4f1703[_0x558a7b(0xe6)](),timeout);try{const _0x4cf265=await fetch(_0x242f92,{'method':method,'headers':{'Content-Type':_0x558a7b(0xb6),'X-Invoke-Source':PRODUCT_CONFIG[_0x558a7b(0xb2)],'X-User-AK':_0x44cf2e,...headers},'signal':_0x4f1703[_0x558a7b(0x81)]}),_0x49a80e=await decodeResponseBody(_0x4cf265);if(!_0x49a80e['isJson']){throwIfRateLimited(_0x4cf265,undefined,_0x49a80e['text']);throw CliErrors['apiError'](_0x558a7b(0x86)+_0x4cf265[_0x558a7b(0xfe)]+')',_0x4cf265[_0x558a7b(0xfe)]>=0x190?_0x558a7b(0x8f):undefined);}const _0x2fc221=_0x49a80e[_0x558a7b(0x109)];throwIfRateLimited(_0x4cf265,_0x2fc221);if(!_0x4cf265['ok']){const _0x50e195=_0x2fc221&&typeof _0x2fc221===_0x558a7b(0xda)?_0x2fc221:{};throw CliErrors[_0x558a7b(0xd8)](_0x50e195[_0x558a7b(0xef)]||_0x50e195['message']||_0x558a7b(0x93)+_0x4cf265[_0x558a7b(0xfe)],_0x50e195[_0x558a7b(0x77)]?_0x558a7b(0xa1)+_0x50e195['errorCode']:undefined);}if(_0x2fc221&&typeof _0x2fc221===_0x558a7b(0xda)&&_0x558a7b(0xeb)in _0x2fc221&&typeof _0x2fc221['success']==='boolean'){const _0x55e8ab=_0x2fc221;if(!_0x55e8ab[_0x558a7b(0xeb)])throw CliErrors[_0x558a7b(0xd8)](_0x55e8ab[_0x558a7b(0xef)]||_0x55e8ab[_0x558a7b(0x94)]||_0x558a7b(0x110),_0x55e8ab['errorCode']?_0x558a7b(0xa1)+_0x55e8ab[_0x558a7b(0x77)]:undefined);return _0x55e8ab[_0x558a7b(0x109)];}return _0x2fc221;}catch(_0x3998c2){if(_0x3998c2 instanceof Error&&_0x3998c2[_0x558a7b(0x111)]===_0x558a7b(0xc4))throw CliErrors[_0x558a7b(0xd8)]('Request\x20timeout:\x20'+_0x242f92['toString']());throw _0x3998c2;}finally{clearTimeout(_0x838f7f);}}async function skillHubJsonRequest(_0x40c0d9,_0x49b7fd={}){const _0x31f540=a78_0x2f37,{method:method=_0x31f540(0xb9),query:_0x53f99e,body:_0x27cd07,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x49b7fd,_0x4270b6=_activeAK;if(!_0x4270b6)throw CliErrors[_0x31f540(0x8c)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x5b0ad4=getSkillHubDomain()[_0x31f540(0xe8)](/\/$/,''),_0x47b985=new URL(_0x40c0d9,_0x5b0ad4+'/');if(_0x53f99e)for(const [_0x341e76,_0x42a2f4]of Object[_0x31f540(0xac)](_0x53f99e)){_0x42a2f4!==undefined&&_0x42a2f4!==null&&_0x47b985[_0x31f540(0xf3)][_0x31f540(0x102)](_0x341e76,String(_0x42a2f4));}const _0x1e7e8e=new AbortController(),_0x478052=setTimeout(()=>_0x1e7e8e[_0x31f540(0xe6)](),timeout);try{const _0xf57f2c=await fetch(_0x47b985[_0x31f540(0x83)](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x31f540(0xb2)],'X-User-AK':_0x4270b6,...headers},'body':_0x27cd07,'signal':_0x1e7e8e[_0x31f540(0x81)]}),_0x2700b2=await decodeResponseBody(_0xf57f2c);if(!_0x2700b2[_0x31f540(0xa8)]){if(allowNotFound&&_0xf57f2c['status']===0x194)return undefined;throwIfRateLimited(_0xf57f2c,undefined,_0x2700b2[_0x31f540(0xa9)]);throw CliErrors[_0x31f540(0xd8)](_0x31f540(0xea)+_0xf57f2c[_0x31f540(0xfe)]+')',_0xf57f2c[_0x31f540(0xfe)]>=0x190?_0x31f540(0x8f):undefined);}const _0x58cd78=_0x2700b2[_0x31f540(0x109)];throwIfRateLimited(_0xf57f2c,_0x58cd78);if(allowNotFound&&isSkillHubNotFoundResponse(_0xf57f2c['status'],_0x58cd78))return undefined;const _0x443176=!_0xf57f2c['ok']||_0x58cd78?.[_0x31f540(0xeb)]===![]||typeof _0x58cd78?.[_0x31f540(0xc7)]==='number'&&_0x58cd78[_0x31f540(0xc7)]>=0x190;if(_0x443176)throw CliErrors[_0x31f540(0xd8)](_0x58cd78?.[_0x31f540(0xef)]||_0x58cd78?.[_0x31f540(0x94)]||_0x58cd78?.[_0x31f540(0x9b)]||_0x31f540(0x75)+_0xf57f2c[_0x31f540(0xfe)],_0x58cd78?.[_0x31f540(0x77)]?'SkillHub\x20error\x20code:\x20'+_0x58cd78[_0x31f540(0x77)]:undefined);return _0x58cd78?.[_0x31f540(0x109)]??_0x58cd78;}catch(_0x6c63a1){if(_0x6c63a1 instanceof Error&&_0x6c63a1[_0x31f540(0x111)]===_0x31f540(0xc4))throw CliErrors[_0x31f540(0xd8)]('Request\x20timeout:\x20'+_0x47b985[_0x31f540(0x83)]());throw _0x6c63a1;}finally{clearTimeout(_0x478052);}}function isSkillHubNotFoundResponse(_0x5752cd,_0x4b20a1){const _0x33c8fb=a78_0x2f37;if(_0x5752cd===0x194||_0x4b20a1?.[_0x33c8fb(0xc7)]===0x194)return!![];if(_0x5752cd!==0x190&&_0x4b20a1?.['code']!==0x190)return![];const _0x4089a6=[_0x4b20a1?.[_0x33c8fb(0x9b)],_0x4b20a1?.['message'],_0x4b20a1?.[_0x33c8fb(0xef)],_0x4b20a1?.[_0x33c8fb(0x103)]]['filter'](_0x42946c=>typeof _0x42946c===_0x33c8fb(0x92))[_0x33c8fb(0x10d)]('\x20');return/skill not found\b/i[_0x33c8fb(0x107)](_0x4089a6);}async function skillHubBinaryRequest(_0x97a6b8,_0x48f8f9={}){const _0x43403f=a78_0x2f37,{query:_0x2e9f56,headers:headers={},timeout:timeout=0x7530}=_0x48f8f9,_0x2d1e91=_activeAK;if(!_0x2d1e91)throw CliErrors[_0x43403f(0x8c)](_0x43403f(0xa6)+PRODUCT_CONFIG[_0x43403f(0x7e)]+'.');const _0x9a7621=getSkillHubDomain()[_0x43403f(0xe8)](/\/$/,''),_0x386073=new URL(_0x97a6b8,_0x9a7621+'/');if(_0x2e9f56)for(const [_0x2adae6,_0x2ccfcd]of Object['entries'](_0x2e9f56)){_0x2ccfcd!==undefined&&_0x2ccfcd!==null&&_0x386073['searchParams'][_0x43403f(0x102)](_0x2adae6,String(_0x2ccfcd));}const _0x5c4503=new AbortController(),_0x4e8d41=setTimeout(()=>_0x5c4503['abort'](),timeout);try{const _0x1337fc=await fetch(_0x386073[_0x43403f(0x83)](),{'method':_0x43403f(0xb9),'headers':{'Accept':_0x43403f(0xae),'X-Invoke-Source':PRODUCT_CONFIG[_0x43403f(0xb2)],'X-User-AK':_0x2d1e91,...headers},'signal':_0x5c4503['signal']});if(!_0x1337fc['ok']){const _0x25b52e=await decodeResponseBody(_0x1337fc),_0x1ba177=_0x25b52e[_0x43403f(0x109)]&&typeof _0x25b52e['data']===_0x43403f(0xda)?_0x25b52e[_0x43403f(0x109)]:{},_0x12a6b4=firstString(_0x1ba177[_0x43403f(0xef)],_0x1ba177['message'],_0x1ba177[_0x43403f(0x9b)],_0x1ba177[_0x43403f(0x77)],_0x25b52e['text']);throwIfRateLimited(_0x1337fc,_0x25b52e[_0x43403f(0x109)],_0x12a6b4);throw CliErrors[_0x43403f(0xd8)](_0x12a6b4||_0x43403f(0x75)+_0x1337fc[_0x43403f(0xfe)],_0x43403f(0x105)+_0x386073[_0x43403f(0x83)]());}return Buffer['from'](await _0x1337fc[_0x43403f(0xe7)]());}catch(_0x44649b){if(_0x44649b instanceof Error&&_0x44649b['name']===_0x43403f(0xc4))throw CliErrors[_0x43403f(0xd8)](_0x43403f(0x9e)+_0x386073[_0x43403f(0x83)]());throw _0x44649b;}finally{clearTimeout(_0x4e8d41);}}export async function getBffEndpointContract(_0x2d0a6e,_0x32c07a){const _0xfe42dc=a78_0x2f37;if(_0x32c07a===_0xfe42dc(0xc0))throw CliErrors[_0xfe42dc(0xb3)](_0xfe42dc(0x100)+_0x2d0a6e+_0xfe42dc(0xbd)+_0x32c07a);const _0x4b63b2=await apiRequest(_0xfe42dc(0xc9)+encodeURIComponent(_0x2d0a6e)+'/'+encodeURIComponent(_0x32c07a)),_0x229b5b=_0x4b63b2[_0xfe42dc(0x109)];if(!_0x229b5b||typeof _0x229b5b!=='object'||Array[_0xfe42dc(0xc2)](_0x229b5b)||_0x229b5b['appCode']!==_0x2d0a6e||_0x229b5b[_0xfe42dc(0xcf)]!==_0x32c07a)throw CliErrors[_0xfe42dc(0xb3)]('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x2d0a6e+',\x20name='+_0x32c07a);return{'appCode':_0x229b5b['appCode'],'functionName':_0x229b5b[_0xfe42dc(0xcf)],'description':_0x229b5b['description'],'version':_0x229b5b['version'],'gmtModified':_0x229b5b['gmtModified']};}export async function getSqlQueryInfo(_0x48a582,_0x31b11d){const _0x57745e=a78_0x2f37,_0x2f740a=await apiRequest(_0x57745e(0x85),{'method':'POST','body':{'appCode':_0x48a582,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x31b11d}}),_0x7364a9=_0x2f740a[_0x57745e(0x109)],_0x496997=_0x7364a9&&typeof _0x7364a9===_0x57745e(0xda)&&_0x57745e(0x10b)in _0x7364a9?_0x7364a9[_0x57745e(0x10b)]?.[0x0]:_0x7364a9&&typeof _0x7364a9===_0x57745e(0xda)&&_0x57745e(0x10e)in _0x7364a9?_0x7364a9:undefined;if(!_0x496997)throw CliErrors['validation'](_0x57745e(0xc8)+_0x31b11d);return _0x496997;}function isRemoteAppItem(_0x265d52){const _0x21dd63=a78_0x2f37;return!!_0x265d52&&typeof _0x265d52==='object'&&typeof _0x265d52[_0x21dd63(0xed)]===_0x21dd63(0x92)&&typeof _0x265d52[_0x21dd63(0xc5)]===_0x21dd63(0x92);}function extractRemoteAppItems(_0xe26bf7){const _0x56ca2b=a78_0x2f37;if(Array['isArray'](_0xe26bf7))return _0xe26bf7[_0x56ca2b(0xfa)](isRemoteAppItem);if(!_0xe26bf7||typeof _0xe26bf7!==_0x56ca2b(0xda))throw CliErrors[_0x56ca2b(0xd8)](_0x56ca2b(0xa3));const _0x52dca5=_0xe26bf7;if(Array[_0x56ca2b(0xc2)](_0x52dca5['tableData']))return _0x52dca5[_0x56ca2b(0x10b)][_0x56ca2b(0xfa)](isRemoteAppItem);if(_0x52dca5[_0x56ca2b(0x109)]&&typeof _0x52dca5[_0x56ca2b(0x109)]===_0x56ca2b(0xda)){const _0x238365=_0x52dca5[_0x56ca2b(0x109)];if(Array[_0x56ca2b(0xc2)](_0x238365[_0x56ca2b(0x10b)]))return _0x238365['tableData'][_0x56ca2b(0xfa)](isRemoteAppItem);}throw CliErrors[_0x56ca2b(0xd8)](_0x56ca2b(0x95));}export async function getMyApps(){const _0x27b357=a78_0x2f37,_0x13afa6=await apiRequest(_0x27b357(0xf6));return extractRemoteAppItems(_0x13afa6[_0x27b357(0x109)]);}export async function getLoginUserInfo(){const _0x56808b=a78_0x2f37,_0x2de707=await apiRequest('/client/user/loginUserInfo');if(!_0x2de707[_0x56808b(0x109)]||typeof _0x2de707[_0x56808b(0x109)]!=='object'||Array[_0x56808b(0xc2)](_0x2de707[_0x56808b(0x109)]))throw CliErrors[_0x56808b(0xd8)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x2de707[_0x56808b(0x109)];}function runtimeSchedulePath(_0x527d5c,_0x5cd995=''){const _0x31db6c=a78_0x2f37;return'/api/harness/apps/'+encodeURIComponent(_0x527d5c)+_0x31db6c(0x97)+_0x5cd995;}export async function validateRuntimeSchedule(_0x498d12,_0x5a35b2){const _0x10185a=a78_0x2f37,_0x500abd=await apiRequest(runtimeSchedulePath(_0x498d12,_0x10185a(0xf1)),{'method':_0x10185a(0x79),'body':_0x5a35b2});return _0x500abd['data'];}export async function createRuntimeSchedule(_0x6af571,_0x44a8d9){const _0x5330a7=a78_0x2f37,_0x1b3b59=await apiRequest(runtimeSchedulePath(_0x6af571),{'method':'POST','body':_0x44a8d9});return _0x1b3b59[_0x5330a7(0x109)];}export async function listRuntimeSchedules(_0x43321c,_0x2a3597={}){const _0x2df149=a78_0x2f37,_0x93b216=new URLSearchParams();if(_0x2a3597[_0x2df149(0x7b)]!==undefined)_0x93b216[_0x2df149(0x102)](_0x2df149(0x7b),String(_0x2a3597['limit']));if(_0x2a3597[_0x2df149(0xe5)])_0x93b216['set'](_0x2df149(0xe5),_0x2a3597[_0x2df149(0xe5)]);const _0x2ded47=_0x93b216['size']>0x0?'?'+_0x93b216[_0x2df149(0x83)]():'',_0x23acc6=await apiRequest(''+runtimeSchedulePath(_0x43321c)+_0x2ded47);return _0x23acc6[_0x2df149(0x109)];}export async function getRuntimeSchedule(_0x2d67d4,_0xf36772){const _0x1f0b3a=a78_0x2f37,_0x3f0c9d=await apiRequest(runtimeSchedulePath(_0x2d67d4,'/'+encodeURIComponent(_0xf36772)));return _0x3f0c9d[_0x1f0b3a(0x109)];}export async function deleteRuntimeSchedule(_0x1b248c,_0x542250){const _0x26650c=a78_0x2f37,_0x46d937=await apiRequest(runtimeSchedulePath(_0x1b248c,'/'+encodeURIComponent(_0x542250)),{'method':_0x26650c(0xaf)});return _0x46d937[_0x26650c(0x109)];}export async function runRuntimeSchedule(_0x4e260c,_0x350a99){const _0x5213ab=a78_0x2f37,_0x49a396=await apiRequest(runtimeSchedulePath(_0x4e260c,'/'+encodeURIComponent(_0x350a99)+_0x5213ab(0xba)),{'method':_0x5213ab(0x79)});return _0x49a396[_0x5213ab(0x109)];}export async function listDatasets(_0xd391a3,_0x2f0528){const _0x510405=a78_0x2f37,_0x1c76e0=await apiRequest(_0x510405(0xdb),{'method':_0x510405(0x79),'body':{'appCode':_0xd391a3,..._0x2f0528?.[_0x510405(0xc7)]&&{'code':_0x2f0528[_0x510405(0xc7)]},..._0x2f0528?.['name']&&{'name':_0x2f0528[_0x510405(0x111)]}}});return extractList(_0x1c76e0[_0x510405(0x109)]);}export async function getDatasetDetail(_0x2c99ba){const _0x276a38=a78_0x2f37,_0x2bc130=await apiRequest(_0x276a38(0xbb)+encodeURIComponent(_0x2c99ba));return _0x2bc130[_0x276a38(0x109)];}export async function getDatasetSdkUsageDoc(_0x2cb313,_0x7bc64b){const _0x133ffd=a78_0x2f37,_0x5b2558=await toolboxRequest('api-doc-generator',{'datasetCode':_0x2cb313,'appCode':_0x7bc64b});return typeof _0x5b2558?.[_0x133ffd(0xe9)]===_0x133ffd(0x92)?_0x5b2558[_0x133ffd(0xe9)]:'';}export async function uploadRuntimeFile(_0xb0236c,_0x1f9e07){const _0x28f16d=a78_0x2f37,_0x17ada0=await readFile(_0x1f9e07),_0x48806d=new FormData();_0x48806d['append'](_0x28f16d(0xed),_0xb0236c),_0x48806d[_0x28f16d(0x7a)](_0x28f16d(0xc3),new Blob([new Uint8Array(_0x17ada0)]),basename(_0x1f9e07));const _0x474796=await apiFormRequest('/client/uploadFile',_0x48806d);return _0x474796['data'];}export async function queryRuntimeFileUrl(_0x3c032b,_0x4964f3={}){const _0x5b0f05=a78_0x2f37,_0x509c62=await apiRequest('/client/queryFileUrl',{'method':_0x5b0f05(0x79),'body':{'filePath':_0x3c032b,'downloadFlag':_0x4964f3['download']??![],..._0x4964f3['longTerm']?{'longTerm':!![]}:{}}});return _0x509c62[_0x5b0f05(0x109)];}export async function recognizeRuntimeOcr(_0x3b179f,_0x48388d){const _0x4d3c99=a78_0x2f37,_0x113a71=await apiRequest(_0x4d3c99(0x101),{'method':'POST','body':{'appCode':_0x3b179f,'url':_0x48388d['url'],'type':_0x48388d['type']}});return _0x113a71[_0x4d3c99(0x109)];}export async function getRuntimeAppConfigByKey(_0x5dc045,_0x4ac8e4){const _0x5deac0=a78_0x2f37,_0x271ee9=new URLSearchParams({'appCode':_0x5dc045,'key':_0x4ac8e4}),_0x36cc8d=await apiRequest(_0x5deac0(0xbc)+_0x271ee9['toString']());if(typeof _0x36cc8d[_0x5deac0(0x109)]!==_0x5deac0(0x92))throw CliErrors['validation'](_0x5deac0(0x9f)+_0x4ac8e4);return _0x36cc8d[_0x5deac0(0x109)];}export async function listRuntimeArtifacts(_0x3c3457,_0x205572){const _0x260eb0=a78_0x2f37,_0x30b1db=new URLSearchParams({'appCode':_0x3c3457});if(_0x205572?.[_0x260eb0(0xce)])_0x30b1db[_0x260eb0(0x102)](_0x260eb0(0xce),_0x205572['artifactType']);if(_0x205572?.[_0x260eb0(0xf4)])_0x30b1db[_0x260eb0(0x102)](_0x260eb0(0xf4),_0x205572['source']);if(_0x205572?.[_0x260eb0(0x9a)]!==undefined)_0x30b1db['set'](_0x260eb0(0x9a),String(_0x205572[_0x260eb0(0x9a)]));const _0x2170c3=await apiRequest(_0x260eb0(0xbe)+_0x30b1db[_0x260eb0(0x83)]());return Array['isArray'](_0x2170c3[_0x260eb0(0x109)])?_0x2170c3['data']:[];}export async function getRuntimeArtifact(_0x5a467e,_0x517fc8){const _0x23f297=a78_0x2f37,_0x4d2a44=await apiRequest(_0x23f297(0xbf)+_0x5a467e+_0x23f297(0x98)+encodeURIComponent(_0x517fc8));if(!_0x4d2a44[_0x23f297(0x109)])throw CliErrors['validation'](_0x23f297(0x80)+_0x5a467e);return _0x4d2a44['data'];}export async function createRuntimeArtifact(_0x398ada,_0xf77e2c){const _0x4011a3=a78_0x2f37,_0x1749a0=await apiRequest(_0x4011a3(0xd0),{'method':_0x4011a3(0x79),'body':{'appCode':_0x398ada,..._0xf77e2c}});return _0x1749a0['data'];}export async function updateRuntimeArtifact(_0x1ad8d7,_0x303025,_0x1d6372){const _0x35dd77=a78_0x2f37,_0x323811=await apiRequest(_0x35dd77(0xbf)+_0x1ad8d7+_0x35dd77(0xd9),{'method':_0x35dd77(0x79),'body':{'appCode':_0x303025,..._0x1d6372}});return _0x323811[_0x35dd77(0x109)];}export async function listPersonalBffs(_0x4d1821){const _0x5dbc24=a78_0x2f37,_0x57a9d9=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x4d1821));return Array[_0x5dbc24(0xc2)](_0x57a9d9['data'])?_0x57a9d9['data']:[];}export async function getPersonalBff(_0x29a382,_0x16bc38){const _0x1c8558=a78_0x2f37,_0xa455ed=await apiRequest(_0x1c8558(0xe2)+_0x29a382+_0x1c8558(0x98)+encodeURIComponent(_0x16bc38));if(!_0xa455ed[_0x1c8558(0x109)])throw CliErrors[_0x1c8558(0xb3)](_0x1c8558(0xfc)+_0x29a382);return _0xa455ed[_0x1c8558(0x109)];}export async function createPersonalBff(_0xf3595a,_0x181773){const _0x3f588b=a78_0x2f37,_0x45299e=await apiRequest(_0x3f588b(0x104),{'method':'POST','body':{'appCode':_0xf3595a,..._0x181773}});return _0x45299e[_0x3f588b(0x109)];}export async function updatePersonalBff(_0x18fdb0,_0x4acf2b,_0x3deaff){const _0x4b02cb=a78_0x2f37,_0x35e43a=await apiRequest(_0x4b02cb(0xe2)+_0x18fdb0+_0x4b02cb(0xd9),{'method':_0x4b02cb(0x79),'body':{'appCode':_0x4acf2b,..._0x3deaff}});return _0x35e43a[_0x4b02cb(0x109)];}export async function executePersonalBff(_0x32bcc7,_0xf635e0,_0x1d21ed){const _0x114fb9=a78_0x2f37,_0x4ab056=await apiRequest(_0x114fb9(0xe2)+_0x32bcc7+_0x114fb9(0xab)+encodeURIComponent(_0xf635e0),{'method':_0x114fb9(0x79),'body':_0x1d21ed});return _0x4ab056[_0x114fb9(0x109)];}export async function listPersonalKnowledgeBaseItems(_0x266fe1){const _0x4e78fc=a78_0x2f37,_0x529b06=await apiRequest(_0x4e78fc(0x112)+encodeURIComponent(_0x266fe1));return Array[_0x4e78fc(0xc2)](_0x529b06[_0x4e78fc(0x109)])?_0x529b06[_0x4e78fc(0x109)]:[];}export async function getPersonalKnowledgeBaseItem(_0x24e11e,_0x46c177){const _0x4efcd6=a78_0x2f37,_0x248e0b=await apiRequest(_0x4efcd6(0xf0)+_0x24e11e+'?appCode='+encodeURIComponent(_0x46c177));if(!_0x248e0b['data'])throw CliErrors[_0x4efcd6(0xb3)](_0x4efcd6(0x108)+_0x24e11e);return _0x248e0b[_0x4efcd6(0x109)];}export async function createPersonalKnowledgeBaseItem(_0x192b75,_0x55748f){const _0x1a4e16=a78_0x2f37,_0x357c69=await apiRequest(_0x1a4e16(0x82),{'method':_0x1a4e16(0x79),'body':{'appCode':_0x192b75,..._0x55748f}});return _0x357c69[_0x1a4e16(0x109)];}export async function updatePersonalKnowledgeBaseItem(_0x5493a2,_0x15e113,_0x362e28){const _0x44add1=a78_0x2f37,_0x44445f=await apiRequest(_0x44add1(0xf0)+_0x5493a2+'/update',{'method':'POST','body':{'appCode':_0x15e113,..._0x362e28}});return _0x44445f[_0x44add1(0x109)];}export async function searchKnowledgeBase(_0x3ac0ca,_0x4636b4){const _0x5be782=a78_0x2f37,_0x471720=await apiRequest('/client/knowledge-base/search',{'method':_0x5be782(0x79),'body':{'appCode':_0x3ac0ca,'query':_0x4636b4[_0x5be782(0xa4)],..._0x4636b4[_0x5be782(0x74)]!==undefined?{'topK':_0x4636b4[_0x5be782(0x74)]}:{}}});return Array[_0x5be782(0xc2)](_0x471720['data'])?_0x471720['data']:[];}export async function getRuntimeSkillByCode(_0xebf603,_0x347e00){const _0x30a2d4=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0xebf603)+'/'+encodeURIComponent(_0x347e00),{'allowNotFound':!![]});return _0x30a2d4?skillHubRuntimeDetailToRuntimeSkill(_0x30a2d4):undefined;}export async function listRuntimeSkills(_0x42dfbc){const _0x2d106e=a78_0x2f37,_0x5a95c8=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x42dfbc[_0x2d106e(0xed)])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x42dfbc[_0x2d106e(0xed)],_0x5a95c8,_0x42dfbc[_0x2d106e(0xee)]??'all',_0x42dfbc[_0x2d106e(0xc7)]);}export async function listPersonalRuntimeSkills(_0x2e116b){const _0x51a81d=a78_0x2f37;return(await listRuntimeSkills({'appCode':_0x2e116b,'scope':_0x51a81d(0xff)}))[_0x51a81d(0xff)];}export async function listCompanyRuntimeSkills(_0x2066c2){const _0x43333a=a78_0x2f37;return(await listRuntimeSkills({'appCode':_0x2066c2,'scope':_0x43333a(0x84)}))['company'];}export async function listVisibleRuntimeSkills(_0x3edaa8){const _0xaf93b4=a78_0x2f37;return(await listRuntimeSkills({'appCode':_0x3edaa8,'scope':'all'}))[_0xaf93b4(0xa7)];}export async function createPersonalRuntimeSkill(_0x5463fd,_0x5c2eea,_0xac25b8={}){const _0x22773c=a78_0x2f37;return publishRuntimeSkill(_0x5463fd,_0x5c2eea,{'visibility':_0x22773c(0x90),'confirmWarnings':_0xac25b8[_0x22773c(0x72)]});}export async function updatePersonalRuntimeSkill(_0x239628,_0x1676a,_0x55412d,_0x12cf2c={}){const _0x3eae9d=a78_0x2f37;return publishRuntimeSkill(_0x1676a,{..._0x55412d,'skillCode':_0x55412d[_0x3eae9d(0x96)]??_0x239628},{'visibility':_0x3eae9d(0x90),'confirmWarnings':_0x12cf2c[_0x3eae9d(0x72)]});}export async function publishCompanyRuntimeSkill(_0x46fb25,_0xaf3666,_0x5790e5={}){const _0x348d46=a78_0x2f37;return publishRuntimeSkill(_0x46fb25,_0xaf3666,{'visibility':'NAMESPACE_ONLY','confirmWarnings':_0x5790e5[_0x348d46(0x72)]});}export async function validateRuntimeSkillPublish(_0xe9be05,_0x4dfcd5,_0x87299b){const _0x5cd414=a78_0x2f37,_0x163db7=buildRuntimeSkillPublishForm(_0x4dfcd5,_0x87299b[_0x5cd414(0xad)]),_0x15c1e9=await skillHubJsonRequest(_0x5cd414(0xfb)+encodeURIComponent(_0xe9be05)+'/publish/validate',{'method':_0x5cd414(0x79),'body':_0x163db7});return assertJointDiagramAcknowledged(_0x4dfcd5[_0x5cd414(0xd5)],_0x15c1e9[_0x5cd414(0xe4)],_0x5cd414(0xb3)),{'valid':_0x15c1e9[_0x5cd414(0xc1)]===!![],'errors':Array[_0x5cd414(0xc2)](_0x15c1e9[_0x5cd414(0xdd)])?_0x15c1e9[_0x5cd414(0xdd)]:[],'warnings':Array['isArray'](_0x15c1e9[_0x5cd414(0xa0)])?_0x15c1e9['warnings']:[],'resolvedSlug':_0x15c1e9[_0x5cd414(0xf9)],'resolvedVersion':_0x15c1e9[_0x5cd414(0x10f)],'diagramValidated':_0x15c1e9[_0x5cd414(0xe4)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x1d3084,_0x4a9f9d,_0x3c8cb8,_0x46d77c,_0x28037f){const _0x16399a=a78_0x2f37;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x1d3084,_0x4a9f9d,_0x3c8cb8,'/validate'),{'method':_0x16399a(0x79),'query':{'scope':_0x46d77c},'headers':{'Content-Type':'application/json'},'body':JSON[_0x16399a(0xd4)](_0x28037f)});}export async function putRuntimeSkillVersionDiagram(_0x59088d,_0x850eb4,_0x3022a7,_0x27e289,_0x5c248d){const _0xd840a7=a78_0x2f37;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x59088d,_0x850eb4,_0x3022a7),{'method':_0xd840a7(0x99),'query':{'scope':_0x27e289},'headers':{'Content-Type':'application/json'},'body':JSON[_0xd840a7(0xd4)](_0x5c248d)});}function a78_0x2f37(_0x8d850,_0x1a89bd){_0x8d850=_0x8d850-0x72;const _0x42e181=a78_0x42e1();let _0x2f37fc=_0x42e181[_0x8d850];return _0x2f37fc;}export async function getRuntimeSkillVersionDiagram(_0x509659,_0x1fc87c,_0x4fcc00,_0x3979d2){const _0x8a4d1e=a78_0x2f37,_0x3c9161=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x509659,_0x1fc87c,_0x4fcc00),{'query':{'scope':_0x3979d2}});if(typeof _0x3c9161[_0x8a4d1e(0xd6)]!==_0x8a4d1e(0xb0))throw CliErrors[_0x8a4d1e(0xd8)](_0x8a4d1e(0x88));const _0x4351a6=_0x3c9161[_0x8a4d1e(0xdc)];if(typeof _0x4351a6!==_0x8a4d1e(0x92)||!/^sha256:[0-9a-f]{64}$/[_0x8a4d1e(0x107)](_0x4351a6))throw CliErrors['apiError'](_0x8a4d1e(0x9c),_0x8a4d1e(0x87));const _0x48ebb3=_0x3c9161['diagramRevision'];if(_0x3c9161[_0x8a4d1e(0xd6)]&&(!Number[_0x8a4d1e(0xd7)](_0x48ebb3)||Number(_0x48ebb3)<0x1))throw CliErrors[_0x8a4d1e(0xd8)](_0x8a4d1e(0xd1));if(!_0x3c9161[_0x8a4d1e(0xd6)]&&_0x48ebb3!==undefined&&_0x48ebb3!==null)throw CliErrors[_0x8a4d1e(0xd8)]('Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.');const _0x15e088=_0x3c9161[_0x8a4d1e(0xd6)]?Number(_0x48ebb3):null;return{..._0x3c9161,'sourceFingerprint':_0x4351a6,'diagramRevision':_0x15e088,'expectedDiagramRevision':_0x15e088??0x0};}export async function downloadRuntimeSkillPackage(_0x5042ce,_0x33456c,_0x1fad5b,_0x5a0541){const _0x5e419a=a78_0x2f37;void _0x5042ce;const _0x409c9c=_0x5a0541?'/api/cli/v1/skills/'+encodeURIComponent(_0x1fad5b)+'/'+encodeURIComponent(_0x33456c)+'/versions/'+encodeURIComponent(_0x5a0541)+'/download':_0x5e419a(0xfb)+encodeURIComponent(_0x1fad5b)+'/'+encodeURIComponent(_0x33456c)+'/download';return skillHubBinaryRequest(_0x409c9c);}async function publishRuntimeSkill(_0x3ce572,_0x188965,_0x14a580){const _0x437dac=a78_0x2f37,_0x1918f0=buildRuntimeSkillPublishForm(_0x188965,_0x14a580[_0x437dac(0xad)]),_0x519160=await skillHubJsonRequest(_0x437dac(0xfb)+encodeURIComponent(_0x3ce572)+_0x437dac(0xb1),{'method':_0x437dac(0x79),'query':{'confirmWarnings':_0x14a580[_0x437dac(0x72)]===!![]?!![]:undefined},'body':_0x1918f0});return assertJointDiagramAcknowledged(_0x188965[_0x437dac(0xd5)],_0x519160['diagramBound'],_0x437dac(0xe0)),{'appCode':_0x519160['namespace']??_0x3ce572,'skillCode':_0x519160['slug']??_0x188965[_0x437dac(0x96)]??'','skillName':_0x188965[_0x437dac(0xa5)]??_0x519160[_0x437dac(0xcb)]??_0x188965['skillCode'],'description':_0x188965[_0x437dac(0x8d)],'scope':skillHubVisibilityToScope(_0x519160[_0x437dac(0xad)]??_0x14a580[_0x437dac(0xad)])??'personal','version':_0x519160[_0x437dac(0xd2)]??_0x188965[_0x437dac(0xd2)],'tags':_0x188965[_0x437dac(0x8b)],'content':_0x188965['content'],'diagramBound':_0x519160[_0x437dac(0x106)]===!![]};}function assertJointDiagramAcknowledged(_0x2be098,_0x4eecc9,_0xc390b2){const _0x4d3cc5=a78_0x2f37;if(!_0x2be098||_0x4eecc9===!![])return;throw CliErrors[_0x4d3cc5(0xd8)]('SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20'+_0xc390b2+'.','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.');}function buildRuntimeSkillPublishForm(_0x29a98c,_0x57931c){const _0x84f300=a78_0x2f37,_0x4e764c=new FormData();return _0x4e764c[_0x84f300(0x102)](_0x84f300(0xc3),runtimeSkillPackageFile(_0x29a98c)),_0x29a98c['skillName']?.[_0x84f300(0xf8)]()&&_0x4e764c[_0x84f300(0x102)](_0x84f300(0xb8),_0x29a98c[_0x84f300(0xa5)][_0x84f300(0xf8)]()),_0x4e764c[_0x84f300(0x102)](_0x84f300(0xad),_0x57931c),_0x29a98c[_0x84f300(0xd5)]&&_0x4e764c['set'](_0x84f300(0xd5),new Blob([JSON['stringify'](_0x29a98c['diagram'])],{'type':_0x84f300(0xb6)})),_0x4e764c;}function runtimeSkillVersionDiagramPath(_0x5402dc,_0x42c9e4,_0x1ea2c8,_0x2569a3=''){const _0x52ca27=a78_0x2f37;return'/api/cli/v1/skills/'+encodeURIComponent(_0x5402dc)+'/'+encodeURIComponent(_0x42c9e4)+_0x52ca27(0xe3)+encodeURIComponent(_0x1ea2c8)+_0x52ca27(0xb7)+_0x2569a3;}function runtimeSkillPackageFile(_0x37017d){const _0x2c432b=a78_0x2f37;if(!_0x37017d[_0x2c432b(0x73)])throw CliErrors[_0x2c432b(0xb3)]('Missing\x20Skill\x20package\x20payload.');const _0x4a344e=Buffer['from'](_0x37017d[_0x2c432b(0x73)],_0x2c432b(0xcd)),_0x28a377=new Blob([_0x4a344e],{'type':_0x2c432b(0xd3)}),_0x3ece7f=(_0x37017d[_0x2c432b(0x96)]||_0x2c432b(0x10c))+'.zip';if(typeof File!==_0x2c432b(0xaa))return new File([_0x28a377],_0x3ece7f,{'type':'application/zip'});return _0x28a377;}function normalizeSkillHubRuntimeListResponse(_0x3bf89b,_0x644df1,_0x1d261f,_0x4c3ecc){const _0x1c8321=a78_0x2f37,_0x2fd061=Array[_0x1c8321(0xc2)](_0x644df1)?_0x644df1:Array[_0x1c8321(0xc2)](_0x644df1?.[_0x1c8321(0x76)])?_0x644df1[_0x1c8321(0x76)]:[],_0x325ce7=_0x4c3ecc?.[_0x1c8321(0xf8)](),_0x323e74=_0x2fd061[_0x1c8321(0xfa)](_0x2964b3=>!_0x325ce7||_0x2964b3[_0x1c8321(0xcb)]===_0x325ce7)['map'](skillHubRuntimeItemToRuntimeSkill)[_0x1c8321(0xfa)](_0x3e59ef=>Boolean(_0x3e59ef)),_0x1b3bda=_0x323e74['filter'](_0x429200=>_0x429200[_0x1c8321(0xee)]===_0x1c8321(0xff)),_0x13c5e7=_0x323e74[_0x1c8321(0xfa)](_0x256af2=>_0x256af2[_0x1c8321(0xee)]==='company');return{'appCode':_0x3bf89b,'personal':_0x1d261f===_0x1c8321(0x84)?[]:_0x1b3bda,'company':_0x1d261f===_0x1c8321(0xff)?[]:_0x13c5e7,'effective':buildEffectiveRuntimeSkills(_0x1b3bda,_0x13c5e7,_0x1d261f)};}function skillHubRuntimeItemToRuntimeSkill(_0x10df7b){const _0x4761c8=a78_0x2f37,_0x1b5022=_0x10df7b[_0x4761c8(0xcb)]?.[_0x4761c8(0xf8)](),_0x432921=skillHubVisibilityToScope(_0x10df7b['visibility']);if(!_0x1b5022||!_0x432921)return undefined;return{'id':_0x10df7b['id'],'appCode':_0x10df7b[_0x4761c8(0x89)],'skillCode':_0x1b5022,'skillName':_0x10df7b[_0x4761c8(0xb8)]??_0x1b5022,'description':_0x10df7b['summary'],'scope':_0x432921,'version':skillHubRuntimeItemVersion(_0x10df7b),'status':_0x10df7b[_0x4761c8(0xfe)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x2e7c7d){const _0x6d3c29=a78_0x2f37,_0x5349ef=_0x2e7c7d[_0x6d3c29(0xcb)]?.['trim']();if(!_0x5349ef)return undefined;return{'id':_0x2e7c7d['id'],'appCode':_0x2e7c7d['namespace'],'skillCode':_0x5349ef,'skillName':_0x2e7c7d[_0x6d3c29(0xb8)]??_0x5349ef,'description':_0x2e7c7d[_0x6d3c29(0xfd)],'example':_0x2e7c7d[_0x6d3c29(0xa2)],'scope':skillHubVisibilityToScope(_0x2e7c7d[_0x6d3c29(0xad)])??_0x2e7c7d[_0x6d3c29(0xad)]?.[_0x6d3c29(0x7f)](),'version':skillHubRuntimeItemVersion(_0x2e7c7d),'status':_0x2e7c7d[_0x6d3c29(0xfe)]};}function skillHubVisibilityToScope(_0x3bf2e9){const _0x273fae=a78_0x2f37;if(_0x3bf2e9===_0x273fae(0x90))return _0x273fae(0xff);if(_0x3bf2e9===_0x273fae(0xdf))return _0x273fae(0x84);return undefined;}function skillHubRuntimeItemVersion(_0x46fd03){const _0x17c73b=a78_0x2f37;return _0x46fd03[_0x17c73b(0x8e)]?.[_0x17c73b(0xd2)]??_0x46fd03[_0x17c73b(0xb4)]?.[_0x17c73b(0xd2)]??_0x46fd03[_0x17c73b(0xc6)]?.[_0x17c73b(0xd2)];}function buildEffectiveRuntimeSkills(_0x3c6583,_0x449416,_0x5089d1){const _0x1f3528=a78_0x2f37;if(_0x5089d1===_0x1f3528(0xff))return _0x3c6583;if(_0x5089d1===_0x1f3528(0x84))return _0x449416;const _0x1901e5=new Map();for(const _0x468694 of _0x449416){_0x1901e5[_0x1f3528(0x102)](_0x468694[_0x1f3528(0x96)],_0x468694);}for(const _0x4b7902 of _0x3c6583){_0x1901e5['set'](_0x4b7902[_0x1f3528(0x96)],_0x4b7902);}return Array[_0x1f3528(0xca)](_0x1901e5[_0x1f3528(0xf2)]());}function normalizeRuntimeSkillListResponse(_0x170ffe,_0x14b3c4){const _0x32acfe=a78_0x2f37;if(Array['isArray'](_0x14b3c4)){const _0x130041=_0x14b3c4[_0x32acfe(0xfa)](_0x5d9a18=>_0x5d9a18['scope']==='personal'),_0x3602cf=_0x14b3c4[_0x32acfe(0xfa)](_0x3f32e5=>_0x3f32e5['scope']==='company');return{'appCode':_0x170ffe,'personal':_0x130041,'company':_0x3602cf,'effective':[..._0x3602cf,..._0x130041]};}return{'appCode':_0x14b3c4?.[_0x32acfe(0xed)]??_0x170ffe,'personal':Array[_0x32acfe(0xc2)](_0x14b3c4?.[_0x32acfe(0xff)])?_0x14b3c4[_0x32acfe(0xff)]:[],'company':Array[_0x32acfe(0xc2)](_0x14b3c4?.['company'])?_0x14b3c4[_0x32acfe(0x84)]:[],'effective':Array['isArray'](_0x14b3c4?.[_0x32acfe(0xa7)])?_0x14b3c4[_0x32acfe(0xa7)]:[]};}
1
+ (function(_0x18bbcc,_0x2eae7b){const _0xe2a169=a78_0x5d2c,_0x7adcb8=_0x18bbcc();while(!![]){try{const _0x47d0de=parseInt(_0xe2a169(0x171))/0x1*(-parseInt(_0xe2a169(0x196))/0x2)+-parseInt(_0xe2a169(0x16e))/0x3*(parseInt(_0xe2a169(0x167))/0x4)+parseInt(_0xe2a169(0x1ef))/0x5+parseInt(_0xe2a169(0x1e3))/0x6*(-parseInt(_0xe2a169(0x1a8))/0x7)+-parseInt(_0xe2a169(0x1d2))/0x8*(-parseInt(_0xe2a169(0x193))/0x9)+-parseInt(_0xe2a169(0x1c3))/0xa*(parseInt(_0xe2a169(0x1fb))/0xb)+-parseInt(_0xe2a169(0x1ab))/0xc*(-parseInt(_0xe2a169(0x1cd))/0xd);if(_0x47d0de===_0x2eae7b)break;else _0x7adcb8['push'](_0x7adcb8['shift']());}catch(_0x3155bf){_0x7adcb8['push'](_0x7adcb8['shift']());}}}(a78_0x5406,0x78e12));import{readFile}from'node:fs/promises';import{basename}from'node:path';function a78_0x5d2c(_0x305156,_0x381e7f){_0x305156=_0x305156-0x160;const _0x540695=a78_0x5406();let _0x5d2ceb=_0x540695[_0x305156];return _0x5d2ceb;}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(_0x4b0462){_activeAK=_0x4b0462||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x255b3c){const _0x1bc99c=a78_0x5d2c;for(const _0x151298 of _0x255b3c){if(typeof _0x151298===_0x1bc99c(0x1bf)&&_0x151298[_0x1bc99c(0x1da)]())return _0x151298[_0x1bc99c(0x1da)]();}return undefined;}async function decodeResponseBody(_0xe7163c){const _0x586784=a78_0x5d2c;if(typeof _0xe7163c['text']===_0x586784(0x1a6))try{const _0x25478f=await _0xe7163c[_0x586784(0x1f2)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x25478f),'text':_0x25478f};}catch{return{'isJson':![],'text':_0x25478f[_0x586784(0x1da)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0xe7163c[_0x586784(0x19e)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x1d2916,_0x49d5c6,_0x1f464f){const _0x63b5d4=a78_0x5d2c,_0x4544c5=_0x49d5c6&&typeof _0x49d5c6===_0x63b5d4(0x1dd)?_0x49d5c6:{},_0x4c0344=[_0x4544c5['status'],_0x4544c5[_0x63b5d4(0x17f)]][_0x63b5d4(0x1b5)](_0x2736fa=>Number(_0x2736fa)===0x1ad),_0x223017=createRateLimitError({'status':_0x1d2916[_0x63b5d4(0x1ee)]===0x1ad?_0x1d2916['status']:_0x4c0344??_0x1d2916[_0x63b5d4(0x1ee)],'errorCode':firstString(_0x4544c5[_0x63b5d4(0x17d)],typeof _0x4544c5[_0x63b5d4(0x17f)]===_0x63b5d4(0x1bf)?_0x4544c5['code']:undefined),'message':firstString(_0x4544c5[_0x63b5d4(0x1c8)],_0x4544c5['message'],_0x4544c5[_0x63b5d4(0x205)],_0x1f464f),'retryAfter':readRetryAfter(_0x1d2916[_0x63b5d4(0x16a)])??readRetryAfterSeconds(_0x49d5c6)});if(_0x223017)throw _0x223017;}async function apiRequest(_0x416115,_0x5364ed={}){const _0x338c1e=a78_0x5d2c,{method:method=_0x338c1e(0x1d1),body:_0x367986,headers:headers={},timeout:timeout=0x7530}=_0x5364ed,_0x88a118=_activeAK,_0x31468f=getRuntimeDomain();if(!_0x88a118)throw CliErrors[_0x338c1e(0x1d3)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x338c1e(0x161)]+'.');const _0xae9afa=''+_0x31468f+_0x416115,_0x3d0253={'X-User-AK':_0x88a118},_0x125a1c=new AbortController(),_0x27fa54=setTimeout(()=>_0x125a1c[_0x338c1e(0x195)](),timeout);try{const _0x13d563=await fetch(_0xae9afa,{'method':method,'headers':{'Content-Type':_0x338c1e(0x1fc),'X-Invoke-Source':PRODUCT_CONFIG[_0x338c1e(0x1f9)],..._0x3d0253,...headers},'body':_0x367986?JSON[_0x338c1e(0x1ba)](_0x367986):undefined,'signal':_0x125a1c[_0x338c1e(0x1b0)]}),_0x50830d=await decodeResponseBody(_0x13d563);if(!_0x50830d[_0x338c1e(0x178)]){throwIfRateLimited(_0x13d563,undefined,_0x50830d[_0x338c1e(0x1f2)]);throw CliErrors[_0x338c1e(0x1d6)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x13d563[_0x338c1e(0x1ee)]+')',_0x13d563['status']>=0x190?_0x338c1e(0x1a9):undefined);}const _0x3163df=_0x50830d[_0x338c1e(0x18a)];throwIfRateLimited(_0x13d563,_0x3163df);if(!_0x13d563['ok']||_0x3163df[_0x338c1e(0x194)]===![])throw CliErrors[_0x338c1e(0x1d6)](_0x3163df[_0x338c1e(0x1c8)]||_0x3163df[_0x338c1e(0x163)]||_0x338c1e(0x1fe)+_0x13d563[_0x338c1e(0x1ee)],_0x3163df[_0x338c1e(0x17d)]?'API\x20error\x20code:\x20'+_0x3163df[_0x338c1e(0x17d)]:undefined);return _0x3163df;}catch(_0x517f67){if(_0x517f67 instanceof Error&&_0x517f67[_0x338c1e(0x1bb)]===_0x338c1e(0x200))throw CliErrors['apiError'](_0x338c1e(0x1f5)+_0xae9afa);throw _0x517f67;}finally{clearTimeout(_0x27fa54);}}async function apiBinaryRequest(_0x23db02,_0x4ac061={}){const _0x422561=a78_0x5d2c,{method:method=_0x422561(0x1d1),headers:headers={},timeout:timeout=0x7530}=_0x4ac061,_0x54797d=_activeAK,_0x18da9b=getRuntimeDomain();if(!_0x54797d)throw CliErrors[_0x422561(0x1d3)](_0x422561(0x176)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x5899da=''+_0x18da9b+_0x23db02,_0xdaecc0=new AbortController(),_0x3ea1a1=setTimeout(()=>_0xdaecc0[_0x422561(0x195)](),timeout);try{const _0x22892a=await fetch(_0x5899da,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x54797d,...headers},'signal':_0xdaecc0[_0x422561(0x1b0)]});if(!_0x22892a['ok']){const _0x418ff3=await decodeResponseBody(_0x22892a),_0x30b0c0=_0x418ff3[_0x422561(0x18a)]&&typeof _0x418ff3[_0x422561(0x18a)]===_0x422561(0x1dd)?_0x418ff3[_0x422561(0x18a)]:{},_0x5540ae=firstString(_0x30b0c0['errorMsg'],_0x30b0c0[_0x422561(0x163)],_0x30b0c0['errorCode'],_0x418ff3[_0x422561(0x1f2)]);throwIfRateLimited(_0x22892a,_0x418ff3[_0x422561(0x18a)],_0x5540ae);throw CliErrors['apiError'](_0x5540ae||_0x422561(0x1fe)+_0x22892a[_0x422561(0x1ee)],_0x422561(0x1d0)+_0x5899da);}return Buffer[_0x422561(0x1c6)](await _0x22892a[_0x422561(0x187)]());}catch(_0x1df582){if(_0x1df582 instanceof Error&&_0x1df582[_0x422561(0x1bb)]===_0x422561(0x200))throw CliErrors[_0x422561(0x1d6)]('Request\x20timeout:\x20'+_0x5899da);throw _0x1df582;}finally{clearTimeout(_0x3ea1a1);}}async function apiFormRequest(_0x26067f,_0x4a59cb,_0x32371f={}){const _0xf28b4d=a78_0x5d2c,{timeout:timeout=0x7530}=_0x32371f,_0xef4a47=_activeAK,_0x572dbd=getRuntimeDomain();if(!_0xef4a47)throw CliErrors[_0xf28b4d(0x1d3)](_0xf28b4d(0x176)+PRODUCT_CONFIG[_0xf28b4d(0x161)]+'.');const _0x369b47=''+_0x572dbd+_0x26067f,_0x521102=new AbortController(),_0x4570df=setTimeout(()=>_0x521102['abort'](),timeout);try{const _0x3f1746=await fetch(_0x369b47,{'method':_0xf28b4d(0x207),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0xf28b4d(0x1f9)],'X-User-AK':_0xef4a47},'body':_0x4a59cb,'signal':_0x521102[_0xf28b4d(0x1b0)]}),_0x115666=await decodeResponseBody(_0x3f1746);if(!_0x115666['isJson']){throwIfRateLimited(_0x3f1746,undefined,_0x115666[_0xf28b4d(0x1f2)]);throw CliErrors[_0xf28b4d(0x1d6)](_0xf28b4d(0x1ed)+_0x3f1746[_0xf28b4d(0x1ee)]+')',_0x3f1746[_0xf28b4d(0x1ee)]>=0x190?_0xf28b4d(0x1a9):undefined);}const _0x5a6e13=_0x115666[_0xf28b4d(0x18a)];throwIfRateLimited(_0x3f1746,_0x5a6e13);if(!_0x3f1746['ok']||_0x5a6e13[_0xf28b4d(0x194)]===![])throw CliErrors['apiError'](_0x5a6e13['errorMsg']||_0x5a6e13[_0xf28b4d(0x163)]||_0xf28b4d(0x1fe)+_0x3f1746[_0xf28b4d(0x1ee)],_0x5a6e13['errorCode']?'API\x20error\x20code:\x20'+_0x5a6e13[_0xf28b4d(0x17d)]:undefined);return _0x5a6e13;}catch(_0x172e9e){if(_0x172e9e instanceof Error&&_0x172e9e[_0xf28b4d(0x1bb)]===_0xf28b4d(0x200))throw CliErrors[_0xf28b4d(0x1d6)](_0xf28b4d(0x1f5)+_0x369b47);throw _0x172e9e;}finally{clearTimeout(_0x4570df);}}async function toolboxRequest(_0x1480b1,_0x634404,_0x2f03ce={}){const _0x236cc5=a78_0x5d2c,{method:method=_0x236cc5(0x1d1),headers:headers={},timeout:timeout=0x7530}=_0x2f03ce,_0x3a56f0=_activeAK;if(!_0x3a56f0)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x236cc5(0x161)]+'.');const _0x4b9a77=getApiDomain()[_0x236cc5(0x1b2)](/\/$/,''),_0x149b85=new URL(_0x1480b1,_0x4b9a77+_0x236cc5(0x1bd));if(_0x634404)for(const [_0x29d2d9,_0x4bd681]of Object[_0x236cc5(0x1ca)](_0x634404)){_0x4bd681!==undefined&&_0x4bd681!==null&&_0x149b85[_0x236cc5(0x164)][_0x236cc5(0x19a)](_0x29d2d9,String(_0x4bd681));}const _0x33f61d=new AbortController(),_0x10552d=setTimeout(()=>_0x33f61d[_0x236cc5(0x195)](),timeout);try{const _0x50d83c=await fetch(_0x149b85,{'method':method,'headers':{'Content-Type':_0x236cc5(0x1fc),'X-Invoke-Source':PRODUCT_CONFIG[_0x236cc5(0x1f9)],'X-User-AK':_0x3a56f0,...headers},'signal':_0x33f61d[_0x236cc5(0x1b0)]}),_0xdda75b=await decodeResponseBody(_0x50d83c);if(!_0xdda75b['isJson']){throwIfRateLimited(_0x50d83c,undefined,_0xdda75b[_0x236cc5(0x1f2)]);throw CliErrors['apiError'](_0x236cc5(0x19c)+_0x50d83c[_0x236cc5(0x1ee)]+')',_0x50d83c['status']>=0x190?_0x236cc5(0x1a9):undefined);}const _0x507088=_0xdda75b[_0x236cc5(0x18a)];throwIfRateLimited(_0x50d83c,_0x507088);if(!_0x50d83c['ok']){const _0x200c96=_0x507088&&typeof _0x507088==='object'?_0x507088:{};throw CliErrors[_0x236cc5(0x1d6)](_0x200c96[_0x236cc5(0x1c8)]||_0x200c96['message']||_0x236cc5(0x1f3)+_0x50d83c[_0x236cc5(0x1ee)],_0x200c96[_0x236cc5(0x17d)]?_0x236cc5(0x17a)+_0x200c96[_0x236cc5(0x17d)]:undefined);}if(_0x507088&&typeof _0x507088===_0x236cc5(0x1dd)&&_0x236cc5(0x194)in _0x507088&&typeof _0x507088['success']==='boolean'){const _0x14291b=_0x507088;if(!_0x14291b[_0x236cc5(0x194)])throw CliErrors[_0x236cc5(0x1d6)](_0x14291b[_0x236cc5(0x1c8)]||_0x14291b[_0x236cc5(0x163)]||'Toolbox\x20API\x20error',_0x14291b[_0x236cc5(0x17d)]?'Toolbox\x20error\x20code:\x20'+_0x14291b[_0x236cc5(0x17d)]:undefined);return _0x14291b[_0x236cc5(0x18a)];}return _0x507088;}catch(_0x4fcece){if(_0x4fcece instanceof Error&&_0x4fcece[_0x236cc5(0x1bb)]===_0x236cc5(0x200))throw CliErrors['apiError'](_0x236cc5(0x1f5)+_0x149b85['toString']());throw _0x4fcece;}finally{clearTimeout(_0x10552d);}}async function skillHubJsonRequest(_0x3f9c8c,_0x46c562={}){const _0x40a96d=a78_0x5d2c,{method:method=_0x40a96d(0x1d1),query:_0x24f600,body:_0x1485c6,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x46c562,_0x104d97=_activeAK;if(!_0x104d97)throw CliErrors['authRequired'](_0x40a96d(0x176)+PRODUCT_CONFIG[_0x40a96d(0x161)]+'.');const _0x54aeda=getSkillHubDomain()[_0x40a96d(0x1b2)](/\/$/,''),_0x485e54=new URL(_0x3f9c8c,_0x54aeda+'/');if(_0x24f600)for(const [_0xa8d3ab,_0x26c939]of Object[_0x40a96d(0x1ca)](_0x24f600)){_0x26c939!==undefined&&_0x26c939!==null&&_0x485e54[_0x40a96d(0x164)][_0x40a96d(0x19a)](_0xa8d3ab,String(_0x26c939));}const _0x4c6a84=new AbortController(),_0x4e9559=setTimeout(()=>_0x4c6a84[_0x40a96d(0x195)](),timeout);try{const _0x4e5f45=await fetch(_0x485e54['toString'](),{'method':method,'headers':{'Accept':_0x40a96d(0x1fc),'X-Invoke-Source':PRODUCT_CONFIG[_0x40a96d(0x1f9)],'X-User-AK':_0x104d97,...headers},'body':_0x1485c6,'signal':_0x4c6a84[_0x40a96d(0x1b0)]}),_0x43cd91=await decodeResponseBody(_0x4e5f45);if(!_0x43cd91[_0x40a96d(0x178)]){if(allowNotFound&&_0x4e5f45[_0x40a96d(0x1ee)]===0x194)return undefined;throwIfRateLimited(_0x4e5f45,undefined,_0x43cd91[_0x40a96d(0x1f2)]);throw CliErrors[_0x40a96d(0x1d6)]('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x4e5f45[_0x40a96d(0x1ee)]+')',_0x4e5f45['status']>=0x190?_0x40a96d(0x1a9):undefined);}const _0x568abb=_0x43cd91['data'];throwIfRateLimited(_0x4e5f45,_0x568abb);if(allowNotFound&&isSkillHubNotFoundResponse(_0x4e5f45[_0x40a96d(0x1ee)],_0x568abb))return undefined;const _0x4e9a32=!_0x4e5f45['ok']||_0x568abb?.['success']===![]||typeof _0x568abb?.[_0x40a96d(0x17f)]===_0x40a96d(0x180)&&_0x568abb[_0x40a96d(0x17f)]>=0x190;if(_0x4e9a32)throw CliErrors[_0x40a96d(0x1d6)](_0x568abb?.['errorMsg']||_0x568abb?.[_0x40a96d(0x163)]||_0x568abb?.[_0x40a96d(0x205)]||_0x40a96d(0x1f8)+_0x4e5f45['status'],_0x568abb?.['errorCode']?_0x40a96d(0x19f)+_0x568abb[_0x40a96d(0x17d)]:undefined);return _0x568abb?.[_0x40a96d(0x18a)]??_0x568abb;}catch(_0x40323a){if(_0x40323a instanceof Error&&_0x40323a[_0x40a96d(0x1bb)]==='AbortError')throw CliErrors[_0x40a96d(0x1d6)](_0x40a96d(0x1f5)+_0x485e54[_0x40a96d(0x188)]());throw _0x40323a;}finally{clearTimeout(_0x4e9559);}}function isSkillHubNotFoundResponse(_0x459978,_0x33a4fb){const _0x358583=a78_0x5d2c;if(_0x459978===0x194||_0x33a4fb?.[_0x358583(0x17f)]===0x194)return!![];if(_0x459978!==0x190&&_0x33a4fb?.['code']!==0x190)return![];const _0x12c36c=[_0x33a4fb?.[_0x358583(0x205)],_0x33a4fb?.[_0x358583(0x163)],_0x33a4fb?.[_0x358583(0x1c8)],_0x33a4fb?.['error']][_0x358583(0x1c1)](_0x4a7852=>typeof _0x4a7852===_0x358583(0x1bf))[_0x358583(0x1a3)]('\x20');return/skill not found\b/i['test'](_0x12c36c);}async function skillHubBinaryRequest(_0x480644,_0x19fff0={}){const _0x458b69=a78_0x5d2c,{query:_0x5021f3,headers:headers={},timeout:timeout=0x7530}=_0x19fff0,_0x1dd9ce=_activeAK;if(!_0x1dd9ce)throw CliErrors[_0x458b69(0x1d3)](_0x458b69(0x176)+PRODUCT_CONFIG[_0x458b69(0x161)]+'.');const _0x4a42b3=getSkillHubDomain()[_0x458b69(0x1b2)](/\/$/,''),_0x31c4e2=new URL(_0x480644,_0x4a42b3+'/');if(_0x5021f3)for(const [_0x520dc6,_0x301f4e]of Object['entries'](_0x5021f3)){_0x301f4e!==undefined&&_0x301f4e!==null&&_0x31c4e2['searchParams']['set'](_0x520dc6,String(_0x301f4e));}const _0x318164=new AbortController(),_0x4f1fb0=setTimeout(()=>_0x318164[_0x458b69(0x195)](),timeout);try{const _0xdb3f2f=await fetch(_0x31c4e2[_0x458b69(0x188)](),{'method':'GET','headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x458b69(0x1f9)],'X-User-AK':_0x1dd9ce,...headers},'signal':_0x318164[_0x458b69(0x1b0)]});if(!_0xdb3f2f['ok']){const _0x59db9c=await decodeResponseBody(_0xdb3f2f),_0x28ea18=_0x59db9c[_0x458b69(0x18a)]&&typeof _0x59db9c[_0x458b69(0x18a)]===_0x458b69(0x1dd)?_0x59db9c[_0x458b69(0x18a)]:{},_0x581ce3=firstString(_0x28ea18[_0x458b69(0x1c8)],_0x28ea18[_0x458b69(0x163)],_0x28ea18[_0x458b69(0x205)],_0x28ea18[_0x458b69(0x17d)],_0x59db9c[_0x458b69(0x1f2)]);throwIfRateLimited(_0xdb3f2f,_0x59db9c[_0x458b69(0x18a)],_0x581ce3);throw CliErrors[_0x458b69(0x1d6)](_0x581ce3||_0x458b69(0x1f8)+_0xdb3f2f['status'],_0x458b69(0x1d0)+_0x31c4e2[_0x458b69(0x188)]());}return Buffer[_0x458b69(0x1c6)](await _0xdb3f2f[_0x458b69(0x187)]());}catch(_0x20a814){if(_0x20a814 instanceof Error&&_0x20a814['name']===_0x458b69(0x200))throw CliErrors['apiError'](_0x458b69(0x1f5)+_0x31c4e2['toString']());throw _0x20a814;}finally{clearTimeout(_0x4f1fb0);}}export async function getBffEndpointContract(_0x12065c,_0x2016c5){const _0x452bb4=a78_0x5d2c;if(_0x2016c5===_0x452bb4(0x189))throw CliErrors['validation'](_0x452bb4(0x1c0)+_0x12065c+_0x452bb4(0x168)+_0x2016c5);const _0x208c74=await apiRequest(_0x452bb4(0x1c5)+encodeURIComponent(_0x12065c)+'/'+encodeURIComponent(_0x2016c5)),_0x23d85b=_0x208c74[_0x452bb4(0x18a)];if(!_0x23d85b||typeof _0x23d85b!==_0x452bb4(0x1dd)||Array[_0x452bb4(0x1d8)](_0x23d85b)||_0x23d85b[_0x452bb4(0x1b1)]!==_0x12065c||_0x23d85b[_0x452bb4(0x1c9)]!==_0x2016c5)throw CliErrors[_0x452bb4(0x1e1)](_0x452bb4(0x1c0)+_0x12065c+',\x20name='+_0x2016c5);return{'appCode':_0x23d85b[_0x452bb4(0x1b1)],'functionName':_0x23d85b[_0x452bb4(0x1c9)],'description':_0x23d85b['description'],'version':_0x23d85b[_0x452bb4(0x1c4)],'gmtModified':_0x23d85b[_0x452bb4(0x179)]};}export async function getSqlQueryInfo(_0x16b3d1,_0x171157){const _0x465384=a78_0x5d2c,_0xdd05d=await apiRequest(_0x465384(0x170),{'method':'POST','body':{'appCode':_0x16b3d1,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x171157}}),_0x159407=_0xdd05d[_0x465384(0x18a)],_0x609a8b=_0x159407&&typeof _0x159407===_0x465384(0x1dd)&&'tableData'in _0x159407?_0x159407[_0x465384(0x1a4)]?.[0x0]:_0x159407&&typeof _0x159407===_0x465384(0x1dd)&&_0x465384(0x160)in _0x159407?_0x159407:undefined;if(!_0x609a8b)throw CliErrors[_0x465384(0x1e1)](_0x465384(0x1a1)+_0x171157);return _0x609a8b;}function isRemoteAppItem(_0x5d511c){const _0x10c186=a78_0x5d2c;return!!_0x5d511c&&typeof _0x5d511c===_0x10c186(0x1dd)&&typeof _0x5d511c[_0x10c186(0x1b1)]==='string'&&typeof _0x5d511c[_0x10c186(0x1ad)]===_0x10c186(0x1bf);}function extractRemoteAppItems(_0x40a9e6){const _0x4f3fab=a78_0x5d2c;if(Array[_0x4f3fab(0x1d8)](_0x40a9e6))return _0x40a9e6[_0x4f3fab(0x1c1)](isRemoteAppItem);if(!_0x40a9e6||typeof _0x40a9e6!==_0x4f3fab(0x1dd))throw CliErrors[_0x4f3fab(0x1d6)](_0x4f3fab(0x1af));const _0x3f9607=_0x40a9e6;if(Array[_0x4f3fab(0x1d8)](_0x3f9607[_0x4f3fab(0x1a4)]))return _0x3f9607['tableData'][_0x4f3fab(0x1c1)](isRemoteAppItem);if(_0x3f9607[_0x4f3fab(0x18a)]&&typeof _0x3f9607['data']===_0x4f3fab(0x1dd)){const _0x1c537f=_0x3f9607[_0x4f3fab(0x18a)];if(Array['isArray'](_0x1c537f[_0x4f3fab(0x1a4)]))return _0x1c537f[_0x4f3fab(0x1a4)]['filter'](isRemoteAppItem);}throw CliErrors[_0x4f3fab(0x1d6)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x569cea=a78_0x5d2c,_0x4fea88=await apiRequest(_0x569cea(0x18c));return extractRemoteAppItems(_0x4fea88[_0x569cea(0x18a)]);}export async function getLoginUserInfo(){const _0x4be3e5=a78_0x5d2c,_0x1570f5=await apiRequest(_0x4be3e5(0x1ff));if(!_0x1570f5[_0x4be3e5(0x18a)]||typeof _0x1570f5[_0x4be3e5(0x18a)]!=='object'||Array[_0x4be3e5(0x1d8)](_0x1570f5[_0x4be3e5(0x18a)]))throw CliErrors[_0x4be3e5(0x1d6)](_0x4be3e5(0x1cb));return _0x1570f5[_0x4be3e5(0x18a)];}function runtimeSchedulePath(_0x15356d,_0x302429=''){const _0x138495=a78_0x5d2c;return _0x138495(0x1c7)+encodeURIComponent(_0x15356d)+'/schedules'+_0x302429;}export async function validateRuntimeSchedule(_0x37dfb8,_0x48462d){const _0xe92b59=await apiRequest(runtimeSchedulePath(_0x37dfb8,'/validate'),{'method':'POST','body':_0x48462d});return _0xe92b59['data'];}export async function createRuntimeSchedule(_0x4cab8e,_0x1d4e3f){const _0x24f64e=a78_0x5d2c,_0x24233b=await apiRequest(runtimeSchedulePath(_0x4cab8e),{'method':_0x24f64e(0x207),'body':_0x1d4e3f});return _0x24233b[_0x24f64e(0x18a)];}export async function listRuntimeSchedules(_0x211668,_0x8e1138={}){const _0x304809=a78_0x5d2c,_0x328bfe=new URLSearchParams();if(_0x8e1138['limit']!==undefined)_0x328bfe[_0x304809(0x19a)](_0x304809(0x18b),String(_0x8e1138[_0x304809(0x18b)]));if(_0x8e1138['cursor'])_0x328bfe[_0x304809(0x19a)](_0x304809(0x1e0),_0x8e1138['cursor']);const _0xee4e2b=_0x328bfe[_0x304809(0x18f)]>0x0?'?'+_0x328bfe['toString']():'',_0x1ec12e=await apiRequest(''+runtimeSchedulePath(_0x211668)+_0xee4e2b);return _0x1ec12e[_0x304809(0x18a)];}export async function getRuntimeSchedule(_0x1b6e96,_0x978b5d){const _0x179928=a78_0x5d2c,_0xc2fb1f=await apiRequest(runtimeSchedulePath(_0x1b6e96,'/'+encodeURIComponent(_0x978b5d)));return _0xc2fb1f[_0x179928(0x18a)];}export async function deleteRuntimeSchedule(_0x38c5c2,_0x54a74b){const _0x33e097=a78_0x5d2c,_0x41690c=await apiRequest(runtimeSchedulePath(_0x38c5c2,'/'+encodeURIComponent(_0x54a74b)),{'method':_0x33e097(0x1cf)});return _0x41690c['data'];}export async function runRuntimeSchedule(_0x54069d,_0x122c56){const _0x36e09a=a78_0x5d2c,_0x53df4d=await apiRequest(runtimeSchedulePath(_0x54069d,'/'+encodeURIComponent(_0x122c56)+_0x36e09a(0x1df)),{'method':'POST'});return _0x53df4d['data'];}export async function listDatasets(_0x2c344d,_0x4d6bdf){const _0x38eccb=a78_0x5d2c,_0x1c7042=await apiRequest(_0x38eccb(0x183),{'method':_0x38eccb(0x207),'body':{'appCode':_0x2c344d,..._0x4d6bdf?.[_0x38eccb(0x17f)]&&{'code':_0x4d6bdf[_0x38eccb(0x17f)]},..._0x4d6bdf?.['name']&&{'name':_0x4d6bdf[_0x38eccb(0x1bb)]}}});return extractList(_0x1c7042[_0x38eccb(0x18a)]);}export async function getDatasetDetail(_0x411799){const _0x42388f=a78_0x5d2c,_0x2ccfec=await apiRequest(_0x42388f(0x1e8)+encodeURIComponent(_0x411799));return _0x2ccfec[_0x42388f(0x18a)];}function a78_0x5406(){const _0x2d3738=['4750955HEMSsI','topK','type','text','Toolbox\x20API\x20error:\x20','/client/artifact/','Request\x20timeout:\x20','visibility','company','SkillHub\x20API\x20error:\x20','invokeSource','valid','37873WrEgjQ','application/json','/client/knowledge-base/personal/','API\x20error:\x20','/client/user/loginUserInfo','AbortError','append','source','/validate','/client/ocr','msg','/versions/','POST','sqlCode','newConfigFileName','scope','message','searchParams','content','description','24iqSsrx',',\x20name=','/client/uploadFile','headers','skillName','tags','example','33834hLpOlJ','items','/client/sql/query','270HGmSCr','Artifact\x20not\x20found:\x20id=','found','application/zip','file','Configure\x20accessKey\x20in\x20','favorite','isJson','gmtModified','Toolbox\x20error\x20code:\x20','errors','diagramValidated','errorCode','Invalid\x20app\x20config\x20value:\x20key=','code','number','summary','skillCode','/client/dataset/list','values','/api/runtime/v1/namespaces/','headlineVersion','arrayBuffer','toString','functions','data','limit','/client/app/my-apps','confirmWarnings','/client/artifact/list?','size','/client/app-config/getByKey?','markdown','/api/v1/skills/','18NGFEyi','success','abort','2956yeCMfc','/client/runtime-bff/personal/create','PRIVATE','effective','set','undefined','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','diagram','json','SkillHub\x20error\x20code:\x20','slug','SQL\x20query\x20not\x20found:\x20','/client/knowledge-base/personal/create','join','tableData','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','function','/publish/validate','5439JEYntz','Check\x20your\x20credentials\x20and\x20try\x20again.','Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.','48jMjzLs','/execute?appCode=','appName','/api/cli/v1/skills/','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','signal','appCode','replace','/client/runtime-bff/personal/list?appCode=','artifactType','find','/publish','personal','test','query','stringify','name','/client/runtime-bff/personal/','/api/node-toolbox/','resolvedVersion','string','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','filter','/update','1780EtClRf','version','/client/bff/endpoint/','from','/api/harness/apps/','errorMsg','functionName','entries','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','all','1706497yYHXPl','NAMESPACE_ONLY','DELETE','Download\x20failed:\x20','GET','1929992mJgQGY','authRequired','download','map','apiError','/download','isArray','Personal\x20BFF\x20not\x20found:\x20id=','trim','/diagram','api-doc-generator','object','diagramBound','/run','cursor','validation','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','2958zOtcUP','namespace','publish','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','isInteger','/client/dataset/get-driven-data?code=','.zip','diagramRevision','displayName','packageBase64','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','status'];a78_0x5406=function(){return _0x2d3738;};return a78_0x5406();}export async function getDatasetSdkUsageDoc(_0x9b446e,_0x161000){const _0x24b031=a78_0x5d2c,_0x4f18cd=await toolboxRequest(_0x24b031(0x1dc),{'datasetCode':_0x9b446e,'appCode':_0x161000});return typeof _0x4f18cd?.[_0x24b031(0x191)]===_0x24b031(0x1bf)?_0x4f18cd[_0x24b031(0x191)]:'';}export async function uploadRuntimeFile(_0x36703f,_0x4c596e){const _0x1b8c6c=a78_0x5d2c,_0x183c3b=await readFile(_0x4c596e),_0x49d96a=new FormData();_0x49d96a[_0x1b8c6c(0x201)](_0x1b8c6c(0x1b1),_0x36703f),_0x49d96a[_0x1b8c6c(0x201)]('file',new Blob([new Uint8Array(_0x183c3b)]),basename(_0x4c596e));const _0x3e5fad=await apiFormRequest(_0x1b8c6c(0x169),_0x49d96a);return _0x3e5fad[_0x1b8c6c(0x18a)];}export async function queryRuntimeFileUrl(_0x3eded2,_0x2881db={}){const _0x279ddd=a78_0x5d2c,_0x1d1ab6=await apiRequest('/client/queryFileUrl',{'method':_0x279ddd(0x207),'body':{'filePath':_0x3eded2,'downloadFlag':_0x2881db[_0x279ddd(0x1d4)]??![],..._0x2881db['longTerm']?{'longTerm':!![]}:{}}});return _0x1d1ab6['data'];}export async function recognizeRuntimeOcr(_0x31c682,_0x4fe1d3){const _0xcd4391=a78_0x5d2c,_0x20cde5=await apiRequest(_0xcd4391(0x204),{'method':'POST','body':{'appCode':_0x31c682,'url':_0x4fe1d3['url'],'type':_0x4fe1d3[_0xcd4391(0x1f1)]}});return _0x20cde5[_0xcd4391(0x18a)];}export async function getRuntimeAppConfigByKey(_0x5d0a26,_0x808e26){const _0x25bcde=a78_0x5d2c,_0x27e758=new URLSearchParams({'appCode':_0x5d0a26,'key':_0x808e26}),_0xa339dc=await apiRequest(_0x25bcde(0x190)+_0x27e758['toString']());if(typeof _0xa339dc['data']!==_0x25bcde(0x1bf))throw CliErrors['validation'](_0x25bcde(0x17e)+_0x808e26);return _0xa339dc[_0x25bcde(0x18a)];}export async function listRuntimeArtifacts(_0x4b2463,_0x3ab42e){const _0x1aa2ca=a78_0x5d2c,_0x32d3d3=new URLSearchParams({'appCode':_0x4b2463});if(_0x3ab42e?.[_0x1aa2ca(0x1b4)])_0x32d3d3[_0x1aa2ca(0x19a)](_0x1aa2ca(0x1b4),_0x3ab42e[_0x1aa2ca(0x1b4)]);if(_0x3ab42e?.[_0x1aa2ca(0x202)])_0x32d3d3[_0x1aa2ca(0x19a)](_0x1aa2ca(0x202),_0x3ab42e['source']);if(_0x3ab42e?.['favorite']!==undefined)_0x32d3d3[_0x1aa2ca(0x19a)](_0x1aa2ca(0x177),String(_0x3ab42e[_0x1aa2ca(0x177)]));const _0x127280=await apiRequest(_0x1aa2ca(0x18e)+_0x32d3d3[_0x1aa2ca(0x188)]());return Array[_0x1aa2ca(0x1d8)](_0x127280[_0x1aa2ca(0x18a)])?_0x127280[_0x1aa2ca(0x18a)]:[];}export async function getRuntimeArtifact(_0x7eaa8e,_0x4e8f53){const _0x11642a=a78_0x5d2c,_0x29f79f=await apiRequest(_0x11642a(0x1f4)+_0x7eaa8e+'?appCode='+encodeURIComponent(_0x4e8f53));if(!_0x29f79f[_0x11642a(0x18a)])throw CliErrors[_0x11642a(0x1e1)](_0x11642a(0x172)+_0x7eaa8e);return _0x29f79f['data'];}export async function createRuntimeArtifact(_0x26e7af,_0x5517f8){const _0x5aaf8f=a78_0x5d2c,_0x317494=await apiRequest('/client/artifact/create',{'method':_0x5aaf8f(0x207),'body':{'appCode':_0x26e7af,..._0x5517f8}});return _0x317494[_0x5aaf8f(0x18a)];}export async function updateRuntimeArtifact(_0x13495d,_0x28fa80,_0x558b4a){const _0x7dc86e=a78_0x5d2c,_0x4ed936=await apiRequest(_0x7dc86e(0x1f4)+_0x13495d+'/update',{'method':'POST','body':{'appCode':_0x28fa80,..._0x558b4a}});return _0x4ed936[_0x7dc86e(0x18a)];}export async function listPersonalBffs(_0x4fac4d){const _0x5b2f84=a78_0x5d2c,_0x514a54=await apiRequest(_0x5b2f84(0x1b3)+encodeURIComponent(_0x4fac4d));return Array['isArray'](_0x514a54['data'])?_0x514a54[_0x5b2f84(0x18a)]:[];}export async function getPersonalBff(_0xb2e1a6,_0x640fa3){const _0x5d32e1=a78_0x5d2c,_0x3d95d1=await apiRequest(_0x5d32e1(0x1bc)+_0xb2e1a6+'?appCode='+encodeURIComponent(_0x640fa3));if(!_0x3d95d1[_0x5d32e1(0x18a)])throw CliErrors['validation'](_0x5d32e1(0x1d9)+_0xb2e1a6);return _0x3d95d1['data'];}export async function createPersonalBff(_0x433b49,_0x4e2dba){const _0x30729e=a78_0x5d2c,_0xf33630=await apiRequest(_0x30729e(0x197),{'method':'POST','body':{'appCode':_0x433b49,..._0x4e2dba}});return _0xf33630[_0x30729e(0x18a)];}export async function updatePersonalBff(_0x1459c6,_0x2f2346,_0x4e2a4f){const _0x1d56cb=a78_0x5d2c,_0x155a06=await apiRequest(_0x1d56cb(0x1bc)+_0x1459c6+_0x1d56cb(0x1c2),{'method':_0x1d56cb(0x207),'body':{'appCode':_0x2f2346,..._0x4e2a4f}});return _0x155a06['data'];}export async function executePersonalBff(_0x184a27,_0x2916e3,_0x2509eb){const _0x9594d3=a78_0x5d2c,_0x462526=await apiRequest(_0x9594d3(0x1bc)+_0x184a27+_0x9594d3(0x1ac)+encodeURIComponent(_0x2916e3),{'method':_0x9594d3(0x207),'body':_0x2509eb});return _0x462526['data'];}export async function listPersonalKnowledgeBaseItems(_0x345f1c){const _0xf400f0=a78_0x5d2c,_0x1be4d4=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x345f1c));return Array[_0xf400f0(0x1d8)](_0x1be4d4[_0xf400f0(0x18a)])?_0x1be4d4[_0xf400f0(0x18a)]:[];}export async function getPersonalKnowledgeBaseItem(_0x19a32f,_0x208fef){const _0x5ef9ff=a78_0x5d2c,_0x183de6=await apiRequest(_0x5ef9ff(0x1fd)+_0x19a32f+'?appCode='+encodeURIComponent(_0x208fef));if(!_0x183de6[_0x5ef9ff(0x18a)])throw CliErrors[_0x5ef9ff(0x1e1)]('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0x19a32f);return _0x183de6['data'];}export async function createPersonalKnowledgeBaseItem(_0x6817ea,_0x1bc190){const _0x4af452=a78_0x5d2c,_0xb18fd9=await apiRequest(_0x4af452(0x1a2),{'method':_0x4af452(0x207),'body':{'appCode':_0x6817ea,..._0x1bc190}});return _0xb18fd9['data'];}export async function updatePersonalKnowledgeBaseItem(_0x2f3946,_0x498c55,_0x2e9abb){const _0x161bd5=a78_0x5d2c,_0x435331=await apiRequest(_0x161bd5(0x1fd)+_0x2f3946+'/update',{'method':_0x161bd5(0x207),'body':{'appCode':_0x498c55,..._0x2e9abb}});return _0x435331[_0x161bd5(0x18a)];}export async function searchKnowledgeBase(_0x5ccb3d,_0x645c17){const _0x5d4e55=a78_0x5d2c,_0xd2eac7=await apiRequest('/client/knowledge-base/search',{'method':_0x5d4e55(0x207),'body':{'appCode':_0x5ccb3d,'query':_0x645c17[_0x5d4e55(0x1b9)],..._0x645c17[_0x5d4e55(0x1f0)]!==undefined?{'topK':_0x645c17[_0x5d4e55(0x1f0)]}:{}}});return Array['isArray'](_0xd2eac7[_0x5d4e55(0x18a)])?_0xd2eac7[_0x5d4e55(0x18a)]:[];}export async function getRuntimeSkillByCode(_0x38b5ba,_0x4eed63){const _0x1ab264=a78_0x5d2c,_0x451e07=await skillHubJsonRequest(_0x1ab264(0x192)+encodeURIComponent(_0x38b5ba)+'/'+encodeURIComponent(_0x4eed63),{'allowNotFound':!![]});return _0x451e07?skillHubRuntimeDetailToRuntimeSkill(_0x451e07):undefined;}export async function listRuntimeSkills(_0x1ae8e8){const _0xb8bb68=a78_0x5d2c,_0x5d9ebf=await skillHubJsonRequest(_0xb8bb68(0x185)+encodeURIComponent(_0x1ae8e8[_0xb8bb68(0x1b1)])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x1ae8e8['appCode'],_0x5d9ebf,_0x1ae8e8[_0xb8bb68(0x162)]??_0xb8bb68(0x1cc),_0x1ae8e8[_0xb8bb68(0x17f)]);}export async function listPersonalRuntimeSkills(_0x25d447){const _0x152795=a78_0x5d2c;return(await listRuntimeSkills({'appCode':_0x25d447,'scope':'personal'}))[_0x152795(0x1b7)];}export async function listCompanyRuntimeSkills(_0x5b3fe0){const _0x51538a=a78_0x5d2c;return(await listRuntimeSkills({'appCode':_0x5b3fe0,'scope':_0x51538a(0x1f7)}))[_0x51538a(0x1f7)];}export async function listVisibleRuntimeSkills(_0x4629aa){const _0x2c24e9=a78_0x5d2c;return(await listRuntimeSkills({'appCode':_0x4629aa,'scope':_0x2c24e9(0x1cc)}))['effective'];}export async function createPersonalRuntimeSkill(_0xc06143,_0x46ec66,_0x5bd595={}){const _0x2857de=a78_0x5d2c;return publishRuntimeSkill(_0xc06143,_0x46ec66,{'visibility':_0x2857de(0x198),'confirmWarnings':_0x5bd595['confirmWarnings']});}export async function updatePersonalRuntimeSkill(_0x3fc347,_0x148bfd,_0x18b230,_0x3b77ec={}){const _0x526ab6=a78_0x5d2c;return publishRuntimeSkill(_0x148bfd,{..._0x18b230,'skillCode':_0x18b230[_0x526ab6(0x182)]??_0x3fc347},{'visibility':_0x526ab6(0x198),'confirmWarnings':_0x3b77ec[_0x526ab6(0x18d)]});}export async function publishCompanyRuntimeSkill(_0x478e53,_0x25573f,_0x4811ac={}){const _0x204912=a78_0x5d2c;return publishRuntimeSkill(_0x478e53,_0x25573f,{'visibility':_0x204912(0x1ce),'confirmWarnings':_0x4811ac[_0x204912(0x18d)]});}export async function validateRuntimeSkillPublish(_0x56aa16,_0x49de76,_0x15a8be){const _0x5b4100=a78_0x5d2c,_0x432eab=buildRuntimeSkillPublishForm(_0x49de76,_0x15a8be[_0x5b4100(0x1f6)]),_0x431932=await skillHubJsonRequest(_0x5b4100(0x1ae)+encodeURIComponent(_0x56aa16)+_0x5b4100(0x1a7),{'method':_0x5b4100(0x207),'body':_0x432eab});return assertJointDiagramAcknowledged(_0x49de76[_0x5b4100(0x19d)],_0x431932[_0x5b4100(0x17c)],'validation'),{'valid':_0x431932[_0x5b4100(0x1fa)]===!![],'errors':Array['isArray'](_0x431932[_0x5b4100(0x17b)])?_0x431932[_0x5b4100(0x17b)]:[],'warnings':Array[_0x5b4100(0x1d8)](_0x431932['warnings'])?_0x431932['warnings']:[],'resolvedSlug':_0x431932['resolvedSlug'],'resolvedVersion':_0x431932[_0x5b4100(0x1be)],'diagramValidated':_0x431932[_0x5b4100(0x17c)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x4ee7fc,_0x25ab67,_0x5dca44,_0x5e66f0,_0x4f70d3){const _0x2dad29=a78_0x5d2c;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x4ee7fc,_0x25ab67,_0x5dca44,_0x2dad29(0x203)),{'method':'POST','query':{'scope':_0x5e66f0},'headers':{'Content-Type':_0x2dad29(0x1fc)},'body':JSON['stringify'](_0x4f70d3)});}export async function putRuntimeSkillVersionDiagram(_0x57fd78,_0xd4d57a,_0x2dcf32,_0x532573,_0x49bfee){const _0x11a4b0=a78_0x5d2c;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x57fd78,_0xd4d57a,_0x2dcf32),{'method':'PUT','query':{'scope':_0x532573},'headers':{'Content-Type':_0x11a4b0(0x1fc)},'body':JSON[_0x11a4b0(0x1ba)](_0x49bfee)});}export async function getRuntimeSkillVersionDiagram(_0x4feb07,_0x5a69d6,_0x844231,_0x3e214f){const _0x3b389b=a78_0x5d2c,_0x1ed613=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x4feb07,_0x5a69d6,_0x844231),{'query':{'scope':_0x3e214f}});if(typeof _0x1ed613[_0x3b389b(0x173)]!=='boolean')throw CliErrors['apiError'](_0x3b389b(0x1e2));const _0x5769f1=_0x1ed613['sourceFingerprint'];if(typeof _0x5769f1!==_0x3b389b(0x1bf)||!/^sha256:[0-9a-f]{64}$/[_0x3b389b(0x1b8)](_0x5769f1))throw CliErrors[_0x3b389b(0x1d6)](_0x3b389b(0x1e6),'SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.');const _0x5f4d1e=_0x1ed613[_0x3b389b(0x1ea)];if(_0x1ed613[_0x3b389b(0x173)]&&(!Number[_0x3b389b(0x1e7)](_0x5f4d1e)||Number(_0x5f4d1e)<0x1))throw CliErrors['apiError'](_0x3b389b(0x1a5));if(!_0x1ed613[_0x3b389b(0x173)]&&_0x5f4d1e!==undefined&&_0x5f4d1e!==null)throw CliErrors[_0x3b389b(0x1d6)](_0x3b389b(0x1aa));const _0x145040=_0x1ed613[_0x3b389b(0x173)]?Number(_0x5f4d1e):null;return{..._0x1ed613,'sourceFingerprint':_0x5769f1,'diagramRevision':_0x145040,'expectedDiagramRevision':_0x145040??0x0};}export async function downloadRuntimeSkillPackage(_0x51a039,_0x3c61df,_0x39c5eb,_0x5aec5c){const _0x457555=a78_0x5d2c;void _0x51a039;const _0x429d4c=_0x5aec5c?_0x457555(0x1ae)+encodeURIComponent(_0x39c5eb)+'/'+encodeURIComponent(_0x3c61df)+_0x457555(0x206)+encodeURIComponent(_0x5aec5c)+_0x457555(0x1d7):_0x457555(0x1ae)+encodeURIComponent(_0x39c5eb)+'/'+encodeURIComponent(_0x3c61df)+_0x457555(0x1d7);return skillHubBinaryRequest(_0x429d4c);}async function publishRuntimeSkill(_0x39a2d3,_0x12f5cd,_0xfadd93){const _0x2d6b33=a78_0x5d2c,_0x5c2ea6=buildRuntimeSkillPublishForm(_0x12f5cd,_0xfadd93[_0x2d6b33(0x1f6)]),_0x35a102=await skillHubJsonRequest(_0x2d6b33(0x1ae)+encodeURIComponent(_0x39a2d3)+_0x2d6b33(0x1b6),{'method':_0x2d6b33(0x207),'query':{'confirmWarnings':_0xfadd93[_0x2d6b33(0x18d)]===!![]?!![]:undefined},'body':_0x5c2ea6});return assertJointDiagramAcknowledged(_0x12f5cd[_0x2d6b33(0x19d)],_0x35a102[_0x2d6b33(0x1de)],_0x2d6b33(0x1e5)),{'appCode':_0x35a102[_0x2d6b33(0x1e4)]??_0x39a2d3,'skillCode':_0x35a102[_0x2d6b33(0x1a0)]??_0x12f5cd[_0x2d6b33(0x182)]??'','skillName':_0x12f5cd[_0x2d6b33(0x16b)]??_0x35a102[_0x2d6b33(0x1a0)]??_0x12f5cd[_0x2d6b33(0x182)],'description':_0x12f5cd[_0x2d6b33(0x166)],'scope':skillHubVisibilityToScope(_0x35a102[_0x2d6b33(0x1f6)]??_0xfadd93[_0x2d6b33(0x1f6)])??_0x2d6b33(0x1b7),'version':_0x35a102['version']??_0x12f5cd['version'],'tags':_0x12f5cd[_0x2d6b33(0x16c)],'content':_0x12f5cd[_0x2d6b33(0x165)],'diagramBound':_0x35a102[_0x2d6b33(0x1de)]===!![]};}function assertJointDiagramAcknowledged(_0x2be492,_0x39208b,_0x1fc203){const _0x4b3b2e=a78_0x5d2c;if(!_0x2be492||_0x39208b===!![])return;throw CliErrors[_0x4b3b2e(0x1d6)]('SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20'+_0x1fc203+'.','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.');}function buildRuntimeSkillPublishForm(_0x2869f0,_0x593b89){const _0x452311=a78_0x5d2c,_0x65a6d9=new FormData();return _0x65a6d9[_0x452311(0x19a)](_0x452311(0x175),runtimeSkillPackageFile(_0x2869f0)),_0x2869f0[_0x452311(0x16b)]?.[_0x452311(0x1da)]()&&_0x65a6d9[_0x452311(0x19a)](_0x452311(0x1eb),_0x2869f0[_0x452311(0x16b)][_0x452311(0x1da)]()),_0x65a6d9[_0x452311(0x19a)](_0x452311(0x1f6),_0x593b89),_0x2869f0[_0x452311(0x19d)]&&_0x65a6d9[_0x452311(0x19a)](_0x452311(0x19d),new Blob([JSON[_0x452311(0x1ba)](_0x2869f0[_0x452311(0x19d)])],{'type':_0x452311(0x1fc)})),_0x65a6d9;}function runtimeSkillVersionDiagramPath(_0x469d4e,_0x5ba4ba,_0x24944b,_0x397941=''){const _0x989d88=a78_0x5d2c;return _0x989d88(0x1ae)+encodeURIComponent(_0x469d4e)+'/'+encodeURIComponent(_0x5ba4ba)+_0x989d88(0x206)+encodeURIComponent(_0x24944b)+_0x989d88(0x1db)+_0x397941;}function runtimeSkillPackageFile(_0x3dbbb0){const _0x29eeb2=a78_0x5d2c;if(!_0x3dbbb0['packageBase64'])throw CliErrors['validation']('Missing\x20Skill\x20package\x20payload.');const _0x5df7c4=Buffer['from'](_0x3dbbb0[_0x29eeb2(0x1ec)],'base64'),_0x237f89=new Blob([_0x5df7c4],{'type':_0x29eeb2(0x174)}),_0x3cc81a=(_0x3dbbb0[_0x29eeb2(0x182)]||'skill')+_0x29eeb2(0x1e9);if(typeof File!==_0x29eeb2(0x19b))return new File([_0x237f89],_0x3cc81a,{'type':_0x29eeb2(0x174)});return _0x237f89;}function normalizeSkillHubRuntimeListResponse(_0x20a1a4,_0x43e0ba,_0x4f856c,_0x43fa14){const _0x50a713=a78_0x5d2c,_0x5849d4=Array[_0x50a713(0x1d8)](_0x43e0ba)?_0x43e0ba:Array[_0x50a713(0x1d8)](_0x43e0ba?.['items'])?_0x43e0ba[_0x50a713(0x16f)]:[],_0x5d2065=_0x43fa14?.[_0x50a713(0x1da)](),_0x5f304d=_0x5849d4[_0x50a713(0x1c1)](_0xf31942=>!_0x5d2065||_0xf31942[_0x50a713(0x1a0)]===_0x5d2065)[_0x50a713(0x1d5)](skillHubRuntimeItemToRuntimeSkill)[_0x50a713(0x1c1)](_0x3bd64f=>Boolean(_0x3bd64f)),_0x4017f9=_0x5f304d['filter'](_0x1dc43d=>_0x1dc43d[_0x50a713(0x162)]===_0x50a713(0x1b7)),_0x2c2c5d=_0x5f304d[_0x50a713(0x1c1)](_0x207975=>_0x207975['scope']===_0x50a713(0x1f7));return{'appCode':_0x20a1a4,'personal':_0x4f856c==='company'?[]:_0x4017f9,'company':_0x4f856c===_0x50a713(0x1b7)?[]:_0x2c2c5d,'effective':buildEffectiveRuntimeSkills(_0x4017f9,_0x2c2c5d,_0x4f856c)};}function skillHubRuntimeItemToRuntimeSkill(_0x4d74b8){const _0x23bd28=a78_0x5d2c,_0x5cf769=_0x4d74b8['slug']?.['trim'](),_0x3b407e=skillHubVisibilityToScope(_0x4d74b8[_0x23bd28(0x1f6)]);if(!_0x5cf769||!_0x3b407e)return undefined;return{'id':_0x4d74b8['id'],'appCode':_0x4d74b8[_0x23bd28(0x1e4)],'skillCode':_0x5cf769,'skillName':_0x4d74b8[_0x23bd28(0x1eb)]??_0x5cf769,'description':_0x4d74b8[_0x23bd28(0x181)],'scope':_0x3b407e,'version':skillHubRuntimeItemVersion(_0x4d74b8),'status':_0x4d74b8[_0x23bd28(0x1ee)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x38967a){const _0x2f93fd=a78_0x5d2c,_0x3b1e87=_0x38967a[_0x2f93fd(0x1a0)]?.[_0x2f93fd(0x1da)]();if(!_0x3b1e87)return undefined;return{'id':_0x38967a['id'],'appCode':_0x38967a['namespace'],'skillCode':_0x3b1e87,'skillName':_0x38967a[_0x2f93fd(0x1eb)]??_0x3b1e87,'description':_0x38967a[_0x2f93fd(0x181)],'example':_0x38967a[_0x2f93fd(0x16d)],'scope':skillHubVisibilityToScope(_0x38967a[_0x2f93fd(0x1f6)])??_0x38967a['visibility']?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x38967a),'status':_0x38967a[_0x2f93fd(0x1ee)]};}function skillHubVisibilityToScope(_0x4b8675){const _0x39a650=a78_0x5d2c;if(_0x4b8675==='PRIVATE')return _0x39a650(0x1b7);if(_0x4b8675===_0x39a650(0x1ce))return _0x39a650(0x1f7);return undefined;}function skillHubRuntimeItemVersion(_0x32ea87){const _0x4e79f0=a78_0x5d2c;return _0x32ea87['publishedVersion']?.[_0x4e79f0(0x1c4)]??_0x32ea87[_0x4e79f0(0x186)]?.[_0x4e79f0(0x1c4)]??_0x32ea87['ownerPreviewVersion']?.['version'];}function buildEffectiveRuntimeSkills(_0x58e7fa,_0x3d8802,_0x189eaf){const _0x38bdd8=a78_0x5d2c;if(_0x189eaf===_0x38bdd8(0x1b7))return _0x58e7fa;if(_0x189eaf===_0x38bdd8(0x1f7))return _0x3d8802;const _0x2a7ade=new Map();for(const _0x5589af of _0x3d8802){_0x2a7ade[_0x38bdd8(0x19a)](_0x5589af[_0x38bdd8(0x182)],_0x5589af);}for(const _0x419c21 of _0x58e7fa){_0x2a7ade[_0x38bdd8(0x19a)](_0x419c21[_0x38bdd8(0x182)],_0x419c21);}return Array[_0x38bdd8(0x1c6)](_0x2a7ade[_0x38bdd8(0x184)]());}function normalizeRuntimeSkillListResponse(_0x5e2760,_0x20ded3){const _0x2083c4=a78_0x5d2c;if(Array['isArray'](_0x20ded3)){const _0x4ac7b2=_0x20ded3[_0x2083c4(0x1c1)](_0x5e885e=>_0x5e885e[_0x2083c4(0x162)]==='personal'),_0x2d2ec2=_0x20ded3[_0x2083c4(0x1c1)](_0x27cf97=>_0x27cf97[_0x2083c4(0x162)]===_0x2083c4(0x1f7));return{'appCode':_0x5e2760,'personal':_0x4ac7b2,'company':_0x2d2ec2,'effective':[..._0x2d2ec2,..._0x4ac7b2]};}return{'appCode':_0x20ded3?.[_0x2083c4(0x1b1)]??_0x5e2760,'personal':Array[_0x2083c4(0x1d8)](_0x20ded3?.[_0x2083c4(0x1b7)])?_0x20ded3[_0x2083c4(0x1b7)]:[],'company':Array['isArray'](_0x20ded3?.['company'])?_0x20ded3[_0x2083c4(0x1f7)]:[],'effective':Array[_0x2083c4(0x1d8)](_0x20ded3?.[_0x2083c4(0x199)])?_0x20ded3['effective']:[]};}
@@ -1 +1 @@
1
- function a79_0x9d69(_0x35ba04,_0x1d7a23){_0x35ba04=_0x35ba04-0x159;const _0x3f0e6b=a79_0x3f0e();let _0x9d69eb=_0x3f0e6b[_0x35ba04];return _0x9d69eb;}(function(_0x4da65d,_0x16db8f){const _0x1d4621=a79_0x9d69,_0x150b98=_0x4da65d();while(!![]){try{const _0x397575=-parseInt(_0x1d4621(0x168))/0x1+parseInt(_0x1d4621(0x169))/0x2*(-parseInt(_0x1d4621(0x160))/0x3)+-parseInt(_0x1d4621(0x15f))/0x4+parseInt(_0x1d4621(0x16b))/0x5*(-parseInt(_0x1d4621(0x162))/0x6)+parseInt(_0x1d4621(0x159))/0x7+parseInt(_0x1d4621(0x15d))/0x8*(parseInt(_0x1d4621(0x167))/0x9)+-parseInt(_0x1d4621(0x15a))/0xa*(-parseInt(_0x1d4621(0x16a))/0xb);if(_0x397575===_0x16db8f)break;else _0x150b98['push'](_0x150b98['shift']());}catch(_0xc998d){_0x150b98['push'](_0x150b98['shift']());}}}(a79_0x3f0e,0x3a8a2));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x190b99){const _0x23f6e6=a79_0x9d69;if(cache['has'](_0x190b99))return cache[_0x23f6e6(0x15e)](_0x190b99);const _0x1e7bdc=await listDatasets(_0x190b99),_0x11303a=new Map();for(const _0x5cde70 of _0x1e7bdc){const _0x401a73=_0x5cde70[_0x23f6e6(0x15b)];_0x401a73?.[_0x23f6e6(0x164)]!=null&&_0x11303a[_0x23f6e6(0x161)](_0x401a73['dbId'],_0x401a73[_0x23f6e6(0x15c)]??_0x23f6e6(0x166)+_0x401a73[_0x23f6e6(0x164)]);}const _0x2d7aa9=[..._0x11303a[_0x23f6e6(0x165)]()]['map'](([_0xd66f82,_0x5adac6])=>({'dbId':_0xd66f82,'dbName':_0x5adac6}));return cache['set'](_0x190b99,_0x2d7aa9),_0x2d7aa9;}export async function getDbName(_0x509ed3,_0x52fb2b){const _0xf0194e=a79_0x9d69;try{const _0x5a4bb0=await listDatabases(_0x509ed3);return _0x5a4bb0[_0xf0194e(0x163)](_0x4a3d9b=>_0x4a3d9b['dbId']===_0x52fb2b)?.[_0xf0194e(0x15c)];}catch{return undefined;}}function a79_0x3f0e(){const _0x2f0323=['set','288234UxaDRF','find','dbId','entries','db-','259839MZfaZF','170406FyZEOR','1050oLGVCW','11shWccb','5AHyYbU','1604337xKDRZI','3047440DPgGwh','dbtableConfig','dbName','32IUvszn','get','724884WzZRWN','57JrWnLH'];a79_0x3f0e=function(){return _0x2f0323;};return a79_0x3f0e();}
1
+ function a79_0xe670(_0x5f390e,_0x5ec6f6){_0x5f390e=_0x5f390e-0x1d7;const _0x1a3a6f=a79_0x1a3a();let _0xe67074=_0x1a3a6f[_0x5f390e];return _0xe67074;}function a79_0x1a3a(){const _0x267da0=['8BWcGmt','map','3861ZRIwYk','425369pEvGor','has','1272880LuKPiz','dbId','40pZGQim','dbName','78687XOsFnb','218pUkplr','6524320jvWghY','set','919730LZQEYf','30842tvnjeV','find','6kJbIIs'];a79_0x1a3a=function(){return _0x267da0;};return a79_0x1a3a();}(function(_0x149741,_0x573510){const _0x4a7b5e=a79_0xe670,_0xfcc7a1=_0x149741();while(!![]){try{const _0x55dddc=parseInt(_0x4a7b5e(0x1e0))/0x1+-parseInt(_0x4a7b5e(0x1dc))/0x2*(-parseInt(_0x4a7b5e(0x1e5))/0x3)+-parseInt(_0x4a7b5e(0x1d7))/0x4+parseInt(_0x4a7b5e(0x1df))/0x5*(-parseInt(_0x4a7b5e(0x1e2))/0x6)+parseInt(_0x4a7b5e(0x1e6))/0x7*(-parseInt(_0x4a7b5e(0x1e3))/0x8)+-parseInt(_0x4a7b5e(0x1db))/0x9*(parseInt(_0x4a7b5e(0x1d9))/0xa)+parseInt(_0x4a7b5e(0x1dd))/0xb;if(_0x55dddc===_0x573510)break;else _0xfcc7a1['push'](_0xfcc7a1['shift']());}catch(_0x3c46f3){_0xfcc7a1['push'](_0xfcc7a1['shift']());}}}(a79_0x1a3a,0x289c4));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x4c2653){const _0x24b146=a79_0xe670;if(cache[_0x24b146(0x1e7)](_0x4c2653))return cache['get'](_0x4c2653);const _0x4cd6cb=await listDatasets(_0x4c2653),_0x414657=new Map();for(const _0x3c19ad of _0x4cd6cb){const _0x163547=_0x3c19ad['dbtableConfig'];_0x163547?.[_0x24b146(0x1d8)]!=null&&_0x414657[_0x24b146(0x1de)](_0x163547['dbId'],_0x163547[_0x24b146(0x1da)]??'db-'+_0x163547['dbId']);}const _0x1da539=[..._0x414657['entries']()][_0x24b146(0x1e4)](([_0x4433c2,_0x4fd035])=>({'dbId':_0x4433c2,'dbName':_0x4fd035}));return cache['set'](_0x4c2653,_0x1da539),_0x1da539;}export async function getDbName(_0x519cbe,_0x5c79d6){const _0x28ecdc=a79_0xe670;try{const _0x17d93c=await listDatabases(_0x519cbe);return _0x17d93c[_0x28ecdc(0x1e1)](_0xf0ca80=>_0xf0ca80[_0x28ecdc(0x1d8)]===_0x5c79d6)?.['dbName'];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x281866,_0x26b928){const _0x3c0962=a80_0x1aea,_0x1ca8a5=_0x281866();while(!![]){try{const _0x4f57c2=parseInt(_0x3c0962(0xa2))/0x1+parseInt(_0x3c0962(0x90))/0x2+-parseInt(_0x3c0962(0x81))/0x3*(-parseInt(_0x3c0962(0xa1))/0x4)+parseInt(_0x3c0962(0x8a))/0x5*(parseInt(_0x3c0962(0xa5))/0x6)+parseInt(_0x3c0962(0x99))/0x7+-parseInt(_0x3c0962(0x8c))/0x8*(parseInt(_0x3c0962(0x94))/0x9)+-parseInt(_0x3c0962(0x8b))/0xa*(parseInt(_0x3c0962(0xa7))/0xb);if(_0x4f57c2===_0x26b928)break;else _0x1ca8a5['push'](_0x1ca8a5['shift']());}catch(_0x25df95){_0x1ca8a5['push'](_0x1ca8a5['shift']());}}}(a80_0x3659,0x44212));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a80_0x1aea(_0x26b804,_0x267b82){_0x26b804=_0x26b804-0x7e;const _0x36595d=a80_0x3659();let _0x1aea59=_0x36595d[_0x26b804];return _0x1aea59;}import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x3bc8b5){const _0x1b7ccd=a80_0x1aea;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x3bc8b5[_0x1b7ccd(0x86)],'env':_0x3bc8b5[_0x1b7ccd(0x80)],'authMode':_0x3bc8b5['authMode'],..._0x3bc8b5['accessKey']?{'accessKey':_0x3bc8b5[_0x1b7ccd(0x85)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1b7ccd(0x9e)]}}});}catch(_0x21c602){clearSdkClient();throw _0x21c602;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0x4e1845=a80_0x1aea;if(!_client)throw new Error(_0x4e1845(0x89));return _client;}function normalizeAggregateParams(_0x330fb7){const _0x1e0f0d=a80_0x1aea,_0x41db24=_0x330fb7['aggregate'];if(_0x41db24===undefined)return _0x330fb7;if(!Array[_0x1e0f0d(0x88)](_0x41db24))throw CliErrors[_0x1e0f0d(0xa4)](_0x1e0f0d(0x9f));return{..._0x330fb7,'aggregate':_0x41db24[_0x1e0f0d(0x7e)]((_0x4db401,_0x1adf40)=>{const _0x54cd00=_0x1e0f0d;if(!_0x4db401||typeof _0x4db401!==_0x54cd00(0x8f)||Array[_0x54cd00(0x88)](_0x4db401))throw CliErrors[_0x54cd00(0xa4)]('data\x20aggregate\x20--params.aggregate['+_0x1adf40+_0x54cd00(0x9a));const _0x5342a0=_0x4db401[_0x54cd00(0x93)]??_0x4db401['field'];if(typeof _0x5342a0!=='string'||_0x5342a0[_0x54cd00(0x92)]()==='')throw CliErrors[_0x54cd00(0xa4)](_0x54cd00(0xa0)+_0x1adf40+_0x54cd00(0xa6));const _0x12d3da={..._0x4db401,'column':_0x5342a0};return delete _0x12d3da['field'],_0x12d3da;})};}export async function executeData(_0x92b5de,_0x1e380c,_0x57022a){const _0x3a4c4e=a80_0x1aea,_0x3198a2=ensureClient(),_0x1dab6c=_0x3a4c4e(0x8e)+_0x92b5de,_0x21ce54=_0x3198a2[_0x3a4c4e(0x9b)][_0x1dab6c];if(!_0x21ce54||typeof _0x21ce54[_0x1e380c]!==_0x3a4c4e(0x8d))throw new Error(_0x3a4c4e(0x83)+_0x1e380c+'\x22.\x20'+_0x3a4c4e(0x84));if(_0x1e380c===_0x3a4c4e(0x91))return _0x21ce54[_0x3a4c4e(0x91)](parseBatchCreateItemsFromParams(_0x57022a));const _0x361c6d=_0x57022a!==undefined&&_0x57022a!==null&&!Array[_0x3a4c4e(0x88)](_0x57022a)?_0x57022a:{};switch(_0x1e380c){case'getOne':{const _0x413bec=_0x361c6d['id'];if(_0x413bec===undefined||_0x413bec===null)throw new Error(_0x3a4c4e(0x87));return _0x21ce54[_0x3a4c4e(0x9d)](_0x413bec);}case _0x3a4c4e(0x97):{const {id:_0x4aab88,..._0x1b7505}=_0x361c6d;if(_0x4aab88===undefined||_0x4aab88===null)throw new Error(_0x3a4c4e(0x82));return _0x21ce54['update'](_0x4aab88,_0x1b7505);}case _0x3a4c4e(0x7f):{const _0x4b48aa=_0x361c6d['id'];if(_0x4b48aa===undefined||_0x4b48aa===null)throw new Error(_0x3a4c4e(0x96));return _0x21ce54[_0x3a4c4e(0x7f)](_0x4b48aa);}case _0x3a4c4e(0x98):return _0x21ce54[_0x3a4c4e(0x98)](normalizeAggregateParams(_0x361c6d));default:return _0x21ce54[_0x1e380c](_0x361c6d);}}function a80_0x3659(){const _0x549e2f=['38008LNYpfK','function','dataset_','object','331556TbvWWC','batchCreate','trim','column','207aKSXDx','bff','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','update','aggregate','2121119RWxiPq',']\x20must\x20be\x20an\x20object.','models','sql','getOne','invokeSource','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','data\x20aggregate\x20--params.aggregate[','436440LQOLKs','154404DUnfXA','execute','validation','666JyOnDI',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','103763BdNhsX','map','delete','env','3wNfRNj','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','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','accessKey','appCode','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','isArray','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','10425ztZIxh','610VgybZO'];a80_0x3659=function(){return _0x549e2f;};return a80_0x3659();}export async function executeSdkSql(_0x2653c1,_0x166881){const _0x42d858=a80_0x1aea,_0x554b91=ensureClient();return _0x554b91[_0x42d858(0x9c)][_0x42d858(0xa3)]({'sqlCode':_0x2653c1,'params':_0x166881});}export async function executeSdkBff(_0x116770,_0x2e92f7){const _0x1ef8b7=a80_0x1aea,_0x1fd900=ensureClient();return _0x1fd900[_0x1ef8b7(0x95)][_0x1ef8b7(0xa3)]({'scriptName':_0x116770,'params':_0x2e92f7});}
1
+ (function(_0x331fe2,_0x3deff0){const _0x52ce21=a80_0x5827,_0x29df70=_0x331fe2();while(!![]){try{const _0x3e536a=parseInt(_0x52ce21(0x1ae))/0x1*(parseInt(_0x52ce21(0x1b4))/0x2)+-parseInt(_0x52ce21(0x190))/0x3*(parseInt(_0x52ce21(0x19d))/0x4)+parseInt(_0x52ce21(0x1aa))/0x5*(-parseInt(_0x52ce21(0x1b2))/0x6)+parseInt(_0x52ce21(0x1b7))/0x7+parseInt(_0x52ce21(0x1a4))/0x8+parseInt(_0x52ce21(0x1af))/0x9*(parseInt(_0x52ce21(0x1ad))/0xa)+-parseInt(_0x52ce21(0x1a2))/0xb;if(_0x3e536a===_0x3deff0)break;else _0x29df70['push'](_0x29df70['shift']());}catch(_0x304baf){_0x29df70['push'](_0x29df70['shift']());}}}(a80_0x378c,0x5d8cd));function a80_0x5827(_0x53f7c1,_0xcadbbc){_0x53f7c1=_0x53f7c1-0x18d;const _0x378c22=a80_0x378c();let _0x5827fb=_0x378c22[_0x53f7c1];return _0x5827fb;}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a80_0x378c(){const _0x4e03f0=['trim','data\x20aggregate\x20--params.aggregate[','delete','63JdxpYq','update','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','bff','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','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','execute','models','appCode','aggregate','accessKey',']\x20must\x20be\x20an\x20object.','isArray','69860uQHlmB','env','batchCreate','field','dataset_','3509451JGfwRp','map','4652232bbQeBp','\x22.\x20',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','invokeSource','authMode','getOne','55WBctfR','validation','string','4986870WJFpEh','127HkKjdp','9nlnRWx','column','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','330366WUGbWO','object','6458DzPTsE','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','function','1290513TOMDvC'];a80_0x378c=function(){return _0x4e03f0;};return a80_0x378c();}import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x32ad3a){const _0x5e4820=a80_0x5827;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x32ad3a[_0x5e4820(0x198)],'env':_0x32ad3a[_0x5e4820(0x19e)],'authMode':_0x32ad3a[_0x5e4820(0x1a8)],..._0x32ad3a['accessKey']?{'accessKey':_0x32ad3a[_0x5e4820(0x19a)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5e4820(0x1a7)]}}});}catch(_0x25ae9d){clearSdkClient();throw _0x25ae9d;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0x3cf45b=a80_0x5827;if(!_client)throw new Error(_0x3cf45b(0x192));return _client;}function normalizeAggregateParams(_0x494122){const _0x4e7be7=a80_0x5827,_0x3418cd=_0x494122[_0x4e7be7(0x199)];if(_0x3418cd===undefined)return _0x494122;if(!Array['isArray'](_0x3418cd))throw CliErrors[_0x4e7be7(0x1ab)](_0x4e7be7(0x1b1));return{..._0x494122,'aggregate':_0x3418cd[_0x4e7be7(0x1a3)]((_0x5402a9,_0x10263f)=>{const _0x5dd5f4=_0x4e7be7;if(!_0x5402a9||typeof _0x5402a9!==_0x5dd5f4(0x1b3)||Array[_0x5dd5f4(0x19c)](_0x5402a9))throw CliErrors[_0x5dd5f4(0x1ab)](_0x5dd5f4(0x18e)+_0x10263f+_0x5dd5f4(0x19b));const _0x5a9ed0=_0x5402a9[_0x5dd5f4(0x1b0)]??_0x5402a9[_0x5dd5f4(0x1a0)];if(typeof _0x5a9ed0!==_0x5dd5f4(0x1ac)||_0x5a9ed0[_0x5dd5f4(0x18d)]()==='')throw CliErrors[_0x5dd5f4(0x1ab)](_0x5dd5f4(0x18e)+_0x10263f+_0x5dd5f4(0x1a6));const _0x1d1ed0={..._0x5402a9,'column':_0x5a9ed0};return delete _0x1d1ed0[_0x5dd5f4(0x1a0)],_0x1d1ed0;})};}export async function executeData(_0x447fff,_0xb4ea8c,_0x240e3c){const _0x2bb36e=a80_0x5827,_0x907f11=ensureClient(),_0xb53b1e=_0x2bb36e(0x1a1)+_0x447fff,_0x1e3560=_0x907f11[_0x2bb36e(0x197)][_0xb53b1e];if(!_0x1e3560||typeof _0x1e3560[_0xb4ea8c]!==_0x2bb36e(0x1b6))throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0xb4ea8c+_0x2bb36e(0x1a5)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0xb4ea8c==='batchCreate')return _0x1e3560[_0x2bb36e(0x19f)](parseBatchCreateItemsFromParams(_0x240e3c));const _0x352f92=_0x240e3c!==undefined&&_0x240e3c!==null&&!Array[_0x2bb36e(0x19c)](_0x240e3c)?_0x240e3c:{};switch(_0xb4ea8c){case _0x2bb36e(0x1a9):{const _0x3ed117=_0x352f92['id'];if(_0x3ed117===undefined||_0x3ed117===null)throw new Error(_0x2bb36e(0x1b5));return _0x1e3560[_0x2bb36e(0x1a9)](_0x3ed117);}case _0x2bb36e(0x191):{const {id:_0x285910,..._0x301be7}=_0x352f92;if(_0x285910===undefined||_0x285910===null)throw new Error(_0x2bb36e(0x194));return _0x1e3560[_0x2bb36e(0x191)](_0x285910,_0x301be7);}case _0x2bb36e(0x18f):{const _0x2d9f45=_0x352f92['id'];if(_0x2d9f45===undefined||_0x2d9f45===null)throw new Error(_0x2bb36e(0x195));return _0x1e3560['delete'](_0x2d9f45);}case _0x2bb36e(0x199):return _0x1e3560[_0x2bb36e(0x199)](normalizeAggregateParams(_0x352f92));default:return _0x1e3560[_0xb4ea8c](_0x352f92);}}export async function executeSdkSql(_0x3fe2ee,_0x34add8){const _0x44eb6c=a80_0x5827,_0x4e3d36=ensureClient();return _0x4e3d36['sql'][_0x44eb6c(0x196)]({'sqlCode':_0x3fe2ee,'params':_0x34add8});}export async function executeSdkBff(_0x52dcbf,_0x2be65b){const _0x1b7173=a80_0x5827,_0x59d34c=ensureClient();return _0x59d34c[_0x1b7173(0x193)][_0x1b7173(0x196)]({'scriptName':_0x52dcbf,'params':_0x2be65b});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a81_0x410f(_0x56dfd2,_0x56a087){_0x56dfd2=_0x56dfd2-0x7b;const _0xbbb555=a81_0xbbb5();let _0x410fbc=_0xbbb555[_0x56dfd2];return _0x410fbc;}const a81_0x5af572=a81_0x410f;(function(_0x437387,_0x2172dc){const _0x1d3196=a81_0x410f,_0x56a909=_0x437387();while(!![]){try{const _0x527ccc=-parseInt(_0x1d3196(0x7e))/0x1*(parseInt(_0x1d3196(0x81))/0x2)+-parseInt(_0x1d3196(0x83))/0x3*(parseInt(_0x1d3196(0x7d))/0x4)+parseInt(_0x1d3196(0x80))/0x5*(-parseInt(_0x1d3196(0x86))/0x6)+-parseInt(_0x1d3196(0x8a))/0x7*(-parseInt(_0x1d3196(0x82))/0x8)+-parseInt(_0x1d3196(0x89))/0x9*(-parseInt(_0x1d3196(0x7f))/0xa)+parseInt(_0x1d3196(0x8b))/0xb+parseInt(_0x1d3196(0x87))/0xc;if(_0x527ccc===_0x2172dc)break;else _0x56a909['push'](_0x56a909['shift']());}catch(_0x287902){_0x56a909['push'](_0x56a909['shift']());}}}(a81_0xbbb5,0xe88c2));function a81_0xbbb5(){const _0x13852e=['\x20or\x20run\x20`','48740usryde','7Hdgnlu','20TdoZfS','1510zmBLxQ','85372rwEZfJ','8403848xIismQ','327wymuff','\x20file.','Set\x20appcode\x20via\x20--appcode\x20or\x20','10374ljnEbq','2714136MpuJvy','\x20auth\x20login`.','5140026AcdSGR','7GRfyjm','7510272YWQPtJ','newConfigFileName'];a81_0xbbb5=function(){return _0x13852e;};return a81_0xbbb5();}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':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[a81_0x5af572(0x7b)]+a81_0x5af572(0x7c)+CLI_BIN_NAME+a81_0x5af572(0x88),'configMissingHint':a81_0x5af572(0x85)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a81_0x5af572(0x7b)]+a81_0x5af572(0x84)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x4db962,_0x5914a9)=>new CliError('rate_limited',0x2,_0x4db962,_0x5914a9)};
1
+ function a81_0xa736(){const _0x4b83e6=['4203126pRMTOB','\x20auth\x20login`.','140SYzzyd','3426iKEPdK','\x20or\x20run\x20`','rate_limited','27ljrpVS','7wXcPUJ','27129sTHWgZ','310783BAiDwz','Set\x20appcode\x20via\x20--appcode\x20or\x20','Configure\x20accessKey\x20in\x20','21092BPfToh','\x20file.','30fMtFoA','1567064sztMDW','2990qyfDuS','newConfigFileName','6739512GsJzJH'];a81_0xa736=function(){return _0x4b83e6;};return a81_0xa736();}const a81_0x5f5376=a81_0x2903;(function(_0x1210ef,_0x1869ab){const _0x48d8f3=a81_0x2903,_0x3ce535=_0x1210ef();while(!![]){try{const _0x275805=-parseInt(_0x48d8f3(0xbd))/0x1*(parseInt(_0x48d8f3(0xc3))/0x2)+-parseInt(_0x48d8f3(0xbf))/0x3*(-parseInt(_0x48d8f3(0xb9))/0x4)+parseInt(_0x48d8f3(0xc7))/0x5*(-parseInt(_0x48d8f3(0xba))/0x6)+parseInt(_0x48d8f3(0xbe))/0x7*(-parseInt(_0x48d8f3(0xc6))/0x8)+parseInt(_0x48d8f3(0xca))/0x9+-parseInt(_0x48d8f3(0xc5))/0xa*(parseInt(_0x48d8f3(0xc0))/0xb)+parseInt(_0x48d8f3(0xc9))/0xc;if(_0x275805===_0x1869ab)break;else _0x3ce535['push'](_0x3ce535['shift']());}catch(_0x2b198a){_0x3ce535['push'](_0x3ce535['shift']());}}}(a81_0xa736,0x6b01f));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_0x5f5376(0xc2)+PRODUCT_CONFIG['newConfigFileName']+a81_0x5f5376(0xbb)+CLI_BIN_NAME+a81_0x5f5376(0xb8),'configMissingHint':a81_0x5f5376(0xc1)+PRODUCT_CONFIG[a81_0x5f5376(0xc8)]+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a81_0x5f5376(0xc8)]+a81_0x5f5376(0xc4)});function a81_0x2903(_0x4cd25d,_0x56f12e){_0x4cd25d=_0x4cd25d-0xb8;const _0xa73687=a81_0xa736();let _0x2903df=_0xa73687[_0x4cd25d];return _0x2903df;}export const CliErrors={...baseCliErrors,'rateLimited':(_0x426af9,_0x28283f)=>new CliError(a81_0x5f5376(0xbc),0x2,_0x426af9,_0x28283f)};
@@ -1 +1 @@
1
- (function(_0x3b095b,_0x277934){var _0x152388=a82_0x5ef5,_0x22decf=_0x3b095b();while(!![]){try{var _0x706543=-parseInt(_0x152388(0xf9))/0x1*(-parseInt(_0x152388(0xf6))/0x2)+parseInt(_0x152388(0xf2))/0x3+-parseInt(_0x152388(0xf8))/0x4+-parseInt(_0x152388(0xf3))/0x5+parseInt(_0x152388(0xf4))/0x6*(-parseInt(_0x152388(0xfa))/0x7)+parseInt(_0x152388(0xf5))/0x8+parseInt(_0x152388(0xf7))/0x9;if(_0x706543===_0x277934)break;else _0x22decf['push'](_0x22decf['shift']());}catch(_0x3c8fcf){_0x22decf['push'](_0x22decf['shift']());}}}(a82_0x2a1a,0x1dbc5));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a82_0xdb4d74}from'@lovrabet/cli-framework';function a82_0x5ef5(_0x10b3fe,_0x335016){_0x10b3fe=_0x10b3fe-0xf2;var _0x2a1a38=a82_0x2a1a();var _0x5ef529=_0x2a1a38[_0x10b3fe];return _0x5ef529;}function a82_0x2a1a(){var _0x26061c=['526000siBZnw','6MUvleA','3469266qoURQS','817688hHtYlZ','67841hEXRHV','7DwTQsB','231738sZDRFU','1089820sJMeCR','1126860GoaGdY'];a82_0x2a1a=function(){return _0x26061c;};return a82_0x2a1a();}export function buildAllFlags(_0x47f906){return a82_0xdb4d74(_0x47f906,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x23bc49,_0x2f08a4){var _0x2b03e4=a82_0x4d43,_0x3c5524=_0x23bc49();while(!![]){try{var _0x2913b9=-parseInt(_0x2b03e4(0xb2))/0x1*(-parseInt(_0x2b03e4(0xb1))/0x2)+parseInt(_0x2b03e4(0xb4))/0x3+parseInt(_0x2b03e4(0xaf))/0x4*(-parseInt(_0x2b03e4(0xb3))/0x5)+parseInt(_0x2b03e4(0xb6))/0x6+-parseInt(_0x2b03e4(0xae))/0x7*(parseInt(_0x2b03e4(0xb5))/0x8)+parseInt(_0x2b03e4(0xb7))/0x9+-parseInt(_0x2b03e4(0xb0))/0xa;if(_0x2913b9===_0x2f08a4)break;else _0x3c5524['push'](_0x3c5524['shift']());}catch(_0x27de44){_0x3c5524['push'](_0x3c5524['shift']());}}}(a82_0x152c,0x1c947));function a82_0x4d43(_0x5dbf49,_0x2e2b1a){_0x5dbf49=_0x5dbf49-0xae;var _0x152c31=a82_0x152c();var _0x4d4316=_0x152c31[_0x5dbf49];return _0x4d4316;}function a82_0x152c(){var _0x253035=['2mITstY','206439scBfXf','190370qtDgQO','442797PKbPlu','16aoXziD','894030EaKfcq','395271nlyXCi','758401ObtrpK','12aWDazL','989910ERHTxY'];a82_0x152c=function(){return _0x253035;};return a82_0x152c();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a82_0x4d2376}from'@lovrabet/cli-framework';export function buildAllFlags(_0xca9678){return a82_0x4d2376(_0xca9678,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a83_0x3505(_0x211778,_0x25ace6){_0x211778=_0x211778-0x115;const _0x1d2e7c=a83_0x1d2e();let _0x350540=_0x1d2e7c[_0x211778];return _0x350540;}(function(_0x26762a,_0x453b13){const _0x54d5b3=a83_0x3505,_0x3ece60=_0x26762a();while(!![]){try{const _0x282c8a=-parseInt(_0x54d5b3(0x120))/0x1*(parseInt(_0x54d5b3(0x11d))/0x2)+parseInt(_0x54d5b3(0x122))/0x3+parseInt(_0x54d5b3(0x118))/0x4*(parseInt(_0x54d5b3(0x11f))/0x5)+parseInt(_0x54d5b3(0x116))/0x6*(-parseInt(_0x54d5b3(0x119))/0x7)+-parseInt(_0x54d5b3(0x121))/0x8*(-parseInt(_0x54d5b3(0x11a))/0x9)+-parseInt(_0x54d5b3(0x115))/0xa*(parseInt(_0x54d5b3(0x11c))/0xb)+parseInt(_0x54d5b3(0x11b))/0xc*(parseInt(_0x54d5b3(0x117))/0xd);if(_0x282c8a===_0x453b13)break;else _0x3ece60['push'](_0x3ece60['shift']());}catch(_0x4e7a6f){_0x3ece60['push'](_0x3ece60['shift']());}}}(a83_0x1d2e,0x96678));export function dryRun(_0x212817,_0x455eb6){const _0x3bd5ca={'method':_0x212817,'url':_0x455eb6},_0x32f61d={'body'(_0x53f6c5){const _0x428d8a=a83_0x3505;return _0x3bd5ca[_0x428d8a(0x11e)]=_0x53f6c5,_0x32f61d;},'description'(_0x8f8690){return _0x3bd5ca['description']=_0x8f8690,_0x32f61d;},'build'(){return{..._0x3bd5ca};}};return _0x32f61d;}function a83_0x1d2e(){const _0x5d8383=['746696Qwuhbz','495549RzhNQt','2854470nqHkoI','6dWQAZT','949gLSppL','413940oeqGiM','171829cqaNMQ','9aVAZAt','203484hWzkCs','33doSjqv','9148rnMgXE','body','25rmWSQQ','113kMuPYU'];a83_0x1d2e=function(){return _0x5d8383;};return a83_0x1d2e();}
1
+ function a83_0x5fea(_0x36b349,_0x465198){_0x36b349=_0x36b349-0x18c;const _0x119c3e=a83_0x119c();let _0x5feada=_0x119c3e[_0x36b349];return _0x5feada;}function a83_0x119c(){const _0x5f55ac=['1229382fwcOPQ','8WNBclI','7SWYTTl','3262188iWHKSd','3868236UAuYzF','body','98578iImyDi','1762105qoimJt','1161153QbmfdW','352834mtuwIp','description'];a83_0x119c=function(){return _0x5f55ac;};return a83_0x119c();}(function(_0x3ac205,_0x101211){const _0x43ab14=a83_0x5fea,_0x18961e=_0x3ac205();while(!![]){try{const _0x1889c0=parseInt(_0x43ab14(0x190))/0x1+parseInt(_0x43ab14(0x193))/0x2+parseInt(_0x43ab14(0x192))/0x3+-parseInt(_0x43ab14(0x18d))/0x4+parseInt(_0x43ab14(0x191))/0x5+-parseInt(_0x43ab14(0x195))/0x6*(parseInt(_0x43ab14(0x18c))/0x7)+parseInt(_0x43ab14(0x196))/0x8*(parseInt(_0x43ab14(0x18e))/0x9);if(_0x1889c0===_0x101211)break;else _0x18961e['push'](_0x18961e['shift']());}catch(_0x3e9156){_0x18961e['push'](_0x18961e['shift']());}}}(a83_0x119c,0x67793));export function dryRun(_0x4ade3e,_0x49b253){const _0x49b552={'method':_0x4ade3e,'url':_0x49b253},_0x230564={'body'(_0x44fc9d){const _0x1b77ea=a83_0x5fea;return _0x49b552[_0x1b77ea(0x18f)]=_0x44fc9d,_0x230564;},'description'(_0x49fb73){const _0x11c34a=a83_0x5fea;return _0x49b552[_0x11c34a(0x194)]=_0x49fb73,_0x230564;},'build'(){return{..._0x49b552};}};return _0x230564;}
@@ -1 +1 @@
1
- const a84_0x314c73=a84_0x58cb;(function(_0x2dc848,_0xe0cce4){const _0x4663a6=a84_0x58cb,_0x39a0c9=_0x2dc848();while(!![]){try{const _0x56591f=parseInt(_0x4663a6(0x88))/0x1+-parseInt(_0x4663a6(0x89))/0x2+-parseInt(_0x4663a6(0x87))/0x3+parseInt(_0x4663a6(0x86))/0x4*(-parseInt(_0x4663a6(0x90))/0x5)+-parseInt(_0x4663a6(0x8e))/0x6*(-parseInt(_0x4663a6(0x8f))/0x7)+parseInt(_0x4663a6(0x8a))/0x8*(parseInt(_0x4663a6(0x8d))/0x9)+parseInt(_0x4663a6(0x8c))/0xa;if(_0x56591f===_0xe0cce4)break;else _0x39a0c9['push'](_0x39a0c9['shift']());}catch(_0x240b7b){_0x39a0c9['push'](_0x39a0c9['shift']());}}}(a84_0x7d63,0x78e06));import{createFlagHelpers}from'@lovrabet/cli-framework';function a84_0x7d63(){const _0x236d99=['8TQVbRY','147699krZItG','601464djaIYj','1450702VKMxAA','4136728UGHXNd','parseFlags','3301130cMKJaj','9cxJexI','2008128aHFiuB','7zQgYVG','1284155PHhXnI'];a84_0x7d63=function(){return _0x236d99;};return a84_0x7d63();}function a84_0x58cb(_0x2b1bef,_0x45c46d){_0x2b1bef=_0x2b1bef-0x86;const _0x7d63fb=a84_0x7d63();let _0x58cb13=_0x7d63fb[_0x2b1bef];return _0x58cb13;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a84_0x314c73(0x8b)];export const validateFlags=helpers['validateFlags'];
1
+ const a84_0x1ceeec=a84_0x169f;(function(_0x23aadd,_0x291bc4){const _0x28bab6=a84_0x169f,_0x294518=_0x23aadd();while(!![]){try{const _0x2c4b52=parseInt(_0x28bab6(0x115))/0x1+-parseInt(_0x28bab6(0x117))/0x2*(-parseInt(_0x28bab6(0x11e))/0x3)+-parseInt(_0x28bab6(0x11d))/0x4+-parseInt(_0x28bab6(0x120))/0x5+-parseInt(_0x28bab6(0x118))/0x6+parseInt(_0x28bab6(0x11b))/0x7*(-parseInt(_0x28bab6(0x11c))/0x8)+parseInt(_0x28bab6(0x11a))/0x9*(parseInt(_0x28bab6(0x116))/0xa);if(_0x2c4b52===_0x291bc4)break;else _0x294518['push'](_0x294518['shift']());}catch(_0x51e902){_0x294518['push'](_0x294518['shift']());}}}(a84_0x3662,0xd76e5));import{createFlagHelpers}from'@lovrabet/cli-framework';function a84_0x169f(_0x149a97,_0xf4670e){_0x149a97=_0x149a97-0x115;const _0x3662dc=a84_0x3662();let _0x169f02=_0x3662dc[_0x149a97];return _0x169f02;}import{CliErrors}from'../errors.js';function a84_0x3662(){const _0x4789a9=['26538270Lvjmvx','2643458UcDgaU','4999968ynkyMN','parseFlags','9LlMhDw','3457013YZQQLH','16pFxPPx','5647388kbbtIy','3sJzQUk','validateFlags','1453530HZWFBr','430448usikZx'];a84_0x3662=function(){return _0x4789a9;};return a84_0x3662();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a84_0x1ceeec(0x119)];export const validateFlags=helpers[a84_0x1ceeec(0x11f)];
@@ -1 +1 @@
1
- (function(_0x308144,_0x4b14da){const _0x23a69d=a85_0x5977,_0x4dea98=_0x308144();while(!![]){try{const _0x3e8037=-parseInt(_0x23a69d(0x155))/0x1+parseInt(_0x23a69d(0x156))/0x2+-parseInt(_0x23a69d(0x153))/0x3*(-parseInt(_0x23a69d(0x147))/0x4)+-parseInt(_0x23a69d(0x148))/0x5+-parseInt(_0x23a69d(0x14b))/0x6+-parseInt(_0x23a69d(0x151))/0x7*(parseInt(_0x23a69d(0x158))/0x8)+parseInt(_0x23a69d(0x14d))/0x9;if(_0x3e8037===_0x4b14da)break;else _0x4dea98['push'](_0x4dea98['shift']());}catch(_0x4bda46){_0x4dea98['push'](_0x4dea98['shift']());}}}(a85_0x239f,0xbff8a));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 _0x53e1b7=a85_0x5977;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x53e1b7(0x149)+PRODUCT_CONFIG[_0x53e1b7(0x14f)]+_0x53e1b7(0x14e)});}export function generateCommandHelp(_0x13c297){const _0x1471fb=a85_0x5977;return createGenerators()[_0x1471fb(0x14a)](_0x13c297);}export function generateServiceHelp(_0x589975){const _0x1237ec=a85_0x5977;return createGenerators()[_0x1237ec(0x152)](_0x589975);}export function generateFullHelp(){const _0x417ad0=a85_0x5977;return createGenerators()[_0x417ad0(0x150)]();}function a85_0x5977(_0x4c6b65,_0x126147){_0x4c6b65=_0x4c6b65-0x146;const _0x239fc0=a85_0x239f();let _0x5977c6=_0x239fc0[_0x4c6b65];return _0x5977c6;}function a85_0x239f(){const _0x31c9c6=['generateCommandHelp','5300988muTdAS','map','22527504fWjvdc','\x20or\x20--appcode).','newConfigFileName','generateFullHelp','7YmEkCN','generateServiceHelp','18wkglEH','service','870359qOomlF','2560692HQwRGB','filter','10479528yBdXUx','get','has','972016mOEuBs','6956570bYCryC','Requires\x20appcode\x20(set\x20via\x20'];a85_0x239f=function(){return _0x31c9c6;};return a85_0x239f();}function getAnyServiceEntry(_0x364aaa){const _0x218399=getServiceEntry(_0x364aaa);if(_0x218399)return _0x218399;try{return getDynamicServiceEntry(_0x364aaa);}catch{return undefined;}}function getAnyServiceDefinitions(_0x56a219){const _0x2a54e7=a85_0x5977,_0x17d40c=serviceGroups[_0x2a54e7(0x159)](_0x56a219);if(_0x17d40c)return _0x17d40c;try{return getDynamicServiceDefinitions(_0x56a219);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0xacd9c7=a85_0x5977,_0x45e95f=new Set(serviceRegistry[_0xacd9c7(0x14c)](_0x4f692c=>_0x4f692c[_0xacd9c7(0x154)]));try{return listDynamicServiceEntries()[_0xacd9c7(0x157)](_0x1a197b=>!_0x45e95f[_0xacd9c7(0x146)](_0x1a197b[_0xacd9c7(0x154)]));}catch{return[];}}
1
+ (function(_0x2e8986,_0x572b66){const _0xd4c3e4=a85_0xf6b8,_0x525fab=_0x2e8986();while(!![]){try{const _0x3293a4=parseInt(_0xd4c3e4(0x1b2))/0x1*(-parseInt(_0xd4c3e4(0x1af))/0x2)+-parseInt(_0xd4c3e4(0x1b6))/0x3*(-parseInt(_0xd4c3e4(0x1b0))/0x4)+parseInt(_0xd4c3e4(0x1a7))/0x5+-parseInt(_0xd4c3e4(0x1b1))/0x6*(-parseInt(_0xd4c3e4(0x1b3))/0x7)+-parseInt(_0xd4c3e4(0x1ae))/0x8+-parseInt(_0xd4c3e4(0x1ad))/0x9*(-parseInt(_0xd4c3e4(0x1aa))/0xa)+parseInt(_0xd4c3e4(0x1a4))/0xb;if(_0x3293a4===_0x572b66)break;else _0x525fab['push'](_0x525fab['shift']());}catch(_0x353c10){_0x525fab['push'](_0x525fab['shift']());}}}(a85_0x3a85,0x64606));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';function a85_0xf6b8(_0x3b38ad,_0x467044){_0x3b38ad=_0x3b38ad-0x1a4;const _0x3a8588=a85_0x3a85();let _0xf6b894=_0x3a8588[_0x3b38ad];return _0xf6b894;}import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a85_0x3a85(){const _0x3cd147=['generateCommandHelp','624480FQwHJM','service','generateServiceHelp','30980onFQbF','get','generateFullHelp','9kXtQrW','3588048vsBukO','4914SBcaQa','12SUcvfP','12iWmIeR','311UYAnML','2750741uJmiPP','filter','\x20or\x20--appcode).','519411EfMFzk','2094884HICTQE','map'];a85_0x3a85=function(){return _0x3cd147;};return a85_0x3a85();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x49de86=a85_0xf6b8;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG['newConfigFileName']+_0x49de86(0x1b5)});}export function generateCommandHelp(_0x4164bc){const _0x572909=a85_0xf6b8;return createGenerators()[_0x572909(0x1a6)](_0x4164bc);}export function generateServiceHelp(_0xf46b69){const _0x38b25a=a85_0xf6b8;return createGenerators()[_0x38b25a(0x1a9)](_0xf46b69);}export function generateFullHelp(){const _0xf9d497=a85_0xf6b8;return createGenerators()[_0xf9d497(0x1ac)]();}function getAnyServiceEntry(_0x31682b){const _0x34eec5=getServiceEntry(_0x31682b);if(_0x34eec5)return _0x34eec5;try{return getDynamicServiceEntry(_0x31682b);}catch{return undefined;}}function getAnyServiceDefinitions(_0x1d29b2){const _0x483e64=a85_0xf6b8,_0x560cee=serviceGroups[_0x483e64(0x1ab)](_0x1d29b2);if(_0x560cee)return _0x560cee;try{return getDynamicServiceDefinitions(_0x1d29b2);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x167823=a85_0xf6b8,_0x3f2609=new Set(serviceRegistry[_0x167823(0x1a5)](_0x493bf5=>_0x493bf5['service']));try{return listDynamicServiceEntries()[_0x167823(0x1b4)](_0x44496d=>!_0x3f2609['has'](_0x44496d[_0x167823(0x1a8)]));}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x54a0df,_0x32618e){var _0x22e6e3=a86_0x1b86,_0x1b0e2f=_0x54a0df();while(!![]){try{var _0x1a6169=parseInt(_0x22e6e3(0xd7))/0x1+parseInt(_0x22e6e3(0xdb))/0x2*(parseInt(_0x22e6e3(0xda))/0x3)+parseInt(_0x22e6e3(0xd8))/0x4*(parseInt(_0x22e6e3(0xdd))/0x5)+parseInt(_0x22e6e3(0xd9))/0x6*(parseInt(_0x22e6e3(0xd6))/0x7)+parseInt(_0x22e6e3(0xdc))/0x8+parseInt(_0x22e6e3(0xde))/0x9+-parseInt(_0x22e6e3(0xd5))/0xa;if(_0x1a6169===_0x32618e)break;else _0x1b0e2f['push'](_0x1b0e2f['shift']());}catch(_0x4487a0){_0x1b0e2f['push'](_0x1b0e2f['shift']());}}}(a86_0x403b,0x76a6f));function a86_0x403b(){var _0x455161=['30IIjiEI','636273cRulpO','14932580qgpgCL','395689YnZTlV','761096qarObC','2660UHTkhB','6kYEKam','1743fqVRXk','1152sEuwpA','6018328taEDRG'];a86_0x403b=function(){return _0x455161;};return a86_0x403b();}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';function a86_0x1b86(_0x5062ce,_0x45c0e3){_0x5062ce=_0x5062ce-0xd5;var _0x403bf7=a86_0x403b();var _0x1b865a=_0x403bf7[_0x5062ce];return _0x1b865a;}export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x43bb38,_0x3de027){var _0x42878a=a86_0xec69,_0x589985=_0x43bb38();while(!![]){try{var _0x1e172d=-parseInt(_0x42878a(0x12b))/0x1+parseInt(_0x42878a(0x131))/0x2*(-parseInt(_0x42878a(0x132))/0x3)+parseInt(_0x42878a(0x12f))/0x4+-parseInt(_0x42878a(0x12c))/0x5*(parseInt(_0x42878a(0x12d))/0x6)+parseInt(_0x42878a(0x129))/0x7+-parseInt(_0x42878a(0x12a))/0x8+-parseInt(_0x42878a(0x130))/0x9*(-parseInt(_0x42878a(0x12e))/0xa);if(_0x1e172d===_0x3de027)break;else _0x589985['push'](_0x589985['shift']());}catch(_0x2db913){_0x589985['push'](_0x589985['shift']());}}}(a86_0x3ca9,0x4feeb));function a86_0x3ca9(){var _0x383ecc=['1655EoCKsV','366IDuVHG','100710SDroMd','389432ExpOtk','657bVHisp','5606NOPzyd','99saScrD','3199231mqEsSc','3458656vSTjXT','417149exfRSD'];a86_0x3ca9=function(){return _0x383ecc;};return a86_0x3ca9();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a86_0xec69(_0x46f882,_0x166c01){_0x46f882=_0x46f882-0x129;var _0x3ca91b=a86_0x3ca9();var _0xec694a=_0x3ca91b[_0x46f882];return _0xec694a;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x235340,_0x3d113e){const _0x48d154=a87_0x36f1,_0x3cb990=_0x235340();while(!![]){try{const _0x24b04c=parseInt(_0x48d154(0x1b4))/0x1+-parseInt(_0x48d154(0x1b0))/0x2+parseInt(_0x48d154(0x1ab))/0x3+parseInt(_0x48d154(0x1ac))/0x4*(parseInt(_0x48d154(0x1a9))/0x5)+parseInt(_0x48d154(0x1b6))/0x6*(-parseInt(_0x48d154(0x1b2))/0x7)+-parseInt(_0x48d154(0x1a8))/0x8*(parseInt(_0x48d154(0x1aa))/0x9)+parseInt(_0x48d154(0x1ae))/0xa*(parseInt(_0x48d154(0x1b1))/0xb);if(_0x24b04c===_0x3d113e)break;else _0x3cb990['push'](_0x3cb990['shift']());}catch(_0x1b14db){_0x3cb990['push'](_0x3cb990['shift']());}}}(a87_0xc7e2,0xc7f31));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a87_0xc7e2(){const _0x20e07b=['message','850550wGgFOt','format','1480222vJTdAK','55qevIkc','2833061rNohJh','error','1225908laSfof','_notice','12jCXpnu','pretty','url','update','8JboNFX','19060LxeqVA','12208842PcPXxD','4289031URkGWz','676vxZnMc'];a87_0xc7e2=function(){return _0x20e07b;};return a87_0xc7e2();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a87_0x36f1(_0x798885,_0x571fcf){_0x798885=_0x798885-0x1a8;const _0xc7e24=a87_0xc7e2();let _0x36f1b4=_0xc7e24[_0x798885];return _0x36f1b4;}export function formatOutput(_0x49a8f2,_0x15fd37){const _0x85b25=a87_0x36f1,_0x44001c=_0x49a8f2[_0x85b25(0x1b5)],{_notice:_0xf21e61,..._0x3810cb}=_0x49a8f2;void _0xf21e61,baseFormatOutput(_0x3810cb,_0x15fd37),_0x15fd37[_0x85b25(0x1af)]===_0x85b25(0x1b7)&&printPrettyNotice(_0x44001c);}function printPrettyNotice(_0x31be68){const _0x3a9781=a87_0x36f1;if(!_0x31be68?.[_0x3a9781(0x1b9)])return;console[_0x3a9781(0x1b3)](_0x31be68['update'][_0x3a9781(0x1ad)]+'\x20('+_0x31be68[_0x3a9781(0x1b9)][_0x3a9781(0x1b8)]+')');}
1
+ (function(_0x1dc66a,_0x377ea1){const _0x174729=a87_0x3b2e,_0x4d355a=_0x1dc66a();while(!![]){try{const _0x1038c2=parseInt(_0x174729(0xfc))/0x1*(parseInt(_0x174729(0x101))/0x2)+parseInt(_0x174729(0xf4))/0x3*(parseInt(_0x174729(0x100))/0x4)+parseInt(_0x174729(0xf8))/0x5*(parseInt(_0x174729(0xf5))/0x6)+-parseInt(_0x174729(0xfa))/0x7+-parseInt(_0x174729(0xfb))/0x8*(parseInt(_0x174729(0xf6))/0x9)+parseInt(_0x174729(0x102))/0xa+parseInt(_0x174729(0xfe))/0xb;if(_0x1038c2===_0x377ea1)break;else _0x4d355a['push'](_0x4d355a['shift']());}catch(_0x18c8ae){_0x4d355a['push'](_0x4d355a['shift']());}}}(a87_0x38c8,0x72c78));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a87_0x38c8(){const _0x136bf6=['url','1911426AuBGiN','message','1188728GTHfBy','50jJyEvW','3053050QMruys','3nzJHoj','426tZavel','9ZyBGqE','update','63210EHdDJB','pretty','5530721fCorYx','4752568JOSvxx','7219iDCMZa'];a87_0x38c8=function(){return _0x136bf6;};return a87_0x38c8();}function a87_0x3b2e(_0x462656,_0x5acc4c){_0x462656=_0x462656-0xf4;const _0x38c844=a87_0x38c8();let _0x3b2ea1=_0x38c844[_0x462656];return _0x3b2ea1;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x1269ce,_0x7e8a30){const _0x595639=a87_0x3b2e,_0x3145c4=_0x1269ce['_notice'],{_notice:_0x19a737,..._0x295e31}=_0x1269ce;void _0x19a737,baseFormatOutput(_0x295e31,_0x7e8a30),_0x7e8a30['format']===_0x595639(0xf9)&&printPrettyNotice(_0x3145c4);}function printPrettyNotice(_0x3599c4){const _0x56ec47=a87_0x3b2e;if(!_0x3599c4?.['update'])return;console['error'](_0x3599c4['update'][_0x56ec47(0xff)]+'\x20('+_0x3599c4[_0x56ec47(0xf7)][_0x56ec47(0xfd)]+')');}
@@ -1 +1 @@
1
- (function(_0x16a014,_0x14fe73){const _0x580e89=a88_0x426c,_0x1f4bbc=_0x16a014();while(!![]){try{const _0x4f4b5e=-parseInt(_0x580e89(0x112))/0x1*(-parseInt(_0x580e89(0x121))/0x2)+-parseInt(_0x580e89(0xfd))/0x3*(-parseInt(_0x580e89(0x109))/0x4)+parseInt(_0x580e89(0x113))/0x5*(-parseInt(_0x580e89(0xfe))/0x6)+-parseInt(_0x580e89(0x110))/0x7+-parseInt(_0x580e89(0x104))/0x8+parseInt(_0x580e89(0x111))/0x9+parseInt(_0x580e89(0x10f))/0xa*(parseInt(_0x580e89(0x114))/0xb);if(_0x4f4b5e===_0x14fe73)break;else _0x1f4bbc['push'](_0x1f4bbc['shift']());}catch(_0x5dd2fb){_0x1f4bbc['push'](_0x1f4bbc['shift']());}}}(a88_0x4e51,0x46165));export function toKebab(_0x3d9195){const _0x4a51ae=a88_0x426c;return _0x3d9195['replace'](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x188400,_0x27cf04)=>'-'+_0x27cf04[_0x4a51ae(0x117)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x283ea,_0x1dbc18,_0x532adb)=>_0x1dbc18+'-'+_0x532adb)['toLowerCase']();}function buildKnownFlags(_0x3e093){const _0x214922=a88_0x426c,_0x26f88b=new Set();for(const _0xd800fd of _0x3e093){_0x26f88b['add'](_0xd800fd['name']),_0x26f88b[_0x214922(0x116)](toCamelCase(_0xd800fd['name']));}for(const _0x1f39f2 of[_0x214922(0x115),_0x214922(0x102),_0x214922(0xfc),'format']){_0x26f88b[_0x214922(0x116)](_0x1f39f2);}for(const _0x45b417 of['help',_0x214922(0x108),_0x214922(0x106),'app','nonInteractive',_0x214922(0xfb),'ci',_0x214922(0x11d),_0x214922(0xff)]){_0x26f88b[_0x214922(0x116)](_0x45b417);}return _0x26f88b;}function buildFlagTypeMap(_0x199dd1){const _0x100877=a88_0x426c,_0x41d07e=new Map();for(const _0xb05257 of _0x199dd1){_0x41d07e['set'](_0xb05257['name'],_0xb05257[_0x100877(0x101)]),_0x41d07e[_0x100877(0x10d)](toCamelCase(_0xb05257[_0x100877(0x11b)]),_0xb05257[_0x100877(0x101)]);}return _0x41d07e;}function a88_0x426c(_0xa0fb47,_0x276d2f){_0xa0fb47=_0xa0fb47-0xfb;const _0x4e51de=a88_0x4e51();let _0x426c2a=_0x4e51de[_0xa0fb47];return _0x426c2a;}function a88_0x4e51(){const _0x2418d4=['entries','name','has','global','sticky','boolean','slice','4KkPdAG','non-interactive','yes','751503jpMJCH','222SWBwzJ','version','string','type','dryRun','get','4425888EFaIah','original','appcode','push','env','4LzXdbP','number','alias','length','set','replace','30uheiyy','1078231xYWCrR','3626901XvWZLq','64718ZBHVww','12115YaGAFM','1103927YkymhX','dry-run','add','toLowerCase','toUpperCase','corrected'];a88_0x4e51=function(){return _0x2418d4;};return a88_0x4e51();}function toCamelCase(_0xdc2738){const _0x5aa139=a88_0x426c;return _0xdc2738[_0x5aa139(0x10e)](/-([a-z])/g,(_0x3bec39,_0x120fd7)=>_0x120fd7[_0x5aa139(0x118)]());}function aliasHandler(_0x392fc8,_0x705a54){const _0x24a0f5=a88_0x426c,_0x230e2c=[];for(const _0xe3a47e of Object['keys'](_0x392fc8)){if(_0x705a54['has'](_0xe3a47e))continue;const _0xeb49ff=toKebab(_0xe3a47e);_0xeb49ff!==_0xe3a47e&&_0x705a54[_0x24a0f5(0x11c)](_0xeb49ff)&&_0x230e2c[_0x24a0f5(0x107)]({'original':_0xe3a47e,'corrected':_0xeb49ff,'handler':_0x24a0f5(0x10b)});}return _0x230e2c;}function stickyHandler(_0x2fd3f8,_0x43a537,_0x5acd58){const _0x15878b=a88_0x426c,_0x559fff=[];for(const [_0xeed480,_0x77bfd]of Object[_0x15878b(0x11a)](_0x2fd3f8)){if(_0x77bfd!==!![])continue;for(let _0x32708f=_0xeed480[_0x15878b(0x10c)]-0x1;_0x32708f>0x0;_0x32708f--){const _0x425fdb=_0xeed480[_0x15878b(0x120)](0x0,_0x32708f),_0x28503e=_0xeed480['slice'](_0x32708f),_0x2964cd=toKebab(_0x425fdb),_0x35b64d=toCamelCase(_0x425fdb),_0x510ac9=_0x43a537[_0x15878b(0x11c)](_0x425fdb)?_0x425fdb:_0x43a537[_0x15878b(0x11c)](_0x2964cd)?_0x2964cd:_0x43a537[_0x15878b(0x11c)](_0x35b64d)?_0x35b64d:null;if(!_0x510ac9)continue;const _0x1dead5=_0x5acd58[_0x15878b(0x103)](_0x510ac9)??_0x15878b(0x100);let _0x2b31c4;if(_0x1dead5===_0x15878b(0x10a)){const _0x28bc25=Number(_0x28503e);if(isNaN(_0x28bc25)||_0x28503e==='')continue;_0x2b31c4=_0x28bc25;}else{if(_0x1dead5===_0x15878b(0x11f))continue;else{if(_0x28503e==='')continue;_0x2b31c4=_0x28503e;}}_0x559fff[_0x15878b(0x107)]({'original':_0xeed480,'corrected':_0x510ac9+'='+_0x2b31c4,'handler':_0x15878b(0x11e)});break;}}return _0x559fff;}export function correctFlags(_0x590806,_0x3c6ffa){const _0x101d13=a88_0x426c,_0x23674b=buildKnownFlags(_0x3c6ffa),_0x5b9430=buildFlagTypeMap(_0x3c6ffa),_0x2b2e08=aliasHandler(_0x590806,_0x23674b),_0x3b1dfe=stickyHandler(_0x590806,_0x23674b,_0x5b9430),_0x4f664f=[..._0x2b2e08,..._0x3b1dfe];if(_0x4f664f[_0x101d13(0x10c)]===0x0)return{'flags':_0x590806,'corrections':[]};const _0x2cff90={..._0x590806},_0x3f65e4=new Set();for(const _0x3d6920 of _0x2b2e08){_0x2cff90[_0x3d6920[_0x101d13(0x119)]]=_0x590806[_0x3d6920[_0x101d13(0x105)]],_0x3f65e4['add'](_0x3d6920[_0x101d13(0x105)]);}for(const _0x161f53 of _0x3b1dfe){const _0x3c8ca1=_0x161f53[_0x101d13(0x119)]['indexOf']('='),_0x156934=_0x161f53[_0x101d13(0x119)][_0x101d13(0x120)](0x0,_0x3c8ca1),_0x4ebc95=_0x161f53[_0x101d13(0x119)][_0x101d13(0x120)](_0x3c8ca1+0x1),_0x39e514=_0x5b9430[_0x101d13(0x103)](_0x156934)??_0x101d13(0x100);_0x39e514==='number'?_0x2cff90[_0x156934]=Number(_0x4ebc95):_0x2cff90[_0x156934]=_0x4ebc95,_0x3f65e4[_0x101d13(0x116)](_0x161f53[_0x101d13(0x105)]);}for(const _0x35e2eb of _0x3f65e4){delete _0x2cff90[_0x35e2eb];}return{'flags':_0x2cff90,'corrections':_0x4f664f};}
1
+ (function(_0x5a597c,_0x24e95b){const _0xb35d7a=a88_0x37d8,_0x18bbce=_0x5a597c();while(!![]){try{const _0x332a10=-parseInt(_0xb35d7a(0xf8))/0x1*(-parseInt(_0xb35d7a(0xea))/0x2)+-parseInt(_0xb35d7a(0xfc))/0x3*(-parseInt(_0xb35d7a(0xf3))/0x4)+parseInt(_0xb35d7a(0x103))/0x5*(parseInt(_0xb35d7a(0xf6))/0x6)+parseInt(_0xb35d7a(0xed))/0x7+-parseInt(_0xb35d7a(0xf2))/0x8+-parseInt(_0xb35d7a(0x104))/0x9+-parseInt(_0xb35d7a(0xe8))/0xa*(parseInt(_0xb35d7a(0x102))/0xb);if(_0x332a10===_0x24e95b)break;else _0x18bbce['push'](_0x18bbce['shift']());}catch(_0x2c7497){_0x18bbce['push'](_0x18bbce['shift']());}}}(a88_0x2cab,0xb2f3c));function a88_0x2cab(){const _0x1e6070=['get','has','30qnKMMI','type','2fVRpwU','indexOf','replace','6819428xZRniv','push','number','appcode','keys','11463392iHGrej','5031012CdxHof','set','slice','207066ajsdMc','help','476369NMAyTj','nonInteractive','toLowerCase','length','3MDsnpG','entries','env','dryRun','corrected','add','1143967bARFKo','110UDpuZJ','8906985FZGQDd','alias','original','global','format','name','string','yes','dry-run'];a88_0x2cab=function(){return _0x1e6070;};return a88_0x2cab();}export function toKebab(_0x3046f6){const _0x195f99=a88_0x37d8;return _0x3046f6[_0x195f99(0xec)](/_/g,'-')[_0x195f99(0xec)](/-([A-Z]+)/g,(_0x58ff5e,_0x2fd7eb)=>'-'+_0x2fd7eb['toLowerCase']())[_0x195f99(0xec)](/([a-z0-9])([A-Z])/g,(_0x5227df,_0x1407ab,_0x43ecac)=>_0x1407ab+'-'+_0x43ecac)[_0x195f99(0xfa)]();}function buildKnownFlags(_0x10dc2e){const _0x1ba9c6=a88_0x37d8,_0x40f980=new Set();for(const _0x2fb398 of _0x10dc2e){_0x40f980[_0x1ba9c6(0x101)](_0x2fb398[_0x1ba9c6(0xe2)]),_0x40f980[_0x1ba9c6(0x101)](toCamelCase(_0x2fb398[_0x1ba9c6(0xe2)]));}for(const _0x817e84 of[_0x1ba9c6(0xe5),_0x1ba9c6(0xff),_0x1ba9c6(0xe4),_0x1ba9c6(0x108)]){_0x40f980[_0x1ba9c6(0x101)](_0x817e84);}for(const _0x54a76a of[_0x1ba9c6(0xf7),_0x1ba9c6(0xfe),_0x1ba9c6(0xf0),'app',_0x1ba9c6(0xf9),'non-interactive','ci',_0x1ba9c6(0x107),'version']){_0x40f980[_0x1ba9c6(0x101)](_0x54a76a);}return _0x40f980;}function buildFlagTypeMap(_0x377df4){const _0x3472d8=a88_0x37d8,_0x2ae05d=new Map();for(const _0x499309 of _0x377df4){_0x2ae05d[_0x3472d8(0xf4)](_0x499309[_0x3472d8(0xe2)],_0x499309[_0x3472d8(0xe9)]),_0x2ae05d[_0x3472d8(0xf4)](toCamelCase(_0x499309[_0x3472d8(0xe2)]),_0x499309[_0x3472d8(0xe9)]);}return _0x2ae05d;}function a88_0x37d8(_0x5b2133,_0x416618){_0x5b2133=_0x5b2133-0xe2;const _0x2cabd7=a88_0x2cab();let _0x37d83e=_0x2cabd7[_0x5b2133];return _0x37d83e;}function toCamelCase(_0x10026a){return _0x10026a['replace'](/-([a-z])/g,(_0x534991,_0x52270b)=>_0x52270b['toUpperCase']());}function aliasHandler(_0x18395c,_0x43b77b){const _0x12966e=a88_0x37d8,_0x573779=[];for(const _0x2883a9 of Object[_0x12966e(0xf1)](_0x18395c)){if(_0x43b77b[_0x12966e(0xe7)](_0x2883a9))continue;const _0x5cbc16=toKebab(_0x2883a9);_0x5cbc16!==_0x2883a9&&_0x43b77b[_0x12966e(0xe7)](_0x5cbc16)&&_0x573779['push']({'original':_0x2883a9,'corrected':_0x5cbc16,'handler':_0x12966e(0x105)});}return _0x573779;}function stickyHandler(_0x2c4150,_0x3ae9ac,_0x2dc6a9){const _0x2a329d=a88_0x37d8,_0x161524=[];for(const [_0x40b448,_0x395cac]of Object[_0x2a329d(0xfd)](_0x2c4150)){if(_0x395cac!==!![])continue;for(let _0x7905cb=_0x40b448[_0x2a329d(0xfb)]-0x1;_0x7905cb>0x0;_0x7905cb--){const _0x4e98f6=_0x40b448[_0x2a329d(0xf5)](0x0,_0x7905cb),_0x5568ad=_0x40b448[_0x2a329d(0xf5)](_0x7905cb),_0x3eb82c=toKebab(_0x4e98f6),_0x198bfc=toCamelCase(_0x4e98f6),_0x212c60=_0x3ae9ac['has'](_0x4e98f6)?_0x4e98f6:_0x3ae9ac[_0x2a329d(0xe7)](_0x3eb82c)?_0x3eb82c:_0x3ae9ac[_0x2a329d(0xe7)](_0x198bfc)?_0x198bfc:null;if(!_0x212c60)continue;const _0x16be3d=_0x2dc6a9[_0x2a329d(0xe6)](_0x212c60)??_0x2a329d(0xe3);let _0x4fb77e;if(_0x16be3d===_0x2a329d(0xef)){const _0x595fa8=Number(_0x5568ad);if(isNaN(_0x595fa8)||_0x5568ad==='')continue;_0x4fb77e=_0x595fa8;}else{if(_0x16be3d==='boolean')continue;else{if(_0x5568ad==='')continue;_0x4fb77e=_0x5568ad;}}_0x161524[_0x2a329d(0xee)]({'original':_0x40b448,'corrected':_0x212c60+'='+_0x4fb77e,'handler':'sticky'});break;}}return _0x161524;}export function correctFlags(_0x142007,_0x5b02eb){const _0x2dfe6c=a88_0x37d8,_0x759bc6=buildKnownFlags(_0x5b02eb),_0x320ffe=buildFlagTypeMap(_0x5b02eb),_0x27d092=aliasHandler(_0x142007,_0x759bc6),_0x5d8304=stickyHandler(_0x142007,_0x759bc6,_0x320ffe),_0x474819=[..._0x27d092,..._0x5d8304];if(_0x474819[_0x2dfe6c(0xfb)]===0x0)return{'flags':_0x142007,'corrections':[]};const _0x2e41d1={..._0x142007},_0x2edd51=new Set();for(const _0x3b349e of _0x27d092){_0x2e41d1[_0x3b349e[_0x2dfe6c(0x100)]]=_0x142007[_0x3b349e[_0x2dfe6c(0x106)]],_0x2edd51['add'](_0x3b349e[_0x2dfe6c(0x106)]);}for(const _0x2e5396 of _0x5d8304){const _0x3879f8=_0x2e5396[_0x2dfe6c(0x100)][_0x2dfe6c(0xeb)]('='),_0xbb4330=_0x2e5396[_0x2dfe6c(0x100)][_0x2dfe6c(0xf5)](0x0,_0x3879f8),_0x3819eb=_0x2e5396[_0x2dfe6c(0x100)]['slice'](_0x3879f8+0x1),_0x57789b=_0x320ffe[_0x2dfe6c(0xe6)](_0xbb4330)??'string';_0x57789b===_0x2dfe6c(0xef)?_0x2e41d1[_0xbb4330]=Number(_0x3819eb):_0x2e41d1[_0xbb4330]=_0x3819eb,_0x2edd51[_0x2dfe6c(0x101)](_0x2e5396[_0x2dfe6c(0x106)]);}for(const _0x18ae6d of _0x2edd51){delete _0x2e41d1[_0x18ae6d];}return{'flags':_0x2e41d1,'corrections':_0x474819};}
@@ -1 +1 @@
1
- const a89_0x23661a=a89_0x51b3;function a89_0x51b3(_0x1fc25d,_0x1e6e9f){_0x1fc25d=_0x1fc25d-0x85;const _0x11f122=a89_0x11f1();let _0x51b3d5=_0x11f122[_0x1fc25d];return _0x51b3d5;}function a89_0x11f1(){const _0x2db48e=['isArray','1333858ZybgPo','call','errorCode','15261taAhqH','16870hMTrZg','status','number','test','Retry-After','has','trim','retry-after','7142706fwOlEy','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','toLowerCase','\x20seconds\x20before\x20retrying.','Wait\x20','181182eXoOsI','1004Yegxkm','entries','98862pJiurH','retryAfterSeconds','Retry\x20after\x20a\x20short\x20delay.','rateLimited','245LWtrdV','11829008iRjYht','object','EXCEED_MAX_QPS_LIMIT','retryAfter','Request\x20rate\x20limit\x20exceeded.','string'];a89_0x11f1=function(){return _0x2db48e;};return a89_0x11f1();}(function(_0x4b38f3,_0x571b96){const _0x4fd131=a89_0x51b3,_0x34180b=_0x4b38f3();while(!![]){try{const _0x536887=parseInt(_0x4fd131(0x8c))/0x1+parseInt(_0x4fd131(0x9b))/0x2+parseInt(_0x4fd131(0x9e))/0x3*(parseInt(_0x4fd131(0x8d))/0x4)+parseInt(_0x4fd131(0x9f))/0x5+-parseInt(_0x4fd131(0x8f))/0x6*(parseInt(_0x4fd131(0x93))/0x7)+-parseInt(_0x4fd131(0x94))/0x8+parseInt(_0x4fd131(0x87))/0x9;if(_0x536887===_0x571b96)break;else _0x34180b['push'](_0x34180b['shift']());}catch(_0x347562){_0x34180b['push'](_0x34180b['shift']());}}}(a89_0x11f1,0xd394b));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a89_0x23661a(0x96),'MAX_QPS_LIMIT','IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0x4c6434){const _0x16e3ec=a89_0x23661a;if(typeof _0x4c6434!==_0x16e3ec(0x99))return undefined;const _0x3383e9=_0x4c6434[_0x16e3ec(0x85)]();return _0x3383e9||undefined;}function buildRetryHint(_0x4bc81e){const _0x3063c8=a89_0x23661a,_0x42daa7=nonEmptyString(_0x4bc81e),_0x1b8aeb=_0x42daa7?/^\d+$/[_0x3063c8(0xa2)](_0x42daa7)?_0x3063c8(0x8b)+_0x42daa7+_0x3063c8(0x8a):'Retry\x20after\x20'+_0x42daa7+'.':_0x3063c8(0x91);return _0x1b8aeb+_0x3063c8(0x88);}export function createRateLimitError(_0x55afcf){const _0x18fe07=a89_0x23661a,_0x254f1d=nonEmptyString(_0x55afcf[_0x18fe07(0x9d)])?.['toUpperCase'](),_0x5bbb54=Number(_0x55afcf[_0x18fe07(0xa0)])===0x1ad||_0x254f1d!==undefined&&RATE_LIMIT_ERROR_CODES[_0x18fe07(0xa4)](_0x254f1d);if(!_0x5bbb54)return undefined;return CliErrors[_0x18fe07(0x92)](nonEmptyString(_0x55afcf['message'])??_0x18fe07(0x98),buildRetryHint(_0x55afcf[_0x18fe07(0x97)]));}export function readRetryAfter(_0x1a1015){const _0xba52a8=a89_0x23661a;if(!_0x1a1015||typeof _0x1a1015!==_0xba52a8(0x95))return undefined;const _0x18143e=_0x1a1015['get'];if(typeof _0x18143e==='function'){const _0x5eb86f=_0x18143e[_0xba52a8(0x9c)](_0x1a1015,_0xba52a8(0xa3))??_0x18143e['call'](_0x1a1015,_0xba52a8(0x86));return nonEmptyString(_0x5eb86f);}for(const [_0x2305db,_0x29669b]of Object[_0xba52a8(0x8e)](_0x1a1015)){if(_0x2305db[_0xba52a8(0x89)]()===_0xba52a8(0x86))return nonEmptyString(_0x29669b)??(typeof _0x29669b===_0xba52a8(0xa1)?String(_0x29669b):undefined);}return undefined;}export function readRetryAfterSeconds(_0x56059e){const _0x540ddb=a89_0x23661a;if(!_0x56059e||typeof _0x56059e!==_0x540ddb(0x95)||Array[_0x540ddb(0x9a)](_0x56059e))return undefined;const _0x117f14=_0x56059e[_0x540ddb(0x90)];if(typeof _0x117f14==='number')return Number['isInteger'](_0x117f14)&&_0x117f14>=0x0?String(_0x117f14):undefined;const _0x37d834=nonEmptyString(_0x117f14);return _0x37d834&&/^\d+$/[_0x540ddb(0xa2)](_0x37d834)?_0x37d834:undefined;}
1
+ const a89_0x5acc49=a89_0x5112;(function(_0x326d47,_0x59a618){const _0x6a6592=a89_0x5112,_0x37ae3a=_0x326d47();while(!![]){try{const _0xbc1032=-parseInt(_0x6a6592(0x14a))/0x1*(-parseInt(_0x6a6592(0x149))/0x2)+parseInt(_0x6a6592(0x15c))/0x3+parseInt(_0x6a6592(0x142))/0x4*(-parseInt(_0x6a6592(0x148))/0x5)+parseInt(_0x6a6592(0x156))/0x6*(parseInt(_0x6a6592(0x141))/0x7)+-parseInt(_0x6a6592(0x13b))/0x8*(-parseInt(_0x6a6592(0x145))/0x9)+-parseInt(_0x6a6592(0x13d))/0xa+-parseInt(_0x6a6592(0x144))/0xb*(-parseInt(_0x6a6592(0x13a))/0xc);if(_0xbc1032===_0x59a618)break;else _0x37ae3a['push'](_0x37ae3a['shift']());}catch(_0x4e4fed){_0x37ae3a['push'](_0x37ae3a['shift']());}}}(a89_0x2e90,0x2890a));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set(['EXCEED_MAX_QPS_LIMIT',a89_0x5acc49(0x146),a89_0x5acc49(0x14d)]);function nonEmptyString(_0x2b5229){const _0x103dec=a89_0x5acc49;if(typeof _0x2b5229!==_0x103dec(0x14b))return undefined;const _0x55d236=_0x2b5229[_0x103dec(0x147)]();return _0x55d236||undefined;}function a89_0x2e90(){const _0x237a86=['number','toLowerCase','retryAfterSeconds','call','retry-after','errorCode','object','Wait\x20','35274RXnigx','isArray','Retry-After','toUpperCase','retryAfter','entries','605538BVtDKD','function','message','3996laYYqY','19896bPnmnn','isInteger','537630jXUxCQ','has','test','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','7FjhuZT','44Ifczij','\x20seconds\x20before\x20retrying.','3718tErSEE','621YVvgsG','MAX_QPS_LIMIT','trim','134755cMNciG','8mReJqg','6124aWvxZu','string','Retry\x20after\x20a\x20short\x20delay.','IP_RATE_LIMIT_EXCEEDED'];a89_0x2e90=function(){return _0x237a86;};return a89_0x2e90();}function buildRetryHint(_0x48d9bb){const _0x25d5a2=a89_0x5acc49,_0xed276d=nonEmptyString(_0x48d9bb),_0x2e3be8=_0xed276d?/^\d+$/[_0x25d5a2(0x13f)](_0xed276d)?_0x25d5a2(0x155)+_0xed276d+_0x25d5a2(0x143):'Retry\x20after\x20'+_0xed276d+'.':_0x25d5a2(0x14c);return _0x2e3be8+_0x25d5a2(0x140);}export function createRateLimitError(_0x4e5c19){const _0x37ecdc=a89_0x5acc49,_0x21c15c=nonEmptyString(_0x4e5c19[_0x37ecdc(0x153)])?.[_0x37ecdc(0x159)](),_0x328be9=Number(_0x4e5c19['status'])===0x1ad||_0x21c15c!==undefined&&RATE_LIMIT_ERROR_CODES[_0x37ecdc(0x13e)](_0x21c15c);if(!_0x328be9)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0x4e5c19[_0x37ecdc(0x139)])??'Request\x20rate\x20limit\x20exceeded.',buildRetryHint(_0x4e5c19[_0x37ecdc(0x15a)]));}export function readRetryAfter(_0x421c6d){const _0x261fc9=a89_0x5acc49;if(!_0x421c6d||typeof _0x421c6d!==_0x261fc9(0x154))return undefined;const _0x5d7cb8=_0x421c6d['get'];if(typeof _0x5d7cb8===_0x261fc9(0x15d)){const _0x862aac=_0x5d7cb8[_0x261fc9(0x151)](_0x421c6d,_0x261fc9(0x158))??_0x5d7cb8['call'](_0x421c6d,_0x261fc9(0x152));return nonEmptyString(_0x862aac);}for(const [_0x371c00,_0x24774b]of Object[_0x261fc9(0x15b)](_0x421c6d)){if(_0x371c00[_0x261fc9(0x14f)]()===_0x261fc9(0x152))return nonEmptyString(_0x24774b)??(typeof _0x24774b===_0x261fc9(0x14e)?String(_0x24774b):undefined);}return undefined;}function a89_0x5112(_0x4e31fe,_0x48fae9){_0x4e31fe=_0x4e31fe-0x139;const _0x2e90bb=a89_0x2e90();let _0x511246=_0x2e90bb[_0x4e31fe];return _0x511246;}export function readRetryAfterSeconds(_0x4e60cb){const _0x57388a=a89_0x5acc49;if(!_0x4e60cb||typeof _0x4e60cb!==_0x57388a(0x154)||Array[_0x57388a(0x157)](_0x4e60cb))return undefined;const _0x47f536=_0x4e60cb[_0x57388a(0x150)];if(typeof _0x47f536==='number')return Number[_0x57388a(0x13c)](_0x47f536)&&_0x47f536>=0x0?String(_0x47f536):undefined;const _0x38be1d=nonEmptyString(_0x47f536);return _0x38be1d&&/^\d+$/[_0x57388a(0x13f)](_0x38be1d)?_0x38be1d:undefined;}
@@ -1 +1 @@
1
- const a90_0x3f9286=a90_0x365d;(function(_0x553ec0,_0x127c25){const _0x59256c=a90_0x365d,_0x5e706f=_0x553ec0();while(!![]){try{const _0x14493b=-parseInt(_0x59256c(0x197))/0x1*(parseInt(_0x59256c(0x18f))/0x2)+parseInt(_0x59256c(0x191))/0x3+parseInt(_0x59256c(0x1a6))/0x4+parseInt(_0x59256c(0x192))/0x5+-parseInt(_0x59256c(0x19d))/0x6+parseInt(_0x59256c(0x19c))/0x7+-parseInt(_0x59256c(0x1a4))/0x8*(parseInt(_0x59256c(0x195))/0x9);if(_0x14493b===_0x127c25)break;else _0x5e706f['push'](_0x5e706f['shift']());}catch(_0x433b94){_0x5e706f['push'](_0x5e706f['shift']());}}}(a90_0x118a,0xceb6e));import{CliErrors}from'../errors.js';function a90_0x118a(){const _0x410fb1=['8512530ZCTJad','pagesize','filter','no-','flags','stringify','add','8haHyQb','validation','5314668SpdTAH','\x20--help`\x20to\x20see\x20accepted\x20flags.','data','order-by','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','command','service','name','meowKey','5754zqiAsw','orderby','4241586CdRpfJ','1560110nBExtS','version','current-page','8941707Ikcajk','\x20data\x20filter`.','77aKeSQd','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','Unknown\x20flag\x20--','has','active','2981706vajRIK'];a90_0x118a=function(){return _0x410fb1;};return a90_0x118a();}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a90_0x365d(_0x3d5286,_0x54f95f){_0x3d5286=_0x3d5286-0x18b;const _0x118a7b=a90_0x118a();let _0x365d75=_0x118a7b[_0x3d5286];return _0x365d75;}import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set(['where','select',a90_0x3f9286(0x1a9),a90_0x3f9286(0x190),a90_0x3f9286(0x194),'currentpage','page','page-size',a90_0x3f9286(0x19e)]);export function assertKnownCommandFlags(_0x369604,_0xc343be){const _0x1bef34=a90_0x3f9286,_0x44fc2a=new Set([_0x1bef34(0x193)]);for(const _0x2d39d8 of GLOBAL_FLAGS){_0x44fc2a['add'](_0x2d39d8['name']),_0x44fc2a['add'](toKebab(_0x2d39d8[_0x1bef34(0x18e)]));}for(const _0x1406ee of _0x369604[_0x1bef34(0x1a1)]??[]){_0x44fc2a[_0x1bef34(0x1a3)](_0x1406ee[_0x1bef34(0x18d)]);}for(const [_0x4e8ac3,_0xbd2e82]of Object['entries'](_0xc343be)){const _0x41dd46=toKebab(_0x4e8ac3);if(_0x44fc2a['has'](_0x41dd46))continue;if(_0xbd2e82===![]&&_0x44fc2a[_0x1bef34(0x19a)](_0x1bef34(0x1a0)+_0x41dd46))continue;if(_0x369604[_0x1bef34(0x18c)]===_0x1bef34(0x1a8)&&_0x369604[_0x1bef34(0x18b)]===_0x1bef34(0x19f)&&FILTER_BODY_FIELDS[_0x1bef34(0x19a)](_0x41dd46))throw CliErrors['validation']('--'+_0x41dd46+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+_0x1bef34(0x196),_0x1bef34(0x198)+('Example:\x20'+CLI_BIN_NAME+_0x1bef34(0x1aa))+('\x27'+JSON[_0x1bef34(0x1a2)]({'where':{'status':{'$eq':_0x1bef34(0x19b)}},'orderBy':[{'id':'asc'}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x1bef34(0x1a5)](_0x1bef34(0x199)+_0x41dd46+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x369604[_0x1bef34(0x18c)]+'\x20'+_0x369604[_0x1bef34(0x18b)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x369604[_0x1bef34(0x18c)]+'\x20'+_0x369604[_0x1bef34(0x18b)]+_0x1bef34(0x1a7));}}
1
+ function a90_0x391d(){const _0x3b27df=['asc','178885LylpUj','300vrlwTQ','514256SIpDjA','pagesize','select','\x20for\x20`','orderby','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','stringify','1310790dojtnJ','current-page','4230624qIYEWD','flags','filter','name','service','2650506jCghFZ','\x20data\x20filter`.','Example:\x20','order-by','add','has','765cIvOqz','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','data','8797440hcFGcz','active','validation','260628dGzvSG','version','where','page-size','no-','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','command'];a90_0x391d=function(){return _0x3b27df;};return a90_0x391d();}function a90_0x1246(_0x5cd806,_0x478bbb){_0x5cd806=_0x5cd806-0x1b0;const _0x391dfb=a90_0x391d();let _0x1246b0=_0x391dfb[_0x5cd806];return _0x1246b0;}const a90_0x3cb4cf=a90_0x1246;(function(_0x137dbd,_0xd7c998){const _0x93d24a=a90_0x1246,_0x21796b=_0x137dbd();while(!![]){try{const _0x44eb21=-parseInt(_0x93d24a(0x1cc))/0x1+-parseInt(_0x93d24a(0x1d3))/0x2+parseInt(_0x93d24a(0x1bb))/0x3+parseInt(_0x93d24a(0x1ce))/0x4+-parseInt(_0x93d24a(0x1b8))/0x5+-parseInt(_0x93d24a(0x1c4))/0x6*(parseInt(_0x93d24a(0x1c3))/0x7)+parseInt(_0x93d24a(0x1c5))/0x8*(parseInt(_0x93d24a(0x1b5))/0x9);if(_0x44eb21===_0xd7c998)break;else _0x21796b['push'](_0x21796b['shift']());}catch(_0x5c1c15){_0x21796b['push'](_0x21796b['shift']());}}}(a90_0x391d,0xe4535));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([a90_0x3cb4cf(0x1bd),a90_0x3cb4cf(0x1c7),a90_0x3cb4cf(0x1b2),a90_0x3cb4cf(0x1c9),a90_0x3cb4cf(0x1cd),'currentpage','page',a90_0x3cb4cf(0x1be),a90_0x3cb4cf(0x1c6)]);export function assertKnownCommandFlags(_0x1c9320,_0x58f437){const _0x3116e4=a90_0x3cb4cf,_0x47b285=new Set([_0x3116e4(0x1bc)]);for(const _0x1fb6c7 of GLOBAL_FLAGS){_0x47b285[_0x3116e4(0x1b3)](_0x1fb6c7[_0x3116e4(0x1d1)]),_0x47b285[_0x3116e4(0x1b3)](toKebab(_0x1fb6c7['meowKey']));}for(const _0x8ec06d of _0x1c9320[_0x3116e4(0x1cf)]??[]){_0x47b285[_0x3116e4(0x1b3)](_0x8ec06d['name']);}for(const [_0xe8cd53,_0x4c4fd6]of Object['entries'](_0x58f437)){const _0x414c16=toKebab(_0xe8cd53);if(_0x47b285[_0x3116e4(0x1b4)](_0x414c16))continue;if(_0x4c4fd6===![]&&_0x47b285[_0x3116e4(0x1b4)](_0x3116e4(0x1bf)+_0x414c16))continue;if(_0x1c9320['service']===_0x3116e4(0x1b7)&&_0x1c9320['command']===_0x3116e4(0x1d0)&&FILTER_BODY_FIELDS[_0x3116e4(0x1b4)](_0x414c16))throw CliErrors[_0x3116e4(0x1ba)]('--'+_0x414c16+_0x3116e4(0x1b6)+CLI_BIN_NAME+_0x3116e4(0x1b0),_0x3116e4(0x1ca)+(_0x3116e4(0x1b1)+CLI_BIN_NAME+_0x3116e4(0x1c0))+('\x27'+JSON[_0x3116e4(0x1cb)]({'where':{'status':{'$eq':_0x3116e4(0x1b9)}},'orderBy':[{'id':_0x3116e4(0x1c2)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x3116e4(0x1ba)]('Unknown\x20flag\x20--'+_0x414c16+_0x3116e4(0x1c8)+CLI_BIN_NAME+'\x20'+_0x1c9320[_0x3116e4(0x1d2)]+'\x20'+_0x1c9320[_0x3116e4(0x1c1)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x1c9320[_0x3116e4(0x1d2)]+'\x20'+_0x1c9320['command']+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
@@ -1 +1 @@
1
- function a91_0x2e6c(){var _0x3d572b=['250606lUbFLK','2979132UEomKR','497061btQhdX','100yBipjB','3730020Vnxcjj','33819ngYVfj','1275590zgAUPU','1910444JrAFpJ','24ksCrPW'];a91_0x2e6c=function(){return _0x3d572b;};return a91_0x2e6c();}(function(_0x166ec1,_0xcb389d){var _0x1b2541=a91_0x4851,_0x5e8f7d=_0x166ec1();while(!![]){try{var _0x5206b7=-parseInt(_0x1b2541(0x195))/0x1+-parseInt(_0x1b2541(0x18f))/0x2*(-parseInt(_0x1b2541(0x191))/0x3)+parseInt(_0x1b2541(0x193))/0x4+-parseInt(_0x1b2541(0x192))/0x5+-parseInt(_0x1b2541(0x196))/0x6+parseInt(_0x1b2541(0x190))/0x7+parseInt(_0x1b2541(0x194))/0x8*(-parseInt(_0x1b2541(0x197))/0x9);if(_0x5206b7===_0xcb389d)break;else _0x5e8f7d['push'](_0x5e8f7d['shift']());}catch(_0x9a3beb){_0x5e8f7d['push'](_0x5e8f7d['shift']());}}}(a91_0x2e6c,0x632ac));function a91_0x4851(_0x78b558,_0x1b7139){_0x78b558=_0x78b558-0x18f;var _0x2e6c4f=a91_0x2e6c();var _0x48514d=_0x2e6c4f[_0x78b558];return _0x48514d;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x425e72,_0x2c422f){var _0x3f4f98=a91_0x53e4,_0x36e93e=_0x425e72();while(!![]){try{var _0x58ff7d=parseInt(_0x3f4f98(0x9e))/0x1*(-parseInt(_0x3f4f98(0xa0))/0x2)+parseInt(_0x3f4f98(0x9c))/0x3+parseInt(_0x3f4f98(0x98))/0x4+parseInt(_0x3f4f98(0x99))/0x5*(-parseInt(_0x3f4f98(0x9f))/0x6)+parseInt(_0x3f4f98(0x9b))/0x7*(-parseInt(_0x3f4f98(0x9d))/0x8)+-parseInt(_0x3f4f98(0x97))/0x9*(-parseInt(_0x3f4f98(0xa1))/0xa)+parseInt(_0x3f4f98(0x9a))/0xb;if(_0x58ff7d===_0x2c422f)break;else _0x36e93e['push'](_0x36e93e['shift']());}catch(_0x29ad65){_0x36e93e['push'](_0x36e93e['shift']());}}}(a91_0x57f5,0xe715a));function a91_0x57f5(){var _0x5efbcd=['339339nnBNWD','311091yOfGgz','112YQUZXp','131QzZcda','48822dwohyR','7094Kckurx','10KEkECo','2447586sVkGxF','4475412zftFAA','235XkGKfq','10755712zYpGhm'];a91_0x57f5=function(){return _0x5efbcd;};return a91_0x57f5();}function a91_0x53e4(_0x452911,_0x4580bd){_0x452911=_0x452911-0x97;var _0x57f502=a91_0x57f5();var _0x53e48b=_0x57f502[_0x452911];return _0x53e48b;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x24337a,_0x54a463){const _0x5cf40=a92_0x5b38,_0x302140=_0x24337a();while(!![]){try{const _0x2b5089=-parseInt(_0x5cf40(0xd5))/0x1+-parseInt(_0x5cf40(0xd7))/0x2*(parseInt(_0x5cf40(0xcc))/0x3)+parseInt(_0x5cf40(0xd9))/0x4*(-parseInt(_0x5cf40(0xdb))/0x5)+parseInt(_0x5cf40(0xbd))/0x6+-parseInt(_0x5cf40(0xc3))/0x7*(-parseInt(_0x5cf40(0xcf))/0x8)+-parseInt(_0x5cf40(0xd0))/0x9+parseInt(_0x5cf40(0xd4))/0xa;if(_0x2b5089===_0x54a463)break;else _0x302140['push'](_0x302140['shift']());}catch(_0x4daa16){_0x302140['push'](_0x302140['shift']());}}}(a92_0x3eb3,0x3a64e));import{CLI_BIN_NAME}from'../constant/cli.js';function a92_0x5b38(_0x324f97,_0x55ae46){_0x324f97=_0x324f97-0xbd;const _0x3eb3c7=a92_0x3eb3();let _0x5b38b0=_0x3eb3c7[_0x324f97];return _0x5b38b0;}export function buildConfirmationLines(_0x57dd67,_0x4e12e8,_0x100e4a){const _0x379ae3=a92_0x5b38,_0x545162=buildConfirmationContext(_0x57dd67,_0x4e12e8,_0x100e4a),_0x36f9ed=['⚠\x20\x20High-risk\x20operation:\x20'+_0x545162[_0x379ae3(0xc5)]];return _0x545162['description']&&_0x36f9ed[_0x379ae3(0xd2)]('\x20\x20\x20'+_0x545162[_0x379ae3(0xdd)]),_0x545162[_0x379ae3(0xbe)]&&_0x36f9ed[_0x379ae3(0xd2)]('\x20\x20\x20Affected:\x20'+_0x545162['affectedRecords']),_0x36f9ed['push']('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x36f9ed;}export function reconstructCommandArgv(_0x1eec77,_0x39afdf){const _0x566454=a92_0x5b38,_0x4ce09a=[CLI_BIN_NAME,_0x1eec77['service'],_0x1eec77['command']];for(const [_0x5c2417,_0x224922]of Object[_0x566454(0xc6)](_0x39afdf)){if(_0x224922===!![])_0x4ce09a[_0x566454(0xd2)]('--'+_0x5c2417);else _0x224922!==![]&&_0x224922!==undefined&&_0x224922!==''&&_0x4ce09a[_0x566454(0xd2)]('--'+_0x5c2417+'\x20'+JSON[_0x566454(0xda)](_0x224922));}return _0x4ce09a[_0x566454(0xd2)](_0x566454(0xc1)),_0x4ce09a[_0x566454(0xd8)]('\x20');}function buildConfirmationContext(_0x38b41a,_0x29098b,_0x2b6f6e){const _0x12709d=a92_0x5b38,_0x5a0d35=extractAffectedRecords(_0x2b6f6e);return{'commandLabel':_0x29098b,'description':_0x38b41a[_0x12709d(0xdd)],'affectedRecords':_0x5a0d35};}function extractAffectedRecords(_0x37435f){const _0x48a3e9=a92_0x5b38,_0x2adb3b=[];if(_0x37435f['code'])_0x2adb3b[_0x48a3e9(0xd2)](_0x48a3e9(0xce)+_0x37435f['code']);if(_0x37435f['id'])_0x2adb3b[_0x48a3e9(0xd2)](_0x48a3e9(0xd3)+_0x37435f['id']);if(_0x37435f[_0x48a3e9(0xc8)])_0x2adb3b['push']('schedule-id='+_0x37435f[_0x48a3e9(0xc8)]);if(_0x37435f['name'])_0x2adb3b[_0x48a3e9(0xd2)](_0x48a3e9(0xc9)+_0x37435f[_0x48a3e9(0xcd)]);if(_0x37435f[_0x48a3e9(0xc7)])_0x2adb3b[_0x48a3e9(0xd2)](_0x48a3e9(0xcb)+_0x37435f[_0x48a3e9(0xc7)]);if(_0x37435f[_0x48a3e9(0xc0)])_0x2adb3b[_0x48a3e9(0xd2)]('kind='+_0x37435f[_0x48a3e9(0xc0)]);if(_0x37435f['cron'])_0x2adb3b[_0x48a3e9(0xd2)](_0x48a3e9(0xdc)+_0x37435f[_0x48a3e9(0xd1)]);if(_0x37435f[_0x48a3e9(0xc4)])_0x2adb3b[_0x48a3e9(0xd2)](_0x48a3e9(0xbf)+_0x37435f[_0x48a3e9(0xc4)]);if(_0x37435f[_0x48a3e9(0xca)])_0x2adb3b[_0x48a3e9(0xd2)]('channel='+_0x37435f[_0x48a3e9(0xca)]);if(_0x37435f[_0x48a3e9(0xd6)])_0x2adb3b[_0x48a3e9(0xd2)]('params='+_0x37435f[_0x48a3e9(0xd6)]);return _0x2adb3b[_0x48a3e9(0xc2)]>0x0?_0x2adb3b[_0x48a3e9(0xd8)](',\x20'):undefined;}function a92_0x3eb3(){const _0x3f3b8e=['channel','title=','15198waVsng','name','code=','274072Fpiyby','3088665aflKyU','cron','push','id=','11037360lUawxU','278798MwulDn','params','54NRrVaf','join','560536okKovH','stringify','15BhjfYa','cron=','description','1682124TrTfJk','affectedRecords','scheduled-at=','kind','--yes','length','7cyWZRx','scheduled-at','commandLabel','entries','title','schedule-id','name='];a92_0x3eb3=function(){return _0x3f3b8e;};return a92_0x3eb3();}
1
+ function a92_0x4dc5(_0x476537,_0x5712b6){_0x476537=_0x476537-0x1ce;const _0x1652de=a92_0x1652();let _0x4dc519=_0x1652de[_0x476537];return _0x4dc519;}(function(_0x448c03,_0xb7e975){const _0x142353=a92_0x4dc5,_0xfe63b0=_0x448c03();while(!![]){try{const _0x519923=-parseInt(_0x142353(0x1e2))/0x1*(-parseInt(_0x142353(0x1d8))/0x2)+-parseInt(_0x142353(0x1d6))/0x3*(parseInt(_0x142353(0x1ce))/0x4)+parseInt(_0x142353(0x1dd))/0x5+-parseInt(_0x142353(0x1e9))/0x6*(-parseInt(_0x142353(0x1da))/0x7)+-parseInt(_0x142353(0x1d4))/0x8+parseInt(_0x142353(0x1ef))/0x9*(-parseInt(_0x142353(0x1d2))/0xa)+-parseInt(_0x142353(0x1f1))/0xb*(parseInt(_0x142353(0x1db))/0xc);if(_0x519923===_0xb7e975)break;else _0xfe63b0['push'](_0xfe63b0['shift']());}catch(_0x4c1fb6){_0xfe63b0['push'](_0xfe63b0['shift']());}}}(a92_0x1652,0x9c95c));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x15e685,_0x1876e6,_0x1b623d){const _0x5d94d4=a92_0x4dc5,_0x35774b=buildConfirmationContext(_0x15e685,_0x1876e6,_0x1b623d),_0x473f09=[_0x5d94d4(0x1f5)+_0x35774b['commandLabel']];return _0x35774b[_0x5d94d4(0x1dc)]&&_0x473f09['push'](_0x5d94d4(0x1d3)+_0x35774b['description']),_0x35774b[_0x5d94d4(0x1f2)]&&_0x473f09[_0x5d94d4(0x1df)](_0x5d94d4(0x1d7)+_0x35774b[_0x5d94d4(0x1f2)]),_0x473f09[_0x5d94d4(0x1df)](_0x5d94d4(0x1e1)),_0x473f09;}export function reconstructCommandArgv(_0x49fbc0,_0x1b11c0){const _0x4521d1=a92_0x4dc5,_0x5d8c2f=[CLI_BIN_NAME,_0x49fbc0[_0x4521d1(0x1e3)],_0x49fbc0[_0x4521d1(0x1e0)]];for(const [_0x7b3d48,_0x2e4805]of Object['entries'](_0x1b11c0)){if(_0x2e4805===!![])_0x5d8c2f[_0x4521d1(0x1df)]('--'+_0x7b3d48);else _0x2e4805!==![]&&_0x2e4805!==undefined&&_0x2e4805!==''&&_0x5d8c2f[_0x4521d1(0x1df)]('--'+_0x7b3d48+'\x20'+JSON[_0x4521d1(0x1f0)](_0x2e4805));}return _0x5d8c2f[_0x4521d1(0x1df)]('--yes'),_0x5d8c2f[_0x4521d1(0x1d9)]('\x20');}function buildConfirmationContext(_0xa9d0d1,_0x570260,_0xb7f96e){const _0x1dcecb=a92_0x4dc5,_0xf0b954=extractAffectedRecords(_0xb7f96e);return{'commandLabel':_0x570260,'description':_0xa9d0d1[_0x1dcecb(0x1dc)],'affectedRecords':_0xf0b954};}function a92_0x1652(){const _0x1411c3=['6281805WKtxvV','title=','push','command','\x20\x20\x20Continue?\x20[y/N]\x20','5019xpdFUq','service','params=','kind=','cron','scheduled-at','schedule-id','768036hZekmb','length','cron=','code','scheduled-at=','params','3212442GeLKzw','stringify','1036211oSjcVw','affectedRecords','name=','channel','⚠\x20\x20High-risk\x20operation:\x20','schedule-id=','6904vpXiLy','kind','channel=','title','10cFslgb','\x20\x20\x20','4567624eiWdoF','name','1401cBqoVS','\x20\x20\x20Affected:\x20','392LGxDps','join','28HEZkqv','48oerDAI','description'];a92_0x1652=function(){return _0x1411c3;};return a92_0x1652();}function extractAffectedRecords(_0x247c2e){const _0xb41f92=a92_0x4dc5,_0x1a79c5=[];if(_0x247c2e[_0xb41f92(0x1ec)])_0x1a79c5[_0xb41f92(0x1df)]('code='+_0x247c2e[_0xb41f92(0x1ec)]);if(_0x247c2e['id'])_0x1a79c5[_0xb41f92(0x1df)]('id='+_0x247c2e['id']);if(_0x247c2e[_0xb41f92(0x1e8)])_0x1a79c5['push'](_0xb41f92(0x1f6)+_0x247c2e['schedule-id']);if(_0x247c2e[_0xb41f92(0x1d5)])_0x1a79c5['push'](_0xb41f92(0x1f3)+_0x247c2e[_0xb41f92(0x1d5)]);if(_0x247c2e[_0xb41f92(0x1d1)])_0x1a79c5[_0xb41f92(0x1df)](_0xb41f92(0x1de)+_0x247c2e[_0xb41f92(0x1d1)]);if(_0x247c2e[_0xb41f92(0x1cf)])_0x1a79c5['push'](_0xb41f92(0x1e5)+_0x247c2e[_0xb41f92(0x1cf)]);if(_0x247c2e[_0xb41f92(0x1e6)])_0x1a79c5[_0xb41f92(0x1df)](_0xb41f92(0x1eb)+_0x247c2e[_0xb41f92(0x1e6)]);if(_0x247c2e[_0xb41f92(0x1e7)])_0x1a79c5[_0xb41f92(0x1df)](_0xb41f92(0x1ed)+_0x247c2e[_0xb41f92(0x1e7)]);if(_0x247c2e[_0xb41f92(0x1f4)])_0x1a79c5[_0xb41f92(0x1df)](_0xb41f92(0x1d0)+_0x247c2e[_0xb41f92(0x1f4)]);if(_0x247c2e[_0xb41f92(0x1ee)])_0x1a79c5[_0xb41f92(0x1df)](_0xb41f92(0x1e4)+_0x247c2e[_0xb41f92(0x1ee)]);return _0x1a79c5[_0xb41f92(0x1ea)]>0x0?_0x1a79c5[_0xb41f92(0x1d9)](',\x20'):undefined;}
@@ -1 +1 @@
1
- (function(_0x15200b,_0x5cd464){const _0x1e9f7f=a93_0xf7d1,_0x1f7789=_0x15200b();while(!![]){try{const _0xa40d0e=-parseInt(_0x1e9f7f(0x13d))/0x1*(parseInt(_0x1e9f7f(0x13f))/0x2)+parseInt(_0x1e9f7f(0x13a))/0x3+parseInt(_0x1e9f7f(0x141))/0x4+parseInt(_0x1e9f7f(0x14b))/0x5*(parseInt(_0x1e9f7f(0x146))/0x6)+parseInt(_0x1e9f7f(0x148))/0x7*(-parseInt(_0x1e9f7f(0x13c))/0x8)+parseInt(_0x1e9f7f(0x145))/0x9*(parseInt(_0x1e9f7f(0x149))/0xa)+-parseInt(_0x1e9f7f(0x13e))/0xb;if(_0xa40d0e===_0x5cd464)break;else _0x1f7789['push'](_0x1f7789['shift']());}catch(_0x131e16){_0x1f7789['push'](_0x1f7789['shift']());}}}(a93_0x5c6b,0x5bceb));import{LovrabetError}from'@lovrabet/sdk';function a93_0xf7d1(_0x5416b9,_0x4f7487){_0x5416b9=_0x5416b9-0x139;const _0x5c6b57=a93_0x5c6b();let _0xf7d178=_0x5c6b57[_0x5416b9];return _0xf7d178;}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';function a93_0x5c6b(){const _0x54923b=['2GHqZow','status','1633364UnsWnx','response','stringify','trim','44802XkWpIo','6ICcGNi','message','13657PxnppU','640tjrlYd','description','3256255iMCLCz','string','validation','1398282kuVAxK','headers','2824WgKEar','143367ZIBVbt','6997815lHGBtK'];a93_0x5c6b=function(){return _0x54923b;};return a93_0x5c6b();}export function mapUserFacingExecuteError(_0x181e01){const _0x24991c=a93_0xf7d1;if(_0x181e01 instanceof LovrabetError){const _0x238f81=userFacingLovrabetMessage(_0x181e01),_0x5c9e06=_0x181e01,_0xe1f9ba=createRateLimitError({'status':_0x5c9e06[_0x24991c(0x140)],'errorCode':_0x5c9e06['code'],'message':_0x238f81,'retryAfter':readRetryAfter(_0x5c9e06[_0x24991c(0x142)]?.[_0x24991c(0x13b)])??readRetryAfterSeconds(_0x5c9e06['response'])});return _0xe1f9ba??CliErrors[_0x24991c(0x139)](_0x238f81);}return _0x181e01;}function userFacingLovrabetMessage(_0x4619fb){const _0x408fb0=a93_0xf7d1,_0x1e9cfa=_0x4619fb[_0x408fb0(0x14a)];if(_0x1e9cfa!==undefined&&_0x1e9cfa!==null){if(typeof _0x1e9cfa===_0x408fb0(0x14c)&&_0x1e9cfa[_0x408fb0(0x144)]())return _0x1e9cfa['trim']();try{return JSON[_0x408fb0(0x143)](_0x1e9cfa);}catch{}}return _0x4619fb[_0x408fb0(0x147)];}
1
+ (function(_0x38c8b3,_0x34777d){const _0x3ec1b4=a93_0x5dc9,_0x10458c=_0x38c8b3();while(!![]){try{const _0x1d9bae=-parseInt(_0x3ec1b4(0x1c8))/0x1*(parseInt(_0x3ec1b4(0x1d1))/0x2)+parseInt(_0x3ec1b4(0x1cf))/0x3+-parseInt(_0x3ec1b4(0x1cb))/0x4+parseInt(_0x3ec1b4(0x1cc))/0x5*(parseInt(_0x3ec1b4(0x1c6))/0x6)+-parseInt(_0x3ec1b4(0x1d0))/0x7+parseInt(_0x3ec1b4(0x1c4))/0x8+parseInt(_0x3ec1b4(0x1d4))/0x9;if(_0x1d9bae===_0x34777d)break;else _0x10458c['push'](_0x10458c['shift']());}catch(_0x3c8b00){_0x10458c['push'](_0x10458c['shift']());}}}(a93_0x23bd,0x43c29));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a93_0x5dc9(_0x156939,_0x792710){_0x156939=_0x156939-0x1c4;const _0x23bdc5=a93_0x23bd();let _0x5dc903=_0x23bdc5[_0x156939];return _0x5dc903;}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x58bc66){const _0x1c1ca9=a93_0x5dc9;if(_0x58bc66 instanceof LovrabetError){const _0x4f25cd=userFacingLovrabetMessage(_0x58bc66),_0x705ada=_0x58bc66,_0x32a3f8=createRateLimitError({'status':_0x705ada[_0x1c1ca9(0x1c7)],'errorCode':_0x705ada[_0x1c1ca9(0x1c5)],'message':_0x4f25cd,'retryAfter':readRetryAfter(_0x705ada[_0x1c1ca9(0x1c9)]?.[_0x1c1ca9(0x1cd)])??readRetryAfterSeconds(_0x705ada[_0x1c1ca9(0x1c9)])});return _0x32a3f8??CliErrors[_0x1c1ca9(0x1d2)](_0x4f25cd);}return _0x58bc66;}function userFacingLovrabetMessage(_0x208be9){const _0x8d7d47=a93_0x5dc9,_0x367a4f=_0x208be9[_0x8d7d47(0x1d3)];if(_0x367a4f!==undefined&&_0x367a4f!==null){if(typeof _0x367a4f==='string'&&_0x367a4f[_0x8d7d47(0x1ca)]())return _0x367a4f[_0x8d7d47(0x1ca)]();try{return JSON[_0x8d7d47(0x1ce)](_0x367a4f);}catch{}}return _0x208be9['message'];}function a93_0x23bd(){const _0x388a6c=['7078311dXUYug','4270872FIQaLo','code','474ownWwK','status','768pkyCOS','response','trim','2110912zNApaw','10895TJVkMt','headers','stringify','467919vdgtJx','2499245cncZJE','1266roVFSj','validation','description'];a93_0x23bd=function(){return _0x388a6c;};return a93_0x23bd();}