@lovrabet/lovrabet-cli 2.0.1-beta.9 → 2.0.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/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/index.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/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/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/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -2
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x1a23d8=a31_0x227c;function a31_0x15fd(){const _0x2f8c8f=['Preview\x20operation\x20without\x20executing','clear','Clear\x20output','non-interactive','Lovrabet\x20Runtime\x20CLI','9401310alrtUs','Environment','nonInteractive','appcode','Output\x20format','Skip\x20confirmation\x20for\x20high-risk\x20writes','params','type','Name\x20filter','497151RmsCzv','Verbose\x20output','Force\x20non-interactive\x20mode\x20(CI)','map','<code>','Alias\x20for\x20--non-interactive','Record\x20ID','help','<name>','dryRun','meowKey','SQL\x20query\x20code','production\x20|\x20development\x20|\x20daily','11UJCyQQ','fromEntries','lovrabet','Show\x20help','693624jnVsRe','app','sqlcode','722805QFLmmm','boolean','string','format','1390aWGZYd','yes','14394ZThUpg','6XWndNN','global','verbose','56InFMID','env','<expr>','@lovrabet/lovrabet-cli','JSON\x20params\x20for\x20execute\x20commands','3694145GbqLAG','dry-run','955872SxbsCx'];a31_0x15fd=function(){return _0x2f8c8f;};return a31_0x15fd();}(function(_0x19c302,_0x287dd1){const _0x5dcebc=a31_0x227c,_0x29026f=_0x19c302();while(!![]){try{const _0x504ba7=parseInt(_0x5dcebc(0x197))/0x1+parseInt(_0x5dcebc(0x194))/0x2*(-parseInt(_0x5dcebc(0x16a))/0x3)+parseInt(_0x5dcebc(0x174))/0x4+-parseInt(_0x5dcebc(0x19b))/0x5*(parseInt(_0x5dcebc(0x169))/0x6)+-parseInt(_0x5dcebc(0x172))/0x7+-parseInt(_0x5dcebc(0x16d))/0x8*(-parseInt(_0x5dcebc(0x183))/0x9)+-parseInt(_0x5dcebc(0x17a))/0xa*(-parseInt(_0x5dcebc(0x190))/0xb);if(_0x504ba7===_0x287dd1)break;else _0x29026f['push'](_0x29026f['shift']());}catch(_0x2d68d9){_0x29026f['push'](_0x29026f['shift']());}}}(a31_0x15fd,0x61ba8));export const CLI_BIN_NAME=a31_0x1a23d8(0x192);function a31_0x227c(_0x7fdd28,_0x5958b4){_0x7fdd28=_0x7fdd28-0x168;const _0x15fd66=a31_0x15fd();let _0x227c50=_0x15fd66[_0x7fdd28];return _0x227c50;}export const CLI_DISPLAY_NAME=a31_0x1a23d8(0x179);export const NPM_PACKAGE_NAME=a31_0x1a23d8(0x170);export const GLOBAL_FLAGS=[{'name':a31_0x1a23d8(0x17d),'meowKey':a31_0x1a23d8(0x17d),'type':'string','description':'Override\x20appcode','hint':a31_0x1a23d8(0x187)},{'name':a31_0x1a23d8(0x195),'meowKey':a31_0x1a23d8(0x195),'type':a31_0x1a23d8(0x199),'description':'Select\x20app\x20profile\x20by\x20name','hint':a31_0x1a23d8(0x18b)},{'name':'env','meowKey':a31_0x1a23d8(0x16e),'type':'string','description':a31_0x1a23d8(0x17b),'hint':a31_0x1a23d8(0x18f)},{'name':a31_0x1a23d8(0x19a),'meowKey':a31_0x1a23d8(0x19a),'type':a31_0x1a23d8(0x199),'description':a31_0x1a23d8(0x17e),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a31_0x1a23d8(0x16f)},{'name':'dry-run','meowKey':a31_0x1a23d8(0x18c),'type':a31_0x1a23d8(0x198),'description':a31_0x1a23d8(0x175)},{'name':a31_0x1a23d8(0x168),'meowKey':'yes','type':'boolean','description':a31_0x1a23d8(0x17f)},{'name':a31_0x1a23d8(0x178),'meowKey':a31_0x1a23d8(0x17c),'type':a31_0x1a23d8(0x198),'description':a31_0x1a23d8(0x185)},{'name':a31_0x1a23d8(0x16b),'meowKey':a31_0x1a23d8(0x16b),'type':a31_0x1a23d8(0x198),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a31_0x1a23d8(0x188),'hidden':!![]},{'name':a31_0x1a23d8(0x18a),'meowKey':a31_0x1a23d8(0x18a),'type':a31_0x1a23d8(0x198),'description':a31_0x1a23d8(0x193)},{'name':'id','meowKey':'id','type':a31_0x1a23d8(0x199),'description':a31_0x1a23d8(0x189),'hidden':!![]},{'name':'name','meowKey':'name','type':a31_0x1a23d8(0x199),'description':a31_0x1a23d8(0x182),'hidden':!![]},{'name':a31_0x1a23d8(0x196),'meowKey':a31_0x1a23d8(0x196),'type':'string','description':a31_0x1a23d8(0x18e),'hidden':!![]},{'name':a31_0x1a23d8(0x180),'meowKey':a31_0x1a23d8(0x180),'type':'string','description':a31_0x1a23d8(0x171),'hidden':!![]},{'name':a31_0x1a23d8(0x16c),'meowKey':'verbose','type':a31_0x1a23d8(0x198),'description':a31_0x1a23d8(0x184),'hidden':!![]},{'name':'clear','meowKey':a31_0x1a23d8(0x176),'type':a31_0x1a23d8(0x198),'description':a31_0x1a23d8(0x177),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app',a31_0x1a23d8(0x16e),a31_0x1a23d8(0x19a),'jq',a31_0x1a23d8(0x173),'yes','non-interactive','ci']);export function buildMeowFlags(){const _0x3bef25=a31_0x1a23d8;return Object[_0x3bef25(0x191)](GLOBAL_FLAGS[_0x3bef25(0x186)](_0x2e25c4=>[_0x2e25c4[_0x3bef25(0x18d)],{'type':_0x2e25c4[_0x3bef25(0x181)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a32_0x2c80a3=a32_0x48ba;function a32_0x48ba(_0x20fd5a,_0x37b466){_0x20fd5a=_0x20fd5a-0xfc;const _0x1f7c4b=a32_0x1f7c();let _0x48ba6c=_0x1f7c4b[_0x20fd5a];return _0x48ba6c;}(function(_0x127261,_0x2be483){const _0x343a41=a32_0x48ba,_0x37a640=_0x127261();while(!![]){try{const _0x41b690=parseInt(_0x343a41(0x104))/0x1*(parseInt(_0x343a41(0x106))/0x2)+-parseInt(_0x343a41(0x108))/0x3+-parseInt(_0x343a41(0x101))/0x4+parseInt(_0x343a41(0x10a))/0x5*(-parseInt(_0x343a41(0xfd))/0x6)+parseInt(_0x343a41(0x100))/0x7*(-parseInt(_0x343a41(0x102))/0x8)+parseInt(_0x343a41(0xff))/0x9*(-parseInt(_0x343a41(0x103))/0xa)+parseInt(_0x343a41(0x107))/0xb*(parseInt(_0x343a41(0xfe))/0xc);if(_0x41b690===_0x2be483)break;else _0x37a640['push'](_0x37a640['shift']());}catch(_0x4ce85e){_0x37a640['push'](_0x37a640['shift']());}}}(a32_0x1f7c,0x7c2f4));function a32_0x1f7c(){const _0x1dbc34=['72hqEMuc','5346509XUMtAl','1866864yZrzGc','8CQtCmr','749790SgnagG','138ioFKVm','production','11272zPHhgd','11qrtZzl','527079eRxpGm','compress','55ybcwTS','write','148530tlGJLf','24110700toppZl'];a32_0x1f7c=function(){return _0x1dbc34;};return a32_0x1f7c();}export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a32_0x2c80a3(0x105),'format':a32_0x2c80a3(0x109),'locale':'en-US','riskLevel':a32_0x2c80a3(0xfc)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a32_0x2c80a3(0x109);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x44401f=a33_0x3349;(function(_0x22e0c6,_0x174012){const _0x1687eb=a33_0x3349,_0x41f7f6=_0x22e0c6();while(!![]){try{const _0x3b09fd=parseInt(_0x1687eb(0x1cc))/0x1+parseInt(_0x1687eb(0x1d5))/0x2+-parseInt(_0x1687eb(0x1d3))/0x3*(-parseInt(_0x1687eb(0x1d1))/0x4)+-parseInt(_0x1687eb(0x1db))/0x5+parseInt(_0x1687eb(0x1d7))/0x6+-parseInt(_0x1687eb(0x1cf))/0x7*(-parseInt(_0x1687eb(0x1cd))/0x8)+-parseInt(_0x1687eb(0x1da))/0x9*(parseInt(_0x1687eb(0x1d9))/0xa);if(_0x3b09fd===_0x174012)break;else _0x41f7f6['push'](_0x41f7f6['shift']());}catch(_0x571f94){_0x41f7f6['push'](_0x41f7f6['shift']());}}}(a33_0x4093,0x75bfa));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a33_0x4093(){const _0x251fd7=['1239686XOKAMy','https://runtime.lovrabet.com','2447296DmUccG','https://user.lovrabet.com','3YBgWQT','runtimeDomain','1895606YIUWfR','https://user-daily.lovrabet.com','5109726DMqfOB','apiDomain','10nAQzEO','24630255SUqjqq','2963335AcnWGA','869118QYGrge','24LLQOWU','https://api.lovrabet.com'];a33_0x4093=function(){return _0x251fd7;};return a33_0x4093();}export function initDomains(_0x26e587){const _0x5294cf=a33_0x3349;customApiDomain=_0x26e587?.[_0x5294cf(0x1d8)],customUserDomain=_0x26e587?.['userDomain'],customRuntimeDomain=_0x26e587?.[_0x5294cf(0x1d4)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a33_0x44401f(0x1d2):a33_0x44401f(0x1d6));function a33_0x3349(_0x40b1c6,_0x4a5402){_0x40b1c6=_0x40b1c6-0x1cc;const _0x409362=a33_0x4093();let _0x334909=_0x409362[_0x40b1c6];return _0x334909;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a33_0x44401f(0x1ce):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a33_0x44401f(0x1d0):'https://daily-runtime.lovrabet.com');
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a34_0x2bee(_0x3c3bd3,_0x4495c9){_0x3c3bd3=_0x3c3bd3-0x92;const _0x35cbe1=a34_0x35cb();let _0x2bee0c=_0x35cbe1[_0x3c3bd3];return _0x2bee0c;}const a34_0x2e2323=a34_0x2bee;(function(_0x5908c6,_0x19f237){const _0x588a06=a34_0x2bee,_0x4bde42=_0x5908c6();while(!![]){try{const _0x5df99f=-parseInt(_0x588a06(0x9b))/0x1+-parseInt(_0x588a06(0x97))/0x2+-parseInt(_0x588a06(0x9f))/0x3*(-parseInt(_0x588a06(0x92))/0x4)+parseInt(_0x588a06(0x99))/0x5*(parseInt(_0x588a06(0x98))/0x6)+parseInt(_0x588a06(0x9e))/0x7+parseInt(_0x588a06(0x9a))/0x8+-parseInt(_0x588a06(0x9c))/0x9*(parseInt(_0x588a06(0x9d))/0xa);if(_0x5df99f===_0x19f237)break;else _0x4bde42['push'](_0x4bde42['shift']());}catch(_0x18ac5c){_0x4bde42['push'](_0x4bde42['shift']());}}}(a34_0x35cb,0xd21b8));export const RUNTIME_ENV_VALUES=[a34_0x2e2323(0xa0),'development',a34_0x2e2323(0x94)];export function normalizeEnv(_0x2f73d2){const _0x33f00b=a34_0x2e2323;return _0x2f73d2===_0x33f00b(0x93)?_0x33f00b(0xa0):_0x2f73d2;}export function isProduction(_0x1d98e4){const _0x2c30e1=a34_0x2e2323;return normalizeEnv(_0x1d98e4)===_0x2c30e1(0xa0);}export function isDaily(_0x43e336){return normalizeEnv(_0x43e336)==='daily';}function a34_0x35cb(){const _0x8bfacb=['1969808CUOsld','8778558APTLVc','5NAAwnH','10992184SoHcLh','1585363jxcqFP','3118005mxUnWP','20nvCTic','3034836yAXhMD','111273lswHig','production','92hHTyiH','online','daily','dev','development'];a34_0x35cb=function(){return _0x8bfacb;};return a34_0x35cb();}export function isDev(_0x106bfc){const _0x1dd907=a34_0x2e2323,_0x440be7=normalizeEnv(_0x106bfc);return _0x440be7===_0x1dd907(0x96)||_0x440be7===_0x1dd907(0x95);}let env=normalizeEnv(process.env.LOVRABET_ENV||a34_0x2e2323(0xa0));export function getEnv(){return env;}export function initEnv(_0x2c50b5){env=normalizeEnv(_0x2c50b5);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a35_0x5065b3=a35_0x53de;(function(_0xf081b3,_0x2614c0){const _0xe29877=a35_0x53de,_0x5be5b1=_0xf081b3();while(!![]){try{const _0x14ee85=parseInt(_0xe29877(0xe3))/0x1*(-parseInt(_0xe29877(0xdc))/0x2)+-parseInt(_0xe29877(0xda))/0x3+-parseInt(_0xe29877(0xe2))/0x4+-parseInt(_0xe29877(0xdb))/0x5+-parseInt(_0xe29877(0xdd))/0x6+parseInt(_0xe29877(0xde))/0x7+parseInt(_0xe29877(0xe1))/0x8*(parseInt(_0xe29877(0xe0))/0x9);if(_0x14ee85===_0x2614c0)break;else _0x5be5b1['push'](_0x5be5b1['shift']());}catch(_0xe18db4){_0x5be5b1['push'](_0x5be5b1['shift']());}}}(a35_0x29ae,0x43ea4));function a35_0x53de(_0x209a46,_0x4de142){_0x209a46=_0x209a46-0xda;const _0x29aefb=a35_0x29ae();let _0x53dedb=_0x29aefb[_0x209a46];return _0x53dedb;}export const OUTPUT_FORMAT_VALUES=[a35_0x5065b3(0xe4),a35_0x5065b3(0xdf),'compress'];function a35_0x29ae(){const _0x440049=['2748852EAckfc','1219316EwhgNH','pretty','13759677maDjQf','8cEHJmt','425144MZubXH','449gRCnxF','json','227451qtmboP','1969930nCTmta','1740hQyrxg'];a35_0x29ae=function(){return _0x440049;};return a35_0x29ae();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x4782fb=a36_0x5f37;(function(_0x337f11,_0x46fda5){const _0x229baf=a36_0x5f37,_0x28abdc=_0x337f11();while(!![]){try{const _0x658c0=-parseInt(_0x229baf(0x122))/0x1+-parseInt(_0x229baf(0x126))/0x2+parseInt(_0x229baf(0x123))/0x3*(parseInt(_0x229baf(0x129))/0x4)+-parseInt(_0x229baf(0x125))/0x5+parseInt(_0x229baf(0x124))/0x6+-parseInt(_0x229baf(0x127))/0x7+parseInt(_0x229baf(0x128))/0x8;if(_0x658c0===_0x46fda5)break;else _0x28abdc['push'](_0x28abdc['shift']());}catch(_0x4841e4){_0x28abdc['push'](_0x28abdc['shift']());}}}(a36_0x22e8,0x814e3));function a36_0x5f37(_0x58863e,_0x3731a4){_0x58863e=_0x58863e-0x121;const _0x22e819=a36_0x22e8();let _0x5f370b=_0x22e819[_0x58863e];return _0x5f370b;}export const RISK_LEVEL_VALUES=[a36_0x4782fb(0x121),'write',a36_0x4782fb(0x12a)];function a36_0x22e8(){const _0x3796b6=['2821708Kqdlfd','high-risk-write','read','1035300yOwPAf','3wTHqtK','5937240uDAAhy','663000LtFhIP','401814KpkAop','3255812aFZLeK','5348728KFneEq'];a36_0x22e8=function(){return _0x3796b6;};return a36_0x22e8();}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37_0x82612d=a37_0x4d9c;(function(_0x501b9e,_0x2adaec){const _0x2bb031=a37_0x4d9c,_0x389a46=_0x501b9e();while(!![]){try{const _0x799aaf=parseInt(_0x2bb031(0x21e))/0x1*(-parseInt(_0x2bb031(0x1f9))/0x2)+-parseInt(_0x2bb031(0x22e))/0x3*(parseInt(_0x2bb031(0x22a))/0x4)+parseInt(_0x2bb031(0x1f0))/0x5*(-parseInt(_0x2bb031(0x1f3))/0x6)+parseInt(_0x2bb031(0x20a))/0x7*(parseInt(_0x2bb031(0x228))/0x8)+-parseInt(_0x2bb031(0x238))/0x9+parseInt(_0x2bb031(0x1fe))/0xa+-parseInt(_0x2bb031(0x1f7))/0xb*(-parseInt(_0x2bb031(0x201))/0xc);if(_0x799aaf===_0x2adaec)break;else _0x389a46['push'](_0x389a46['shift']());}catch(_0x13db6b){_0x389a46['push'](_0x389a46['shift']());}}}(a37_0x2e93,0x7b554));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{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';function a37_0x2e93(){const _0x19734a=['trim','apps','EPERM','setRawCommand','3819420GwXbKT','utf8','stdin','96PJBIhr','format','daily','ACCESS_KEY','object','nonInteractive','apiDomain','defaultApp','values','5817CffMVN','isRaw','message','online','userDomain','host','join','.lovrabetrc','maxRisk','.lovrabet.json','ENV','production','setRawMode','pageSize','call','stringify','argv','empty','project','locale','16UPSzes','runtimeDomain','find','global','string','entries','length','appcode','code','both','9336NAJqXK','accessKey','1441940vIQbah','./constant/env.js','projectConfig','./constant/domain.js','6MGiJie','setLogPath','write','hasOwnProperty','EACCES','keys','true','development','app','env','2748429PbUMSH','stdout','parse','slice','globalConfig','VERBOSE','prototype','raw','86455cJZwHs','cwd','missing','72KJUGmA','riskLevel','APP','isTTY','1718926HcyotV','read','107854yoYWgv'];a37_0x2e93=function(){return _0x19734a;};return a37_0x2e93();}import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=[a37_0x82612d(0x213),a37_0x82612d(0x211)];export const NEW_CONFIG_NAME=a37_0x82612d(0x213);function resolveConfigPath(_0x7f21d9){for(const _0x1f0739 of CONFIG_NAMES){const _0x29047c=resolve(_0x7f21d9,_0x1f0739);if(existsSync(_0x29047c))return _0x29047c;}return undefined;}export function resolveWriteConfigPath(_0x480552){const _0x4df221=a37_0x82612d,_0x251d1b=_0x480552===_0x4df221(0x21c)?process[_0x4df221(0x1f1)]():homedir(),_0x3ed701=resolveConfigPath(_0x251d1b);return _0x3ed701??resolve(_0x251d1b,NEW_CONFIG_NAME);}export function readConfigFile(_0x497878){const _0x748d4e=a37_0x82612d;try{if(existsSync(_0x497878)){const _0x2c67ca=readFileSync(_0x497878,{'encoding':_0x748d4e(0x1ff)});if(_0x2c67ca){const _0x27d050=JSON[_0x748d4e(0x23a)](_0x2c67ca);return migrateOnlineEnv(_0x497878,_0x27d050),_0x27d050;}}}catch{}return{};}function migrateOnlineEnv(_0x161224,_0x3bb8e3){const _0xcfa5bb=a37_0x82612d;let _0x16d881=![];_0x3bb8e3['env']===_0xcfa5bb(0x20d)&&(_0x3bb8e3[_0xcfa5bb(0x237)]=_0xcfa5bb(0x215),_0x16d881=!![]);if(_0x3bb8e3[_0xcfa5bb(0x1fb)]&&typeof _0x3bb8e3[_0xcfa5bb(0x1fb)]===_0xcfa5bb(0x205))for(const _0x48cdb0 of Object[_0xcfa5bb(0x209)](_0x3bb8e3[_0xcfa5bb(0x1fb)])){_0x48cdb0&&_0x48cdb0['env']===_0xcfa5bb(0x20d)&&(_0x48cdb0[_0xcfa5bb(0x237)]=_0xcfa5bb(0x215),_0x16d881=!![]);}if(_0x16d881)try{writeConfigFile(_0x161224,_0x3bb8e3);}catch{}}export function writeConfigFile(_0x206a26,_0x26795d){const _0x38776f=a37_0x82612d,_0x253a59=dirname(_0x206a26);!existsSync(_0x253a59)&&mkdirSync(_0x253a59,{'recursive':!![]});const _0x3303b5=_0x206a26+'.tmp';try{writeFileSync(_0x3303b5,JSON[_0x38776f(0x219)](_0x26795d,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x3303b5,_0x206a26);}catch(_0x1ade3e){if(_0x1ade3e[_0x38776f(0x226)]===_0x38776f(0x1fc)||_0x1ade3e['code']==='EXDEV'||_0x1ade3e[_0x38776f(0x226)]===_0x38776f(0x232)){writeFileSync(_0x206a26,JSON['stringify'](_0x26795d,null,0x2)+'\x0a',{'encoding':_0x38776f(0x1ff)});try{unlinkSync(_0x3303b5);}catch{}}else throw _0x1ade3e;}}catch(_0x1d9507){try{unlinkSync(_0x3303b5);}catch{}throw _0x1d9507;}}export function isNonInteractiveMode(_0x996b87){const _0x4702e6=a37_0x82612d;return!!(_0x996b87[_0x4702e6(0x206)]||_0x996b87['ci']||process.env.LOVRABET_CI==='true'||process.env.RABETBASE_CI===_0x4702e6(0x234)||process.env.LOVRABET_CI==='true'||process.env.CI===_0x4702e6(0x234)||!process[_0x4702e6(0x239)][_0x4702e6(0x1f6)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x595184=a37_0x82612d;if(!process[_0x595184(0x200)][_0x595184(0x1f6)])return![];try{const _0x12363a=process[_0x595184(0x200)][_0x595184(0x20b)];return process[_0x595184(0x200)][_0x595184(0x216)](!![]),process['stdin'][_0x595184(0x216)](_0x12363a??![]),!![];}catch{return![];}}export async function createContext(_0x411f70){const _0x445e34=a37_0x82612d,_0x1dceb4=readRawConfig(),_0x20b8d0=buildConfig(_0x1dceb4,_0x411f70);await initGlobalEnvironment(_0x20b8d0);const {getUserDomain:_0x3dfd57,getApiDomain:_0x3b7689}=await import(_0x445e34(0x22d)),_0x326ad8={'apiDomain':_0x3b7689(),'userDomain':_0x3dfd57()},_0x55d0a4=await buildAuth(_0x20b8d0);logger[_0x445e34(0x22f)](process[_0x445e34(0x1f1)]());const _0x331718=(CLI_BIN_NAME+'\x20'+process[_0x445e34(0x21a)][_0x445e34(0x23b)](0x2)[_0x445e34(0x210)]('\x20'))['trim']();logger[_0x445e34(0x1fd)](_0x331718);const _0x2951c9=isNonInteractiveMode(_0x411f70);return{'config':_0x20b8d0,'auth':_0x55d0a4,'logger':logger,'env':_0x326ad8,'nonInteractive':_0x2951c9};}export function buildConfigFromFlags(_0x54ed91){return buildConfig(readRawConfig(),_0x54ed91);}export function readAppCodeFromConfig(){const _0x2a43fb=a37_0x82612d,_0x471777=readRawConfig(),_0x517c35=_0x471777[_0x2a43fb(0x225)]??_0x471777[_0x2a43fb(0x236)];if(typeof _0x517c35===_0x2a43fb(0x222)&&_0x517c35[_0x2a43fb(0x1fa)]())return _0x517c35[_0x2a43fb(0x1fa)]();const _0x409a77=_0x471777[_0x2a43fb(0x1fb)]&&typeof _0x471777[_0x2a43fb(0x1fb)]===_0x2a43fb(0x205)?_0x471777[_0x2a43fb(0x1fb)]:{},_0x19729b=_0x471777['defaultApp']?_0x409a77[_0x471777[_0x2a43fb(0x208)]]:undefined;if(_0x19729b?.[_0x2a43fb(0x225)])return String(_0x19729b[_0x2a43fb(0x225)])[_0x2a43fb(0x1fa)]();const _0x50bb9b=normalizeEnv(String(_0x471777['env']||_0x2a43fb(0x215))),_0x6b75bf=isDaily(_0x50bb9b)?_0x2a43fb(0x203):isDev(_0x50bb9b)?_0x2a43fb(0x235):_0x2a43fb(0x215),_0x4788dd=resolveCachedAppCode(typeof _0x471777[_0x2a43fb(0x208)]===_0x2a43fb(0x222)?_0x471777[_0x2a43fb(0x208)]:undefined,_0x6b75bf,typeof _0x471777['accessKey']===_0x2a43fb(0x222)?_0x471777['accessKey']:undefined);if(_0x4788dd)return _0x4788dd;const _0x27edef=Object[_0x2a43fb(0x209)](_0x409a77)[_0x2a43fb(0x220)](_0x4beb39=>_0x4beb39?.[_0x2a43fb(0x225)]);return _0x27edef?.[_0x2a43fb(0x225)]?String(_0x27edef[_0x2a43fb(0x225)])[_0x2a43fb(0x1fa)]():undefined;}export function readScopedConfig(_0x10d563){const _0x167966=a37_0x82612d,_0x4dd875=_0x10d563[_0x167966(0x221)]?'global':_0x167966(0x21c);return readConfigFile(resolveWriteConfigPath(_0x4dd875));}export function writeScopedConfig(_0x51fc49,_0x332366){const _0x22faa8=a37_0x82612d,_0x10fc93=_0x332366[_0x22faa8(0x221)]?_0x22faa8(0x221):_0x22faa8(0x21c);writeConfigFile(resolveWriteConfigPath(_0x10fc93),_0x51fc49);}export async function initGlobalEnvironment(_0x3b33aa){const _0x41998f=a37_0x82612d,{initEnv:_0x26ddbc}=await import(_0x41998f(0x22b));_0x26ddbc(_0x3b33aa[_0x41998f(0x237)]);const {initDomains:_0x26f70c}=await import(_0x41998f(0x22d));_0x26f70c({'apiDomain':_0x3b33aa[_0x41998f(0x1ef)][_0x41998f(0x207)]||_0x3b33aa[_0x41998f(0x1ef)][_0x41998f(0x20f)]||undefined,'userDomain':_0x3b33aa[_0x41998f(0x1ef)][_0x41998f(0x20e)]||undefined,'runtimeDomain':_0x3b33aa[_0x41998f(0x1ef)][_0x41998f(0x21f)]||undefined});}export function getProjectConfigPath(){const _0x331d78=a37_0x82612d;return resolveConfigPath(process[_0x331d78(0x1f1)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1a4eca){const _0x3673bd=a37_0x82612d;if(!existsSync(_0x1a4eca))return{'status':_0x3673bd(0x1f2)};try{const _0x142b1f=readFileSync(_0x1a4eca,{'encoding':_0x3673bd(0x1ff)});if(!_0x142b1f?.['trim']())return{'status':_0x3673bd(0x21b)};const _0xc6cf2a=JSON[_0x3673bd(0x23a)](_0x142b1f);return{'status':'ok','data':_0xc6cf2a};}catch(_0x29726c){return{'status':'error','message':_0x29726c instanceof Error?_0x29726c[_0x3673bd(0x20c)]:String(_0x29726c)};}}export function loadRawConfigLayers(_0x26f818){const _0x542d11=a37_0x82612d;let _0x22285b={},_0x20b1bd={},_0x5f5df2,_0x324a08;try{_0x5f5df2=resolveConfigPath(homedir());if(_0x5f5df2){const _0x3f3d29=readFileSync(_0x5f5df2,{'encoding':'utf8'});if(_0x3f3d29)_0x22285b=JSON[_0x542d11(0x23a)](_0x3f3d29);}}catch{}try{const _0x59370a=_0x26f818||process[_0x542d11(0x1f1)]();_0x324a08=resolveConfigPath(_0x59370a);if(_0x324a08){const _0x5cba11=readFileSync(_0x324a08,{'encoding':_0x542d11(0x1ff)});if(_0x5cba11)_0x20b1bd=JSON['parse'](_0x5cba11);}}catch{}return{'globalPath':_0x5f5df2,'projectPath':_0x324a08,'globalConfig':_0x22285b,'projectConfig':_0x20b1bd};}function mergeRawConfigLayers(_0x4b0e12){const _0x47d062=a37_0x82612d,{globalConfig:_0x44ad9c,projectConfig:_0x256768}=_0x4b0e12;if(_0x256768['inherit']===![]){const _0x578082={..._0x256768};delete _0x578082['inherit'];const _0x2d3388=_0x256768[_0x47d062(0x1fb)]&&typeof _0x256768[_0x47d062(0x1fb)]===_0x47d062(0x205)?_0x256768['apps']:{};Object[_0x47d062(0x233)](_0x2d3388)[_0x47d062(0x224)]>0x0?_0x578082[_0x47d062(0x1fb)]=_0x2d3388:delete _0x578082[_0x47d062(0x1fb)];if(_0x47d062(0x208)in _0x256768)_0x578082[_0x47d062(0x208)]=_0x256768[_0x47d062(0x208)];else Object[_0x47d062(0x233)](_0x2d3388)['length']>0x0&&(_0x578082[_0x47d062(0x208)]=Object[_0x47d062(0x233)](_0x2d3388)[0x0]);return _0x578082;}const _0x3e1b94=_0x44ad9c[_0x47d062(0x1fb)]&&typeof _0x44ad9c[_0x47d062(0x1fb)]===_0x47d062(0x205)?_0x44ad9c['apps']:{},_0x41e80d=_0x256768[_0x47d062(0x1fb)]&&typeof _0x256768[_0x47d062(0x1fb)]==='object'?_0x256768[_0x47d062(0x1fb)]:{},_0x5cf416={..._0x3e1b94,..._0x41e80d},_0x14d717={..._0x44ad9c,..._0x256768};Object['keys'](_0x5cf416)[_0x47d062(0x224)]>0x0&&(_0x14d717['apps']=_0x5cf416);if(_0x47d062(0x208)in _0x256768)_0x14d717[_0x47d062(0x208)]=_0x256768[_0x47d062(0x208)];else{if(_0x41e80d&&Object[_0x47d062(0x233)](_0x41e80d)[_0x47d062(0x224)]>0x0)_0x14d717[_0x47d062(0x208)]=Object['keys'](_0x41e80d)[0x0];else{if(_0x44ad9c[_0x47d062(0x208)])_0x14d717[_0x47d062(0x208)]=_0x44ad9c[_0x47d062(0x208)];else{const _0x193603=Object['keys'](_0x3e1b94);_0x193603[_0x47d062(0x224)]>0x0&&(_0x14d717[_0x47d062(0x208)]=_0x193603[0x0]);}}}return _0x14d717;}function a37_0x4d9c(_0x419e13,_0x5c0681){_0x419e13=_0x419e13-0x1ee;const _0x2e937f=a37_0x2e93();let _0x4d9c6d=_0x2e937f[_0x419e13];return _0x4d9c6d;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x19ee28){return mergeRawConfigLayers(loadRawConfigLayers(_0x19ee28));}export function readRawConfigWithLayers(_0xb591f6){const _0x2071ca=loadRawConfigLayers(_0xb591f6);return{'config':mergeRawConfigLayers(_0x2071ca),'layers':_0x2071ca};}export function resolveAppScopeForWrite(_0xa7742c,_0x2ebbb4,_0x5dd2b1){const _0x1e676b=a37_0x82612d;if(_0x2ebbb4)return _0x1e676b(0x221);const _0x2d4e29=_0x5dd2b1[_0x1e676b(0x22c)][_0x1e676b(0x1fb)]&&typeof _0x5dd2b1['projectConfig'][_0x1e676b(0x1fb)]===_0x1e676b(0x205)?_0x5dd2b1['projectConfig'][_0x1e676b(0x1fb)]:{},_0x42167d=_0x5dd2b1[_0x1e676b(0x23c)][_0x1e676b(0x1fb)]&&typeof _0x5dd2b1[_0x1e676b(0x23c)]['apps']===_0x1e676b(0x205)?_0x5dd2b1[_0x1e676b(0x23c)]['apps']:{};if(Object[_0x1e676b(0x1ee)][_0x1e676b(0x231)]['call'](_0x2d4e29,_0xa7742c))return _0x1e676b(0x21c);if(Object[_0x1e676b(0x1ee)][_0x1e676b(0x231)][_0x1e676b(0x218)](_0x42167d,_0xa7742c))return'global';return _0x1e676b(0x21c);}export function appDefinedIn(_0x5721ae,_0x50a947,_0x1e2835,_0x3fe071){const _0x2721e3=a37_0x82612d;if(_0x3fe071)return Object[_0x2721e3(0x1ee)][_0x2721e3(0x231)][_0x2721e3(0x218)](_0x1e2835,_0x5721ae)?'project':'global';const _0x145860=Object[_0x2721e3(0x1ee)][_0x2721e3(0x231)][_0x2721e3(0x218)](_0x50a947,_0x5721ae),_0x53c07f=Object[_0x2721e3(0x1ee)][_0x2721e3(0x231)][_0x2721e3(0x218)](_0x1e2835,_0x5721ae);if(_0x145860&&_0x53c07f)return _0x2721e3(0x227);if(_0x53c07f)return _0x2721e3(0x21c);return _0x2721e3(0x221);}export function resolveDefaultAppSource(_0x2d85ed){const _0x47992b=a37_0x82612d,_0x5840be=_0x2d85ed[_0x47992b(0x22c)]['apps']&&typeof _0x2d85ed[_0x47992b(0x22c)][_0x47992b(0x1fb)]==='object'?_0x2d85ed['projectConfig'][_0x47992b(0x1fb)]:{};if(_0x47992b(0x208)in _0x2d85ed[_0x47992b(0x22c)])return'project';if(Object[_0x47992b(0x233)](_0x5840be)[_0x47992b(0x224)]>0x0)return'project';if(_0x2d85ed[_0x47992b(0x22c)]['inherit']===![])return null;if(_0x2d85ed[_0x47992b(0x23c)][_0x47992b(0x208)])return _0x47992b(0x221);return null;}function buildConfig(_0xb42a17,_0x13acbd){const _0x553318=a37_0x82612d,_0x2ab679={};if(_0xb42a17['apps']&&typeof _0xb42a17[_0x553318(0x1fb)]===_0x553318(0x205))for(const [_0x1d52d0,_0x42badf]of Object[_0x553318(0x223)](_0xb42a17[_0x553318(0x1fb)])){_0x42badf&&typeof _0x42badf==='object'&&_0x42badf[_0x553318(0x225)]&&(_0x2ab679[_0x1d52d0]=_0x42badf);}const _0x3b5514=_0xb42a17[_0x553318(0x208)]||undefined,_0x3bd875=Object[_0x553318(0x233)](_0x2ab679)[_0x553318(0x224)]>0x0,_0x2f4fd8=_0x13acbd[_0x553318(0x236)]||env(_0x553318(0x1f5))||undefined,_0x43d929=_0x2f4fd8||_0x3b5514||undefined,_0x3db5d8=_0x43d929&&_0x2ab679[_0x43d929]?_0x2ab679[_0x43d929]:undefined,_0x938017=env(_0x553318(0x204))||_0x3db5d8?.[_0x553318(0x229)]||_0xb42a17[_0x553318(0x229)]||undefined,_0x3ee4b1=_0x13acbd[_0x553318(0x237)]||env(_0x553318(0x214))||_0x3db5d8?.[_0x553318(0x237)]||_0xb42a17['env']||DEFAULT_CONFIG_VALUES[_0x553318(0x237)],_0x5ee94=normalizeEnv(String(_0x3ee4b1)),_0x4b1944=isDaily(_0x5ee94)?_0x553318(0x203):isDev(_0x5ee94)?_0x553318(0x235):_0x553318(0x215),_0xee2226=resolveCachedAppCode(_0x43d929,_0x4b1944,_0x938017),_0x10ebde=_0x13acbd[_0x553318(0x225)]||env('APPCODE')||_0x3db5d8?.[_0x553318(0x225)]||_0xee2226||_0xb42a17[_0x553318(0x225)]||_0xb42a17[_0x553318(0x236)]||undefined,_0x249abd=_0x3db5d8?.[_0x553318(0x21d)]||_0xb42a17[_0x553318(0x21d)]||DEFAULT_CONFIG_VALUES['locale'],_0x17dac8=undefined,_0x29d8cf=_0x13acbd[_0x553318(0x202)]||env('FORMAT')||_0x3db5d8?.[_0x553318(0x202)]||_0xb42a17[_0x553318(0x202)],_0x4eefa3=normalizeLegacyOutputFormat(_0x29d8cf),_0x8d8269=env('PAGE_SIZE')||_0x3db5d8?.['pageSize']||_0xb42a17[_0x553318(0x217)],_0x566d12=_0x8d8269?Number(_0x8d8269)||undefined:undefined,_0x12b707=_0x3db5d8?.[_0x553318(0x1f4)]||_0xb42a17[_0x553318(0x1f4)]||_0xb42a17[_0x553318(0x212)],_0x599c3c=_0x12b707===_0x553318(0x1f8)||_0x12b707===_0x553318(0x230)||_0x12b707==='high-risk-write'?_0x12b707:DEFAULT_CONFIG_VALUES[_0x553318(0x1f4)],_0x50427b=env(_0x553318(0x23d)),_0x2d2db2=_0x50427b==='1'||_0x50427b===_0x553318(0x234);return{'appCode':typeof _0x10ebde==='string'&&_0x10ebde[_0x553318(0x1fa)]()?_0x10ebde[_0x553318(0x1fa)]():undefined,'env':_0x4b1944,'locale':_0x249abd,'cookie':_0x17dac8,'accessKey':_0x938017,'format':_0x4eefa3,'pageSize':_0x566d12,'riskLevel':_0x599c3c,'verbose':_0x2d2db2,'apps':_0x2ab679,'defaultApp':_0x3b5514,'currentApp':_0x3bd875||typeof _0x43d929==='string'?_0x43d929:undefined,'raw':_0xb42a17};}function env(_0x5e58dd){return process.env[`LOVRABET_${_0x5e58dd}`]||undefined;}async function buildAuth(_0x638dce){const _0x577605=a37_0x82612d,_0xad4c05='',_0xd8373b=!!_0x638dce[_0x577605(0x229)];return{'cookie':_0xad4c05,'isLoggedIn':_0xd8373b,async 'getOrLogin'(){if(_0xd8373b)return _0xad4c05;throw CliErrors['authRequired']();}};}
|
|
1
|
+
const a37_0x5b7191=a37_0x4fb4;(function(_0x3b806c,_0x45913d){const _0x425113=a37_0x4fb4,_0x338b25=_0x3b806c();while(!![]){try{const _0x83ed85=-parseInt(_0x425113(0xd4))/0x1*(parseInt(_0x425113(0xe6))/0x2)+-parseInt(_0x425113(0x10e))/0x3*(-parseInt(_0x425113(0xf8))/0x4)+parseInt(_0x425113(0xd9))/0x5+-parseInt(_0x425113(0xff))/0x6*(-parseInt(_0x425113(0xe7))/0x7)+-parseInt(_0x425113(0xfa))/0x8*(parseInt(_0x425113(0xdc))/0x9)+-parseInt(_0x425113(0x10d))/0xa+-parseInt(_0x425113(0xe3))/0xb;if(_0x83ed85===_0x45913d)break;else _0x338b25['push'](_0x338b25['shift']());}catch(_0x34c0af){_0x338b25['push'](_0x338b25['shift']());}}}(a37_0x2f90,0xebe91));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{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=['.lovrabet.json','.lovrabetrc'];export const NEW_CONFIG_NAME=a37_0x5b7191(0xf4);function resolveConfigPath(_0x20d75f){for(const _0x21b398 of CONFIG_NAMES){const _0x197fce=resolve(_0x20d75f,_0x21b398);if(existsSync(_0x197fce))return _0x197fce;}return undefined;}export function resolveWriteConfigPath(_0x59d000){const _0x1e5486=a37_0x5b7191,_0x17de7d=_0x59d000===_0x1e5486(0xe9)?process[_0x1e5486(0x100)]():homedir(),_0x11fe9d=resolveConfigPath(_0x17de7d);return _0x11fe9d??resolve(_0x17de7d,NEW_CONFIG_NAME);}export function readConfigFile(_0x2eb695){const _0xf6696a=a37_0x5b7191;try{if(existsSync(_0x2eb695)){const _0x3759b5=readFileSync(_0x2eb695,{'encoding':_0xf6696a(0x108)});if(_0x3759b5){const _0xdc5222=JSON[_0xf6696a(0xe0)](_0x3759b5);return migrateOnlineEnv(_0x2eb695,_0xdc5222),_0xdc5222;}}}catch{}return{};}function migrateOnlineEnv(_0x18754f,_0x4e88fe){const _0xb7aceb=a37_0x5b7191;let _0x2c8c1b=![];_0x4e88fe[_0xb7aceb(0xf1)]==='online'&&(_0x4e88fe['env']='production',_0x2c8c1b=!![]);if(_0x4e88fe[_0xb7aceb(0xf6)]&&typeof _0x4e88fe[_0xb7aceb(0xf6)]===_0xb7aceb(0xfc))for(const _0x2fd513 of Object[_0xb7aceb(0x110)](_0x4e88fe[_0xb7aceb(0xf6)])){_0x2fd513&&_0x2fd513[_0xb7aceb(0xf1)]===_0xb7aceb(0x10f)&&(_0x2fd513[_0xb7aceb(0xf1)]=_0xb7aceb(0xeb),_0x2c8c1b=!![]);}if(_0x2c8c1b)try{writeConfigFile(_0x18754f,_0x4e88fe);}catch{}}export function writeConfigFile(_0x23979a,_0x3856a2){const _0x7c9f7a=a37_0x5b7191,_0x4be669=dirname(_0x23979a);!existsSync(_0x4be669)&&mkdirSync(_0x4be669,{'recursive':!![]});const _0x160dc1=_0x23979a+_0x7c9f7a(0xdd);try{writeFileSync(_0x160dc1,JSON[_0x7c9f7a(0x115)](_0x3856a2,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x160dc1,_0x23979a);}catch(_0xed1725){if(_0xed1725[_0x7c9f7a(0xd6)]==='EPERM'||_0xed1725[_0x7c9f7a(0xd6)]===_0x7c9f7a(0x106)||_0xed1725[_0x7c9f7a(0xd6)]===_0x7c9f7a(0xdb)){writeFileSync(_0x23979a,JSON[_0x7c9f7a(0x115)](_0x3856a2,null,0x2)+'\x0a',{'encoding':_0x7c9f7a(0x108)});try{unlinkSync(_0x160dc1);}catch{}}else throw _0xed1725;}}catch(_0x3a6baa){try{unlinkSync(_0x160dc1);}catch{}throw _0x3a6baa;}}export function isNonInteractiveMode(_0x119f63){const _0x5414e8=a37_0x5b7191;return!!(_0x119f63[_0x5414e8(0x113)]||_0x119f63['ci']||process.env.LOVRABET_CI===_0x5414e8(0xfd)||process.env.RABETBASE_CI===_0x5414e8(0xfd)||process.env.LOVRABET_CI===_0x5414e8(0xfd)||process.env.CI==='true'||!process['stdout'][_0x5414e8(0x112)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x56b919=a37_0x5b7191;if(!process['stdin'][_0x56b919(0x112)])return![];try{const _0x369925=process['stdin'][_0x56b919(0xe8)];return process[_0x56b919(0x114)][_0x56b919(0xd8)](!![]),process[_0x56b919(0x114)]['setRawMode'](_0x369925??![]),!![];}catch{return![];}}export async function createContext(_0x34caba){const _0x31c2ef=a37_0x5b7191,_0x54af71=readRawConfig(),_0x167c05=buildConfig(_0x54af71,_0x34caba);await initGlobalEnvironment(_0x167c05);const {getUserDomain:_0x4a7211,getApiDomain:_0x381528}=await import(_0x31c2ef(0xfb)),_0x513ed6={'apiDomain':_0x381528(),'userDomain':_0x4a7211()},_0x30ce73=await buildAuth(_0x167c05);logger['setLogPath'](process[_0x31c2ef(0x100)]());const _0x1a5dff=(CLI_BIN_NAME+'\x20'+process[_0x31c2ef(0xec)][_0x31c2ef(0xf7)](0x2)['join']('\x20'))[_0x31c2ef(0x107)]();logger['setRawCommand'](_0x1a5dff);const _0x441792=isNonInteractiveMode(_0x34caba);return{'config':_0x167c05,'auth':_0x30ce73,'logger':logger,'env':_0x513ed6,'nonInteractive':_0x441792};}export function buildConfigFromFlags(_0x506e0e){return buildConfig(readRawConfig(),_0x506e0e);}export function readAppCodeFromConfig(){const _0x3d1960=a37_0x5b7191,_0x5e908a=readRawConfig(),_0x5e091d=_0x5e908a[_0x3d1960(0x10b)]??_0x5e908a[_0x3d1960(0xda)];if(typeof _0x5e091d===_0x3d1960(0xf3)&&_0x5e091d['trim']())return _0x5e091d['trim']();const _0x16915d=_0x5e908a[_0x3d1960(0xf6)]&&typeof _0x5e908a[_0x3d1960(0xf6)]===_0x3d1960(0xfc)?_0x5e908a[_0x3d1960(0xf6)]:{},_0x16149b=_0x5e908a[_0x3d1960(0xe1)]?_0x16915d[_0x5e908a[_0x3d1960(0xe1)]]:undefined;if(_0x16149b?.[_0x3d1960(0x10b)])return String(_0x16149b['appcode'])[_0x3d1960(0x107)]();const _0x211d39=normalizeEnv(String(_0x5e908a[_0x3d1960(0xf1)]||_0x3d1960(0xeb))),_0x31b026=isDaily(_0x211d39)?'daily':isDev(_0x211d39)?_0x3d1960(0xe2):_0x3d1960(0xeb),_0x595afe=resolveCachedAppCode(typeof _0x5e908a['defaultApp']===_0x3d1960(0xf3)?_0x5e908a[_0x3d1960(0xe1)]:undefined,_0x31b026,typeof _0x5e908a[_0x3d1960(0xee)]==='string'?_0x5e908a[_0x3d1960(0xee)]:undefined);if(_0x595afe)return _0x595afe;const _0x2e324e=Object[_0x3d1960(0x110)](_0x16915d)[_0x3d1960(0xf9)](_0xf53e23=>_0xf53e23?.['appcode']);return _0x2e324e?.[_0x3d1960(0x10b)]?String(_0x2e324e['appcode'])[_0x3d1960(0x107)]():undefined;}export function readScopedConfig(_0x2bced9){const _0x3d5eee=a37_0x5b7191,_0x59df00=_0x2bced9[_0x3d5eee(0xed)]?_0x3d5eee(0xed):'project';return readConfigFile(resolveWriteConfigPath(_0x59df00));}export function writeScopedConfig(_0x2b9606,_0x32d34b){const _0x43a50e=a37_0x5b7191,_0x53ded2=_0x32d34b[_0x43a50e(0xed)]?_0x43a50e(0xed):_0x43a50e(0xe9);writeConfigFile(resolveWriteConfigPath(_0x53ded2),_0x2b9606);}export async function initGlobalEnvironment(_0x516309){const _0x1100e3=a37_0x5b7191,{initEnv:_0x356df9}=await import(_0x1100e3(0xd7));_0x356df9(_0x516309['env']);const {initDomains:_0x350335}=await import(_0x1100e3(0xfb));_0x350335({'apiDomain':_0x516309[_0x1100e3(0xea)][_0x1100e3(0xe4)]||_0x516309['raw']['host']||undefined,'userDomain':_0x516309[_0x1100e3(0xea)][_0x1100e3(0x109)]||undefined,'runtimeDomain':_0x516309[_0x1100e3(0xea)]['runtimeDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x244a2a){const _0x3cdf67=a37_0x5b7191;if(!existsSync(_0x244a2a))return{'status':_0x3cdf67(0xfe)};try{const _0x220022=readFileSync(_0x244a2a,{'encoding':_0x3cdf67(0x108)});if(!_0x220022?.[_0x3cdf67(0x107)]())return{'status':_0x3cdf67(0xe5)};const _0x2019ea=JSON['parse'](_0x220022);return{'status':'ok','data':_0x2019ea};}catch(_0xc51268){return{'status':_0x3cdf67(0x103),'message':_0xc51268 instanceof Error?_0xc51268['message']:String(_0xc51268)};}}export function loadRawConfigLayers(_0x4001fa){const _0x26a3f4=a37_0x5b7191;let _0x1d84aa={},_0x7bffc5={},_0x5041b1,_0x227927;try{_0x5041b1=resolveConfigPath(homedir());if(_0x5041b1){const _0x3126c7=readFileSync(_0x5041b1,{'encoding':_0x26a3f4(0x108)});if(_0x3126c7)_0x1d84aa=JSON['parse'](_0x3126c7);}}catch{}try{const _0x4105fc=_0x4001fa||process[_0x26a3f4(0x100)]();_0x227927=resolveConfigPath(_0x4105fc);if(_0x227927){const _0x1effaa=readFileSync(_0x227927,{'encoding':'utf8'});if(_0x1effaa)_0x7bffc5=JSON['parse'](_0x1effaa);}}catch{}return{'globalPath':_0x5041b1,'projectPath':_0x227927,'globalConfig':_0x1d84aa,'projectConfig':_0x7bffc5};}function mergeRawConfigLayers(_0x37a8a8){const _0x5abfca=a37_0x5b7191,{globalConfig:_0x108efc,projectConfig:_0x2bf1d3}=_0x37a8a8;if(_0x2bf1d3[_0x5abfca(0x104)]===![]){const _0x1325eb={..._0x2bf1d3};return delete _0x1325eb[_0x5abfca(0x104)],_0x1325eb;}const _0x250ba4={..._0x108efc,..._0x2bf1d3};if('defaultApp'in _0x2bf1d3)_0x250ba4['defaultApp']=_0x2bf1d3[_0x5abfca(0xe1)];else _0x108efc[_0x5abfca(0xe1)]&&(_0x250ba4[_0x5abfca(0xe1)]=_0x108efc[_0x5abfca(0xe1)]);return _0x250ba4;}export function isInProject(){return!!getProjectConfigPath();}function a37_0x2f90(){const _0x120f12=['141414FtvnHg','isRaw','project','raw','production','argv','global','accessKey','format','ACCESS_KEY','env','locale','string','.lovrabet.json','write','apps','slice','1502768cMBffp','find','2384LwdCct','./constant/domain.js','object','true','missing','84NrqfRZ','cwd','daily','pageSize','error','inherit','maxRisk','EXDEV','trim','utf8','userDomain','ENV','appcode','read','3865150dwIAPh','9oGdCzF','online','values','projectConfig','isTTY','nonInteractive','stdin','stringify','19YfDzIv','APPCODE','code','./constant/env.js','setRawMode','8515325YmVCFk','app','EACCES','47592cayhAZ','.tmp','high-risk-write','PAGE_SIZE','parse','defaultApp','development','938861zWiJzq','apiDomain','empty','10420LLSfLZ'];a37_0x2f90=function(){return _0x120f12;};return a37_0x2f90();}export function readRawConfig(_0x110ba9){return mergeRawConfigLayers(loadRawConfigLayers(_0x110ba9));}export function readRawConfigWithLayers(_0x123b6c){const _0x2ff088=loadRawConfigLayers(_0x123b6c);return{'config':mergeRawConfigLayers(_0x2ff088),'layers':_0x2ff088};}function a37_0x4fb4(_0x5c25f2,_0x75144b){_0x5c25f2=_0x5c25f2-0xd4;const _0x2f9017=a37_0x2f90();let _0x4fb48a=_0x2f9017[_0x5c25f2];return _0x4fb48a;}export function resolveDefaultAppSource(_0xa796a8){const _0x31b334=a37_0x5b7191;if(_0x31b334(0xe1)in _0xa796a8[_0x31b334(0x111)])return _0x31b334(0xe9);if(_0xa796a8[_0x31b334(0x111)][_0x31b334(0x104)]===![])return null;if(_0xa796a8['globalConfig'][_0x31b334(0xe1)])return _0x31b334(0xed);return null;}function buildConfig(_0x142ea3,_0xf3af37){const _0x306e64=a37_0x5b7191,_0x34f2b0=_0x142ea3[_0x306e64(0xe1)]||undefined,_0x1d7b0e=_0xf3af37['app']||env('APP')||undefined,_0x7abd24=_0x1d7b0e||_0x34f2b0||undefined,_0x222a69=env(_0x306e64(0xf0))||_0x142ea3[_0x306e64(0xee)]||undefined,_0x935d4b=_0xf3af37[_0x306e64(0xf1)]||env(_0x306e64(0x10a))||_0x142ea3[_0x306e64(0xf1)]||DEFAULT_CONFIG_VALUES[_0x306e64(0xf1)],_0x11d86a=normalizeEnv(String(_0x935d4b)),_0x374298=isDaily(_0x11d86a)?_0x306e64(0x101):isDev(_0x11d86a)?_0x306e64(0xe2):_0x306e64(0xeb),_0xadd6c7=resolveCachedAppCode(_0x7abd24,_0x374298,_0x222a69),_0x4274bd=_0xf3af37[_0x306e64(0x10b)]||env(_0x306e64(0xd5))||_0xadd6c7||_0x142ea3[_0x306e64(0x10b)]||_0x142ea3[_0x306e64(0xda)]||undefined,_0x5c98cc=_0x142ea3[_0x306e64(0xf2)]||DEFAULT_CONFIG_VALUES[_0x306e64(0xf2)],_0x38bbc8=undefined,_0x2c95e1=_0xf3af37[_0x306e64(0xef)]||env('FORMAT')||_0x142ea3['format'],_0x138b05=normalizeLegacyOutputFormat(_0x2c95e1),_0x309f41=env(_0x306e64(0xdf))||_0x142ea3[_0x306e64(0x102)],_0xee2436=_0x309f41?Number(_0x309f41)||undefined:undefined,_0x132428=_0x142ea3['riskLevel']||_0x142ea3[_0x306e64(0x105)],_0x5214d4=_0x132428===_0x306e64(0x10c)||_0x132428===_0x306e64(0xf5)||_0x132428===_0x306e64(0xde)?_0x132428:DEFAULT_CONFIG_VALUES['riskLevel'],_0x38bc12=env('VERBOSE'),_0x2bd74a=_0x38bc12==='1'||_0x38bc12==='true';return{'appCode':typeof _0x4274bd===_0x306e64(0xf3)&&_0x4274bd[_0x306e64(0x107)]()?_0x4274bd[_0x306e64(0x107)]():undefined,'env':_0x374298,'locale':_0x5c98cc,'cookie':_0x38bbc8,'accessKey':_0x222a69,'format':_0x138b05,'pageSize':_0xee2436,'riskLevel':_0x5214d4,'verbose':_0x2bd74a,'defaultApp':_0x34f2b0,'currentApp':typeof _0x7abd24==='string'?_0x7abd24:undefined,'raw':_0x142ea3};}function env(_0x1fcb83){return process.env[`LOVRABET_${_0x1fcb83}`]||undefined;}async function buildAuth(_0x2bda1f){const _0x28f2d7='',_0xe3946f=!!_0x2bda1f['accessKey'];return{'cookie':_0x28f2d7,'isLoggedIn':_0xe3946f,async 'getOrLogin'(){if(_0xe3946f)return _0x28f2d7;throw CliErrors['authRequired']();}};}
|
package/lib/core/api-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x689838,_0xf98e43){const _0x3b9888=a38_0x584f,_0xdc6dfb=_0x689838();while(!![]){try{const _0xdfc9b0=parseInt(_0x3b9888(0x1b6))/0x1+-parseInt(_0x3b9888(0x1a2))/0x2+-parseInt(_0x3b9888(0x1b9))/0x3*(-parseInt(_0x3b9888(0x1b3))/0x4)+parseInt(_0x3b9888(0x1aa))/0x5+-parseInt(_0x3b9888(0x1c8))/0x6+parseInt(_0x3b9888(0x1c3))/0x7+-parseInt(_0x3b9888(0x1c4))/0x8;if(_0xdfc9b0===_0xf98e43)break;else _0xdc6dfb['push'](_0xdc6dfb['shift']());}catch(_0x3ddcff){_0xdc6dfb['push'](_0xdc6dfb['shift']());}}}(a38_0x696d,0x1c669));import{getRuntimeDomain}from'../constant/domain.js';import{CliErrors}from'../errors.js';function a38_0x584f(_0x2e11eb,_0x56c341){_0x2e11eb=_0x2e11eb-0x1a1;const _0x696d00=a38_0x696d();let _0x584ffd=_0x696d00[_0x2e11eb];return _0x584ffd;}import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x5d43c4){_activeAK=_0x5d43c4||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2c3025,_0x3606d0={}){const _0x407fe4=a38_0x584f,{method:method=_0x407fe4(0x1a9),body:_0x334372,headers:headers={},timeout:timeout=0x7530}=_0x3606d0,_0x381cff=_activeAK,_0x172034=getRuntimeDomain();if(!_0x381cff)throw CliErrors['authRequired'](_0x407fe4(0x1b4));const _0x1f40e4=''+_0x172034+_0x2c3025,_0xdc7244={'X-User-AK':_0x381cff},_0xb1fec9=new AbortController(),_0x3c4a9b=setTimeout(()=>_0xb1fec9[_0x407fe4(0x1ae)](),timeout);try{const _0x2439d6=await fetch(_0x1f40e4,{'method':method,'headers':{'Content-Type':_0x407fe4(0x1c0),'X-Invoke-Source':_0x407fe4(0x1c2),..._0xdc7244,...headers},'body':_0x334372?JSON['stringify'](_0x334372):undefined,'signal':_0xb1fec9['signal']});let _0x214522;try{_0x214522=await _0x2439d6['json']();}catch{throw CliErrors[_0x407fe4(0x1ba)](_0x407fe4(0x1c9)+_0x2439d6['status']+')',_0x2439d6[_0x407fe4(0x1a3)]>=0x190?_0x407fe4(0x1b1):undefined);}if(!_0x2439d6['ok']||_0x214522['success']===![])throw CliErrors[_0x407fe4(0x1ba)](_0x214522[_0x407fe4(0x1bf)]||_0x214522[_0x407fe4(0x1b0)]||_0x407fe4(0x1a7)+_0x2439d6['status'],_0x214522[_0x407fe4(0x1b7)]?_0x407fe4(0x1ab)+_0x214522[_0x407fe4(0x1b7)]:undefined);return _0x214522;}catch(_0x208f44){if(_0x208f44 instanceof Error&&_0x208f44[_0x407fe4(0x1a6)]===_0x407fe4(0x1b5))throw CliErrors[_0x407fe4(0x1ba)](_0x407fe4(0x1a8)+_0x1f40e4);throw _0x208f44;}finally{clearTimeout(_0x3c4a9b);}}export async function getBffScriptInfo(_0x32ad64){const _0x1b7140=a38_0x584f,_0x51a24a=await apiRequest('/client/bff/query/'+_0x32ad64);if(!_0x51a24a[_0x1b7140(0x1bc)])throw CliErrors[_0x1b7140(0x1c5)](_0x1b7140(0x1a5)+_0x32ad64);return _0x51a24a[_0x1b7140(0x1bc)];}export async function getSqlQueryInfo(_0x4d99ae,_0x135142){const _0x19596f=a38_0x584f,_0x4feba9=await apiRequest(_0x19596f(0x1ac),{'method':_0x19596f(0x1a1),'body':{'appCode':_0x4d99ae,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x135142}}),_0xd3b91a=_0x4feba9[_0x19596f(0x1bc)],_0x47cf40=_0xd3b91a&&typeof _0xd3b91a===_0x19596f(0x1c7)&&_0x19596f(0x1c6)in _0xd3b91a?_0xd3b91a[_0x19596f(0x1c6)]?.[0x0]:_0xd3b91a&&typeof _0xd3b91a===_0x19596f(0x1c7)&&_0x19596f(0x1af)in _0xd3b91a?_0xd3b91a:undefined;if(!_0x47cf40)throw CliErrors[_0x19596f(0x1c5)]('SQL\x20query\x20not\x20found:\x20'+_0x135142);return _0x47cf40;}function isRemoteAppItem(_0x401666){const _0x44df09=a38_0x584f;return!!_0x401666&&typeof _0x401666===_0x44df09(0x1c7)&&typeof _0x401666['appCode']==='string'&&typeof _0x401666['appName']==='string';}function extractRemoteAppItems(_0x6fc33a){const _0x2c452d=a38_0x584f;if(Array[_0x2c452d(0x1bb)](_0x6fc33a))return _0x6fc33a[_0x2c452d(0x1b2)](isRemoteAppItem);if(!_0x6fc33a||typeof _0x6fc33a!==_0x2c452d(0x1c7))throw CliErrors['apiError'](_0x2c452d(0x1c1));const _0x272322=_0x6fc33a;if(Array['isArray'](_0x272322[_0x2c452d(0x1c6)]))return _0x272322[_0x2c452d(0x1c6)][_0x2c452d(0x1b2)](isRemoteAppItem);if(_0x272322[_0x2c452d(0x1bc)]&&typeof _0x272322[_0x2c452d(0x1bc)]===_0x2c452d(0x1c7)){const _0x18e40f=_0x272322[_0x2c452d(0x1bc)];if(Array[_0x2c452d(0x1bb)](_0x18e40f['tableData']))return _0x18e40f[_0x2c452d(0x1c6)][_0x2c452d(0x1b2)](isRemoteAppItem);}throw CliErrors[_0x2c452d(0x1ba)](_0x2c452d(0x1be));}export async function getMyApps(){const _0x2499e3=a38_0x584f,_0x1e3a20=await apiRequest(_0x2499e3(0x1b8));return extractRemoteAppItems(_0x1e3a20[_0x2499e3(0x1bc)]);}function a38_0x696d(){const _0x118287=['filter','4436NqHFdl','Configure\x20accessKey\x20in\x20.lovrabet.json.','AbortError','88134iujUDc','errorCode','/client/app/my-apps','30FAVdPJ','apiError','isArray','data','code','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','errorMsg','application/json','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','cli:lovrabet-runtime','630742PtAtim','644896hbNBOu','validation','tableData','object','151614NLcktI','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','POST','398578XgyDfq','status','test','BFF\x20script\x20not\x20found:\x20id=','name','API\x20error:\x20','Request\x20timeout:\x20','GET','1160845QhiTtk','API\x20error\x20code:\x20','/client/sql/query','/client/dataset/query?','abort','sqlCode','message','Check\x20your\x20credentials\x20and\x20try\x20again.'];a38_0x696d=function(){return _0x118287;};return a38_0x696d();}export async function listDatasets(_0x157290,_0x4675dc){const _0x4a7429=a38_0x584f,_0x188b2b=await apiRequest('/client/dataset/list',{'method':_0x4a7429(0x1a1),'body':{'appCode':_0x157290,..._0x4675dc?.[_0x4a7429(0x1bd)]&&{'code':_0x4675dc[_0x4a7429(0x1bd)]},..._0x4675dc?.['name']&&{'name':_0x4675dc[_0x4a7429(0x1a6)]}}});return extractList(_0x188b2b[_0x4a7429(0x1bc)]);}export async function getDatasetDetail(_0x4b6ecd){const _0x1fd897=a38_0x584f,_0x5b8df1=/^\d+$/[_0x1fd897(0x1a4)](_0x4b6ecd)?'id':_0x1fd897(0x1bd),_0x4056c4=await apiRequest(_0x1fd897(0x1ad)+_0x5b8df1+'='+_0x4b6ecd);return _0x4056c4[_0x1fd897(0x1bc)];}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10f66f,_0x5a82b5){const _0xc5ae49=a39_0x256d,_0x5523fe=_0x10f66f();while(!![]){try{const _0x46ffb7=parseInt(_0xc5ae49(0x79))/0x1+-parseInt(_0xc5ae49(0x83))/0x2+-parseInt(_0xc5ae49(0x7e))/0x3+parseInt(_0xc5ae49(0x81))/0x4*(parseInt(_0xc5ae49(0x78))/0x5)+parseInt(_0xc5ae49(0x77))/0x6*(parseInt(_0xc5ae49(0x7b))/0x7)+-parseInt(_0xc5ae49(0x7a))/0x8+-parseInt(_0xc5ae49(0x85))/0x9;if(_0x46ffb7===_0x5a82b5)break;else _0x5523fe['push'](_0x5523fe['shift']());}catch(_0x447b17){_0x5523fe['push'](_0x5523fe['shift']());}}}(a39_0x13f3,0x847a1));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a39_0x13f3(){const _0x22d1ed=['db-','1181430bnHCxc','dbtableConfig','get','2417046XgMbhu','5jYhKRz','723370UnGKIn','1427192pxUXTF','14oUqYUD','dbId','set','1740174MpoICP','map','dbName','3780184tCrgda','entries','2083492QhfxkQ'];a39_0x13f3=function(){return _0x22d1ed;};return a39_0x13f3();}export async function listDatabases(_0x5aade5){const _0x40f286=a39_0x256d;if(cache['has'](_0x5aade5))return cache[_0x40f286(0x76)](_0x5aade5);const _0x37c0c0=await listDatasets(_0x5aade5),_0x5311d5=new Map();for(const _0x8a4b97 of _0x37c0c0){const _0x222628=_0x8a4b97[_0x40f286(0x75)];_0x222628?.[_0x40f286(0x7c)]!=null&&_0x5311d5[_0x40f286(0x7d)](_0x222628[_0x40f286(0x7c)],_0x222628['dbName']??_0x40f286(0x84)+_0x222628['dbId']);}const _0xd4f88c=[..._0x5311d5[_0x40f286(0x82)]()][_0x40f286(0x7f)](([_0x2a4dd0,_0x75afe8])=>({'dbId':_0x2a4dd0,'dbName':_0x75afe8}));return cache[_0x40f286(0x7d)](_0x5aade5,_0xd4f88c),_0xd4f88c;}function a39_0x256d(_0x2d998f,_0x249db0){_0x2d998f=_0x2d998f-0x75;const _0x13f328=a39_0x13f3();let _0x256d24=_0x13f328[_0x2d998f];return _0x256d24;}export async function getDbName(_0x924f74,_0xcb5dd8){const _0x40e70d=a39_0x256d;try{const _0x41d019=await listDatabases(_0x924f74);return _0x41d019['find'](_0x1c916c=>_0x1c916c['dbId']===_0xcb5dd8)?.[_0x40e70d(0x80)];}catch{return undefined;}}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a40_0x3b20(){const _0x1875c9=['9828264mmInkm','sql','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','getOne','update','bff','\x22.\x20','isArray','authMode','accessKey','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','batchCreate','87762cDpLVn','2iQREkl','2811620tvCUEH','752851nfOArj','models','8QROvWD','2781762agSOsB','22uKjajW','function','execute','dataset_','2370580KlHzNV','35nfDhWn','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','appCode','delete','175167qSaFSk','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','env','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','4pOpbLU'];a40_0x3b20=function(){return _0x1875c9;};return a40_0x3b20();}(function(_0x49fbcb,_0x296714){const _0x566bed=a40_0x2824,_0x59cdd9=_0x49fbcb();while(!![]){try{const _0x105ac9=parseInt(_0x566bed(0x1f8))/0x1+parseInt(_0x566bed(0x1f6))/0x2*(-parseInt(_0x566bed(0x1fb))/0x3)+-parseInt(_0x566bed(0x1e8))/0x4*(-parseInt(_0x566bed(0x200))/0x5)+parseInt(_0x566bed(0x1f5))/0x6*(-parseInt(_0x566bed(0x201))/0x7)+parseInt(_0x566bed(0x1fa))/0x8*(-parseInt(_0x566bed(0x205))/0x9)+parseInt(_0x566bed(0x1f7))/0xa*(-parseInt(_0x566bed(0x1fc))/0xb)+parseInt(_0x566bed(0x1e9))/0xc;if(_0x105ac9===_0x296714)break;else _0x59cdd9['push'](_0x59cdd9['shift']());}catch(_0x1b700d){_0x59cdd9['push'](_0x59cdd9['shift']());}}}(a40_0x3b20,0x713c5));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x1c9203){const _0x175ac3=a40_0x2824;_client=createClient({'appCode':_0x1c9203[_0x175ac3(0x203)],'env':_0x1c9203[_0x175ac3(0x207)],'authMode':_0x1c9203[_0x175ac3(0x1f1)],..._0x1c9203[_0x175ac3(0x1f2)]?{'accessKey':_0x1c9203[_0x175ac3(0x1f2)]}:{},'options':{'timeout':0x7530}});}function ensureClient(){const _0x13ee2c=a40_0x2824;if(!_client)throw new Error(_0x13ee2c(0x202));return _client;}export async function executeData(_0x34e442,_0x380fcc,_0x430351){const _0xd430b3=a40_0x2824,_0x569cdc=ensureClient(),_0x8591c3=_0xd430b3(0x1ff)+_0x34e442,_0x5521ac=_0x569cdc[_0xd430b3(0x1f9)][_0x8591c3];if(!_0x5521ac||typeof _0x5521ac[_0x380fcc]!==_0xd430b3(0x1fd))throw new Error(_0xd430b3(0x1e7)+_0x380fcc+_0xd430b3(0x1ef)+_0xd430b3(0x206));if(_0x380fcc===_0xd430b3(0x1f4))return _0x5521ac['batchCreate'](parseBatchCreateItemsFromParams(_0x430351));const _0xc963d9=_0x430351!==undefined&&_0x430351!==null&&!Array[_0xd430b3(0x1f0)](_0x430351)?_0x430351:{};switch(_0x380fcc){case'getOne':{const _0x1a9b3b=_0xc963d9['id'];if(_0x1a9b3b===undefined||_0x1a9b3b===null)throw new Error(_0xd430b3(0x1eb));return _0x5521ac[_0xd430b3(0x1ec)](_0x1a9b3b);}case _0xd430b3(0x1ed):{const {id:_0x22621a,..._0x57bb83}=_0xc963d9;if(_0x22621a===undefined||_0x22621a===null)throw new Error(_0xd430b3(0x1f3));return _0x5521ac[_0xd430b3(0x1ed)](_0x22621a,_0x57bb83);}case _0xd430b3(0x204):{const _0x36d5d4=_0xc963d9['id'];if(_0x36d5d4===undefined||_0x36d5d4===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x5521ac[_0xd430b3(0x204)](_0x36d5d4);}default:return _0x5521ac[_0x380fcc](_0xc963d9);}}function a40_0x2824(_0x584736,_0x56a89b){_0x584736=_0x584736-0x1e7;const _0x3b207e=a40_0x3b20();let _0x28241f=_0x3b207e[_0x584736];return _0x28241f;}export async function executeSdkSql(_0xace0f7,_0x206858){const _0x4f3780=a40_0x2824,_0x127d92=ensureClient();return _0x127d92[_0x4f3780(0x1ea)][_0x4f3780(0x1fe)]({'sqlCode':_0xace0f7,'params':_0x206858});}export async function executeSdkBff(_0x582c45,_0xbe9c62){const _0x2de351=a40_0x2824,_0x2c298b=ensureClient();return _0x2c298b[_0x2de351(0x1ee)]['execute']({'scriptName':_0x582c45,'params':_0xbe9c62});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41_0xf277d9=a41_0x4ccf;function a41_0x5506(){const _0x263792=['2VmxSXU','2830560Hjtrly','392319WEIRWk','713260HoEIxd','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20.lovrabet.json\x20file.','882692FyNIxP','1770726rqhmEU','Set\x20appcode\x20via\x20--appcode\x20or\x20.lovrabet.json.','2288280YiDIhH','2143806kKUpGu','Configure\x20accessKey\x20in\x20.lovrabet.json\x20or\x20run\x20`'];a41_0x5506=function(){return _0x263792;};return a41_0x5506();}(function(_0x4386ab,_0x18f751){const _0x4c318e=a41_0x4ccf,_0x19d26f=_0x4386ab();while(!![]){try{const _0x300ed3=-parseInt(_0x4c318e(0xa1))/0x1+parseInt(_0x4c318e(0x9f))/0x2*(parseInt(_0x4c318e(0x9a))/0x3)+parseInt(_0x4c318e(0xa4))/0x4+-parseInt(_0x4c318e(0xa2))/0x5+-parseInt(_0x4c318e(0xa0))/0x6+parseInt(_0x4c318e(0x9d))/0x7+parseInt(_0x4c318e(0x9c))/0x8;if(_0x300ed3===_0x18f751)break;else _0x19d26f['push'](_0x19d26f['shift']());}catch(_0x449d69){_0x19d26f['push'](_0x19d26f['shift']());}}}(a41_0x5506,0x60cbd));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a41_0x4ccf(_0x49413b,_0x3f2732){_0x49413b=_0x49413b-0x9a;const _0x550670=a41_0x5506();let _0x4ccfd9=_0x550670[_0x49413b];return _0x4ccfd9;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a41_0xf277d9(0x9e)+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a41_0xf277d9(0x9b),'notInProjectHint':a41_0xf277d9(0xa3)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56e34c,_0x36ad1d){var _0x4018ba=a42_0x3dff,_0x5da0dc=_0x56e34c();while(!![]){try{var _0x5377e8=-parseInt(_0x4018ba(0x11f))/0x1*(parseInt(_0x4018ba(0x11d))/0x2)+-parseInt(_0x4018ba(0x11c))/0x3*(parseInt(_0x4018ba(0x11b))/0x4)+-parseInt(_0x4018ba(0x123))/0x5+parseInt(_0x4018ba(0x124))/0x6+-parseInt(_0x4018ba(0x120))/0x7+parseInt(_0x4018ba(0x122))/0x8+parseInt(_0x4018ba(0x121))/0x9*(parseInt(_0x4018ba(0x11e))/0xa);if(_0x5377e8===_0x36ad1d)break;else _0x5da0dc['push'](_0x5da0dc['shift']());}catch(_0x4fe701){_0x5da0dc['push'](_0x5da0dc['shift']());}}}(a42_0x5ec8,0x40c33));function a42_0x5ec8(){var _0x514f7e=['2276183EGwBhS','27krbKUD','949544VGsGyx','101870JjnyNK','3158610iTPZlW','32440PqwowC','15vaertu','83854TOmFwY','160530beFBcu','1BtssHG'];a42_0x5ec8=function(){return _0x514f7e;};return a42_0x5ec8();}function a42_0x3dff(_0x9f7af8,_0x3a3aa6){_0x9f7af8=_0x9f7af8-0x11b;var _0x5ec861=a42_0x5ec8();var _0x3dff83=_0x5ec861[_0x9f7af8];return _0x3dff83;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a42_0x536eac}from'@lovrabet/cli-framework';export function buildAllFlags(_0x1a2511){return a42_0x536eac(_0x1a2511,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4da531,_0x57c85a){const _0x110d1a=a43_0x400f,_0x16ae82=_0x4da531();while(!![]){try{const _0x1a7410=parseInt(_0x110d1a(0xe4))/0x1*(-parseInt(_0x110d1a(0xe5))/0x2)+parseInt(_0x110d1a(0xee))/0x3*(-parseInt(_0x110d1a(0xe7))/0x4)+parseInt(_0x110d1a(0xea))/0x5+-parseInt(_0x110d1a(0xef))/0x6+parseInt(_0x110d1a(0xe3))/0x7*(parseInt(_0x110d1a(0xed))/0x8)+parseInt(_0x110d1a(0xe6))/0x9*(-parseInt(_0x110d1a(0xe8))/0xa)+parseInt(_0x110d1a(0xe9))/0xb;if(_0x1a7410===_0x57c85a)break;else _0x16ae82['push'](_0x16ae82['shift']());}catch(_0x5718af){_0x16ae82['push'](_0x16ae82['shift']());}}}(a43_0x3893,0xe129a));function a43_0x400f(_0x151a4e,_0x23fca1){_0x151a4e=_0x151a4e-0xe3;const _0x3893f6=a43_0x3893();let _0x400fbd=_0x3893f6[_0x151a4e];return _0x400fbd;}function a43_0x3893(){const _0x210259=['1QzjQfr','2058286PtLWXv','2097YeEywN','4BpYGtE','37590fiDOGc','30940129uUMeAn','1916065ibNOzp','body','description','40cCcqFI','1760763shAkXH','4954770tCyDHt','1461628GqNepa'];a43_0x3893=function(){return _0x210259;};return a43_0x3893();}export function dryRun(_0x4d2695,_0x11f334){const _0x5c7818={'method':_0x4d2695,'url':_0x11f334},_0x20ba3f={'body'(_0xfd85b0){const _0x5a7a95=a43_0x400f;return _0x5c7818[_0x5a7a95(0xeb)]=_0xfd85b0,_0x20ba3f;},'description'(_0x25ffbb){const _0xf852f7=a43_0x400f;return _0x5c7818[_0xf852f7(0xec)]=_0x25ffbb,_0x20ba3f;},'build'(){return{..._0x5c7818};}};return _0x20ba3f;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44_0x281253=a44_0xf8a9;(function(_0x243c38,_0x49a280){const _0x2baa0c=a44_0xf8a9,_0xe77f97=_0x243c38();while(!![]){try{const _0x3d8c2d=parseInt(_0x2baa0c(0x17f))/0x1*(-parseInt(_0x2baa0c(0x182))/0x2)+parseInt(_0x2baa0c(0x186))/0x3+-parseInt(_0x2baa0c(0x189))/0x4*(parseInt(_0x2baa0c(0x187))/0x5)+parseInt(_0x2baa0c(0x184))/0x6+-parseInt(_0x2baa0c(0x188))/0x7*(parseInt(_0x2baa0c(0x185))/0x8)+-parseInt(_0x2baa0c(0x18a))/0x9+parseInt(_0x2baa0c(0x180))/0xa*(parseInt(_0x2baa0c(0x181))/0xb);if(_0x3d8c2d===_0x49a280)break;else _0xe77f97['push'](_0xe77f97['shift']());}catch(_0x4a9ab8){_0xe77f97['push'](_0xe77f97['shift']());}}}(a44_0x16fd,0x60f5d));function a44_0xf8a9(_0x43330e,_0x2073ed){_0x43330e=_0x43330e-0x17f;const _0x16fd01=a44_0x16fd();let _0xf8a9aa=_0x16fd01[_0x43330e];return _0xf8a9aa;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a44_0x16fd(){const _0xb736f3=['6QXUlNq','validateFlags','4172508KFWdta','466064loKMLp','1937214NuaMdS','5GxrEND','14dXXxDz','492084fDflkv','2191743XkFHfg','parseFlags','156641aKNGaI','4490OjsZNN','220GyLAFd'];a44_0x16fd=function(){return _0xb736f3;};return a44_0x16fd();}export const parseFlags=helpers[a44_0x281253(0x18b)];export const validateFlags=helpers[a44_0x281253(0x183)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x275722,_0x553cdd){const _0x416344=a45_0x2d78,_0x27cc64=_0x275722();while(!![]){try{const _0x2b0b73=-parseInt(_0x416344(0x175))/0x1*(-parseInt(_0x416344(0x178))/0x2)+parseInt(_0x416344(0x179))/0x3*(-parseInt(_0x416344(0x172))/0x4)+-parseInt(_0x416344(0x17b))/0x5+parseInt(_0x416344(0x174))/0x6+parseInt(_0x416344(0x173))/0x7+-parseInt(_0x416344(0x176))/0x8*(parseInt(_0x416344(0x17a))/0x9)+-parseInt(_0x416344(0x177))/0xa*(parseInt(_0x416344(0x171))/0xb);if(_0x2b0b73===_0x553cdd)break;else _0x27cc64['push'](_0x27cc64['shift']());}catch(_0x314517){_0x27cc64['push'](_0x27cc64['shift']());}}}(a45_0x27d3,0x6bb33));import{createHelpGenerators}from'@lovrabet/cli-framework';function a45_0x27d3(){const _0x3f7a86=['1767205nSfeUZ','generateCommandHelp','742291cpkrZR','1065028TdWZJd','1009659oliNaw','3016746hCFGor','1qWezNX','8JQMpKV','30ziAgLR','1690322QyptBD','3ThossC','2060181IiMcCa'];a45_0x27d3=function(){return _0x3f7a86;};return a45_0x27d3();}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 a45_0x2d78(_0x3b8813,_0xd3cc1c){_0x3b8813=_0x3b8813-0x170;const _0x27d3fa=a45_0x27d3();let _0x2d78d9=_0x27d3fa[_0x3b8813];return _0x2d78d9;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0xf44cbd=>serviceGroups['get'](_0xf44cbd),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20.lovrabet.json\x20or\x20--appcode).'});export function generateCommandHelp(_0x242cb7){const _0x19f9d2=a45_0x2d78;return generators[_0x19f9d2(0x170)](_0x242cb7);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators['generateFullHelp'];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d41d,_0x28c6ac){var _0x4fa4ed=a46_0x6016,_0x4dc365=_0x1d41d();while(!![]){try{var _0xc3b9a1=-parseInt(_0x4fa4ed(0x17b))/0x1+parseInt(_0x4fa4ed(0x180))/0x2*(parseInt(_0x4fa4ed(0x17f))/0x3)+-parseInt(_0x4fa4ed(0x176))/0x4*(parseInt(_0x4fa4ed(0x178))/0x5)+parseInt(_0x4fa4ed(0x179))/0x6*(parseInt(_0x4fa4ed(0x175))/0x7)+-parseInt(_0x4fa4ed(0x17e))/0x8*(-parseInt(_0x4fa4ed(0x17c))/0x9)+-parseInt(_0x4fa4ed(0x17a))/0xa*(-parseInt(_0x4fa4ed(0x177))/0xb)+parseInt(_0x4fa4ed(0x181))/0xc*(parseInt(_0x4fa4ed(0x17d))/0xd);if(_0xc3b9a1===_0x28c6ac)break;else _0x4dc365['push'](_0x4dc365['shift']());}catch(_0x16abf5){_0x4dc365['push'](_0x4dc365['shift']());}}}(a46_0x1bb5,0x56c0b));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a46_0x1bb5(){var _0xc4f04d=['13RrYOTM','48DbTkpv','15SXYyfC','4330GHniex','6123564RFHHJP','805AiCOkB','4lyVmWz','253kNUQbr','2931195regfWq','18210eLANvK','149360qCDFFv','543723uQPsDs','407439dBCYxL'];a46_0x1bb5=function(){return _0xc4f04d;};return a46_0x1bb5();}function a46_0x6016(_0x333cb0,_0x3447a2){_0x333cb0=_0x333cb0-0x175;var _0x1bb52a=a46_0x1bb5();var _0x60163e=_0x1bb52a[_0x333cb0];return _0x60163e;}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
|
-
|
|
1
|
+
(function(_0x5bf19c,_0x536037){var _0x29ab97=a47_0x5166,_0x102740=_0x5bf19c();while(!![]){try{var _0xbee8f1=-parseInt(_0x29ab97(0xc9))/0x1*(-parseInt(_0x29ab97(0xc8))/0x2)+parseInt(_0x29ab97(0xc3))/0x3*(parseInt(_0x29ab97(0xc7))/0x4)+parseInt(_0x29ab97(0xc4))/0x5*(parseInt(_0x29ab97(0xca))/0x6)+parseInt(_0x29ab97(0xcd))/0x7*(parseInt(_0x29ab97(0xcc))/0x8)+parseInt(_0x29ab97(0xc6))/0x9*(-parseInt(_0x29ab97(0xc1))/0xa)+-parseInt(_0x29ab97(0xc5))/0xb+parseInt(_0x29ab97(0xc2))/0xc*(-parseInt(_0x29ab97(0xcb))/0xd);if(_0xbee8f1===_0x536037)break;else _0x102740['push'](_0x102740['shift']());}catch(_0x974700){_0x102740['push'](_0x102740['shift']());}}}(a47_0x1b4c,0xe41ad));function a47_0x5166(_0x4a499e,_0x59ebb4){_0x4a499e=_0x4a499e-0xc1;var _0x1b4c52=a47_0x1b4c();var _0x5166fc=_0x1b4c52[_0x4a499e];return _0x5166fc;}function a47_0x1b4c(){var _0x3197af=['45888nHfcqh','27126879yPybCP','8QKiwCi','4975537LPOxOQ','10dByXkV','12ocrdHA','435EIVxzx','10pfXEYz','2565442LzQkHy','1452222ctsKRV','23792MUIhoR','3558UhPmcL','1027cqQSqL'];a47_0x1b4c=function(){return _0x3197af;};return a47_0x1b4c();}export{formatOutput}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x276265,_0x575779){const _0x1e6181=a48_0x1354,_0x81bae5=_0x276265();while(!![]){try{const _0x37ab84=-parseInt(_0x1e6181(0x11e))/0x1*(-parseInt(_0x1e6181(0x128))/0x2)+-parseInt(_0x1e6181(0x129))/0x3+-parseInt(_0x1e6181(0x124))/0x4+-parseInt(_0x1e6181(0x123))/0x5+parseInt(_0x1e6181(0x117))/0x6*(-parseInt(_0x1e6181(0x130))/0x7)+-parseInt(_0x1e6181(0x135))/0x8+-parseInt(_0x1e6181(0x139))/0x9*(-parseInt(_0x1e6181(0x120))/0xa);if(_0x37ab84===_0x575779)break;else _0x81bae5['push'](_0x81bae5['shift']());}catch(_0x63c001){_0x81bae5['push'](_0x81bae5['shift']());}}}(a48_0x27cc,0x88a44));function toKebab(_0x56e74d){const _0x4ede4b=a48_0x1354;return _0x56e74d['replace'](/_/g,'-')[_0x4ede4b(0x118)](/-([A-Z]+)/g,(_0x23675a,_0x5aab64)=>'-'+_0x5aab64[_0x4ede4b(0x133)]())[_0x4ede4b(0x118)](/([a-z0-9])([A-Z])/g,(_0x5914ad,_0x1d7255,_0x3f43d2)=>_0x1d7255+'-'+_0x3f43d2)['toLowerCase']();}function buildKnownFlags(_0x288832){const _0x50dfaf=a48_0x1354,_0x58b5b3=new Set();for(const _0x42c9b4 of _0x288832){_0x58b5b3[_0x50dfaf(0x12d)](_0x42c9b4[_0x50dfaf(0x112)]),_0x58b5b3[_0x50dfaf(0x12d)](toCamelCase(_0x42c9b4[_0x50dfaf(0x112)]));}for(const _0x3c3e70 of[_0x50dfaf(0x113),_0x50dfaf(0x121),_0x50dfaf(0x132),_0x50dfaf(0x114)]){_0x58b5b3['add'](_0x3c3e70);}for(const _0xe4e4af of[_0x50dfaf(0x136),'env',_0x50dfaf(0x116),_0x50dfaf(0x12a),'nonInteractive',_0x50dfaf(0x11f),'ci',_0x50dfaf(0x11d),_0x50dfaf(0x131)]){_0x58b5b3[_0x50dfaf(0x12d)](_0xe4e4af);}return _0x58b5b3;}function buildFlagTypeMap(_0x3de16e){const _0x40f3c8=a48_0x1354,_0xc515b2=new Map();for(const _0x2bf5b3 of _0x3de16e){_0xc515b2[_0x40f3c8(0x11c)](_0x2bf5b3[_0x40f3c8(0x112)],_0x2bf5b3[_0x40f3c8(0x122)]),_0xc515b2[_0x40f3c8(0x11c)](toCamelCase(_0x2bf5b3[_0x40f3c8(0x112)]),_0x2bf5b3['type']);}return _0xc515b2;}function toCamelCase(_0x527678){const _0x4ea2c7=a48_0x1354;return _0x527678['replace'](/-([a-z])/g,(_0x10d470,_0x9f3424)=>_0x9f3424[_0x4ea2c7(0x11a)]());}function a48_0x27cc(){const _0x1c5a8d=['keys','boolean','original','21020QADEpe','690318RpoKof','app','number','corrected','add','has','push','3507qKLkUF','version','yes','toLowerCase','string','8328424TpMHsF','help','indexOf','entries','32139ckUuyW','length','name','dry-run','format','slice','appcode','9894YgGOVH','replace','sticky','toUpperCase','get','set','global','5nGDqig','non-interactive','9980zTrBAn','dryRun','type','4232565XvOWQm','451612fxaBjQ'];a48_0x27cc=function(){return _0x1c5a8d;};return a48_0x27cc();}function aliasHandler(_0x943b26,_0x1985c1){const _0xca837=a48_0x1354,_0x4cabbc=[];for(const _0x5609d9 of Object[_0xca837(0x125)](_0x943b26)){if(_0x1985c1[_0xca837(0x12e)](_0x5609d9))continue;const _0x1f0472=toKebab(_0x5609d9);_0x1f0472!==_0x5609d9&&_0x1985c1[_0xca837(0x12e)](_0x1f0472)&&_0x4cabbc[_0xca837(0x12f)]({'original':_0x5609d9,'corrected':_0x1f0472,'handler':'alias'});}return _0x4cabbc;}function stickyHandler(_0x3f2846,_0x5696e9,_0x2448a5){const _0x5a84f2=a48_0x1354,_0x87c3a3=[];for(const [_0x1a47a3,_0x257d1c]of Object[_0x5a84f2(0x138)](_0x3f2846)){if(_0x257d1c!==!![])continue;for(let _0x21d8df=_0x1a47a3[_0x5a84f2(0x13a)]-0x1;_0x21d8df>0x0;_0x21d8df--){const _0x2d80f8=_0x1a47a3[_0x5a84f2(0x115)](0x0,_0x21d8df),_0x2ddb9d=_0x1a47a3[_0x5a84f2(0x115)](_0x21d8df),_0x50f3b7=toKebab(_0x2d80f8),_0x1a5f4c=toCamelCase(_0x2d80f8),_0x3f21dc=_0x5696e9[_0x5a84f2(0x12e)](_0x2d80f8)?_0x2d80f8:_0x5696e9['has'](_0x50f3b7)?_0x50f3b7:_0x5696e9[_0x5a84f2(0x12e)](_0x1a5f4c)?_0x1a5f4c:null;if(!_0x3f21dc)continue;const _0x43e695=_0x2448a5[_0x5a84f2(0x11b)](_0x3f21dc)??_0x5a84f2(0x134);let _0x482fcd;if(_0x43e695===_0x5a84f2(0x12b)){const _0x4dc155=Number(_0x2ddb9d);if(isNaN(_0x4dc155)||_0x2ddb9d==='')continue;_0x482fcd=_0x4dc155;}else{if(_0x43e695===_0x5a84f2(0x126))continue;else{if(_0x2ddb9d==='')continue;_0x482fcd=_0x2ddb9d;}}_0x87c3a3[_0x5a84f2(0x12f)]({'original':_0x1a47a3,'corrected':_0x3f21dc+'='+_0x482fcd,'handler':_0x5a84f2(0x119)});break;}}return _0x87c3a3;}function a48_0x1354(_0x4c16d6,_0x17c5db){_0x4c16d6=_0x4c16d6-0x112;const _0x27ccf0=a48_0x27cc();let _0x135436=_0x27ccf0[_0x4c16d6];return _0x135436;}export function correctFlags(_0xaa3367,_0x1cbc97){const _0x1f2f28=a48_0x1354,_0x4a1749=buildKnownFlags(_0x1cbc97),_0x5b14bf=buildFlagTypeMap(_0x1cbc97),_0x16116f=aliasHandler(_0xaa3367,_0x4a1749),_0x13ad9e=stickyHandler(_0xaa3367,_0x4a1749,_0x5b14bf),_0x1f44f1=[..._0x16116f,..._0x13ad9e];if(_0x1f44f1[_0x1f2f28(0x13a)]===0x0)return{'flags':_0xaa3367,'corrections':[]};const _0x49eeed={..._0xaa3367},_0x265fe3=new Set();for(const _0x1c19b8 of _0x16116f){_0x49eeed[_0x1c19b8[_0x1f2f28(0x12c)]]=_0xaa3367[_0x1c19b8['original']],_0x265fe3['add'](_0x1c19b8[_0x1f2f28(0x127)]);}for(const _0x3f343c of _0x13ad9e){const _0x481092=_0x3f343c[_0x1f2f28(0x12c)][_0x1f2f28(0x137)]('='),_0x2b40c4=_0x3f343c['corrected']['slice'](0x0,_0x481092),_0x443476=_0x3f343c['corrected']['slice'](_0x481092+0x1),_0xc5b15d=_0x5b14bf['get'](_0x2b40c4)??_0x1f2f28(0x134);_0xc5b15d==='number'?_0x49eeed[_0x2b40c4]=Number(_0x443476):_0x49eeed[_0x2b40c4]=_0x443476,_0x265fe3['add'](_0x3f343c[_0x1f2f28(0x127)]);}for(const _0x40c1fb of _0x265fe3){delete _0x49eeed[_0x40c1fb];}return{'flags':_0x49eeed,'corrections':_0x1f44f1};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a49_0x13c4(_0x52c66c,_0x319e34){_0x52c66c=_0x52c66c-0x155;var _0x175548=a49_0x1755();var _0x13c43b=_0x175548[_0x52c66c];return _0x13c43b;}function a49_0x1755(){var _0x303fe4=['2197741VEdMtI','1711196ArBtYB','116891ZRHZFA','1759584xTYomX','6yJmAMV','40edszIZ','8972415fEcojA','246918uHENjK','541182YIGYmx'];a49_0x1755=function(){return _0x303fe4;};return a49_0x1755();}(function(_0x5528a0,_0x44c5f9){var _0x250dd6=a49_0x13c4,_0x1f1b9d=_0x5528a0();while(!![]){try{var _0x3bf7d5=-parseInt(_0x250dd6(0x15a))/0x1+parseInt(_0x250dd6(0x157))/0x2*(parseInt(_0x250dd6(0x15c))/0x3)+parseInt(_0x250dd6(0x159))/0x4+parseInt(_0x250dd6(0x15d))/0x5*(parseInt(_0x250dd6(0x156))/0x6)+parseInt(_0x250dd6(0x158))/0x7+-parseInt(_0x250dd6(0x15b))/0x8+-parseInt(_0x250dd6(0x155))/0x9;if(_0x3bf7d5===_0x44c5f9)break;else _0x1f1b9d['push'](_0x1f1b9d['shift']());}catch(_0x58c09c){_0x1f1b9d['push'](_0x1f1b9d['shift']());}}}(a49_0x1755,0x43f7a));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42bb59,_0x11b9bb){const _0x47b206=a50_0x3b2d,_0x26f540=_0x42bb59();while(!![]){try{const _0x583c02=-parseInt(_0x47b206(0x12e))/0x1+-parseInt(_0x47b206(0x12a))/0x2*(parseInt(_0x47b206(0x128))/0x3)+-parseInt(_0x47b206(0x131))/0x4+-parseInt(_0x47b206(0x117))/0x5*(-parseInt(_0x47b206(0x123))/0x6)+parseInt(_0x47b206(0x129))/0x7*(parseInt(_0x47b206(0x121))/0x8)+-parseInt(_0x47b206(0x125))/0x9*(parseInt(_0x47b206(0x11f))/0xa)+parseInt(_0x47b206(0x119))/0xb;if(_0x583c02===_0x11b9bb)break;else _0x26f540['push'](_0x26f540['shift']());}catch(_0x56910e){_0x26f540['push'](_0x26f540['shift']());}}}(a50_0x1b10,0x6dfc4));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x5de32f,_0x84b215,_0x35ec9e){const _0x1f70b7=a50_0x3b2d,_0xe768b2=buildConfirmationContext(_0x5de32f,_0x84b215,_0x35ec9e),_0x5a95f8=[_0x1f70b7(0x118)+_0xe768b2['commandLabel']];return _0xe768b2[_0x1f70b7(0x11e)]&&_0x5a95f8[_0x1f70b7(0x122)](_0x1f70b7(0x12d)+_0xe768b2[_0x1f70b7(0x11e)]),_0xe768b2[_0x1f70b7(0x12b)]&&_0x5a95f8[_0x1f70b7(0x122)]('\x20\x20\x20Affected:\x20'+_0xe768b2[_0x1f70b7(0x12b)]),_0x5a95f8['push'](_0x1f70b7(0x120)),_0x5a95f8;}export function reconstructCommandArgv(_0x42c57c,_0x501225){const _0x5447dc=a50_0x3b2d,_0xe360a7=[CLI_BIN_NAME,_0x42c57c[_0x5447dc(0x126)],_0x42c57c['command']];for(const [_0x43d221,_0x6d319b]of Object[_0x5447dc(0x11c)](_0x501225)){if(_0x6d319b===!![])_0xe360a7[_0x5447dc(0x122)]('--'+_0x43d221);else _0x6d319b!==![]&&_0x6d319b!==undefined&&_0x6d319b!==''&&_0xe360a7[_0x5447dc(0x122)]('--'+_0x43d221+'\x20'+JSON[_0x5447dc(0x132)](_0x6d319b));}return _0xe360a7[_0x5447dc(0x122)](_0x5447dc(0x12c)),_0xe360a7[_0x5447dc(0x116)]('\x20');}function a50_0x3b2d(_0x4c1109,_0x432d39){_0x4c1109=_0x4c1109-0x116;const _0x1b10c6=a50_0x1b10();let _0x3b2d4c=_0x1b10c6[_0x4c1109];return _0x3b2d4c;}function a50_0x1b10(){const _0x4dbd31=['code=','entries','params=','description','4390AZXHLn','\x20\x20\x20Continue?\x20[y/N]\x20','61808pkRkSK','push','147972byaOBu','name=','17901rEXrgt','service','code','45UJCyHY','812umLJfb','103354CElNdd','affectedRecords','--yes','\x20\x20\x20','663515bVbOGu','name','params','1380232qFcSIC','stringify','join','160fcULjA','⚠\x20\x20High-risk\x20operation:\x20','15641989mPwkpO','length'];a50_0x1b10=function(){return _0x4dbd31;};return a50_0x1b10();}function buildConfirmationContext(_0x1a17b3,_0x58891d,_0x1228e5){const _0x22d31d=a50_0x3b2d,_0x1ef438=extractAffectedRecords(_0x1228e5);return{'commandLabel':_0x58891d,'description':_0x1a17b3[_0x22d31d(0x11e)],'affectedRecords':_0x1ef438};}function extractAffectedRecords(_0x2d009a){const _0x5c315b=a50_0x3b2d,_0x5309b1=[];if(_0x2d009a[_0x5c315b(0x127)])_0x5309b1['push'](_0x5c315b(0x11b)+_0x2d009a[_0x5c315b(0x127)]);if(_0x2d009a['id'])_0x5309b1[_0x5c315b(0x122)]('id='+_0x2d009a['id']);if(_0x2d009a[_0x5c315b(0x12f)])_0x5309b1['push'](_0x5c315b(0x124)+_0x2d009a['name']);if(_0x2d009a[_0x5c315b(0x130)])_0x5309b1['push'](_0x5c315b(0x11d)+_0x2d009a[_0x5c315b(0x130)]);return _0x5309b1[_0x5c315b(0x11a)]>0x0?_0x5309b1[_0x5c315b(0x116)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d8ad4,_0x515f8f){const _0x22a094=a51_0x20b4,_0xb528ca=_0x3d8ad4();while(!![]){try{const _0x1d41c2=parseInt(_0x22a094(0x151))/0x1*(parseInt(_0x22a094(0x148))/0x2)+parseInt(_0x22a094(0x14a))/0x3+-parseInt(_0x22a094(0x14e))/0x4*(parseInt(_0x22a094(0x145))/0x5)+parseInt(_0x22a094(0x14f))/0x6*(-parseInt(_0x22a094(0x149))/0x7)+parseInt(_0x22a094(0x14c))/0x8+-parseInt(_0x22a094(0x150))/0x9*(parseInt(_0x22a094(0x144))/0xa)+-parseInt(_0x22a094(0x147))/0xb;if(_0x1d41c2===_0x515f8f)break;else _0xb528ca['push'](_0xb528ca['shift']());}catch(_0x486674){_0xb528ca['push'](_0xb528ca['shift']());}}}(a51_0x3cce,0xa4e65));import{LovrabetError}from'@lovrabet/sdk';function a51_0x3cce(){const _0x4d0f40=['description','629310GkWTxY','74275otAOzM','validation','1815451Motyao','103128LMuYtF','847fcXvFe','2757129PrzFcX','trim','7761296VZqhmF','string','340wIHVtQ','6726CptpSa','9PRArPi','8YFJWiL','message'];a51_0x3cce=function(){return _0x4d0f40;};return a51_0x3cce();}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x28a788){const _0x25294e=a51_0x20b4;if(_0x28a788 instanceof LovrabetError)return CliErrors[_0x25294e(0x146)](userFacingLovrabetMessage(_0x28a788));return _0x28a788;}function a51_0x20b4(_0x5229ad,_0x2c95c8){_0x5229ad=_0x5229ad-0x143;const _0x3ccef2=a51_0x3cce();let _0x20b49f=_0x3ccef2[_0x5229ad];return _0x20b49f;}function userFacingLovrabetMessage(_0x420b1f){const _0x24dfec=a51_0x20b4,_0x58cf58=_0x420b1f[_0x24dfec(0x143)];if(_0x58cf58!==undefined&&_0x58cf58!==null){if(typeof _0x58cf58===_0x24dfec(0x14d)&&_0x58cf58[_0x24dfec(0x14b)]())return _0x58cf58[_0x24dfec(0x14b)]();try{return JSON['stringify'](_0x58cf58);}catch{}}return _0x420b1f[_0x24dfec(0x152)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x449252=a52_0x2e49;(function(_0x4a0272,_0x4dc7fa){const _0x296483=a52_0x2e49,_0x4760db=_0x4a0272();while(!![]){try{const _0x3ea6af=-parseInt(_0x296483(0x1c1))/0x1*(-parseInt(_0x296483(0x1c6))/0x2)+parseInt(_0x296483(0x1b6))/0x3*(-parseInt(_0x296483(0x1bf))/0x4)+-parseInt(_0x296483(0x1d0))/0x5+parseInt(_0x296483(0x1d5))/0x6+parseInt(_0x296483(0x1d4))/0x7*(-parseInt(_0x296483(0x1c3))/0x8)+-parseInt(_0x296483(0x1be))/0x9*(-parseInt(_0x296483(0x1b5))/0xa)+parseInt(_0x296483(0x1b0))/0xb;if(_0x3ea6af===_0x4dc7fa)break;else _0x4760db['push'](_0x4760db['shift']());}catch(_0x8976e9){_0x4760db['push'](_0x4760db['shift']());}}}(a52_0x2b2d,0x382a6));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';function a52_0x2b2d(){const _0x436aea=['26873sqFeVp','2535582mIrJfl','production','2979955NBzzJr','isNonInteractive','accessKey','Set\x20accessKey\x20in\x20.lovrabet.json\x20or\x20pass\x20LOVRABET_ACCESS_KEY.','defaultApp','269560nBRWwz','3zXWkeo','defaultVerbose','../core/sdk-client.js','map','configMissing','../core/api-client.js','appCode','ClientAk','99meJTWG','968636GypJzr','filter','381GAqJhp','validation','800smpXIL','mergedCli','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','1354XbmcBc','error','name','verbose','defaultPageSize','\x20\x20To\x20proceed:\x20','currentApp','requiresAuth','High-risk\x20operation\x20`','riskLevel','1959210SNWSpt','has','cancelled','service'];a52_0x2b2d=function(){return _0x436aea;};return a52_0x2b2d();}import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';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(_0x1380ce){const _0x58a19f=a52_0x2e49;return void _0x1380ce,AUTH_MODE[_0x58a19f(0x1bd)];}export function createPipelineEnv(_0x4f4ed7,_0xae698b){const _0x3875cd=a52_0x2e49;return{'rawFlags':_0xae698b,'appCode':_0x4f4ed7[_0x3875cd(0x1bc)]||process.env.RABETBASE_APPCODE||readAppCodeFromConfig(),'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0xae698b),'defaultFormat':_0x4f4ed7['format'],'defaultPageSize':_0x4f4ed7['pageSize'],'defaultVerbose':_0x4f4ed7[_0x3875cd(0x1c9)],'riskLevel':_0x4f4ed7[_0x3875cd(0x1cf)],'accessKey':_0x4f4ed7[_0x3875cd(0x1b2)],'env':_0x4f4ed7['env'],'mergedCli':{'defaultApp':_0x4f4ed7[_0x3875cd(0x1b4)],'currentApp':_0x4f4ed7[_0x3875cd(0x1cc)],'appCode':_0x4f4ed7[_0x3875cd(0x1bc)]}};}function a52_0x2e49(_0x41131d,_0x1ad423){_0x41131d=_0x41131d-0x1af;const _0x2b2d69=a52_0x2b2d();let _0x2e494c=_0x2b2d69[_0x41131d];return _0x2e494c;}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a52_0x449252(0x1c0)](_0x211f0b=>PIPELINE_FLAG_NAMES[a52_0x449252(0x1d1)](_0x211f0b[a52_0x449252(0x1c8)]))[a52_0x449252(0x1b9)](({name:_0x169f11,type:_0x298422,description:_0xd32306})=>({'name':_0x169f11,'type':_0x298422,'description':_0xd32306})),'formatOutput':formatOutput,'getCommandLabel'(_0x447269){const _0x3da033=a52_0x449252;return CLI_BIN_NAME+'\x20'+_0x447269[_0x3da033(0x1d3)]+'\x20'+_0x447269['command'];},'riskPolicy':{'onViolation'(_0x1e7ed1){const _0x2f74f4=a52_0x449252;console[_0x2f74f4(0x1c7)](_0x1e7ed1);},'createError'(_0x1d0223){return CliErrors['cancelled'](_0x1d0223);}},async 'prepare'(_0x8ad172,_0x2b53db){const _0x33028b=a52_0x449252,_0x303362=resolveAuthMode(_0x2b53db);if(_0x8ad172[_0x33028b(0x1cd)]!==![]){if(!_0x2b53db[_0x33028b(0x1b2)])throw CliErrors['authRequired'](_0x33028b(0x1b3));const {setActiveAK:_0x476552}=await import('../core/api-client.js');_0x476552(_0x2b53db[_0x33028b(0x1b2)]);}let _0x205d0c='';if(_0x8ad172['requiresAppCode']!==![]){_0x205d0c=_0x2b53db[_0x33028b(0x1bc)]??'';if(!_0x205d0c)throw CliErrors[_0x33028b(0x1ba)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20.lovrabet.json.');}if(_0x205d0c){const {initSdkClient:_0xb23a16}=await import(_0x33028b(0x1b8));_0xb23a16({'appCode':_0x205d0c,'env':_0x2b53db['env']??_0x33028b(0x1af),'accessKey':_0x2b53db[_0x33028b(0x1b2)],'authMode':_0x303362});}return{'defaults':{'booleans':{'verbose':_0x2b53db[_0x33028b(0x1b7)]},'numbers':{'pagesize':_0x2b53db[_0x33028b(0x1ca)]}},'extras':{'appCode':_0x205d0c,'cookie':'','apiDomain':_0x2b53db['apiDomain'],'apiDir':'','accessKey':_0x2b53db[_0x33028b(0x1b2)],'envName':_0x2b53db['env'],'mergedCli':_0x2b53db[_0x33028b(0x1c4)]}};},async 'confirmHighRisk'({def:_0xd0ff4d,env:_0x1091ca,flags:_0x5b64df,commandLabel:_0x57ad36}){const _0xab1385=a52_0x449252;if(_0x1091ca[_0xab1385(0x1b1)]){const _0x2a0f58=reconstructCommandArgv(_0xd0ff4d,_0x5b64df);throw CliErrors[_0xab1385(0x1c2)](_0xab1385(0x1ce)+_0x57ad36+_0xab1385(0x1c5)+(_0xab1385(0x1cb)+_0x2a0f58));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0xd0ff4d,_0x57ad36,_0x5b64df),'createCancelledError':_0x317aa2=>CliErrors[_0xab1385(0x1d2)](_0x317aa2)});},'mapDryRunError'(_0x2d89e1){return mapUserFacingExecuteError(_0x2d89e1);},'mapExecuteError'(_0xe53d47){return mapUserFacingExecuteError(_0xe53d47);},async 'finalize'(){const _0x18939c=a52_0x449252,{clearActiveAK:_0x20a4e9}=await import(_0x18939c(0x1bb));_0x20a4e9();}};export async function runCommand(_0x175c1b,_0x42384d){await runCommandWithAdapter(_0x175c1b,_0x42384d,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb410a3,_0x2a8f70){const _0xfc038a=a53_0x47f4,_0x536034=_0xb410a3();while(!![]){try{const _0x8123ba=parseInt(_0xfc038a(0x8b))/0x1+-parseInt(_0xfc038a(0x84))/0x2*(-parseInt(_0xfc038a(0x86))/0x3)+parseInt(_0xfc038a(0x85))/0x4+parseInt(_0xfc038a(0x83))/0x5*(-parseInt(_0xfc038a(0x8a))/0x6)+-parseInt(_0xfc038a(0x88))/0x7+parseInt(_0xfc038a(0x89))/0x8+-parseInt(_0xfc038a(0x87))/0x9;if(_0x8123ba===_0x2a8f70)break;else _0x536034['push'](_0x536034['shift']());}catch(_0x2f21d8){_0x536034['push'](_0x536034['shift']());}}}(a53_0xea71,0xe40f1));function a53_0xea71(){const _0x15f2ff=['4472871aiwEBy','8694666lbLQMi','1445836ebKQfo','2008920VPjbfj','2148GFZGCI','742064bXBJAh','21295fPjvVT','2etySOK','4589348LBTFyz'];a53_0xea71=function(){return _0x15f2ff;};return a53_0xea71();}function a53_0x47f4(_0x455e20,_0xeb7b68){_0x455e20=_0x455e20-0x83;const _0xea715b=a53_0xea71();let _0x47f464=_0xea715b[_0x455e20];return _0x47f464;}import{buildSchemaPayload as a53_0x517a77}from'@lovrabet/cli-framework';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 {serviceRegistry:_0x529956,findDefinition:_0x3cba29}=await import('../commands/registry.js');return a53_0x517a77({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x529956,'buildAllFlags':buildAllFlags,'findDefinition':_0x3cba29});}
|