@lovrabet/lovrabet-cli 2.0.13 → 2.0.14-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/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/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/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/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/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/skill/index.js +1 -1
- package/lib/commands/skill/templates.js +1 -0
- package/lib/commands/skill/validate.js +1 -0
- 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/config/schema.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/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/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.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.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/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a43_0x5ec242=a43_0x1277;(function(_0x581d7b,_0x5e7f09){const _0x2b1bd5=a43_0x1277,_0x535bf4=_0x581d7b();while(!![]){try{const _0x1de9ca=-parseInt(_0x2b1bd5(0x19e))/0x1*(-parseInt(_0x2b1bd5(0x1a4))/0x2)+-parseInt(_0x2b1bd5(0x1a9))/0x3+-parseInt(_0x2b1bd5(0x1a2))/0x4+parseInt(_0x2b1bd5(0x1a8))/0x5+-parseInt(_0x2b1bd5(0x1aa))/0x6*(parseInt(_0x2b1bd5(0x1a5))/0x7)+-parseInt(_0x2b1bd5(0x1a1))/0x8+parseInt(_0x2b1bd5(0x1a3))/0x9*(parseInt(_0x2b1bd5(0x1a0))/0xa);if(_0x1de9ca===_0x5e7f09)break;else _0x535bf4['push'](_0x535bf4['shift']());}catch(_0xf32ad){_0x535bf4['push'](_0x535bf4['shift']());}}}(a43_0xb46e,0xd3122));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a43_0x5ec242(0x19f),a43_0x5ec242(0x1a7),'daily'];function a43_0xb46e(){const _0x298965=['11671208TABHUF','5121000LIIjmd','137817yOlwpU','25450aVpGvO','364EZNAza','dev','development','7395585tDGRfa','4897287PluOMa','107490hjBEAq','ENV','daily','64CmRMcS','production','2530CEsVPw'];a43_0xb46e=function(){return _0x298965;};return a43_0xb46e();}export function normalizeEnv(_0x316933){const _0x31eacd=a43_0x5ec242;return _0x316933==='online'?_0x31eacd(0x19f):_0x316933;}export function isProduction(_0x5b166a){const _0xc9af69=a43_0x5ec242;return normalizeEnv(_0x5b166a)===_0xc9af69(0x19f);}function a43_0x1277(_0x5bffd3,_0x5599e2){_0x5bffd3=_0x5bffd3-0x19c;const _0xb46e7c=a43_0xb46e();let _0x127752=_0xb46e7c[_0x5bffd3];return _0x127752;}export function isDaily(_0x44bb4e){const _0x3a4aff=a43_0x5ec242;return normalizeEnv(_0x44bb4e)===_0x3a4aff(0x19d);}export function isDev(_0x111174){const _0x1f8b3d=a43_0x5ec242,_0x5eb03d=normalizeEnv(_0x111174);return _0x5eb03d==='development'||_0x5eb03d===_0x1f8b3d(0x1a6);}let env=normalizeEnv(productEnv(a43_0x5ec242(0x19c))||'production');export function getEnv(){return env;}export function initEnv(_0xae27e1){env=normalizeEnv(_0xae27e1);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44_0x17d01a=a44_0x5918;function a44_0x45ab(){const _0x42d3fa=['669960tlNLXj','3031MjIUoH','1468172bJhzwa','compress','12450PEQeei','105kRpTdX','pretty','730548gpxUte','365330HVypjS','320224KuUnfv','14750MhwgTp','json'];a44_0x45ab=function(){return _0x42d3fa;};return a44_0x45ab();}function a44_0x5918(_0x122a0c,_0xd8bbec){_0x122a0c=_0x122a0c-0x1ca;const _0x45aba9=a44_0x45ab();let _0x591860=_0x45aba9[_0x122a0c];return _0x591860;}(function(_0x349963,_0x27861e){const _0x212d4c=a44_0x5918,_0x589b32=_0x349963();while(!![]){try{const _0x1d34f6=parseInt(_0x212d4c(0x1d2))/0x1+-parseInt(_0x212d4c(0x1d3))/0x2*(-parseInt(_0x212d4c(0x1ce))/0x3)+-parseInt(_0x212d4c(0x1cb))/0x4+-parseInt(_0x212d4c(0x1d1))/0x5+-parseInt(_0x212d4c(0x1cd))/0x6*(-parseInt(_0x212d4c(0x1ca))/0x7)+-parseInt(_0x212d4c(0x1d5))/0x8+-parseInt(_0x212d4c(0x1d0))/0x9;if(_0x1d34f6===_0x27861e)break;else _0x589b32['push'](_0x589b32['shift']());}catch(_0x354911){_0x589b32['push'](_0x589b32['shift']());}}}(a44_0x45ab,0xd4d76));export const OUTPUT_FORMAT_VALUES=[a44_0x17d01a(0x1d4),a44_0x17d01a(0x1cf),a44_0x17d01a(0x1cc)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a45_0x13e48d=a45_0x5e38;(function(_0x261921,_0x3500c7){const _0x3c4aa2=a45_0x5e38,_0x36bbbe=_0x261921();while(!![]){try{const _0x492f57=parseInt(_0x3c4aa2(0x1db))/0x1+-parseInt(_0x3c4aa2(0x1c3))/0x2+-parseInt(_0x3c4aa2(0x1cf))/0x3+-parseInt(_0x3c4aa2(0x1d0))/0x4+-parseInt(_0x3c4aa2(0x1d2))/0x5*(parseInt(_0x3c4aa2(0x1d7))/0x6)+-parseInt(_0x3c4aa2(0x1ca))/0x7+parseInt(_0x3c4aa2(0x1c1))/0x8*(parseInt(_0x3c4aa2(0x1c8))/0x9);if(_0x492f57===_0x3500c7)break;else _0x36bbbe['push'](_0x36bbbe['shift']());}catch(_0x4f70ad){_0x36bbbe['push'](_0x36bbbe['shift']());}}}(a45_0x2643,0x46932));function a45_0x5e38(_0x530984,_0x5c524b){_0x530984=_0x530984-0x1c1;const _0x264392=a45_0x2643();let _0x5e38fa=_0x264392[_0x530984];return _0x5e38fa;}function a45_0x2643(){const _0x16cee0=['Lovrabet\x20User\x20Center','545531csJhpy','https://daily-runtime.lovrabet.com','RABETBASE','lovrabet','/user/ak','1365480saRqtu','1043640rkFjVq','https://user-daily.lovrabet.com','109360YQZzBF','envPrefix','LOVRABET','SKIP_NPX_SKILLS','https://daily-api.lovrabet.com','114KUqIIn','cli:lovrabet-runtime','map','https://runtime.lovrabet.com','425721SLiZBZ','317488CnJkXz','.lovrabetrc','394056AhFDDw','https://registry.npmjs.org','Lovrabet\x20Runtime\x20CLI','https://api.lovrabet.com','.lovrabet.json','288ifuCnZ'];a45_0x2643=function(){return _0x16cee0;};return a45_0x2643();}export const PRODUCT_CONFIG={'cliBinName':a45_0x13e48d(0x1cd),'cliDisplayName':a45_0x13e48d(0x1c5),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a45_0x13e48d(0x1c4),'envPrefix':a45_0x13e48d(0x1d4),'legacyEnvPrefixes':[a45_0x13e48d(0x1cc)],'configFileNames':['.lovrabet.json',a45_0x13e48d(0x1c2)],'newConfigFileName':a45_0x13e48d(0x1c7),'homeDirName':'.lovrabet','logFileName':'.lovrabet-runtime.log','invokeSource':a45_0x13e48d(0x1d8),'userCenterDisplayName':a45_0x13e48d(0x1c9),'skipNpxSkillsEnvSuffix':a45_0x13e48d(0x1d5),'domains':{'production':{'user':'https://user.lovrabet.com','api':a45_0x13e48d(0x1c6),'runtime':a45_0x13e48d(0x1da)},'nonProduction':{'user':a45_0x13e48d(0x1d1),'api':a45_0x13e48d(0x1d6),'runtime':a45_0x13e48d(0x1cb)}},'accessKeyCreatePath':a45_0x13e48d(0x1ce)};export function productEnvName(_0x4f8551){const _0x11e745=a45_0x13e48d;return PRODUCT_CONFIG[_0x11e745(0x1d3)]+'_'+_0x4f8551;}export function productEnvNames(_0x3985c4){const _0x1c6f7b=a45_0x13e48d;return[productEnvName(_0x3985c4),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x1c6f7b(0x1d9)](_0xe6319e=>_0xe6319e+'_'+_0x3985c4)];}export function productEnv(_0x4a2b32){for(const _0x34838e of productEnvNames(_0x4a2b32)){const _0x506bc9=process.env[_0x34838e];if(_0x506bc9!==undefined)return _0x506bc9;}return undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a46_0x59fb2a=a46_0x88ca;function a46_0x88ca(_0x167cbb,_0x359f43){_0x167cbb=_0x167cbb-0xbd;const _0xe17a52=a46_0xe17a();let _0x88ca50=_0xe17a52[_0x167cbb];return _0x88ca50;}(function(_0x42c0af,_0x586ccf){const _0x97fa12=a46_0x88ca,_0x48df86=_0x42c0af();while(!![]){try{const _0x1d6e69=parseInt(_0x97fa12(0xc2))/0x1+-parseInt(_0x97fa12(0xc8))/0x2*(parseInt(_0x97fa12(0xc4))/0x3)+-parseInt(_0x97fa12(0xbe))/0x4+-parseInt(_0x97fa12(0xc9))/0x5*(parseInt(_0x97fa12(0xc5))/0x6)+-parseInt(_0x97fa12(0xbd))/0x7+-parseInt(_0x97fa12(0xca))/0x8*(-parseInt(_0x97fa12(0xc1))/0x9)+parseInt(_0x97fa12(0xc3))/0xa*(parseInt(_0x97fa12(0xc7))/0xb);if(_0x1d6e69===_0x586ccf)break;else _0x48df86['push'](_0x48df86['shift']());}catch(_0xda3fbf){_0x48df86['push'](_0x48df86['shift']());}}}(a46_0xe17a,0x8d0c7));function a46_0xe17a(){const _0x2ae307=['6464bzZqDv','2099041yvqyIo','4402760IXwRax','read','write','7983vEYFDv','932113bVIqto','200120QzeIaf','3wJJXEd','1731396LTHPpS','high-risk-write','1342ztExrR','1915442LmmWbF','20Rulven'];a46_0xe17a=function(){return _0x2ae307;};return a46_0xe17a();}export const RISK_LEVEL_VALUES=[a46_0x59fb2a(0xbf),a46_0x59fb2a(0xc0),a46_0x59fb2a(0xc6)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a47_0x39b4(_0x59662e,_0x499f1e){_0x59662e=_0x59662e-0xcb;const _0x314b71=a47_0x314b();let _0x39b456=_0x314b71[_0x59662e];return _0x39b456;}function a47_0x314b(){const _0x1669dd=['production','11WSueuK','6487mDrBwh','12WwDGSi','1745390XrqDUn','3xypsnN','domains','197043KgmStN','2285UMgCgM','6426TKiTBL','8lAeXdU','accessKeyCreatePath','1296981TesfFj','141690HFYDrg','3204DlkopW','1612kQJHlM'];a47_0x314b=function(){return _0x1669dd;};return a47_0x314b();}const a47_0x31f4bd=a47_0x39b4;(function(_0x425c1b,_0x3ae20c){const _0x2f1dc1=a47_0x39b4,_0x23aa23=_0x425c1b();while(!![]){try{const _0x20dbb6=parseInt(_0x2f1dc1(0xd5))/0x1*(-parseInt(_0x2f1dc1(0xcd))/0x2)+parseInt(_0x2f1dc1(0xd7))/0x3+parseInt(_0x2f1dc1(0xcf))/0x4*(-parseInt(_0x2f1dc1(0xd8))/0x5)+-parseInt(_0x2f1dc1(0xd3))/0x6*(-parseInt(_0x2f1dc1(0xd9))/0x7)+-parseInt(_0x2f1dc1(0xda))/0x8*(-parseInt(_0x2f1dc1(0xcc))/0x9)+parseInt(_0x2f1dc1(0xd4))/0xa*(parseInt(_0x2f1dc1(0xd1))/0xb)+parseInt(_0x2f1dc1(0xce))/0xc*(parseInt(_0x2f1dc1(0xd2))/0xd);if(_0x20dbb6===_0x3ae20c)break;else _0x23aa23['push'](_0x23aa23['shift']());}catch(_0x354eab){_0x23aa23['push'](_0x23aa23['shift']());}}}(a47_0x314b,0x1df44));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a47_0x31f4bd(0xd6)][a47_0x31f4bd(0xd0)]['user']+PRODUCT_CONFIG[a47_0x31f4bd(0xcb)];
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a46_0x3b8187=a46_0x5509;(function(_0x5e6f94,_0x53291a){const _0x2d5575=a46_0x5509,_0x22cca8=_0x5e6f94();while(!![]){try{const _0x32ec48=parseInt(_0x2d5575(0x1c3))/0x1*(-parseInt(_0x2d5575(0x1c6))/0x2)+-parseInt(_0x2d5575(0x1ac))/0x3+-parseInt(_0x2d5575(0x1d2))/0x4*(-parseInt(_0x2d5575(0x1ce))/0x5)+-parseInt(_0x2d5575(0x1a4))/0x6+-parseInt(_0x2d5575(0x1d3))/0x7+-parseInt(_0x2d5575(0x1b5))/0x8+parseInt(_0x2d5575(0x1e2))/0x9*(parseInt(_0x2d5575(0x1a3))/0xa);if(_0x32ec48===_0x53291a)break;else _0x22cca8['push'](_0x22cca8['shift']());}catch(_0x28b55f){_0x22cca8['push'](_0x22cca8['shift']());}}}(a46_0x3f05,0x9e138));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[a46_0x3b8187(0x1df)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x4b4e64){for(const _0x31ce4b of CONFIG_NAMES){const _0x20adae=resolve(_0x4b4e64,_0x31ce4b);if(existsSync(_0x20adae))return _0x20adae;}return undefined;}function a46_0x5509(_0x35a75c,_0x2c59f2){_0x35a75c=_0x35a75c-0x19d;const _0x3f05e6=a46_0x3f05();let _0x550912=_0x3f05e6[_0x35a75c];return _0x550912;}export function resolveWriteConfigPath(_0x114cd1){const _0x345ef4=a46_0x3b8187,_0x458f76=_0x114cd1==='project'?process[_0x345ef4(0x1cf)]():homedir(),_0x501304=resolveConfigPath(_0x458f76);return _0x501304??resolve(_0x458f76,NEW_CONFIG_NAME);}export function readConfigFile(_0x429061){const _0x2a35f4=a46_0x3b8187;try{if(existsSync(_0x429061)){const _0xe7acee=readFileSync(_0x429061,{'encoding':_0x2a35f4(0x1d5)});if(_0xe7acee){const _0x3eb58b=JSON['parse'](_0xe7acee);return migrateOnlineEnv(_0x429061,_0x3eb58b),_0x3eb58b;}}}catch{}return{};}function migrateOnlineEnv(_0x14a561,_0x29061c){const _0x4cd226=a46_0x3b8187;let _0x261921=![];_0x29061c[_0x4cd226(0x1bb)]===_0x4cd226(0x1bf)&&(_0x29061c[_0x4cd226(0x1bb)]=_0x4cd226(0x19d),_0x261921=!![]);if(_0x29061c[_0x4cd226(0x1aa)]&&typeof _0x29061c['apps']==='object')for(const _0x62b946 of Object['values'](_0x29061c[_0x4cd226(0x1aa)])){_0x62b946&&_0x62b946[_0x4cd226(0x1bb)]==='online'&&(_0x62b946[_0x4cd226(0x1bb)]=_0x4cd226(0x19d),_0x261921=!![]);}if(_0x261921)try{writeConfigFile(_0x14a561,_0x29061c);}catch{}}export function writeConfigFile(_0x36b5d4,_0x3df95d){const _0x2d41fc=a46_0x3b8187,_0x36a7b2=dirname(_0x36b5d4);!existsSync(_0x36a7b2)&&mkdirSync(_0x36a7b2,{'recursive':!![]});const _0x2b7bde=_0x36b5d4+'.tmp';try{writeFileSync(_0x2b7bde,JSON[_0x2d41fc(0x1ab)](_0x3df95d,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x2b7bde,_0x36b5d4);}catch(_0x3a8df7){if(_0x3a8df7[_0x2d41fc(0x1cb)]===_0x2d41fc(0x1b9)||_0x3a8df7[_0x2d41fc(0x1cb)]==='EXDEV'||_0x3a8df7[_0x2d41fc(0x1cb)]==='EACCES'){writeFileSync(_0x36b5d4,JSON['stringify'](_0x3df95d,null,0x2)+'\x0a',{'encoding':_0x2d41fc(0x1d5)});try{unlinkSync(_0x2b7bde);}catch{}}else throw _0x3a8df7;}}catch(_0x20d807){try{unlinkSync(_0x2b7bde);}catch{}throw _0x20d807;}}export function isNonInteractiveMode(_0x52bb0d){const _0xf178c1=a46_0x3b8187;return!!(_0x52bb0d[_0xf178c1(0x1a8)]||_0x52bb0d['ci']||productEnvNames('CI')[_0xf178c1(0x1db)](_0x1e1696=>process.env[_0x1e1696]===_0xf178c1(0x1cd))||process.env.CI===_0xf178c1(0x1cd)||!process[_0xf178c1(0x1cc)][_0xf178c1(0x1e0)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x312147=a46_0x3b8187;if(!process[_0x312147(0x1c4)][_0x312147(0x1e0)])return![];try{const _0x3804ab=process[_0x312147(0x1c4)][_0x312147(0x1a7)];return process[_0x312147(0x1c4)][_0x312147(0x19f)](!![]),process['stdin'][_0x312147(0x19f)](_0x3804ab??![]),!![];}catch{return![];}}function a46_0x3f05(){const _0x1aceae=['string','missing','./constant/env.js','app','project','306560yEbfJn','globalConfig','message','global','EPERM','setRawCommand','env','pageSize','daily','slice','online','runtimeDomain','explicit','ENV','2153UsYMKF','stdin','inherit','1010whoBHF','local-alias','top-level','object','cache','code','stdout','true','5PeYTwN','cwd','values','defaultApp','1438724ijVNKr','8675884IetNQk','raw','utf8','development','appcode','maxRisk','join','riskLevel','some','./constant/domain.js','trim','accessKey','configFileNames','isTTY','userDomain','15507jaSnwd','production','projectConfig','setRawMode','format','parse','read','26500nHhLrQ','6323136NoZnWZ','error','ACCESS_KEY','isRaw','nonInteractive','locale','apps','stringify','2577894KNDkPQ','VERBOSE','apiDomain','setLogPath'];a46_0x3f05=function(){return _0x1aceae;};return a46_0x3f05();}export async function createContext(_0x5f003){const _0x50c712=a46_0x3b8187,_0x528023=readRawConfig(),_0x16a33d=buildConfig(_0x528023,_0x5f003);await initGlobalEnvironment(_0x16a33d);const {getUserDomain:_0x19c236,getApiDomain:_0x4a7e51}=await import(_0x50c712(0x1dc)),_0x306ac0={'apiDomain':_0x4a7e51(),'userDomain':_0x19c236()},_0x380903=await buildAuth(_0x16a33d);logger[_0x50c712(0x1af)](process[_0x50c712(0x1cf)]());const _0x44e54d=(CLI_BIN_NAME+'\x20'+process['argv'][_0x50c712(0x1be)](0x2)[_0x50c712(0x1d9)]('\x20'))[_0x50c712(0x1dd)]();logger[_0x50c712(0x1ba)](_0x44e54d);const _0x3d6ac2=isNonInteractiveMode(_0x5f003);return{'config':_0x16a33d,'auth':_0x380903,'logger':logger,'env':_0x306ac0,'nonInteractive':_0x3d6ac2};}export function buildConfigFromFlags(_0x3fdbca){return buildConfig(readRawConfig(),_0x3fdbca);}export function getLocalAppAliases(_0x3796f4){const _0x1debd9=a46_0x3b8187;return _0x3796f4[_0x1debd9(0x1aa)]&&typeof _0x3796f4[_0x1debd9(0x1aa)]===_0x1debd9(0x1c9)?_0x3796f4[_0x1debd9(0x1aa)]:{};}export function resolveLocalAppAliasCode(_0x225051,_0x49d345){const _0x6b76ec=a46_0x3b8187;if(!_0x49d345)return undefined;const _0x49a54a=getLocalAppAliases(_0x225051)[_0x49d345],_0xc11bdc=_0x49a54a?.['appcode'];return typeof _0xc11bdc==='string'&&_0xc11bdc[_0x6b76ec(0x1dd)]()?_0xc11bdc['trim']():undefined;}export function readAppCodeFromConfig(){const _0x58318d=a46_0x3b8187,_0x3d90dd=readRawConfig(),_0xa0fefc=_0x3d90dd[_0x58318d(0x1d7)]??_0x3d90dd['app'];if(typeof _0xa0fefc==='string'&&_0xa0fefc[_0x58318d(0x1dd)]())return _0xa0fefc[_0x58318d(0x1dd)]();const _0x2140e6=resolveLocalAppAliasCode(_0x3d90dd,typeof _0x3d90dd[_0x58318d(0x1d1)]===_0x58318d(0x1b0)?_0x3d90dd['defaultApp']:undefined);if(_0x2140e6)return _0x2140e6;const _0x19f027=normalizeEnv(String(_0x3d90dd[_0x58318d(0x1bb)]||_0x58318d(0x19d))),_0x22910f=isDaily(_0x19f027)?_0x58318d(0x1bd):isDev(_0x19f027)?'development':'production',_0x1a48cc=resolveCachedAppCode(typeof _0x3d90dd[_0x58318d(0x1d1)]==='string'?_0x3d90dd[_0x58318d(0x1d1)]:undefined,_0x22910f,typeof _0x3d90dd['accessKey']===_0x58318d(0x1b0)?_0x3d90dd['accessKey']:undefined);if(_0x1a48cc)return _0x1a48cc;const _0x329144=Object[_0x58318d(0x1d0)](getLocalAppAliases(_0x3d90dd))['find'](_0x349ba=>_0x349ba?.['appcode']);return typeof _0x329144?.[_0x58318d(0x1d7)]===_0x58318d(0x1b0)&&_0x329144[_0x58318d(0x1d7)]['trim']()?_0x329144[_0x58318d(0x1d7)][_0x58318d(0x1dd)]():undefined;}export function readScopedConfig(_0x13e9b5){const _0x42c78d=a46_0x3b8187,_0x296cc4=_0x13e9b5[_0x42c78d(0x1b8)]?_0x42c78d(0x1b8):_0x42c78d(0x1b4);return readConfigFile(resolveWriteConfigPath(_0x296cc4));}export function writeScopedConfig(_0x272bad,_0x40a7af){const _0x2d4e46=a46_0x3b8187,_0x277a16=_0x40a7af[_0x2d4e46(0x1b8)]?_0x2d4e46(0x1b8):'project';writeConfigFile(resolveWriteConfigPath(_0x277a16),_0x272bad);}export async function initGlobalEnvironment(_0xa91412){const _0x2f053d=a46_0x3b8187,{initEnv:_0x10f610}=await import(_0x2f053d(0x1b2));_0x10f610(_0xa91412[_0x2f053d(0x1bb)]);const {initDomains:_0x482129}=await import('./constant/domain.js');_0x482129({'apiDomain':_0xa91412['raw'][_0x2f053d(0x1ae)]||_0xa91412['raw']['host']||undefined,'userDomain':_0xa91412['raw'][_0x2f053d(0x1e1)]||undefined,'runtimeDomain':_0xa91412[_0x2f053d(0x1d4)][_0x2f053d(0x1c0)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x40e03f){const _0xd3957a=a46_0x3b8187;if(!existsSync(_0x40e03f))return{'status':_0xd3957a(0x1b1)};try{const _0x23b7a4=readFileSync(_0x40e03f,{'encoding':'utf8'});if(!_0x23b7a4?.[_0xd3957a(0x1dd)]())return{'status':'empty'};const _0x20f685=JSON['parse'](_0x23b7a4);return{'status':'ok','data':_0x20f685};}catch(_0x46830a){return{'status':_0xd3957a(0x1a5),'message':_0x46830a instanceof Error?_0x46830a[_0xd3957a(0x1b7)]:String(_0x46830a)};}}export function loadRawConfigLayers(_0x403c8e){const _0x4ead6e=a46_0x3b8187;let _0x13b1a0={},_0x2b1328={},_0x446b03,_0x4ed505;try{_0x446b03=resolveConfigPath(homedir());if(_0x446b03){const _0x903dc1=readFileSync(_0x446b03,{'encoding':_0x4ead6e(0x1d5)});if(_0x903dc1)_0x13b1a0=JSON[_0x4ead6e(0x1a1)](_0x903dc1);}}catch{}try{const _0x3f996f=_0x403c8e||process['cwd']();_0x4ed505=resolveConfigPath(_0x3f996f);if(_0x4ed505){const _0x28800d=readFileSync(_0x4ed505,{'encoding':_0x4ead6e(0x1d5)});if(_0x28800d)_0x2b1328=JSON[_0x4ead6e(0x1a1)](_0x28800d);}}catch{}return{'globalPath':_0x446b03,'projectPath':_0x4ed505,'globalConfig':_0x13b1a0,'projectConfig':_0x2b1328};}function mergeRawConfigLayers(_0x303cbd){const _0x90091f=a46_0x3b8187,{globalConfig:_0x336c5f,projectConfig:_0x416140}=_0x303cbd;if(_0x416140['inherit']===![]){const _0x6d6022={..._0x416140};return delete _0x6d6022[_0x90091f(0x1c5)],_0x6d6022;}const _0x58d49d={..._0x336c5f,..._0x416140};if('defaultApp'in _0x416140)_0x58d49d['defaultApp']=_0x416140[_0x90091f(0x1d1)];else _0x336c5f[_0x90091f(0x1d1)]&&(_0x58d49d['defaultApp']=_0x336c5f['defaultApp']);return _0x58d49d;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5a55b3){return mergeRawConfigLayers(loadRawConfigLayers(_0x5a55b3));}export function readRawConfigWithLayers(_0xe95ac5){const _0x59d5f4=loadRawConfigLayers(_0xe95ac5);return{'config':mergeRawConfigLayers(_0x59d5f4),'layers':_0x59d5f4};}export function resolveDefaultAppSource(_0x25f43e){const _0x3675f8=a46_0x3b8187;if(_0x3675f8(0x1d1)in _0x25f43e[_0x3675f8(0x19e)])return _0x3675f8(0x1b4);if(_0x25f43e['projectConfig'][_0x3675f8(0x1c5)]===![])return null;if(_0x25f43e[_0x3675f8(0x1b6)]['defaultApp'])return'global';return null;}function buildConfig(_0x4fccef,_0x254a5e){const _0x2f1f28=a46_0x3b8187,_0x209416=_0x4fccef['defaultApp']||undefined,_0x54581a=_0x254a5e['app']||env('APP')||undefined,_0x293bcd=_0x54581a||_0x209416||undefined,_0x57a64f=env(_0x2f1f28(0x1a6))||_0x4fccef[_0x2f1f28(0x1de)]||undefined,_0x2772c6=_0x254a5e[_0x2f1f28(0x1bb)]||env(_0x2f1f28(0x1c2))||_0x4fccef[_0x2f1f28(0x1bb)]||DEFAULT_CONFIG_VALUES[_0x2f1f28(0x1bb)],_0x48633e=normalizeEnv(String(_0x2772c6)),_0x1e33e6=isDaily(_0x48633e)?_0x2f1f28(0x1bd):isDev(_0x48633e)?_0x2f1f28(0x1d6):_0x2f1f28(0x19d),_0x341dc2=resolveLocalAppAliasCode(_0x4fccef,_0x293bcd),_0x359d30=resolveCachedAppCode(_0x293bcd,_0x1e33e6,_0x57a64f),_0x39c9ef=typeof _0x254a5e[_0x2f1f28(0x1d7)]===_0x2f1f28(0x1b0)?_0x254a5e[_0x2f1f28(0x1d7)]:undefined,_0xdfd940=env('APPCODE'),_0x39de4d=_0x54581a?undefined:_0x4fccef[_0x2f1f28(0x1d7)]||_0x4fccef[_0x2f1f28(0x1b3)]||undefined,_0x5eddae=_0x39c9ef||_0xdfd940||_0x341dc2||_0x359d30||_0x39de4d||undefined,_0x1a1765=_0x39c9ef?_0x2f1f28(0x1c1):_0xdfd940?_0x2f1f28(0x1bb):_0x341dc2?_0x2f1f28(0x1c7):_0x359d30?_0x2f1f28(0x1ca):_0x39de4d?_0x2f1f28(0x1c8):undefined,_0x2c6cd2=_0x4fccef[_0x2f1f28(0x1a9)]||DEFAULT_CONFIG_VALUES[_0x2f1f28(0x1a9)],_0x209336=undefined,_0x5941ca=_0x254a5e[_0x2f1f28(0x1a0)]||env('FORMAT')||_0x4fccef[_0x2f1f28(0x1a0)],_0x224ff0=normalizeLegacyOutputFormat(_0x5941ca),_0x2d5b5e=env('PAGE_SIZE')||_0x4fccef[_0x2f1f28(0x1bc)],_0x44e407=_0x2d5b5e?Number(_0x2d5b5e)||undefined:undefined,_0x282bbc=_0x4fccef[_0x2f1f28(0x1da)]||_0x4fccef[_0x2f1f28(0x1d8)],_0x353747=_0x282bbc===_0x2f1f28(0x1a2)||_0x282bbc==='write'||_0x282bbc==='high-risk-write'?_0x282bbc:DEFAULT_CONFIG_VALUES[_0x2f1f28(0x1da)],_0x2594d3=env(_0x2f1f28(0x1ad)),_0x10f733=_0x2594d3==='1'||_0x2594d3==='true';return{'appCode':typeof _0x5eddae===_0x2f1f28(0x1b0)&&_0x5eddae[_0x2f1f28(0x1dd)]()?_0x5eddae['trim']():undefined,'appCodeSource':_0x1a1765,'env':_0x1e33e6,'locale':_0x2c6cd2,'cookie':_0x209336,'accessKey':_0x57a64f,'format':_0x224ff0,'pageSize':_0x44e407,'riskLevel':_0x353747,'verbose':_0x10f733,'defaultApp':_0x209416,'currentApp':typeof _0x293bcd===_0x2f1f28(0x1b0)?_0x293bcd:undefined,'raw':_0x4fccef};}function env(_0x3bdc0e){return productEnv(_0x3bdc0e);}async function buildAuth(_0x47bb18){const _0x468bda=a46_0x3b8187,_0x494bf9='',_0x39bcfa=!!_0x47bb18[_0x468bda(0x1de)];return{'cookie':_0x494bf9,'isLoggedIn':_0x39bcfa,async 'getOrLogin'(){if(_0x39bcfa)return _0x494bf9;throw CliErrors['authRequired']();}};}
|
|
1
|
+
const a48_0x598d14=a48_0x5ae9;(function(_0x443052,_0xcb8292){const _0x1940cf=a48_0x5ae9,_0x382302=_0x443052();while(!![]){try{const _0x2c745a=-parseInt(_0x1940cf(0x197))/0x1*(parseInt(_0x1940cf(0x1b4))/0x2)+-parseInt(_0x1940cf(0x1d8))/0x3*(-parseInt(_0x1940cf(0x1b0))/0x4)+-parseInt(_0x1940cf(0x1ad))/0x5*(-parseInt(_0x1940cf(0x1a4))/0x6)+-parseInt(_0x1940cf(0x1d9))/0x7+-parseInt(_0x1940cf(0x1cb))/0x8*(-parseInt(_0x1940cf(0x1ae))/0x9)+-parseInt(_0x1940cf(0x1aa))/0xa*(-parseInt(_0x1940cf(0x19a))/0xb)+-parseInt(_0x1940cf(0x1cc))/0xc;if(_0x2c745a===_0xcb8292)break;else _0x382302['push'](_0x382302['shift']());}catch(_0x507715){_0x382302['push'](_0x382302['shift']());}}}(a48_0x39d9,0x691e9));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';function a48_0x5ae9(_0x55aaff,_0xb71343){_0x55aaff=_0x55aaff-0x195;const _0x39d95c=a48_0x39d9();let _0x5ae94d=_0x39d95c[_0x55aaff];return _0x5ae94d;}const CONFIG_NAMES=PRODUCT_CONFIG[a48_0x598d14(0x1c0)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a48_0x598d14(0x1b1)];function resolveConfigPath(_0x9b34e3){for(const _0x12fcd6 of CONFIG_NAMES){const _0x3d21bc=resolve(_0x9b34e3,_0x12fcd6);if(existsSync(_0x3d21bc))return _0x3d21bc;}return undefined;}export function resolveWriteConfigPath(_0x4b928f){const _0x4b3168=a48_0x598d14,_0x4aee08=_0x4b928f===_0x4b3168(0x1a3)?process[_0x4b3168(0x19e)]():homedir(),_0x499bab=resolveConfigPath(_0x4aee08);return _0x499bab??resolve(_0x4aee08,NEW_CONFIG_NAME);}export function readConfigFile(_0x4f4568){const _0x5b44f2=a48_0x598d14;try{if(existsSync(_0x4f4568)){const _0xcf6e7=readFileSync(_0x4f4568,{'encoding':_0x5b44f2(0x1cd)});if(_0xcf6e7){const _0x1566d3=JSON[_0x5b44f2(0x1b2)](_0xcf6e7);return migrateOnlineEnv(_0x4f4568,_0x1566d3),_0x1566d3;}}}catch{}return{};}function migrateOnlineEnv(_0x5d66b0,_0x16fde3){const _0x4b101a=a48_0x598d14;let _0x1bc4ee=![];_0x16fde3['env']==='online'&&(_0x16fde3['env']=_0x4b101a(0x1be),_0x1bc4ee=!![]);if(_0x16fde3[_0x4b101a(0x1bb)]&&typeof _0x16fde3[_0x4b101a(0x1bb)]===_0x4b101a(0x1ba))for(const _0xce1202 of Object[_0x4b101a(0x1b9)](_0x16fde3['apps'])){_0xce1202&&_0xce1202[_0x4b101a(0x19f)]===_0x4b101a(0x1ce)&&(_0xce1202[_0x4b101a(0x19f)]='production',_0x1bc4ee=!![]);}if(_0x1bc4ee)try{writeConfigFile(_0x5d66b0,_0x16fde3);}catch{}}export function writeConfigFile(_0x412aec,_0x17df29){const _0x5bb605=a48_0x598d14,_0x310b83=dirname(_0x412aec);!existsSync(_0x310b83)&&mkdirSync(_0x310b83,{'recursive':!![]});const _0x685ed8=_0x412aec+_0x5bb605(0x1a8);try{writeFileSync(_0x685ed8,JSON[_0x5bb605(0x19c)](_0x17df29,null,0x2)+'\x0a',{'encoding':_0x5bb605(0x1cd),'mode':0x180});try{renameSync(_0x685ed8,_0x412aec);}catch(_0x4b8dee){if(_0x4b8dee[_0x5bb605(0x1b3)]===_0x5bb605(0x1af)||_0x4b8dee[_0x5bb605(0x1b3)]==='EXDEV'||_0x4b8dee[_0x5bb605(0x1b3)]==='EACCES'){writeFileSync(_0x412aec,JSON[_0x5bb605(0x19c)](_0x17df29,null,0x2)+'\x0a',{'encoding':_0x5bb605(0x1cd)});try{unlinkSync(_0x685ed8);}catch{}}else throw _0x4b8dee;}}catch(_0x44013c){try{unlinkSync(_0x685ed8);}catch{}throw _0x44013c;}}export function isNonInteractiveMode(_0x267830){const _0x1f00d2=a48_0x598d14;return!!(_0x267830[_0x1f00d2(0x1b7)]||_0x267830['ci']||productEnvNames('CI')[_0x1f00d2(0x19b)](_0x2fc1a9=>process.env[_0x2fc1a9]==='true')||process.env.CI===_0x1f00d2(0x1ab)||!process['stdout'][_0x1f00d2(0x1d5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xc46514=a48_0x598d14;if(!process[_0xc46514(0x1c8)][_0xc46514(0x1d5)])return![];try{const _0x50ec20=process[_0xc46514(0x1c8)]['isRaw'];return process[_0xc46514(0x1c8)][_0xc46514(0x1bf)](!![]),process[_0xc46514(0x1c8)][_0xc46514(0x1bf)](_0x50ec20??![]),!![];}catch{return![];}}export async function createContext(_0x4760d7){const _0x3e07da=a48_0x598d14,_0x2d4fcb=readRawConfig(),_0x312650=buildConfig(_0x2d4fcb,_0x4760d7);await initGlobalEnvironment(_0x312650);const {getUserDomain:_0x5d0c94,getApiDomain:_0xcfdfa3}=await import(_0x3e07da(0x1d0)),_0x5c54f7={'apiDomain':_0xcfdfa3(),'userDomain':_0x5d0c94()},_0x2ed160=await buildAuth(_0x312650);logger['setLogPath'](process[_0x3e07da(0x19e)]());const _0x3bf5b9=(CLI_BIN_NAME+'\x20'+process['argv'][_0x3e07da(0x1a2)](0x2)[_0x3e07da(0x1c6)]('\x20'))[_0x3e07da(0x195)]();logger['setRawCommand'](_0x3bf5b9);const _0x1483d8=isNonInteractiveMode(_0x4760d7);return{'config':_0x312650,'auth':_0x2ed160,'logger':logger,'env':_0x5c54f7,'nonInteractive':_0x1483d8};}export function buildConfigFromFlags(_0xbcd5af){return buildConfig(readRawConfig(),_0xbcd5af);}export function getLocalAppAliases(_0x51830d){return _0x51830d['apps']&&typeof _0x51830d['apps']==='object'?_0x51830d['apps']:{};}export function resolveLocalAppAliasCode(_0x27dabd,_0x47a69a){const _0x61f64c=a48_0x598d14;if(!_0x47a69a)return undefined;const _0x45cf83=getLocalAppAliases(_0x27dabd)[_0x47a69a],_0x571c22=_0x45cf83?.['appcode'];return typeof _0x571c22===_0x61f64c(0x199)&&_0x571c22[_0x61f64c(0x195)]()?_0x571c22[_0x61f64c(0x195)]():undefined;}export function readAppCodeFromConfig(){const _0x3bfb1d=a48_0x598d14,_0x104b83=readRawConfig(),_0x255955=_0x104b83[_0x3bfb1d(0x1bd)]??_0x104b83[_0x3bfb1d(0x1a1)];if(typeof _0x255955===_0x3bfb1d(0x199)&&_0x255955[_0x3bfb1d(0x195)]())return _0x255955['trim']();const _0x49a2c9=resolveLocalAppAliasCode(_0x104b83,typeof _0x104b83[_0x3bfb1d(0x198)]===_0x3bfb1d(0x199)?_0x104b83[_0x3bfb1d(0x198)]:undefined);if(_0x49a2c9)return _0x49a2c9;const _0x110b8b=normalizeEnv(String(_0x104b83[_0x3bfb1d(0x19f)]||_0x3bfb1d(0x1be))),_0x43a55a=isDaily(_0x110b8b)?_0x3bfb1d(0x1c7):isDev(_0x110b8b)?_0x3bfb1d(0x1c5):'production',_0x471299=resolveCachedAppCode(typeof _0x104b83[_0x3bfb1d(0x198)]===_0x3bfb1d(0x199)?_0x104b83[_0x3bfb1d(0x198)]:undefined,_0x43a55a,typeof _0x104b83[_0x3bfb1d(0x1da)]==='string'?_0x104b83[_0x3bfb1d(0x1da)]:undefined);if(_0x471299)return _0x471299;const _0x35712d=Object[_0x3bfb1d(0x1b9)](getLocalAppAliases(_0x104b83))[_0x3bfb1d(0x1a7)](_0x192dd7=>_0x192dd7?.['appcode']);return typeof _0x35712d?.['appcode']===_0x3bfb1d(0x199)&&_0x35712d[_0x3bfb1d(0x1bd)][_0x3bfb1d(0x195)]()?_0x35712d['appcode'][_0x3bfb1d(0x195)]():undefined;}export function readScopedConfig(_0x586e9d){const _0x507a21=a48_0x598d14,_0x5407b3=_0x586e9d[_0x507a21(0x1d7)]?_0x507a21(0x1d7):_0x507a21(0x1a3);return readConfigFile(resolveWriteConfigPath(_0x5407b3));}export function writeScopedConfig(_0x39079c,_0x236a8a){const _0x1d0c2e=a48_0x598d14,_0xf3d230=_0x236a8a[_0x1d0c2e(0x1d7)]?_0x1d0c2e(0x1d7):'project';writeConfigFile(resolveWriteConfigPath(_0xf3d230),_0x39079c);}export async function initGlobalEnvironment(_0x14bada){const _0x2cb2f6=a48_0x598d14,{initEnv:_0x21c661}=await import('./constant/env.js');_0x21c661(_0x14bada[_0x2cb2f6(0x19f)]);const {initDomains:_0x49f175}=await import(_0x2cb2f6(0x1d0));_0x49f175({'apiDomain':_0x14bada[_0x2cb2f6(0x1a5)][_0x2cb2f6(0x1bc)]||_0x14bada[_0x2cb2f6(0x1a5)]['host']||undefined,'userDomain':_0x14bada['raw'][_0x2cb2f6(0x1d4)]||undefined,'runtimeDomain':_0x14bada[_0x2cb2f6(0x1a5)]['runtimeDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x30aecb){const _0x473661=a48_0x598d14;if(!existsSync(_0x30aecb))return{'status':_0x473661(0x1a0)};try{const _0x913362=readFileSync(_0x30aecb,{'encoding':_0x473661(0x1cd)});if(!_0x913362?.['trim']())return{'status':'empty'};const _0x4af57e=JSON['parse'](_0x913362);return{'status':'ok','data':_0x4af57e};}catch(_0x349639){return{'status':_0x473661(0x1a6),'message':_0x349639 instanceof Error?_0x349639[_0x473661(0x1c3)]:String(_0x349639)};}}export function loadRawConfigLayers(_0x163e55){const _0xbd2f05=a48_0x598d14;let _0x19d93d={},_0xf6406c={},_0x17d8c5,_0x1073f0;try{_0x17d8c5=resolveConfigPath(homedir());if(_0x17d8c5){const _0x78a9a=readFileSync(_0x17d8c5,{'encoding':_0xbd2f05(0x1cd)});if(_0x78a9a)_0x19d93d=JSON[_0xbd2f05(0x1b2)](_0x78a9a);}}catch{}try{const _0x23d048=_0x163e55||process[_0xbd2f05(0x19e)]();_0x1073f0=resolveConfigPath(_0x23d048);if(_0x1073f0){const _0xa7186c=readFileSync(_0x1073f0,{'encoding':_0xbd2f05(0x1cd)});if(_0xa7186c)_0xf6406c=JSON[_0xbd2f05(0x1b2)](_0xa7186c);}}catch{}return{'globalPath':_0x17d8c5,'projectPath':_0x1073f0,'globalConfig':_0x19d93d,'projectConfig':_0xf6406c};}function mergeRawConfigLayers(_0x4932b7){const _0x22a320=a48_0x598d14,{globalConfig:_0x1a2df5,projectConfig:_0xba9c82}=_0x4932b7;if(_0xba9c82[_0x22a320(0x1c2)]===![]){const _0x3fbf95={..._0xba9c82};return delete _0x3fbf95[_0x22a320(0x1c2)],_0x3fbf95;}const _0x3ba376={..._0x1a2df5,..._0xba9c82};if(_0x22a320(0x198)in _0xba9c82)_0x3ba376['defaultApp']=_0xba9c82[_0x22a320(0x198)];else _0x1a2df5['defaultApp']&&(_0x3ba376[_0x22a320(0x198)]=_0x1a2df5['defaultApp']);return _0x3ba376;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3af2ce){return mergeRawConfigLayers(loadRawConfigLayers(_0x3af2ce));}export function readRawConfigWithLayers(_0x97fe27){const _0x1aa2ec=loadRawConfigLayers(_0x97fe27);return{'config':mergeRawConfigLayers(_0x1aa2ec),'layers':_0x1aa2ec};}export function resolveDefaultAppSource(_0x5a3639){const _0x3ae1cf=a48_0x598d14;if(_0x3ae1cf(0x198)in _0x5a3639[_0x3ae1cf(0x1d2)])return'project';if(_0x5a3639[_0x3ae1cf(0x1d2)][_0x3ae1cf(0x1c2)]===![])return null;if(_0x5a3639[_0x3ae1cf(0x1c1)][_0x3ae1cf(0x198)])return'global';return null;}function buildConfig(_0x4f1244,_0x25d57c){const _0x9bebef=a48_0x598d14,_0x1319cf=_0x4f1244[_0x9bebef(0x198)]||undefined,_0xb2e639=_0x25d57c['app']||env(_0x9bebef(0x1c9))||undefined,_0x44b480=_0xb2e639||_0x1319cf||undefined,_0x55f857=env(_0x9bebef(0x1ac))||_0x4f1244['accessKey']||undefined,_0x33d2a9=_0x25d57c[_0x9bebef(0x19f)]||env(_0x9bebef(0x1ca))||_0x4f1244[_0x9bebef(0x19f)]||DEFAULT_CONFIG_VALUES[_0x9bebef(0x19f)],_0x11cb06=normalizeEnv(String(_0x33d2a9)),_0x551b3b=isDaily(_0x11cb06)?_0x9bebef(0x1c7):isDev(_0x11cb06)?_0x9bebef(0x1c5):'production',_0x3fde32=resolveLocalAppAliasCode(_0x4f1244,_0x44b480),_0x35393c=resolveCachedAppCode(_0x44b480,_0x551b3b,_0x55f857),_0x2a5a61=typeof _0x25d57c['appcode']===_0x9bebef(0x199)?_0x25d57c[_0x9bebef(0x1bd)]:undefined,_0x1dd466=env('APPCODE'),_0x5d9f9c=_0xb2e639?undefined:_0x4f1244[_0x9bebef(0x1bd)]||_0x4f1244[_0x9bebef(0x1a1)]||undefined,_0x2d48a2=_0x2a5a61||_0x1dd466||_0x3fde32||_0x35393c||_0x5d9f9c||undefined,_0x1d6883=_0x2a5a61?'explicit':_0x1dd466?'env':_0x3fde32?_0x9bebef(0x1d6):_0x35393c?_0x9bebef(0x1cf):_0x5d9f9c?_0x9bebef(0x1d3):undefined,_0x13d155=_0x4f1244[_0x9bebef(0x1b5)]||DEFAULT_CONFIG_VALUES[_0x9bebef(0x1b5)],_0x36e4c6=undefined,_0x58232e=_0x25d57c['format']||env(_0x9bebef(0x19d))||_0x4f1244[_0x9bebef(0x1a9)],_0x3b595b=normalizeLegacyOutputFormat(_0x58232e),_0x2191dc=env(_0x9bebef(0x1b6))||_0x4f1244[_0x9bebef(0x1b8)],_0x1e94b3=_0x2191dc?Number(_0x2191dc)||undefined:undefined,_0x3ea666=_0x4f1244[_0x9bebef(0x196)]||_0x4f1244['maxRisk'],_0x3ed19a=_0x3ea666==='read'||_0x3ea666===_0x9bebef(0x1c4)||_0x3ea666==='high-risk-write'?_0x3ea666:DEFAULT_CONFIG_VALUES[_0x9bebef(0x196)],_0x2f1767=env(_0x9bebef(0x1d1)),_0x494c40=_0x2f1767==='1'||_0x2f1767===_0x9bebef(0x1ab);return{'appCode':typeof _0x2d48a2===_0x9bebef(0x199)&&_0x2d48a2[_0x9bebef(0x195)]()?_0x2d48a2[_0x9bebef(0x195)]():undefined,'appCodeSource':_0x1d6883,'env':_0x551b3b,'locale':_0x13d155,'cookie':_0x36e4c6,'accessKey':_0x55f857,'format':_0x3b595b,'pageSize':_0x1e94b3,'riskLevel':_0x3ed19a,'verbose':_0x494c40,'defaultApp':_0x1319cf,'currentApp':typeof _0x44b480===_0x9bebef(0x199)?_0x44b480:undefined,'raw':_0x4f1244};}function env(_0x546044){return productEnv(_0x546044);}function a48_0x39d9(){const _0x37b2d2=['slice','project','234pkPzTr','raw','error','find','.tmp','format','650UNqRLT','true','ACCESS_KEY','27565udJZpW','2140956axBUBM','EPERM','4zePRBC','newConfigFileName','parse','code','8wNLnFh','locale','PAGE_SIZE','nonInteractive','pageSize','values','object','apps','apiDomain','appcode','production','setRawMode','configFileNames','globalConfig','inherit','message','write','development','join','daily','stdin','APP','ENV','16lFHRJV','10506900koiZFi','utf8','online','cache','./constant/domain.js','VERBOSE','projectConfig','top-level','userDomain','isTTY','local-alias','global','2464917HbEDOv','388997OPrNOW','accessKey','trim','riskLevel','178741nyqCti','defaultApp','string','95491PkPEaZ','some','stringify','FORMAT','cwd','env','missing','app'];a48_0x39d9=function(){return _0x37b2d2;};return a48_0x39d9();}async function buildAuth(_0x40145b){const _0x5e1cf9=a48_0x598d14,_0xcd389b='',_0x17751c=!!_0x40145b[_0x5e1cf9(0x1da)];return{'cookie':_0xcd389b,'isLoggedIn':_0x17751c,async 'getOrLogin'(){if(_0x17751c)return _0xcd389b;throw CliErrors['authRequired']();}};}
|
package/lib/core/api-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1321f8,_0x29d4a1){const _0x44083c=a47_0xf6fa,_0x18d2c0=_0x1321f8();while(!![]){try{const _0x310407=-parseInt(_0x44083c(0x1b3))/0x1+parseInt(_0x44083c(0x17c))/0x2+-parseInt(_0x44083c(0x17e))/0x3*(parseInt(_0x44083c(0x1aa))/0x4)+parseInt(_0x44083c(0x1ba))/0x5*(parseInt(_0x44083c(0x1b7))/0x6)+-parseInt(_0x44083c(0x1a2))/0x7+-parseInt(_0x44083c(0x1b8))/0x8+parseInt(_0x44083c(0x178))/0x9;if(_0x310407===_0x29d4a1)break;else _0x18d2c0['push'](_0x18d2c0['shift']());}catch(_0x121489){_0x18d2c0['push'](_0x18d2c0['shift']());}}}(a47_0x4822,0x74287));import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x5666aa){_activeAK=_0x5666aa||undefined;}function a47_0xf6fa(_0x3781e0,_0x21ae43){_0x3781e0=_0x3781e0-0x16a;const _0x4822ea=a47_0x4822();let _0xf6fa2a=_0x4822ea[_0x3781e0];return _0xf6fa2a;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x11f558,_0x3c8246={}){const _0xa4347=a47_0xf6fa,{method:method='GET',body:_0x4039be,headers:headers={},timeout:timeout=0x7530}=_0x3c8246,_0x33db34=_activeAK,_0x3271ec=getRuntimeDomain();if(!_0x33db34)throw CliErrors['authRequired'](_0xa4347(0x18e)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x431bea=''+_0x3271ec+_0x11f558,_0x80c9a3={'X-User-AK':_0x33db34},_0x5b45a6=new AbortController(),_0x1f7acd=setTimeout(()=>_0x5b45a6['abort'](),timeout);try{const _0x5106a2=await fetch(_0x431bea,{'method':method,'headers':{'Content-Type':_0xa4347(0x1a1),'X-Invoke-Source':PRODUCT_CONFIG[_0xa4347(0x190)],..._0x80c9a3,...headers},'body':_0x4039be?JSON['stringify'](_0x4039be):undefined,'signal':_0x5b45a6[_0xa4347(0x18b)]});let _0xf82526;try{_0xf82526=await _0x5106a2[_0xa4347(0x1b2)]();}catch{throw CliErrors[_0xa4347(0x1ad)](_0xa4347(0x195)+_0x5106a2[_0xa4347(0x176)]+')',_0x5106a2[_0xa4347(0x176)]>=0x190?_0xa4347(0x16d):undefined);}if(!_0x5106a2['ok']||_0xf82526[_0xa4347(0x1a8)]===![])throw CliErrors['apiError'](_0xf82526[_0xa4347(0x16c)]||_0xf82526[_0xa4347(0x1a4)]||_0xa4347(0x186)+_0x5106a2[_0xa4347(0x176)],_0xf82526[_0xa4347(0x16f)]?'API\x20error\x20code:\x20'+_0xf82526[_0xa4347(0x16f)]:undefined);return _0xf82526;}catch(_0x4a00dd){if(_0x4a00dd instanceof Error&&_0x4a00dd['name']==='AbortError')throw CliErrors[_0xa4347(0x1ad)](_0xa4347(0x19c)+_0x431bea);throw _0x4a00dd;}finally{clearTimeout(_0x1f7acd);}}async function apiBinaryRequest(_0xa6802a,_0x3f25be={}){const _0x46fe54=a47_0xf6fa,{method:method=_0x46fe54(0x174),headers:headers={},timeout:timeout=0x7530}=_0x3f25be,_0x19aaac=_activeAK,_0x2d6c36=getRuntimeDomain();if(!_0x19aaac)throw CliErrors[_0x46fe54(0x19f)](_0x46fe54(0x18e)+PRODUCT_CONFIG[_0x46fe54(0x170)]+'.');const _0x2b12ed=''+_0x2d6c36+_0xa6802a,_0x550e86=new AbortController(),_0x48bd72=setTimeout(()=>_0x550e86[_0x46fe54(0x185)](),timeout);try{const _0x454fa1=await fetch(_0x2b12ed,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x46fe54(0x190)],'X-User-AK':_0x19aaac,...headers},'signal':_0x550e86[_0x46fe54(0x18b)]});if(!_0x454fa1['ok']){let _0x145775;try{const _0x3c30aa=await _0x454fa1['json']();_0x145775=_0x3c30aa[_0x46fe54(0x16c)]||_0x3c30aa['message']||_0x3c30aa[_0x46fe54(0x16f)];}catch{_0x145775=await _0x454fa1[_0x46fe54(0x192)]()['catch'](()=>undefined);}throw CliErrors[_0x46fe54(0x1ad)](_0x145775||_0x46fe54(0x186)+_0x454fa1['status'],_0x46fe54(0x198)+_0x2b12ed);}return Buffer[_0x46fe54(0x187)](await _0x454fa1[_0x46fe54(0x181)]());}catch(_0x243fa6){if(_0x243fa6 instanceof Error&&_0x243fa6['name']==='AbortError')throw CliErrors[_0x46fe54(0x1ad)](_0x46fe54(0x19c)+_0x2b12ed);throw _0x243fa6;}finally{clearTimeout(_0x48bd72);}}async function toolboxRequest(_0x25a4da,_0x586f77,_0x4952b7={}){const _0x43c334=a47_0xf6fa,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x4952b7,_0x31b287=_activeAK;if(!_0x31b287)throw CliErrors[_0x43c334(0x19f)](_0x43c334(0x18e)+PRODUCT_CONFIG[_0x43c334(0x170)]+'.');const _0x4d7e94=getApiDomain()['replace'](/\/$/,''),_0x26b6fb=new URL(_0x25a4da,_0x4d7e94+_0x43c334(0x19b));if(_0x586f77)for(const [_0x330545,_0x550154]of Object['entries'](_0x586f77)){_0x550154!==undefined&&_0x550154!==null&&_0x26b6fb[_0x43c334(0x18a)]['set'](_0x330545,String(_0x550154));}const _0x48cf24=new AbortController(),_0x3f7c68=setTimeout(()=>_0x48cf24['abort'](),timeout);try{const _0x18b79f=await fetch(_0x26b6fb,{'method':method,'headers':{'Content-Type':_0x43c334(0x1a1),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x31b287,...headers},'signal':_0x48cf24[_0x43c334(0x18b)]});let _0x8e95ed;try{_0x8e95ed=await _0x18b79f[_0x43c334(0x1b2)]();}catch{throw CliErrors[_0x43c334(0x1ad)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x18b79f[_0x43c334(0x176)]+')',_0x18b79f[_0x43c334(0x176)]>=0x190?_0x43c334(0x16d):undefined);}if(!_0x18b79f['ok']){const _0x36f0c8=_0x8e95ed&&typeof _0x8e95ed===_0x43c334(0x175)?_0x8e95ed:{};throw CliErrors['apiError'](_0x36f0c8[_0x43c334(0x16c)]||_0x36f0c8[_0x43c334(0x1a4)]||'Toolbox\x20API\x20error:\x20'+_0x18b79f['status'],_0x36f0c8[_0x43c334(0x16f)]?_0x43c334(0x19d)+_0x36f0c8[_0x43c334(0x16f)]:undefined);}if(_0x8e95ed&&typeof _0x8e95ed===_0x43c334(0x175)&&'success'in _0x8e95ed&&typeof _0x8e95ed[_0x43c334(0x1a8)]===_0x43c334(0x1ae)){const _0x1f01a4=_0x8e95ed;if(!_0x1f01a4[_0x43c334(0x1a8)])throw CliErrors[_0x43c334(0x1ad)](_0x1f01a4[_0x43c334(0x16c)]||_0x1f01a4[_0x43c334(0x1a4)]||_0x43c334(0x1a5),_0x1f01a4[_0x43c334(0x16f)]?_0x43c334(0x19d)+_0x1f01a4['errorCode']:undefined);return _0x1f01a4['data'];}return _0x8e95ed;}catch(_0x63b918){if(_0x63b918 instanceof Error&&_0x63b918[_0x43c334(0x1b4)]===_0x43c334(0x1a9))throw CliErrors['apiError'](_0x43c334(0x19c)+_0x26b6fb[_0x43c334(0x179)]());throw _0x63b918;}finally{clearTimeout(_0x3f7c68);}}export async function getBffScriptInfo(_0x3ebf5f){const _0x5123c9=a47_0xf6fa,_0x10cb4c=await apiRequest(_0x5123c9(0x18d)+_0x3ebf5f);if(!_0x10cb4c[_0x5123c9(0x180)])throw CliErrors[_0x5123c9(0x184)](_0x5123c9(0x199)+_0x3ebf5f);return _0x10cb4c[_0x5123c9(0x180)];}export async function getSqlQueryInfo(_0x4df2d7,_0x2e51e1){const _0x1fdfea=a47_0xf6fa,_0xb39ceb=await apiRequest(_0x1fdfea(0x1bd),{'method':_0x1fdfea(0x172),'body':{'appCode':_0x4df2d7,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2e51e1}}),_0x59819c=_0xb39ceb[_0x1fdfea(0x180)],_0x4e16d6=_0x59819c&&typeof _0x59819c===_0x1fdfea(0x175)&&_0x1fdfea(0x1ac)in _0x59819c?_0x59819c[_0x1fdfea(0x1ac)]?.[0x0]:_0x59819c&&typeof _0x59819c===_0x1fdfea(0x175)&&_0x1fdfea(0x193)in _0x59819c?_0x59819c:undefined;if(!_0x4e16d6)throw CliErrors[_0x1fdfea(0x184)](_0x1fdfea(0x1af)+_0x2e51e1);return _0x4e16d6;}function isRemoteAppItem(_0x20aa3b){const _0xe48fcc=a47_0xf6fa;return!!_0x20aa3b&&typeof _0x20aa3b===_0xe48fcc(0x175)&&typeof _0x20aa3b[_0xe48fcc(0x17d)]===_0xe48fcc(0x1b6)&&typeof _0x20aa3b[_0xe48fcc(0x183)]===_0xe48fcc(0x1b6);}function extractRemoteAppItems(_0x1f2091){const _0x4c9f12=a47_0xf6fa;if(Array[_0x4c9f12(0x16b)](_0x1f2091))return _0x1f2091[_0x4c9f12(0x1b5)](isRemoteAppItem);if(!_0x1f2091||typeof _0x1f2091!=='object')throw CliErrors[_0x4c9f12(0x1ad)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x185e21=_0x1f2091;if(Array['isArray'](_0x185e21[_0x4c9f12(0x1ac)]))return _0x185e21[_0x4c9f12(0x1ac)][_0x4c9f12(0x1b5)](isRemoteAppItem);if(_0x185e21[_0x4c9f12(0x180)]&&typeof _0x185e21[_0x4c9f12(0x180)]===_0x4c9f12(0x175)){const _0x16b8b3=_0x185e21[_0x4c9f12(0x180)];if(Array[_0x4c9f12(0x16b)](_0x16b8b3[_0x4c9f12(0x1ac)]))return _0x16b8b3[_0x4c9f12(0x1ac)][_0x4c9f12(0x1b5)](isRemoteAppItem);}throw CliErrors['apiError']('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x4a2d37=a47_0xf6fa,_0xc37bfb=await apiRequest(_0x4a2d37(0x197));return extractRemoteAppItems(_0xc37bfb[_0x4a2d37(0x180)]);}export async function getLoginUserInfo(){const _0x3af202=a47_0xf6fa,_0x25525f=await apiRequest('/client/user/loginUserInfo');if(!_0x25525f[_0x3af202(0x180)]||typeof _0x25525f[_0x3af202(0x180)]!==_0x3af202(0x175)||Array['isArray'](_0x25525f[_0x3af202(0x180)]))throw CliErrors[_0x3af202(0x1ad)](_0x3af202(0x1a6));return _0x25525f[_0x3af202(0x180)];}export async function listDatasets(_0x335c8a,_0x3eafd8){const _0x3e82ab=a47_0xf6fa,_0x485d3c=await apiRequest(_0x3e82ab(0x19a),{'method':'POST','body':{'appCode':_0x335c8a,..._0x3eafd8?.[_0x3e82ab(0x1b0)]&&{'code':_0x3eafd8['code']},..._0x3eafd8?.[_0x3e82ab(0x1b4)]&&{'name':_0x3eafd8[_0x3e82ab(0x1b4)]}}});return extractList(_0x485d3c['data']);}export async function getDatasetDetail(_0x137e12){const _0x39fb3b=a47_0xf6fa,_0x4e3eb3=/^\d+$/[_0x39fb3b(0x17a)](_0x137e12)?'id':_0x39fb3b(0x1b0),_0x215477=await apiRequest('/client/dataset/query?'+_0x4e3eb3+'='+_0x137e12);return _0x215477[_0x39fb3b(0x180)];}export async function getDatasetSdkUsageDoc(_0x1f21ff,_0x263f9a){const _0x8cec96=a47_0xf6fa,_0x56101e=await toolboxRequest(_0x8cec96(0x18f),{'datasetCode':_0x1f21ff,'appCode':_0x263f9a});return typeof _0x56101e?.[_0x8cec96(0x191)]===_0x8cec96(0x1b6)?_0x56101e[_0x8cec96(0x191)]:'';}export async function listRuntimeArtifacts(_0x32cdb6,_0x5549aa){const _0x9cc7b7=a47_0xf6fa,_0x409b5d=new URLSearchParams({'appCode':_0x32cdb6});if(_0x5549aa?.[_0x9cc7b7(0x1bf)])_0x409b5d[_0x9cc7b7(0x1a3)](_0x9cc7b7(0x1bf),_0x5549aa[_0x9cc7b7(0x1bf)]);if(_0x5549aa?.[_0x9cc7b7(0x189)])_0x409b5d[_0x9cc7b7(0x1a3)](_0x9cc7b7(0x189),_0x5549aa[_0x9cc7b7(0x189)]);if(_0x5549aa?.[_0x9cc7b7(0x17f)]!==undefined)_0x409b5d[_0x9cc7b7(0x1a3)]('favorite',String(_0x5549aa[_0x9cc7b7(0x17f)]));const _0x37cc33=await apiRequest(_0x9cc7b7(0x171)+_0x409b5d[_0x9cc7b7(0x179)]());return Array['isArray'](_0x37cc33[_0x9cc7b7(0x180)])?_0x37cc33[_0x9cc7b7(0x180)]:[];}export async function getRuntimeArtifact(_0x56ecb4,_0x42d123){const _0x5f4929=a47_0xf6fa,_0x56b1ad=await apiRequest(_0x5f4929(0x173)+_0x56ecb4+'?appCode='+encodeURIComponent(_0x42d123));if(!_0x56b1ad['data'])throw CliErrors['validation'](_0x5f4929(0x1be)+_0x56ecb4);return _0x56b1ad[_0x5f4929(0x180)];}export async function createRuntimeArtifact(_0x3af4af,_0xe52b98){const _0x278214=a47_0xf6fa,_0x11efa9=await apiRequest('/client/artifact/create',{'method':_0x278214(0x172),'body':{'appCode':_0x3af4af,..._0xe52b98}});return _0x11efa9[_0x278214(0x180)];}export async function updateRuntimeArtifact(_0x4f4a25,_0x3f0e8f,_0x3ac1cf){const _0xafd501=a47_0xf6fa,_0x3f55fe=await apiRequest(_0xafd501(0x173)+_0x4f4a25+_0xafd501(0x16a),{'method':'POST','body':{'appCode':_0x3f0e8f,..._0x3ac1cf}});return _0x3f55fe[_0xafd501(0x180)];}export async function listPersonalBffs(_0x293b78){const _0x45cb83=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x293b78));return Array['isArray'](_0x45cb83['data'])?_0x45cb83['data']:[];}export async function getPersonalBff(_0x153cf5,_0x3a53af){const _0x4f5ae8=a47_0xf6fa,_0x59e566=await apiRequest('/client/runtime-bff/personal/'+_0x153cf5+_0x4f5ae8(0x1a7)+encodeURIComponent(_0x3a53af));if(!_0x59e566[_0x4f5ae8(0x180)])throw CliErrors['validation'](_0x4f5ae8(0x182)+_0x153cf5);return _0x59e566[_0x4f5ae8(0x180)];}export async function createPersonalBff(_0x409333,_0x5af0f7){const _0x268af6=a47_0xf6fa,_0x2ccd06=await apiRequest(_0x268af6(0x1ab),{'method':'POST','body':{'appCode':_0x409333,..._0x5af0f7}});return _0x2ccd06[_0x268af6(0x180)];}export async function updatePersonalBff(_0x4f7f99,_0x29d6e9,_0x9f7db8){const _0x343940=a47_0xf6fa,_0x4b4994=await apiRequest('/client/runtime-bff/personal/'+_0x4f7f99+_0x343940(0x16a),{'method':_0x343940(0x172),'body':{'appCode':_0x29d6e9,..._0x9f7db8}});return _0x4b4994['data'];}export async function executePersonalBff(_0xae5cb3,_0xb0dfa3,_0x52f495){const _0x12f525=a47_0xf6fa,_0x27ffcc=await apiRequest(_0x12f525(0x1bc)+_0xae5cb3+_0x12f525(0x1bb)+encodeURIComponent(_0xb0dfa3),{'method':'POST','body':_0x52f495});return _0x27ffcc['data'];}export async function listPersonalKnowledgeBaseItems(_0x2f54e9){const _0x3892e4=a47_0xf6fa,_0x23b157=await apiRequest(_0x3892e4(0x19e)+encodeURIComponent(_0x2f54e9));return Array['isArray'](_0x23b157['data'])?_0x23b157['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x56bacd,_0x29c6c3){const _0x80e60c=a47_0xf6fa,_0x39a986=await apiRequest(_0x80e60c(0x17b)+_0x56bacd+_0x80e60c(0x1a7)+encodeURIComponent(_0x29c6c3));if(!_0x39a986['data'])throw CliErrors['validation']('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0x56bacd);return _0x39a986[_0x80e60c(0x180)];}export async function createPersonalKnowledgeBaseItem(_0x5b6d59,_0x2fc603){const _0x2b8ead=a47_0xf6fa,_0x26db51=await apiRequest(_0x2b8ead(0x1a0),{'method':_0x2b8ead(0x172),'body':{'appCode':_0x5b6d59,..._0x2fc603}});return _0x26db51['data'];}export async function updatePersonalKnowledgeBaseItem(_0x566cc2,_0x20f34b,_0x34ae36){const _0x42a888=a47_0xf6fa,_0xae356d=await apiRequest(_0x42a888(0x17b)+_0x566cc2+'/update',{'method':'POST','body':{'appCode':_0x20f34b,..._0x34ae36}});return _0xae356d[_0x42a888(0x180)];}export async function searchKnowledgeBase(_0x33b0df,_0x526bdd){const _0x1d5db1=a47_0xf6fa,_0x469eef=await apiRequest(_0x1d5db1(0x196),{'method':_0x1d5db1(0x172),'body':{'appCode':_0x33b0df,'query':_0x526bdd[_0x1d5db1(0x1b9)],..._0x526bdd[_0x1d5db1(0x177)]!==undefined?{'topK':_0x526bdd[_0x1d5db1(0x177)]}:{}}});return Array[_0x1d5db1(0x16b)](_0x469eef[_0x1d5db1(0x180)])?_0x469eef[_0x1d5db1(0x180)]:[];}export async function listPersonalRuntimeSkills(_0x1c2db5){const _0x317659=a47_0xf6fa,_0x1da863=await apiRequest('/client/skill/personal/list?appCode='+encodeURIComponent(_0x1c2db5));return Array[_0x317659(0x16b)](_0x1da863[_0x317659(0x180)])?_0x1da863[_0x317659(0x180)]:[];}export async function listCompanyRuntimeSkills(_0x19cd73){const _0x33bd63=a47_0xf6fa,_0x4a787a=await apiRequest(_0x33bd63(0x188)+encodeURIComponent(_0x19cd73));return Array['isArray'](_0x4a787a[_0x33bd63(0x180)])?_0x4a787a[_0x33bd63(0x180)]:[];}function a47_0x4822(){const _0x218f82=['arrayBuffer','Personal\x20BFF\x20not\x20found:\x20id=','appName','validation','abort','API\x20error:\x20','from','/client/skill/company/list?appCode=','source','searchParams','signal','/client/skill/list?appCode=','/client/bff/query/','Configure\x20accessKey\x20in\x20','api-doc-generator','invokeSource','markdown','text','sqlCode','/client/skill/personal/create','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/knowledge-base/search','/client/app/my-apps','Download\x20failed:\x20','BFF\x20script\x20not\x20found:\x20id=','/client/dataset/list','/api/node-toolbox/','Request\x20timeout:\x20','Toolbox\x20error\x20code:\x20','/client/knowledge-base/personal/list?appCode=','authRequired','/client/knowledge-base/personal/create','application/json','4990643bqEjkz','set','message','Toolbox\x20API\x20error','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','?appCode=','success','AbortError','83768qUqpDv','/client/runtime-bff/personal/create','tableData','apiError','boolean','SQL\x20query\x20not\x20found:\x20','code','/client/skill/','json','494716tfrIqP','name','filter','string','2083098lkQVZs','7466296NTijQw','query','5qsKrjv','/execute?appCode=','/client/runtime-bff/personal/','/client/sql/query','Artifact\x20not\x20found:\x20id=','artifactType','/update','isArray','errorMsg','Check\x20your\x20credentials\x20and\x20try\x20again.','/client/skill/personal/','errorCode','newConfigFileName','/client/artifact/list?','POST','/client/artifact/','GET','object','status','topK','22687200fhDoxE','toString','test','/client/knowledge-base/personal/','1256632wwfcXU','appCode','126yxwSZl','favorite','data'];a47_0x4822=function(){return _0x218f82;};return a47_0x4822();}export async function listVisibleRuntimeSkills(_0xedef57){const _0x72fa97=a47_0xf6fa,_0x6bb0f1=await apiRequest(_0x72fa97(0x18c)+encodeURIComponent(_0xedef57));return Array[_0x72fa97(0x16b)](_0x6bb0f1[_0x72fa97(0x180)])?_0x6bb0f1[_0x72fa97(0x180)]:[];}export async function createPersonalRuntimeSkill(_0x39c0e0,_0x454032){const _0x11ab51=a47_0xf6fa,_0x4c5319=await apiRequest(_0x11ab51(0x194),{'method':_0x11ab51(0x172),'body':{'appCode':_0x39c0e0,..._0x454032}});return _0x4c5319[_0x11ab51(0x180)];}export async function updatePersonalRuntimeSkill(_0x3d8330,_0x3e2a23,_0x196e39){const _0x3ca7ee=a47_0xf6fa,_0x214d54=await apiRequest(_0x3ca7ee(0x16e)+encodeURIComponent(_0x3d8330)+'/update',{'method':_0x3ca7ee(0x172),'body':{'appCode':_0x3e2a23,..._0x196e39}});return _0x214d54[_0x3ca7ee(0x180)];}export async function downloadRuntimeSkillPackage(_0x15c4b9,_0x4cff49,_0x1644c6){const _0x339852=a47_0xf6fa;return apiBinaryRequest(_0x339852(0x1b1)+encodeURIComponent(_0x15c4b9)+'/'+encodeURIComponent(_0x4cff49)+'/package?appCode='+encodeURIComponent(_0x1644c6));}
|
|
1
|
+
(function(_0x4e434a,_0x47308d){const _0x1314dc=a49_0x53e4,_0x576d9d=_0x4e434a();while(!![]){try{const _0x5d39d9=-parseInt(_0x1314dc(0x195))/0x1+-parseInt(_0x1314dc(0x173))/0x2*(parseInt(_0x1314dc(0x164))/0x3)+-parseInt(_0x1314dc(0x160))/0x4+-parseInt(_0x1314dc(0x192))/0x5*(-parseInt(_0x1314dc(0x18b))/0x6)+-parseInt(_0x1314dc(0x159))/0x7*(-parseInt(_0x1314dc(0x14c))/0x8)+-parseInt(_0x1314dc(0x14f))/0x9+parseInt(_0x1314dc(0x15e))/0xa;if(_0x5d39d9===_0x47308d)break;else _0x576d9d['push'](_0x576d9d['shift']());}catch(_0x2495ee){_0x576d9d['push'](_0x576d9d['shift']());}}}(a49_0x5a0c,0xe0c10));import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a49_0x5a0c(){const _0x52957d=['Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','replace','/client/skill/company/list?appCode=','api-doc-generator','/client/runtime-bff/personal/','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','29600RYsRCP','/client/dataset/list','from','/client/knowledge-base/personal/','SQL\x20query\x20not\x20found:\x20','searchParams','/client/skill/personal/create','arrayBuffer','errorCode','/client/artifact/create','artifactType','query','sqlCode','signal','Personal\x20BFF\x20not\x20found:\x20id=','/update','invokeSource','source','json','test','markdown','tableData','validation','Request\x20timeout:\x20','144042oIDngj','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/client/sql/query','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','message','AbortError','code','185azMOMx','errorMsg','object','1187779ATBVTD','topK','Download\x20failed:\x20','authRequired','/client/user/loginUserInfo','Toolbox\x20error\x20code:\x20','name','API\x20error\x20code:\x20','application/json','filter','/client/dataset/query?','Toolbox\x20API\x20error','API\x20error:\x20','isArray','1520iSFNcF','/client/knowledge-base/personal/create','/api/node-toolbox/','8146350cYwwqP','/client/bff/query/','GET','/execute?appCode=','status','/client/runtime-bff/personal/list?appCode=','POST','Knowledge-base\x20entry\x20not\x20found:\x20id=','set','abort','8603EGQamC','string','favorite','?appCode=','/client/skill/personal/list?appCode=','32182230bEFfEW','newConfigFileName','1043484gjtJde','/client/artifact/','/client/app/my-apps','/client/knowledge-base/search','216fMUGUh','data','apiError','success','BFF\x20script\x20not\x20found:\x20id=','Configure\x20accessKey\x20in\x20','toString','text','stringify'];a49_0x5a0c=function(){return _0x52957d;};return a49_0x5a0c();}import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x7634a2){_activeAK=_0x7634a2||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x4aadd9,_0x5e7a2f={}){const _0x48c3f3=a49_0x53e4,{method:method='GET',body:_0xc76c6f,headers:headers={},timeout:timeout=0x7530}=_0x5e7a2f,_0x265ed3=_activeAK,_0x1f1e61=getRuntimeDomain();if(!_0x265ed3)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x2045b9=''+_0x1f1e61+_0x4aadd9,_0x49761e={'X-User-AK':_0x265ed3},_0x48ec7a=new AbortController(),_0x25e385=setTimeout(()=>_0x48ec7a[_0x48c3f3(0x158)](),timeout);try{const _0x51505c=await fetch(_0x2045b9,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x48c3f3(0x183)],..._0x49761e,...headers},'body':_0xc76c6f?JSON[_0x48c3f3(0x16c)](_0xc76c6f):undefined,'signal':_0x48ec7a[_0x48c3f3(0x180)]});let _0x2dd9ba;try{_0x2dd9ba=await _0x51505c[_0x48c3f3(0x185)]();}catch{throw CliErrors[_0x48c3f3(0x166)](_0x48c3f3(0x18e)+_0x51505c[_0x48c3f3(0x153)]+')',_0x51505c['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x51505c['ok']||_0x2dd9ba[_0x48c3f3(0x167)]===![])throw CliErrors[_0x48c3f3(0x166)](_0x2dd9ba[_0x48c3f3(0x193)]||_0x2dd9ba['message']||_0x48c3f3(0x14a)+_0x51505c[_0x48c3f3(0x153)],_0x2dd9ba['errorCode']?_0x48c3f3(0x145)+_0x2dd9ba['errorCode']:undefined);return _0x2dd9ba;}catch(_0x366f95){if(_0x366f95 instanceof Error&&_0x366f95[_0x48c3f3(0x19b)]===_0x48c3f3(0x190))throw CliErrors[_0x48c3f3(0x166)]('Request\x20timeout:\x20'+_0x2045b9);throw _0x366f95;}finally{clearTimeout(_0x25e385);}}async function apiBinaryRequest(_0x3dd6e2,_0x559bf1={}){const _0x121ae4=a49_0x53e4,{method:method=_0x121ae4(0x151),headers:headers={},timeout:timeout=0x7530}=_0x559bf1,_0x4fc050=_activeAK,_0x1ff261=getRuntimeDomain();if(!_0x4fc050)throw CliErrors[_0x121ae4(0x198)](_0x121ae4(0x169)+PRODUCT_CONFIG[_0x121ae4(0x15f)]+'.');const _0x52ccbc=''+_0x1ff261+_0x3dd6e2,_0x48bb37=new AbortController(),_0x5c0f38=setTimeout(()=>_0x48bb37[_0x121ae4(0x158)](),timeout);try{const _0x46cc03=await fetch(_0x52ccbc,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x121ae4(0x183)],'X-User-AK':_0x4fc050,...headers},'signal':_0x48bb37['signal']});if(!_0x46cc03['ok']){let _0x3d4346;try{const _0x17367b=await _0x46cc03[_0x121ae4(0x185)]();_0x3d4346=_0x17367b[_0x121ae4(0x193)]||_0x17367b[_0x121ae4(0x18f)]||_0x17367b[_0x121ae4(0x17b)];}catch{_0x3d4346=await _0x46cc03[_0x121ae4(0x16b)]()['catch'](()=>undefined);}throw CliErrors[_0x121ae4(0x166)](_0x3d4346||_0x121ae4(0x14a)+_0x46cc03[_0x121ae4(0x153)],_0x121ae4(0x197)+_0x52ccbc);}return Buffer[_0x121ae4(0x175)](await _0x46cc03[_0x121ae4(0x17a)]());}catch(_0x40b18c){if(_0x40b18c instanceof Error&&_0x40b18c['name']===_0x121ae4(0x190))throw CliErrors[_0x121ae4(0x166)](_0x121ae4(0x18a)+_0x52ccbc);throw _0x40b18c;}finally{clearTimeout(_0x5c0f38);}}async function toolboxRequest(_0x546bea,_0x2b9cb4,_0x463701={}){const _0x40e560=a49_0x53e4,{method:method=_0x40e560(0x151),headers:headers={},timeout:timeout=0x7530}=_0x463701,_0x4aa4f9=_activeAK;if(!_0x4aa4f9)throw CliErrors[_0x40e560(0x198)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x40e560(0x15f)]+'.');const _0x31ad37=getApiDomain()[_0x40e560(0x16e)](/\/$/,''),_0x575d4b=new URL(_0x546bea,_0x31ad37+_0x40e560(0x14e));if(_0x2b9cb4)for(const [_0x5292e4,_0x98d70f]of Object['entries'](_0x2b9cb4)){_0x98d70f!==undefined&&_0x98d70f!==null&&_0x575d4b[_0x40e560(0x178)][_0x40e560(0x157)](_0x5292e4,String(_0x98d70f));}const _0x3e6ed4=new AbortController(),_0x4aacfc=setTimeout(()=>_0x3e6ed4[_0x40e560(0x158)](),timeout);try{const _0x331081=await fetch(_0x575d4b,{'method':method,'headers':{'Content-Type':_0x40e560(0x146),'X-Invoke-Source':PRODUCT_CONFIG[_0x40e560(0x183)],'X-User-AK':_0x4aa4f9,...headers},'signal':_0x3e6ed4[_0x40e560(0x180)]});let _0x3fa808;try{_0x3fa808=await _0x331081[_0x40e560(0x185)]();}catch{throw CliErrors['apiError']('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x331081[_0x40e560(0x153)]+')',_0x331081[_0x40e560(0x153)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x331081['ok']){const _0x4efadc=_0x3fa808&&typeof _0x3fa808===_0x40e560(0x194)?_0x3fa808:{};throw CliErrors[_0x40e560(0x166)](_0x4efadc['errorMsg']||_0x4efadc['message']||'Toolbox\x20API\x20error:\x20'+_0x331081[_0x40e560(0x153)],_0x4efadc[_0x40e560(0x17b)]?_0x40e560(0x19a)+_0x4efadc[_0x40e560(0x17b)]:undefined);}if(_0x3fa808&&typeof _0x3fa808===_0x40e560(0x194)&&_0x40e560(0x167)in _0x3fa808&&typeof _0x3fa808[_0x40e560(0x167)]==='boolean'){const _0x6aa5f5=_0x3fa808;if(!_0x6aa5f5[_0x40e560(0x167)])throw CliErrors[_0x40e560(0x166)](_0x6aa5f5[_0x40e560(0x193)]||_0x6aa5f5['message']||_0x40e560(0x149),_0x6aa5f5[_0x40e560(0x17b)]?_0x40e560(0x19a)+_0x6aa5f5[_0x40e560(0x17b)]:undefined);return _0x6aa5f5[_0x40e560(0x165)];}return _0x3fa808;}catch(_0x1f860a){if(_0x1f860a instanceof Error&&_0x1f860a[_0x40e560(0x19b)]===_0x40e560(0x190))throw CliErrors[_0x40e560(0x166)](_0x40e560(0x18a)+_0x575d4b[_0x40e560(0x16a)]());throw _0x1f860a;}finally{clearTimeout(_0x4aacfc);}}export async function getBffScriptInfo(_0x375bb5){const _0x9c0b72=a49_0x53e4,_0x1a20b1=await apiRequest(_0x9c0b72(0x150)+_0x375bb5);if(!_0x1a20b1[_0x9c0b72(0x165)])throw CliErrors[_0x9c0b72(0x189)](_0x9c0b72(0x168)+_0x375bb5);return _0x1a20b1['data'];}export async function getSqlQueryInfo(_0x4c4c4e,_0x2e32e3){const _0x3e556f=a49_0x53e4,_0x14aff6=await apiRequest(_0x3e556f(0x18d),{'method':_0x3e556f(0x155),'body':{'appCode':_0x4c4c4e,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2e32e3}}),_0x43d673=_0x14aff6[_0x3e556f(0x165)],_0x57e36a=_0x43d673&&typeof _0x43d673===_0x3e556f(0x194)&&_0x3e556f(0x188)in _0x43d673?_0x43d673['tableData']?.[0x0]:_0x43d673&&typeof _0x43d673===_0x3e556f(0x194)&&_0x3e556f(0x17f)in _0x43d673?_0x43d673:undefined;if(!_0x57e36a)throw CliErrors[_0x3e556f(0x189)](_0x3e556f(0x177)+_0x2e32e3);return _0x57e36a;}function isRemoteAppItem(_0x39403c){const _0x256722=a49_0x53e4;return!!_0x39403c&&typeof _0x39403c==='object'&&typeof _0x39403c['appCode']===_0x256722(0x15a)&&typeof _0x39403c['appName']===_0x256722(0x15a);}function extractRemoteAppItems(_0x523cd1){const _0x58e3fd=a49_0x53e4;if(Array[_0x58e3fd(0x14b)](_0x523cd1))return _0x523cd1[_0x58e3fd(0x147)](isRemoteAppItem);if(!_0x523cd1||typeof _0x523cd1!==_0x58e3fd(0x194))throw CliErrors[_0x58e3fd(0x166)](_0x58e3fd(0x16d));const _0x27d076=_0x523cd1;if(Array[_0x58e3fd(0x14b)](_0x27d076[_0x58e3fd(0x188)]))return _0x27d076[_0x58e3fd(0x188)][_0x58e3fd(0x147)](isRemoteAppItem);if(_0x27d076[_0x58e3fd(0x165)]&&typeof _0x27d076['data']==='object'){const _0x247bb4=_0x27d076[_0x58e3fd(0x165)];if(Array[_0x58e3fd(0x14b)](_0x247bb4[_0x58e3fd(0x188)]))return _0x247bb4[_0x58e3fd(0x188)][_0x58e3fd(0x147)](isRemoteAppItem);}throw CliErrors[_0x58e3fd(0x166)](_0x58e3fd(0x172));}export async function getMyApps(){const _0x15b332=a49_0x53e4,_0x4ee362=await apiRequest(_0x15b332(0x162));return extractRemoteAppItems(_0x4ee362[_0x15b332(0x165)]);}export async function getLoginUserInfo(){const _0x3b943c=a49_0x53e4,_0x47a80d=await apiRequest(_0x3b943c(0x199));if(!_0x47a80d[_0x3b943c(0x165)]||typeof _0x47a80d[_0x3b943c(0x165)]!==_0x3b943c(0x194)||Array['isArray'](_0x47a80d[_0x3b943c(0x165)]))throw CliErrors['apiError'](_0x3b943c(0x18c));return _0x47a80d['data'];}export async function listDatasets(_0x5ded77,_0x46ac46){const _0xa25479=a49_0x53e4,_0x206e12=await apiRequest(_0xa25479(0x174),{'method':_0xa25479(0x155),'body':{'appCode':_0x5ded77,..._0x46ac46?.[_0xa25479(0x191)]&&{'code':_0x46ac46[_0xa25479(0x191)]},..._0x46ac46?.[_0xa25479(0x19b)]&&{'name':_0x46ac46[_0xa25479(0x19b)]}}});return extractList(_0x206e12[_0xa25479(0x165)]);}export async function getDatasetDetail(_0xcc3606){const _0x4da571=a49_0x53e4,_0x2505cf=/^\d+$/[_0x4da571(0x186)](_0xcc3606)?'id':'code',_0x5c3c3c=await apiRequest(_0x4da571(0x148)+_0x2505cf+'='+_0xcc3606);return _0x5c3c3c['data'];}export async function getDatasetSdkUsageDoc(_0x3a5ce8,_0x102282){const _0x5de7c5=a49_0x53e4,_0x55380c=await toolboxRequest(_0x5de7c5(0x170),{'datasetCode':_0x3a5ce8,'appCode':_0x102282});return typeof _0x55380c?.['markdown']===_0x5de7c5(0x15a)?_0x55380c[_0x5de7c5(0x187)]:'';}export async function listRuntimeArtifacts(_0x3f0801,_0x58cdf8){const _0x3a4f00=a49_0x53e4,_0x760d85=new URLSearchParams({'appCode':_0x3f0801});if(_0x58cdf8?.[_0x3a4f00(0x17d)])_0x760d85[_0x3a4f00(0x157)](_0x3a4f00(0x17d),_0x58cdf8[_0x3a4f00(0x17d)]);if(_0x58cdf8?.[_0x3a4f00(0x184)])_0x760d85[_0x3a4f00(0x157)](_0x3a4f00(0x184),_0x58cdf8[_0x3a4f00(0x184)]);if(_0x58cdf8?.['favorite']!==undefined)_0x760d85[_0x3a4f00(0x157)]('favorite',String(_0x58cdf8[_0x3a4f00(0x15b)]));const _0xdc4356=await apiRequest('/client/artifact/list?'+_0x760d85[_0x3a4f00(0x16a)]());return Array['isArray'](_0xdc4356['data'])?_0xdc4356[_0x3a4f00(0x165)]:[];}export async function getRuntimeArtifact(_0x82869c,_0x15067a){const _0x1ab289=a49_0x53e4,_0x14bc4b=await apiRequest(_0x1ab289(0x161)+_0x82869c+_0x1ab289(0x15c)+encodeURIComponent(_0x15067a));if(!_0x14bc4b['data'])throw CliErrors[_0x1ab289(0x189)]('Artifact\x20not\x20found:\x20id='+_0x82869c);return _0x14bc4b['data'];}export async function createRuntimeArtifact(_0x28af73,_0x398df1){const _0x410e9a=a49_0x53e4,_0x2c88fb=await apiRequest(_0x410e9a(0x17c),{'method':'POST','body':{'appCode':_0x28af73,..._0x398df1}});return _0x2c88fb[_0x410e9a(0x165)];}export async function updateRuntimeArtifact(_0x41ce77,_0x4b05ca,_0x50e0fc){const _0x5e06bf=a49_0x53e4,_0x45c7f6=await apiRequest(_0x5e06bf(0x161)+_0x41ce77+'/update',{'method':_0x5e06bf(0x155),'body':{'appCode':_0x4b05ca,..._0x50e0fc}});return _0x45c7f6[_0x5e06bf(0x165)];}export async function listPersonalBffs(_0x3253b3){const _0x4feb3a=a49_0x53e4,_0x2a5827=await apiRequest(_0x4feb3a(0x154)+encodeURIComponent(_0x3253b3));return Array[_0x4feb3a(0x14b)](_0x2a5827[_0x4feb3a(0x165)])?_0x2a5827[_0x4feb3a(0x165)]:[];}export async function getPersonalBff(_0x494b34,_0x39c994){const _0xa7fe32=a49_0x53e4,_0x490747=await apiRequest('/client/runtime-bff/personal/'+_0x494b34+_0xa7fe32(0x15c)+encodeURIComponent(_0x39c994));if(!_0x490747['data'])throw CliErrors[_0xa7fe32(0x189)](_0xa7fe32(0x181)+_0x494b34);return _0x490747[_0xa7fe32(0x165)];}export async function createPersonalBff(_0x391782,_0x539f96){const _0x358f5c=a49_0x53e4,_0x2470a6=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x358f5c(0x155),'body':{'appCode':_0x391782,..._0x539f96}});return _0x2470a6[_0x358f5c(0x165)];}export async function updatePersonalBff(_0x3a8648,_0x407479,_0x232f4a){const _0x4bd1c9=a49_0x53e4,_0x49b4f8=await apiRequest(_0x4bd1c9(0x171)+_0x3a8648+_0x4bd1c9(0x182),{'method':_0x4bd1c9(0x155),'body':{'appCode':_0x407479,..._0x232f4a}});return _0x49b4f8[_0x4bd1c9(0x165)];}export async function executePersonalBff(_0x460382,_0x5e0ba5,_0x7ae695){const _0x3bf653=a49_0x53e4,_0x3e019c=await apiRequest(_0x3bf653(0x171)+_0x460382+_0x3bf653(0x152)+encodeURIComponent(_0x5e0ba5),{'method':_0x3bf653(0x155),'body':_0x7ae695});return _0x3e019c[_0x3bf653(0x165)];}function a49_0x53e4(_0x31c852,_0x471a40){_0x31c852=_0x31c852-0x145;const _0x5a0cd9=a49_0x5a0c();let _0x53e452=_0x5a0cd9[_0x31c852];return _0x53e452;}export async function listPersonalKnowledgeBaseItems(_0x706b7a){const _0x3b69f3=a49_0x53e4,_0x58536a=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x706b7a));return Array[_0x3b69f3(0x14b)](_0x58536a[_0x3b69f3(0x165)])?_0x58536a['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x233322,_0x32a3db){const _0xff6870=a49_0x53e4,_0x2b5a7e=await apiRequest(_0xff6870(0x176)+_0x233322+_0xff6870(0x15c)+encodeURIComponent(_0x32a3db));if(!_0x2b5a7e[_0xff6870(0x165)])throw CliErrors[_0xff6870(0x189)](_0xff6870(0x156)+_0x233322);return _0x2b5a7e[_0xff6870(0x165)];}export async function createPersonalKnowledgeBaseItem(_0x4fd3cf,_0x509071){const _0x1715ef=a49_0x53e4,_0x2ed8d7=await apiRequest(_0x1715ef(0x14d),{'method':_0x1715ef(0x155),'body':{'appCode':_0x4fd3cf,..._0x509071}});return _0x2ed8d7[_0x1715ef(0x165)];}export async function updatePersonalKnowledgeBaseItem(_0x4b719b,_0x3e3acb,_0x3a76b0){const _0x7ebe6a=a49_0x53e4,_0x1ec8c0=await apiRequest(_0x7ebe6a(0x176)+_0x4b719b+_0x7ebe6a(0x182),{'method':_0x7ebe6a(0x155),'body':{'appCode':_0x3e3acb,..._0x3a76b0}});return _0x1ec8c0['data'];}export async function searchKnowledgeBase(_0x1a0dd5,_0x1074c8){const _0x22e67c=a49_0x53e4,_0x3907ad=await apiRequest(_0x22e67c(0x163),{'method':_0x22e67c(0x155),'body':{'appCode':_0x1a0dd5,'query':_0x1074c8[_0x22e67c(0x17e)],..._0x1074c8[_0x22e67c(0x196)]!==undefined?{'topK':_0x1074c8['topK']}:{}}});return Array[_0x22e67c(0x14b)](_0x3907ad[_0x22e67c(0x165)])?_0x3907ad['data']:[];}export async function listPersonalRuntimeSkills(_0x26aed1){const _0x121c73=a49_0x53e4,_0x5276fd=await apiRequest(_0x121c73(0x15d)+encodeURIComponent(_0x26aed1));return Array[_0x121c73(0x14b)](_0x5276fd[_0x121c73(0x165)])?_0x5276fd['data']:[];}export async function listCompanyRuntimeSkills(_0x195950){const _0x2d9403=a49_0x53e4,_0x592d9a=await apiRequest(_0x2d9403(0x16f)+encodeURIComponent(_0x195950));return Array[_0x2d9403(0x14b)](_0x592d9a[_0x2d9403(0x165)])?_0x592d9a[_0x2d9403(0x165)]:[];}export async function listVisibleRuntimeSkills(_0x2e138f){const _0xe4b3bd=a49_0x53e4,_0x2aa8d3=await apiRequest('/client/skill/list?appCode='+encodeURIComponent(_0x2e138f));return Array[_0xe4b3bd(0x14b)](_0x2aa8d3['data'])?_0x2aa8d3['data']:[];}export async function createPersonalRuntimeSkill(_0x13d5fb,_0x5794e4){const _0x517b26=a49_0x53e4,_0x39c044=await apiRequest(_0x517b26(0x179),{'method':_0x517b26(0x155),'body':{'appCode':_0x13d5fb,..._0x5794e4}});return _0x39c044[_0x517b26(0x165)];}export async function updatePersonalRuntimeSkill(_0xbc6f77,_0x977cc5,_0x119539){const _0x5622e3=a49_0x53e4,_0x1b9de0=await apiRequest('/client/skill/personal/'+encodeURIComponent(_0xbc6f77)+_0x5622e3(0x182),{'method':_0x5622e3(0x155),'body':{'appCode':_0x977cc5,..._0x119539}});return _0x1b9de0[_0x5622e3(0x165)];}export async function downloadRuntimeSkillPackage(_0x1c56f7,_0x78ad8f,_0x4bd6eb){return apiBinaryRequest('/client/skill/'+encodeURIComponent(_0x1c56f7)+'/'+encodeURIComponent(_0x78ad8f)+'/package?appCode='+encodeURIComponent(_0x4bd6eb));}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a50_0x343e(_0x55c19e,_0x42b16d){_0x55c19e=_0x55c19e-0x122;const _0x4af8e2=a50_0x4af8();let _0x343e66=_0x4af8e2[_0x55c19e];return _0x343e66;}(function(_0x1a9a47,_0x24a2a8){const _0x47bdbc=a50_0x343e,_0x4173fe=_0x1a9a47();while(!![]){try{const _0x66bf3d=-parseInt(_0x47bdbc(0x12c))/0x1*(parseInt(_0x47bdbc(0x12e))/0x2)+parseInt(_0x47bdbc(0x130))/0x3+parseInt(_0x47bdbc(0x12a))/0x4*(-parseInt(_0x47bdbc(0x12f))/0x5)+-parseInt(_0x47bdbc(0x134))/0x6+-parseInt(_0x47bdbc(0x129))/0x7*(parseInt(_0x47bdbc(0x132))/0x8)+-parseInt(_0x47bdbc(0x135))/0x9*(-parseInt(_0x47bdbc(0x12d))/0xa)+-parseInt(_0x47bdbc(0x125))/0xb*(-parseInt(_0x47bdbc(0x131))/0xc);if(_0x66bf3d===_0x24a2a8)break;else _0x4173fe['push'](_0x4173fe['shift']());}catch(_0x1ef77e){_0x4173fe['push'](_0x4173fe['shift']());}}}(a50_0x4af8,0x73944));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x3a6d59){const _0x15e5b8=a50_0x343e;if(cache[_0x15e5b8(0x12b)](_0x3a6d59))return cache[_0x15e5b8(0x123)](_0x3a6d59);const _0x55dc35=await listDatasets(_0x3a6d59),_0x4e40e6=new Map();for(const _0x28ffcf of _0x55dc35){const _0x489f61=_0x28ffcf[_0x15e5b8(0x126)];_0x489f61?.['dbId']!=null&&_0x4e40e6[_0x15e5b8(0x133)](_0x489f61['dbId'],_0x489f61['dbName']??'db-'+_0x489f61[_0x15e5b8(0x124)]);}const _0xf78de0=[..._0x4e40e6[_0x15e5b8(0x127)]()][_0x15e5b8(0x128)](([_0x2b8e13,_0x13e3d5])=>({'dbId':_0x2b8e13,'dbName':_0x13e3d5}));return cache[_0x15e5b8(0x133)](_0x3a6d59,_0xf78de0),_0xf78de0;}export async function getDbName(_0x3139d4,_0x76cc2b){const _0x4f7bb2=a50_0x343e;try{const _0x1eeab2=await listDatabases(_0x3139d4);return _0x1eeab2[_0x4f7bb2(0x136)](_0x3785b7=>_0x3785b7['dbId']===_0x76cc2b)?.[_0x4f7bb2(0x122)];}catch{return undefined;}}function a50_0x4af8(){const _0x34e2dd=['dbId','54901cCMgDp','dbtableConfig','entries','map','43785TWEKfH','9724oprUXD','has','7tBUeyq','220gBWfTU','194958RlxmlQ','565jweMim','1339716zsmfcL','4812EkSUpv','664nUHdDm','set','4132704ZbWZNo','77913DYtHLf','find','dbName','get'];a50_0x4af8=function(){return _0x34e2dd;};return a50_0x4af8();}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x269b87,_0x3f17d5){const _0x562b52=a51_0x15ab,_0x1e76c4=_0x269b87();while(!![]){try{const _0x45d7e0=parseInt(_0x562b52(0x147))/0x1+parseInt(_0x562b52(0x138))/0x2+-parseInt(_0x562b52(0x131))/0x3+parseInt(_0x562b52(0x145))/0x4+-parseInt(_0x562b52(0x146))/0x5*(parseInt(_0x562b52(0x137))/0x6)+parseInt(_0x562b52(0x13e))/0x7*(parseInt(_0x562b52(0x135))/0x8)+parseInt(_0x562b52(0x141))/0x9;if(_0x45d7e0===_0x3f17d5)break;else _0x1e76c4['push'](_0x1e76c4['shift']());}catch(_0x54eb5a){_0x1e76c4['push'](_0x1e76c4['shift']());}}}(a51_0x5512,0x2224d));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;function a51_0x15ab(_0x232d1e,_0x5c45ed){_0x232d1e=_0x232d1e-0x12b;const _0x551284=a51_0x5512();let _0x15abbf=_0x551284[_0x232d1e];return _0x15abbf;}export function initSdkClient(_0x2deca5){const _0x451d85=a51_0x15ab;_client=createClient({'appCode':_0x2deca5[_0x451d85(0x12c)],'env':_0x2deca5[_0x451d85(0x130)],'authMode':_0x2deca5[_0x451d85(0x13c)],..._0x2deca5[_0x451d85(0x13f)]?{'accessKey':_0x2deca5[_0x451d85(0x13f)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x451d85(0x13a)]}}});}function a51_0x5512(){const _0x589311=['getOne','27060zJiRXE','690160cBTZqO','162512CtFZZp','batchCreate','function','appCode','delete','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','update','env','292626NnApwQ','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','bff','execute','110680vVEpOp','dataset_','6OIGLkF','32960RGAPHC','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','invokeSource','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','authMode','sql','42Uppizj','accessKey','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','959940AtJBvU','models','\x22.\x20'];a51_0x5512=function(){return _0x589311;};return a51_0x5512();}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}export async function executeData(_0x2f60fa,_0x1963d2,_0x4bd741){const _0x5c2924=a51_0x15ab,_0x31d4f0=ensureClient(),_0x4b4d8d=_0x5c2924(0x136)+_0x2f60fa,_0x49391c=_0x31d4f0[_0x5c2924(0x142)][_0x4b4d8d];if(!_0x49391c||typeof _0x49391c[_0x1963d2]!==_0x5c2924(0x12b))throw new Error(_0x5c2924(0x12e)+_0x1963d2+_0x5c2924(0x143)+_0x5c2924(0x132));if(_0x1963d2==='batchCreate')return _0x49391c[_0x5c2924(0x148)](parseBatchCreateItemsFromParams(_0x4bd741));const _0x3b8f19=_0x4bd741!==undefined&&_0x4bd741!==null&&!Array['isArray'](_0x4bd741)?_0x4bd741:{};switch(_0x1963d2){case _0x5c2924(0x144):{const _0x286cb4=_0x3b8f19['id'];if(_0x286cb4===undefined||_0x286cb4===null)throw new Error(_0x5c2924(0x139));return _0x49391c[_0x5c2924(0x144)](_0x286cb4);}case _0x5c2924(0x12f):{const {id:_0x1f2bb4,..._0x5664ee}=_0x3b8f19;if(_0x1f2bb4===undefined||_0x1f2bb4===null)throw new Error(_0x5c2924(0x13b));return _0x49391c['update'](_0x1f2bb4,_0x5664ee);}case _0x5c2924(0x12d):{const _0x404b4f=_0x3b8f19['id'];if(_0x404b4f===undefined||_0x404b4f===null)throw new Error(_0x5c2924(0x140));return _0x49391c['delete'](_0x404b4f);}default:return _0x49391c[_0x1963d2](_0x3b8f19);}}export async function executeSdkSql(_0x4b5a5c,_0x1cfde3){const _0xeb1b28=a51_0x15ab,_0x52cde7=ensureClient();return _0x52cde7[_0xeb1b28(0x13d)][_0xeb1b28(0x134)]({'sqlCode':_0x4b5a5c,'params':_0x1cfde3});}export async function executeSdkBff(_0x356cff,_0x228f35){const _0x1ec69a=a51_0x15ab,_0x33ebef=ensureClient();return _0x33ebef[_0x1ec69a(0x133)]['execute']({'scriptName':_0x356cff,'params':_0x228f35});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a52_0x10dc(){const _0x12bd84=['11420580gnWXMQ','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','4840395bcIJvN','528059NFHLMu','Set\x20appcode\x20via\x20--appcode\x20or\x20','7921485OeKYFc','newConfigFileName','104dEUfoy','\x20auth\x20login`.','4yKpIQI','4426PDEWVp','4490466mwVPTw','\x20file.','407409ImMBBp','6vogzhi'];a52_0x10dc=function(){return _0x12bd84;};return a52_0x10dc();}const a52_0x132666=a52_0x52bc;function a52_0x52bc(_0x28b018,_0x41d476){_0x28b018=_0x28b018-0xf0;const _0x10dcb4=a52_0x10dc();let _0x52bcab=_0x10dcb4[_0x28b018];return _0x52bcab;}(function(_0x4eb65f,_0x216da2){const _0x2b727b=a52_0x52bc,_0x71b54e=_0x4eb65f();while(!![]){try{const _0x5715fc=-parseInt(_0x2b727b(0xf8))/0x1*(-parseInt(_0x2b727b(0xf4))/0x2)+parseInt(_0x2b727b(0xf7))/0x3+-parseInt(_0x2b727b(0xf3))/0x4*(-parseInt(_0x2b727b(0xfb))/0x5)+parseInt(_0x2b727b(0xf5))/0x6+-parseInt(_0x2b727b(0xfc))/0x7*(parseInt(_0x2b727b(0xf1))/0x8)+parseInt(_0x2b727b(0xfe))/0x9+-parseInt(_0x2b727b(0xf9))/0xa;if(_0x5715fc===_0x216da2)break;else _0x71b54e['push'](_0x71b54e['shift']());}catch(_0xaabf63){_0x71b54e['push'](_0x71b54e['shift']());}}}(a52_0x10dc,0x98195));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20run\x20`'+CLI_BIN_NAME+a52_0x132666(0xf2),'configMissingHint':a52_0x132666(0xfd)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a52_0x132666(0xfa)+PRODUCT_CONFIG[a52_0x132666(0xf0)]+a52_0x132666(0xf6)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x170f22,_0x4de4fa){var _0x34a237=a53_0x2df9,_0x54a472=_0x170f22();while(!![]){try{var _0x4f3dd6=parseInt(_0x34a237(0x19e))/0x1+parseInt(_0x34a237(0x19b))/0x2*(-parseInt(_0x34a237(0x19c))/0x3)+parseInt(_0x34a237(0x1a1))/0x4+-parseInt(_0x34a237(0x19a))/0x5+-parseInt(_0x34a237(0x1a2))/0x6+parseInt(_0x34a237(0x19f))/0x7+parseInt(_0x34a237(0x1a0))/0x8*(parseInt(_0x34a237(0x19d))/0x9);if(_0x4f3dd6===_0x4de4fa)break;else _0x54a472['push'](_0x54a472['shift']());}catch(_0x55a7c8){_0x54a472['push'](_0x54a472['shift']());}}}(a53_0x5279,0x433a6));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a53_0x5279(){var _0x37eef2=['269064kIVfNX','12KLMTOK','8439723Swzuqj','432401mmmYlI','1419796VpXzlO','8jseJTV','398396Bzvber','2390268DRPMSo','2303515PkaIPP'];a53_0x5279=function(){return _0x37eef2;};return a53_0x5279();}import{buildAllFlags as a53_0x30f550}from'@lovrabet/cli-framework';function a53_0x2df9(_0x20375e,_0x3200e9){_0x20375e=_0x20375e-0x19a;var _0x52797a=a53_0x5279();var _0x2df9d6=_0x52797a[_0x20375e];return _0x2df9d6;}export function buildAllFlags(_0x5d4d9e){return a53_0x30f550(_0x5d4d9e,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a54_0x4958(){const _0x26ff6c=['4591428QrLzOg','6978LyKAsr','492480ueSjgZ','237190EGtHxT','2376117jSCWDI','1427628OwTHZP','2057jdzbdf','description','7574PjinrI','5050aLareg','24FeFxGg','body','332LFuLWt'];a54_0x4958=function(){return _0x26ff6c;};return a54_0x4958();}(function(_0x26de36,_0x1e62f9){const _0x4f7181=a54_0x2231,_0x2c54f8=_0x26de36();while(!![]){try{const _0x255277=-parseInt(_0x4f7181(0x70))/0x1+-parseInt(_0x4f7181(0x6d))/0x2+-parseInt(_0x4f7181(0x6b))/0x3+parseInt(_0x4f7181(0x6a))/0x4*(parseInt(_0x4f7181(0x74))/0x5)+parseInt(_0x4f7181(0x6c))/0x6*(-parseInt(_0x4f7181(0x73))/0x7)+parseInt(_0x4f7181(0x75))/0x8*(parseInt(_0x4f7181(0x6f))/0x9)+parseInt(_0x4f7181(0x6e))/0xa*(parseInt(_0x4f7181(0x71))/0xb);if(_0x255277===_0x1e62f9)break;else _0x2c54f8['push'](_0x2c54f8['shift']());}catch(_0x455063){_0x2c54f8['push'](_0x2c54f8['shift']());}}}(a54_0x4958,0xcf2e4));function a54_0x2231(_0x25efbe,_0xf50b55){_0x25efbe=_0x25efbe-0x6a;const _0x49585b=a54_0x4958();let _0x2231a4=_0x49585b[_0x25efbe];return _0x2231a4;}export function dryRun(_0xfdbc42,_0x329d0f){const _0xce55ac={'method':_0xfdbc42,'url':_0x329d0f},_0x2ea9de={'body'(_0x137dea){const _0x26e7d7=a54_0x2231;return _0xce55ac[_0x26e7d7(0x76)]=_0x137dea,_0x2ea9de;},'description'(_0x15ba5f){const _0x983b27=a54_0x2231;return _0xce55ac[_0x983b27(0x72)]=_0x15ba5f,_0x2ea9de;},'build'(){return{..._0xce55ac};}};return _0x2ea9de;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x494b81=a55_0x59f6;(function(_0x3cfa8a,_0x5a1399){const _0x46b9a1=a55_0x59f6,_0x445ede=_0x3cfa8a();while(!![]){try{const _0x3fdc0c=-parseInt(_0x46b9a1(0xe8))/0x1+-parseInt(_0x46b9a1(0xf1))/0x2*(-parseInt(_0x46b9a1(0xe9))/0x3)+parseInt(_0x46b9a1(0xe7))/0x4+parseInt(_0x46b9a1(0xee))/0x5*(parseInt(_0x46b9a1(0xed))/0x6)+parseInt(_0x46b9a1(0xec))/0x7*(-parseInt(_0x46b9a1(0xef))/0x8)+-parseInt(_0x46b9a1(0xe6))/0x9*(parseInt(_0x46b9a1(0xeb))/0xa)+-parseInt(_0x46b9a1(0xf2))/0xb*(-parseInt(_0x46b9a1(0xf0))/0xc);if(_0x3fdc0c===_0x5a1399)break;else _0x445ede['push'](_0x445ede['shift']());}catch(_0x333b01){_0x445ede['push'](_0x445ede['shift']());}}}(a55_0x1e59,0xca3c8));import{createFlagHelpers}from'@lovrabet/cli-framework';function a55_0x1e59(){const _0x397632=['1897928GFVXJs','598434xPvgCe','4538997zgCEDi','parseFlags','540MAcOGD','7zMZZto','6PucWDu','189395fsaQZZ','4574600nqwRkZ','7486860cbdFOy','2LJscHf','11KwGilM','108441nfnjtc'];a55_0x1e59=function(){return _0x397632;};return a55_0x1e59();}import{CliErrors}from'../errors.js';function a55_0x59f6(_0x1b3eb5,_0xeeaaaa){_0x1b3eb5=_0x1b3eb5-0xe6;const _0x1e5905=a55_0x1e59();let _0x59f6fd=_0x1e5905[_0x1b3eb5];return _0x59f6fd;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a55_0x494b81(0xea)];export const validateFlags=helpers['validateFlags'];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56_0x20077d=a56_0x1fd2;(function(_0x1dc803,_0x47c6b2){const _0x281ba8=a56_0x1fd2,_0xa82879=_0x1dc803();while(!![]){try{const _0x4b5afd=-parseInt(_0x281ba8(0x122))/0x1*(-parseInt(_0x281ba8(0x11f))/0x2)+parseInt(_0x281ba8(0x119))/0x3*(-parseInt(_0x281ba8(0x121))/0x4)+parseInt(_0x281ba8(0x127))/0x5+-parseInt(_0x281ba8(0x11c))/0x6*(-parseInt(_0x281ba8(0x123))/0x7)+parseInt(_0x281ba8(0x11e))/0x8+-parseInt(_0x281ba8(0x11b))/0x9+parseInt(_0x281ba8(0x120))/0xa*(parseInt(_0x281ba8(0x125))/0xb);if(_0x4b5afd===_0x47c6b2)break;else _0xa82879['push'](_0xa82879['shift']());}catch(_0x47ad97){_0xa82879['push'](_0xa82879['shift']());}}}(a56_0x5872,0x274d1));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a56_0x1fd2(_0x130804,_0xe799c7){_0x130804=_0x130804-0x119;const _0x587288=a56_0x5872();let _0x1fd2d7=_0x587288[_0x130804];return _0x1fd2d7;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2ebd5e=>serviceGroups[a56_0x20077d(0x11d)](_0x2ebd5e),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a56_0x20077d(0x11a)+PRODUCT_CONFIG[a56_0x20077d(0x124)]+a56_0x20077d(0x126)});export function generateCommandHelp(_0x513235){const _0x2478d2=a56_0x20077d;return generators[_0x2478d2(0x128)](_0x513235);}function a56_0x5872(){const _0x1c9130=['6aiavuf','Requires\x20appcode\x20(set\x20via\x20','238356ByzQNv','67794SdVmqr','get','83864yekMEU','8872TTuNzn','20KerpQX','457084CQVDnp','24iwJxDC','98FHotVu','newConfigFileName','524392UuszFL','\x20or\x20--appcode).','227630Rjahkq','generateCommandHelp'];a56_0x5872=function(){return _0x1c9130;};return a56_0x5872();}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators['generateFullHelp'];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a57_0x141f(_0x4f7753,_0x47d871){_0x4f7753=_0x4f7753-0x11e;var _0x57fd7a=a57_0x57fd();var _0x141f4f=_0x57fd7a[_0x4f7753];return _0x141f4f;}(function(_0x398a5e,_0x361a3f){var _0x3e217a=a57_0x141f,_0x4e0b47=_0x398a5e();while(!![]){try{var _0x25e100=-parseInt(_0x3e217a(0x124))/0x1*(-parseInt(_0x3e217a(0x121))/0x2)+parseInt(_0x3e217a(0x11f))/0x3+parseInt(_0x3e217a(0x125))/0x4*(parseInt(_0x3e217a(0x11e))/0x5)+parseInt(_0x3e217a(0x122))/0x6+parseInt(_0x3e217a(0x126))/0x7+parseInt(_0x3e217a(0x120))/0x8+-parseInt(_0x3e217a(0x123))/0x9;if(_0x25e100===_0x361a3f)break;else _0x4e0b47['push'](_0x4e0b47['shift']());}catch(_0x19f2e2){_0x4e0b47['push'](_0x4e0b47['shift']());}}}(a57_0x57fd,0x26b19));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a57_0x57fd(){var _0x208c0e=['872898xCEakR','1265160SmgKlR','361944dqSUDi','643872NOjwtX','5416407hOCnjM','1covvOx','72PguFdu','51933gdUHYl','4305VMpxtb'];a57_0x57fd=function(){return _0x208c0e;};return a57_0x57fd();}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(_0x15d219,_0x39b742){const _0x190daa=a58_0x37a1,_0x13f7bc=_0x15d219();while(!![]){try{const _0x4fb04e=parseInt(_0x190daa(0xf7))/0x1*(parseInt(_0x190daa(0xf3))/0x2)+parseInt(_0x190daa(0xf1))/0x3*(parseInt(_0x190daa(0xf5))/0x4)+-parseInt(_0x190daa(0xfb))/0x5+-parseInt(_0x190daa(0xf0))/0x6*(-parseInt(_0x190daa(0xf4))/0x7)+-parseInt(_0x190daa(0xfe))/0x8+parseInt(_0x190daa(0xf2))/0x9*(parseInt(_0x190daa(0xfd))/0xa)+-parseInt(_0x190daa(0xf9))/0xb;if(_0x4fb04e===_0x39b742)break;else _0x13f7bc['push'](_0x13f7bc['shift']());}catch(_0x480ae2){_0x13f7bc['push'](_0x13f7bc['shift']());}}}(a58_0x3d51,0xe1415));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a58_0x3d51(){const _0x119991=['1WywfNG','url','31006646ZTHYGA','pretty','8227285LmyPGg','update','1953030rHvEvu','17288ZEoOTA','90zJpsSG','1286970OElbpx','27znIwJD','2513490iJWGhr','854203iaeChm','16OcyfLE','message'];a58_0x3d51=function(){return _0x119991;};return a58_0x3d51();}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x456cca,_0x4d6ce6){const _0x5c9a0b=a58_0x37a1,_0x401c3f=_0x456cca['_notice'],{_notice:_0x132cc7,..._0xc4bff3}=_0x456cca;void _0x132cc7,baseFormatOutput(_0xc4bff3,_0x4d6ce6),_0x4d6ce6['format']===_0x5c9a0b(0xfa)&&printPrettyNotice(_0x401c3f);}function a58_0x37a1(_0x4f9437,_0x3ee1ea){_0x4f9437=_0x4f9437-0xf0;const _0x3d51f8=a58_0x3d51();let _0x37a13b=_0x3d51f8[_0x4f9437];return _0x37a13b;}function printPrettyNotice(_0x25275c){const _0x517c14=a58_0x37a1;if(!_0x25275c?.[_0x517c14(0xfc)])return;console['error'](_0x25275c['update'][_0x517c14(0xf6)]+'\x20('+_0x25275c[_0x517c14(0xfc)][_0x517c14(0xf8)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28300a,_0x12427a){const _0x217f02=a59_0x46d9,_0x10fcb4=_0x28300a();while(!![]){try{const _0x368ab1=-parseInt(_0x217f02(0x135))/0x1+-parseInt(_0x217f02(0x11c))/0x2+-parseInt(_0x217f02(0x13b))/0x3*(parseInt(_0x217f02(0x11a))/0x4)+parseInt(_0x217f02(0x124))/0x5*(-parseInt(_0x217f02(0x11b))/0x6)+parseInt(_0x217f02(0x126))/0x7+-parseInt(_0x217f02(0x13a))/0x8*(-parseInt(_0x217f02(0x132))/0x9)+parseInt(_0x217f02(0x116))/0xa;if(_0x368ab1===_0x12427a)break;else _0x10fcb4['push'](_0x10fcb4['shift']());}catch(_0x1a3b71){_0x10fcb4['push'](_0x10fcb4['shift']());}}}(a59_0x479b,0x76f58));function a59_0x46d9(_0x5b6a61,_0x46e027){_0x5b6a61=_0x5b6a61-0x116;const _0x479b39=a59_0x479b();let _0x46d965=_0x479b39[_0x5b6a61];return _0x46d965;}function toKebab(_0x2d1b65){const _0x29a1da=a59_0x46d9;return _0x2d1b65[_0x29a1da(0x11f)](/_/g,'-')[_0x29a1da(0x11f)](/-([A-Z]+)/g,(_0x315897,_0x169c35)=>'-'+_0x169c35[_0x29a1da(0x122)]())['replace'](/([a-z0-9])([A-Z])/g,(_0xb6e681,_0x2581ae,_0x5b09c2)=>_0x2581ae+'-'+_0x5b09c2)[_0x29a1da(0x122)]();}function buildKnownFlags(_0x3fdb69){const _0x476d11=a59_0x46d9,_0x3e9ce8=new Set();for(const _0x21078e of _0x3fdb69){_0x3e9ce8['add'](_0x21078e['name']),_0x3e9ce8['add'](toCamelCase(_0x21078e[_0x476d11(0x12f)]));}for(const _0x2f812c of[_0x476d11(0x11e),_0x476d11(0x12c),_0x476d11(0x12e),'format']){_0x3e9ce8['add'](_0x2f812c);}for(const _0x132c3e of['help','env',_0x476d11(0x121),_0x476d11(0x119),_0x476d11(0x128),_0x476d11(0x13c),'ci','global',_0x476d11(0x123)]){_0x3e9ce8[_0x476d11(0x11d)](_0x132c3e);}return _0x3e9ce8;}function buildFlagTypeMap(_0x29da9d){const _0x5b079e=a59_0x46d9,_0x5ac721=new Map();for(const _0x24ac3c of _0x29da9d){_0x5ac721[_0x5b079e(0x134)](_0x24ac3c[_0x5b079e(0x12f)],_0x24ac3c[_0x5b079e(0x130)]),_0x5ac721[_0x5b079e(0x134)](toCamelCase(_0x24ac3c[_0x5b079e(0x12f)]),_0x24ac3c[_0x5b079e(0x130)]);}return _0x5ac721;}function a59_0x479b(){const _0xfb7da5=['name','type','indexOf','153RsfiZa','length','set','865528rdwdrB','original','sticky','number','keys','20736kMRbJn','31251mvlRMO','non-interactive','22953940UFbNzP','get','push','app','228wMFjDT','624iAhxII','1014204RjdOHt','add','dry-run','replace','corrected','appcode','toLowerCase','version','3615INqYKb','has','1325723MvkmNK','entries','nonInteractive','boolean','string','slice','dryRun','toUpperCase','yes'];a59_0x479b=function(){return _0xfb7da5;};return a59_0x479b();}function toCamelCase(_0x4dddc7){const _0x5ab384=a59_0x46d9;return _0x4dddc7['replace'](/-([a-z])/g,(_0x344d8a,_0x41d452)=>_0x41d452[_0x5ab384(0x12d)]());}function aliasHandler(_0xc4f6fc,_0x48bfe1){const _0x4dce0c=a59_0x46d9,_0x46538f=[];for(const _0x123cc7 of Object[_0x4dce0c(0x139)](_0xc4f6fc)){if(_0x48bfe1[_0x4dce0c(0x125)](_0x123cc7))continue;const _0x51217b=toKebab(_0x123cc7);_0x51217b!==_0x123cc7&&_0x48bfe1['has'](_0x51217b)&&_0x46538f[_0x4dce0c(0x118)]({'original':_0x123cc7,'corrected':_0x51217b,'handler':'alias'});}return _0x46538f;}function stickyHandler(_0x32dc3c,_0x424729,_0x2edf69){const _0x1d9f48=a59_0x46d9,_0x57dc38=[];for(const [_0xe72063,_0x525f5d]of Object[_0x1d9f48(0x127)](_0x32dc3c)){if(_0x525f5d!==!![])continue;for(let _0x6e986=_0xe72063['length']-0x1;_0x6e986>0x0;_0x6e986--){const _0x3df0c3=_0xe72063['slice'](0x0,_0x6e986),_0x7dd70d=_0xe72063[_0x1d9f48(0x12b)](_0x6e986),_0x4e685a=toKebab(_0x3df0c3),_0x43580c=toCamelCase(_0x3df0c3),_0x4e1d40=_0x424729['has'](_0x3df0c3)?_0x3df0c3:_0x424729[_0x1d9f48(0x125)](_0x4e685a)?_0x4e685a:_0x424729[_0x1d9f48(0x125)](_0x43580c)?_0x43580c:null;if(!_0x4e1d40)continue;const _0x1917ee=_0x2edf69[_0x1d9f48(0x117)](_0x4e1d40)??_0x1d9f48(0x12a);let _0x1a4a06;if(_0x1917ee===_0x1d9f48(0x138)){const _0x285ba7=Number(_0x7dd70d);if(isNaN(_0x285ba7)||_0x7dd70d==='')continue;_0x1a4a06=_0x285ba7;}else{if(_0x1917ee===_0x1d9f48(0x129))continue;else{if(_0x7dd70d==='')continue;_0x1a4a06=_0x7dd70d;}}_0x57dc38[_0x1d9f48(0x118)]({'original':_0xe72063,'corrected':_0x4e1d40+'='+_0x1a4a06,'handler':_0x1d9f48(0x137)});break;}}return _0x57dc38;}export function correctFlags(_0x1a7c2b,_0x500537){const _0x1d5dda=a59_0x46d9,_0x4ca37f=buildKnownFlags(_0x500537),_0x11633f=buildFlagTypeMap(_0x500537),_0x59711a=aliasHandler(_0x1a7c2b,_0x4ca37f),_0x3da0e1=stickyHandler(_0x1a7c2b,_0x4ca37f,_0x11633f),_0x28f161=[..._0x59711a,..._0x3da0e1];if(_0x28f161[_0x1d5dda(0x133)]===0x0)return{'flags':_0x1a7c2b,'corrections':[]};const _0xb52a27={..._0x1a7c2b},_0x48ee40=new Set();for(const _0x2d1719 of _0x59711a){_0xb52a27[_0x2d1719[_0x1d5dda(0x120)]]=_0x1a7c2b[_0x2d1719[_0x1d5dda(0x136)]],_0x48ee40['add'](_0x2d1719[_0x1d5dda(0x136)]);}for(const _0x20b2a0 of _0x3da0e1){const _0x19fab9=_0x20b2a0[_0x1d5dda(0x120)][_0x1d5dda(0x131)]('='),_0x14e7a0=_0x20b2a0[_0x1d5dda(0x120)][_0x1d5dda(0x12b)](0x0,_0x19fab9),_0x3f4f0e=_0x20b2a0['corrected'][_0x1d5dda(0x12b)](_0x19fab9+0x1),_0xf9b025=_0x11633f[_0x1d5dda(0x117)](_0x14e7a0)??_0x1d5dda(0x12a);_0xf9b025===_0x1d5dda(0x138)?_0xb52a27[_0x14e7a0]=Number(_0x3f4f0e):_0xb52a27[_0x14e7a0]=_0x3f4f0e,_0x48ee40['add'](_0x20b2a0[_0x1d5dda(0x136)]);}for(const _0x7a3562 of _0x48ee40){delete _0xb52a27[_0x7a3562];}return{'flags':_0xb52a27,'corrections':_0x28f161};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a60_0x1abd(_0x4e1268,_0xff54f8){_0x4e1268=_0x4e1268-0x17f;var _0x313570=a60_0x3135();var _0x1abd9c=_0x313570[_0x4e1268];return _0x1abd9c;}(function(_0x2e563d,_0x58f7a1){var _0x3357c7=a60_0x1abd,_0x5421fe=_0x2e563d();while(!![]){try{var _0x56dc9d=-parseInt(_0x3357c7(0x185))/0x1*(parseInt(_0x3357c7(0x189))/0x2)+-parseInt(_0x3357c7(0x181))/0x3*(-parseInt(_0x3357c7(0x186))/0x4)+-parseInt(_0x3357c7(0x188))/0x5*(parseInt(_0x3357c7(0x184))/0x6)+parseInt(_0x3357c7(0x182))/0x7+parseInt(_0x3357c7(0x183))/0x8*(-parseInt(_0x3357c7(0x187))/0x9)+-parseInt(_0x3357c7(0x17f))/0xa+parseInt(_0x3357c7(0x180))/0xb;if(_0x56dc9d===_0x58f7a1)break;else _0x5421fe['push'](_0x5421fe['shift']());}catch(_0x121927){_0x5421fe['push'](_0x5421fe['shift']());}}}(a60_0x3135,0x8a389));function a60_0x3135(){var _0x3fa1c1=['12534NqEkBK','4134914PxCCbk','4304efVjIc','42pYYcud','795446TXJBEw','356TXbCjJ','17505badJuu','70755MBJweP','2Sslvqv','6609760DVCyAN','24260478swYGjW'];a60_0x3135=function(){return _0x3fa1c1;};return a60_0x3135();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x33bb80,_0xcf26d8){const _0x45f621=a61_0xf538,_0x7afee=_0x33bb80();while(!![]){try{const _0x5c4b61=-parseInt(_0x45f621(0x10a))/0x1*(-parseInt(_0x45f621(0x104))/0x2)+-parseInt(_0x45f621(0xfa))/0x3*(parseInt(_0x45f621(0x105))/0x4)+-parseInt(_0x45f621(0x10c))/0x5+parseInt(_0x45f621(0xfd))/0x6*(parseInt(_0x45f621(0x110))/0x7)+parseInt(_0x45f621(0x101))/0x8*(parseInt(_0x45f621(0xf1))/0x9)+-parseInt(_0x45f621(0xf4))/0xa*(-parseInt(_0x45f621(0xf8))/0xb)+-parseInt(_0x45f621(0x103))/0xc*(parseInt(_0x45f621(0x109))/0xd);if(_0x5c4b61===_0xcf26d8)break;else _0x7afee['push'](_0x7afee['shift']());}catch(_0x4f6612){_0x7afee['push'](_0x7afee['shift']());}}}(a61_0x3b55,0xcae97));import{CLI_BIN_NAME}from'../constant/cli.js';function a61_0xf538(_0x31ad52,_0x2d71e3){_0x31ad52=_0x31ad52-0xf1;const _0x3b5506=a61_0x3b55();let _0xf538ab=_0x3b5506[_0x31ad52];return _0xf538ab;}export function buildConfirmationLines(_0x4b700c,_0x5301d4,_0x44aec2){const _0x4a2137=a61_0xf538,_0x1e8295=buildConfirmationContext(_0x4b700c,_0x5301d4,_0x44aec2),_0x70daf0=[_0x4a2137(0xfb)+_0x1e8295[_0x4a2137(0xfc)]];return _0x1e8295['description']&&_0x70daf0[_0x4a2137(0xff)](_0x4a2137(0x10b)+_0x1e8295[_0x4a2137(0xf9)]),_0x1e8295[_0x4a2137(0xfe)]&&_0x70daf0[_0x4a2137(0xff)](_0x4a2137(0xf2)+_0x1e8295[_0x4a2137(0xfe)]),_0x70daf0[_0x4a2137(0xff)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x70daf0;}function a61_0x3b55(){const _0xc02b56=['\x20\x20\x20Affected:\x20','command','574130bRcCMD','entries','name=','join','11KVUWTs','description','15507RcvWql','⚠\x20\x20High-risk\x20operation:\x20','commandLabel','72084JJWmyt','affectedRecords','push','--yes','11720UsUWaj','code=','120uXIqLf','50194sbORxK','1060MGluit','id=','length','service','484003KmLZuc','47sTBGxM','\x20\x20\x20','3388360GtGdTD','params','code','stringify','931uxwWlr','name','2556vhjYRa'];a61_0x3b55=function(){return _0xc02b56;};return a61_0x3b55();}export function reconstructCommandArgv(_0x22b84b,_0x59b5f2){const _0x2225fa=a61_0xf538,_0x4bff6f=[CLI_BIN_NAME,_0x22b84b[_0x2225fa(0x108)],_0x22b84b[_0x2225fa(0xf3)]];for(const [_0x34805a,_0x49a2b3]of Object[_0x2225fa(0xf5)](_0x59b5f2)){if(_0x49a2b3===!![])_0x4bff6f[_0x2225fa(0xff)]('--'+_0x34805a);else _0x49a2b3!==![]&&_0x49a2b3!==undefined&&_0x49a2b3!==''&&_0x4bff6f[_0x2225fa(0xff)]('--'+_0x34805a+'\x20'+JSON[_0x2225fa(0x10f)](_0x49a2b3));}return _0x4bff6f['push'](_0x2225fa(0x100)),_0x4bff6f['join']('\x20');}function buildConfirmationContext(_0x5434f3,_0x1b9e30,_0x3e5559){const _0x592412=a61_0xf538,_0x29b1a9=extractAffectedRecords(_0x3e5559);return{'commandLabel':_0x1b9e30,'description':_0x5434f3[_0x592412(0xf9)],'affectedRecords':_0x29b1a9};}function extractAffectedRecords(_0xe4a354){const _0x4318ed=a61_0xf538,_0x15befc=[];if(_0xe4a354['code'])_0x15befc[_0x4318ed(0xff)](_0x4318ed(0x102)+_0xe4a354[_0x4318ed(0x10e)]);if(_0xe4a354['id'])_0x15befc[_0x4318ed(0xff)](_0x4318ed(0x106)+_0xe4a354['id']);if(_0xe4a354[_0x4318ed(0x111)])_0x15befc[_0x4318ed(0xff)](_0x4318ed(0xf6)+_0xe4a354[_0x4318ed(0x111)]);if(_0xe4a354['params'])_0x15befc['push']('params='+_0xe4a354[_0x4318ed(0x10d)]);return _0x15befc[_0x4318ed(0x107)]>0x0?_0x15befc[_0x4318ed(0xf7)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1b7ab4,_0x443d5e){const _0x7c5d8e=a62_0x383c,_0x218575=_0x1b7ab4();while(!![]){try{const _0x159df4=-parseInt(_0x7c5d8e(0x1a8))/0x1*(-parseInt(_0x7c5d8e(0x1b0))/0x2)+-parseInt(_0x7c5d8e(0x1b6))/0x3+-parseInt(_0x7c5d8e(0x1ad))/0x4+-parseInt(_0x7c5d8e(0x1b2))/0x5+parseInt(_0x7c5d8e(0x1af))/0x6+-parseInt(_0x7c5d8e(0x1b3))/0x7*(-parseInt(_0x7c5d8e(0x1b5))/0x8)+-parseInt(_0x7c5d8e(0x1aa))/0x9*(parseInt(_0x7c5d8e(0x1ab))/0xa);if(_0x159df4===_0x443d5e)break;else _0x218575['push'](_0x218575['shift']());}catch(_0x2bcf58){_0x218575['push'](_0x218575['shift']());}}}(a62_0x3695,0xcbd19));import{LovrabetError}from'@lovrabet/sdk';function a62_0x383c(_0x3ed241,_0x22e571){_0x3ed241=_0x3ed241-0x1a7;const _0x369560=a62_0x3695();let _0x383c25=_0x369560[_0x3ed241];return _0x383c25;}import{CliErrors}from'../errors.js';function a62_0x3695(){const _0x3b1ad4=['56OrVnEn','stringify','1175184PKrUqj','2028537lobYya','validation','2EvDQdr','description','108684txiSpq','690rkkWYj','string','3641932ZGPBnS','trim','7856592DTIqrb','1133236VprDGq','message','1815525wXUlEg'];a62_0x3695=function(){return _0x3b1ad4;};return a62_0x3695();}export function mapUserFacingExecuteError(_0x3dc1db){const _0x1bd016=a62_0x383c;if(_0x3dc1db instanceof LovrabetError)return CliErrors[_0x1bd016(0x1a7)](userFacingLovrabetMessage(_0x3dc1db));return _0x3dc1db;}function userFacingLovrabetMessage(_0x39ec16){const _0x1c139b=a62_0x383c,_0x578962=_0x39ec16[_0x1c139b(0x1a9)];if(_0x578962!==undefined&&_0x578962!==null){if(typeof _0x578962===_0x1c139b(0x1ac)&&_0x578962[_0x1c139b(0x1ae)]())return _0x578962[_0x1c139b(0x1ae)]();try{return JSON[_0x1c139b(0x1b4)](_0x578962);}catch{}}return _0x39ec16[_0x1c139b(0x1b1)];}
|