@lovrabet/lovrabet-cli 2.1.14 → 2.1.15
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/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/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/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/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/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.js +1 -1
- package/lib/help.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/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/commands/app-config/shared.js +0 -1
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a74_0x4cfa1f=a74_0x1e52;(function(_0x300e81,_0x3f840f){const _0x484998=a74_0x1e52,_0x31c833=_0x300e81();while(!![]){try{const _0x3de05c=-parseInt(_0x484998(0x156))/0x1+-parseInt(_0x484998(0x159))/0x2+-parseInt(_0x484998(0x175))/0x3*(-parseInt(_0x484998(0x18c))/0x4)+-parseInt(_0x484998(0x158))/0x5+-parseInt(_0x484998(0x168))/0x6+-parseInt(_0x484998(0x17f))/0x7+parseInt(_0x484998(0x187))/0x8;if(_0x3de05c===_0x3f840f)break;else _0x31c833['push'](_0x31c833['shift']());}catch(_0x1d0d07){_0x31c833['push'](_0x31c833['shift']());}}}(a74_0x1155,0xb5d17));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a74_0x4cfa1f(0x193)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a74_0x4cfa1f(0x15d)];function resolveConfigPath(_0x145218){for(const _0x3fea45 of CONFIG_NAMES){const _0x8ec8c9=resolve(_0x145218,_0x3fea45);if(existsSync(_0x8ec8c9))return _0x8ec8c9;}return undefined;}export function resolveWriteConfigPath(_0x4c7245){const _0x4ce9a5=a74_0x4cfa1f,_0xebeaa1=_0x4c7245===_0x4ce9a5(0x17a)?process[_0x4ce9a5(0x161)]():homedir(),_0x5bb1ec=resolveConfigPath(_0xebeaa1);return _0x5bb1ec??resolve(_0xebeaa1,NEW_CONFIG_NAME);}export function readConfigFile(_0x19bb4f){const _0x1aba71=a74_0x4cfa1f;try{if(existsSync(_0x19bb4f)){const _0x39ec4c=readFileSync(_0x19bb4f,{'encoding':_0x1aba71(0x174)});if(_0x39ec4c){const _0x3b77d1=JSON[_0x1aba71(0x179)](_0x39ec4c);return migrateOnlineEnv(_0x19bb4f,_0x3b77d1),_0x3b77d1;}}}catch{}return{};}function migrateOnlineEnv(_0x56232e,_0x455fd8){const _0x26d91b=a74_0x4cfa1f;let _0xc1f166=![];_0x455fd8['env']==='online'&&(_0x455fd8['env']=_0x26d91b(0x18d),_0xc1f166=!![]);if(_0x455fd8[_0x26d91b(0x17c)]&&typeof _0x455fd8[_0x26d91b(0x17c)]===_0x26d91b(0x190))for(const _0x24a629 of Object[_0x26d91b(0x189)](_0x455fd8['apps'])){_0x24a629&&_0x24a629[_0x26d91b(0x154)]==='online'&&(_0x24a629[_0x26d91b(0x154)]=_0x26d91b(0x18d),_0xc1f166=!![]);}if(_0xc1f166)try{writeConfigFile(_0x56232e,_0x455fd8);}catch{}}export function writeConfigFile(_0xafa19c,_0x15de57){const _0x102262=a74_0x4cfa1f,_0x349f23=dirname(_0xafa19c);!existsSync(_0x349f23)&&mkdirSync(_0x349f23,{'recursive':!![]});const _0x24bfe0=_0xafa19c+_0x102262(0x152);try{writeFileSync(_0x24bfe0,JSON[_0x102262(0x17e)](_0x15de57,null,0x2)+'\x0a',{'encoding':_0x102262(0x174),'mode':0x180});try{renameSync(_0x24bfe0,_0xafa19c);}catch(_0x44e76a){if(_0x44e76a[_0x102262(0x180)]===_0x102262(0x186)||_0x44e76a[_0x102262(0x180)]===_0x102262(0x191)||_0x44e76a[_0x102262(0x180)]===_0x102262(0x15f)){writeFileSync(_0xafa19c,JSON[_0x102262(0x17e)](_0x15de57,null,0x2)+'\x0a',{'encoding':_0x102262(0x174)});try{unlinkSync(_0x24bfe0);}catch{}}else throw _0x44e76a;}}catch(_0x320be9){try{unlinkSync(_0x24bfe0);}catch{}throw _0x320be9;}}export function isNonInteractiveMode(_0x42116b){const _0x130117=a74_0x4cfa1f;return!!(_0x42116b['nonInteractive']||_0x42116b['ci']||productEnvNames('CI')[_0x130117(0x162)](_0x685d06=>process.env[_0x685d06]==='true')||process.env.CI==='true'||!process['stdout'][_0x130117(0x166)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x23618e=a74_0x4cfa1f;if(!process[_0x23618e(0x160)][_0x23618e(0x166)])return![];try{const _0x45680c=process['stdin'][_0x23618e(0x16d)];return process[_0x23618e(0x160)]['setRawMode'](!![]),process[_0x23618e(0x160)][_0x23618e(0x16c)](_0x45680c??![]),!![];}catch{return![];}}export async function createContext(_0x1b09be){const _0xceb6c9=a74_0x4cfa1f,_0x8c5366=readRawConfig(),_0x14d633=buildConfig(_0x8c5366,_0x1b09be);await initGlobalEnvironment(_0x14d633);const {getUserDomain:_0x3c3b2b,getApiDomain:_0x17fca8}=await import('./constant/domain.js'),_0x1cda0d={'apiDomain':_0x17fca8(),'userDomain':_0x3c3b2b()},_0x461719=await buildAuth(_0x14d633);logger[_0xceb6c9(0x170)](process['cwd']());const _0x2cb496=(CLI_BIN_NAME+'\x20'+process[_0xceb6c9(0x183)][_0xceb6c9(0x164)](0x2)['join']('\x20'))['trim']();logger[_0xceb6c9(0x17b)](_0x2cb496);const _0x5bfb70=isNonInteractiveMode(_0x1b09be);return{'config':_0x14d633,'auth':_0x461719,'logger':logger,'env':_0x1cda0d,'nonInteractive':_0x5bfb70};}export function buildConfigFromFlags(_0x4c197e){return buildConfig(readRawConfig(),_0x4c197e);}export function getLocalAppAliases(_0x482a77){const _0x34e3fb=a74_0x4cfa1f;return _0x482a77['apps']&&typeof _0x482a77['apps']===_0x34e3fb(0x190)?_0x482a77[_0x34e3fb(0x17c)]:{};}export function resolveLocalAppAliasCode(_0x1c2508,_0x236d06){const _0x4f1529=a74_0x4cfa1f;if(!_0x236d06)return undefined;const _0x5717e9=getLocalAppAliases(_0x1c2508)[_0x236d06],_0x57b134=_0x5717e9?.[_0x4f1529(0x176)];return typeof _0x57b134===_0x4f1529(0x16f)&&_0x57b134[_0x4f1529(0x184)]()?_0x57b134[_0x4f1529(0x184)]():undefined;}export function readAppCodeFromConfig(){const _0x31d266=a74_0x4cfa1f,_0x1f29b8=readRawConfig(),_0x229179=_0x1f29b8['appcode']??_0x1f29b8[_0x31d266(0x173)];if(typeof _0x229179===_0x31d266(0x16f)&&_0x229179['trim']())return _0x229179['trim']();const _0x197aed=resolveLocalAppAliasCode(_0x1f29b8,typeof _0x1f29b8[_0x31d266(0x16e)]===_0x31d266(0x16f)?_0x1f29b8[_0x31d266(0x16e)]:undefined);if(_0x197aed)return _0x197aed;const _0x168347=normalizeEnv(String(_0x1f29b8[_0x31d266(0x154)]||_0x31d266(0x18d))),_0x18736d=isDaily(_0x168347)?_0x31d266(0x153):isDev(_0x168347)?'development':_0x31d266(0x18d),_0xf44fe9=resolveCachedAppCode(typeof _0x1f29b8[_0x31d266(0x16e)]==='string'?_0x1f29b8['defaultApp']:undefined,_0x18736d,typeof _0x1f29b8[_0x31d266(0x177)]===_0x31d266(0x16f)?_0x1f29b8[_0x31d266(0x177)]:undefined);if(_0xf44fe9)return _0xf44fe9;const _0x6d2aaa=Object[_0x31d266(0x189)](getLocalAppAliases(_0x1f29b8))[_0x31d266(0x16b)](_0x1407fe=>_0x1407fe?.[_0x31d266(0x176)]);return typeof _0x6d2aaa?.['appcode']===_0x31d266(0x16f)&&_0x6d2aaa[_0x31d266(0x176)][_0x31d266(0x184)]()?_0x6d2aaa[_0x31d266(0x176)][_0x31d266(0x184)]():undefined;}export function readScopedConfig(_0x556f4c){const _0x323096=a74_0x4cfa1f,_0x500422=_0x556f4c[_0x323096(0x14f)]?_0x323096(0x14f):_0x323096(0x17a);return readConfigFile(resolveWriteConfigPath(_0x500422));}export function writeScopedConfig(_0x5de1d1,_0x25e828){const _0x1601ac=a74_0x4cfa1f,_0x58bae7=_0x25e828['global']?_0x1601ac(0x14f):_0x1601ac(0x17a);writeConfigFile(resolveWriteConfigPath(_0x58bae7),_0x5de1d1);}export async function initGlobalEnvironment(_0x164e1a){const _0x3e6d8e=a74_0x4cfa1f,{initEnv:_0xe97fcc}=await import(_0x3e6d8e(0x192));_0xe97fcc(_0x164e1a['env']);const {initDomains:_0x1f11d1}=await import(_0x3e6d8e(0x15e));_0x1f11d1({'apiDomain':_0x164e1a['raw'][_0x3e6d8e(0x182)]||_0x164e1a[_0x3e6d8e(0x167)][_0x3e6d8e(0x185)]||undefined,'userDomain':_0x164e1a['raw'][_0x3e6d8e(0x14e)]||undefined,'runtimeDomain':_0x164e1a[_0x3e6d8e(0x167)]['runtimeDomain']||undefined,'skillHubDomain':_0x164e1a[_0x3e6d8e(0x167)][_0x3e6d8e(0x150)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x57935c){const _0x308ffe=a74_0x4cfa1f;if(!existsSync(_0x57935c))return{'status':_0x308ffe(0x15c)};try{const _0x4f60d8=readFileSync(_0x57935c,{'encoding':'utf8'});if(!_0x4f60d8?.[_0x308ffe(0x184)]())return{'status':_0x308ffe(0x16a)};const _0xdb624d=JSON[_0x308ffe(0x179)](_0x4f60d8);return{'status':'ok','data':_0xdb624d};}catch(_0x42814b){return{'status':'error','message':_0x42814b instanceof Error?_0x42814b[_0x308ffe(0x17d)]:String(_0x42814b)};}}export function loadRawConfigLayers(_0x10ff12){const _0x2efd56=a74_0x4cfa1f;let _0xc4e61f={},_0x250841={},_0xae65f2,_0x357683;try{_0xae65f2=resolveConfigPath(homedir());if(_0xae65f2){const _0x2756eb=readFileSync(_0xae65f2,{'encoding':'utf8'});if(_0x2756eb)_0xc4e61f=JSON['parse'](_0x2756eb);}}catch{}try{const _0x39d974=_0x10ff12||process['cwd']();_0x357683=resolveConfigPath(_0x39d974);if(_0x357683){const _0x3fa883=readFileSync(_0x357683,{'encoding':_0x2efd56(0x174)});if(_0x3fa883)_0x250841=JSON[_0x2efd56(0x179)](_0x3fa883);}}catch{}return{'globalPath':_0xae65f2,'projectPath':_0x357683,'globalConfig':_0xc4e61f,'projectConfig':_0x250841};}function a74_0x1155(){const _0x5a99ab=['some','maxRisk','slice','inherit','isTTY','raw','3817032azgJbG','top-level','empty','find','setRawMode','isRaw','defaultApp','string','setLogPath','high-risk-write','explicit','app','utf8','25911vlZBwm','appcode','accessKey','FORMAT','parse','project','setRawCommand','apps','message','stringify','8848665KjVZmH','code','ACCESS_KEY','apiDomain','argv','trim','host','EPERM','28691632SAekmx','locale','values','true','write','556DHnXbA','production','format','globalConfig','object','EXDEV','./constant/env.js','configFileNames','projectConfig','APPCODE','userDomain','global','skillHubDomain','PAGE_SIZE','.tmp','daily','env','development','952064VadGyQ','local-alias','1885090JRFbVj','1625842zwEyea','authRequired','cache','missing','newConfigFileName','./constant/domain.js','EACCES','stdin','cwd'];a74_0x1155=function(){return _0x5a99ab;};return a74_0x1155();}function mergeRawConfigLayers(_0x2b8e38){const _0x1bad2b=a74_0x4cfa1f,{globalConfig:_0x42f995,projectConfig:_0x1a46e6}=_0x2b8e38;if(_0x1a46e6[_0x1bad2b(0x165)]===![]){const _0x4ec538={..._0x1a46e6};return delete _0x4ec538[_0x1bad2b(0x165)],_0x4ec538;}const _0x5301cd={..._0x42f995,..._0x1a46e6};if(_0x1bad2b(0x16e)in _0x1a46e6)_0x5301cd[_0x1bad2b(0x16e)]=_0x1a46e6[_0x1bad2b(0x16e)];else _0x42f995[_0x1bad2b(0x16e)]&&(_0x5301cd[_0x1bad2b(0x16e)]=_0x42f995['defaultApp']);return _0x5301cd;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3e3e54){return mergeRawConfigLayers(loadRawConfigLayers(_0x3e3e54));}export function readRawConfigWithLayers(_0x1a9d77){const _0x1acd35=loadRawConfigLayers(_0x1a9d77);return{'config':mergeRawConfigLayers(_0x1acd35),'layers':_0x1acd35};}export function resolveDefaultAppSource(_0x36ae17){const _0x5efb55=a74_0x4cfa1f;if('defaultApp'in _0x36ae17[_0x5efb55(0x194)])return _0x5efb55(0x17a);if(_0x36ae17['projectConfig']['inherit']===![])return null;if(_0x36ae17[_0x5efb55(0x18f)][_0x5efb55(0x16e)])return'global';return null;}function a74_0x1e52(_0x451c34,_0x4dfc8c){_0x451c34=_0x451c34-0x14d;const _0x1155aa=a74_0x1155();let _0x1e5294=_0x1155aa[_0x451c34];return _0x1e5294;}function buildConfig(_0x293887,_0x59d9e1){const _0x335ead=a74_0x4cfa1f,_0xa4c1c1=_0x293887[_0x335ead(0x16e)]||undefined,_0x38b56e=_0x59d9e1[_0x335ead(0x173)]||env('APP')||undefined,_0x48b423=_0x38b56e||_0xa4c1c1||undefined,_0x38c122=env(_0x335ead(0x181))||_0x293887[_0x335ead(0x177)]||undefined,_0x30515d=_0x59d9e1[_0x335ead(0x154)]||env('ENV')||_0x293887[_0x335ead(0x154)]||DEFAULT_CONFIG_VALUES[_0x335ead(0x154)],_0x207a94=normalizeEnv(String(_0x30515d)),_0x69908a=isDaily(_0x207a94)?_0x335ead(0x153):isDev(_0x207a94)?_0x335ead(0x155):_0x335ead(0x18d),_0x597c82=typeof _0x59d9e1[_0x335ead(0x176)]==='string'?_0x59d9e1['appcode']:undefined,_0x29b44e=env(_0x335ead(0x14d)),_0x4eacc1=_0x38b56e?undefined:_0x293887['appcode']||_0x293887[_0x335ead(0x173)]||undefined,_0x64fb41=_0x38b56e||(_0x4eacc1?undefined:_0xa4c1c1),_0x8b22cf=resolveLocalAppAliasCode(_0x293887,_0x64fb41),_0x5d95ab=resolveCachedAppCode(_0x64fb41,_0x69908a,_0x38c122),_0x3a5c82=_0x597c82||_0x29b44e||_0x4eacc1||_0x8b22cf||_0x5d95ab||undefined,_0x1b2546=_0x597c82?_0x335ead(0x172):_0x29b44e?_0x335ead(0x154):_0x4eacc1?_0x335ead(0x169):_0x8b22cf?_0x335ead(0x157):_0x5d95ab?_0x335ead(0x15b):undefined,_0x11b8b9=_0x293887[_0x335ead(0x188)]||DEFAULT_CONFIG_VALUES[_0x335ead(0x188)],_0x1cd01d=undefined,_0x3a6681=_0x59d9e1[_0x335ead(0x18e)]||env(_0x335ead(0x178))||_0x293887['format'],_0x573cfc=normalizeLegacyOutputFormat(_0x3a6681),_0x54508b=env(_0x335ead(0x151))||_0x293887['pageSize'],_0x35f958=_0x54508b?Number(_0x54508b)||undefined:undefined,_0xef2326=_0x293887['riskLevel']||_0x293887[_0x335ead(0x163)],_0x20c9b9=_0xef2326==='read'||_0xef2326===_0x335ead(0x18b)||_0xef2326===_0x335ead(0x171)?_0xef2326:DEFAULT_CONFIG_VALUES['riskLevel'],_0x48c77b=env('VERBOSE'),_0x185f4f=_0x48c77b==='1'||_0x48c77b===_0x335ead(0x18a);return{'appCode':typeof _0x3a5c82===_0x335ead(0x16f)&&_0x3a5c82[_0x335ead(0x184)]()?_0x3a5c82[_0x335ead(0x184)]():undefined,'appCodeSource':_0x1b2546,'env':_0x69908a,'locale':_0x11b8b9,'cookie':_0x1cd01d,'accessKey':_0x38c122,'format':_0x573cfc,'pageSize':_0x35f958,'riskLevel':_0x20c9b9,'verbose':_0x185f4f,'defaultApp':_0xa4c1c1,'currentApp':typeof _0x48b423===_0x335ead(0x16f)?_0x48b423:undefined,'raw':_0x293887};}function env(_0x103833){return productEnv(_0x103833);}async function buildAuth(_0x2ad18e){const _0x168d7e=a74_0x4cfa1f,_0x1c8858='',_0x27e044=!!_0x2ad18e[_0x168d7e(0x177)];return{'cookie':_0x1c8858,'isLoggedIn':_0x27e044,async 'getOrLogin'(){const _0x1966fc=_0x168d7e;if(_0x27e044)return _0x1c8858;throw CliErrors[_0x1966fc(0x15a)]();}};}
|
|
1
|
+
const a73_0x98d7f3=a73_0x9218;(function(_0x28d52d,_0x5e0684){const _0x16be7e=a73_0x9218,_0x1541ff=_0x28d52d();while(!![]){try{const _0x872aff=parseInt(_0x16be7e(0x1d7))/0x1*(parseInt(_0x16be7e(0x1e2))/0x2)+parseInt(_0x16be7e(0x1b5))/0x3+-parseInt(_0x16be7e(0x1b8))/0x4+-parseInt(_0x16be7e(0x1be))/0x5*(-parseInt(_0x16be7e(0x1a0))/0x6)+-parseInt(_0x16be7e(0x1c2))/0x7+parseInt(_0x16be7e(0x1a5))/0x8*(-parseInt(_0x16be7e(0x1c1))/0x9)+parseInt(_0x16be7e(0x1d8))/0xa;if(_0x872aff===_0x5e0684)break;else _0x1541ff['push'](_0x1541ff['shift']());}catch(_0x3e684e){_0x1541ff['push'](_0x1541ff['shift']());}}}(a73_0x303f,0x67601));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a73_0x98d7f3(0x19a)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a73_0x98d7f3(0x1b9)];function resolveConfigPath(_0x853d5e){for(const _0xb4b437 of CONFIG_NAMES){const _0x4c17c5=resolve(_0x853d5e,_0xb4b437);if(existsSync(_0x4c17c5))return _0x4c17c5;}return undefined;}export function resolveWriteConfigPath(_0x3e015a){const _0x297941=a73_0x98d7f3,_0x4a06f3=_0x3e015a===_0x297941(0x1d3)?process[_0x297941(0x1ae)]():homedir(),_0x10b24c=resolveConfigPath(_0x4a06f3);return _0x10b24c??resolve(_0x4a06f3,NEW_CONFIG_NAME);}export function readConfigFile(_0x1e4e56){const _0x1ed090=a73_0x98d7f3;try{if(existsSync(_0x1e4e56)){const _0x1d7f0c=readFileSync(_0x1e4e56,{'encoding':_0x1ed090(0x19d)});if(_0x1d7f0c){const _0x5c89ff=JSON[_0x1ed090(0x1a1)](_0x1d7f0c);return migrateOnlineEnv(_0x1e4e56,_0x5c89ff),_0x5c89ff;}}}catch{}return{};}function migrateOnlineEnv(_0x54118f,_0x438062){const _0x59a6aa=a73_0x98d7f3;let _0x40e018=![];_0x438062[_0x59a6aa(0x1d9)]===_0x59a6aa(0x1a9)&&(_0x438062[_0x59a6aa(0x1d9)]=_0x59a6aa(0x1c5),_0x40e018=!![]);if(_0x438062[_0x59a6aa(0x1aa)]&&typeof _0x438062[_0x59a6aa(0x1aa)]===_0x59a6aa(0x1b4))for(const _0xb2898f of Object[_0x59a6aa(0x1c8)](_0x438062[_0x59a6aa(0x1aa)])){_0xb2898f&&_0xb2898f[_0x59a6aa(0x1d9)]===_0x59a6aa(0x1a9)&&(_0xb2898f['env']=_0x59a6aa(0x1c5),_0x40e018=!![]);}if(_0x40e018)try{writeConfigFile(_0x54118f,_0x438062);}catch{}}export function writeConfigFile(_0x1c63bd,_0x5989d3){const _0x54301c=a73_0x98d7f3,_0x3f7107=dirname(_0x1c63bd);!existsSync(_0x3f7107)&&mkdirSync(_0x3f7107,{'recursive':!![]});const _0x2cb378=_0x1c63bd+_0x54301c(0x1b2);try{writeFileSync(_0x2cb378,JSON[_0x54301c(0x1ab)](_0x5989d3,null,0x2)+'\x0a',{'encoding':_0x54301c(0x19d),'mode':0x180});try{renameSync(_0x2cb378,_0x1c63bd);}catch(_0x137acd){if(_0x137acd[_0x54301c(0x1a6)]===_0x54301c(0x1d2)||_0x137acd['code']===_0x54301c(0x1db)||_0x137acd[_0x54301c(0x1a6)]==='EACCES'){writeFileSync(_0x1c63bd,JSON[_0x54301c(0x1ab)](_0x5989d3,null,0x2)+'\x0a',{'encoding':_0x54301c(0x19d)});try{unlinkSync(_0x2cb378);}catch{}}else throw _0x137acd;}}catch(_0x47f444){try{unlinkSync(_0x2cb378);}catch{}throw _0x47f444;}}export function isNonInteractiveMode(_0x2d7ddd){const _0x34c40b=a73_0x98d7f3;return!!(_0x2d7ddd[_0x34c40b(0x19e)]||_0x2d7ddd['ci']||productEnvNames('CI')['some'](_0x3c7bca=>process.env[_0x3c7bca]==='true')||process.env.CI===_0x34c40b(0x1cc)||!process[_0x34c40b(0x1cd)][_0x34c40b(0x1d0)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1377b7=a73_0x98d7f3;if(!process[_0x1377b7(0x1bb)]['isTTY'])return![];try{const _0x5dcf11=process[_0x1377b7(0x1bb)][_0x1377b7(0x1c9)];return process[_0x1377b7(0x1bb)][_0x1377b7(0x19b)](!![]),process[_0x1377b7(0x1bb)]['setRawMode'](_0x5dcf11??![]),!![];}catch{return![];}}export async function createContext(_0x3ae690){const _0xe5d526=a73_0x98d7f3,_0x442bdc=readRawConfig(),_0x3384ea=buildConfig(_0x442bdc,_0x3ae690);await initGlobalEnvironment(_0x3384ea);const {getUserDomain:_0x3ed485,getApiDomain:_0x1165cd}=await import(_0xe5d526(0x1c0)),_0x38889a={'apiDomain':_0x1165cd(),'userDomain':_0x3ed485()},_0x5a2311=await buildAuth(_0x3384ea);logger[_0xe5d526(0x1bd)](process[_0xe5d526(0x1ae)]());const _0x46a469=(CLI_BIN_NAME+'\x20'+process[_0xe5d526(0x1ad)][_0xe5d526(0x1d6)](0x2)[_0xe5d526(0x1ba)]('\x20'))['trim']();logger[_0xe5d526(0x1cb)](_0x46a469);const _0x597aaf=isNonInteractiveMode(_0x3ae690);return{'config':_0x3384ea,'auth':_0x5a2311,'logger':logger,'env':_0x38889a,'nonInteractive':_0x597aaf};}export function buildConfigFromFlags(_0x597c36){return buildConfig(readRawConfig(),_0x597c36);}export function getLocalAppAliases(_0x16df39){const _0x600178=a73_0x98d7f3;return _0x16df39[_0x600178(0x1aa)]&&typeof _0x16df39['apps']===_0x600178(0x1b4)?_0x16df39[_0x600178(0x1aa)]:{};}export function resolveLocalAppAliasCode(_0x1099a4,_0x59b995){const _0x55849d=a73_0x98d7f3;if(!_0x59b995)return undefined;const _0x29a631=getLocalAppAliases(_0x1099a4)[_0x59b995],_0x3777b4=_0x29a631?.['appcode'];return typeof _0x3777b4===_0x55849d(0x1d4)&&_0x3777b4['trim']()?_0x3777b4[_0x55849d(0x1af)]():undefined;}export function readAppCodeFromConfig(){const _0x28d5ef=a73_0x98d7f3,_0x291096=readRawConfig(),_0xc092ff=_0x291096[_0x28d5ef(0x1a7)]??_0x291096[_0x28d5ef(0x1b3)];if(typeof _0xc092ff==='string'&&_0xc092ff[_0x28d5ef(0x1af)]())return _0xc092ff['trim']();const _0x2ef433=resolveLocalAppAliasCode(_0x291096,typeof _0x291096[_0x28d5ef(0x19f)]==='string'?_0x291096['defaultApp']:undefined);if(_0x2ef433)return _0x2ef433;const _0x1826ee=normalizeEnv(String(_0x291096[_0x28d5ef(0x1d9)]||_0x28d5ef(0x1c5))),_0x262b73=isDaily(_0x1826ee)?'daily':isDev(_0x1826ee)?_0x28d5ef(0x1ac):'production',_0x385178=resolveCachedAppCode(typeof _0x291096['defaultApp']===_0x28d5ef(0x1d4)?_0x291096['defaultApp']:undefined,_0x262b73,typeof _0x291096[_0x28d5ef(0x1cf)]===_0x28d5ef(0x1d4)?_0x291096[_0x28d5ef(0x1cf)]:undefined);if(_0x385178)return _0x385178;const _0x4ee4f3=Object[_0x28d5ef(0x1c8)](getLocalAppAliases(_0x291096))['find'](_0x57b0b8=>_0x57b0b8?.['appcode']);return typeof _0x4ee4f3?.[_0x28d5ef(0x1a7)]===_0x28d5ef(0x1d4)&&_0x4ee4f3[_0x28d5ef(0x1a7)][_0x28d5ef(0x1af)]()?_0x4ee4f3[_0x28d5ef(0x1a7)][_0x28d5ef(0x1af)]():undefined;}function a73_0x303f(){const _0x333ca9=['explicit','authRequired','6lsMwSp','configFileNames','setRawMode','local-alias','utf8','nonInteractive','defaultApp','24lNfmnQ','parse','apiDomain','host','pageSize','125176TspgnJ','code','appcode','./constant/env.js','online','apps','stringify','development','argv','cwd','trim','write','inherit','.tmp','app','object','1831827aUeMlQ','raw','PAGE_SIZE','3146244LBVgSG','newConfigFileName','join','stdin','FORMAT','setLogPath','841420fKiHDY','missing','./constant/domain.js','459BKhHPz','297367rQTMRE','high-risk-write','ACCESS_KEY','production','cache','userDomain','values','isRaw','top-level','setRawCommand','true','stdout','skillHubDomain','accessKey','isTTY','locale','EPERM','project','string','global','slice','105291EqdjOq','4508460UKLZlE','env','APPCODE','EXDEV','VERBOSE','maxRisk','runtimeDomain','projectConfig'];a73_0x303f=function(){return _0x333ca9;};return a73_0x303f();}export function readScopedConfig(_0x5b7fe8){const _0x49e2e1=a73_0x98d7f3,_0x596780=_0x5b7fe8[_0x49e2e1(0x1d5)]?'global':_0x49e2e1(0x1d3);return readConfigFile(resolveWriteConfigPath(_0x596780));}export function writeScopedConfig(_0x11bc0d,_0x58839e){const _0x1f3c87=a73_0x98d7f3,_0x5d4de2=_0x58839e[_0x1f3c87(0x1d5)]?_0x1f3c87(0x1d5):_0x1f3c87(0x1d3);writeConfigFile(resolveWriteConfigPath(_0x5d4de2),_0x11bc0d);}export async function initGlobalEnvironment(_0x4246b4){const _0x2604bb=a73_0x98d7f3,{initEnv:_0x1f5027}=await import(_0x2604bb(0x1a8));_0x1f5027(_0x4246b4[_0x2604bb(0x1d9)]);const {initDomains:_0x1aa25d}=await import(_0x2604bb(0x1c0));_0x1aa25d({'apiDomain':_0x4246b4['raw'][_0x2604bb(0x1a2)]||_0x4246b4[_0x2604bb(0x1b6)][_0x2604bb(0x1a3)]||undefined,'userDomain':_0x4246b4['raw'][_0x2604bb(0x1c7)]||undefined,'runtimeDomain':_0x4246b4[_0x2604bb(0x1b6)][_0x2604bb(0x1de)]||undefined,'skillHubDomain':_0x4246b4[_0x2604bb(0x1b6)][_0x2604bb(0x1ce)]||undefined});}export function getProjectConfigPath(){const _0x308e94=a73_0x98d7f3;return resolveConfigPath(process[_0x308e94(0x1ae)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2a1f5f){const _0x44d55a=a73_0x98d7f3;if(!existsSync(_0x2a1f5f))return{'status':_0x44d55a(0x1bf)};try{const _0x50714b=readFileSync(_0x2a1f5f,{'encoding':'utf8'});if(!_0x50714b?.[_0x44d55a(0x1af)]())return{'status':'empty'};const _0x10b48f=JSON['parse'](_0x50714b);return{'status':'ok','data':_0x10b48f};}catch(_0x28d791){return{'status':'error','message':_0x28d791 instanceof Error?_0x28d791['message']:String(_0x28d791)};}}export function loadRawConfigLayers(_0x3c5338){const _0x379d80=a73_0x98d7f3;let _0x3d3240={},_0x2292c4={},_0x492189,_0x3dca67;try{_0x492189=resolveConfigPath(homedir());if(_0x492189){const _0x171250=readFileSync(_0x492189,{'encoding':'utf8'});if(_0x171250)_0x3d3240=JSON[_0x379d80(0x1a1)](_0x171250);}}catch{}try{const _0x38c06a=_0x3c5338||process[_0x379d80(0x1ae)]();_0x3dca67=resolveConfigPath(_0x38c06a);if(_0x3dca67){const _0x1b407c=readFileSync(_0x3dca67,{'encoding':_0x379d80(0x19d)});if(_0x1b407c)_0x2292c4=JSON[_0x379d80(0x1a1)](_0x1b407c);}}catch{}return{'globalPath':_0x492189,'projectPath':_0x3dca67,'globalConfig':_0x3d3240,'projectConfig':_0x2292c4};}function a73_0x9218(_0x2840fb,_0x3234da){_0x2840fb=_0x2840fb-0x19a;const _0x303f36=a73_0x303f();let _0x921876=_0x303f36[_0x2840fb];return _0x921876;}function mergeRawConfigLayers(_0x3a537e){const _0x3c8968=a73_0x98d7f3,{globalConfig:_0x2bca91,projectConfig:_0x559924}=_0x3a537e;if(_0x559924[_0x3c8968(0x1b1)]===![]){const _0x558912={..._0x559924};return delete _0x558912[_0x3c8968(0x1b1)],_0x558912;}const _0x56449a={..._0x2bca91,..._0x559924};if(_0x3c8968(0x19f)in _0x559924)_0x56449a[_0x3c8968(0x19f)]=_0x559924[_0x3c8968(0x19f)];else _0x2bca91[_0x3c8968(0x19f)]&&(_0x56449a[_0x3c8968(0x19f)]=_0x2bca91['defaultApp']);return _0x56449a;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x194ca){return mergeRawConfigLayers(loadRawConfigLayers(_0x194ca));}export function readRawConfigWithLayers(_0x5a67e7){const _0x1de1a0=loadRawConfigLayers(_0x5a67e7);return{'config':mergeRawConfigLayers(_0x1de1a0),'layers':_0x1de1a0};}export function resolveDefaultAppSource(_0x12fe8e){const _0x387541=a73_0x98d7f3;if('defaultApp'in _0x12fe8e[_0x387541(0x1df)])return'project';if(_0x12fe8e[_0x387541(0x1df)][_0x387541(0x1b1)]===![])return null;if(_0x12fe8e['globalConfig'][_0x387541(0x19f)])return _0x387541(0x1d5);return null;}function buildConfig(_0x329235,_0x1f74d6){const _0x389067=a73_0x98d7f3,_0x2238d3=_0x329235['defaultApp']||undefined,_0x258c32=_0x1f74d6['app']||env('APP')||undefined,_0x2b16b5=_0x258c32||_0x2238d3||undefined,_0x143eae=env(_0x389067(0x1c4))||_0x329235['accessKey']||undefined,_0x2f1a30=_0x1f74d6[_0x389067(0x1d9)]||env('ENV')||_0x329235[_0x389067(0x1d9)]||DEFAULT_CONFIG_VALUES[_0x389067(0x1d9)],_0x4246b9=normalizeEnv(String(_0x2f1a30)),_0x57ad34=isDaily(_0x4246b9)?'daily':isDev(_0x4246b9)?_0x389067(0x1ac):'production',_0x9b1e05=typeof _0x1f74d6[_0x389067(0x1a7)]==='string'?_0x1f74d6[_0x389067(0x1a7)]:undefined,_0x4e6e64=env(_0x389067(0x1da)),_0x4119af=_0x258c32?undefined:_0x329235[_0x389067(0x1a7)]||_0x329235[_0x389067(0x1b3)]||undefined,_0x524e1d=_0x258c32||(_0x4119af?undefined:_0x2238d3),_0x2a9064=resolveLocalAppAliasCode(_0x329235,_0x524e1d),_0x37d535=resolveCachedAppCode(_0x524e1d,_0x57ad34,_0x143eae),_0x218602=_0x9b1e05||_0x4e6e64||_0x4119af||_0x2a9064||_0x37d535||undefined,_0x2e6fbb=_0x9b1e05?_0x389067(0x1e0):_0x4e6e64?'env':_0x4119af?_0x389067(0x1ca):_0x2a9064?_0x389067(0x19c):_0x37d535?_0x389067(0x1c6):undefined,_0x7a9552=_0x329235[_0x389067(0x1d1)]||DEFAULT_CONFIG_VALUES[_0x389067(0x1d1)],_0x56cc85=undefined,_0x122dbd=_0x1f74d6['format']||env(_0x389067(0x1bc))||_0x329235['format'],_0x3c686c=normalizeLegacyOutputFormat(_0x122dbd),_0x31695c=env(_0x389067(0x1b7))||_0x329235[_0x389067(0x1a4)],_0x3d47cd=_0x31695c?Number(_0x31695c)||undefined:undefined,_0x224349=_0x329235['riskLevel']||_0x329235[_0x389067(0x1dd)],_0x189164=_0x224349==='read'||_0x224349===_0x389067(0x1b0)||_0x224349===_0x389067(0x1c3)?_0x224349:DEFAULT_CONFIG_VALUES['riskLevel'],_0x5b4064=env(_0x389067(0x1dc)),_0x73d4d6=_0x5b4064==='1'||_0x5b4064===_0x389067(0x1cc);return{'appCode':typeof _0x218602===_0x389067(0x1d4)&&_0x218602[_0x389067(0x1af)]()?_0x218602['trim']():undefined,'appCodeSource':_0x2e6fbb,'env':_0x57ad34,'locale':_0x7a9552,'cookie':_0x56cc85,'accessKey':_0x143eae,'format':_0x3c686c,'pageSize':_0x3d47cd,'riskLevel':_0x189164,'verbose':_0x73d4d6,'defaultApp':_0x2238d3,'currentApp':typeof _0x2b16b5===_0x389067(0x1d4)?_0x2b16b5:undefined,'raw':_0x329235};}function env(_0x2e50a1){return productEnv(_0x2e50a1);}async function buildAuth(_0x215cae){const _0x21c8f3='',_0x3d5a4f=!!_0x215cae['accessKey'];return{'cookie':_0x21c8f3,'isLoggedIn':_0x3d5a4f,async 'getOrLogin'(){const _0x238675=a73_0x9218;if(_0x3d5a4f)return _0x21c8f3;throw CliErrors[_0x238675(0x1e1)]();}};}
|
package/lib/core/api-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2c1dfa,_0x18ec8f){const _0x3e92e9=a75_0x1fae,_0x246fa4=_0x2c1dfa();while(!![]){try{const _0x391dbe=-parseInt(_0x3e92e9(0x124))/0x1+parseInt(_0x3e92e9(0x18a))/0x2*(-parseInt(_0x3e92e9(0x198))/0x3)+parseInt(_0x3e92e9(0x163))/0x4+-parseInt(_0x3e92e9(0x133))/0x5*(parseInt(_0x3e92e9(0x13c))/0x6)+-parseInt(_0x3e92e9(0x1a7))/0x7+parseInt(_0x3e92e9(0x144))/0x8*(-parseInt(_0x3e92e9(0x122))/0x9)+parseInt(_0x3e92e9(0x147))/0xa*(parseInt(_0x3e92e9(0x164))/0xb);if(_0x391dbe===_0x18ec8f)break;else _0x246fa4['push'](_0x246fa4['shift']());}catch(_0xfd9516){_0x246fa4['push'](_0x246fa4['shift']());}}}(a75_0xc137,0x22fa5));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(_0x5c8c53){_activeAK=_0x5c8c53||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x1cdbd3){const _0x403344=a75_0x1fae;for(const _0x47cc62 of _0x1cdbd3){if(typeof _0x47cc62===_0x403344(0x177)&&_0x47cc62['trim']())return _0x47cc62[_0x403344(0x189)]();}return undefined;}async function decodeResponseBody(_0xb5fa7f){const _0x1c7410=a75_0x1fae;if(typeof _0xb5fa7f[_0x1c7410(0x146)]===_0x1c7410(0x1b6))try{const _0x239250=await _0xb5fa7f[_0x1c7410(0x146)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x239250),'text':_0x239250};}catch{return{'isJson':![],'text':_0x239250[_0x1c7410(0x189)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0xb5fa7f[_0x1c7410(0x16b)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x49975e,_0x495f12,_0x5b1f96){const _0x618d6e=a75_0x1fae,_0x24123f=_0x495f12&&typeof _0x495f12===_0x618d6e(0x1a1)?_0x495f12:{},_0x2b9835=[_0x24123f['status'],_0x24123f[_0x618d6e(0x186)]]['find'](_0xb7c2e0=>Number(_0xb7c2e0)===0x1ad),_0x34a579=createRateLimitError({'status':_0x49975e[_0x618d6e(0x132)]===0x1ad?_0x49975e['status']:_0x2b9835??_0x49975e['status'],'errorCode':firstString(_0x24123f['errorCode'],typeof _0x24123f[_0x618d6e(0x186)]===_0x618d6e(0x177)?_0x24123f['code']:undefined),'message':firstString(_0x24123f[_0x618d6e(0x170)],_0x24123f[_0x618d6e(0x138)],_0x24123f[_0x618d6e(0x19d)],_0x5b1f96),'retryAfter':readRetryAfter(_0x49975e['headers'])??readRetryAfterSeconds(_0x495f12)});if(_0x34a579)throw _0x34a579;}async function apiRequest(_0x319d9c,_0x3ade17={}){const _0x3fde72=a75_0x1fae,{method:method='GET',body:_0x229a25,headers:headers={},timeout:timeout=0x7530}=_0x3ade17,_0x5c1416=_activeAK,_0x5e269c=getRuntimeDomain();if(!_0x5c1416)throw CliErrors[_0x3fde72(0x1ad)](_0x3fde72(0x187)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x271c37=''+_0x5e269c+_0x319d9c,_0x2e88f3={'X-User-AK':_0x5c1416},_0x465b2e=new AbortController(),_0x5d7ff3=setTimeout(()=>_0x465b2e[_0x3fde72(0x174)](),timeout);try{const _0x3df8b8=await fetch(_0x271c37,{'method':method,'headers':{'Content-Type':_0x3fde72(0x168),'X-Invoke-Source':PRODUCT_CONFIG[_0x3fde72(0x159)],..._0x2e88f3,...headers},'body':_0x229a25?JSON[_0x3fde72(0x1ae)](_0x229a25):undefined,'signal':_0x465b2e[_0x3fde72(0x17c)]}),_0x3cb381=await decodeResponseBody(_0x3df8b8);if(!_0x3cb381[_0x3fde72(0x1a4)]){throwIfRateLimited(_0x3df8b8,undefined,_0x3cb381[_0x3fde72(0x146)]);throw CliErrors['apiError'](_0x3fde72(0x180)+_0x3df8b8[_0x3fde72(0x132)]+')',_0x3df8b8['status']>=0x190?_0x3fde72(0x188):undefined);}const _0xf9c39f=_0x3cb381[_0x3fde72(0x13d)];throwIfRateLimited(_0x3df8b8,_0xf9c39f);if(!_0x3df8b8['ok']||_0xf9c39f['success']===![])throw CliErrors['apiError'](_0xf9c39f['errorMsg']||_0xf9c39f[_0x3fde72(0x138)]||'API\x20error:\x20'+_0x3df8b8[_0x3fde72(0x132)],_0xf9c39f[_0x3fde72(0x14e)]?_0x3fde72(0x171)+_0xf9c39f[_0x3fde72(0x14e)]:undefined);return _0xf9c39f;}catch(_0x2624c4){if(_0x2624c4 instanceof Error&&_0x2624c4[_0x3fde72(0x125)]===_0x3fde72(0x12a))throw CliErrors[_0x3fde72(0x1b3)](_0x3fde72(0x158)+_0x271c37);throw _0x2624c4;}finally{clearTimeout(_0x5d7ff3);}}async function apiBinaryRequest(_0x2fc953,_0x3ecff0={}){const _0x56df66=a75_0x1fae,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x3ecff0,_0x3e3d24=_activeAK,_0x20d0c1=getRuntimeDomain();if(!_0x3e3d24)throw CliErrors[_0x56df66(0x1ad)](_0x56df66(0x187)+PRODUCT_CONFIG[_0x56df66(0x16f)]+'.');const _0x1abb3a=''+_0x20d0c1+_0x2fc953,_0x35063f=new AbortController(),_0x28236a=setTimeout(()=>_0x35063f['abort'](),timeout);try{const _0x2b82a7=await fetch(_0x1abb3a,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x56df66(0x159)],'X-User-AK':_0x3e3d24,...headers},'signal':_0x35063f[_0x56df66(0x17c)]});if(!_0x2b82a7['ok']){const _0x46d677=await decodeResponseBody(_0x2b82a7),_0x414295=_0x46d677[_0x56df66(0x13d)]&&typeof _0x46d677['data']==='object'?_0x46d677[_0x56df66(0x13d)]:{},_0x5228a3=firstString(_0x414295[_0x56df66(0x170)],_0x414295[_0x56df66(0x138)],_0x414295[_0x56df66(0x14e)],_0x46d677[_0x56df66(0x146)]);throwIfRateLimited(_0x2b82a7,_0x46d677[_0x56df66(0x13d)],_0x5228a3);throw CliErrors['apiError'](_0x5228a3||'API\x20error:\x20'+_0x2b82a7['status'],_0x56df66(0x153)+_0x1abb3a);}return Buffer[_0x56df66(0x1a6)](await _0x2b82a7['arrayBuffer']());}catch(_0x1d3192){if(_0x1d3192 instanceof Error&&_0x1d3192['name']===_0x56df66(0x12a))throw CliErrors[_0x56df66(0x1b3)](_0x56df66(0x158)+_0x1abb3a);throw _0x1d3192;}finally{clearTimeout(_0x28236a);}}async function apiFormRequest(_0x1beb3c,_0x485b92,_0x22daf0={}){const _0x12a092=a75_0x1fae,{timeout:timeout=0x7530}=_0x22daf0,_0x1e84ff=_activeAK,_0x3ce378=getRuntimeDomain();if(!_0x1e84ff)throw CliErrors[_0x12a092(0x1ad)](_0x12a092(0x187)+PRODUCT_CONFIG[_0x12a092(0x16f)]+'.');const _0x554539=''+_0x3ce378+_0x1beb3c,_0x2bf2f9=new AbortController(),_0x421c34=setTimeout(()=>_0x2bf2f9[_0x12a092(0x174)](),timeout);try{const _0x30dfc9=await fetch(_0x554539,{'method':'POST','headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x12a092(0x159)],'X-User-AK':_0x1e84ff},'body':_0x485b92,'signal':_0x2bf2f9[_0x12a092(0x17c)]}),_0x14150a=await decodeResponseBody(_0x30dfc9);if(!_0x14150a['isJson']){throwIfRateLimited(_0x30dfc9,undefined,_0x14150a[_0x12a092(0x146)]);throw CliErrors['apiError'](_0x12a092(0x180)+_0x30dfc9[_0x12a092(0x132)]+')',_0x30dfc9[_0x12a092(0x132)]>=0x190?_0x12a092(0x188):undefined);}const _0x115213=_0x14150a['data'];throwIfRateLimited(_0x30dfc9,_0x115213);if(!_0x30dfc9['ok']||_0x115213[_0x12a092(0x161)]===![])throw CliErrors['apiError'](_0x115213[_0x12a092(0x170)]||_0x115213[_0x12a092(0x138)]||'API\x20error:\x20'+_0x30dfc9[_0x12a092(0x132)],_0x115213[_0x12a092(0x14e)]?_0x12a092(0x171)+_0x115213['errorCode']:undefined);return _0x115213;}catch(_0x1e5878){if(_0x1e5878 instanceof Error&&_0x1e5878[_0x12a092(0x125)]==='AbortError')throw CliErrors[_0x12a092(0x1b3)](_0x12a092(0x158)+_0x554539);throw _0x1e5878;}finally{clearTimeout(_0x421c34);}}async function toolboxRequest(_0xc55dc9,_0x3210f3,_0x55e84d={}){const _0x1919e1=a75_0x1fae,{method:method=_0x1919e1(0x162),headers:headers={},timeout:timeout=0x7530}=_0x55e84d,_0x1f3c18=_activeAK;if(!_0x1f3c18)throw CliErrors[_0x1919e1(0x1ad)](_0x1919e1(0x187)+PRODUCT_CONFIG[_0x1919e1(0x16f)]+'.');const _0x204355=getApiDomain()[_0x1919e1(0x1b7)](/\/$/,''),_0x3c1ce6=new URL(_0xc55dc9,_0x204355+_0x1919e1(0x1b4));if(_0x3210f3)for(const [_0x19ad7f,_0x3d1b0c]of Object[_0x1919e1(0x166)](_0x3210f3)){_0x3d1b0c!==undefined&&_0x3d1b0c!==null&&_0x3c1ce6[_0x1919e1(0x141)][_0x1919e1(0x19f)](_0x19ad7f,String(_0x3d1b0c));}const _0x507f9b=new AbortController(),_0x3ab914=setTimeout(()=>_0x507f9b[_0x1919e1(0x174)](),timeout);try{const _0x2903e4=await fetch(_0x3c1ce6,{'method':method,'headers':{'Content-Type':_0x1919e1(0x168),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x1f3c18,...headers},'signal':_0x507f9b[_0x1919e1(0x17c)]}),_0x59f003=await decodeResponseBody(_0x2903e4);if(!_0x59f003[_0x1919e1(0x1a4)]){throwIfRateLimited(_0x2903e4,undefined,_0x59f003[_0x1919e1(0x146)]);throw CliErrors[_0x1919e1(0x1b3)](_0x1919e1(0x139)+_0x2903e4[_0x1919e1(0x132)]+')',_0x2903e4[_0x1919e1(0x132)]>=0x190?_0x1919e1(0x188):undefined);}const _0x2e9436=_0x59f003[_0x1919e1(0x13d)];throwIfRateLimited(_0x2903e4,_0x2e9436);if(!_0x2903e4['ok']){const _0x19b518=_0x2e9436&&typeof _0x2e9436===_0x1919e1(0x1a1)?_0x2e9436:{};throw CliErrors['apiError'](_0x19b518[_0x1919e1(0x170)]||_0x19b518[_0x1919e1(0x138)]||_0x1919e1(0x12c)+_0x2903e4[_0x1919e1(0x132)],_0x19b518[_0x1919e1(0x14e)]?_0x1919e1(0x1a0)+_0x19b518['errorCode']:undefined);}if(_0x2e9436&&typeof _0x2e9436===_0x1919e1(0x1a1)&&_0x1919e1(0x161)in _0x2e9436&&typeof _0x2e9436[_0x1919e1(0x161)]===_0x1919e1(0x127)){const _0x1b4c75=_0x2e9436;if(!_0x1b4c75[_0x1919e1(0x161)])throw CliErrors['apiError'](_0x1b4c75[_0x1919e1(0x170)]||_0x1b4c75[_0x1919e1(0x138)]||_0x1919e1(0x1ab),_0x1b4c75['errorCode']?_0x1919e1(0x1a0)+_0x1b4c75[_0x1919e1(0x14e)]:undefined);return _0x1b4c75['data'];}return _0x2e9436;}catch(_0x4794ef){if(_0x4794ef instanceof Error&&_0x4794ef[_0x1919e1(0x125)]===_0x1919e1(0x12a))throw CliErrors[_0x1919e1(0x1b3)](_0x1919e1(0x158)+_0x3c1ce6[_0x1919e1(0x172)]());throw _0x4794ef;}finally{clearTimeout(_0x3ab914);}}async function skillHubJsonRequest(_0x235a4a,_0xdff06d={}){const _0x4b55d4=a75_0x1fae,{method:method=_0x4b55d4(0x162),query:_0x5523a,body:_0xe49f47,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0xdff06d,_0x4aa18a=_activeAK;if(!_0x4aa18a)throw CliErrors[_0x4b55d4(0x1ad)](_0x4b55d4(0x187)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x4a1edd=getSkillHubDomain()[_0x4b55d4(0x1b7)](/\/$/,''),_0x1cad4d=new URL(_0x235a4a,_0x4a1edd+'/');if(_0x5523a)for(const [_0x150e8b,_0x15f05b]of Object['entries'](_0x5523a)){_0x15f05b!==undefined&&_0x15f05b!==null&&_0x1cad4d[_0x4b55d4(0x141)][_0x4b55d4(0x19f)](_0x150e8b,String(_0x15f05b));}const _0x249368=new AbortController(),_0x146910=setTimeout(()=>_0x249368[_0x4b55d4(0x174)](),timeout);try{const _0xe934bb=await fetch(_0x1cad4d[_0x4b55d4(0x172)](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x4b55d4(0x159)],'X-User-AK':_0x4aa18a,...headers},'body':_0xe49f47,'signal':_0x249368[_0x4b55d4(0x17c)]}),_0x632446=await decodeResponseBody(_0xe934bb);if(!_0x632446[_0x4b55d4(0x1a4)]){if(allowNotFound&&_0xe934bb[_0x4b55d4(0x132)]===0x194)return undefined;throwIfRateLimited(_0xe934bb,undefined,_0x632446['text']);throw CliErrors['apiError']('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0xe934bb[_0x4b55d4(0x132)]+')',_0xe934bb['status']>=0x190?_0x4b55d4(0x188):undefined);}const _0x5f22af=_0x632446[_0x4b55d4(0x13d)];throwIfRateLimited(_0xe934bb,_0x5f22af);if(allowNotFound&&isSkillHubNotFoundResponse(_0xe934bb['status'],_0x5f22af))return undefined;const _0x3dc873=!_0xe934bb['ok']||_0x5f22af?.[_0x4b55d4(0x161)]===![]||typeof _0x5f22af?.[_0x4b55d4(0x186)]==='number'&&_0x5f22af[_0x4b55d4(0x186)]>=0x190;if(_0x3dc873)throw CliErrors[_0x4b55d4(0x1b3)](_0x5f22af?.['errorMsg']||_0x5f22af?.[_0x4b55d4(0x138)]||_0x5f22af?.[_0x4b55d4(0x19d)]||_0x4b55d4(0x15e)+_0xe934bb[_0x4b55d4(0x132)],_0x5f22af?.[_0x4b55d4(0x14e)]?_0x4b55d4(0x14b)+_0x5f22af['errorCode']:undefined);return _0x5f22af?.[_0x4b55d4(0x13d)]??_0x5f22af;}catch(_0x231abe){if(_0x231abe instanceof Error&&_0x231abe[_0x4b55d4(0x125)]==='AbortError')throw CliErrors['apiError'](_0x4b55d4(0x158)+_0x1cad4d[_0x4b55d4(0x172)]());throw _0x231abe;}finally{clearTimeout(_0x146910);}}function isSkillHubNotFoundResponse(_0x48da14,_0x4a91e2){const _0x511e89=a75_0x1fae;if(_0x48da14===0x194||_0x4a91e2?.[_0x511e89(0x186)]===0x194)return!![];if(_0x48da14!==0x190&&_0x4a91e2?.[_0x511e89(0x186)]!==0x190)return![];const _0x15debb=[_0x4a91e2?.[_0x511e89(0x19d)],_0x4a91e2?.[_0x511e89(0x138)],_0x4a91e2?.['errorMsg'],_0x4a91e2?.[_0x511e89(0x167)]][_0x511e89(0x12b)](_0x16bec7=>typeof _0x16bec7===_0x511e89(0x177))[_0x511e89(0x145)]('\x20');return/skill not found\b/i[_0x511e89(0x19e)](_0x15debb);}async function skillHubBinaryRequest(_0x5f5dde,_0x1ca256={}){const _0x10683a=a75_0x1fae,{query:_0x47f21d,headers:headers={},timeout:timeout=0x7530}=_0x1ca256,_0x57c69a=_activeAK;if(!_0x57c69a)throw CliErrors[_0x10683a(0x1ad)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x28339c=getSkillHubDomain()[_0x10683a(0x1b7)](/\/$/,''),_0x1d7de2=new URL(_0x5f5dde,_0x28339c+'/');if(_0x47f21d)for(const [_0x501232,_0x3b12e1]of Object[_0x10683a(0x166)](_0x47f21d)){_0x3b12e1!==undefined&&_0x3b12e1!==null&&_0x1d7de2['searchParams'][_0x10683a(0x19f)](_0x501232,String(_0x3b12e1));}const _0x5771ab=new AbortController(),_0x4a04c5=setTimeout(()=>_0x5771ab[_0x10683a(0x174)](),timeout);try{const _0x3c99e8=await fetch(_0x1d7de2[_0x10683a(0x172)](),{'method':_0x10683a(0x162),'headers':{'Accept':_0x10683a(0x17a),'X-Invoke-Source':PRODUCT_CONFIG[_0x10683a(0x159)],'X-User-AK':_0x57c69a,...headers},'signal':_0x5771ab['signal']});if(!_0x3c99e8['ok']){const _0x5af87a=await decodeResponseBody(_0x3c99e8),_0x37ed69=_0x5af87a[_0x10683a(0x13d)]&&typeof _0x5af87a[_0x10683a(0x13d)]==='object'?_0x5af87a[_0x10683a(0x13d)]:{},_0x434c0d=firstString(_0x37ed69[_0x10683a(0x170)],_0x37ed69['message'],_0x37ed69['msg'],_0x37ed69[_0x10683a(0x14e)],_0x5af87a[_0x10683a(0x146)]);throwIfRateLimited(_0x3c99e8,_0x5af87a[_0x10683a(0x13d)],_0x434c0d);throw CliErrors['apiError'](_0x434c0d||'SkillHub\x20API\x20error:\x20'+_0x3c99e8[_0x10683a(0x132)],_0x10683a(0x153)+_0x1d7de2['toString']());}return Buffer[_0x10683a(0x1a6)](await _0x3c99e8[_0x10683a(0x165)]());}catch(_0x15b173){if(_0x15b173 instanceof Error&&_0x15b173[_0x10683a(0x125)]===_0x10683a(0x12a))throw CliErrors[_0x10683a(0x1b3)]('Request\x20timeout:\x20'+_0x1d7de2['toString']());throw _0x15b173;}finally{clearTimeout(_0x4a04c5);}}export async function getBffEndpointContract(_0x3bd2a0,_0x4dbcb5){const _0x142a01=a75_0x1fae;if(_0x4dbcb5===_0x142a01(0x154))throw CliErrors['validation'](_0x142a01(0x17d)+_0x3bd2a0+_0x142a01(0x1b0)+_0x4dbcb5);const _0x1c0f5c=await apiRequest('/client/bff/endpoint/'+encodeURIComponent(_0x3bd2a0)+'/'+encodeURIComponent(_0x4dbcb5)),_0x117349=_0x1c0f5c[_0x142a01(0x13d)];if(!_0x117349||typeof _0x117349!==_0x142a01(0x1a1)||Array[_0x142a01(0x157)](_0x117349)||_0x117349[_0x142a01(0x199)]!==_0x3bd2a0||_0x117349[_0x142a01(0x129)]!==_0x4dbcb5)throw CliErrors[_0x142a01(0x15c)](_0x142a01(0x17d)+_0x3bd2a0+_0x142a01(0x1b0)+_0x4dbcb5);return{'appCode':_0x117349[_0x142a01(0x199)],'functionName':_0x117349[_0x142a01(0x129)],'description':_0x117349[_0x142a01(0x15b)],'version':_0x117349['version'],'gmtModified':_0x117349[_0x142a01(0x137)]};}export async function getSqlQueryInfo(_0x50f214,_0x323feb){const _0x2d3fb9=a75_0x1fae,_0x1b820c=await apiRequest(_0x2d3fb9(0x156),{'method':_0x2d3fb9(0x15a),'body':{'appCode':_0x50f214,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x323feb}}),_0xbc1006=_0x1b820c[_0x2d3fb9(0x13d)],_0x28294d=_0xbc1006&&typeof _0xbc1006===_0x2d3fb9(0x1a1)&&_0x2d3fb9(0x191)in _0xbc1006?_0xbc1006[_0x2d3fb9(0x191)]?.[0x0]:_0xbc1006&&typeof _0xbc1006===_0x2d3fb9(0x1a1)&&_0x2d3fb9(0x1b5)in _0xbc1006?_0xbc1006:undefined;if(!_0x28294d)throw CliErrors['validation']('SQL\x20query\x20not\x20found:\x20'+_0x323feb);return _0x28294d;}function isRemoteAppItem(_0x1ec948){const _0x31a990=a75_0x1fae;return!!_0x1ec948&&typeof _0x1ec948===_0x31a990(0x1a1)&&typeof _0x1ec948[_0x31a990(0x199)]==='string'&&typeof _0x1ec948['appName']===_0x31a990(0x177);}function extractRemoteAppItems(_0xa6b326){const _0x59ecea=a75_0x1fae;if(Array[_0x59ecea(0x157)](_0xa6b326))return _0xa6b326[_0x59ecea(0x12b)](isRemoteAppItem);if(!_0xa6b326||typeof _0xa6b326!==_0x59ecea(0x1a1))throw CliErrors[_0x59ecea(0x1b3)](_0x59ecea(0x192));const _0x24bdb1=_0xa6b326;if(Array[_0x59ecea(0x157)](_0x24bdb1[_0x59ecea(0x191)]))return _0x24bdb1['tableData']['filter'](isRemoteAppItem);if(_0x24bdb1[_0x59ecea(0x13d)]&&typeof _0x24bdb1[_0x59ecea(0x13d)]===_0x59ecea(0x1a1)){const _0x480491=_0x24bdb1[_0x59ecea(0x13d)];if(Array[_0x59ecea(0x157)](_0x480491[_0x59ecea(0x191)]))return _0x480491['tableData'][_0x59ecea(0x12b)](isRemoteAppItem);}throw CliErrors[_0x59ecea(0x1b3)](_0x59ecea(0x15d));}function a75_0x1fae(_0x4a9c47,_0x12101b){_0x4a9c47=_0x4a9c47-0x122;const _0xc1374=a75_0xc137();let _0x1faea1=_0xc1374[_0x4a9c47];return _0x1faea1;}export async function getMyApps(){const _0x4c5f87=a75_0x1fae,_0x3d5891=await apiRequest(_0x4c5f87(0x142));return extractRemoteAppItems(_0x3d5891[_0x4c5f87(0x13d)]);}export async function getLoginUserInfo(){const _0x29bb05=a75_0x1fae,_0x22af89=await apiRequest(_0x29bb05(0x1a9));if(!_0x22af89['data']||typeof _0x22af89['data']!==_0x29bb05(0x1a1)||Array['isArray'](_0x22af89['data']))throw CliErrors[_0x29bb05(0x1b3)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x22af89[_0x29bb05(0x13d)];}export async function listDatasets(_0x1534d7,_0x2a9ec2){const _0x51c9dc=a75_0x1fae,_0x4dce46=await apiRequest(_0x51c9dc(0x195),{'method':'POST','body':{'appCode':_0x1534d7,..._0x2a9ec2?.['code']&&{'code':_0x2a9ec2[_0x51c9dc(0x186)]},..._0x2a9ec2?.[_0x51c9dc(0x125)]&&{'name':_0x2a9ec2['name']}}});return extractList(_0x4dce46[_0x51c9dc(0x13d)]);}export async function getDatasetDetail(_0x234170){const _0x4b8023=a75_0x1fae,_0x12acb0=await apiRequest(_0x4b8023(0x18e)+encodeURIComponent(_0x234170));return _0x12acb0[_0x4b8023(0x13d)];}export async function getDatasetSdkUsageDoc(_0xf98085,_0x310ef1){const _0xb99418=a75_0x1fae,_0x3c4e82=await toolboxRequest(_0xb99418(0x196),{'datasetCode':_0xf98085,'appCode':_0x310ef1});return typeof _0x3c4e82?.[_0xb99418(0x123)]==='string'?_0x3c4e82[_0xb99418(0x123)]:'';}export async function uploadRuntimeFile(_0x123c3e,_0x3507e5){const _0x5191d7=a75_0x1fae,_0x3ad72e=await readFile(_0x3507e5),_0x2a8c47=new FormData();_0x2a8c47[_0x5191d7(0x134)](_0x5191d7(0x199),_0x123c3e),_0x2a8c47[_0x5191d7(0x134)]('file',new Blob([new Uint8Array(_0x3ad72e)]),basename(_0x3507e5));const _0x617a58=await apiFormRequest('/client/uploadFile',_0x2a8c47);return _0x617a58[_0x5191d7(0x13d)];}export async function queryRuntimeFileUrl(_0x2c147b,_0x1574a6={}){const _0xa6f15b=a75_0x1fae,_0x1701ec=await apiRequest(_0xa6f15b(0x13a),{'method':'POST','body':{'filePath':_0x2c147b,'downloadFlag':_0x1574a6[_0xa6f15b(0x155)]??![],..._0x1574a6[_0xa6f15b(0x14d)]?{'longTerm':!![]}:{}}});return _0x1701ec['data'];}export async function recognizeRuntimeOcr(_0x5230b3,_0xcfc876){const _0x1ae392=a75_0x1fae,_0x962233=await apiRequest(_0x1ae392(0x160),{'method':'POST','body':{'appCode':_0x5230b3,'url':_0xcfc876[_0x1ae392(0x14c)],'type':_0xcfc876[_0x1ae392(0x17f)]}});return _0x962233[_0x1ae392(0x13d)];}export async function getRuntimeAppConfigByKey(_0x4acbd2,_0x6e8b1c){const _0x228ca1=a75_0x1fae,_0x1dc878=new URLSearchParams({'appCode':_0x4acbd2,'key':_0x6e8b1c}),_0x13b121=await apiRequest(_0x228ca1(0x175)+_0x1dc878[_0x228ca1(0x172)]());if(!_0x13b121['data'])throw CliErrors['validation'](_0x228ca1(0x16c)+_0x6e8b1c);return _0x13b121['data'];}export async function listRuntimeArtifacts(_0x1f5400,_0x2f2d8a){const _0x4f8d40=a75_0x1fae,_0x5e8f85=new URLSearchParams({'appCode':_0x1f5400});if(_0x2f2d8a?.[_0x4f8d40(0x178)])_0x5e8f85['set'](_0x4f8d40(0x178),_0x2f2d8a['artifactType']);if(_0x2f2d8a?.[_0x4f8d40(0x19c)])_0x5e8f85[_0x4f8d40(0x19f)](_0x4f8d40(0x19c),_0x2f2d8a['source']);if(_0x2f2d8a?.['favorite']!==undefined)_0x5e8f85[_0x4f8d40(0x19f)](_0x4f8d40(0x14f),String(_0x2f2d8a['favorite']));const _0x570531=await apiRequest('/client/artifact/list?'+_0x5e8f85[_0x4f8d40(0x172)]());return Array[_0x4f8d40(0x157)](_0x570531[_0x4f8d40(0x13d)])?_0x570531[_0x4f8d40(0x13d)]:[];}export async function getRuntimeArtifact(_0x3d05f2,_0x4e42e7){const _0x2d9580=a75_0x1fae,_0x2f0b34=await apiRequest(_0x2d9580(0x13b)+_0x3d05f2+_0x2d9580(0x151)+encodeURIComponent(_0x4e42e7));if(!_0x2f0b34[_0x2d9580(0x13d)])throw CliErrors[_0x2d9580(0x15c)](_0x2d9580(0x193)+_0x3d05f2);return _0x2f0b34[_0x2d9580(0x13d)];}export async function createRuntimeArtifact(_0x5b70f7,_0x314324){const _0x3698d5=a75_0x1fae,_0x4f9aff=await apiRequest(_0x3698d5(0x128),{'method':_0x3698d5(0x15a),'body':{'appCode':_0x5b70f7,..._0x314324}});return _0x4f9aff[_0x3698d5(0x13d)];}export async function updateRuntimeArtifact(_0x17a345,_0x421386,_0x54c16f){const _0x17ed27=a75_0x1fae,_0x4bbe24=await apiRequest(_0x17ed27(0x13b)+_0x17a345+_0x17ed27(0x176),{'method':_0x17ed27(0x15a),'body':{'appCode':_0x421386,..._0x54c16f}});return _0x4bbe24[_0x17ed27(0x13d)];}export async function listPersonalBffs(_0x5c9884){const _0x59920f=a75_0x1fae,_0xce407a=await apiRequest(_0x59920f(0x12e)+encodeURIComponent(_0x5c9884));return Array['isArray'](_0xce407a[_0x59920f(0x13d)])?_0xce407a[_0x59920f(0x13d)]:[];}export async function getPersonalBff(_0x4c1fa,_0x33e188){const _0x549080=a75_0x1fae,_0x57401d=await apiRequest(_0x549080(0x190)+_0x4c1fa+_0x549080(0x151)+encodeURIComponent(_0x33e188));if(!_0x57401d[_0x549080(0x13d)])throw CliErrors[_0x549080(0x15c)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x4c1fa);return _0x57401d[_0x549080(0x13d)];}export async function createPersonalBff(_0x2d10e4,_0x67dffe){const _0x302624=a75_0x1fae,_0xfd872e=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x302624(0x15a),'body':{'appCode':_0x2d10e4,..._0x67dffe}});return _0xfd872e[_0x302624(0x13d)];}export async function updatePersonalBff(_0x522e07,_0x3dee54,_0x5f1345){const _0x274d2f=a75_0x1fae,_0xd00a37=await apiRequest(_0x274d2f(0x190)+_0x522e07+_0x274d2f(0x176),{'method':_0x274d2f(0x15a),'body':{'appCode':_0x3dee54,..._0x5f1345}});return _0xd00a37['data'];}export async function executePersonalBff(_0x21fd4e,_0x1e615d,_0x5e6f76){const _0x547304=a75_0x1fae,_0x41eba6=await apiRequest(_0x547304(0x190)+_0x21fd4e+_0x547304(0x148)+encodeURIComponent(_0x1e615d),{'method':_0x547304(0x15a),'body':_0x5e6f76});return _0x41eba6[_0x547304(0x13d)];}export async function listPersonalKnowledgeBaseItems(_0x228639){const _0x523f09=a75_0x1fae,_0x3bcad0=await apiRequest(_0x523f09(0x16a)+encodeURIComponent(_0x228639));return Array[_0x523f09(0x157)](_0x3bcad0[_0x523f09(0x13d)])?_0x3bcad0[_0x523f09(0x13d)]:[];}function a75_0xc137(){const _0xd99e02=['file','all','source','msg','test','set','Toolbox\x20error\x20code:\x20','object','version','skillName','isJson','/download','from','220682jvlcVx','displayName','/client/user/loginUserInfo','packageBase64','Toolbox\x20API\x20error','namespace','authRequired','stringify','/skills',',\x20name=','/api/v1/skills/','PRIVATE','apiError','/api/node-toolbox/','sqlCode','function','replace','scope','9vSFvZF','markdown','230519aPzVCI','name','NAMESPACE_ONLY','boolean','/client/artifact/create','functionName','AbortError','filter','Toolbox\x20API\x20error:\x20','summary','/client/runtime-bff/personal/list?appCode=','toLowerCase','valid','topK','status','105095oxqWnV','append','publishedVersion','/api/cli/v1/skills/','gmtModified','message','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/queryFileUrl','/client/artifact/','30tZjQVm','data','items','effective','skillCode','searchParams','/client/app/my-apps','visibility','177784XdJvHb','join','text','14270rVXSQO','/execute?appCode=','errors','Knowledge-base\x20entry\x20not\x20found:\x20id=','SkillHub\x20error\x20code:\x20','url','longTerm','errorCode','favorite','example','?appCode=','slug','Download\x20failed:\x20','functions','download','/client/sql/query','isArray','Request\x20timeout:\x20','invokeSource','POST','description','validation','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','SkillHub\x20API\x20error:\x20','resolvedSlug','/client/ocr','success','GET','718088BNBFfo','4268OyXosv','arrayBuffer','entries','error','application/json','undefined','/client/knowledge-base/personal/list?appCode=','json','App\x20config\x20not\x20found:\x20key=','personal','company','newConfigFileName','errorMsg','API\x20error\x20code:\x20','toString','Missing\x20Skill\x20package\x20payload.','abort','/client/app-config/getByKey?','/update','string','artifactType','values','application/octet-stream','/client/knowledge-base/personal/create','signal','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','skill','type','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','warnings','ownerPreviewVersion','tags','base64','headlineVersion','code','Configure\x20accessKey\x20in\x20','Check\x20your\x20credentials\x20and\x20try\x20again.','trim','34fxRGAa','map','/client/knowledge-base/search','/publish/validate','/client/dataset/get-driven-data?code=','confirmWarnings','/client/runtime-bff/personal/','tableData','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','Artifact\x20not\x20found:\x20id=','query','/client/dataset/list','api-doc-generator','/client/knowledge-base/personal/','35394oVkXpa','appCode'];a75_0xc137=function(){return _0xd99e02;};return a75_0xc137();}export async function getPersonalKnowledgeBaseItem(_0x5e8bac,_0xb337a6){const _0x1d0f8a=a75_0x1fae,_0x561e07=await apiRequest('/client/knowledge-base/personal/'+_0x5e8bac+_0x1d0f8a(0x151)+encodeURIComponent(_0xb337a6));if(!_0x561e07[_0x1d0f8a(0x13d)])throw CliErrors['validation'](_0x1d0f8a(0x14a)+_0x5e8bac);return _0x561e07[_0x1d0f8a(0x13d)];}export async function createPersonalKnowledgeBaseItem(_0x58792c,_0x5243fa){const _0x2babe5=a75_0x1fae,_0x3cd5c6=await apiRequest(_0x2babe5(0x17b),{'method':_0x2babe5(0x15a),'body':{'appCode':_0x58792c,..._0x5243fa}});return _0x3cd5c6['data'];}export async function updatePersonalKnowledgeBaseItem(_0x2dd38b,_0x3025a1,_0x29d90a){const _0x11d153=a75_0x1fae,_0x26c174=await apiRequest(_0x11d153(0x197)+_0x2dd38b+_0x11d153(0x176),{'method':_0x11d153(0x15a),'body':{'appCode':_0x3025a1,..._0x29d90a}});return _0x26c174['data'];}export async function searchKnowledgeBase(_0xab8952,_0x579337){const _0x4d9813=a75_0x1fae,_0x5bfdff=await apiRequest(_0x4d9813(0x18c),{'method':_0x4d9813(0x15a),'body':{'appCode':_0xab8952,'query':_0x579337[_0x4d9813(0x194)],..._0x579337[_0x4d9813(0x131)]!==undefined?{'topK':_0x579337[_0x4d9813(0x131)]}:{}}});return Array[_0x4d9813(0x157)](_0x5bfdff['data'])?_0x5bfdff[_0x4d9813(0x13d)]:[];}export async function getRuntimeSkillByCode(_0x12f608,_0x3b526f){const _0x554362=a75_0x1fae,_0x6b0e77=await skillHubJsonRequest(_0x554362(0x1b1)+encodeURIComponent(_0x12f608)+'/'+encodeURIComponent(_0x3b526f),{'allowNotFound':!![]});return _0x6b0e77?skillHubRuntimeDetailToRuntimeSkill(_0x6b0e77):undefined;}export async function listRuntimeSkills(_0xda03a0){const _0x460f26=a75_0x1fae,_0x4a367c=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0xda03a0[_0x460f26(0x199)])+_0x460f26(0x1af),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0xda03a0['appCode'],_0x4a367c,_0xda03a0[_0x460f26(0x1b8)]??_0x460f26(0x19b),_0xda03a0[_0x460f26(0x186)]);}export async function listPersonalRuntimeSkills(_0x3404ad){const _0x12129e=a75_0x1fae;return(await listRuntimeSkills({'appCode':_0x3404ad,'scope':_0x12129e(0x16d)}))[_0x12129e(0x16d)];}export async function listCompanyRuntimeSkills(_0x2502f4){const _0x401742=a75_0x1fae;return(await listRuntimeSkills({'appCode':_0x2502f4,'scope':_0x401742(0x16e)}))['company'];}export async function listVisibleRuntimeSkills(_0x186b8c){const _0x2f5660=a75_0x1fae;return(await listRuntimeSkills({'appCode':_0x186b8c,'scope':_0x2f5660(0x19b)}))[_0x2f5660(0x13f)];}export async function createPersonalRuntimeSkill(_0x493f74,_0x3ce6eb,_0x260afa={}){const _0x5b4893=a75_0x1fae;return publishRuntimeSkill(_0x493f74,_0x3ce6eb,{'visibility':_0x5b4893(0x1b2),'confirmWarnings':_0x260afa[_0x5b4893(0x18f)]});}export async function updatePersonalRuntimeSkill(_0xd5b70f,_0x130163,_0x1da036,_0x95adac={}){const _0x59a6fd=a75_0x1fae;return publishRuntimeSkill(_0x130163,{..._0x1da036,'skillCode':_0x1da036[_0x59a6fd(0x140)]??_0xd5b70f},{'visibility':_0x59a6fd(0x1b2),'confirmWarnings':_0x95adac[_0x59a6fd(0x18f)]});}export async function publishCompanyRuntimeSkill(_0x2d9677,_0x41fc10,_0x1d8875={}){const _0x4317d8=a75_0x1fae;return publishRuntimeSkill(_0x2d9677,_0x41fc10,{'visibility':_0x4317d8(0x126),'confirmWarnings':_0x1d8875['confirmWarnings']});}export async function validateRuntimeSkillPublish(_0x21b04f,_0x58318b,_0x3f5430){const _0x206785=a75_0x1fae,_0x4a82a1=buildRuntimeSkillPublishForm(_0x58318b,_0x3f5430[_0x206785(0x143)]),_0x1a72b8=await skillHubJsonRequest(_0x206785(0x136)+encodeURIComponent(_0x21b04f)+_0x206785(0x18d),{'method':_0x206785(0x15a),'body':_0x4a82a1});return{'valid':_0x1a72b8[_0x206785(0x130)]===!![],'errors':Array[_0x206785(0x157)](_0x1a72b8[_0x206785(0x149)])?_0x1a72b8[_0x206785(0x149)]:[],'warnings':Array[_0x206785(0x157)](_0x1a72b8[_0x206785(0x181)])?_0x1a72b8[_0x206785(0x181)]:[],'resolvedSlug':_0x1a72b8[_0x206785(0x15f)],'resolvedVersion':_0x1a72b8['resolvedVersion']};}export async function downloadRuntimeSkillPackage(_0x5be3f5,_0x4e2291,_0x14794c,_0x49bdf3){const _0x208a05=a75_0x1fae;void _0x5be3f5;const _0x3ba82f=_0x49bdf3?_0x208a05(0x136)+encodeURIComponent(_0x14794c)+'/'+encodeURIComponent(_0x4e2291)+'/versions/'+encodeURIComponent(_0x49bdf3)+_0x208a05(0x1a5):_0x208a05(0x136)+encodeURIComponent(_0x14794c)+'/'+encodeURIComponent(_0x4e2291)+_0x208a05(0x1a5);return skillHubBinaryRequest(_0x3ba82f);}async function publishRuntimeSkill(_0x363b25,_0x1549e7,_0x40387c){const _0x334d25=a75_0x1fae,_0x356e78=buildRuntimeSkillPublishForm(_0x1549e7,_0x40387c[_0x334d25(0x143)]),_0x5e9931=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x363b25)+'/publish',{'method':'POST','query':{'confirmWarnings':_0x40387c['confirmWarnings']===!![]?!![]:undefined},'body':_0x356e78});return{'appCode':_0x5e9931[_0x334d25(0x1ac)]??_0x363b25,'skillCode':_0x5e9931[_0x334d25(0x152)]??_0x1549e7['skillCode']??'','skillName':_0x1549e7[_0x334d25(0x1a3)]??_0x5e9931['slug']??_0x1549e7['skillCode'],'description':_0x1549e7[_0x334d25(0x15b)],'scope':skillHubVisibilityToScope(_0x5e9931[_0x334d25(0x143)]??_0x40387c['visibility'])??_0x334d25(0x16d),'version':_0x5e9931[_0x334d25(0x1a2)]??_0x1549e7[_0x334d25(0x1a2)],'tags':_0x1549e7[_0x334d25(0x183)],'content':_0x1549e7['content']};}function buildRuntimeSkillPublishForm(_0x5cdd96,_0x1589f6){const _0x116f49=a75_0x1fae,_0x19941b=new FormData();return _0x19941b[_0x116f49(0x19f)](_0x116f49(0x19a),runtimeSkillPackageFile(_0x5cdd96)),_0x5cdd96[_0x116f49(0x1a3)]?.[_0x116f49(0x189)]()&&_0x19941b[_0x116f49(0x19f)](_0x116f49(0x1a8),_0x5cdd96['skillName'][_0x116f49(0x189)]()),_0x19941b[_0x116f49(0x19f)](_0x116f49(0x143),_0x1589f6),_0x19941b;}function runtimeSkillPackageFile(_0x1aa2b2){const _0x599236=a75_0x1fae;if(!_0x1aa2b2[_0x599236(0x1aa)])throw CliErrors[_0x599236(0x15c)](_0x599236(0x173));const _0x30f023=Buffer[_0x599236(0x1a6)](_0x1aa2b2['packageBase64'],_0x599236(0x184)),_0x1713e9=new Blob([_0x30f023],{'type':'application/zip'}),_0x29af2b=(_0x1aa2b2[_0x599236(0x140)]||_0x599236(0x17e))+'.zip';if(typeof File!==_0x599236(0x169))return new File([_0x1713e9],_0x29af2b,{'type':'application/zip'});return _0x1713e9;}function normalizeSkillHubRuntimeListResponse(_0x231771,_0x49d695,_0x3332de,_0x559a75){const _0x48d8ab=a75_0x1fae,_0x591f5f=Array[_0x48d8ab(0x157)](_0x49d695)?_0x49d695:Array[_0x48d8ab(0x157)](_0x49d695?.[_0x48d8ab(0x13e)])?_0x49d695[_0x48d8ab(0x13e)]:[],_0x35961c=_0x559a75?.['trim'](),_0x2eb56a=_0x591f5f['filter'](_0x111920=>!_0x35961c||_0x111920[_0x48d8ab(0x152)]===_0x35961c)[_0x48d8ab(0x18b)](skillHubRuntimeItemToRuntimeSkill)[_0x48d8ab(0x12b)](_0x2d4e88=>Boolean(_0x2d4e88)),_0x512cfd=_0x2eb56a['filter'](_0x375b77=>_0x375b77[_0x48d8ab(0x1b8)]===_0x48d8ab(0x16d)),_0x5d56dd=_0x2eb56a['filter'](_0x4d8310=>_0x4d8310[_0x48d8ab(0x1b8)]===_0x48d8ab(0x16e));return{'appCode':_0x231771,'personal':_0x3332de===_0x48d8ab(0x16e)?[]:_0x512cfd,'company':_0x3332de===_0x48d8ab(0x16d)?[]:_0x5d56dd,'effective':buildEffectiveRuntimeSkills(_0x512cfd,_0x5d56dd,_0x3332de)};}function skillHubRuntimeItemToRuntimeSkill(_0x6ec8ab){const _0x3c3872=a75_0x1fae,_0x16a170=_0x6ec8ab[_0x3c3872(0x152)]?.['trim'](),_0x50564f=skillHubVisibilityToScope(_0x6ec8ab[_0x3c3872(0x143)]);if(!_0x16a170||!_0x50564f)return undefined;return{'id':_0x6ec8ab['id'],'appCode':_0x6ec8ab['namespace'],'skillCode':_0x16a170,'skillName':_0x6ec8ab[_0x3c3872(0x1a8)]??_0x16a170,'description':_0x6ec8ab[_0x3c3872(0x12d)],'scope':_0x50564f,'version':skillHubRuntimeItemVersion(_0x6ec8ab),'status':_0x6ec8ab[_0x3c3872(0x132)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x52da8a){const _0x4e0b5b=a75_0x1fae,_0x2a0d78=_0x52da8a[_0x4e0b5b(0x152)]?.[_0x4e0b5b(0x189)]();if(!_0x2a0d78)return undefined;return{'id':_0x52da8a['id'],'appCode':_0x52da8a[_0x4e0b5b(0x1ac)],'skillCode':_0x2a0d78,'skillName':_0x52da8a['displayName']??_0x2a0d78,'description':_0x52da8a['summary'],'example':_0x52da8a[_0x4e0b5b(0x150)],'scope':skillHubVisibilityToScope(_0x52da8a[_0x4e0b5b(0x143)])??_0x52da8a['visibility']?.[_0x4e0b5b(0x12f)](),'version':skillHubRuntimeItemVersion(_0x52da8a),'status':_0x52da8a[_0x4e0b5b(0x132)]};}function skillHubVisibilityToScope(_0x406cfd){const _0xb6bd4f=a75_0x1fae;if(_0x406cfd==='PRIVATE')return'personal';if(_0x406cfd===_0xb6bd4f(0x126))return _0xb6bd4f(0x16e);return undefined;}function skillHubRuntimeItemVersion(_0x22ba23){const _0x2c2f83=a75_0x1fae;return _0x22ba23[_0x2c2f83(0x135)]?.[_0x2c2f83(0x1a2)]??_0x22ba23[_0x2c2f83(0x185)]?.['version']??_0x22ba23[_0x2c2f83(0x182)]?.[_0x2c2f83(0x1a2)];}function buildEffectiveRuntimeSkills(_0x324515,_0xe54591,_0x3ebbac){const _0x121e8c=a75_0x1fae;if(_0x3ebbac==='personal')return _0x324515;if(_0x3ebbac===_0x121e8c(0x16e))return _0xe54591;const _0x144c7d=new Map();for(const _0x29ceeb of _0xe54591){_0x144c7d['set'](_0x29ceeb[_0x121e8c(0x140)],_0x29ceeb);}for(const _0x35d73c of _0x324515){_0x144c7d['set'](_0x35d73c[_0x121e8c(0x140)],_0x35d73c);}return Array[_0x121e8c(0x1a6)](_0x144c7d[_0x121e8c(0x179)]());}function normalizeRuntimeSkillListResponse(_0x549822,_0x1decec){const _0x44912c=a75_0x1fae;if(Array[_0x44912c(0x157)](_0x1decec)){const _0x217a32=_0x1decec[_0x44912c(0x12b)](_0x34d7cb=>_0x34d7cb[_0x44912c(0x1b8)]===_0x44912c(0x16d)),_0x37d464=_0x1decec[_0x44912c(0x12b)](_0x5871e1=>_0x5871e1[_0x44912c(0x1b8)]===_0x44912c(0x16e));return{'appCode':_0x549822,'personal':_0x217a32,'company':_0x37d464,'effective':[..._0x37d464,..._0x217a32]};}return{'appCode':_0x1decec?.['appCode']??_0x549822,'personal':Array[_0x44912c(0x157)](_0x1decec?.[_0x44912c(0x16d)])?_0x1decec['personal']:[],'company':Array['isArray'](_0x1decec?.['company'])?_0x1decec['company']:[],'effective':Array[_0x44912c(0x157)](_0x1decec?.[_0x44912c(0x13f)])?_0x1decec['effective']:[]};}
|
|
1
|
+
(function(_0x549ab3,_0x52c4c9){const _0x380efe=a74_0x15ef,_0x3c0011=_0x549ab3();while(!![]){try{const _0x453eb7=-parseInt(_0x380efe(0x13b))/0x1+-parseInt(_0x380efe(0xfb))/0x2*(parseInt(_0x380efe(0x138))/0x3)+-parseInt(_0x380efe(0xe1))/0x4*(-parseInt(_0x380efe(0xfa))/0x5)+-parseInt(_0x380efe(0x10d))/0x6+-parseInt(_0x380efe(0x12a))/0x7+-parseInt(_0x380efe(0xf0))/0x8*(parseInt(_0x380efe(0xc9))/0x9)+parseInt(_0x380efe(0x136))/0xa;if(_0x453eb7===_0x52c4c9)break;else _0x3c0011['push'](_0x3c0011['shift']());}catch(_0x354935){_0x3c0011['push'](_0x3c0011['shift']());}}}(a74_0x507b,0xbca6b));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(_0x597c15){_activeAK=_0x597c15||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x124af4){const _0x5e8297=a74_0x15ef;for(const _0x5d7196 of _0x124af4){if(typeof _0x5d7196===_0x5e8297(0xd6)&&_0x5d7196[_0x5e8297(0xe0)]())return _0x5d7196['trim']();}return undefined;}async function decodeResponseBody(_0x261ee7){const _0x539145=a74_0x15ef;if(typeof _0x261ee7[_0x539145(0x12f)]==='function')try{const _0x5c8384=await _0x261ee7[_0x539145(0x12f)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x5c8384),'text':_0x5c8384};}catch{return{'isJson':![],'text':_0x5c8384[_0x539145(0xe0)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x261ee7[_0x539145(0x143)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x34a5b8,_0x4c8092,_0x37c2d4){const _0x1dbf79=a74_0x15ef,_0x1ba0c1=_0x4c8092&&typeof _0x4c8092===_0x1dbf79(0x119)?_0x4c8092:{},_0x43322f=[_0x1ba0c1['status'],_0x1ba0c1[_0x1dbf79(0x144)]][_0x1dbf79(0x145)](_0x22d83d=>Number(_0x22d83d)===0x1ad),_0x2966d1=createRateLimitError({'status':_0x34a5b8[_0x1dbf79(0x128)]===0x1ad?_0x34a5b8[_0x1dbf79(0x128)]:_0x43322f??_0x34a5b8[_0x1dbf79(0x128)],'errorCode':firstString(_0x1ba0c1['errorCode'],typeof _0x1ba0c1[_0x1dbf79(0x144)]===_0x1dbf79(0xd6)?_0x1ba0c1[_0x1dbf79(0x144)]:undefined),'message':firstString(_0x1ba0c1[_0x1dbf79(0x14c)],_0x1ba0c1[_0x1dbf79(0xfe)],_0x1ba0c1[_0x1dbf79(0xe9)],_0x37c2d4),'retryAfter':readRetryAfter(_0x34a5b8[_0x1dbf79(0x10b)])??readRetryAfterSeconds(_0x4c8092)});if(_0x2966d1)throw _0x2966d1;}async function apiRequest(_0x32d806,_0x35f984={}){const _0x14180a=a74_0x15ef,{method:method=_0x14180a(0x106),body:_0x1f85d8,headers:headers={},timeout:timeout=0x7530}=_0x35f984,_0x48a45d=_activeAK,_0x85c76d=getRuntimeDomain();if(!_0x48a45d)throw CliErrors[_0x14180a(0x111)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x55fbc2=''+_0x85c76d+_0x32d806,_0x43c981={'X-User-AK':_0x48a45d},_0x234ea6=new AbortController(),_0x54bf2f=setTimeout(()=>_0x234ea6[_0x14180a(0xe6)](),timeout);try{const _0x301348=await fetch(_0x55fbc2,{'method':method,'headers':{'Content-Type':_0x14180a(0x101),'X-Invoke-Source':PRODUCT_CONFIG[_0x14180a(0xe5)],..._0x43c981,...headers},'body':_0x1f85d8?JSON['stringify'](_0x1f85d8):undefined,'signal':_0x234ea6[_0x14180a(0x107)]}),_0x2fdb58=await decodeResponseBody(_0x301348);if(!_0x2fdb58['isJson']){throwIfRateLimited(_0x301348,undefined,_0x2fdb58['text']);throw CliErrors[_0x14180a(0x10c)](_0x14180a(0xe8)+_0x301348[_0x14180a(0x128)]+')',_0x301348[_0x14180a(0x128)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x359b44=_0x2fdb58[_0x14180a(0xf3)];throwIfRateLimited(_0x301348,_0x359b44);if(!_0x301348['ok']||_0x359b44[_0x14180a(0x126)]===![])throw CliErrors[_0x14180a(0x10c)](_0x359b44[_0x14180a(0x14c)]||_0x359b44['message']||'API\x20error:\x20'+_0x301348['status'],_0x359b44[_0x14180a(0x150)]?_0x14180a(0x139)+_0x359b44[_0x14180a(0x150)]:undefined);return _0x359b44;}catch(_0x11877c){if(_0x11877c instanceof Error&&_0x11877c['name']===_0x14180a(0xf9))throw CliErrors[_0x14180a(0x10c)](_0x14180a(0xdb)+_0x55fbc2);throw _0x11877c;}finally{clearTimeout(_0x54bf2f);}}async function apiBinaryRequest(_0x2a191b,_0x40ef38={}){const _0x12b908=a74_0x15ef,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x40ef38,_0x25b177=_activeAK,_0x3dbb9e=getRuntimeDomain();if(!_0x25b177)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x12b908(0x118)]+'.');const _0x27e2d0=''+_0x3dbb9e+_0x2a191b,_0x1d0dd2=new AbortController(),_0x1d879d=setTimeout(()=>_0x1d0dd2['abort'](),timeout);try{const _0x3aa1cf=await fetch(_0x27e2d0,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x12b908(0xe5)],'X-User-AK':_0x25b177,...headers},'signal':_0x1d0dd2[_0x12b908(0x107)]});if(!_0x3aa1cf['ok']){const _0x2743cc=await decodeResponseBody(_0x3aa1cf),_0x1d85e6=_0x2743cc[_0x12b908(0xf3)]&&typeof _0x2743cc[_0x12b908(0xf3)]===_0x12b908(0x119)?_0x2743cc[_0x12b908(0xf3)]:{},_0x5e9643=firstString(_0x1d85e6[_0x12b908(0x14c)],_0x1d85e6[_0x12b908(0xfe)],_0x1d85e6[_0x12b908(0x150)],_0x2743cc[_0x12b908(0x12f)]);throwIfRateLimited(_0x3aa1cf,_0x2743cc[_0x12b908(0xf3)],_0x5e9643);throw CliErrors['apiError'](_0x5e9643||'API\x20error:\x20'+_0x3aa1cf[_0x12b908(0x128)],_0x12b908(0x11c)+_0x27e2d0);}return Buffer[_0x12b908(0xc1)](await _0x3aa1cf[_0x12b908(0x140)]());}catch(_0x11a2c0){if(_0x11a2c0 instanceof Error&&_0x11a2c0[_0x12b908(0xd7)]===_0x12b908(0xf9))throw CliErrors[_0x12b908(0x10c)]('Request\x20timeout:\x20'+_0x27e2d0);throw _0x11a2c0;}finally{clearTimeout(_0x1d879d);}}async function apiFormRequest(_0x4813d4,_0x6d90cd,_0x7fcf4b={}){const _0x4c6f45=a74_0x15ef,{timeout:timeout=0x7530}=_0x7fcf4b,_0xd2e9ae=_activeAK,_0x53a027=getRuntimeDomain();if(!_0xd2e9ae)throw CliErrors[_0x4c6f45(0x111)](_0x4c6f45(0xd9)+PRODUCT_CONFIG[_0x4c6f45(0x118)]+'.');const _0xce0cfe=''+_0x53a027+_0x4813d4,_0x29b5aa=new AbortController(),_0x5c60e5=setTimeout(()=>_0x29b5aa['abort'](),timeout);try{const _0x59ed07=await fetch(_0xce0cfe,{'method':_0x4c6f45(0xdc),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x4c6f45(0xe5)],'X-User-AK':_0xd2e9ae},'body':_0x6d90cd,'signal':_0x29b5aa[_0x4c6f45(0x107)]}),_0x205716=await decodeResponseBody(_0x59ed07);if(!_0x205716[_0x4c6f45(0xc0)]){throwIfRateLimited(_0x59ed07,undefined,_0x205716[_0x4c6f45(0x12f)]);throw CliErrors[_0x4c6f45(0x10c)](_0x4c6f45(0xe8)+_0x59ed07[_0x4c6f45(0x128)]+')',_0x59ed07['status']>=0x190?_0x4c6f45(0xd5):undefined);}const _0x471d36=_0x205716[_0x4c6f45(0xf3)];throwIfRateLimited(_0x59ed07,_0x471d36);if(!_0x59ed07['ok']||_0x471d36[_0x4c6f45(0x126)]===![])throw CliErrors[_0x4c6f45(0x10c)](_0x471d36['errorMsg']||_0x471d36['message']||_0x4c6f45(0x13c)+_0x59ed07[_0x4c6f45(0x128)],_0x471d36[_0x4c6f45(0x150)]?_0x4c6f45(0x139)+_0x471d36[_0x4c6f45(0x150)]:undefined);return _0x471d36;}catch(_0x5d5d92){if(_0x5d5d92 instanceof Error&&_0x5d5d92[_0x4c6f45(0xd7)]===_0x4c6f45(0xf9))throw CliErrors[_0x4c6f45(0x10c)](_0x4c6f45(0xdb)+_0xce0cfe);throw _0x5d5d92;}finally{clearTimeout(_0x5c60e5);}}async function toolboxRequest(_0x176c51,_0x14f80c,_0x4b6ddc={}){const _0x2aa286=a74_0x15ef,{method:method=_0x2aa286(0x106),headers:headers={},timeout:timeout=0x7530}=_0x4b6ddc,_0x40da62=_activeAK;if(!_0x40da62)throw CliErrors[_0x2aa286(0x111)](_0x2aa286(0xd9)+PRODUCT_CONFIG[_0x2aa286(0x118)]+'.');const _0x1f53ce=getApiDomain()[_0x2aa286(0xde)](/\/$/,''),_0x5903ef=new URL(_0x176c51,_0x1f53ce+_0x2aa286(0xc7));if(_0x14f80c)for(const [_0x5ca43e,_0x261205]of Object[_0x2aa286(0x146)](_0x14f80c)){_0x261205!==undefined&&_0x261205!==null&&_0x5903ef[_0x2aa286(0x122)][_0x2aa286(0xc8)](_0x5ca43e,String(_0x261205));}const _0x2a987b=new AbortController(),_0x5ef89e=setTimeout(()=>_0x2a987b[_0x2aa286(0xe6)](),timeout);try{const _0x434576=await fetch(_0x5903ef,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x2aa286(0xe5)],'X-User-AK':_0x40da62,...headers},'signal':_0x2a987b[_0x2aa286(0x107)]}),_0x4e5b10=await decodeResponseBody(_0x434576);if(!_0x4e5b10[_0x2aa286(0xc0)]){throwIfRateLimited(_0x434576,undefined,_0x4e5b10[_0x2aa286(0x12f)]);throw CliErrors[_0x2aa286(0x10c)](_0x2aa286(0xf4)+_0x434576['status']+')',_0x434576[_0x2aa286(0x128)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x48ee45=_0x4e5b10['data'];throwIfRateLimited(_0x434576,_0x48ee45);if(!_0x434576['ok']){const _0xf554bf=_0x48ee45&&typeof _0x48ee45==='object'?_0x48ee45:{};throw CliErrors[_0x2aa286(0x10c)](_0xf554bf[_0x2aa286(0x14c)]||_0xf554bf[_0x2aa286(0xfe)]||_0x2aa286(0x13e)+_0x434576[_0x2aa286(0x128)],_0xf554bf[_0x2aa286(0x150)]?_0x2aa286(0x134)+_0xf554bf[_0x2aa286(0x150)]:undefined);}if(_0x48ee45&&typeof _0x48ee45===_0x2aa286(0x119)&&_0x2aa286(0x126)in _0x48ee45&&typeof _0x48ee45[_0x2aa286(0x126)]===_0x2aa286(0x132)){const _0x489ebe=_0x48ee45;if(!_0x489ebe[_0x2aa286(0x126)])throw CliErrors[_0x2aa286(0x10c)](_0x489ebe[_0x2aa286(0x14c)]||_0x489ebe[_0x2aa286(0xfe)]||_0x2aa286(0x127),_0x489ebe[_0x2aa286(0x150)]?_0x2aa286(0x134)+_0x489ebe[_0x2aa286(0x150)]:undefined);return _0x489ebe[_0x2aa286(0xf3)];}return _0x48ee45;}catch(_0x399330){if(_0x399330 instanceof Error&&_0x399330[_0x2aa286(0xd7)]===_0x2aa286(0xf9))throw CliErrors[_0x2aa286(0x10c)](_0x2aa286(0xdb)+_0x5903ef[_0x2aa286(0x104)]());throw _0x399330;}finally{clearTimeout(_0x5ef89e);}}async function skillHubJsonRequest(_0x3f2181,_0x4a2174={}){const _0x3eec77=a74_0x15ef,{method:method=_0x3eec77(0x106),query:_0x4127d8,body:_0x24269a,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x4a2174,_0x2a8519=_activeAK;if(!_0x2a8519)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x3eec77(0x118)]+'.');const _0x35972b=getSkillHubDomain()[_0x3eec77(0xde)](/\/$/,''),_0x3161e3=new URL(_0x3f2181,_0x35972b+'/');if(_0x4127d8)for(const [_0x2e620a,_0x8a13f8]of Object['entries'](_0x4127d8)){_0x8a13f8!==undefined&&_0x8a13f8!==null&&_0x3161e3[_0x3eec77(0x122)]['set'](_0x2e620a,String(_0x8a13f8));}const _0x526228=new AbortController(),_0x102dc6=setTimeout(()=>_0x526228[_0x3eec77(0xe6)](),timeout);try{const _0x59a78c=await fetch(_0x3161e3['toString'](),{'method':method,'headers':{'Accept':_0x3eec77(0x101),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x2a8519,...headers},'body':_0x24269a,'signal':_0x526228[_0x3eec77(0x107)]}),_0x525e5f=await decodeResponseBody(_0x59a78c);if(!_0x525e5f[_0x3eec77(0xc0)]){if(allowNotFound&&_0x59a78c[_0x3eec77(0x128)]===0x194)return undefined;throwIfRateLimited(_0x59a78c,undefined,_0x525e5f[_0x3eec77(0x12f)]);throw CliErrors['apiError'](_0x3eec77(0x133)+_0x59a78c[_0x3eec77(0x128)]+')',_0x59a78c[_0x3eec77(0x128)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x403e3d=_0x525e5f['data'];throwIfRateLimited(_0x59a78c,_0x403e3d);if(allowNotFound&&isSkillHubNotFoundResponse(_0x59a78c[_0x3eec77(0x128)],_0x403e3d))return undefined;const _0x5b77a9=!_0x59a78c['ok']||_0x403e3d?.[_0x3eec77(0x126)]===![]||typeof _0x403e3d?.[_0x3eec77(0x144)]==='number'&&_0x403e3d[_0x3eec77(0x144)]>=0x190;if(_0x5b77a9)throw CliErrors[_0x3eec77(0x10c)](_0x403e3d?.[_0x3eec77(0x14c)]||_0x403e3d?.[_0x3eec77(0xfe)]||_0x403e3d?.[_0x3eec77(0xe9)]||_0x3eec77(0x115)+_0x59a78c[_0x3eec77(0x128)],_0x403e3d?.['errorCode']?_0x3eec77(0x112)+_0x403e3d[_0x3eec77(0x150)]:undefined);return _0x403e3d?.[_0x3eec77(0xf3)]??_0x403e3d;}catch(_0x5e6c51){if(_0x5e6c51 instanceof Error&&_0x5e6c51[_0x3eec77(0xd7)]===_0x3eec77(0xf9))throw CliErrors[_0x3eec77(0x10c)]('Request\x20timeout:\x20'+_0x3161e3['toString']());throw _0x5e6c51;}finally{clearTimeout(_0x102dc6);}}function isSkillHubNotFoundResponse(_0x54e250,_0x4a76de){const _0x33e293=a74_0x15ef;if(_0x54e250===0x194||_0x4a76de?.['code']===0x194)return!![];if(_0x54e250!==0x190&&_0x4a76de?.[_0x33e293(0x144)]!==0x190)return![];const _0x5715d4=[_0x4a76de?.[_0x33e293(0xe9)],_0x4a76de?.[_0x33e293(0xfe)],_0x4a76de?.[_0x33e293(0x14c)],_0x4a76de?.[_0x33e293(0x149)]]['filter'](_0x181181=>typeof _0x181181===_0x33e293(0xd6))['join']('\x20');return/skill not found\b/i['test'](_0x5715d4);}async function skillHubBinaryRequest(_0x44b203,_0x28bf4a={}){const _0xec09ef=a74_0x15ef,{query:_0x244255,headers:headers={},timeout:timeout=0x7530}=_0x28bf4a,_0x4c559f=_activeAK;if(!_0x4c559f)throw CliErrors[_0xec09ef(0x111)](_0xec09ef(0xd9)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x53d9b7=getSkillHubDomain()[_0xec09ef(0xde)](/\/$/,''),_0x4a3ac1=new URL(_0x44b203,_0x53d9b7+'/');if(_0x244255)for(const [_0x5c8bb9,_0x5bf184]of Object[_0xec09ef(0x146)](_0x244255)){_0x5bf184!==undefined&&_0x5bf184!==null&&_0x4a3ac1[_0xec09ef(0x122)][_0xec09ef(0xc8)](_0x5c8bb9,String(_0x5bf184));}const _0x553965=new AbortController(),_0x45c74e=setTimeout(()=>_0x553965[_0xec09ef(0xe6)](),timeout);try{const _0x576472=await fetch(_0x4a3ac1['toString'](),{'method':_0xec09ef(0x106),'headers':{'Accept':_0xec09ef(0x14e),'X-Invoke-Source':PRODUCT_CONFIG[_0xec09ef(0xe5)],'X-User-AK':_0x4c559f,...headers},'signal':_0x553965['signal']});if(!_0x576472['ok']){const _0x3a0e19=await decodeResponseBody(_0x576472),_0x54e664=_0x3a0e19[_0xec09ef(0xf3)]&&typeof _0x3a0e19['data']===_0xec09ef(0x119)?_0x3a0e19[_0xec09ef(0xf3)]:{},_0x4f91f7=firstString(_0x54e664[_0xec09ef(0x14c)],_0x54e664[_0xec09ef(0xfe)],_0x54e664[_0xec09ef(0xe9)],_0x54e664[_0xec09ef(0x150)],_0x3a0e19[_0xec09ef(0x12f)]);throwIfRateLimited(_0x576472,_0x3a0e19[_0xec09ef(0xf3)],_0x4f91f7);throw CliErrors['apiError'](_0x4f91f7||_0xec09ef(0x115)+_0x576472[_0xec09ef(0x128)],_0xec09ef(0x11c)+_0x4a3ac1[_0xec09ef(0x104)]());}return Buffer[_0xec09ef(0xc1)](await _0x576472[_0xec09ef(0x140)]());}catch(_0x25c138){if(_0x25c138 instanceof Error&&_0x25c138[_0xec09ef(0xd7)]===_0xec09ef(0xf9))throw CliErrors[_0xec09ef(0x10c)](_0xec09ef(0xdb)+_0x4a3ac1[_0xec09ef(0x104)]());throw _0x25c138;}finally{clearTimeout(_0x45c74e);}}export async function getBffEndpointContract(_0x1e2a8a,_0x3b129c){const _0x482ecd=a74_0x15ef;if(_0x3b129c===_0x482ecd(0x121))throw CliErrors[_0x482ecd(0xf7)](_0x482ecd(0xf8)+_0x1e2a8a+_0x482ecd(0xff)+_0x3b129c);const _0x3535e5=await apiRequest('/client/bff/endpoint/'+encodeURIComponent(_0x1e2a8a)+'/'+encodeURIComponent(_0x3b129c)),_0x15787b=_0x3535e5['data'];if(!_0x15787b||typeof _0x15787b!=='object'||Array[_0x482ecd(0x100)](_0x15787b)||_0x15787b['appCode']!==_0x1e2a8a||_0x15787b[_0x482ecd(0x14a)]!==_0x3b129c)throw CliErrors[_0x482ecd(0xf7)](_0x482ecd(0xf8)+_0x1e2a8a+',\x20name='+_0x3b129c);return{'appCode':_0x15787b['appCode'],'functionName':_0x15787b[_0x482ecd(0x14a)],'description':_0x15787b['description'],'version':_0x15787b[_0x482ecd(0xca)],'gmtModified':_0x15787b[_0x482ecd(0x124)]};}export async function getSqlQueryInfo(_0x4cdd70,_0x3d697c){const _0x3c78dd=a74_0x15ef,_0x38c391=await apiRequest('/client/sql/query',{'method':'POST','body':{'appCode':_0x4cdd70,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x3d697c}}),_0x4aec6b=_0x38c391[_0x3c78dd(0xf3)],_0x4ed516=_0x4aec6b&&typeof _0x4aec6b===_0x3c78dd(0x119)&&_0x3c78dd(0x12b)in _0x4aec6b?_0x4aec6b[_0x3c78dd(0x12b)]?.[0x0]:_0x4aec6b&&typeof _0x4aec6b===_0x3c78dd(0x119)&&_0x3c78dd(0xc6)in _0x4aec6b?_0x4aec6b:undefined;if(!_0x4ed516)throw CliErrors['validation'](_0x3c78dd(0x135)+_0x3d697c);return _0x4ed516;}function a74_0x507b(){const _0x343ba5=['file','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','msg','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','items','scope','skillName','favorite','topK','264KfZJar','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/client/knowledge-base/personal/','data','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/knowledge-base/personal/list?appCode=','download','validation','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','AbortError','318765aWZIEC','2HWsatg','filter','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','message',',\x20name=','isArray','application/json','undefined','/download','toString','warnings','GET','signal','/api/runtime/v1/namespaces/','longTerm','resolvedVersion','headers','apiError','6824874DKMNcJ','effective','/client/ocr','append','authRequired','SkillHub\x20error\x20code:\x20','artifactType','appName','SkillHub\x20API\x20error:\x20','PRIVATE','?appCode=','newConfigFileName','object','all','headlineVersion','Download\x20failed:\x20','Missing\x20Skill\x20package\x20payload.','/client/knowledge-base/search','appCode','Invalid\x20app\x20config\x20value:\x20key=','functions','searchParams','Artifact\x20not\x20found:\x20id=','gmtModified','markdown','success','Toolbox\x20API\x20error','status','/client/artifact/create','4939382ZPRBkJ','tableData','values','base64','type','text','errors','/publish','boolean','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Toolbox\x20error\x20code:\x20','SQL\x20query\x20not\x20found:\x20','52114120SYoASP','/api/cli/v1/skills/','3308187swhKwy','API\x20error\x20code:\x20','/client/runtime-bff/personal/','865512ZSWaWD','API\x20error:\x20','query','Toolbox\x20API\x20error:\x20','/update','arrayBuffer','/client/queryFileUrl','slug','json','code','find','entries','map','personal','error','functionName','/client/artifact/list?','errorMsg','/client/runtime-bff/personal/list?appCode=','application/octet-stream','/client/artifact/','errorCode','isJson','from','Personal\x20BFF\x20not\x20found:\x20id=','/skills','summary','displayName','sqlCode','/api/node-toolbox/','set','292806HOODLG','version','/versions/','/execute?appCode=','/client/knowledge-base/personal/create','NAMESPACE_ONLY','confirmWarnings','company','/client/uploadFile','source','visibility','.zip','Check\x20your\x20credentials\x20and\x20try\x20again.','string','name','skillCode','Configure\x20accessKey\x20in\x20','/client/runtime-bff/personal/create','Request\x20timeout:\x20','POST','/client/dataset/get-driven-data?code=','replace','example','trim','28bfkWOJ','application/zip','api-doc-generator','Knowledge-base\x20entry\x20not\x20found:\x20id=','invokeSource','abort'];a74_0x507b=function(){return _0x343ba5;};return a74_0x507b();}function isRemoteAppItem(_0x4c454e){const _0x3e6244=a74_0x15ef;return!!_0x4c454e&&typeof _0x4c454e===_0x3e6244(0x119)&&typeof _0x4c454e['appCode']===_0x3e6244(0xd6)&&typeof _0x4c454e[_0x3e6244(0x114)]==='string';}function extractRemoteAppItems(_0x1d2e9e){const _0x2d1513=a74_0x15ef;if(Array[_0x2d1513(0x100)](_0x1d2e9e))return _0x1d2e9e[_0x2d1513(0xfc)](isRemoteAppItem);if(!_0x1d2e9e||typeof _0x1d2e9e!=='object')throw CliErrors[_0x2d1513(0x10c)](_0x2d1513(0xea));const _0x49d124=_0x1d2e9e;if(Array[_0x2d1513(0x100)](_0x49d124['tableData']))return _0x49d124['tableData'][_0x2d1513(0xfc)](isRemoteAppItem);if(_0x49d124[_0x2d1513(0xf3)]&&typeof _0x49d124[_0x2d1513(0xf3)]===_0x2d1513(0x119)){const _0x13fb4f=_0x49d124[_0x2d1513(0xf3)];if(Array[_0x2d1513(0x100)](_0x13fb4f[_0x2d1513(0x12b)]))return _0x13fb4f[_0x2d1513(0x12b)][_0x2d1513(0xfc)](isRemoteAppItem);}throw CliErrors[_0x2d1513(0x10c)](_0x2d1513(0xfd));}export async function getMyApps(){const _0x36653b=a74_0x15ef,_0x2e9f93=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x2e9f93[_0x36653b(0xf3)]);}export async function getLoginUserInfo(){const _0x4d7307=a74_0x15ef,_0x1fce33=await apiRequest('/client/user/loginUserInfo');if(!_0x1fce33[_0x4d7307(0xf3)]||typeof _0x1fce33[_0x4d7307(0xf3)]!==_0x4d7307(0x119)||Array['isArray'](_0x1fce33[_0x4d7307(0xf3)]))throw CliErrors['apiError'](_0x4d7307(0xf1));return _0x1fce33[_0x4d7307(0xf3)];}export async function listDatasets(_0x25a091,_0x1a6f53){const _0x4b6c37=a74_0x15ef,_0x59241d=await apiRequest('/client/dataset/list',{'method':_0x4b6c37(0xdc),'body':{'appCode':_0x25a091,..._0x1a6f53?.[_0x4b6c37(0x144)]&&{'code':_0x1a6f53[_0x4b6c37(0x144)]},..._0x1a6f53?.[_0x4b6c37(0xd7)]&&{'name':_0x1a6f53[_0x4b6c37(0xd7)]}}});return extractList(_0x59241d[_0x4b6c37(0xf3)]);}export async function getDatasetDetail(_0x5a040c){const _0xc12be3=a74_0x15ef,_0x4f964b=await apiRequest(_0xc12be3(0xdd)+encodeURIComponent(_0x5a040c));return _0x4f964b[_0xc12be3(0xf3)];}export async function getDatasetSdkUsageDoc(_0x152ea7,_0x1667a7){const _0x857e0=a74_0x15ef,_0x21bff5=await toolboxRequest(_0x857e0(0xe3),{'datasetCode':_0x152ea7,'appCode':_0x1667a7});return typeof _0x21bff5?.['markdown']===_0x857e0(0xd6)?_0x21bff5[_0x857e0(0x125)]:'';}export async function uploadRuntimeFile(_0x5b655a,_0x5dd9c9){const _0x151af3=a74_0x15ef,_0x28f9a1=await readFile(_0x5dd9c9),_0x4ae0d2=new FormData();_0x4ae0d2['append'](_0x151af3(0x11f),_0x5b655a),_0x4ae0d2[_0x151af3(0x110)](_0x151af3(0xe7),new Blob([new Uint8Array(_0x28f9a1)]),basename(_0x5dd9c9));const _0x7141ce=await apiFormRequest(_0x151af3(0xd1),_0x4ae0d2);return _0x7141ce[_0x151af3(0xf3)];}export async function queryRuntimeFileUrl(_0x16c154,_0x35b47e={}){const _0x19a3ba=a74_0x15ef,_0x401d05=await apiRequest(_0x19a3ba(0x141),{'method':_0x19a3ba(0xdc),'body':{'filePath':_0x16c154,'downloadFlag':_0x35b47e[_0x19a3ba(0xf6)]??![],..._0x35b47e[_0x19a3ba(0x109)]?{'longTerm':!![]}:{}}});return _0x401d05[_0x19a3ba(0xf3)];}export async function recognizeRuntimeOcr(_0x5a7638,_0x10e046){const _0x5335f3=a74_0x15ef,_0x3e2361=await apiRequest(_0x5335f3(0x10f),{'method':'POST','body':{'appCode':_0x5a7638,'url':_0x10e046['url'],'type':_0x10e046[_0x5335f3(0x12e)]}});return _0x3e2361['data'];}export async function getRuntimeAppConfigByKey(_0xf10c07,_0x46a192){const _0xa51316=a74_0x15ef,_0x574ae3=new URLSearchParams({'appCode':_0xf10c07,'key':_0x46a192}),_0x553f30=await apiRequest('/client/app-config/getByKey?'+_0x574ae3[_0xa51316(0x104)]());if(typeof _0x553f30[_0xa51316(0xf3)]!==_0xa51316(0xd6))throw CliErrors[_0xa51316(0xf7)](_0xa51316(0x120)+_0x46a192);return _0x553f30[_0xa51316(0xf3)];}export async function listRuntimeArtifacts(_0x5a6ab9,_0x17e415){const _0x5b231e=a74_0x15ef,_0x58a916=new URLSearchParams({'appCode':_0x5a6ab9});if(_0x17e415?.[_0x5b231e(0x113)])_0x58a916['set']('artifactType',_0x17e415[_0x5b231e(0x113)]);if(_0x17e415?.[_0x5b231e(0xd2)])_0x58a916[_0x5b231e(0xc8)](_0x5b231e(0xd2),_0x17e415[_0x5b231e(0xd2)]);if(_0x17e415?.[_0x5b231e(0xee)]!==undefined)_0x58a916[_0x5b231e(0xc8)](_0x5b231e(0xee),String(_0x17e415['favorite']));const _0x20473b=await apiRequest(_0x5b231e(0x14b)+_0x58a916[_0x5b231e(0x104)]());return Array[_0x5b231e(0x100)](_0x20473b['data'])?_0x20473b[_0x5b231e(0xf3)]:[];}export async function getRuntimeArtifact(_0xf1847b,_0x22396e){const _0x468afd=a74_0x15ef,_0x388ef5=await apiRequest(_0x468afd(0x14f)+_0xf1847b+_0x468afd(0x117)+encodeURIComponent(_0x22396e));if(!_0x388ef5[_0x468afd(0xf3)])throw CliErrors['validation'](_0x468afd(0x123)+_0xf1847b);return _0x388ef5[_0x468afd(0xf3)];}export async function createRuntimeArtifact(_0x56fc4a,_0x3b220b){const _0x1587a5=a74_0x15ef,_0xa01283=await apiRequest(_0x1587a5(0x129),{'method':_0x1587a5(0xdc),'body':{'appCode':_0x56fc4a,..._0x3b220b}});return _0xa01283['data'];}export async function updateRuntimeArtifact(_0xb297dc,_0x1a80e4,_0x5814b2){const _0x46e662=a74_0x15ef,_0x7afac6=await apiRequest(_0x46e662(0x14f)+_0xb297dc+_0x46e662(0x13f),{'method':_0x46e662(0xdc),'body':{'appCode':_0x1a80e4,..._0x5814b2}});return _0x7afac6[_0x46e662(0xf3)];}export async function listPersonalBffs(_0x540308){const _0x41b795=a74_0x15ef,_0x1daba3=await apiRequest(_0x41b795(0x14d)+encodeURIComponent(_0x540308));return Array[_0x41b795(0x100)](_0x1daba3['data'])?_0x1daba3[_0x41b795(0xf3)]:[];}export async function getPersonalBff(_0x58f2ae,_0x31a08e){const _0x34d1d7=a74_0x15ef,_0x594ced=await apiRequest(_0x34d1d7(0x13a)+_0x58f2ae+_0x34d1d7(0x117)+encodeURIComponent(_0x31a08e));if(!_0x594ced[_0x34d1d7(0xf3)])throw CliErrors[_0x34d1d7(0xf7)](_0x34d1d7(0xc2)+_0x58f2ae);return _0x594ced['data'];}export async function createPersonalBff(_0x2aaf61,_0x412711){const _0x515f6a=a74_0x15ef,_0x346d27=await apiRequest(_0x515f6a(0xda),{'method':_0x515f6a(0xdc),'body':{'appCode':_0x2aaf61,..._0x412711}});return _0x346d27[_0x515f6a(0xf3)];}export async function updatePersonalBff(_0x5abd32,_0xe47320,_0x5e2c05){const _0x3fef72=a74_0x15ef,_0x4248c0=await apiRequest('/client/runtime-bff/personal/'+_0x5abd32+'/update',{'method':_0x3fef72(0xdc),'body':{'appCode':_0xe47320,..._0x5e2c05}});return _0x4248c0['data'];}export async function executePersonalBff(_0x3e8fc2,_0x9a925c,_0x3f14c7){const _0x46da63=a74_0x15ef,_0x527d0c=await apiRequest(_0x46da63(0x13a)+_0x3e8fc2+_0x46da63(0xcc)+encodeURIComponent(_0x9a925c),{'method':_0x46da63(0xdc),'body':_0x3f14c7});return _0x527d0c[_0x46da63(0xf3)];}function a74_0x15ef(_0x53890d,_0x33b22d){_0x53890d=_0x53890d-0xc0;const _0x507bb3=a74_0x507b();let _0x15efa9=_0x507bb3[_0x53890d];return _0x15efa9;}export async function listPersonalKnowledgeBaseItems(_0x39dd5c){const _0x2482ea=a74_0x15ef,_0x1427d7=await apiRequest(_0x2482ea(0xf5)+encodeURIComponent(_0x39dd5c));return Array[_0x2482ea(0x100)](_0x1427d7[_0x2482ea(0xf3)])?_0x1427d7['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x339c08,_0x4d89e2){const _0xb21007=a74_0x15ef,_0xc36d55=await apiRequest(_0xb21007(0xf2)+_0x339c08+'?appCode='+encodeURIComponent(_0x4d89e2));if(!_0xc36d55[_0xb21007(0xf3)])throw CliErrors[_0xb21007(0xf7)](_0xb21007(0xe4)+_0x339c08);return _0xc36d55['data'];}export async function createPersonalKnowledgeBaseItem(_0x4f922c,_0x1b5d4c){const _0x4d9af4=a74_0x15ef,_0x4d0aac=await apiRequest(_0x4d9af4(0xcd),{'method':'POST','body':{'appCode':_0x4f922c,..._0x1b5d4c}});return _0x4d0aac[_0x4d9af4(0xf3)];}export async function updatePersonalKnowledgeBaseItem(_0x262d31,_0x133b9c,_0x34cde5){const _0x433489=a74_0x15ef,_0x94a8d=await apiRequest(_0x433489(0xf2)+_0x262d31+_0x433489(0x13f),{'method':_0x433489(0xdc),'body':{'appCode':_0x133b9c,..._0x34cde5}});return _0x94a8d[_0x433489(0xf3)];}export async function searchKnowledgeBase(_0x3ac482,_0x130193){const _0x20c00b=a74_0x15ef,_0x4393b8=await apiRequest(_0x20c00b(0x11e),{'method':_0x20c00b(0xdc),'body':{'appCode':_0x3ac482,'query':_0x130193[_0x20c00b(0x13d)],..._0x130193[_0x20c00b(0xef)]!==undefined?{'topK':_0x130193[_0x20c00b(0xef)]}:{}}});return Array[_0x20c00b(0x100)](_0x4393b8[_0x20c00b(0xf3)])?_0x4393b8['data']:[];}export async function getRuntimeSkillByCode(_0x4931da,_0x11a998){const _0x1eb588=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0x4931da)+'/'+encodeURIComponent(_0x11a998),{'allowNotFound':!![]});return _0x1eb588?skillHubRuntimeDetailToRuntimeSkill(_0x1eb588):undefined;}export async function listRuntimeSkills(_0x141c99){const _0x3e823a=a74_0x15ef,_0x1eb3c8=await skillHubJsonRequest(_0x3e823a(0x108)+encodeURIComponent(_0x141c99['appCode'])+_0x3e823a(0xc3),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x141c99[_0x3e823a(0x11f)],_0x1eb3c8,_0x141c99[_0x3e823a(0xec)]??_0x3e823a(0x11a),_0x141c99[_0x3e823a(0x144)]);}export async function listPersonalRuntimeSkills(_0x29ca8f){const _0x5e6f7c=a74_0x15ef;return(await listRuntimeSkills({'appCode':_0x29ca8f,'scope':'personal'}))[_0x5e6f7c(0x148)];}export async function listCompanyRuntimeSkills(_0xe5028b){return(await listRuntimeSkills({'appCode':_0xe5028b,'scope':'company'}))['company'];}export async function listVisibleRuntimeSkills(_0x482587){const _0x1b33a5=a74_0x15ef;return(await listRuntimeSkills({'appCode':_0x482587,'scope':_0x1b33a5(0x11a)}))[_0x1b33a5(0x10e)];}export async function createPersonalRuntimeSkill(_0x1751eb,_0x51ff30,_0x5ee830={}){return publishRuntimeSkill(_0x1751eb,_0x51ff30,{'visibility':'PRIVATE','confirmWarnings':_0x5ee830['confirmWarnings']});}export async function updatePersonalRuntimeSkill(_0x336747,_0x263839,_0x3f9973,_0x1260f0={}){const _0x5d9cac=a74_0x15ef;return publishRuntimeSkill(_0x263839,{..._0x3f9973,'skillCode':_0x3f9973[_0x5d9cac(0xd8)]??_0x336747},{'visibility':_0x5d9cac(0x116),'confirmWarnings':_0x1260f0[_0x5d9cac(0xcf)]});}export async function publishCompanyRuntimeSkill(_0x28671e,_0x50e8a9,_0x56307f={}){const _0xb02b94=a74_0x15ef;return publishRuntimeSkill(_0x28671e,_0x50e8a9,{'visibility':_0xb02b94(0xce),'confirmWarnings':_0x56307f['confirmWarnings']});}export async function validateRuntimeSkillPublish(_0x46b593,_0x8b761c,_0x338980){const _0x586384=a74_0x15ef,_0xb78c7e=buildRuntimeSkillPublishForm(_0x8b761c,_0x338980[_0x586384(0xd3)]),_0x17135e=await skillHubJsonRequest(_0x586384(0x137)+encodeURIComponent(_0x46b593)+'/publish/validate',{'method':'POST','body':_0xb78c7e});return{'valid':_0x17135e['valid']===!![],'errors':Array['isArray'](_0x17135e[_0x586384(0x130)])?_0x17135e[_0x586384(0x130)]:[],'warnings':Array['isArray'](_0x17135e[_0x586384(0x105)])?_0x17135e[_0x586384(0x105)]:[],'resolvedSlug':_0x17135e['resolvedSlug'],'resolvedVersion':_0x17135e[_0x586384(0x10a)]};}export async function downloadRuntimeSkillPackage(_0x2aaeaf,_0x196124,_0x2d303f,_0x75b88){const _0x4bd2f4=a74_0x15ef;void _0x2aaeaf;const _0x3c2029=_0x75b88?_0x4bd2f4(0x137)+encodeURIComponent(_0x2d303f)+'/'+encodeURIComponent(_0x196124)+_0x4bd2f4(0xcb)+encodeURIComponent(_0x75b88)+'/download':_0x4bd2f4(0x137)+encodeURIComponent(_0x2d303f)+'/'+encodeURIComponent(_0x196124)+_0x4bd2f4(0x103);return skillHubBinaryRequest(_0x3c2029);}async function publishRuntimeSkill(_0x5b64fe,_0x10c8d0,_0x3ae9d1){const _0x110df5=a74_0x15ef,_0x2afb28=buildRuntimeSkillPublishForm(_0x10c8d0,_0x3ae9d1['visibility']),_0x250da1=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x5b64fe)+_0x110df5(0x131),{'method':'POST','query':{'confirmWarnings':_0x3ae9d1['confirmWarnings']===!![]?!![]:undefined},'body':_0x2afb28});return{'appCode':_0x250da1['namespace']??_0x5b64fe,'skillCode':_0x250da1[_0x110df5(0x142)]??_0x10c8d0['skillCode']??'','skillName':_0x10c8d0[_0x110df5(0xed)]??_0x250da1['slug']??_0x10c8d0[_0x110df5(0xd8)],'description':_0x10c8d0['description'],'scope':skillHubVisibilityToScope(_0x250da1[_0x110df5(0xd3)]??_0x3ae9d1[_0x110df5(0xd3)])??_0x110df5(0x148),'version':_0x250da1[_0x110df5(0xca)]??_0x10c8d0[_0x110df5(0xca)],'tags':_0x10c8d0['tags'],'content':_0x10c8d0['content']};}function buildRuntimeSkillPublishForm(_0xcbc3bb,_0x3f0471){const _0x5d8e80=a74_0x15ef,_0x3c3931=new FormData();return _0x3c3931[_0x5d8e80(0xc8)]('file',runtimeSkillPackageFile(_0xcbc3bb)),_0xcbc3bb[_0x5d8e80(0xed)]?.['trim']()&&_0x3c3931[_0x5d8e80(0xc8)](_0x5d8e80(0xc5),_0xcbc3bb[_0x5d8e80(0xed)][_0x5d8e80(0xe0)]()),_0x3c3931[_0x5d8e80(0xc8)](_0x5d8e80(0xd3),_0x3f0471),_0x3c3931;}function runtimeSkillPackageFile(_0x265311){const _0x4f8955=a74_0x15ef;if(!_0x265311['packageBase64'])throw CliErrors[_0x4f8955(0xf7)](_0x4f8955(0x11d));const _0x2c7076=Buffer['from'](_0x265311['packageBase64'],_0x4f8955(0x12d)),_0x528ff1=new Blob([_0x2c7076],{'type':'application/zip'}),_0x5d8361=(_0x265311[_0x4f8955(0xd8)]||'skill')+_0x4f8955(0xd4);if(typeof File!==_0x4f8955(0x102))return new File([_0x528ff1],_0x5d8361,{'type':_0x4f8955(0xe2)});return _0x528ff1;}function normalizeSkillHubRuntimeListResponse(_0x14081f,_0x246bb7,_0x5b0d07,_0x3b522c){const _0x15b329=a74_0x15ef,_0x5f4908=Array['isArray'](_0x246bb7)?_0x246bb7:Array['isArray'](_0x246bb7?.[_0x15b329(0xeb)])?_0x246bb7[_0x15b329(0xeb)]:[],_0x3ce7af=_0x3b522c?.[_0x15b329(0xe0)](),_0x3f22c5=_0x5f4908[_0x15b329(0xfc)](_0x14dde5=>!_0x3ce7af||_0x14dde5['slug']===_0x3ce7af)[_0x15b329(0x147)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x4a6523=>Boolean(_0x4a6523)),_0x47b912=_0x3f22c5[_0x15b329(0xfc)](_0x275b2e=>_0x275b2e[_0x15b329(0xec)]===_0x15b329(0x148)),_0x50c819=_0x3f22c5[_0x15b329(0xfc)](_0x1236ac=>_0x1236ac[_0x15b329(0xec)]===_0x15b329(0xd0));return{'appCode':_0x14081f,'personal':_0x5b0d07===_0x15b329(0xd0)?[]:_0x47b912,'company':_0x5b0d07===_0x15b329(0x148)?[]:_0x50c819,'effective':buildEffectiveRuntimeSkills(_0x47b912,_0x50c819,_0x5b0d07)};}function skillHubRuntimeItemToRuntimeSkill(_0x135f3b){const _0x1c926f=a74_0x15ef,_0x2d3563=_0x135f3b[_0x1c926f(0x142)]?.[_0x1c926f(0xe0)](),_0x464e9b=skillHubVisibilityToScope(_0x135f3b[_0x1c926f(0xd3)]);if(!_0x2d3563||!_0x464e9b)return undefined;return{'id':_0x135f3b['id'],'appCode':_0x135f3b['namespace'],'skillCode':_0x2d3563,'skillName':_0x135f3b[_0x1c926f(0xc5)]??_0x2d3563,'description':_0x135f3b[_0x1c926f(0xc4)],'scope':_0x464e9b,'version':skillHubRuntimeItemVersion(_0x135f3b),'status':_0x135f3b[_0x1c926f(0x128)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x4a867b){const _0xb09606=a74_0x15ef,_0x68d182=_0x4a867b[_0xb09606(0x142)]?.[_0xb09606(0xe0)]();if(!_0x68d182)return undefined;return{'id':_0x4a867b['id'],'appCode':_0x4a867b['namespace'],'skillCode':_0x68d182,'skillName':_0x4a867b['displayName']??_0x68d182,'description':_0x4a867b[_0xb09606(0xc4)],'example':_0x4a867b[_0xb09606(0xdf)],'scope':skillHubVisibilityToScope(_0x4a867b['visibility'])??_0x4a867b[_0xb09606(0xd3)]?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x4a867b),'status':_0x4a867b['status']};}function skillHubVisibilityToScope(_0x238adb){const _0x505f5b=a74_0x15ef;if(_0x238adb===_0x505f5b(0x116))return _0x505f5b(0x148);if(_0x238adb===_0x505f5b(0xce))return _0x505f5b(0xd0);return undefined;}function skillHubRuntimeItemVersion(_0x1b34c9){const _0x5004f7=a74_0x15ef;return _0x1b34c9['publishedVersion']?.[_0x5004f7(0xca)]??_0x1b34c9[_0x5004f7(0x11b)]?.[_0x5004f7(0xca)]??_0x1b34c9['ownerPreviewVersion']?.['version'];}function buildEffectiveRuntimeSkills(_0x287e9c,_0x21d791,_0x5a8b50){const _0x450fe3=a74_0x15ef;if(_0x5a8b50==='personal')return _0x287e9c;if(_0x5a8b50==='company')return _0x21d791;const _0x303d35=new Map();for(const _0xd010f of _0x21d791){_0x303d35[_0x450fe3(0xc8)](_0xd010f[_0x450fe3(0xd8)],_0xd010f);}for(const _0x1dfda0 of _0x287e9c){_0x303d35['set'](_0x1dfda0[_0x450fe3(0xd8)],_0x1dfda0);}return Array[_0x450fe3(0xc1)](_0x303d35[_0x450fe3(0x12c)]());}function normalizeRuntimeSkillListResponse(_0x300476,_0xf7991){const _0x417619=a74_0x15ef;if(Array['isArray'](_0xf7991)){const _0x16089a=_0xf7991[_0x417619(0xfc)](_0x275dd1=>_0x275dd1[_0x417619(0xec)]==='personal'),_0x1edfa3=_0xf7991[_0x417619(0xfc)](_0x58968a=>_0x58968a['scope']===_0x417619(0xd0));return{'appCode':_0x300476,'personal':_0x16089a,'company':_0x1edfa3,'effective':[..._0x1edfa3,..._0x16089a]};}return{'appCode':_0xf7991?.[_0x417619(0x11f)]??_0x300476,'personal':Array['isArray'](_0xf7991?.[_0x417619(0x148)])?_0xf7991[_0x417619(0x148)]:[],'company':Array[_0x417619(0x100)](_0xf7991?.['company'])?_0xf7991[_0x417619(0xd0)]:[],'effective':Array[_0x417619(0x100)](_0xf7991?.['effective'])?_0xf7991[_0x417619(0x10e)]:[]};}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x10b7ad,_0x62e609){const _0x510a11=a75_0x58e1,_0xd53444=_0x10b7ad();while(!![]){try{const _0x47c683=parseInt(_0x510a11(0x1a1))/0x1+parseInt(_0x510a11(0x1a7))/0x2+-parseInt(_0x510a11(0x1a3))/0x3*(-parseInt(_0x510a11(0x1a5))/0x4)+-parseInt(_0x510a11(0x1a9))/0x5*(-parseInt(_0x510a11(0x1aa))/0x6)+-parseInt(_0x510a11(0x1a8))/0x7*(-parseInt(_0x510a11(0x1a0))/0x8)+-parseInt(_0x510a11(0x1a6))/0x9+-parseInt(_0x510a11(0x1a4))/0xa;if(_0x47c683===_0x62e609)break;else _0xd53444['push'](_0xd53444['shift']());}catch(_0x397e43){_0xd53444['push'](_0xd53444['shift']());}}}(a75_0x40cd,0xd9cda));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a75_0x58e1(_0x103f0d,_0x619f2c){_0x103f0d=_0x103f0d-0x19e;const _0x40cd80=a75_0x40cd();let _0x58e1c8=_0x40cd80[_0x103f0d];return _0x58e1c8;}export async function listDatabases(_0x1a3fa7){const _0x545ae7=a75_0x58e1;if(cache[_0x545ae7(0x19e)](_0x1a3fa7))return cache['get'](_0x1a3fa7);const _0x2cc032=await listDatasets(_0x1a3fa7),_0x5bb3bb=new Map();for(const _0x578365 of _0x2cc032){const _0x4de161=_0x578365['dbtableConfig'];_0x4de161?.[_0x545ae7(0x1ae)]!=null&&_0x5bb3bb[_0x545ae7(0x19f)](_0x4de161['dbId'],_0x4de161[_0x545ae7(0x1af)]??_0x545ae7(0x1a2)+_0x4de161[_0x545ae7(0x1ae)]);}const _0xeae842=[..._0x5bb3bb[_0x545ae7(0x1ab)]()][_0x545ae7(0x1ac)](([_0xdda4ec,_0x59eaa0])=>({'dbId':_0xdda4ec,'dbName':_0x59eaa0}));return cache[_0x545ae7(0x19f)](_0x1a3fa7,_0xeae842),_0xeae842;}export async function getDbName(_0xe13a84,_0x5d6d66){const _0x48a430=a75_0x58e1;try{const _0x1fc1b0=await listDatabases(_0xe13a84);return _0x1fc1b0[_0x48a430(0x1ad)](_0xd45e2d=>_0xd45e2d['dbId']===_0x5d6d66)?.[_0x48a430(0x1af)];}catch{return undefined;}}function a75_0x40cd(){const _0x44781a=['map','find','dbId','dbName','has','set','480TYfRMH','744307etqUip','db-','615309SzBiFF','7593560FjleDS','4pdnLIl','11270520VNjuSk','480788jNZxiw','105959CSovIR','90aJIKGM','268578IBTVBk','entries'];a75_0x40cd=function(){return _0x44781a;};return a75_0x40cd();}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5422b5,_0xcee25){const _0x36beb8=a76_0x13a2,_0x3d03f7=_0x5422b5();while(!![]){try{const _0x3d1ebe=-parseInt(_0x36beb8(0x1ef))/0x1+parseInt(_0x36beb8(0x203))/0x2*(-parseInt(_0x36beb8(0x1f6))/0x3)+-parseInt(_0x36beb8(0x1e5))/0x4+-parseInt(_0x36beb8(0x1f5))/0x5+parseInt(_0x36beb8(0x1eb))/0x6+-parseInt(_0x36beb8(0x1ec))/0x7+parseInt(_0x36beb8(0x1e3))/0x8;if(_0x3d1ebe===_0xcee25)break;else _0x3d03f7['push'](_0x3d03f7['shift']());}catch(_0x43c90f){_0x3d03f7['push'](_0x3d03f7['shift']());}}}(a76_0x94ee,0xd7301));import{createClient}from'@lovrabet/sdk';function a76_0x94ee(){const _0x10bca4=['getOne','env','appCode','15370bNXFsO','authMode','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','22657144KvpQGy',']\x20must\x20be\x20an\x20object.','3379260okMqRe','invokeSource','execute','update','aggregate','validation','3807360kOZcvI','5601414JMrAcL','dataset_','function','193891GSEraS','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','map','bff','delete','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','1925955mOdCFm','141zVhOok',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','string','accessKey','data\x20aggregate\x20--params.aggregate[','field','sql','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','isArray','batchCreate'];a76_0x94ee=function(){return _0x10bca4;};return a76_0x94ee();}import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a76_0x13a2(_0x2eb1f2,_0x396d94){_0x2eb1f2=_0x2eb1f2-0x1e2;const _0x94eec5=a76_0x94ee();let _0x13a2a0=_0x94eec5[_0x2eb1f2];return _0x13a2a0;}import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x82b7c){const _0x37e2f0=a76_0x13a2;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x82b7c[_0x37e2f0(0x202)],'env':_0x82b7c[_0x37e2f0(0x201)],'authMode':_0x82b7c[_0x37e2f0(0x204)],..._0x82b7c[_0x37e2f0(0x1f9)]?{'accessKey':_0x82b7c[_0x37e2f0(0x1f9)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x37e2f0(0x1e6)]}}});}catch(_0x5d68de){clearSdkClient();throw _0x5d68de;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0x74b6c7=a76_0x13a2;if(!_client)throw new Error(_0x74b6c7(0x1e2));return _client;}function normalizeAggregateParams(_0x10e95b){const _0x12f48e=a76_0x13a2,_0x59c8d7=_0x10e95b[_0x12f48e(0x1e9)];if(_0x59c8d7===undefined)return _0x10e95b;if(!Array[_0x12f48e(0x1fe)](_0x59c8d7))throw CliErrors[_0x12f48e(0x1ea)](_0x12f48e(0x1fd));return{..._0x10e95b,'aggregate':_0x59c8d7[_0x12f48e(0x1f1)]((_0x3fd733,_0x21e7f6)=>{const _0x458767=_0x12f48e;if(!_0x3fd733||typeof _0x3fd733!=='object'||Array[_0x458767(0x1fe)](_0x3fd733))throw CliErrors[_0x458767(0x1ea)]('data\x20aggregate\x20--params.aggregate['+_0x21e7f6+_0x458767(0x1e4));const _0x3754dc=_0x3fd733['column']??_0x3fd733['field'];if(typeof _0x3754dc!==_0x458767(0x1f8)||_0x3754dc['trim']()==='')throw CliErrors[_0x458767(0x1ea)](_0x458767(0x1fa)+_0x21e7f6+_0x458767(0x1f7));const _0x26a25a={..._0x3fd733,'column':_0x3754dc};return delete _0x26a25a[_0x458767(0x1fb)],_0x26a25a;})};}export async function executeData(_0xc9ec0f,_0x278e08,_0x5ca4cc){const _0x2c62a9=a76_0x13a2,_0x323131=ensureClient(),_0x39b49f=_0x2c62a9(0x1ed)+_0xc9ec0f,_0x3f1183=_0x323131['models'][_0x39b49f];if(!_0x3f1183||typeof _0x3f1183[_0x278e08]!==_0x2c62a9(0x1ee))throw new Error(_0x2c62a9(0x1f4)+_0x278e08+'\x22.\x20'+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0x278e08===_0x2c62a9(0x1ff))return _0x3f1183[_0x2c62a9(0x1ff)](parseBatchCreateItemsFromParams(_0x5ca4cc));const _0x2ab7b3=_0x5ca4cc!==undefined&&_0x5ca4cc!==null&&!Array[_0x2c62a9(0x1fe)](_0x5ca4cc)?_0x5ca4cc:{};switch(_0x278e08){case _0x2c62a9(0x200):{const _0x3117d7=_0x2ab7b3['id'];if(_0x3117d7===undefined||_0x3117d7===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x3f1183[_0x2c62a9(0x200)](_0x3117d7);}case'update':{const {id:_0x56453e,..._0x5abcc7}=_0x2ab7b3;if(_0x56453e===undefined||_0x56453e===null)throw new Error(_0x2c62a9(0x1f0));return _0x3f1183[_0x2c62a9(0x1e8)](_0x56453e,_0x5abcc7);}case _0x2c62a9(0x1f3):{const _0x567862=_0x2ab7b3['id'];if(_0x567862===undefined||_0x567862===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x3f1183[_0x2c62a9(0x1f3)](_0x567862);}case _0x2c62a9(0x1e9):return _0x3f1183[_0x2c62a9(0x1e9)](normalizeAggregateParams(_0x2ab7b3));default:return _0x3f1183[_0x278e08](_0x2ab7b3);}}export async function executeSdkSql(_0x18c44b,_0x2914d8){const _0x1aff44=a76_0x13a2,_0x22c150=ensureClient();return _0x22c150[_0x1aff44(0x1fc)][_0x1aff44(0x1e7)]({'sqlCode':_0x18c44b,'params':_0x2914d8});}export async function executeSdkBff(_0x401a00,_0x4a6e68){const _0x852fb6=a76_0x13a2,_0xcaa842=ensureClient();return _0xcaa842[_0x852fb6(0x1f2)]['execute']({'scriptName':_0x401a00,'params':_0x4a6e68});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0x99ac(){const _0x56a898=['751350djWIZH','newConfigFileName','279704eLrUCL','5251380ETsWpt','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','9DNjnbi','25NPeXAQ','\x20file.','114631jDfHxm','737680BmECfj','\x20or\x20run\x20`','Configure\x20accessKey\x20in\x20','2610630THUxNH','Set\x20appcode\x20via\x20--appcode\x20or\x20','25958lJYRdP','56jRCgCF','18XXuOMd'];a77_0x99ac=function(){return _0x56a898;};return a77_0x99ac();}const a77_0x466ea3=a77_0x22ff;(function(_0x31b5fb,_0xfe141c){const _0x4542ef=a77_0x22ff,_0xa17574=_0x31b5fb();while(!![]){try{const _0x59f046=parseInt(_0x4542ef(0x17e))/0x1*(parseInt(_0x4542ef(0x17c))/0x2)+parseInt(_0x4542ef(0x17a))/0x3+-parseInt(_0x4542ef(0x177))/0x4+parseInt(_0x4542ef(0x174))/0x5*(-parseInt(_0x4542ef(0x17f))/0x6)+-parseInt(_0x4542ef(0x17d))/0x7*(parseInt(_0x4542ef(0x181))/0x8)+parseInt(_0x4542ef(0x173))/0x9*(parseInt(_0x4542ef(0x171))/0xa)+-parseInt(_0x4542ef(0x176))/0xb;if(_0x59f046===_0xfe141c)break;else _0xa17574['push'](_0xa17574['shift']());}catch(_0x4156bd){_0xa17574['push'](_0xa17574['shift']());}}}(a77_0x99ac,0x80fac));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a77_0x22ff(_0x5d0b05,_0xede2dd){_0x5d0b05=_0x5d0b05-0x171;const _0x99aca5=a77_0x99ac();let _0x22ffc8=_0x99aca5[_0x5d0b05];return _0x22ffc8;}import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a77_0x466ea3(0x179)+PRODUCT_CONFIG[a77_0x466ea3(0x180)]+a77_0x466ea3(0x178)+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a77_0x466ea3(0x17b)+PRODUCT_CONFIG[a77_0x466ea3(0x180)]+'.','notInProjectHint':a77_0x466ea3(0x172)+PRODUCT_CONFIG[a77_0x466ea3(0x180)]+a77_0x466ea3(0x175)});export const CliErrors={...baseCliErrors,'rateLimited':(_0xda2446,_0x2d5f95)=>new CliError('rate_limited',0x2,_0xda2446,_0x2d5f95)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x595488,_0xcc525d){var _0x5969a5=a78_0x1b44,_0x529286=_0x595488();while(!![]){try{var _0x120dab=parseInt(_0x5969a5(0x164))/0x1+-parseInt(_0x5969a5(0x163))/0x2+parseInt(_0x5969a5(0x161))/0x3+parseInt(_0x5969a5(0x15d))/0x4+-parseInt(_0x5969a5(0x162))/0x5+-parseInt(_0x5969a5(0x15c))/0x6*(parseInt(_0x5969a5(0x15e))/0x7)+-parseInt(_0x5969a5(0x15f))/0x8*(-parseInt(_0x5969a5(0x160))/0x9);if(_0x120dab===_0xcc525d)break;else _0x529286['push'](_0x529286['shift']());}catch(_0x24255b){_0x529286['push'](_0x529286['shift']());}}}(a78_0x16d7,0xce9d3));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a78_0x16d7(){var _0x11d5ba=['7197208EYzhHc','18wAyOIk','2500038SGoWWi','5298590bNoBtC','1994000oviaVt','1365176kuPuIT','1255986bpWKIX','2319332lXsXTL','56JBFevj'];a78_0x16d7=function(){return _0x11d5ba;};return a78_0x16d7();}function a78_0x1b44(_0x3a3f4a,_0x35b554){_0x3a3f4a=_0x3a3f4a-0x15c;var _0x16d7c6=a78_0x16d7();var _0x1b44f6=_0x16d7c6[_0x3a3f4a];return _0x1b44f6;}import{buildAllFlags as a78_0x23b03d}from'@lovrabet/cli-framework';export function buildAllFlags(_0x262ebb){return a78_0x23b03d(_0x262ebb,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1769a6,_0x18fba3){const _0x113c20=a79_0x39ba,_0x2807db=_0x1769a6();while(!![]){try{const _0x37166b=-parseInt(_0x113c20(0xea))/0x1*(parseInt(_0x113c20(0xe6))/0x2)+parseInt(_0x113c20(0xe7))/0x3+parseInt(_0x113c20(0xeb))/0x4+parseInt(_0x113c20(0xec))/0x5*(parseInt(_0x113c20(0xed))/0x6)+parseInt(_0x113c20(0xe8))/0x7*(-parseInt(_0x113c20(0xe3))/0x8)+-parseInt(_0x113c20(0xee))/0x9+parseInt(_0x113c20(0xe4))/0xa*(parseInt(_0x113c20(0xe9))/0xb);if(_0x37166b===_0x18fba3)break;else _0x2807db['push'](_0x2807db['shift']());}catch(_0x4ead8b){_0x2807db['push'](_0x2807db['shift']());}}}(a79_0x1452,0x5e289));function a79_0x39ba(_0x6bcd90,_0xc33314){_0x6bcd90=_0x6bcd90-0xe3;const _0x1452ce=a79_0x1452();let _0x39baf6=_0x1452ce[_0x6bcd90];return _0x39baf6;}export function dryRun(_0x2a7893,_0x1277b2){const _0x276f5c={'method':_0x2a7893,'url':_0x1277b2},_0x19dad9={'body'(_0x5640bd){const _0x1d6cf7=a79_0x39ba;return _0x276f5c[_0x1d6cf7(0xe5)]=_0x5640bd,_0x19dad9;},'description'(_0x8da5c1){return _0x276f5c['description']=_0x8da5c1,_0x19dad9;},'build'(){return{..._0x276f5c};}};return _0x19dad9;}function a79_0x1452(){const _0x2b0da8=['1405XUZgdF','11076UvJgoH','4948470zrAMgC','48lMjXZT','18610clJbPR','body','78MrFwzC','627234KspsDk','429436IZvfge','3157jEophc','4887CUmNQc','929092HqJjXE'];a79_0x1452=function(){return _0x2b0da8;};return a79_0x1452();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80_0x30f0fa=a80_0x3136;(function(_0xf48251,_0x420ac6){const _0x1f6fa1=a80_0x3136,_0x653165=_0xf48251();while(!![]){try{const _0x26cc80=-parseInt(_0x1f6fa1(0x183))/0x1*(parseInt(_0x1f6fa1(0x17c))/0x2)+parseInt(_0x1f6fa1(0x182))/0x3+-parseInt(_0x1f6fa1(0x186))/0x4+-parseInt(_0x1f6fa1(0x187))/0x5*(parseInt(_0x1f6fa1(0x17f))/0x6)+-parseInt(_0x1f6fa1(0x185))/0x7*(parseInt(_0x1f6fa1(0x188))/0x8)+parseInt(_0x1f6fa1(0x17d))/0x9*(parseInt(_0x1f6fa1(0x181))/0xa)+parseInt(_0x1f6fa1(0x17e))/0xb;if(_0x26cc80===_0x420ac6)break;else _0x653165['push'](_0x653165['shift']());}catch(_0x173925){_0x653165['push'](_0x653165['shift']());}}}(a80_0x4c1c,0x6d587));function a80_0x4c1c(){const _0x1b509a=['7618vcSBSe','parseFlags','7mqizEr','401824YAwMmS','2484455ZZoJOM','1591184GBHmYB','204Aiubph','9EAGtsQ','14261500sKAPdu','6IUxnSM','validateFlags','3572210rTqLvQ','1102317FaYDfC'];a80_0x4c1c=function(){return _0x1b509a;};return a80_0x4c1c();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a80_0x30f0fa(0x184)];function a80_0x3136(_0x54dcf7,_0x1d516c){_0x54dcf7=_0x54dcf7-0x17c;const _0x4c1cfc=a80_0x4c1c();let _0x3136b8=_0x4c1cfc[_0x54dcf7];return _0x3136b8;}export const validateFlags=helpers[a80_0x30f0fa(0x180)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x263d0b,_0x54d306){const _0x1b4526=a81_0x2fc8,_0x516507=_0x263d0b();while(!![]){try{const _0x553266=parseInt(_0x1b4526(0x134))/0x1+parseInt(_0x1b4526(0x137))/0x2*(-parseInt(_0x1b4526(0x130))/0x3)+-parseInt(_0x1b4526(0x135))/0x4*(parseInt(_0x1b4526(0x13d))/0x5)+parseInt(_0x1b4526(0x141))/0x6+parseInt(_0x1b4526(0x142))/0x7*(-parseInt(_0x1b4526(0x13c))/0x8)+parseInt(_0x1b4526(0x136))/0x9*(-parseInt(_0x1b4526(0x140))/0xa)+-parseInt(_0x1b4526(0x138))/0xb*(-parseInt(_0x1b4526(0x13a))/0xc);if(_0x553266===_0x54d306)break;else _0x516507['push'](_0x516507['shift']());}catch(_0x37dbea){_0x516507['push'](_0x516507['shift']());}}}(a81_0x1033,0x19682));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x273777=a81_0x2fc8;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG[_0x273777(0x132)]+_0x273777(0x133)});}export function generateCommandHelp(_0x40d5f7){return createGenerators()['generateCommandHelp'](_0x40d5f7);}export function generateServiceHelp(_0x4c3f92){const _0x40a4f3=a81_0x2fc8;return createGenerators()[_0x40a4f3(0x13b)](_0x4c3f92);}function a81_0x2fc8(_0x36e552,_0x3961e8){_0x36e552=_0x36e552-0x130;const _0x10334f=a81_0x1033();let _0x2fc857=_0x10334f[_0x36e552];return _0x2fc857;}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function a81_0x1033(){const _0x4a903e=['newConfigFileName','\x20or\x20--appcode).','18579EuHcak','36624EMJUBS','2034mNPxuE','16916pSCLxc','453805ufOQKb','get','12PfyunI','generateServiceHelp','1784KyUKDy','5ZtEBSE','service','has','3430fnnNGf','1142586mPzvTe','1603Emlxwx','3PrWsQs','filter'];a81_0x1033=function(){return _0x4a903e;};return a81_0x1033();}function getAnyServiceEntry(_0x31010f){const _0x329a01=getServiceEntry(_0x31010f);if(_0x329a01)return _0x329a01;try{return getDynamicServiceEntry(_0x31010f);}catch{return undefined;}}function getAnyServiceDefinitions(_0x4e8bc9){const _0x55e63a=a81_0x2fc8,_0x2e407b=serviceGroups[_0x55e63a(0x139)](_0x4e8bc9);if(_0x2e407b)return _0x2e407b;try{return getDynamicServiceDefinitions(_0x4e8bc9);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x2ae461=a81_0x2fc8,_0x2bddcc=new Set(serviceRegistry['map'](_0x3d6b21=>_0x3d6b21[_0x2ae461(0x13e)]));try{return listDynamicServiceEntries()[_0x2ae461(0x131)](_0xa5003=>!_0x2bddcc[_0x2ae461(0x13f)](_0xa5003['service']));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x487648,_0x24f701){var _0x5ed542=a82_0xfe1a,_0x283e1d=_0x487648();while(!![]){try{var _0x530be3=-parseInt(_0x5ed542(0x1ae))/0x1*(-parseInt(_0x5ed542(0x1af))/0x2)+-parseInt(_0x5ed542(0x1b1))/0x3+-parseInt(_0x5ed542(0x1b0))/0x4+parseInt(_0x5ed542(0x1ac))/0x5+-parseInt(_0x5ed542(0x1b2))/0x6+-parseInt(_0x5ed542(0x1ad))/0x7+parseInt(_0x5ed542(0x1b3))/0x8;if(_0x530be3===_0x24f701)break;else _0x283e1d['push'](_0x283e1d['shift']());}catch(_0x4f9721){_0x283e1d['push'](_0x283e1d['shift']());}}}(a82_0x3f4b,0x9e8e8));export{runCommand}from'../framework/runner.js';function a82_0xfe1a(_0x40be68,_0xacb2ab){_0x40be68=_0x40be68-0x1ac;var _0x3f4baa=a82_0x3f4b();var _0xfe1a7b=_0x3f4baa[_0x40be68];return _0xfe1a7b;}function a82_0x3f4b(){var _0x2b6f5c=['381697cXhBCx','2xddoaV','953400XZKpvI','3756039rGUiCW','4124868FndyVn','18408056CzISbp','6096625GnQfGW','7523180HlfJjG'];a82_0x3f4b=function(){return _0x2b6f5c;};return a82_0x3f4b();}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 a83_0x4073(){const _0x45b13b=['14553yrTgYK','10638369QXdePQ','_notice','3912iGasrf','error','update','11TLKpsN','24579930fwUAbO','7234VDQDaA','249087aKqnJL','4ZIluvo','6560952UNqlgF','message','252XHwruF','pretty','3609315wePaWg'];a83_0x4073=function(){return _0x45b13b;};return a83_0x4073();}(function(_0x537ffd,_0x41e839){const _0x2bf0e6=a83_0x540c,_0x316c17=_0x537ffd();while(!![]){try{const _0x163cbb=parseInt(_0x2bf0e6(0x155))/0x1*(-parseInt(_0x2bf0e6(0x15a))/0x2)+-parseInt(_0x2bf0e6(0x156))/0x3*(-parseInt(_0x2bf0e6(0x157))/0x4)+parseInt(_0x2bf0e6(0x15c))/0x5+parseInt(_0x2bf0e6(0x158))/0x6+-parseInt(_0x2bf0e6(0x15d))/0x7*(-parseInt(_0x2bf0e6(0x160))/0x8)+parseInt(_0x2bf0e6(0x15e))/0x9+-parseInt(_0x2bf0e6(0x154))/0xa*(parseInt(_0x2bf0e6(0x153))/0xb);if(_0x163cbb===_0x41e839)break;else _0x316c17['push'](_0x316c17['shift']());}catch(_0x406ca5){_0x316c17['push'](_0x316c17['shift']());}}}(a83_0x4073,0xb1a1b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a83_0x540c(_0xf4c857,_0x20219b){_0xf4c857=_0xf4c857-0x153;const _0x4073a5=a83_0x4073();let _0x540c97=_0x4073a5[_0xf4c857];return _0x540c97;}export function formatOutput(_0x1943fb,_0x5a9fe9){const _0x492deb=a83_0x540c,_0x52de5b=_0x1943fb[_0x492deb(0x15f)],{_notice:_0x1bcd08,..._0x36150c}=_0x1943fb;void _0x1bcd08,baseFormatOutput(_0x36150c,_0x5a9fe9),_0x5a9fe9['format']===_0x492deb(0x15b)&&printPrettyNotice(_0x52de5b);}function printPrettyNotice(_0x1237a7){const _0x5c2199=a83_0x540c;if(!_0x1237a7?.[_0x5c2199(0x162)])return;console[_0x5c2199(0x161)](_0x1237a7[_0x5c2199(0x162)][_0x5c2199(0x159)]+'\x20('+_0x1237a7[_0x5c2199(0x162)]['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2ee12d,_0x52d0ec){const _0x5b3c65=a84_0xe7ed,_0x2a5b20=_0x2ee12d();while(!![]){try{const _0x3663d4=-parseInt(_0x5b3c65(0x8f))/0x1*(parseInt(_0x5b3c65(0x7e))/0x2)+parseInt(_0x5b3c65(0x78))/0x3+parseInt(_0x5b3c65(0x9d))/0x4+parseInt(_0x5b3c65(0x9c))/0x5*(-parseInt(_0x5b3c65(0x97))/0x6)+-parseInt(_0x5b3c65(0x7f))/0x7+-parseInt(_0x5b3c65(0x85))/0x8+parseInt(_0x5b3c65(0x90))/0x9;if(_0x3663d4===_0x52d0ec)break;else _0x2a5b20['push'](_0x2a5b20['shift']());}catch(_0x4f2053){_0x2a5b20['push'](_0x2a5b20['shift']());}}}(a84_0x2bdf,0xdcab0));function toKebab(_0x11735b){const _0x13f812=a84_0xe7ed;return _0x11735b[_0x13f812(0x79)](/_/g,'-')[_0x13f812(0x79)](/-([A-Z]+)/g,(_0x4278db,_0x4eb91f)=>'-'+_0x4eb91f[_0x13f812(0x82)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x5c38bd,_0x1e9e45,_0x43ec1f)=>_0x1e9e45+'-'+_0x43ec1f)['toLowerCase']();}function a84_0x2bdf(){const _0x19d17c=['version','get','toUpperCase','set','sticky','format','help','original','appcode','142VxDKPH','20832021bXziml','global','length','name','app','alias','slice','867774CKsqJc','number','dry-run','corrected','has','20IOMflg','3979236IOwFAs','push','2755719PTxsTt','replace','env','non-interactive','dryRun','boolean','15650arfTwe','5559575DGExzF','string','indexOf','toLowerCase','add','type','6722432AnHxKf'];a84_0x2bdf=function(){return _0x19d17c;};return a84_0x2bdf();}function a84_0xe7ed(_0x323278,_0x141f3e){_0x323278=_0x323278-0x77;const _0x2bdf0e=a84_0x2bdf();let _0xe7ed25=_0x2bdf0e[_0x323278];return _0xe7ed25;}function buildKnownFlags(_0x487db3){const _0x4a7278=a84_0xe7ed,_0x3c36a5=new Set();for(const _0x5ec281 of _0x487db3){_0x3c36a5[_0x4a7278(0x83)](_0x5ec281['name']),_0x3c36a5[_0x4a7278(0x83)](toCamelCase(_0x5ec281[_0x4a7278(0x93)]));}for(const _0x2773b9 of[_0x4a7278(0x99),_0x4a7278(0x7c),'yes',_0x4a7278(0x8b)]){_0x3c36a5[_0x4a7278(0x83)](_0x2773b9);}for(const _0x5c11b4 of[_0x4a7278(0x8c),_0x4a7278(0x7a),_0x4a7278(0x8e),_0x4a7278(0x94),'nonInteractive',_0x4a7278(0x7b),'ci',_0x4a7278(0x91),_0x4a7278(0x86)]){_0x3c36a5[_0x4a7278(0x83)](_0x5c11b4);}return _0x3c36a5;}function buildFlagTypeMap(_0x7f52bc){const _0x2184ed=a84_0xe7ed,_0x2a7da8=new Map();for(const _0x57a610 of _0x7f52bc){_0x2a7da8[_0x2184ed(0x89)](_0x57a610[_0x2184ed(0x93)],_0x57a610[_0x2184ed(0x84)]),_0x2a7da8[_0x2184ed(0x89)](toCamelCase(_0x57a610['name']),_0x57a610[_0x2184ed(0x84)]);}return _0x2a7da8;}function toCamelCase(_0x2e9d3e){const _0x5319a4=a84_0xe7ed;return _0x2e9d3e['replace'](/-([a-z])/g,(_0xc4f8c0,_0x5b46fc)=>_0x5b46fc[_0x5319a4(0x88)]());}function aliasHandler(_0x10dde3,_0x58b47d){const _0x4cb6d1=a84_0xe7ed,_0x2c61c0=[];for(const _0x209fe4 of Object['keys'](_0x10dde3)){if(_0x58b47d[_0x4cb6d1(0x9b)](_0x209fe4))continue;const _0x1c6a38=toKebab(_0x209fe4);_0x1c6a38!==_0x209fe4&&_0x58b47d[_0x4cb6d1(0x9b)](_0x1c6a38)&&_0x2c61c0['push']({'original':_0x209fe4,'corrected':_0x1c6a38,'handler':_0x4cb6d1(0x95)});}return _0x2c61c0;}function stickyHandler(_0x43cbc9,_0x13832e,_0xaf5984){const _0x5a9bb4=a84_0xe7ed,_0x259f32=[];for(const [_0x782f32,_0x2ed371]of Object['entries'](_0x43cbc9)){if(_0x2ed371!==!![])continue;for(let _0x38325b=_0x782f32['length']-0x1;_0x38325b>0x0;_0x38325b--){const _0x54de19=_0x782f32[_0x5a9bb4(0x96)](0x0,_0x38325b),_0x4246e2=_0x782f32[_0x5a9bb4(0x96)](_0x38325b),_0x5ed94d=toKebab(_0x54de19),_0x439e10=toCamelCase(_0x54de19),_0x3b0d93=_0x13832e[_0x5a9bb4(0x9b)](_0x54de19)?_0x54de19:_0x13832e['has'](_0x5ed94d)?_0x5ed94d:_0x13832e[_0x5a9bb4(0x9b)](_0x439e10)?_0x439e10:null;if(!_0x3b0d93)continue;const _0x1288ea=_0xaf5984[_0x5a9bb4(0x87)](_0x3b0d93)??_0x5a9bb4(0x80);let _0x3a762d;if(_0x1288ea===_0x5a9bb4(0x98)){const _0x43983b=Number(_0x4246e2);if(isNaN(_0x43983b)||_0x4246e2==='')continue;_0x3a762d=_0x43983b;}else{if(_0x1288ea===_0x5a9bb4(0x7d))continue;else{if(_0x4246e2==='')continue;_0x3a762d=_0x4246e2;}}_0x259f32[_0x5a9bb4(0x77)]({'original':_0x782f32,'corrected':_0x3b0d93+'='+_0x3a762d,'handler':_0x5a9bb4(0x8a)});break;}}return _0x259f32;}export function correctFlags(_0x89e9a8,_0x1b3a2a){const _0x3c9e43=a84_0xe7ed,_0x4e3a5a=buildKnownFlags(_0x1b3a2a),_0x41f301=buildFlagTypeMap(_0x1b3a2a),_0x3dc385=aliasHandler(_0x89e9a8,_0x4e3a5a),_0x362002=stickyHandler(_0x89e9a8,_0x4e3a5a,_0x41f301),_0x96cc25=[..._0x3dc385,..._0x362002];if(_0x96cc25[_0x3c9e43(0x92)]===0x0)return{'flags':_0x89e9a8,'corrections':[]};const _0x3a815e={..._0x89e9a8},_0x53e4b9=new Set();for(const _0x57b59b of _0x3dc385){_0x3a815e[_0x57b59b[_0x3c9e43(0x9a)]]=_0x89e9a8[_0x57b59b['original']],_0x53e4b9[_0x3c9e43(0x83)](_0x57b59b['original']);}for(const _0x1e300f of _0x362002){const _0x2bc8af=_0x1e300f[_0x3c9e43(0x9a)][_0x3c9e43(0x81)]('='),_0x403c60=_0x1e300f[_0x3c9e43(0x9a)][_0x3c9e43(0x96)](0x0,_0x2bc8af),_0x516a40=_0x1e300f[_0x3c9e43(0x9a)][_0x3c9e43(0x96)](_0x2bc8af+0x1),_0x50ffd1=_0x41f301['get'](_0x403c60)??_0x3c9e43(0x80);_0x50ffd1===_0x3c9e43(0x98)?_0x3a815e[_0x403c60]=Number(_0x516a40):_0x3a815e[_0x403c60]=_0x516a40,_0x53e4b9[_0x3c9e43(0x83)](_0x1e300f[_0x3c9e43(0x8d)]);}for(const _0x3c78c8 of _0x53e4b9){delete _0x3a815e[_0x3c78c8];}return{'flags':_0x3a815e,'corrections':_0x96cc25};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a85_0x3cdf32=a85_0x2009;(function(_0x3a73d0,_0x1e455b){const _0x1430bb=a85_0x2009,_0x380235=_0x3a73d0();while(!![]){try{const _0x3ddeab=parseInt(_0x1430bb(0x1e7))/0x1*(-parseInt(_0x1430bb(0x1f3))/0x2)+-parseInt(_0x1430bb(0x1f4))/0x3*(-parseInt(_0x1430bb(0x1eb))/0x4)+-parseInt(_0x1430bb(0x1e8))/0x5*(-parseInt(_0x1430bb(0x1f7))/0x6)+-parseInt(_0x1430bb(0x1fc))/0x7+parseInt(_0x1430bb(0x1e6))/0x8*(-parseInt(_0x1430bb(0x202))/0x9)+-parseInt(_0x1430bb(0x1fd))/0xa+parseInt(_0x1430bb(0x1fb))/0xb;if(_0x3ddeab===_0x1e455b)break;else _0x380235['push'](_0x380235['shift']());}catch(_0x5dc64a){_0x380235['push'](_0x380235['shift']());}}}(a85_0x4daa,0xc6c73));function a85_0x2009(_0x76687e,_0x3b33c2){_0x76687e=_0x76687e-0x1e0;const _0x4daa88=a85_0x4daa();let _0x2009bb=_0x4daa88[_0x76687e];return _0x2009bb;}function a85_0x4daa(){const _0x595d23=['40pnXqwr','3METlDm','1003595Atrxid','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','rateLimited','426596SdsKvR','toUpperCase','EXCEED_MAX_QPS_LIMIT','call','number','retry-after','object','get','862348SBpfhU','18VYSdhs','test','trim','18MfLYQx','string','Retry-After','isArray','40410095AJUpFE','10963484jKmJLd','2780670PLGIYJ','MAX_QPS_LIMIT','function','Retry\x20after\x20','retryAfter','1734660wIAXEj','Request\x20rate\x20limit\x20exceeded.','toLowerCase','retryAfterSeconds','IP_RATE_LIMIT_EXCEEDED','Wait\x20','\x20seconds\x20before\x20retrying.','errorCode','has','Retry\x20after\x20a\x20short\x20delay.'];a85_0x4daa=function(){return _0x595d23;};return a85_0x4daa();}import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a85_0x3cdf32(0x1ed),a85_0x3cdf32(0x1fe),a85_0x3cdf32(0x1e0)]);function nonEmptyString(_0x5f04da){const _0x86c337=a85_0x3cdf32;if(typeof _0x5f04da!==_0x86c337(0x1f8))return undefined;const _0x2ab1dc=_0x5f04da[_0x86c337(0x1f6)]();return _0x2ab1dc||undefined;}function buildRetryHint(_0x35baf6){const _0x1e28d6=a85_0x3cdf32,_0x396265=nonEmptyString(_0x35baf6),_0x66322=_0x396265?/^\d+$/[_0x1e28d6(0x1f5)](_0x396265)?_0x1e28d6(0x1e1)+_0x396265+_0x1e28d6(0x1e2):_0x1e28d6(0x200)+_0x396265+'.':_0x1e28d6(0x1e5);return _0x66322+_0x1e28d6(0x1e9);}export function createRateLimitError(_0x1da5c9){const _0x127e77=a85_0x3cdf32,_0x4c4e03=nonEmptyString(_0x1da5c9[_0x127e77(0x1e3)])?.[_0x127e77(0x1ec)](),_0x58b1e9=Number(_0x1da5c9['status'])===0x1ad||_0x4c4e03!==undefined&&RATE_LIMIT_ERROR_CODES[_0x127e77(0x1e4)](_0x4c4e03);if(!_0x58b1e9)return undefined;return CliErrors[_0x127e77(0x1ea)](nonEmptyString(_0x1da5c9['message'])??_0x127e77(0x203),buildRetryHint(_0x1da5c9[_0x127e77(0x201)]));}export function readRetryAfter(_0x136795){const _0x2090eb=a85_0x3cdf32;if(!_0x136795||typeof _0x136795!==_0x2090eb(0x1f1))return undefined;const _0x1d94ec=_0x136795[_0x2090eb(0x1f2)];if(typeof _0x1d94ec===_0x2090eb(0x1ff)){const _0x163ace=_0x1d94ec[_0x2090eb(0x1ee)](_0x136795,_0x2090eb(0x1f9))??_0x1d94ec['call'](_0x136795,'retry-after');return nonEmptyString(_0x163ace);}for(const [_0xa38131,_0x42227f]of Object['entries'](_0x136795)){if(_0xa38131[_0x2090eb(0x204)]()===_0x2090eb(0x1f0))return nonEmptyString(_0x42227f)??(typeof _0x42227f==='number'?String(_0x42227f):undefined);}return undefined;}export function readRetryAfterSeconds(_0x2eff1b){const _0x1452e6=a85_0x3cdf32;if(!_0x2eff1b||typeof _0x2eff1b!==_0x1452e6(0x1f1)||Array[_0x1452e6(0x1fa)](_0x2eff1b))return undefined;const _0x4eadf2=_0x2eff1b[_0x1452e6(0x205)];if(typeof _0x4eadf2===_0x1452e6(0x1ef))return Number['isInteger'](_0x4eadf2)&&_0x4eadf2>=0x0?String(_0x4eadf2):undefined;const _0x585279=nonEmptyString(_0x4eadf2);return _0x585279&&/^\d+$/[_0x1452e6(0x1f5)](_0x585279)?_0x585279:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a86_0x4374(_0xc4b22b,_0x19394c){_0xc4b22b=_0xc4b22b-0x166;var _0x51f497=a86_0x51f4();var _0x437421=_0x51f497[_0xc4b22b];return _0x437421;}(function(_0x4788d9,_0x1785c2){var _0x195c68=a86_0x4374,_0xfc4894=_0x4788d9();while(!![]){try{var _0x1be509=-parseInt(_0x195c68(0x16f))/0x1+parseInt(_0x195c68(0x169))/0x2*(parseInt(_0x195c68(0x168))/0x3)+parseInt(_0x195c68(0x16b))/0x4+-parseInt(_0x195c68(0x16c))/0x5*(-parseInt(_0x195c68(0x16e))/0x6)+parseInt(_0x195c68(0x16a))/0x7+-parseInt(_0x195c68(0x167))/0x8*(parseInt(_0x195c68(0x166))/0x9)+-parseInt(_0x195c68(0x16d))/0xa;if(_0x1be509===_0x1785c2)break;else _0xfc4894['push'](_0xfc4894['shift']());}catch(_0x226b30){_0xfc4894['push'](_0xfc4894['shift']());}}}(a86_0x51f4,0xa95c9));function a86_0x51f4(){var _0x142b21=['21Rutpxi','194494sDoFva','2647393xBkNHa','3758560HeEQib','233815INbiws','12263150rxYnWo','138ehFgRC','12070DcxwMJ','8703cYvhAL','9448ptMPgC'];a86_0x51f4=function(){return _0x142b21;};return a86_0x51f4();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8d3396,_0x1fe6b3){const _0xc50909=a87_0x5ec7,_0x5dbf22=_0x8d3396();while(!![]){try{const _0x4a4cb9=-parseInt(_0xc50909(0x172))/0x1*(parseInt(_0xc50909(0x189))/0x2)+-parseInt(_0xc50909(0x179))/0x3*(parseInt(_0xc50909(0x176))/0x4)+-parseInt(_0xc50909(0x186))/0x5+-parseInt(_0xc50909(0x16f))/0x6+-parseInt(_0xc50909(0x174))/0x7+-parseInt(_0xc50909(0x17b))/0x8+parseInt(_0xc50909(0x187))/0x9*(parseInt(_0xc50909(0x17c))/0xa);if(_0x4a4cb9===_0x1fe6b3)break;else _0x5dbf22['push'](_0x5dbf22['shift']());}catch(_0x40b57d){_0x5dbf22['push'](_0x5dbf22['shift']());}}}(a87_0x2112,0x5c3ee));function a87_0x5ec7(_0x4c0a98,_0x3848a6){_0x4c0a98=_0x4c0a98-0x16e;const _0x21121d=a87_0x2112();let _0x5ec711=_0x21121d[_0x4c0a98];return _0x5ec711;}import{CLI_BIN_NAME}from'../constant/cli.js';function a87_0x2112(){const _0xc3d727=['push','\x20\x20\x20','2616535SBOGZQ','9kaPqgJ','--yes','707340wdRjAd','name','417066CyFAMx','command','service','1WbDmPC','stringify','3855761VkDyqj','affectedRecords','45128LGxrPj','join','params=','108nxtbzc','name=','5831968FIeAvB','30102970ldmUTM','entries','length','\x20\x20\x20Affected:\x20','description','params','code','id='];a87_0x2112=function(){return _0xc3d727;};return a87_0x2112();}export function buildConfirmationLines(_0x543f33,_0x2d9dee,_0x3dadd2){const _0x565f42=a87_0x5ec7,_0x1e43f3=buildConfirmationContext(_0x543f33,_0x2d9dee,_0x3dadd2),_0x56b248=['⚠\x20\x20High-risk\x20operation:\x20'+_0x1e43f3['commandLabel']];return _0x1e43f3[_0x565f42(0x180)]&&_0x56b248[_0x565f42(0x184)](_0x565f42(0x185)+_0x1e43f3[_0x565f42(0x180)]),_0x1e43f3[_0x565f42(0x175)]&&_0x56b248[_0x565f42(0x184)](_0x565f42(0x17f)+_0x1e43f3[_0x565f42(0x175)]),_0x56b248['push']('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x56b248;}export function reconstructCommandArgv(_0x25814f,_0x19fa12){const _0x45a99f=a87_0x5ec7,_0x2dee86=[CLI_BIN_NAME,_0x25814f[_0x45a99f(0x171)],_0x25814f[_0x45a99f(0x170)]];for(const [_0x705992,_0xeab323]of Object[_0x45a99f(0x17d)](_0x19fa12)){if(_0xeab323===!![])_0x2dee86[_0x45a99f(0x184)]('--'+_0x705992);else _0xeab323!==![]&&_0xeab323!==undefined&&_0xeab323!==''&&_0x2dee86[_0x45a99f(0x184)]('--'+_0x705992+'\x20'+JSON[_0x45a99f(0x173)](_0xeab323));}return _0x2dee86['push'](_0x45a99f(0x188)),_0x2dee86['join']('\x20');}function buildConfirmationContext(_0x406668,_0x947610,_0x3850c5){const _0x3dff65=a87_0x5ec7,_0x48c49e=extractAffectedRecords(_0x3850c5);return{'commandLabel':_0x947610,'description':_0x406668[_0x3dff65(0x180)],'affectedRecords':_0x48c49e};}function extractAffectedRecords(_0x477d9e){const _0x1181b4=a87_0x5ec7,_0x53deae=[];if(_0x477d9e[_0x1181b4(0x182)])_0x53deae[_0x1181b4(0x184)]('code='+_0x477d9e['code']);if(_0x477d9e['id'])_0x53deae['push'](_0x1181b4(0x183)+_0x477d9e['id']);if(_0x477d9e[_0x1181b4(0x16e)])_0x53deae[_0x1181b4(0x184)](_0x1181b4(0x17a)+_0x477d9e[_0x1181b4(0x16e)]);if(_0x477d9e[_0x1181b4(0x181)])_0x53deae[_0x1181b4(0x184)](_0x1181b4(0x178)+_0x477d9e[_0x1181b4(0x181)]);return _0x53deae[_0x1181b4(0x17e)]>0x0?_0x53deae[_0x1181b4(0x177)](',\x20'):undefined;}
|