@lovrabet/lovrabet-cli 2.1.22-beta.6 → 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.d.ts +4 -0
- 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.d.ts +9 -0
- package/lib/runtime/confirmation.js +1 -0
- 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
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
function
|
|
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
|
-
function
|
|
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
|
-
|
|
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_0x5101fc=a77_0x11f7;(function(_0x205b57,_0x54490d){const _0x15c343=a77_0x11f7,_0x49edc2=_0x205b57();while(!![]){try{const _0x1df5b6=parseInt(_0x15c343(0x17c))/0x1*(parseInt(_0x15c343(0x13f))/0x2)+parseInt(_0x15c343(0x17d))/0x3*(-parseInt(_0x15c343(0x143))/0x4)+parseInt(_0x15c343(0x163))/0x5+parseInt(_0x15c343(0x149))/0x6+-parseInt(_0x15c343(0x13b))/0x7*(parseInt(_0x15c343(0x160))/0x8)+-parseInt(_0x15c343(0x171))/0x9+-parseInt(_0x15c343(0x17b))/0xa;if(_0x1df5b6===_0x54490d)break;else _0x49edc2['push'](_0x49edc2['shift']());}catch(_0x2a9def){_0x49edc2['push'](_0x49edc2['shift']());}}}(a77_0xd02d,0x4229d));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['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x5101fc(0x17a)];function resolveConfigPath(_0x4a88bb){for(const _0x117098 of CONFIG_NAMES){const _0x7cda3=resolve(_0x4a88bb,_0x117098);if(existsSync(_0x7cda3))return _0x7cda3;}return undefined;}export function resolveWriteConfigPath(_0x5ef3bb){const _0x415525=a77_0x5101fc,_0x4e954a=_0x5ef3bb==='project'?process[_0x415525(0x16d)]():homedir(),_0x4663f4=resolveConfigPath(_0x4e954a);return _0x4663f4??resolve(_0x4e954a,NEW_CONFIG_NAME);}export function readConfigFile(_0x48b05e){const _0x56b3a3=a77_0x5101fc;try{if(existsSync(_0x48b05e)){const _0x4ea0cb=readFileSync(_0x48b05e,{'encoding':'utf8'});if(_0x4ea0cb){const _0x12c0fb=JSON[_0x56b3a3(0x140)](_0x4ea0cb);return migrateOnlineEnv(_0x48b05e,_0x12c0fb),_0x12c0fb;}}}catch{}return{};}function migrateOnlineEnv(_0x4d29eb,_0x543a57){const _0x41315f=a77_0x5101fc;let _0x1444af=![];_0x543a57[_0x41315f(0x147)]===_0x41315f(0x185)&&(_0x543a57[_0x41315f(0x147)]=_0x41315f(0x152),_0x1444af=!![]);if(_0x543a57[_0x41315f(0x148)]&&typeof _0x543a57[_0x41315f(0x148)]===_0x41315f(0x166))for(const _0x45ef7a of Object[_0x41315f(0x139)](_0x543a57[_0x41315f(0x148)])){_0x45ef7a&&_0x45ef7a[_0x41315f(0x147)]===_0x41315f(0x185)&&(_0x45ef7a[_0x41315f(0x147)]='production',_0x1444af=!![]);}if(_0x1444af)try{writeConfigFile(_0x4d29eb,_0x543a57);}catch{}}export function writeConfigFile(_0x3fe87f,_0x1a7d92){const _0x2e7f8e=a77_0x5101fc,_0x392502=dirname(_0x3fe87f);!existsSync(_0x392502)&&mkdirSync(_0x392502,{'recursive':!![]});const _0xa0dc95=_0x3fe87f+_0x2e7f8e(0x151);try{writeFileSync(_0xa0dc95,JSON['stringify'](_0x1a7d92,null,0x2)+'\x0a',{'encoding':_0x2e7f8e(0x178),'mode':0x180});try{renameSync(_0xa0dc95,_0x3fe87f);}catch(_0x11060f){if(_0x11060f[_0x2e7f8e(0x172)]==='EPERM'||_0x11060f['code']===_0x2e7f8e(0x15c)||_0x11060f[_0x2e7f8e(0x172)]===_0x2e7f8e(0x179)){writeFileSync(_0x3fe87f,JSON[_0x2e7f8e(0x168)](_0x1a7d92,null,0x2)+'\x0a',{'encoding':_0x2e7f8e(0x178)});try{unlinkSync(_0xa0dc95);}catch{}}else throw _0x11060f;}}catch(_0x5e34d6){try{unlinkSync(_0xa0dc95);}catch{}throw _0x5e34d6;}}export function isNonInteractiveMode(_0x21f54b){const _0x39b0c4=a77_0x5101fc;return!!(_0x21f54b[_0x39b0c4(0x159)]||_0x21f54b['ci']||productEnvNames('CI')[_0x39b0c4(0x145)](_0x5bb313=>process.env[_0x5bb313]===_0x39b0c4(0x16b))||process.env.CI===_0x39b0c4(0x16b)||!process['stdout'][_0x39b0c4(0x13d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4c4f43=a77_0x5101fc;if(!process[_0x4c4f43(0x169)][_0x4c4f43(0x13d)])return![];try{const _0x5159ad=process[_0x4c4f43(0x169)][_0x4c4f43(0x15b)];return process['stdin'][_0x4c4f43(0x158)](!![]),process[_0x4c4f43(0x169)][_0x4c4f43(0x158)](_0x5159ad??![]),!![];}catch{return![];}}export async function createContext(_0x29c70d){const _0x178fe5=a77_0x5101fc,_0x3dfc2=readRawConfig(),_0x2d1435=buildConfig(_0x3dfc2,_0x29c70d);await initGlobalEnvironment(_0x2d1435);const {getUserDomain:_0x142190,getApiDomain:_0x108acb}=await import(_0x178fe5(0x173)),_0x1440fc={'apiDomain':_0x108acb(),'userDomain':_0x142190()},_0x27cb92=await buildAuth(_0x2d1435);logger[_0x178fe5(0x183)](process[_0x178fe5(0x16d)]());const _0x3d4fce=(CLI_BIN_NAME+'\x20'+process[_0x178fe5(0x17e)]['slice'](0x2)['join']('\x20'))[_0x178fe5(0x150)]();logger[_0x178fe5(0x162)](_0x3d4fce);const _0x39c100=isNonInteractiveMode(_0x29c70d);return{'config':_0x2d1435,'auth':_0x27cb92,'logger':logger,'env':_0x1440fc,'nonInteractive':_0x39c100};}export function buildConfigFromFlags(_0x1ee9b0){return buildConfig(readRawConfig(),_0x1ee9b0);}export function getLocalAppAliases(_0x24afe9){const _0xcaa738=a77_0x5101fc;return _0x24afe9['apps']&&typeof _0x24afe9[_0xcaa738(0x148)]==='object'?_0x24afe9[_0xcaa738(0x148)]:{};}export function resolveLocalAppAliasCode(_0xb07036,_0x5d2e5d){const _0x3fe027=a77_0x5101fc;if(!_0x5d2e5d)return undefined;const _0x357f1c=getLocalAppAliases(_0xb07036)[_0x5d2e5d],_0x568c2e=_0x357f1c?.['appcode'];return typeof _0x568c2e===_0x3fe027(0x164)&&_0x568c2e[_0x3fe027(0x150)]()?_0x568c2e[_0x3fe027(0x150)]():undefined;}export function readAppCodeFromConfig(){const _0x159ac8=a77_0x5101fc,_0x3ac615=readRawConfig(),_0x589e12=_0x3ac615['appcode']??_0x3ac615[_0x159ac8(0x14d)];if(typeof _0x589e12===_0x159ac8(0x164)&&_0x589e12[_0x159ac8(0x150)]())return _0x589e12['trim']();const _0x573be9=resolveLocalAppAliasCode(_0x3ac615,typeof _0x3ac615[_0x159ac8(0x156)]==='string'?_0x3ac615[_0x159ac8(0x156)]:undefined);if(_0x573be9)return _0x573be9;const _0x38daf7=normalizeEnv(String(_0x3ac615['env']||'production')),_0x49a82f=isDaily(_0x38daf7)?_0x159ac8(0x14e):isDev(_0x38daf7)?_0x159ac8(0x13c):'production',_0x15aab5=resolveCachedAppCode(typeof _0x3ac615[_0x159ac8(0x156)]==='string'?_0x3ac615['defaultApp']:undefined,_0x49a82f,typeof _0x3ac615[_0x159ac8(0x176)]===_0x159ac8(0x164)?_0x3ac615['accessKey']:undefined);if(_0x15aab5)return _0x15aab5;const _0x514ac2=Object['values'](getLocalAppAliases(_0x3ac615))[_0x159ac8(0x180)](_0x2ca287=>_0x2ca287?.[_0x159ac8(0x170)]);return typeof _0x514ac2?.[_0x159ac8(0x170)]===_0x159ac8(0x164)&&_0x514ac2[_0x159ac8(0x170)][_0x159ac8(0x150)]()?_0x514ac2[_0x159ac8(0x170)]['trim']():undefined;}export function readScopedConfig(_0x415bac){const _0x1a131f=a77_0x5101fc,_0x56df6a=_0x415bac['global']?'global':_0x1a131f(0x16a);return readConfigFile(resolveWriteConfigPath(_0x56df6a));}export function writeScopedConfig(_0x2391ce,_0x3004e6){const _0x52dd1c=a77_0x5101fc,_0x3c9cd3=_0x3004e6[_0x52dd1c(0x144)]?_0x52dd1c(0x144):'project';writeConfigFile(resolveWriteConfigPath(_0x3c9cd3),_0x2391ce);}export async function initGlobalEnvironment(_0x54b2da){const _0x3e1796=a77_0x5101fc,{initEnv:_0x922493}=await import(_0x3e1796(0x13a));_0x922493(_0x54b2da['env']);const {initDomains:_0x12d2a7}=await import(_0x3e1796(0x173));_0x12d2a7({'apiDomain':_0x54b2da[_0x3e1796(0x174)][_0x3e1796(0x14f)]||_0x54b2da[_0x3e1796(0x174)][_0x3e1796(0x142)]||undefined,'userDomain':_0x54b2da[_0x3e1796(0x174)][_0x3e1796(0x141)]||undefined,'runtimeDomain':_0x54b2da[_0x3e1796(0x174)][_0x3e1796(0x14a)]||undefined,'skillHubDomain':_0x54b2da[_0x3e1796(0x174)][_0x3e1796(0x161)]||undefined});}export function getProjectConfigPath(){const _0x1ae436=a77_0x5101fc;return resolveConfigPath(process[_0x1ae436(0x16d)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1885eb){const _0x1aaa1d=a77_0x5101fc;if(!existsSync(_0x1885eb))return{'status':_0x1aaa1d(0x15e)};try{const _0x46732a=readFileSync(_0x1885eb,{'encoding':_0x1aaa1d(0x178)});if(!_0x46732a?.['trim']())return{'status':'empty'};const _0x56498c=JSON[_0x1aaa1d(0x140)](_0x46732a);return{'status':'ok','data':_0x56498c};}catch(_0x3b1f49){return{'status':_0x1aaa1d(0x157),'message':_0x3b1f49 instanceof Error?_0x3b1f49[_0x1aaa1d(0x153)]:String(_0x3b1f49)};}}export function loadRawConfigLayers(_0x21ea80){const _0x405757=a77_0x5101fc;let _0x5b43d1={},_0x3171af={},_0x5b5fc8,_0x5f1f49;try{_0x5b5fc8=resolveConfigPath(homedir());if(_0x5b5fc8){const _0x49df25=readFileSync(_0x5b5fc8,{'encoding':'utf8'});if(_0x49df25)_0x5b43d1=JSON[_0x405757(0x140)](_0x49df25);}}catch{}try{const _0x4433ff=_0x21ea80||process[_0x405757(0x16d)]();_0x5f1f49=resolveConfigPath(_0x4433ff);if(_0x5f1f49){const _0x1ea41b=readFileSync(_0x5f1f49,{'encoding':_0x405757(0x178)});if(_0x1ea41b)_0x3171af=JSON[_0x405757(0x140)](_0x1ea41b);}}catch{}return{'globalPath':_0x5b5fc8,'projectPath':_0x5f1f49,'globalConfig':_0x5b43d1,'projectConfig':_0x3171af};}function a77_0x11f7(_0x535472,_0x3aaa5e){_0x535472=_0x535472-0x139;const _0xd02d76=a77_0xd02d();let _0x11f7ba=_0xd02d76[_0x535472];return _0x11f7ba;}function mergeRawConfigLayers(_0x437ab6){const _0x458d29=a77_0x5101fc,{globalConfig:_0x1d2781,projectConfig:_0x1255de}=_0x437ab6;if(_0x1255de[_0x458d29(0x181)]===![]){const _0x4ede0a={..._0x1255de};return delete _0x4ede0a['inherit'],_0x4ede0a;}const _0x2a5b4e={..._0x1d2781,..._0x1255de};if('defaultApp'in _0x1255de)_0x2a5b4e[_0x458d29(0x156)]=_0x1255de[_0x458d29(0x156)];else _0x1d2781['defaultApp']&&(_0x2a5b4e['defaultApp']=_0x1d2781[_0x458d29(0x156)]);return _0x2a5b4e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x2b4aaf){return mergeRawConfigLayers(loadRawConfigLayers(_0x2b4aaf));}export function readRawConfigWithLayers(_0x520d1e){const _0x4038cb=loadRawConfigLayers(_0x520d1e);return{'config':mergeRawConfigLayers(_0x4038cb),'layers':_0x4038cb};}export function resolveDefaultAppSource(_0x5e7edd){const _0x4b45c0=a77_0x5101fc;if(_0x4b45c0(0x156)in _0x5e7edd[_0x4b45c0(0x177)])return _0x4b45c0(0x16a);if(_0x5e7edd[_0x4b45c0(0x177)][_0x4b45c0(0x181)]===![])return null;if(_0x5e7edd[_0x4b45c0(0x14b)][_0x4b45c0(0x156)])return _0x4b45c0(0x144);return null;}function buildConfig(_0xdb39fa,_0x4b326c){const _0x56151d=a77_0x5101fc,_0x279b0e=_0xdb39fa[_0x56151d(0x156)]||undefined,_0x2fc6cb=_0x4b326c[_0x56151d(0x14d)]||env(_0x56151d(0x14c))||undefined,_0x58ff43=_0x2fc6cb||_0x279b0e||undefined,_0x5cbe4a=env(_0x56151d(0x16c))||_0xdb39fa[_0x56151d(0x176)]||undefined,_0x14c783=_0x4b326c[_0x56151d(0x147)]||env(_0x56151d(0x13e))||_0xdb39fa['env']||DEFAULT_CONFIG_VALUES[_0x56151d(0x147)],_0x4ab6d8=normalizeEnv(String(_0x14c783)),_0x5c4234=isDaily(_0x4ab6d8)?_0x56151d(0x14e):isDev(_0x4ab6d8)?_0x56151d(0x13c):_0x56151d(0x152),_0x2cb9c2=typeof _0x4b326c[_0x56151d(0x170)]==='string'?_0x4b326c['appcode']:undefined,_0x4fdb35=env(_0x56151d(0x182)),_0x2597b0=_0x2fc6cb?undefined:_0xdb39fa['appcode']||_0xdb39fa[_0x56151d(0x14d)]||undefined,_0x6f4526=_0x2fc6cb||(_0x2597b0?undefined:_0x279b0e),_0x194221=resolveLocalAppAliasCode(_0xdb39fa,_0x6f4526),_0xe0d2fc=resolveCachedAppCode(_0x6f4526,_0x5c4234,_0x5cbe4a),_0x37f224=_0x2cb9c2||_0x4fdb35||_0x2597b0||_0x194221||_0xe0d2fc||undefined,_0x52bb69=_0x2cb9c2?_0x56151d(0x175):_0x4fdb35?_0x56151d(0x147):_0x2597b0?_0x56151d(0x15f):_0x194221?'local-alias':_0xe0d2fc?_0x56151d(0x165):undefined,_0x12ccc7=_0xdb39fa[_0x56151d(0x184)]||DEFAULT_CONFIG_VALUES[_0x56151d(0x184)],_0x290b2d=undefined,_0x285fb2=_0x4b326c['format']||env(_0x56151d(0x15a))||_0xdb39fa[_0x56151d(0x146)],_0x2259e7=normalizeLegacyOutputFormat(_0x285fb2),_0x3dcaf4=env(_0x56151d(0x17f))||_0xdb39fa['pageSize'],_0x1a8ba6=_0x3dcaf4?Number(_0x3dcaf4)||undefined:undefined,_0x448962=_0xdb39fa['riskLevel']||_0xdb39fa[_0x56151d(0x16e)],_0x291313=_0x448962==='read'||_0x448962===_0x56151d(0x155)||_0x448962===_0x56151d(0x16f)?_0x448962:DEFAULT_CONFIG_VALUES[_0x56151d(0x15d)],_0x810ee7=env(_0x56151d(0x154)),_0x5f0bb0=_0x810ee7==='1'||_0x810ee7===_0x56151d(0x16b);return{'appCode':typeof _0x37f224===_0x56151d(0x164)&&_0x37f224[_0x56151d(0x150)]()?_0x37f224[_0x56151d(0x150)]():undefined,'appCodeSource':_0x52bb69,'env':_0x5c4234,'locale':_0x12ccc7,'cookie':_0x290b2d,'accessKey':_0x5cbe4a,'format':_0x2259e7,'pageSize':_0x1a8ba6,'riskLevel':_0x291313,'verbose':_0x5f0bb0,'defaultApp':_0x279b0e,'currentApp':typeof _0x58ff43===_0x56151d(0x164)?_0x58ff43:undefined,'raw':_0xdb39fa};}function env(_0x406f5b){return productEnv(_0x406f5b);}async function buildAuth(_0x20691a){const _0x2c1625=a77_0x5101fc,_0x324edd='',_0x21f3e5=!!_0x20691a[_0x2c1625(0x176)];return{'cookie':_0x324edd,'isLoggedIn':_0x21f3e5,async 'getOrLogin'(){const _0x488eba=_0x2c1625;if(_0x21f3e5)return _0x324edd;throw CliErrors[_0x488eba(0x167)]();}};}function a77_0xd02d(){const _0x3371d4=['parse','userDomain','host','408284HyIgnk','global','some','format','env','apps','2305104vsebWu','runtimeDomain','globalConfig','APP','app','daily','apiDomain','trim','.tmp','production','message','VERBOSE','write','defaultApp','error','setRawMode','nonInteractive','FORMAT','isRaw','EXDEV','riskLevel','missing','top-level','38944bulouQ','skillHubDomain','setRawCommand','1902925dNZbIE','string','cache','object','authRequired','stringify','stdin','project','true','ACCESS_KEY','cwd','maxRisk','high-risk-write','appcode','3418461YicgLi','code','./constant/domain.js','raw','explicit','accessKey','projectConfig','utf8','EACCES','newConfigFileName','639970tVrRHV','7sEJmyd','6YWcOvC','argv','PAGE_SIZE','find','inherit','APPCODE','setLogPath','locale','online','values','./constant/env.js','553dvEHUF','development','isTTY','ENV','153936bqukDW'];a77_0xd02d=function(){return _0x3371d4;};return a77_0xd02d();}
|
|
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']();}};}
|