@lovrabet/lovrabet-cli 2.0.4-beta.0 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/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/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/doctor.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/logs/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/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.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/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.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/help.js +1 -1
- package/lib/skills/npx-skills-add.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/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a32_0x3fa411=a32_0x1af6;(function(_0x1216b7,_0x580421){const _0x3de231=a32_0x1af6,_0x182f26=_0x1216b7();while(!![]){try{const _0x2ecdf8=-parseInt(_0x3de231(0x105))/0x1+parseInt(_0x3de231(0x108))/0x2*(-parseInt(_0x3de231(0x10b))/0x3)+parseInt(_0x3de231(0x111))/0x4*(parseInt(_0x3de231(0x10e))/0x5)+-parseInt(_0x3de231(0x109))/0x6+parseInt(_0x3de231(0x106))/0x7*(parseInt(_0x3de231(0x10c))/0x8)+-parseInt(_0x3de231(0x10f))/0x9*(parseInt(_0x3de231(0x107))/0xa)+parseInt(_0x3de231(0x10a))/0xb;if(_0x2ecdf8===_0x580421)break;else _0x182f26['push'](_0x182f26['shift']());}catch(_0x3501e8){_0x182f26['push'](_0x182f26['shift']());}}}(a32_0x1ab3,0xa068a));export const DEFAULT_APP_PROFILE_NAME=a32_0x3fa411(0x104);function a32_0x1af6(_0x3d861e,_0x195b15){_0x3d861e=_0x3d861e-0x104;const _0x1ab359=a32_0x1ab3();let _0x1af601=_0x1ab359[_0x3d861e];return _0x1af601;}export const DEFAULT_CONFIG_VALUES={'env':a32_0x3fa411(0x10d),'format':a32_0x3fa411(0x110),'locale':'en-US','riskLevel':a32_0x3fa411(0x112)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a32_0x3fa411(0x110);function a32_0x1ab3(){const _0x984b2c=['737759bgrmHq','4282341ZmIatS','2710iYolib','1264lqQqJD','719850rpvKKB','22868516HtmcFn','4353LOjhkh','8SShSSn','production','225KkTpoA','35541KLCBOM','compress','72112DCHzaP','write','main'];a32_0x1ab3=function(){return _0x984b2c;};return a32_0x1ab3();}
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x95ba87=a33_0x3bbb;(function(_0x292529,_0x42d990){const _0x1c6713=a33_0x3bbb,_0x5e6f8c=_0x292529();while(!![]){try{const _0x221ec7=-parseInt(_0x1c6713(0x131))/0x1*(parseInt(_0x1c6713(0x12f))/0x2)+parseInt(_0x1c6713(0x13d))/0x3+parseInt(_0x1c6713(0x136))/0x4+parseInt(_0x1c6713(0x12d))/0x5*(-parseInt(_0x1c6713(0x13e))/0x6)+-parseInt(_0x1c6713(0x13b))/0x7*(-parseInt(_0x1c6713(0x138))/0x8)+parseInt(_0x1c6713(0x13f))/0x9+-parseInt(_0x1c6713(0x13a))/0xa*(parseInt(_0x1c6713(0x137))/0xb);if(_0x221ec7===_0x42d990)break;else _0x5e6f8c['push'](_0x5e6f8c['shift']());}catch(_0x4c075a){_0x5e6f8c['push'](_0x5e6f8c['shift']());}}}(a33_0x1b5e,0x330d7));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x48150d){const _0x1c8549=a33_0x3bbb;customApiDomain=_0x48150d?.[_0x1c8549(0x13c)],customUserDomain=_0x48150d?.[_0x1c8549(0x139)],customRuntimeDomain=_0x48150d?.[_0x1c8549(0x132)];}function a33_0x1b5e(){const _0x27f7f9=['https://user-daily.lovrabet.com','557204RuzNrf','22cDWATU','16216zyrcYq','userDomain','1543970tYhSis','847OWCEsl','apiDomain','405153MumKnU','42BYSneF','2008935oiGDnT','147715ovtDfP','https://daily-runtime.lovrabet.com','8JEcoOd','https://user.lovrabet.com','4532ftFZUj','runtimeDomain','https://runtime.lovrabet.com','https://api.lovrabet.com'];a33_0x1b5e=function(){return _0x27f7f9;};return a33_0x1b5e();}function a33_0x3bbb(_0x353435,_0x3a33b3){_0x353435=_0x353435-0x12d;const _0x1b5e38=a33_0x1b5e();let _0x3bbb37=_0x1b5e38[_0x353435];return _0x3bbb37;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a33_0x95ba87(0x130):a33_0x95ba87(0x135));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a33_0x95ba87(0x134):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a33_0x95ba87(0x133):a33_0x95ba87(0x12e));
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x7c607f=a34_0x3c58;function a34_0x1359(){const _0x53276f=['3076416CAOAKb','162848CFodif','6482730KvxhWH','online','18263nnQxZr','9627SXovpv','production','820684CCMoMg','daily','6195IaiZuP','584uwYnQa','248awBJGq','development','1704uqppkI'];a34_0x1359=function(){return _0x53276f;};return a34_0x1359();}function a34_0x3c58(_0x1d0cf8,_0x54ed57){_0x1d0cf8=_0x1d0cf8-0x1c1;const _0x13597f=a34_0x1359();let _0x3c5857=_0x13597f[_0x1d0cf8];return _0x3c5857;}(function(_0x40fd2a,_0x50a625){const _0x3221ec=a34_0x3c58,_0x29d1d4=_0x40fd2a();while(!![]){try{const _0x464973=-parseInt(_0x3221ec(0x1ca))/0x1+-parseInt(_0x3221ec(0x1c2))/0x2+parseInt(_0x3221ec(0x1ce))/0x3*(-parseInt(_0x3221ec(0x1c5))/0x4)+parseInt(_0x3221ec(0x1c4))/0x5*(parseInt(_0x3221ec(0x1c8))/0x6)+parseInt(_0x3221ec(0x1cd))/0x7*(parseInt(_0x3221ec(0x1c6))/0x8)+parseInt(_0x3221ec(0x1c9))/0x9+parseInt(_0x3221ec(0x1cb))/0xa;if(_0x464973===_0x50a625)break;else _0x29d1d4['push'](_0x29d1d4['shift']());}catch(_0x44a45c){_0x29d1d4['push'](_0x29d1d4['shift']());}}}(a34_0x1359,0x5d0dc));export const RUNTIME_ENV_VALUES=[a34_0x7c607f(0x1c1),a34_0x7c607f(0x1c7),'daily'];export function normalizeEnv(_0x456d3e){const _0x2722dd=a34_0x7c607f;return _0x456d3e===_0x2722dd(0x1cc)?_0x2722dd(0x1c1):_0x456d3e;}export function isProduction(_0x5b215e){const _0x4c3faa=a34_0x7c607f;return normalizeEnv(_0x5b215e)===_0x4c3faa(0x1c1);}export function isDaily(_0x1e49b5){const _0x57cb94=a34_0x7c607f;return normalizeEnv(_0x1e49b5)===_0x57cb94(0x1c3);}export function isDev(_0x2803e5){const _0x3b4165=a34_0x7c607f,_0x836f4a=normalizeEnv(_0x2803e5);return _0x836f4a===_0x3b4165(0x1c7)||_0x836f4a==='dev';}let env=normalizeEnv(process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0xf0b379){env=normalizeEnv(_0xf0b379);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a35_0x5d62(){const _0x1957cc=['5PytRBS','6752778JLIzFf','6192vTCTjG','4264UCsKIz','392416RFbhNm','compress','17091qGfeyV','2815100MlYNfw','11PoOBdk','7269530zceeCR','json','849AcubZS','9872576DXfcPb'];a35_0x5d62=function(){return _0x1957cc;};return a35_0x5d62();}function a35_0xd05e(_0x221d19,_0x1f01c0){_0x221d19=_0x221d19-0x19d;const _0x5d623d=a35_0x5d62();let _0xd05ee1=_0x5d623d[_0x221d19];return _0xd05ee1;}const a35_0x1df83a=a35_0xd05e;(function(_0x1b8322,_0x3e2c0a){const _0x287beb=a35_0xd05e,_0x539c75=_0x1b8322();while(!![]){try{const _0x387f92=parseInt(_0x287beb(0x1a7))/0x1+parseInt(_0x287beb(0x1a5))/0x2*(-parseInt(_0x287beb(0x1a1))/0x3)+-parseInt(_0x287beb(0x19d))/0x4+-parseInt(_0x287beb(0x1a3))/0x5*(parseInt(_0x287beb(0x1a4))/0x6)+parseInt(_0x287beb(0x1a2))/0x7+parseInt(_0x287beb(0x1a6))/0x8*(parseInt(_0x287beb(0x1a9))/0x9)+-parseInt(_0x287beb(0x19f))/0xa*(-parseInt(_0x287beb(0x19e))/0xb);if(_0x387f92===_0x3e2c0a)break;else _0x539c75['push'](_0x539c75['shift']());}catch(_0x11179f){_0x539c75['push'](_0x539c75['shift']());}}}(a35_0x5d62,0xcc392));export const OUTPUT_FORMAT_VALUES=[a35_0x1df83a(0x1a0),'pretty',a35_0x1df83a(0x1a8)];
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x461c21=a36_0x12f6;function a36_0x3328(){const _0x54f97d=['read','11127624yKQjrO','4433324fbpSII','1585029SulTWw','8DbVANo','49338PEHlSN','51588691obYgZN','60006ZbCNBi','655iJZflC','1780JmLLWK','2foMWEv','469572EeJAHF'];a36_0x3328=function(){return _0x54f97d;};return a36_0x3328();}function a36_0x12f6(_0x290977,_0xa392d9){_0x290977=_0x290977-0x94;const _0x33289d=a36_0x3328();let _0x12f6f9=_0x33289d[_0x290977];return _0x12f6f9;}(function(_0xb8fd50,_0xf0d952){const _0x22a835=a36_0x12f6,_0x551c26=_0xb8fd50();while(!![]){try{const _0x2a78f8=-parseInt(_0x22a835(0x9a))/0x1*(-parseInt(_0x22a835(0x95))/0x2)+parseInt(_0x22a835(0x96))/0x3*(-parseInt(_0x22a835(0x9b))/0x4)+-parseInt(_0x22a835(0x9f))/0x5*(-parseInt(_0x22a835(0x9e))/0x6)+parseInt(_0x22a835(0x99))/0x7+parseInt(_0x22a835(0x98))/0x8+parseInt(_0x22a835(0x9c))/0x9*(parseInt(_0x22a835(0x94))/0xa)+-parseInt(_0x22a835(0x9d))/0xb;if(_0x2a78f8===_0xf0d952)break;else _0x551c26['push'](_0x551c26['shift']());}catch(_0x5be3f9){_0x551c26['push'](_0x551c26['shift']());}}}(a36_0x3328,0xd9d98));export const RISK_LEVEL_VALUES=[a36_0x461c21(0x97),'write','high-risk-write'];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a37_0x4b7c(_0x4a8693,_0x406c09){_0x4a8693=_0x4a8693-0x10c;const _0x51cd20=a37_0x51cd();let _0x4b7c97=_0x51cd20[_0x4a8693];return _0x4b7c97;}function a37_0x51cd(){const _0x36c7f2=['8665272rpZPxX','5bZivBN','4413174pEcLQP','54eNsiMk','794996ZhvqyZ','6hhAqfI','18636zeVdyn','5067818BoRbXU','382288QlKxuF','8876750wopbOH','99DmtfvL'];a37_0x51cd=function(){return _0x36c7f2;};return a37_0x51cd();}(function(_0x135f83,_0x428b36){const _0x653adb=a37_0x4b7c,_0x1db2d2=_0x135f83();while(!![]){try{const _0x23cda1=-parseInt(_0x653adb(0x114))/0x1*(-parseInt(_0x653adb(0x10c))/0x2)+parseInt(_0x653adb(0x116))/0x3*(-parseInt(_0x653adb(0x115))/0x4)+parseInt(_0x653adb(0x112))/0x5*(-parseInt(_0x653adb(0x113))/0x6)+parseInt(_0x653adb(0x10d))/0x7+-parseInt(_0x653adb(0x10e))/0x8*(-parseInt(_0x653adb(0x110))/0x9)+-parseInt(_0x653adb(0x10f))/0xa+parseInt(_0x653adb(0x111))/0xb;if(_0x23cda1===_0x428b36)break;else _0x1db2d2['push'](_0x1db2d2['shift']());}catch(_0x553e60){_0x1db2d2['push'](_0x1db2d2['shift']());}}}(a37_0x51cd,0x7eea2));export const USER_ACCESS_KEY_CREATE_URL='https://user.lovrabet.com/user/ak';
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0xb0c848=a38_0x51c7;(function(_0x487315,_0x510d5e){const _0x1eb8c7=a38_0x51c7,_0x4211df=_0x487315();while(!![]){try{const _0x732bd8=parseInt(_0x1eb8c7(0x177))/0x1*(parseInt(_0x1eb8c7(0x169))/0x2)+-parseInt(_0x1eb8c7(0x18e))/0x3+parseInt(_0x1eb8c7(0x163))/0x4+parseInt(_0x1eb8c7(0x15d))/0x5+-parseInt(_0x1eb8c7(0x18c))/0x6*(-parseInt(_0x1eb8c7(0x17f))/0x7)+-parseInt(_0x1eb8c7(0x18f))/0x8+-parseInt(_0x1eb8c7(0x195))/0x9*(-parseInt(_0x1eb8c7(0x159))/0xa);if(_0x732bd8===_0x510d5e)break;else _0x4211df['push'](_0x4211df['shift']());}catch(_0x2ebd9c){_0x4211df['push'](_0x4211df['shift']());}}}(a38_0xee5d,0xdecc3));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a38_0x51c7(_0xb935f8,_0x24ee9c){_0xb935f8=_0xb935f8-0x151;const _0xee5db1=a38_0xee5d();let _0x51c7e3=_0xee5db1[_0xb935f8];return _0x51c7e3;}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{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=[a38_0xb0c848(0x188),a38_0xb0c848(0x196)];export const NEW_CONFIG_NAME='.lovrabet.json';function resolveConfigPath(_0x3f407b){for(const _0x1ebb4f of CONFIG_NAMES){const _0x5ad23e=resolve(_0x3f407b,_0x1ebb4f);if(existsSync(_0x5ad23e))return _0x5ad23e;}return undefined;}export function resolveWriteConfigPath(_0x15463e){const _0x3efb01=a38_0xb0c848,_0x49d7b0=_0x15463e===_0x3efb01(0x192)?process[_0x3efb01(0x168)]():homedir(),_0x2a6430=resolveConfigPath(_0x49d7b0);return _0x2a6430??resolve(_0x49d7b0,NEW_CONFIG_NAME);}function a38_0xee5d(){const _0x1078c0=['parse','1536648EJNSge','string','missing','true','read','cwd','29486lCVIak','values','code','online','stdin','stringify','format','stdout','riskLevel','APPCODE','slice','nonInteractive','EPERM','find','23NUWLuj','production','error','global','object','maxRisk','defaultApp','locale','21NCMUgq','apps','./constant/domain.js','projectConfig','.tmp','./constant/env.js','PAGE_SIZE','message','isRaw','.lovrabet.json','env','argv','host','2558622fVmzDG','utf8','863181zqnRut','13793048wEXIzw','pageSize','empty','project','isTTY','setRawMode','207NVwyfr','.lovrabetrc','inherit','apiDomain','daily','development','setLogPath','accessKey','globalConfig','high-risk-write','FORMAT','321920jfDnVZ','app','VERBOSE','runtimeDomain','907295iuVRdA','ENV','trim','appcode','raw'];a38_0xee5d=function(){return _0x1078c0;};return a38_0xee5d();}export function readConfigFile(_0x3bdf96){const _0x16b865=a38_0xb0c848;try{if(existsSync(_0x3bdf96)){const _0x54e649=readFileSync(_0x3bdf96,{'encoding':_0x16b865(0x18d)});if(_0x54e649){const _0x16f53a=JSON[_0x16b865(0x162)](_0x54e649);return migrateOnlineEnv(_0x3bdf96,_0x16f53a),_0x16f53a;}}}catch{}return{};}function migrateOnlineEnv(_0x5b5c7b,_0x137356){const _0x5627cc=a38_0xb0c848;let _0x2fd6b0=![];_0x137356['env']===_0x5627cc(0x16c)&&(_0x137356[_0x5627cc(0x189)]=_0x5627cc(0x178),_0x2fd6b0=!![]);if(_0x137356['apps']&&typeof _0x137356[_0x5627cc(0x180)]===_0x5627cc(0x17b))for(const _0x3e9651 of Object['values'](_0x137356[_0x5627cc(0x180)])){_0x3e9651&&_0x3e9651[_0x5627cc(0x189)]===_0x5627cc(0x16c)&&(_0x3e9651[_0x5627cc(0x189)]=_0x5627cc(0x178),_0x2fd6b0=!![]);}if(_0x2fd6b0)try{writeConfigFile(_0x5b5c7b,_0x137356);}catch{}}export function writeConfigFile(_0x189057,_0x1eff71){const _0x455cc0=a38_0xb0c848,_0x57770f=dirname(_0x189057);!existsSync(_0x57770f)&&mkdirSync(_0x57770f,{'recursive':!![]});const _0x24350f=_0x189057+_0x455cc0(0x183);try{writeFileSync(_0x24350f,JSON[_0x455cc0(0x16e)](_0x1eff71,null,0x2)+'\x0a',{'encoding':_0x455cc0(0x18d),'mode':0x180});try{renameSync(_0x24350f,_0x189057);}catch(_0x4c24fc){if(_0x4c24fc['code']===_0x455cc0(0x175)||_0x4c24fc['code']==='EXDEV'||_0x4c24fc[_0x455cc0(0x16b)]==='EACCES'){writeFileSync(_0x189057,JSON[_0x455cc0(0x16e)](_0x1eff71,null,0x2)+'\x0a',{'encoding':_0x455cc0(0x18d)});try{unlinkSync(_0x24350f);}catch{}}else throw _0x4c24fc;}}catch(_0x91220a){try{unlinkSync(_0x24350f);}catch{}throw _0x91220a;}}export function isNonInteractiveMode(_0x5a9ff9){const _0x5859b5=a38_0xb0c848;return!!(_0x5a9ff9[_0x5859b5(0x174)]||_0x5a9ff9['ci']||process.env.LOVRABET_CI===_0x5859b5(0x166)||process.env.RABETBASE_CI===_0x5859b5(0x166)||process.env.LOVRABET_CI===_0x5859b5(0x166)||process.env.CI===_0x5859b5(0x166)||!process[_0x5859b5(0x170)][_0x5859b5(0x193)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x240f53=a38_0xb0c848;if(!process[_0x240f53(0x16d)]['isTTY'])return![];try{const _0x5738af=process[_0x240f53(0x16d)][_0x240f53(0x187)];return process[_0x240f53(0x16d)][_0x240f53(0x194)](!![]),process[_0x240f53(0x16d)][_0x240f53(0x194)](_0x5738af??![]),!![];}catch{return![];}}export async function createContext(_0x199a04){const _0x326848=a38_0xb0c848,_0x4940e0=readRawConfig(),_0x537ba4=buildConfig(_0x4940e0,_0x199a04);await initGlobalEnvironment(_0x537ba4);const {getUserDomain:_0x59381f,getApiDomain:_0x4342ed}=await import(_0x326848(0x181)),_0x37b9ff={'apiDomain':_0x4342ed(),'userDomain':_0x59381f()},_0x317516=await buildAuth(_0x537ba4);logger[_0x326848(0x154)](process['cwd']());const _0x139044=(CLI_BIN_NAME+'\x20'+process[_0x326848(0x18a)][_0x326848(0x173)](0x2)['join']('\x20'))[_0x326848(0x15f)]();logger['setRawCommand'](_0x139044);const _0x3bb441=isNonInteractiveMode(_0x199a04);return{'config':_0x537ba4,'auth':_0x317516,'logger':logger,'env':_0x37b9ff,'nonInteractive':_0x3bb441};}export function buildConfigFromFlags(_0x22a6ab){return buildConfig(readRawConfig(),_0x22a6ab);}export function readAppCodeFromConfig(){const _0x520e85=a38_0xb0c848,_0x1d604e=readRawConfig(),_0x908031=_0x1d604e['appcode']??_0x1d604e[_0x520e85(0x15a)];if(typeof _0x908031===_0x520e85(0x164)&&_0x908031[_0x520e85(0x15f)]())return _0x908031[_0x520e85(0x15f)]();const _0x4046d0=_0x1d604e[_0x520e85(0x180)]&&typeof _0x1d604e[_0x520e85(0x180)]===_0x520e85(0x17b)?_0x1d604e[_0x520e85(0x180)]:{},_0x490425=_0x1d604e[_0x520e85(0x17d)]?_0x4046d0[_0x1d604e[_0x520e85(0x17d)]]:undefined;if(_0x490425?.['appcode'])return String(_0x490425[_0x520e85(0x160)])[_0x520e85(0x15f)]();const _0x4d6a9a=normalizeEnv(String(_0x1d604e['env']||_0x520e85(0x178))),_0xc38437=isDaily(_0x4d6a9a)?_0x520e85(0x152):isDev(_0x4d6a9a)?_0x520e85(0x153):'production',_0x107e40=resolveCachedAppCode(typeof _0x1d604e[_0x520e85(0x17d)]===_0x520e85(0x164)?_0x1d604e[_0x520e85(0x17d)]:undefined,_0xc38437,typeof _0x1d604e[_0x520e85(0x155)]==='string'?_0x1d604e['accessKey']:undefined);if(_0x107e40)return _0x107e40;const _0x3260ba=Object[_0x520e85(0x16a)](_0x4046d0)[_0x520e85(0x176)](_0x55cd53=>_0x55cd53?.[_0x520e85(0x160)]);return _0x3260ba?.[_0x520e85(0x160)]?String(_0x3260ba[_0x520e85(0x160)])[_0x520e85(0x15f)]():undefined;}export function readScopedConfig(_0xa8a645){const _0x32684c=a38_0xb0c848,_0x46bbb7=_0xa8a645[_0x32684c(0x17a)]?_0x32684c(0x17a):_0x32684c(0x192);return readConfigFile(resolveWriteConfigPath(_0x46bbb7));}export function writeScopedConfig(_0x50d575,_0x5e2c10){const _0x132404=a38_0xb0c848,_0x2779e1=_0x5e2c10['global']?_0x132404(0x17a):_0x132404(0x192);writeConfigFile(resolveWriteConfigPath(_0x2779e1),_0x50d575);}export async function initGlobalEnvironment(_0x36a859){const _0x577c54=a38_0xb0c848,{initEnv:_0x5baf0e}=await import(_0x577c54(0x184));_0x5baf0e(_0x36a859[_0x577c54(0x189)]);const {initDomains:_0x227c4d}=await import(_0x577c54(0x181));_0x227c4d({'apiDomain':_0x36a859[_0x577c54(0x161)][_0x577c54(0x151)]||_0x36a859[_0x577c54(0x161)][_0x577c54(0x18b)]||undefined,'userDomain':_0x36a859['raw']['userDomain']||undefined,'runtimeDomain':_0x36a859[_0x577c54(0x161)][_0x577c54(0x15c)]||undefined});}export function getProjectConfigPath(){const _0x45a48a=a38_0xb0c848;return resolveConfigPath(process[_0x45a48a(0x168)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2bfb23){const _0x397acb=a38_0xb0c848;if(!existsSync(_0x2bfb23))return{'status':_0x397acb(0x165)};try{const _0x3e50f1=readFileSync(_0x2bfb23,{'encoding':_0x397acb(0x18d)});if(!_0x3e50f1?.[_0x397acb(0x15f)]())return{'status':_0x397acb(0x191)};const _0x4dd73b=JSON['parse'](_0x3e50f1);return{'status':'ok','data':_0x4dd73b};}catch(_0x6633a9){return{'status':_0x397acb(0x179),'message':_0x6633a9 instanceof Error?_0x6633a9[_0x397acb(0x186)]:String(_0x6633a9)};}}export function loadRawConfigLayers(_0x248009){const _0x15b90a=a38_0xb0c848;let _0x37d07f={},_0x142767={},_0x527828,_0x2a83fa;try{_0x527828=resolveConfigPath(homedir());if(_0x527828){const _0x2b48d5=readFileSync(_0x527828,{'encoding':_0x15b90a(0x18d)});if(_0x2b48d5)_0x37d07f=JSON['parse'](_0x2b48d5);}}catch{}try{const _0x10e5de=_0x248009||process[_0x15b90a(0x168)]();_0x2a83fa=resolveConfigPath(_0x10e5de);if(_0x2a83fa){const _0x8fa0ea=readFileSync(_0x2a83fa,{'encoding':'utf8'});if(_0x8fa0ea)_0x142767=JSON[_0x15b90a(0x162)](_0x8fa0ea);}}catch{}return{'globalPath':_0x527828,'projectPath':_0x2a83fa,'globalConfig':_0x37d07f,'projectConfig':_0x142767};}function mergeRawConfigLayers(_0x3b856d){const _0x27a508=a38_0xb0c848,{globalConfig:_0x4e1168,projectConfig:_0x36a5a5}=_0x3b856d;if(_0x36a5a5[_0x27a508(0x197)]===![]){const _0x3c82c7={..._0x36a5a5};return delete _0x3c82c7['inherit'],_0x3c82c7;}const _0x3b0dd2={..._0x4e1168,..._0x36a5a5};if('defaultApp'in _0x36a5a5)_0x3b0dd2[_0x27a508(0x17d)]=_0x36a5a5[_0x27a508(0x17d)];else _0x4e1168[_0x27a508(0x17d)]&&(_0x3b0dd2[_0x27a508(0x17d)]=_0x4e1168[_0x27a508(0x17d)]);return _0x3b0dd2;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1a4479){return mergeRawConfigLayers(loadRawConfigLayers(_0x1a4479));}export function readRawConfigWithLayers(_0xf163e9){const _0x5063be=loadRawConfigLayers(_0xf163e9);return{'config':mergeRawConfigLayers(_0x5063be),'layers':_0x5063be};}export function resolveDefaultAppSource(_0x26a19c){const _0x336211=a38_0xb0c848;if('defaultApp'in _0x26a19c[_0x336211(0x182)])return _0x336211(0x192);if(_0x26a19c['projectConfig'][_0x336211(0x197)]===![])return null;if(_0x26a19c[_0x336211(0x156)]['defaultApp'])return _0x336211(0x17a);return null;}function buildConfig(_0xfb1c38,_0x592741){const _0x200319=a38_0xb0c848,_0x4dc2e6=_0xfb1c38['defaultApp']||undefined,_0x4f6582=_0x592741[_0x200319(0x15a)]||env('APP')||undefined,_0xae256e=_0x4f6582||_0x4dc2e6||undefined,_0x3f19f3=env('ACCESS_KEY')||_0xfb1c38[_0x200319(0x155)]||undefined,_0x46bca3=_0x592741[_0x200319(0x189)]||env(_0x200319(0x15e))||_0xfb1c38[_0x200319(0x189)]||DEFAULT_CONFIG_VALUES['env'],_0x2a2392=normalizeEnv(String(_0x46bca3)),_0x14201b=isDaily(_0x2a2392)?'daily':isDev(_0x2a2392)?_0x200319(0x153):_0x200319(0x178),_0x46a5fd=resolveCachedAppCode(_0xae256e,_0x14201b,_0x3f19f3),_0x4f9a17=_0x592741[_0x200319(0x160)]||env(_0x200319(0x172))||_0x46a5fd||_0xfb1c38[_0x200319(0x160)]||_0xfb1c38[_0x200319(0x15a)]||undefined,_0x5c2e92=_0xfb1c38[_0x200319(0x17e)]||DEFAULT_CONFIG_VALUES[_0x200319(0x17e)],_0x1e16f1=undefined,_0x41b47d=_0x592741[_0x200319(0x16f)]||env(_0x200319(0x158))||_0xfb1c38[_0x200319(0x16f)],_0x18cce1=normalizeLegacyOutputFormat(_0x41b47d),_0x20733a=env(_0x200319(0x185))||_0xfb1c38[_0x200319(0x190)],_0x516613=_0x20733a?Number(_0x20733a)||undefined:undefined,_0xad3b23=_0xfb1c38[_0x200319(0x171)]||_0xfb1c38[_0x200319(0x17c)],_0x4ded9c=_0xad3b23===_0x200319(0x167)||_0xad3b23==='write'||_0xad3b23===_0x200319(0x157)?_0xad3b23:DEFAULT_CONFIG_VALUES[_0x200319(0x171)],_0x7010e0=env(_0x200319(0x15b)),_0x18899c=_0x7010e0==='1'||_0x7010e0==='true';return{'appCode':typeof _0x4f9a17===_0x200319(0x164)&&_0x4f9a17['trim']()?_0x4f9a17[_0x200319(0x15f)]():undefined,'env':_0x14201b,'locale':_0x5c2e92,'cookie':_0x1e16f1,'accessKey':_0x3f19f3,'format':_0x18cce1,'pageSize':_0x516613,'riskLevel':_0x4ded9c,'verbose':_0x18899c,'defaultApp':_0x4dc2e6,'currentApp':typeof _0xae256e==='string'?_0xae256e:undefined,'raw':_0xfb1c38};}function env(_0x1663a1){return process.env[`LOVRABET_${_0x1663a1}`]||undefined;}async function buildAuth(_0x4dc87a){const _0x1d152c=a38_0xb0c848,_0x247ec1='',_0x5b972b=!!_0x4dc87a[_0x1d152c(0x155)];return{'cookie':_0x247ec1,'isLoggedIn':_0x5b972b,async 'getOrLogin'(){if(_0x5b972b)return _0x247ec1;throw CliErrors['authRequired']();}};}
|
|
1
|
+
const a38_0x1493aa=a38_0x183c;(function(_0x5a12a6,_0x252546){const _0x243fa7=a38_0x183c,_0x6f3305=_0x5a12a6();while(!![]){try{const _0xf4ae47=-parseInt(_0x243fa7(0xa1))/0x1+parseInt(_0x243fa7(0xca))/0x2+-parseInt(_0x243fa7(0xc9))/0x3*(-parseInt(_0x243fa7(0xe3))/0x4)+parseInt(_0x243fa7(0xcd))/0x5+-parseInt(_0x243fa7(0xcc))/0x6+parseInt(_0x243fa7(0xdd))/0x7+parseInt(_0x243fa7(0xa3))/0x8*(-parseInt(_0x243fa7(0xae))/0x9);if(_0xf4ae47===_0x252546)break;else _0x6f3305['push'](_0x6f3305['shift']());}catch(_0x3ceadc){_0x6f3305['push'](_0x6f3305['shift']());}}}(a38_0x2f45,0x8ed95));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a38_0x183c(_0x53bd85,_0x1b63b5){_0x53bd85=_0x53bd85-0x9e;const _0x2f4583=a38_0x2f45();let _0x183c50=_0x2f4583[_0x53bd85];return _0x183c50;}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{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=[a38_0x1493aa(0xde),a38_0x1493aa(0xa2)];export const NEW_CONFIG_NAME=a38_0x1493aa(0xde);function resolveConfigPath(_0x534f1d){for(const _0xf200b7 of CONFIG_NAMES){const _0x7ef27b=resolve(_0x534f1d,_0xf200b7);if(existsSync(_0x7ef27b))return _0x7ef27b;}return undefined;}export function resolveWriteConfigPath(_0xd03003){const _0xcfc2f0=a38_0x1493aa,_0x36c88e=_0xd03003===_0xcfc2f0(0xaf)?process[_0xcfc2f0(0xd3)]():homedir(),_0x4d70b4=resolveConfigPath(_0x36c88e);return _0x4d70b4??resolve(_0x36c88e,NEW_CONFIG_NAME);}export function readConfigFile(_0x543a8a){const _0x52c864=a38_0x1493aa;try{if(existsSync(_0x543a8a)){const _0x337069=readFileSync(_0x543a8a,{'encoding':_0x52c864(0xb9)});if(_0x337069){const _0x53d47f=JSON[_0x52c864(0xc8)](_0x337069);return migrateOnlineEnv(_0x543a8a,_0x53d47f),_0x53d47f;}}}catch{}return{};}function migrateOnlineEnv(_0x103255,_0x1761a9){const _0x347a16=a38_0x1493aa;let _0xa46c93=![];_0x1761a9[_0x347a16(0xc2)]===_0x347a16(0xa6)&&(_0x1761a9[_0x347a16(0xc2)]=_0x347a16(0xa5),_0xa46c93=!![]);if(_0x1761a9[_0x347a16(0xbc)]&&typeof _0x1761a9[_0x347a16(0xbc)]===_0x347a16(0xd7))for(const _0x544e6e of Object[_0x347a16(0xc3)](_0x1761a9['apps'])){_0x544e6e&&_0x544e6e[_0x347a16(0xc2)]===_0x347a16(0xa6)&&(_0x544e6e[_0x347a16(0xc2)]='production',_0xa46c93=!![]);}if(_0xa46c93)try{writeConfigFile(_0x103255,_0x1761a9);}catch{}}export function writeConfigFile(_0x5b4416,_0x23e4d9){const _0x5ab8c4=a38_0x1493aa,_0x1e5377=dirname(_0x5b4416);!existsSync(_0x1e5377)&&mkdirSync(_0x1e5377,{'recursive':!![]});const _0x334893=_0x5b4416+_0x5ab8c4(0xc7);try{writeFileSync(_0x334893,JSON[_0x5ab8c4(0xb4)](_0x23e4d9,null,0x2)+'\x0a',{'encoding':_0x5ab8c4(0xb9),'mode':0x180});try{renameSync(_0x334893,_0x5b4416);}catch(_0x3e2b1d){if(_0x3e2b1d[_0x5ab8c4(0x9e)]===_0x5ab8c4(0xcf)||_0x3e2b1d['code']===_0x5ab8c4(0xe1)||_0x3e2b1d[_0x5ab8c4(0x9e)]==='EACCES'){writeFileSync(_0x5b4416,JSON[_0x5ab8c4(0xb4)](_0x23e4d9,null,0x2)+'\x0a',{'encoding':_0x5ab8c4(0xb9)});try{unlinkSync(_0x334893);}catch{}}else throw _0x3e2b1d;}}catch(_0x37e087){try{unlinkSync(_0x334893);}catch{}throw _0x37e087;}}export function isNonInteractiveMode(_0x13db65){const _0x2dbf3d=a38_0x1493aa;return!!(_0x13db65[_0x2dbf3d(0xa4)]||_0x13db65['ci']||process.env.LOVRABET_CI===_0x2dbf3d(0xad)||process.env.RABETBASE_CI===_0x2dbf3d(0xad)||process.env.LOVRABET_CI===_0x2dbf3d(0xad)||process.env.CI===_0x2dbf3d(0xad)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x25418f=a38_0x1493aa;if(!process[_0x25418f(0xab)][_0x25418f(0xa9)])return![];try{const _0x2d0425=process[_0x25418f(0xab)][_0x25418f(0xba)];return process[_0x25418f(0xab)][_0x25418f(0xd8)](!![]),process[_0x25418f(0xab)][_0x25418f(0xd8)](_0x2d0425??![]),!![];}catch{return![];}}export async function createContext(_0x59a833){const _0x46d4e3=a38_0x1493aa,_0x4287ff=readRawConfig(),_0x5acead=buildConfig(_0x4287ff,_0x59a833);await initGlobalEnvironment(_0x5acead);const {getUserDomain:_0x263487,getApiDomain:_0x4ee320}=await import(_0x46d4e3(0xa0)),_0x3b2312={'apiDomain':_0x4ee320(),'userDomain':_0x263487()},_0x1ded45=await buildAuth(_0x5acead);logger['setLogPath'](process[_0x46d4e3(0xd3)]());const _0x13916c=(CLI_BIN_NAME+'\x20'+process[_0x46d4e3(0xc0)][_0x46d4e3(0xd2)](0x2)[_0x46d4e3(0xaa)]('\x20'))[_0x46d4e3(0xc1)]();logger[_0x46d4e3(0xb1)](_0x13916c);const _0x21094c=isNonInteractiveMode(_0x59a833);return{'config':_0x5acead,'auth':_0x1ded45,'logger':logger,'env':_0x3b2312,'nonInteractive':_0x21094c};}export function buildConfigFromFlags(_0x367332){return buildConfig(readRawConfig(),_0x367332);}export function readAppCodeFromConfig(){const _0x5b897f=a38_0x1493aa,_0x13b915=readRawConfig(),_0x2486a3=_0x13b915['appcode']??_0x13b915[_0x5b897f(0xc6)];if(typeof _0x2486a3===_0x5b897f(0xd1)&&_0x2486a3[_0x5b897f(0xc1)]())return _0x2486a3[_0x5b897f(0xc1)]();const _0x43d9e2=_0x13b915[_0x5b897f(0xbc)]&&typeof _0x13b915['apps']===_0x5b897f(0xd7)?_0x13b915[_0x5b897f(0xbc)]:{},_0xb4d5ff=_0x13b915['defaultApp']?_0x43d9e2[_0x13b915['defaultApp']]:undefined;if(_0xb4d5ff?.[_0x5b897f(0xd6)])return String(_0xb4d5ff[_0x5b897f(0xd6)])['trim']();const _0x28d583=normalizeEnv(String(_0x13b915[_0x5b897f(0xc2)]||'production')),_0x52de96=isDaily(_0x28d583)?_0x5b897f(0x9f):isDev(_0x28d583)?_0x5b897f(0xb2):_0x5b897f(0xa5),_0x1b68a3=resolveCachedAppCode(typeof _0x13b915[_0x5b897f(0xbb)]==='string'?_0x13b915[_0x5b897f(0xbb)]:undefined,_0x52de96,typeof _0x13b915[_0x5b897f(0xb6)]==='string'?_0x13b915['accessKey']:undefined);if(_0x1b68a3)return _0x1b68a3;const _0x560b1e=Object[_0x5b897f(0xc3)](_0x43d9e2)[_0x5b897f(0xdc)](_0x2b8b04=>_0x2b8b04?.[_0x5b897f(0xd6)]);return _0x560b1e?.[_0x5b897f(0xd6)]?String(_0x560b1e[_0x5b897f(0xd6)])[_0x5b897f(0xc1)]():undefined;}export function readScopedConfig(_0xb92de0){const _0x5155c5=a38_0x1493aa,_0x239beb=_0xb92de0[_0x5155c5(0xd0)]?_0x5155c5(0xd0):_0x5155c5(0xaf);return readConfigFile(resolveWriteConfigPath(_0x239beb));}export function writeScopedConfig(_0x433e4e,_0x3f2263){const _0x2cb34b=a38_0x1493aa,_0xa0f078=_0x3f2263[_0x2cb34b(0xd0)]?_0x2cb34b(0xd0):_0x2cb34b(0xaf);writeConfigFile(resolveWriteConfigPath(_0xa0f078),_0x433e4e);}export async function initGlobalEnvironment(_0x33b58b){const _0x449c0c=a38_0x1493aa,{initEnv:_0x12d5e7}=await import(_0x449c0c(0xe0));_0x12d5e7(_0x33b58b[_0x449c0c(0xc2)]);const {initDomains:_0x1c7be9}=await import(_0x449c0c(0xa0));_0x1c7be9({'apiDomain':_0x33b58b['raw'][_0x449c0c(0xa7)]||_0x33b58b[_0x449c0c(0xa8)][_0x449c0c(0xd4)]||undefined,'userDomain':_0x33b58b[_0x449c0c(0xa8)][_0x449c0c(0xdb)]||undefined,'runtimeDomain':_0x33b58b['raw'][_0x449c0c(0xc4)]||undefined});}export function getProjectConfigPath(){const _0x4359b6=a38_0x1493aa;return resolveConfigPath(process[_0x4359b6(0xd3)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x4e2541){const _0x4885de=a38_0x1493aa;if(!existsSync(_0x4e2541))return{'status':_0x4885de(0xb5)};try{const _0xf436f3=readFileSync(_0x4e2541,{'encoding':_0x4885de(0xb9)});if(!_0xf436f3?.[_0x4885de(0xc1)]())return{'status':_0x4885de(0xd5)};const _0x723d8=JSON[_0x4885de(0xc8)](_0xf436f3);return{'status':'ok','data':_0x723d8};}catch(_0x15b4ad){return{'status':'error','message':_0x15b4ad instanceof Error?_0x15b4ad[_0x4885de(0xda)]:String(_0x15b4ad)};}}export function loadRawConfigLayers(_0x37c89a){const _0x388592=a38_0x1493aa;let _0x482e0b={},_0x20d160={},_0x4a7d6e,_0x2fbc03;try{_0x4a7d6e=resolveConfigPath(homedir());if(_0x4a7d6e){const _0x402931=readFileSync(_0x4a7d6e,{'encoding':_0x388592(0xb9)});if(_0x402931)_0x482e0b=JSON[_0x388592(0xc8)](_0x402931);}}catch{}try{const _0x1785fa=_0x37c89a||process[_0x388592(0xd3)]();_0x2fbc03=resolveConfigPath(_0x1785fa);if(_0x2fbc03){const _0x4583e7=readFileSync(_0x2fbc03,{'encoding':_0x388592(0xb9)});if(_0x4583e7)_0x20d160=JSON['parse'](_0x4583e7);}}catch{}return{'globalPath':_0x4a7d6e,'projectPath':_0x2fbc03,'globalConfig':_0x482e0b,'projectConfig':_0x20d160};}function mergeRawConfigLayers(_0x29b740){const _0x48b2d6=a38_0x1493aa,{globalConfig:_0x1c4595,projectConfig:_0x4578a1}=_0x29b740;if(_0x4578a1[_0x48b2d6(0xd9)]===![]){const _0x2811ac={..._0x4578a1};return delete _0x2811ac['inherit'],_0x2811ac;}const _0x1318cf={..._0x1c4595,..._0x4578a1};if(_0x48b2d6(0xbb)in _0x4578a1)_0x1318cf[_0x48b2d6(0xbb)]=_0x4578a1[_0x48b2d6(0xbb)];else _0x1c4595[_0x48b2d6(0xbb)]&&(_0x1318cf[_0x48b2d6(0xbb)]=_0x1c4595[_0x48b2d6(0xbb)]);return _0x1318cf;}function a38_0x2f45(){const _0x519f2c=['authRequired','./constant/env.js','EXDEV','globalConfig','8TfRgKc','code','daily','./constant/domain.js','309277dhaamW','.lovrabetrc','6906512trYaLa','nonInteractive','production','online','apiDomain','raw','isTTY','join','stdin','riskLevel','true','18YYVLxN','project','maxRisk','setRawCommand','development','high-risk-write','stringify','missing','accessKey','format','APPCODE','utf8','isRaw','defaultApp','apps','locale','projectConfig','write','argv','trim','env','values','runtimeDomain','ACCESS_KEY','app','.tmp','parse','294339pOKkuu','2123502ujMtXS','VERBOSE','624006JGlOhv','2435830kjBfSB','ENV','EPERM','global','string','slice','cwd','host','empty','appcode','object','setRawMode','inherit','message','userDomain','find','6859104GsTbvt','.lovrabet.json'];a38_0x2f45=function(){return _0x519f2c;};return a38_0x2f45();}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x269b30){return mergeRawConfigLayers(loadRawConfigLayers(_0x269b30));}export function readRawConfigWithLayers(_0x39b9fb){const _0x41ebd9=loadRawConfigLayers(_0x39b9fb);return{'config':mergeRawConfigLayers(_0x41ebd9),'layers':_0x41ebd9};}export function resolveDefaultAppSource(_0x230b7a){const _0x49c999=a38_0x1493aa;if(_0x49c999(0xbb)in _0x230b7a[_0x49c999(0xbe)])return _0x49c999(0xaf);if(_0x230b7a[_0x49c999(0xbe)][_0x49c999(0xd9)]===![])return null;if(_0x230b7a[_0x49c999(0xe2)][_0x49c999(0xbb)])return'global';return null;}function buildConfig(_0x1f7aaa,_0x57e2a2){const _0x49eec3=a38_0x1493aa,_0x371c17=_0x1f7aaa[_0x49eec3(0xbb)]||undefined,_0x4be116=_0x57e2a2[_0x49eec3(0xc6)]||env('APP')||undefined,_0x38f912=_0x4be116||_0x371c17||undefined,_0x17a690=env(_0x49eec3(0xc5))||_0x1f7aaa[_0x49eec3(0xb6)]||undefined,_0x56efbf=_0x57e2a2['env']||env(_0x49eec3(0xce))||_0x1f7aaa['env']||DEFAULT_CONFIG_VALUES[_0x49eec3(0xc2)],_0x5a32b1=normalizeEnv(String(_0x56efbf)),_0x392c66=isDaily(_0x5a32b1)?_0x49eec3(0x9f):isDev(_0x5a32b1)?_0x49eec3(0xb2):'production',_0x21e3a5=resolveCachedAppCode(_0x38f912,_0x392c66,_0x17a690),_0x2f046c=_0x57e2a2[_0x49eec3(0xd6)]||env(_0x49eec3(0xb8))||_0x21e3a5||_0x1f7aaa[_0x49eec3(0xd6)]||_0x1f7aaa[_0x49eec3(0xc6)]||undefined,_0x450133=_0x1f7aaa['locale']||DEFAULT_CONFIG_VALUES[_0x49eec3(0xbd)],_0x4b7411=undefined,_0x2030d1=_0x57e2a2[_0x49eec3(0xb7)]||env('FORMAT')||_0x1f7aaa[_0x49eec3(0xb7)],_0x58ad03=normalizeLegacyOutputFormat(_0x2030d1),_0x563758=env('PAGE_SIZE')||_0x1f7aaa['pageSize'],_0x4f4352=_0x563758?Number(_0x563758)||undefined:undefined,_0x39d761=_0x1f7aaa[_0x49eec3(0xac)]||_0x1f7aaa[_0x49eec3(0xb0)],_0x1f409a=_0x39d761==='read'||_0x39d761===_0x49eec3(0xbf)||_0x39d761===_0x49eec3(0xb3)?_0x39d761:DEFAULT_CONFIG_VALUES['riskLevel'],_0x8b55d6=env(_0x49eec3(0xcb)),_0x410daf=_0x8b55d6==='1'||_0x8b55d6===_0x49eec3(0xad);return{'appCode':typeof _0x2f046c===_0x49eec3(0xd1)&&_0x2f046c[_0x49eec3(0xc1)]()?_0x2f046c[_0x49eec3(0xc1)]():undefined,'env':_0x392c66,'locale':_0x450133,'cookie':_0x4b7411,'accessKey':_0x17a690,'format':_0x58ad03,'pageSize':_0x4f4352,'riskLevel':_0x1f409a,'verbose':_0x410daf,'defaultApp':_0x371c17,'currentApp':typeof _0x38f912===_0x49eec3(0xd1)?_0x38f912:undefined,'raw':_0x1f7aaa};}function env(_0xa1fa1c){return process.env[`LOVRABET_${_0xa1fa1c}`]||undefined;}async function buildAuth(_0xc191ea){const _0x113b11=a38_0x1493aa,_0x64e54e='',_0x27e594=!!_0xc191ea[_0x113b11(0xb6)];return{'cookie':_0x64e54e,'isLoggedIn':_0x27e594,async 'getOrLogin'(){const _0x2ddaf3=_0x113b11;if(_0x27e594)return _0x64e54e;throw CliErrors[_0x2ddaf3(0xdf)]();}};}
|
package/lib/core/api-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2450b7,_0xc5adba){const _0x903154=a39_0x3285,_0x34ebbe=_0x2450b7();while(!![]){try{const _0x4cae84=-parseInt(_0x903154(0xd2))/0x1+parseInt(_0x903154(0xb4))/0x2+-parseInt(_0x903154(0xe0))/0x3*(-parseInt(_0x903154(0xda))/0x4)+-parseInt(_0x903154(0xb5))/0x5*(parseInt(_0x903154(0xbc))/0x6)+parseInt(_0x903154(0xb9))/0x7*(-parseInt(_0x903154(0xdd))/0x8)+-parseInt(_0x903154(0xd0))/0x9+-parseInt(_0x903154(0xdc))/0xa*(-parseInt(_0x903154(0xc8))/0xb);if(_0x4cae84===_0xc5adba)break;else _0x34ebbe['push'](_0x34ebbe['shift']());}catch(_0x55dc8a){_0x34ebbe['push'](_0x34ebbe['shift']());}}}(a39_0x5498,0x5d5ee));import{getRuntimeDomain}from'../constant/domain.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;function a39_0x3285(_0x3abd34,_0x241c96){_0x3abd34=_0x3abd34-0xb4;const _0x549864=a39_0x5498();let _0x328547=_0x549864[_0x3abd34];return _0x328547;}export function setActiveAK(_0xc08304){_activeAK=_0xc08304||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x47c5e6,_0x2ee558={}){const _0x5002c4=a39_0x3285,{method:method=_0x5002c4(0xd6),body:_0x2441ea,headers:headers={},timeout:timeout=0x7530}=_0x2ee558,_0x570ae1=_activeAK,_0x398fb2=getRuntimeDomain();if(!_0x570ae1)throw CliErrors[_0x5002c4(0xca)](_0x5002c4(0xdb));const _0x416d02=''+_0x398fb2+_0x47c5e6,_0x13d1fd={'X-User-AK':_0x570ae1},_0x1f87cc=new AbortController(),_0x521e93=setTimeout(()=>_0x1f87cc['abort'](),timeout);try{const _0x550474=await fetch(_0x416d02,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':_0x5002c4(0xba),..._0x13d1fd,...headers},'body':_0x2441ea?JSON[_0x5002c4(0xcd)](_0x2441ea):undefined,'signal':_0x1f87cc[_0x5002c4(0xcf)]});let _0x58cc75;try{_0x58cc75=await _0x550474[_0x5002c4(0xdf)]();}catch{throw CliErrors[_0x5002c4(0xc6)](_0x5002c4(0xbb)+_0x550474[_0x5002c4(0xd9)]+')',_0x550474[_0x5002c4(0xd9)]>=0x190?_0x5002c4(0xcb):undefined);}if(!_0x550474['ok']||_0x58cc75['success']===![])throw CliErrors['apiError'](_0x58cc75[_0x5002c4(0xc4)]||_0x58cc75[_0x5002c4(0xd3)]||_0x5002c4(0xcc)+_0x550474[_0x5002c4(0xd9)],_0x58cc75['errorCode']?_0x5002c4(0xb8)+_0x58cc75[_0x5002c4(0xe1)]:undefined);return _0x58cc75;}catch(_0xc94e9c){if(_0xc94e9c instanceof Error&&_0xc94e9c[_0x5002c4(0xbf)]==='AbortError')throw CliErrors[_0x5002c4(0xc6)](_0x5002c4(0xd7)+_0x416d02);throw _0xc94e9c;}finally{clearTimeout(_0x521e93);}}export async function getBffScriptInfo(_0x5a748e){const _0x244c55=a39_0x3285,_0xc10908=await apiRequest(_0x244c55(0xb7)+_0x5a748e);if(!_0xc10908[_0x244c55(0xc3)])throw CliErrors[_0x244c55(0xc5)](_0x244c55(0xbd)+_0x5a748e);return _0xc10908[_0x244c55(0xc3)];}export async function getSqlQueryInfo(_0x352939,_0x59840c){const _0xfec5c=a39_0x3285,_0x55bfd2=await apiRequest('/client/sql/query',{'method':'POST','body':{'appCode':_0x352939,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x59840c}}),_0x1748fd=_0x55bfd2['data'],_0x1e8882=_0x1748fd&&typeof _0x1748fd==='object'&&_0xfec5c(0xc9)in _0x1748fd?_0x1748fd[_0xfec5c(0xc9)]?.[0x0]:_0x1748fd&&typeof _0x1748fd===_0xfec5c(0xd8)&&_0xfec5c(0xbe)in _0x1748fd?_0x1748fd:undefined;if(!_0x1e8882)throw CliErrors['validation'](_0xfec5c(0xd1)+_0x59840c);return _0x1e8882;}function a39_0x5498(){const _0x3f5f12=['Configure\x20accessKey\x20in\x20.lovrabet.json.','35830MGjQDV','16rhKWfV','/client/dataset/query?','json','219LYGMcu','errorCode','760674xqspAS','25yeBjGI','/client/app/my-apps','/client/bff/query/','API\x20error\x20code:\x20','254023isBcgu','cli:lovrabet-runtime','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','829698TDvYqJ','BFF\x20script\x20not\x20found:\x20id=','sqlCode','name','string','POST','code','data','errorMsg','validation','apiError','isArray','4367HyTmve','tableData','authRequired','Check\x20your\x20credentials\x20and\x20try\x20again.','API\x20error:\x20','stringify','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','signal','6806079RBWmxr','SQL\x20query\x20not\x20found:\x20','556899EqBVvL','message','filter','test','GET','Request\x20timeout:\x20','object','status','35988lEYGzQ'];a39_0x5498=function(){return _0x3f5f12;};return a39_0x5498();}function isRemoteAppItem(_0x23e22e){const _0x47d52a=a39_0x3285;return!!_0x23e22e&&typeof _0x23e22e===_0x47d52a(0xd8)&&typeof _0x23e22e['appCode']===_0x47d52a(0xc0)&&typeof _0x23e22e['appName']===_0x47d52a(0xc0);}function extractRemoteAppItems(_0x1cf274){const _0x1e63de=a39_0x3285;if(Array[_0x1e63de(0xc7)](_0x1cf274))return _0x1cf274[_0x1e63de(0xd4)](isRemoteAppItem);if(!_0x1cf274||typeof _0x1cf274!==_0x1e63de(0xd8))throw CliErrors[_0x1e63de(0xc6)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x5f0581=_0x1cf274;if(Array[_0x1e63de(0xc7)](_0x5f0581['tableData']))return _0x5f0581['tableData'][_0x1e63de(0xd4)](isRemoteAppItem);if(_0x5f0581['data']&&typeof _0x5f0581[_0x1e63de(0xc3)]===_0x1e63de(0xd8)){const _0x4691f4=_0x5f0581[_0x1e63de(0xc3)];if(Array[_0x1e63de(0xc7)](_0x4691f4[_0x1e63de(0xc9)]))return _0x4691f4[_0x1e63de(0xc9)]['filter'](isRemoteAppItem);}throw CliErrors[_0x1e63de(0xc6)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x187b51=a39_0x3285,_0x46e252=await apiRequest(_0x187b51(0xb6));return extractRemoteAppItems(_0x46e252[_0x187b51(0xc3)]);}export async function getLoginUserInfo(){const _0x36a963=a39_0x3285,_0x1a96f6=await apiRequest('/client/user/loginUserInfo');if(!_0x1a96f6[_0x36a963(0xc3)]||typeof _0x1a96f6['data']!==_0x36a963(0xd8)||Array[_0x36a963(0xc7)](_0x1a96f6[_0x36a963(0xc3)]))throw CliErrors['apiError'](_0x36a963(0xce));return _0x1a96f6[_0x36a963(0xc3)];}export async function listDatasets(_0x45efa5,_0x21d990){const _0x41f737=a39_0x3285,_0x3a7f2a=await apiRequest('/client/dataset/list',{'method':_0x41f737(0xc1),'body':{'appCode':_0x45efa5,..._0x21d990?.[_0x41f737(0xc2)]&&{'code':_0x21d990['code']},..._0x21d990?.[_0x41f737(0xbf)]&&{'name':_0x21d990[_0x41f737(0xbf)]}}});return extractList(_0x3a7f2a[_0x41f737(0xc3)]);}export async function getDatasetDetail(_0x3474f5){const _0x104425=a39_0x3285,_0x49595a=/^\d+$/[_0x104425(0xd5)](_0x3474f5)?'id':_0x104425(0xc2),_0x1573f4=await apiRequest(_0x104425(0xde)+_0x49595a+'='+_0x3474f5);return _0x1573f4['data'];}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c1efe,_0x121c12){const _0x278a76=a40_0x2613,_0x41ba62=_0x2c1efe();while(!![]){try{const _0x2a8213=-parseInt(_0x278a76(0xee))/0x1*(parseInt(_0x278a76(0xed))/0x2)+parseInt(_0x278a76(0xf9))/0x3*(-parseInt(_0x278a76(0xf4))/0x4)+parseInt(_0x278a76(0xec))/0x5*(-parseInt(_0x278a76(0xf3))/0x6)+parseInt(_0x278a76(0xf2))/0x7*(-parseInt(_0x278a76(0xf1))/0x8)+parseInt(_0x278a76(0xf6))/0x9*(parseInt(_0x278a76(0xfc))/0xa)+-parseInt(_0x278a76(0xfe))/0xb*(-parseInt(_0x278a76(0xef))/0xc)+parseInt(_0x278a76(0xf5))/0xd;if(_0x2a8213===_0x121c12)break;else _0x41ba62['push'](_0x41ba62['shift']());}catch(_0x154b30){_0x41ba62['push'](_0x41ba62['shift']());}}}(a40_0x2871,0x69f4c));function a40_0x2613(_0x42ee0c,_0x342b3f){_0x42ee0c=_0x42ee0c-0xec;const _0x2871a6=a40_0x2871();let _0x261351=_0x2871a6[_0x42ee0c];return _0x261351;}import{listDatasets}from'../core/api-client.js';const cache=new Map();function a40_0x2871(){const _0x4b815a=['55311cNyxiy','set','entries','140330MAVzUk','dbtableConfig','4033810vNxElO','50yKLbMV','4aDiWVp','252458yynSKd','12roDdNp','db-','24rXTniC','261933MRbzQq','378696azQMdb','64noUpJn','11816493ghkQqj','450rcfMMs','dbId','get'];a40_0x2871=function(){return _0x4b815a;};return a40_0x2871();}export async function listDatabases(_0x40df6b){const _0x44bc35=a40_0x2613;if(cache['has'](_0x40df6b))return cache[_0x44bc35(0xf8)](_0x40df6b);const _0x101aee=await listDatasets(_0x40df6b),_0x10ad73=new Map();for(const _0x56fbdf of _0x101aee){const _0x318be0=_0x56fbdf[_0x44bc35(0xfd)];_0x318be0?.['dbId']!=null&&_0x10ad73['set'](_0x318be0[_0x44bc35(0xf7)],_0x318be0['dbName']??_0x44bc35(0xf0)+_0x318be0[_0x44bc35(0xf7)]);}const _0x217252=[..._0x10ad73[_0x44bc35(0xfb)]()]['map'](([_0x274a4b,_0x2e712])=>({'dbId':_0x274a4b,'dbName':_0x2e712}));return cache[_0x44bc35(0xfa)](_0x40df6b,_0x217252),_0x217252;}export async function getDbName(_0x3bd892,_0x3a1024){const _0x2aa321=a40_0x2613;try{const _0x258886=await listDatabases(_0x3bd892);return _0x258886['find'](_0x49b13c=>_0x49b13c[_0x2aa321(0xf7)]===_0x3a1024)?.['dbName'];}catch{return undefined;}}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a41_0x24bd(){const _0x4c34e8=['batchCreate','42xVokNp','appCode','delete','models','getOne','96faqJBk','function','\x22.\x20','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','9479720mxZqHr','18LcMFFj','188125stErks','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','env','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','accessKey','5088728VxFnuj','update','isArray','dataset_','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','2467825dcCEhs','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','execute','952792WoYDPo','2595492KtoWxB','bff','69268kpibtm'];a41_0x24bd=function(){return _0x4c34e8;};return a41_0x24bd();}(function(_0x52d886,_0x142c51){const _0x1dac0a=a41_0x51b7,_0x2d2b52=_0x52d886();while(!![]){try{const _0x5232d4=parseInt(_0x1dac0a(0xe9))/0x1*(parseInt(_0x1dac0a(0xeb))/0x2)+parseInt(_0x1dac0a(0xe7))/0x3+-parseInt(_0x1dac0a(0xde))/0x4+parseInt(_0x1dac0a(0xe3))/0x5+parseInt(_0x1dac0a(0xf0))/0x6*(parseInt(_0x1dac0a(0xd9))/0x7)+-parseInt(_0x1dac0a(0xe6))/0x8*(parseInt(_0x1dac0a(0xd8))/0x9)+-parseInt(_0x1dac0a(0xd7))/0xa;if(_0x5232d4===_0x142c51)break;else _0x2d2b52['push'](_0x2d2b52['shift']());}catch(_0x5233ee){_0x2d2b52['push'](_0x2d2b52['shift']());}}}(a41_0x24bd,0xbfa6d));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x3f2e47){const _0x493ef8=a41_0x51b7;_client=createClient({'appCode':_0x3f2e47[_0x493ef8(0xec)],'env':_0x3f2e47[_0x493ef8(0xdb)],'authMode':_0x3f2e47['authMode'],..._0x3f2e47[_0x493ef8(0xdd)]?{'accessKey':_0x3f2e47[_0x493ef8(0xdd)]}:{},'options':{'timeout':0x7530}});}function ensureClient(){const _0x2c18d5=a41_0x51b7;if(!_client)throw new Error(_0x2c18d5(0xe4));return _client;}export async function executeData(_0x322beb,_0x10f593,_0xc4d0b9){const _0x1a0689=a41_0x51b7,_0x299e14=ensureClient(),_0x59f3f5=_0x1a0689(0xe1)+_0x322beb,_0x5caf2f=_0x299e14[_0x1a0689(0xee)][_0x59f3f5];if(!_0x5caf2f||typeof _0x5caf2f[_0x10f593]!==_0x1a0689(0xf1))throw new Error(_0x1a0689(0xf3)+_0x10f593+_0x1a0689(0xf2)+_0x1a0689(0xf4));if(_0x10f593===_0x1a0689(0xea))return _0x5caf2f[_0x1a0689(0xea)](parseBatchCreateItemsFromParams(_0xc4d0b9));const _0x43872a=_0xc4d0b9!==undefined&&_0xc4d0b9!==null&&!Array[_0x1a0689(0xe0)](_0xc4d0b9)?_0xc4d0b9:{};switch(_0x10f593){case _0x1a0689(0xef):{const _0x754e4f=_0x43872a['id'];if(_0x754e4f===undefined||_0x754e4f===null)throw new Error(_0x1a0689(0xe2));return _0x5caf2f[_0x1a0689(0xef)](_0x754e4f);}case'update':{const {id:_0x2c4f0a,..._0xf76975}=_0x43872a;if(_0x2c4f0a===undefined||_0x2c4f0a===null)throw new Error(_0x1a0689(0xda));return _0x5caf2f[_0x1a0689(0xdf)](_0x2c4f0a,_0xf76975);}case _0x1a0689(0xed):{const _0x1fad2c=_0x43872a['id'];if(_0x1fad2c===undefined||_0x1fad2c===null)throw new Error(_0x1a0689(0xdc));return _0x5caf2f[_0x1a0689(0xed)](_0x1fad2c);}default:return _0x5caf2f[_0x10f593](_0x43872a);}}export async function executeSdkSql(_0x5e86de,_0x405ffc){const _0x515e16=a41_0x51b7,_0x48dc77=ensureClient();return _0x48dc77['sql'][_0x515e16(0xe5)]({'sqlCode':_0x5e86de,'params':_0x405ffc});}function a41_0x51b7(_0x42235d,_0x5c04f8){_0x42235d=_0x42235d-0xd7;const _0x24bd88=a41_0x24bd();let _0x51b78f=_0x24bd88[_0x42235d];return _0x51b78f;}export async function executeSdkBff(_0x8c78ed,_0x1f582c){const _0x1a63e6=a41_0x51b7,_0xca6af9=ensureClient();return _0xca6af9[_0x1a63e6(0xe8)][_0x1a63e6(0xe5)]({'scriptName':_0x8c78ed,'params':_0x1f582c});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42_0x483636=a42_0x5d08;function a42_0x5d08(_0x5c432d,_0x4decb5){_0x5c432d=_0x5c432d-0x75;const _0x1e6a60=a42_0x1e6a();let _0x5d0812=_0x1e6a60[_0x5c432d];return _0x5d0812;}(function(_0x1aed1d,_0x1bc538){const _0x187c1a=a42_0x5d08,_0x3a60dd=_0x1aed1d();while(!![]){try{const _0xd5d84f=parseInt(_0x187c1a(0x76))/0x1*(-parseInt(_0x187c1a(0x80))/0x2)+-parseInt(_0x187c1a(0x78))/0x3+-parseInt(_0x187c1a(0x7f))/0x4+-parseInt(_0x187c1a(0x7a))/0x5+-parseInt(_0x187c1a(0x7d))/0x6*(-parseInt(_0x187c1a(0x75))/0x7)+-parseInt(_0x187c1a(0x79))/0x8+-parseInt(_0x187c1a(0x7c))/0x9*(-parseInt(_0x187c1a(0x7b))/0xa);if(_0xd5d84f===_0x1bc538)break;else _0x3a60dd['push'](_0x3a60dd['shift']());}catch(_0xbed05b){_0x3a60dd['push'](_0x3a60dd['shift']());}}}(a42_0x1e6a,0x70489));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a42_0x1e6a(){const _0x247139=['Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20.lovrabet.json\x20file.','970492vXjhhy','3122oqfiRf','7ISFpbY','440nCBKaN','\x20auth\x20login`.','2307645qtThJm','7126200pHaOKA','543825qSzpDf','90BNBEzQ','2921517MbDCaz','1419684CjmSxr'];a42_0x1e6a=function(){return _0x247139;};return a42_0x1e6a();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20.lovrabet.json\x20or\x20run\x20`'+CLI_BIN_NAME+a42_0x483636(0x77),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20.lovrabet.json.','notInProjectHint':a42_0x483636(0x7e)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x430d7d,_0x4d3c50){var _0x1d80e0=a43_0x4e62,_0x4113ea=_0x430d7d();while(!![]){try{var _0x5c6f3a=-parseInt(_0x1d80e0(0x6f))/0x1+-parseInt(_0x1d80e0(0x71))/0x2+-parseInt(_0x1d80e0(0x6e))/0x3+-parseInt(_0x1d80e0(0x75))/0x4*(parseInt(_0x1d80e0(0x70))/0x5)+-parseInt(_0x1d80e0(0x73))/0x6+-parseInt(_0x1d80e0(0x74))/0x7+parseInt(_0x1d80e0(0x72))/0x8;if(_0x5c6f3a===_0x4d3c50)break;else _0x4113ea['push'](_0x4113ea['shift']());}catch(_0x298a7e){_0x4113ea['push'](_0x4113ea['shift']());}}}(a43_0x272d,0x901f7));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a43_0x272d(){var _0x2a0b9b=['1620420YHtbKw','565616SGWObL','5ebPrVr','638764FyBfoB','27188384AGCdpC','1010034yZAgLO','2361947FlIUsv','3509292FmkYJE'];a43_0x272d=function(){return _0x2a0b9b;};return a43_0x272d();}import{buildAllFlags as a43_0x25738b}from'@lovrabet/cli-framework';function a43_0x4e62(_0x23a5d4,_0x175a17){_0x23a5d4=_0x23a5d4-0x6e;var _0x272d8b=a43_0x272d();var _0x4e62a9=_0x272d8b[_0x23a5d4];return _0x4e62a9;}export function buildAllFlags(_0x393d13){return a43_0x25738b(_0x393d13,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a44_0x368b(_0x552c92,_0x324837){_0x552c92=_0x552c92-0x174;const _0x1fa9c6=a44_0x1fa9();let _0x368b5c=_0x1fa9c6[_0x552c92];return _0x368b5c;}(function(_0x2f9336,_0x3f4701){const _0x115cf7=a44_0x368b,_0x1f772c=_0x2f9336();while(!![]){try{const _0x1ac345=-parseInt(_0x115cf7(0x176))/0x1+parseInt(_0x115cf7(0x177))/0x2*(parseInt(_0x115cf7(0x17e))/0x3)+-parseInt(_0x115cf7(0x175))/0x4+parseInt(_0x115cf7(0x179))/0x5*(-parseInt(_0x115cf7(0x17a))/0x6)+parseInt(_0x115cf7(0x178))/0x7+-parseInt(_0x115cf7(0x174))/0x8*(parseInt(_0x115cf7(0x17d))/0x9)+parseInt(_0x115cf7(0x17b))/0xa;if(_0x1ac345===_0x3f4701)break;else _0x1f772c['push'](_0x1f772c['shift']());}catch(_0x1b0cf4){_0x1f772c['push'](_0x1f772c['shift']());}}}(a44_0x1fa9,0xb209f));function a44_0x1fa9(){const _0x31149d=['body','210618hBEZxX','2186544CPONfo','328XZfPYO','5784468oRRTPe','869744mHAOAz','2EKOrwC','10154613IZBEMJ','30PjkUdP','1299312LwApPH','31243950exRMjn'];a44_0x1fa9=function(){return _0x31149d;};return a44_0x1fa9();}export function dryRun(_0x4fb3d9,_0xb26436){const _0x2d7c28={'method':_0x4fb3d9,'url':_0xb26436},_0x40ede9={'body'(_0x55d6c6){const _0x1953ce=a44_0x368b;return _0x2d7c28[_0x1953ce(0x17c)]=_0x55d6c6,_0x40ede9;},'description'(_0x29c395){return _0x2d7c28['description']=_0x29c395,_0x40ede9;},'build'(){return{..._0x2d7c28};}};return _0x40ede9;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a45_0x1790ee=a45_0x1bbb;(function(_0x439e79,_0x34e4c8){const _0x4f1a0a=a45_0x1bbb,_0x21ecc5=_0x439e79();while(!![]){try{const _0x567528=-parseInt(_0x4f1a0a(0x188))/0x1+-parseInt(_0x4f1a0a(0x185))/0x2+parseInt(_0x4f1a0a(0x186))/0x3+-parseInt(_0x4f1a0a(0x184))/0x4+-parseInt(_0x4f1a0a(0x187))/0x5+-parseInt(_0x4f1a0a(0x189))/0x6+parseInt(_0x4f1a0a(0x181))/0x7;if(_0x567528===_0x34e4c8)break;else _0x21ecc5['push'](_0x21ecc5['shift']());}catch(_0x453af1){_0x21ecc5['push'](_0x21ecc5['shift']());}}}(a45_0x2bfb,0x30ed8));import{createFlagHelpers}from'@lovrabet/cli-framework';function a45_0x1bbb(_0x32a66c,_0x1a9bbd){_0x32a66c=_0x32a66c-0x181;const _0x2bfba2=a45_0x2bfb();let _0x1bbbbb=_0x2bfba2[_0x32a66c];return _0x1bbbbb;}import{CliErrors}from'../errors.js';function a45_0x2bfb(){const _0x147687=['363483CqzfmK','1939242aPDXTf','7610183owLata','parseFlags','validateFlags','662756pFFbqw','418314Gyerjv','866013IHqVln','569480PyuLZo'];a45_0x2bfb=function(){return _0x147687;};return a45_0x2bfb();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a45_0x1790ee(0x182)];export const validateFlags=helpers[a45_0x1790ee(0x183)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a46_0x84bd(){const _0x2963f3=['1973851YDHzAx','4iHOEnA','2470tIQeXZ','generateCommandHelp','36TNJWJs','65rznVHr','21TuMtCX','get','313048NXTEWL','generateFullHelp','81gEgNXy','1153197nZvOgM','443379cUpEdj','112494HAdgOV','Requires\x20appcode\x20(set\x20via\x20.lovrabet.json\x20or\x20--appcode).','1297210PBDnWB','generateServiceHelp'];a46_0x84bd=function(){return _0x2963f3;};return a46_0x84bd();}const a46_0x4a02b2=a46_0x242c;(function(_0x519d60,_0x274871){const _0x4496ac=a46_0x242c,_0x2c66cb=_0x519d60();while(!![]){try{const _0x50cc84=-parseInt(_0x4496ac(0x13d))/0x1*(parseInt(_0x4496ac(0x146))/0x2)+-parseInt(_0x4496ac(0x13f))/0x3*(-parseInt(_0x4496ac(0x145))/0x4)+-parseInt(_0x4496ac(0x138))/0x5*(-parseInt(_0x4496ac(0x140))/0x6)+-parseInt(_0x4496ac(0x139))/0x7*(-parseInt(_0x4496ac(0x13b))/0x8)+parseInt(_0x4496ac(0x13e))/0x9+parseInt(_0x4496ac(0x142))/0xa+-parseInt(_0x4496ac(0x144))/0xb*(parseInt(_0x4496ac(0x137))/0xc);if(_0x50cc84===_0x274871)break;else _0x2c66cb['push'](_0x2c66cb['shift']());}catch(_0x416762){_0x2c66cb['push'](_0x2c66cb['shift']());}}}(a46_0x84bd,0x1f5a3));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';function a46_0x242c(_0x377302,_0x42f701){_0x377302=_0x377302-0x136;const _0x84bddf=a46_0x84bd();let _0x242c12=_0x84bddf[_0x377302];return _0x242c12;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x96b2b4=>serviceGroups[a46_0x4a02b2(0x13a)](_0x96b2b4),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a46_0x4a02b2(0x141)});export function generateCommandHelp(_0x2eaa28){const _0x2f345c=a46_0x4a02b2;return generators[_0x2f345c(0x136)](_0x2eaa28);}export const generateServiceHelp=generators[a46_0x4a02b2(0x143)];export const generateFullHelp=generators[a46_0x4a02b2(0x13c)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a47_0x2136(){var _0x3a6e89=['14816ywQGdY','6594030RjbbCt','4mCLOxd','4046339niPmmR','6024378VKkYGq','1491310aKwQXm','5xKuFNC','20TrWYds','259494uuMDRX','1694PgBGEJ','2405754QtZbHk'];a47_0x2136=function(){return _0x3a6e89;};return a47_0x2136();}(function(_0x2a2315,_0xac8c95){var _0x4e6de9=a47_0x42a4,_0x23970e=_0x2a2315();while(!![]){try{var _0x52a92f=-parseInt(_0x4e6de9(0xbd))/0x1*(-parseInt(_0x4e6de9(0xbf))/0x2)+-parseInt(_0x4e6de9(0xc1))/0x3+-parseInt(_0x4e6de9(0xc4))/0x4*(-parseInt(_0x4e6de9(0xbc))/0x5)+parseInt(_0x4e6de9(0xc6))/0x6+parseInt(_0x4e6de9(0xc0))/0x7*(-parseInt(_0x4e6de9(0xc2))/0x8)+-parseInt(_0x4e6de9(0xc3))/0x9+parseInt(_0x4e6de9(0xbe))/0xa*(parseInt(_0x4e6de9(0xc5))/0xb);if(_0x52a92f===_0xac8c95)break;else _0x23970e['push'](_0x23970e['shift']());}catch(_0x4ea734){_0x23970e['push'](_0x23970e['shift']());}}}(a47_0x2136,0xabdf2));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a47_0x42a4(_0x4acb26,_0x145d24){_0x4acb26=_0x4acb26-0xbc;var _0x2136ff=a47_0x2136();var _0x42a41b=_0x2136ff[_0x4acb26];return _0x42a41b;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x238281,_0x58d715){const _0x521c5f=a48_0x9961,_0x1bea37=_0x238281();while(!![]){try{const _0x24f96c=-parseInt(_0x521c5f(0xd9))/0x1*(-parseInt(_0x521c5f(0xd6))/0x2)+-parseInt(_0x521c5f(0xd7))/0x3+-parseInt(_0x521c5f(0xd5))/0x4*(parseInt(_0x521c5f(0xdd))/0x5)+parseInt(_0x521c5f(0xd8))/0x6+parseInt(_0x521c5f(0xdc))/0x7*(-parseInt(_0x521c5f(0xde))/0x8)+parseInt(_0x521c5f(0xdf))/0x9*(-parseInt(_0x521c5f(0xdb))/0xa)+parseInt(_0x521c5f(0xda))/0xb;if(_0x24f96c===_0x58d715)break;else _0x1bea37['push'](_0x1bea37['shift']());}catch(_0xb6f5b9){_0x1bea37['push'](_0x1bea37['shift']());}}}(a48_0x584a,0x9df8e));function a48_0x9961(_0x2ec1bd,_0x1d49c8){_0x2ec1bd=_0x2ec1bd-0xd5;const _0x584a0d=a48_0x584a();let _0x996134=_0x584a0d[_0x2ec1bd];return _0x996134;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a48_0x584a(){const _0x979912=['156776iOcMPW','3699819PcDdTI','4989528FuIfxM','16cmCaPr','26771756JqcgXh','1093700vZNNlf','35HwTdye','10esGQYf','1131320qXBuRt','54OMGXaR','2551940HrrJzL'];a48_0x584a=function(){return _0x979912;};return a48_0x584a();}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41fb31,_0x55c03e){const _0x702aac=a49_0x3f64,_0x159fa5=_0x41fb31();while(!![]){try{const _0x20ef17=parseInt(_0x702aac(0x151))/0x1+parseInt(_0x702aac(0x154))/0x2+parseInt(_0x702aac(0x15d))/0x3*(parseInt(_0x702aac(0x155))/0x4)+-parseInt(_0x702aac(0x168))/0x5+parseInt(_0x702aac(0x163))/0x6*(parseInt(_0x702aac(0x164))/0x7)+-parseInt(_0x702aac(0x148))/0x8*(-parseInt(_0x702aac(0x14a))/0x9)+parseInt(_0x702aac(0x142))/0xa*(-parseInt(_0x702aac(0x162))/0xb);if(_0x20ef17===_0x55c03e)break;else _0x159fa5['push'](_0x159fa5['shift']());}catch(_0x92599f){_0x159fa5['push'](_0x159fa5['shift']());}}}(a49_0x1825,0xaebd4));function a49_0x3f64(_0x99cf8b,_0x41be01){_0x99cf8b=_0x99cf8b-0x141;const _0x1825d3=a49_0x1825();let _0x3f64d6=_0x1825d3[_0x99cf8b];return _0x3f64d6;}function toKebab(_0x1134d3){const _0x383839=a49_0x3f64;return _0x1134d3['replace'](/_/g,'-')[_0x383839(0x15f)](/-([A-Z]+)/g,(_0x1dbd09,_0x4b9701)=>'-'+_0x4b9701[_0x383839(0x158)]())[_0x383839(0x15f)](/([a-z0-9])([A-Z])/g,(_0x4aef11,_0x30dddb,_0x18f7b7)=>_0x30dddb+'-'+_0x18f7b7)[_0x383839(0x158)]();}function buildKnownFlags(_0x43bfc9){const _0x4e3f1c=a49_0x3f64,_0x11ba94=new Set();for(const _0x5f577f of _0x43bfc9){_0x11ba94['add'](_0x5f577f[_0x4e3f1c(0x143)]),_0x11ba94['add'](toCamelCase(_0x5f577f[_0x4e3f1c(0x143)]));}for(const _0x368a4f of[_0x4e3f1c(0x147),'dryRun',_0x4e3f1c(0x159),'format']){_0x11ba94[_0x4e3f1c(0x165)](_0x368a4f);}for(const _0x2aafc1 of[_0x4e3f1c(0x144),'env',_0x4e3f1c(0x14e),_0x4e3f1c(0x14b),_0x4e3f1c(0x14c),_0x4e3f1c(0x157),'ci',_0x4e3f1c(0x167),'version']){_0x11ba94[_0x4e3f1c(0x165)](_0x2aafc1);}return _0x11ba94;}function buildFlagTypeMap(_0x472905){const _0x47a31d=a49_0x3f64,_0x1727f6=new Map();for(const _0x2d45ac of _0x472905){_0x1727f6[_0x47a31d(0x152)](_0x2d45ac['name'],_0x2d45ac['type']),_0x1727f6[_0x47a31d(0x152)](toCamelCase(_0x2d45ac['name']),_0x2d45ac[_0x47a31d(0x15c)]);}return _0x1727f6;}function a49_0x1825(){const _0x3c187d=['17968RCXZSw','alias','702mwSyWB','app','nonInteractive','has','appcode','slice','number','1052212MRBthV','set','push','1714686jUwTbE','12UsScNf','get','non-interactive','toLowerCase','yes','length','string','type','975714nGwVLT','original','replace','keys','indexOf','17515421iqedbl','6164694gYQVvJ','7ksnoeO','add','sticky','global','937760hJbGHc','toUpperCase','20lqcoWW','name','help','corrected','entries','dry-run'];a49_0x1825=function(){return _0x3c187d;};return a49_0x1825();}function toCamelCase(_0x587728){const _0x4763ff=a49_0x3f64;return _0x587728[_0x4763ff(0x15f)](/-([a-z])/g,(_0x1c7587,_0x18c81d)=>_0x18c81d[_0x4763ff(0x141)]());}function aliasHandler(_0x3bbff7,_0x2ee92d){const _0x59ea67=a49_0x3f64,_0x395d04=[];for(const _0x18f8bf of Object[_0x59ea67(0x160)](_0x3bbff7)){if(_0x2ee92d[_0x59ea67(0x14d)](_0x18f8bf))continue;const _0x382790=toKebab(_0x18f8bf);_0x382790!==_0x18f8bf&&_0x2ee92d[_0x59ea67(0x14d)](_0x382790)&&_0x395d04['push']({'original':_0x18f8bf,'corrected':_0x382790,'handler':_0x59ea67(0x149)});}return _0x395d04;}function stickyHandler(_0x1ecd01,_0x49ada6,_0x55d048){const _0x2fe005=a49_0x3f64,_0x27ad1c=[];for(const [_0xdf3165,_0x46acaf]of Object[_0x2fe005(0x146)](_0x1ecd01)){if(_0x46acaf!==!![])continue;for(let _0x5204a2=_0xdf3165['length']-0x1;_0x5204a2>0x0;_0x5204a2--){const _0x4c25ec=_0xdf3165[_0x2fe005(0x14f)](0x0,_0x5204a2),_0x3b8c8d=_0xdf3165['slice'](_0x5204a2),_0x56833a=toKebab(_0x4c25ec),_0x48a2c2=toCamelCase(_0x4c25ec),_0x1c08c4=_0x49ada6[_0x2fe005(0x14d)](_0x4c25ec)?_0x4c25ec:_0x49ada6[_0x2fe005(0x14d)](_0x56833a)?_0x56833a:_0x49ada6[_0x2fe005(0x14d)](_0x48a2c2)?_0x48a2c2:null;if(!_0x1c08c4)continue;const _0x3aab37=_0x55d048[_0x2fe005(0x156)](_0x1c08c4)??_0x2fe005(0x15b);let _0x5a1c56;if(_0x3aab37===_0x2fe005(0x150)){const _0x4e9e33=Number(_0x3b8c8d);if(isNaN(_0x4e9e33)||_0x3b8c8d==='')continue;_0x5a1c56=_0x4e9e33;}else{if(_0x3aab37==='boolean')continue;else{if(_0x3b8c8d==='')continue;_0x5a1c56=_0x3b8c8d;}}_0x27ad1c[_0x2fe005(0x153)]({'original':_0xdf3165,'corrected':_0x1c08c4+'='+_0x5a1c56,'handler':_0x2fe005(0x166)});break;}}return _0x27ad1c;}export function correctFlags(_0x51546f,_0x143174){const _0x3f48f7=a49_0x3f64,_0x2036a8=buildKnownFlags(_0x143174),_0x5aca1f=buildFlagTypeMap(_0x143174),_0x12854a=aliasHandler(_0x51546f,_0x2036a8),_0x36f1a2=stickyHandler(_0x51546f,_0x2036a8,_0x5aca1f),_0x917fa7=[..._0x12854a,..._0x36f1a2];if(_0x917fa7[_0x3f48f7(0x15a)]===0x0)return{'flags':_0x51546f,'corrections':[]};const _0x1512ad={..._0x51546f},_0x432153=new Set();for(const _0x1b9e09 of _0x12854a){_0x1512ad[_0x1b9e09['corrected']]=_0x51546f[_0x1b9e09['original']],_0x432153['add'](_0x1b9e09['original']);}for(const _0x12105a of _0x36f1a2){const _0xc4192b=_0x12105a[_0x3f48f7(0x145)][_0x3f48f7(0x161)]('='),_0x25a187=_0x12105a['corrected']['slice'](0x0,_0xc4192b),_0x1c83d0=_0x12105a[_0x3f48f7(0x145)]['slice'](_0xc4192b+0x1),_0x29eb0a=_0x5aca1f[_0x3f48f7(0x156)](_0x25a187)??_0x3f48f7(0x15b);_0x29eb0a===_0x3f48f7(0x150)?_0x1512ad[_0x25a187]=Number(_0x1c83d0):_0x1512ad[_0x25a187]=_0x1c83d0,_0x432153[_0x3f48f7(0x165)](_0x12105a[_0x3f48f7(0x15e)]);}for(const _0x5b1e37 of _0x432153){delete _0x1512ad[_0x5b1e37];}return{'flags':_0x1512ad,'corrections':_0x917fa7};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3acb87,_0xb38a50){var _0x14d251=a50_0x4165,_0x4a747a=_0x3acb87();while(!![]){try{var _0x36fe02=-parseInt(_0x14d251(0x1b1))/0x1+parseInt(_0x14d251(0x1b2))/0x2+parseInt(_0x14d251(0x1b5))/0x3+-parseInt(_0x14d251(0x1ae))/0x4*(parseInt(_0x14d251(0x1af))/0x5)+-parseInt(_0x14d251(0x1ac))/0x6*(parseInt(_0x14d251(0x1b0))/0x7)+-parseInt(_0x14d251(0x1b4))/0x8*(-parseInt(_0x14d251(0x1ad))/0x9)+-parseInt(_0x14d251(0x1b3))/0xa;if(_0x36fe02===_0xb38a50)break;else _0x4a747a['push'](_0x4a747a['shift']());}catch(_0x8c668e){_0x4a747a['push'](_0x4a747a['shift']());}}}(a50_0x53fb,0x7ee85));function a50_0x4165(_0x160a3a,_0x47c08c){_0x160a3a=_0x160a3a-0x1ac;var _0x53fb8c=a50_0x53fb();var _0x4165e5=_0x53fb8c[_0x160a3a];return _0x4165e5;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a50_0x53fb(){var _0x1e832c=['76036rMocRw','469566fpgDnV','4976520pUiUwP','152ZNadvr','1613745bXhPbv','671412mYnImp','434853czEvDH','48bvcbXF','155590lplcjO','14roUjiW'];a50_0x53fb=function(){return _0x1e832c;};return a50_0x53fb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36a2d4,_0x1416ef){const _0x37ddf6=a51_0x4fe2,_0x4fa666=_0x36a2d4();while(!![]){try{const _0x845b8=parseInt(_0x37ddf6(0x182))/0x1+-parseInt(_0x37ddf6(0x184))/0x2*(parseInt(_0x37ddf6(0x174))/0x3)+-parseInt(_0x37ddf6(0x17b))/0x4+parseInt(_0x37ddf6(0x180))/0x5*(-parseInt(_0x37ddf6(0x181))/0x6)+parseInt(_0x37ddf6(0x172))/0x7+parseInt(_0x37ddf6(0x170))/0x8*(parseInt(_0x37ddf6(0x171))/0x9)+-parseInt(_0x37ddf6(0x175))/0xa*(-parseInt(_0x37ddf6(0x173))/0xb);if(_0x845b8===_0x1416ef)break;else _0x4fa666['push'](_0x4fa666['shift']());}catch(_0x40cbb9){_0x4fa666['push'](_0x4fa666['shift']());}}}(a51_0x4477,0x21904));function a51_0x4477(){const _0x1d09bd=['code=','stringify','command','--yes','56mFUANI','251757jvsgne','406357LhlgBC','2518285dxTsFf','1563oxccbu','10yLTvaI','length','join','params','push','\x20\x20\x20','390260cbsfOS','description','name=','\x20\x20\x20Continue?\x20[y/N]\x20','name','10zOlmHs','375402RlqFca','150903UUAXmY','\x20\x20\x20Affected:\x20','1050iPSpFd'];a51_0x4477=function(){return _0x1d09bd;};return a51_0x4477();}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x3b3d62,_0x21153f,_0x28497b){const _0x5e1142=a51_0x4fe2,_0x2034e7=buildConfirmationContext(_0x3b3d62,_0x21153f,_0x28497b),_0x3311e0=['⚠\x20\x20High-risk\x20operation:\x20'+_0x2034e7['commandLabel']];return _0x2034e7['description']&&_0x3311e0[_0x5e1142(0x179)](_0x5e1142(0x17a)+_0x2034e7['description']),_0x2034e7['affectedRecords']&&_0x3311e0[_0x5e1142(0x179)](_0x5e1142(0x183)+_0x2034e7['affectedRecords']),_0x3311e0[_0x5e1142(0x179)](_0x5e1142(0x17e)),_0x3311e0;}function a51_0x4fe2(_0x46329c,_0x677bc5){_0x46329c=_0x46329c-0x16e;const _0x447768=a51_0x4477();let _0x4fe28d=_0x447768[_0x46329c];return _0x4fe28d;}export function reconstructCommandArgv(_0x15ab3f,_0x46d15b){const _0x19712a=a51_0x4fe2,_0x4270a7=[CLI_BIN_NAME,_0x15ab3f['service'],_0x15ab3f[_0x19712a(0x16e)]];for(const [_0x1b9c60,_0x72e89e]of Object['entries'](_0x46d15b)){if(_0x72e89e===!![])_0x4270a7[_0x19712a(0x179)]('--'+_0x1b9c60);else _0x72e89e!==![]&&_0x72e89e!==undefined&&_0x72e89e!==''&&_0x4270a7[_0x19712a(0x179)]('--'+_0x1b9c60+'\x20'+JSON[_0x19712a(0x186)](_0x72e89e));}return _0x4270a7[_0x19712a(0x179)](_0x19712a(0x16f)),_0x4270a7[_0x19712a(0x177)]('\x20');}function buildConfirmationContext(_0x50d6ac,_0x7073b0,_0x116efd){const _0x232a1c=a51_0x4fe2,_0x354d09=extractAffectedRecords(_0x116efd);return{'commandLabel':_0x7073b0,'description':_0x50d6ac[_0x232a1c(0x17c)],'affectedRecords':_0x354d09};}function extractAffectedRecords(_0x104691){const _0x48eb43=a51_0x4fe2,_0x3f24f3=[];if(_0x104691['code'])_0x3f24f3[_0x48eb43(0x179)](_0x48eb43(0x185)+_0x104691['code']);if(_0x104691['id'])_0x3f24f3[_0x48eb43(0x179)]('id='+_0x104691['id']);if(_0x104691[_0x48eb43(0x17f)])_0x3f24f3['push'](_0x48eb43(0x17d)+_0x104691[_0x48eb43(0x17f)]);if(_0x104691[_0x48eb43(0x178)])_0x3f24f3['push']('params='+_0x104691[_0x48eb43(0x178)]);return _0x3f24f3[_0x48eb43(0x176)]>0x0?_0x3f24f3['join'](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x423723,_0xe14730){const _0x40008e=a52_0x4541,_0x28cf94=_0x423723();while(!![]){try{const _0x58121e=-parseInt(_0x40008e(0x192))/0x1+-parseInt(_0x40008e(0x18d))/0x2+-parseInt(_0x40008e(0x18f))/0x3*(-parseInt(_0x40008e(0x195))/0x4)+-parseInt(_0x40008e(0x190))/0x5*(-parseInt(_0x40008e(0x18a))/0x6)+parseInt(_0x40008e(0x193))/0x7*(-parseInt(_0x40008e(0x194))/0x8)+-parseInt(_0x40008e(0x196))/0x9+parseInt(_0x40008e(0x18c))/0xa;if(_0x58121e===_0xe14730)break;else _0x28cf94['push'](_0x28cf94['shift']());}catch(_0x225f9a){_0x28cf94['push'](_0x28cf94['shift']());}}}(a52_0x3b03,0x4441a));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a52_0x4541(_0x135976,_0x4c4e4b){_0x135976=_0x135976-0x189;const _0x3b0367=a52_0x3b03();let _0x4541ae=_0x3b0367[_0x135976];return _0x4541ae;}export function mapUserFacingExecuteError(_0x423e62){const _0x5207a8=a52_0x4541;if(_0x423e62 instanceof LovrabetError)return CliErrors[_0x5207a8(0x191)](userFacingLovrabetMessage(_0x423e62));return _0x423e62;}function userFacingLovrabetMessage(_0x1c6573){const _0x3a7761=a52_0x4541,_0x2e75ee=_0x1c6573[_0x3a7761(0x18e)];if(_0x2e75ee!==undefined&&_0x2e75ee!==null){if(typeof _0x2e75ee===_0x3a7761(0x189)&&_0x2e75ee[_0x3a7761(0x18b)]())return _0x2e75ee[_0x3a7761(0x18b)]();try{return JSON['stringify'](_0x2e75ee);}catch{}}return _0x1c6573['message'];}function a52_0x3b03(){const _0x2e1913=['string','198IiGsMH','trim','8915580JxNvFl','259358pLqWfj','description','3irGvdv','36810yHNYbw','validation','440592lJMyvN','14POhTLQ','1095960SFnFVv','741884PmOduz','1765224DQGRmF'];a52_0x3b03=function(){return _0x2e1913;};return a52_0x3b03();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a53_0x4b6cc6=a53_0x10b0;(function(_0x368fc0,_0x1d4991){const _0xba1879=a53_0x10b0,_0x2df42d=_0x368fc0();while(!![]){try{const _0x56b93d=parseInt(_0xba1879(0x114))/0x1*(-parseInt(_0xba1879(0x115))/0x2)+-parseInt(_0xba1879(0x108))/0x3*(-parseInt(_0xba1879(0xf2))/0x4)+parseInt(_0xba1879(0x10d))/0x5*(-parseInt(_0xba1879(0xf6))/0x6)+parseInt(_0xba1879(0x100))/0x7*(-parseInt(_0xba1879(0x107))/0x8)+-parseInt(_0xba1879(0x10a))/0x9*(parseInt(_0xba1879(0x106))/0xa)+parseInt(_0xba1879(0x110))/0xb+parseInt(_0xba1879(0x10f))/0xc;if(_0x56b93d===_0x1d4991)break;else _0x2df42d['push'](_0x2df42d['shift']());}catch(_0x445472){_0x2df42d['push'](_0x2df42d['shift']());}}}(a53_0xc07e,0xee8dc));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';function a53_0xc07e(){const _0x3a7ca3=['27780WoqwBq','defaultApp','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20.lovrabet.json.','../core/sdk-client.js','../core/api-client.js','\x20\x20To\x20proceed:\x20','appCode','apiDomain','format','defaultVerbose','448GhRDOH','defaultPageSize','High-risk\x20operation\x20`','authRequired','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','Set\x20accessKey\x20in\x20.lovrabet.json\x20or\x20pass\x20LOVRABET_ACCESS_KEY.','16265050Iupbwj','237368DEbUin','835743iDjVPW','accessKey','9IfWmNh','cancelled','configMissing','695XKISxo','requiresAuth','41997024UHsMQJ','16588803TlzrPq','mergedCli','name','ClientAk','250919pptGXQ','10LWcwuQ','service','env','20OUFzJE','requiresAppCode','isNonInteractive','pageSize'];a53_0xc07e=function(){return _0x3a7ca3;};return a53_0xc07e();}function a53_0x10b0(_0x3cce10,_0x180de7){_0x3cce10=_0x3cce10-0xf1;const _0xc07e3=a53_0xc07e();let _0x10b05c=_0xc07e3[_0x3cce10];return _0x10b05c;}import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';export function resolveAuthMode(_0x177cff){const _0x3312ab=a53_0x10b0;return void _0x177cff,AUTH_MODE[_0x3312ab(0x113)];}export function createPipelineEnv(_0x493290,_0x41cff7){const _0x11dd3c=a53_0x10b0;return{'rawFlags':_0x41cff7,'appCode':_0x493290[_0x11dd3c(0xfc)]||process.env.RABETBASE_APPCODE||readAppCodeFromConfig(),'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x41cff7),'defaultFormat':_0x493290[_0x11dd3c(0xfe)],'defaultPageSize':_0x493290[_0x11dd3c(0xf5)],'defaultVerbose':_0x493290['verbose'],'riskLevel':_0x493290['riskLevel'],'accessKey':_0x493290[_0x11dd3c(0x109)],'env':_0x493290[_0x11dd3c(0xf1)],'mergedCli':{'defaultApp':_0x493290[_0x11dd3c(0xf7)],'currentApp':_0x493290['currentApp'],'appCode':_0x493290['appCode']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x3fc270=>PIPELINE_FLAG_NAMES['has'](_0x3fc270[a53_0x4b6cc6(0x112)]))['map'](({name:_0x534066,type:_0x154f07,description:_0x2fdd1a})=>({'name':_0x534066,'type':_0x154f07,'description':_0x2fdd1a})),'formatOutput':formatOutput,'getCommandLabel'(_0x174cfd){const _0x3d6bf7=a53_0x4b6cc6;return CLI_BIN_NAME+'\x20'+_0x174cfd[_0x3d6bf7(0x116)]+'\x20'+_0x174cfd['command'];},'riskPolicy':{'onViolation'(_0x487083){console['error'](_0x487083);},'createError'(_0x277824){return CliErrors['cancelled'](_0x277824);}},async 'prepare'(_0x14222f,_0x185a9c){const _0x26209b=a53_0x4b6cc6,_0x2b9879=resolveAuthMode(_0x185a9c);if(_0x14222f[_0x26209b(0x10e)]!==![]){if(!_0x185a9c[_0x26209b(0x109)])throw CliErrors[_0x26209b(0x103)](_0x26209b(0x105));const {setActiveAK:_0x4c0507}=await import(_0x26209b(0xfa));_0x4c0507(_0x185a9c[_0x26209b(0x109)]);}let _0x73091a='';if(_0x14222f[_0x26209b(0xf3)]!==![]){_0x73091a=_0x185a9c[_0x26209b(0xfc)]??'';if(!_0x73091a)throw CliErrors[_0x26209b(0x10c)](_0x26209b(0xf8));}if(_0x73091a){const {initSdkClient:_0x17aad1}=await import(_0x26209b(0xf9));_0x17aad1({'appCode':_0x73091a,'env':_0x185a9c[_0x26209b(0xf1)]??'production','accessKey':_0x185a9c[_0x26209b(0x109)],'authMode':_0x2b9879});}return{'defaults':{'booleans':{'verbose':_0x185a9c[_0x26209b(0xff)]},'numbers':{'pagesize':_0x185a9c[_0x26209b(0x101)]}},'extras':{'appCode':_0x73091a,'cookie':'','apiDomain':_0x185a9c[_0x26209b(0xfd)],'apiDir':'','accessKey':_0x185a9c[_0x26209b(0x109)],'envName':_0x185a9c[_0x26209b(0xf1)],'mergedCli':_0x185a9c[_0x26209b(0x111)]}};},async 'confirmHighRisk'({def:_0x2f02ef,env:_0x468087,flags:_0x873627,commandLabel:_0x5a151c}){const _0x4b99f8=a53_0x4b6cc6;if(_0x468087[_0x4b99f8(0xf4)]){const _0x1e0f5e=reconstructCommandArgv(_0x2f02ef,_0x873627);throw CliErrors['validation'](_0x4b99f8(0x102)+_0x5a151c+_0x4b99f8(0x104)+(_0x4b99f8(0xfb)+_0x1e0f5e));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2f02ef,_0x5a151c,_0x873627),'createCancelledError':_0x43668c=>CliErrors[_0x4b99f8(0x10b)](_0x43668c)});},'mapDryRunError'(_0x3c7eec){return mapUserFacingExecuteError(_0x3c7eec);},'mapExecuteError'(_0x53456b){return mapUserFacingExecuteError(_0x53456b);},async 'finalize'(){const _0x5308f9=a53_0x4b6cc6,{clearActiveAK:_0x3efb73}=await import(_0x5308f9(0xfa));_0x3efb73();}};export async function runCommand(_0x144340,_0x2cdf7c){await runCommandWithAdapter(_0x144340,_0x2cdf7c,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x13b114,_0x10b656){const _0x24a74e=a54_0x333c,_0x4ef9c7=_0x13b114();while(!![]){try{const _0x1113d8=parseInt(_0x24a74e(0x191))/0x1+parseInt(_0x24a74e(0x190))/0x2+-parseInt(_0x24a74e(0x196))/0x3*(parseInt(_0x24a74e(0x192))/0x4)+-parseInt(_0x24a74e(0x18f))/0x5+-parseInt(_0x24a74e(0x193))/0x6+parseInt(_0x24a74e(0x194))/0x7+parseInt(_0x24a74e(0x18e))/0x8;if(_0x1113d8===_0x10b656)break;else _0x4ef9c7['push'](_0x4ef9c7['shift']());}catch(_0x24a2cb){_0x4ef9c7['push'](_0x4ef9c7['shift']());}}}(a54_0x2286,0xe8dee));import{buildSchemaPayload as a54_0x450e15}from'@lovrabet/cli-framework';function a54_0x333c(_0x503b4e,_0x7a5d69){_0x503b4e=_0x503b4e-0x18e;const _0x22863f=a54_0x2286();let _0x333c99=_0x22863f[_0x503b4e];return _0x333c99;}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x29c705=a54_0x333c,{serviceRegistry:_0x2ee624,findDefinition:_0x389c50}=await import(_0x29c705(0x195));return a54_0x450e15({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2ee624,'buildAllFlags':buildAllFlags,'findDefinition':_0x389c50});}function a54_0x2286(){const _0x90ac60=['4675680IuvwNX','733550SROHlz','237433ksXwzb','4uaBonK','2410494jcxXlU','7438144WTwTVS','../commands/registry.js','5615385lUKAOU','19965744gnMxPz'];a54_0x2286=function(){return _0x90ac60;};return a54_0x2286();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xc01092,_0xe58cf4){var _0x45dd10=a55_0x402a,_0x1f1ce1=_0xc01092();while(!![]){try{var _0x33c6f1=parseInt(_0x45dd10(0xb3))/0x1*(-parseInt(_0x45dd10(0xb4))/0x2)+parseInt(_0x45dd10(0xb1))/0x3*(parseInt(_0x45dd10(0xad))/0x4)+-parseInt(_0x45dd10(0xac))/0x5+parseInt(_0x45dd10(0xab))/0x6+-parseInt(_0x45dd10(0xb0))/0x7*(-parseInt(_0x45dd10(0xaf))/0x8)+-parseInt(_0x45dd10(0xb5))/0x9*(parseInt(_0x45dd10(0xae))/0xa)+parseInt(_0x45dd10(0xb2))/0xb;if(_0x33c6f1===_0xe58cf4)break;else _0x1f1ce1['push'](_0x1f1ce1['shift']());}catch(_0x24fd1b){_0x1f1ce1['push'](_0x1f1ce1['shift']());}}}(a55_0x20ff,0x72477));function a55_0x402a(_0x35f20c,_0x37cf24){_0x35f20c=_0x35f20c-0xab;var _0x20ff43=a55_0x20ff();var _0x402ad7=_0x20ff43[_0x35f20c];return _0x402ad7;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a55_0x20ff(){var _0xaf48ea=['1537239yhSOar','748571RqaZZR','2LTcmon','152910ssrhKq','4310730vlgMHs','423820CQpSiK','12VmDVUn','320JPbsci','1323384Rjmtcp','7aqQXkw','821475thJoAx'];a55_0x20ff=function(){return _0xaf48ea;};return a55_0x20ff();}
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a56_0xf3c1(){const _0x5d49a7=['244190FGlMwn','\x20\x20Use\x20','21930ZfsmXw','9ErkiKs','2124856qRqVOo','green','2CGVZIY','108471aColpI','920LrjmAS','350FTaAMh','\x20--help','\x20to\x20view\x20available\x20commands.','10693507OmHtIX','625761GayyCP','9008riZHAu','column'];a56_0xf3c1=function(){return _0x5d49a7;};return a56_0xf3c1();}(function(_0x5a73ec,_0x446a82){const _0x449ed0=a56_0x2ead,_0x3aa19c=_0x5a73ec();while(!![]){try{const _0x536755=-parseInt(_0x449ed0(0x1b9))/0x1*(-parseInt(_0x449ed0(0x1b8))/0x2)+parseInt(_0x449ed0(0x1af))/0x3+-parseInt(_0x449ed0(0x1b0))/0x4*(-parseInt(_0x449ed0(0x1ba))/0x5)+-parseInt(_0x449ed0(0x1b4))/0x6*(-parseInt(_0x449ed0(0x1ab))/0x7)+parseInt(_0x449ed0(0x1b6))/0x8+parseInt(_0x449ed0(0x1b5))/0x9*(parseInt(_0x449ed0(0x1b2))/0xa)+-parseInt(_0x449ed0(0x1ae))/0xb;if(_0x536755===_0x446a82)break;else _0x3aa19c['push'](_0x3aa19c['shift']());}catch(_0x1b10ed){_0x3aa19c['push'](_0x3aa19c['shift']());}}}(a56_0xf3c1,0x38a81));import{jsx as a56_0x468df3,jsxs as a56_0x5e06f3}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a56_0x2ead(_0x5483bf,_0xacbddc){_0x5483bf=_0x5483bf-0x1ab;const _0xf3c130=a56_0xf3c1();let _0x2ead04=_0xf3c130[_0x5483bf];return _0x2ead04;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x59a3b7=a56_0x2ead,{exit:_0x1b01c9}=useApp();return useEffect(()=>{_0x1b01c9();},[_0x1b01c9]),a56_0x5e06f3(Box,{'flexDirection':_0x59a3b7(0x1b1),'marginTop':0x1,'marginBottom':0x1,'children':[a56_0x468df3(Box,{'children':a56_0x468df3(Text,{'bold':!![],'color':_0x59a3b7(0x1b7),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a56_0x5e06f3(Box,{'marginTop':0x1,'children':[a56_0x468df3(Text,{'dimColor':!![],'children':_0x59a3b7(0x1b3)}),a56_0x468df3(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x59a3b7(0x1ac)}),a56_0x468df3(Text,{'dimColor':!![],'children':_0x59a3b7(0x1ad)})]})]});}
|