@lovrabet/lovrabet-cli 2.1.22-beta.2 → 2.1.22-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/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/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
|
+
const a64_0x2e8103=a64_0x37b2;(function(_0x309849,_0x30d746){const _0x3185da=a64_0x37b2,_0x131255=_0x309849();while(!![]){try{const _0x371f9e=parseInt(_0x3185da(0x1dd))/0x1+-parseInt(_0x3185da(0x1d0))/0x2*(parseInt(_0x3185da(0x1e7))/0x3)+-parseInt(_0x3185da(0x1e8))/0x4*(-parseInt(_0x3185da(0x1fe))/0x5)+parseInt(_0x3185da(0x1ef))/0x6+parseInt(_0x3185da(0x1d7))/0x7*(parseInt(_0x3185da(0x1d3))/0x8)+-parseInt(_0x3185da(0x1e5))/0x9+-parseInt(_0x3185da(0x1f1))/0xa;if(_0x371f9e===_0x30d746)break;else _0x131255['push'](_0x131255['shift']());}catch(_0x3d15c9){_0x131255['push'](_0x131255['shift']());}}}(a64_0x58f1,0xacb52));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':'string','description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a64_0x2e8103(0x1d8),'type':'string','description':a64_0x2e8103(0x1c9)},{'name':a64_0x2e8103(0x1dc),'type':'string','description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a64_0x2e8103(0x1d4),'type':a64_0x2e8103(0x1cd),'description':'Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','default':![]}];async function executeWorkspaceUse(_0x1c64c7,_0x4d019c){const _0x44d0f5=a64_0x2e8103,_0xe3d640=_0x1c64c7[_0x44d0f5(0x1d1)](_0x44d0f5(0x1ed))[_0x44d0f5(0x1d2)](),_0x5de24c=_0x1c64c7['str'](_0x44d0f5(0x1d8))['trim'](),_0x24b8c7=_0x1c64c7[_0x44d0f5(0x1d1)](_0x44d0f5(0x1dc))[_0x44d0f5(0x1d2)](),_0x1a7af1=resolveWorkspaceEnv(_0x24b8c7||_0x1c64c7[_0x44d0f5(0x1f7)]||DEFAULT_CONFIG_VALUES[_0x44d0f5(0x1dc)]);if(!_0xe3d640&&!_0x5de24c)throw CliErrors[_0x44d0f5(0x1fd)](_0x44d0f5(0x1fb),_0x44d0f5(0x1d6)+CLI_BIN_NAME+_0x44d0f5(0x1cc)+_0x4d019c+'\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20'+CLI_BIN_NAME+_0x44d0f5(0x1cc)+_0x4d019c+'\x20--appcode\x20<code>\x20[--env\x20daily]');const _0x2eb4e4=_0x5de24c||await resolveRemoteAppCode({'command':_0x4d019c,'appName':_0xe3d640,'env':_0x1a7af1,'accessKey':_0x1c64c7[_0x44d0f5(0x1f6)]}),_0x11922b=writeWorkspaceConfig({'command':_0x4d019c,'appName':_0xe3d640,'appcode':_0x2eb4e4,'env':_0x1a7af1,'shouldWriteEnv':!!_0x24b8c7,'accessKey':_0x1c64c7[_0x44d0f5(0x1f6)]});return{'ok':!![],'data':{'configPath':_0x11922b,'app':_0xe3d640||null,'appcode':_0x2eb4e4,'env':_0x24b8c7?_0x1a7af1:null,'accessKeyWritten':![],'command':_0x44d0f5(0x1fc)+_0x4d019c},'message':buildWorkspaceMessage(_0x11922b,_0xe3d640,_0x2eb4e4,_0x24b8c7?_0x1a7af1:undefined)};}function a64_0x58f1(){const _0x126651=['join','env','768969JXuXZd','appName','map','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','appCode','use','init','App\x20\x22','9146403AegIPN','shouldWriteEnv','1329fhXcVH','337684GuFrxP','object','../../commands/app/remote-source.js','length','\x0aAccessKey:\x20not\x20written','app','includes','4118988aCugMf','defaultApp','5681280xPzhEA','\x22\x20not\x20found.','\x22.\x20Allowed:\x20','isArray','items','accessKey','envName','Run\x20`','workspace','apps','Missing\x20workspace\x20app\x20selector.','workspace\x20','validation','20GTjSEI','filter','App\x20code\x20to\x20bind\x20directly','\x0aEnv:\x20','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','\x20workspace\x20','boolean','write','command','2274GXMKkX','str','trim','24tEuYXK','yes','../../core/api-client.js','Usage:\x20','2338805vLafAg','appcode','Invalid\x20env\x20\x22','\x0aDefault\x20app:\x20'];a64_0x58f1=function(){return _0x126651;};return a64_0x58f1();}async function resolveRemoteAppCode(_0x231cc7){const _0x5480d6=a64_0x2e8103;if(!_0x231cc7['accessKey'])throw CliErrors['authRequired']('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+_0x5480d6(0x1cc)+_0x231cc7[_0x5480d6(0x1cf)]+'.');const {setActiveAK:_0x298038}=await import(_0x5480d6(0x1d5)),{getRemoteAppList:_0x3c2a26}=await import(_0x5480d6(0x1ea));_0x298038(_0x231cc7['accessKey']);const _0x76d6d=await _0x3c2a26({'env':_0x231cc7[_0x5480d6(0x1dc)],'accessKey':_0x231cc7[_0x5480d6(0x1f6)],'noCache':![]}),_0x491fe8=findAppByName(_0x76d6d['items'],_0x231cc7[_0x5480d6(0x1de)]);if(_0x491fe8&&!isRuntimeAccessibleApp(_0x491fe8))throw runtimeInaccessibleAppError(_0x491fe8,'\x22'+_0x231cc7[_0x5480d6(0x1de)]+'\x22');const _0x22962b=_0x491fe8?.[_0x5480d6(0x1e1)]?.['trim']();if(_0x22962b)return _0x22962b;const _0x2b2dd5=_0x76d6d[_0x5480d6(0x1f5)][_0x5480d6(0x1df)](_0x410983=>_0x410983[_0x5480d6(0x1de)])[_0x5480d6(0x1ff)](Boolean),_0x1b565e=_0x2b2dd5[_0x5480d6(0x1eb)]?'Available\x20apps:\x20'+Array['from'](new Set(_0x2b2dd5))[_0x5480d6(0x1db)](',\x20')+'.':_0x5480d6(0x1f8)+CLI_BIN_NAME+_0x5480d6(0x1cb);throw CliErrors['validation'](_0x5480d6(0x1e4)+_0x231cc7[_0x5480d6(0x1de)]+_0x5480d6(0x1f2),_0x1b565e);}function a64_0x37b2(_0x2b57e2,_0x113407){_0x2b57e2=_0x2b57e2-0x1c9;const _0x58f1d7=a64_0x58f1();let _0x37b2da=_0x58f1d7[_0x2b57e2];return _0x37b2da;}function writeWorkspaceConfig(_0x2f7677){const _0x45baf7=a64_0x2e8103,_0x1fd262=resolveWriteConfigPath('project'),_0x184d5a=readConfigFile(_0x1fd262);_0x2f7677[_0x45baf7(0x1e6)]&&(_0x184d5a[_0x45baf7(0x1dc)]=_0x2f7677[_0x45baf7(0x1dc)]);if(_0x2f7677[_0x45baf7(0x1de)]){const _0x42e0be=isRecord(_0x184d5a[_0x45baf7(0x1fa)])?{..._0x184d5a[_0x45baf7(0x1fa)]}:{},_0x2c27d1=isRecord(_0x42e0be[_0x2f7677[_0x45baf7(0x1de)]])?_0x42e0be[_0x2f7677[_0x45baf7(0x1de)]]:{};_0x42e0be[_0x2f7677[_0x45baf7(0x1de)]]={..._0x2c27d1,'appcode':_0x2f7677[_0x45baf7(0x1d8)]},_0x184d5a[_0x45baf7(0x1fa)]=_0x42e0be,_0x184d5a[_0x45baf7(0x1f0)]=_0x2f7677[_0x45baf7(0x1de)];if(_0x184d5a[_0x45baf7(0x1ed)])delete _0x184d5a['app'];return writeAndReturn(_0x1fd262,_0x184d5a);}_0x184d5a[_0x45baf7(0x1d8)]=_0x2f7677[_0x45baf7(0x1d8)];if(_0x184d5a[_0x45baf7(0x1ed)])delete _0x184d5a[_0x45baf7(0x1ed)];return writeAndReturn(_0x1fd262,_0x184d5a);}function writeAndReturn(_0x2a03cc,_0x1b84eb){return writeConfigFile(_0x2a03cc,_0x1b84eb),_0x2a03cc;}function resolveWorkspaceEnv(_0x3be03a){const _0x23cab9=a64_0x2e8103;if(RUNTIME_ENV_VALUES[_0x23cab9(0x1ee)](_0x3be03a))return _0x3be03a;throw CliErrors[_0x23cab9(0x1fd)](_0x23cab9(0x1d9)+_0x3be03a+_0x23cab9(0x1f3)+RUNTIME_ENV_VALUES[_0x23cab9(0x1db)](',\x20'));}function buildWorkspaceMessage(_0xf78faa,_0x1150f9,_0x440447,_0x470f17){const _0x2c625d=a64_0x2e8103,_0x560f30=_0x1150f9?_0x1150f9+'\x20('+_0x440447+')':_0x440447,_0x578e6d=_0x470f17?_0x2c625d(0x1ca)+_0x470f17:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0xf78faa+_0x2c625d(0x1da)+_0x560f30+_0x578e6d+_0x2c625d(0x1ec);}function isRecord(_0x5aabd8){const _0x576d74=a64_0x2e8103;return typeof _0x5aabd8===_0x576d74(0x1e9)&&_0x5aabd8!==null&&!Array[_0x576d74(0x1f4)](_0x5aabd8);}function makeWorkspaceCommand(_0x7d1fee){const _0x2b5bc6=a64_0x2e8103;return{'service':_0x2b5bc6(0x1f9),'command':_0x7d1fee,'description':_0x7d1fee==='init'?_0x2b5bc6(0x1e0):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':_0x2b5bc6(0x1ce),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x594abd){return executeWorkspaceUse(_0x594abd,_0x7d1fee);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x2e8103(0x1e3)),makeWorkspaceCommand(a64_0x2e8103(0x1e2))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a65_0x529b37=a65_0x251b;(function(_0x4663ab,_0x27f477){const _0x5c2a16=a65_0x251b,_0x5176c7=_0x4663ab();while(!![]){try{const _0x14aa4d=parseInt(_0x5c2a16(0x8d))/0x1*(parseInt(_0x5c2a16(0xa5))/0x2)+-parseInt(_0x5c2a16(0x97))/0x3*(-parseInt(_0x5c2a16(0x93))/0x4)+parseInt(_0x5c2a16(0xa4))/0x5*(parseInt(_0x5c2a16(0x9c))/0x6)+parseInt(_0x5c2a16(0xa6))/0x7*(parseInt(_0x5c2a16(0x98))/0x8)+-parseInt(_0x5c2a16(0x9e))/0x9*(-parseInt(_0x5c2a16(0x8a))/0xa)+-parseInt(_0x5c2a16(0x92))/0xb*(parseInt(_0x5c2a16(0x95))/0xc)+parseInt(_0x5c2a16(0x9f))/0xd*(-parseInt(_0x5c2a16(0xa2))/0xe);if(_0x14aa4d===_0x27f477)break;else _0x5176c7['push'](_0x5176c7['shift']());}catch(_0xf2056b){_0x5176c7['push'](_0x5176c7['shift']());}}}(a65_0x7d4c,0x386b9));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a65_0x7d4c(){const _0x194d81=['Target\x20environment','Override\x20API\x20domain','Default\x20output\x20format','riskLevel','2083301xKyRew','28crRSTJ','defaultValue','24SziHTk','Override\x20SkillHub\x20domain','16197hotHJT','452792WWUjIJ','fromEntries','entries','map','576mdcAQq','format','1487268INaPqa','13ULqzOO','has','importable','1157506TMwedG','filter','9335uGmRkN','4780FdVKme','7rdQwvZ','enumValues','legacyCompatOnly','Override\x20user\x20domain','Risk\x20level','Default\x20page\x20size','20QBzbET','Override\x20runtime\x20domain','Config\x20key.\x20Top-level:\x20','37qXZgMK'];a65_0x7d4c=function(){return _0x194d81;};return a65_0x7d4c();}import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a65_0x529b37(0x8e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a65_0x529b37(0x90),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x529b37(0x9d)],'importable':!![]},'pageSize':{'description':a65_0x529b37(0xab),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x529b37(0x8f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x529b37(0xa9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x529b37(0x8b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x529b37(0x96),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x529b37(0xaa),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x529b37(0x91)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x529b37(0x9a)](CONFIG_FIELD_SCHEMAS)[a65_0x529b37(0xa3)](([,_0x13b5f3])=>_0x13b5f3['cliSettableTopLevel'])[a65_0x529b37(0x9b)](([_0x747159])=>_0x747159));export const CONFIG_ENUM_VALUES=Object[a65_0x529b37(0x99)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a65_0x529b37(0xa3)](([,_0xf2794e])=>_0xf2794e['enumValues'])['map'](([_0x553694,_0x4acf8d])=>[_0x553694,[..._0x4acf8d['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x529b37(0x9a)](CONFIG_FIELD_SCHEMAS)[a65_0x529b37(0xa3)](([,_0x668eb0])=>_0x668eb0[a65_0x529b37(0xa1)])[a65_0x529b37(0x9b)](([_0x1101fd])=>_0x1101fd);export function getConfigFieldSchema(_0xa47474){return CONFIG_FIELD_SCHEMAS[_0xa47474];}export function getConfigEnumValues(_0x5c4e8a){const _0x1be4b3=a65_0x529b37;return getConfigFieldSchema(_0x5c4e8a)?.[_0x1be4b3(0xa7)];}export function getConfigDefaultValue(_0x406162){const _0x325ed1=a65_0x529b37;return getConfigFieldSchema(_0x406162)?.[_0x325ed1(0x94)];}export function isTopLevelConfigKey(_0x1c7e1e){const _0x263fc0=a65_0x529b37;return TOP_LEVEL_CONFIG_KEYS[_0x263fc0(0xa0)](_0x1c7e1e);}export function isLegacyCompatConfigKey(_0x4ccb9f){const _0x2a1b22=a65_0x529b37;return getConfigFieldSchema(_0x4ccb9f)?.[_0x2a1b22(0xa8)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xee1bcf){return[..._0xee1bcf]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a65_0x251b(_0x2432f0,_0x236f8b){_0x2432f0=_0x2432f0-0x8a;const _0x7d4cbf=a65_0x7d4c();let _0x251ba8=_0x7d4cbf[_0x2432f0];return _0x251ba8;}export function getConfigCommandKeyDescription(){const _0x27fea5=a65_0x529b37;return _0x27fea5(0x8c)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0xe5e506){return{'env':_0xe5e506,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x478624=a66_0x1550;(function(_0x275a17,_0x408977){const _0x347f6a=a66_0x1550,_0x1bb5ed=_0x275a17();while(!![]){try{const _0x574d7f=-parseInt(_0x347f6a(0x1fe))/0x1*(-parseInt(_0x347f6a(0x1f4))/0x2)+parseInt(_0x347f6a(0x1fb))/0x3+parseInt(_0x347f6a(0x1fc))/0x4+parseInt(_0x347f6a(0x1fd))/0x5*(parseInt(_0x347f6a(0x1f6))/0x6)+-parseInt(_0x347f6a(0x201))/0x7*(parseInt(_0x347f6a(0x1f9))/0x8)+parseInt(_0x347f6a(0x1f5))/0x9*(-parseInt(_0x347f6a(0x1f3))/0xa)+parseInt(_0x347f6a(0x1fa))/0xb*(parseInt(_0x347f6a(0x1ff))/0xc);if(_0x574d7f===_0x408977)break;else _0x1bb5ed['push'](_0x1bb5ed['shift']());}catch(_0x4f99d4){_0x1bb5ed['push'](_0x1bb5ed['shift']());}}}(a66_0x499a,0x20e3d));export const APP_PUBLISH_STATUS={'Published':a66_0x478624(0x1f7),'Unpublished':a66_0x478624(0x200)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a66_0x478624(0x1f8)];function a66_0x1550(_0x36a061,_0x543ca1){_0x36a061=_0x36a061-0x1f3;const _0x499a63=a66_0x499a();let _0x1550d4=_0x499a63[_0x36a061];return _0x1550d4;}function a66_0x499a(){const _0x5da639=['UNPUBLISH','7fvwuJl','2125610lqBJas','18SKjTfu','9doUWBl','24258wBjKBJ','PUBLISHED','Published','607816OgpHDU','118239rbHeuK','125427luVzFN','611448mlzPVG','125txyzoB','1030XfgkXs','132kBMeQj'];a66_0x499a=function(){return _0x5da639;};return a66_0x499a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a67_0x7bf7(_0xa9676f,_0x1b8d57){_0xa9676f=_0xa9676f-0x174;const _0x509686=a67_0x5096();let _0x7bf7ba=_0x509686[_0xa9676f];return _0x7bf7ba;}const a67_0x3ae6e4=a67_0x7bf7;function a67_0x5096(){const _0x46d1b9=['1749080AsflIo','509360EUKYgL','338TuCWpt','1658713HydPyV','1593iEMXuX','13627953QeAfzh','ClientAk','12oNdYWE','3911952OgioHF','1885584qrjxyO','client-ak'];a67_0x5096=function(){return _0x46d1b9;};return a67_0x5096();}(function(_0x1edef6,_0x5e9e08){const _0x262409=a67_0x7bf7,_0x79ece2=_0x1edef6();while(!![]){try{const _0x247d64=-parseInt(_0x262409(0x17d))/0x1+parseInt(_0x262409(0x17e))/0x2*(parseInt(_0x262409(0x175))/0x3)+-parseInt(_0x262409(0x17a))/0x4+-parseInt(_0x262409(0x17c))/0x5+parseInt(_0x262409(0x178))/0x6*(-parseInt(_0x262409(0x174))/0x7)+parseInt(_0x262409(0x179))/0x8+parseInt(_0x262409(0x176))/0x9;if(_0x247d64===_0x5e9e08)break;else _0x79ece2['push'](_0x79ece2['shift']());}catch(_0x585d45){_0x79ece2['push'](_0x79ece2['shift']());}}}(a67_0x5096,0x466cc));export const AUTH_MODE={'ClientAk':a67_0x3ae6e4(0x17b)};export function isAuthMode(_0x2d1bba){const _0x3c7cfc=a67_0x3ae6e4;return _0x2d1bba===AUTH_MODE[_0x3c7cfc(0x177)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x5d0a22=a68_0x49ba;(function(_0x1bd546,_0x945f62){const _0xe7b730=a68_0x49ba,_0x549ef8=_0x1bd546();while(!![]){try{const _0x48776d=-parseInt(_0xe7b730(0x143))/0x1+-parseInt(_0xe7b730(0x164))/0x2*(-parseInt(_0xe7b730(0x14a))/0x3)+-parseInt(_0xe7b730(0x14e))/0x4*(-parseInt(_0xe7b730(0x168))/0x5)+parseInt(_0xe7b730(0x158))/0x6+-parseInt(_0xe7b730(0x152))/0x7*(parseInt(_0xe7b730(0x146))/0x8)+-parseInt(_0xe7b730(0x15e))/0x9+-parseInt(_0xe7b730(0x153))/0xa*(-parseInt(_0xe7b730(0x15b))/0xb);if(_0x48776d===_0x945f62)break;else _0x549ef8['push'](_0x549ef8['shift']());}catch(_0x4041a7){_0x549ef8['push'](_0x549ef8['shift']());}}}(a68_0x7488,0x399f0));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x5d0a22(0x144)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a68_0x7488(){const _0x527c20=['Output\x20format','production\x20|\x20development\x20|\x20daily','139746AyYsqr','sqlcode','boolean','88IeDSHK','Skip\x20confirmation\x20for\x20high-risk\x20writes','format','2600127ISrbYN','<code>','name','help','fromEntries','Verbose\x20output','82rHSrWi','dry-run','verbose','type','170NgTytf','Clear\x20output','app','Preview\x20operation\x20without\x20executing','Alias\x20for\x20--non-interactive','Force\x20non-interactive\x20mode\x20(CI)','global','dryRun','79080joYwTg','cliBinName','yes','1704STeWoa','Select\x20app\x20profile\x20by\x20name','json\x20|\x20pretty\x20|\x20compress','<name>','3921XkKUZa','env','JSON\x20params\x20for\x20execute\x20commands','string','25448pVbpon','SQL\x20query\x20code','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','params','5537fyJYld','599120JFkmAe','appcode','non-interactive'];a68_0x7488=function(){return _0x527c20;};return a68_0x7488();}function a68_0x49ba(_0x8bf975,_0x367564){_0x8bf975=_0x8bf975-0x140;const _0x7488eb=a68_0x7488();let _0x49ba46=_0x7488eb[_0x8bf975];return _0x49ba46;}export const GLOBAL_FLAGS=[{'name':a68_0x5d0a22(0x154),'meowKey':a68_0x5d0a22(0x154),'type':'string','description':'Override\x20appcode','hint':a68_0x5d0a22(0x15f)},{'name':a68_0x5d0a22(0x16a),'meowKey':a68_0x5d0a22(0x16a),'type':a68_0x5d0a22(0x14d),'description':a68_0x5d0a22(0x147),'hint':a68_0x5d0a22(0x149)},{'name':a68_0x5d0a22(0x14b),'meowKey':'env','type':a68_0x5d0a22(0x14d),'description':'Environment','hint':a68_0x5d0a22(0x157)},{'name':'format','meowKey':'format','type':'string','description':a68_0x5d0a22(0x156),'hint':a68_0x5d0a22(0x148)},{'name':'jq','meowKey':'jq','type':a68_0x5d0a22(0x14d),'description':a68_0x5d0a22(0x150),'hint':'<expr>'},{'name':a68_0x5d0a22(0x165),'meowKey':a68_0x5d0a22(0x142),'type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x16b)},{'name':'yes','meowKey':a68_0x5d0a22(0x145),'type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x15c)},{'name':a68_0x5d0a22(0x155),'meowKey':'nonInteractive','type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x140)},{'name':a68_0x5d0a22(0x141),'meowKey':a68_0x5d0a22(0x141),'type':a68_0x5d0a22(0x15a),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x16c),'hidden':!![]},{'name':'help','meowKey':a68_0x5d0a22(0x161),'type':a68_0x5d0a22(0x15a),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a68_0x5d0a22(0x14d),'description':'Record\x20ID','hidden':!![]},{'name':a68_0x5d0a22(0x160),'meowKey':a68_0x5d0a22(0x160),'type':a68_0x5d0a22(0x14d),'description':'Name\x20filter','hidden':!![]},{'name':a68_0x5d0a22(0x159),'meowKey':a68_0x5d0a22(0x159),'type':a68_0x5d0a22(0x14d),'description':a68_0x5d0a22(0x14f),'hidden':!![]},{'name':'params','meowKey':a68_0x5d0a22(0x151),'type':a68_0x5d0a22(0x14d),'description':a68_0x5d0a22(0x14c),'hidden':!![]},{'name':a68_0x5d0a22(0x166),'meowKey':a68_0x5d0a22(0x166),'type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x163),'hidden':!![]},{'name':'clear','meowKey':'clear','type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x169),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a68_0x5d0a22(0x16a),a68_0x5d0a22(0x14b),a68_0x5d0a22(0x15d),'jq',a68_0x5d0a22(0x165),a68_0x5d0a22(0x145),a68_0x5d0a22(0x155),'ci']);export function buildMeowFlags(){const _0x3f6e59=a68_0x5d0a22;return Object[_0x3f6e59(0x162)](GLOBAL_FLAGS['map'](_0x3ccdee=>[_0x3ccdee['meowKey'],{'type':_0x3ccdee[_0x3f6e59(0x167)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a69_0x51ef(_0x23821f,_0xdd1e30){_0x23821f=_0x23821f-0x17b;const _0x198ee1=a69_0x198e();let _0x51efe8=_0x198ee1[_0x23821f];return _0x51efe8;}const a69_0x3bac55=a69_0x51ef;(function(_0x1f7c70,_0x21f46c){const _0x4df56b=a69_0x51ef,_0x57a99b=_0x1f7c70();while(!![]){try{const _0x109ae1=-parseInt(_0x4df56b(0x183))/0x1*(parseInt(_0x4df56b(0x17e))/0x2)+-parseInt(_0x4df56b(0x17b))/0x3*(parseInt(_0x4df56b(0x17f))/0x4)+parseInt(_0x4df56b(0x185))/0x5+-parseInt(_0x4df56b(0x17d))/0x6*(-parseInt(_0x4df56b(0x182))/0x7)+-parseInt(_0x4df56b(0x188))/0x8+-parseInt(_0x4df56b(0x17c))/0x9*(parseInt(_0x4df56b(0x181))/0xa)+parseInt(_0x4df56b(0x180))/0xb;if(_0x109ae1===_0x21f46c)break;else _0x57a99b['push'](_0x57a99b['shift']());}catch(_0x120ab3){_0x57a99b['push'](_0x57a99b['shift']());}}}(a69_0x198e,0x991d3));export const DEFAULT_APP_PROFILE_NAME=a69_0x3bac55(0x186);export const DEFAULT_CONFIG_VALUES={'env':a69_0x3bac55(0x184),'format':a69_0x3bac55(0x189),'locale':a69_0x3bac55(0x187),'riskLevel':a69_0x3bac55(0x18a)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x3bac55(0x189);function a69_0x198e(){const _0x528be5=['32493164oMNbYn','20dQzeQb','1386BTAgnR','17SLiFoG','production','5301420oDpwdY','main','en-US','4993304VWpHjX','compress','write','6hwSMyJ','3680811BmcfnI','8064LBvgBc','137308GszreU','2087852WkrnNx'];a69_0x198e=function(){return _0x528be5;};return a69_0x198e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x3a2224=a70_0x1acf;function a70_0x4a44(){const _0x68aa7=['81145IRBCBe','5132754CPaguQ','3989718epqQWX','7nnoesG','5660184JJTEhH','404989QqaNsM','542367BbSkTK','npmRegistryBaseUrl','4732510TdbKhT','4DhbmFk','80BEQqwi'];a70_0x4a44=function(){return _0x68aa7;};return a70_0x4a44();}(function(_0x24697f,_0x50990c){const _0x31590c=a70_0x1acf,_0x46a929=_0x24697f();while(!![]){try{const _0x5413a0=-parseInt(_0x31590c(0xf4))/0x1*(-parseInt(_0x31590c(0xed))/0x2)+parseInt(_0x31590c(0xea))/0x3+parseInt(_0x31590c(0xee))/0x4*(-parseInt(_0x31590c(0xef))/0x5)+-parseInt(_0x31590c(0xf1))/0x6+parseInt(_0x31590c(0xf2))/0x7*(parseInt(_0x31590c(0xf3))/0x8)+-parseInt(_0x31590c(0xf0))/0x9+parseInt(_0x31590c(0xec))/0xa;if(_0x5413a0===_0x50990c)break;else _0x46a929['push'](_0x46a929['shift']());}catch(_0x315497){_0x46a929['push'](_0x46a929['shift']());}}}(a70_0x4a44,0x95576));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a70_0x1acf(_0x19420c,_0xa5b552){_0x19420c=_0x19420c-0xea;const _0x4a448c=a70_0x4a44();let _0x1acfb1=_0x4a448c[_0x19420c];return _0x1acfb1;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x3a2224(0xeb)];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x4534d9=a71_0x49fa;(function(_0x3b472d,_0x1406fb){const _0x4acf94=a71_0x49fa,_0x3596f3=_0x3b472d();while(!![]){try{const _0x4c1c8c=-parseInt(_0x4acf94(0x196))/0x1*(parseInt(_0x4acf94(0x195))/0x2)+parseInt(_0x4acf94(0x19d))/0x3*(-parseInt(_0x4acf94(0x19a))/0x4)+-parseInt(_0x4acf94(0x1a4))/0x5+-parseInt(_0x4acf94(0x197))/0x6*(-parseInt(_0x4acf94(0x1a0))/0x7)+parseInt(_0x4acf94(0x19c))/0x8*(parseInt(_0x4acf94(0x1a3))/0x9)+-parseInt(_0x4acf94(0x19f))/0xa*(parseInt(_0x4acf94(0x1a1))/0xb)+parseInt(_0x4acf94(0x1a5))/0xc*(parseInt(_0x4acf94(0x198))/0xd);if(_0x4c1c8c===_0x1406fb)break;else _0x3596f3['push'](_0x3596f3['shift']());}catch(_0x277a35){_0x3596f3['push'](_0x3596f3['shift']());}}}(a71_0x271f,0xd7e54));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a71_0x49fa(_0x203ad7,_0xb48351){_0x203ad7=_0x203ad7-0x18f;const _0x271f3d=a71_0x271f();let _0x49fa04=_0x271f3d[_0x203ad7];return _0x49fa04;}export function initDomains(_0x54118c){const _0x1ae482=a71_0x49fa;customApiDomain=_0x54118c?.[_0x1ae482(0x18f)],customUserDomain=_0x54118c?.[_0x1ae482(0x192)],customRuntimeDomain=_0x54118c?.[_0x1ae482(0x19b)],customSkillHubDomain=_0x54118c?.[_0x1ae482(0x199)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4534d9(0x194)][a71_0x4534d9(0x19e)][a71_0x4534d9(0x191)]:PRODUCT_CONFIG[a71_0x4534d9(0x194)][a71_0x4534d9(0x1a2)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4534d9(0x194)][a71_0x4534d9(0x19e)]['api']:PRODUCT_CONFIG[a71_0x4534d9(0x194)][a71_0x4534d9(0x1a2)][a71_0x4534d9(0x193)]);function a71_0x271f(){const _0x262bf1=['879050yyQJvL','24Puohwj','skillhub','apiDomain','runtime','user','userDomain','api','domains','58GGfATP','44151yymjqq','66cXKXlx','18835336oIgHCk','skillHubDomain','14888IuzaGK','runtimeDomain','6104KYsOti','1239qsSHIw','production','829090tVyZIa','640913rodcIT','11PbApMt','nonProduction','657PHiJOs'];a71_0x271f=function(){return _0x262bf1;};return a71_0x271f();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4534d9(0x194)]['production'][a71_0x4534d9(0x190)]:PRODUCT_CONFIG[a71_0x4534d9(0x194)][a71_0x4534d9(0x1a2)][a71_0x4534d9(0x190)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4534d9(0x194)]['production']['skillhub']:PRODUCT_CONFIG[a71_0x4534d9(0x194)]['nonProduction'][a71_0x4534d9(0x1a6)]);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a72_0x39a8(_0x141ddd,_0xa7c27c){_0x141ddd=_0x141ddd-0x123;const _0x6b6b91=a72_0x6b6b();let _0x39a8e6=_0x6b6b91[_0x141ddd];return _0x39a8e6;}const a72_0x330d94=a72_0x39a8;(function(_0x2bbb63,_0x422e03){const _0x455ae2=a72_0x39a8,_0x29bf00=_0x2bbb63();while(!![]){try{const _0x5b5bfd=parseInt(_0x455ae2(0x129))/0x1+-parseInt(_0x455ae2(0x125))/0x2*(-parseInt(_0x455ae2(0x12f))/0x3)+parseInt(_0x455ae2(0x123))/0x4+parseInt(_0x455ae2(0x12e))/0x5+-parseInt(_0x455ae2(0x128))/0x6+parseInt(_0x455ae2(0x12b))/0x7*(parseInt(_0x455ae2(0x12d))/0x8)+-parseInt(_0x455ae2(0x124))/0x9;if(_0x5b5bfd===_0x422e03)break;else _0x29bf00['push'](_0x29bf00['shift']());}catch(_0x3af1f4){_0x29bf00['push'](_0x29bf00['shift']());}}}(a72_0x6b6b,0x366ad));import{productEnv}from'../constant/product.js';function a72_0x6b6b(){const _0xadca4b=['development','1671901nUzZEQ','dev','8EuXfPf','1427125QHsMTH','9QRrfwg','production','750632FoGHgM','4226922wFezeU','122336gYWzzL','online','daily','2647200SZurJq','238321xVGYRB'];a72_0x6b6b=function(){return _0xadca4b;};return a72_0x6b6b();}export const RUNTIME_ENV_VALUES=[a72_0x330d94(0x130),a72_0x330d94(0x12a),a72_0x330d94(0x127)];export function normalizeEnv(_0x4da789){const _0x30ea32=a72_0x330d94;return _0x4da789===_0x30ea32(0x126)?'production':_0x4da789;}export function isProduction(_0x58e709){const _0x42edde=a72_0x330d94;return normalizeEnv(_0x58e709)===_0x42edde(0x130);}export function isDaily(_0x1225da){return normalizeEnv(_0x1225da)==='daily';}export function isDev(_0xbd2b57){const _0x509ce0=a72_0x330d94,_0x1c0981=normalizeEnv(_0xbd2b57);return _0x1c0981==='development'||_0x1c0981===_0x509ce0(0x12c);}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}export function initEnv(_0x40caca){env=normalizeEnv(_0x40caca);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a73_0x3d5c6e=a73_0x41eb;function a73_0x41eb(_0xc261e3,_0x1f51cc){_0xc261e3=_0xc261e3-0x107;const _0x4f79d9=a73_0x4f79();let _0x41eb98=_0x4f79d9[_0xc261e3];return _0x41eb98;}(function(_0x5eb435,_0x59f0e5){const _0x3533ae=a73_0x41eb,_0x3ed5cf=_0x5eb435();while(!![]){try{const _0x52f8ca=-parseInt(_0x3533ae(0x113))/0x1+-parseInt(_0x3533ae(0x109))/0x2*(parseInt(_0x3533ae(0x110))/0x3)+parseInt(_0x3533ae(0x108))/0x4+parseInt(_0x3533ae(0x107))/0x5*(-parseInt(_0x3533ae(0x114))/0x6)+-parseInt(_0x3533ae(0x10d))/0x7+parseInt(_0x3533ae(0x10c))/0x8*(parseInt(_0x3533ae(0x10e))/0x9)+parseInt(_0x3533ae(0x10b))/0xa*(parseInt(_0x3533ae(0x10a))/0xb);if(_0x52f8ca===_0x59f0e5)break;else _0x3ed5cf['push'](_0x3ed5cf['shift']());}catch(_0x2a3d9c){_0x3ed5cf['push'](_0x3ed5cf['shift']());}}}(a73_0x4f79,0xc99ab));export const OUTPUT_FORMAT_VALUES=[a73_0x3d5c6e(0x10f),a73_0x3d5c6e(0x111),a73_0x3d5c6e(0x112)];function a73_0x4f79(){const _0x3c3728=['compress','175846tLQjKb','80526rlZdkC','215UjfxcO','4864360mfSbqJ','1917424pXXCPd','55nWKgIp','777710ryNLyx','277840uNoTNX','4655651pimCpI','414crBIej','json','3YgBIcx','pretty'];a73_0x4f79=function(){return _0x3c3728;};return a73_0x4f79();}
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a74_0x3ce5dd=a74_0x2072;(function(_0x12a584,_0xc7a5cc){const _0x4e7860=a74_0x2072,_0x214566=_0x12a584();while(!![]){try{const _0x5d151c=-parseInt(_0x4e7860(0x14f))/0x1+parseInt(_0x4e7860(0x152))/0x2*(-parseInt(_0x4e7860(0x141))/0x3)+parseInt(_0x4e7860(0x147))/0x4+-parseInt(_0x4e7860(0x150))/0x5*(parseInt(_0x4e7860(0x14c))/0x6)+-parseInt(_0x4e7860(0x144))/0x7+parseInt(_0x4e7860(0x148))/0x8*(-parseInt(_0x4e7860(0x13c))/0x9)+-parseInt(_0x4e7860(0x149))/0xa*(-parseInt(_0x4e7860(0x142))/0xb);if(_0x5d151c===_0xc7a5cc)break;else _0x214566['push'](_0x214566['shift']());}catch(_0x5acadc){_0x214566['push'](_0x214566['shift']());}}}(a74_0x48b4,0xf2677));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a74_0x3ce5dd(0x13d),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a74_0x3ce5dd(0x14d),'envPrefix':a74_0x3ce5dd(0x13f),'legacyEnvPrefixes':[a74_0x3ce5dd(0x13e)],'configFileNames':[a74_0x3ce5dd(0x146),a74_0x3ce5dd(0x14e)],'newConfigFileName':a74_0x3ce5dd(0x146),'homeDirName':'.lovrabet','logFileName':a74_0x3ce5dd(0x14a),'invokeSource':a74_0x3ce5dd(0x13b),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a74_0x3ce5dd(0x145),'domains':{'production':{'user':a74_0x3ce5dd(0x140),'api':a74_0x3ce5dd(0x153),'runtime':a74_0x3ce5dd(0x156),'skillhub':a74_0x3ce5dd(0x143)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a74_0x3ce5dd(0x151),'runtime':a74_0x3ce5dd(0x14b),'skillhub':a74_0x3ce5dd(0x154)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x48f5ef){const _0x37f44e=a74_0x3ce5dd;return PRODUCT_CONFIG[_0x37f44e(0x155)]+'_'+_0x48f5ef;}export function productEnvNames(_0x479f7d){const _0x40cca6=a74_0x3ce5dd;return[productEnvName(_0x479f7d),...PRODUCT_CONFIG[_0x40cca6(0x157)][_0x40cca6(0x13a)](_0x4f5bf1=>_0x4f5bf1+'_'+_0x479f7d)];}export function productEnv(_0x2199d3){for(const _0x534c38 of productEnvNames(_0x2199d3)){const _0x15ab9f=process.env[_0x534c38];if(_0x15ab9f!==undefined)return _0x15ab9f;}return undefined;}function a74_0x2072(_0x44fcc4,_0x5ca259){_0x44fcc4=_0x44fcc4-0x13a;const _0x48b456=a74_0x48b4();let _0x207208=_0x48b456[_0x44fcc4];return _0x207208;}function a74_0x48b4(){const _0x50ede4=['SKIP_NPX_SKILLS','.lovrabet.json','4384136ucIoAv','8opqzdS','7630SeLOYe','.lovrabet-runtime.log','https://daily-runtime.lovrabet.com','4915686UKZqHQ','https://registry.npmjs.org','.lovrabetrc','1273421smurYA','10DTUlVu','https://daily-api.lovrabet.com','400HiPqVo','https://api.lovrabet.com','https://skills-daily.lovrabet.com','envPrefix','https://runtime.lovrabet.com','legacyEnvPrefixes','map','cli:lovrabet-runtime','11856690UTkxpx','@lovrabet/lovrabet-cli','RABETBASE','LOVRABET','https://user.lovrabet.com','25386AiBeWb','102773Mkpzvv','https://skills.lovrabet.com','9170441SQNEda'];a74_0x48b4=function(){return _0x50ede4;};return a74_0x48b4();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a75_0x1f8a22=a75_0x52d5;function a75_0x52d5(_0x48e1e4,_0x1cf55f){_0x48e1e4=_0x48e1e4-0x1c4;const _0x4c253e=a75_0x4c25();let _0x52d534=_0x4c253e[_0x48e1e4];return _0x52d534;}function a75_0x4c25(){const _0xc68799=['1386988dhTccz','5167210MHvCJi','write','9uwBwds','902262qSNWqQ','6GDUqok','high-risk-write','read','2963010YQLBNR','1515768VADYFt','3651540bKQawj','1hvhyOc','52143vnZcOk'];a75_0x4c25=function(){return _0xc68799;};return a75_0x4c25();}(function(_0x3620c8,_0xa055c){const _0x175639=a75_0x52d5,_0x37341e=_0x3620c8();while(!![]){try{const _0x4d245b=-parseInt(_0x175639(0x1d0))/0x1*(-parseInt(_0x175639(0x1c9))/0x2)+-parseInt(_0x175639(0x1ca))/0x3*(parseInt(_0x175639(0x1c5))/0x4)+parseInt(_0x175639(0x1cd))/0x5+-parseInt(_0x175639(0x1cf))/0x6+-parseInt(_0x175639(0x1c4))/0x7+parseInt(_0x175639(0x1ce))/0x8+parseInt(_0x175639(0x1c8))/0x9*(parseInt(_0x175639(0x1c6))/0xa);if(_0x4d245b===_0xa055c)break;else _0x37341e['push'](_0x37341e['shift']());}catch(_0x275534){_0x37341e['push'](_0x37341e['shift']());}}}(a75_0x4c25,0x6b848));export const RISK_LEVEL_VALUES=[a75_0x1f8a22(0x1cc),a75_0x1f8a22(0x1c7),a75_0x1f8a22(0x1cb)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a76_0x2668(){const _0x3b5b45=['419587WLTPWX','2167995gkJYdE','43089eAIuYu','production','358440wlwMgk','accessKeyCreatePath','706052JJyhfF','domains','117ZedIwa','553712PaccFO','377412dYoYsC','7ESIUuI'];a76_0x2668=function(){return _0x3b5b45;};return a76_0x2668();}function a76_0x13c3(_0x3f1eed,_0x5207ad){_0x3f1eed=_0x3f1eed-0x12c;const _0x2668e1=a76_0x2668();let _0x13c3fe=_0x2668e1[_0x3f1eed];return _0x13c3fe;}const a76_0x218161=a76_0x13c3;(function(_0x43cbca,_0x59e4d3){const _0x147007=a76_0x13c3,_0x36922b=_0x43cbca();while(!![]){try{const _0x4fa038=-parseInt(_0x147007(0x135))/0x1+parseInt(_0x147007(0x12f))/0x2+-parseInt(_0x147007(0x137))/0x3+parseInt(_0x147007(0x12d))/0x4+-parseInt(_0x147007(0x136))/0x5+parseInt(_0x147007(0x133))/0x6*(-parseInt(_0x147007(0x134))/0x7)+-parseInt(_0x147007(0x132))/0x8*(-parseInt(_0x147007(0x131))/0x9);if(_0x4fa038===_0x59e4d3)break;else _0x36922b['push'](_0x36922b['shift']());}catch(_0x4daa44){_0x36922b['push'](_0x36922b['shift']());}}}(a76_0x2668,0x6493f));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x218161(0x130)][a76_0x218161(0x12c)]['user']+PRODUCT_CONFIG[a76_0x218161(0x12e)];
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a77_0xa8dd1e=a77_0x2d4a;(function(_0x44cbf3,_0x80a5d5){const _0x3efbf0=a77_0x2d4a,_0x2a8386=_0x44cbf3();while(!![]){try{const _0x1a1a2f=-parseInt(_0x3efbf0(0x1cb))/0x1*(parseInt(_0x3efbf0(0x1d1))/0x2)+-parseInt(_0x3efbf0(0x1aa))/0x3*(-parseInt(_0x3efbf0(0x1b1))/0x4)+parseInt(_0x3efbf0(0x1e7))/0x5*(parseInt(_0x3efbf0(0x1e3))/0x6)+parseInt(_0x3efbf0(0x1ce))/0x7+-parseInt(_0x3efbf0(0x1c7))/0x8*(-parseInt(_0x3efbf0(0x1bf))/0x9)+parseInt(_0x3efbf0(0x1ea))/0xa*(parseInt(_0x3efbf0(0x1b3))/0xb)+-parseInt(_0x3efbf0(0x1d8))/0xc;if(_0x1a1a2f===_0x80a5d5)break;else _0x2a8386['push'](_0x2a8386['shift']());}catch(_0x293284){_0x2a8386['push'](_0x2a8386['shift']());}}}(a77_0x23ee,0x57c0f));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a77_0x23ee(){const _0x40fda1=['EPERM','stringify','4209037teoVuz','appcode','host','35254WokMMw','empty','slice','format','project','inherit','EXDEV','9409716yxZVRl','cache','some','cwd','apiDomain','authRequired','VERBOSE','env','top-level','riskLevel','true','36gnZRVM','global','utf8','app','144140mxaMNu','missing','userDomain','21190tNqUCz','isRaw','locale','APP','setLogPath','ENV','online','development','nonInteractive','stdin','ACCESS_KEY','values','read','12621BOpQBa','apps','high-risk-write','projectConfig','explicit','raw','setRawMode','92oVobiH','production','3421FfDFnP','accessKey','globalConfig','EACCES','write','trim','error','daily','isTTY','defaultApp','argv','newConfigFileName','329409cQGkNF','PAGE_SIZE','FORMAT','code','object','message','string','pageSize','8RdTPtJ','.tmp','./constant/domain.js','setRawCommand','24AglvIB'];a77_0x23ee=function(){return _0x40fda1;};return a77_0x23ee();}import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';function a77_0x2d4a(_0x4ddab5,_0x22f993){_0x4ddab5=_0x4ddab5-0x19f;const _0x23eea3=a77_0x23ee();let _0x2d4ac2=_0x23eea3[_0x4ddab5];return _0x2d4ac2;}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_0xa8dd1e(0x1be)];function resolveConfigPath(_0x16c63b){for(const _0x1d68ff of CONFIG_NAMES){const _0x29d62f=resolve(_0x16c63b,_0x1d68ff);if(existsSync(_0x29d62f))return _0x29d62f;}return undefined;}export function resolveWriteConfigPath(_0x3769d8){const _0x1ce755=a77_0xa8dd1e,_0x55df93=_0x3769d8==='project'?process[_0x1ce755(0x1db)]():homedir(),_0x5b9d96=resolveConfigPath(_0x55df93);return _0x5b9d96??resolve(_0x55df93,NEW_CONFIG_NAME);}export function readConfigFile(_0x4582bd){const _0xcca81a=a77_0xa8dd1e;try{if(existsSync(_0x4582bd)){const _0x141ab8=readFileSync(_0x4582bd,{'encoding':_0xcca81a(0x1e5)});if(_0x141ab8){const _0x253ef3=JSON['parse'](_0x141ab8);return migrateOnlineEnv(_0x4582bd,_0x253ef3),_0x253ef3;}}}catch{}return{};}function migrateOnlineEnv(_0xdbd6a8,_0x1d91b1){const _0x8752b2=a77_0xa8dd1e;let _0x47b177=![];_0x1d91b1['env']===_0x8752b2(0x1a3)&&(_0x1d91b1[_0x8752b2(0x1df)]='production',_0x47b177=!![]);if(_0x1d91b1['apps']&&typeof _0x1d91b1[_0x8752b2(0x1ab)]===_0x8752b2(0x1c3))for(const _0x3fcdf8 of Object[_0x8752b2(0x1a8)](_0x1d91b1[_0x8752b2(0x1ab)])){_0x3fcdf8&&_0x3fcdf8[_0x8752b2(0x1df)]===_0x8752b2(0x1a3)&&(_0x3fcdf8[_0x8752b2(0x1df)]=_0x8752b2(0x1b2),_0x47b177=!![]);}if(_0x47b177)try{writeConfigFile(_0xdbd6a8,_0x1d91b1);}catch{}}export function writeConfigFile(_0x15a781,_0x31956c){const _0x3219c3=a77_0xa8dd1e,_0x4f8733=dirname(_0x15a781);!existsSync(_0x4f8733)&&mkdirSync(_0x4f8733,{'recursive':!![]});const _0x533789=_0x15a781+_0x3219c3(0x1c8);try{writeFileSync(_0x533789,JSON[_0x3219c3(0x1cd)](_0x31956c,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x533789,_0x15a781);}catch(_0x5e793c){if(_0x5e793c[_0x3219c3(0x1c2)]===_0x3219c3(0x1cc)||_0x5e793c[_0x3219c3(0x1c2)]===_0x3219c3(0x1d7)||_0x5e793c[_0x3219c3(0x1c2)]===_0x3219c3(0x1b6)){writeFileSync(_0x15a781,JSON['stringify'](_0x31956c,null,0x2)+'\x0a',{'encoding':_0x3219c3(0x1e5)});try{unlinkSync(_0x533789);}catch{}}else throw _0x5e793c;}}catch(_0x18e13e){try{unlinkSync(_0x533789);}catch{}throw _0x18e13e;}}export function isNonInteractiveMode(_0x4e56a){const _0x413409=a77_0xa8dd1e;return!!(_0x4e56a[_0x413409(0x1a5)]||_0x4e56a['ci']||productEnvNames('CI')[_0x413409(0x1da)](_0x120b7c=>process.env[_0x120b7c]===_0x413409(0x1e2))||process.env.CI==='true'||!process['stdout'][_0x413409(0x1bb)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x28bcf6=a77_0xa8dd1e;if(!process[_0x28bcf6(0x1a6)][_0x28bcf6(0x1bb)])return![];try{const _0xcb52c1=process['stdin'][_0x28bcf6(0x1eb)];return process['stdin'][_0x28bcf6(0x1b0)](!![]),process[_0x28bcf6(0x1a6)][_0x28bcf6(0x1b0)](_0xcb52c1??![]),!![];}catch{return![];}}export async function createContext(_0x4a15f0){const _0x140438=a77_0xa8dd1e,_0x1bd6c8=readRawConfig(),_0x365ab9=buildConfig(_0x1bd6c8,_0x4a15f0);await initGlobalEnvironment(_0x365ab9);const {getUserDomain:_0x240b9d,getApiDomain:_0x1d6c35}=await import('./constant/domain.js'),_0x14a9ec={'apiDomain':_0x1d6c35(),'userDomain':_0x240b9d()},_0xabb4ab=await buildAuth(_0x365ab9);logger[_0x140438(0x1a1)](process[_0x140438(0x1db)]());const _0x40d90d=(CLI_BIN_NAME+'\x20'+process[_0x140438(0x1bd)][_0x140438(0x1d3)](0x2)['join']('\x20'))[_0x140438(0x1b8)]();logger[_0x140438(0x1ca)](_0x40d90d);const _0x22a307=isNonInteractiveMode(_0x4a15f0);return{'config':_0x365ab9,'auth':_0xabb4ab,'logger':logger,'env':_0x14a9ec,'nonInteractive':_0x22a307};}export function buildConfigFromFlags(_0x547f67){return buildConfig(readRawConfig(),_0x547f67);}export function getLocalAppAliases(_0x43526f){const _0x743fc1=a77_0xa8dd1e;return _0x43526f['apps']&&typeof _0x43526f[_0x743fc1(0x1ab)]===_0x743fc1(0x1c3)?_0x43526f[_0x743fc1(0x1ab)]:{};}export function resolveLocalAppAliasCode(_0x16caba,_0x3194f5){const _0x2aa3d9=a77_0xa8dd1e;if(!_0x3194f5)return undefined;const _0xa858b1=getLocalAppAliases(_0x16caba)[_0x3194f5],_0x3dcf5f=_0xa858b1?.[_0x2aa3d9(0x1cf)];return typeof _0x3dcf5f===_0x2aa3d9(0x1c5)&&_0x3dcf5f[_0x2aa3d9(0x1b8)]()?_0x3dcf5f[_0x2aa3d9(0x1b8)]():undefined;}export function readAppCodeFromConfig(){const _0x5980b5=a77_0xa8dd1e,_0x292829=readRawConfig(),_0x1f9c84=_0x292829[_0x5980b5(0x1cf)]??_0x292829[_0x5980b5(0x1e6)];if(typeof _0x1f9c84===_0x5980b5(0x1c5)&&_0x1f9c84[_0x5980b5(0x1b8)]())return _0x1f9c84[_0x5980b5(0x1b8)]();const _0x3cac47=resolveLocalAppAliasCode(_0x292829,typeof _0x292829[_0x5980b5(0x1bc)]===_0x5980b5(0x1c5)?_0x292829[_0x5980b5(0x1bc)]:undefined);if(_0x3cac47)return _0x3cac47;const _0x36395c=normalizeEnv(String(_0x292829[_0x5980b5(0x1df)]||_0x5980b5(0x1b2))),_0xb83a00=isDaily(_0x36395c)?_0x5980b5(0x1ba):isDev(_0x36395c)?_0x5980b5(0x1a4):_0x5980b5(0x1b2),_0x479993=resolveCachedAppCode(typeof _0x292829[_0x5980b5(0x1bc)]===_0x5980b5(0x1c5)?_0x292829[_0x5980b5(0x1bc)]:undefined,_0xb83a00,typeof _0x292829['accessKey']===_0x5980b5(0x1c5)?_0x292829[_0x5980b5(0x1b4)]:undefined);if(_0x479993)return _0x479993;const _0x367265=Object[_0x5980b5(0x1a8)](getLocalAppAliases(_0x292829))['find'](_0x4bd8f0=>_0x4bd8f0?.[_0x5980b5(0x1cf)]);return typeof _0x367265?.[_0x5980b5(0x1cf)]===_0x5980b5(0x1c5)&&_0x367265[_0x5980b5(0x1cf)][_0x5980b5(0x1b8)]()?_0x367265[_0x5980b5(0x1cf)]['trim']():undefined;}export function readScopedConfig(_0x5282b5){const _0xda4243=a77_0xa8dd1e,_0x360b12=_0x5282b5[_0xda4243(0x1e4)]?_0xda4243(0x1e4):_0xda4243(0x1d5);return readConfigFile(resolveWriteConfigPath(_0x360b12));}export function writeScopedConfig(_0x1deaf1,_0x114fe9){const _0x41ec4d=a77_0xa8dd1e,_0x25fd92=_0x114fe9[_0x41ec4d(0x1e4)]?_0x41ec4d(0x1e4):'project';writeConfigFile(resolveWriteConfigPath(_0x25fd92),_0x1deaf1);}export async function initGlobalEnvironment(_0x1c8233){const _0x42fb1d=a77_0xa8dd1e,{initEnv:_0x83f69c}=await import('./constant/env.js');_0x83f69c(_0x1c8233[_0x42fb1d(0x1df)]);const {initDomains:_0x266289}=await import(_0x42fb1d(0x1c9));_0x266289({'apiDomain':_0x1c8233[_0x42fb1d(0x1af)][_0x42fb1d(0x1dc)]||_0x1c8233[_0x42fb1d(0x1af)][_0x42fb1d(0x1d0)]||undefined,'userDomain':_0x1c8233[_0x42fb1d(0x1af)][_0x42fb1d(0x1e9)]||undefined,'runtimeDomain':_0x1c8233['raw']['runtimeDomain']||undefined,'skillHubDomain':_0x1c8233[_0x42fb1d(0x1af)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){const _0x1eb633=a77_0xa8dd1e;return resolveConfigPath(process[_0x1eb633(0x1db)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2cf509){const _0x1ec6ca=a77_0xa8dd1e;if(!existsSync(_0x2cf509))return{'status':_0x1ec6ca(0x1e8)};try{const _0x1d7cb5=readFileSync(_0x2cf509,{'encoding':'utf8'});if(!_0x1d7cb5?.[_0x1ec6ca(0x1b8)]())return{'status':_0x1ec6ca(0x1d2)};const _0x323329=JSON['parse'](_0x1d7cb5);return{'status':'ok','data':_0x323329};}catch(_0x573c00){return{'status':_0x1ec6ca(0x1b9),'message':_0x573c00 instanceof Error?_0x573c00[_0x1ec6ca(0x1c4)]:String(_0x573c00)};}}export function loadRawConfigLayers(_0x2a12ea){const _0x25d5a1=a77_0xa8dd1e;let _0x5e5358={},_0x536ebb={},_0x1a5a57,_0x2b8d74;try{_0x1a5a57=resolveConfigPath(homedir());if(_0x1a5a57){const _0x3fd38a=readFileSync(_0x1a5a57,{'encoding':_0x25d5a1(0x1e5)});if(_0x3fd38a)_0x5e5358=JSON['parse'](_0x3fd38a);}}catch{}try{const _0x178603=_0x2a12ea||process[_0x25d5a1(0x1db)]();_0x2b8d74=resolveConfigPath(_0x178603);if(_0x2b8d74){const _0x5656be=readFileSync(_0x2b8d74,{'encoding':'utf8'});if(_0x5656be)_0x536ebb=JSON['parse'](_0x5656be);}}catch{}return{'globalPath':_0x1a5a57,'projectPath':_0x2b8d74,'globalConfig':_0x5e5358,'projectConfig':_0x536ebb};}function mergeRawConfigLayers(_0x16c686){const _0x290159=a77_0xa8dd1e,{globalConfig:_0x29e080,projectConfig:_0x3a7858}=_0x16c686;if(_0x3a7858['inherit']===![]){const _0x298912={..._0x3a7858};return delete _0x298912[_0x290159(0x1d6)],_0x298912;}const _0x33cec4={..._0x29e080,..._0x3a7858};if(_0x290159(0x1bc)in _0x3a7858)_0x33cec4[_0x290159(0x1bc)]=_0x3a7858[_0x290159(0x1bc)];else _0x29e080[_0x290159(0x1bc)]&&(_0x33cec4[_0x290159(0x1bc)]=_0x29e080[_0x290159(0x1bc)]);return _0x33cec4;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5a4609){return mergeRawConfigLayers(loadRawConfigLayers(_0x5a4609));}export function readRawConfigWithLayers(_0x1cff28){const _0x5c47fc=loadRawConfigLayers(_0x1cff28);return{'config':mergeRawConfigLayers(_0x5c47fc),'layers':_0x5c47fc};}export function resolveDefaultAppSource(_0x265ad5){const _0x9decd6=a77_0xa8dd1e;if(_0x9decd6(0x1bc)in _0x265ad5[_0x9decd6(0x1ad)])return _0x9decd6(0x1d5);if(_0x265ad5[_0x9decd6(0x1ad)][_0x9decd6(0x1d6)]===![])return null;if(_0x265ad5[_0x9decd6(0x1b5)][_0x9decd6(0x1bc)])return _0x9decd6(0x1e4);return null;}function buildConfig(_0x7e2281,_0x5de7a0){const _0x474a4e=a77_0xa8dd1e,_0x5840ff=_0x7e2281[_0x474a4e(0x1bc)]||undefined,_0x160f3f=_0x5de7a0[_0x474a4e(0x1e6)]||env(_0x474a4e(0x1a0))||undefined,_0x55db6e=_0x160f3f||_0x5840ff||undefined,_0x4e94ff=env(_0x474a4e(0x1a7))||_0x7e2281[_0x474a4e(0x1b4)]||undefined,_0x535da1=_0x5de7a0[_0x474a4e(0x1df)]||env(_0x474a4e(0x1a2))||_0x7e2281[_0x474a4e(0x1df)]||DEFAULT_CONFIG_VALUES[_0x474a4e(0x1df)],_0x48116b=normalizeEnv(String(_0x535da1)),_0x9d0ae4=isDaily(_0x48116b)?_0x474a4e(0x1ba):isDev(_0x48116b)?'development':_0x474a4e(0x1b2),_0x57a2c6=typeof _0x5de7a0[_0x474a4e(0x1cf)]===_0x474a4e(0x1c5)?_0x5de7a0[_0x474a4e(0x1cf)]:undefined,_0x28fc33=env('APPCODE'),_0x796a96=_0x160f3f?undefined:_0x7e2281[_0x474a4e(0x1cf)]||_0x7e2281['app']||undefined,_0x44884e=_0x160f3f||(_0x796a96?undefined:_0x5840ff),_0x140956=resolveLocalAppAliasCode(_0x7e2281,_0x44884e),_0x978195=resolveCachedAppCode(_0x44884e,_0x9d0ae4,_0x4e94ff),_0x55eeb9=_0x57a2c6||_0x28fc33||_0x796a96||_0x140956||_0x978195||undefined,_0x3b924d=_0x57a2c6?_0x474a4e(0x1ae):_0x28fc33?_0x474a4e(0x1df):_0x796a96?_0x474a4e(0x1e0):_0x140956?'local-alias':_0x978195?_0x474a4e(0x1d9):undefined,_0x6c9bad=_0x7e2281[_0x474a4e(0x19f)]||DEFAULT_CONFIG_VALUES['locale'],_0x825ef0=undefined,_0xcd2ac7=_0x5de7a0[_0x474a4e(0x1d4)]||env(_0x474a4e(0x1c1))||_0x7e2281[_0x474a4e(0x1d4)],_0xea8bba=normalizeLegacyOutputFormat(_0xcd2ac7),_0x19b15a=env(_0x474a4e(0x1c0))||_0x7e2281[_0x474a4e(0x1c6)],_0x2c1aed=_0x19b15a?Number(_0x19b15a)||undefined:undefined,_0x4a3175=_0x7e2281[_0x474a4e(0x1e1)]||_0x7e2281['maxRisk'],_0x484f77=_0x4a3175===_0x474a4e(0x1a9)||_0x4a3175===_0x474a4e(0x1b7)||_0x4a3175===_0x474a4e(0x1ac)?_0x4a3175:DEFAULT_CONFIG_VALUES[_0x474a4e(0x1e1)],_0x5dfe70=env(_0x474a4e(0x1de)),_0x1458d5=_0x5dfe70==='1'||_0x5dfe70==='true';return{'appCode':typeof _0x55eeb9===_0x474a4e(0x1c5)&&_0x55eeb9[_0x474a4e(0x1b8)]()?_0x55eeb9[_0x474a4e(0x1b8)]():undefined,'appCodeSource':_0x3b924d,'env':_0x9d0ae4,'locale':_0x6c9bad,'cookie':_0x825ef0,'accessKey':_0x4e94ff,'format':_0xea8bba,'pageSize':_0x2c1aed,'riskLevel':_0x484f77,'verbose':_0x1458d5,'defaultApp':_0x5840ff,'currentApp':typeof _0x55db6e===_0x474a4e(0x1c5)?_0x55db6e:undefined,'raw':_0x7e2281};}function env(_0x49babf){return productEnv(_0x49babf);}async function buildAuth(_0x2e39e3){const _0x1e8972='',_0xd24c4=!!_0x2e39e3['accessKey'];return{'cookie':_0x1e8972,'isLoggedIn':_0xd24c4,async 'getOrLogin'(){const _0x205504=a77_0x2d4a;if(_0xd24c4)return _0x1e8972;throw CliErrors[_0x205504(0x1dd)]();}};}
|
|
1
|
+
const a77_0x4e0dc1=a77_0x837d;(function(_0x11ce30,_0x1adb8e){const _0x5502c1=a77_0x837d,_0xb9c443=_0x11ce30();while(!![]){try{const _0x2ccfe7=-parseInt(_0x5502c1(0xd6))/0x1*(-parseInt(_0x5502c1(0xd0))/0x2)+-parseInt(_0x5502c1(0x10d))/0x3*(-parseInt(_0x5502c1(0xe3))/0x4)+parseInt(_0x5502c1(0xf9))/0x5+parseInt(_0x5502c1(0x106))/0x6+parseInt(_0x5502c1(0xfd))/0x7+-parseInt(_0x5502c1(0xfb))/0x8*(-parseInt(_0x5502c1(0xcb))/0x9)+-parseInt(_0x5502c1(0xc8))/0xa;if(_0x2ccfe7===_0x1adb8e)break;else _0xb9c443['push'](_0xb9c443['shift']());}catch(_0x2c08b8){_0xb9c443['push'](_0xb9c443['shift']());}}}(a77_0x2ed6,0x762d4));function a77_0x837d(_0x53ac7b,_0x5c4a08){_0x53ac7b=_0x53ac7b-0xc1;const _0x2ed6de=a77_0x2ed6();let _0x837dfc=_0x2ed6de[_0x53ac7b];return _0x837dfc;}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';function a77_0x2ed6(){const _0x4cce6d=['true','EXDEV','45bFXQOf','missing','format','high-risk-write','projectConfig','8AytgzO','stdin','stdout','APPCODE','defaultApp','setRawCommand','57586sgELAI','setRawMode','./constant/env.js','riskLevel','globalConfig','locale','online','find','global','nonInteractive','production','EACCES','write','744uNeRkR','argv','development','error','EPERM','FORMAT','pageSize','project','raw','object','read','PAGE_SIZE','slice','apiDomain','authRequired','local-alias','empty','.tmp','ENV','skillHubDomain','VERBOSE','top-level','1801730CPTVAX','env','873128OnkQcY','trim','1792161iXaJVP','apps','cwd','inherit','join','userDomain','app','utf8','maxRisk','446610cyKWjX','appcode','stringify','code','./constant/domain.js','parse','configFileNames','14958juxROH','newConfigFileName','values','isTTY','accessKey','daily','string','explicit','19101970lHzHWf'];a77_0x2ed6=function(){return _0x4cce6d;};return a77_0x2ed6();}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_0x4e0dc1(0x10c)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x4e0dc1(0xc1)];function resolveConfigPath(_0x315a96){for(const _0xaae0ab of CONFIG_NAMES){const _0x3fd65b=resolve(_0x315a96,_0xaae0ab);if(existsSync(_0x3fd65b))return _0x3fd65b;}return undefined;}export function resolveWriteConfigPath(_0x2aeefc){const _0x1c73ab=a77_0x4e0dc1,_0x3414ca=_0x2aeefc==='project'?process[_0x1c73ab(0xff)]():homedir(),_0x43d91a=resolveConfigPath(_0x3414ca);return _0x43d91a??resolve(_0x3414ca,NEW_CONFIG_NAME);}export function readConfigFile(_0x33e808){const _0x11cb8d=a77_0x4e0dc1;try{if(existsSync(_0x33e808)){const _0x4ad47e=readFileSync(_0x33e808,{'encoding':_0x11cb8d(0x104)});if(_0x4ad47e){const _0x32608d=JSON['parse'](_0x4ad47e);return migrateOnlineEnv(_0x33e808,_0x32608d),_0x32608d;}}}catch{}return{};}function migrateOnlineEnv(_0x54ce5c,_0xa7ff68){const _0x5e5d45=a77_0x4e0dc1;let _0x207d16=![];_0xa7ff68[_0x5e5d45(0xfa)]===_0x5e5d45(0xdc)&&(_0xa7ff68[_0x5e5d45(0xfa)]=_0x5e5d45(0xe0),_0x207d16=!![]);if(_0xa7ff68[_0x5e5d45(0xfe)]&&typeof _0xa7ff68[_0x5e5d45(0xfe)]==='object')for(const _0x1be2c6 of Object[_0x5e5d45(0xc2)](_0xa7ff68[_0x5e5d45(0xfe)])){_0x1be2c6&&_0x1be2c6['env']===_0x5e5d45(0xdc)&&(_0x1be2c6[_0x5e5d45(0xfa)]='production',_0x207d16=!![]);}if(_0x207d16)try{writeConfigFile(_0x54ce5c,_0xa7ff68);}catch{}}export function writeConfigFile(_0x3ce133,_0x2c566f){const _0x616bcb=a77_0x4e0dc1,_0x159453=dirname(_0x3ce133);!existsSync(_0x159453)&&mkdirSync(_0x159453,{'recursive':!![]});const _0x2cd0ea=_0x3ce133+_0x616bcb(0xf4);try{writeFileSync(_0x2cd0ea,JSON[_0x616bcb(0x108)](_0x2c566f,null,0x2)+'\x0a',{'encoding':_0x616bcb(0x104),'mode':0x180});try{renameSync(_0x2cd0ea,_0x3ce133);}catch(_0xa96864){if(_0xa96864[_0x616bcb(0x109)]===_0x616bcb(0xe7)||_0xa96864[_0x616bcb(0x109)]===_0x616bcb(0xca)||_0xa96864[_0x616bcb(0x109)]===_0x616bcb(0xe1)){writeFileSync(_0x3ce133,JSON[_0x616bcb(0x108)](_0x2c566f,null,0x2)+'\x0a',{'encoding':_0x616bcb(0x104)});try{unlinkSync(_0x2cd0ea);}catch{}}else throw _0xa96864;}}catch(_0x55b196){try{unlinkSync(_0x2cd0ea);}catch{}throw _0x55b196;}}export function isNonInteractiveMode(_0x5d06af){const _0x4a6c56=a77_0x4e0dc1;return!!(_0x5d06af[_0x4a6c56(0xdf)]||_0x5d06af['ci']||productEnvNames('CI')['some'](_0x3dc516=>process.env[_0x3dc516]===_0x4a6c56(0xc9))||process.env.CI===_0x4a6c56(0xc9)||!process[_0x4a6c56(0xd2)][_0x4a6c56(0xc3)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x514174=a77_0x4e0dc1;if(!process['stdin'][_0x514174(0xc3)])return![];try{const _0x5440f9=process[_0x514174(0xd1)]['isRaw'];return process[_0x514174(0xd1)][_0x514174(0xd7)](!![]),process['stdin'][_0x514174(0xd7)](_0x5440f9??![]),!![];}catch{return![];}}export async function createContext(_0x5eb6f4){const _0x1aee7f=a77_0x4e0dc1,_0x16eef0=readRawConfig(),_0x453d6f=buildConfig(_0x16eef0,_0x5eb6f4);await initGlobalEnvironment(_0x453d6f);const {getUserDomain:_0x304661,getApiDomain:_0x5cbae0}=await import('./constant/domain.js'),_0x4eae99={'apiDomain':_0x5cbae0(),'userDomain':_0x304661()},_0x59bdb9=await buildAuth(_0x453d6f);logger['setLogPath'](process[_0x1aee7f(0xff)]());const _0x49ad41=(CLI_BIN_NAME+'\x20'+process[_0x1aee7f(0xe4)][_0x1aee7f(0xef)](0x2)[_0x1aee7f(0x101)]('\x20'))[_0x1aee7f(0xfc)]();logger[_0x1aee7f(0xd5)](_0x49ad41);const _0x20de22=isNonInteractiveMode(_0x5eb6f4);return{'config':_0x453d6f,'auth':_0x59bdb9,'logger':logger,'env':_0x4eae99,'nonInteractive':_0x20de22};}export function buildConfigFromFlags(_0x4027b1){return buildConfig(readRawConfig(),_0x4027b1);}export function getLocalAppAliases(_0x37b69a){const _0x20a6cc=a77_0x4e0dc1;return _0x37b69a[_0x20a6cc(0xfe)]&&typeof _0x37b69a['apps']===_0x20a6cc(0xec)?_0x37b69a[_0x20a6cc(0xfe)]:{};}export function resolveLocalAppAliasCode(_0x484ab1,_0x5b2747){const _0x5765df=a77_0x4e0dc1;if(!_0x5b2747)return undefined;const _0x3c04c5=getLocalAppAliases(_0x484ab1)[_0x5b2747],_0x3b811f=_0x3c04c5?.[_0x5765df(0x107)];return typeof _0x3b811f===_0x5765df(0xc6)&&_0x3b811f[_0x5765df(0xfc)]()?_0x3b811f['trim']():undefined;}export function readAppCodeFromConfig(){const _0x51030f=a77_0x4e0dc1,_0x505883=readRawConfig(),_0x41d924=_0x505883[_0x51030f(0x107)]??_0x505883[_0x51030f(0x103)];if(typeof _0x41d924===_0x51030f(0xc6)&&_0x41d924[_0x51030f(0xfc)]())return _0x41d924[_0x51030f(0xfc)]();const _0x4d94a5=resolveLocalAppAliasCode(_0x505883,typeof _0x505883[_0x51030f(0xd4)]===_0x51030f(0xc6)?_0x505883[_0x51030f(0xd4)]:undefined);if(_0x4d94a5)return _0x4d94a5;const _0x39cb89=normalizeEnv(String(_0x505883[_0x51030f(0xfa)]||_0x51030f(0xe0))),_0x48abde=isDaily(_0x39cb89)?_0x51030f(0xc5):isDev(_0x39cb89)?_0x51030f(0xe5):_0x51030f(0xe0),_0x43c2a3=resolveCachedAppCode(typeof _0x505883[_0x51030f(0xd4)]===_0x51030f(0xc6)?_0x505883[_0x51030f(0xd4)]:undefined,_0x48abde,typeof _0x505883['accessKey']===_0x51030f(0xc6)?_0x505883[_0x51030f(0xc4)]:undefined);if(_0x43c2a3)return _0x43c2a3;const _0x45e44d=Object[_0x51030f(0xc2)](getLocalAppAliases(_0x505883))[_0x51030f(0xdd)](_0x5c7538=>_0x5c7538?.[_0x51030f(0x107)]);return typeof _0x45e44d?.[_0x51030f(0x107)]===_0x51030f(0xc6)&&_0x45e44d[_0x51030f(0x107)][_0x51030f(0xfc)]()?_0x45e44d[_0x51030f(0x107)][_0x51030f(0xfc)]():undefined;}export function readScopedConfig(_0x1ccd4b){const _0x22a311=a77_0x4e0dc1,_0x1ec17=_0x1ccd4b[_0x22a311(0xde)]?_0x22a311(0xde):_0x22a311(0xea);return readConfigFile(resolveWriteConfigPath(_0x1ec17));}export function writeScopedConfig(_0x2680be,_0x4912a3){const _0x3ee212=a77_0x4e0dc1,_0x133850=_0x4912a3[_0x3ee212(0xde)]?'global':_0x3ee212(0xea);writeConfigFile(resolveWriteConfigPath(_0x133850),_0x2680be);}export async function initGlobalEnvironment(_0x268ca3){const _0x39b221=a77_0x4e0dc1,{initEnv:_0x1043d1}=await import(_0x39b221(0xd8));_0x1043d1(_0x268ca3[_0x39b221(0xfa)]);const {initDomains:_0x24cc3d}=await import(_0x39b221(0x10a));_0x24cc3d({'apiDomain':_0x268ca3['raw'][_0x39b221(0xf0)]||_0x268ca3[_0x39b221(0xeb)]['host']||undefined,'userDomain':_0x268ca3[_0x39b221(0xeb)][_0x39b221(0x102)]||undefined,'runtimeDomain':_0x268ca3[_0x39b221(0xeb)]['runtimeDomain']||undefined,'skillHubDomain':_0x268ca3[_0x39b221(0xeb)][_0x39b221(0xf6)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2e2fe3){const _0x350135=a77_0x4e0dc1;if(!existsSync(_0x2e2fe3))return{'status':_0x350135(0xcc)};try{const _0x2880e2=readFileSync(_0x2e2fe3,{'encoding':_0x350135(0x104)});if(!_0x2880e2?.['trim']())return{'status':_0x350135(0xf3)};const _0x2a470d=JSON[_0x350135(0x10b)](_0x2880e2);return{'status':'ok','data':_0x2a470d};}catch(_0x39efd2){return{'status':_0x350135(0xe6),'message':_0x39efd2 instanceof Error?_0x39efd2['message']:String(_0x39efd2)};}}export function loadRawConfigLayers(_0x541262){const _0x144fd3=a77_0x4e0dc1;let _0x4b8438={},_0x29ca48={},_0xf163a,_0x4ec371;try{_0xf163a=resolveConfigPath(homedir());if(_0xf163a){const _0x5dda1a=readFileSync(_0xf163a,{'encoding':_0x144fd3(0x104)});if(_0x5dda1a)_0x4b8438=JSON[_0x144fd3(0x10b)](_0x5dda1a);}}catch{}try{const _0x31c012=_0x541262||process[_0x144fd3(0xff)]();_0x4ec371=resolveConfigPath(_0x31c012);if(_0x4ec371){const _0x286370=readFileSync(_0x4ec371,{'encoding':'utf8'});if(_0x286370)_0x29ca48=JSON[_0x144fd3(0x10b)](_0x286370);}}catch{}return{'globalPath':_0xf163a,'projectPath':_0x4ec371,'globalConfig':_0x4b8438,'projectConfig':_0x29ca48};}function mergeRawConfigLayers(_0x1a09b0){const _0x61136b=a77_0x4e0dc1,{globalConfig:_0x283453,projectConfig:_0x5ccb4b}=_0x1a09b0;if(_0x5ccb4b[_0x61136b(0x100)]===![]){const _0x279d11={..._0x5ccb4b};return delete _0x279d11[_0x61136b(0x100)],_0x279d11;}const _0x57ba00={..._0x283453,..._0x5ccb4b};if(_0x61136b(0xd4)in _0x5ccb4b)_0x57ba00[_0x61136b(0xd4)]=_0x5ccb4b[_0x61136b(0xd4)];else _0x283453[_0x61136b(0xd4)]&&(_0x57ba00[_0x61136b(0xd4)]=_0x283453[_0x61136b(0xd4)]);return _0x57ba00;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5c0f44){return mergeRawConfigLayers(loadRawConfigLayers(_0x5c0f44));}export function readRawConfigWithLayers(_0x46ba68){const _0x89253b=loadRawConfigLayers(_0x46ba68);return{'config':mergeRawConfigLayers(_0x89253b),'layers':_0x89253b};}export function resolveDefaultAppSource(_0x7f5e63){const _0x46fe64=a77_0x4e0dc1;if(_0x46fe64(0xd4)in _0x7f5e63[_0x46fe64(0xcf)])return'project';if(_0x7f5e63[_0x46fe64(0xcf)]['inherit']===![])return null;if(_0x7f5e63[_0x46fe64(0xda)][_0x46fe64(0xd4)])return _0x46fe64(0xde);return null;}function buildConfig(_0x1fb027,_0x37fde1){const _0x11d438=a77_0x4e0dc1,_0x2f55f5=_0x1fb027[_0x11d438(0xd4)]||undefined,_0x35888e=_0x37fde1[_0x11d438(0x103)]||env('APP')||undefined,_0x24d233=_0x35888e||_0x2f55f5||undefined,_0x2f9a9f=env('ACCESS_KEY')||_0x1fb027[_0x11d438(0xc4)]||undefined,_0x1fc5c8=_0x37fde1['env']||env(_0x11d438(0xf5))||_0x1fb027['env']||DEFAULT_CONFIG_VALUES[_0x11d438(0xfa)],_0x50a2b8=normalizeEnv(String(_0x1fc5c8)),_0x1932ce=isDaily(_0x50a2b8)?_0x11d438(0xc5):isDev(_0x50a2b8)?_0x11d438(0xe5):_0x11d438(0xe0),_0x293400=typeof _0x37fde1['appcode']===_0x11d438(0xc6)?_0x37fde1[_0x11d438(0x107)]:undefined,_0x1dfce6=env(_0x11d438(0xd3)),_0x583299=_0x35888e?undefined:_0x1fb027['appcode']||_0x1fb027['app']||undefined,_0x522de3=_0x35888e||(_0x583299?undefined:_0x2f55f5),_0x40b5d1=resolveLocalAppAliasCode(_0x1fb027,_0x522de3),_0x2c50a5=resolveCachedAppCode(_0x522de3,_0x1932ce,_0x2f9a9f),_0x268d7d=_0x293400||_0x1dfce6||_0x583299||_0x40b5d1||_0x2c50a5||undefined,_0x448de5=_0x293400?_0x11d438(0xc7):_0x1dfce6?_0x11d438(0xfa):_0x583299?_0x11d438(0xf8):_0x40b5d1?_0x11d438(0xf2):_0x2c50a5?'cache':undefined,_0x39f20f=_0x1fb027[_0x11d438(0xdb)]||DEFAULT_CONFIG_VALUES['locale'],_0x12bcaf=undefined,_0x3b965a=_0x37fde1[_0x11d438(0xcd)]||env(_0x11d438(0xe8))||_0x1fb027[_0x11d438(0xcd)],_0x1f7739=normalizeLegacyOutputFormat(_0x3b965a),_0x3d3a57=env(_0x11d438(0xee))||_0x1fb027[_0x11d438(0xe9)],_0x1ddb53=_0x3d3a57?Number(_0x3d3a57)||undefined:undefined,_0x30fd29=_0x1fb027[_0x11d438(0xd9)]||_0x1fb027[_0x11d438(0x105)],_0x29bd6b=_0x30fd29===_0x11d438(0xed)||_0x30fd29===_0x11d438(0xe2)||_0x30fd29===_0x11d438(0xce)?_0x30fd29:DEFAULT_CONFIG_VALUES['riskLevel'],_0x5f2607=env(_0x11d438(0xf7)),_0x276c99=_0x5f2607==='1'||_0x5f2607===_0x11d438(0xc9);return{'appCode':typeof _0x268d7d===_0x11d438(0xc6)&&_0x268d7d[_0x11d438(0xfc)]()?_0x268d7d[_0x11d438(0xfc)]():undefined,'appCodeSource':_0x448de5,'env':_0x1932ce,'locale':_0x39f20f,'cookie':_0x12bcaf,'accessKey':_0x2f9a9f,'format':_0x1f7739,'pageSize':_0x1ddb53,'riskLevel':_0x29bd6b,'verbose':_0x276c99,'defaultApp':_0x2f55f5,'currentApp':typeof _0x24d233==='string'?_0x24d233:undefined,'raw':_0x1fb027};}function env(_0x5f553d){return productEnv(_0x5f553d);}async function buildAuth(_0xc50b6a){const _0x4eb491=a77_0x4e0dc1,_0x3eb4f2='',_0x15c9c0=!!_0xc50b6a[_0x4eb491(0xc4)];return{'cookie':_0x3eb4f2,'isLoggedIn':_0x15c9c0,async 'getOrLogin'(){const _0x8f088f=_0x4eb491;if(_0x15c9c0)return _0x3eb4f2;throw CliErrors[_0x8f088f(0xf1)]();}};}
|