@lovrabet/lovrabet-cli 2.1.22-beta.5 → 2.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a64_0x5894(){const _0x7b3bca=['Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','57HSFxSA','Target\x20environment','1490363OvcOIS','boolean','env','length','\x22.\x20Allowed:\x20','appName','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','isArray','defaultApp','12zvpYVa','\x0aEnv:\x20','workspace','为当前工作目录初始化应用上下文','为当前工作目录设置应用上下文','241828pWkDlE','App\x20\x22','app','\x20--appcode\x20<code>\x20[--env\x20daily]','string','Missing\x20workspace\x20app\x20selector.','filter','180QTlIBN','16xDSCwg','appcode','project','20djHcog','\x0aDefault\x20app:\x20','41702iTXNxO','from','yes','authRequired','items','../../core/api-client.js','shouldWriteEnv','120335MvIiSr','trim','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','envName','init','Available\x20apps:\x20','1750311rAkFQw','use','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','includes','validation','apps','map','36KUteSJ','\x20workspace\x20','str','workspace\x20','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','accessKey','write','App\x20code\x20to\x20bind\x20directly','2488024zPBWjF','object','Workspace\x20configured.\x0aConfig\x20file:\x20','36982361JOXZNX','Run\x20`'];a64_0x5894=function(){return _0x7b3bca;};return a64_0x5894();}const a64_0x2bf25c=a64_0x365c;(function(_0xefb50,_0x45c768){const _0x2b7d4b=a64_0x365c,_0x4dc16a=_0xefb50();while(!![]){try{const _0x1105ae=-parseInt(_0x2b7d4b(0x10c))/0x1*(parseInt(_0x2b7d4b(0x137))/0x2)+-parseInt(_0x2b7d4b(0x11a))/0x3*(parseInt(_0x2b7d4b(0x12a))/0x4)+parseInt(_0x2b7d4b(0x13e))/0x5*(parseInt(_0x2b7d4b(0x131))/0x6)+-parseInt(_0x2b7d4b(0x11c))/0x7+parseInt(_0x2b7d4b(0x132))/0x8*(-parseInt(_0x2b7d4b(0x144))/0x9)+parseInt(_0x2b7d4b(0x135))/0xa*(-parseInt(_0x2b7d4b(0x114))/0xb)+parseInt(_0x2b7d4b(0x125))/0xc*(parseInt(_0x2b7d4b(0x117))/0xd);if(_0x1105ae===_0x45c768)break;else _0x4dc16a['push'](_0x4dc16a['shift']());}catch(_0x389be6){_0x4dc16a['push'](_0x4dc16a['shift']());}}}(a64_0x5894,0x95b85));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a64_0x2bf25c(0x12e),'description':a64_0x2bf25c(0x122)},{'name':a64_0x2bf25c(0x133),'type':a64_0x2bf25c(0x12e),'description':a64_0x2bf25c(0x113)},{'name':a64_0x2bf25c(0x11e),'type':'string','description':a64_0x2bf25c(0x11b),'enum':[...RUNTIME_ENV_VALUES]},{'name':a64_0x2bf25c(0x139),'type':a64_0x2bf25c(0x11d),'description':a64_0x2bf25c(0x119),'default':![]}];async function executeWorkspaceUse(_0x2df4a2,_0x234940){const _0x29b3c6=a64_0x2bf25c,_0x4b0909=_0x2df4a2['str'](_0x29b3c6(0x12c))[_0x29b3c6(0x13f)](),_0x1b358a=_0x2df4a2[_0x29b3c6(0x10e)](_0x29b3c6(0x133))['trim'](),_0x2f091a=_0x2df4a2[_0x29b3c6(0x10e)](_0x29b3c6(0x11e))[_0x29b3c6(0x13f)](),_0x21b67e=resolveWorkspaceEnv(_0x2f091a||_0x2df4a2[_0x29b3c6(0x141)]||DEFAULT_CONFIG_VALUES[_0x29b3c6(0x11e)]);if(!_0x4b0909&&!_0x1b358a)throw CliErrors[_0x29b3c6(0x148)](_0x29b3c6(0x12f),'Usage:\x20'+CLI_BIN_NAME+_0x29b3c6(0x10d)+_0x234940+_0x29b3c6(0x110)+CLI_BIN_NAME+'\x20workspace\x20'+_0x234940+_0x29b3c6(0x12d));const _0x2a7b45=_0x1b358a||await resolveRemoteAppCode({'command':_0x234940,'appName':_0x4b0909,'env':_0x21b67e,'accessKey':_0x2df4a2['accessKey']}),_0x1bcfd1=writeWorkspaceConfig({'command':_0x234940,'appName':_0x4b0909,'appcode':_0x2a7b45,'env':_0x21b67e,'shouldWriteEnv':!!_0x2f091a,'accessKey':_0x2df4a2[_0x29b3c6(0x111)]});return{'ok':!![],'data':{'configPath':_0x1bcfd1,'app':_0x4b0909||null,'appcode':_0x2a7b45,'env':_0x2f091a?_0x21b67e:null,'accessKeyWritten':![],'command':_0x29b3c6(0x10f)+_0x234940},'message':buildWorkspaceMessage(_0x1bcfd1,_0x4b0909,_0x2a7b45,_0x2f091a?_0x21b67e:undefined)};}async function resolveRemoteAppCode(_0x4e7c74){const _0xc52688=a64_0x2bf25c;if(!_0x4e7c74[_0xc52688(0x111)])throw CliErrors[_0xc52688(0x13a)](_0xc52688(0x140)+CLI_BIN_NAME+_0xc52688(0x10d)+_0x4e7c74['command']+'.');const {setActiveAK:_0x40ebd2}=await import(_0xc52688(0x13c)),{getRemoteAppList:_0x3b2824}=await import('../../commands/app/remote-source.js');_0x40ebd2(_0x4e7c74['accessKey']);const _0x48af60=await _0x3b2824({'env':_0x4e7c74['env'],'accessKey':_0x4e7c74[_0xc52688(0x111)],'noCache':![]}),_0x193b24=findAppByName(_0x48af60[_0xc52688(0x13b)],_0x4e7c74['appName']);if(_0x193b24&&!isRuntimeAccessibleApp(_0x193b24))throw runtimeInaccessibleAppError(_0x193b24,'\x22'+_0x4e7c74['appName']+'\x22');const _0x337208=_0x193b24?.['appCode']?.['trim']();if(_0x337208)return _0x337208;const _0x253716=_0x48af60[_0xc52688(0x13b)][_0xc52688(0x10b)](_0x1b669b=>_0x1b669b['appName'])[_0xc52688(0x130)](Boolean),_0x5d8767=_0x253716[_0xc52688(0x11f)]?_0xc52688(0x143)+Array[_0xc52688(0x138)](new Set(_0x253716))['join'](',\x20')+'.':_0xc52688(0x118)+CLI_BIN_NAME+_0xc52688(0x146);throw CliErrors[_0xc52688(0x148)](_0xc52688(0x12b)+_0x4e7c74['appName']+'\x22\x20not\x20found.',_0x5d8767);}function writeWorkspaceConfig(_0x10b31a){const _0x4b3cdd=a64_0x2bf25c,_0x3239a5=resolveWriteConfigPath(_0x4b3cdd(0x134)),_0x76b7e1=readConfigFile(_0x3239a5);_0x10b31a[_0x4b3cdd(0x13d)]&&(_0x76b7e1['env']=_0x10b31a[_0x4b3cdd(0x11e)]);if(_0x10b31a[_0x4b3cdd(0x121)]){const _0x354d66=isRecord(_0x76b7e1[_0x4b3cdd(0x10a)])?{..._0x76b7e1[_0x4b3cdd(0x10a)]}:{},_0x59125f=isRecord(_0x354d66[_0x10b31a['appName']])?_0x354d66[_0x10b31a[_0x4b3cdd(0x121)]]:{};_0x354d66[_0x10b31a['appName']]={..._0x59125f,'appcode':_0x10b31a[_0x4b3cdd(0x133)]},_0x76b7e1[_0x4b3cdd(0x10a)]=_0x354d66,_0x76b7e1[_0x4b3cdd(0x124)]=_0x10b31a[_0x4b3cdd(0x121)];if(_0x76b7e1['app'])delete _0x76b7e1[_0x4b3cdd(0x12c)];return writeAndReturn(_0x3239a5,_0x76b7e1);}_0x76b7e1[_0x4b3cdd(0x133)]=_0x10b31a[_0x4b3cdd(0x133)];if(_0x76b7e1[_0x4b3cdd(0x12c)])delete _0x76b7e1[_0x4b3cdd(0x12c)];return writeAndReturn(_0x3239a5,_0x76b7e1);}function writeAndReturn(_0x5706ec,_0x51c202){return writeConfigFile(_0x5706ec,_0x51c202),_0x5706ec;}function resolveWorkspaceEnv(_0x2e94c9){const _0x51d962=a64_0x2bf25c;if(RUNTIME_ENV_VALUES[_0x51d962(0x147)](_0x2e94c9))return _0x2e94c9;throw CliErrors[_0x51d962(0x148)]('Invalid\x20env\x20\x22'+_0x2e94c9+_0x51d962(0x120)+RUNTIME_ENV_VALUES['join'](',\x20'));}function a64_0x365c(_0x1468bb,_0xf7951){_0x1468bb=_0x1468bb-0x10a;const _0x58948a=a64_0x5894();let _0x365c94=_0x58948a[_0x1468bb];return _0x365c94;}function buildWorkspaceMessage(_0x9e048b,_0x1c3785,_0x340214,_0x43cfab){const _0x435d3b=a64_0x2bf25c,_0x3191e4=_0x1c3785?_0x1c3785+'\x20('+_0x340214+')':_0x340214,_0x595106=_0x43cfab?_0x435d3b(0x126)+_0x43cfab:'';return _0x435d3b(0x116)+_0x9e048b+_0x435d3b(0x136)+_0x3191e4+_0x595106+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x57c36d){const _0x5b748b=a64_0x2bf25c;return typeof _0x57c36d===_0x5b748b(0x115)&&_0x57c36d!==null&&!Array[_0x5b748b(0x123)](_0x57c36d);}function makeWorkspaceCommand(_0x4c8540){const _0x5e6e2c=a64_0x2bf25c;return{'service':_0x5e6e2c(0x127),'command':_0x4c8540,'description':_0x4c8540===_0x5e6e2c(0x142)?_0x5e6e2c(0x128):_0x5e6e2c(0x129),'risk':_0x5e6e2c(0x112),'confirmationDescription':_0x4c8540==='init'?'将在当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。':'将更新当前工作目录的\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x31cebe){return executeWorkspaceUse(_0x31cebe,_0x4c8540);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x2bf25c(0x142)),makeWorkspaceCommand(a64_0x2bf25c(0x145))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a65_0x37efc4=a65_0x4e2a;(function(_0x2ac1d7,_0x3e8746){const _0x91e6a0=a65_0x4e2a,_0x319cff=_0x2ac1d7();while(!![]){try{const _0x2628a4=-parseInt(_0x91e6a0(0x152))/0x1*(parseInt(_0x91e6a0(0x141))/0x2)+parseInt(_0x91e6a0(0x145))/0x3+-parseInt(_0x91e6a0(0x157))/0x4+parseInt(_0x91e6a0(0x150))/0x5+-parseInt(_0x91e6a0(0x158))/0x6+-parseInt(_0x91e6a0(0x14e))/0x7*(-parseInt(_0x91e6a0(0x14f))/0x8)+-parseInt(_0x91e6a0(0x13a))/0x9*(-parseInt(_0x91e6a0(0x13c))/0xa);if(_0x2628a4===_0x3e8746)break;else _0x319cff['push'](_0x319cff['shift']());}catch(_0x32018b){_0x319cff['push'](_0x319cff['shift']());}}}(a65_0xe5b6,0x53c85));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a65_0x37efc4(0x13e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a65_0x37efc4(0x149),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a65_0x37efc4(0x147),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x37efc4(0x13b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x37efc4(0x143),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x37efc4(0x154),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x37efc4(0x14d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x37efc4(0x142),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x37efc4(0x14a)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x37efc4(0x146)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x37efc4(0x140)](CONFIG_FIELD_SCHEMAS)[a65_0x37efc4(0x139)](([,_0x561922])=>_0x561922[a65_0x37efc4(0x14c)])['map'](([_0x28a678])=>_0x28a678));export const CONFIG_ENUM_VALUES=Object[a65_0x37efc4(0x153)](Object[a65_0x37efc4(0x140)](CONFIG_FIELD_SCHEMAS)[a65_0x37efc4(0x139)](([,_0x5c8d55])=>_0x5c8d55['enumValues'])[a65_0x37efc4(0x148)](([_0x57c0e2,_0x3026af])=>[_0x57c0e2,[..._0x3026af[a65_0x37efc4(0x14b)]||[]]]));function a65_0xe5b6(){const _0x2cc360=['Default\x20output\x20format','riskLevel','enumValues','cliSettableTopLevel','Override\x20SkillHub\x20domain','98uaOSnM','56896svYelq','1926830guFmED','has','1ksSNTK','fromEntries','Override\x20runtime\x20domain',';\x20local\x20alias:\x20apps.<alias>.appcode','Config\x20key.\x20Top-level:\x20','1751112nbslcL','1910604qhoyna','filter','9APHnHU','Override\x20API\x20domain','11228710kYtuNk','defaultValue','Target\x20environment','join','entries','1347530YEQTiO','Risk\x20level','Override\x20user\x20domain','legacyCompatOnly','496035MrAoNR','locale','Default\x20page\x20size','map'];a65_0xe5b6=function(){return _0x2cc360;};return a65_0xe5b6();}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x37efc4(0x140)](CONFIG_FIELD_SCHEMAS)[a65_0x37efc4(0x139)](([,_0x20a900])=>_0x20a900['importable'])['map'](([_0x149f12])=>_0x149f12);export function getConfigFieldSchema(_0x589b53){return CONFIG_FIELD_SCHEMAS[_0x589b53];}function a65_0x4e2a(_0x22fc28,_0x1d51d5){_0x22fc28=_0x22fc28-0x139;const _0xe5b631=a65_0xe5b6();let _0x4e2a64=_0xe5b631[_0x22fc28];return _0x4e2a64;}export function getConfigEnumValues(_0x3113a6){return getConfigFieldSchema(_0x3113a6)?.['enumValues'];}export function getConfigDefaultValue(_0x5710f9){const _0x39e807=a65_0x37efc4;return getConfigFieldSchema(_0x5710f9)?.[_0x39e807(0x13d)];}export function isTopLevelConfigKey(_0x504f32){const _0xbd7f3b=a65_0x37efc4;return TOP_LEVEL_CONFIG_KEYS[_0xbd7f3b(0x151)](_0x504f32);}export function isLegacyCompatConfigKey(_0x2dd100){const _0x1e950e=a65_0x37efc4;return getConfigFieldSchema(_0x2dd100)?.[_0x1e950e(0x144)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x47024b){const _0x45a10a=a65_0x37efc4;return[..._0x47024b][_0x45a10a(0x13f)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5a5c54=a65_0x37efc4;return _0x5a5c54(0x156)+getTopLevelConfigKeySummary()+_0x5a5c54(0x155);}export function buildAppProfileListFields(_0x15ad43){return{'env':_0x15ad43,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a66_0x3ad486=a66_0x4786;function a66_0x4786(_0x19076d,_0x150a68){_0x19076d=_0x19076d-0x8a;const _0x531c49=a66_0x531c();let _0x4786cb=_0x531c49[_0x19076d];return _0x4786cb;}(function(_0x2df989,_0x501e65){const _0x11c190=a66_0x4786,_0x5c5e03=_0x2df989();while(!![]){try{const _0x53a3e3=-parseInt(_0x11c190(0x97))/0x1*(parseInt(_0x11c190(0x93))/0x2)+parseInt(_0x11c190(0x90))/0x3+-parseInt(_0x11c190(0x96))/0x4*(-parseInt(_0x11c190(0x95))/0x5)+parseInt(_0x11c190(0x94))/0x6+-parseInt(_0x11c190(0x8a))/0x7*(parseInt(_0x11c190(0x8b))/0x8)+parseInt(_0x11c190(0x92))/0x9*(-parseInt(_0x11c190(0x8d))/0xa)+parseInt(_0x11c190(0x8e))/0xb;if(_0x53a3e3===_0x501e65)break;else _0x5c5e03['push'](_0x5c5e03['shift']());}catch(_0x151d02){_0x5c5e03['push'](_0x5c5e03['shift']());}}}(a66_0x531c,0x90f21));export const APP_PUBLISH_STATUS={'Published':a66_0x3ad486(0x91),'Unpublished':a66_0x3ad486(0x8f)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a66_0x3ad486(0x8c)];function a66_0x531c(){const _0x50c55a=['62884BtRjaZ','404843HtpZrK','329HWYiqE','48064boLnRC','Published','1760QaMywL','1659768xtxIpS','UNPUBLISH','672321tCXZzB','PUBLISHED','31410NUVdXd','2VmhJIm','6196860vLoutN','155fPBQrs'];a66_0x531c=function(){return _0x50c55a;};return a66_0x531c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a67_0x47a6(){const _0x5838b8=['467351dRywEY','3702024tqtHlB','ClientAk','3546186oIuFFA','5lURcAB','3277536ItMaje','340970YaRNuN','1497910LTkQvB','client-ak','1408566QufEHm'];a67_0x47a6=function(){return _0x5838b8;};return a67_0x47a6();}function a67_0x2e0c(_0x3816b9,_0x5dd399){_0x3816b9=_0x3816b9-0x1c8;const _0x47a697=a67_0x47a6();let _0x2e0c48=_0x47a697[_0x3816b9];return _0x2e0c48;}const a67_0x385d6b=a67_0x2e0c;(function(_0x438e9f,_0x54886c){const _0x1d1830=a67_0x2e0c,_0x3dcdc3=_0x438e9f();while(!![]){try{const _0x7ca8a2=-parseInt(_0x1d1830(0x1c9))/0x1+parseInt(_0x1d1830(0x1d0))/0x2+-parseInt(_0x1d1830(0x1c8))/0x3+parseInt(_0x1d1830(0x1ce))/0x4+-parseInt(_0x1d1830(0x1cd))/0x5*(parseInt(_0x1d1830(0x1cc))/0x6)+-parseInt(_0x1d1830(0x1cf))/0x7+parseInt(_0x1d1830(0x1ca))/0x8;if(_0x7ca8a2===_0x54886c)break;else _0x3dcdc3['push'](_0x3dcdc3['shift']());}catch(_0x383a0f){_0x3dcdc3['push'](_0x3dcdc3['shift']());}}}(a67_0x47a6,0x6ef4e));export const AUTH_MODE={'ClientAk':a67_0x385d6b(0x1d1)};export function isAuthMode(_0x4813ec){const _0x1877be=a67_0x385d6b;return _0x4813ec===AUTH_MODE[_0x1877be(0x1cb)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a68_0x1639(){const _0x5c1891=['Verbose\x20output','28497CFIxcv','Use\x20global\x20config\x20scope','<expr>','env','cliDisplayName','params','JSON\x20params\x20for\x20execute\x20commands','dry-run','1773900SCpLmb','SQL\x20query\x20code','Show\x20help','json\x20|\x20pretty\x20|\x20compress','2088117dIboFQ','map','string','meowKey','production\x20|\x20development\x20|\x20daily','help','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','clear','8uUoTbD','boolean','verbose','cliBinName','Preview\x20operation\x20without\x20executing','format','Override\x20appcode','Force\x20non-interactive\x20mode\x20(CI)','Select\x20app\x20profile\x20by\x20name','Name\x20filter','app','84CNtcIL','name','Clear\x20output','<code>','type','dryRun','Alias\x20for\x20--non-interactive','249062nDaCjj','fromEntries','appcode','global','708010YOILYg','2719213iUnCtL','Environment','206438ocYaif','non-interactive','Record\x20ID'];a68_0x1639=function(){return _0x5c1891;};return a68_0x1639();}const a68_0x13c53d=a68_0x2a63;(function(_0x4ce59e,_0x209087){const _0x294507=a68_0x2a63,_0x4a085d=_0x4ce59e();while(!![]){try{const _0x48bff3=parseInt(_0x294507(0xb9))/0x1+parseInt(_0x294507(0xb2))/0x2+parseInt(_0x294507(0xbd))/0x3*(parseInt(_0x294507(0xab))/0x4)+parseInt(_0x294507(0xb6))/0x5+-parseInt(_0x294507(0xc5))/0x6+-parseInt(_0x294507(0xb7))/0x7+-parseInt(_0x294507(0xd1))/0x8*(-parseInt(_0x294507(0xc9))/0x9);if(_0x48bff3===_0x209087)break;else _0x4a085d['push'](_0x4a085d['shift']());}catch(_0x46d143){_0x4a085d['push'](_0x4a085d['shift']());}}}(a68_0x1639,0x35b32));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x13c53d(0xa3)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x13c53d(0xc1)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a68_0x2a63(_0x5dd101,_0x5eef70){_0x5dd101=_0x5dd101-0xa3;const _0x163953=a68_0x1639();let _0x2a637d=_0x163953[_0x5dd101];return _0x2a637d;}export const GLOBAL_FLAGS=[{'name':a68_0x13c53d(0xb4),'meowKey':a68_0x13c53d(0xb4),'type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xa6),'hint':a68_0x13c53d(0xae)},{'name':a68_0x13c53d(0xaa),'meowKey':'app','type':'string','description':a68_0x13c53d(0xa8),'hint':'<name>'},{'name':a68_0x13c53d(0xc0),'meowKey':'env','type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xb8),'hint':a68_0x13c53d(0xcd)},{'name':'format','meowKey':a68_0x13c53d(0xa5),'type':'string','description':'Output\x20format','hint':a68_0x13c53d(0xc8)},{'name':'jq','meowKey':'jq','type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xcf),'hint':a68_0x13c53d(0xbf)},{'name':a68_0x13c53d(0xc4),'meowKey':a68_0x13c53d(0xb0),'type':a68_0x13c53d(0xd2),'description':a68_0x13c53d(0xa4)},{'name':'yes','meowKey':'yes','type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':'nonInteractive','type':'boolean','description':a68_0x13c53d(0xa7)},{'name':'global','meowKey':a68_0x13c53d(0xb5),'type':a68_0x13c53d(0xd2),'description':a68_0x13c53d(0xbe)},{'name':'ci','meowKey':'ci','type':a68_0x13c53d(0xd2),'description':a68_0x13c53d(0xb1),'hidden':!![]},{'name':'help','meowKey':a68_0x13c53d(0xce),'type':a68_0x13c53d(0xd2),'description':a68_0x13c53d(0xc7)},{'name':'id','meowKey':'id','type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xbb),'hidden':!![]},{'name':a68_0x13c53d(0xac),'meowKey':a68_0x13c53d(0xac),'type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xa9),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xc6),'hidden':!![]},{'name':a68_0x13c53d(0xc2),'meowKey':a68_0x13c53d(0xc2),'type':'string','description':a68_0x13c53d(0xc3),'hidden':!![]},{'name':a68_0x13c53d(0xd3),'meowKey':'verbose','type':a68_0x13c53d(0xd2),'description':a68_0x13c53d(0xbc),'hidden':!![]},{'name':a68_0x13c53d(0xd0),'meowKey':a68_0x13c53d(0xd0),'type':'boolean','description':a68_0x13c53d(0xad),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x13c53d(0xb4),a68_0x13c53d(0xaa),a68_0x13c53d(0xc0),a68_0x13c53d(0xa5),'jq',a68_0x13c53d(0xc4),'yes',a68_0x13c53d(0xba),'ci']);export function buildMeowFlags(){const _0x367fa5=a68_0x13c53d;return Object[_0x367fa5(0xb3)](GLOBAL_FLAGS[_0x367fa5(0xca)](_0x55d393=>[_0x55d393[_0x367fa5(0xcc)],{'type':_0x55d393[_0x367fa5(0xaf)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x3b9132=a69_0x4f0c;function a69_0x155c(){const _0x2fb0a6=['9KzKYEk','365iZlEXa','6UDnHBO','5636640BzqHwA','61988KpmpVR','6054NuDHdd','5699589ADEkYO','140FNMgNp','36cETDxJ','14789827foQKBO','1157203tiXaSZ','main','1352ZtqMIX','compress','1044461DniSQU'];a69_0x155c=function(){return _0x2fb0a6;};return a69_0x155c();}(function(_0x1ec1da,_0x2f05bb){const _0x145921=a69_0x4f0c,_0x2df0fe=_0x1ec1da();while(!![]){try{const _0x59151d=parseInt(_0x145921(0x161))/0x1+-parseInt(_0x145921(0x163))/0x2*(-parseInt(_0x145921(0x15c))/0x3)+parseInt(_0x145921(0x15b))/0x4*(-parseInt(_0x145921(0x158))/0x5)+-parseInt(_0x145921(0x159))/0x6*(-parseInt(_0x145921(0x15d))/0x7)+-parseInt(_0x145921(0x15a))/0x8*(-parseInt(_0x145921(0x157))/0x9)+-parseInt(_0x145921(0x15e))/0xa*(-parseInt(_0x145921(0x165))/0xb)+-parseInt(_0x145921(0x15f))/0xc*(parseInt(_0x145921(0x160))/0xd);if(_0x59151d===_0x2f05bb)break;else _0x2df0fe['push'](_0x2df0fe['shift']());}catch(_0x5dc2ce){_0x2df0fe['push'](_0x2df0fe['shift']());}}}(a69_0x155c,0xc9756));export const DEFAULT_APP_PROFILE_NAME=a69_0x3b9132(0x162);export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':'en-US','riskLevel':'write'};function a69_0x4f0c(_0x30e9ec,_0x1fe456){_0x30e9ec=_0x30e9ec-0x157;const _0x155caa=a69_0x155c();let _0x4f0c70=_0x155caa[_0x30e9ec];return _0x4f0c70;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x3b9132(0x164);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a70_0x499b(_0x24827d,_0x53c02c){_0x24827d=_0x24827d-0xa3;const _0x41590c=a70_0x4159();let _0x499b6d=_0x41590c[_0x24827d];return _0x499b6d;}const a70_0x2328f1=a70_0x499b;(function(_0x2a4210,_0x25d5f5){const _0x52aa31=a70_0x499b,_0x559a60=_0x2a4210();while(!![]){try{const _0x974240=-parseInt(_0x52aa31(0xa9))/0x1+parseInt(_0x52aa31(0xae))/0x2+-parseInt(_0x52aa31(0xad))/0x3+-parseInt(_0x52aa31(0xa6))/0x4*(parseInt(_0x52aa31(0xaf))/0x5)+-parseInt(_0x52aa31(0xab))/0x6*(-parseInt(_0x52aa31(0xac))/0x7)+-parseInt(_0x52aa31(0xa8))/0x8*(parseInt(_0x52aa31(0xa7))/0x9)+parseInt(_0x52aa31(0xa3))/0xa;if(_0x974240===_0x25d5f5)break;else _0x559a60['push'](_0x559a60['shift']());}catch(_0x34364b){_0x559a60['push'](_0x559a60['shift']());}}}(a70_0x4159,0x290a6));import{PRODUCT_CONFIG}from'../constant/product.js';function a70_0x4159(){const _0x5a5f82=['167419HXHWKM','skillSource','48oqudls','62111nnwuGM','935364rKmaDy','119208tIjiqg','290GuckoO','8635640sKuDXd','npmPackageName','npmRegistryBaseUrl','14316mbVtTw','423qgSmQZ','23704MFbbIh'];a70_0x4159=function(){return _0x5a5f82;};return a70_0x4159();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x2328f1(0xa4)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x2328f1(0xaa)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x2328f1(0xa5)];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x1b02c6=a71_0x1277;(function(_0x54f8b0,_0x40bef7){const _0x573eb8=a71_0x1277,_0x5b3c46=_0x54f8b0();while(!![]){try{const _0x382087=parseInt(_0x573eb8(0x1e8))/0x1+-parseInt(_0x573eb8(0x1e6))/0x2*(parseInt(_0x573eb8(0x1ec))/0x3)+-parseInt(_0x573eb8(0x1ed))/0x4+parseInt(_0x573eb8(0x1e0))/0x5+parseInt(_0x573eb8(0x1e3))/0x6*(-parseInt(_0x573eb8(0x1e1))/0x7)+parseInt(_0x573eb8(0x1e5))/0x8+parseInt(_0x573eb8(0x1ee))/0x9;if(_0x382087===_0x40bef7)break;else _0x5b3c46['push'](_0x5b3c46['shift']());}catch(_0x1cc2b8){_0x5b3c46['push'](_0x5b3c46['shift']());}}}(a71_0x404b,0x92bf6));function a71_0x404b(){const _0x331ed7=['apiDomain','runtime','userDomain','2118425ajTwjj','917xHZokZ','runtimeDomain','26610BlfHye','nonProduction','5713792WAKKPP','196fUIBKw','production','449609VVYgLr','skillHubDomain','api','domains','11541gPhiSh','2366296RDNLXW','5068125dmOhpv'];a71_0x404b=function(){return _0x331ed7;};return a71_0x404b();}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a71_0x1277(_0x520895,_0x5d08f6){_0x520895=_0x520895-0x1e0;const _0x404b82=a71_0x404b();let _0x12775a=_0x404b82[_0x520895];return _0x12775a;}export function initDomains(_0x41ed26){const _0x335db1=a71_0x1277;customApiDomain=_0x41ed26?.[_0x335db1(0x1ef)],customUserDomain=_0x41ed26?.[_0x335db1(0x1f1)],customRuntimeDomain=_0x41ed26?.[_0x335db1(0x1e2)],customSkillHubDomain=_0x41ed26?.[_0x335db1(0x1e9)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0x1b02c6(0x1e7)]['user']:PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e4)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e7)][a71_0x1b02c6(0x1ea)]:PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e4)][a71_0x1b02c6(0x1ea)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e7)][a71_0x1b02c6(0x1f0)]:PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e4)][a71_0x1b02c6(0x1f0)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)]['production']['skillhub']:PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e4)]['skillhub']);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a72_0x1cf8(){const _0x5598ba=['28UKsBVd','2583506uBJPHk','10539240ZavcMF','dev','2208144DblpNR','52200vpukiV','production','ENV','development','6446036QjTMUt','1808RhvBZL','804nxHlFf','4713495zkHwFu','1cYodzh','5AbbEgP','178013cQBpAg','daily'];a72_0x1cf8=function(){return _0x5598ba;};return a72_0x1cf8();}const a72_0x2d5212=a72_0xfbd5;function a72_0xfbd5(_0x21dd62,_0x300547){_0x21dd62=_0x21dd62-0xc2;const _0x1cf832=a72_0x1cf8();let _0xfbd50c=_0x1cf832[_0x21dd62];return _0xfbd50c;}(function(_0x136edd,_0x139e89){const _0x38c1fb=a72_0xfbd5,_0xd66d1f=_0x136edd();while(!![]){try{const _0x5ed772=-parseInt(_0x38c1fb(0xc6))/0x1*(-parseInt(_0x38c1fb(0xcb))/0x2)+-parseInt(_0x38c1fb(0xc5))/0x3+parseInt(_0x38c1fb(0xc2))/0x4*(-parseInt(_0x38c1fb(0xc7))/0x5)+parseInt(_0x38c1fb(0xce))/0x6*(parseInt(_0x38c1fb(0xca))/0x7)+parseInt(_0x38c1fb(0xc3))/0x8*(parseInt(_0x38c1fb(0xcf))/0x9)+-parseInt(_0x38c1fb(0xcc))/0xa+parseInt(_0x38c1fb(0xc8))/0xb*(parseInt(_0x38c1fb(0xc4))/0xc);if(_0x5ed772===_0x139e89)break;else _0xd66d1f['push'](_0xd66d1f['shift']());}catch(_0x3b8c4d){_0xd66d1f['push'](_0xd66d1f['shift']());}}}(a72_0x1cf8,0xe12c8));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a72_0x2d5212(0xd0),a72_0x2d5212(0xd2),'daily'];export function normalizeEnv(_0x2768f8){const _0x4885a4=a72_0x2d5212;return _0x2768f8==='online'?_0x4885a4(0xd0):_0x2768f8;}export function isProduction(_0x2ad41a){const _0x58ebdc=a72_0x2d5212;return normalizeEnv(_0x2ad41a)===_0x58ebdc(0xd0);}export function isDaily(_0x285dc0){const _0x2c37ed=a72_0x2d5212;return normalizeEnv(_0x285dc0)===_0x2c37ed(0xc9);}export function isDev(_0x5dcb62){const _0x2ed42c=a72_0x2d5212,_0xab4245=normalizeEnv(_0x5dcb62);return _0xab4245===_0x2ed42c(0xd2)||_0xab4245===_0x2ed42c(0xcd);}let env=normalizeEnv(productEnv(a72_0x2d5212(0xd1))||a72_0x2d5212(0xd0));export function getEnv(){return env;}export function initEnv(_0x1f513c){env=normalizeEnv(_0x1f513c);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a73_0x33c7(){const _0x30b162=['17178uVrDVI','1494IKPpVp','4677SctULX','66610mczXZm','7498088OFVace','72299326XLZWiH','137222CSEktM','4424aCaAQH','2468QvdKOO','7611025DEOonU','pretty','18QJFFWU','compress'];a73_0x33c7=function(){return _0x30b162;};return a73_0x33c7();}const a73_0x340f4e=a73_0x2890;function a73_0x2890(_0x133286,_0x6e67c2){_0x133286=_0x133286-0x1d4;const _0x33c745=a73_0x33c7();let _0x2890b9=_0x33c745[_0x133286];return _0x2890b9;}(function(_0x28765b,_0x47f4f6){const _0x1e288d=a73_0x2890,_0xba9d49=_0x28765b();while(!![]){try{const _0x3e90c5=-parseInt(_0x1e288d(0x1d5))/0x1*(-parseInt(_0x1e288d(0x1dd))/0x2)+parseInt(_0x1e288d(0x1d9))/0x3*(parseInt(_0x1e288d(0x1df))/0x4)+parseInt(_0x1e288d(0x1e0))/0x5+parseInt(_0x1e288d(0x1d7))/0x6*(parseInt(_0x1e288d(0x1de))/0x7)+parseInt(_0x1e288d(0x1db))/0x8+-parseInt(_0x1e288d(0x1d8))/0x9*(-parseInt(_0x1e288d(0x1da))/0xa)+-parseInt(_0x1e288d(0x1dc))/0xb;if(_0x3e90c5===_0x47f4f6)break;else _0xba9d49['push'](_0xba9d49['shift']());}catch(_0x1e99c8){_0xba9d49['push'](_0xba9d49['shift']());}}}(a73_0x33c7,0xf3dbb));export const OUTPUT_FORMAT_VALUES=['json',a73_0x340f4e(0x1d4),a73_0x340f4e(0x1d6)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x34d16f=a74_0x9084;function a74_0x9084(_0x1ff6ed,_0x7f17ec){_0x1ff6ed=_0x1ff6ed-0x1c1;const _0x59c143=a74_0x59c1();let _0x90846e=_0x59c143[_0x1ff6ed];return _0x90846e;}(function(_0x2431a1,_0xff8f38){const _0x5e87d5=a74_0x9084,_0xeacb09=_0x2431a1();while(!![]){try{const _0x3ff87a=parseInt(_0x5e87d5(0x1ce))/0x1*(-parseInt(_0x5e87d5(0x1cc))/0x2)+parseInt(_0x5e87d5(0x1e1))/0x3+parseInt(_0x5e87d5(0x1e3))/0x4*(-parseInt(_0x5e87d5(0x1c3))/0x5)+-parseInt(_0x5e87d5(0x1cd))/0x6*(parseInt(_0x5e87d5(0x1c5))/0x7)+-parseInt(_0x5e87d5(0x1da))/0x8+parseInt(_0x5e87d5(0x1df))/0x9*(parseInt(_0x5e87d5(0x1c4))/0xa)+parseInt(_0x5e87d5(0x1db))/0xb*(parseInt(_0x5e87d5(0x1ca))/0xc);if(_0x3ff87a===_0xff8f38)break;else _0xeacb09['push'](_0xeacb09['shift']());}catch(_0x4c909d){_0xeacb09['push'](_0xeacb09['shift']());}}}(a74_0x59c1,0xa2f88));export const PRODUCT_CONFIG={'cliBinName':a74_0x34d16f(0x1e2),'cliDisplayName':a74_0x34d16f(0x1cb),'npmPackageName':a74_0x34d16f(0x1d9),'skillSource':a74_0x34d16f(0x1d0),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a74_0x34d16f(0x1c8),'legacyEnvPrefixes':[a74_0x34d16f(0x1d1)],'configFileNames':[a74_0x34d16f(0x1de),a74_0x34d16f(0x1cf)],'newConfigFileName':'.lovrabet.json','homeDirName':'.lovrabet','logFileName':a74_0x34d16f(0x1d2),'invokeSource':a74_0x34d16f(0x1c6),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a74_0x34d16f(0x1e0),'domains':{'production':{'user':a74_0x34d16f(0x1c2),'api':a74_0x34d16f(0x1d3),'runtime':a74_0x34d16f(0x1c9),'skillhub':a74_0x34d16f(0x1dd)},'nonProduction':{'user':a74_0x34d16f(0x1d4),'api':a74_0x34d16f(0x1d7),'runtime':a74_0x34d16f(0x1d8),'skillhub':a74_0x34d16f(0x1c1)}},'accessKeyCreatePath':a74_0x34d16f(0x1d6)};export function productEnvName(_0x12189f){const _0x171912=a74_0x34d16f;return PRODUCT_CONFIG[_0x171912(0x1dc)]+'_'+_0x12189f;}export function productEnvNames(_0x1d5409){const _0x17abc4=a74_0x34d16f;return[productEnvName(_0x1d5409),...PRODUCT_CONFIG[_0x17abc4(0x1c7)][_0x17abc4(0x1d5)](_0x11a78a=>_0x11a78a+'_'+_0x1d5409)];}export function productEnv(_0x3a0bc4){for(const _0x53a617 of productEnvNames(_0x3a0bc4)){const _0x454e51=process.env[_0x53a617];if(_0x454e51!==undefined)return _0x454e51;}return undefined;}function a74_0x59c1(){const _0x492a62=['792082WbYyqC','24PIZhuB','1pcXEor','.lovrabetrc','lovrabet/lovrabet-cli','RABETBASE','.lovrabet-runtime.log','https://api.lovrabet.com','https://user-daily.lovrabet.com','map','/user/ak','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','@lovrabet/lovrabet-cli','510984xZUyFx','2919037pfQoHX','envPrefix','https://skills.lovrabet.com','.lovrabet.json','18auiMNQ','SKIP_NPX_SKILLS','3411084aVQExh','lovrabet','4auzFoR','https://skills-daily.lovrabet.com','https://user.lovrabet.com','5767535MtOiVa','4585230ZZUYkv','67361pUXwgo','cli:lovrabet-runtime','legacyEnvPrefixes','LOVRABET','https://runtime.lovrabet.com','12sGAQLJ','Lovrabet\x20Runtime\x20CLI'];a74_0x59c1=function(){return _0x492a62;};return a74_0x59c1();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a75_0x5383(_0x513c67,_0x1b2060){_0x513c67=_0x513c67-0x110;const _0x2bc0f6=a75_0x2bc0();let _0x538396=_0x2bc0f6[_0x513c67];return _0x538396;}function a75_0x2bc0(){const _0x40c645=['14LsXgBA','high-risk-write','778416XpzDfR','3330825vOYHEX','read','6971532orCGRW','1682790IhKXjq','18134FtgaqB','1456636SGufhJ','40650tabByL','9855cJPovF','89LeURkZ'];a75_0x2bc0=function(){return _0x40c645;};return a75_0x2bc0();}const a75_0x2b7294=a75_0x5383;(function(_0x231caa,_0x3df714){const _0x16aacd=a75_0x5383,_0x403f36=_0x231caa();while(!![]){try{const _0x123281=-parseInt(_0x16aacd(0x119))/0x1*(parseInt(_0x16aacd(0x115))/0x2)+-parseInt(_0x16aacd(0x114))/0x3+-parseInt(_0x16aacd(0x116))/0x4+-parseInt(_0x16aacd(0x111))/0x5+-parseInt(_0x16aacd(0x113))/0x6+parseInt(_0x16aacd(0x11a))/0x7*(-parseInt(_0x16aacd(0x110))/0x8)+parseInt(_0x16aacd(0x118))/0x9*(parseInt(_0x16aacd(0x117))/0xa);if(_0x123281===_0x3df714)break;else _0x403f36['push'](_0x403f36['shift']());}catch(_0x2a96e0){_0x403f36['push'](_0x403f36['shift']());}}}(a75_0x2bc0,0xaa070));export const RISK_LEVEL_VALUES=[a75_0x2b7294(0x112),'write',a75_0x2b7294(0x11b)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x39510c=a76_0x2497;(function(_0x4fb90f,_0x5f2ef2){const _0x4c9241=a76_0x2497,_0x1a35ed=_0x4fb90f();while(!![]){try{const _0x665955=-parseInt(_0x4c9241(0x1d2))/0x1+-parseInt(_0x4c9241(0x1db))/0x2*(-parseInt(_0x4c9241(0x1ce))/0x3)+-parseInt(_0x4c9241(0x1d3))/0x4+parseInt(_0x4c9241(0x1d4))/0x5*(-parseInt(_0x4c9241(0x1d0))/0x6)+parseInt(_0x4c9241(0x1d5))/0x7+-parseInt(_0x4c9241(0x1d8))/0x8*(parseInt(_0x4c9241(0x1da))/0x9)+parseInt(_0x4c9241(0x1cf))/0xa;if(_0x665955===_0x5f2ef2)break;else _0x1a35ed['push'](_0x1a35ed['shift']());}catch(_0x518ce5){_0x1a35ed['push'](_0x1a35ed['shift']());}}}(a76_0x15fe,0xf3d1a));function a76_0x15fe(){const _0x272478=['6xabqeF','13518590ZPIDXm','6TIaJfU','user','609833EhsbDx','3687080KGllRg','725330KGhHqg','1562988lnwWsF','accessKeyCreatePath','production','172712wbvrEa','domains','90eDYQCW','1316098vXVMgy'];a76_0x15fe=function(){return _0x272478;};return a76_0x15fe();}function a76_0x2497(_0x44033d,_0x10be5b){_0x44033d=_0x44033d-0x1ce;const _0x15fe4b=a76_0x15fe();let _0x2497f6=_0x15fe4b[_0x44033d];return _0x2497f6;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x39510c(0x1d9)][a76_0x39510c(0x1d7)][a76_0x39510c(0x1d1)]+PRODUCT_CONFIG[a76_0x39510c(0x1d6)];
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a77_0x470df1=a77_0x5591;(function(_0x3c522,_0x5d1a14){const _0x45b742=a77_0x5591,_0x2cfc5b=_0x3c522();while(!![]){try{const _0x27378d=parseInt(_0x45b742(0xe7))/0x1+parseInt(_0x45b742(0xda))/0x2*(-parseInt(_0x45b742(0xc0))/0x3)+-parseInt(_0x45b742(0xd4))/0x4+parseInt(_0x45b742(0xe8))/0x5+parseInt(_0x45b742(0xa5))/0x6*(-parseInt(_0x45b742(0xdd))/0x7)+-parseInt(_0x45b742(0xb6))/0x8*(parseInt(_0x45b742(0xe2))/0x9)+parseInt(_0x45b742(0xe4))/0xa;if(_0x27378d===_0x5d1a14)break;else _0x2cfc5b['push'](_0x2cfc5b['shift']());}catch(_0x195e98){_0x2cfc5b['push'](_0x2cfc5b['shift']());}}}(a77_0x569d,0xe9574));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a77_0x470df1(0xde)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x470df1(0xa7)];function resolveConfigPath(_0x168213){for(const _0x5dafc3 of CONFIG_NAMES){const _0x2bbe87=resolve(_0x168213,_0x5dafc3);if(existsSync(_0x2bbe87))return _0x2bbe87;}return undefined;}function a77_0x5591(_0x4f127c,_0x49dc0f){_0x4f127c=_0x4f127c-0xa4;const _0x569d67=a77_0x569d();let _0x5591d3=_0x569d67[_0x4f127c];return _0x5591d3;}export function resolveWriteConfigPath(_0x4a629e){const _0x5a885b=a77_0x470df1,_0x285334=_0x4a629e===_0x5a885b(0xad)?process[_0x5a885b(0xd1)]():homedir(),_0x42b70d=resolveConfigPath(_0x285334);return _0x42b70d??resolve(_0x285334,NEW_CONFIG_NAME);}export function readConfigFile(_0x1f7bea){const _0x574854=a77_0x470df1;try{if(existsSync(_0x1f7bea)){const _0x21d5a2=readFileSync(_0x1f7bea,{'encoding':'utf8'});if(_0x21d5a2){const _0x2611da=JSON[_0x574854(0xd9)](_0x21d5a2);return migrateOnlineEnv(_0x1f7bea,_0x2611da),_0x2611da;}}}catch{}return{};}function migrateOnlineEnv(_0x122bc0,_0x39bc52){const _0x112c57=a77_0x470df1;let _0xfd9345=![];_0x39bc52[_0x112c57(0xa4)]===_0x112c57(0xae)&&(_0x39bc52[_0x112c57(0xa4)]=_0x112c57(0xeb),_0xfd9345=!![]);if(_0x39bc52[_0x112c57(0xe9)]&&typeof _0x39bc52[_0x112c57(0xe9)]===_0x112c57(0xac))for(const _0x36d5cf of Object[_0x112c57(0xd2)](_0x39bc52[_0x112c57(0xe9)])){_0x36d5cf&&_0x36d5cf[_0x112c57(0xa4)]===_0x112c57(0xae)&&(_0x36d5cf['env']=_0x112c57(0xeb),_0xfd9345=!![]);}if(_0xfd9345)try{writeConfigFile(_0x122bc0,_0x39bc52);}catch{}}export function writeConfigFile(_0x40ec11,_0x291b46){const _0x1369ed=a77_0x470df1,_0x4adf35=dirname(_0x40ec11);!existsSync(_0x4adf35)&&mkdirSync(_0x4adf35,{'recursive':!![]});const _0x81f138=_0x40ec11+_0x1369ed(0xb1);try{writeFileSync(_0x81f138,JSON['stringify'](_0x291b46,null,0x2)+'\x0a',{'encoding':_0x1369ed(0xbd),'mode':0x180});try{renameSync(_0x81f138,_0x40ec11);}catch(_0x23da56){if(_0x23da56[_0x1369ed(0xc3)]==='EPERM'||_0x23da56[_0x1369ed(0xc3)]==='EXDEV'||_0x23da56['code']===_0x1369ed(0xbc)){writeFileSync(_0x40ec11,JSON['stringify'](_0x291b46,null,0x2)+'\x0a',{'encoding':_0x1369ed(0xbd)});try{unlinkSync(_0x81f138);}catch{}}else throw _0x23da56;}}catch(_0x37139a){try{unlinkSync(_0x81f138);}catch{}throw _0x37139a;}}export function isNonInteractiveMode(_0x1276a0){const _0x1cbb40=a77_0x470df1;return!!(_0x1276a0[_0x1cbb40(0xc2)]||_0x1276a0['ci']||productEnvNames('CI')[_0x1cbb40(0xb9)](_0x5eb9c2=>process.env[_0x5eb9c2]===_0x1cbb40(0xb3))||process.env.CI===_0x1cbb40(0xb3)||!process[_0x1cbb40(0xc7)][_0x1cbb40(0xab)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x553ca7=a77_0x470df1;if(!process[_0x553ca7(0xcb)][_0x553ca7(0xab)])return![];try{const _0xee2578=process['stdin']['isRaw'];return process['stdin']['setRawMode'](!![]),process[_0x553ca7(0xcb)][_0x553ca7(0xba)](_0xee2578??![]),!![];}catch{return![];}}export async function createContext(_0x22ba36){const _0x296c17=a77_0x470df1,_0xd762a7=readRawConfig(),_0x53fd28=buildConfig(_0xd762a7,_0x22ba36);await initGlobalEnvironment(_0x53fd28);const {getUserDomain:_0x58c46b,getApiDomain:_0x44e31f}=await import(_0x296c17(0xb4)),_0x49a2f1={'apiDomain':_0x44e31f(),'userDomain':_0x58c46b()},_0x4b1117=await buildAuth(_0x53fd28);logger[_0x296c17(0xc5)](process['cwd']());const _0x22d7cb=(CLI_BIN_NAME+'\x20'+process['argv'][_0x296c17(0xe0)](0x2)[_0x296c17(0xd8)]('\x20'))['trim']();logger[_0x296c17(0xaa)](_0x22d7cb);const _0x7aa8cf=isNonInteractiveMode(_0x22ba36);return{'config':_0x53fd28,'auth':_0x4b1117,'logger':logger,'env':_0x49a2f1,'nonInteractive':_0x7aa8cf};}export function buildConfigFromFlags(_0x2a355c){return buildConfig(readRawConfig(),_0x2a355c);}export function getLocalAppAliases(_0x6f5df8){const _0x432000=a77_0x470df1;return _0x6f5df8[_0x432000(0xe9)]&&typeof _0x6f5df8['apps']===_0x432000(0xac)?_0x6f5df8[_0x432000(0xe9)]:{};}export function resolveLocalAppAliasCode(_0x2e1c8d,_0x47b838){const _0x5a56b2=a77_0x470df1;if(!_0x47b838)return undefined;const _0x3401ae=getLocalAppAliases(_0x2e1c8d)[_0x47b838],_0x1223f0=_0x3401ae?.[_0x5a56b2(0xb7)];return typeof _0x1223f0===_0x5a56b2(0xdc)&&_0x1223f0[_0x5a56b2(0xd5)]()?_0x1223f0['trim']():undefined;}export function readAppCodeFromConfig(){const _0x14a73d=a77_0x470df1,_0x1b8b17=readRawConfig(),_0xab82e=_0x1b8b17['appcode']??_0x1b8b17[_0x14a73d(0xea)];if(typeof _0xab82e===_0x14a73d(0xdc)&&_0xab82e[_0x14a73d(0xd5)]())return _0xab82e[_0x14a73d(0xd5)]();const _0x3b033d=resolveLocalAppAliasCode(_0x1b8b17,typeof _0x1b8b17[_0x14a73d(0xb8)]===_0x14a73d(0xdc)?_0x1b8b17['defaultApp']:undefined);if(_0x3b033d)return _0x3b033d;const _0x3dd507=normalizeEnv(String(_0x1b8b17[_0x14a73d(0xa4)]||_0x14a73d(0xeb))),_0xa2a278=isDaily(_0x3dd507)?_0x14a73d(0xdb):isDev(_0x3dd507)?_0x14a73d(0xb5):_0x14a73d(0xeb),_0xc05ba8=resolveCachedAppCode(typeof _0x1b8b17[_0x14a73d(0xb8)]===_0x14a73d(0xdc)?_0x1b8b17[_0x14a73d(0xb8)]:undefined,_0xa2a278,typeof _0x1b8b17[_0x14a73d(0xd6)]==='string'?_0x1b8b17[_0x14a73d(0xd6)]:undefined);if(_0xc05ba8)return _0xc05ba8;const _0x4150ab=Object[_0x14a73d(0xd2)](getLocalAppAliases(_0x1b8b17))['find'](_0x288c73=>_0x288c73?.[_0x14a73d(0xb7)]);return typeof _0x4150ab?.['appcode']===_0x14a73d(0xdc)&&_0x4150ab[_0x14a73d(0xb7)][_0x14a73d(0xd5)]()?_0x4150ab[_0x14a73d(0xb7)][_0x14a73d(0xd5)]():undefined;}export function readScopedConfig(_0x1ad705){const _0x55f686=a77_0x470df1,_0x155f68=_0x1ad705[_0x55f686(0xe5)]?_0x55f686(0xe5):_0x55f686(0xad);return readConfigFile(resolveWriteConfigPath(_0x155f68));}export function writeScopedConfig(_0x175eb7,_0x12d149){const _0x3232eb=a77_0x470df1,_0x136207=_0x12d149[_0x3232eb(0xe5)]?_0x3232eb(0xe5):_0x3232eb(0xad);writeConfigFile(resolveWriteConfigPath(_0x136207),_0x175eb7);}export async function initGlobalEnvironment(_0x5e701a){const _0x36b136=a77_0x470df1,{initEnv:_0x3f0e55}=await import('./constant/env.js');_0x3f0e55(_0x5e701a['env']);const {initDomains:_0x2a760f}=await import(_0x36b136(0xb4));_0x2a760f({'apiDomain':_0x5e701a[_0x36b136(0xe1)][_0x36b136(0xb2)]||_0x5e701a['raw']['host']||undefined,'userDomain':_0x5e701a['raw'][_0x36b136(0xc6)]||undefined,'runtimeDomain':_0x5e701a[_0x36b136(0xe1)]['runtimeDomain']||undefined,'skillHubDomain':_0x5e701a[_0x36b136(0xe1)][_0x36b136(0xaf)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x12e2e3){const _0x3ab285=a77_0x470df1;if(!existsSync(_0x12e2e3))return{'status':_0x3ab285(0xb0)};try{const _0x47dcd9=readFileSync(_0x12e2e3,{'encoding':_0x3ab285(0xbd)});if(!_0x47dcd9?.[_0x3ab285(0xd5)]())return{'status':_0x3ab285(0xbb)};const _0x1ebc5d=JSON[_0x3ab285(0xd9)](_0x47dcd9);return{'status':'ok','data':_0x1ebc5d};}catch(_0x21fe1b){return{'status':_0x3ab285(0xdf),'message':_0x21fe1b instanceof Error?_0x21fe1b[_0x3ab285(0xcc)]:String(_0x21fe1b)};}}function a77_0x569d(){const _0x35f090=['slice','raw','54IGkMfK','VERBOSE','35588910KyVLJk','global','APP','209348YmJfqb','5118970hgIUny','apps','app','production','env','114kTAkCj','authRequired','newConfigFileName','read','local-alias','setRawCommand','isTTY','object','project','online','skillHubDomain','missing','.tmp','apiDomain','true','./constant/domain.js','development','611824AhBPVP','appcode','defaultApp','some','setRawMode','empty','EACCES','utf8','cache','riskLevel','3lRUJhN','write','nonInteractive','code','pageSize','setLogPath','userDomain','stdout','locale','explicit','APPCODE','stdin','message','projectConfig','inherit','PAGE_SIZE','globalConfig','cwd','values','top-level','5061692dQgxEP','trim','accessKey','ACCESS_KEY','join','parse','1506082ZGCmwi','daily','string','500661iDlDJV','configFileNames','error'];a77_0x569d=function(){return _0x35f090;};return a77_0x569d();}export function loadRawConfigLayers(_0x4d46f3){const _0x3db999=a77_0x470df1;let _0x2f4883={},_0x148bca={},_0x22399a,_0x2b61f9;try{_0x22399a=resolveConfigPath(homedir());if(_0x22399a){const _0x114dc0=readFileSync(_0x22399a,{'encoding':'utf8'});if(_0x114dc0)_0x2f4883=JSON['parse'](_0x114dc0);}}catch{}try{const _0x5beb92=_0x4d46f3||process[_0x3db999(0xd1)]();_0x2b61f9=resolveConfigPath(_0x5beb92);if(_0x2b61f9){const _0x40769e=readFileSync(_0x2b61f9,{'encoding':'utf8'});if(_0x40769e)_0x148bca=JSON[_0x3db999(0xd9)](_0x40769e);}}catch{}return{'globalPath':_0x22399a,'projectPath':_0x2b61f9,'globalConfig':_0x2f4883,'projectConfig':_0x148bca};}function mergeRawConfigLayers(_0x2f66bc){const _0x5da245=a77_0x470df1,{globalConfig:_0xf0c4f5,projectConfig:_0x2767a2}=_0x2f66bc;if(_0x2767a2[_0x5da245(0xce)]===![]){const _0xa7b7d9={..._0x2767a2};return delete _0xa7b7d9[_0x5da245(0xce)],_0xa7b7d9;}const _0x6ec487={..._0xf0c4f5,..._0x2767a2};if(_0x5da245(0xb8)in _0x2767a2)_0x6ec487[_0x5da245(0xb8)]=_0x2767a2[_0x5da245(0xb8)];else _0xf0c4f5[_0x5da245(0xb8)]&&(_0x6ec487[_0x5da245(0xb8)]=_0xf0c4f5['defaultApp']);return _0x6ec487;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x360faf){return mergeRawConfigLayers(loadRawConfigLayers(_0x360faf));}export function readRawConfigWithLayers(_0x4f40c2){const _0x5181c9=loadRawConfigLayers(_0x4f40c2);return{'config':mergeRawConfigLayers(_0x5181c9),'layers':_0x5181c9};}export function resolveDefaultAppSource(_0x5a8f53){const _0x8e2bdf=a77_0x470df1;if(_0x8e2bdf(0xb8)in _0x5a8f53[_0x8e2bdf(0xcd)])return _0x8e2bdf(0xad);if(_0x5a8f53['projectConfig'][_0x8e2bdf(0xce)]===![])return null;if(_0x5a8f53[_0x8e2bdf(0xd0)][_0x8e2bdf(0xb8)])return _0x8e2bdf(0xe5);return null;}function buildConfig(_0x5a0a43,_0x1da0e1){const _0x5ce8a4=a77_0x470df1,_0x3d68fb=_0x5a0a43['defaultApp']||undefined,_0x2e22cb=_0x1da0e1[_0x5ce8a4(0xea)]||env(_0x5ce8a4(0xe6))||undefined,_0x40544d=_0x2e22cb||_0x3d68fb||undefined,_0x4e6e6d=env(_0x5ce8a4(0xd7))||_0x5a0a43[_0x5ce8a4(0xd6)]||undefined,_0x3b8c45=_0x1da0e1[_0x5ce8a4(0xa4)]||env('ENV')||_0x5a0a43[_0x5ce8a4(0xa4)]||DEFAULT_CONFIG_VALUES[_0x5ce8a4(0xa4)],_0x5e83ec=normalizeEnv(String(_0x3b8c45)),_0x4b188d=isDaily(_0x5e83ec)?'daily':isDev(_0x5e83ec)?'development':_0x5ce8a4(0xeb),_0x24bb9d=typeof _0x1da0e1['appcode']===_0x5ce8a4(0xdc)?_0x1da0e1['appcode']:undefined,_0x4b9983=env(_0x5ce8a4(0xca)),_0x59aab=_0x2e22cb?undefined:_0x5a0a43[_0x5ce8a4(0xb7)]||_0x5a0a43[_0x5ce8a4(0xea)]||undefined,_0x312ac2=_0x2e22cb||(_0x59aab?undefined:_0x3d68fb),_0x344ec0=resolveLocalAppAliasCode(_0x5a0a43,_0x312ac2),_0x302834=resolveCachedAppCode(_0x312ac2,_0x4b188d,_0x4e6e6d),_0x530728=_0x24bb9d||_0x4b9983||_0x59aab||_0x344ec0||_0x302834||undefined,_0x37738d=_0x24bb9d?_0x5ce8a4(0xc9):_0x4b9983?_0x5ce8a4(0xa4):_0x59aab?_0x5ce8a4(0xd3):_0x344ec0?_0x5ce8a4(0xa9):_0x302834?_0x5ce8a4(0xbe):undefined,_0x266207=_0x5a0a43[_0x5ce8a4(0xc8)]||DEFAULT_CONFIG_VALUES[_0x5ce8a4(0xc8)],_0x5ececf=undefined,_0x27cd22=_0x1da0e1['format']||env('FORMAT')||_0x5a0a43['format'],_0x1a63e1=normalizeLegacyOutputFormat(_0x27cd22),_0x408443=env(_0x5ce8a4(0xcf))||_0x5a0a43[_0x5ce8a4(0xc4)],_0x300999=_0x408443?Number(_0x408443)||undefined:undefined,_0x316892=_0x5a0a43[_0x5ce8a4(0xbf)]||_0x5a0a43['maxRisk'],_0xe83d38=_0x316892===_0x5ce8a4(0xa8)||_0x316892===_0x5ce8a4(0xc1)||_0x316892==='high-risk-write'?_0x316892:DEFAULT_CONFIG_VALUES[_0x5ce8a4(0xbf)],_0x4fbc05=env(_0x5ce8a4(0xe3)),_0xd68af3=_0x4fbc05==='1'||_0x4fbc05===_0x5ce8a4(0xb3);return{'appCode':typeof _0x530728==='string'&&_0x530728[_0x5ce8a4(0xd5)]()?_0x530728[_0x5ce8a4(0xd5)]():undefined,'appCodeSource':_0x37738d,'env':_0x4b188d,'locale':_0x266207,'cookie':_0x5ececf,'accessKey':_0x4e6e6d,'format':_0x1a63e1,'pageSize':_0x300999,'riskLevel':_0xe83d38,'verbose':_0xd68af3,'defaultApp':_0x3d68fb,'currentApp':typeof _0x40544d===_0x5ce8a4(0xdc)?_0x40544d:undefined,'raw':_0x5a0a43};}function env(_0x5e0163){return productEnv(_0x5e0163);}async function buildAuth(_0x5a3827){const _0x320a9a=a77_0x470df1,_0x385f11='',_0x41410b=!!_0x5a3827[_0x320a9a(0xd6)];return{'cookie':_0x385f11,'isLoggedIn':_0x41410b,async 'getOrLogin'(){const _0x4a1151=_0x320a9a;if(_0x41410b)return _0x385f11;throw CliErrors[_0x4a1151(0xa6)]();}};}
|
|
1
|
+
const a77_0x3efaaa=a77_0x504a;(function(_0x2b5370,_0x3b462d){const _0x16f9fc=a77_0x504a,_0x411704=_0x2b5370();while(!![]){try{const _0x411bed=parseInt(_0x16f9fc(0x181))/0x1+-parseInt(_0x16f9fc(0x1a6))/0x2+parseInt(_0x16f9fc(0x1ab))/0x3*(parseInt(_0x16f9fc(0x189))/0x4)+parseInt(_0x16f9fc(0x1b7))/0x5*(-parseInt(_0x16f9fc(0x18c))/0x6)+-parseInt(_0x16f9fc(0x1a2))/0x7*(-parseInt(_0x16f9fc(0x1ad))/0x8)+-parseInt(_0x16f9fc(0x1b8))/0x9*(parseInt(_0x16f9fc(0x1ba))/0xa)+-parseInt(_0x16f9fc(0x18a))/0xb*(-parseInt(_0x16f9fc(0x191))/0xc);if(_0x411bed===_0x3b462d)break;else _0x411704['push'](_0x411704['shift']());}catch(_0x4aae93){_0x411704['push'](_0x411704['shift']());}}}(a77_0x5bde,0x805c7));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a77_0x3efaaa(0x1bd)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x3efaaa(0x1a3)];function a77_0x5bde(){const _0x40deb5=['globalConfig','local-alias','string','cwd','missing','ACCESS_KEY','4DITKwH','319gEpyGv','global','132OaNbPS','message','code','project','setRawCommand','208188jcyouY','defaultApp','utf8','trim','find','env','FORMAT','EPERM','daily','APP','parse','stdin','accessKey','apiDomain','.tmp','raw','development','14WhVjvh','newConfigFileName','./constant/domain.js','error','335638REKOQD','riskLevel','argv','runtimeDomain','isRaw','1878117JLpGNa','inherit','1568872tnCrbU','EXDEV','locale','slice','values','appcode','explicit','stringify','isTTY','skillHubDomain','236245ryfXmZ','117mtPELp','app','541870DUBAtl','VERBOSE','apps','configFileNames','format','high-risk-write','true','cache','object','nonInteractive','join','setRawMode','PAGE_SIZE','916117YColyk','production'];a77_0x5bde=function(){return _0x40deb5;};return a77_0x5bde();}function resolveConfigPath(_0x32bc82){for(const _0x3dad8b of CONFIG_NAMES){const _0x33f391=resolve(_0x32bc82,_0x3dad8b);if(existsSync(_0x33f391))return _0x33f391;}return undefined;}export function resolveWriteConfigPath(_0x184a7a){const _0x57665a=a77_0x3efaaa,_0x3f268d=_0x184a7a===_0x57665a(0x18f)?process['cwd']():homedir(),_0x8854fa=resolveConfigPath(_0x3f268d);return _0x8854fa??resolve(_0x3f268d,NEW_CONFIG_NAME);}export function readConfigFile(_0x1d9e79){const _0x1044f1=a77_0x3efaaa;try{if(existsSync(_0x1d9e79)){const _0x488e56=readFileSync(_0x1d9e79,{'encoding':_0x1044f1(0x193)});if(_0x488e56){const _0x2d489a=JSON['parse'](_0x488e56);return migrateOnlineEnv(_0x1d9e79,_0x2d489a),_0x2d489a;}}}catch{}return{};}function migrateOnlineEnv(_0x35e25c,_0x5dce64){const _0x4e1988=a77_0x3efaaa;let _0x27d456=![];_0x5dce64[_0x4e1988(0x196)]==='online'&&(_0x5dce64[_0x4e1988(0x196)]='production',_0x27d456=!![]);if(_0x5dce64['apps']&&typeof _0x5dce64['apps']===_0x4e1988(0x1c2))for(const _0x1316be of Object[_0x4e1988(0x1b1)](_0x5dce64[_0x4e1988(0x1bc)])){_0x1316be&&_0x1316be[_0x4e1988(0x196)]==='online'&&(_0x1316be[_0x4e1988(0x196)]=_0x4e1988(0x182),_0x27d456=!![]);}if(_0x27d456)try{writeConfigFile(_0x35e25c,_0x5dce64);}catch{}}export function writeConfigFile(_0x3009da,_0x2c2d63){const _0x4c5cd7=a77_0x3efaaa,_0x1a20b6=dirname(_0x3009da);!existsSync(_0x1a20b6)&&mkdirSync(_0x1a20b6,{'recursive':!![]});const _0x494414=_0x3009da+_0x4c5cd7(0x19f);try{writeFileSync(_0x494414,JSON[_0x4c5cd7(0x1b4)](_0x2c2d63,null,0x2)+'\x0a',{'encoding':_0x4c5cd7(0x193),'mode':0x180});try{renameSync(_0x494414,_0x3009da);}catch(_0x5cd8a5){if(_0x5cd8a5[_0x4c5cd7(0x18e)]===_0x4c5cd7(0x198)||_0x5cd8a5[_0x4c5cd7(0x18e)]===_0x4c5cd7(0x1ae)||_0x5cd8a5[_0x4c5cd7(0x18e)]==='EACCES'){writeFileSync(_0x3009da,JSON[_0x4c5cd7(0x1b4)](_0x2c2d63,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x494414);}catch{}}else throw _0x5cd8a5;}}catch(_0x31f7d3){try{unlinkSync(_0x494414);}catch{}throw _0x31f7d3;}}export function isNonInteractiveMode(_0xd2b7ab){const _0x3c754f=a77_0x3efaaa;return!!(_0xd2b7ab[_0x3c754f(0x17d)]||_0xd2b7ab['ci']||productEnvNames('CI')['some'](_0xe42be4=>process.env[_0xe42be4]===_0x3c754f(0x1c0))||process.env.CI===_0x3c754f(0x1c0)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2f5cf9=a77_0x3efaaa;if(!process['stdin'][_0x2f5cf9(0x1b5)])return![];try{const _0x44a575=process['stdin'][_0x2f5cf9(0x1aa)];return process[_0x2f5cf9(0x19c)][_0x2f5cf9(0x17f)](!![]),process[_0x2f5cf9(0x19c)][_0x2f5cf9(0x17f)](_0x44a575??![]),!![];}catch{return![];}}export async function createContext(_0x27b0c9){const _0x4deba9=a77_0x3efaaa,_0x1ce201=readRawConfig(),_0x110c9c=buildConfig(_0x1ce201,_0x27b0c9);await initGlobalEnvironment(_0x110c9c);const {getUserDomain:_0x40069c,getApiDomain:_0x1fb19f}=await import(_0x4deba9(0x1a4)),_0xa91aa8={'apiDomain':_0x1fb19f(),'userDomain':_0x40069c()},_0x1cfd15=await buildAuth(_0x110c9c);logger['setLogPath'](process['cwd']());const _0x31cc2e=(CLI_BIN_NAME+'\x20'+process[_0x4deba9(0x1a8)][_0x4deba9(0x1b0)](0x2)[_0x4deba9(0x17e)]('\x20'))[_0x4deba9(0x194)]();logger[_0x4deba9(0x190)](_0x31cc2e);const _0x1e9179=isNonInteractiveMode(_0x27b0c9);return{'config':_0x110c9c,'auth':_0x1cfd15,'logger':logger,'env':_0xa91aa8,'nonInteractive':_0x1e9179};}export function buildConfigFromFlags(_0x59f751){return buildConfig(readRawConfig(),_0x59f751);}export function getLocalAppAliases(_0x4d41b3){const _0x511cf9=a77_0x3efaaa;return _0x4d41b3[_0x511cf9(0x1bc)]&&typeof _0x4d41b3[_0x511cf9(0x1bc)]===_0x511cf9(0x1c2)?_0x4d41b3['apps']:{};}export function resolveLocalAppAliasCode(_0x1fd0be,_0x23dd09){const _0x13500b=a77_0x3efaaa;if(!_0x23dd09)return undefined;const _0x48bcdb=getLocalAppAliases(_0x1fd0be)[_0x23dd09],_0x1a7b21=_0x48bcdb?.[_0x13500b(0x1b2)];return typeof _0x1a7b21==='string'&&_0x1a7b21[_0x13500b(0x194)]()?_0x1a7b21['trim']():undefined;}export function readAppCodeFromConfig(){const _0x5be503=a77_0x3efaaa,_0x17bd17=readRawConfig(),_0x8f45d9=_0x17bd17[_0x5be503(0x1b2)]??_0x17bd17[_0x5be503(0x1b9)];if(typeof _0x8f45d9==='string'&&_0x8f45d9[_0x5be503(0x194)]())return _0x8f45d9[_0x5be503(0x194)]();const _0x366c9e=resolveLocalAppAliasCode(_0x17bd17,typeof _0x17bd17[_0x5be503(0x192)]==='string'?_0x17bd17[_0x5be503(0x192)]:undefined);if(_0x366c9e)return _0x366c9e;const _0xf559b1=normalizeEnv(String(_0x17bd17[_0x5be503(0x196)]||_0x5be503(0x182))),_0x1e9d68=isDaily(_0xf559b1)?_0x5be503(0x199):isDev(_0xf559b1)?_0x5be503(0x1a1):_0x5be503(0x182),_0x1b1e25=resolveCachedAppCode(typeof _0x17bd17[_0x5be503(0x192)]===_0x5be503(0x185)?_0x17bd17[_0x5be503(0x192)]:undefined,_0x1e9d68,typeof _0x17bd17['accessKey']==='string'?_0x17bd17['accessKey']:undefined);if(_0x1b1e25)return _0x1b1e25;const _0x285cf7=Object[_0x5be503(0x1b1)](getLocalAppAliases(_0x17bd17))[_0x5be503(0x195)](_0x1cae0b=>_0x1cae0b?.[_0x5be503(0x1b2)]);return typeof _0x285cf7?.[_0x5be503(0x1b2)]===_0x5be503(0x185)&&_0x285cf7[_0x5be503(0x1b2)][_0x5be503(0x194)]()?_0x285cf7[_0x5be503(0x1b2)]['trim']():undefined;}function a77_0x504a(_0x26866e,_0x2dbebe){_0x26866e=_0x26866e-0x17d;const _0x5bdee2=a77_0x5bde();let _0x504a7f=_0x5bdee2[_0x26866e];return _0x504a7f;}export function readScopedConfig(_0x539132){const _0x1198e0=a77_0x3efaaa,_0x6b1f22=_0x539132['global']?_0x1198e0(0x18b):'project';return readConfigFile(resolveWriteConfigPath(_0x6b1f22));}export function writeScopedConfig(_0x84d135,_0x21911b){const _0x556050=a77_0x3efaaa,_0x9ef236=_0x21911b[_0x556050(0x18b)]?_0x556050(0x18b):_0x556050(0x18f);writeConfigFile(resolveWriteConfigPath(_0x9ef236),_0x84d135);}export async function initGlobalEnvironment(_0x376173){const _0x59e80c=a77_0x3efaaa,{initEnv:_0x3dcceb}=await import('./constant/env.js');_0x3dcceb(_0x376173[_0x59e80c(0x196)]);const {initDomains:_0x3c848c}=await import(_0x59e80c(0x1a4));_0x3c848c({'apiDomain':_0x376173[_0x59e80c(0x1a0)][_0x59e80c(0x19e)]||_0x376173['raw']['host']||undefined,'userDomain':_0x376173[_0x59e80c(0x1a0)]['userDomain']||undefined,'runtimeDomain':_0x376173[_0x59e80c(0x1a0)][_0x59e80c(0x1a9)]||undefined,'skillHubDomain':_0x376173[_0x59e80c(0x1a0)][_0x59e80c(0x1b6)]||undefined});}export function getProjectConfigPath(){const _0x1edfba=a77_0x3efaaa;return resolveConfigPath(process[_0x1edfba(0x186)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x187c10){const _0x3dc545=a77_0x3efaaa;if(!existsSync(_0x187c10))return{'status':_0x3dc545(0x187)};try{const _0x4f4fe5=readFileSync(_0x187c10,{'encoding':_0x3dc545(0x193)});if(!_0x4f4fe5?.[_0x3dc545(0x194)]())return{'status':'empty'};const _0x17a87c=JSON[_0x3dc545(0x19b)](_0x4f4fe5);return{'status':'ok','data':_0x17a87c};}catch(_0x56a987){return{'status':_0x3dc545(0x1a5),'message':_0x56a987 instanceof Error?_0x56a987[_0x3dc545(0x18d)]:String(_0x56a987)};}}export function loadRawConfigLayers(_0x2ac0dd){const _0x2373f3=a77_0x3efaaa;let _0x15e2df={},_0x34667e={},_0x3d84f4,_0x4b6de5;try{_0x3d84f4=resolveConfigPath(homedir());if(_0x3d84f4){const _0x2fb4ab=readFileSync(_0x3d84f4,{'encoding':_0x2373f3(0x193)});if(_0x2fb4ab)_0x15e2df=JSON['parse'](_0x2fb4ab);}}catch{}try{const _0x229176=_0x2ac0dd||process[_0x2373f3(0x186)]();_0x4b6de5=resolveConfigPath(_0x229176);if(_0x4b6de5){const _0x29501c=readFileSync(_0x4b6de5,{'encoding':_0x2373f3(0x193)});if(_0x29501c)_0x34667e=JSON[_0x2373f3(0x19b)](_0x29501c);}}catch{}return{'globalPath':_0x3d84f4,'projectPath':_0x4b6de5,'globalConfig':_0x15e2df,'projectConfig':_0x34667e};}function mergeRawConfigLayers(_0x3bf536){const _0x51aa46=a77_0x3efaaa,{globalConfig:_0x215548,projectConfig:_0x7444b3}=_0x3bf536;if(_0x7444b3['inherit']===![]){const _0x44efcd={..._0x7444b3};return delete _0x44efcd[_0x51aa46(0x1ac)],_0x44efcd;}const _0x43c40f={..._0x215548,..._0x7444b3};if(_0x51aa46(0x192)in _0x7444b3)_0x43c40f[_0x51aa46(0x192)]=_0x7444b3[_0x51aa46(0x192)];else _0x215548[_0x51aa46(0x192)]&&(_0x43c40f[_0x51aa46(0x192)]=_0x215548[_0x51aa46(0x192)]);return _0x43c40f;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x2b9ec7){return mergeRawConfigLayers(loadRawConfigLayers(_0x2b9ec7));}export function readRawConfigWithLayers(_0x236aa0){const _0x43fb15=loadRawConfigLayers(_0x236aa0);return{'config':mergeRawConfigLayers(_0x43fb15),'layers':_0x43fb15};}export function resolveDefaultAppSource(_0x2c071b){const _0x33c0bf=a77_0x3efaaa;if(_0x33c0bf(0x192)in _0x2c071b['projectConfig'])return _0x33c0bf(0x18f);if(_0x2c071b['projectConfig'][_0x33c0bf(0x1ac)]===![])return null;if(_0x2c071b[_0x33c0bf(0x183)][_0x33c0bf(0x192)])return'global';return null;}function buildConfig(_0x30582f,_0x3a8bf6){const _0x8bfbad=a77_0x3efaaa,_0x46530f=_0x30582f[_0x8bfbad(0x192)]||undefined,_0x663be0=_0x3a8bf6[_0x8bfbad(0x1b9)]||env(_0x8bfbad(0x19a))||undefined,_0x4e2ab2=_0x663be0||_0x46530f||undefined,_0xf60137=env(_0x8bfbad(0x188))||_0x30582f[_0x8bfbad(0x19d)]||undefined,_0x51d32a=_0x3a8bf6[_0x8bfbad(0x196)]||env('ENV')||_0x30582f[_0x8bfbad(0x196)]||DEFAULT_CONFIG_VALUES[_0x8bfbad(0x196)],_0x25635e=normalizeEnv(String(_0x51d32a)),_0x56b659=isDaily(_0x25635e)?'daily':isDev(_0x25635e)?_0x8bfbad(0x1a1):_0x8bfbad(0x182),_0x5a71fc=typeof _0x3a8bf6['appcode']===_0x8bfbad(0x185)?_0x3a8bf6[_0x8bfbad(0x1b2)]:undefined,_0x28c076=env('APPCODE'),_0x2d4117=_0x663be0?undefined:_0x30582f[_0x8bfbad(0x1b2)]||_0x30582f[_0x8bfbad(0x1b9)]||undefined,_0x308338=_0x663be0||(_0x2d4117?undefined:_0x46530f),_0x4d99da=resolveLocalAppAliasCode(_0x30582f,_0x308338),_0x1693b7=resolveCachedAppCode(_0x308338,_0x56b659,_0xf60137),_0x26246e=_0x5a71fc||_0x28c076||_0x2d4117||_0x4d99da||_0x1693b7||undefined,_0x199665=_0x5a71fc?_0x8bfbad(0x1b3):_0x28c076?'env':_0x2d4117?'top-level':_0x4d99da?_0x8bfbad(0x184):_0x1693b7?_0x8bfbad(0x1c1):undefined,_0xb5a31c=_0x30582f[_0x8bfbad(0x1af)]||DEFAULT_CONFIG_VALUES[_0x8bfbad(0x1af)],_0x1d8416=undefined,_0x21ed56=_0x3a8bf6[_0x8bfbad(0x1be)]||env(_0x8bfbad(0x197))||_0x30582f[_0x8bfbad(0x1be)],_0x23a986=normalizeLegacyOutputFormat(_0x21ed56),_0x275266=env(_0x8bfbad(0x180))||_0x30582f['pageSize'],_0x48d78e=_0x275266?Number(_0x275266)||undefined:undefined,_0x25cb7a=_0x30582f[_0x8bfbad(0x1a7)]||_0x30582f['maxRisk'],_0x196f6e=_0x25cb7a==='read'||_0x25cb7a==='write'||_0x25cb7a===_0x8bfbad(0x1bf)?_0x25cb7a:DEFAULT_CONFIG_VALUES[_0x8bfbad(0x1a7)],_0x147c10=env(_0x8bfbad(0x1bb)),_0x286f3e=_0x147c10==='1'||_0x147c10==='true';return{'appCode':typeof _0x26246e===_0x8bfbad(0x185)&&_0x26246e[_0x8bfbad(0x194)]()?_0x26246e[_0x8bfbad(0x194)]():undefined,'appCodeSource':_0x199665,'env':_0x56b659,'locale':_0xb5a31c,'cookie':_0x1d8416,'accessKey':_0xf60137,'format':_0x23a986,'pageSize':_0x48d78e,'riskLevel':_0x196f6e,'verbose':_0x286f3e,'defaultApp':_0x46530f,'currentApp':typeof _0x4e2ab2===_0x8bfbad(0x185)?_0x4e2ab2:undefined,'raw':_0x30582f};}function env(_0x26c23b){return productEnv(_0x26c23b);}async function buildAuth(_0x2044d2){const _0x5ce917=a77_0x3efaaa,_0x40a870='',_0x42cc69=!!_0x2044d2[_0x5ce917(0x19d)];return{'cookie':_0x40a870,'isLoggedIn':_0x42cc69,async 'getOrLogin'(){if(_0x42cc69)return _0x40a870;throw CliErrors['authRequired']();}};}
|