@lovrabet/lovrabet-cli 2.0.1-beta.10
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 +2 -0
- package/lib/commands/app/cache.js +1 -0
- package/lib/commands/app/definitions.js +1 -0
- package/lib/commands/app/mock-loader.js +1 -0
- package/lib/commands/app/remote-source.js +1 -0
- package/lib/commands/app/shared.js +1 -0
- package/lib/commands/auth/index.js +1 -0
- package/lib/commands/auth/prompt.js +1 -0
- package/lib/commands/bff/detail.js +1 -0
- package/lib/commands/bff/exec.js +1 -0
- package/lib/commands/bff/index.js +1 -0
- package/lib/commands/common/config-policy.js +1 -0
- package/lib/commands/common/constraints.js +1 -0
- package/lib/commands/common/flags.js +1 -0
- package/lib/commands/config/definitions.js +1 -0
- package/lib/commands/config/shared.js +1 -0
- package/lib/commands/data/index.js +1 -0
- package/lib/commands/dataset/detail.js +1 -0
- package/lib/commands/dataset/index.js +1 -0
- package/lib/commands/dataset/list.js +1 -0
- package/lib/commands/doctor.js +1 -0
- package/lib/commands/init/index.js +1 -0
- package/lib/commands/init.js +1 -0
- package/lib/commands/logs/index.js +1 -0
- package/lib/commands/registry.js +1 -0
- package/lib/commands/schema.js +1 -0
- package/lib/commands/sql/detail.js +1 -0
- package/lib/commands/sql/exec.js +1 -0
- package/lib/commands/sql/index.js +1 -0
- package/lib/config/schema.js +1 -0
- package/lib/constant/auth-mode.js +1 -0
- package/lib/constant/cli.js +1 -0
- package/lib/constant/defaults.js +1 -0
- package/lib/constant/domain.js +1 -0
- package/lib/constant/env.js +1 -0
- package/lib/constant/output.js +1 -0
- package/lib/constant/risk.js +1 -0
- package/lib/context.js +1 -0
- package/lib/core/api-client.js +1 -0
- package/lib/core/db-resolver.js +1 -0
- package/lib/core/sdk-client.js +1 -0
- package/lib/errors.js +1 -0
- package/lib/framework/build-all-flags.js +1 -0
- package/lib/framework/dryrun.js +1 -0
- package/lib/framework/flags.js +1 -0
- package/lib/framework/help.js +1 -0
- package/lib/framework/index.js +1 -0
- package/lib/framework/output.js +1 -0
- package/lib/framework/preparse.js +1 -0
- package/lib/framework/response.js +1 -0
- package/lib/framework/runner-confirmation.js +1 -0
- package/lib/framework/runner-error.js +1 -0
- package/lib/framework/runner.js +1 -0
- package/lib/framework/schema-export.js +1 -0
- package/lib/framework/types.js +1 -0
- package/lib/help.js +1 -0
- package/lib/utils/apply-jq-filter.js +1 -0
- package/lib/utils/logger.js +1 -0
- package/lib/utils/params.js +1 -0
- package/lib/utils/version.js +1 -0
- package/lib/utils/write-cli-side-channel.js +1 -0
- package/package.json +59 -0
package/lib/cli.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const a0_0xced967=a0_0x29df;(function(_0x390eb7,_0x3a40ef){const _0x2ebc65=a0_0x29df,_0x4aea9f=_0x390eb7();while(!![]){try{const _0xaebd45=parseInt(_0x2ebc65(0x151))/0x1*(-parseInt(_0x2ebc65(0x168))/0x2)+parseInt(_0x2ebc65(0x163))/0x3+-parseInt(_0x2ebc65(0x161))/0x4+parseInt(_0x2ebc65(0x162))/0x5*(parseInt(_0x2ebc65(0x149))/0x6)+parseInt(_0x2ebc65(0x15b))/0x7*(-parseInt(_0x2ebc65(0x16b))/0x8)+parseInt(_0x2ebc65(0x150))/0x9+parseInt(_0x2ebc65(0x15a))/0xa;if(_0xaebd45===_0x3a40ef)break;else _0x4aea9f['push'](_0x4aea9f['shift']());}catch(_0x4f52fc){_0x4aea9f['push'](_0x4aea9f['shift']());}}}(a0_0x3806,0x3c932));import{jsx as a0_0x48cbbf}from'react/jsx-runtime';function a0_0x29df(_0x43b947,_0xbb8519){_0x43b947=_0x43b947-0x13c;const _0x3806f3=a0_0x3806();let _0x29df32=_0x3806f3[_0x43b947];return _0x29df32;}import a0_0x3dd601 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x3dd601(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0xced967(0x155)](handleError);async function main(){try{await run();}catch(_0x393e37){handleError(_0x393e37);}}function a0_0x3806(){const _0x3f61f5=['436688DmCQwc','6805jzBLIr','1175925Wnzuxk','exit','handler','init','length','32FuBKhb','corrected','\x0aCancelled.\x0a','344AZLumR','exitCode','ERR_STREAM_DESTROYED','flatMap','[deprecation]\x20`','ExitPromptError','import','[preparse]\x20',':\x20--','cancelled','slice','Error:\x20','name','\x20->\x20--','894RHHLme','input','code','message','defaultCommand','\x20init\x20import`\x20has\x20moved\x20to\x20`','unknownCommand','485766BYXOxD','24622pIvcmg','help','error','app','catch','log','hint','stderr','args','1026290wnDAtX','21kdVyMT','./framework/preparse.js','write','flags','ERR_USE_AFTER_CLOSE','assign'];a0_0x3806=function(){return _0x3f61f5;};return a0_0x3806();}async function run(){const _0xbd92cb=a0_0xced967;let _0x192a6e=cli[_0xbd92cb(0x14a)][0x0],_0x5b30b5=cli[_0xbd92cb(0x14a)][0x1];const _0x2e0744=cli[_0xbd92cb(0x15e)];try{const {correctFlags:_0x3a61b2}=await import(_0xbd92cb(0x15c)),_0x3b688a=getAllDefinitions()[_0xbd92cb(0x13e)](_0x58d840=>_0x58d840[_0xbd92cb(0x15e)]??[]),{flags:_0x33b783,corrections:_0x570ebe}=_0x3a61b2(_0x2e0744,_0x3b688a);if(_0x570ebe[_0xbd92cb(0x167)]>0x0){for(const _0x269027 of _0x570ebe){process[_0xbd92cb(0x158)]['write'](_0xbd92cb(0x142)+_0x269027[_0xbd92cb(0x165)]+_0xbd92cb(0x143)+_0x269027['original']+_0xbd92cb(0x148)+_0x269027[_0xbd92cb(0x169)]+'\x0a');}Object[_0xbd92cb(0x160)](_0x2e0744,_0x33b783);}}catch{}if(!_0x192a6e||!isKnownService(_0x192a6e)){const {waitUntilExit:_0x1c04e0}=render(a0_0x48cbbf(Help,{}));await _0x1c04e0();return;}const _0x3e3f94=getServiceEntry(_0x192a6e);if(!_0x5b30b5){if(_0x2e0744[_0xbd92cb(0x152)]){console[_0xbd92cb(0x156)](generateServiceHelp(_0x192a6e));return;}if(_0x3e3f94[_0xbd92cb(0x14d)])_0x5b30b5=_0x3e3f94[_0xbd92cb(0x14d)];else{console[_0xbd92cb(0x156)](generateServiceHelp(_0x192a6e));return;}}_0x192a6e===_0xbd92cb(0x166)&&_0x5b30b5===_0xbd92cb(0x141)&&(_0x192a6e=_0xbd92cb(0x154),process['stderr']['write'](_0xbd92cb(0x13f)+CLI_BIN_NAME+_0xbd92cb(0x14e)+CLI_BIN_NAME+'\x20app\x20import`.\x0a'));const _0xa9f5c5=findDefinition(_0x192a6e,_0x5b30b5);!_0xa9f5c5&&(console['log'](generateServiceHelp(_0x192a6e)),handleError(CliErrors[_0xbd92cb(0x14f)](_0x192a6e+'\x20'+_0x5b30b5)));if(_0x2e0744[_0xbd92cb(0x152)]){console[_0xbd92cb(0x156)](generateCommandHelp(_0xa9f5c5));return;}const _0x56d5bb=buildConfigFromFlags(_0x2e0744);await initGlobalEnvironment(_0x56d5bb);const _0x46b4dc=createPipelineEnv(_0x56d5bb,_0x2e0744);_0x46b4dc[_0xbd92cb(0x159)]=cli[_0xbd92cb(0x14a)][_0xbd92cb(0x145)](0x2),await runCommand(_0xa9f5c5,_0x46b4dc);}function handleError(_0x50cb5d){const _0x48e3fe=a0_0xced967;if(_0x50cb5d instanceof CliError){_0x50cb5d[_0x48e3fe(0x14b)]===_0x48e3fe(0x144)&&(process[_0x48e3fe(0x158)][_0x48e3fe(0x15d)](_0x48e3fe(0x16a)),process[_0x48e3fe(0x164)](0x0));console[_0x48e3fe(0x153)](_0x48e3fe(0x146)+_0x50cb5d[_0x48e3fe(0x14c)]);if(_0x50cb5d['hint'])console['error']('Hint:\x20'+_0x50cb5d[_0x48e3fe(0x157)]);process[_0x48e3fe(0x164)](_0x50cb5d[_0x48e3fe(0x13c)]);}isUserCancellation(_0x50cb5d)&&(process[_0x48e3fe(0x158)]['write'](_0x48e3fe(0x16a)),process['exit'](0x0)),console['error']('Unexpected\x20error:',_0x50cb5d),process[_0x48e3fe(0x164)](0x1);}function isUserCancellation(_0x3ba269){const _0x15b14b=a0_0xced967;if(!(_0x3ba269 instanceof Error))return![];if(_0x3ba269[_0x15b14b(0x147)]===_0x15b14b(0x140))return!![];if(_0x3ba269['code']===_0x15b14b(0x15f))return!![];if(_0x3ba269[_0x15b14b(0x14b)]===_0x15b14b(0x13d))return!![];return![];}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x268a32,_0x342110){const _0x46175b=a1_0x3759,_0x16b657=_0x268a32();while(!![]){try{const _0x5b79fa=-parseInt(_0x46175b(0x15f))/0x1*(-parseInt(_0x46175b(0x168))/0x2)+-parseInt(_0x46175b(0x160))/0x3+parseInt(_0x46175b(0x15c))/0x4*(-parseInt(_0x46175b(0x16b))/0x5)+-parseInt(_0x46175b(0x171))/0x6+-parseInt(_0x46175b(0x15e))/0x7*(parseInt(_0x46175b(0x161))/0x8)+parseInt(_0x46175b(0x167))/0x9+parseInt(_0x46175b(0x15d))/0xa;if(_0x5b79fa===_0x342110)break;else _0x16b657['push'](_0x16b657['shift']());}catch(_0x2c6073){_0x16b657['push'](_0x16b657['shift']());}}}(a1_0x1063,0xb6d98));function a1_0x3759(_0x224158,_0x50a51b){_0x224158=_0x224158-0x151;const _0x10638d=a1_0x1063();let _0x3759cf=_0x10638d[_0x224158];return _0x3759cf;}import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function fingerprintAccessKey(_0x422720){const _0xfd139a=a1_0x3759,_0x45c463=_0x422720[_0xfd139a(0x164)](),_0x3f3f8c=_0x45c463[_0xfd139a(0x16a)](-0x6)||_0xfd139a(0x163),_0xfaaa5e=createHash(_0xfd139a(0x155))[_0xfd139a(0x151)](_0x45c463)[_0xfd139a(0x15a)](_0xfd139a(0x158))[_0xfd139a(0x16a)](0x0,0xc);return _0xfd139a(0x152)+_0x3f3f8c+'_'+_0xfaaa5e;}function a1_0x1063(){const _0x405ce2=['hex','code','digest','.tmp','28ZlEZKq','32992130iuPazk','28lVshed','15076ERIcaU','1504767EuVKBQ','130976SFJsHb','EPERM','unknown','trim','appName','items','176832lbsqFv','8QLPclk','cache','slice','914915cPAbFj','EACCES','my-apps.json','parse','stringify','.lovrabet','4693530fmVeuG','update','ak_','utf8','find','sha256','isArray','EXDEV'];a1_0x1063=function(){return _0x405ce2;};return a1_0x1063();}export function getAppCacheFilePath(_0x4aa22c,_0xf0a2d4){const _0x3b97c8=a1_0x3759;return resolve(homedir(),_0x3b97c8(0x170),_0x3b97c8(0x169),_0x4aa22c,fingerprintAccessKey(_0xf0a2d4),_0x3b97c8(0x16d));}export function readCachedAppList(_0x580e7f,_0x127a31){const _0x5c0169=a1_0x3759;if(!_0x127a31?.[_0x5c0169(0x164)]())return null;const _0x3fbd20=getAppCacheFilePath(_0x580e7f,_0x127a31);if(!existsSync(_0x3fbd20))return null;try{const _0xc09443=readFileSync(_0x3fbd20,_0x5c0169(0x153));if(!_0xc09443[_0x5c0169(0x164)]())return null;const _0x3a43b0=JSON[_0x5c0169(0x16e)](_0xc09443);if(!Array[_0x5c0169(0x156)](_0x3a43b0['items']))return null;return _0x3a43b0;}catch{return null;}}export function writeCachedAppList(_0x153780,_0x2ea82d,_0x44c9a5){const _0x5197f0=a1_0x3759,_0x289793=getAppCacheFilePath(_0x153780,_0x2ea82d),_0x2adfd0=dirname(_0x289793);!existsSync(_0x2adfd0)&&mkdirSync(_0x2adfd0,{'recursive':!![]});const _0x2cae06=_0x289793+_0x5197f0(0x15b);try{writeFileSync(_0x2cae06,JSON[_0x5197f0(0x16f)](_0x44c9a5,null,0x2)+'\x0a',{'encoding':_0x5197f0(0x153),'mode':0x180});try{renameSync(_0x2cae06,_0x289793);}catch(_0x593061){if(_0x593061['code']===_0x5197f0(0x162)||_0x593061[_0x5197f0(0x159)]===_0x5197f0(0x157)||_0x593061['code']===_0x5197f0(0x16c)){writeFileSync(_0x289793,JSON['stringify'](_0x44c9a5,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x2cae06);}catch{}}else throw _0x593061;}}catch(_0xf2c66b){try{unlinkSync(_0x2cae06);}catch{}throw _0xf2c66b;}return _0x289793;}export function resolveCachedAppCode(_0x116a95,_0x65bb73,_0x33a546){const _0x237266=a1_0x3759;if(!_0x116a95)return undefined;const _0x32fc3f=readCachedAppList(_0x65bb73,_0x33a546),_0x5aab85=_0x32fc3f?.[_0x237266(0x166)][_0x237266(0x154)](_0x36685e=>_0x36685e[_0x237266(0x165)]===_0x116a95);return _0x5aab85?.['appCode']?.[_0x237266(0x164)]()||undefined;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a2_0x2e1da1=a2_0x5ad4;(function(_0x50c898,_0x4f3ddf){const _0x2e6517=a2_0x5ad4,_0x3d3b7c=_0x50c898();while(!![]){try{const _0x5cc5db=-parseInt(_0x2e6517(0x13f))/0x1*(parseInt(_0x2e6517(0x135))/0x2)+-parseInt(_0x2e6517(0x12b))/0x3*(-parseInt(_0x2e6517(0x10d))/0x4)+parseInt(_0x2e6517(0x116))/0x5+-parseInt(_0x2e6517(0x10e))/0x6+parseInt(_0x2e6517(0x137))/0x7*(parseInt(_0x2e6517(0x108))/0x8)+-parseInt(_0x2e6517(0x139))/0x9*(parseInt(_0x2e6517(0x12e))/0xa)+parseInt(_0x2e6517(0x12c))/0xb;if(_0x5cc5db===_0x4f3ddf)break;else _0x3d3b7c['push'](_0x3d3b7c['shift']());}catch(_0x4b91e9){_0x3d3b7c['push'](_0x3d3b7c['shift']());}}}(a2_0x3732,0x3e84e));import{CliErrors}from'../../errors.js';import{initImportFlagDefs,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';function a2_0x5ad4(_0x21ab55,_0x18a4af){_0x21ab55=_0x21ab55-0x104;const _0x3732c3=a2_0x3732();let _0x5ad488=_0x3732c3[_0x21ab55];return _0x5ad488;}import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':a2_0x2e1da1(0x117),'type':'boolean','description':a2_0x2e1da1(0x122),'default':![]};function collectFlags(_0x1f4535,_0x2e3cf2){const _0x245686=a2_0x2e1da1,_0x54dc93={};for(const _0x1ac789 of _0x2e3cf2){const _0x310329=_0x1ac789[_0x245686(0x12f)]===_0x245686(0x126)?_0x1f4535[_0x245686(0x115)](_0x1ac789[_0x245686(0x11e)]):_0x1f4535['str'](_0x1ac789[_0x245686(0x11e)]);if(_0x310329!==''&&_0x310329!==![])_0x54dc93[_0x1ac789['name']]=_0x310329;}if(_0x1f4535[_0x245686(0x141)])_0x54dc93[_0x245686(0x141)]=!![];return _0x54dc93;}function a2_0x3732(){const _0x290fba=['No\x20cached\x20apps\x20found.','466461yNERON','../../context.js','Usage:\x20','\x20cached\x20app(s)\x20for\x20env=\x22','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','from','2WzwtfY','Filter\x20by\x20environment\x20(default:\x20current\x20env)','nonInteractive','items','Available:\x20','\x22\x20not\x20found.','local','fetchedAt','isCurrent','length','mergedCli','str','../../commands/app/remote-source.js','No\x20apps\x20found\x20on\x20the\x20platform.','appName','819112aLEQRw','validation','envName','cachePath','string','4Ecvwua','21168wrPxXR','env','cache','no-cache','use','Refreshed\x20app\x20cache\x20with\x20','source','bool','444715cZrRoY','global','read','Remote\x20app\x20name\x20to\x20activate','projectPath','list','\x20app\x20use\x20<name>\x20[--global]','Missing\x20app\x20name.','name','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','args','\x20app\x20list`\x20to\x20discover\x20remote\x20apps.','Use\x20global\x20config\x20scope','appOwnerName','write','appCode','boolean','App\x20\x22','Use\x20`','accessKey','Loaded\x20','512085aQLdZN','4623278IUcCvv','Read\x20from\x20local\x20cache\x20only','90fBwmMt','type','find','Switch\x20the\x20default\x20app','Default\x20app\x20set\x20to\x20\x22','app','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','56258UGPuQx','Target\x20environment\x20(default:\x20current\x20env)','7EBfYoq'];a2_0x3732=function(){return _0x290fba;};return a2_0x3732();}const listDef={'service':a2_0x2e1da1(0x133),'command':a2_0x2e1da1(0x11b),'description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':a2_0x2e1da1(0x118),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0x2e1da1(0x10f),'type':a2_0x2e1da1(0x10c),'description':a2_0x2e1da1(0x140),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x2e1da1(0x145),'type':a2_0x2e1da1(0x126),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a2_0x2e1da1(0x111),'type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x1498d1){const _0x57843d=a2_0x2e1da1,_0x2b3110=_0x1498d1[_0x57843d(0x104)](_0x57843d(0x10f))||_0x1498d1[_0x57843d(0x10a)]||getEnv()||'production',_0x4cbbd5=_0x1498d1[_0x57843d(0x115)](_0x57843d(0x145)),_0x2db1c5=_0x1498d1['bool'](_0x57843d(0x111)),{readRawConfigWithLayers:_0x2090d5,resolveDefaultAppSource:_0x222697}=await import('../../context.js'),{getRemoteAppList:_0xc10e12}=await import('../../commands/app/remote-source.js'),{config:_0xc176a5,layers:_0x375447}=_0x2090d5(),_0x3fef73=_0x222697(_0x375447),{defaultApp:_0x26f607}=_0xc176a5,_0x2f0a9f=await _0xc10e12({'env':_0x2b3110,'accessKey':_0x1498d1[_0x57843d(0x129)],'localOnly':_0x4cbbd5,'noCache':_0x2db1c5}),_0x24db06=_0x2f0a9f[_0x57843d(0x142)]['map'](_0x34a639=>{const _0x2e2995=_0x57843d;return{'name':_0x34a639[_0x2e2995(0x107)],'appcode':_0x34a639[_0x2e2995(0x125)],'named':!![],'definedIn':'remote','isDefault':_0x34a639[_0x2e2995(0x107)]===_0x26f607,...buildAppProfileListFields(_0x2b3110),'source':_0x2f0a9f[_0x2e2995(0x114)],'owner':_0x34a639[_0x2e2995(0x123)]??null,'status':_0x34a639['appPublishStatus']??null,'cachedAt':_0x2f0a9f[_0x2e2995(0x146)]};});enrichAppListItemsWithMergedSelection(_0x24db06,_0x1498d1[_0x57843d(0x149)]);if(_0x24db06[_0x57843d(0x148)]===0x0)return{'ok':!![],'data':[],'message':_0x2f0a9f[_0x57843d(0x114)]==='cache'?_0x57843d(0x138):_0x57843d(0x106)};const _0x22da52=_0x24db06[_0x57843d(0x130)](_0x103eb9=>_0x103eb9[_0x57843d(0x147)]===!![]),_0xc357aa=_0x26f607??_0x22da52?.[_0x57843d(0x11e)]??null,_0x5497cf={'env':_0x2b3110,'source':_0x2f0a9f[_0x57843d(0x114)],'fetchedAt':_0x2f0a9f['fetchedAt'],'cachePath':_0x2f0a9f['cachePath'],'globalPath':_0x375447['globalPath']??null,'projectPath':_0x375447[_0x57843d(0x11a)]??null,'defaultApp':_0xc357aa,'defaultAppSource':_0x26f607!=null?_0x3fef73:null};return{'ok':!![],'data':{'items':_0x24db06,'meta':_0x5497cf}};}},pullDef={'service':a2_0x2e1da1(0x133),'command':'pull','description':a2_0x2e1da1(0x11f),'risk':a2_0x2e1da1(0x124),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x2e1da1(0x10f),'type':a2_0x2e1da1(0x10c),'description':a2_0x2e1da1(0x136),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x2e1da1(0x145),'type':a2_0x2e1da1(0x126),'description':a2_0x2e1da1(0x12d),'default':![]},{'name':a2_0x2e1da1(0x111),'type':a2_0x2e1da1(0x126),'description':a2_0x2e1da1(0x13d),'default':![]}],async 'execute'(_0x3eb5e2){const _0x408cb1=a2_0x2e1da1,_0x202966=_0x3eb5e2['str']('env')||_0x3eb5e2['envName']||getEnv()||'production',_0x2dfe77=_0x3eb5e2[_0x408cb1(0x115)](_0x408cb1(0x145)),_0x418a97=_0x3eb5e2[_0x408cb1(0x115)](_0x408cb1(0x111)),{getRemoteAppList:_0x5afd3a}=await import(_0x408cb1(0x105)),_0x2d5ee5=await _0x5afd3a({'env':_0x202966,'accessKey':_0x3eb5e2[_0x408cb1(0x129)],'localOnly':_0x2dfe77,'noCache':_0x418a97});return{'ok':!![],'data':{'total':_0x2d5ee5[_0x408cb1(0x142)][_0x408cb1(0x148)],'env':_0x202966,'source':_0x2d5ee5[_0x408cb1(0x114)],'fetchedAt':_0x2d5ee5[_0x408cb1(0x146)],'cachePath':_0x2d5ee5[_0x408cb1(0x10b)]},'message':_0x2d5ee5[_0x408cb1(0x114)]===_0x408cb1(0x110)?_0x408cb1(0x12a)+_0x2d5ee5[_0x408cb1(0x142)]['length']+_0x408cb1(0x13c)+_0x202966+'\x22.':_0x408cb1(0x113)+_0x2d5ee5['items'][_0x408cb1(0x148)]+'\x20app(s)\x20for\x20env=\x22'+_0x202966+'\x22.'};}},useDef={'service':a2_0x2e1da1(0x133),'command':a2_0x2e1da1(0x112),'description':a2_0x2e1da1(0x131),'risk':a2_0x2e1da1(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0x2e1da1(0x11e),'description':a2_0x2e1da1(0x119),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x4ac9c6){const _0x4c23b6=a2_0x2e1da1;if(!_0x4ac9c6[_0x4c23b6(0x120)][0x0])throw CliErrors['validation'](_0x4c23b6(0x11d),_0x4c23b6(0x13b)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');},async 'execute'(_0x659482){const _0x9d35e2=a2_0x2e1da1,_0x3796e0=_0x659482[_0x9d35e2(0x120)][0x0];if(!_0x3796e0)throw CliErrors['validation'](_0x9d35e2(0x11d),_0x9d35e2(0x13b)+CLI_BIN_NAME+_0x9d35e2(0x11c));const {buildConfigFromFlags:_0x1cedab}=await import(_0x9d35e2(0x13a)),{readCachedAppList:_0x1643c8}=await import('../../commands/app/cache.js'),_0x377bd4=_0x1cedab({}),_0x452efa=_0x1643c8(_0x377bd4['env'],_0x377bd4[_0x9d35e2(0x129)]),_0x3f6649=_0x452efa?.[_0x9d35e2(0x142)][_0x9d35e2(0x130)](_0x4b150c=>_0x4b150c[_0x9d35e2(0x107)]===_0x3796e0);if(!_0x3f6649&&_0x377bd4['defaultApp']!==_0x3796e0){const _0x207bbe=[..._0x452efa?.[_0x9d35e2(0x142)]['map'](_0x1c247d=>_0x1c247d[_0x9d35e2(0x107)])??[]],_0xef80be=_0x207bbe[_0x9d35e2(0x148)]===0x0?_0x9d35e2(0x128)+CLI_BIN_NAME+_0x9d35e2(0x121):_0x9d35e2(0x143)+Array[_0x9d35e2(0x13e)](new Set(_0x207bbe))['join'](',\x20');throw CliErrors[_0x9d35e2(0x109)](_0x9d35e2(0x127)+_0x3796e0+_0x9d35e2(0x144),_0xef80be);}const _0x21cd5f=_0x659482[_0x9d35e2(0x115)](_0x9d35e2(0x117));let _0x522c23;if(_0x21cd5f)_0x522c23={'global':!![]};else{const {isInProject:_0x1b5edb}=await import('../../context.js'),_0x4a24a9=_0x1b5edb();_0x522c23=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x4a24a9}));}const _0x5ec8c9=readConfig(_0x522c23);return _0x5ec8c9['defaultApp']=_0x3796e0,writeConfig(_0x5ec8c9,_0x522c23),{'ok':!![],'message':_0x9d35e2(0x132)+_0x3796e0+'\x22'+scopeLabel(_0x522c23)+'.'};}},importDef={'service':a2_0x2e1da1(0x133),'command':'import','description':a2_0x2e1da1(0x134),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x436e16){return await runInitImport(collectFlags(_0x436e16,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[listDef,pullDef,useDef,importDef];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a3_0x561b(_0x4f4d67,_0x19d477){_0x4f4d67=_0x4f4d67-0xc2;const _0xa4bbb6=a3_0xa4bb();let _0x561b06=_0xa4bbb6[_0x4f4d67];return _0x561b06;}(function(_0x3ac98f,_0xcb5a69){const _0x485efe=a3_0x561b,_0x11810e=_0x3ac98f();while(!![]){try{const _0x213121=parseInt(_0x485efe(0xc4))/0x1+parseInt(_0x485efe(0xc5))/0x2*(-parseInt(_0x485efe(0xcb))/0x3)+-parseInt(_0x485efe(0xca))/0x4*(-parseInt(_0x485efe(0xd0))/0x5)+parseInt(_0x485efe(0xc3))/0x6+parseInt(_0x485efe(0xc9))/0x7+parseInt(_0x485efe(0xcc))/0x8+parseInt(_0x485efe(0xcd))/0x9*(-parseInt(_0x485efe(0xce))/0xa);if(_0x213121===_0xcb5a69)break;else _0x11810e['push'](_0x11810e['shift']());}catch(_0x3c61a5){_0x11810e['push'](_0x11810e['shift']());}}}(a3_0xa4bb,0x6bd57));import{fileURLToPath}from'url';import{dirname,join}from'path';function a3_0xa4bb(){const _0x39a8d8=['148JIEIhi','141upxJxU','1528520EmHOyL','221463fBsoHt','290DXmDhr','tableData','87405eLJdVs','success','Mock\x20API\x20error:\x20','657774RHmAUX','68953JsBjZd','20248ezebru','errorMsg','utf-8','data','4302718rzYsgV'];a3_0xa4bb=function(){return _0x39a8d8;};return a3_0xa4bb();}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x1a1cb4=a3_0x561b,_0xf9b720=join(__dirname,'../../../mock/app-list.json'),_0x47c8df=readFileSync(_0xf9b720,_0x1a1cb4(0xc7));return JSON['parse'](_0x47c8df);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x5dc34c=a3_0x561b,_0x4a6b2b=getMockAppList();if(!_0x4a6b2b[_0x5dc34c(0xd1)])throw new Error(_0x5dc34c(0xc2)+_0x4a6b2b[_0x5dc34c(0xc6)]+'\x20('+_0x4a6b2b['errorCode']+')');return _0x4a6b2b[_0x5dc34c(0xc8)][_0x5dc34c(0xcf)];}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x2f2509,_0x4765ed){const _0x2c3db3=a4_0xff4f,_0x225550=_0x2f2509();while(!![]){try{const _0x4394da=parseInt(_0x2c3db3(0x76))/0x1+parseInt(_0x2c3db3(0x6b))/0x2+-parseInt(_0x2c3db3(0x6c))/0x3*(-parseInt(_0x2c3db3(0x6d))/0x4)+parseInt(_0x2c3db3(0x71))/0x5*(-parseInt(_0x2c3db3(0x75))/0x6)+parseInt(_0x2c3db3(0x78))/0x7*(-parseInt(_0x2c3db3(0x70))/0x8)+parseInt(_0x2c3db3(0x73))/0x9+parseInt(_0x2c3db3(0x6f))/0xa;if(_0x4394da===_0x4765ed)break;else _0x225550['push'](_0x225550['shift']());}catch(_0x4241a2){_0x225550['push'](_0x225550['shift']());}}}(a4_0x4e10,0xe5948));import{getMyApps}from'../../core/api-client.js';function a4_0x4e10(){const _0x862daa=['7242QLFqho','1469230vlNLpT','items','708463MqQDSM','cache','trim','toISOString','572652fULtFw','4958619meLNKo','4XsnHOl','fetchedAt','1892980EUEOwX','96ztDpvv','7090RioxiB','remote','2418003QXxaaq','toLowerCase'];a4_0x4e10=function(){return _0x862daa;};return a4_0x4e10();}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';export function shouldUseMockRemoteApps(){const _0x2fd8ae=a4_0xff4f,_0x257725=(process.env.LOVRABET_APP_LIST_SOURCE||process.env.RABETBASE_APP_LIST_SOURCE||'')['trim']()[_0x2fd8ae(0x74)]();return _0x257725==='mock';}function a4_0xff4f(_0x121da9,_0xe1477f){_0x121da9=_0x121da9-0x6a;const _0x4e1057=a4_0x4e10();let _0xff4fd7=_0x4e1057[_0x121da9];return _0xff4fd7;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x240414){const _0x3f7d50=a4_0xff4f,{env:_0x4f5cce,accessKey:_0x1f7ade,localOnly:localOnly=![],noCache:noCache=![]}=_0x240414,_0x55f90b=readCachedAppList(_0x4f5cce,_0x1f7ade),_0x2a7f7b=_0x1f7ade?.['trim']()?getAppCacheFilePath(_0x4f5cce,_0x1f7ade):null;if(localOnly)return{'items':_0x55f90b?.[_0x3f7d50(0x77)]??[],'source':_0x3f7d50(0x79),'fetchedAt':_0x55f90b?.[_0x3f7d50(0x6e)]??null,'cachePath':_0x2a7f7b};try{const _0x36aac5=await getRemoteAppItems(),_0x24bbef=shouldUseMockRemoteApps()?'mock':_0x3f7d50(0x72),_0x43fd70=new Date()[_0x3f7d50(0x6a)](),_0x174081=_0x1f7ade?.[_0x3f7d50(0x7a)]()?writeCachedAppList(_0x4f5cce,_0x1f7ade,{'env':_0x4f5cce,'fetchedAt':_0x43fd70,'source':_0x24bbef,'items':_0x36aac5}):null;return{'items':_0x36aac5,'source':_0x24bbef,'fetchedAt':_0x43fd70,'cachePath':_0x174081};}catch(_0x2f1606){if(!noCache&&_0x55f90b)return{'items':_0x55f90b[_0x3f7d50(0x77)],'source':_0x3f7d50(0x79),'fetchedAt':_0x55f90b[_0x3f7d50(0x6e)],'cachePath':_0x2a7f7b};throw _0x2f1606;}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x2637df,_0x104710){const _0x2291df=a5_0x404a,_0x157a5c=_0x2637df();while(!![]){try{const _0x425353=parseInt(_0x2291df(0x1e6))/0x1+-parseInt(_0x2291df(0x1e3))/0x2*(parseInt(_0x2291df(0x1d3))/0x3)+-parseInt(_0x2291df(0x1e1))/0x4*(-parseInt(_0x2291df(0x1d7))/0x5)+-parseInt(_0x2291df(0x1df))/0x6+parseInt(_0x2291df(0x1d6))/0x7*(parseInt(_0x2291df(0x1dc))/0x8)+-parseInt(_0x2291df(0x1da))/0x9*(parseInt(_0x2291df(0x1e4))/0xa)+parseInt(_0x2291df(0x1e5))/0xb;if(_0x425353===_0x104710)break;else _0x157a5c['push'](_0x157a5c['shift']());}catch(_0x533e39){_0x157a5c['push'](_0x157a5c['shift']());}}}(a5_0x387f,0xbce5c));import{CLI_BIN_NAME}from'../../constant/cli.js';function a5_0x404a(_0x4346e4,_0x57df29){_0x4346e4=_0x4346e4-0x1d3;const _0x387f13=a5_0x387f();let _0x404a8b=_0x387f13[_0x4346e4];return _0x404a8b;}import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x4b0ae0,_0x14d321){const _0x119bd1=a5_0x404a;if(!_0x14d321)return;const _0x7ad782=!!(_0x14d321['currentApp']??_0x14d321[_0x119bd1(0x1db)]);for(const _0x184fd3 of _0x4b0ae0){_0x184fd3[_0x119bd1(0x1dd)]=![];}const _0x15d2e4=_0x14d321[_0x119bd1(0x1d9)]!=null?String(_0x14d321['appCode'])[_0x119bd1(0x1d5)]():'';if(_0x7ad782){const _0x23469e=_0x14d321[_0x119bd1(0x1de)]??_0x14d321['defaultApp'];if(_0x23469e)for(const _0xccbf32 of _0x4b0ae0){_0xccbf32[_0x119bd1(0x1e0)]===!![]&&_0xccbf32[_0x119bd1(0x1d8)]===_0x23469e&&(_0xccbf32['isCurrent']=!![]);}return;}if(!_0x15d2e4)return;for(const _0x1ce1f0 of _0x4b0ae0){String(_0x1ce1f0[_0x119bd1(0x1d4)]??'')[_0x119bd1(0x1d5)]()===_0x15d2e4&&(_0x1ce1f0[_0x119bd1(0x1dd)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a5_0x387f(){const _0xe6cb55=['appCode','9CFYLIm','defaultApp','16vuKwBx','isCurrent','currentApp','9219060CNPlJx','named','817124sYwROG','global','6FLGqVE','4426930VosRlz','27603719uQxJdp','966080sWNuBu','1468671rjqeVl','appcode','trim','466361eryvEY','15RVrqfO','name'];a5_0x387f=function(){return _0xe6cb55;};return a5_0x387f();}export function scopeLabel(_0xa5a5d5){const _0x268b78=a5_0x404a;return formatScopeLabel(_0xa5a5d5[_0x268b78(0x1e2)]?_0x268b78(0x1e2):'project');}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a6_0x4248fa=a6_0x169d;(function(_0x3ccdbd,_0x3f5902){const _0x2d3781=a6_0x169d,_0xfc336d=_0x3ccdbd();while(!![]){try{const _0x313f07=parseInt(_0x2d3781(0x17e))/0x1+parseInt(_0x2d3781(0x179))/0x2+-parseInt(_0x2d3781(0x16d))/0x3*(parseInt(_0x2d3781(0x16e))/0x4)+-parseInt(_0x2d3781(0x197))/0x5+-parseInt(_0x2d3781(0x19f))/0x6+-parseInt(_0x2d3781(0x169))/0x7+parseInt(_0x2d3781(0x18f))/0x8;if(_0x313f07===_0x3f5902)break;else _0xfc336d['push'](_0xfc336d['shift']());}catch(_0x1ec263){_0xfc336d['push'](_0xfc336d['shift']());}}}(a6_0x337e,0x64393));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{AUTH_MODE}from'../../constant/auth-mode.js';function a6_0x169d(_0x4822c2,_0x183413){_0x4822c2=_0x4822c2-0x168;const _0x337ed4=a6_0x337e();let _0x169d25=_0x337ed4[_0x4822c2];return _0x169d25;}import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function resolveAuthScopeFlags(_0x1a8d8b){const _0x7b11ec=a6_0x169d;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1a8d8b[_0x7b11ec(0x184)](_0x7b11ec(0x187)),'explicitProject':_0x1a8d8b[_0x7b11ec(0x184)](_0x7b11ec(0x191)),'policy':_0x7b11ec(0x1a3)}));}export const authDefinitions=[{'service':a6_0x4248fa(0x19e),'command':a6_0x4248fa(0x181),'description':a6_0x4248fa(0x198),'risk':a6_0x4248fa(0x173),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x4248fa(0x1a7),'type':a6_0x4248fa(0x168),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':'string','description':'Shorthand\x20for\x20--access-key'},{'name':a6_0x4248fa(0x187),'type':a6_0x4248fa(0x16a),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a6_0x4248fa(0x191),'type':'boolean','description':a6_0x4248fa(0x176),'default':![]}],async 'execute'(_0x58a1d2){const _0x550f56=a6_0x4248fa;let _0x188a5f=(_0x58a1d2[_0x550f56(0x18b)]('access-key')||_0x58a1d2[_0x550f56(0x18b)]('ak')||'')[_0x550f56(0x17f)]();const _0x16f574=(_0x58a1d2[_0x550f56(0x18b)](_0x550f56(0x19d))||'')[_0x550f56(0x17f)]();if(!_0x188a5f&&!_0x58a1d2['nonInteractive'])try{_0x188a5f=await promptAccessKey('');}catch(_0x467db0){if(isAbortPrompt(_0x467db0))throw CliErrors[_0x550f56(0x177)]();throw _0x467db0;}if(!_0x188a5f)throw CliErrors[_0x550f56(0x195)](_0x550f56(0x171),_0x550f56(0x186)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]');if(!ACCESS_KEY_PATTERN[_0x550f56(0x1a4)](_0x188a5f))throw CliErrors[_0x550f56(0x195)](_0x550f56(0x18d)+_0x188a5f+'\x22',_0x550f56(0x17a));const _0x1def9a=resolveAuthScopeFlags(_0x58a1d2),_0x5b9384=readScopedConfig(_0x1def9a);_0x5b9384[_0x550f56(0x1a1)]=_0x188a5f;if(_0x16f574){const _0x3f5d79=normalizeEnv(_0x16f574);_0x5b9384[_0x550f56(0x19d)]=isDaily(_0x3f5d79)?_0x550f56(0x18e):isDev(_0x3f5d79)?'development':_0x550f56(0x172);}writeScopedConfig(_0x5b9384,_0x1def9a);const _0x2cddc4=_0x1def9a[_0x550f56(0x187)]?'global':'project',_0x427146=_0x5b9384['env']?_0x550f56(0x1a5)+_0x5b9384[_0x550f56(0x19d)]+'.':'';return{'ok':!![],'message':_0x550f56(0x183)+_0x2cddc4+'\x20config.'+_0x427146+_0x550f56(0x180)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':'auth','command':a6_0x4248fa(0x174),'description':a6_0x4248fa(0x190),'risk':a6_0x4248fa(0x173),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a6_0x4248fa(0x16a),'description':a6_0x4248fa(0x17b),'default':!![]},{'name':'project','type':a6_0x4248fa(0x16a),'description':a6_0x4248fa(0x178),'default':![]}],async 'execute'(_0x27bd63){const _0x308185=a6_0x4248fa,_0x1e71c8=resolveAuthScopeFlags(_0x27bd63),_0x331afd=readScopedConfig(_0x1e71c8),_0x391cf1=!!_0x331afd[_0x308185(0x1a1)];delete _0x331afd[_0x308185(0x1a1)],writeScopedConfig(_0x331afd,_0x1e71c8);const _0x1c6aef=_0x1e71c8['global']?_0x308185(0x187):_0x308185(0x191);if(_0x391cf1)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x1c6aef+_0x308185(0x189)};return{'ok':!![],'message':_0x308185(0x19a)+_0x1c6aef+_0x308185(0x19c)};}},{'service':a6_0x4248fa(0x19e),'command':a6_0x4248fa(0x17c),'description':'Show\x20current\x20authentication\x20status','risk':a6_0x4248fa(0x1a6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x4248fa(0x187),'type':'boolean','description':a6_0x4248fa(0x193),'default':!![]},{'name':'project','type':a6_0x4248fa(0x16a),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x1709c8){const _0x3c5a38=a6_0x4248fa,_0x4143af=resolveAuthScopeFlags(_0x1709c8),_0x1652cb=readScopedConfig(_0x4143af),_0x5cec5b=process.env.LOVRABET_ACCESS_KEY||undefined,_0x228d92=_0x1652cb[_0x3c5a38(0x1a1)]||undefined,_0x3d6260=_0x5cec5b||_0x228d92,_0x507a43=_0x5cec5b?_0x3c5a38(0x1a2):_0x228d92?(_0x4143af[_0x3c5a38(0x187)]?_0x3c5a38(0x187):_0x3c5a38(0x191))+_0x3c5a38(0x199):null,_0x5584d4=[_0x3c5a38(0x194)+AUTH_MODE[_0x3c5a38(0x188)]];if(_0x3d6260){const _0x2ae9fb=_0x3d6260[_0x3c5a38(0x182)]>0x8?''+_0x3d6260[_0x3c5a38(0x18c)](0x0,0x8)+'*'['repeat'](_0x3d6260[_0x3c5a38(0x182)]-0x8):_0x3d6260;_0x5584d4[_0x3c5a38(0x170)](_0x3c5a38(0x175)+_0x2ae9fb+(_0x507a43?_0x3c5a38(0x16f)+_0x507a43+')':''));}return!_0x3d6260&&(_0x5584d4[_0x3c5a38(0x170)](''),_0x5584d4[_0x3c5a38(0x170)](_0x3c5a38(0x19b)),_0x5584d4['push'](''),_0x5584d4[_0x3c5a38(0x170)]('Option\x20A:\x20'+CLI_BIN_NAME+_0x3c5a38(0x1a8)),_0x5584d4[_0x3c5a38(0x170)](''),_0x5584d4[_0x3c5a38(0x170)](_0x3c5a38(0x18a)),_0x5584d4['push']('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x5584d4[_0x3c5a38(0x170)](''),_0x5584d4[_0x3c5a38(0x170)](_0x3c5a38(0x16b)),_0x5584d4[_0x3c5a38(0x170)](_0x3c5a38(0x192)),_0x5584d4[_0x3c5a38(0x170)](''),_0x5584d4[_0x3c5a38(0x170)](_0x3c5a38(0x185)+CLI_BIN_NAME+_0x3c5a38(0x17d)),_0x5584d4[_0x3c5a38(0x170)](_0x3c5a38(0x196)+CLI_BIN_NAME+_0x3c5a38(0x16c))),{'ok':!![],'message':_0x5584d4[_0x3c5a38(0x1a0)]('\x0a')};}}];function a6_0x337e(){const _0x427db0=['validation','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','3456110vEELEu','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','\x20config','No\x20AccessKey\x20found\x20in\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20config.\x20Nothing\x20to\x20clear.','env','auth','2125584WGxlZj','join','accessKey','LOVRABET_ACCESS_KEY\x20env\x20var','global-default','test','\x20Current\x20env:\x20','read','access-key','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','string','3283987xgmZCi','boolean','Option\x20C:\x20environment\x20variable','\x20doctor','1638759hNSzRH','4uVLrAn','\x20(via\x20','push','Missing\x20accessKey.','production','write','logout','AccessKey:\x20','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','cancelled','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','1026802DoITgU','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Clear\x20from\x20global\x20config\x20(default)','status','\x20auth\x20status','21556KEIMRX','trim','\x20Verify:\x20','login','length','AccessKey\x20saved\x20to\x20','bool','Then\x20verify\x20with:\x20','Usage:\x20','global','ClientAk','\x20config.','Option\x20B:\x20apps\x20config\x20(.lovrabet.json)','str','slice','Invalid\x20accessKey\x20format:\x20\x22','daily','15491504gjYNZD','Clear\x20accessKey\x20from\x20config','project','\x20\x20export\x20LOVRABET_ACCESS_KEY=ak_xxx','Read\x20from\x20global\x20config\x20(default)','Auth\x20mode:\x20'];a6_0x337e=function(){return _0x427db0;};return a6_0x337e();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a7_0x24fa(){const _0x2b9972=['\x20\x20AccessKey\x20(','removeListener','3180288vVPVYF','close','10677576TBhQAT','162009HviGNt','name','1615770cqowtD','trim','1284656hMRkyg','10578785ghmjNF','once','):\x20','5ULHdgQ','User\x20aborted\x20prompt','SIGINT','race','\x20\x20AccessKey:\x20','AbortPrompt','1120wQahSJ','1870604RLYZGu'];a7_0x24fa=function(){return _0x2b9972;};return a7_0x24fa();}function a7_0x1996(_0x5a0d07,_0x5d9e3c){_0x5a0d07=_0x5a0d07-0x18f;const _0x24fa95=a7_0x24fa();let _0x199654=_0x24fa95[_0x5a0d07];return _0x199654;}(function(_0x2f01d6,_0x4c4616){const _0x4739cd=a7_0x1996,_0x226c3f=_0x2f01d6();while(!![]){try{const _0x7637e8=parseInt(_0x4739cd(0x192))/0x1+-parseInt(_0x4739cd(0x1a0))/0x2+-parseInt(_0x4739cd(0x190))/0x3+-parseInt(_0x4739cd(0x19d))/0x4*(parseInt(_0x4739cd(0x196))/0x5)+-parseInt(_0x4739cd(0x1a2))/0x6+parseInt(_0x4739cd(0x193))/0x7+-parseInt(_0x4739cd(0x19c))/0x8*(-parseInt(_0x4739cd(0x1a3))/0x9);if(_0x7637e8===_0x4c4616)break;else _0x226c3f['push'](_0x226c3f['shift']());}catch(_0x559983){_0x226c3f['push'](_0x226c3f['shift']());}}}(a7_0x24fa,0xe5826));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x31c289=a7_0x1996;super(_0x31c289(0x197)),this[_0x31c289(0x18f)]=_0x31c289(0x19b);}}function createSafeRl(){const _0x243436=createInterface({'input':process['stdin'],'output':process['stdout']});let _0x578b6a;const _0x110aa2=new Promise((_0x36dfef,_0x4898f3)=>{const _0x29830b=a7_0x1996;_0x578b6a=()=>{const _0x2d8e90=a7_0x1996;_0x578b6a&&(_0x243436['removeListener']('SIGINT',_0x578b6a),_0x578b6a=undefined);try{_0x243436[_0x2d8e90(0x1a1)]();}catch{}_0x4898f3(new AbortPrompt());},_0x243436[_0x29830b(0x194)](_0x29830b(0x198),_0x578b6a);}),_0x4f73ce=()=>{const _0x3dc2af=a7_0x1996;_0x578b6a&&(_0x243436[_0x3dc2af(0x19f)]('SIGINT',_0x578b6a),_0x578b6a=undefined);try{_0x243436[_0x3dc2af(0x1a1)]();}catch{}};return{'rl':_0x243436,'abortPromise':_0x110aa2,'disposeSuccess':_0x4f73ce};}export async function promptAccessKey(_0x16e74e=''){const _0x59a7a7=a7_0x1996,{rl:_0x46b455,abortPromise:_0x3a81b1,disposeSuccess:_0x242cd5}=createSafeRl(),_0x396a98=new Promise(_0x779b67=>{const _0x4633ef=a7_0x1996,_0x2674a1=_0x16e74e?_0x4633ef(0x19e)+_0x16e74e+_0x4633ef(0x195):_0x4633ef(0x19a);_0x46b455['question'](_0x2674a1,_0x23149f=>{const _0x5217c4=_0x4633ef;_0x242cd5(),_0x779b67(_0x23149f[_0x5217c4(0x191)]()||_0x16e74e);});});return Promise[_0x59a7a7(0x199)]([_0x396a98,_0x3a81b1]);}export function isAbortPrompt(_0x54c5ad){const _0x1a2209=a7_0x1996;return _0x54c5ad instanceof Error&&_0x54c5ad[_0x1a2209(0x18f)]===_0x1a2209(0x19b);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a8_0x53e482=a8_0x30d8;function a8_0x28df(){const _0x14e552=['num','bff','3QlpXPT','30272pjcZJu','appCode','verbose','bool','342ahohGs','functionName','updatedTime','(none)','5479740YnYhol','createdTime','1004978lcWXpU','Script\x20ID','scriptType','1213165HYwJcg','Get\x20BFF\x20script\x20details\x20by\x20ID','18cWAdKf','15517940PdQYqA','read','2104036WOOsWb','597992nSHZZc','detail'];a8_0x28df=function(){return _0x14e552;};return a8_0x28df();}(function(_0x5c73eb,_0x4cf1da){const _0x182070=a8_0x30d8,_0x449dd6=_0x5c73eb();while(!![]){try{const _0x5593c2=parseInt(_0x182070(0x166))/0x1+parseInt(_0x182070(0x15d))/0x2*(-parseInt(_0x182070(0x16a))/0x3)+parseInt(_0x182070(0x165))/0x4+parseInt(_0x182070(0x160))/0x5*(-parseInt(_0x182070(0x162))/0x6)+-parseInt(_0x182070(0x15b))/0x7+parseInt(_0x182070(0x16b))/0x8*(-parseInt(_0x182070(0x157))/0x9)+parseInt(_0x182070(0x163))/0xa;if(_0x5593c2===_0x4cf1da)break;else _0x449dd6['push'](_0x449dd6['shift']());}catch(_0x21ea2a){_0x449dd6['push'](_0x449dd6['shift']());}}}(a8_0x28df,0x7ea8b));import{getBffScriptInfo}from'../../core/api-client.js';function a8_0x30d8(_0x30a5b1,_0x3ee26c){_0x30a5b1=_0x30a5b1-0x156;const _0x28df2c=a8_0x28df();let _0x30d86d=_0x28df2c[_0x30a5b1];return _0x30d86d;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a8_0x53e482(0x169),'command':a8_0x53e482(0x167),'description':a8_0x53e482(0x161),'risk':a8_0x53e482(0x164),'flags':[{...ID_FLAG,'description':a8_0x53e482(0x15e)},VERBOSE_FLAG],async 'execute'(_0x164734){const _0x4761ec=a8_0x53e482,_0x395155=await getBffScriptInfo(_0x164734[_0x4761ec(0x168)]('id')),_0xbf378b=_0x164734[_0x4761ec(0x156)](_0x4761ec(0x16d));if(_0xbf378b)return{'ok':!![],'data':_0x395155};return{'ok':!![],'data':{'id':_0x395155['id'],'appCode':_0x395155[_0x4761ec(0x16c)],'functionName':_0x395155[_0x4761ec(0x158)]??'','scriptType':_0x395155[_0x4761ec(0x15f)],'description':_0x395155['description']||_0x4761ec(0x15a),'createdTime':_0x395155[_0x4761ec(0x15c)]??'','updatedTime':_0x395155[_0x4761ec(0x159)]??''}};}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a9_0x51040f=a9_0xefe6;(function(_0xb80924,_0x4558e9){const _0x42bfc4=a9_0xefe6,_0x3c7168=_0xb80924();while(!![]){try{const _0x49ecc0=-parseInt(_0x42bfc4(0x188))/0x1*(parseInt(_0x42bfc4(0x185))/0x2)+parseInt(_0x42bfc4(0x18a))/0x3*(parseInt(_0x42bfc4(0x18c))/0x4)+-parseInt(_0x42bfc4(0x189))/0x5*(-parseInt(_0x42bfc4(0x182))/0x6)+-parseInt(_0x42bfc4(0x17b))/0x7+-parseInt(_0x42bfc4(0x17d))/0x8*(parseInt(_0x42bfc4(0x17e))/0x9)+-parseInt(_0x42bfc4(0x186))/0xa*(-parseInt(_0x42bfc4(0x17c))/0xb)+parseInt(_0x42bfc4(0x18b))/0xc;if(_0x49ecc0===_0x4558e9)break;else _0x3c7168['push'](_0x3c7168['shift']());}catch(_0x5ad7db){_0x3c7168['push'](_0x3c7168['shift']());}}}(a9_0x47cf,0x4cd77));function a9_0xefe6(_0x19f3f8,_0x368093){_0x19f3f8=_0x19f3f8-0x17b;const _0x47cffa=a9_0x47cf();let _0xefe6d8=_0x47cffa[_0x19f3f8];return _0xefe6d8;}function a9_0x47cf(){const _0x3ec5eb=['read','BFF\x20function\x20name\x20to\x20execute','260718TyvktM','now','str','14qGbdYe','470fYplYU','BFF\x20executed\x20in\x20','48911JkGFlF','25fbzmNG','3DFXTcf','7665636WpOhie','437724hanfcj','1311548lJIZTC','14223EPfXqi','88BHUeNa','148734fXfDrO','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name'];a9_0x47cf=function(){return _0x3ec5eb;};return a9_0x47cf();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':'exec','description':a9_0x51040f(0x17f),'risk':a9_0x51040f(0x180),'flags':[{...NAME_FLAG,'required':!![],'description':a9_0x51040f(0x181)},PARAMS_FLAG],async 'execute'(_0x5f46c9){const _0x57ea1d=a9_0x51040f,_0x393503=parseJsonParams(_0x5f46c9[_0x57ea1d(0x184)]('params')),_0x35ba35=Date[_0x57ea1d(0x183)](),_0x1592ad=await executeSdkBff(_0x5f46c9[_0x57ea1d(0x184)]('name'),_0x393503),_0x2f9506=Date[_0x57ea1d(0x183)]()-_0x35ba35;return{'ok':!![],'data':{'result':_0x1592ad,'elapsed':_0x2f9506},'message':_0x57ea1d(0x187)+_0x2f9506+'ms'};}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a10_0x4490(){const _0x23de46=['6sSwGeI','1322328QhZUFv','91509Ilnrax','6732laXoto','1638795HBFFYF','2jRqExX','325947jbaiCq','1602923OPnRkQ','14711ZhYvSW','1810wwrFCh','8pSUZoX'];a10_0x4490=function(){return _0x23de46;};return a10_0x4490();}(function(_0x3dbcf9,_0x58398e){const _0x149a46=a10_0x4e6a,_0x17aa26=_0x3dbcf9();while(!![]){try{const _0xb45c45=-parseInt(_0x149a46(0x105))/0x1*(parseInt(_0x149a46(0x102))/0x2)+parseInt(_0x149a46(0x103))/0x3+-parseInt(_0x149a46(0xfe))/0x4+-parseInt(_0x149a46(0x101))/0x5*(-parseInt(_0x149a46(0x108))/0x6)+-parseInt(_0x149a46(0x104))/0x7*(-parseInt(_0x149a46(0x107))/0x8)+-parseInt(_0x149a46(0x100))/0x9*(parseInt(_0x149a46(0x106))/0xa)+parseInt(_0x149a46(0xff))/0xb;if(_0xb45c45===_0x58398e)break;else _0x17aa26['push'](_0x17aa26['shift']());}catch(_0x1e5748){_0x17aa26['push'](_0x17aa26['shift']());}}}(a10_0x4490,0x2f20b));function a10_0x4e6a(_0x211195,_0x34e194){_0x211195=_0x211195-0xfe;const _0x4490b8=a10_0x4490();let _0x4e6ae3=_0x4490b8[_0x211195];return _0x4e6ae3;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a11_0xd013(){const _0x16db5f=['23187sfdDgc','277080RCzYpl','Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).','project-or-global-explicit','6jnEdlj','validation','\x20init`\x20first.','project','\x20(global)','28111QroPgh','1166585DrwCCK','171235VavbpP','585552UjyqXE','64XOCDYG','inProject','811386CmCueo','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Use\x20only\x20one\x20config\x20scope\x20flag.','project-default','global','6BRJKyi','global-default'];a11_0xd013=function(){return _0x16db5f;};return a11_0xd013();}(function(_0x2f36b7,_0x33bf43){const _0x45c654=a11_0x53cf,_0x44e538=_0x2f36b7();while(!![]){try{const _0x250196=parseInt(_0x45c654(0x159))/0x1*(parseInt(_0x45c654(0x14e))/0x2)+parseInt(_0x45c654(0x150))/0x3*(parseInt(_0x45c654(0x15d))/0x4)+parseInt(_0x45c654(0x15b))/0x5+parseInt(_0x45c654(0x154))/0x6*(-parseInt(_0x45c654(0x15a))/0x7)+-parseInt(_0x45c654(0x15c))/0x8+parseInt(_0x45c654(0x15f))/0x9+parseInt(_0x45c654(0x151))/0xa;if(_0x250196===_0x33bf43)break;else _0x44e538['push'](_0x44e538['shift']());}catch(_0x264102){_0x44e538['push'](_0x44e538['shift']());}}}(a11_0xd013,0x1d5c1));import{CLI_BIN_NAME}from'../../constant/cli.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x5388fe){const _0x5a6355=a11_0x53cf,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x53eb9a}=_0x5388fe;if(explicitGlobal&&explicitProject)throw CliErrors[_0x5a6355(0x155)](_0x5a6355(0x160),_0x5a6355(0x161));if(explicitGlobal)return _0x5a6355(0x14d);if(explicitProject)return _0x5a6355(0x157);switch(_0x53eb9a){case _0x5a6355(0x14f):return _0x5a6355(0x14d);case _0x5a6355(0x162):return _0x5388fe[_0x5a6355(0x15e)]??isInProject()?'project':_0x5a6355(0x14d);case _0x5a6355(0x153):if(!(_0x5388fe[_0x5a6355(0x15e)]??isInProject()))throw CliErrors[_0x5a6355(0x155)](_0x5a6355(0x152),'Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5a6355(0x156));return'project';}}function a11_0x53cf(_0x189e14,_0x323211){_0x189e14=_0x189e14-0x14d;const _0xd01352=a11_0xd013();let _0x53cfff=_0xd01352[_0x189e14];return _0x53cfff;}export function toScopeFlags(_0x1429af){const _0x597748=a11_0x53cf;return{'global':_0x1429af===_0x597748(0x14d)};}export function formatScopeLabel(_0x496338){const _0x3db260=a11_0x53cf;return _0x496338===_0x3db260(0x14d)?_0x3db260(0x158):'';}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x38ce8c,_0x5de3dd){const _0x486eb8=a12_0x3dba,_0x4ac753=_0x38ce8c();while(!![]){try{const _0x449370=parseInt(_0x486eb8(0x12e))/0x1+-parseInt(_0x486eb8(0x124))/0x2+parseInt(_0x486eb8(0x123))/0x3*(parseInt(_0x486eb8(0x130))/0x4)+-parseInt(_0x486eb8(0x132))/0x5+-parseInt(_0x486eb8(0x137))/0x6+parseInt(_0x486eb8(0x13b))/0x7*(-parseInt(_0x486eb8(0x136))/0x8)+-parseInt(_0x486eb8(0x125))/0x9*(-parseInt(_0x486eb8(0x138))/0xa);if(_0x449370===_0x5de3dd)break;else _0x4ac753['push'](_0x4ac753['shift']());}catch(_0x318455){_0x4ac753['push'](_0x4ac753['shift']());}}}(a12_0x30d2,0x98b39));import{CliErrors}from'../../errors.js';function isSet(_0x169945,_0x227882){const _0x53fa64=a12_0x3dba,_0x461696=_0x169945[_0x53fa64(0x121)](_0x227882);return _0x461696!==undefined&&_0x461696!==''&&_0x461696!==![]&&_0x461696!==0x0;}function a12_0x3dba(_0x56cd4c,_0xecc2e7){_0x56cd4c=_0x56cd4c-0x120;const _0x30d29d=a12_0x30d2();let _0x3dba2f=_0x30d29d[_0x56cd4c];return _0x3dba2f;}function fmtNames(_0x378791){const _0x2ee2f9=a12_0x3dba;return _0x378791['map'](_0x25b071=>'--'+_0x25b071)[_0x2ee2f9(0x12d)](',\x20');}export function requireOneOf(_0x59c495,_0x13286e,_0x4ae73d){const _0x3e7c8d=a12_0x3dba,_0x5c2ae8=_0x13286e['filter'](_0x11fd4f=>isSet(_0x59c495,_0x11fd4f));if(_0x5c2ae8[_0x3e7c8d(0x131)]!==0x1)throw CliErrors[_0x3e7c8d(0x134)](_0x5c2ae8[_0x3e7c8d(0x131)]===0x0?_0x3e7c8d(0x128)+fmtNames(_0x13286e)+_0x3e7c8d(0x12a)+_0x4ae73d+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x13286e)+_0x3e7c8d(0x127)+fmtNames(_0x5c2ae8)+'.',_0x5c2ae8[_0x3e7c8d(0x131)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x13286e):_0x3e7c8d(0x12c));}export function requireAnyOf(_0x26ed1b,_0x402e12,_0x96d30e){const _0x84f5a5=a12_0x3dba;if(!_0x402e12[_0x84f5a5(0x13a)](_0x5ff80e=>isSet(_0x26ed1b,_0x5ff80e)))throw CliErrors[_0x84f5a5(0x134)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x402e12)+_0x84f5a5(0x12a)+_0x96d30e+'`.',_0x84f5a5(0x12f)+fmtNames(_0x402e12));}function a12_0x30d2(){const _0x1bc321=['2507184lxAzWN','7390jwUFEP',':\x20expected\x20','some','2474017QZxxND','Flags\x20','flag','filter','33hnJDXq','1818656yheObs','29259rAkpdy','Use\x20only\x20one\x20of:\x20','\x20is\x20allowed,\x20found:\x20','Exactly\x20one\x20of\x20','str','\x20is\x20required\x20for\x20`','Invalid\x20--','Remove\x20all\x20but\x20one.','join','1164876AQTlPm','Provide\x20one\x20of:\x20','15616MOUNvE','length','4753950MnuZRi','\x20are\x20mutually\x20exclusive\x20for\x20`','validation','test','16GwxVqP'];a12_0x30d2=function(){return _0x1bc321;};return a12_0x30d2();}export function mutuallyExclusive(_0x30a538,_0x39cfd3,_0x42a8b5){const _0x4a593f=a12_0x3dba,_0x4ffaad=_0x39cfd3[_0x4a593f(0x122)](_0x15b9c7=>isSet(_0x30a538,_0x15b9c7));if(_0x4ffaad['length']>0x1)throw CliErrors[_0x4a593f(0x134)](_0x4a593f(0x120)+fmtNames(_0x4ffaad)+_0x4a593f(0x133)+_0x42a8b5+'`.',_0x4a593f(0x126)+fmtNames(_0x39cfd3));}export function validatePattern(_0x1601da,_0x41f2dc,_0x35b2ce,_0x541c8f){const _0x31bf5f=a12_0x3dba,_0xb7760=_0x1601da[_0x31bf5f(0x129)](_0x41f2dc);if(_0xb7760&&!_0x35b2ce[_0x31bf5f(0x135)](_0xb7760))throw CliErrors[_0x31bf5f(0x134)](_0x31bf5f(0x12b)+_0x41f2dc+_0x31bf5f(0x139)+_0x541c8f+',\x20got\x20\x22'+_0xb7760+'\x22.');}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a13_0x492849=a13_0x36e1;(function(_0x5987e1,_0xe4f873){const _0x5568fd=a13_0x36e1,_0x5b5e21=_0x5987e1();while(!![]){try{const _0x35dca3=parseInt(_0x5568fd(0x1bf))/0x1*(parseInt(_0x5568fd(0x1b2))/0x2)+-parseInt(_0x5568fd(0x1c0))/0x3+-parseInt(_0x5568fd(0x1c5))/0x4+-parseInt(_0x5568fd(0x1b9))/0x5*(parseInt(_0x5568fd(0x1ba))/0x6)+parseInt(_0x5568fd(0x1c2))/0x7+parseInt(_0x5568fd(0x1bb))/0x8*(parseInt(_0x5568fd(0x1b1))/0x9)+-parseInt(_0x5568fd(0x1b7))/0xa;if(_0x35dca3===_0xe4f873)break;else _0x5b5e21['push'](_0x5b5e21['shift']());}catch(_0xc5829b){_0x5b5e21['push'](_0x5b5e21['shift']());}}}(a13_0x2bda,0xc9043));export const CODE_FLAG={'name':'code','type':a13_0x492849(0x1b3),'required':!![],'description':a13_0x492849(0x1be),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x492849(0x1b4)}};export const SQLCODE_FLAG={'name':a13_0x492849(0x1c1),'type':'string','required':!![],'description':a13_0x492849(0x1bd),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':a13_0x492849(0x1c3),'type':a13_0x492849(0x1b5),'description':a13_0x492849(0x1b6)};export const PARAMS_FLAG={'name':a13_0x492849(0x1b8),'type':a13_0x492849(0x1b3),'description':a13_0x492849(0x1c6)};export const NAME_FLAG={'name':'name','type':a13_0x492849(0x1b3),'description':a13_0x492849(0x1bc)};function a13_0x36e1(_0x1e665b,_0x1de1ec){_0x1e665b=_0x1e665b-0x1b1;const _0x2bdab1=a13_0x2bda();let _0x36e14a=_0x2bdab1[_0x1e665b];return _0x36e14a;}export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a13_0x492849(0x1c4)};function a13_0x2bda(){const _0x2701c8=['8454558KpLVOq','verbose','Resource\x20ID','826644sJmBab','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','875439Bnrjws','3364FezcII','string','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','boolean','Return\x20full\x20raw\x20response\x20object','345420CLLksj','params','5xcHMvW','1359174gZNVUr','8DoqjTX','Resource\x20name\x20for\x20lookup','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','652TkIonB','3331902rpCbVR','sqlcode'];a13_0x2bda=function(){return _0x2701c8;};return a13_0x2bda();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a14_0x54b3b5=a14_0x2c63;function a14_0x2c63(_0x3c4577,_0x10d8cc){_0x3c4577=_0x3c4577-0x1b4;const _0xe9899e=a14_0xe989();let _0x2c636e=_0xe9899e[_0x3c4577];return _0x2c636e;}(function(_0x34e61a,_0x43de6e){const _0x993917=a14_0x2c63,_0x13a355=_0x34e61a();while(!![]){try{const _0x1eca36=parseInt(_0x993917(0x1e9))/0x1*(-parseInt(_0x993917(0x1e2))/0x2)+parseInt(_0x993917(0x1c4))/0x3*(parseInt(_0x993917(0x1e0))/0x4)+-parseInt(_0x993917(0x1d6))/0x5*(parseInt(_0x993917(0x1e4))/0x6)+parseInt(_0x993917(0x1c8))/0x7+-parseInt(_0x993917(0x1bf))/0x8*(-parseInt(_0x993917(0x1b5))/0x9)+-parseInt(_0x993917(0x1ce))/0xa*(parseInt(_0x993917(0x1d1))/0xb)+parseInt(_0x993917(0x1c1))/0xc*(parseInt(_0x993917(0x1d4))/0xd);if(_0x1eca36===_0x43de6e)break;else _0x13a355['push'](_0x13a355['shift']());}catch(_0x652e4f){_0x13a355['push'](_0x13a355['shift']());}}}(a14_0xe989,0x52d1f));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a14_0x54b3b5(0x1d3),'type':'boolean','description':a14_0x54b3b5(0x1cd),'default':![]},listDef={'service':'config','command':a14_0x54b3b5(0x1c6),'description':a14_0x54b3b5(0x1bb),'risk':a14_0x54b3b5(0x1b7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x100864){const _0x45f6b9=a14_0x54b3b5,{buildConfigFromFlags:_0x576670}=await import(_0x45f6b9(0x1e1)),_0x79ba76=_0x576670({}),_0x1699d4=getProjectConfigPath(),_0x1a49c7=resolveWriteConfigPath(_0x45f6b9(0x1d3));if(_0x100864[_0x45f6b9(0x1c0)]==='pretty')return{'ok':!![],'message':_0x45f6b9(0x1b9)+(JSON['stringify'](_0x79ba76['raw'],null,0x2)+'\x0a\x0a')+_0x45f6b9(0x1dd)+(_0x45f6b9(0x1ed)+(_0x1699d4??_0x45f6b9(0x1ca))+'\x0a')+('\x20\x20global:\x20\x20'+_0x1a49c7)};return{'ok':!![],'data':{'effective':_0x79ba76['raw'],'configFiles':{'project':_0x1699d4??null,'global':_0x1a49c7}}};}},getDef={'service':a14_0x54b3b5(0x1cb),'command':a14_0x54b3b5(0x1e8),'description':a14_0x54b3b5(0x1d2),'risk':a14_0x54b3b5(0x1b7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x54b3b5(0x1e5),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x23b728){const _0x35244a=a14_0x54b3b5,_0x54494e=_0x23b728[_0x35244a(0x1c5)][0x0];if(!_0x54494e)throw CliErrors[_0x35244a(0x1e6)](_0x35244a(0x1c7),_0x35244a(0x1da)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x2098f4}=await import(_0x35244a(0x1e1)),{raw:_0x2f96bd}=_0x2098f4({});if(_0x54494e['includes']('.')){const _0x5f365b=_0x54494e[_0x35244a(0x1de)]('.');let _0x24d901=_0x2f96bd;for(const _0x1b7e09 of _0x5f365b){if(_0x24d901==null||typeof _0x24d901!=='object')throw CliErrors[_0x35244a(0x1e6)](_0x35244a(0x1bc)+_0x54494e);_0x24d901=_0x24d901[_0x1b7e09];}if(_0x24d901===undefined)throw CliErrors[_0x35244a(0x1e6)](_0x35244a(0x1bc)+_0x54494e);return console[_0x35244a(0x1d5)](typeof _0x24d901==='object'?JSON['stringify'](_0x24d901,null,0x2):String(_0x24d901)),{'ok':!![]};}const _0x5816ae=_0x2f96bd[_0x54494e];if(_0x5816ae===undefined)throw CliErrors[_0x35244a(0x1e6)](_0x35244a(0x1bc)+_0x54494e);return console[_0x35244a(0x1d5)](typeof _0x5816ae===_0x35244a(0x1d0)?JSON['stringify'](_0x5816ae,null,0x2):String(_0x5816ae)),{'ok':!![]};}},setDef={'service':a14_0x54b3b5(0x1cb),'command':'set','description':a14_0x54b3b5(0x1cc),'risk':a14_0x54b3b5(0x1e3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x54b3b5(0x1e5),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x54b3b5(0x1db),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3487b6){const _0x18d3ed=a14_0x54b3b5,_0x50e8a2=_0x3487b6['args'][0x0],_0x328c7c=_0x3487b6[_0x18d3ed(0x1c5)][0x1];if(!_0x50e8a2||_0x328c7c===undefined)throw CliErrors[_0x18d3ed(0x1e6)](_0x18d3ed(0x1bd),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x50e8a2]&&!ENUM_KEYS[_0x50e8a2][_0x18d3ed(0x1d7)](_0x328c7c))throw CliErrors['validation'](_0x18d3ed(0x1df)+_0x50e8a2+_0x18d3ed(0x1c2)+ENUM_KEYS[_0x50e8a2][_0x18d3ed(0x1e7)](',\x20'));if(_0x50e8a2===_0x18d3ed(0x1ea))throw CliErrors[_0x18d3ed(0x1e6)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x50e8a2===_0x18d3ed(0x1dc)){const _0x35148d=Number(_0x328c7c);if(isNaN(_0x35148d)||_0x35148d<=0x0)throw CliErrors[_0x18d3ed(0x1e6)](_0x18d3ed(0x1be));}const _0xa71731=resolveWriteScope({'explicitGlobal':_0x3487b6[_0x18d3ed(0x1ec)](_0x18d3ed(0x1d3)),'policy':_0x18d3ed(0x1c9)}),_0x3dbb37=toScopeFlags(_0xa71731),_0x5c14d8=readScopedConfig(_0x3dbb37);if(!isTopLevelConfigKey(_0x50e8a2))throw CliErrors[_0x18d3ed(0x1e6)]('Top-level\x20key\x20\x22'+_0x50e8a2+_0x18d3ed(0x1d9),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());return _0x5c14d8[_0x50e8a2]=_0x50e8a2==='pageSize'?Number(_0x328c7c):_0x328c7c,console['log']('Set\x20`'+_0x50e8a2+_0x18d3ed(0x1b4)+_0x328c7c+'\x22'+(_0xa71731===_0x18d3ed(0x1d3)?_0x18d3ed(0x1d8):'')),writeScopedConfig(_0x5c14d8,_0x3dbb37),{'ok':!![]};}},deleteDef={'service':a14_0x54b3b5(0x1cb),'command':a14_0x54b3b5(0x1c3),'description':a14_0x54b3b5(0x1b6),'risk':a14_0x54b3b5(0x1e3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x54b3b5(0x1e5),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x21f592){const _0x5e1aea=a14_0x54b3b5,_0x61f408=_0x21f592['args'][0x0];if(!_0x61f408)throw CliErrors[_0x5e1aea(0x1e6)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x5e1aea(0x1ba));const _0x3602af=resolveWriteScope({'explicitGlobal':_0x21f592[_0x5e1aea(0x1ec)](_0x5e1aea(0x1d3)),'policy':_0x5e1aea(0x1c9)}),_0xfe5213=toScopeFlags(_0x3602af),_0x134ba3=readScopedConfig(_0xfe5213);if(_0x134ba3[_0x61f408]===undefined)throw CliErrors[_0x5e1aea(0x1e6)](_0x5e1aea(0x1cf)+_0x61f408+_0x5e1aea(0x1eb));return delete _0x134ba3[_0x61f408],console[_0x5e1aea(0x1d5)](_0x5e1aea(0x1b8)+_0x61f408+'`'+(_0x3602af===_0x5e1aea(0x1d3)?_0x5e1aea(0x1d8):'')),writeScopedConfig(_0x134ba3,_0xfe5213),{'ok':!![]};}};function a14_0xe989(){const _0x56d39b=['join','get','51UpxjsF','riskLevel','\x22\x20not\x20found\x20at\x20top\x20level.','bool','\x20\x20project:\x20','`\x20=\x20\x22','1163763AKKKOk','Delete\x20a\x20config\x20value','read','Deleted\x20`','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20config\x20delete\x20<key>\x20[--global]','List\x20current\x20config','Key\x20not\x20found:\x20','Missing\x20key\x20or\x20value.','pageSize\x20must\x20be\x20a\x20positive\x20number','8OBKjzX','format','12RQgZqE','\x22.\x20Allowed:\x20','delete','24963RiQWoX','args','list','Missing\x20key\x20argument.','1245132eHASfM','project-or-global-explicit','(none)','config','Set\x20a\x20config\x20value','Write\x20to\x20global\x20config','33870aFDjCj','Key\x20\x22','object','1793LgUhXF','Get\x20a\x20config\x20value','global','12780261eujqLq','log','54115Dcskov','includes','\x20(global)','\x22\x20is\x20not\x20settable.','Usage:\x20','value','pageSize','Config\x20files:\x0a','split','Invalid\x20value\x20for\x20\x22','12LyRUaJ','../../context.js','11956eVCBsr','write','66nemqXy','key','validation'];a14_0xe989=function(){return _0x56d39b;};return a14_0xe989();}export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a15_0x40b8(){var _0x59d1fc=['317600fHYozx','379342rXgZkV','5045202ZWMxKa','3314620lrYxIo','2274464fWreMJ','3083760mneKuz','41959120HMjWTk','7toIKzu'];a15_0x40b8=function(){return _0x59d1fc;};return a15_0x40b8();}function a15_0x9148(_0x247902,_0x3fb8f1){_0x247902=_0x247902-0x64;var _0x40b880=a15_0x40b8();var _0x914846=_0x40b880[_0x247902];return _0x914846;}(function(_0x1965d9,_0x343b4e){var _0x347933=a15_0x9148,_0x3d350d=_0x1965d9();while(!![]){try{var _0x101cab=-parseInt(_0x347933(0x69))/0x1+-parseInt(_0x347933(0x6b))/0x2+-parseInt(_0x347933(0x65))/0x3+-parseInt(_0x347933(0x64))/0x4+parseInt(_0x347933(0x68))/0x5+-parseInt(_0x347933(0x6a))/0x6*(parseInt(_0x347933(0x67))/0x7)+parseInt(_0x347933(0x66))/0x8;if(_0x101cab===_0x343b4e)break;else _0x3d350d['push'](_0x3d350d['shift']());}catch(_0x5b29cd){_0x3d350d['push'](_0x3d350d['shift']());}}}(a15_0x40b8,0xcbb33));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a16_0x532557=a16_0x701a;(function(_0x4a7617,_0x10de30){const _0x242a0a=a16_0x701a,_0x27e891=_0x4a7617();while(!![]){try{const _0x58ab07=parseInt(_0x242a0a(0x154))/0x1+parseInt(_0x242a0a(0x176))/0x2*(parseInt(_0x242a0a(0x137))/0x3)+parseInt(_0x242a0a(0x146))/0x4*(-parseInt(_0x242a0a(0x172))/0x5)+-parseInt(_0x242a0a(0x151))/0x6*(parseInt(_0x242a0a(0x165))/0x7)+-parseInt(_0x242a0a(0x164))/0x8*(-parseInt(_0x242a0a(0x131))/0x9)+-parseInt(_0x242a0a(0x156))/0xa+parseInt(_0x242a0a(0x15f))/0xb*(parseInt(_0x242a0a(0x12b))/0xc);if(_0x58ab07===_0x10de30)break;else _0x27e891['push'](_0x27e891['shift']());}catch(_0x7d3e9f){_0x27e891['push'](_0x27e891['shift']());}}}(a16_0x2d6a,0x44052));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a16_0x701a(_0xbb6e01,_0x52192b){_0xbb6e01=_0xbb6e01-0x123;const _0x2d6a89=a16_0x2d6a();let _0x701a74=_0x2d6a89[_0xbb6e01];return _0x701a74;}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':'filter','risk':a16_0x532557(0x12f),'paramsRequired':![],'description':a16_0x532557(0x157),'paramsHint':a16_0x532557(0x163)+a16_0x532557(0x124),'helpExtra':['\x20\x20WHERE\x20OPERATORS',a16_0x532557(0x13b),a16_0x532557(0x153),a16_0x532557(0x145),a16_0x532557(0x149),a16_0x532557(0x139),a16_0x532557(0x166),a16_0x532557(0x177),a16_0x532557(0x128),a16_0x532557(0x16e),a16_0x532557(0x152),'',a16_0x532557(0x125),a16_0x532557(0x138),a16_0x532557(0x162),'',a16_0x532557(0x16c),a16_0x532557(0x13a),a16_0x532557(0x150),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a16_0x532557(0x14b),a16_0x532557(0x143),'',a16_0x532557(0x144),a16_0x532557(0x130),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a16_0x532557(0x12e)][a16_0x532557(0x129)]('\x0a')},{'command':a16_0x532557(0x12c),'operation':'getOne','risk':a16_0x532557(0x12f),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a16_0x532557(0x160)},{'command':'create','operation':a16_0x532557(0x159),'risk':a16_0x532557(0x123),'paramsRequired':!![],'description':a16_0x532557(0x13d),'paramsHint':a16_0x532557(0x15d)},{'command':a16_0x532557(0x14e),'operation':'batchCreate','risk':a16_0x532557(0x123),'paramsRequired':!![],'description':a16_0x532557(0x175),'paramsHint':a16_0x532557(0x167)},{'command':a16_0x532557(0x16a),'operation':a16_0x532557(0x16a),'risk':a16_0x532557(0x123),'paramsRequired':!![],'description':a16_0x532557(0x14d),'paramsHint':a16_0x532557(0x161)},{'command':a16_0x532557(0x178),'operation':a16_0x532557(0x178),'risk':'high-risk-write','paramsRequired':!![],'description':a16_0x532557(0x132),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':'aggregate','operation':'aggregate','risk':a16_0x532557(0x12f),'paramsRequired':![],'description':a16_0x532557(0x16d),'paramsHint':a16_0x532557(0x12a)+a16_0x532557(0x14f),'helpExtra':[a16_0x532557(0x15b),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}',a16_0x532557(0x127),a16_0x532557(0x134),a16_0x532557(0x148),a16_0x532557(0x15e),'','\x20\x20PARAMS\x20STRUCTURE',a16_0x532557(0x135),a16_0x532557(0x141),a16_0x532557(0x12d),a16_0x532557(0x13c),a16_0x532557(0x13e),a16_0x532557(0x169),'',a16_0x532557(0x15c),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','',a16_0x532557(0x13f),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27'][a16_0x532557(0x129)]('\x0a')}];function makeDataCommand(_0x388370){const _0x1fec66=a16_0x532557,_0x789cc2=_0x1fec66(0x142)+_0x388370['command'],_0x58840c={'service':_0x1fec66(0x168),'command':_0x388370[_0x1fec66(0x14c)],'description':_0x388370[_0x1fec66(0x174)],'risk':_0x388370['risk'],'helpExtra':_0x388370[_0x1fec66(0x16f)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x388370[_0x1fec66(0x170)]}],'validate':async _0x41bf9f=>{const _0x57aae1=_0x1fec66;_0x388370[_0x57aae1(0x147)]&&requireAnyOf(_0x41bf9f,[_0x57aae1(0x15a)],_0x789cc2),_0x388370['operation']==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x41bf9f[_0x57aae1(0x133)](_0x57aae1(0x15a))));},async 'execute'(_0x7de61c){const _0x5ba429=_0x1fec66,_0x313f2d=_0x7de61c['str'](_0x5ba429(0x140)),_0x5976cc=_0x388370['operation']===_0x5ba429(0x14e)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x7de61c[_0x5ba429(0x133)](_0x5ba429(0x15a)))):parseJsonParams(_0x7de61c[_0x5ba429(0x133)](_0x5ba429(0x15a)))??{},_0xd0783=Date[_0x5ba429(0x179)](),_0x580c47=await executeData(_0x313f2d,_0x388370['operation'],_0x5976cc),_0x1334c2=Date[_0x5ba429(0x179)]()-_0xd0783;return{'ok':!![],'data':{'result':_0x580c47,'elapsed':_0x1334c2},'message':'data\x20'+_0x388370[_0x5ba429(0x14c)]+_0x5ba429(0x16b)+_0x1334c2+'ms'};}};return _0x388370[_0x1fec66(0x126)]!==_0x1fec66(0x12f)&&(_0x58840c[_0x1fec66(0x136)]=async _0x32a8ac=>{const _0x4f3651=_0x1fec66,_0x4dba00=_0x32a8ac[_0x4f3651(0x133)](_0x4f3651(0x140)),_0x341fa2=_0x388370[_0x4f3651(0x14a)]===_0x4f3651(0x14e)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x32a8ac['str']('params'))):parseJsonParams(_0x32a8ac[_0x4f3651(0x133)]('params'))??{};return dryRun('POST',_0x4f3651(0x171)+_0x4dba00+'/'+_0x388370[_0x4f3651(0x14a)])[_0x4f3651(0x17a)](_0x341fa2)['description'](_0x4f3651(0x155)+_0x388370[_0x4f3651(0x14c)]+_0x4f3651(0x173)+_0x4dba00)[_0x4f3651(0x158)]();}),_0x58840c;}export const dataDefinitions=specs['map'](makeDataCommand);function a16_0x2d6a(){const _0x2303cd=['\x20completed\x20in\x20','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','helpExtra','paramsHint','/api/{appCode}/','1228915LMAMgX','\x20on\x20dataset\x20','description','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','3464ixniOI','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','delete','now','body','write','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20LOGICAL\x20COMBINATORS','risk','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','join','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','12kZTetz','getOne','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','read','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','4890159BJOfrb','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','str','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','dryRun','123JAWqbZ','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','code','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','data\x20','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20PAGINATION','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','4wHxMUl','paramsRequired','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','operation','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','command','Update\x20an\x20existing\x20record','batchCreate','Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','1178322MXXVxY','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','46450SXDePv','Preview:\x20data\x20','5470080qOBJjb','Filter\x20dataset\x20records\x20with\x20query\x20conditions','build','create','params','\x20\x20AGGREGATE\x20TYPES','\x20\x20EXAMPLES','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','6676725BNSMrZ','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','8BERXLV','7DCvdaZ','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','update'];a16_0x2d6a=function(){return _0x2303cd;};return a16_0x2d6a();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a17_0x42c4a0=a17_0x4e90;(function(_0x294317,_0x27515b){const _0x1bf66e=a17_0x4e90,_0x382cc1=_0x294317();while(!![]){try{const _0x385fea=-parseInt(_0x1bf66e(0x113))/0x1*(parseInt(_0x1bf66e(0x10f))/0x2)+parseInt(_0x1bf66e(0x11c))/0x3+parseInt(_0x1bf66e(0xfe))/0x4*(parseInt(_0x1bf66e(0xe8))/0x5)+-parseInt(_0x1bf66e(0x102))/0x6+parseInt(_0x1bf66e(0xee))/0x7+-parseInt(_0x1bf66e(0x103))/0x8*(-parseInt(_0x1bf66e(0xf3))/0x9)+-parseInt(_0x1bf66e(0x108))/0xa;if(_0x385fea===_0x27515b)break;else _0x382cc1['push'](_0x382cc1['shift']());}catch(_0x14cdbd){_0x382cc1['push'](_0x382cc1['shift']());}}}(a17_0x5d72,0x915e1));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x4b2be4){const _0x3dc1f8=a17_0x4e90;if(_0x4b2be4[_0x3dc1f8(0x118)])return null;const _0x3496f0=Boolean(_0x4b2be4[_0x3dc1f8(0x109)]!==undefined||_0x4b2be4[_0x3dc1f8(0x11b)]!==undefined);let _0x18d595={};if(!_0x3496f0&&typeof _0x4b2be4[_0x3dc1f8(0x12a)]===_0x3dc1f8(0x106))try{_0x18d595=JSON[_0x3dc1f8(0x130)](_0x4b2be4[_0x3dc1f8(0x12a)]);}catch{}const _0x501136=_0x3496f0?_0x4b2be4['name']:_0x4b2be4[_0x3dc1f8(0x125)],_0x26e263=_0x3496f0?_0x4b2be4[_0x3dc1f8(0x109)]:_0x4b2be4['name'],_0x30ab47=_0x3496f0?_0x4b2be4[_0x3dc1f8(0x11b)]:_0x4b2be4[_0x3dc1f8(0x116)]||_0x4b2be4['dataType'],_0x419f73=_0x3496f0?_0x4b2be4['pkField']===!![]:_0x18d595[_0x3dc1f8(0xe9)]===!![],_0x332fb1=_0x3496f0?_0x4b2be4[_0x3dc1f8(0x129)]===!![]:_0x18d595[_0x3dc1f8(0x129)]===!![],_0x13495e=_0x3496f0?_0x4b2be4[_0x3dc1f8(0xed)]??null:_0x18d595[_0x3dc1f8(0xed)]??null,_0x1762ad={'name':_0x501136,'displayName':_0x26e263||_0x501136,'type':_0x30ab47,'dbType':_0x4b2be4['dbType'],'pk':_0x419f73,'required':_0x332fb1,'description':_0x4b2be4[_0x3dc1f8(0xe5)]||undefined};return Array[_0x3dc1f8(0x110)](_0x13495e)&&_0x13495e[_0x3dc1f8(0x117)]>0x0&&(_0x1762ad[_0x3dc1f8(0xed)]=_0x13495e),_0x1762ad;}function a17_0x5d72(){const _0x4d3b47=['path','306xojYGH','responseFields','relations','modifierNameField','requestBody','modifierIdField','entries','dblinkInfoDTO','createTimeField','detail','trim','208436ubtfel','method','modelCode','modelId','5072940eVTbot','241784qIJCfD','dbtableConfig','fromField','string','toDatasetName','12367600NxcRwn','displayName','dbId','dbName','indexes','labelField','responseBody','10844DavTDJ','isArray','read','name','71fPJRVN','toTableName','validateRules','type','length','deleted','str','requestFields','doType','3380991BWyaNS','filter','datasetKey','tableName','allFields','properties','source','sourceType','logicField','code','object','creatorNameField','allFieldNames','required','extend','updateTimeField','doVersion','formatRules','map','operations','parse','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','beforeScriptId','description','fields','host','10fFaHpj','pkField','tableComment','title','afterScriptId','options','5626880WOWFQY','columnCodeListWithDeleted','split','dataset'];a17_0x5d72=function(){return _0x4d3b47;};return a17_0x5d72();}function parseJsonMaybe(_0x164533){const _0x1758d0=a17_0x4e90;if(typeof _0x164533!==_0x1758d0(0x106))return _0x164533;try{return JSON['parse'](_0x164533);}catch{return _0x164533;}}function normalizeOperationEntry(_0x12e829,_0xd260a1){const _0x142c1a=a17_0x4e90;if(!_0xd260a1||typeof _0xd260a1!==_0x142c1a(0x126))return null;if(!_0xd260a1[_0x142c1a(0xff)]||!_0xd260a1[_0x142c1a(0xf2)])return null;const _0x32b5ff={'name':_0x12e829,'method':_0xd260a1[_0x142c1a(0xff)],'path':_0xd260a1[_0x142c1a(0xf2)]};if(_0xd260a1[_0x142c1a(0xe7)])_0x32b5ff[_0x142c1a(0xe7)]=_0xd260a1[_0x142c1a(0xe7)];if(_0xd260a1[_0x142c1a(0xf7)]!=null)_0x32b5ff[_0x142c1a(0xf7)]=parseJsonMaybe(_0xd260a1[_0x142c1a(0xf7)]);if(_0xd260a1['responseBody']!=null)_0x32b5ff[_0x142c1a(0x10e)]=parseJsonMaybe(_0xd260a1[_0x142c1a(0x10e)]);if(_0xd260a1[_0x142c1a(0xe4)]!=null)_0x32b5ff[_0x142c1a(0xe4)]=_0xd260a1[_0x142c1a(0xe4)];if(_0xd260a1['afterScriptId']!=null)_0x32b5ff[_0x142c1a(0xec)]=_0xd260a1['afterScriptId'];if(Array[_0x142c1a(0x110)](_0xd260a1[_0x142c1a(0x11a)]))_0x32b5ff[_0x142c1a(0x11a)]=_0xd260a1[_0x142c1a(0x11a)];if(Array[_0x142c1a(0x110)](_0xd260a1[_0x142c1a(0xf4)]))_0x32b5ff[_0x142c1a(0xf4)]=_0xd260a1[_0x142c1a(0xf4)];return _0x32b5ff;}function a17_0x4e90(_0x4723c4,_0x28f11f){_0x4723c4=_0x4723c4-0xe3;const _0x5d72dc=a17_0x5d72();let _0x4e904b=_0x5d72dc[_0x4723c4];return _0x4e904b;}function summarizeDbtable(_0x66ae43){const _0x175de7=a17_0x4e90,_0x26e434={},_0x1bd9ce=[_0x175de7(0x10a),_0x175de7(0x10b),_0x175de7(0x11f),_0x175de7(0x11e),_0x175de7(0xe9),_0x175de7(0x120),_0x175de7(0x124),_0x175de7(0xfb),_0x175de7(0x12b),'creatorIdField',_0x175de7(0x127),_0x175de7(0xf8),_0x175de7(0xf6),_0x175de7(0x10d),_0x175de7(0xfa)];for(const _0x3245a9 of _0x1bd9ce){if(_0x66ae43[_0x3245a9]!==undefined)_0x26e434[_0x3245a9]=_0x66ae43[_0x3245a9];}return typeof _0x26e434[_0x175de7(0x120)]==='string'&&_0x26e434[_0x175de7(0x120)]['length']>0x0&&(_0x26e434[_0x175de7(0x128)]=_0x26e434[_0x175de7(0x120)][_0x175de7(0xf0)](',')[_0x175de7(0x12e)](_0x36ac86=>_0x36ac86[_0x175de7(0xfd)]())['filter'](Boolean)),_0x26e434;}function normalizeRelatedPages(_0xbb7008){const _0x46706=a17_0x4e90;if(!Array[_0x46706(0x110)](_0xbb7008))return[];return _0xbb7008[_0x46706(0x11d)](_0x22169f=>_0x22169f&&typeof _0x22169f==='object')['map'](_0x5424fe=>({'id':_0x5424fe['id'],'type':_0x5424fe['type'],'code':_0x5424fe[_0x46706(0x125)],'title':_0x5424fe[_0x46706(0xeb)],'deleted':_0x5424fe['deleted']===!![]}));}export const datasetDetail={'service':'dataset','command':a17_0x42c4a0(0xfc),'description':a17_0x42c4a0(0xe3),'risk':a17_0x42c4a0(0x111),'flags':[CODE_FLAG],async 'execute'(_0x1d6cb8){const _0x3b41e6=a17_0x42c4a0,_0x5413a1=await getDatasetDetail(_0x1d6cb8[_0x3b41e6(0x119)]('code')),_0x2ee00c=Array[_0x3b41e6(0x110)](_0x5413a1['fields'])?_0x5413a1[_0x3b41e6(0xe6)]:Array['isArray'](_0x5413a1[_0x3b41e6(0x121)])?_0x5413a1['properties']:[],_0x63c37a=_0x2ee00c[_0x3b41e6(0x12e)](_0x366a45=>normalizeField(_0x366a45))[_0x3b41e6(0x11d)](_0x536444=>_0x536444!==null),_0x4bd004=_0x5413a1[_0x3b41e6(0x12f)]??{},_0x320037=[];for(const [_0x107c62,_0x3fe2e2]of Object[_0x3b41e6(0xf9)](_0x4bd004)){const _0x2e43e1=normalizeOperationEntry(_0x107c62,_0x3fe2e2);if(_0x2e43e1)_0x320037['push'](_0x2e43e1);}const _0x23de5f=_0x5413a1[_0x3b41e6(0x104)]??{},_0x416873=_0x5413a1[_0x3b41e6(0xf1)]??{},_0x309c5d=_0x23de5f['dbId']!=null?{'id':_0x23de5f['dbId'],'name':_0x23de5f[_0x3b41e6(0x10b)]??null}:undefined;let _0x4b8269;return typeof _0x5413a1[_0x3b41e6(0x12a)]===_0x3b41e6(0x106)&&(_0x4b8269=parseJsonMaybe(_0x5413a1[_0x3b41e6(0x12a)])),{'ok':!![],'data':{'id':_0x5413a1[_0x3b41e6(0x101)]??_0x5413a1['id'],'name':_0x5413a1[_0x3b41e6(0x112)],'code':_0x5413a1[_0x3b41e6(0x100)]||_0x5413a1['code'],'doVersion':_0x5413a1[_0x3b41e6(0x12c)],'description':_0x5413a1['description']||_0x416873[_0x3b41e6(0xea)]||undefined,'source':_0x5413a1[_0x3b41e6(0x122)]||_0x416873[_0x3b41e6(0x123)],'table':_0x23de5f[_0x3b41e6(0x11f)]||_0x416873[_0x3b41e6(0x11f)],'datasetKey':_0x23de5f[_0x3b41e6(0x11e)],'pk':_0x23de5f[_0x3b41e6(0xe9)],'db':_0x309c5d,'dbtable':summarizeDbtable(_0x23de5f),'fields':_0x63c37a,'operations':_0x320037,'indexes':Array[_0x3b41e6(0x110)](_0x416873[_0x3b41e6(0x10c)])?_0x416873[_0x3b41e6(0x10c)]:[],'relations':Array[_0x3b41e6(0x110)](_0x5413a1[_0x3b41e6(0xf5)])?_0x5413a1[_0x3b41e6(0xf5)]['map'](_0x493345=>({'fromField':_0x493345[_0x3b41e6(0x105)],'toDataset':_0x493345[_0x3b41e6(0x107)],'toCode':_0x493345['toDatasetCode'],'toTable':_0x493345[_0x3b41e6(0x114)],'toField':_0x493345['toField'],'labelField':_0x493345['toFieldLabel']||undefined})):[],'relatedPages':normalizeRelatedPages(_0x5413a1['relatedPageInfoList']),...Array[_0x3b41e6(0x110)](_0x5413a1[_0x3b41e6(0xef)])?{'columnCodeListWithDeleted':_0x5413a1[_0x3b41e6(0xef)]}:{},'formatRules':Array[_0x3b41e6(0x110)](_0x5413a1[_0x3b41e6(0x12d)])?_0x5413a1[_0x3b41e6(0x12d)]:[],'validateRules':Array[_0x3b41e6(0x110)](_0x5413a1['validateRules'])?_0x5413a1[_0x3b41e6(0x115)]:[],..._0x4b8269!==undefined?{'extend':_0x4b8269}:{},'stats':{'fieldCount':_0x63c37a[_0x3b41e6(0x117)],'operationCount':_0x320037[_0x3b41e6(0x117)]}}};}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x235c30,_0x5c562f){const _0x25d494=a18_0x1b89,_0x25a465=_0x235c30();while(!![]){try{const _0x2fb7d0=parseInt(_0x25d494(0x1cb))/0x1*(-parseInt(_0x25d494(0x1cd))/0x2)+parseInt(_0x25d494(0x1c9))/0x3*(-parseInt(_0x25d494(0x1d1))/0x4)+-parseInt(_0x25d494(0x1cc))/0x5*(-parseInt(_0x25d494(0x1c8))/0x6)+-parseInt(_0x25d494(0x1cf))/0x7*(parseInt(_0x25d494(0x1d0))/0x8)+-parseInt(_0x25d494(0x1c7))/0x9+parseInt(_0x25d494(0x1ca))/0xa+parseInt(_0x25d494(0x1ce))/0xb;if(_0x2fb7d0===_0x5c562f)break;else _0x25a465['push'](_0x25a465['shift']());}catch(_0x49e4b8){_0x25a465['push'](_0x25a465['shift']());}}}(a18_0x450d,0xe4940));import{datasetList}from'../../commands/dataset/list.js';function a18_0x450d(){const _0x1c8a93=['6398910oukoJf','1849278qAIqEX','78ajBORb','6579690fgBwsu','1dzmTZv','5evVLge','3411274GlXVxE','48491905EQhHpG','854889CPhTSN','80TPPzsa','123136yNsTCx'];a18_0x450d=function(){return _0x1c8a93;};return a18_0x450d();}import{datasetDetail}from'../../commands/dataset/detail.js';function a18_0x1b89(_0x4f983d,_0x489efb){_0x4f983d=_0x4f983d-0x1c7;const _0x450d89=a18_0x450d();let _0x1b891a=_0x450d89[_0x4f983d];return _0x1b891a;}export const datasetDefinitions=[datasetList,datasetDetail];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a19_0x1b6f7a=a19_0x9923;function a19_0x30a6(){const _0x2a7615=['5DJxLzf','list','3929328ulZNrz','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','2200AVDFbs','split','12gRVSgu','dataset','length','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','trim','730419cZEdow','pkField','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','138934JFdeyx','38710XOaqnW','appCode','allFields','str','tableName','dbtableConfig','description','map','1941618mldSWW','1183264YINnuk','4hRUIKs','2636385QnjbPN','datasetKey','string','code','name'];a19_0x30a6=function(){return _0x2a7615;};return a19_0x30a6();}(function(_0x206df5,_0x34906c){const _0xa0ea32=a19_0x9923,_0x2e7387=_0x206df5();while(!![]){try{const _0x41280c=-parseInt(_0xa0ea32(0x1ec))/0x1*(-parseInt(_0xa0ea32(0x1fa))/0x2)+parseInt(_0xa0ea32(0x1f7))/0x3+parseInt(_0xa0ea32(0x205))/0x4*(parseInt(_0xa0ea32(0x206))/0x5)+parseInt(_0xa0ea32(0x1f2))/0x6*(parseInt(_0xa0ea32(0x203))/0x7)+-parseInt(_0xa0ea32(0x204))/0x8+-parseInt(_0xa0ea32(0x1ee))/0x9+-parseInt(_0xa0ea32(0x1fb))/0xa*(parseInt(_0xa0ea32(0x1f0))/0xb);if(_0x41280c===_0x34906c)break;else _0x2e7387['push'](_0x2e7387['shift']());}catch(_0x47af27){_0x2e7387['push'](_0x2e7387['shift']());}}}(a19_0x30a6,0x4cb15));import{listDatasets}from'../../core/api-client.js';function a19_0x9923(_0x443e2a,_0x3d9404){_0x443e2a=_0x443e2a-0x1ec;const _0x30a664=a19_0x30a6();let _0x99232=_0x30a664[_0x443e2a];return _0x99232;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a19_0x1b6f7a(0x1f3),'command':a19_0x1b6f7a(0x1ed),'description':a19_0x1b6f7a(0x1f9),'risk':'read','flags':[{'name':'name','type':a19_0x1b6f7a(0x208),'description':a19_0x1b6f7a(0x1f5)},{...CODE_FLAG,'required':![],'description':a19_0x1b6f7a(0x1ef)}],async 'execute'(_0x5801d7){const _0x1b33ca=a19_0x1b6f7a,_0x5038e0=_0x5801d7[_0x1b33ca(0x1fe)](_0x1b33ca(0x20a)),_0x5b8daf=_0x5801d7[_0x1b33ca(0x1fe)](_0x1b33ca(0x209)),_0x4bcb77=await listDatasets(_0x5801d7[_0x1b33ca(0x1fc)],{..._0x5038e0&&{'name':_0x5038e0},..._0x5b8daf&&{'code':_0x5b8daf}});return{'ok':!![],'data':{'total':_0x4bcb77[_0x1b33ca(0x1f4)],'datasets':_0x4bcb77[_0x1b33ca(0x202)](_0x187f4f=>{const _0x15ad8a=_0x1b33ca,_0x558261=_0x187f4f[_0x15ad8a(0x200)]??{};return{'id':_0x187f4f['id'],'code':_0x187f4f['code'],'name':_0x187f4f[_0x15ad8a(0x20a)],'source':_0x187f4f['source'],'description':_0x187f4f[_0x15ad8a(0x201)],'table':_0x558261[_0x15ad8a(0x1ff)],'datasetKey':_0x558261[_0x15ad8a(0x207)],'pk':_0x558261[_0x15ad8a(0x1f8)],'fields':_0x558261[_0x15ad8a(0x1fd)]?_0x558261['allFields'][_0x15ad8a(0x1f1)](',')[_0x15ad8a(0x202)](_0x430b30=>_0x430b30[_0x15ad8a(0x1f6)]()):[]};})}};}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a20_0x253901=a20_0x58f7;(function(_0xbe9211,_0x30cd70){const _0x58421d=a20_0x58f7,_0x293abd=_0xbe9211();while(!![]){try{const _0x10f858=-parseInt(_0x58421d(0xbb))/0x1+parseInt(_0x58421d(0xc4))/0x2*(-parseInt(_0x58421d(0xbf))/0x3)+-parseInt(_0x58421d(0x89))/0x4*(parseInt(_0x58421d(0xaa))/0x5)+parseInt(_0x58421d(0xaf))/0x6+parseInt(_0x58421d(0xc1))/0x7*(parseInt(_0x58421d(0xb7))/0x8)+-parseInt(_0x58421d(0x86))/0x9+-parseInt(_0x58421d(0x98))/0xa*(-parseInt(_0x58421d(0xb4))/0xb);if(_0x10f858===_0x30cd70)break;else _0x293abd['push'](_0x293abd['shift']());}catch(_0x9700fc){_0x293abd['push'](_0x293abd['shift']());}}}(a20_0x329d,0xa90ea));function a20_0x58f7(_0x40d654,_0x321ed8){_0x40d654=_0x40d654-0x7f;const _0x329dc8=a20_0x329d();let _0x58f75e=_0x329dc8[_0x40d654];return _0x58f75e;}import a20_0x24a85a from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';function a20_0x329d(){const _0x3b36ea=['\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','40QWWWoU','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','check','\x20\x20Session\x20check:\x20\x20\x20','(none)','\x20\x20runtimeDomain:\x20\x20\x20','format','(default)','bold','locale','⚠\x20Empty\x20(treated\x20as\x20{})','appCode','(not\x20found)','\x20\x20Config\x20JSON','accessKey','status','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','Global','1455525OxVtOF','(not\x20set)','(set,\x20length=','log','red','3262338izmVzX','repeat','verbose','message','padEnd','9430311EYIDSP','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','100752NDQMou','\x20\x20Merged\x20Config','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','doctor','1240366idrMGP','\x20doctor','pageSize','Diagnose\x20CLI\x20configuration\x20and\x20environment','3BetmDu','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','560PGNjFc','platform','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2003102MNIAUR','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ClientAk','length','(default:\x20','(no\x20file)','missing','✓\x20Valid\x20JSON','green','10554813Xdktqr','currentApp','\x20\x20Config\x20Files','12xjdAdo','(removed\x20—\x20cookie\x20auth\x20disabled)','(missing)','\x20\x20─','\x20(legacy/compat\x20only)','arch','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','read','yellow','gray','version','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'];a20_0x329d=function(){return _0x3b36ea;};return a20_0x329d();}import{isLegacyCompatConfigKey}from'../config/schema.js';async function execute(_0x338198){const _0x1a8ca0=a20_0x58f7,_0xef56e0=getCliVersion(),_0x125213=buildConfigFromFlags({});await initGlobalEnvironment(_0x125213),console[_0x1a8ca0(0xad)](),console[_0x1a8ca0(0xad)](a20_0x24a85a[_0x1a8ca0(0xa0)](CLI_BIN_NAME+_0x1a8ca0(0xbc))),console['log'](a20_0x24a85a[_0x1a8ca0(0x93)]('─'[_0x1a8ca0(0xb0)](0x32))),console[_0x1a8ca0(0xad)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0xef56e0),console[_0x1a8ca0(0xad)](_0x1a8ca0(0xc5)+process[_0x1a8ca0(0x94)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1a8ca0(0xc2)]+'\x20'+process[_0x1a8ca0(0x8e)]),console[_0x1a8ca0(0xad)](),console[_0x1a8ca0(0xad)](a20_0x24a85a[_0x1a8ca0(0xa0)](_0x1a8ca0(0x88))),console[_0x1a8ca0(0xad)](a20_0x24a85a['gray'](_0x1a8ca0(0x8c)[_0x1a8ca0(0xb0)](0x1e)));const _0x585643=getGlobalConfigPath(),_0x464bd2=getProjectConfigPath();console[_0x1a8ca0(0xad)](_0x1a8ca0(0xc3)+(_0x585643||a20_0x24a85a['gray'](_0x1a8ca0(0xa4)))),console[_0x1a8ca0(0xad)](_0x1a8ca0(0xc0)+(_0x464bd2||a20_0x24a85a[_0x1a8ca0(0x93)]('(not\x20found)'))),console[_0x1a8ca0(0xad)](),console['log'](a20_0x24a85a[_0x1a8ca0(0xa0)](_0x1a8ca0(0xa5))),console[_0x1a8ca0(0xad)](a20_0x24a85a[_0x1a8ca0(0x93)]('\x20\x20─'[_0x1a8ca0(0xb0)](0x1e)));const _0x1897c4=(_0x55ae09,_0x1f8ac4)=>{const _0x17db60=_0x1a8ca0;if(!_0x1f8ac4){console[_0x17db60(0xad)]('\x20\x20'+_0x55ae09['padEnd'](0x11)+'\x20'+a20_0x24a85a[_0x17db60(0x93)](_0x17db60(0x82)));return;}const _0x51c4e8=inspectCliConfigJsonFile(_0x1f8ac4);if(_0x51c4e8[_0x17db60(0xa7)]==='ok')console[_0x17db60(0xad)]('\x20\x20'+_0x55ae09[_0x17db60(0xb3)](0x11)+'\x20'+a20_0x24a85a[_0x17db60(0x85)](_0x17db60(0x84)));else{if(_0x51c4e8[_0x17db60(0xa7)]==='empty')console[_0x17db60(0xad)]('\x20\x20'+_0x55ae09[_0x17db60(0xb3)](0x11)+'\x20'+a20_0x24a85a[_0x17db60(0x92)](_0x17db60(0xa2)));else _0x51c4e8[_0x17db60(0xa7)]===_0x17db60(0x83)?console[_0x17db60(0xad)]('\x20\x20'+_0x55ae09[_0x17db60(0xb3)](0x11)+'\x20'+a20_0x24a85a['gray'](_0x17db60(0x8b))):(console[_0x17db60(0xad)]('\x20\x20'+_0x55ae09['padEnd'](0x11)+'\x20'+a20_0x24a85a[_0x17db60(0xae)](_0x17db60(0x97))),console[_0x17db60(0xad)]('\x20\x20'+''[_0x17db60(0xb3)](0x11)+'\x20'+a20_0x24a85a[_0x17db60(0xae)](_0x51c4e8[_0x17db60(0xb2)])));}};_0x1897c4(_0x1a8ca0(0xa9),_0x585643),_0x1897c4(_0x1a8ca0(0xb6),_0x464bd2),console[_0x1a8ca0(0xad)](),console[_0x1a8ca0(0xad)](a20_0x24a85a['bold'](_0x1a8ca0(0xb8))),console[_0x1a8ca0(0xad)](a20_0x24a85a[_0x1a8ca0(0x93)](_0x1a8ca0(0x8c)[_0x1a8ca0(0xb0)](0x1e))),console[_0x1a8ca0(0xad)](_0x1a8ca0(0x8f)+(_0x125213[_0x1a8ca0(0xa3)]||a20_0x24a85a[_0x1a8ca0(0xae)](_0x1a8ca0(0xab)))),console[_0x1a8ca0(0xad)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x125213['env']);const _0x27861f=isLegacyCompatConfigKey(_0x1a8ca0(0xa1))?a20_0x24a85a['gray'](_0x125213['locale']+_0x1a8ca0(0x8d)):_0x125213[_0x1a8ca0(0xa1)];return console[_0x1a8ca0(0xad)](_0x1a8ca0(0xc7)+_0x27861f),console[_0x1a8ca0(0xad)](_0x1a8ca0(0x99)+(_0x125213['defaultApp']||a20_0x24a85a['gray'](_0x1a8ca0(0x9c)))),console['log'](_0x1a8ca0(0xb9)+(_0x125213[_0x1a8ca0(0x87)]||a20_0x24a85a[_0x1a8ca0(0x93)]('(none)'))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x125213[_0x1a8ca0(0x9e)]||a20_0x24a85a[_0x1a8ca0(0x93)](_0x1a8ca0(0x81)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x1a8ca0(0xad)](_0x1a8ca0(0xa8)+(_0x125213[_0x1a8ca0(0xbd)]??a20_0x24a85a[_0x1a8ca0(0x93)](_0x1a8ca0(0x9f)))),console[_0x1a8ca0(0xad)](_0x1a8ca0(0x95)+_0x125213['riskLevel']),console[_0x1a8ca0(0xad)](_0x1a8ca0(0xb5)+_0x125213[_0x1a8ca0(0xb1)]),console[_0x1a8ca0(0xad)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE['ClientAk']),console['log']('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x125213[_0x1a8ca0(0xa6)]?a20_0x24a85a['green'](_0x1a8ca0(0xac)+_0x125213[_0x1a8ca0(0xa6)][_0x1a8ca0(0x80)]+')'):a20_0x24a85a[_0x1a8ca0(0x93)]('(none)'))),console[_0x1a8ca0(0xad)](),console['log'](a20_0x24a85a[_0x1a8ca0(0xa0)](_0x1a8ca0(0xc6))),console[_0x1a8ca0(0xad)](a20_0x24a85a[_0x1a8ca0(0x93)]('\x20\x20─'[_0x1a8ca0(0xb0)](0x1e))),console[_0x1a8ca0(0xad)](_0x1a8ca0(0x90)+getApiDomain()),console[_0x1a8ca0(0xad)](_0x1a8ca0(0x96)+getUserDomain()),console['log'](_0x1a8ca0(0x9d)+getRuntimeDomain()),console[_0x1a8ca0(0xad)](),console[_0x1a8ca0(0xad)](a20_0x24a85a[_0x1a8ca0(0xa0)]('\x20\x20Auth')),console[_0x1a8ca0(0xad)](a20_0x24a85a[_0x1a8ca0(0x93)](_0x1a8ca0(0x8c)['repeat'](0x1e))),console[_0x1a8ca0(0xad)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a20_0x24a85a[_0x1a8ca0(0x85)](AUTH_MODE[_0x1a8ca0(0x7f)]+'\x20(accessKey)')),console[_0x1a8ca0(0xad)](_0x1a8ca0(0x9b)+a20_0x24a85a['gray'](_0x1a8ca0(0x8a))),console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a20_0x253901(0xba),'command':a20_0x253901(0x9a),'description':a20_0x253901(0xbe),'risk':a20_0x253901(0x91),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a21_0x9c42(){const _0x2b7737=['12994950SnXHYg','init','10772744FUEryr','create','1151279TuNkeg','58068GNSQGg','1671tpjQgt','type','9QrpJYK','5908ynPEXN','185TMgdRK','13600839GbRTYG','bool','boolean','1408592vFzuVT','name','nonInteractive'];a21_0x9c42=function(){return _0x2b7737;};return a21_0x9c42();}const a21_0x4a3192=a21_0x1cef;function a21_0x1cef(_0x218252,_0x17f618){_0x218252=_0x218252-0x1ad;const _0x9c429e=a21_0x9c42();let _0x1cef81=_0x9c429e[_0x218252];return _0x1cef81;}(function(_0x3cb417,_0x131f85){const _0x161625=a21_0x1cef,_0x469a13=_0x3cb417();while(!![]){try{const _0xab856d=-parseInt(_0x161625(0x1b8))/0x1+parseInt(_0x161625(0x1b1))/0x2+parseInt(_0x161625(0x1ba))/0x3*(-parseInt(_0x161625(0x1bd))/0x4)+parseInt(_0x161625(0x1ad))/0x5*(parseInt(_0x161625(0x1b9))/0x6)+parseInt(_0x161625(0x1ae))/0x7+-parseInt(_0x161625(0x1b6))/0x8*(parseInt(_0x161625(0x1bc))/0x9)+parseInt(_0x161625(0x1b4))/0xa;if(_0xab856d===_0x131f85)break;else _0x469a13['push'](_0x469a13['shift']());}catch(_0x3c5b23){_0x469a13['push'](_0x469a13['shift']());}}}(a21_0x9c42,0xf04e5));import{runInit,initCreateFlagDefs}from'../../commands/init.js';function collectFlags(_0x58a8cf,_0x2c1932){const _0x1c1961=a21_0x1cef,_0x19cae1={};for(const _0x43aec8 of _0x2c1932){const _0x3fed5d=_0x43aec8[_0x1c1961(0x1bb)]===_0x1c1961(0x1b0)?_0x58a8cf[_0x1c1961(0x1af)](_0x43aec8['name']):_0x58a8cf['str'](_0x43aec8['name']);if(_0x3fed5d!==''&&_0x3fed5d!==![])_0x19cae1[_0x43aec8[_0x1c1961(0x1b2)]]=_0x3fed5d;}if(_0x58a8cf[_0x1c1961(0x1b3)])_0x19cae1['nonInteractive']=!![];return _0x19cae1;}export const initDefinitions=[{'service':a21_0x4a3192(0x1b5),'command':a21_0x4a3192(0x1b7),'description':'Initialize\x20.lovrabet.json\x20config\x20file','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x46be29){return await runInit(collectFlags(_0x46be29,initCreateFlagDefs)),{'ok':!![]};}}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a22_0x319fbc=a22_0x4249;(function(_0x11a38e,_0x2135ca){const _0x2d4c4e=a22_0x4249,_0x362d9e=_0x11a38e();while(!![]){try{const _0x5a563a=parseInt(_0x2d4c4e(0x1aa))/0x1*(parseInt(_0x2d4c4e(0x182))/0x2)+-parseInt(_0x2d4c4e(0x1a3))/0x3*(-parseInt(_0x2d4c4e(0x19d))/0x4)+parseInt(_0x2d4c4e(0x1a6))/0x5+-parseInt(_0x2d4c4e(0x18d))/0x6*(parseInt(_0x2d4c4e(0x166))/0x7)+-parseInt(_0x2d4c4e(0x174))/0x8+-parseInt(_0x2d4c4e(0x1ad))/0x9*(parseInt(_0x2d4c4e(0x1a2))/0xa)+-parseInt(_0x2d4c4e(0x192))/0xb*(-parseInt(_0x2d4c4e(0x171))/0xc);if(_0x5a563a===_0x2135ca)break;else _0x362d9e['push'](_0x362d9e['shift']());}catch(_0x4b35ed){_0x362d9e['push'](_0x362d9e['shift']());}}}(a22_0x1eff,0xbf57f));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';function a22_0x4249(_0x5ab21d,_0x57a0eb){_0x5ab21d=_0x5ab21d-0x166;const _0x1effd4=a22_0x1eff();let _0x424969=_0x1effd4[_0x5ab21d];return _0x424969;}import{CLI_BIN_NAME}from'../constant/cli.js';export const initCreateFlagDefs=[{'name':'appcode','type':a22_0x319fbc(0x16e),'description':a22_0x319fbc(0x1ae)},{'name':a22_0x319fbc(0x1a4),'type':'string','description':a22_0x319fbc(0x173)+DEFAULT_CONFIG_VALUES[a22_0x319fbc(0x1a4)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a22_0x319fbc(0x181),'type':a22_0x319fbc(0x196),'description':a22_0x319fbc(0x194),'default':![]},{'name':a22_0x319fbc(0x198),'type':a22_0x319fbc(0x196),'description':a22_0x319fbc(0x1a9),'default':![]}];export const initImportFlagDefs=[{'name':a22_0x319fbc(0x1a8),'type':a22_0x319fbc(0x16e),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a22_0x319fbc(0x16c),'type':a22_0x319fbc(0x16e),'description':a22_0x319fbc(0x191)},{'name':a22_0x319fbc(0x1a4),'type':a22_0x319fbc(0x16e),'description':a22_0x319fbc(0x16a),'enum':[...RUNTIME_ENV_VALUES]},{'name':a22_0x319fbc(0x181),'type':a22_0x319fbc(0x196),'description':a22_0x319fbc(0x194),'default':![]},{'name':a22_0x319fbc(0x198),'type':a22_0x319fbc(0x196),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runInit(_0xa87619){const _0x50a62b=a22_0x319fbc,_0x4a7689=isNonInteractiveMode(_0xa87619),_0x5958d7=_0xa87619[_0x50a62b(0x181)]?_0x50a62b(0x181):_0x50a62b(0x184),_0x144523=resolveWriteConfigPath(_0x5958d7);try{_0x4a7689?await runNonInteractive(_0xa87619,_0x144523):await runInteractive(_0xa87619,_0x144523);}catch(_0x5d800f){if(_0x5d800f instanceof AbortPrompt)throw CliErrors[_0x50a62b(0x19e)]();throw _0x5d800f;}}export async function runInitImport(_0x2d39b2){const _0x5a0e49=a22_0x319fbc,_0x9d8c11=_0x2d39b2[_0x5a0e49(0x181)]?_0x5a0e49(0x181):_0x5a0e49(0x184),_0x4cab11=resolveWriteConfigPath(_0x9d8c11);await runFromImport(_0x2d39b2,_0x4cab11);}const RUNTIME_IRRELEVANT_KEYS=new Set([a22_0x319fbc(0x17e)]);async function runFromImport(_0x2a290b,_0x2d6126){const _0x1dfca1=a22_0x319fbc,_0x512a2=resolveFilePath(_0x2a290b[_0x1dfca1(0x1a8)]);if(!existsSync(_0x512a2))throw CliErrors[_0x1dfca1(0x17c)](_0x1dfca1(0x185)+_0x512a2);const _0x281d47=readSourceFile(_0x512a2),_0x3dfa94=convertToRuntimeConfig(_0x281d47);_0x2a290b[_0x1dfca1(0x16c)]&&(_0x3dfa94[_0x1dfca1(0x16c)]=String(_0x2a290b[_0x1dfca1(0x16c)]));_0x2a290b[_0x1dfca1(0x1a4)]&&(_0x3dfa94[_0x1dfca1(0x1a4)]=resolveInitEnv(_0x2a290b));if(!_0x3dfa94[_0x1dfca1(0x16c)])throw CliErrors[_0x1dfca1(0x17c)](_0x1dfca1(0x188),_0x1dfca1(0x16f));await writeInitConfig(_0x2d6126,_0x3dfa94,_0x2a290b),console['log'](_0x1dfca1(0x187)+_0x512a2),console[_0x1dfca1(0x177)](_0x1dfca1(0x1a7)+_0x2d6126),console[_0x1dfca1(0x177)](_0x1dfca1(0x180)+_0x3dfa94[_0x1dfca1(0x16c)]);if(_0x3dfa94[_0x1dfca1(0x19f)])console[_0x1dfca1(0x177)](_0x1dfca1(0x170)+_0x3dfa94[_0x1dfca1(0x19f)]);}function convertToRuntimeConfig(_0x5c11fa){const _0xf02143=a22_0x319fbc;if(_0x5c11fa['apps']&&typeof _0x5c11fa['apps']===_0xf02143(0x18c))throw CliErrors[_0xf02143(0x17c)](_0xf02143(0x172),_0xf02143(0x193));const _0x48a57d={};for(const _0x2ae3a1 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x5c11fa[_0x2ae3a1]!==undefined&&(_0x48a57d[_0x2ae3a1]=_0x5c11fa[_0x2ae3a1]);}return!_0x48a57d[_0xf02143(0x17b)]&&(_0x48a57d[_0xf02143(0x17b)]=DEFAULT_CONFIG_VALUES[_0xf02143(0x17b)]),_0x48a57d;}function a22_0x1eff(){const _0x3c49b6=['994ejSdeq','close','project','Source\x20file\x20not\x20found:\x20','Usage:\x20','Imported\x20from\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Invalid\x20env\x20\x22','removeListener','AbortPrompt','object','1398IVmdWr','utf8','flagMissing','join','Override\x20imported\x20default\x20appcode','22XwcPQm','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','SIGINT','boolean','message','yes','Failed\x20to\x20parse\x20source\x20file:\x20','cwd','toLowerCase','parse','2308QmZIGk','cancelled','defaultApp','race','\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','10kVSoSw','7977oMCrdq','env','trim','850135YFpCli','\x20\x20config:\x20\x20','file','Skip\x20confirmation\x20when\x20overwriting','604loBOiM','File\x20','\x20already\x20exists.\x20Overwrite?','7417080nmUygf','App\x20code\x20for\x20the\x20project','1568ydQuyQ','\x20init\x20—\x20Create\x20.lovrabet.json\x0a','entries','App\x20code','Override\x20imported\x20default\x20env','Initialized\x20','appcode','includes','string','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','\x20\x20default:\x20','3784692QAqwwg','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Target\x20environment\x20(default\x20','7801480uLocPW','):\x20','\x20\x20env:\x20\x20\x20\x20\x20','log','stdout','User\x20aborted\x20prompt','stdin','riskLevel','validation','question','apiDir','[Y/n]','\x20\x20appcode:\x20','global'];a22_0x1eff=function(){return _0x3c49b6;};return a22_0x1eff();}async function runNonInteractive(_0x4f9ff4,_0x43cc39){const _0x292444=a22_0x319fbc,_0x31ad2f=_0x4f9ff4[_0x292444(0x16c)];if(!_0x31ad2f)throw CliErrors[_0x292444(0x18f)]('appcode',_0x292444(0x186)+CLI_BIN_NAME+_0x292444(0x1a1));const _0x4f9253=resolveInitEnv(_0x4f9ff4);await writeInitConfig(_0x43cc39,{'appcode':_0x31ad2f,'env':_0x4f9253},_0x4f9ff4),console[_0x292444(0x177)](_0x292444(0x16b)+_0x43cc39),console[_0x292444(0x177)]('\x20\x20appcode:\x20'+_0x31ad2f),console[_0x292444(0x177)](_0x292444(0x176)+_0x4f9253);}async function runInteractive(_0x2d3011,_0x26de4f){const _0x21a08a=a22_0x319fbc,_0xd63a6f=loadExisting(_0x26de4f),_0x148b16=typeof _0xd63a6f?.[_0x21a08a(0x16c)]===_0x21a08a(0x16e)?_0xd63a6f[_0x21a08a(0x16c)]:'',_0x33a9a7=resolveInitEnv(_0x2d3011);console['log'](CLI_BIN_NAME+_0x21a08a(0x167));if(existsSync(_0x26de4f)&&!_0x2d3011['yes']){const _0x53dae1=await promptYesNo(_0x21a08a(0x1ab)+_0x26de4f+_0x21a08a(0x1ac),![]);if(!_0x53dae1){console[_0x21a08a(0x177)]('Aborted.');return;}}const _0x5a7ea2=typeof _0x2d3011[_0x21a08a(0x16c)]==='string'?_0x2d3011[_0x21a08a(0x16c)][_0x21a08a(0x1a5)]():'';let _0x161232=_0x5a7ea2;!_0x161232&&(_0x161232=await promptInput(_0x21a08a(0x169),_0x148b16));if(!_0x161232[_0x21a08a(0x1a5)]())throw CliErrors['validation']('App\x20code\x20cannot\x20be\x20empty.');await writeInitConfig(_0x26de4f,{'appcode':_0x161232['trim'](),'env':_0x33a9a7},_0x2d3011),console[_0x21a08a(0x177)]('\x0aInitialized\x20'+_0x26de4f),console['log']('\x20\x20appcode:\x20'+_0x161232[_0x21a08a(0x1a5)]()),console[_0x21a08a(0x177)](_0x21a08a(0x176)+_0x33a9a7);}async function writeInitConfig(_0x3ee685,_0x58bf82,_0x4e2cc1){const _0x2ff218=a22_0x319fbc;let _0x33f878={};existsSync(_0x3ee685)&&!_0x4e2cc1[_0x2ff218(0x198)]&&(_0x33f878=readConfigFile(_0x3ee685));for(const [_0x561582,_0x1c240a]of Object[_0x2ff218(0x168)](_0x58bf82)){_0x1c240a!==undefined&&(_0x33f878[_0x561582]=_0x1c240a);}if(_0x33f878['app'])delete _0x33f878['app'];writeConfigFile(_0x3ee685,_0x33f878);}class AbortPrompt extends Error{constructor(){const _0x1996d8=a22_0x319fbc;super(_0x1996d8(0x179)),this['name']=_0x1996d8(0x18b);}}function createSafeRl(){const _0x3dec94=a22_0x319fbc,_0x25285c=createInterface({'input':process[_0x3dec94(0x17a)],'output':process[_0x3dec94(0x178)]});let _0x268de0;const _0x1a987c=new Promise((_0xf91569,_0x3d6441)=>{_0x268de0=()=>{const _0x14fdb1=a22_0x4249;_0x268de0&&(_0x25285c[_0x14fdb1(0x18a)](_0x14fdb1(0x195),_0x268de0),_0x268de0=undefined);try{_0x25285c[_0x14fdb1(0x183)]();}catch{}_0x3d6441(new AbortPrompt());},_0x25285c['once']('SIGINT',_0x268de0);}),_0x1c7095=()=>{const _0x2935ab=_0x3dec94;_0x268de0&&(_0x25285c['removeListener'](_0x2935ab(0x195),_0x268de0),_0x268de0=undefined);try{_0x25285c[_0x2935ab(0x183)]();}catch{}};return{'rl':_0x25285c,'abortPromise':_0x1a987c,'disposeSuccess':_0x1c7095};}async function promptInput(_0x37113b,_0x2f50a9){const _0x38f000=a22_0x319fbc,{rl:_0x2ec9ed,abortPromise:_0x585e0f,disposeSuccess:_0x4fb047}=createSafeRl(),_0x4890e0=new Promise(_0x20749d=>{const _0x5dccd2=a22_0x4249,_0x29590c=_0x2f50a9?'\x20\x20'+_0x37113b+'\x20('+_0x2f50a9+_0x5dccd2(0x175):'\x20\x20'+_0x37113b+':\x20';_0x2ec9ed[_0x5dccd2(0x17d)](_0x29590c,_0x4a6a06=>{const _0x51422d=_0x5dccd2;_0x4fb047(),_0x20749d(_0x4a6a06[_0x51422d(0x1a5)]()||_0x2f50a9);});});return Promise[_0x38f000(0x1a0)]([_0x4890e0,_0x585e0f]);}async function promptYesNo(_0x5cc765,_0x5df19e){const _0x22da06=a22_0x319fbc,{rl:_0x4ce49f,abortPromise:_0xe8ab98,disposeSuccess:_0x41e37f}=createSafeRl(),_0xcedb=new Promise(_0xca7391=>{const _0x2bdc3d=a22_0x4249,_0x36ec36=_0x5df19e?_0x2bdc3d(0x17f):'[y/N]';_0x4ce49f['question']('\x20\x20'+_0x5cc765+'\x20'+_0x36ec36+':\x20',_0xc7cd07=>{const _0x47167c=_0x2bdc3d;_0x41e37f();const _0x18dd06=_0xc7cd07[_0x47167c(0x1a5)]()[_0x47167c(0x19b)]();if(_0x18dd06==='y'||_0x18dd06===_0x47167c(0x198))_0xca7391(!![]);else{if(_0x18dd06==='n'||_0x18dd06==='no')_0xca7391(![]);else _0xca7391(_0x5df19e);}});});return Promise[_0x22da06(0x1a0)]([_0xcedb,_0xe8ab98]);}function loadExisting(_0x598a38){if(!existsSync(_0x598a38))return null;return readConfigFile(_0x598a38);}function resolveFilePath(_0x307c15){const _0x31ffcb=a22_0x319fbc;return isAbsolute(_0x307c15)?_0x307c15:resolve(process[_0x31ffcb(0x19a)](),_0x307c15);}function readSourceFile(_0x563808){const _0x237d52=a22_0x319fbc;try{const _0x5d2529=readFileSync(_0x563808,{'encoding':_0x237d52(0x18e)});return JSON[_0x237d52(0x19c)](_0x5d2529);}catch(_0x35c6d7){throw CliErrors[_0x237d52(0x17c)](_0x237d52(0x199)+_0x35c6d7[_0x237d52(0x197)]);}}function resolveInitEnv(_0x117167){const _0x2b1be3=a22_0x319fbc,_0x231c27=_0x117167[_0x2b1be3(0x1a4)];if(_0x231c27===undefined||_0x231c27==='')return DEFAULT_CONFIG_VALUES[_0x2b1be3(0x1a4)];if(!RUNTIME_ENV_VALUES[_0x2b1be3(0x16d)](_0x231c27))throw CliErrors[_0x2b1be3(0x17c)](_0x2b1be3(0x189)+_0x231c27+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x2b1be3(0x190)](',\x20'));return _0x231c27;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a23_0x2a3e(){const _0x4ed506=['1887575TFWkkg','1935528EEQkyj','message','logs','1862240xmjiEB','\x20\x20\x20Duration:\x20','command','success','details','timestamp','998888JgdbTO','error','243LlzlHT','stringify','14FdXNwK','1120763vWINrD','clear','*\x20Logs\x20cleared','Clear\x20command\x20history\x20logs','3764946VHVisV','toLocaleString','duration','show','330930wexrhL','\x20\x20\x20Time:\x20','log','12kjpOEM','\x20\x20\x20Details:\x20','level','readLogs','length','keys'];a23_0x2a3e=function(){return _0x4ed506;};return a23_0x2a3e();}function a23_0x2cf0(_0x168a92,_0x1971a8){_0x168a92=_0x168a92-0x197;const _0x2a3e82=a23_0x2a3e();let _0x2cf0b5=_0x2a3e82[_0x168a92];return _0x2cf0b5;}const a23_0x2ccb82=a23_0x2cf0;(function(_0x82f050,_0x2aa1cb){const _0x10eb7d=a23_0x2cf0,_0x128f73=_0x82f050();while(!![]){try{const _0x522bee=-parseInt(_0x10eb7d(0x19c))/0x1+-parseInt(_0x10eb7d(0x197))/0x2+parseInt(_0x10eb7d(0x1ae))/0x3+parseInt(_0x10eb7d(0x1a7))/0x4*(parseInt(_0x10eb7d(0x1ad))/0x5)+parseInt(_0x10eb7d(0x1a0))/0x6*(parseInt(_0x10eb7d(0x19b))/0x7)+parseInt(_0x10eb7d(0x1b1))/0x8+parseInt(_0x10eb7d(0x199))/0x9*(-parseInt(_0x10eb7d(0x1a4))/0xa);if(_0x522bee===_0x2aa1cb)break;else _0x128f73['push'](_0x128f73['shift']());}catch(_0x1f35ee){_0x128f73['push'](_0x128f73['shift']());}}}(a23_0x2a3e,0xb7895));import{logger}from'../../utils/logger.js';function printLogs(_0xeeef71){const _0x10bb72=a23_0x2cf0;if(_0xeeef71[_0x10bb72(0x1ab)]===0x0){console[_0x10bb72(0x1a6)]('*\x20No\x20logs\x20found');return;}console[_0x10bb72(0x1a6)]('*\x20Lovrabet\x20Runtime\x20CLI\x20logs:\x0a'),_0xeeef71['forEach']((_0x448d69,_0x33765e)=>{const _0x30ed8b=_0x10bb72,_0x52451a=new Date(_0x448d69[_0x30ed8b(0x1b6)])[_0x30ed8b(0x1a1)]('en-US'),_0x8f6f1=_0x448d69[_0x30ed8b(0x1a9)]===_0x30ed8b(0x1b4)?'√':_0x448d69['level']===_0x30ed8b(0x198)?'×':_0x448d69['level']==='warn'?'!':'i';console[_0x30ed8b(0x1a6)](_0x33765e+0x1+'.\x20'+_0x8f6f1+'\x20['+_0x448d69[_0x30ed8b(0x1b3)]+']\x20'+_0x448d69[_0x30ed8b(0x1af)]),console[_0x30ed8b(0x1a6)](_0x30ed8b(0x1a5)+_0x52451a),_0x448d69[_0x30ed8b(0x1a2)]&&console['log'](_0x30ed8b(0x1b2)+_0x448d69[_0x30ed8b(0x1a2)]+'ms'),_0x448d69[_0x30ed8b(0x1b5)]&&Object[_0x30ed8b(0x1ac)](_0x448d69[_0x30ed8b(0x1b5)])[_0x30ed8b(0x1ab)]>0x0&&console['log'](_0x30ed8b(0x1a8)+JSON[_0x30ed8b(0x19a)](_0x448d69[_0x30ed8b(0x1b5)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a23_0x2ccb82(0x1b0),'command':a23_0x2ccb82(0x1a3),'description':'View\x20command\x20history\x20logs','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x16209a){const _0x56371f=a23_0x2ccb82;return printLogs(logger[_0x56371f(0x1aa)]()),{'ok':!![]};}},{'service':a23_0x2ccb82(0x1b0),'command':a23_0x2ccb82(0x19d),'description':a23_0x2ccb82(0x19f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x31f00d){const _0x3566f3=a23_0x2ccb82;return logger['clearLogs'](),console[_0x3566f3(0x1a6)](_0x3566f3(0x19e)),{'ok':!![]};}}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a24_0x1e819c=a24_0x441e;function a24_0x16b0(){const _0x196f9f=['221WxkPgG','1566372fXCzLQ','\x20\x20[high-risk-write]','506653jDFQGG','description','write','list','48AaxZql','24KQEWTa','isSingleCommand','126BLDIbw','Initialize\x20project\x20config','defaultCommand','show','Data\x20CRUD','has','SQL\x20Queries','values','699210oAqZZz','set','push','service','337353gZzewD','\x20\x20[write]','30RFstbV','216225XvECdv','Authentication','get','BFF\x20Scripts','from','1270YzTgfi','risk','command','931vGJSlK','Schema','Diagnostics','7334041rZzrLQ','Logs'];a24_0x16b0=function(){return _0x196f9f;};return a24_0x16b0();}(function(_0x4080a7,_0x2a8e7b){const _0x371f9e=a24_0x441e,_0x1c9fb2=_0x4080a7();while(!![]){try{const _0x9429c4=parseInt(_0x371f9e(0xce))/0x1*(parseInt(_0x371f9e(0xcb))/0x2)+parseInt(_0x371f9e(0xc3))/0x3*(-parseInt(_0x371f9e(0xb4))/0x4)+parseInt(_0x371f9e(0xc6))/0x5*(-parseInt(_0x371f9e(0xc5))/0x6)+parseInt(_0x371f9e(0xb0))/0x7*(-parseInt(_0x371f9e(0xb5))/0x8)+-parseInt(_0x371f9e(0xb7))/0x9*(parseInt(_0x371f9e(0xbf))/0xa)+parseInt(_0x371f9e(0xd1))/0xb+parseInt(_0x371f9e(0xae))/0xc*(parseInt(_0x371f9e(0xad))/0xd);if(_0x9429c4===_0x2a8e7b)break;else _0x1c9fb2['push'](_0x1c9fb2['shift']());}catch(_0x39e35c){_0x1c9fb2['push'](_0x1c9fb2['shift']());}}}(a24_0x16b0,0xaea0b));import{authDefinitions}from'../commands/auth/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{doctorDefinition}from'../commands/doctor.js';import{schemaDefinition}from'../commands/schema.js';import{initDefinitions}from'../commands/init/index.js';import{appDefinitions}from'../commands/app/definitions.js';import{configDefinitions}from'../commands/config/definitions.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';function a24_0x441e(_0x3cf320,_0x153a3e){_0x3cf320=_0x3cf320-0xad;const _0x16b07f=a24_0x16b0();let _0x441e03=_0x16b07f[_0x3cf320];return _0x441e03;}import{dataDefinitions}from'../commands/data/index.js';export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x271f40){const _0x4aed59=a24_0x441e;for(const _0x354455 of _0x271f40){definitions['set'](_0x354455['service']+':'+_0x354455[_0x4aed59(0xcd)],_0x354455);let _0x49cfe9=serviceGroups['get'](_0x354455['service']);!_0x49cfe9&&(_0x49cfe9=[],serviceGroups[_0x4aed59(0xc0)](_0x354455[_0x4aed59(0xc2)],_0x49cfe9)),_0x49cfe9[_0x4aed59(0xc1)](_0x354455);}}function registerService(_0x3ef0ee,_0x1ba8e2,_0x3b2c6b){const _0x51b078=a24_0x441e;registerDefinitions(_0x1ba8e2);const _0x105e98=_0x1ea180=>_0x1ea180==='read'?'':_0x1ea180===_0x51b078(0xb2)?_0x51b078(0xc4):_0x51b078(0xaf),_0x4c71d0={'service':_0x1ba8e2[0x0][_0x51b078(0xc2)],'label':_0x3ef0ee,'commands':_0x1ba8e2['map'](_0x3f556c=>({'command':_0x3f556c[_0x51b078(0xcd)],'description':_0x3f556c[_0x51b078(0xb1)],'tag':_0x105e98(_0x3f556c[_0x51b078(0xcc)])})),'defaultCommand':_0x3b2c6b?.[_0x51b078(0xb9)]??(_0x3b2c6b?.[_0x51b078(0xb6)]?_0x1ba8e2[0x0]['command']:undefined),'isSingleCommand':_0x3b2c6b?.[_0x51b078(0xb6)]};serviceRegistry[_0x51b078(0xc1)](_0x4c71d0),serviceByName[_0x51b078(0xc0)](_0x4c71d0['service'],_0x4c71d0);}registerService(a24_0x1e819c(0xc7),authDefinitions,{'defaultCommand':'login'}),registerService('Datasets',datasetDefinitions),registerService(a24_0x1e819c(0xbb),dataDefinitions),registerService(a24_0x1e819c(0xbd),sqlDefinitions),registerService(a24_0x1e819c(0xc9),bffDefinitions),registerService('App\x20Management',appDefinitions,{'defaultCommand':a24_0x1e819c(0xb3)}),registerService('Configuration',configDefinitions,{'defaultCommand':a24_0x1e819c(0xb3)}),registerService(a24_0x1e819c(0xb8),initDefinitions,{'isSingleCommand':!![]}),registerService(a24_0x1e819c(0xd0),[doctorDefinition],{'isSingleCommand':!![]}),registerService(a24_0x1e819c(0xcf),[schemaDefinition],{'isSingleCommand':!![]}),registerService(a24_0x1e819c(0xd2),logsDefinitions,{'defaultCommand':a24_0x1e819c(0xba)});export function findDefinition(_0xbd69f5,_0x50aee9){const _0x5171d9=a24_0x1e819c;return definitions[_0x5171d9(0xc8)](_0xbd69f5+':'+_0x50aee9);}export function isKnownService(_0x161dbd){const _0x5f0eb1=a24_0x1e819c;return serviceByName[_0x5f0eb1(0xbc)](_0x161dbd);}export function getServiceEntry(_0x511a5b){return serviceByName['get'](_0x511a5b);}export function getAllDefinitions(){const _0xf67ae8=a24_0x1e819c;return Array[_0xf67ae8(0xca)](definitions[_0xf67ae8(0xbe)]());}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a25_0x334a8b=a25_0x4c7c;(function(_0x10dd57,_0xd4b697){const _0x4d9ce5=a25_0x4c7c,_0xf45741=_0x10dd57();while(!![]){try{const _0x88a554=-parseInt(_0x4d9ce5(0x1c0))/0x1+parseInt(_0x4d9ce5(0x1ba))/0x2*(-parseInt(_0x4d9ce5(0x1b9))/0x3)+-parseInt(_0x4d9ce5(0x1c5))/0x4+parseInt(_0x4d9ce5(0x1bf))/0x5*(-parseInt(_0x4d9ce5(0x1c4))/0x6)+-parseInt(_0x4d9ce5(0x1c3))/0x7*(-parseInt(_0x4d9ce5(0x1b8))/0x8)+-parseInt(_0x4d9ce5(0x1c2))/0x9*(parseInt(_0x4d9ce5(0x1c1))/0xa)+parseInt(_0x4d9ce5(0x1bb))/0xb;if(_0x88a554===_0xd4b697)break;else _0xf45741['push'](_0xf45741['shift']());}catch(_0x3f910f){_0xf45741['push'](_0xf45741['shift']());}}}(a25_0x96ef,0x280d6));import{buildSchemaPayload}from'../framework/schema-export.js';async function execute(_0x5f4b25){const _0x4ee46d=await buildSchemaPayload();return{'ok':!![],'data':_0x4ee46d};}export const schemaDefinition={'service':a25_0x334a8b(0x1bd),'command':a25_0x334a8b(0x1be),'description':a25_0x334a8b(0x1b7),'risk':a25_0x334a8b(0x1bc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};function a25_0x4c7c(_0x3e2053,_0xa13080){_0x3e2053=_0x3e2053-0x1b7;const _0x96efd3=a25_0x96ef();let _0x4c7ceb=_0x96efd3[_0x3e2053];return _0x4c7ceb;}function a25_0x96ef(){const _0x33563f=['3995rgVuSQ','85267lXdBPd','430kKgqde','41031SukUfj','238lImcsu','252EPXAzD','726280ktWxHm','Export\x20machine-readable\x20command\x20schema\x20(JSON)','34328oRlCOj','27aVHOVC','46526TIGAEa','7963549HNGmJB','read','schema','export'];a25_0x96ef=function(){return _0x33563f;};return a25_0x96ef();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a26_0x59f2f3=a26_0x200f;(function(_0x19e6c7,_0x54d5d2){const _0x5ee302=a26_0x200f,_0x2938d7=_0x19e6c7();while(!![]){try{const _0x174cb3=-parseInt(_0x5ee302(0x177))/0x1+-parseInt(_0x5ee302(0x176))/0x2*(-parseInt(_0x5ee302(0x169))/0x3)+parseInt(_0x5ee302(0x16f))/0x4+parseInt(_0x5ee302(0x167))/0x5+-parseInt(_0x5ee302(0x178))/0x6+-parseInt(_0x5ee302(0x175))/0x7+parseInt(_0x5ee302(0x174))/0x8*(-parseInt(_0x5ee302(0x16a))/0x9);if(_0x174cb3===_0x54d5d2)break;else _0x2938d7['push'](_0x2938d7['shift']());}catch(_0x38a04a){_0x2938d7['push'](_0x2938d7['shift']());}}}(a26_0x176b,0xb3adb));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a26_0x176b(){const _0x446da6=['sqlContent','8qzMgFI','1991199cJBgPg','791298aJmibl','63316ZQEJJD','4272726CEcVBl','read','sqlcode','verbose','6651450kxYPAE','sql','6katRXR','5824071PqVhPg','str','detail','sqlCode','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','1285552QlZaUl','appCode','dbId','sqlName'];a26_0x176b=function(){return _0x446da6;};return a26_0x176b();}function a26_0x200f(_0x396a17,_0x48111e){_0x396a17=_0x396a17-0x166;const _0x176b3d=a26_0x176b();let _0x200fa5=_0x176b3d[_0x396a17];return _0x200fa5;}export const sqlDetail={'service':a26_0x59f2f3(0x168),'command':a26_0x59f2f3(0x16c),'description':a26_0x59f2f3(0x16e),'risk':a26_0x59f2f3(0x179),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x5c268b){const _0x2150ee=a26_0x59f2f3,_0x28d482=await getSqlQueryInfo(_0x5c268b['appCode'],_0x5c268b[_0x2150ee(0x16b)](_0x2150ee(0x17a))),_0x13a3aa=_0x5c268b['bool'](_0x2150ee(0x166));if(_0x13a3aa)return{'ok':!![],'data':_0x28d482};const _0x56556a=_0x28d482[_0x2150ee(0x171)]?await getDbName(_0x5c268b[_0x2150ee(0x170)],_0x28d482['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x28d482[_0x2150ee(0x16d)],'sqlName':_0x28d482[_0x2150ee(0x172)],'db':_0x56556a?_0x56556a+'\x20('+_0x28d482[_0x2150ee(0x171)]+')':_0x28d482[_0x2150ee(0x171)]??'','description':_0x28d482['description']??'','sqlContent':_0x28d482[_0x2150ee(0x173)]??''}};}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a27_0x4900(){const _0x32ab1c=['exec','2KXuXdX','1106645BhAKEc','478227UAXhLE','sql','3119040cgycyc','params','4585632rPGXzY','3485510ILNFuH','execError','sqlcode','Returned\x20','now','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','1063700iNFhLX','str','length','execSuccess','170ntyZDC','SQL\x20execution\x20failed','77862cownGL'];a27_0x4900=function(){return _0x32ab1c;};return a27_0x4900();}function a27_0x570c(_0x57f3d1,_0x1a3076){_0x57f3d1=_0x57f3d1-0x173;const _0x4900ae=a27_0x4900();let _0x570c29=_0x4900ae[_0x57f3d1];return _0x570c29;}const a27_0x2bcd74=a27_0x570c;(function(_0x559664,_0x1146cd){const _0x3c6271=a27_0x570c,_0xd2eb2c=_0x559664();while(!![]){try{const _0x4eb10c=parseInt(_0x3c6271(0x174))/0x1+parseInt(_0x3c6271(0x173))/0x2*(parseInt(_0x3c6271(0x175))/0x3)+-parseInt(_0x3c6271(0x180))/0x4+-parseInt(_0x3c6271(0x184))/0x5*(-parseInt(_0x3c6271(0x186))/0x6)+-parseInt(_0x3c6271(0x17a))/0x7+-parseInt(_0x3c6271(0x179))/0x8+parseInt(_0x3c6271(0x177))/0x9;if(_0x4eb10c===_0x1146cd)break;else _0xd2eb2c['push'](_0xd2eb2c['shift']());}catch(_0x32174d){_0xd2eb2c['push'](_0xd2eb2c['shift']());}}}(a27_0x4900,0xaefe5));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a27_0x2bcd74(0x176),'command':a27_0x2bcd74(0x187),'description':a27_0x2bcd74(0x17f),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x2729a9){const _0x2f051f=a27_0x2bcd74,_0x4ceef6=parseJsonParams(_0x2729a9[_0x2f051f(0x181)](_0x2f051f(0x178))),_0x3f9d43=Date[_0x2f051f(0x17e)](),_0x4bd747=await executeSdkSql(_0x2729a9[_0x2f051f(0x181)](_0x2f051f(0x17c)),_0x4ceef6),_0x567769=Date[_0x2f051f(0x17e)]()-_0x3f9d43,_0x35e136=_0x4bd747?.['execResult']??_0x4bd747,_0x213604=_0x4bd747?.[_0x2f051f(0x183)]??!![];if(!_0x213604)return{'ok':![],'data':{'error':_0x4bd747?.[_0x2f051f(0x17b)]||'SQL\x20execution\x20failed','elapsed':_0x567769},'message':_0x2f051f(0x185)};const _0x2a88cd=Array['isArray'](_0x35e136)?_0x35e136:[];return{'ok':!![],'data':{'rows':_0x2a88cd,'rowCount':_0x2a88cd[_0x2f051f(0x182)],'elapsed':_0x567769},'message':_0x2f051f(0x17d)+_0x2a88cd[_0x2f051f(0x182)]+'\x20row(s)\x20in\x20'+_0x567769+'ms'};}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a28_0x307c(_0x4058ee,_0x793f0b){_0x4058ee=_0x4058ee-0x1ad;const _0x5d72c5=a28_0x5d72();let _0x307c91=_0x5d72c5[_0x4058ee];return _0x307c91;}function a28_0x5d72(){const _0x4713b5=['24AiTfDS','208736soKcbh','2660151CsgAfk','220535daDcux','452432zCDxGJ','64SwtJjV','542058TJAwtY','14349132uHJZfK','1013299oGZvdJ'];a28_0x5d72=function(){return _0x4713b5;};return a28_0x5d72();}(function(_0x1d4e1f,_0x350b87){const _0x4d3dac=a28_0x307c,_0x33563c=_0x1d4e1f();while(!![]){try{const _0x2a65e0=parseInt(_0x4d3dac(0x1b1))/0x1+-parseInt(_0x4d3dac(0x1ad))/0x2+parseInt(_0x4d3dac(0x1b2))/0x3+parseInt(_0x4d3dac(0x1b5))/0x4*(parseInt(_0x4d3dac(0x1b3))/0x5)+parseInt(_0x4d3dac(0x1b0))/0x6*(parseInt(_0x4d3dac(0x1af))/0x7)+-parseInt(_0x4d3dac(0x1b4))/0x8+-parseInt(_0x4d3dac(0x1ae))/0x9;if(_0x2a65e0===_0x350b87)break;else _0x33563c['push'](_0x33563c['shift']());}catch(_0xaf1d18){_0x33563c['push'](_0x33563c['shift']());}}}(a28_0x5d72,0x6fe16));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a29_0x440a33=a29_0x1fc5;(function(_0x5a0b92,_0x45ddb5){const _0x467b6c=a29_0x1fc5,_0x3a806d=_0x5a0b92();while(!![]){try{const _0x25c145=parseInt(_0x467b6c(0x109))/0x1*(-parseInt(_0x467b6c(0x10a))/0x2)+-parseInt(_0x467b6c(0xf3))/0x3*(-parseInt(_0x467b6c(0xfb))/0x4)+-parseInt(_0x467b6c(0x108))/0x5+-parseInt(_0x467b6c(0x10c))/0x6*(parseInt(_0x467b6c(0x104))/0x7)+parseInt(_0x467b6c(0x100))/0x8*(parseInt(_0x467b6c(0xfc))/0x9)+parseInt(_0x467b6c(0x102))/0xa*(-parseInt(_0x467b6c(0x106))/0xb)+parseInt(_0x467b6c(0x107))/0xc;if(_0x25c145===_0x45ddb5)break;else _0x3a806d['push'](_0x3a806d['shift']());}catch(_0x5000e8){_0x3a806d['push'](_0x3a806d['shift']());}}}(a29_0x693f,0x6358c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a29_0x1fc5(_0x5e62ef,_0x3bf1fd){_0x5e62ef=_0x5e62ef-0xf2;const _0x693f49=a29_0x693f();let _0x1fc5b0=_0x693f49[_0x5e62ef];return _0x1fc5b0;}export const CONFIG_FIELD_SCHEMAS={'env':{'description':a29_0x440a33(0x110),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x440a33(0xf6)],'importable':!![]},'format':{'description':a29_0x440a33(0xf8),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a29_0x440a33(0xf5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a29_0x440a33(0xf7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a29_0x440a33(0xfa),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a29_0x440a33(0x103),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a29_0x440a33(0x10b),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x440a33(0x112)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x440a33(0x111)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a29_0x440a33(0x105)](([,_0x21a4f2])=>_0x21a4f2['cliSettableTopLevel'])[a29_0x440a33(0x101)](([_0x4e40e4])=>_0x4e40e4));export const CONFIG_ENUM_VALUES=Object[a29_0x440a33(0x10f)](Object[a29_0x440a33(0x10e)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x1b0a04])=>_0x1b0a04[a29_0x440a33(0xf2)])['map'](([_0x12826d,_0x2f2564])=>[_0x12826d,[..._0x2f2564[a29_0x440a33(0xf2)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a29_0x440a33(0x10e)](CONFIG_FIELD_SCHEMAS)[a29_0x440a33(0x105)](([,_0x28aff7])=>_0x28aff7[a29_0x440a33(0x10d)])[a29_0x440a33(0x101)](([_0x3b5986])=>_0x3b5986);export function getConfigFieldSchema(_0x1bb37e){return CONFIG_FIELD_SCHEMAS[_0x1bb37e];}export function getConfigEnumValues(_0x17516d){const _0x37764e=a29_0x440a33;return getConfigFieldSchema(_0x17516d)?.[_0x37764e(0xf2)];}export function getConfigDefaultValue(_0x10d800){const _0x5950e5=a29_0x440a33;return getConfigFieldSchema(_0x10d800)?.[_0x5950e5(0xfd)];}export function isTopLevelConfigKey(_0x43fb9e){const _0x3737a5=a29_0x440a33;return TOP_LEVEL_CONFIG_KEYS[_0x3737a5(0xff)](_0x43fb9e);}export function isLegacyCompatConfigKey(_0x5377aa){const _0x7412cd=a29_0x440a33;return getConfigFieldSchema(_0x5377aa)?.[_0x7412cd(0xf9)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x25bc18){const _0xf47d9f=a29_0x440a33;return[..._0x25bc18][_0xf47d9f(0xfe)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x216cb8=a29_0x440a33;return _0x216cb8(0xf4)+getTopLevelConfigKeySummary();}export function buildAppProfileListFields(_0x5d0566){return{'env':_0x5d0566,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}function a29_0x693f(){const _0x2150db=['Override\x20API\x20domain','Default\x20output\x20format','legacyCompatOnly','Override\x20user\x20domain','256KYwnrV','1549998HYYKsU','defaultValue','join','has','24smzWYW','map','168890diJgkD','Override\x20runtime\x20domain','990381qVKihS','filter','253VjBUpL','8232492yHKjYr','627060yYFUjt','1drvCjh','1151666dQMJIY','Risk\x20level','6uLfzpu','importable','entries','fromEntries','Target\x20environment','locale','riskLevel','enumValues','20409yrEBkv','Config\x20key.\x20Top-level:\x20','Default\x20page\x20size','env'];a29_0x693f=function(){return _0x2150db;};return a29_0x693f();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a30_0x1e5faa=a30_0x399f;function a30_0x399f(_0x36db36,_0x495978){_0x36db36=_0x36db36-0xff;const _0x6f656e=a30_0x6f65();let _0x399f5b=_0x6f656e[_0x36db36];return _0x399f5b;}(function(_0x1167e2,_0x4915ea){const _0x5a596a=a30_0x399f,_0x16d390=_0x1167e2();while(!![]){try{const _0x486799=parseInt(_0x5a596a(0x103))/0x1*(parseInt(_0x5a596a(0x10a))/0x2)+parseInt(_0x5a596a(0x106))/0x3+parseInt(_0x5a596a(0x105))/0x4+-parseInt(_0x5a596a(0x107))/0x5*(parseInt(_0x5a596a(0x100))/0x6)+-parseInt(_0x5a596a(0x109))/0x7+parseInt(_0x5a596a(0x101))/0x8*(-parseInt(_0x5a596a(0x108))/0x9)+-parseInt(_0x5a596a(0xff))/0xa*(-parseInt(_0x5a596a(0x102))/0xb);if(_0x486799===_0x4915ea)break;else _0x16d390['push'](_0x16d390['shift']());}catch(_0xa56ea8){_0x16d390['push'](_0x16d390['shift']());}}}(a30_0x6f65,0xe4ba3));export const AUTH_MODE={'ClientAk':a30_0x1e5faa(0x104)};function a30_0x6f65(){const _0x1222f0=['11Mlvbur','69029vnMskN','client-ak','5366300rEfgyb','4636335pOPxsm','4955oysHEk','9PLZacv','9250388gBmmfk','18ppLdmc','4790890hNfkCz','7686PtkAkY','3676384AnsWOD'];a30_0x6f65=function(){return _0x1222f0;};return a30_0x6f65();}export function isAuthMode(_0x3c507b){return _0x3c507b===AUTH_MODE['ClientAk'];}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a31_0x264572=a31_0x2d14;(function(_0x36e1aa,_0x310f4e){const _0x1ecafe=a31_0x2d14,_0x4658e4=_0x36e1aa();while(!![]){try{const _0x169956=-parseInt(_0x1ecafe(0xc3))/0x1*(parseInt(_0x1ecafe(0xd2))/0x2)+-parseInt(_0x1ecafe(0xce))/0x3+-parseInt(_0x1ecafe(0xcf))/0x4*(parseInt(_0x1ecafe(0xd8))/0x5)+parseInt(_0x1ecafe(0xca))/0x6+-parseInt(_0x1ecafe(0xe5))/0x7+parseInt(_0x1ecafe(0xdc))/0x8+parseInt(_0x1ecafe(0xc7))/0x9*(parseInt(_0x1ecafe(0xd4))/0xa);if(_0x169956===_0x310f4e)break;else _0x4658e4['push'](_0x4658e4['shift']());}catch(_0x3bb4ae){_0x4658e4['push'](_0x4658e4['shift']());}}}(a31_0x2aea,0xc9edf));export const CLI_BIN_NAME=a31_0x264572(0xe3);export const CLI_DISPLAY_NAME=a31_0x264572(0xd1);function a31_0x2aea(){const _0x1b5458=['7756860SKrzIH','Clear\x20output','format','params','5HbYlrZ','Verbose\x20output','Output\x20format','yes','11090960ETjhnh','Preview\x20operation\x20without\x20executing','app','boolean','global','help','production\x20|\x20development\x20|\x20daily','lovrabet','non-interactive','3510122UXFZHV','Override\x20appcode','SQL\x20query\x20code','name','Alias\x20for\x20--non-interactive','string','clear','dryRun','type','193pCLuaa','Select\x20app\x20profile\x20by\x20name','dry-run','env','18dUCwRe','verbose','map','8496954kLHDdd','sqlcode','Force\x20non-interactive\x20mode\x20(CI)','Name\x20filter','3908544NwfcJz','5962844JPFoct','Show\x20help','Lovrabet\x20Runtime\x20CLI','2402flmyUm','appcode'];a31_0x2aea=function(){return _0x1b5458;};return a31_0x2aea();}export const NPM_PACKAGE_NAME='@lovrabet/lovrabet-cli';export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':'string','description':a31_0x264572(0xe6),'hint':'<code>'},{'name':a31_0x264572(0xde),'meowKey':a31_0x264572(0xde),'type':a31_0x264572(0xbf),'description':a31_0x264572(0xc4),'hint':'<name>'},{'name':a31_0x264572(0xc6),'meowKey':a31_0x264572(0xc6),'type':a31_0x264572(0xbf),'description':'Environment','hint':a31_0x264572(0xe2)},{'name':a31_0x264572(0xd6),'meowKey':a31_0x264572(0xd6),'type':a31_0x264572(0xbf),'description':a31_0x264572(0xda),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a31_0x264572(0xbf),'description':'Filter\x20JSON\x20output\x20(implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':'<expr>'},{'name':a31_0x264572(0xc5),'meowKey':a31_0x264572(0xc1),'type':'boolean','description':a31_0x264572(0xdd)},{'name':'yes','meowKey':a31_0x264572(0xdb),'type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a31_0x264572(0xe4),'meowKey':'nonInteractive','type':'boolean','description':a31_0x264572(0xcc)},{'name':a31_0x264572(0xe0),'meowKey':a31_0x264572(0xe0),'type':a31_0x264572(0xdf),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a31_0x264572(0xbe),'hidden':!![]},{'name':a31_0x264572(0xe1),'meowKey':a31_0x264572(0xe1),'type':a31_0x264572(0xdf),'description':a31_0x264572(0xd0)},{'name':'id','meowKey':'id','type':a31_0x264572(0xbf),'description':'Record\x20ID','hidden':!![]},{'name':a31_0x264572(0xbd),'meowKey':a31_0x264572(0xbd),'type':'string','description':a31_0x264572(0xcd),'hidden':!![]},{'name':a31_0x264572(0xcb),'meowKey':'sqlcode','type':'string','description':a31_0x264572(0xbc),'hidden':!![]},{'name':a31_0x264572(0xd7),'meowKey':a31_0x264572(0xd7),'type':a31_0x264572(0xbf),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':'verbose','meowKey':a31_0x264572(0xc8),'type':a31_0x264572(0xdf),'description':a31_0x264572(0xd9),'hidden':!![]},{'name':a31_0x264572(0xc0),'meowKey':a31_0x264572(0xc0),'type':'boolean','description':a31_0x264572(0xd5),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a31_0x264572(0xd3),a31_0x264572(0xde),a31_0x264572(0xc6),a31_0x264572(0xd6),'jq',a31_0x264572(0xc5),a31_0x264572(0xdb),a31_0x264572(0xe4),'ci']);function a31_0x2d14(_0x9f3054,_0x5f0843){_0x9f3054=_0x9f3054-0xbc;const _0x2aead5=a31_0x2aea();let _0x2d14a4=_0x2aead5[_0x9f3054];return _0x2d14a4;}export function buildMeowFlags(){const _0xf4535=a31_0x264572;return Object['fromEntries'](GLOBAL_FLAGS[_0xf4535(0xc9)](_0x34faae=>[_0x34faae['meowKey'],{'type':_0x34faae[_0xf4535(0xc2)]}]));}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a32_0xda3f(_0x25a954,_0x862e78){_0x25a954=_0x25a954-0x8c;const _0x58fa7b=a32_0x58fa();let _0xda3f90=_0x58fa7b[_0x25a954];return _0xda3f90;}const a32_0x2e360a=a32_0xda3f;(function(_0x564dc8,_0x127ee6){const _0x5045f9=a32_0xda3f,_0x1cc1b6=_0x564dc8();while(!![]){try{const _0x1462d7=-parseInt(_0x5045f9(0x8c))/0x1+parseInt(_0x5045f9(0x94))/0x2+-parseInt(_0x5045f9(0x8f))/0x3+parseInt(_0x5045f9(0x93))/0x4+-parseInt(_0x5045f9(0x95))/0x5*(-parseInt(_0x5045f9(0x96))/0x6)+-parseInt(_0x5045f9(0x90))/0x7+parseInt(_0x5045f9(0x8e))/0x8;if(_0x1462d7===_0x127ee6)break;else _0x1cc1b6['push'](_0x1cc1b6['shift']());}catch(_0x2dfe64){_0x1cc1b6['push'](_0x1cc1b6['shift']());}}}(a32_0x58fa,0x79681));export const DEFAULT_APP_PROFILE_NAME=a32_0x2e360a(0x8d);export const DEFAULT_CONFIG_VALUES={'env':a32_0x2e360a(0x97),'format':a32_0x2e360a(0x92),'locale':a32_0x2e360a(0x98),'riskLevel':a32_0x2e360a(0x91)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a32_0x58fa(){const _0x3910f3=['5742975nrCtYp','write','compress','1056676lKRfXv','532116MqQhty','200PVNZnX','52968oJLyis','production','en-US','302873KPLVyX','main','11195680HpZaNf','1986684jHuKqM'];a32_0x58fa=function(){return _0x3910f3;};return a32_0x58fa();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a33_0x10d55f=a33_0x2522;(function(_0x32d5c1,_0x27fb09){const _0x5b54f2=a33_0x2522,_0x29776c=_0x32d5c1();while(!![]){try{const _0x36ded5=-parseInt(_0x5b54f2(0x15a))/0x1*(parseInt(_0x5b54f2(0x147))/0x2)+-parseInt(_0x5b54f2(0x152))/0x3+parseInt(_0x5b54f2(0x156))/0x4*(-parseInt(_0x5b54f2(0x14b))/0x5)+parseInt(_0x5b54f2(0x155))/0x6*(parseInt(_0x5b54f2(0x157))/0x7)+-parseInt(_0x5b54f2(0x149))/0x8+-parseInt(_0x5b54f2(0x14c))/0x9*(parseInt(_0x5b54f2(0x158))/0xa)+-parseInt(_0x5b54f2(0x14a))/0xb*(-parseInt(_0x5b54f2(0x153))/0xc);if(_0x36ded5===_0x27fb09)break;else _0x29776c['push'](_0x29776c['shift']());}catch(_0xa524f7){_0x29776c['push'](_0x29776c['shift']());}}}(a33_0x5772,0xb9389));import{getEnv,isProduction}from'../constant/env.js';function a33_0x2522(_0x22ab60,_0x4e956a){_0x22ab60=_0x22ab60-0x147;const _0x5772e1=a33_0x5772();let _0x2522d1=_0x5772e1[_0x22ab60];return _0x2522d1;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x3c4ad2){const _0x567e5e=a33_0x2522;customApiDomain=_0x3c4ad2?.[_0x567e5e(0x159)],customUserDomain=_0x3c4ad2?.[_0x567e5e(0x150)],customRuntimeDomain=_0x3c4ad2?.[_0x567e5e(0x154)];}function a33_0x5772(){const _0x1c0086=['116895qVdmyh','117nFCHeH','https://user.lovrabet.com','https://daily-runtime.lovrabet.com','https://runtime.lovrabet.com','userDomain','https://user-daily.lovrabet.com','4159611StIgeZ','492HyXZiU','runtimeDomain','6KJruJp','8LSBCnd','3952186MbizyI','562220kMEoFm','apiDomain','27541ZRqsMy','38YZdnKo','https://daily-api.lovrabet.com','11132600hkGjNn','1146442BdUYsn'];a33_0x5772=function(){return _0x1c0086;};return a33_0x5772();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a33_0x10d55f(0x14d):a33_0x10d55f(0x151));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':a33_0x10d55f(0x148));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a33_0x10d55f(0x14f):a33_0x10d55f(0x14e));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a34_0x1818f6=a34_0x3a26;(function(_0x480647,_0x1db92b){const _0x47d5fa=a34_0x3a26,_0x524b1d=_0x480647();while(!![]){try{const _0x47dfbe=-parseInt(_0x47d5fa(0x1c7))/0x1+-parseInt(_0x47d5fa(0x1c9))/0x2*(-parseInt(_0x47d5fa(0x1d0))/0x3)+-parseInt(_0x47d5fa(0x1ca))/0x4+-parseInt(_0x47d5fa(0x1ce))/0x5+-parseInt(_0x47d5fa(0x1d1))/0x6+parseInt(_0x47d5fa(0x1cf))/0x7*(-parseInt(_0x47d5fa(0x1c8))/0x8)+parseInt(_0x47d5fa(0x1cd))/0x9;if(_0x47dfbe===_0x1db92b)break;else _0x524b1d['push'](_0x524b1d['shift']());}catch(_0x172619){_0x524b1d['push'](_0x524b1d['shift']());}}}(a34_0x35c2,0x362a2));export const RUNTIME_ENV_VALUES=['production',a34_0x1818f6(0x1cc),a34_0x1818f6(0x1cb)];export function normalizeEnv(_0x3f110d){const _0x2b9deb=a34_0x1818f6;return _0x3f110d===_0x2b9deb(0x1d3)?'production':_0x3f110d;}export function isProduction(_0x2ee82e){const _0x27993b=a34_0x1818f6;return normalizeEnv(_0x2ee82e)===_0x27993b(0x1d2);}export function isDaily(_0x34be9d){const _0x257866=a34_0x1818f6;return normalizeEnv(_0x34be9d)===_0x257866(0x1cb);}function a34_0x3a26(_0x44ddae,_0x58ae91){_0x44ddae=_0x44ddae-0x1c6;const _0x35c259=a34_0x35c2();let _0x3a2696=_0x35c259[_0x44ddae];return _0x3a2696;}export function isDev(_0x5a1285){const _0x56f8eb=a34_0x1818f6,_0x5140fc=normalizeEnv(_0x5a1285);return _0x5140fc==='development'||_0x5140fc===_0x56f8eb(0x1c6);}function a34_0x35c2(){const _0x1216e3=['8471304VuGKnQ','1294360HtHyqM','42YvTzyf','33iduwDP','750006sclUwS','production','online','dev','3141lzoRen','165680pNiIEX','24818qUKKTn','1378492qZdrOe','daily','development'];a34_0x35c2=function(){return _0x1216e3;};return a34_0x35c2();}let env=normalizeEnv(process.env.LOVRABET_ENV||a34_0x1818f6(0x1d2));export function getEnv(){return env;}export function initEnv(_0xa2e542){env=normalizeEnv(_0xa2e542);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a35_0x4af2(){const _0x422c2f=['1028064KGlCwQ','2505004rvNpRm','3GLywDU','132419MbaHtj','6rErSOG','json','pretty','57858KpGMle','6736821pwQlqQ','3639753QxqTtA','5328420UXOFWY','335yAwXEL','compress'];a35_0x4af2=function(){return _0x422c2f;};return a35_0x4af2();}const a35_0x146d1f=a35_0x3fce;(function(_0x30bb42,_0x1e3cf9){const _0x68f421=a35_0x3fce,_0x11288f=_0x30bb42();while(!![]){try{const _0x5085d4=parseInt(_0x68f421(0xed))/0x1*(-parseInt(_0x68f421(0xee))/0x2)+parseInt(_0x68f421(0xec))/0x3*(-parseInt(_0x68f421(0xeb))/0x4)+-parseInt(_0x68f421(0xe8))/0x5*(-parseInt(_0x68f421(0xf1))/0x6)+parseInt(_0x68f421(0xe5))/0x7+parseInt(_0x68f421(0xea))/0x8+parseInt(_0x68f421(0xe6))/0x9+-parseInt(_0x68f421(0xe7))/0xa;if(_0x5085d4===_0x1e3cf9)break;else _0x11288f['push'](_0x11288f['shift']());}catch(_0x4b04e6){_0x11288f['push'](_0x11288f['shift']());}}}(a35_0x4af2,0x8ed63));function a35_0x3fce(_0x585c8a,_0x555a81){_0x585c8a=_0x585c8a-0xe5;const _0x4af24f=a35_0x4af2();let _0x3fced7=_0x4af24f[_0x585c8a];return _0x3fced7;}export const OUTPUT_FORMAT_VALUES=[a35_0x146d1f(0xef),a35_0x146d1f(0xf0),a35_0x146d1f(0xe9)];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a36_0x3f3b(){const _0x543c10=['26994891fYGKot','2726913unNgWW','981438TIqIQl','40dQIgXt','5RThyJU','4KxWAIt','read','write','978306SrXHow','705317XxZfKy','4669144RvZepm','560pryYBc','130671DxHSbQ'];a36_0x3f3b=function(){return _0x543c10;};return a36_0x3f3b();}const a36_0x2b9a68=a36_0x13d4;(function(_0x22c729,_0x5d3f27){const _0x7c6e4f=a36_0x13d4,_0x171c02=_0x22c729();while(!![]){try{const _0x59c9cd=parseInt(_0x7c6e4f(0xc3))/0x1*(-parseInt(_0x7c6e4f(0xbf))/0x2)+parseInt(_0x7c6e4f(0xc8))/0x3+-parseInt(_0x7c6e4f(0xc4))/0x4+-parseInt(_0x7c6e4f(0xbe))/0x5*(-parseInt(_0x7c6e4f(0xbc))/0x6)+parseInt(_0x7c6e4f(0xc2))/0x7*(parseInt(_0x7c6e4f(0xbd))/0x8)+parseInt(_0x7c6e4f(0xc6))/0x9*(-parseInt(_0x7c6e4f(0xc5))/0xa)+parseInt(_0x7c6e4f(0xc7))/0xb;if(_0x59c9cd===_0x5d3f27)break;else _0x171c02['push'](_0x171c02['shift']());}catch(_0x1040e9){_0x171c02['push'](_0x171c02['shift']());}}}(a36_0x3f3b,0xcbb7f));function a36_0x13d4(_0x1e4d2c,_0x3121f6){_0x1e4d2c=_0x1e4d2c-0xbc;const _0x3f3b24=a36_0x3f3b();let _0x13d43c=_0x3f3b24[_0x1e4d2c];return _0x13d43c;}export const RISK_LEVEL_VALUES=[a36_0x2b9a68(0xc0),a36_0x2b9a68(0xc1),'high-risk-write'];
|
package/lib/context.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a37_0x3aa933=a37_0x57aa;(function(_0x3c76e5,_0x42b04e){const _0x306757=a37_0x57aa,_0x1d83b4=_0x3c76e5();while(!![]){try{const _0x29c2f6=parseInt(_0x306757(0x1d3))/0x1*(parseInt(_0x306757(0x1db))/0x2)+-parseInt(_0x306757(0x1f2))/0x3*(-parseInt(_0x306757(0x1e8))/0x4)+parseInt(_0x306757(0x1ce))/0x5*(-parseInt(_0x306757(0x20a))/0x6)+-parseInt(_0x306757(0x1f8))/0x7+-parseInt(_0x306757(0x206))/0x8*(-parseInt(_0x306757(0x202))/0x9)+parseInt(_0x306757(0x1ea))/0xa*(parseInt(_0x306757(0x1f3))/0xb)+parseInt(_0x306757(0x1cf))/0xc*(-parseInt(_0x306757(0x1d8))/0xd);if(_0x29c2f6===_0x42b04e)break;else _0x1d83b4['push'](_0x1d83b4['shift']());}catch(_0x5b09d7){_0x1d83b4['push'](_0x1d83b4['shift']());}}}(a37_0x3f06,0x67552));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',a37_0x3aa933(0x20e)];export const NEW_CONFIG_NAME='.lovrabet.json';function resolveConfigPath(_0x5cc483){for(const _0x5a89d8 of CONFIG_NAMES){const _0x4bf632=resolve(_0x5cc483,_0x5a89d8);if(existsSync(_0x4bf632))return _0x4bf632;}return undefined;}export function resolveWriteConfigPath(_0x416515){const _0x173f62=a37_0x3aa933,_0x9172a3=_0x416515===_0x173f62(0x1de)?process[_0x173f62(0x1e7)]():homedir(),_0x540eef=resolveConfigPath(_0x9172a3);return _0x540eef??resolve(_0x9172a3,NEW_CONFIG_NAME);}export function readConfigFile(_0x1c5b0c){const _0x3ab760=a37_0x3aa933;try{if(existsSync(_0x1c5b0c)){const _0xb7bc58=readFileSync(_0x1c5b0c,{'encoding':_0x3ab760(0x1eb)});if(_0xb7bc58){const _0x332170=JSON[_0x3ab760(0x213)](_0xb7bc58);return migrateOnlineEnv(_0x1c5b0c,_0x332170),_0x332170;}}}catch{}return{};}function migrateOnlineEnv(_0x42f02e,_0x312545){const _0x370074=a37_0x3aa933;let _0x23d1d6=![];_0x312545[_0x370074(0x1f6)]===_0x370074(0x204)&&(_0x312545[_0x370074(0x1f6)]=_0x370074(0x1e9),_0x23d1d6=!![]);if(_0x312545[_0x370074(0x1ec)]&&typeof _0x312545[_0x370074(0x1ec)]==='object')for(const _0x1a2f81 of Object[_0x370074(0x1f7)](_0x312545[_0x370074(0x1ec)])){_0x1a2f81&&_0x1a2f81[_0x370074(0x1f6)]===_0x370074(0x204)&&(_0x1a2f81[_0x370074(0x1f6)]='production',_0x23d1d6=!![]);}if(_0x23d1d6)try{writeConfigFile(_0x42f02e,_0x312545);}catch{}}export function writeConfigFile(_0x3016a8,_0x596899){const _0xac5c0d=a37_0x3aa933,_0x22319c=dirname(_0x3016a8);!existsSync(_0x22319c)&&mkdirSync(_0x22319c,{'recursive':!![]});const _0xfdf256=_0x3016a8+_0xac5c0d(0x1fd);try{writeFileSync(_0xfdf256,JSON[_0xac5c0d(0x212)](_0x596899,null,0x2)+'\x0a',{'encoding':_0xac5c0d(0x1eb),'mode':0x180});try{renameSync(_0xfdf256,_0x3016a8);}catch(_0x4baa2c){if(_0x4baa2c[_0xac5c0d(0x1dd)]===_0xac5c0d(0x205)||_0x4baa2c[_0xac5c0d(0x1dd)]===_0xac5c0d(0x1fa)||_0x4baa2c[_0xac5c0d(0x1dd)]===_0xac5c0d(0x207)){writeFileSync(_0x3016a8,JSON[_0xac5c0d(0x212)](_0x596899,null,0x2)+'\x0a',{'encoding':_0xac5c0d(0x1eb)});try{unlinkSync(_0xfdf256);}catch{}}else throw _0x4baa2c;}}catch(_0x18ff62){try{unlinkSync(_0xfdf256);}catch{}throw _0x18ff62;}}export function isNonInteractiveMode(_0x187b3f){const _0x42aa52=a37_0x3aa933;return!!(_0x187b3f['nonInteractive']||_0x187b3f['ci']||process.env.LOVRABET_CI===_0x42aa52(0x1e3)||process.env.RABETBASE_CI==='true'||process.env.LOVRABET_CI===_0x42aa52(0x1e3)||process.env.CI===_0x42aa52(0x1e3)||!process[_0x42aa52(0x1df)][_0x42aa52(0x1ff)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4185bc=a37_0x3aa933;if(!process[_0x4185bc(0x1e5)]['isTTY'])return![];try{const _0x1f1ba2=process[_0x4185bc(0x1e5)][_0x4185bc(0x211)];return process[_0x4185bc(0x1e5)]['setRawMode'](!![]),process[_0x4185bc(0x1e5)]['setRawMode'](_0x1f1ba2??![]),!![];}catch{return![];}}export async function createContext(_0x486fcd){const _0x3a2a29=a37_0x3aa933,_0xf048d0=readRawConfig(),_0x3527fa=buildConfig(_0xf048d0,_0x486fcd);await initGlobalEnvironment(_0x3527fa);const {getUserDomain:_0x2afa73,getApiDomain:_0x4304fc}=await import(_0x3a2a29(0x20c)),_0xd8cf05={'apiDomain':_0x4304fc(),'userDomain':_0x2afa73()},_0x3ccb21=await buildAuth(_0x3527fa);logger[_0x3a2a29(0x1fc)](process['cwd']());const _0x39f59f=(CLI_BIN_NAME+'\x20'+process[_0x3a2a29(0x1e2)][_0x3a2a29(0x1d2)](0x2)['join']('\x20'))[_0x3a2a29(0x208)]();logger[_0x3a2a29(0x1d7)](_0x39f59f);const _0xdfc97d=isNonInteractiveMode(_0x486fcd);return{'config':_0x3527fa,'auth':_0x3ccb21,'logger':logger,'env':_0xd8cf05,'nonInteractive':_0xdfc97d};}export function buildConfigFromFlags(_0x336466){return buildConfig(readRawConfig(),_0x336466);}function a37_0x57aa(_0x33001b,_0x157c92){_0x33001b=_0x33001b-0x1ce;const _0x3f06b2=a37_0x3f06();let _0x57aa19=_0x3f06b2[_0x33001b];return _0x57aa19;}export function readAppCodeFromConfig(){const _0x249a6d=a37_0x3aa933,_0x506838=readRawConfig(),_0xe334d0=_0x506838[_0x249a6d(0x1e1)]??_0x506838['app'];if(typeof _0xe334d0===_0x249a6d(0x200)&&_0xe334d0['trim']())return _0xe334d0[_0x249a6d(0x208)]();const _0x27c839=_0x506838[_0x249a6d(0x1ec)]&&typeof _0x506838[_0x249a6d(0x1ec)]===_0x249a6d(0x1e0)?_0x506838[_0x249a6d(0x1ec)]:{},_0x49a45d=_0x506838[_0x249a6d(0x20b)]?_0x27c839[_0x506838[_0x249a6d(0x20b)]]:undefined;if(_0x49a45d?.['appcode'])return String(_0x49a45d[_0x249a6d(0x1e1)])[_0x249a6d(0x208)]();const _0x3c6ad2=normalizeEnv(String(_0x506838['env']||_0x249a6d(0x1e9))),_0x4a8c60=isDaily(_0x3c6ad2)?_0x249a6d(0x1e4):isDev(_0x3c6ad2)?_0x249a6d(0x1e6):_0x249a6d(0x1e9),_0x554e87=resolveCachedAppCode(typeof _0x506838[_0x249a6d(0x20b)]==='string'?_0x506838[_0x249a6d(0x20b)]:undefined,_0x4a8c60,typeof _0x506838[_0x249a6d(0x20f)]===_0x249a6d(0x200)?_0x506838[_0x249a6d(0x20f)]:undefined);if(_0x554e87)return _0x554e87;const _0x217714=Object[_0x249a6d(0x1f7)](_0x27c839)[_0x249a6d(0x1dc)](_0x2edb7c=>_0x2edb7c?.['appcode']);return _0x217714?.[_0x249a6d(0x1e1)]?String(_0x217714[_0x249a6d(0x1e1)])['trim']():undefined;}export function readScopedConfig(_0x47b5be){const _0x584d4d=a37_0x3aa933,_0x531966=_0x47b5be[_0x584d4d(0x201)]?_0x584d4d(0x201):_0x584d4d(0x1de);return readConfigFile(resolveWriteConfigPath(_0x531966));}export function writeScopedConfig(_0x22521f,_0x1cbf1a){const _0x1414e7=a37_0x3aa933,_0x53a33c=_0x1cbf1a['global']?'global':_0x1414e7(0x1de);writeConfigFile(resolveWriteConfigPath(_0x53a33c),_0x22521f);}export async function initGlobalEnvironment(_0x4c1f14){const _0x564bed=a37_0x3aa933,{initEnv:_0x30ede7}=await import(_0x564bed(0x20d));_0x30ede7(_0x4c1f14[_0x564bed(0x1f6)]);const {initDomains:_0x3c572f}=await import(_0x564bed(0x20c));_0x3c572f({'apiDomain':_0x4c1f14[_0x564bed(0x209)]['apiDomain']||_0x4c1f14[_0x564bed(0x209)][_0x564bed(0x1d0)]||undefined,'userDomain':_0x4c1f14[_0x564bed(0x209)][_0x564bed(0x217)]||undefined,'runtimeDomain':_0x4c1f14['raw'][_0x564bed(0x1f5)]||undefined});}export function getProjectConfigPath(){const _0x3e2516=a37_0x3aa933;return resolveConfigPath(process[_0x3e2516(0x1e7)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a37_0x3f06(){const _0xa3459d=['string','global','11223edHFps','APP','online','EPERM','1392oWlqAF','EACCES','trim','raw','114RxhPpm','defaultApp','./constant/domain.js','./constant/env.js','.lovrabetrc','accessKey','write','isRaw','stringify','parse','format','authRequired','locale','userDomain','51140JWzmWm','12LCUwOq','host','VERBOSE','slice','420670xSDzcL','missing','ACCESS_KEY','globalConfig','setRawCommand','4865471NewVMq','error','message','2dwiPBH','find','code','project','stdout','object','appcode','argv','true','daily','stdin','development','cwd','16WroFWA','production','220HPvalb','utf8','apps','app','APPCODE','PAGE_SIZE','projectConfig','ENV','600087tzknQN','30569acbPUh','empty','runtimeDomain','env','values','3549371peVwbS','inherit','EXDEV','pageSize','setLogPath','.tmp','riskLevel','isTTY'];a37_0x3f06=function(){return _0xa3459d;};return a37_0x3f06();}export function inspectCliConfigJsonFile(_0x31f01f){const _0x3a9d77=a37_0x3aa933;if(!existsSync(_0x31f01f))return{'status':_0x3a9d77(0x1d4)};try{const _0x4236c3=readFileSync(_0x31f01f,{'encoding':'utf8'});if(!_0x4236c3?.[_0x3a9d77(0x208)]())return{'status':_0x3a9d77(0x1f4)};const _0x18777b=JSON[_0x3a9d77(0x213)](_0x4236c3);return{'status':'ok','data':_0x18777b};}catch(_0x1463cf){return{'status':_0x3a9d77(0x1d9),'message':_0x1463cf instanceof Error?_0x1463cf[_0x3a9d77(0x1da)]:String(_0x1463cf)};}}export function loadRawConfigLayers(_0x5f3abb){const _0xf5bf8=a37_0x3aa933;let _0x357d87={},_0x34e45b={},_0x24b6dd,_0x19e442;try{_0x24b6dd=resolveConfigPath(homedir());if(_0x24b6dd){const _0xbd67fc=readFileSync(_0x24b6dd,{'encoding':_0xf5bf8(0x1eb)});if(_0xbd67fc)_0x357d87=JSON['parse'](_0xbd67fc);}}catch{}try{const _0x5e8e75=_0x5f3abb||process['cwd']();_0x19e442=resolveConfigPath(_0x5e8e75);if(_0x19e442){const _0x178d94=readFileSync(_0x19e442,{'encoding':_0xf5bf8(0x1eb)});if(_0x178d94)_0x34e45b=JSON[_0xf5bf8(0x213)](_0x178d94);}}catch{}return{'globalPath':_0x24b6dd,'projectPath':_0x19e442,'globalConfig':_0x357d87,'projectConfig':_0x34e45b};}function mergeRawConfigLayers(_0x5d0031){const _0xc938c2=a37_0x3aa933,{globalConfig:_0x3e0e53,projectConfig:_0x387bb1}=_0x5d0031;if(_0x387bb1[_0xc938c2(0x1f9)]===![]){const _0x173a54={..._0x387bb1};return delete _0x173a54[_0xc938c2(0x1f9)],_0x173a54;}const _0x3c05bd={..._0x3e0e53,..._0x387bb1};if(_0xc938c2(0x20b)in _0x387bb1)_0x3c05bd[_0xc938c2(0x20b)]=_0x387bb1['defaultApp'];else _0x3e0e53['defaultApp']&&(_0x3c05bd[_0xc938c2(0x20b)]=_0x3e0e53[_0xc938c2(0x20b)]);return _0x3c05bd;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x26346d){return mergeRawConfigLayers(loadRawConfigLayers(_0x26346d));}export function readRawConfigWithLayers(_0x5454d2){const _0x1d8d91=loadRawConfigLayers(_0x5454d2);return{'config':mergeRawConfigLayers(_0x1d8d91),'layers':_0x1d8d91};}export function resolveDefaultAppSource(_0x38b2d4){const _0x46718d=a37_0x3aa933;if(_0x46718d(0x20b)in _0x38b2d4[_0x46718d(0x1f0)])return'project';if(_0x38b2d4[_0x46718d(0x1f0)]['inherit']===![])return null;if(_0x38b2d4[_0x46718d(0x1d6)][_0x46718d(0x20b)])return _0x46718d(0x201);return null;}function buildConfig(_0x1b1919,_0x139fce){const _0xa31048=a37_0x3aa933,_0x74a362=_0x1b1919[_0xa31048(0x20b)]||undefined,_0x522af5=_0x139fce['app']||env(_0xa31048(0x203))||undefined,_0x2f0cbe=_0x522af5||_0x74a362||undefined,_0x13dcb3=env(_0xa31048(0x1d5))||_0x1b1919[_0xa31048(0x20f)]||undefined,_0x213d1e=_0x139fce[_0xa31048(0x1f6)]||env(_0xa31048(0x1f1))||_0x1b1919[_0xa31048(0x1f6)]||DEFAULT_CONFIG_VALUES[_0xa31048(0x1f6)],_0x3f6759=normalizeEnv(String(_0x213d1e)),_0x1967fe=isDaily(_0x3f6759)?_0xa31048(0x1e4):isDev(_0x3f6759)?_0xa31048(0x1e6):_0xa31048(0x1e9),_0x5ee251=resolveCachedAppCode(_0x2f0cbe,_0x1967fe,_0x13dcb3),_0x866550=_0x139fce[_0xa31048(0x1e1)]||env(_0xa31048(0x1ee))||_0x5ee251||_0x1b1919[_0xa31048(0x1e1)]||_0x1b1919[_0xa31048(0x1ed)]||undefined,_0x2b68d3=_0x1b1919['locale']||DEFAULT_CONFIG_VALUES[_0xa31048(0x216)],_0x4dd9a8=undefined,_0xd87773=_0x139fce['format']||env('FORMAT')||_0x1b1919[_0xa31048(0x214)],_0x1d0cd5=normalizeLegacyOutputFormat(_0xd87773),_0xecc139=env(_0xa31048(0x1ef))||_0x1b1919[_0xa31048(0x1fb)],_0x39ef13=_0xecc139?Number(_0xecc139)||undefined:undefined,_0x3ee87f=_0x1b1919[_0xa31048(0x1fe)]||_0x1b1919['maxRisk'],_0x4b2f49=_0x3ee87f==='read'||_0x3ee87f===_0xa31048(0x210)||_0x3ee87f==='high-risk-write'?_0x3ee87f:DEFAULT_CONFIG_VALUES[_0xa31048(0x1fe)],_0x5d5a39=env(_0xa31048(0x1d1)),_0x3e0553=_0x5d5a39==='1'||_0x5d5a39===_0xa31048(0x1e3);return{'appCode':typeof _0x866550==='string'&&_0x866550[_0xa31048(0x208)]()?_0x866550['trim']():undefined,'env':_0x1967fe,'locale':_0x2b68d3,'cookie':_0x4dd9a8,'accessKey':_0x13dcb3,'format':_0x1d0cd5,'pageSize':_0x39ef13,'riskLevel':_0x4b2f49,'verbose':_0x3e0553,'defaultApp':_0x74a362,'currentApp':typeof _0x2f0cbe===_0xa31048(0x200)?_0x2f0cbe:undefined,'raw':_0x1b1919};}function env(_0x2fa45a){return process.env[`LOVRABET_${_0x2fa45a}`]||undefined;}async function buildAuth(_0x1a083e){const _0x41d6dd=a37_0x3aa933,_0x3354a5='',_0x2a6c04=!!_0x1a083e[_0x41d6dd(0x20f)];return{'cookie':_0x3354a5,'isLoggedIn':_0x2a6c04,async 'getOrLogin'(){const _0x13e138=_0x41d6dd;if(_0x2a6c04)return _0x3354a5;throw CliErrors[_0x13e138(0x215)]();}};}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x1d9ce0,_0x3c6f9b){const _0x254671=a38_0x327d,_0x1186cd=_0x1d9ce0();while(!![]){try{const _0x75505a=parseInt(_0x254671(0x124))/0x1*(-parseInt(_0x254671(0x13c))/0x2)+parseInt(_0x254671(0x133))/0x3+-parseInt(_0x254671(0x13f))/0x4+parseInt(_0x254671(0x128))/0x5+-parseInt(_0x254671(0x12e))/0x6+parseInt(_0x254671(0x13a))/0x7+parseInt(_0x254671(0x14c))/0x8;if(_0x75505a===_0x3c6f9b)break;else _0x1186cd['push'](_0x1186cd['shift']());}catch(_0x2cdc55){_0x1186cd['push'](_0x1186cd['shift']());}}}(a38_0x26f3,0xc8ef7));function a38_0x26f3(){const _0x49eed8=['code','POST','/client/bff/query/','/client/app/my-apps','API\x20error\x20code:\x20','data','2tyJRgd','string','authRequired','status','38000RIAGGt','errorMsg','name','Check\x20your\x20credentials\x20and\x20try\x20again.','/client/dataset/query?','abort','5908542XNsBKQ','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','Request\x20timeout:\x20','filter','json','1752252FXnfJv','Configure\x20accessKey\x20in\x20.lovrabet.json.','application/json','object','apiError','success','SQL\x20query\x20not\x20found:\x20','1228493darDPH','appCode','497758JTSzBj','/client/dataset/list','signal','6298544UtVpBa','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','appName','errorCode','sqlCode','BFF\x20script\x20not\x20found:\x20id=','tableData','validation','cli:lovrabet-runtime','test','API\x20error:\x20','isArray','/client/sql/query','24903992jKDwhm'];a38_0x26f3=function(){return _0x49eed8;};return a38_0x26f3();}import{getRuntimeDomain}from'../constant/domain.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x392c02){_activeAK=_0x392c02||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2aefd2,_0x2267ae={}){const _0x38c134=a38_0x327d,{method:method='GET',body:_0x24dee9,headers:headers={},timeout:timeout=0x7530}=_0x2267ae,_0x3c5a3e=_activeAK,_0x221230=getRuntimeDomain();if(!_0x3c5a3e)throw CliErrors[_0x38c134(0x126)](_0x38c134(0x134));const _0x542c6d=''+_0x221230+_0x2aefd2,_0x5e36f7={'X-User-AK':_0x3c5a3e},_0x4a6544=new AbortController(),_0x3bbe3b=setTimeout(()=>_0x4a6544[_0x38c134(0x12d)](),timeout);try{const _0x56854a=await fetch(_0x542c6d,{'method':method,'headers':{'Content-Type':_0x38c134(0x135),'X-Invoke-Source':_0x38c134(0x147),..._0x5e36f7,...headers},'body':_0x24dee9?JSON['stringify'](_0x24dee9):undefined,'signal':_0x4a6544[_0x38c134(0x13e)]});let _0xd1a698;try{_0xd1a698=await _0x56854a[_0x38c134(0x132)]();}catch{throw CliErrors[_0x38c134(0x137)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x56854a[_0x38c134(0x127)]+')',_0x56854a['status']>=0x190?_0x38c134(0x12b):undefined);}if(!_0x56854a['ok']||_0xd1a698[_0x38c134(0x138)]===![])throw CliErrors[_0x38c134(0x137)](_0xd1a698[_0x38c134(0x129)]||_0xd1a698['message']||_0x38c134(0x149)+_0x56854a['status'],_0xd1a698[_0x38c134(0x142)]?_0x38c134(0x122)+_0xd1a698[_0x38c134(0x142)]:undefined);return _0xd1a698;}catch(_0x1d09d8){if(_0x1d09d8 instanceof Error&&_0x1d09d8[_0x38c134(0x12a)]==='AbortError')throw CliErrors[_0x38c134(0x137)](_0x38c134(0x130)+_0x542c6d);throw _0x1d09d8;}finally{clearTimeout(_0x3bbe3b);}}export async function getBffScriptInfo(_0x3f85fa){const _0x2002f7=a38_0x327d,_0x2b59d3=await apiRequest(_0x2002f7(0x120)+_0x3f85fa);if(!_0x2b59d3['data'])throw CliErrors[_0x2002f7(0x146)](_0x2002f7(0x144)+_0x3f85fa);return _0x2b59d3[_0x2002f7(0x123)];}export async function getSqlQueryInfo(_0x3d12c5,_0x418210){const _0x42b8c7=a38_0x327d,_0x57d2d6=await apiRequest(_0x42b8c7(0x14b),{'method':_0x42b8c7(0x11f),'body':{'appCode':_0x3d12c5,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x418210}}),_0x470b25=_0x57d2d6[_0x42b8c7(0x123)],_0x3346d6=_0x470b25&&typeof _0x470b25===_0x42b8c7(0x136)&&'tableData'in _0x470b25?_0x470b25['tableData']?.[0x0]:_0x470b25&&typeof _0x470b25===_0x42b8c7(0x136)&&_0x42b8c7(0x143)in _0x470b25?_0x470b25:undefined;if(!_0x3346d6)throw CliErrors[_0x42b8c7(0x146)](_0x42b8c7(0x139)+_0x418210);return _0x3346d6;}function isRemoteAppItem(_0x55393f){const _0xf68f71=a38_0x327d;return!!_0x55393f&&typeof _0x55393f===_0xf68f71(0x136)&&typeof _0x55393f[_0xf68f71(0x13b)]===_0xf68f71(0x125)&&typeof _0x55393f[_0xf68f71(0x141)]===_0xf68f71(0x125);}function a38_0x327d(_0x18b889,_0x1bbb28){_0x18b889=_0x18b889-0x11f;const _0x26f308=a38_0x26f3();let _0x327da8=_0x26f308[_0x18b889];return _0x327da8;}function extractRemoteAppItems(_0x1b577d){const _0x324a49=a38_0x327d;if(Array[_0x324a49(0x14a)](_0x1b577d))return _0x1b577d[_0x324a49(0x131)](isRemoteAppItem);if(!_0x1b577d||typeof _0x1b577d!==_0x324a49(0x136))throw CliErrors[_0x324a49(0x137)](_0x324a49(0x12f));const _0x4b4486=_0x1b577d;if(Array[_0x324a49(0x14a)](_0x4b4486[_0x324a49(0x145)]))return _0x4b4486['tableData'][_0x324a49(0x131)](isRemoteAppItem);if(_0x4b4486[_0x324a49(0x123)]&&typeof _0x4b4486[_0x324a49(0x123)]===_0x324a49(0x136)){const _0x46412b=_0x4b4486[_0x324a49(0x123)];if(Array[_0x324a49(0x14a)](_0x46412b[_0x324a49(0x145)]))return _0x46412b[_0x324a49(0x145)][_0x324a49(0x131)](isRemoteAppItem);}throw CliErrors[_0x324a49(0x137)](_0x324a49(0x140));}export async function getMyApps(){const _0x12dbc5=a38_0x327d,_0x568fd4=await apiRequest(_0x12dbc5(0x121));return extractRemoteAppItems(_0x568fd4['data']);}export async function listDatasets(_0x2dd484,_0x4f2a0f){const _0x3d41d5=a38_0x327d,_0x3b9448=await apiRequest(_0x3d41d5(0x13d),{'method':_0x3d41d5(0x11f),'body':{'appCode':_0x2dd484,..._0x4f2a0f?.[_0x3d41d5(0x14d)]&&{'code':_0x4f2a0f[_0x3d41d5(0x14d)]},..._0x4f2a0f?.[_0x3d41d5(0x12a)]&&{'name':_0x4f2a0f[_0x3d41d5(0x12a)]}}});return extractList(_0x3b9448[_0x3d41d5(0x123)]);}export async function getDatasetDetail(_0xc4147e){const _0x3306d2=a38_0x327d,_0x19b7f7=/^\d+$/[_0x3306d2(0x148)](_0xc4147e)?'id':_0x3306d2(0x14d),_0x3b71b3=await apiRequest(_0x3306d2(0x12c)+_0x19b7f7+'='+_0xc4147e);return _0x3b71b3['data'];}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x47a1de,_0x492d3f){const _0x119c78=a39_0x126b,_0x3cc19b=_0x47a1de();while(!![]){try{const _0x32c592=-parseInt(_0x119c78(0x1aa))/0x1+parseInt(_0x119c78(0x1b4))/0x2*(parseInt(_0x119c78(0x1b0))/0x3)+parseInt(_0x119c78(0x1a4))/0x4*(-parseInt(_0x119c78(0x1af))/0x5)+-parseInt(_0x119c78(0x1b5))/0x6*(parseInt(_0x119c78(0x1ae))/0x7)+parseInt(_0x119c78(0x1a5))/0x8+-parseInt(_0x119c78(0x1b1))/0x9*(-parseInt(_0x119c78(0x1ad))/0xa)+parseInt(_0x119c78(0x1ab))/0xb*(-parseInt(_0x119c78(0x1a2))/0xc);if(_0x32c592===_0x492d3f)break;else _0x3cc19b['push'](_0x3cc19b['shift']());}catch(_0x105195){_0x3cc19b['push'](_0x3cc19b['shift']());}}}(a39_0x49f1,0x56d94));import{listDatasets}from'../core/api-client.js';function a39_0x126b(_0x43dce0,_0x50979a){_0x43dce0=_0x43dce0-0x1a0;const _0x49f145=a39_0x49f1();let _0x126b24=_0x49f145[_0x43dce0];return _0x126b24;}const cache=new Map();function a39_0x49f1(){const _0x4a9b76=['2510MQoFdp','7OAMief','195mCadZz','54TdDgbX','13167ohZQfG','get','entries','8434JJTuxY','266748DuitcQ','find','dbtableConfig','12urQXjb','dbId','23000HUBrXw','4532888zuQqYC','set','db-','dbName','has','128401tGLveJ','2825779TMghmi','map'];a39_0x49f1=function(){return _0x4a9b76;};return a39_0x49f1();}export async function listDatabases(_0x53a3d1){const _0xeb13dc=a39_0x126b;if(cache[_0xeb13dc(0x1a9)](_0x53a3d1))return cache[_0xeb13dc(0x1b2)](_0x53a3d1);const _0x49ae26=await listDatasets(_0x53a3d1),_0x224d9e=new Map();for(const _0x3a1567 of _0x49ae26){const _0x266157=_0x3a1567[_0xeb13dc(0x1a1)];_0x266157?.[_0xeb13dc(0x1a3)]!=null&&_0x224d9e[_0xeb13dc(0x1a6)](_0x266157[_0xeb13dc(0x1a3)],_0x266157[_0xeb13dc(0x1a8)]??_0xeb13dc(0x1a7)+_0x266157[_0xeb13dc(0x1a3)]);}const _0x342d0e=[..._0x224d9e[_0xeb13dc(0x1b3)]()][_0xeb13dc(0x1ac)](([_0x2a0cdb,_0x93b2f7])=>({'dbId':_0x2a0cdb,'dbName':_0x93b2f7}));return cache[_0xeb13dc(0x1a6)](_0x53a3d1,_0x342d0e),_0x342d0e;}export async function getDbName(_0x1610f9,_0x1cbdc5){const _0x147d4a=a39_0x126b;try{const _0x2ee5f7=await listDatabases(_0x1610f9);return _0x2ee5f7[_0x147d4a(0x1a0)](_0x13deab=>_0x13deab['dbId']===_0x1cbdc5)?.['dbName'];}catch{return undefined;}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x2bb4aa,_0x1c14e6){const _0x1a4b85=a40_0x1d13,_0x25347d=_0x2bb4aa();while(!![]){try{const _0x1e0a94=-parseInt(_0x1a4b85(0x9d))/0x1+parseInt(_0x1a4b85(0xa8))/0x2*(parseInt(_0x1a4b85(0xaa))/0x3)+-parseInt(_0x1a4b85(0x94))/0x4*(-parseInt(_0x1a4b85(0xa3))/0x5)+parseInt(_0x1a4b85(0x93))/0x6+parseInt(_0x1a4b85(0xa0))/0x7+parseInt(_0x1a4b85(0x98))/0x8*(parseInt(_0x1a4b85(0xa9))/0x9)+parseInt(_0x1a4b85(0x9e))/0xa*(-parseInt(_0x1a4b85(0xa5))/0xb);if(_0x1e0a94===_0x1c14e6)break;else _0x25347d['push'](_0x25347d['shift']());}catch(_0x26ec53){_0x25347d['push'](_0x25347d['shift']());}}}(a40_0x542b,0x8c7da));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;function a40_0x542b(){const _0x348210=['dataset_','sql','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','1499768pIMKgX','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','update','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','isArray','80702fDFiQf','1649080mFLMsv','execute','5081804CqIFhX','delete','accessKey','5dnJbDC','getOne','154QsVxyX','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','\x22.\x20','2ftMVnw','54HVcPVD','2750988aVaISB','bff','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','batchCreate','env','models','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','1024356ZRtwuZ','105376lxRYyw'];a40_0x542b=function(){return _0x348210;};return a40_0x542b();}export function initSdkClient(_0x3a02b0){const _0x1a9c47=a40_0x1d13;_client=createClient({'appCode':_0x3a02b0['appCode'],'env':_0x3a02b0[_0x1a9c47(0xae)],'authMode':_0x3a02b0['authMode'],..._0x3a02b0[_0x1a9c47(0xa2)]?{'accessKey':_0x3a02b0['accessKey']}:{},'options':{'timeout':0x7530}});}function ensureClient(){const _0x157473=a40_0x1d13;if(!_client)throw new Error(_0x157473(0xac));return _client;}export async function executeData(_0x41f39c,_0x22463b,_0x27348c){const _0xf438ef=a40_0x1d13,_0x3233e8=ensureClient(),_0xa5036a=_0xf438ef(0x95)+_0x41f39c,_0x3aa7e5=_0x3233e8[_0xf438ef(0x91)][_0xa5036a];if(!_0x3aa7e5||typeof _0x3aa7e5[_0x22463b]!=='function')throw new Error(_0xf438ef(0xa6)+_0x22463b+_0xf438ef(0xa7)+_0xf438ef(0x9b));if(_0x22463b===_0xf438ef(0xad))return _0x3aa7e5[_0xf438ef(0xad)](parseBatchCreateItemsFromParams(_0x27348c));const _0x3cdd0b=_0x27348c!==undefined&&_0x27348c!==null&&!Array[_0xf438ef(0x9c)](_0x27348c)?_0x27348c:{};switch(_0x22463b){case _0xf438ef(0xa4):{const _0x2b6dc3=_0x3cdd0b['id'];if(_0x2b6dc3===undefined||_0x2b6dc3===null)throw new Error(_0xf438ef(0x92));return _0x3aa7e5[_0xf438ef(0xa4)](_0x2b6dc3);}case _0xf438ef(0x9a):{const {id:_0x2ff227,..._0x4ad86d}=_0x3cdd0b;if(_0x2ff227===undefined||_0x2ff227===null)throw new Error(_0xf438ef(0x97));return _0x3aa7e5['update'](_0x2ff227,_0x4ad86d);}case _0xf438ef(0xa1):{const _0x289401=_0x3cdd0b['id'];if(_0x289401===undefined||_0x289401===null)throw new Error(_0xf438ef(0x99));return _0x3aa7e5[_0xf438ef(0xa1)](_0x289401);}default:return _0x3aa7e5[_0x22463b](_0x3cdd0b);}}function a40_0x1d13(_0x58546b,_0x540c5d){_0x58546b=_0x58546b-0x91;const _0x542b95=a40_0x542b();let _0x1d131f=_0x542b95[_0x58546b];return _0x1d131f;}export async function executeSdkSql(_0x59c5ea,_0x2d3ac3){const _0x4a9411=a40_0x1d13,_0x50cf51=ensureClient();return _0x50cf51[_0x4a9411(0x96)][_0x4a9411(0x9f)]({'sqlCode':_0x59c5ea,'params':_0x2d3ac3});}export async function executeSdkBff(_0x560c9a,_0x506f40){const _0x1bff3c=a40_0x1d13,_0x48887c=ensureClient();return _0x48887c[_0x1bff3c(0xab)][_0x1bff3c(0x9f)]({'scriptName':_0x560c9a,'params':_0x506f40});}
|
package/lib/errors.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a41_0x47c8(_0xc159c7,_0x10b2da){_0xc159c7=_0xc159c7-0xaa;const _0x3a1ff8=a41_0x3a1f();let _0x47c8b8=_0x3a1ff8[_0xc159c7];return _0x47c8b8;}const a41_0x27f945=a41_0x47c8;function a41_0x3a1f(){const _0x136f7e=['973SQwshY','2207970WndrWc','2ySMhFX','632307EagXdt','8282000bAeKQA','35599399KyeNNh','110EGcBUA','\x20auth\x20login`.','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20.lovrabet.json\x20file.','3846pMXzKn','584416XaQmUX','30vzoBGz','522441GaYinF','Set\x20appcode\x20via\x20--appcode\x20or\x20.lovrabet.json.'];a41_0x3a1f=function(){return _0x136f7e;};return a41_0x3a1f();}(function(_0x1ca74e,_0x11c60a){const _0x18efcb=a41_0x47c8,_0x1e695a=_0x1ca74e();while(!![]){try{const _0x25bd35=parseInt(_0x18efcb(0xb1))/0x1*(parseInt(_0x18efcb(0xb0))/0x2)+parseInt(_0x18efcb(0xaf))/0x3+-parseInt(_0x18efcb(0xaa))/0x4*(-parseInt(_0x18efcb(0xab))/0x5)+-parseInt(_0x18efcb(0xb7))/0x6*(parseInt(_0x18efcb(0xae))/0x7)+parseInt(_0x18efcb(0xb2))/0x8+parseInt(_0x18efcb(0xac))/0x9*(parseInt(_0x18efcb(0xb4))/0xa)+-parseInt(_0x18efcb(0xb3))/0xb;if(_0x25bd35===_0x11c60a)break;else _0x1e695a['push'](_0x1e695a['shift']());}catch(_0x2c61ac){_0x1e695a['push'](_0x1e695a['shift']());}}}(a41_0x3a1f,0x90d96));import{CliError,createCliErrors}from'@lovrabet/cli-framework';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+a41_0x27f945(0xb5),'configMissingHint':a41_0x27f945(0xad),'notInProjectHint':a41_0x27f945(0xb6)});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a42_0x1bf0(){var _0x371075=['2875130wIjaCD','4895072PBRsYa','2975348mbDERT','1397034SiGTnc','3HUjQcJ','5EQreiQ','11116712IAURUB','778770Nnlvxo','31618521IBliXe'];a42_0x1bf0=function(){return _0x371075;};return a42_0x1bf0();}(function(_0x3a129e,_0x278f24){var _0x601fc=a42_0x1dc4,_0x2b033d=_0x3a129e();while(!![]){try{var _0x17602a=-parseInt(_0x601fc(0x164))/0x1+parseInt(_0x601fc(0x16a))/0x2+parseInt(_0x601fc(0x165))/0x3*(-parseInt(_0x601fc(0x163))/0x4)+parseInt(_0x601fc(0x166))/0x5*(parseInt(_0x601fc(0x168))/0x6)+-parseInt(_0x601fc(0x16b))/0x7+-parseInt(_0x601fc(0x167))/0x8+parseInt(_0x601fc(0x169))/0x9;if(_0x17602a===_0x278f24)break;else _0x2b033d['push'](_0x2b033d['shift']());}catch(_0x294881){_0x2b033d['push'](_0x2b033d['shift']());}}}(a42_0x1bf0,0xcfb55));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a42_0x18c9fb}from'@lovrabet/cli-framework';function a42_0x1dc4(_0x42c2a6,_0x590313){_0x42c2a6=_0x42c2a6-0x163;var _0x1bf0ad=a42_0x1bf0();var _0x1dc49e=_0x1bf0ad[_0x42c2a6];return _0x1dc49e;}export function buildAllFlags(_0x27cfff){return a42_0x18c9fb(_0x27cfff,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a43_0xd14a(_0x2b32f0,_0xeb5384){_0x2b32f0=_0x2b32f0-0x19c;const _0x321857=a43_0x3218();let _0xd14a89=_0x321857[_0x2b32f0];return _0xd14a89;}function a43_0x3218(){const _0x1ed186=['46521320HyvgCl','1ujzGDG','508074SPzBjm','2960152dLeVAU','2173125wPUgLf','1904cfuKOI','35KHFOjQ','description','6948747aPOSTn','48979EjdkBF','5919868kFSgNc'];a43_0x3218=function(){return _0x1ed186;};return a43_0x3218();}(function(_0x332fde,_0x29f49d){const _0x2801a2=a43_0xd14a,_0x18b460=_0x332fde();while(!![]){try{const _0x42f48f=-parseInt(_0x2801a2(0x1a4))/0x1*(parseInt(_0x2801a2(0x1a6))/0x2)+-parseInt(_0x2801a2(0x19c))/0x3+parseInt(_0x2801a2(0x1a2))/0x4+-parseInt(_0x2801a2(0x19e))/0x5*(parseInt(_0x2801a2(0x1a5))/0x6)+parseInt(_0x2801a2(0x1a1))/0x7*(-parseInt(_0x2801a2(0x19d))/0x8)+-parseInt(_0x2801a2(0x1a0))/0x9+parseInt(_0x2801a2(0x1a3))/0xa;if(_0x42f48f===_0x29f49d)break;else _0x18b460['push'](_0x18b460['shift']());}catch(_0x32012e){_0x18b460['push'](_0x18b460['shift']());}}}(a43_0x3218,0xdb1f6));export function dryRun(_0x27e005,_0x4c079e){const _0x18457f={'method':_0x27e005,'url':_0x4c079e},_0x271206={'body'(_0x1e2290){return _0x18457f['body']=_0x1e2290,_0x271206;},'description'(_0x48115d){const _0x2ae92d=a43_0xd14a;return _0x18457f[_0x2ae92d(0x19f)]=_0x48115d,_0x271206;},'build'(){return{..._0x18457f};}};return _0x271206;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a44_0x1eb7(_0x29a0cd,_0x3ab826){_0x29a0cd=_0x29a0cd-0x162;const _0x1b18c3=a44_0x1b18();let _0x1eb72e=_0x1b18c3[_0x29a0cd];return _0x1eb72e;}const a44_0x4785d4=a44_0x1eb7;(function(_0x99971d,_0x48c0d0){const _0x13a25e=a44_0x1eb7,_0x4811d8=_0x99971d();while(!![]){try{const _0x51e9f4=-parseInt(_0x13a25e(0x164))/0x1+-parseInt(_0x13a25e(0x16b))/0x2+-parseInt(_0x13a25e(0x16c))/0x3+-parseInt(_0x13a25e(0x16a))/0x4*(parseInt(_0x13a25e(0x163))/0x5)+-parseInt(_0x13a25e(0x169))/0x6*(parseInt(_0x13a25e(0x162))/0x7)+-parseInt(_0x13a25e(0x168))/0x8+-parseInt(_0x13a25e(0x165))/0x9*(-parseInt(_0x13a25e(0x16d))/0xa);if(_0x51e9f4===_0x48c0d0)break;else _0x4811d8['push'](_0x4811d8['shift']());}catch(_0x1c796d){_0x4811d8['push'](_0x4811d8['shift']());}}}(a44_0x1b18,0xa8033));function a44_0x1b18(){const _0x50c382=['185YyGrKh','535079fReXeO','46742049txzgaH','parseFlags','validateFlags','3237728JescYB','396vckMxa','135996lgKNdd','770936jsFRpn','1715982daVdiD','10qCCLib','143199WMGfJR'];a44_0x1b18=function(){return _0x50c382;};return a44_0x1b18();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a44_0x4785d4(0x166)];export const validateFlags=helpers[a44_0x4785d4(0x167)];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a45_0x11a5ed=a45_0x52d9;function a45_0x52d9(_0x145ca7,_0x2a0d20){_0x145ca7=_0x145ca7-0xf8;const _0x6adaaa=a45_0x6ada();let _0x52d9eb=_0x6adaaa[_0x145ca7];return _0x52d9eb;}(function(_0x157fef,_0x4e9d03){const _0x228a7a=a45_0x52d9,_0x4f5fba=_0x157fef();while(!![]){try{const _0x21d974=-parseInt(_0x228a7a(0xf8))/0x1+parseInt(_0x228a7a(0x101))/0x2*(parseInt(_0x228a7a(0xfc))/0x3)+-parseInt(_0x228a7a(0x100))/0x4*(-parseInt(_0x228a7a(0xfd))/0x5)+-parseInt(_0x228a7a(0xff))/0x6*(parseInt(_0x228a7a(0x102))/0x7)+-parseInt(_0x228a7a(0xf9))/0x8+parseInt(_0x228a7a(0xfe))/0x9+-parseInt(_0x228a7a(0x103))/0xa;if(_0x21d974===_0x4e9d03)break;else _0x4f5fba['push'](_0x4f5fba['shift']());}catch(_0x198b00){_0x4f5fba['push'](_0x4f5fba['shift']());}}}(a45_0x6ada,0x83a3b));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';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x33b3dd=>serviceGroups[a45_0x11a5ed(0xfb)](_0x33b3dd),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a45_0x11a5ed(0xfa)});export function generateCommandHelp(_0x5d2db5){return generators['generateCommandHelp'](_0x5d2db5);}export const generateServiceHelp=generators['generateServiceHelp'];function a45_0x6ada(){const _0x3c3780=['24NMkGbw','95GcYVXu','9010008jZVacG','12VjWaEE','135164bYsWeY','13106CGqthd','406518AbboRb','8631380pBtjgc','generateFullHelp','65830hpelZl','890032IBaOqf','Requires\x20appcode\x20(set\x20via\x20.lovrabet.json\x20or\x20--appcode).','get'];a45_0x6ada=function(){return _0x3c3780;};return a45_0x6ada();}export const generateFullHelp=generators[a45_0x11a5ed(0x104)];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a46_0x4cfc(_0x4e9a1b,_0x365dad){_0x4e9a1b=_0x4e9a1b-0x8c;var _0x3b713f=a46_0x3b71();var _0x4cfcd4=_0x3b713f[_0x4e9a1b];return _0x4cfcd4;}(function(_0x12534d,_0x57b287){var _0x5d5be6=a46_0x4cfc,_0x324069=_0x12534d();while(!![]){try{var _0x3c8040=-parseInt(_0x5d5be6(0x94))/0x1*(-parseInt(_0x5d5be6(0x95))/0x2)+-parseInt(_0x5d5be6(0x8e))/0x3+parseInt(_0x5d5be6(0x8c))/0x4+parseInt(_0x5d5be6(0x93))/0x5*(parseInt(_0x5d5be6(0x8d))/0x6)+parseInt(_0x5d5be6(0x96))/0x7*(parseInt(_0x5d5be6(0x92))/0x8)+parseInt(_0x5d5be6(0x8f))/0x9+parseInt(_0x5d5be6(0x91))/0xa*(-parseInt(_0x5d5be6(0x90))/0xb);if(_0x3c8040===_0x57b287)break;else _0x324069['push'](_0x324069['shift']());}catch(_0x2e112c){_0x324069['push'](_0x324069['shift']());}}}(a46_0x3b71,0x69879));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';function a46_0x3b71(){var _0x38a777=['170DLZlQu','858041Vxiovg','2yzXdxl','21119OpBHqU','3256640eIpVDF','99894hxzpUu','963780lYmcpJ','155565ZlnWoz','946JlBBdY','180620fmOkTD','136qLIFjX'];a46_0x3b71=function(){return _0x38a777;};return a46_0x3b71();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x12897c,_0x431bee){var _0x3588b5=a47_0x9c34,_0x9fe517=_0x12897c();while(!![]){try{var _0x135f41=-parseInt(_0x3588b5(0xf9))/0x1+parseInt(_0x3588b5(0xfb))/0x2*(-parseInt(_0x3588b5(0xfa))/0x3)+-parseInt(_0x3588b5(0xfe))/0x4*(parseInt(_0x3588b5(0xff))/0x5)+-parseInt(_0x3588b5(0xf8))/0x6*(-parseInt(_0x3588b5(0x100))/0x7)+-parseInt(_0x3588b5(0xf7))/0x8+parseInt(_0x3588b5(0xfd))/0x9+parseInt(_0x3588b5(0xfc))/0xa;if(_0x135f41===_0x431bee)break;else _0x9fe517['push'](_0x9fe517['shift']());}catch(_0x534ad2){_0x9fe517['push'](_0x9fe517['shift']());}}}(a47_0x1bd6,0x7dcb5));export{formatOutput}from'@lovrabet/cli-framework';function a47_0x9c34(_0x289c71,_0x1312b3){_0x289c71=_0x289c71-0xf7;var _0x1bd665=a47_0x1bd6();var _0x9c34b8=_0x1bd665[_0x289c71];return _0x9c34b8;}function a47_0x1bd6(){var _0x178a30=['169221yuDExU','22SqemHk','23968280qHfGjy','6243066lUdNfY','4TVKoli','2695015fQmVON','623xOnVbY','5156352tFCSev','11454MWXgHT','941126NzZSFA'];a47_0x1bd6=function(){return _0x178a30;};return a47_0x1bd6();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x5247ae,_0x480445){const _0x293e5e=a48_0x167b,_0x3da3b5=_0x5247ae();while(!![]){try{const _0x6392f=-parseInt(_0x293e5e(0xb2))/0x1+parseInt(_0x293e5e(0xc7))/0x2*(-parseInt(_0x293e5e(0xcd))/0x3)+-parseInt(_0x293e5e(0xbc))/0x4+parseInt(_0x293e5e(0xc1))/0x5*(parseInt(_0x293e5e(0xc3))/0x6)+-parseInt(_0x293e5e(0xc6))/0x7+parseInt(_0x293e5e(0xd0))/0x8+parseInt(_0x293e5e(0xb3))/0x9*(parseInt(_0x293e5e(0xb5))/0xa);if(_0x6392f===_0x480445)break;else _0x3da3b5['push'](_0x3da3b5['shift']());}catch(_0x22bd4d){_0x3da3b5['push'](_0x3da3b5['shift']());}}}(a48_0x353a,0xab2ba));function toKebab(_0x450f47){const _0xae2f5d=a48_0x167b;return _0x450f47['replace'](/_/g,'-')[_0xae2f5d(0xca)](/-([A-Z]+)/g,(_0x2bde00,_0x2692e6)=>'-'+_0x2692e6['toLowerCase']())[_0xae2f5d(0xca)](/([a-z0-9])([A-Z])/g,(_0x20137e,_0x55c864,_0x3ab34)=>_0x55c864+'-'+_0x3ab34)[_0xae2f5d(0xcf)]();}function a48_0x353a(){const _0x5a18d7=['entries','string','help','original','global','boolean','push','1316497iKSNFm','9549918FhkgmL','has','10FEbEcz','env','non-interactive','number','app','length','keys','3240924wrzPEE','type','alias','appcode','dry-run','599305SVMJRu','set','66BDfFDo','indexOf','get','5010726DgdHHC','2irGjpL','dryRun','add','replace','sticky','corrected','221637WhhCem','name','toLowerCase','9903728WYrURD','yes'];a48_0x353a=function(){return _0x5a18d7;};return a48_0x353a();}function buildKnownFlags(_0x1d00c7){const _0x2a7140=a48_0x167b,_0x18b654=new Set();for(const _0x477a3e of _0x1d00c7){_0x18b654[_0x2a7140(0xc9)](_0x477a3e[_0x2a7140(0xce)]),_0x18b654[_0x2a7140(0xc9)](toCamelCase(_0x477a3e[_0x2a7140(0xce)]));}for(const _0x42e794 of[_0x2a7140(0xc0),_0x2a7140(0xc8),_0x2a7140(0xd1),'format']){_0x18b654['add'](_0x42e794);}for(const _0x28ac2b of[_0x2a7140(0xad),_0x2a7140(0xb6),_0x2a7140(0xbf),_0x2a7140(0xb9),'nonInteractive',_0x2a7140(0xb7),'ci',_0x2a7140(0xaf),'version']){_0x18b654[_0x2a7140(0xc9)](_0x28ac2b);}return _0x18b654;}function a48_0x167b(_0x336d50,_0x50503a){_0x336d50=_0x336d50-0xab;const _0x353afe=a48_0x353a();let _0x167b27=_0x353afe[_0x336d50];return _0x167b27;}function buildFlagTypeMap(_0x1ec3ce){const _0x17d2c3=a48_0x167b,_0x3d636c=new Map();for(const _0x54a91d of _0x1ec3ce){_0x3d636c['set'](_0x54a91d[_0x17d2c3(0xce)],_0x54a91d[_0x17d2c3(0xbd)]),_0x3d636c[_0x17d2c3(0xc2)](toCamelCase(_0x54a91d[_0x17d2c3(0xce)]),_0x54a91d[_0x17d2c3(0xbd)]);}return _0x3d636c;}function toCamelCase(_0x2696d5){const _0x248be0=a48_0x167b;return _0x2696d5[_0x248be0(0xca)](/-([a-z])/g,(_0x3c7ef4,_0x3beca3)=>_0x3beca3['toUpperCase']());}function aliasHandler(_0x579074,_0x3c880e){const _0x21181b=a48_0x167b,_0x4f17ee=[];for(const _0x470d8a of Object[_0x21181b(0xbb)](_0x579074)){if(_0x3c880e[_0x21181b(0xb4)](_0x470d8a))continue;const _0x188dac=toKebab(_0x470d8a);_0x188dac!==_0x470d8a&&_0x3c880e['has'](_0x188dac)&&_0x4f17ee[_0x21181b(0xb1)]({'original':_0x470d8a,'corrected':_0x188dac,'handler':_0x21181b(0xbe)});}return _0x4f17ee;}function stickyHandler(_0xe38f05,_0x4f1580,_0x3f6890){const _0x46a69=a48_0x167b,_0x3c6dd4=[];for(const [_0x5c18eb,_0xb24f9d]of Object[_0x46a69(0xab)](_0xe38f05)){if(_0xb24f9d!==!![])continue;for(let _0x27f2b4=_0x5c18eb[_0x46a69(0xba)]-0x1;_0x27f2b4>0x0;_0x27f2b4--){const _0x3e0122=_0x5c18eb['slice'](0x0,_0x27f2b4),_0x3c426d=_0x5c18eb['slice'](_0x27f2b4),_0xf7347=toKebab(_0x3e0122),_0x4345bf=toCamelCase(_0x3e0122),_0x457329=_0x4f1580[_0x46a69(0xb4)](_0x3e0122)?_0x3e0122:_0x4f1580['has'](_0xf7347)?_0xf7347:_0x4f1580[_0x46a69(0xb4)](_0x4345bf)?_0x4345bf:null;if(!_0x457329)continue;const _0x52745a=_0x3f6890[_0x46a69(0xc5)](_0x457329)??_0x46a69(0xac);let _0x64995c;if(_0x52745a==='number'){const _0x42ef01=Number(_0x3c426d);if(isNaN(_0x42ef01)||_0x3c426d==='')continue;_0x64995c=_0x42ef01;}else{if(_0x52745a===_0x46a69(0xb0))continue;else{if(_0x3c426d==='')continue;_0x64995c=_0x3c426d;}}_0x3c6dd4[_0x46a69(0xb1)]({'original':_0x5c18eb,'corrected':_0x457329+'='+_0x64995c,'handler':_0x46a69(0xcb)});break;}}return _0x3c6dd4;}export function correctFlags(_0xc13fe2,_0x1dbf2d){const _0x2f1e30=a48_0x167b,_0x45c274=buildKnownFlags(_0x1dbf2d),_0xe87b25=buildFlagTypeMap(_0x1dbf2d),_0x1410c8=aliasHandler(_0xc13fe2,_0x45c274),_0x2d9d49=stickyHandler(_0xc13fe2,_0x45c274,_0xe87b25),_0x2ad808=[..._0x1410c8,..._0x2d9d49];if(_0x2ad808[_0x2f1e30(0xba)]===0x0)return{'flags':_0xc13fe2,'corrections':[]};const _0xde8120={..._0xc13fe2},_0x1a7754=new Set();for(const _0x5f2249 of _0x1410c8){_0xde8120[_0x5f2249[_0x2f1e30(0xcc)]]=_0xc13fe2[_0x5f2249[_0x2f1e30(0xae)]],_0x1a7754[_0x2f1e30(0xc9)](_0x5f2249[_0x2f1e30(0xae)]);}for(const _0x1ac756 of _0x2d9d49){const _0xd0ddb1=_0x1ac756[_0x2f1e30(0xcc)][_0x2f1e30(0xc4)]('='),_0x37f9b4=_0x1ac756[_0x2f1e30(0xcc)]['slice'](0x0,_0xd0ddb1),_0x9d70ad=_0x1ac756['corrected']['slice'](_0xd0ddb1+0x1),_0x3f4528=_0xe87b25[_0x2f1e30(0xc5)](_0x37f9b4)??_0x2f1e30(0xac);_0x3f4528===_0x2f1e30(0xb8)?_0xde8120[_0x37f9b4]=Number(_0x9d70ad):_0xde8120[_0x37f9b4]=_0x9d70ad,_0x1a7754[_0x2f1e30(0xc9)](_0x1ac756['original']);}for(const _0x3a4b8b of _0x1a7754){delete _0xde8120[_0x3a4b8b];}return{'flags':_0xde8120,'corrections':_0x2ad808};}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a49_0x3930(_0x3db494,_0x3d340c){_0x3db494=_0x3db494-0xaa;var _0x321d1c=a49_0x321d();var _0x3930de=_0x321d1c[_0x3db494];return _0x3930de;}function a49_0x321d(){var _0x4d4a5c=['1350215uqucmU','10jSeMEs','202rqeGyH','37862148ybHIrZ','3353019judtJq','115614UURucR','856UYWujH','3164359bZZDTX','994BDawCe','36186uJaMbG','20YqjdnE','8373tnKxLP'];a49_0x321d=function(){return _0x4d4a5c;};return a49_0x321d();}(function(_0x160c2a,_0x59ec19){var _0x54be42=a49_0x3930,_0x1e83b3=_0x160c2a();while(!![]){try{var _0x1022c7=parseInt(_0x54be42(0xb0))/0x1*(parseInt(_0x54be42(0xb3))/0x2)+-parseInt(_0x54be42(0xb5))/0x3+-parseInt(_0x54be42(0xaf))/0x4*(parseInt(_0x54be42(0xb1))/0x5)+-parseInt(_0x54be42(0xae))/0x6*(-parseInt(_0x54be42(0xad))/0x7)+parseInt(_0x54be42(0xab))/0x8*(-parseInt(_0x54be42(0xaa))/0x9)+-parseInt(_0x54be42(0xb2))/0xa*(parseInt(_0x54be42(0xac))/0xb)+parseInt(_0x54be42(0xb4))/0xc;if(_0x1022c7===_0x59ec19)break;else _0x1e83b3['push'](_0x1e83b3['shift']());}catch(_0x461184){_0x1e83b3['push'](_0x1e83b3['shift']());}}}(a49_0x321d,0xb1887));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x509c47,_0x3e0c1d){const _0x367404=a50_0x2d3c,_0x1b5c21=_0x509c47();while(!![]){try{const _0x34546b=-parseInt(_0x367404(0xe2))/0x1*(-parseInt(_0x367404(0xdc))/0x2)+parseInt(_0x367404(0xdf))/0x3+-parseInt(_0x367404(0xf4))/0x4*(-parseInt(_0x367404(0xf0))/0x5)+-parseInt(_0x367404(0xe6))/0x6*(parseInt(_0x367404(0xf5))/0x7)+-parseInt(_0x367404(0xdd))/0x8+-parseInt(_0x367404(0xf2))/0x9+parseInt(_0x367404(0xf3))/0xa;if(_0x34546b===_0x3e0c1d)break;else _0x1b5c21['push'](_0x1b5c21['shift']());}catch(_0x878620){_0x1b5c21['push'](_0x1b5c21['shift']());}}}(a50_0xf288,0xd20a7));import{CLI_BIN_NAME}from'../constant/cli.js';function a50_0x2d3c(_0x3fe277,_0x10cdd9){_0x3fe277=_0x3fe277-0xdb;const _0xf28856=a50_0xf288();let _0x2d3c8d=_0xf28856[_0x3fe277];return _0x2d3c8d;}export function buildConfirmationLines(_0x34ec02,_0x572570,_0x56e6a1){const _0x973696=a50_0x2d3c,_0x40c8fb=buildConfirmationContext(_0x34ec02,_0x572570,_0x56e6a1),_0x220f64=[_0x973696(0xe3)+_0x40c8fb['commandLabel']];return _0x40c8fb[_0x973696(0xe4)]&&_0x220f64['push']('\x20\x20\x20'+_0x40c8fb[_0x973696(0xe4)]),_0x40c8fb[_0x973696(0xea)]&&_0x220f64[_0x973696(0xe0)]('\x20\x20\x20Affected:\x20'+_0x40c8fb[_0x973696(0xea)]),_0x220f64[_0x973696(0xe0)](_0x973696(0xe8)),_0x220f64;}export function reconstructCommandArgv(_0x1bf092,_0x4b3893){const _0x45f274=a50_0x2d3c,_0x4e0f20=[CLI_BIN_NAME,_0x1bf092[_0x45f274(0xf1)],_0x1bf092['command']];for(const [_0x2093ae,_0x14d5b3]of Object[_0x45f274(0xec)](_0x4b3893)){if(_0x14d5b3===!![])_0x4e0f20['push']('--'+_0x2093ae);else _0x14d5b3!==![]&&_0x14d5b3!==undefined&&_0x14d5b3!==''&&_0x4e0f20[_0x45f274(0xe0)]('--'+_0x2093ae+'\x20'+JSON['stringify'](_0x14d5b3));}return _0x4e0f20[_0x45f274(0xe0)](_0x45f274(0xef)),_0x4e0f20['join']('\x20');}function a50_0xf288(){const _0x513cc1=['6308556AbjJcD','join','\x20\x20\x20Continue?\x20[y/N]\x20','code','affectedRecords','code=','entries','params','params=','--yes','3412940lZhQWJ','service','2551743lWMSmX','4300450ZhWuyu','4XZJpJD','7UCyNld','name=','296396nudAzA','6843272yeQrPk','id=','2702010MbRZJu','push','length','7DNagsX','⚠\x20\x20High-risk\x20operation:\x20','description','name'];a50_0xf288=function(){return _0x513cc1;};return a50_0xf288();}function buildConfirmationContext(_0x402d96,_0x8e726b,_0x3700e8){const _0x1ccab6=a50_0x2d3c,_0x2f1333=extractAffectedRecords(_0x3700e8);return{'commandLabel':_0x8e726b,'description':_0x402d96[_0x1ccab6(0xe4)],'affectedRecords':_0x2f1333};}function extractAffectedRecords(_0x48a388){const _0x56a73e=a50_0x2d3c,_0x1aae2b=[];if(_0x48a388[_0x56a73e(0xe9)])_0x1aae2b[_0x56a73e(0xe0)](_0x56a73e(0xeb)+_0x48a388[_0x56a73e(0xe9)]);if(_0x48a388['id'])_0x1aae2b[_0x56a73e(0xe0)](_0x56a73e(0xde)+_0x48a388['id']);if(_0x48a388[_0x56a73e(0xe5)])_0x1aae2b['push'](_0x56a73e(0xdb)+_0x48a388[_0x56a73e(0xe5)]);if(_0x48a388[_0x56a73e(0xed)])_0x1aae2b['push'](_0x56a73e(0xee)+_0x48a388['params']);return _0x1aae2b[_0x56a73e(0xe1)]>0x0?_0x1aae2b[_0x56a73e(0xe7)](',\x20'):undefined;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0xacc3,_0x499bfe){const _0x2d26ae=a51_0x4ffc,_0x49f6b6=_0xacc3();while(!![]){try{const _0x5a385d=parseInt(_0x2d26ae(0xea))/0x1+parseInt(_0x2d26ae(0xef))/0x2*(-parseInt(_0x2d26ae(0xe7))/0x3)+-parseInt(_0x2d26ae(0xf0))/0x4*(-parseInt(_0x2d26ae(0xed))/0x5)+-parseInt(_0x2d26ae(0xee))/0x6+parseInt(_0x2d26ae(0xf1))/0x7*(-parseInt(_0x2d26ae(0xf3))/0x8)+-parseInt(_0x2d26ae(0xf2))/0x9+-parseInt(_0x2d26ae(0xe5))/0xa*(-parseInt(_0x2d26ae(0xe8))/0xb);if(_0x5a385d===_0x499bfe)break;else _0x49f6b6['push'](_0x49f6b6['shift']());}catch(_0x220d37){_0x49f6b6['push'](_0x49f6b6['shift']());}}}(a51_0x2fdd,0x3aa6b));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x923945){if(_0x923945 instanceof LovrabetError)return CliErrors['validation'](userFacingLovrabetMessage(_0x923945));return _0x923945;}function a51_0x4ffc(_0x32f954,_0x6c4fe5){_0x32f954=_0x32f954-0xe5;const _0x2fdd07=a51_0x2fdd();let _0x4ffc02=_0x2fdd07[_0x32f954];return _0x4ffc02;}function userFacingLovrabetMessage(_0x29f5d0){const _0x2a2e6d=a51_0x4ffc,_0x196d84=_0x29f5d0[_0x2a2e6d(0xec)];if(_0x196d84!==undefined&&_0x196d84!==null){if(typeof _0x196d84===_0x2a2e6d(0xeb)&&_0x196d84[_0x2a2e6d(0xe9)]())return _0x196d84[_0x2a2e6d(0xe9)]();try{return JSON[_0x2a2e6d(0xe6)](_0x196d84);}catch{}}return _0x29f5d0[_0x2a2e6d(0xf4)];}function a51_0x2fdd(){const _0x1e945=['3yaDrqw','371855PcClrU','trim','232371KtHuDv','string','description','143030JpbVLf','1873962Osdhme','214908BiNGAe','28QBCwRN','42301GeAcLy','3414717oXpqNs','584ZXkGqu','message','310qivjIr','stringify'];a51_0x2fdd=function(){return _0x1e945;};return a51_0x2fdd();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a52_0x14a08c=a52_0x2d2b;(function(_0x133e21,_0x4c25ad){const _0x496ac3=a52_0x2d2b,_0x532da3=_0x133e21();while(!![]){try{const _0x12f28c=parseInt(_0x496ac3(0x1a0))/0x1+parseInt(_0x496ac3(0x196))/0x2*(parseInt(_0x496ac3(0x1a2))/0x3)+-parseInt(_0x496ac3(0x1a8))/0x4*(-parseInt(_0x496ac3(0x1a1))/0x5)+-parseInt(_0x496ac3(0x194))/0x6+parseInt(_0x496ac3(0x19c))/0x7+-parseInt(_0x496ac3(0x1ad))/0x8*(-parseInt(_0x496ac3(0x1b1))/0x9)+-parseInt(_0x496ac3(0x1a6))/0xa*(parseInt(_0x496ac3(0x1aa))/0xb);if(_0x12f28c===_0x4c25ad)break;else _0x532da3['push'](_0x532da3['shift']());}catch(_0x53368b){_0x532da3['push'](_0x532da3['shift']());}}}(a52_0x3add,0xc91c3));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';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';function a52_0x3add(){const _0x1464c7=['appCode','9135679uecqev','ClientAk','map','requiresAppCode','738909xIqxqj','5iLoUqp','231hAaPEI','defaultApp','accessKey','validation','1370890vlaTTJ','name','4541188ssxMjB','currentApp','253XVElaL','riskLevel','env','5563112ipFgSm','production','isNonInteractive','authRequired','9dxtQYZ','verbose','cancelled','service','../core/api-client.js','configMissing','error','High-risk\x20operation\x20`','defaultPageSize','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','5249706PyArLk','../core/sdk-client.js','25378NiNpPe','\x20\x20To\x20proceed:\x20','defaultVerbose','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20.lovrabet.json.','command'];a52_0x3add=function(){return _0x1464c7;};return a52_0x3add();}function a52_0x2d2b(_0x478ce5,_0x4661c7){_0x478ce5=_0x478ce5-0x18f;const _0x3add3e=a52_0x3add();let _0x2d2b7c=_0x3add3e[_0x478ce5];return _0x2d2b7c;}import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';export function resolveAuthMode(_0x4fe40c){const _0x4f033c=a52_0x2d2b;return void _0x4fe40c,AUTH_MODE[_0x4f033c(0x19d)];}export function createPipelineEnv(_0x267b63,_0x117e18){const _0x3799b2=a52_0x2d2b;return{'rawFlags':_0x117e18,'appCode':_0x267b63[_0x3799b2(0x19b)]||process.env.RABETBASE_APPCODE||readAppCodeFromConfig(),'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x117e18),'defaultFormat':_0x267b63['format'],'defaultPageSize':_0x267b63['pageSize'],'defaultVerbose':_0x267b63[_0x3799b2(0x1b2)],'riskLevel':_0x267b63[_0x3799b2(0x1ab)],'accessKey':_0x267b63[_0x3799b2(0x1a4)],'env':_0x267b63[_0x3799b2(0x1ac)],'mergedCli':{'defaultApp':_0x267b63[_0x3799b2(0x1a3)],'currentApp':_0x267b63[_0x3799b2(0x1a9)],'appCode':_0x267b63[_0x3799b2(0x19b)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x39ea0f=>PIPELINE_FLAG_NAMES['has'](_0x39ea0f[a52_0x14a08c(0x1a7)]))[a52_0x14a08c(0x19e)](({name:_0x19998b,type:_0x55e405,description:_0x5b692d})=>({'name':_0x19998b,'type':_0x55e405,'description':_0x5b692d})),'formatOutput':formatOutput,'getCommandLabel'(_0x5b16f5){const _0x160925=a52_0x14a08c;return CLI_BIN_NAME+'\x20'+_0x5b16f5[_0x160925(0x1b4)]+'\x20'+_0x5b16f5[_0x160925(0x19a)];},'riskPolicy':{'onViolation'(_0x56950a){const _0x2aa88f=a52_0x14a08c;console[_0x2aa88f(0x190)](_0x56950a);},'createError'(_0x3bcea9){const _0x2e4e92=a52_0x14a08c;return CliErrors[_0x2e4e92(0x1b3)](_0x3bcea9);}},async 'prepare'(_0x5abeba,_0x469f40){const _0x560d4b=a52_0x14a08c,_0x24afac=resolveAuthMode(_0x469f40);if(_0x5abeba['requiresAuth']!==![]){if(!_0x469f40[_0x560d4b(0x1a4)])throw CliErrors[_0x560d4b(0x1b0)]('Set\x20accessKey\x20in\x20.lovrabet.json\x20or\x20pass\x20LOVRABET_ACCESS_KEY.');const {setActiveAK:_0x9bdd18}=await import('../core/api-client.js');_0x9bdd18(_0x469f40[_0x560d4b(0x1a4)]);}let _0x35196a='';if(_0x5abeba[_0x560d4b(0x19f)]!==![]){_0x35196a=_0x469f40[_0x560d4b(0x19b)]??'';if(!_0x35196a)throw CliErrors[_0x560d4b(0x18f)](_0x560d4b(0x199));}if(_0x35196a){const {initSdkClient:_0x4e7946}=await import(_0x560d4b(0x195));_0x4e7946({'appCode':_0x35196a,'env':_0x469f40[_0x560d4b(0x1ac)]??_0x560d4b(0x1ae),'accessKey':_0x469f40[_0x560d4b(0x1a4)],'authMode':_0x24afac});}return{'defaults':{'booleans':{'verbose':_0x469f40[_0x560d4b(0x198)]},'numbers':{'pagesize':_0x469f40[_0x560d4b(0x192)]}},'extras':{'appCode':_0x35196a,'cookie':'','apiDomain':_0x469f40['apiDomain'],'apiDir':'','accessKey':_0x469f40[_0x560d4b(0x1a4)],'envName':_0x469f40[_0x560d4b(0x1ac)],'mergedCli':_0x469f40['mergedCli']}};},async 'confirmHighRisk'({def:_0x42921a,env:_0x3aa8f2,flags:_0x476ef1,commandLabel:_0x11fdfa}){const _0x45675b=a52_0x14a08c;if(_0x3aa8f2[_0x45675b(0x1af)]){const _0x239fc3=reconstructCommandArgv(_0x42921a,_0x476ef1);throw CliErrors[_0x45675b(0x1a5)](_0x45675b(0x191)+_0x11fdfa+_0x45675b(0x193)+(_0x45675b(0x197)+_0x239fc3));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x42921a,_0x11fdfa,_0x476ef1),'createCancelledError':_0x28ecc2=>CliErrors[_0x45675b(0x1b3)](_0x28ecc2)});},'mapDryRunError'(_0x6c1d47){return mapUserFacingExecuteError(_0x6c1d47);},'mapExecuteError'(_0x5ded03){return mapUserFacingExecuteError(_0x5ded03);},async 'finalize'(){const _0x4d29a=a52_0x14a08c,{clearActiveAK:_0x40cb44}=await import(_0x4d29a(0x1b5));_0x40cb44();}};export async function runCommand(_0xcc920a,_0x2e8c85){await runCommandWithAdapter(_0xcc920a,_0x2e8c85,runnerAdapter);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0xea221f,_0x53cdb4){const _0x23a5e5=a53_0x849e,_0x1bdee8=_0xea221f();while(!![]){try{const _0x3ca599=parseInt(_0x23a5e5(0x1f4))/0x1*(-parseInt(_0x23a5e5(0x1f0))/0x2)+parseInt(_0x23a5e5(0x1ee))/0x3+-parseInt(_0x23a5e5(0x1eb))/0x4+-parseInt(_0x23a5e5(0x1f3))/0x5+parseInt(_0x23a5e5(0x1ef))/0x6*(parseInt(_0x23a5e5(0x1f2))/0x7)+-parseInt(_0x23a5e5(0x1ec))/0x8+parseInt(_0x23a5e5(0x1f1))/0x9;if(_0x3ca599===_0x53cdb4)break;else _0x1bdee8['push'](_0x1bdee8['shift']());}catch(_0x1f2bbf){_0x1bdee8['push'](_0x1bdee8['shift']());}}}(a53_0x5442,0xa1735));import{buildSchemaPayload as a53_0x2e9b48}from'@lovrabet/cli-framework';function a53_0x849e(_0x13c2b0,_0x28677c){_0x13c2b0=_0x13c2b0-0x1eb;const _0x544231=a53_0x5442();let _0x849e13=_0x544231[_0x13c2b0];return _0x849e13;}function a53_0x5442(){const _0x16bd8e=['../commands/registry.js','2792253AaKhFI','10794BoNZnd','63766VkjjvT','13058289zdjcqT','4599uYnMJe','2662730PkTIjV','19cBGCFO','2362612bxfPsK','9386704zdaFTl'];a53_0x5442=function(){return _0x16bd8e;};return a53_0x5442();}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 _0x337668=a53_0x849e,{serviceRegistry:_0x5f2d1b,findDefinition:_0x1aee97}=await import(_0x337668(0x1ed));return a53_0x2e9b48({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5f2d1b,'buildAllFlags':buildAllFlags,'findDefinition':_0x1aee97});}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a54_0x31b5(){var _0x53084b=['2805574eLXLAc','2144502yBrmoY','2451432ZFwapE','6312605ipfaak','4854392XMnfFl','1133454wtehYR','126NIFuOS','46465uNqJLu'];a54_0x31b5=function(){return _0x53084b;};return a54_0x31b5();}function a54_0x2d6f(_0x2f9046,_0x4bf4a6){_0x2f9046=_0x2f9046-0x1ab;var _0x31b52b=a54_0x31b5();var _0x2d6f6e=_0x31b52b[_0x2f9046];return _0x2d6f6e;}(function(_0x2ba4e5,_0x278190){var _0x5eda47=a54_0x2d6f,_0x58df94=_0x2ba4e5();while(!![]){try{var _0xae36a6=-parseInt(_0x5eda47(0x1b0))/0x1+-parseInt(_0x5eda47(0x1b1))/0x2+-parseInt(_0x5eda47(0x1ae))/0x3+-parseInt(_0x5eda47(0x1ad))/0x4+-parseInt(_0x5eda47(0x1ac))/0x5+-parseInt(_0x5eda47(0x1b2))/0x6+-parseInt(_0x5eda47(0x1af))/0x7*(-parseInt(_0x5eda47(0x1ab))/0x8);if(_0xae36a6===_0x278190)break;else _0x58df94['push'](_0x58df94['shift']());}catch(_0x3a690d){_0x58df94['push'](_0x58df94['shift']());}}}(a54_0x31b5,0xd0c4c));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
package/lib/help.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a55_0x14c3(_0x238fc8,_0x345fd1){_0x238fc8=_0x238fc8-0x1c5;const _0x24f5ff=a55_0x24f5();let _0x14c339=_0x24f5ff[_0x238fc8];return _0x14c339;}(function(_0x4ff1e2,_0x3bca8a){const _0x284d4a=a55_0x14c3,_0x28cb83=_0x4ff1e2();while(!![]){try{const _0xddd431=parseInt(_0x284d4a(0x1c5))/0x1+parseInt(_0x284d4a(0x1d2))/0x2*(-parseInt(_0x284d4a(0x1d1))/0x3)+-parseInt(_0x284d4a(0x1d0))/0x4+-parseInt(_0x284d4a(0x1c9))/0x5*(parseInt(_0x284d4a(0x1c6))/0x6)+-parseInt(_0x284d4a(0x1cf))/0x7+-parseInt(_0x284d4a(0x1c8))/0x8*(parseInt(_0x284d4a(0x1cd))/0x9)+parseInt(_0x284d4a(0x1ca))/0xa;if(_0xddd431===_0x3bca8a)break;else _0x28cb83['push'](_0x28cb83['shift']());}catch(_0x4849a7){_0x28cb83['push'](_0x28cb83['shift']());}}}(a55_0x24f5,0x21161));import{jsx as a55_0x1a1d8b,jsxs as a55_0x46b60e}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x2e00e7=a55_0x14c3,{exit:_0x49b7e3}=useApp();return useEffect(()=>{_0x49b7e3();},[_0x49b7e3]),a55_0x46b60e(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a55_0x1a1d8b(Box,{'children':a55_0x1a1d8b(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a55_0x46b60e(Box,{'marginTop':0x1,'children':[a55_0x1a1d8b(Text,{'dimColor':!![],'children':_0x2e00e7(0x1c7)}),a55_0x1a1d8b(Text,{'bold':!![],'color':_0x2e00e7(0x1ce),'children':CLI_BIN_NAME+_0x2e00e7(0x1cb)}),a55_0x1a1d8b(Text,{'dimColor':!![],'children':_0x2e00e7(0x1cc)})]})]});}function a55_0x24f5(){const _0x83b696=['928092KmhYcd','\x20\x20Use\x20','8XMpUTU','5OFuiSi','8394060sRmdJd','\x20--help','\x20to\x20view\x20available\x20commands.','595854JEKYfg','green','873810KdoPnk','1040848XouKlI','30HBAyLq','43158pewdXi','117835fkpHzJ'];a55_0x24f5=function(){return _0x83b696;};return a55_0x24f5();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x4d9552,_0x21644e){const _0x1a2a41=a56_0x3886,_0x392e2a=_0x4d9552();while(!![]){try{const _0xe82c95=-parseInt(_0x1a2a41(0x7b))/0x1*(-parseInt(_0x1a2a41(0x7a))/0x2)+-parseInt(_0x1a2a41(0x78))/0x3+parseInt(_0x1a2a41(0x7f))/0x4+parseInt(_0x1a2a41(0x7d))/0x5+parseInt(_0x1a2a41(0x80))/0x6+parseInt(_0x1a2a41(0x7c))/0x7*(parseInt(_0x1a2a41(0x79))/0x8)+-parseInt(_0x1a2a41(0x7e))/0x9;if(_0xe82c95===_0x21644e)break;else _0x392e2a['push'](_0x392e2a['shift']());}catch(_0x39b31f){_0x392e2a['push'](_0x392e2a['shift']());}}}(a56_0x5645,0x5c7ff));import{createJqFilter}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors);function a56_0x3886(_0x2205bf,_0x61eeee){_0x2205bf=_0x2205bf-0x78;const _0x5645d1=a56_0x5645();let _0x38862c=_0x5645d1[_0x2205bf];return _0x38862c;}function a56_0x5645(){const _0x437f08=['245735WhLTTz','4062987FbIUWH','1521108VNvEsT','1724334BGwhmd','1839300CqVTcg','8oIEJEj','10932BuHifE','32FTAEWs','3861879RFhjHQ'];a56_0x5645=function(){return _0x437f08;};return a56_0x5645();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a57_0x1031ee=a57_0x5808;function a57_0x3682(){const _0x149817=['403355mnWAOX','Failed\x20to\x20read\x20logs:','combine','yellow','trim','rawCommand','winstonLogger','logFilePath','blue','setLogPath','transports','unknown','Completed:\x20','createLogger','1loEkfC','error','7GZxsoe','timestamp','1140BZTZKG','initWinstonLogger','76870Kecjys','split','readLogs','log','clear','.lovrabet-runtime.log','logTask','setRawCommand','639848FKWrGz','green','existsSync','map','info','578048fvnxjh','629892hxLeaw','currentRawCommand','File','toISOString','success','now','63umXNlN','level','filter','message','Failed\x20to\x20clear\x20logs:','63bJXgoO','addColors','format','320030ShXXDu','join','writeFileSync','dirname','utf8','printf','mkdirSync','errors','warn','command','getWinstonInstance'];a57_0x3682=function(){return _0x149817;};return a57_0x3682();}(function(_0x2372de,_0x249116){const _0x5362e9=a57_0x5808,_0x262b0b=_0x2372de();while(!![]){try{const _0x3c8688=parseInt(_0x5362e9(0x1fe))/0x1*(parseInt(_0x5362e9(0x220))/0x2)+parseInt(_0x5362e9(0x21d))/0x3*(parseInt(_0x5362e9(0x202))/0x4)+parseInt(_0x5362e9(0x22b))/0x5+-parseInt(_0x5362e9(0x212))/0x6*(parseInt(_0x5362e9(0x200))/0x7)+parseInt(_0x5362e9(0x211))/0x8+parseInt(_0x5362e9(0x218))/0x9*(-parseInt(_0x5362e9(0x204))/0xa)+-parseInt(_0x5362e9(0x20c))/0xb;if(_0x3c8688===_0x249116)break;else _0x262b0b['push'](_0x262b0b['shift']());}catch(_0x546f78){_0x262b0b['push'](_0x262b0b['shift']());}}}(a57_0x3682,0x18e50));function a57_0x5808(_0x2c0d51,_0x56a167){_0x2c0d51=_0x2c0d51-0x1f2;const _0x368289=a57_0x3682();let _0x58087e=_0x368289[_0x2c0d51];return _0x58087e;}import a57_0x105b6b from'winston';import a57_0x2d5901 from'node:fs';import a57_0x22c474 from'node:path';class Logger{[a57_0x1031ee(0x1f6)];[a57_0x1031ee(0x1f7)]='';[a57_0x1031ee(0x213)]='';constructor(){}[a57_0x1031ee(0x20b)](_0x46473a){const _0x472d6=a57_0x1031ee;this[_0x472d6(0x213)]=_0x46473a;}[a57_0x1031ee(0x1f9)](_0x5f57b3){const _0x55ace2=a57_0x1031ee;this['logFilePath']=a57_0x22c474[_0x55ace2(0x221)](_0x5f57b3,_0x55ace2(0x209)),this[_0x55ace2(0x1f6)]&&this[_0x55ace2(0x1f6)][_0x55ace2(0x208)](),this[_0x55ace2(0x203)]();}[a57_0x1031ee(0x203)](){const _0x2eb5f9=a57_0x1031ee,_0x10ae28=a57_0x22c474[_0x2eb5f9(0x223)](this[_0x2eb5f9(0x1f7)]);!a57_0x2d5901[_0x2eb5f9(0x20e)](_0x10ae28)&&a57_0x2d5901[_0x2eb5f9(0x226)](_0x10ae28,{'recursive':!![]});const _0x26a6bc=a57_0x105b6b[_0x2eb5f9(0x21f)][_0x2eb5f9(0x1f2)](a57_0x105b6b['format'][_0x2eb5f9(0x201)](),a57_0x105b6b[_0x2eb5f9(0x21f)][_0x2eb5f9(0x227)]({'stack':!![]}),a57_0x105b6b['format'][_0x2eb5f9(0x225)](_0x56b00a=>{const _0x579003=_0x2eb5f9,_0x347c72={'timestamp':_0x56b00a[_0x579003(0x201)]||new Date()[_0x579003(0x215)](),'level':_0x56b00a[_0x579003(0x219)]||'info','command':_0x56b00a[_0x579003(0x229)]||_0x579003(0x1fb),'rawCommand':_0x56b00a[_0x579003(0x1f5)]||this[_0x579003(0x213)]||undefined,'message':_0x56b00a[_0x579003(0x21b)]||'','duration':_0x56b00a['duration']||undefined,'details':_0x56b00a['details']||undefined};return JSON['stringify'](_0x347c72);}));this['winstonLogger']=a57_0x105b6b[_0x2eb5f9(0x1fd)]({'level':_0x2eb5f9(0x210),'format':_0x26a6bc,'transports':[new a57_0x105b6b[(_0x2eb5f9(0x1fa))][(_0x2eb5f9(0x214))]({'filename':this[_0x2eb5f9(0x1f7)],'level':'info'})],'silent':![]}),a57_0x105b6b[_0x2eb5f9(0x21e)]({'success':_0x2eb5f9(0x20d),'error':'red','warn':_0x2eb5f9(0x1f3),'info':_0x2eb5f9(0x1f8)});}[a57_0x1031ee(0x210)](_0x5bae8c,_0x1fc06d,_0x196a0f){const _0x3e8721=a57_0x1031ee;if(!this['logFilePath']||!this[_0x3e8721(0x1f6)])return;this[_0x3e8721(0x1f6)][_0x3e8721(0x210)](_0x1fc06d,{'command':_0x5bae8c,'details':_0x196a0f});}[a57_0x1031ee(0x216)](_0x23b282,_0x34252e,_0x41af08,_0x1c7132){const _0x122c2a=a57_0x1031ee;if(!this[_0x122c2a(0x1f7)]||!this[_0x122c2a(0x1f6)])return;this[_0x122c2a(0x1f6)][_0x122c2a(0x207)](_0x122c2a(0x210),_0x34252e,{'level':_0x122c2a(0x216),'command':_0x23b282,'duration':_0x41af08,'details':_0x1c7132});}[a57_0x1031ee(0x1ff)](_0x4b528f,_0x37260a,_0x53625f){const _0x363bad=a57_0x1031ee;if(!this[_0x363bad(0x1f7)]||!this['winstonLogger'])return;this[_0x363bad(0x1f6)][_0x363bad(0x1ff)](_0x37260a,{'command':_0x4b528f,'details':_0x53625f});}['warn'](_0x5e86cc,_0x3b7e69,_0x514b0d){const _0x483cb2=a57_0x1031ee;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x483cb2(0x1f6)][_0x483cb2(0x228)](_0x3b7e69,{'command':_0x5e86cc,'details':_0x514b0d});}async[a57_0x1031ee(0x20a)](_0x5dcda3,_0x29dab8,_0x37b8cb){const _0x3268d0=a57_0x1031ee,_0x40f43b=Date['now']();this['info'](_0x5dcda3,'Starting:\x20'+_0x29dab8);try{const _0x412913=await _0x37b8cb(),_0x2bf530=Date['now']()-_0x40f43b;return this[_0x3268d0(0x216)](_0x5dcda3,_0x3268d0(0x1fc)+_0x29dab8,_0x2bf530),_0x412913;}catch(_0x29a2b2){const _0x491218=Date[_0x3268d0(0x217)]()-_0x40f43b;this[_0x3268d0(0x1ff)](_0x5dcda3,'Failed:\x20'+_0x29dab8,{'error':_0x29a2b2 instanceof Error?_0x29a2b2[_0x3268d0(0x21b)]:String(_0x29a2b2),'duration':_0x491218});throw _0x29a2b2;}}[a57_0x1031ee(0x206)](){const _0x1f995f=a57_0x1031ee;try{if(!a57_0x2d5901['existsSync'](this[_0x1f995f(0x1f7)]))return[];const _0x84c860=a57_0x2d5901['readFileSync'](this[_0x1f995f(0x1f7)],_0x1f995f(0x224));return _0x84c860[_0x1f995f(0x205)](/\r?\n/)[_0x1f995f(0x21a)](_0x595097=>_0x595097[_0x1f995f(0x1f4)]())[_0x1f995f(0x20f)](_0x1c79df=>JSON['parse'](_0x1c79df));}catch(_0x434da0){return console['warn'](_0x1f995f(0x22c),_0x434da0),[];}}['clearLogs'](){const _0x2c4126=a57_0x1031ee;try{a57_0x2d5901[_0x2c4126(0x20e)](this[_0x2c4126(0x1f7)])&&a57_0x2d5901[_0x2c4126(0x222)](this[_0x2c4126(0x1f7)],'',_0x2c4126(0x224));}catch(_0x67e024){console[_0x2c4126(0x228)](_0x2c4126(0x21c),_0x67e024);}}[a57_0x1031ee(0x22a)](){const _0x5b2b68=a57_0x1031ee;return this[_0x5b2b68(0x1f6)];}}export const logger=new Logger();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a58_0x2e05(){var _0x32975a=['433812peoZwT','1436690qepEzi','3329PzorzO','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','8NaOzrb','24mbqOXZ','547461EYTRHC','object','isArray','471236IYANbS','406819lWDZaC','30ovyLDG','Invalid\x20JSON\x20for\x20--params:\x20','validation','parse','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','4723920hqUvqd','items'];a58_0x2e05=function(){return _0x32975a;};return a58_0x2e05();}(function(_0x2b4a04,_0x38d670){var _0x1c8e36=a58_0x3e39,_0x35dbae=_0x2b4a04();while(!![]){try{var _0x233f38=-parseInt(_0x1c8e36(0x12d))/0x1*(parseInt(_0x1c8e36(0x124))/0x2)+parseInt(_0x1c8e36(0x12b))/0x3+parseInt(_0x1c8e36(0x122))/0x4+parseInt(_0x1c8e36(0x12c))/0x5+-parseInt(_0x1c8e36(0x11e))/0x6*(-parseInt(_0x1c8e36(0x123))/0x7)+parseInt(_0x1c8e36(0x11d))/0x8*(-parseInt(_0x1c8e36(0x11f))/0x9)+-parseInt(_0x1c8e36(0x129))/0xa;if(_0x233f38===_0x38d670)break;else _0x35dbae['push'](_0x35dbae['shift']());}catch(_0x476dda){_0x35dbae['push'](_0x35dbae['shift']());}}}(a58_0x2e05,0x30997));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x411cfe){var _0x53659d=a58_0x3e39;if(!_0x411cfe)return undefined;try{return JSON[_0x53659d(0x127)](_0x411cfe);}catch{throw CliErrors['validation'](_0x53659d(0x125)+_0x411cfe);}}export function parseJsonParamsValue(_0x37e6be){var _0x522906=a58_0x3e39;if(!_0x37e6be)return undefined;try{return JSON['parse'](_0x37e6be);}catch{throw CliErrors[_0x522906(0x126)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x37e6be);}}function a58_0x3e39(_0xaf638d,_0x4a511e){_0xaf638d=_0xaf638d-0x11c;var _0x2e05db=a58_0x2e05();var _0x3e39fe=_0x2e05db[_0xaf638d];return _0x3e39fe;}export function parseBatchCreateItemsFromParams(_0x266749){var _0x2e791e=a58_0x3e39;if(Array[_0x2e791e(0x121)](_0x266749))return _0x266749;if(_0x266749!==null&&_0x266749!==undefined&&typeof _0x266749===_0x2e791e(0x120)&&Array[_0x2e791e(0x121)](_0x266749[_0x2e791e(0x12a)]))return _0x266749[_0x2e791e(0x12a)];throw CliErrors['validation'](_0x2e791e(0x128),_0x2e791e(0x11c));}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0xe5e851,_0x15be8e){const _0x4f4940=a59_0x2f27,_0x9974a0=_0xe5e851();while(!![]){try{const _0x54edb1=-parseInt(_0x4f4940(0x171))/0x1+parseInt(_0x4f4940(0x16d))/0x2+parseInt(_0x4f4940(0x175))/0x3*(parseInt(_0x4f4940(0x174))/0x4)+parseInt(_0x4f4940(0x16a))/0x5*(parseInt(_0x4f4940(0x16c))/0x6)+parseInt(_0x4f4940(0x16e))/0x7*(parseInt(_0x4f4940(0x172))/0x8)+parseInt(_0x4f4940(0x16b))/0x9+-parseInt(_0x4f4940(0x173))/0xa;if(_0x54edb1===_0x15be8e)break;else _0x9974a0['push'](_0x9974a0['shift']());}catch(_0x1ba740){_0x9974a0['push'](_0x9974a0['shift']());}}}(a59_0x30fa,0x91f9d));import{readFileSync}from'node:fs';import{dirname,join}from'node:path';import{fileURLToPath}from'node:url';let cached;function a59_0x2f27(_0x21bdba,_0x271813){_0x21bdba=_0x21bdba-0x169;const _0x30fa5f=a59_0x30fa();let _0x2f272e=_0x30fa5f[_0x21bdba];return _0x2f272e;}export function getCliVersion(){const _0x104451=a59_0x2f27;if(cached)return cached;const _0x56ce5d=join(dirname(fileURLToPath(import.meta.url)),'..','..'),_0x484f92=readFileSync(join(_0x56ce5d,_0x104451(0x169)),_0x104451(0x170)),_0x5ce5cd=JSON['parse'](_0x484f92);return cached=_0x5ce5cd[_0x104451(0x16f)],cached;}function a59_0x30fa(){const _0x3ee353=['158005ttyQOG','22736eDNrhk','26794880dxUTeT','19260QOUMTO','507qWlFTP','package.json','30MvlLTR','10726650KTYzin','1022838NXYbEt','183050GUqfQf','777XFKPQZ','version','utf8'];a59_0x30fa=function(){return _0x3ee353;};return a59_0x30fa();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a60_0x5cc8(){var _0x29dc2c=['1885338HRbZpg','120864emAPGM','5681588bUjCOZ','write','83709qtwrsJ','95LdCxXO','9EJFIoJ','4599624xQmmoI','3479UXlPNU','stderr','323610aUEwfG','6006SwLCTR','10hKqjGQ'];a60_0x5cc8=function(){return _0x29dc2c;};return a60_0x5cc8();}(function(_0x985d10,_0x47c8fb){var _0x4f12f3=a60_0x427b,_0x12646d=_0x985d10();while(!![]){try{var _0xad86f1=-parseInt(_0x4f12f3(0x18d))/0x1+parseInt(_0x4f12f3(0x196))/0x2+-parseInt(_0x4f12f3(0x193))/0x3+-parseInt(_0x4f12f3(0x197))/0x4*(parseInt(_0x4f12f3(0x18e))/0x5)+-parseInt(_0x4f12f3(0x194))/0x6*(-parseInt(_0x4f12f3(0x191))/0x7)+parseInt(_0x4f12f3(0x190))/0x8*(-parseInt(_0x4f12f3(0x18f))/0x9)+parseInt(_0x4f12f3(0x195))/0xa*(parseInt(_0x4f12f3(0x18b))/0xb);if(_0xad86f1===_0x47c8fb)break;else _0x12646d['push'](_0x12646d['shift']());}catch(_0x3e3b86){_0x12646d['push'](_0x12646d['shift']());}}}(a60_0x5cc8,0x96666));function a60_0x427b(_0x4df2b4,_0x5aa1ea){_0x4df2b4=_0x4df2b4-0x18b;var _0x5cc8af=a60_0x5cc8();var _0x427b25=_0x5cc8af[_0x4df2b4];return _0x427b25;}export function writeCliSideChannelLine(_0x566089){var _0x2b8c21=a60_0x427b;process[_0x2b8c21(0x192)][_0x2b8c21(0x18c)](_0x566089+'\x0a');}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lovrabet/lovrabet-cli",
|
|
3
|
+
"version": "2.0.1-beta.10",
|
|
4
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git"
|
|
8
|
+
},
|
|
9
|
+
"bin": {
|
|
10
|
+
"lovrabet": "lib/cli.js"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"module": "lib/cli.js",
|
|
14
|
+
"main": "lib/cli.js",
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=20"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "rimraf lib && tsc && tsc-alias && javascript-obfuscator lib --output lib",
|
|
23
|
+
"build:dev": "rimraf lib && tsc && tsc-alias",
|
|
24
|
+
"start": "tsc --watch",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
26
|
+
"lint": "echo 'No linter configured yet'",
|
|
27
|
+
"beta-release": "sh scripts/update-beta-version.sh && bun run build && git push && git push origin --tag && bun publish --tag beta",
|
|
28
|
+
"release": "sh scripts/update-latest-version.sh && bun run build && git push && git push origin --tag && bun publish",
|
|
29
|
+
"ci": "npm run typecheck && npm run build",
|
|
30
|
+
"test": "vitest",
|
|
31
|
+
"test:run": "vitest run",
|
|
32
|
+
"test:coverage": "vitest run --coverage"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"lib"
|
|
36
|
+
],
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@lovrabet/cli-framework": "1.0.1",
|
|
39
|
+
"chalk": "^5.6.2",
|
|
40
|
+
"@lovrabet/sdk": "1.4.1",
|
|
41
|
+
"@types/winston": "^2.4.4",
|
|
42
|
+
"ink": "^6.2.3",
|
|
43
|
+
"ink-spinner": "^5.0.0",
|
|
44
|
+
"meow": "^13.2.0",
|
|
45
|
+
"node-jq": "^6.3.1",
|
|
46
|
+
"react": "^19.2.0",
|
|
47
|
+
"winston": "^3.17.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "^24.5.2",
|
|
51
|
+
"@types/react": "^19.2.0",
|
|
52
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
53
|
+
"javascript-obfuscator": "^5.4.1",
|
|
54
|
+
"tsc-alias": "^1.8.10",
|
|
55
|
+
"rimraf": "^6.1.3",
|
|
56
|
+
"typescript": "latest",
|
|
57
|
+
"vitest": "^4.1.2"
|
|
58
|
+
}
|
|
59
|
+
}
|