@lovrabet/lovrabet-cli 2.1.22-beta.2 → 2.1.22-beta.4
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.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/core/api-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3a96aa,_0x3351aa){const _0x2a0fc7=a78_0x1a9b,_0xc1babd=_0x3a96aa();while(!![]){try{const _0x54a72d=-parseInt(_0x2a0fc7(0x12d))/0x1+-parseInt(_0x2a0fc7(0xad))/0x2*(-parseInt(_0x2a0fc7(0xbb))/0x3)+parseInt(_0x2a0fc7(0xc8))/0x4*(-parseInt(_0x2a0fc7(0xb0))/0x5)+-parseInt(_0x2a0fc7(0xa2))/0x6*(-parseInt(_0x2a0fc7(0x12a))/0x7)+parseInt(_0x2a0fc7(0xcf))/0x8*(parseInt(_0x2a0fc7(0xf8))/0x9)+-parseInt(_0x2a0fc7(0x129))/0xa+parseInt(_0x2a0fc7(0x125))/0xb*(parseInt(_0x2a0fc7(0xf7))/0xc);if(_0x54a72d===_0x3351aa)break;else _0xc1babd['push'](_0xc1babd['shift']());}catch(_0x8a7799){_0xc1babd['push'](_0xc1babd['shift']());}}}(a78_0x2dbb,0xc8ab4));function a78_0x2dbb(){const _0x5361ac=['Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','name','/client/knowledge-base/search','errorCode','/skills','function','SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.','string','Invalid\x20app\x20config\x20value:\x20key=','/update','/publish/validate','effective','2876292JhmEor','117pfMChh','download','errorMsg','PRIVATE','msg','description','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','publish','Check\x20your\x20credentials\x20and\x20try\x20again.','diagram','items','valid','/client/runtime-bff/personal/create','authRequired','resolvedSlug','packageBase64','application/json','/api/cli/v1/skills/','/schedules','namespace','GET','/versions/','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','values','summary','/client/app/my-apps','/publish','searchParams','newConfigFileName','replace','/execute?appCode=','code','appName','find','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','text','/validate','type','/client/uploadFile','toLowerCase','Toolbox\x20error\x20code:\x20','arrayBuffer','headers','content','/download','11gVYpft','cursor','sqlCode','json','11266250OwReal','1818831BeLHHY','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','slug','290750uPwaOX','visibility','tags','api-doc-generator','/api/v1/skills/','validation','gmtModified','/client/artifact/','isArray','file','skillCode','trim','/api/harness/apps/','limit','/client/runtime-bff/personal/','isJson','success','functionName','headlineVersion','SkillHub\x20API\x20error:\x20','from','favorite','status','API\x20error:\x20','error','tableData','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','filter','Toolbox\x20API\x20error:\x20','/client/knowledge-base/personal/list?appCode=','Configure\x20accessKey\x20in\x20','displayName','skillName','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','object','30oUtZmh','artifactType','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','PUT','join','personal','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','diagramBound','all','ownerPreviewVersion','set','38sYmbEF','stringify','Artifact\x20not\x20found:\x20id=','20YUcclo','scope','topK','abort','source','markdown','SkillHub\x20error\x20code:\x20','message','appCode','sourceFingerprint','/api/node-toolbox/','183261vAXEWm','diagramValidated','found','company','AbortError','signal','POST','/client/ocr','API\x20error\x20code:\x20','Request\x20timeout:\x20','errors','/client/knowledge-base/personal/create','invokeSource','1434856tTqbLy','data','entries','boolean','base64','/client/queryFileUrl','isInteger','599792cTpFAf','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','warnings','map','apiError','skill','/run','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','test','version','/client/knowledge-base/personal/','Download\x20failed:\x20','/diagram','number','SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20','confirmWarnings','toString','publishedVersion','Knowledge-base\x20entry\x20not\x20found:\x20id=','undefined','NAMESPACE_ONLY','functions','/api/runtime/v1/namespaces/','DELETE','/client/bff/endpoint/','Personal\x20BFF\x20not\x20found:\x20id=','query',',\x20name='];a78_0x2dbb=function(){return _0x5361ac;};return a78_0x2dbb();}import{readFile}from'node:fs/promises';function a78_0x1a9b(_0x2b1815,_0x5bc8fc){_0x2b1815=_0x2b1815-0x9b;const _0x2dbb7f=a78_0x2dbb();let _0x1a9b1f=_0x2dbb7f[_0x2b1815];return _0x1a9b1f;}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(_0x2719b7){_activeAK=_0x2719b7||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x46d402){const _0x47606f=a78_0x1a9b;for(const _0x175c87 of _0x46d402){if(typeof _0x175c87===_0x47606f(0xf2)&&_0x175c87[_0x47606f(0x138)]())return _0x175c87['trim']();}return undefined;}async function decodeResponseBody(_0x2efdb6){const _0x2c04ae=a78_0x1a9b;if(typeof _0x2efdb6[_0x2c04ae(0x11b)]===_0x2c04ae(0xf0))try{const _0x100048=await _0x2efdb6[_0x2c04ae(0x11b)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x100048),'text':_0x100048};}catch{return{'isJson':![],'text':_0x100048['trim']()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x2efdb6[_0x2c04ae(0x128)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x22d52a,_0x5dba5d,_0x38ae75){const _0x94de0=a78_0x1a9b,_0x3d7c09=_0x5dba5d&&typeof _0x5dba5d===_0x94de0(0xa1)?_0x5dba5d:{},_0x5f3819=[_0x3d7c09[_0x94de0(0x143)],_0x3d7c09[_0x94de0(0x117)]][_0x94de0(0x119)](_0x33e14a=>Number(_0x33e14a)===0x1ad),_0x179872=createRateLimitError({'status':_0x22d52a[_0x94de0(0x143)]===0x1ad?_0x22d52a[_0x94de0(0x143)]:_0x5f3819??_0x22d52a[_0x94de0(0x143)],'errorCode':firstString(_0x3d7c09['errorCode'],typeof _0x3d7c09[_0x94de0(0x117)]==='string'?_0x3d7c09['code']:undefined),'message':firstString(_0x3d7c09[_0x94de0(0xfa)],_0x3d7c09[_0x94de0(0xb7)],_0x3d7c09[_0x94de0(0xfc)],_0x38ae75),'retryAfter':readRetryAfter(_0x22d52a[_0x94de0(0x122)])??readRetryAfterSeconds(_0x5dba5d)});if(_0x179872)throw _0x179872;}async function apiRequest(_0x37b9a5,_0x4e3098={}){const _0x442e1b=a78_0x1a9b,{method:method=_0x442e1b(0x10c),body:_0x2c0156,headers:headers={},timeout:timeout=0x7530}=_0x4e3098,_0x53b751=_activeAK,_0x5da425=getRuntimeDomain();if(!_0x53b751)throw CliErrors[_0x442e1b(0x105)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x31cc6b=''+_0x5da425+_0x37b9a5,_0x599e69={'X-User-AK':_0x53b751},_0x19440e=new AbortController(),_0x2fe642=setTimeout(()=>_0x19440e[_0x442e1b(0xb3)](),timeout);try{const _0x58cb60=await fetch(_0x31cc6b,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x442e1b(0xc7)],..._0x599e69,...headers},'body':_0x2c0156?JSON[_0x442e1b(0xae)](_0x2c0156):undefined,'signal':_0x19440e[_0x442e1b(0xc0)]}),_0x3e71c8=await decodeResponseBody(_0x58cb60);if(!_0x3e71c8['isJson']){throwIfRateLimited(_0x58cb60,undefined,_0x3e71c8[_0x442e1b(0x11b)]);throw CliErrors[_0x442e1b(0xd3)](_0x442e1b(0x11a)+_0x58cb60[_0x442e1b(0x143)]+')',_0x58cb60[_0x442e1b(0x143)]>=0x190?_0x442e1b(0x100):undefined);}const _0x34164f=_0x3e71c8[_0x442e1b(0xc9)];throwIfRateLimited(_0x58cb60,_0x34164f);if(!_0x58cb60['ok']||_0x34164f[_0x442e1b(0x13d)]===![])throw CliErrors[_0x442e1b(0xd3)](_0x34164f[_0x442e1b(0xfa)]||_0x34164f[_0x442e1b(0xb7)]||_0x442e1b(0x144)+_0x58cb60[_0x442e1b(0x143)],_0x34164f[_0x442e1b(0xee)]?_0x442e1b(0xc3)+_0x34164f[_0x442e1b(0xee)]:undefined);return _0x34164f;}catch(_0x19fc60){if(_0x19fc60 instanceof Error&&_0x19fc60[_0x442e1b(0xec)]==='AbortError')throw CliErrors[_0x442e1b(0xd3)](_0x442e1b(0xc4)+_0x31cc6b);throw _0x19fc60;}finally{clearTimeout(_0x2fe642);}}async function apiBinaryRequest(_0x25544b,_0x10c7c7={}){const _0x17fe8c=a78_0x1a9b,{method:method=_0x17fe8c(0x10c),headers:headers={},timeout:timeout=0x7530}=_0x10c7c7,_0x3e4210=_activeAK,_0x149363=getRuntimeDomain();if(!_0x3e4210)throw CliErrors[_0x17fe8c(0x105)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x384c48=''+_0x149363+_0x25544b,_0x42c649=new AbortController(),_0x87eb0c=setTimeout(()=>_0x42c649[_0x17fe8c(0xb3)](),timeout);try{const _0x2f0256=await fetch(_0x384c48,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x17fe8c(0xc7)],'X-User-AK':_0x3e4210,...headers},'signal':_0x42c649[_0x17fe8c(0xc0)]});if(!_0x2f0256['ok']){const _0x284905=await decodeResponseBody(_0x2f0256),_0x510764=_0x284905[_0x17fe8c(0xc9)]&&typeof _0x284905[_0x17fe8c(0xc9)]===_0x17fe8c(0xa1)?_0x284905[_0x17fe8c(0xc9)]:{},_0x380234=firstString(_0x510764[_0x17fe8c(0xfa)],_0x510764[_0x17fe8c(0xb7)],_0x510764['errorCode'],_0x284905[_0x17fe8c(0x11b)]);throwIfRateLimited(_0x2f0256,_0x284905[_0x17fe8c(0xc9)],_0x380234);throw CliErrors['apiError'](_0x380234||'API\x20error:\x20'+_0x2f0256['status'],_0x17fe8c(0xda)+_0x384c48);}return Buffer[_0x17fe8c(0x141)](await _0x2f0256['arrayBuffer']());}catch(_0x4d13d3){if(_0x4d13d3 instanceof Error&&_0x4d13d3['name']==='AbortError')throw CliErrors[_0x17fe8c(0xd3)](_0x17fe8c(0xc4)+_0x384c48);throw _0x4d13d3;}finally{clearTimeout(_0x87eb0c);}}async function apiFormRequest(_0x32c831,_0x533778,_0x2fe515={}){const _0x595c82=a78_0x1a9b,{timeout:timeout=0x7530}=_0x2fe515,_0x4eeba3=_activeAK,_0x2cac31=getRuntimeDomain();if(!_0x4eeba3)throw CliErrors['authRequired'](_0x595c82(0x9d)+PRODUCT_CONFIG[_0x595c82(0x114)]+'.');const _0x38d166=''+_0x2cac31+_0x32c831,_0x1404d1=new AbortController(),_0xbde8b0=setTimeout(()=>_0x1404d1['abort'](),timeout);try{const _0x57ed59=await fetch(_0x38d166,{'method':_0x595c82(0xc1),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x595c82(0xc7)],'X-User-AK':_0x4eeba3},'body':_0x533778,'signal':_0x1404d1['signal']}),_0x2c8933=await decodeResponseBody(_0x57ed59);if(!_0x2c8933[_0x595c82(0x13c)]){throwIfRateLimited(_0x57ed59,undefined,_0x2c8933['text']);throw CliErrors[_0x595c82(0xd3)](_0x595c82(0x11a)+_0x57ed59[_0x595c82(0x143)]+')',_0x57ed59[_0x595c82(0x143)]>=0x190?_0x595c82(0x100):undefined);}const _0x3ad5ed=_0x2c8933[_0x595c82(0xc9)];throwIfRateLimited(_0x57ed59,_0x3ad5ed);if(!_0x57ed59['ok']||_0x3ad5ed[_0x595c82(0x13d)]===![])throw CliErrors[_0x595c82(0xd3)](_0x3ad5ed['errorMsg']||_0x3ad5ed[_0x595c82(0xb7)]||_0x595c82(0x144)+_0x57ed59[_0x595c82(0x143)],_0x3ad5ed[_0x595c82(0xee)]?'API\x20error\x20code:\x20'+_0x3ad5ed[_0x595c82(0xee)]:undefined);return _0x3ad5ed;}catch(_0x5cd947){if(_0x5cd947 instanceof Error&&_0x5cd947[_0x595c82(0xec)]===_0x595c82(0xbf))throw CliErrors['apiError'](_0x595c82(0xc4)+_0x38d166);throw _0x5cd947;}finally{clearTimeout(_0xbde8b0);}}async function toolboxRequest(_0x56e14b,_0x38b8e1,_0x431ca3={}){const _0x189fb8=a78_0x1a9b,{method:method=_0x189fb8(0x10c),headers:headers={},timeout:timeout=0x7530}=_0x431ca3,_0x345e8b=_activeAK;if(!_0x345e8b)throw CliErrors[_0x189fb8(0x105)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x2cc86b=getApiDomain()[_0x189fb8(0x115)](/\/$/,''),_0x166b5c=new URL(_0x56e14b,_0x2cc86b+_0x189fb8(0xba));if(_0x38b8e1)for(const [_0x21b33f,_0xd68cad]of Object[_0x189fb8(0xca)](_0x38b8e1)){_0xd68cad!==undefined&&_0xd68cad!==null&&_0x166b5c[_0x189fb8(0x113)][_0x189fb8(0xac)](_0x21b33f,String(_0xd68cad));}const _0x54ce73=new AbortController(),_0x3ecd7f=setTimeout(()=>_0x54ce73[_0x189fb8(0xb3)](),timeout);try{const _0x3468cd=await fetch(_0x166b5c,{'method':method,'headers':{'Content-Type':_0x189fb8(0x108),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x345e8b,...headers},'signal':_0x54ce73['signal']}),_0x2b7371=await decodeResponseBody(_0x3468cd);if(!_0x2b7371['isJson']){throwIfRateLimited(_0x3468cd,undefined,_0x2b7371[_0x189fb8(0x11b)]);throw CliErrors[_0x189fb8(0xd3)](_0x189fb8(0xeb)+_0x3468cd[_0x189fb8(0x143)]+')',_0x3468cd[_0x189fb8(0x143)]>=0x190?_0x189fb8(0x100):undefined);}const _0xe2d664=_0x2b7371[_0x189fb8(0xc9)];throwIfRateLimited(_0x3468cd,_0xe2d664);if(!_0x3468cd['ok']){const _0xcf8765=_0xe2d664&&typeof _0xe2d664===_0x189fb8(0xa1)?_0xe2d664:{};throw CliErrors[_0x189fb8(0xd3)](_0xcf8765['errorMsg']||_0xcf8765[_0x189fb8(0xb7)]||_0x189fb8(0x9b)+_0x3468cd[_0x189fb8(0x143)],_0xcf8765[_0x189fb8(0xee)]?_0x189fb8(0x120)+_0xcf8765[_0x189fb8(0xee)]:undefined);}if(_0xe2d664&&typeof _0xe2d664===_0x189fb8(0xa1)&&_0x189fb8(0x13d)in _0xe2d664&&typeof _0xe2d664[_0x189fb8(0x13d)]===_0x189fb8(0xcb)){const _0x2b6768=_0xe2d664;if(!_0x2b6768[_0x189fb8(0x13d)])throw CliErrors['apiError'](_0x2b6768[_0x189fb8(0xfa)]||_0x2b6768[_0x189fb8(0xb7)]||'Toolbox\x20API\x20error',_0x2b6768['errorCode']?_0x189fb8(0x120)+_0x2b6768[_0x189fb8(0xee)]:undefined);return _0x2b6768['data'];}return _0xe2d664;}catch(_0xe90ccc){if(_0xe90ccc instanceof Error&&_0xe90ccc['name']===_0x189fb8(0xbf))throw CliErrors['apiError'](_0x189fb8(0xc4)+_0x166b5c['toString']());throw _0xe90ccc;}finally{clearTimeout(_0x3ecd7f);}}async function skillHubJsonRequest(_0x9224ad,_0x3aca51={}){const _0x446ccc=a78_0x1a9b,{method:method=_0x446ccc(0x10c),query:_0x36693f,body:_0x5e4559,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x3aca51,_0x45560c=_activeAK;if(!_0x45560c)throw CliErrors[_0x446ccc(0x105)](_0x446ccc(0x9d)+PRODUCT_CONFIG[_0x446ccc(0x114)]+'.');const _0x168eda=getSkillHubDomain()[_0x446ccc(0x115)](/\/$/,''),_0x33f304=new URL(_0x9224ad,_0x168eda+'/');if(_0x36693f)for(const [_0x24ba20,_0x20ce66]of Object[_0x446ccc(0xca)](_0x36693f)){_0x20ce66!==undefined&&_0x20ce66!==null&&_0x33f304['searchParams'][_0x446ccc(0xac)](_0x24ba20,String(_0x20ce66));}const _0x4739e2=new AbortController(),_0x5dba6f=setTimeout(()=>_0x4739e2[_0x446ccc(0xb3)](),timeout);try{const _0x5a4c83=await fetch(_0x33f304[_0x446ccc(0xdf)](),{'method':method,'headers':{'Accept':_0x446ccc(0x108),'X-Invoke-Source':PRODUCT_CONFIG[_0x446ccc(0xc7)],'X-User-AK':_0x45560c,...headers},'body':_0x5e4559,'signal':_0x4739e2[_0x446ccc(0xc0)]}),_0x58b6e2=await decodeResponseBody(_0x5a4c83);if(!_0x58b6e2[_0x446ccc(0x13c)]){if(allowNotFound&&_0x5a4c83['status']===0x194)return undefined;throwIfRateLimited(_0x5a4c83,undefined,_0x58b6e2['text']);throw CliErrors[_0x446ccc(0xd3)](_0x446ccc(0xd0)+_0x5a4c83[_0x446ccc(0x143)]+')',_0x5a4c83[_0x446ccc(0x143)]>=0x190?_0x446ccc(0x100):undefined);}const _0x295a0b=_0x58b6e2[_0x446ccc(0xc9)];throwIfRateLimited(_0x5a4c83,_0x295a0b);if(allowNotFound&&isSkillHubNotFoundResponse(_0x5a4c83[_0x446ccc(0x143)],_0x295a0b))return undefined;const _0xdb1dcf=!_0x5a4c83['ok']||_0x295a0b?.[_0x446ccc(0x13d)]===![]||typeof _0x295a0b?.[_0x446ccc(0x117)]===_0x446ccc(0xdc)&&_0x295a0b[_0x446ccc(0x117)]>=0x190;if(_0xdb1dcf)throw CliErrors['apiError'](_0x295a0b?.[_0x446ccc(0xfa)]||_0x295a0b?.[_0x446ccc(0xb7)]||_0x295a0b?.[_0x446ccc(0xfc)]||_0x446ccc(0x140)+_0x5a4c83[_0x446ccc(0x143)],_0x295a0b?.['errorCode']?_0x446ccc(0xb6)+_0x295a0b[_0x446ccc(0xee)]:undefined);return _0x295a0b?.[_0x446ccc(0xc9)]??_0x295a0b;}catch(_0xe6461e){if(_0xe6461e instanceof Error&&_0xe6461e[_0x446ccc(0xec)]==='AbortError')throw CliErrors[_0x446ccc(0xd3)](_0x446ccc(0xc4)+_0x33f304[_0x446ccc(0xdf)]());throw _0xe6461e;}finally{clearTimeout(_0x5dba6f);}}function isSkillHubNotFoundResponse(_0x5378e9,_0x254fef){const _0x57fe90=a78_0x1a9b;if(_0x5378e9===0x194||_0x254fef?.['code']===0x194)return!![];if(_0x5378e9!==0x190&&_0x254fef?.['code']!==0x190)return![];const _0x49d4d9=[_0x254fef?.['msg'],_0x254fef?.[_0x57fe90(0xb7)],_0x254fef?.[_0x57fe90(0xfa)],_0x254fef?.[_0x57fe90(0x145)]][_0x57fe90(0x148)](_0x9b515f=>typeof _0x9b515f===_0x57fe90(0xf2))[_0x57fe90(0xa6)]('\x20');return/skill not found\b/i[_0x57fe90(0xd7)](_0x49d4d9);}async function skillHubBinaryRequest(_0xe208e2,_0x49bd1b={}){const _0xe3c5c3=a78_0x1a9b,{query:_0x4c630d,headers:headers={},timeout:timeout=0x7530}=_0x49bd1b,_0x1da6a8=_activeAK;if(!_0x1da6a8)throw CliErrors[_0xe3c5c3(0x105)](_0xe3c5c3(0x9d)+PRODUCT_CONFIG[_0xe3c5c3(0x114)]+'.');const _0x50e4af=getSkillHubDomain()[_0xe3c5c3(0x115)](/\/$/,''),_0x24f0b8=new URL(_0xe208e2,_0x50e4af+'/');if(_0x4c630d)for(const [_0x486564,_0x59c003]of Object['entries'](_0x4c630d)){_0x59c003!==undefined&&_0x59c003!==null&&_0x24f0b8[_0xe3c5c3(0x113)]['set'](_0x486564,String(_0x59c003));}const _0x1e79f9=new AbortController(),_0x41998b=setTimeout(()=>_0x1e79f9['abort'](),timeout);try{const _0x13a226=await fetch(_0x24f0b8['toString'](),{'method':_0xe3c5c3(0x10c),'headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x1da6a8,...headers},'signal':_0x1e79f9[_0xe3c5c3(0xc0)]});if(!_0x13a226['ok']){const _0x2ca2bf=await decodeResponseBody(_0x13a226),_0x21657c=_0x2ca2bf['data']&&typeof _0x2ca2bf['data']===_0xe3c5c3(0xa1)?_0x2ca2bf[_0xe3c5c3(0xc9)]:{},_0x158e61=firstString(_0x21657c['errorMsg'],_0x21657c['message'],_0x21657c['msg'],_0x21657c[_0xe3c5c3(0xee)],_0x2ca2bf[_0xe3c5c3(0x11b)]);throwIfRateLimited(_0x13a226,_0x2ca2bf[_0xe3c5c3(0xc9)],_0x158e61);throw CliErrors[_0xe3c5c3(0xd3)](_0x158e61||'SkillHub\x20API\x20error:\x20'+_0x13a226['status'],'Download\x20failed:\x20'+_0x24f0b8[_0xe3c5c3(0xdf)]());}return Buffer[_0xe3c5c3(0x141)](await _0x13a226[_0xe3c5c3(0x121)]());}catch(_0x405ede){if(_0x405ede instanceof Error&&_0x405ede['name']===_0xe3c5c3(0xbf))throw CliErrors[_0xe3c5c3(0xd3)](_0xe3c5c3(0xc4)+_0x24f0b8[_0xe3c5c3(0xdf)]());throw _0x405ede;}finally{clearTimeout(_0x41998b);}}export async function getBffEndpointContract(_0x30a3a0,_0x136108){const _0x8258dc=a78_0x1a9b;if(_0x136108===_0x8258dc(0xe4))throw CliErrors[_0x8258dc(0x132)](_0x8258dc(0xd6)+_0x30a3a0+_0x8258dc(0xea)+_0x136108);const _0x1e44cd=await apiRequest(_0x8258dc(0xe7)+encodeURIComponent(_0x30a3a0)+'/'+encodeURIComponent(_0x136108)),_0x3de547=_0x1e44cd[_0x8258dc(0xc9)];if(!_0x3de547||typeof _0x3de547!==_0x8258dc(0xa1)||Array[_0x8258dc(0x135)](_0x3de547)||_0x3de547[_0x8258dc(0xb8)]!==_0x30a3a0||_0x3de547[_0x8258dc(0x13e)]!==_0x136108)throw CliErrors[_0x8258dc(0x132)]('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x30a3a0+',\x20name='+_0x136108);return{'appCode':_0x3de547[_0x8258dc(0xb8)],'functionName':_0x3de547[_0x8258dc(0x13e)],'description':_0x3de547[_0x8258dc(0xfd)],'version':_0x3de547[_0x8258dc(0xd8)],'gmtModified':_0x3de547[_0x8258dc(0x133)]};}export async function getSqlQueryInfo(_0x8b1ed4,_0x43e83e){const _0x44e731=a78_0x1a9b,_0x1b0bbd=await apiRequest('/client/sql/query',{'method':'POST','body':{'appCode':_0x8b1ed4,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x43e83e}}),_0x17eba0=_0x1b0bbd[_0x44e731(0xc9)],_0x34db44=_0x17eba0&&typeof _0x17eba0===_0x44e731(0xa1)&&_0x44e731(0x146)in _0x17eba0?_0x17eba0[_0x44e731(0x146)]?.[0x0]:_0x17eba0&&typeof _0x17eba0===_0x44e731(0xa1)&&_0x44e731(0x127)in _0x17eba0?_0x17eba0:undefined;if(!_0x34db44)throw CliErrors[_0x44e731(0x132)]('SQL\x20query\x20not\x20found:\x20'+_0x43e83e);return _0x34db44;}function isRemoteAppItem(_0x593e93){const _0x3a6105=a78_0x1a9b;return!!_0x593e93&&typeof _0x593e93==='object'&&typeof _0x593e93['appCode']==='string'&&typeof _0x593e93[_0x3a6105(0x118)]===_0x3a6105(0xf2);}function extractRemoteAppItems(_0x192fc6){const _0xf3cc6a=a78_0x1a9b;if(Array['isArray'](_0x192fc6))return _0x192fc6[_0xf3cc6a(0x148)](isRemoteAppItem);if(!_0x192fc6||typeof _0x192fc6!=='object')throw CliErrors[_0xf3cc6a(0xd3)](_0xf3cc6a(0xa8));const _0x3156f5=_0x192fc6;if(Array[_0xf3cc6a(0x135)](_0x3156f5[_0xf3cc6a(0x146)]))return _0x3156f5[_0xf3cc6a(0x146)][_0xf3cc6a(0x148)](isRemoteAppItem);if(_0x3156f5[_0xf3cc6a(0xc9)]&&typeof _0x3156f5[_0xf3cc6a(0xc9)]===_0xf3cc6a(0xa1)){const _0x37ed87=_0x3156f5['data'];if(Array[_0xf3cc6a(0x135)](_0x37ed87['tableData']))return _0x37ed87[_0xf3cc6a(0x146)][_0xf3cc6a(0x148)](isRemoteAppItem);}throw CliErrors[_0xf3cc6a(0xd3)](_0xf3cc6a(0x10e));}export async function getMyApps(){const _0x29fc54=a78_0x1a9b,_0x16b687=await apiRequest(_0x29fc54(0x111));return extractRemoteAppItems(_0x16b687[_0x29fc54(0xc9)]);}export async function getLoginUserInfo(){const _0x28e8a3=a78_0x1a9b,_0x564fa8=await apiRequest('/client/user/loginUserInfo');if(!_0x564fa8[_0x28e8a3(0xc9)]||typeof _0x564fa8['data']!==_0x28e8a3(0xa1)||Array['isArray'](_0x564fa8['data']))throw CliErrors[_0x28e8a3(0xd3)](_0x28e8a3(0x12b));return _0x564fa8[_0x28e8a3(0xc9)];}function runtimeSchedulePath(_0x436a7f,_0x131c99=''){const _0x2fa764=a78_0x1a9b;return _0x2fa764(0x139)+encodeURIComponent(_0x436a7f)+_0x2fa764(0x10a)+_0x131c99;}export async function validateRuntimeSchedule(_0x1034cc,_0x4dfcae){const _0xf0bd46=a78_0x1a9b,_0xb80d3d=await apiRequest(runtimeSchedulePath(_0x1034cc,_0xf0bd46(0x11c)),{'method':_0xf0bd46(0xc1),'body':_0x4dfcae});return _0xb80d3d[_0xf0bd46(0xc9)];}export async function createRuntimeSchedule(_0x2437a2,_0x369ef0){const _0x575034=a78_0x1a9b,_0x14228d=await apiRequest(runtimeSchedulePath(_0x2437a2),{'method':_0x575034(0xc1),'body':_0x369ef0});return _0x14228d[_0x575034(0xc9)];}export async function listRuntimeSchedules(_0x434733,_0x35d0b1={}){const _0x575fdc=a78_0x1a9b,_0x414860=new URLSearchParams();if(_0x35d0b1['limit']!==undefined)_0x414860[_0x575fdc(0xac)](_0x575fdc(0x13a),String(_0x35d0b1[_0x575fdc(0x13a)]));if(_0x35d0b1['cursor'])_0x414860[_0x575fdc(0xac)](_0x575fdc(0x126),_0x35d0b1[_0x575fdc(0x126)]);const _0x55c370=_0x414860['size']>0x0?'?'+_0x414860[_0x575fdc(0xdf)]():'',_0x5f3e29=await apiRequest(''+runtimeSchedulePath(_0x434733)+_0x55c370);return _0x5f3e29[_0x575fdc(0xc9)];}export async function getRuntimeSchedule(_0x127746,_0x418ded){const _0x3c0649=a78_0x1a9b,_0x2f30fb=await apiRequest(runtimeSchedulePath(_0x127746,'/'+encodeURIComponent(_0x418ded)));return _0x2f30fb[_0x3c0649(0xc9)];}export async function deleteRuntimeSchedule(_0x53109c,_0x15345a){const _0x41c11e=a78_0x1a9b,_0x2ebef7=await apiRequest(runtimeSchedulePath(_0x53109c,'/'+encodeURIComponent(_0x15345a)),{'method':_0x41c11e(0xe6)});return _0x2ebef7['data'];}export async function runRuntimeSchedule(_0x4a287e,_0x453c5f){const _0x2cbc88=a78_0x1a9b,_0x498328=await apiRequest(runtimeSchedulePath(_0x4a287e,'/'+encodeURIComponent(_0x453c5f)+_0x2cbc88(0xd5)),{'method':_0x2cbc88(0xc1)});return _0x498328[_0x2cbc88(0xc9)];}export async function listDatasets(_0x241dfe,_0x23dc41){const _0x1fd443=a78_0x1a9b,_0x24c957=await apiRequest('/client/dataset/list',{'method':_0x1fd443(0xc1),'body':{'appCode':_0x241dfe,..._0x23dc41?.[_0x1fd443(0x117)]&&{'code':_0x23dc41[_0x1fd443(0x117)]},..._0x23dc41?.[_0x1fd443(0xec)]&&{'name':_0x23dc41[_0x1fd443(0xec)]}}});return extractList(_0x24c957[_0x1fd443(0xc9)]);}export async function getDatasetDetail(_0x3534d8){const _0x10f4eb=a78_0x1a9b,_0xb1104e=await apiRequest('/client/dataset/get-driven-data?code='+encodeURIComponent(_0x3534d8));return _0xb1104e[_0x10f4eb(0xc9)];}export async function getDatasetSdkUsageDoc(_0x2abcdc,_0x4b00f0){const _0x6a0798=a78_0x1a9b,_0x5252d9=await toolboxRequest(_0x6a0798(0x130),{'datasetCode':_0x2abcdc,'appCode':_0x4b00f0});return typeof _0x5252d9?.[_0x6a0798(0xb5)]===_0x6a0798(0xf2)?_0x5252d9['markdown']:'';}export async function uploadRuntimeFile(_0x2a2a69,_0x2f054d){const _0x195622=a78_0x1a9b,_0x5b3323=await readFile(_0x2f054d),_0x51a12d=new FormData();_0x51a12d['append']('appCode',_0x2a2a69),_0x51a12d['append']('file',new Blob([new Uint8Array(_0x5b3323)]),basename(_0x2f054d));const _0x7c3e0a=await apiFormRequest(_0x195622(0x11e),_0x51a12d);return _0x7c3e0a['data'];}export async function queryRuntimeFileUrl(_0x2696d1,_0x4a125b={}){const _0x43893a=a78_0x1a9b,_0x22ad4e=await apiRequest(_0x43893a(0xcd),{'method':_0x43893a(0xc1),'body':{'filePath':_0x2696d1,'downloadFlag':_0x4a125b[_0x43893a(0xf9)]??![],..._0x4a125b['longTerm']?{'longTerm':!![]}:{}}});return _0x22ad4e[_0x43893a(0xc9)];}export async function recognizeRuntimeOcr(_0x29a586,_0x4fd288){const _0x577504=a78_0x1a9b,_0x17d4d3=await apiRequest(_0x577504(0xc2),{'method':_0x577504(0xc1),'body':{'appCode':_0x29a586,'url':_0x4fd288['url'],'type':_0x4fd288[_0x577504(0x11d)]}});return _0x17d4d3['data'];}export async function getRuntimeAppConfigByKey(_0x3c175c,_0x583672){const _0x1abeb9=a78_0x1a9b,_0x21861f=new URLSearchParams({'appCode':_0x3c175c,'key':_0x583672}),_0x356c52=await apiRequest('/client/app-config/getByKey?'+_0x21861f[_0x1abeb9(0xdf)]());if(typeof _0x356c52[_0x1abeb9(0xc9)]!==_0x1abeb9(0xf2))throw CliErrors[_0x1abeb9(0x132)](_0x1abeb9(0xf3)+_0x583672);return _0x356c52[_0x1abeb9(0xc9)];}export async function listRuntimeArtifacts(_0x556bc5,_0x535368){const _0x3de470=a78_0x1a9b,_0x31d284=new URLSearchParams({'appCode':_0x556bc5});if(_0x535368?.[_0x3de470(0xa3)])_0x31d284[_0x3de470(0xac)](_0x3de470(0xa3),_0x535368[_0x3de470(0xa3)]);if(_0x535368?.[_0x3de470(0xb4)])_0x31d284[_0x3de470(0xac)](_0x3de470(0xb4),_0x535368[_0x3de470(0xb4)]);if(_0x535368?.[_0x3de470(0x142)]!==undefined)_0x31d284[_0x3de470(0xac)](_0x3de470(0x142),String(_0x535368['favorite']));const _0x35903a=await apiRequest('/client/artifact/list?'+_0x31d284[_0x3de470(0xdf)]());return Array['isArray'](_0x35903a[_0x3de470(0xc9)])?_0x35903a[_0x3de470(0xc9)]:[];}export async function getRuntimeArtifact(_0x4bea10,_0x2fc20b){const _0x4f9c90=a78_0x1a9b,_0x1b6bd4=await apiRequest(_0x4f9c90(0x134)+_0x4bea10+'?appCode='+encodeURIComponent(_0x2fc20b));if(!_0x1b6bd4[_0x4f9c90(0xc9)])throw CliErrors['validation'](_0x4f9c90(0xaf)+_0x4bea10);return _0x1b6bd4[_0x4f9c90(0xc9)];}export async function createRuntimeArtifact(_0x5072dc,_0x16803d){const _0x25f671=a78_0x1a9b,_0x257c0f=await apiRequest('/client/artifact/create',{'method':_0x25f671(0xc1),'body':{'appCode':_0x5072dc,..._0x16803d}});return _0x257c0f[_0x25f671(0xc9)];}export async function updateRuntimeArtifact(_0x2ebb03,_0x1213ac,_0x13f215){const _0x5b4eba=a78_0x1a9b,_0x555ef2=await apiRequest(_0x5b4eba(0x134)+_0x2ebb03+'/update',{'method':_0x5b4eba(0xc1),'body':{'appCode':_0x1213ac,..._0x13f215}});return _0x555ef2[_0x5b4eba(0xc9)];}export async function listPersonalBffs(_0x45aa13){const _0x5c1eeb=a78_0x1a9b,_0x54f917=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x45aa13));return Array[_0x5c1eeb(0x135)](_0x54f917['data'])?_0x54f917[_0x5c1eeb(0xc9)]:[];}export async function getPersonalBff(_0x516c8e,_0x30d265){const _0xc1470c=a78_0x1a9b,_0x5807e2=await apiRequest(_0xc1470c(0x13b)+_0x516c8e+'?appCode='+encodeURIComponent(_0x30d265));if(!_0x5807e2[_0xc1470c(0xc9)])throw CliErrors[_0xc1470c(0x132)](_0xc1470c(0xe8)+_0x516c8e);return _0x5807e2['data'];}export async function createPersonalBff(_0x412774,_0x101743){const _0x5ed473=a78_0x1a9b,_0x143b01=await apiRequest(_0x5ed473(0x104),{'method':_0x5ed473(0xc1),'body':{'appCode':_0x412774,..._0x101743}});return _0x143b01[_0x5ed473(0xc9)];}export async function updatePersonalBff(_0x365153,_0x603d53,_0xf5fcd4){const _0x39ad69=a78_0x1a9b,_0x3b6b3d=await apiRequest('/client/runtime-bff/personal/'+_0x365153+_0x39ad69(0xf4),{'method':_0x39ad69(0xc1),'body':{'appCode':_0x603d53,..._0xf5fcd4}});return _0x3b6b3d[_0x39ad69(0xc9)];}export async function executePersonalBff(_0x85301a,_0x3f926f,_0xf3a27a){const _0x211a6c=a78_0x1a9b,_0x39b36b=await apiRequest('/client/runtime-bff/personal/'+_0x85301a+_0x211a6c(0x116)+encodeURIComponent(_0x3f926f),{'method':_0x211a6c(0xc1),'body':_0xf3a27a});return _0x39b36b['data'];}export async function listPersonalKnowledgeBaseItems(_0x396dab){const _0x448d7b=a78_0x1a9b,_0x30bb2c=await apiRequest(_0x448d7b(0x9c)+encodeURIComponent(_0x396dab));return Array[_0x448d7b(0x135)](_0x30bb2c['data'])?_0x30bb2c[_0x448d7b(0xc9)]:[];}export async function getPersonalKnowledgeBaseItem(_0x560055,_0x5b1ac9){const _0x211c52=a78_0x1a9b,_0xc3cb6c=await apiRequest(_0x211c52(0xd9)+_0x560055+'?appCode='+encodeURIComponent(_0x5b1ac9));if(!_0xc3cb6c['data'])throw CliErrors[_0x211c52(0x132)](_0x211c52(0xe1)+_0x560055);return _0xc3cb6c[_0x211c52(0xc9)];}export async function createPersonalKnowledgeBaseItem(_0x21a98b,_0x1db8ea){const _0x229789=a78_0x1a9b,_0x1589b2=await apiRequest(_0x229789(0xc6),{'method':_0x229789(0xc1),'body':{'appCode':_0x21a98b,..._0x1db8ea}});return _0x1589b2[_0x229789(0xc9)];}export async function updatePersonalKnowledgeBaseItem(_0x1e6e00,_0x45bd16,_0x2eb1d9){const _0x3cb3c7=a78_0x1a9b,_0x522454=await apiRequest(_0x3cb3c7(0xd9)+_0x1e6e00+_0x3cb3c7(0xf4),{'method':'POST','body':{'appCode':_0x45bd16,..._0x2eb1d9}});return _0x522454[_0x3cb3c7(0xc9)];}export async function searchKnowledgeBase(_0x370199,_0x4e860b){const _0xe6b7c8=a78_0x1a9b,_0x2813be=await apiRequest(_0xe6b7c8(0xed),{'method':_0xe6b7c8(0xc1),'body':{'appCode':_0x370199,'query':_0x4e860b[_0xe6b7c8(0xe9)],..._0x4e860b[_0xe6b7c8(0xb2)]!==undefined?{'topK':_0x4e860b['topK']}:{}}});return Array[_0xe6b7c8(0x135)](_0x2813be['data'])?_0x2813be[_0xe6b7c8(0xc9)]:[];}export async function getRuntimeSkillByCode(_0x54e8cc,_0x5b74ee){const _0x1c4256=a78_0x1a9b,_0x2e1fbf=await skillHubJsonRequest(_0x1c4256(0x131)+encodeURIComponent(_0x54e8cc)+'/'+encodeURIComponent(_0x5b74ee),{'allowNotFound':!![]});return _0x2e1fbf?skillHubRuntimeDetailToRuntimeSkill(_0x2e1fbf):undefined;}export async function listRuntimeSkills(_0x4edc49){const _0x128c68=a78_0x1a9b,_0x57cf0e=await skillHubJsonRequest(_0x128c68(0xe5)+encodeURIComponent(_0x4edc49[_0x128c68(0xb8)])+_0x128c68(0xef),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x4edc49[_0x128c68(0xb8)],_0x57cf0e,_0x4edc49[_0x128c68(0xb1)]??_0x128c68(0xaa),_0x4edc49[_0x128c68(0x117)]);}export async function listPersonalRuntimeSkills(_0x3a8100){const _0x2ff81b=a78_0x1a9b;return(await listRuntimeSkills({'appCode':_0x3a8100,'scope':_0x2ff81b(0xa7)}))[_0x2ff81b(0xa7)];}export async function listCompanyRuntimeSkills(_0x22a430){const _0x49a455=a78_0x1a9b;return(await listRuntimeSkills({'appCode':_0x22a430,'scope':_0x49a455(0xbe)}))[_0x49a455(0xbe)];}export async function listVisibleRuntimeSkills(_0x388f95){const _0x588f42=a78_0x1a9b;return(await listRuntimeSkills({'appCode':_0x388f95,'scope':_0x588f42(0xaa)}))[_0x588f42(0xf6)];}export async function createPersonalRuntimeSkill(_0x3818ce,_0x44ef28,_0x5a9a4b={}){const _0x2d0070=a78_0x1a9b;return publishRuntimeSkill(_0x3818ce,_0x44ef28,{'visibility':'PRIVATE','confirmWarnings':_0x5a9a4b[_0x2d0070(0xde)]});}export async function updatePersonalRuntimeSkill(_0x1929cc,_0x9082cc,_0x4c9395,_0xad081c={}){const _0x24a273=a78_0x1a9b;return publishRuntimeSkill(_0x9082cc,{..._0x4c9395,'skillCode':_0x4c9395[_0x24a273(0x137)]??_0x1929cc},{'visibility':_0x24a273(0xfb),'confirmWarnings':_0xad081c[_0x24a273(0xde)]});}export async function publishCompanyRuntimeSkill(_0x363d0a,_0x176c7e,_0x4bf6d7={}){const _0x5eefa8=a78_0x1a9b;return publishRuntimeSkill(_0x363d0a,_0x176c7e,{'visibility':_0x5eefa8(0xe3),'confirmWarnings':_0x4bf6d7[_0x5eefa8(0xde)]});}export async function validateRuntimeSkillPublish(_0x479cd6,_0x289a6a,_0x5878e8){const _0x261294=a78_0x1a9b,_0x10ba57=buildRuntimeSkillPublishForm(_0x289a6a,_0x5878e8[_0x261294(0x12e)]),_0x28fc9b=await skillHubJsonRequest(_0x261294(0x109)+encodeURIComponent(_0x479cd6)+_0x261294(0xf5),{'method':_0x261294(0xc1),'body':_0x10ba57});return assertJointDiagramAcknowledged(_0x289a6a['diagram'],_0x28fc9b['diagramValidated'],'validation'),{'valid':_0x28fc9b[_0x261294(0x103)]===!![],'errors':Array[_0x261294(0x135)](_0x28fc9b['errors'])?_0x28fc9b[_0x261294(0xc5)]:[],'warnings':Array[_0x261294(0x135)](_0x28fc9b['warnings'])?_0x28fc9b[_0x261294(0xd1)]:[],'resolvedSlug':_0x28fc9b[_0x261294(0x106)],'resolvedVersion':_0x28fc9b['resolvedVersion'],'diagramValidated':_0x28fc9b[_0x261294(0xbc)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x405678,_0x29e9d8,_0x5b42b2,_0x1040b3,_0x538804){const _0x5aab37=a78_0x1a9b;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x405678,_0x29e9d8,_0x5b42b2,_0x5aab37(0x11c)),{'method':_0x5aab37(0xc1),'query':{'scope':_0x1040b3},'headers':{'Content-Type':_0x5aab37(0x108)},'body':JSON[_0x5aab37(0xae)](_0x538804)});}export async function putRuntimeSkillVersionDiagram(_0xcebeba,_0xed811d,_0x4fa3b0,_0x28ca9a,_0x1fbfd6){const _0x4966fa=a78_0x1a9b;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0xcebeba,_0xed811d,_0x4fa3b0),{'method':_0x4966fa(0xa5),'query':{'scope':_0x28ca9a},'headers':{'Content-Type':_0x4966fa(0x108)},'body':JSON[_0x4966fa(0xae)](_0x1fbfd6)});}export async function getRuntimeSkillVersionDiagram(_0x48d632,_0x5d61e4,_0x348e3a,_0x2e52f3){const _0x491f83=a78_0x1a9b,_0x2421dc=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x48d632,_0x5d61e4,_0x348e3a),{'query':{'scope':_0x2e52f3}});if(typeof _0x2421dc[_0x491f83(0xbd)]!==_0x491f83(0xcb))throw CliErrors[_0x491f83(0xd3)](_0x491f83(0x147));const _0x31f4c4=_0x2421dc[_0x491f83(0xb9)];if(typeof _0x31f4c4!==_0x491f83(0xf2)||!/^sha256:[0-9a-f]{64}$/[_0x491f83(0xd7)](_0x31f4c4))throw CliErrors[_0x491f83(0xd3)](_0x491f83(0xa4),_0x491f83(0xf1));const _0x3cc9ff=_0x2421dc['diagramRevision'];if(_0x2421dc['found']&&(!Number[_0x491f83(0xce)](_0x3cc9ff)||Number(_0x3cc9ff)<0x1))throw CliErrors[_0x491f83(0xd3)](_0x491f83(0xfe));if(!_0x2421dc[_0x491f83(0xbd)]&&_0x3cc9ff!==undefined&&_0x3cc9ff!==null)throw CliErrors[_0x491f83(0xd3)]('Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.');const _0x27eb9b=_0x2421dc[_0x491f83(0xbd)]?Number(_0x3cc9ff):null;return{..._0x2421dc,'sourceFingerprint':_0x31f4c4,'diagramRevision':_0x27eb9b,'expectedDiagramRevision':_0x27eb9b??0x0};}export async function downloadRuntimeSkillPackage(_0x5acd36,_0x5cb197,_0x3d17cf,_0x8e70d2){const _0xef1701=a78_0x1a9b;void _0x5acd36;const _0x2c7e21=_0x8e70d2?_0xef1701(0x109)+encodeURIComponent(_0x3d17cf)+'/'+encodeURIComponent(_0x5cb197)+_0xef1701(0x10d)+encodeURIComponent(_0x8e70d2)+_0xef1701(0x124):_0xef1701(0x109)+encodeURIComponent(_0x3d17cf)+'/'+encodeURIComponent(_0x5cb197)+_0xef1701(0x124);return skillHubBinaryRequest(_0x2c7e21);}async function publishRuntimeSkill(_0x5392b4,_0x5e43cc,_0x3ca637){const _0x269cc9=a78_0x1a9b,_0x518091=buildRuntimeSkillPublishForm(_0x5e43cc,_0x3ca637[_0x269cc9(0x12e)]),_0x1ee7bf=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x5392b4)+_0x269cc9(0x112),{'method':_0x269cc9(0xc1),'query':{'confirmWarnings':_0x3ca637[_0x269cc9(0xde)]===!![]?!![]:undefined},'body':_0x518091});return assertJointDiagramAcknowledged(_0x5e43cc['diagram'],_0x1ee7bf[_0x269cc9(0xa9)],_0x269cc9(0xff)),{'appCode':_0x1ee7bf[_0x269cc9(0x10b)]??_0x5392b4,'skillCode':_0x1ee7bf[_0x269cc9(0x12c)]??_0x5e43cc[_0x269cc9(0x137)]??'','skillName':_0x5e43cc[_0x269cc9(0x9f)]??_0x1ee7bf[_0x269cc9(0x12c)]??_0x5e43cc[_0x269cc9(0x137)],'description':_0x5e43cc[_0x269cc9(0xfd)],'scope':skillHubVisibilityToScope(_0x1ee7bf[_0x269cc9(0x12e)]??_0x3ca637['visibility'])??'personal','version':_0x1ee7bf[_0x269cc9(0xd8)]??_0x5e43cc[_0x269cc9(0xd8)],'tags':_0x5e43cc[_0x269cc9(0x12f)],'content':_0x5e43cc[_0x269cc9(0x123)],'diagramBound':_0x1ee7bf[_0x269cc9(0xa9)]===!![]};}function assertJointDiagramAcknowledged(_0x40b5ee,_0x4001b3,_0x443fd2){const _0x26ce2b=a78_0x1a9b;if(!_0x40b5ee||_0x4001b3===!![])return;throw CliErrors[_0x26ce2b(0xd3)](_0x26ce2b(0xdd)+_0x443fd2+'.',_0x26ce2b(0xa0));}function buildRuntimeSkillPublishForm(_0x30d56f,_0x363b1c){const _0x341034=a78_0x1a9b,_0x2882b4=new FormData();return _0x2882b4[_0x341034(0xac)](_0x341034(0x136),runtimeSkillPackageFile(_0x30d56f)),_0x30d56f[_0x341034(0x9f)]?.[_0x341034(0x138)]()&&_0x2882b4[_0x341034(0xac)](_0x341034(0x9e),_0x30d56f[_0x341034(0x9f)]['trim']()),_0x2882b4[_0x341034(0xac)](_0x341034(0x12e),_0x363b1c),_0x30d56f[_0x341034(0x101)]&&_0x2882b4[_0x341034(0xac)]('diagram',new Blob([JSON[_0x341034(0xae)](_0x30d56f[_0x341034(0x101)])],{'type':'application/json'})),_0x2882b4;}function runtimeSkillVersionDiagramPath(_0x58e183,_0x1b293c,_0x46e940,_0x2ddfcf=''){const _0x9f3f08=a78_0x1a9b;return _0x9f3f08(0x109)+encodeURIComponent(_0x58e183)+'/'+encodeURIComponent(_0x1b293c)+_0x9f3f08(0x10d)+encodeURIComponent(_0x46e940)+_0x9f3f08(0xdb)+_0x2ddfcf;}function runtimeSkillPackageFile(_0x16d185){const _0x49ecd2=a78_0x1a9b;if(!_0x16d185[_0x49ecd2(0x107)])throw CliErrors[_0x49ecd2(0x132)]('Missing\x20Skill\x20package\x20payload.');const _0x1166f2=Buffer['from'](_0x16d185[_0x49ecd2(0x107)],_0x49ecd2(0xcc)),_0x2b76ab=new Blob([_0x1166f2],{'type':'application/zip'}),_0x508d99=(_0x16d185[_0x49ecd2(0x137)]||_0x49ecd2(0xd4))+'.zip';if(typeof File!==_0x49ecd2(0xe2))return new File([_0x2b76ab],_0x508d99,{'type':'application/zip'});return _0x2b76ab;}function normalizeSkillHubRuntimeListResponse(_0x1dde96,_0x31e9ce,_0x2bc5b4,_0x246df0){const _0x2f37f7=a78_0x1a9b,_0x18b649=Array[_0x2f37f7(0x135)](_0x31e9ce)?_0x31e9ce:Array[_0x2f37f7(0x135)](_0x31e9ce?.[_0x2f37f7(0x102)])?_0x31e9ce['items']:[],_0x389458=_0x246df0?.[_0x2f37f7(0x138)](),_0x56c6c7=_0x18b649[_0x2f37f7(0x148)](_0xd0db4d=>!_0x389458||_0xd0db4d[_0x2f37f7(0x12c)]===_0x389458)[_0x2f37f7(0xd2)](skillHubRuntimeItemToRuntimeSkill)[_0x2f37f7(0x148)](_0x3ac8fb=>Boolean(_0x3ac8fb)),_0x58d402=_0x56c6c7[_0x2f37f7(0x148)](_0x3df8c7=>_0x3df8c7[_0x2f37f7(0xb1)]==='personal'),_0x115df8=_0x56c6c7['filter'](_0x254bd6=>_0x254bd6[_0x2f37f7(0xb1)]===_0x2f37f7(0xbe));return{'appCode':_0x1dde96,'personal':_0x2bc5b4==='company'?[]:_0x58d402,'company':_0x2bc5b4===_0x2f37f7(0xa7)?[]:_0x115df8,'effective':buildEffectiveRuntimeSkills(_0x58d402,_0x115df8,_0x2bc5b4)};}function skillHubRuntimeItemToRuntimeSkill(_0x1a88d5){const _0xd15066=a78_0x1a9b,_0x215e6c=_0x1a88d5[_0xd15066(0x12c)]?.['trim'](),_0x2ed628=skillHubVisibilityToScope(_0x1a88d5[_0xd15066(0x12e)]);if(!_0x215e6c||!_0x2ed628)return undefined;return{'id':_0x1a88d5['id'],'appCode':_0x1a88d5['namespace'],'skillCode':_0x215e6c,'skillName':_0x1a88d5[_0xd15066(0x9e)]??_0x215e6c,'description':_0x1a88d5['summary'],'scope':_0x2ed628,'version':skillHubRuntimeItemVersion(_0x1a88d5),'status':_0x1a88d5['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x13245d){const _0x219ab4=a78_0x1a9b,_0x3cc00c=_0x13245d['slug']?.[_0x219ab4(0x138)]();if(!_0x3cc00c)return undefined;return{'id':_0x13245d['id'],'appCode':_0x13245d[_0x219ab4(0x10b)],'skillCode':_0x3cc00c,'skillName':_0x13245d[_0x219ab4(0x9e)]??_0x3cc00c,'description':_0x13245d[_0x219ab4(0x110)],'example':_0x13245d['example'],'scope':skillHubVisibilityToScope(_0x13245d[_0x219ab4(0x12e)])??_0x13245d[_0x219ab4(0x12e)]?.[_0x219ab4(0x11f)](),'version':skillHubRuntimeItemVersion(_0x13245d),'status':_0x13245d[_0x219ab4(0x143)]};}function skillHubVisibilityToScope(_0x20fdcc){const _0x47098a=a78_0x1a9b;if(_0x20fdcc==='PRIVATE')return _0x47098a(0xa7);if(_0x20fdcc===_0x47098a(0xe3))return _0x47098a(0xbe);return undefined;}function skillHubRuntimeItemVersion(_0x494cea){const _0x1fb7e3=a78_0x1a9b;return _0x494cea[_0x1fb7e3(0xe0)]?.[_0x1fb7e3(0xd8)]??_0x494cea[_0x1fb7e3(0x13f)]?.[_0x1fb7e3(0xd8)]??_0x494cea[_0x1fb7e3(0xab)]?.[_0x1fb7e3(0xd8)];}function buildEffectiveRuntimeSkills(_0x4916d8,_0x17cc00,_0x582d8f){const _0x499583=a78_0x1a9b;if(_0x582d8f===_0x499583(0xa7))return _0x4916d8;if(_0x582d8f===_0x499583(0xbe))return _0x17cc00;const _0x3496c6=new Map();for(const _0x15f6e9 of _0x17cc00){_0x3496c6[_0x499583(0xac)](_0x15f6e9[_0x499583(0x137)],_0x15f6e9);}for(const _0x308d6d of _0x4916d8){_0x3496c6[_0x499583(0xac)](_0x308d6d[_0x499583(0x137)],_0x308d6d);}return Array['from'](_0x3496c6[_0x499583(0x10f)]());}function normalizeRuntimeSkillListResponse(_0x1670c7,_0x4cb489){const _0x1b721f=a78_0x1a9b;if(Array[_0x1b721f(0x135)](_0x4cb489)){const _0x2593d4=_0x4cb489[_0x1b721f(0x148)](_0xb4d31e=>_0xb4d31e[_0x1b721f(0xb1)]===_0x1b721f(0xa7)),_0x2610d0=_0x4cb489[_0x1b721f(0x148)](_0x164a4a=>_0x164a4a[_0x1b721f(0xb1)]==='company');return{'appCode':_0x1670c7,'personal':_0x2593d4,'company':_0x2610d0,'effective':[..._0x2610d0,..._0x2593d4]};}return{'appCode':_0x4cb489?.[_0x1b721f(0xb8)]??_0x1670c7,'personal':Array[_0x1b721f(0x135)](_0x4cb489?.[_0x1b721f(0xa7)])?_0x4cb489[_0x1b721f(0xa7)]:[],'company':Array[_0x1b721f(0x135)](_0x4cb489?.[_0x1b721f(0xbe)])?_0x4cb489[_0x1b721f(0xbe)]:[],'effective':Array[_0x1b721f(0x135)](_0x4cb489?.['effective'])?_0x4cb489[_0x1b721f(0xf6)]:[]};}
|
|
1
|
+
(function(_0x5022a6,_0x170a15){const _0x3aee14=a78_0x6755,_0x15f1e9=_0x5022a6();while(!![]){try{const _0x1542b8=parseInt(_0x3aee14(0xad))/0x1*(parseInt(_0x3aee14(0xa6))/0x2)+parseInt(_0x3aee14(0x100))/0x3+parseInt(_0x3aee14(0x102))/0x4+parseInt(_0x3aee14(0xcf))/0x5*(-parseInt(_0x3aee14(0xb6))/0x6)+parseInt(_0x3aee14(0xda))/0x7*(parseInt(_0x3aee14(0x119))/0x8)+parseInt(_0x3aee14(0xa0))/0x9+-parseInt(_0x3aee14(0x138))/0xa;if(_0x1542b8===_0x170a15)break;else _0x15f1e9['push'](_0x15f1e9['shift']());}catch(_0x516d87){_0x15f1e9['push'](_0x15f1e9['shift']());}}}(a78_0x2e8a,0x39652));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(_0x5b3548){_activeAK=_0x5b3548||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x350743){const _0x5297be=a78_0x6755;for(const _0x324376 of _0x350743){if(typeof _0x324376===_0x5297be(0xb1)&&_0x324376[_0x5297be(0x12e)]())return _0x324376[_0x5297be(0x12e)]();}return undefined;}async function decodeResponseBody(_0x78b98){const _0x58b1b5=a78_0x6755;if(typeof _0x78b98[_0x58b1b5(0xb4)]===_0x58b1b5(0xde))try{const _0x132758=await _0x78b98[_0x58b1b5(0xb4)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x132758),'text':_0x132758};}catch{return{'isJson':![],'text':_0x132758[_0x58b1b5(0x12e)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x78b98[_0x58b1b5(0x123)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x3698ac,_0x33330c,_0x1df84a){const _0x32f9cc=a78_0x6755,_0x4f21a9=_0x33330c&&typeof _0x33330c===_0x32f9cc(0xe0)?_0x33330c:{},_0x4f2dd5=[_0x4f21a9['status'],_0x4f21a9[_0x32f9cc(0x12b)]]['find'](_0x2dec20=>Number(_0x2dec20)===0x1ad),_0x38223c=createRateLimitError({'status':_0x3698ac[_0x32f9cc(0xa7)]===0x1ad?_0x3698ac[_0x32f9cc(0xa7)]:_0x4f2dd5??_0x3698ac[_0x32f9cc(0xa7)],'errorCode':firstString(_0x4f21a9[_0x32f9cc(0xac)],typeof _0x4f21a9[_0x32f9cc(0x12b)]==='string'?_0x4f21a9[_0x32f9cc(0x12b)]:undefined),'message':firstString(_0x4f21a9[_0x32f9cc(0xf6)],_0x4f21a9['message'],_0x4f21a9[_0x32f9cc(0xd3)],_0x1df84a),'retryAfter':readRetryAfter(_0x3698ac['headers'])??readRetryAfterSeconds(_0x33330c)});if(_0x38223c)throw _0x38223c;}async function apiRequest(_0x5c89b3,_0x556ca7={}){const _0x25551e=a78_0x6755,{method:method=_0x25551e(0x109),body:_0x22d7e2,headers:headers={},timeout:timeout=0x7530}=_0x556ca7,_0x48ae0d=_activeAK,_0x2b7410=getRuntimeDomain();if(!_0x48ae0d)throw CliErrors[_0x25551e(0x113)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x25551e(0x105)]+'.');const _0x36f6aa=''+_0x2b7410+_0x5c89b3,_0x4160f4={'X-User-AK':_0x48ae0d},_0x469428=new AbortController(),_0x63b211=setTimeout(()=>_0x469428[_0x25551e(0xd8)](),timeout);try{const _0x430a8b=await fetch(_0x36f6aa,{'method':method,'headers':{'Content-Type':_0x25551e(0xf2),'X-Invoke-Source':PRODUCT_CONFIG[_0x25551e(0xa3)],..._0x4160f4,...headers},'body':_0x22d7e2?JSON[_0x25551e(0xfa)](_0x22d7e2):undefined,'signal':_0x469428[_0x25551e(0x10c)]}),_0x30a5a3=await decodeResponseBody(_0x430a8b);if(!_0x30a5a3['isJson']){throwIfRateLimited(_0x430a8b,undefined,_0x30a5a3[_0x25551e(0xb4)]);throw CliErrors[_0x25551e(0xc3)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x430a8b['status']+')',_0x430a8b[_0x25551e(0xa7)]>=0x190?_0x25551e(0xc0):undefined);}const _0x242dce=_0x30a5a3[_0x25551e(0x114)];throwIfRateLimited(_0x430a8b,_0x242dce);if(!_0x430a8b['ok']||_0x242dce[_0x25551e(0xaa)]===![])throw CliErrors[_0x25551e(0xc3)](_0x242dce[_0x25551e(0xf6)]||_0x242dce[_0x25551e(0xa4)]||_0x25551e(0xbd)+_0x430a8b[_0x25551e(0xa7)],_0x242dce[_0x25551e(0xac)]?_0x25551e(0xe7)+_0x242dce[_0x25551e(0xac)]:undefined);return _0x242dce;}catch(_0x430a91){if(_0x430a91 instanceof Error&&_0x430a91[_0x25551e(0xd6)]===_0x25551e(0x13d))throw CliErrors[_0x25551e(0xc3)](_0x25551e(0x121)+_0x36f6aa);throw _0x430a91;}finally{clearTimeout(_0x63b211);}}async function apiBinaryRequest(_0x6c8ccc,_0xc56725={}){const _0x5ceefd=a78_0x6755,{method:method=_0x5ceefd(0x109),headers:headers={},timeout:timeout=0x7530}=_0xc56725,_0x2244b7=_activeAK,_0x257866=getRuntimeDomain();if(!_0x2244b7)throw CliErrors[_0x5ceefd(0x113)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x5ceefd(0x105)]+'.');const _0x2f0c8e=''+_0x257866+_0x6c8ccc,_0x41e764=new AbortController(),_0x4a3b8d=setTimeout(()=>_0x41e764['abort'](),timeout);try{const _0xe0a88=await fetch(_0x2f0c8e,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x2244b7,...headers},'signal':_0x41e764['signal']});if(!_0xe0a88['ok']){const _0xcd335c=await decodeResponseBody(_0xe0a88),_0x4bab7c=_0xcd335c['data']&&typeof _0xcd335c['data']===_0x5ceefd(0xe0)?_0xcd335c[_0x5ceefd(0x114)]:{},_0x20fba4=firstString(_0x4bab7c[_0x5ceefd(0xf6)],_0x4bab7c[_0x5ceefd(0xa4)],_0x4bab7c['errorCode'],_0xcd335c[_0x5ceefd(0xb4)]);throwIfRateLimited(_0xe0a88,_0xcd335c[_0x5ceefd(0x114)],_0x20fba4);throw CliErrors[_0x5ceefd(0xc3)](_0x20fba4||_0x5ceefd(0xbd)+_0xe0a88[_0x5ceefd(0xa7)],_0x5ceefd(0xc9)+_0x2f0c8e);}return Buffer[_0x5ceefd(0xab)](await _0xe0a88['arrayBuffer']());}catch(_0x1b2914){if(_0x1b2914 instanceof Error&&_0x1b2914['name']==='AbortError')throw CliErrors['apiError'](_0x5ceefd(0x121)+_0x2f0c8e);throw _0x1b2914;}finally{clearTimeout(_0x4a3b8d);}}async function apiFormRequest(_0x140f94,_0x2635fb,_0x4046f4={}){const _0xe43637=a78_0x6755,{timeout:timeout=0x7530}=_0x4046f4,_0x5339f0=_activeAK,_0x14e445=getRuntimeDomain();if(!_0x5339f0)throw CliErrors[_0xe43637(0x113)](_0xe43637(0xb8)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0xc51148=''+_0x14e445+_0x140f94,_0x220b86=new AbortController(),_0x5c1fec=setTimeout(()=>_0x220b86['abort'](),timeout);try{const _0x6438e1=await fetch(_0xc51148,{'method':_0xe43637(0xa1),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0xe43637(0xa3)],'X-User-AK':_0x5339f0},'body':_0x2635fb,'signal':_0x220b86[_0xe43637(0x10c)]}),_0x221df2=await decodeResponseBody(_0x6438e1);if(!_0x221df2[_0xe43637(0xff)]){throwIfRateLimited(_0x6438e1,undefined,_0x221df2[_0xe43637(0xb4)]);throw CliErrors[_0xe43637(0xc3)](_0xe43637(0x13b)+_0x6438e1['status']+')',_0x6438e1['status']>=0x190?_0xe43637(0xc0):undefined);}const _0x40fd39=_0x221df2['data'];throwIfRateLimited(_0x6438e1,_0x40fd39);if(!_0x6438e1['ok']||_0x40fd39['success']===![])throw CliErrors[_0xe43637(0xc3)](_0x40fd39[_0xe43637(0xf6)]||_0x40fd39[_0xe43637(0xa4)]||'API\x20error:\x20'+_0x6438e1['status'],_0x40fd39[_0xe43637(0xac)]?'API\x20error\x20code:\x20'+_0x40fd39[_0xe43637(0xac)]:undefined);return _0x40fd39;}catch(_0x562393){if(_0x562393 instanceof Error&&_0x562393[_0xe43637(0xd6)]===_0xe43637(0x13d))throw CliErrors[_0xe43637(0xc3)](_0xe43637(0x121)+_0xc51148);throw _0x562393;}finally{clearTimeout(_0x5c1fec);}}async function toolboxRequest(_0x18e8f2,_0x1301bf,_0x37677d={}){const _0xc7e926=a78_0x6755,{method:method=_0xc7e926(0x109),headers:headers={},timeout:timeout=0x7530}=_0x37677d,_0x3449b1=_activeAK;if(!_0x3449b1)throw CliErrors[_0xc7e926(0x113)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0xc7e926(0x105)]+'.');const _0x1fc391=getApiDomain()[_0xc7e926(0xf8)](/\/$/,''),_0x3bb5f0=new URL(_0x18e8f2,_0x1fc391+'/api/node-toolbox/');if(_0x1301bf)for(const [_0x33d85e,_0x25a2fc]of Object[_0xc7e926(0xea)](_0x1301bf)){_0x25a2fc!==undefined&&_0x25a2fc!==null&&_0x3bb5f0[_0xc7e926(0x126)][_0xc7e926(0x12d)](_0x33d85e,String(_0x25a2fc));}const _0x320b73=new AbortController(),_0x2c574c=setTimeout(()=>_0x320b73[_0xc7e926(0xd8)](),timeout);try{const _0x13074d=await fetch(_0x3bb5f0,{'method':method,'headers':{'Content-Type':_0xc7e926(0xf2),'X-Invoke-Source':PRODUCT_CONFIG[_0xc7e926(0xa3)],'X-User-AK':_0x3449b1,...headers},'signal':_0x320b73['signal']}),_0xaf49ac=await decodeResponseBody(_0x13074d);if(!_0xaf49ac[_0xc7e926(0xff)]){throwIfRateLimited(_0x13074d,undefined,_0xaf49ac[_0xc7e926(0xb4)]);throw CliErrors[_0xc7e926(0xc3)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x13074d[_0xc7e926(0xa7)]+')',_0x13074d[_0xc7e926(0xa7)]>=0x190?_0xc7e926(0xc0):undefined);}const _0x13c2ef=_0xaf49ac[_0xc7e926(0x114)];throwIfRateLimited(_0x13074d,_0x13c2ef);if(!_0x13074d['ok']){const _0x105ccb=_0x13c2ef&&typeof _0x13c2ef===_0xc7e926(0xe0)?_0x13c2ef:{};throw CliErrors[_0xc7e926(0xc3)](_0x105ccb[_0xc7e926(0xf6)]||_0x105ccb[_0xc7e926(0xa4)]||_0xc7e926(0x11c)+_0x13074d[_0xc7e926(0xa7)],_0x105ccb[_0xc7e926(0xac)]?_0xc7e926(0xfd)+_0x105ccb[_0xc7e926(0xac)]:undefined);}if(_0x13c2ef&&typeof _0x13c2ef===_0xc7e926(0xe0)&&_0xc7e926(0xaa)in _0x13c2ef&&typeof _0x13c2ef['success']===_0xc7e926(0xed)){const _0x50ae51=_0x13c2ef;if(!_0x50ae51['success'])throw CliErrors[_0xc7e926(0xc3)](_0x50ae51[_0xc7e926(0xf6)]||_0x50ae51[_0xc7e926(0xa4)]||'Toolbox\x20API\x20error',_0x50ae51[_0xc7e926(0xac)]?_0xc7e926(0xfd)+_0x50ae51[_0xc7e926(0xac)]:undefined);return _0x50ae51['data'];}return _0x13c2ef;}catch(_0x4d477c){if(_0x4d477c instanceof Error&&_0x4d477c['name']===_0xc7e926(0x13d))throw CliErrors[_0xc7e926(0xc3)](_0xc7e926(0x121)+_0x3bb5f0['toString']());throw _0x4d477c;}finally{clearTimeout(_0x2c574c);}}async function skillHubJsonRequest(_0xf7feed,_0x1f5e90={}){const _0x511305=a78_0x6755,{method:method=_0x511305(0x109),query:_0x31b830,body:_0x4c9ce9,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x1f5e90,_0x1680b7=_activeAK;if(!_0x1680b7)throw CliErrors[_0x511305(0x113)](_0x511305(0xb8)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x54d3f3=getSkillHubDomain()[_0x511305(0xf8)](/\/$/,''),_0x5d60d1=new URL(_0xf7feed,_0x54d3f3+'/');if(_0x31b830)for(const [_0x53c621,_0x599c57]of Object[_0x511305(0xea)](_0x31b830)){_0x599c57!==undefined&&_0x599c57!==null&&_0x5d60d1[_0x511305(0x126)][_0x511305(0x12d)](_0x53c621,String(_0x599c57));}const _0x5c7559=new AbortController(),_0x3422af=setTimeout(()=>_0x5c7559[_0x511305(0xd8)](),timeout);try{const _0x31b5eb=await fetch(_0x5d60d1[_0x511305(0xca)](),{'method':method,'headers':{'Accept':_0x511305(0xf2),'X-Invoke-Source':PRODUCT_CONFIG[_0x511305(0xa3)],'X-User-AK':_0x1680b7,...headers},'body':_0x4c9ce9,'signal':_0x5c7559[_0x511305(0x10c)]}),_0x3646ae=await decodeResponseBody(_0x31b5eb);if(!_0x3646ae['isJson']){if(allowNotFound&&_0x31b5eb[_0x511305(0xa7)]===0x194)return undefined;throwIfRateLimited(_0x31b5eb,undefined,_0x3646ae[_0x511305(0xb4)]);throw CliErrors[_0x511305(0xc3)]('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x31b5eb['status']+')',_0x31b5eb[_0x511305(0xa7)]>=0x190?_0x511305(0xc0):undefined);}const _0x10c5e5=_0x3646ae[_0x511305(0x114)];throwIfRateLimited(_0x31b5eb,_0x10c5e5);if(allowNotFound&&isSkillHubNotFoundResponse(_0x31b5eb[_0x511305(0xa7)],_0x10c5e5))return undefined;const _0x1759c5=!_0x31b5eb['ok']||_0x10c5e5?.[_0x511305(0xaa)]===![]||typeof _0x10c5e5?.[_0x511305(0x12b)]===_0x511305(0xdd)&&_0x10c5e5[_0x511305(0x12b)]>=0x190;if(_0x1759c5)throw CliErrors['apiError'](_0x10c5e5?.[_0x511305(0xf6)]||_0x10c5e5?.[_0x511305(0xa4)]||_0x10c5e5?.['msg']||'SkillHub\x20API\x20error:\x20'+_0x31b5eb[_0x511305(0xa7)],_0x10c5e5?.[_0x511305(0xac)]?_0x511305(0x127)+_0x10c5e5['errorCode']:undefined);return _0x10c5e5?.['data']??_0x10c5e5;}catch(_0x3a6136){if(_0x3a6136 instanceof Error&&_0x3a6136[_0x511305(0xd6)]===_0x511305(0x13d))throw CliErrors[_0x511305(0xc3)](_0x511305(0x121)+_0x5d60d1[_0x511305(0xca)]());throw _0x3a6136;}finally{clearTimeout(_0x3422af);}}function isSkillHubNotFoundResponse(_0x295fe9,_0x24a532){const _0x5002f9=a78_0x6755;if(_0x295fe9===0x194||_0x24a532?.['code']===0x194)return!![];if(_0x295fe9!==0x190&&_0x24a532?.['code']!==0x190)return![];const _0x25ac9f=[_0x24a532?.[_0x5002f9(0xd3)],_0x24a532?.[_0x5002f9(0xa4)],_0x24a532?.[_0x5002f9(0xf6)],_0x24a532?.[_0x5002f9(0xfb)]]['filter'](_0x40c958=>typeof _0x40c958===_0x5002f9(0xb1))['join']('\x20');return/skill not found\b/i[_0x5002f9(0xdc)](_0x25ac9f);}async function skillHubBinaryRequest(_0x4b108d,_0x59b497={}){const _0x19bb92=a78_0x6755,{query:_0x2c5dd8,headers:headers={},timeout:timeout=0x7530}=_0x59b497,_0x44dccf=_activeAK;if(!_0x44dccf)throw CliErrors[_0x19bb92(0x113)](_0x19bb92(0xb8)+PRODUCT_CONFIG[_0x19bb92(0x105)]+'.');const _0x425210=getSkillHubDomain()[_0x19bb92(0xf8)](/\/$/,''),_0x586dca=new URL(_0x4b108d,_0x425210+'/');if(_0x2c5dd8)for(const [_0x2cec2d,_0x30a315]of Object[_0x19bb92(0xea)](_0x2c5dd8)){_0x30a315!==undefined&&_0x30a315!==null&&_0x586dca['searchParams'][_0x19bb92(0x12d)](_0x2cec2d,String(_0x30a315));}const _0x3a66a6=new AbortController(),_0x4c8dff=setTimeout(()=>_0x3a66a6[_0x19bb92(0xd8)](),timeout);try{const _0x8a7127=await fetch(_0x586dca[_0x19bb92(0xca)](),{'method':_0x19bb92(0x109),'headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x19bb92(0xa3)],'X-User-AK':_0x44dccf,...headers},'signal':_0x3a66a6['signal']});if(!_0x8a7127['ok']){const _0x10ec45=await decodeResponseBody(_0x8a7127),_0x4cfb82=_0x10ec45[_0x19bb92(0x114)]&&typeof _0x10ec45['data']===_0x19bb92(0xe0)?_0x10ec45['data']:{},_0x48c3d7=firstString(_0x4cfb82[_0x19bb92(0xf6)],_0x4cfb82[_0x19bb92(0xa4)],_0x4cfb82[_0x19bb92(0xd3)],_0x4cfb82[_0x19bb92(0xac)],_0x10ec45[_0x19bb92(0xb4)]);throwIfRateLimited(_0x8a7127,_0x10ec45['data'],_0x48c3d7);throw CliErrors['apiError'](_0x48c3d7||'SkillHub\x20API\x20error:\x20'+_0x8a7127[_0x19bb92(0xa7)],'Download\x20failed:\x20'+_0x586dca[_0x19bb92(0xca)]());}return Buffer[_0x19bb92(0xab)](await _0x8a7127[_0x19bb92(0x110)]());}catch(_0x1ba038){if(_0x1ba038 instanceof Error&&_0x1ba038[_0x19bb92(0xd6)]===_0x19bb92(0x13d))throw CliErrors[_0x19bb92(0xc3)](_0x19bb92(0x121)+_0x586dca[_0x19bb92(0xca)]());throw _0x1ba038;}finally{clearTimeout(_0x4c8dff);}}export async function getBffEndpointContract(_0x9586d7,_0x50e06e){const _0x564ccc=a78_0x6755;if(_0x50e06e===_0x564ccc(0xd1))throw CliErrors[_0x564ccc(0x107)](_0x564ccc(0xa2)+_0x9586d7+',\x20name='+_0x50e06e);const _0x3e3d9b=await apiRequest(_0x564ccc(0x115)+encodeURIComponent(_0x9586d7)+'/'+encodeURIComponent(_0x50e06e)),_0x2f0df5=_0x3e3d9b[_0x564ccc(0x114)];if(!_0x2f0df5||typeof _0x2f0df5!==_0x564ccc(0xe0)||Array[_0x564ccc(0xd4)](_0x2f0df5)||_0x2f0df5['appCode']!==_0x9586d7||_0x2f0df5[_0x564ccc(0xf9)]!==_0x50e06e)throw CliErrors[_0x564ccc(0x107)](_0x564ccc(0xa2)+_0x9586d7+',\x20name='+_0x50e06e);return{'appCode':_0x2f0df5['appCode'],'functionName':_0x2f0df5[_0x564ccc(0xf9)],'description':_0x2f0df5[_0x564ccc(0x11d)],'version':_0x2f0df5['version'],'gmtModified':_0x2f0df5[_0x564ccc(0xf4)]};}export async function getSqlQueryInfo(_0x472eb9,_0x5920a4){const _0x295784=a78_0x6755,_0x59631c=await apiRequest(_0x295784(0xd9),{'method':_0x295784(0xa1),'body':{'appCode':_0x472eb9,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x5920a4}}),_0x2d245e=_0x59631c[_0x295784(0x114)],_0x3771a6=_0x2d245e&&typeof _0x2d245e==='object'&&_0x295784(0xc8)in _0x2d245e?_0x2d245e[_0x295784(0xc8)]?.[0x0]:_0x2d245e&&typeof _0x2d245e===_0x295784(0xe0)&&_0x295784(0xcb)in _0x2d245e?_0x2d245e:undefined;if(!_0x3771a6)throw CliErrors[_0x295784(0x107)](_0x295784(0x13f)+_0x5920a4);return _0x3771a6;}function isRemoteAppItem(_0x365b15){const _0x5d5bab=a78_0x6755;return!!_0x365b15&&typeof _0x365b15===_0x5d5bab(0xe0)&&typeof _0x365b15[_0x5d5bab(0xd5)]===_0x5d5bab(0xb1)&&typeof _0x365b15[_0x5d5bab(0x120)]===_0x5d5bab(0xb1);}function extractRemoteAppItems(_0x5868f7){const _0x1e338e=a78_0x6755;if(Array[_0x1e338e(0xd4)](_0x5868f7))return _0x5868f7[_0x1e338e(0x118)](isRemoteAppItem);if(!_0x5868f7||typeof _0x5868f7!==_0x1e338e(0xe0))throw CliErrors[_0x1e338e(0xc3)](_0x1e338e(0x10a));const _0x58cdaa=_0x5868f7;if(Array['isArray'](_0x58cdaa['tableData']))return _0x58cdaa[_0x1e338e(0xc8)][_0x1e338e(0x118)](isRemoteAppItem);if(_0x58cdaa['data']&&typeof _0x58cdaa[_0x1e338e(0x114)]===_0x1e338e(0xe0)){const _0x4629a6=_0x58cdaa[_0x1e338e(0x114)];if(Array[_0x1e338e(0xd4)](_0x4629a6['tableData']))return _0x4629a6[_0x1e338e(0xc8)][_0x1e338e(0x118)](isRemoteAppItem);}throw CliErrors['apiError'](_0x1e338e(0xe2));}export async function getMyApps(){const _0x16f2bb=a78_0x6755,_0x1b7936=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x1b7936[_0x16f2bb(0x114)]);}export async function getLoginUserInfo(){const _0x15be94=a78_0x6755,_0x441a01=await apiRequest(_0x15be94(0x140));if(!_0x441a01[_0x15be94(0x114)]||typeof _0x441a01[_0x15be94(0x114)]!==_0x15be94(0xe0)||Array[_0x15be94(0xd4)](_0x441a01['data']))throw CliErrors[_0x15be94(0xc3)](_0x15be94(0xd0));return _0x441a01[_0x15be94(0x114)];}function runtimeSchedulePath(_0x4465e3,_0x3705fd=''){const _0x5738e4=a78_0x6755;return'/api/harness/apps/'+encodeURIComponent(_0x4465e3)+_0x5738e4(0x134)+_0x3705fd;}export async function validateRuntimeSchedule(_0x5ef1e0,_0x548afc){const _0x43f346=a78_0x6755,_0x46aff6=await apiRequest(runtimeSchedulePath(_0x5ef1e0,_0x43f346(0xbe)),{'method':_0x43f346(0xa1),'body':_0x548afc});return _0x46aff6[_0x43f346(0x114)];}export async function createRuntimeSchedule(_0x57fa16,_0x1eea4c){const _0x324e9d=a78_0x6755,_0x108fd0=await apiRequest(runtimeSchedulePath(_0x57fa16),{'method':_0x324e9d(0xa1),'body':_0x1eea4c});return _0x108fd0[_0x324e9d(0x114)];}export async function listRuntimeSchedules(_0x262ca6,_0x39281d={}){const _0x1a1d06=a78_0x6755,_0x37bf77=new URLSearchParams();if(_0x39281d[_0x1a1d06(0xdf)]!==undefined)_0x37bf77[_0x1a1d06(0x12d)](_0x1a1d06(0xdf),String(_0x39281d[_0x1a1d06(0xdf)]));if(_0x39281d[_0x1a1d06(0xe3)])_0x37bf77[_0x1a1d06(0x12d)](_0x1a1d06(0xe3),_0x39281d[_0x1a1d06(0xe3)]);const _0x4c29bb=_0x37bf77['size']>0x0?'?'+_0x37bf77[_0x1a1d06(0xca)]():'',_0x274a9d=await apiRequest(''+runtimeSchedulePath(_0x262ca6)+_0x4c29bb);return _0x274a9d[_0x1a1d06(0x114)];}export async function getRuntimeSchedule(_0x531b4e,_0x2770e8){const _0x414ec5=a78_0x6755,_0x428bd9=await apiRequest(runtimeSchedulePath(_0x531b4e,'/'+encodeURIComponent(_0x2770e8)));return _0x428bd9[_0x414ec5(0x114)];}function a78_0x6755(_0x263c71,_0x9622be){_0x263c71=_0x263c71-0xa0;const _0x2e8ab5=a78_0x2e8a();let _0x6755f2=_0x2e8ab5[_0x263c71];return _0x6755f2;}export async function deleteRuntimeSchedule(_0x4fbdb9,_0x1c8357){const _0x3d1b98=a78_0x6755,_0x27b700=await apiRequest(runtimeSchedulePath(_0x4fbdb9,'/'+encodeURIComponent(_0x1c8357)),{'method':_0x3d1b98(0xe4)});return _0x27b700['data'];}export async function runRuntimeSchedule(_0x3729c2,_0x3bfc8d){const _0x15e784=a78_0x6755,_0x4c0a66=await apiRequest(runtimeSchedulePath(_0x3729c2,'/'+encodeURIComponent(_0x3bfc8d)+'/run'),{'method':'POST'});return _0x4c0a66[_0x15e784(0x114)];}export async function listDatasets(_0x22d0d2,_0x50416c){const _0x3d7dd2=a78_0x6755,_0x28689f=await apiRequest(_0x3d7dd2(0xb2),{'method':'POST','body':{'appCode':_0x22d0d2,..._0x50416c?.['code']&&{'code':_0x50416c[_0x3d7dd2(0x12b)]},..._0x50416c?.[_0x3d7dd2(0xd6)]&&{'name':_0x50416c[_0x3d7dd2(0xd6)]}}});return extractList(_0x28689f['data']);}export async function getDatasetDetail(_0x42f8d1){const _0x48a318=a78_0x6755,_0x5dd4d8=await apiRequest(_0x48a318(0x10d)+encodeURIComponent(_0x42f8d1));return _0x5dd4d8['data'];}export async function getDatasetSdkUsageDoc(_0x46e3ba,_0x2b4d4f){const _0x14c95a=a78_0x6755,_0x25216d=await toolboxRequest(_0x14c95a(0xb3),{'datasetCode':_0x46e3ba,'appCode':_0x2b4d4f});return typeof _0x25216d?.[_0x14c95a(0xee)]===_0x14c95a(0xb1)?_0x25216d['markdown']:'';}export async function uploadRuntimeFile(_0x24ab1a,_0x3d5aae){const _0x5a8468=a78_0x6755,_0x2daa55=await readFile(_0x3d5aae),_0x63cac9=new FormData();_0x63cac9[_0x5a8468(0x117)](_0x5a8468(0xd5),_0x24ab1a),_0x63cac9[_0x5a8468(0x117)]('file',new Blob([new Uint8Array(_0x2daa55)]),basename(_0x3d5aae));const _0x5c0cb1=await apiFormRequest(_0x5a8468(0x103),_0x63cac9);return _0x5c0cb1[_0x5a8468(0x114)];}export async function queryRuntimeFileUrl(_0x43bc58,_0x3ffec0={}){const _0x2e6005=a78_0x6755,_0x3df906=await apiRequest('/client/queryFileUrl',{'method':_0x2e6005(0xa1),'body':{'filePath':_0x43bc58,'downloadFlag':_0x3ffec0[_0x2e6005(0xe9)]??![],..._0x3ffec0[_0x2e6005(0x10e)]?{'longTerm':!![]}:{}}});return _0x3df906['data'];}export async function recognizeRuntimeOcr(_0x38b93d,_0x5b837c){const _0x9e14b5=a78_0x6755,_0x132e0f=await apiRequest(_0x9e14b5(0x10b),{'method':_0x9e14b5(0xa1),'body':{'appCode':_0x38b93d,'url':_0x5b837c[_0x9e14b5(0x116)],'type':_0x5b837c['type']}});return _0x132e0f[_0x9e14b5(0x114)];}export async function getRuntimeAppConfigByKey(_0x284d69,_0x410694){const _0x6aa124=a78_0x6755,_0x1d5100=new URLSearchParams({'appCode':_0x284d69,'key':_0x410694}),_0xdfd02d=await apiRequest(_0x6aa124(0xfe)+_0x1d5100[_0x6aa124(0xca)]());if(typeof _0xdfd02d[_0x6aa124(0x114)]!==_0x6aa124(0xb1))throw CliErrors['validation'](_0x6aa124(0xba)+_0x410694);return _0xdfd02d[_0x6aa124(0x114)];}export async function listRuntimeArtifacts(_0x781506,_0x297bbe){const _0x26860a=a78_0x6755,_0x2e20f2=new URLSearchParams({'appCode':_0x781506});if(_0x297bbe?.[_0x26860a(0xb0)])_0x2e20f2[_0x26860a(0x12d)]('artifactType',_0x297bbe[_0x26860a(0xb0)]);if(_0x297bbe?.['source'])_0x2e20f2['set'](_0x26860a(0xf5),_0x297bbe[_0x26860a(0xf5)]);if(_0x297bbe?.[_0x26860a(0x11a)]!==undefined)_0x2e20f2[_0x26860a(0x12d)](_0x26860a(0x11a),String(_0x297bbe[_0x26860a(0x11a)]));const _0x1323e8=await apiRequest('/client/artifact/list?'+_0x2e20f2[_0x26860a(0xca)]());return Array[_0x26860a(0xd4)](_0x1323e8[_0x26860a(0x114)])?_0x1323e8[_0x26860a(0x114)]:[];}export async function getRuntimeArtifact(_0x429648,_0x525c9f){const _0x4ce1e3=a78_0x6755,_0x8e1925=await apiRequest(_0x4ce1e3(0xa9)+_0x429648+_0x4ce1e3(0xef)+encodeURIComponent(_0x525c9f));if(!_0x8e1925[_0x4ce1e3(0x114)])throw CliErrors[_0x4ce1e3(0x107)](_0x4ce1e3(0x12a)+_0x429648);return _0x8e1925[_0x4ce1e3(0x114)];}export async function createRuntimeArtifact(_0x21ec5a,_0x527e5f){const _0xa429f0=a78_0x6755,_0x2538ff=await apiRequest(_0xa429f0(0xcc),{'method':_0xa429f0(0xa1),'body':{'appCode':_0x21ec5a,..._0x527e5f}});return _0x2538ff[_0xa429f0(0x114)];}export async function updateRuntimeArtifact(_0x69596a,_0x2c3e8a,_0x329d0f){const _0x2ff579=a78_0x6755,_0x41b4da=await apiRequest(_0x2ff579(0xa9)+_0x69596a+'/update',{'method':_0x2ff579(0xa1),'body':{'appCode':_0x2c3e8a,..._0x329d0f}});return _0x41b4da[_0x2ff579(0x114)];}export async function listPersonalBffs(_0xa35624){const _0x4a7df0=a78_0x6755,_0x326ce9=await apiRequest(_0x4a7df0(0xf3)+encodeURIComponent(_0xa35624));return Array[_0x4a7df0(0xd4)](_0x326ce9['data'])?_0x326ce9['data']:[];}export async function getPersonalBff(_0x4d3396,_0x4cda5d){const _0x3c0018=a78_0x6755,_0x1506d9=await apiRequest(_0x3c0018(0x132)+_0x4d3396+_0x3c0018(0xef)+encodeURIComponent(_0x4cda5d));if(!_0x1506d9[_0x3c0018(0x114)])throw CliErrors['validation'](_0x3c0018(0x131)+_0x4d3396);return _0x1506d9[_0x3c0018(0x114)];}export async function createPersonalBff(_0x29f057,_0x568210){const _0x4bac5f=a78_0x6755,_0x2e1f22=await apiRequest(_0x4bac5f(0x133),{'method':_0x4bac5f(0xa1),'body':{'appCode':_0x29f057,..._0x568210}});return _0x2e1f22['data'];}export async function updatePersonalBff(_0x289a47,_0x46d83d,_0xdfabaa){const _0x23becc=a78_0x6755,_0x59d06e=await apiRequest('/client/runtime-bff/personal/'+_0x289a47+_0x23becc(0x139),{'method':_0x23becc(0xa1),'body':{'appCode':_0x46d83d,..._0xdfabaa}});return _0x59d06e['data'];}export async function executePersonalBff(_0x295106,_0x26c734,_0x3b0c41){const _0xf47c48=a78_0x6755,_0x555f2b=await apiRequest(_0xf47c48(0x132)+_0x295106+_0xf47c48(0xcd)+encodeURIComponent(_0x26c734),{'method':_0xf47c48(0xa1),'body':_0x3b0c41});return _0x555f2b[_0xf47c48(0x114)];}export async function listPersonalKnowledgeBaseItems(_0xb32cac){const _0x44f25a=a78_0x6755,_0x55f514=await apiRequest(_0x44f25a(0xe6)+encodeURIComponent(_0xb32cac));return Array['isArray'](_0x55f514[_0x44f25a(0x114)])?_0x55f514[_0x44f25a(0x114)]:[];}export async function getPersonalKnowledgeBaseItem(_0xc4c0b,_0x509f52){const _0x28e9f7=a78_0x6755,_0x215d89=await apiRequest(_0x28e9f7(0xaf)+_0xc4c0b+_0x28e9f7(0xef)+encodeURIComponent(_0x509f52));if(!_0x215d89['data'])throw CliErrors['validation'](_0x28e9f7(0xc6)+_0xc4c0b);return _0x215d89['data'];}export async function createPersonalKnowledgeBaseItem(_0x470358,_0x92549b){const _0xc40f1b=a78_0x6755,_0x1d2486=await apiRequest(_0xc40f1b(0x11f),{'method':_0xc40f1b(0xa1),'body':{'appCode':_0x470358,..._0x92549b}});return _0x1d2486[_0xc40f1b(0x114)];}export async function updatePersonalKnowledgeBaseItem(_0x51f558,_0x5e15f8,_0x424877){const _0x39cea2=a78_0x6755,_0x9bf8e1=await apiRequest(_0x39cea2(0xaf)+_0x51f558+_0x39cea2(0x139),{'method':'POST','body':{'appCode':_0x5e15f8,..._0x424877}});return _0x9bf8e1[_0x39cea2(0x114)];}export async function searchKnowledgeBase(_0x1922b4,_0xfa0f07){const _0x16ab59=a78_0x6755,_0x30a593=await apiRequest(_0x16ab59(0xd7),{'method':_0x16ab59(0xa1),'body':{'appCode':_0x1922b4,'query':_0xfa0f07[_0x16ab59(0xd2)],..._0xfa0f07[_0x16ab59(0xce)]!==undefined?{'topK':_0xfa0f07[_0x16ab59(0xce)]}:{}}});return Array[_0x16ab59(0xd4)](_0x30a593['data'])?_0x30a593[_0x16ab59(0x114)]:[];}export async function getRuntimeSkillByCode(_0x4d805c,_0x122dd5){const _0x46fc5d=a78_0x6755,_0x343d38=await skillHubJsonRequest(_0x46fc5d(0xc2)+encodeURIComponent(_0x4d805c)+'/'+encodeURIComponent(_0x122dd5),{'allowNotFound':!![]});return _0x343d38?skillHubRuntimeDetailToRuntimeSkill(_0x343d38):undefined;}export async function listRuntimeSkills(_0x3c328a){const _0x3a9b43=a78_0x6755,_0x39b424=await skillHubJsonRequest(_0x3a9b43(0x130)+encodeURIComponent(_0x3c328a[_0x3a9b43(0xd5)])+_0x3a9b43(0xdb),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x3c328a[_0x3a9b43(0xd5)],_0x39b424,_0x3c328a[_0x3a9b43(0xa8)]??_0x3a9b43(0xc4),_0x3c328a[_0x3a9b43(0x12b)]);}export async function listPersonalRuntimeSkills(_0x250d05){const _0x31ceb5=a78_0x6755;return(await listRuntimeSkills({'appCode':_0x250d05,'scope':_0x31ceb5(0x135)}))[_0x31ceb5(0x135)];}export async function listCompanyRuntimeSkills(_0x352ce5){const _0x471a19=a78_0x6755;return(await listRuntimeSkills({'appCode':_0x352ce5,'scope':'company'}))[_0x471a19(0xfc)];}export async function listVisibleRuntimeSkills(_0x571d0c){const _0x674c2b=a78_0x6755;return(await listRuntimeSkills({'appCode':_0x571d0c,'scope':'all'}))[_0x674c2b(0xbf)];}export async function createPersonalRuntimeSkill(_0x3b4b3c,_0x3afacb,_0x10d0c5={}){const _0x2d361a=a78_0x6755;return publishRuntimeSkill(_0x3b4b3c,_0x3afacb,{'visibility':_0x2d361a(0xae),'confirmWarnings':_0x10d0c5[_0x2d361a(0x125)]});}export async function updatePersonalRuntimeSkill(_0x4df7a2,_0x298f08,_0x53cfd6,_0x5a6b12={}){const _0x218dcc=a78_0x6755;return publishRuntimeSkill(_0x298f08,{..._0x53cfd6,'skillCode':_0x53cfd6[_0x218dcc(0xf7)]??_0x4df7a2},{'visibility':_0x218dcc(0xae),'confirmWarnings':_0x5a6b12[_0x218dcc(0x125)]});}export async function publishCompanyRuntimeSkill(_0x46b820,_0x3196f9,_0x42acac={}){const _0x5c6a35=a78_0x6755;return publishRuntimeSkill(_0x46b820,_0x3196f9,{'visibility':_0x5c6a35(0x136),'confirmWarnings':_0x42acac['confirmWarnings']});}export async function validateRuntimeSkillPublish(_0x513187,_0x1b7e3a,_0x2a5487){const _0x5f02f3=a78_0x6755,_0x252dec=buildRuntimeSkillPublishForm(_0x1b7e3a,_0x2a5487['visibility']),_0x282e50=await skillHubJsonRequest(_0x5f02f3(0x137)+encodeURIComponent(_0x513187)+'/publish/validate',{'method':_0x5f02f3(0xa1),'body':_0x252dec});return assertJointDiagramAcknowledged(_0x1b7e3a[_0x5f02f3(0x10f)],_0x282e50[_0x5f02f3(0xec)],_0x5f02f3(0x107)),{'valid':_0x282e50['valid']===!![],'errors':Array[_0x5f02f3(0xd4)](_0x282e50['errors'])?_0x282e50[_0x5f02f3(0x108)]:[],'warnings':Array[_0x5f02f3(0xd4)](_0x282e50[_0x5f02f3(0xa5)])?_0x282e50[_0x5f02f3(0xa5)]:[],'resolvedSlug':_0x282e50['resolvedSlug'],'resolvedVersion':_0x282e50[_0x5f02f3(0xf1)],'diagramValidated':_0x282e50[_0x5f02f3(0xec)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x515537,_0x3dfb87,_0x47d63c,_0x1b64d1,_0x6e2bcb){const _0x163a4d=a78_0x6755;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x515537,_0x3dfb87,_0x47d63c,_0x163a4d(0xbe)),{'method':'POST','query':{'scope':_0x1b64d1},'headers':{'Content-Type':'application/json'},'body':JSON[_0x163a4d(0xfa)](_0x6e2bcb)});}export async function putRuntimeSkillVersionDiagram(_0x192787,_0x2d2f91,_0x501c4f,_0x1c2603,_0x5d84fa){const _0x5c0c9a=a78_0x6755;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x192787,_0x2d2f91,_0x501c4f),{'method':'PUT','query':{'scope':_0x1c2603},'headers':{'Content-Type':'application/json'},'body':JSON[_0x5c0c9a(0xfa)](_0x5d84fa)});}export async function getRuntimeSkillVersionDiagram(_0x53eb07,_0xc5a4ea,_0x401a01,_0x803521){const _0x2be26b=a78_0x6755,_0x3e25b8=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x53eb07,_0xc5a4ea,_0x401a01),{'query':{'scope':_0x803521}});if(typeof _0x3e25b8['found']!==_0x2be26b(0xed))throw CliErrors[_0x2be26b(0xc3)]('Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.');const _0x54f36b=_0x3e25b8['sourceFingerprint'];if(typeof _0x54f36b!=='string'||!/^sha256:[0-9a-f]{64}$/['test'](_0x54f36b))throw CliErrors[_0x2be26b(0xc3)](_0x2be26b(0xc7),'SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.');const _0x5a707a=_0x3e25b8[_0x2be26b(0x128)];if(_0x3e25b8['found']&&(!Number[_0x2be26b(0x112)](_0x5a707a)||Number(_0x5a707a)<0x1))throw CliErrors[_0x2be26b(0xc3)](_0x2be26b(0xc5));if(!_0x3e25b8[_0x2be26b(0xe5)]&&_0x5a707a!==undefined&&_0x5a707a!==null)throw CliErrors[_0x2be26b(0xc3)]('Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.');const _0x520db6=_0x3e25b8['found']?Number(_0x5a707a):null;return{..._0x3e25b8,'sourceFingerprint':_0x54f36b,'diagramRevision':_0x520db6,'expectedDiagramRevision':_0x520db6??0x0};}export async function downloadRuntimeSkillPackage(_0x163517,_0x357ef4,_0x57f10e,_0x49fb8f){const _0x1122ce=a78_0x6755;void _0x163517;const _0x249052=_0x49fb8f?_0x1122ce(0x137)+encodeURIComponent(_0x57f10e)+'/'+encodeURIComponent(_0x357ef4)+_0x1122ce(0x11e)+encodeURIComponent(_0x49fb8f)+'/download':_0x1122ce(0x137)+encodeURIComponent(_0x57f10e)+'/'+encodeURIComponent(_0x357ef4)+_0x1122ce(0x11b);return skillHubBinaryRequest(_0x249052);}function a78_0x2e8a(){const _0x4afc8f=['/execute?appCode=','topK','75ZLRTYF','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','functions','query','msg','isArray','appCode','name','/client/knowledge-base/search','abort','/client/sql/query','21wmEMAT','/skills','test','number','function','limit','object','undefined','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','cursor','DELETE','found','/client/knowledge-base/personal/list?appCode=','API\x20error\x20code:\x20','file','download','entries','application/zip','diagramValidated','boolean','markdown','?appCode=','namespace','resolvedVersion','application/json','/client/runtime-bff/personal/list?appCode=','gmtModified','source','errorMsg','skillCode','replace','functionName','stringify','error','company','Toolbox\x20error\x20code:\x20','/client/app-config/getByKey?','isJson','1046682dsAULm','Missing\x20Skill\x20package\x20payload.','8344BkJFvT','/client/uploadFile','base64','newConfigFileName','skillName','validation','errors','GET','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','/client/ocr','signal','/client/dataset/get-driven-data?code=','longTerm','diagram','arrayBuffer','version','isInteger','authRequired','data','/client/bff/endpoint/','url','append','filter','844984kuUGCY','favorite','/download','Toolbox\x20API\x20error:\x20','description','/versions/','/client/knowledge-base/personal/create','appName','Request\x20timeout:\x20','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','json','/publish','confirmWarnings','searchParams','SkillHub\x20error\x20code:\x20','diagramRevision','items','Artifact\x20not\x20found:\x20id=','code','toLowerCase','set','trim','/diagram','/api/runtime/v1/namespaces/','Personal\x20BFF\x20not\x20found:\x20id=','/client/runtime-bff/personal/','/client/runtime-bff/personal/create','/schedules','personal','NAMESPACE_ONLY','/api/cli/v1/skills/','7975260lFeYaM','/update','diagramBound','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','ownerPreviewVersion','AbortError','packageBase64','SQL\x20query\x20not\x20found:\x20','/client/user/loginUserInfo','303867JczVMm','POST','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','invokeSource','message','warnings','4ljPxzS','status','scope','/client/artifact/','success','from','errorCode','195292ssTqZn','PRIVATE','/client/knowledge-base/personal/','artifactType','string','/client/dataset/list','api-doc-generator','text','visibility','23832JoXOLo','tags','Configure\x20accessKey\x20in\x20','displayName','Invalid\x20app\x20config\x20value:\x20key=','slug','summary','API\x20error:\x20','/validate','effective','Check\x20your\x20credentials\x20and\x20try\x20again.','publishedVersion','/api/v1/skills/','apiError','all','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','Knowledge-base\x20entry\x20not\x20found:\x20id=','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','tableData','Download\x20failed:\x20','toString','sqlCode','/client/artifact/create'];a78_0x2e8a=function(){return _0x4afc8f;};return a78_0x2e8a();}async function publishRuntimeSkill(_0xf7f52e,_0x5c5ddd,_0x225851){const _0x5b7f00=a78_0x6755,_0x24d92f=buildRuntimeSkillPublishForm(_0x5c5ddd,_0x225851['visibility']),_0x1e5d19=await skillHubJsonRequest(_0x5b7f00(0x137)+encodeURIComponent(_0xf7f52e)+_0x5b7f00(0x124),{'method':_0x5b7f00(0xa1),'query':{'confirmWarnings':_0x225851[_0x5b7f00(0x125)]===!![]?!![]:undefined},'body':_0x24d92f});return assertJointDiagramAcknowledged(_0x5c5ddd['diagram'],_0x1e5d19[_0x5b7f00(0x13a)],'publish'),{'appCode':_0x1e5d19[_0x5b7f00(0xf0)]??_0xf7f52e,'skillCode':_0x1e5d19[_0x5b7f00(0xbb)]??_0x5c5ddd[_0x5b7f00(0xf7)]??'','skillName':_0x5c5ddd[_0x5b7f00(0x106)]??_0x1e5d19[_0x5b7f00(0xbb)]??_0x5c5ddd[_0x5b7f00(0xf7)],'description':_0x5c5ddd[_0x5b7f00(0x11d)],'scope':skillHubVisibilityToScope(_0x1e5d19[_0x5b7f00(0xb5)]??_0x225851[_0x5b7f00(0xb5)])??_0x5b7f00(0x135),'version':_0x1e5d19[_0x5b7f00(0x111)]??_0x5c5ddd[_0x5b7f00(0x111)],'tags':_0x5c5ddd[_0x5b7f00(0xb7)],'content':_0x5c5ddd['content'],'diagramBound':_0x1e5d19['diagramBound']===!![]};}function assertJointDiagramAcknowledged(_0x41657f,_0x3e3a91,_0x10f3b2){const _0x5706e0=a78_0x6755;if(!_0x41657f||_0x3e3a91===!![])return;throw CliErrors['apiError']('SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20'+_0x10f3b2+'.',_0x5706e0(0x122));}function buildRuntimeSkillPublishForm(_0x54a621,_0x23e215){const _0x543098=a78_0x6755,_0x3915cb=new FormData();return _0x3915cb[_0x543098(0x12d)](_0x543098(0xe8),runtimeSkillPackageFile(_0x54a621)),_0x54a621[_0x543098(0x106)]?.[_0x543098(0x12e)]()&&_0x3915cb[_0x543098(0x12d)](_0x543098(0xb9),_0x54a621[_0x543098(0x106)][_0x543098(0x12e)]()),_0x3915cb[_0x543098(0x12d)]('visibility',_0x23e215),_0x54a621[_0x543098(0x10f)]&&_0x3915cb[_0x543098(0x12d)](_0x543098(0x10f),new Blob([JSON[_0x543098(0xfa)](_0x54a621[_0x543098(0x10f)])],{'type':_0x543098(0xf2)})),_0x3915cb;}function runtimeSkillVersionDiagramPath(_0x3ea4b4,_0x44112b,_0x4e09f3,_0x1a1d9d=''){const _0x5503b4=a78_0x6755;return _0x5503b4(0x137)+encodeURIComponent(_0x3ea4b4)+'/'+encodeURIComponent(_0x44112b)+_0x5503b4(0x11e)+encodeURIComponent(_0x4e09f3)+_0x5503b4(0x12f)+_0x1a1d9d;}function runtimeSkillPackageFile(_0x53f912){const _0xf27f35=a78_0x6755;if(!_0x53f912[_0xf27f35(0x13e)])throw CliErrors[_0xf27f35(0x107)](_0xf27f35(0x101));const _0x476191=Buffer['from'](_0x53f912[_0xf27f35(0x13e)],_0xf27f35(0x104)),_0x5ed008=new Blob([_0x476191],{'type':_0xf27f35(0xeb)}),_0x175dfc=(_0x53f912[_0xf27f35(0xf7)]||'skill')+'.zip';if(typeof File!==_0xf27f35(0xe1))return new File([_0x5ed008],_0x175dfc,{'type':_0xf27f35(0xeb)});return _0x5ed008;}function normalizeSkillHubRuntimeListResponse(_0x332745,_0x28b28f,_0x57cac8,_0x471331){const _0x29f605=a78_0x6755,_0x52b491=Array[_0x29f605(0xd4)](_0x28b28f)?_0x28b28f:Array['isArray'](_0x28b28f?.[_0x29f605(0x129)])?_0x28b28f[_0x29f605(0x129)]:[],_0x3e4930=_0x471331?.[_0x29f605(0x12e)](),_0x22c110=_0x52b491[_0x29f605(0x118)](_0xbcc072=>!_0x3e4930||_0xbcc072[_0x29f605(0xbb)]===_0x3e4930)['map'](skillHubRuntimeItemToRuntimeSkill)[_0x29f605(0x118)](_0x94139b=>Boolean(_0x94139b)),_0x45339a=_0x22c110['filter'](_0x3591fc=>_0x3591fc[_0x29f605(0xa8)]===_0x29f605(0x135)),_0x564220=_0x22c110[_0x29f605(0x118)](_0x42a576=>_0x42a576[_0x29f605(0xa8)]===_0x29f605(0xfc));return{'appCode':_0x332745,'personal':_0x57cac8===_0x29f605(0xfc)?[]:_0x45339a,'company':_0x57cac8==='personal'?[]:_0x564220,'effective':buildEffectiveRuntimeSkills(_0x45339a,_0x564220,_0x57cac8)};}function skillHubRuntimeItemToRuntimeSkill(_0x5d4540){const _0x814248=a78_0x6755,_0x14270d=_0x5d4540[_0x814248(0xbb)]?.[_0x814248(0x12e)](),_0x29aebd=skillHubVisibilityToScope(_0x5d4540[_0x814248(0xb5)]);if(!_0x14270d||!_0x29aebd)return undefined;return{'id':_0x5d4540['id'],'appCode':_0x5d4540['namespace'],'skillCode':_0x14270d,'skillName':_0x5d4540[_0x814248(0xb9)]??_0x14270d,'description':_0x5d4540[_0x814248(0xbc)],'scope':_0x29aebd,'version':skillHubRuntimeItemVersion(_0x5d4540),'status':_0x5d4540['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x342864){const _0x221645=a78_0x6755,_0x38bf55=_0x342864[_0x221645(0xbb)]?.[_0x221645(0x12e)]();if(!_0x38bf55)return undefined;return{'id':_0x342864['id'],'appCode':_0x342864[_0x221645(0xf0)],'skillCode':_0x38bf55,'skillName':_0x342864[_0x221645(0xb9)]??_0x38bf55,'description':_0x342864[_0x221645(0xbc)],'example':_0x342864['example'],'scope':skillHubVisibilityToScope(_0x342864['visibility'])??_0x342864[_0x221645(0xb5)]?.[_0x221645(0x12c)](),'version':skillHubRuntimeItemVersion(_0x342864),'status':_0x342864[_0x221645(0xa7)]};}function skillHubVisibilityToScope(_0x1936c6){const _0x12c362=a78_0x6755;if(_0x1936c6==='PRIVATE')return _0x12c362(0x135);if(_0x1936c6===_0x12c362(0x136))return'company';return undefined;}function skillHubRuntimeItemVersion(_0x2d497a){const _0x1c9d2a=a78_0x6755;return _0x2d497a[_0x1c9d2a(0xc1)]?.[_0x1c9d2a(0x111)]??_0x2d497a['headlineVersion']?.[_0x1c9d2a(0x111)]??_0x2d497a[_0x1c9d2a(0x13c)]?.[_0x1c9d2a(0x111)];}function buildEffectiveRuntimeSkills(_0x16ff61,_0x219ab3,_0x4abcf4){const _0x3faaba=a78_0x6755;if(_0x4abcf4===_0x3faaba(0x135))return _0x16ff61;if(_0x4abcf4===_0x3faaba(0xfc))return _0x219ab3;const _0x2eac36=new Map();for(const _0x3f0f70 of _0x219ab3){_0x2eac36[_0x3faaba(0x12d)](_0x3f0f70['skillCode'],_0x3f0f70);}for(const _0x2eac78 of _0x16ff61){_0x2eac36[_0x3faaba(0x12d)](_0x2eac78['skillCode'],_0x2eac78);}return Array[_0x3faaba(0xab)](_0x2eac36['values']());}function normalizeRuntimeSkillListResponse(_0x202c75,_0x49856e){const _0x4c80b9=a78_0x6755;if(Array['isArray'](_0x49856e)){const _0x5f2968=_0x49856e['filter'](_0x13c7c6=>_0x13c7c6['scope']==='personal'),_0x141aa3=_0x49856e['filter'](_0x4ab503=>_0x4ab503[_0x4c80b9(0xa8)]==='company');return{'appCode':_0x202c75,'personal':_0x5f2968,'company':_0x141aa3,'effective':[..._0x141aa3,..._0x5f2968]};}return{'appCode':_0x49856e?.[_0x4c80b9(0xd5)]??_0x202c75,'personal':Array[_0x4c80b9(0xd4)](_0x49856e?.['personal'])?_0x49856e[_0x4c80b9(0x135)]:[],'company':Array['isArray'](_0x49856e?.[_0x4c80b9(0xfc)])?_0x49856e[_0x4c80b9(0xfc)]:[],'effective':Array[_0x4c80b9(0xd4)](_0x49856e?.['effective'])?_0x49856e['effective']:[]};}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a79_0x19dd(){const _0x26640a=['has','map','get','904013LfhqyD','dbName','216SBVcrw','db-','86083AkcdYn','3567020fLupTc','dbtableConfig','entries','940dIhIBX','set','dbId','453jfkwmK','180YVqqSj','18gdVWSs','288315MbWVTi','511wVkMRP','7386790fGIiCE','61698ihDOSV'];a79_0x19dd=function(){return _0x26640a;};return a79_0x19dd();}(function(_0x5b1ef5,_0x4bd70d){const _0x48a550=a79_0x3e90,_0x20e0c8=_0x5b1ef5();while(!![]){try{const _0x65c8a7=-parseInt(_0x48a550(0x1dc))/0x1*(-parseInt(_0x48a550(0x1d0))/0x2)+parseInt(_0x48a550(0x1ce))/0x3*(parseInt(_0x48a550(0x1cb))/0x4)+-parseInt(_0x48a550(0x1dd))/0x5+-parseInt(_0x48a550(0x1d4))/0x6*(parseInt(_0x48a550(0x1d2))/0x7)+parseInt(_0x48a550(0x1da))/0x8*(-parseInt(_0x48a550(0x1d1))/0x9)+parseInt(_0x48a550(0x1d3))/0xa+parseInt(_0x48a550(0x1d8))/0xb*(parseInt(_0x48a550(0x1cf))/0xc);if(_0x65c8a7===_0x4bd70d)break;else _0x20e0c8['push'](_0x20e0c8['shift']());}catch(_0x2fc16f){_0x20e0c8['push'](_0x20e0c8['shift']());}}}(a79_0x19dd,0x6e828));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x1ba359){const _0x22d491=a79_0x3e90;if(cache[_0x22d491(0x1d5)](_0x1ba359))return cache[_0x22d491(0x1d7)](_0x1ba359);const _0x1c0508=await listDatasets(_0x1ba359),_0x207d13=new Map();for(const _0xa9d2f5 of _0x1c0508){const _0x4dd5c0=_0xa9d2f5[_0x22d491(0x1c9)];_0x4dd5c0?.['dbId']!=null&&_0x207d13[_0x22d491(0x1cc)](_0x4dd5c0['dbId'],_0x4dd5c0[_0x22d491(0x1d9)]??_0x22d491(0x1db)+_0x4dd5c0['dbId']);}const _0x17dbd7=[..._0x207d13[_0x22d491(0x1ca)]()][_0x22d491(0x1d6)](([_0x2b5538,_0x2d7717])=>({'dbId':_0x2b5538,'dbName':_0x2d7717}));return cache[_0x22d491(0x1cc)](_0x1ba359,_0x17dbd7),_0x17dbd7;}function a79_0x3e90(_0x4c7bab,_0x322fb6){_0x4c7bab=_0x4c7bab-0x1c9;const _0x19dd42=a79_0x19dd();let _0x3e901b=_0x19dd42[_0x4c7bab];return _0x3e901b;}export async function getDbName(_0x289e62,_0x3b85e0){const _0x29dbaf=a79_0x3e90;try{const _0x3b004d=await listDatabases(_0x289e62);return _0x3b004d['find'](_0x311755=>_0x311755[_0x29dbaf(0x1cd)]===_0x3b85e0)?.[_0x29dbaf(0x1d9)];}catch{return undefined;}}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x27a020,_0x202813){const _0x1f68e6=a80_0x5e47,_0x2f01de=_0x27a020();while(!![]){try{const _0x2e7e2f=-parseInt(_0x1f68e6(0x13b))/0x1*(parseInt(_0x1f68e6(0x145))/0x2)+parseInt(_0x1f68e6(0x140))/0x3+parseInt(_0x1f68e6(0x144))/0x4+-parseInt(_0x1f68e6(0x146))/0x5+-parseInt(_0x1f68e6(0x142))/0x6+parseInt(_0x1f68e6(0x13d))/0x7*(parseInt(_0x1f68e6(0x12b))/0x8)+parseInt(_0x1f68e6(0x136))/0x9;if(_0x2e7e2f===_0x202813)break;else _0x2f01de['push'](_0x2f01de['shift']());}catch(_0x5b97a6){_0x2f01de['push'](_0x2f01de['shift']());}}}(a80_0xf4fe,0xa1b34));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';function a80_0x5e47(_0x46926f,_0x307aa5){_0x46926f=_0x46926f-0x127;const _0xf4fe41=a80_0xf4fe();let _0x5e47a4=_0xf4fe41[_0x46926f];return _0x5e47a4;}import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;function a80_0xf4fe(){const _0x37402a=['sql','25813440bnmJEE','column','appCode','getOne','models','1KZdKPA','validation','7qUVOrk','\x22.\x20','delete','426882oXCLCX','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','5503452oghpFF','authMode','1074212RmwtoA','1895786drDktP','4754785ELtxYG','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','object','aggregate',']\x20must\x20be\x20an\x20object.','accessKey','1595272nJLkSH','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','map','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','execute',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','isArray','data\x20aggregate\x20--params.aggregate[','batchCreate','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27'];a80_0xf4fe=function(){return _0x37402a;};return a80_0xf4fe();}export function initSdkClient(_0x2aa7a2){const _0x5044cc=a80_0x5e47;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x2aa7a2[_0x5044cc(0x138)],'env':_0x2aa7a2['env'],'authMode':_0x2aa7a2[_0x5044cc(0x143)],..._0x2aa7a2[_0x5044cc(0x12a)]?{'accessKey':_0x2aa7a2['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}catch(_0x3df929){clearSdkClient();throw _0x3df929;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0xccc833=a80_0x5e47;if(!_client)throw new Error(_0xccc833(0x12e));return _client;}function normalizeAggregateParams(_0x9fe1d8){const _0xedb57b=a80_0x5e47,_0x157eae=_0x9fe1d8[_0xedb57b(0x128)];if(_0x157eae===undefined)return _0x9fe1d8;if(!Array[_0xedb57b(0x131)](_0x157eae))throw CliErrors[_0xedb57b(0x13c)](_0xedb57b(0x12c));return{..._0x9fe1d8,'aggregate':_0x157eae[_0xedb57b(0x12d)]((_0x3d6872,_0x5f1d80)=>{const _0x563e7f=_0xedb57b;if(!_0x3d6872||typeof _0x3d6872!==_0x563e7f(0x127)||Array['isArray'](_0x3d6872))throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate['+_0x5f1d80+_0x563e7f(0x129));const _0x93efbb=_0x3d6872[_0x563e7f(0x137)]??_0x3d6872['field'];if(typeof _0x93efbb!=='string'||_0x93efbb['trim']()==='')throw CliErrors[_0x563e7f(0x13c)](_0x563e7f(0x132)+_0x5f1d80+_0x563e7f(0x130));const _0x21ecdc={..._0x3d6872,'column':_0x93efbb};return delete _0x21ecdc['field'],_0x21ecdc;})};}export async function executeData(_0x5d4937,_0x58a74f,_0x256554){const _0x3a8368=a80_0x5e47,_0x42ecb6=ensureClient(),_0x1f4d88='dataset_'+_0x5d4937,_0x592e8d=_0x42ecb6[_0x3a8368(0x13a)][_0x1f4d88];if(!_0x592e8d||typeof _0x592e8d[_0x58a74f]!=='function')throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x58a74f+_0x3a8368(0x13e)+_0x3a8368(0x147));if(_0x58a74f===_0x3a8368(0x133))return _0x592e8d['batchCreate'](parseBatchCreateItemsFromParams(_0x256554));const _0x576420=_0x256554!==undefined&&_0x256554!==null&&!Array[_0x3a8368(0x131)](_0x256554)?_0x256554:{};switch(_0x58a74f){case'getOne':{const _0x25f15=_0x576420['id'];if(_0x25f15===undefined||_0x25f15===null)throw new Error(_0x3a8368(0x134));return _0x592e8d[_0x3a8368(0x139)](_0x25f15);}case'update':{const {id:_0x18c802,..._0x175685}=_0x576420;if(_0x18c802===undefined||_0x18c802===null)throw new Error(_0x3a8368(0x141));return _0x592e8d['update'](_0x18c802,_0x175685);}case _0x3a8368(0x13f):{const _0xf5899f=_0x576420['id'];if(_0xf5899f===undefined||_0xf5899f===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x592e8d['delete'](_0xf5899f);}case _0x3a8368(0x128):return _0x592e8d['aggregate'](normalizeAggregateParams(_0x576420));default:return _0x592e8d[_0x58a74f](_0x576420);}}export async function executeSdkSql(_0x1afdf4,_0x6fbaf){const _0x2a80d7=a80_0x5e47,_0x4248e2=ensureClient();return _0x4248e2[_0x2a80d7(0x135)][_0x2a80d7(0x12f)]({'sqlCode':_0x1afdf4,'params':_0x6fbaf});}export async function executeSdkBff(_0x292428,_0x118205){const _0x41a0b3=a80_0x5e47,_0xe48926=ensureClient();return _0xe48926['bff'][_0x41a0b3(0x12f)]({'scriptName':_0x292428,'params':_0x118205});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x1d1c57=a81_0x335c;function a81_0x21c2(){const _0x2133fa=['2688576dQahMo','\x20or\x20run\x20`','Set\x20appcode\x20via\x20--appcode\x20or\x20','Configure\x20accessKey\x20in\x20','5213754TzqYDd','newConfigFileName','346CfsCbF','10721592ahZGzo','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','2954364RFmokj','5834195fwGOQD','\x20file.','7sLaWHQ','2828lOxqNZ','rate_limited','6923432JtTrKz'];a81_0x21c2=function(){return _0x2133fa;};return a81_0x21c2();}(function(_0x464abc,_0x4e4082){const _0x308f70=a81_0x335c,_0x299dce=_0x464abc();while(!![]){try{const _0x4d9099=-parseInt(_0x308f70(0xc1))/0x1*(-parseInt(_0x308f70(0xba))/0x2)+parseInt(_0x308f70(0xbd))/0x3+-parseInt(_0x308f70(0xb4))/0x4+parseInt(_0x308f70(0xbe))/0x5+parseInt(_0x308f70(0xb8))/0x6+-parseInt(_0x308f70(0xc0))/0x7*(parseInt(_0x308f70(0xc3))/0x8)+-parseInt(_0x308f70(0xbb))/0x9;if(_0x4d9099===_0x4e4082)break;else _0x299dce['push'](_0x299dce['shift']());}catch(_0x137889){_0x299dce['push'](_0x299dce['shift']());}}}(a81_0x21c2,0xbeaa9));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a81_0x335c(_0x513b9e,_0x1fd223){_0x513b9e=_0x513b9e-0xb4;const _0x21c25d=a81_0x21c2();let _0x335cd5=_0x21c25d[_0x513b9e];return _0x335cd5;}export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a81_0x1d1c57(0xb7)+PRODUCT_CONFIG[a81_0x1d1c57(0xb9)]+a81_0x1d1c57(0xb5)+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a81_0x1d1c57(0xb6)+PRODUCT_CONFIG[a81_0x1d1c57(0xb9)]+'.','notInProjectHint':a81_0x1d1c57(0xbc)+PRODUCT_CONFIG[a81_0x1d1c57(0xb9)]+a81_0x1d1c57(0xbf)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x4e400d,_0x5bd0e4)=>new CliError(a81_0x1d1c57(0xc2),0x2,_0x4e400d,_0x5bd0e4)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3aad7e,_0x50f991){var _0x1cfddd=a82_0xc23b,_0x512e75=_0x3aad7e();while(!![]){try{var _0x4c4f77=-parseInt(_0x1cfddd(0x1b0))/0x1*(parseInt(_0x1cfddd(0x1bb))/0x2)+parseInt(_0x1cfddd(0x1b5))/0x3*(-parseInt(_0x1cfddd(0x1b6))/0x4)+parseInt(_0x1cfddd(0x1b9))/0x5*(parseInt(_0x1cfddd(0x1b7))/0x6)+parseInt(_0x1cfddd(0x1b2))/0x7*(parseInt(_0x1cfddd(0x1bc))/0x8)+-parseInt(_0x1cfddd(0x1b3))/0x9*(parseInt(_0x1cfddd(0x1ba))/0xa)+parseInt(_0x1cfddd(0x1b1))/0xb+parseInt(_0x1cfddd(0x1b4))/0xc*(parseInt(_0x1cfddd(0x1b8))/0xd);if(_0x4c4f77===_0x50f991)break;else _0x512e75['push'](_0x512e75['shift']());}catch(_0x2cf844){_0x512e75['push'](_0x512e75['shift']());}}}(a82_0x2786,0x77520));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a82_0x342557}from'@lovrabet/cli-framework';function a82_0xc23b(_0x220986,_0x414fd3){_0x220986=_0x220986-0x1b0;var _0x278641=a82_0x2786();var _0xc23b1c=_0x278641[_0x220986];return _0xc23b1c;}function a82_0x2786(){var _0x9148a0=['6NlOtfD','15912ewnRzk','4459265pxwZqv','32980KHkHMf','2VrzLdM','16mYtICL','85123EjBcjZ','3738548qbOUyQ','759199BNtEvv','1431IgUbqg','876TWvMxQ','1319238WuOfhL','4TzkVIL'];a82_0x2786=function(){return _0x9148a0;};return a82_0x2786();}export function buildAllFlags(_0x55991d){return a82_0x342557(_0x55991d,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xdcc0b8,_0x2836f0){const _0x50d2f4=a83_0x1e9c,_0x17e880=_0xdcc0b8();while(!![]){try{const _0x4b48f2=parseInt(_0x50d2f4(0x138))/0x1*(parseInt(_0x50d2f4(0x134))/0x2)+parseInt(_0x50d2f4(0x13c))/0x3+-parseInt(_0x50d2f4(0x136))/0x4*(parseInt(_0x50d2f4(0x139))/0x5)+-parseInt(_0x50d2f4(0x137))/0x6+parseInt(_0x50d2f4(0x135))/0x7*(parseInt(_0x50d2f4(0x13a))/0x8)+parseInt(_0x50d2f4(0x13b))/0x9+-parseInt(_0x50d2f4(0x133))/0xa;if(_0x4b48f2===_0x2836f0)break;else _0x17e880['push'](_0x17e880['shift']());}catch(_0x2a62c8){_0x17e880['push'](_0x17e880['shift']());}}}(a83_0x4953,0x1a4fd));export function dryRun(_0x2b6bbb,_0x1690f1){const _0x9a24d6={'method':_0x2b6bbb,'url':_0x1690f1},_0x318d1f={'body'(_0x27d7bc){return _0x9a24d6['body']=_0x27d7bc,_0x318d1f;},'description'(_0x394008){return _0x9a24d6['description']=_0x394008,_0x318d1f;},'build'(){return{..._0x9a24d6};}};return _0x318d1f;}function a83_0x1e9c(_0x1bd271,_0x5ee72f){_0x1bd271=_0x1bd271-0x133;const _0x495324=a83_0x4953();let _0x1e9c06=_0x495324[_0x1bd271];return _0x1e9c06;}function a83_0x4953(){const _0x2aa50a=['20bpyXny','176ASBAbo','432432BqkTLl','430197zWKuMR','651070vBUjVQ','8VjAqih','68047bUsXFm','192832TZXLjS','470670AmhHRb','9712AiYkVc'];a83_0x4953=function(){return _0x2aa50a;};return a83_0x4953();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a84_0x179aa7=a84_0x5a50;(function(_0x3c9dcc,_0x437b9c){const _0x403386=a84_0x5a50,_0x12d002=_0x3c9dcc();while(!![]){try{const _0x1c7cd6=-parseInt(_0x403386(0xb5))/0x1*(parseInt(_0x403386(0xb8))/0x2)+-parseInt(_0x403386(0xb1))/0x3+-parseInt(_0x403386(0xbb))/0x4*(-parseInt(_0x403386(0xb6))/0x5)+-parseInt(_0x403386(0xb4))/0x6+-parseInt(_0x403386(0xbc))/0x7*(-parseInt(_0x403386(0xba))/0x8)+parseInt(_0x403386(0xb7))/0x9*(-parseInt(_0x403386(0xb2))/0xa)+parseInt(_0x403386(0xb3))/0xb;if(_0x1c7cd6===_0x437b9c)break;else _0x12d002['push'](_0x12d002['shift']());}catch(_0x5dc7e1){_0x12d002['push'](_0x12d002['shift']());}}}(a84_0x27bb,0x5e6f7));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a84_0x27bb(){const _0x424253=['464sZqvyN','287404vblPDe','4193jsatAB','839595JGapgx','10zzDTog','13545422HBTvcm','2990790DWEJhF','15EhyvVV','35DoUYsX','2391831uVvTIR','45094OstmNi','parseFlags'];a84_0x27bb=function(){return _0x424253;};return a84_0x27bb();}function a84_0x5a50(_0x573102,_0x1f094c){_0x573102=_0x573102-0xb1;const _0x27bb39=a84_0x27bb();let _0x5a504b=_0x27bb39[_0x573102];return _0x5a504b;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a84_0x179aa7(0xb9)];export const validateFlags=helpers['validateFlags'];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14508a,_0x53831f){const _0x58a813=a85_0x2b68,_0x14bf68=_0x14508a();while(!![]){try{const _0x3fb2b8=parseInt(_0x58a813(0x7a))/0x1+-parseInt(_0x58a813(0x6d))/0x2+-parseInt(_0x58a813(0x77))/0x3*(parseInt(_0x58a813(0x6f))/0x4)+parseInt(_0x58a813(0x6e))/0x5*(-parseInt(_0x58a813(0x76))/0x6)+-parseInt(_0x58a813(0x71))/0x7+-parseInt(_0x58a813(0x7b))/0x8+parseInt(_0x58a813(0x70))/0x9*(parseInt(_0x58a813(0x72))/0xa);if(_0x3fb2b8===_0x53831f)break;else _0x14bf68['push'](_0x14bf68['shift']());}catch(_0x163923){_0x14bf68['push'](_0x14bf68['shift']());}}}(a85_0x162d,0x55de6));import{createHelpGenerators}from'@lovrabet/cli-framework';function a85_0x162d(){const _0x1fe80f=['135qxTQNK','28DPAJcS','5571lZQOzd','2234645aSRpTe','40110rIufUN','Requires\x20appcode\x20(set\x20via\x20','filter','generateServiceHelp','146670Oiytff','225039zGCrtZ','generateCommandHelp','map','248220IMKMUO','1928144fwitwG','newConfigFileName','service','1267904JJDKic'];a85_0x162d=function(){return _0x1fe80f;};return a85_0x162d();}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';function a85_0x2b68(_0x2ab4f6,_0x4e1f3c){_0x2ab4f6=_0x2ab4f6-0x6c;const _0x162d8a=a85_0x162d();let _0x2b680f=_0x162d8a[_0x2ab4f6];return _0x2b680f;}import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x976a54=a85_0x2b68;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x976a54(0x73)+PRODUCT_CONFIG[_0x976a54(0x7c)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x454bd0){const _0x2cbfd2=a85_0x2b68;return createGenerators()[_0x2cbfd2(0x78)](_0x454bd0);}export function generateServiceHelp(_0xc3c1f9){const _0x31f484=a85_0x2b68;return createGenerators()[_0x31f484(0x75)](_0xc3c1f9);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x318fd7){const _0x43b0af=getServiceEntry(_0x318fd7);if(_0x43b0af)return _0x43b0af;try{return getDynamicServiceEntry(_0x318fd7);}catch{return undefined;}}function getAnyServiceDefinitions(_0x4eaaac){const _0x18ec42=serviceGroups['get'](_0x4eaaac);if(_0x18ec42)return _0x18ec42;try{return getDynamicServiceDefinitions(_0x4eaaac);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x3cf8a3=a85_0x2b68,_0x1c39f8=new Set(serviceRegistry[_0x3cf8a3(0x79)](_0x2a4237=>_0x2a4237[_0x3cf8a3(0x6c)]));try{return listDynamicServiceEntries()[_0x3cf8a3(0x74)](_0x48dd0a=>!_0x1c39f8['has'](_0x48dd0a[_0x3cf8a3(0x6c)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x103888,_0xa90115){var _0x245d21=a86_0x224e,_0x5657fb=_0x103888();while(!![]){try{var _0x64abb1=parseInt(_0x245d21(0x7b))/0x1*(-parseInt(_0x245d21(0x7a))/0x2)+-parseInt(_0x245d21(0x77))/0x3*(parseInt(_0x245d21(0x78))/0x4)+-parseInt(_0x245d21(0x74))/0x5+-parseInt(_0x245d21(0x75))/0x6+-parseInt(_0x245d21(0x7c))/0x7*(parseInt(_0x245d21(0x73))/0x8)+parseInt(_0x245d21(0x7d))/0x9*(parseInt(_0x245d21(0x79))/0xa)+parseInt(_0x245d21(0x76))/0xb;if(_0x64abb1===_0xa90115)break;else _0x5657fb['push'](_0x5657fb['shift']());}catch(_0x1ccdf0){_0x5657fb['push'](_0x5657fb['shift']());}}}(a86_0x3681,0x6c565));function a86_0x224e(_0x346faa,_0x10d589){_0x346faa=_0x346faa-0x73;var _0x368171=a86_0x3681();var _0x224e0c=_0x368171[_0x346faa];return _0x224e0c;}export{runCommand}from'../framework/runner.js';function a86_0x3681(){var _0xa83be7=['35775135qHcHTs','270801LKmdQE','32fFOkeK','77940MGtfwF','3932umogfb','417OFrIHU','7GfZftt','72mKoZCb','1371992KEamwd','1753200ULZyGo','4840746BFYTzx'];a86_0x3681=function(){return _0xa83be7;};return a86_0x3681();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e1378,_0x3a9d9e){const _0x1ff7e9=a87_0x4314,_0x22c155=_0x3e1378();while(!![]){try{const _0x5e8d7d=parseInt(_0x1ff7e9(0x18f))/0x1*(-parseInt(_0x1ff7e9(0x185))/0x2)+-parseInt(_0x1ff7e9(0x187))/0x3+parseInt(_0x1ff7e9(0x191))/0x4+parseInt(_0x1ff7e9(0x186))/0x5*(parseInt(_0x1ff7e9(0x18d))/0x6)+parseInt(_0x1ff7e9(0x18c))/0x7+parseInt(_0x1ff7e9(0x18a))/0x8*(-parseInt(_0x1ff7e9(0x182))/0x9)+-parseInt(_0x1ff7e9(0x183))/0xa;if(_0x5e8d7d===_0x3a9d9e)break;else _0x22c155['push'](_0x22c155['shift']());}catch(_0x81090a){_0x22c155['push'](_0x22c155['shift']());}}}(a87_0x5c54,0xf2129));function a87_0x5c54(){const _0x4f25d3=['update','3RrxdnI','error','7117724vTPJfi','9dFhLlU','20511430fXZQor','_notice','714214eYsjXA','5TCnuXR','2122584gqiUty','pretty','message','2296880TSqtuD','url','12974493frIJrG','8854206lXEbzA'];a87_0x5c54=function(){return _0x4f25d3;};return a87_0x5c54();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x900eeb,_0x251367){const _0x3c6eb2=a87_0x4314,_0x3a4e03=_0x900eeb[_0x3c6eb2(0x184)],{_notice:_0x1408d1,..._0x34dfee}=_0x900eeb;void _0x1408d1,baseFormatOutput(_0x34dfee,_0x251367),_0x251367['format']===_0x3c6eb2(0x188)&&printPrettyNotice(_0x3a4e03);}function a87_0x4314(_0x323695,_0x322cc2){_0x323695=_0x323695-0x182;const _0x5c543d=a87_0x5c54();let _0x43145c=_0x5c543d[_0x323695];return _0x43145c;}function printPrettyNotice(_0xe8c56f){const _0x240973=a87_0x4314;if(!_0xe8c56f?.[_0x240973(0x18e)])return;console[_0x240973(0x190)](_0xe8c56f[_0x240973(0x18e)][_0x240973(0x189)]+'\x20('+_0xe8c56f[_0x240973(0x18e)][_0x240973(0x18b)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ba928,_0x38588e){const _0x2e4b18=a88_0xee4d,_0x626c48=_0x2ba928();while(!![]){try{const _0x5bed92=parseInt(_0x2e4b18(0xc0))/0x1+parseInt(_0x2e4b18(0xde))/0x2*(parseInt(_0x2e4b18(0xd6))/0x3)+-parseInt(_0x2e4b18(0xcf))/0x4+-parseInt(_0x2e4b18(0xca))/0x5+parseInt(_0x2e4b18(0xc1))/0x6*(-parseInt(_0x2e4b18(0xd8))/0x7)+-parseInt(_0x2e4b18(0xe3))/0x8*(parseInt(_0x2e4b18(0xce))/0x9)+-parseInt(_0x2e4b18(0xc3))/0xa*(-parseInt(_0x2e4b18(0xc4))/0xb);if(_0x5bed92===_0x38588e)break;else _0x626c48['push'](_0x626c48['shift']());}catch(_0x479311){_0x626c48['push'](_0x626c48['shift']());}}}(a88_0x62cb,0x8a8ea));export function toKebab(_0x153b72){const _0x4ddd01=a88_0xee4d;return _0x153b72['replace'](/_/g,'-')[_0x4ddd01(0xe0)](/-([A-Z]+)/g,(_0x5439e8,_0x4083ec)=>'-'+_0x4083ec[_0x4ddd01(0xc5)]())[_0x4ddd01(0xe0)](/([a-z0-9])([A-Z])/g,(_0x18b2ed,_0x1290bb,_0x5b3f2a)=>_0x1290bb+'-'+_0x5b3f2a)['toLowerCase']();}function buildKnownFlags(_0x2962ff){const _0x83d5a6=a88_0xee4d,_0x2d8ade=new Set();for(const _0x27d53a of _0x2962ff){_0x2d8ade['add'](_0x27d53a[_0x83d5a6(0xd3)]),_0x2d8ade[_0x83d5a6(0xc2)](toCamelCase(_0x27d53a[_0x83d5a6(0xd3)]));}for(const _0x34c572 of['dry-run',_0x83d5a6(0xd1),_0x83d5a6(0xd0),_0x83d5a6(0xd7)]){_0x2d8ade['add'](_0x34c572);}for(const _0x1b1d69 of[_0x83d5a6(0xe6),_0x83d5a6(0xd4),_0x83d5a6(0xe5),_0x83d5a6(0xcb),'nonInteractive',_0x83d5a6(0xc6),'ci',_0x83d5a6(0xc8),'version']){_0x2d8ade['add'](_0x1b1d69);}return _0x2d8ade;}function buildFlagTypeMap(_0x11270e){const _0x5a50bd=a88_0xee4d,_0x20fdd8=new Map();for(const _0x1c863b of _0x11270e){_0x20fdd8[_0x5a50bd(0xe2)](_0x1c863b['name'],_0x1c863b[_0x5a50bd(0xcc)]),_0x20fdd8[_0x5a50bd(0xe2)](toCamelCase(_0x1c863b[_0x5a50bd(0xd3)]),_0x1c863b['type']);}return _0x20fdd8;}function toCamelCase(_0x13dd7b){const _0x5ac5ce=a88_0xee4d;return _0x13dd7b['replace'](/-([a-z])/g,(_0xcb81f6,_0x4a104d)=>_0x4a104d[_0x5ac5ce(0xe7)]());}function aliasHandler(_0x340c6b,_0x5af69d){const _0x145d24=a88_0xee4d,_0x210f1f=[];for(const _0x435f8b of Object[_0x145d24(0xc7)](_0x340c6b)){if(_0x5af69d['has'](_0x435f8b))continue;const _0x5df04e=toKebab(_0x435f8b);_0x5df04e!==_0x435f8b&&_0x5af69d[_0x145d24(0xda)](_0x5df04e)&&_0x210f1f['push']({'original':_0x435f8b,'corrected':_0x5df04e,'handler':_0x145d24(0xd2)});}return _0x210f1f;}function stickyHandler(_0x43c7d1,_0xa0c0d,_0x2f944e){const _0x46ce2f=a88_0xee4d,_0x402ecd=[];for(const [_0x5e7732,_0x30d6dd]of Object[_0x46ce2f(0xe4)](_0x43c7d1)){if(_0x30d6dd!==!![])continue;for(let _0x134742=_0x5e7732[_0x46ce2f(0xc9)]-0x1;_0x134742>0x0;_0x134742--){const _0x45dd61=_0x5e7732['slice'](0x0,_0x134742),_0x32cd43=_0x5e7732[_0x46ce2f(0xe1)](_0x134742),_0x5894c0=toKebab(_0x45dd61),_0x57c8b5=toCamelCase(_0x45dd61),_0x37443c=_0xa0c0d[_0x46ce2f(0xda)](_0x45dd61)?_0x45dd61:_0xa0c0d[_0x46ce2f(0xda)](_0x5894c0)?_0x5894c0:_0xa0c0d[_0x46ce2f(0xda)](_0x57c8b5)?_0x57c8b5:null;if(!_0x37443c)continue;const _0x5cd972=_0x2f944e['get'](_0x37443c)??_0x46ce2f(0xdf);let _0x57452e;if(_0x5cd972==='number'){const _0x4bb058=Number(_0x32cd43);if(isNaN(_0x4bb058)||_0x32cd43==='')continue;_0x57452e=_0x4bb058;}else{if(_0x5cd972===_0x46ce2f(0xd9))continue;else{if(_0x32cd43==='')continue;_0x57452e=_0x32cd43;}}_0x402ecd[_0x46ce2f(0xcd)]({'original':_0x5e7732,'corrected':_0x37443c+'='+_0x57452e,'handler':'sticky'});break;}}return _0x402ecd;}function a88_0x62cb(){const _0x40c25f=['slice','set','184CJpdhK','entries','appcode','help','toUpperCase','original','204565MwestL','2074452zREkqT','add','30PxixVZ','8484927BeueEO','toLowerCase','non-interactive','keys','global','length','1276655vUCyRx','app','type','push','192771ZYXazR','4168956BkjPvl','yes','dryRun','alias','name','env','number','363XwhSdG','format','14HKCFtY','boolean','has','corrected','indexOf','get','8770znWcIN','string','replace'];a88_0x62cb=function(){return _0x40c25f;};return a88_0x62cb();}function a88_0xee4d(_0x37ce36,_0x4155b6){_0x37ce36=_0x37ce36-0xc0;const _0x62cb0c=a88_0x62cb();let _0xee4d59=_0x62cb0c[_0x37ce36];return _0xee4d59;}export function correctFlags(_0xda2c0c,_0x1831d3){const _0xb4d3a2=a88_0xee4d,_0x41752e=buildKnownFlags(_0x1831d3),_0x55ed6d=buildFlagTypeMap(_0x1831d3),_0x22ae42=aliasHandler(_0xda2c0c,_0x41752e),_0x4b8ad3=stickyHandler(_0xda2c0c,_0x41752e,_0x55ed6d),_0x5c8456=[..._0x22ae42,..._0x4b8ad3];if(_0x5c8456[_0xb4d3a2(0xc9)]===0x0)return{'flags':_0xda2c0c,'corrections':[]};const _0x27feed={..._0xda2c0c},_0x59edb9=new Set();for(const _0x1a961c of _0x22ae42){_0x27feed[_0x1a961c[_0xb4d3a2(0xdb)]]=_0xda2c0c[_0x1a961c[_0xb4d3a2(0xe8)]],_0x59edb9[_0xb4d3a2(0xc2)](_0x1a961c[_0xb4d3a2(0xe8)]);}for(const _0x1ac423 of _0x4b8ad3){const _0x3b0e58=_0x1ac423[_0xb4d3a2(0xdb)][_0xb4d3a2(0xdc)]('='),_0x47adc1=_0x1ac423[_0xb4d3a2(0xdb)][_0xb4d3a2(0xe1)](0x0,_0x3b0e58),_0x21a979=_0x1ac423[_0xb4d3a2(0xdb)]['slice'](_0x3b0e58+0x1),_0x53a00f=_0x55ed6d[_0xb4d3a2(0xdd)](_0x47adc1)??_0xb4d3a2(0xdf);_0x53a00f===_0xb4d3a2(0xd5)?_0x27feed[_0x47adc1]=Number(_0x21a979):_0x27feed[_0x47adc1]=_0x21a979,_0x59edb9[_0xb4d3a2(0xc2)](_0x1ac423[_0xb4d3a2(0xe8)]);}for(const _0x5e1438 of _0x59edb9){delete _0x27feed[_0x5e1438];}return{'flags':_0x27feed,'corrections':_0x5c8456};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a89_0x32eae8=a89_0x5a11;(function(_0x5bddb5,_0x427a81){const _0x182f8c=a89_0x5a11,_0x535392=_0x5bddb5();while(!![]){try{const _0xa9e037=parseInt(_0x182f8c(0x84))/0x1*(parseInt(_0x182f8c(0x89))/0x2)+parseInt(_0x182f8c(0x82))/0x3+parseInt(_0x182f8c(0x88))/0x4+-parseInt(_0x182f8c(0x69))/0x5+parseInt(_0x182f8c(0x83))/0x6*(-parseInt(_0x182f8c(0x74))/0x7)+parseInt(_0x182f8c(0x73))/0x8*(parseInt(_0x182f8c(0x68))/0x9)+-parseInt(_0x182f8c(0x6f))/0xa*(-parseInt(_0x182f8c(0x77))/0xb);if(_0xa9e037===_0x427a81)break;else _0x535392['push'](_0x535392['shift']());}catch(_0x3578ea){_0x535392['push'](_0x535392['shift']());}}}(a89_0x2a35,0xec598));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a89_0x32eae8(0x8c),'MAX_QPS_LIMIT','IP_RATE_LIMIT_EXCEEDED']);function a89_0x5a11(_0x5e9c07,_0x7c4359){_0x5e9c07=_0x5e9c07-0x68;const _0x2a3585=a89_0x2a35();let _0x5a11c2=_0x2a3585[_0x5e9c07];return _0x5a11c2;}function nonEmptyString(_0x2e8d6a){const _0x3a2e04=a89_0x32eae8;if(typeof _0x2e8d6a!==_0x3a2e04(0x6b))return undefined;const _0x5385af=_0x2e8d6a[_0x3a2e04(0x6c)]();return _0x5385af||undefined;}function buildRetryHint(_0x21f402){const _0x3746ff=a89_0x32eae8,_0xf1c7a5=nonEmptyString(_0x21f402),_0x32bec5=_0xf1c7a5?/^\d+$/[_0x3746ff(0x6e)](_0xf1c7a5)?_0x3746ff(0x7d)+_0xf1c7a5+_0x3746ff(0x8a):_0x3746ff(0x70)+_0xf1c7a5+'.':_0x3746ff(0x71);return _0x32bec5+_0x3746ff(0x6a);}export function createRateLimitError(_0x29d468){const _0xba5a96=a89_0x32eae8,_0x44077b=nonEmptyString(_0x29d468[_0xba5a96(0x86)])?.[_0xba5a96(0x7a)](),_0x17d412=Number(_0x29d468['status'])===0x1ad||_0x44077b!==undefined&&RATE_LIMIT_ERROR_CODES[_0xba5a96(0x7f)](_0x44077b);if(!_0x17d412)return undefined;return CliErrors[_0xba5a96(0x75)](nonEmptyString(_0x29d468[_0xba5a96(0x87)])??_0xba5a96(0x85),buildRetryHint(_0x29d468['retryAfter']));}export function readRetryAfter(_0x1050ec){const _0x5e14f4=a89_0x32eae8;if(!_0x1050ec||typeof _0x1050ec!==_0x5e14f4(0x8b))return undefined;const _0x14bf2e=_0x1050ec[_0x5e14f4(0x81)];if(typeof _0x14bf2e===_0x5e14f4(0x79)){const _0x2e8f67=_0x14bf2e['call'](_0x1050ec,_0x5e14f4(0x7c))??_0x14bf2e[_0x5e14f4(0x7b)](_0x1050ec,_0x5e14f4(0x72));return nonEmptyString(_0x2e8f67);}for(const [_0xf96af3,_0x45d2d0]of Object[_0x5e14f4(0x6d)](_0x1050ec)){if(_0xf96af3[_0x5e14f4(0x76)]()===_0x5e14f4(0x72))return nonEmptyString(_0x45d2d0)??(typeof _0x45d2d0===_0x5e14f4(0x7e)?String(_0x45d2d0):undefined);}return undefined;}function a89_0x2a35(){const _0x301315=['trim','entries','test','10830iwsyLO','Retry\x20after\x20','Retry\x20after\x20a\x20short\x20delay.','retry-after','756112etAaYl','119xopGDW','rateLimited','toLowerCase','13310ihsXBO','isInteger','function','toUpperCase','call','Retry-After','Wait\x20','number','has','isArray','get','598395zkBKUS','332274fNOTCY','87334IJpOdh','Request\x20rate\x20limit\x20exceeded.','errorCode','message','2780112bkIQyb','4tBizhe','\x20seconds\x20before\x20retrying.','object','EXCEED_MAX_QPS_LIMIT','90CnPMuI','7076000wSJNDx','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','string'];a89_0x2a35=function(){return _0x301315;};return a89_0x2a35();}export function readRetryAfterSeconds(_0x1c6933){const _0x2a4711=a89_0x32eae8;if(!_0x1c6933||typeof _0x1c6933!==_0x2a4711(0x8b)||Array[_0x2a4711(0x80)](_0x1c6933))return undefined;const _0x3bc55e=_0x1c6933['retryAfterSeconds'];if(typeof _0x3bc55e===_0x2a4711(0x7e))return Number[_0x2a4711(0x78)](_0x3bc55e)&&_0x3bc55e>=0x0?String(_0x3bc55e):undefined;const _0x5373f0=nonEmptyString(_0x3bc55e);return _0x5373f0&&/^\d+$/[_0x2a4711(0x6e)](_0x5373f0)?_0x5373f0:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x1e5a86=a90_0x25d9;(function(_0x2547a3,_0x123c17){const _0x9fe571=a90_0x25d9,_0x2e3ddf=_0x2547a3();while(!![]){try{const _0x1869a9=-parseInt(_0x9fe571(0x103))/0x1+-parseInt(_0x9fe571(0x116))/0x2*(parseInt(_0x9fe571(0x110))/0x3)+-parseInt(_0x9fe571(0x120))/0x4+parseInt(_0x9fe571(0x100))/0x5+parseInt(_0x9fe571(0x10f))/0x6*(-parseInt(_0x9fe571(0x104))/0x7)+-parseInt(_0x9fe571(0x102))/0x8+parseInt(_0x9fe571(0x11f))/0x9;if(_0x1869a9===_0x123c17)break;else _0x2e3ddf['push'](_0x2e3ddf['shift']());}catch(_0x5afb22){_0x2e3ddf['push'](_0x2e3ddf['shift']());}}}(a90_0x2385,0x72226));import{CliErrors}from'../errors.js';function a90_0x2385(){const _0x49b482=['2541855dMUQvT','entries','4323560mOoQbK','519015pursGt','49rPOPWM','\x20for\x20`','version','has','asc','page-size','current-page','\x20--help`\x20to\x20see\x20accepted\x20flags.','no-','stringify','orderby','47172inFUpP','3nqJxww','Example:\x20','data','order-by','page','where','1375224EItoIx','name','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','service','flags','command','meowKey','validation','currentpage','16354161fdQvPi','223600ajAdpS','add'];a90_0x2385=function(){return _0x49b482;};return a90_0x2385();}function a90_0x25d9(_0x36165d,_0x60984c){_0x36165d=_0x36165d-0x100;const _0x23858a=a90_0x2385();let _0x25d9fb=_0x23858a[_0x36165d];return _0x25d9fb;}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a90_0x1e5a86(0x115),'select',a90_0x1e5a86(0x113),a90_0x1e5a86(0x10e),a90_0x1e5a86(0x10a),a90_0x1e5a86(0x11e),a90_0x1e5a86(0x114),a90_0x1e5a86(0x109),'pagesize']);export function assertKnownCommandFlags(_0xc39d4c,_0x1e5727){const _0x2006aa=a90_0x1e5a86,_0x1e18e4=new Set([_0x2006aa(0x106)]);for(const _0x46c25d of GLOBAL_FLAGS){_0x1e18e4[_0x2006aa(0x121)](_0x46c25d[_0x2006aa(0x117)]),_0x1e18e4[_0x2006aa(0x121)](toKebab(_0x46c25d[_0x2006aa(0x11c)]));}for(const _0x16dda9 of _0xc39d4c[_0x2006aa(0x11a)]??[]){_0x1e18e4[_0x2006aa(0x121)](_0x16dda9[_0x2006aa(0x117)]);}for(const [_0x1a9902,_0xc6c673]of Object[_0x2006aa(0x101)](_0x1e5727)){const _0x7ee75=toKebab(_0x1a9902);if(_0x1e18e4['has'](_0x7ee75))continue;if(_0xc6c673===![]&&_0x1e18e4[_0x2006aa(0x107)](_0x2006aa(0x10c)+_0x7ee75))continue;if(_0xc39d4c[_0x2006aa(0x119)]===_0x2006aa(0x112)&&_0xc39d4c[_0x2006aa(0x11b)]==='filter'&&FILTER_BODY_FIELDS[_0x2006aa(0x107)](_0x7ee75))throw CliErrors[_0x2006aa(0x11d)]('--'+_0x7ee75+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+'\x20data\x20filter`.','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+(_0x2006aa(0x111)+CLI_BIN_NAME+_0x2006aa(0x118))+('\x27'+JSON[_0x2006aa(0x10d)]({'where':{'status':{'$eq':'active'}},'orderBy':[{'id':_0x2006aa(0x108)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x2006aa(0x11d)]('Unknown\x20flag\x20--'+_0x7ee75+_0x2006aa(0x105)+CLI_BIN_NAME+'\x20'+_0xc39d4c[_0x2006aa(0x119)]+'\x20'+_0xc39d4c['command']+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0xc39d4c[_0x2006aa(0x119)]+'\x20'+_0xc39d4c[_0x2006aa(0x11b)]+_0x2006aa(0x10b));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a91_0x3729(){var _0xa7dae2=['88hSRaEj','21323fmRpIv','27MVnWhe','1820488MMkfzg','5282277oOPQoH','587838BNvBxy','6ngEhSe','14TAwhjp','3765936yvvRtB','389170FSMGwk','16joLGnM','2430920JJiGkF'];a91_0x3729=function(){return _0xa7dae2;};return a91_0x3729();}(function(_0x1faa0e,_0x30b8dc){var _0x570274=a91_0x301b,_0x5570b0=_0x1faa0e();while(!![]){try{var _0x36e9e1=-parseInt(_0x570274(0x19b))/0x1*(-parseInt(_0x570274(0x19a))/0x2)+-parseInt(_0x570274(0x19f))/0x3*(-parseInt(_0x570274(0x198))/0x4)+-parseInt(_0x570274(0x199))/0x5*(parseInt(_0x570274(0x1a0))/0x6)+-parseInt(_0x570274(0x1a1))/0x7*(parseInt(_0x570274(0x19d))/0x8)+-parseInt(_0x570274(0x19c))/0x9*(parseInt(_0x570274(0x197))/0xa)+-parseInt(_0x570274(0x19e))/0xb+parseInt(_0x570274(0x1a2))/0xc;if(_0x36e9e1===_0x30b8dc)break;else _0x5570b0['push'](_0x5570b0['shift']());}catch(_0x480abc){_0x5570b0['push'](_0x5570b0['shift']());}}}(a91_0x3729,0x79798));function a91_0x301b(_0x34fb14,_0x35c330){_0x34fb14=_0x34fb14-0x197;var _0x3729b4=a91_0x3729();var _0x301b22=_0x3729b4[_0x34fb14];return _0x301b22;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2fad4b,_0x3f3a07){const _0x444033=a92_0x3107,_0x43d2f6=_0x2fad4b();while(!![]){try{const _0x1eedd0=-parseInt(_0x444033(0x1f8))/0x1+-parseInt(_0x444033(0x20e))/0x2*(parseInt(_0x444033(0x1f1))/0x3)+-parseInt(_0x444033(0x206))/0x4+parseInt(_0x444033(0x209))/0x5+parseInt(_0x444033(0x20f))/0x6+-parseInt(_0x444033(0x208))/0x7*(-parseInt(_0x444033(0x203))/0x8)+parseInt(_0x444033(0x1fd))/0x9;if(_0x1eedd0===_0x3f3a07)break;else _0x43d2f6['push'](_0x43d2f6['shift']());}catch(_0x1fa7ad){_0x43d2f6['push'](_0x43d2f6['shift']());}}}(a92_0x4e3a,0x4f0de));function a92_0x3107(_0x26e033,_0x2eec41){_0x26e033=_0x26e033-0x1f0;const _0x4e3ab1=a92_0x4e3a();let _0x310754=_0x4e3ab1[_0x26e033];return _0x310754;}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x82b412,_0x51ed18,_0x1b0ecf){const _0x4a4cb8=a92_0x3107,_0x56385d=buildConfirmationContext(_0x82b412,_0x51ed18,_0x1b0ecf),_0x524ac8=[_0x4a4cb8(0x20c)+_0x56385d[_0x4a4cb8(0x200)]];return _0x56385d['description']&&_0x524ac8['push'](_0x4a4cb8(0x211)+_0x56385d['description']),_0x56385d['affectedRecords']&&_0x524ac8[_0x4a4cb8(0x20a)]('\x20\x20\x20Affected:\x20'+_0x56385d[_0x4a4cb8(0x1f4)]),_0x524ac8[_0x4a4cb8(0x20a)](_0x4a4cb8(0x214)),_0x524ac8;}export function reconstructCommandArgv(_0x538acc,_0x115ae6){const _0x17b5bd=a92_0x3107,_0x180447=[CLI_BIN_NAME,_0x538acc[_0x17b5bd(0x201)],_0x538acc[_0x17b5bd(0x205)]];for(const [_0x196a97,_0x46ba9b]of Object[_0x17b5bd(0x1f3)](_0x115ae6)){if(_0x46ba9b===!![])_0x180447[_0x17b5bd(0x20a)]('--'+_0x196a97);else _0x46ba9b!==![]&&_0x46ba9b!==undefined&&_0x46ba9b!==''&&_0x180447[_0x17b5bd(0x20a)]('--'+_0x196a97+'\x20'+JSON[_0x17b5bd(0x204)](_0x46ba9b));}return _0x180447['push'](_0x17b5bd(0x1fa)),_0x180447[_0x17b5bd(0x1ff)]('\x20');}function a92_0x4e3a(){const _0x2d2c65=['name','8214AKMVjg','476616oRmUUX','code','\x20\x20\x20','cron=','title=','\x20\x20\x20Continue?\x20[y/N]\x20','channel','cron','code=','447xDPYNE','params=','entries','affectedRecords','id=','name=','channel=','623176pfcGMl','kind','--yes','params','title','14820012EIRMvQ','scheduled-at=','join','commandLabel','service','scheduled-at','142568kzyFDn','stringify','command','1067876QLdukJ','kind=','14HIRonq','320740KvWzni','push','schedule-id','⚠\x20\x20High-risk\x20operation:\x20'];a92_0x4e3a=function(){return _0x2d2c65;};return a92_0x4e3a();}function buildConfirmationContext(_0x1113a6,_0x3cae0c,_0xcb4f4f){const _0x53b033=extractAffectedRecords(_0xcb4f4f);return{'commandLabel':_0x3cae0c,'description':_0x1113a6['description'],'affectedRecords':_0x53b033};}function extractAffectedRecords(_0x47f199){const _0x27ac94=a92_0x3107,_0x573a95=[];if(_0x47f199['code'])_0x573a95[_0x27ac94(0x20a)](_0x27ac94(0x1f0)+_0x47f199[_0x27ac94(0x210)]);if(_0x47f199['id'])_0x573a95[_0x27ac94(0x20a)](_0x27ac94(0x1f5)+_0x47f199['id']);if(_0x47f199[_0x27ac94(0x20b)])_0x573a95[_0x27ac94(0x20a)]('schedule-id='+_0x47f199[_0x27ac94(0x20b)]);if(_0x47f199[_0x27ac94(0x20d)])_0x573a95['push'](_0x27ac94(0x1f6)+_0x47f199['name']);if(_0x47f199[_0x27ac94(0x1fc)])_0x573a95[_0x27ac94(0x20a)](_0x27ac94(0x213)+_0x47f199[_0x27ac94(0x1fc)]);if(_0x47f199['kind'])_0x573a95[_0x27ac94(0x20a)](_0x27ac94(0x207)+_0x47f199[_0x27ac94(0x1f9)]);if(_0x47f199[_0x27ac94(0x216)])_0x573a95[_0x27ac94(0x20a)](_0x27ac94(0x212)+_0x47f199[_0x27ac94(0x216)]);if(_0x47f199[_0x27ac94(0x202)])_0x573a95[_0x27ac94(0x20a)](_0x27ac94(0x1fe)+_0x47f199[_0x27ac94(0x202)]);if(_0x47f199[_0x27ac94(0x215)])_0x573a95[_0x27ac94(0x20a)](_0x27ac94(0x1f7)+_0x47f199[_0x27ac94(0x215)]);if(_0x47f199['params'])_0x573a95[_0x27ac94(0x20a)](_0x27ac94(0x1f2)+_0x47f199[_0x27ac94(0x1fb)]);return _0x573a95['length']>0x0?_0x573a95[_0x27ac94(0x1ff)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f5d55,_0x13c494){const _0x50679d=a93_0x1c85,_0x24e0ae=_0x1f5d55();while(!![]){try{const _0x19826e=parseInt(_0x50679d(0x1ef))/0x1+parseInt(_0x50679d(0x1f0))/0x2*(-parseInt(_0x50679d(0x1e5))/0x3)+-parseInt(_0x50679d(0x1df))/0x4+-parseInt(_0x50679d(0x1e6))/0x5+-parseInt(_0x50679d(0x1e4))/0x6*(parseInt(_0x50679d(0x1e1))/0x7)+parseInt(_0x50679d(0x1e8))/0x8*(parseInt(_0x50679d(0x1ed))/0x9)+-parseInt(_0x50679d(0x1de))/0xa*(-parseInt(_0x50679d(0x1ea))/0xb);if(_0x19826e===_0x13c494)break;else _0x24e0ae['push'](_0x24e0ae['shift']());}catch(_0xd3e2c5){_0x24e0ae['push'](_0x24e0ae['shift']());}}}(a93_0x3a3b,0xc5be8));function a93_0x1c85(_0x4a6dc1,_0x5bcac7){_0x4a6dc1=_0x4a6dc1-0x1de;const _0x3a3bf4=a93_0x3a3b();let _0x1c8540=_0x3a3bf4[_0x4a6dc1];return _0x1c8540;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x4c0c92){const _0x4b2a63=a93_0x1c85;if(_0x4c0c92 instanceof LovrabetError){const _0x41e5ed=userFacingLovrabetMessage(_0x4c0c92),_0x29b202=_0x4c0c92,_0x584856=createRateLimitError({'status':_0x29b202[_0x4b2a63(0x1eb)],'errorCode':_0x29b202['code'],'message':_0x41e5ed,'retryAfter':readRetryAfter(_0x29b202[_0x4b2a63(0x1e7)]?.[_0x4b2a63(0x1e2)])??readRetryAfterSeconds(_0x29b202[_0x4b2a63(0x1e7)])});return _0x584856??CliErrors['validation'](_0x41e5ed);}return _0x4c0c92;}function a93_0x3a3b(){const _0x1e0c1c=['trim','1511184rOsfnZ','1422376YcRKPH','60SsnAYD','5438496rIorsl','message','145166FhJgqA','headers','description','246VaKfIA','6TeSHYH','6287660JHjCuB','response','16dIyOuW','stringify','5420536IMAfUj','status','string','5543595iTdjOh'];a93_0x3a3b=function(){return _0x1e0c1c;};return a93_0x3a3b();}function userFacingLovrabetMessage(_0x6ea8a){const _0x3ee936=a93_0x1c85,_0x46716f=_0x6ea8a[_0x3ee936(0x1e3)];if(_0x46716f!==undefined&&_0x46716f!==null){if(typeof _0x46716f===_0x3ee936(0x1ec)&&_0x46716f[_0x3ee936(0x1ee)]())return _0x46716f[_0x3ee936(0x1ee)]();try{return JSON[_0x3ee936(0x1e9)](_0x46716f);}catch{}}return _0x6ea8a[_0x3ee936(0x1e0)];}
|