@lovrabet/lovrabet-cli 2.1.22 → 2.1.23-beta.2
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.d.ts +4 -8
- 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.d.ts +1 -16
- 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.d.ts +2 -2
- 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.d.ts +4 -8
- 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.d.ts +6 -24
- 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.d.ts +7 -0
- 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.d.ts +5 -5
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.d.ts +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.d.ts +2 -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
|
-
function
|
|
1
|
+
const a64_0x2bafa8=a64_0x2e68;(function(_0x35425e,_0x3e2b7c){const _0x12fe6f=a64_0x2e68,_0x4ef924=_0x35425e();while(!![]){try{const _0x345234=-parseInt(_0x12fe6f(0x74))/0x1*(-parseInt(_0x12fe6f(0x84))/0x2)+-parseInt(_0x12fe6f(0xa1))/0x3*(parseInt(_0x12fe6f(0x90))/0x4)+parseInt(_0x12fe6f(0x87))/0x5+-parseInt(_0x12fe6f(0x76))/0x6*(-parseInt(_0x12fe6f(0x8c))/0x7)+parseInt(_0x12fe6f(0xa7))/0x8*(-parseInt(_0x12fe6f(0x9c))/0x9)+-parseInt(_0x12fe6f(0x9f))/0xa*(-parseInt(_0x12fe6f(0x93))/0xb)+parseInt(_0x12fe6f(0x85))/0xc*(-parseInt(_0x12fe6f(0xab))/0xd);if(_0x345234===_0x3e2b7c)break;else _0x4ef924['push'](_0x4ef924['shift']());}catch(_0x37ec53){_0x4ef924['push'](_0x4ef924['shift']());}}}(a64_0x1548,0x58fe8));import{CLI_BIN_NAME}from'../../constant/cli.js';function a64_0x1548(){const _0x4d7ad7=['96jqOcbg','84GXtPGb','Workspace\x20app\x20context\x20is\x20not\x20initialized.','1636345SOBrkK','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','Usage:\x20','\x20workspace\x20','Use\x20`','35RUToPZ','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','28yXHyrm','command','join','2532178CUhAJb','env','write','Run\x20`','\x20--appcode\x20<code>\x20[--env\x20daily]','accessKey','object','Conflicting\x20workspace\x20app\x20selectors.','isArray','9kdfccy','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','appCode','20MaplQJ','length','78747fLzswD','filter','appcode','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','trim','1732264VPtZLB','items','map','defaultApp','1573663VVCPKd','Target\x20environment','appName','use','validation','../../commands/app/remote-source.js','authRequired','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','apps','Available\x20apps:\x20','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','10991rsfDkT','from','356304TPLjDk','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','project','app','init','workspace','str','workspace\x20','\x0aAccessKey:\x20not\x20written','Workspace\x20app\x20context\x20is\x20already\x20initialized.','string','\x22.\x20Allowed:\x20','envName','../../core/api-client.js'];a64_0x1548=function(){return _0x4d7ad7;};return a64_0x1548();}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';function a64_0x2e68(_0x27b970,_0x29638d){_0x27b970=_0x27b970-0x72;const _0x15482a=a64_0x1548();let _0x2e6821=_0x15482a[_0x27b970];return _0x2e6821;}import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':'string','description':a64_0x2bafa8(0x77)},{'name':a64_0x2bafa8(0xa3),'type':'string','description':'App\x20code\x20to\x20bind\x20directly'},{'name':'env','type':a64_0x2bafa8(0x80),'description':a64_0x2bafa8(0xac),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x26dc90,_0x3b41ea){const _0x10dcef=a64_0x2bafa8,_0x571392=_0x26dc90['str']('app')[_0x10dcef(0xa6)](),_0x5ea496=_0x26dc90[_0x10dcef(0x7c)](_0x10dcef(0xa3))[_0x10dcef(0xa6)](),_0xc050fe=_0x26dc90[_0x10dcef(0x7c)]('env')[_0x10dcef(0xa6)](),_0x17e89a=resolveWorkspaceEnv(_0xc050fe||_0x26dc90[_0x10dcef(0x82)]||DEFAULT_CONFIG_VALUES[_0x10dcef(0x94)]);if(!_0x571392&&!_0x5ea496)throw CliErrors[_0x10dcef(0xaf)]('Missing\x20workspace\x20app\x20selector.',_0x10dcef(0x89)+CLI_BIN_NAME+_0x10dcef(0x8a)+_0x3b41ea+_0x10dcef(0x88)+CLI_BIN_NAME+'\x20workspace\x20'+_0x3b41ea+_0x10dcef(0x97));if(_0x571392&&_0x5ea496)throw CliErrors['validation'](_0x10dcef(0x9a),_0x10dcef(0x8d));const _0x26b232=resolveWriteConfigPath(_0x10dcef(0x78)),_0x1c461c=readConfigFile(_0x26b232);assertWorkspaceCommandState(_0x3b41ea,_0x1c461c);const _0x47de24=_0x5ea496||await resolveRemoteAppCode({'command':_0x3b41ea,'appName':_0x571392,'env':_0x17e89a,'accessKey':_0x26dc90[_0x10dcef(0x98)]});return writeWorkspaceConfig({'command':_0x3b41ea,'appName':_0x571392,'appcode':_0x47de24,'env':_0x17e89a,'shouldWriteEnv':!!_0xc050fe,'accessKey':_0x26dc90['accessKey']},_0x26b232,_0x1c461c),{'ok':!![],'data':{'configPath':_0x26b232,'app':_0x571392||null,'appcode':_0x47de24,'env':_0xc050fe?_0x17e89a:null,'accessKeyWritten':![],'command':_0x10dcef(0x7d)+_0x3b41ea},'message':buildWorkspaceMessage(_0x26b232,_0x571392,_0x47de24,_0xc050fe?_0x17e89a:undefined)};}async function resolveRemoteAppCode(_0x292fcb){const _0x502233=a64_0x2bafa8;if(!_0x292fcb[_0x502233(0x98)])throw CliErrors[_0x502233(0xb1)](_0x502233(0xb2)+CLI_BIN_NAME+_0x502233(0x8a)+_0x292fcb[_0x502233(0x91)]+'.');const {setActiveAK:_0x5167ba}=await import(_0x502233(0x83)),{getRemoteAppList:_0x2330a2}=await import(_0x502233(0xb0));_0x5167ba(_0x292fcb['accessKey']);const _0x1ada23=await _0x2330a2({'env':_0x292fcb[_0x502233(0x94)],'accessKey':_0x292fcb[_0x502233(0x98)],'noCache':![]}),_0x5f5731=findAppByName(_0x1ada23['items'],_0x292fcb[_0x502233(0xad)]);if(_0x5f5731&&!isRuntimeAccessibleApp(_0x5f5731))throw runtimeInaccessibleAppError(_0x5f5731,'\x22'+_0x292fcb[_0x502233(0xad)]+'\x22');const _0x1640a7=_0x5f5731?.[_0x502233(0x9e)]?.[_0x502233(0xa6)]();if(_0x1640a7)return _0x1640a7;const _0x3a8784=_0x1ada23[_0x502233(0xa8)][_0x502233(0xa9)](_0x5bb33c=>_0x5bb33c['appName'])[_0x502233(0xa2)](Boolean),_0x120e0b=_0x3a8784[_0x502233(0xa0)]?_0x502233(0x72)+Array[_0x502233(0x75)](new Set(_0x3a8784))[_0x502233(0x92)](',\x20')+'.':_0x502233(0x96)+CLI_BIN_NAME+_0x502233(0xa4);throw CliErrors[_0x502233(0xaf)]('App\x20\x22'+_0x292fcb[_0x502233(0xad)]+'\x22\x20not\x20found.',_0x120e0b);}function writeWorkspaceConfig(_0xa13416,_0x1f3958,_0x21ab07){const _0x1d21e5=a64_0x2bafa8;_0xa13416['shouldWriteEnv']&&(_0x21ab07[_0x1d21e5(0x94)]=_0xa13416[_0x1d21e5(0x94)]);if(_0xa13416['appName']){const _0x30863c=isRecord(_0x21ab07['apps'])?{..._0x21ab07[_0x1d21e5(0xb3)]}:{},_0x431a20=isRecord(_0x30863c[_0xa13416[_0x1d21e5(0xad)]])?_0x30863c[_0xa13416[_0x1d21e5(0xad)]]:{};return _0x30863c[_0xa13416[_0x1d21e5(0xad)]]={..._0x431a20,'appcode':_0xa13416[_0x1d21e5(0xa3)]},_0x21ab07['apps']=_0x30863c,_0x21ab07[_0x1d21e5(0xaa)]=_0xa13416[_0x1d21e5(0xad)],delete _0x21ab07[_0x1d21e5(0xa3)],delete _0x21ab07['app'],writeAndReturn(_0x1f3958,_0x21ab07);}return _0x21ab07['appcode']=_0xa13416[_0x1d21e5(0xa3)],delete _0x21ab07[_0x1d21e5(0xaa)],delete _0x21ab07[_0x1d21e5(0x79)],writeAndReturn(_0x1f3958,_0x21ab07);}function writeAndReturn(_0x203aa3,_0x51a936){return writeConfigFile(_0x203aa3,_0x51a936),_0x203aa3;}function resolveWorkspaceEnv(_0x17bc3f){const _0x20746e=a64_0x2bafa8;if(RUNTIME_ENV_VALUES['includes'](_0x17bc3f))return _0x17bc3f;throw CliErrors[_0x20746e(0xaf)]('Invalid\x20env\x20\x22'+_0x17bc3f+_0x20746e(0x81)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x4d508b,_0x314072,_0x1fa8e1,_0x1e689c){const _0x359ccb=a64_0x2bafa8,_0x370f6d=_0x314072?_0x314072+'\x20('+_0x1fa8e1+')':_0x1fa8e1,_0x41c882=_0x1e689c?'\x0aEnv:\x20'+_0x1e689c:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x4d508b+'\x0aDefault\x20app:\x20'+_0x370f6d+_0x41c882+_0x359ccb(0x7e);}function isRecord(_0x2ce193){const _0x3dcc23=a64_0x2bafa8;return typeof _0x2ce193===_0x3dcc23(0x99)&&_0x2ce193!==null&&!Array[_0x3dcc23(0x9b)](_0x2ce193);}function hasWorkspaceAppBinding(_0x568b4c){const _0x1e44dd=a64_0x2bafa8;if(typeof _0x568b4c[_0x1e44dd(0xa3)]===_0x1e44dd(0x80)&&_0x568b4c[_0x1e44dd(0xa3)]['trim']()[_0x1e44dd(0xa0)]>0x0)return!![];if(typeof _0x568b4c[_0x1e44dd(0xaa)]!==_0x1e44dd(0x80)||!_0x568b4c['defaultApp'][_0x1e44dd(0xa6)]())return![];if(!isRecord(_0x568b4c[_0x1e44dd(0xb3)]))return![];const _0x19170b=_0x568b4c['apps'][_0x568b4c['defaultApp'][_0x1e44dd(0xa6)]()];return isRecord(_0x19170b)&&typeof _0x19170b['appcode']===_0x1e44dd(0x80)&&_0x19170b[_0x1e44dd(0xa3)][_0x1e44dd(0xa6)]()[_0x1e44dd(0xa0)]>0x0;}function assertWorkspaceCommandState(_0xb9085d,_0xccf22a){const _0x40cc1e=a64_0x2bafa8,_0x56368e=hasWorkspaceAppBinding(_0xccf22a);if(_0xb9085d==='init'&&_0x56368e)throw CliErrors[_0x40cc1e(0xaf)](_0x40cc1e(0x7f),_0x40cc1e(0x8b)+CLI_BIN_NAME+_0x40cc1e(0x73)+CLI_BIN_NAME+_0x40cc1e(0xa5));if(_0xb9085d===_0x40cc1e(0xae)&&!_0x56368e)throw CliErrors[_0x40cc1e(0xaf)](_0x40cc1e(0x86),'Run\x20`'+CLI_BIN_NAME+_0x40cc1e(0x8f)+CLI_BIN_NAME+_0x40cc1e(0x8e));}function makeWorkspaceCommand(_0xf9810a){const _0x24ac9d=a64_0x2bafa8;return{'service':_0x24ac9d(0x7b),'command':_0xf9810a,'description':_0xf9810a===_0x24ac9d(0x7a)?'为尚未绑定应用的当前工作目录初始化应用上下文':'修改当前工作目录已有绑定的应用上下文','risk':_0x24ac9d(0x95),'confirmationDescription':_0xf9810a==='init'?_0x24ac9d(0x9d):'将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0xdcfd58){return executeWorkspaceUse(_0xdcfd58,_0xf9810a);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x2bafa8(0x7a)),makeWorkspaceCommand(a64_0x2bafa8(0xae))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a65_0x14c232=a65_0x2052;(function(_0x11bfcf,_0x537e91){const _0x532b57=a65_0x2052,_0x3eba6d=_0x11bfcf();while(!![]){try{const _0x327fce=-parseInt(_0x532b57(0x190))/0x1+-parseInt(_0x532b57(0x196))/0x2*(parseInt(_0x532b57(0x198))/0x3)+-parseInt(_0x532b57(0x199))/0x4+-parseInt(_0x532b57(0x189))/0x5+parseInt(_0x532b57(0x193))/0x6+parseInt(_0x532b57(0x192))/0x7+parseInt(_0x532b57(0x195))/0x8;if(_0x327fce===_0x537e91)break;else _0x3eba6d['push'](_0x3eba6d['shift']());}catch(_0x55370e){_0x3eba6d['push'](_0x3eba6d['shift']());}}}(a65_0x3633,0x51416));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a65_0x3633(){const _0x164b7b=['env','630078UcQZKE','defaultValue','1838690WcKGBx','2479794zezeNT','map','12562224TIYvbM','218OBeBnH','Risk\x20level','12066qGQvFT','2057816GFXrCW','Override\x20API\x20domain','Override\x20SkillHub\x20domain','locale',';\x20local\x20alias:\x20apps.<alias>.appcode','join','Default\x20page\x20size','entries','Override\x20runtime\x20domain','Access\x20key\x20(client-ak\x20auth)','Locale','cliSettableTopLevel','1652475zrNVKM','enumValues','riskLevel','Target\x20environment','Default\x20output\x20format','importable'];a65_0x3633=function(){return _0x164b7b;};return a65_0x3633();}import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a65_0x14c232(0x18c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x14c232(0x18f)],'importable':!![]},'format':{'description':a65_0x14c232(0x18d),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a65_0x14c232(0x183),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x14c232(0x19a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x14c232(0x185),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x14c232(0x19b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a65_0x14c232(0x186),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x14c232(0x197),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x14c232(0x18b)],'importable':!![]},'locale':{'description':a65_0x14c232(0x187),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x14c232(0x180)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x14c232(0x184)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x4a8da4])=>_0x4a8da4[a65_0x14c232(0x188)])[a65_0x14c232(0x194)](([_0x4fc663])=>_0x4fc663));function a65_0x2052(_0x129b2b,_0x5a87f9){_0x129b2b=_0x129b2b-0x180;const _0x363354=a65_0x3633();let _0x20528d=_0x363354[_0x129b2b];return _0x20528d;}export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a65_0x14c232(0x184)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xf03a2f])=>_0xf03a2f['enumValues'])['map'](([_0xa142cb,_0x5aea8b])=>[_0xa142cb,[..._0x5aea8b['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x14c232(0x184)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xda1e66])=>_0xda1e66[a65_0x14c232(0x18e)])['map'](([_0x11838a])=>_0x11838a);export function getConfigFieldSchema(_0x489841){return CONFIG_FIELD_SCHEMAS[_0x489841];}export function getConfigEnumValues(_0x3db5f5){const _0x1c95f0=a65_0x14c232;return getConfigFieldSchema(_0x3db5f5)?.[_0x1c95f0(0x18a)];}export function getConfigDefaultValue(_0xc8501a){const _0x59ca55=a65_0x14c232;return getConfigFieldSchema(_0xc8501a)?.[_0x59ca55(0x191)];}export function isTopLevelConfigKey(_0x134938){return TOP_LEVEL_CONFIG_KEYS['has'](_0x134938);}export function isLegacyCompatConfigKey(_0x1cde37){return getConfigFieldSchema(_0x1cde37)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x4ea290){const _0x10bbd1=a65_0x14c232;return[..._0x4ea290][_0x10bbd1(0x182)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1ccc21=a65_0x14c232;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x1ccc21(0x181);}export function buildAppProfileListFields(_0x2fdea6){return{'env':_0x2fdea6,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x20cce7=a66_0x516a;(function(_0x211dee,_0x439552){const _0x2f7239=a66_0x516a,_0x4f4977=_0x211dee();while(!![]){try{const _0x168fa0=parseInt(_0x2f7239(0x1b1))/0x1*(parseInt(_0x2f7239(0x1b0))/0x2)+-parseInt(_0x2f7239(0x1a8))/0x3+-parseInt(_0x2f7239(0x1af))/0x4+-parseInt(_0x2f7239(0x1b2))/0x5+-parseInt(_0x2f7239(0x1aa))/0x6*(-parseInt(_0x2f7239(0x1ac))/0x7)+-parseInt(_0x2f7239(0x1ab))/0x8*(-parseInt(_0x2f7239(0x1a9))/0x9)+parseInt(_0x2f7239(0x1b4))/0xa*(parseInt(_0x2f7239(0x1ae))/0xb);if(_0x168fa0===_0x439552)break;else _0x4f4977['push'](_0x4f4977['shift']());}catch(_0x469da0){_0x4f4977['push'](_0x4f4977['shift']());}}}(a66_0x3924,0xa3817));function a66_0x516a(_0x2ac52f,_0x29993c){_0x2ac52f=_0x2ac52f-0x1a8;const _0x3924ca=a66_0x3924();let _0x516a25=_0x3924ca[_0x2ac52f];return _0x516a25;}export const APP_PUBLISH_STATUS={'Published':a66_0x20cce7(0x1b5),'Unpublished':a66_0x20cce7(0x1b3)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a66_0x20cce7(0x1ad)];function a66_0x3924(){const _0x375543=['UNPUBLISH','30970HsoLMY','PUBLISHED','1760061qnMjWt','9uvsbSC','936yIszbj','10154904BMPEXr','18634VkyLuA','Published','5412ChcMKr','5284964yxuLno','204902RLzQis','1eHjYOi','3665815ozexyj'];a66_0x3924=function(){return _0x375543;};return a66_0x3924();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x552477,_0x145773){const _0x7ade99=a67_0x3804,_0x7bd0eb=_0x552477();while(!![]){try{const _0x19ca8d=parseInt(_0x7ade99(0x1e8))/0x1*(-parseInt(_0x7ade99(0x1df))/0x2)+parseInt(_0x7ade99(0x1e4))/0x3+parseInt(_0x7ade99(0x1e0))/0x4+parseInt(_0x7ade99(0x1e2))/0x5*(parseInt(_0x7ade99(0x1e3))/0x6)+-parseInt(_0x7ade99(0x1e7))/0x7*(-parseInt(_0x7ade99(0x1e5))/0x8)+-parseInt(_0x7ade99(0x1e9))/0x9+-parseInt(_0x7ade99(0x1e6))/0xa*(parseInt(_0x7ade99(0x1e1))/0xb);if(_0x19ca8d===_0x145773)break;else _0x7bd0eb['push'](_0x7bd0eb['shift']());}catch(_0x4b724e){_0x7bd0eb['push'](_0x7bd0eb['shift']());}}}(a67_0x2d44,0x746e7));function a67_0x3804(_0x2bc002,_0x1b3979){_0x2bc002=_0x2bc002-0x1df;const _0x2d4402=a67_0x2d44();let _0x38049b=_0x2d4402[_0x2bc002];return _0x38049b;}export const AUTH_MODE={'ClientAk':'client-ak'};function a67_0x2d44(){const _0x13da57=['1894448gurKtt','1100fFmjtd','14415ngmlXf','468LtkaPA','2384070gnziBB','16AzZrPU','54190utVycr','1536437wQyyBs','4157OXWlSd','1859985bRYHgQ','340JFMzYa'];a67_0x2d44=function(){return _0x13da57;};return a67_0x2d44();}export function isAuthMode(_0x420cc7){return _0x420cc7===AUTH_MODE['ClientAk'];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a68_0x6361(){const _0x4afee9=['global','2UUuZBK','non-interactive','params','fromEntries','name','698583bqSnaD','appcode','Record\x20ID','dryRun','yes','2944596CIDsAR','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Environment','production\x20|\x20development\x20|\x20daily','Skip\x20confirmation\x20for\x20high-risk\x20writes','8872eEdwux','5251582cdurKP','154nrcDdM','dry-run','cliDisplayName','Output\x20format','SQL\x20query\x20code','1402530whpwGm','Preview\x20operation\x20without\x20executing','string','cliBinName','Name\x20filter','70mkTqdw','env','Force\x20non-interactive\x20mode\x20(CI)','format','1622028JztnSI','<expr>','meowKey','Override\x20appcode','<name>','<code>','Verbose\x20output','36sTIfZF','JSON\x20params\x20for\x20execute\x20commands','boolean','verbose','clear','Show\x20help','113060lgOHqS','help','sqlcode','app','8htubsi','Select\x20app\x20profile\x20by\x20name'];a68_0x6361=function(){return _0x4afee9;};return a68_0x6361();}const a68_0x490251=a68_0x22db;(function(_0x168d62,_0x30f2fa){const _0x402d9a=a68_0x22db,_0x819ba9=_0x168d62();while(!![]){try{const _0x4683df=-parseInt(_0x402d9a(0x106))/0x1*(-parseInt(_0x402d9a(0x101))/0x2)+-parseInt(_0x402d9a(0xd8))/0x3+parseInt(_0x402d9a(0xdd))/0x4*(parseInt(_0x402d9a(0xe9))/0x5)+-parseInt(_0x402d9a(0xe4))/0x6+parseInt(_0x402d9a(0xde))/0x7*(-parseInt(_0x402d9a(0xfe))/0x8)+parseInt(_0x402d9a(0xf4))/0x9*(-parseInt(_0x402d9a(0xfa))/0xa)+-parseInt(_0x402d9a(0xdf))/0xb*(-parseInt(_0x402d9a(0xed))/0xc);if(_0x4683df===_0x30f2fa)break;else _0x819ba9['push'](_0x819ba9['shift']());}catch(_0x522924){_0x819ba9['push'](_0x819ba9['shift']());}}}(a68_0x6361,0x953c0));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x490251(0xe7)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x490251(0xe1)];function a68_0x22db(_0x1c1405,_0x47e6f6){_0x1c1405=_0x1c1405-0xd4;const _0x636162=a68_0x6361();let _0x22db11=_0x636162[_0x1c1405];return _0x22db11;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x490251(0xd4),'meowKey':a68_0x490251(0xd4),'type':a68_0x490251(0xe6),'description':a68_0x490251(0xf0),'hint':a68_0x490251(0xf2)},{'name':'app','meowKey':a68_0x490251(0xfd),'type':'string','description':a68_0x490251(0xff),'hint':a68_0x490251(0xf1)},{'name':a68_0x490251(0xea),'meowKey':a68_0x490251(0xea),'type':'string','description':a68_0x490251(0xda),'hint':a68_0x490251(0xdb)},{'name':'format','meowKey':a68_0x490251(0xec),'type':a68_0x490251(0xe6),'description':a68_0x490251(0xe2),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a68_0x490251(0xe6),'description':a68_0x490251(0xd9),'hint':a68_0x490251(0xee)},{'name':a68_0x490251(0xe0),'meowKey':a68_0x490251(0xd6),'type':'boolean','description':a68_0x490251(0xe5)},{'name':a68_0x490251(0xd7),'meowKey':a68_0x490251(0xd7),'type':a68_0x490251(0xf6),'description':a68_0x490251(0xdc)},{'name':a68_0x490251(0x102),'meowKey':'nonInteractive','type':'boolean','description':a68_0x490251(0xeb)},{'name':a68_0x490251(0x100),'meowKey':a68_0x490251(0x100),'type':a68_0x490251(0xf6),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a68_0x490251(0xf6),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a68_0x490251(0xfb),'type':a68_0x490251(0xf6),'description':a68_0x490251(0xf9)},{'name':'id','meowKey':'id','type':a68_0x490251(0xe6),'description':a68_0x490251(0xd5),'hidden':!![]},{'name':a68_0x490251(0x105),'meowKey':a68_0x490251(0x105),'type':a68_0x490251(0xe6),'description':a68_0x490251(0xe8),'hidden':!![]},{'name':'sqlcode','meowKey':a68_0x490251(0xfc),'type':a68_0x490251(0xe6),'description':a68_0x490251(0xe3),'hidden':!![]},{'name':a68_0x490251(0x103),'meowKey':a68_0x490251(0x103),'type':'string','description':a68_0x490251(0xf5),'hidden':!![]},{'name':a68_0x490251(0xf7),'meowKey':a68_0x490251(0xf7),'type':'boolean','description':a68_0x490251(0xf3),'hidden':!![]},{'name':a68_0x490251(0xf8),'meowKey':a68_0x490251(0xf8),'type':a68_0x490251(0xf6),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x490251(0xd4),'app',a68_0x490251(0xea),a68_0x490251(0xec),'jq','dry-run',a68_0x490251(0xd7),a68_0x490251(0x102),'ci']);export function buildMeowFlags(){const _0x53dbb9=a68_0x490251;return Object[_0x53dbb9(0x104)](GLOBAL_FLAGS['map'](_0x3368b8=>[_0x3368b8[_0x53dbb9(0xef)],{'type':_0x3368b8['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x1f1375=a69_0x2037;(function(_0x1294d8,_0x7900be){const _0x323415=a69_0x2037,_0x5e51b1=_0x1294d8();while(!![]){try{const _0x2a098d=parseInt(_0x323415(0xde))/0x1*(parseInt(_0x323415(0xd7))/0x2)+-parseInt(_0x323415(0xe1))/0x3+parseInt(_0x323415(0xd6))/0x4+-parseInt(_0x323415(0xd8))/0x5+parseInt(_0x323415(0xda))/0x6+parseInt(_0x323415(0xdf))/0x7*(-parseInt(_0x323415(0xe2))/0x8)+-parseInt(_0x323415(0xdb))/0x9*(-parseInt(_0x323415(0xd5))/0xa);if(_0x2a098d===_0x7900be)break;else _0x5e51b1['push'](_0x5e51b1['shift']());}catch(_0x369a74){_0x5e51b1['push'](_0x5e51b1['shift']());}}}(a69_0x4c44,0x3d520));export const DEFAULT_APP_PROFILE_NAME=a69_0x1f1375(0xdd);function a69_0x4c44(){const _0x41c07f=['80aiKQBN','1847868QkTZFx','1270MZtATk','909080QSkfVu','write','66666iXBMkr','195516Mzgzty','en-US','main','649ywlWlV','602Vailic','compress','659727QPkImX','37776puBNWr'];a69_0x4c44=function(){return _0x41c07f;};return a69_0x4c44();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':a69_0x1f1375(0xdc),'riskLevel':a69_0x1f1375(0xd9)};function a69_0x2037(_0x11365f,_0x367ccb){_0x11365f=_0x11365f-0xd5;const _0x4c44fc=a69_0x4c44();let _0x203788=_0x4c44fc[_0x11365f];return _0x203788;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x1f1375(0xe0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a70_0x407e(_0x1c98c0,_0x4fbb89){_0x1c98c0=_0x1c98c0-0x1c6;const _0x23e9a0=a70_0x23e9();let _0x407e61=_0x23e9a0[_0x1c98c0];return _0x407e61;}const a70_0x3ddd0b=a70_0x407e;(function(_0x22a082,_0x5149df){const _0x13daf2=a70_0x407e,_0x3661d5=_0x22a082();while(!![]){try{const _0xe79dde=parseInt(_0x13daf2(0x1cd))/0x1+parseInt(_0x13daf2(0x1c8))/0x2+parseInt(_0x13daf2(0x1c7))/0x3+-parseInt(_0x13daf2(0x1cc))/0x4*(-parseInt(_0x13daf2(0x1ce))/0x5)+-parseInt(_0x13daf2(0x1d0))/0x6+parseInt(_0x13daf2(0x1c6))/0x7*(-parseInt(_0x13daf2(0x1ca))/0x8)+parseInt(_0x13daf2(0x1d1))/0x9*(-parseInt(_0x13daf2(0x1cf))/0xa);if(_0xe79dde===_0x5149df)break;else _0x3661d5['push'](_0x3661d5['shift']());}catch(_0x3938c8){_0x3661d5['push'](_0x3661d5['shift']());}}}(a70_0x23e9,0x243fa));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x3ddd0b(0x1c9)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x3ddd0b(0x1cb)];function a70_0x23e9(){const _0x2dd914=['skillSource','380876MbTuQK','228054pkgAsb','15jhfajB','10Rghrzg','770604LRdBNe','5286672mXrTKq','7056GszWtV','837990oXinCr','384470mmIKwQ','npmPackageName','960mJyhQh'];a70_0x23e9=function(){return _0x2dd914;};return a70_0x23e9();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0xd4ab2b=a71_0x41a7;(function(_0x117b59,_0x3921c3){const _0x5b000a=a71_0x41a7,_0x57f289=_0x117b59();while(!![]){try{const _0x1475d9=-parseInt(_0x5b000a(0x189))/0x1+parseInt(_0x5b000a(0x186))/0x2+parseInt(_0x5b000a(0x187))/0x3*(-parseInt(_0x5b000a(0x17e))/0x4)+-parseInt(_0x5b000a(0x183))/0x5*(-parseInt(_0x5b000a(0x184))/0x6)+-parseInt(_0x5b000a(0x17d))/0x7*(-parseInt(_0x5b000a(0x179))/0x8)+parseInt(_0x5b000a(0x180))/0x9+-parseInt(_0x5b000a(0x17b))/0xa*(parseInt(_0x5b000a(0x18a))/0xb);if(_0x1475d9===_0x3921c3)break;else _0x57f289['push'](_0x57f289['shift']());}catch(_0x32d413){_0x57f289['push'](_0x57f289['shift']());}}}(a71_0x476b,0xbcb65));import{getEnv,isProduction}from'../constant/env.js';function a71_0x41a7(_0xbe9c87,_0x2a466c){_0xbe9c87=_0xbe9c87-0x178;const _0x476bfb=a71_0x476b();let _0x41a7d3=_0x476bfb[_0xbe9c87];return _0x41a7d3;}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x5ba019){const _0x5d24fe=a71_0x41a7;customApiDomain=_0x5ba019?.['apiDomain'],customUserDomain=_0x5ba019?.[_0x5d24fe(0x17f)],customRuntimeDomain=_0x5ba019?.[_0x5d24fe(0x178)],customSkillHubDomain=_0x5ba019?.[_0x5d24fe(0x185)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0xd4ab2b(0x18b)][a71_0xd4ab2b(0x18c)][a71_0xd4ab2b(0x181)]:PRODUCT_CONFIG[a71_0xd4ab2b(0x18b)][a71_0xd4ab2b(0x188)]['user']);function a71_0x476b(){const _0x38a4aa=['904044GLTwHL','skillHubDomain','748748qKGzfh','63LTEJVd','nonProduction','866012SUEDEm','2545631CHeTlL','domains','production','runtimeDomain','8fvDNEf','runtime','40RDMBWm','api','8497349GgWTff','60708xLPJFu','userDomain','4875543QPmWvu','user','skillhub','25qCnipw'];a71_0x476b=function(){return _0x38a4aa;};return a71_0x476b();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0xd4ab2b(0x18c)]['api']:PRODUCT_CONFIG[a71_0xd4ab2b(0x18b)][a71_0xd4ab2b(0x188)][a71_0xd4ab2b(0x17c)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0xd4ab2b(0x18c)][a71_0xd4ab2b(0x17a)]:PRODUCT_CONFIG['domains'][a71_0xd4ab2b(0x188)][a71_0xd4ab2b(0x17a)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0xd4ab2b(0x18b)][a71_0xd4ab2b(0x18c)][a71_0xd4ab2b(0x182)]:PRODUCT_CONFIG[a71_0xd4ab2b(0x18b)][a71_0xd4ab2b(0x188)][a71_0xd4ab2b(0x182)]);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a72_0x473234=a72_0x3b8e;(function(_0x23f354,_0x3d920f){const _0x4ea84f=a72_0x3b8e,_0x2f83cc=_0x23f354();while(!![]){try{const _0x486355=parseInt(_0x4ea84f(0x189))/0x1+parseInt(_0x4ea84f(0x18a))/0x2+parseInt(_0x4ea84f(0x186))/0x3*(-parseInt(_0x4ea84f(0x17f))/0x4)+parseInt(_0x4ea84f(0x17e))/0x5*(-parseInt(_0x4ea84f(0x17d))/0x6)+-parseInt(_0x4ea84f(0x185))/0x7+-parseInt(_0x4ea84f(0x181))/0x8*(-parseInt(_0x4ea84f(0x18c))/0x9)+-parseInt(_0x4ea84f(0x180))/0xa*(-parseInt(_0x4ea84f(0x182))/0xb);if(_0x486355===_0x3d920f)break;else _0x2f83cc['push'](_0x2f83cc['shift']());}catch(_0x326a55){_0x2f83cc['push'](_0x2f83cc['shift']());}}}(a72_0x553c,0x63a65));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a72_0x473234(0x184),a72_0x473234(0x187),'daily'];export function normalizeEnv(_0x36b8e6){const _0x3751e7=a72_0x473234;return _0x36b8e6===_0x3751e7(0x188)?'production':_0x36b8e6;}function a72_0x553c(){const _0x381875=['production','5452265ERdeJM','3DqOHcu','development','online','444031JikkEy','425982VgFBji','daily','9JeypLe','24lBxlnC','437305BQuAvR','2301436BnSTvd','22530ByomQc','4198016LsBUng','4543ELdLAp','ENV'];a72_0x553c=function(){return _0x381875;};return a72_0x553c();}export function isProduction(_0x266a68){const _0x3005d3=a72_0x473234;return normalizeEnv(_0x266a68)===_0x3005d3(0x184);}export function isDaily(_0x35479e){const _0x179297=a72_0x473234;return normalizeEnv(_0x35479e)===_0x179297(0x18b);}function a72_0x3b8e(_0x35eedb,_0x43f7a5){_0x35eedb=_0x35eedb-0x17d;const _0x553c19=a72_0x553c();let _0x3b8e53=_0x553c19[_0x35eedb];return _0x3b8e53;}export function isDev(_0x3b43a6){const _0x1b1e90=a72_0x473234,_0x46d36f=normalizeEnv(_0x3b43a6);return _0x46d36f===_0x1b1e90(0x187)||_0x46d36f==='dev';}let env=normalizeEnv(productEnv(a72_0x473234(0x183))||a72_0x473234(0x184));export function getEnv(){return env;}export function initEnv(_0x443e42){env=normalizeEnv(_0x443e42);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a73_0x2dd958=a73_0xf9e7;(function(_0xfe0594,_0x159f93){const _0x4e1ee8=a73_0xf9e7,_0x8fe879=_0xfe0594();while(!![]){try{const _0x2ea570=parseInt(_0x4e1ee8(0x1f8))/0x1+-parseInt(_0x4e1ee8(0x1ee))/0x2+parseInt(_0x4e1ee8(0x1f0))/0x3+parseInt(_0x4e1ee8(0x1f4))/0x4+parseInt(_0x4e1ee8(0x1f7))/0x5*(-parseInt(_0x4e1ee8(0x1ef))/0x6)+parseInt(_0x4e1ee8(0x1f2))/0x7*(parseInt(_0x4e1ee8(0x1f6))/0x8)+parseInt(_0x4e1ee8(0x1f1))/0x9;if(_0x2ea570===_0x159f93)break;else _0x8fe879['push'](_0x8fe879['shift']());}catch(_0x537e09){_0x8fe879['push'](_0x8fe879['shift']());}}}(a73_0x5bc6,0x3e866));export const OUTPUT_FORMAT_VALUES=[a73_0x2dd958(0x1f5),a73_0x2dd958(0x1f3),'compress'];function a73_0xf9e7(_0x53a24c,_0x23fcad){_0x53a24c=_0x53a24c-0x1ee;const _0x5bc6fc=a73_0x5bc6();let _0xf9e7e7=_0x5bc6fc[_0x53a24c];return _0xf9e7e7;}function a73_0x5bc6(){const _0x442e76=['103286gbZIZl','498892fXgNCA','86382zsKKWV','710154AbpHxP','742356ftSbYm','4963FQSMNw','pretty','1076080NajyBZ','json','176BUJoUh','70eMxpHZ'];a73_0x5bc6=function(){return _0x442e76;};return a73_0x5bc6();}
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x7107a9=a74_0x5a29;function a74_0x1a13(){const _0xcdea8f=['SKIP_NPX_SKILLS','https://skills.lovrabet.com','https://user-daily.lovrabet.com','20419fHLoSa','lovrabet','@lovrabet/lovrabet-cli','18364QulMgH','9362CwkmCD','/user/ak','envPrefix','669zwzsEE','LOVRABET','1764NDBNpv','9JXVnmt','Lovrabet\x20Runtime\x20CLI','https://user.lovrabet.com','https://skills-daily.lovrabet.com','1086450BkINIW','https://api.lovrabet.com','.lovrabet-runtime.log','943555ARHPYF','https://daily-runtime.lovrabet.com','cli:lovrabet-runtime','RABETBASE','legacyEnvPrefixes','.lovrabet.json','3159088XUkXPg','.lovrabet','92twdbgQ','13404413QokQYW','https://daily-api.lovrabet.com','https://runtime.lovrabet.com'];a74_0x1a13=function(){return _0xcdea8f;};return a74_0x1a13();}(function(_0x4f40a5,_0x473db0){const _0x3b68e5=a74_0x5a29,_0x2b700d=_0x4f40a5();while(!![]){try{const _0x330fc5=-parseInt(_0x3b68e5(0xff))/0x1*(parseInt(_0x3b68e5(0xf4))/0x2)+-parseInt(_0x3b68e5(0x102))/0x3*(parseInt(_0x3b68e5(0xfe))/0x4)+-parseInt(_0x3b68e5(0x10c))/0x5+parseInt(_0x3b68e5(0x104))/0x6*(parseInt(_0x3b68e5(0xfb))/0x7)+parseInt(_0x3b68e5(0x112))/0x8*(parseInt(_0x3b68e5(0x105))/0x9)+-parseInt(_0x3b68e5(0x109))/0xa+parseInt(_0x3b68e5(0xf5))/0xb;if(_0x330fc5===_0x473db0)break;else _0x2b700d['push'](_0x2b700d['shift']());}catch(_0x534e60){_0x2b700d['push'](_0x2b700d['shift']());}}}(a74_0x1a13,0xaf9a2));function a74_0x5a29(_0x181568,_0xdd62b3){_0x181568=_0x181568-0xf3;const _0x1a1301=a74_0x1a13();let _0x5a296d=_0x1a1301[_0x181568];return _0x5a296d;}export const PRODUCT_CONFIG={'cliBinName':a74_0x7107a9(0xfc),'cliDisplayName':a74_0x7107a9(0x106),'npmPackageName':a74_0x7107a9(0xfd),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a74_0x7107a9(0x103),'legacyEnvPrefixes':[a74_0x7107a9(0x10f)],'configFileNames':[a74_0x7107a9(0x111),'.lovrabetrc'],'newConfigFileName':a74_0x7107a9(0x111),'homeDirName':a74_0x7107a9(0xf3),'logFileName':a74_0x7107a9(0x10b),'invokeSource':a74_0x7107a9(0x10e),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a74_0x7107a9(0xf8),'domains':{'production':{'user':a74_0x7107a9(0x107),'api':a74_0x7107a9(0x10a),'runtime':a74_0x7107a9(0xf7),'skillhub':a74_0x7107a9(0xf9)},'nonProduction':{'user':a74_0x7107a9(0xfa),'api':a74_0x7107a9(0xf6),'runtime':a74_0x7107a9(0x10d),'skillhub':a74_0x7107a9(0x108)}},'accessKeyCreatePath':a74_0x7107a9(0x100)};export function productEnvName(_0x17a30c){const _0x2a52cf=a74_0x7107a9;return PRODUCT_CONFIG[_0x2a52cf(0x101)]+'_'+_0x17a30c;}export function productEnvNames(_0x40fde6){const _0x536ab1=a74_0x7107a9;return[productEnvName(_0x40fde6),...PRODUCT_CONFIG[_0x536ab1(0x110)]['map'](_0x3ddaeb=>_0x3ddaeb+'_'+_0x40fde6)];}export function productEnv(_0x4125f3){for(const _0x18ff8d of productEnvNames(_0x4125f3)){const _0x514e0a=process.env[_0x18ff8d];if(_0x514e0a!==undefined)return _0x514e0a;}return undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a75_0x50c60b=a75_0x58c8;function a75_0x58c8(_0x2f3be5,_0xd3ae68){_0x2f3be5=_0x2f3be5-0xc5;const _0x4febf0=a75_0x4feb();let _0x58c81a=_0x4febf0[_0x2f3be5];return _0x58c81a;}(function(_0x36f890,_0x4c8be3){const _0xe7f3a3=a75_0x58c8,_0x4d73fc=_0x36f890();while(!![]){try{const _0x49dd9f=parseInt(_0xe7f3a3(0xca))/0x1+-parseInt(_0xe7f3a3(0xd0))/0x2*(parseInt(_0xe7f3a3(0xc8))/0x3)+parseInt(_0xe7f3a3(0xcb))/0x4*(parseInt(_0xe7f3a3(0xcf))/0x5)+parseInt(_0xe7f3a3(0xc9))/0x6+parseInt(_0xe7f3a3(0xcc))/0x7+-parseInt(_0xe7f3a3(0xc7))/0x8*(parseInt(_0xe7f3a3(0xcd))/0x9)+parseInt(_0xe7f3a3(0xc6))/0xa*(-parseInt(_0xe7f3a3(0xce))/0xb);if(_0x49dd9f===_0x4c8be3)break;else _0x4d73fc['push'](_0x4d73fc['shift']());}catch(_0x13ace6){_0x4d73fc['push'](_0x4d73fc['shift']());}}}(a75_0x4feb,0xec151));function a75_0x4feb(){const _0x58354e=['14569588YQKTWF','3090725ltrftE','4LkNrLy','high-risk-write','10AOdtvd','8gnXZpB','2856312EBgoqI','1961340VjxCZU','419714iKZLbP','12VYaMga','12526227cRAScy','1753119UKcHDa'];a75_0x4feb=function(){return _0x58354e;};return a75_0x4feb();}export const RISK_LEVEL_VALUES=['read','write',a75_0x50c60b(0xc5)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a76_0x4dd3(){const _0x34a700=['4UzeCbK','151704SgadHI','1016286bxupUv','6CfPdGF','accessKeyCreatePath','45408lJykjh','880048kRyOid','domains','user','1232406VAaUbv','196285UfuuCB','832314tskCWt'];a76_0x4dd3=function(){return _0x34a700;};return a76_0x4dd3();}const a76_0x42445e=a76_0x596b;(function(_0x334fb4,_0x1a2cbb){const _0x5a5388=a76_0x596b,_0xcce771=_0x334fb4();while(!![]){try{const _0x5eddc5=-parseInt(_0x5a5388(0xbf))/0x1*(-parseInt(_0x5a5388(0xc1))/0x2)+-parseInt(_0x5a5388(0xc9))/0x3+parseInt(_0x5a5388(0xc8))/0x4*(parseInt(_0x5a5388(0xc6))/0x5)+-parseInt(_0x5a5388(0xbe))/0x6+parseInt(_0x5a5388(0xc7))/0x7+-parseInt(_0x5a5388(0xc2))/0x8+parseInt(_0x5a5388(0xc5))/0x9;if(_0x5eddc5===_0x1a2cbb)break;else _0xcce771['push'](_0xcce771['shift']());}catch(_0x5a16b2){_0xcce771['push'](_0xcce771['shift']());}}}(a76_0x4dd3,0x18bf2));import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x596b(_0x4c5e32,_0x2911e8){_0x4c5e32=_0x4c5e32-0xbe;const _0x4dd35c=a76_0x4dd3();let _0x596bb1=_0x4dd35c[_0x4c5e32];return _0x596bb1;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x42445e(0xc3)]['production'][a76_0x42445e(0xc4)]+PRODUCT_CONFIG[a76_0x42445e(0xc0)];
|
package/lib/context.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* - Writing scoped configs (global vs. project) atomically
|
|
9
9
|
*
|
|
10
10
|
* Why a dedicated context module: configuration is read at startup, written by
|
|
11
|
-
* `init`, `app
|
|
11
|
+
* `workspace init/use`, `app import`, and `config set`, and consulted by every command via
|
|
12
12
|
* `buildConfig()`. Centralizing all config operations here means:
|
|
13
13
|
* 1. The merge algorithm is defined once and applied consistently everywhere.
|
|
14
14
|
* 2. Adding a new config field only requires updating `buildConfig()`.
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* Key design decisions:
|
|
18
18
|
* - `inherit: false` in a project config disables global merging entirely,
|
|
19
19
|
* isolating the project from accidental global config pollution.
|
|
20
|
-
* - `appCode` is resolved from explicit flags, top-level config, or the
|
|
21
|
-
*
|
|
20
|
+
* - `appCode` is resolved from explicit flags, top-level config, or the named
|
|
21
|
+
* local app profile selected by `defaultApp`.
|
|
22
22
|
* - Atomic writes (temp file + rename) prevent config corruption on crashes.
|
|
23
23
|
* - `migrateOnlineEnv()` silently upgrades old `"online"` env values to
|
|
24
24
|
* `"production"` so old config files continue to work.
|
|
@@ -198,7 +198,7 @@ export declare function resolveLocalAppAliasCode(raw: Record<string, any>, name:
|
|
|
198
198
|
export declare function readAppCodeFromConfig(): string | undefined;
|
|
199
199
|
/**
|
|
200
200
|
* Reads the config file for a specific scope (global or project).
|
|
201
|
-
* Used by `app list
|
|
201
|
+
* Used by `app list` and `config get/set` commands.
|
|
202
202
|
*
|
|
203
203
|
* Why `flags.global` controls scope: this is consistent with how `--global`
|
|
204
204
|
* is used throughout the CLI. Commands that accept `--global` can use this
|
|
@@ -271,7 +271,7 @@ export declare function isInProject(): boolean;
|
|
|
271
271
|
export declare function readRawConfig(projectRoot?: string): Record<string, any>;
|
|
272
272
|
/**
|
|
273
273
|
* Returns the merged config AND the raw layers.
|
|
274
|
-
* Used by `app list
|
|
274
|
+
* Used by `app list`, which needs both the merged view and
|
|
275
275
|
* the per-layer information for display.
|
|
276
276
|
*/
|
|
277
277
|
export declare function readRawConfigWithLayers(projectRoot?: string): {
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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']();}};}
|
|
1
|
+
const a77_0x2d9e1f=a77_0x4abe;(function(_0x2d33e5,_0x279023){const _0x48215d=a77_0x4abe,_0xac1495=_0x2d33e5();while(!![]){try{const _0x29e62b=parseInt(_0x48215d(0x150))/0x1*(parseInt(_0x48215d(0x186))/0x2)+parseInt(_0x48215d(0x197))/0x3+parseInt(_0x48215d(0x194))/0x4*(parseInt(_0x48215d(0x159))/0x5)+parseInt(_0x48215d(0x16f))/0x6+-parseInt(_0x48215d(0x183))/0x7+-parseInt(_0x48215d(0x192))/0x8*(parseInt(_0x48215d(0x15e))/0x9)+parseInt(_0x48215d(0x161))/0xa*(parseInt(_0x48215d(0x171))/0xb);if(_0x29e62b===_0x279023)break;else _0xac1495['push'](_0xac1495['shift']());}catch(_0x5428e8){_0xac1495['push'](_0xac1495['shift']());}}}(a77_0x45cc,0xabf71));function a77_0x4abe(_0x52d427,_0x5538fe){_0x52d427=_0x52d427-0x14d;const _0x45cc38=a77_0x45cc();let _0x4abee3=_0x45cc38[_0x52d427];return _0x4abee3;}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';function a77_0x45cc(){const _0x361ce4=['development','15934NkYEvT','production','join','missing','env','./constant/domain.js','parse','configFileNames','authRequired','online','projectConfig','apps','376744BXNkCI','stringify','67988qGxfJx','appcode','pageSize','1358670zlnPMd','riskLevel','read','message','local-alias','25SmFekm','inherit','EACCES','project','slice','APPCODE','setRawCommand','string','global','5XBDBbW','code','explicit','values','raw','18rGzXDC','write','utf8','289900jhoPiT','daily','userDomain','./constant/env.js','empty','VERBOSE','top-level','app','cache','newConfigFileName','PAGE_SIZE','trim','true','APP','185760mjIdqY','some','253CKNFqr','skillHubDomain','globalConfig','accessKey','cwd','host','setRawMode','EXDEV','isTTY','object','EPERM','format','nonInteractive','error','defaultApp','ENV','.tmp','stdin','3977659sekLdf','locale'];a77_0x45cc=function(){return _0x361ce4;};return a77_0x45cc();}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_0x2d9e1f(0x18d)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x2d9e1f(0x16a)];function resolveConfigPath(_0x2d5850){for(const _0x3ccbf6 of CONFIG_NAMES){const _0x119400=resolve(_0x2d5850,_0x3ccbf6);if(existsSync(_0x119400))return _0x119400;}return undefined;}export function resolveWriteConfigPath(_0xce5c56){const _0x35a4df=a77_0x2d9e1f,_0x43abd6=_0xce5c56===_0x35a4df(0x153)?process[_0x35a4df(0x175)]():homedir(),_0x3ebdc2=resolveConfigPath(_0x43abd6);return _0x3ebdc2??resolve(_0x43abd6,NEW_CONFIG_NAME);}export function readConfigFile(_0x1f4269){const _0x4071ca=a77_0x2d9e1f;try{if(existsSync(_0x1f4269)){const _0x5e0aa5=readFileSync(_0x1f4269,{'encoding':_0x4071ca(0x160)});if(_0x5e0aa5){const _0x1572c1=JSON[_0x4071ca(0x18c)](_0x5e0aa5);return migrateOnlineEnv(_0x1f4269,_0x1572c1),_0x1572c1;}}}catch{}return{};}function migrateOnlineEnv(_0x5a0449,_0x49e828){const _0x22094a=a77_0x2d9e1f;let _0x247cd3=![];_0x49e828[_0x22094a(0x18a)]===_0x22094a(0x18f)&&(_0x49e828[_0x22094a(0x18a)]=_0x22094a(0x187),_0x247cd3=!![]);if(_0x49e828['apps']&&typeof _0x49e828['apps']===_0x22094a(0x17a))for(const _0xdb7c0f of Object[_0x22094a(0x15c)](_0x49e828[_0x22094a(0x191)])){_0xdb7c0f&&_0xdb7c0f[_0x22094a(0x18a)]===_0x22094a(0x18f)&&(_0xdb7c0f[_0x22094a(0x18a)]=_0x22094a(0x187),_0x247cd3=!![]);}if(_0x247cd3)try{writeConfigFile(_0x5a0449,_0x49e828);}catch{}}export function writeConfigFile(_0x3877be,_0x6f4c4f){const _0x3239d1=a77_0x2d9e1f,_0x1770b6=dirname(_0x3877be);!existsSync(_0x1770b6)&&mkdirSync(_0x1770b6,{'recursive':!![]});const _0x1fed2f=_0x3877be+_0x3239d1(0x181);try{writeFileSync(_0x1fed2f,JSON[_0x3239d1(0x193)](_0x6f4c4f,null,0x2)+'\x0a',{'encoding':_0x3239d1(0x160),'mode':0x180});try{renameSync(_0x1fed2f,_0x3877be);}catch(_0x1f8e74){if(_0x1f8e74[_0x3239d1(0x15a)]===_0x3239d1(0x17b)||_0x1f8e74[_0x3239d1(0x15a)]===_0x3239d1(0x178)||_0x1f8e74[_0x3239d1(0x15a)]===_0x3239d1(0x152)){writeFileSync(_0x3877be,JSON[_0x3239d1(0x193)](_0x6f4c4f,null,0x2)+'\x0a',{'encoding':_0x3239d1(0x160)});try{unlinkSync(_0x1fed2f);}catch{}}else throw _0x1f8e74;}}catch(_0x397ad6){try{unlinkSync(_0x1fed2f);}catch{}throw _0x397ad6;}}export function isNonInteractiveMode(_0x4b1480){const _0x569099=a77_0x2d9e1f;return!!(_0x4b1480[_0x569099(0x17d)]||_0x4b1480['ci']||productEnvNames('CI')[_0x569099(0x170)](_0x503b3d=>process.env[_0x503b3d]===_0x569099(0x16d))||process.env.CI===_0x569099(0x16d)||!process['stdout'][_0x569099(0x179)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5d2f36=a77_0x2d9e1f;if(!process[_0x5d2f36(0x182)][_0x5d2f36(0x179)])return![];try{const _0x13db92=process[_0x5d2f36(0x182)]['isRaw'];return process[_0x5d2f36(0x182)][_0x5d2f36(0x177)](!![]),process[_0x5d2f36(0x182)]['setRawMode'](_0x13db92??![]),!![];}catch{return![];}}export async function createContext(_0x360aae){const _0x282c12=a77_0x2d9e1f,_0x48cf43=readRawConfig(),_0x26a857=buildConfig(_0x48cf43,_0x360aae);await initGlobalEnvironment(_0x26a857);const {getUserDomain:_0x39f78,getApiDomain:_0x401f8e}=await import(_0x282c12(0x18b)),_0x32da19={'apiDomain':_0x401f8e(),'userDomain':_0x39f78()},_0x2b29a4=await buildAuth(_0x26a857);logger['setLogPath'](process[_0x282c12(0x175)]());const _0x165ff6=(CLI_BIN_NAME+'\x20'+process['argv'][_0x282c12(0x154)](0x2)[_0x282c12(0x188)]('\x20'))['trim']();logger[_0x282c12(0x156)](_0x165ff6);const _0x2ec1b4=isNonInteractiveMode(_0x360aae);return{'config':_0x26a857,'auth':_0x2b29a4,'logger':logger,'env':_0x32da19,'nonInteractive':_0x2ec1b4};}export function buildConfigFromFlags(_0x381399){return buildConfig(readRawConfig(),_0x381399);}export function getLocalAppAliases(_0x4835aa){const _0x31868b=a77_0x2d9e1f;return _0x4835aa[_0x31868b(0x191)]&&typeof _0x4835aa[_0x31868b(0x191)]===_0x31868b(0x17a)?_0x4835aa[_0x31868b(0x191)]:{};}export function resolveLocalAppAliasCode(_0x1b70c3,_0x474549){const _0x1bf970=a77_0x2d9e1f;if(!_0x474549)return undefined;const _0xb5d8c4=getLocalAppAliases(_0x1b70c3)[_0x474549],_0x4144d3=_0xb5d8c4?.[_0x1bf970(0x195)];return typeof _0x4144d3===_0x1bf970(0x157)&&_0x4144d3[_0x1bf970(0x16c)]()?_0x4144d3['trim']():undefined;}export function readAppCodeFromConfig(){const _0x61f4ad=a77_0x2d9e1f,_0x3532e8=readRawConfig(),_0x5ca9e8=_0x3532e8['appcode']??_0x3532e8[_0x61f4ad(0x168)];if(typeof _0x5ca9e8==='string'&&_0x5ca9e8[_0x61f4ad(0x16c)]())return _0x5ca9e8['trim']();const _0x582050=resolveLocalAppAliasCode(_0x3532e8,typeof _0x3532e8[_0x61f4ad(0x17f)]===_0x61f4ad(0x157)?_0x3532e8[_0x61f4ad(0x17f)]:undefined);if(_0x582050)return _0x582050;const _0x34a1d5=normalizeEnv(String(_0x3532e8[_0x61f4ad(0x18a)]||'production')),_0x8d2274=isDaily(_0x34a1d5)?_0x61f4ad(0x162):isDev(_0x34a1d5)?_0x61f4ad(0x185):'production',_0x29033c=resolveCachedAppCode(typeof _0x3532e8[_0x61f4ad(0x17f)]===_0x61f4ad(0x157)?_0x3532e8['defaultApp']:undefined,_0x8d2274,typeof _0x3532e8[_0x61f4ad(0x174)]===_0x61f4ad(0x157)?_0x3532e8[_0x61f4ad(0x174)]:undefined);if(_0x29033c)return _0x29033c;const _0x281d42=Object[_0x61f4ad(0x15c)](getLocalAppAliases(_0x3532e8))['find'](_0x2c99b0=>_0x2c99b0?.[_0x61f4ad(0x195)]);return typeof _0x281d42?.[_0x61f4ad(0x195)]===_0x61f4ad(0x157)&&_0x281d42[_0x61f4ad(0x195)][_0x61f4ad(0x16c)]()?_0x281d42[_0x61f4ad(0x195)][_0x61f4ad(0x16c)]():undefined;}export function readScopedConfig(_0x1a7747){const _0x1acca=a77_0x2d9e1f,_0x5dc984=_0x1a7747[_0x1acca(0x158)]?_0x1acca(0x158):_0x1acca(0x153);return readConfigFile(resolveWriteConfigPath(_0x5dc984));}export function writeScopedConfig(_0x1d7413,_0x399ad4){const _0x156eda=a77_0x2d9e1f,_0x395667=_0x399ad4[_0x156eda(0x158)]?_0x156eda(0x158):_0x156eda(0x153);writeConfigFile(resolveWriteConfigPath(_0x395667),_0x1d7413);}export async function initGlobalEnvironment(_0x3539f8){const _0x1890ac=a77_0x2d9e1f,{initEnv:_0xf92fcc}=await import(_0x1890ac(0x164));_0xf92fcc(_0x3539f8[_0x1890ac(0x18a)]);const {initDomains:_0x1a6d2a}=await import(_0x1890ac(0x18b));_0x1a6d2a({'apiDomain':_0x3539f8['raw']['apiDomain']||_0x3539f8[_0x1890ac(0x15d)][_0x1890ac(0x176)]||undefined,'userDomain':_0x3539f8[_0x1890ac(0x15d)][_0x1890ac(0x163)]||undefined,'runtimeDomain':_0x3539f8[_0x1890ac(0x15d)]['runtimeDomain']||undefined,'skillHubDomain':_0x3539f8[_0x1890ac(0x15d)][_0x1890ac(0x172)]||undefined});}export function getProjectConfigPath(){const _0x477a28=a77_0x2d9e1f;return resolveConfigPath(process[_0x477a28(0x175)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x10440a){const _0x16fc6c=a77_0x2d9e1f;if(!existsSync(_0x10440a))return{'status':_0x16fc6c(0x189)};try{const _0xa30138=readFileSync(_0x10440a,{'encoding':_0x16fc6c(0x160)});if(!_0xa30138?.['trim']())return{'status':_0x16fc6c(0x165)};const _0x37b1d0=JSON[_0x16fc6c(0x18c)](_0xa30138);return{'status':'ok','data':_0x37b1d0};}catch(_0x300414){return{'status':_0x16fc6c(0x17e),'message':_0x300414 instanceof Error?_0x300414[_0x16fc6c(0x14e)]:String(_0x300414)};}}export function loadRawConfigLayers(_0x111c3b){const _0x3f7e91=a77_0x2d9e1f;let _0xdc1673={},_0x58e4ea={},_0x329ad0,_0x5752fc;try{_0x329ad0=resolveConfigPath(homedir());if(_0x329ad0){const _0x20611e=readFileSync(_0x329ad0,{'encoding':_0x3f7e91(0x160)});if(_0x20611e)_0xdc1673=JSON[_0x3f7e91(0x18c)](_0x20611e);}}catch{}try{const _0x1360e7=_0x111c3b||process[_0x3f7e91(0x175)]();_0x5752fc=resolveConfigPath(_0x1360e7);if(_0x5752fc){const _0x34cdcf=readFileSync(_0x5752fc,{'encoding':'utf8'});if(_0x34cdcf)_0x58e4ea=JSON[_0x3f7e91(0x18c)](_0x34cdcf);}}catch{}return{'globalPath':_0x329ad0,'projectPath':_0x5752fc,'globalConfig':_0xdc1673,'projectConfig':_0x58e4ea};}function mergeRawConfigLayers(_0x38377c){const _0x4b0167=a77_0x2d9e1f,{globalConfig:_0x1d3f80,projectConfig:_0x5a5539}=_0x38377c;if(_0x5a5539[_0x4b0167(0x151)]===![]){const _0x266d64={..._0x5a5539};return delete _0x266d64[_0x4b0167(0x151)],_0x266d64;}const _0x25ee6c={..._0x1d3f80,..._0x5a5539};if(_0x4b0167(0x17f)in _0x5a5539)_0x25ee6c[_0x4b0167(0x17f)]=_0x5a5539[_0x4b0167(0x17f)];else _0x1d3f80[_0x4b0167(0x17f)]&&(_0x25ee6c['defaultApp']=_0x1d3f80['defaultApp']);return _0x25ee6c;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3d095f){return mergeRawConfigLayers(loadRawConfigLayers(_0x3d095f));}export function readRawConfigWithLayers(_0x2c5dce){const _0x30f584=loadRawConfigLayers(_0x2c5dce);return{'config':mergeRawConfigLayers(_0x30f584),'layers':_0x30f584};}export function resolveDefaultAppSource(_0x2e0056){const _0x1421ff=a77_0x2d9e1f;if(_0x1421ff(0x17f)in _0x2e0056[_0x1421ff(0x190)])return _0x1421ff(0x153);if(_0x2e0056['projectConfig'][_0x1421ff(0x151)]===![])return null;if(_0x2e0056[_0x1421ff(0x173)][_0x1421ff(0x17f)])return _0x1421ff(0x158);return null;}function buildConfig(_0x55b6df,_0x2e67c2){const _0x2dea5a=a77_0x2d9e1f,_0x574bf5=_0x55b6df[_0x2dea5a(0x17f)]||undefined,_0x4408f6=_0x2e67c2[_0x2dea5a(0x168)]||env(_0x2dea5a(0x16e))||undefined,_0x409cd4=_0x4408f6||_0x574bf5||undefined,_0x583518=env('ACCESS_KEY')||_0x55b6df[_0x2dea5a(0x174)]||undefined,_0x3c7870=_0x2e67c2[_0x2dea5a(0x18a)]||env(_0x2dea5a(0x180))||_0x55b6df[_0x2dea5a(0x18a)]||DEFAULT_CONFIG_VALUES[_0x2dea5a(0x18a)],_0x49b449=normalizeEnv(String(_0x3c7870)),_0x3fe6d9=isDaily(_0x49b449)?_0x2dea5a(0x162):isDev(_0x49b449)?_0x2dea5a(0x185):_0x2dea5a(0x187),_0x33535c=typeof _0x2e67c2[_0x2dea5a(0x195)]===_0x2dea5a(0x157)?_0x2e67c2[_0x2dea5a(0x195)]:undefined,_0x10f7d8=env(_0x2dea5a(0x155)),_0x1a12c6=_0x4408f6?undefined:_0x55b6df[_0x2dea5a(0x195)]||_0x55b6df[_0x2dea5a(0x168)]||undefined,_0x19698e=_0x4408f6||(_0x1a12c6?undefined:_0x574bf5),_0x2200ac=resolveLocalAppAliasCode(_0x55b6df,_0x19698e),_0x43b070=resolveCachedAppCode(_0x19698e,_0x3fe6d9,_0x583518),_0x40f805=_0x33535c||_0x10f7d8||_0x1a12c6||_0x2200ac||_0x43b070||undefined,_0x1bf3fb=_0x33535c?_0x2dea5a(0x15b):_0x10f7d8?_0x2dea5a(0x18a):_0x1a12c6?_0x2dea5a(0x167):_0x2200ac?_0x2dea5a(0x14f):_0x43b070?_0x2dea5a(0x169):undefined,_0x5731e0=_0x55b6df[_0x2dea5a(0x184)]||DEFAULT_CONFIG_VALUES['locale'],_0x55afa7=undefined,_0x22fcbf=_0x2e67c2[_0x2dea5a(0x17c)]||env('FORMAT')||_0x55b6df[_0x2dea5a(0x17c)],_0x2e5984=normalizeLegacyOutputFormat(_0x22fcbf),_0x5591fc=env(_0x2dea5a(0x16b))||_0x55b6df[_0x2dea5a(0x196)],_0x45540a=_0x5591fc?Number(_0x5591fc)||undefined:undefined,_0x1942ff=_0x55b6df['riskLevel']||_0x55b6df['maxRisk'],_0xbf1c75=_0x1942ff===_0x2dea5a(0x14d)||_0x1942ff===_0x2dea5a(0x15f)||_0x1942ff==='high-risk-write'?_0x1942ff:DEFAULT_CONFIG_VALUES[_0x2dea5a(0x198)],_0x38ef59=env(_0x2dea5a(0x166)),_0x55c78b=_0x38ef59==='1'||_0x38ef59===_0x2dea5a(0x16d);return{'appCode':typeof _0x40f805==='string'&&_0x40f805[_0x2dea5a(0x16c)]()?_0x40f805[_0x2dea5a(0x16c)]():undefined,'appCodeSource':_0x1bf3fb,'env':_0x3fe6d9,'locale':_0x5731e0,'cookie':_0x55afa7,'accessKey':_0x583518,'format':_0x2e5984,'pageSize':_0x45540a,'riskLevel':_0xbf1c75,'verbose':_0x55c78b,'defaultApp':_0x574bf5,'currentApp':typeof _0x409cd4===_0x2dea5a(0x157)?_0x409cd4:undefined,'raw':_0x55b6df};}function env(_0x5a613b){return productEnv(_0x5a613b);}async function buildAuth(_0x5b0f01){const _0x37ac28='',_0x3fab35=!!_0x5b0f01['accessKey'];return{'cookie':_0x37ac28,'isLoggedIn':_0x3fab35,async 'getOrLogin'(){const _0x55ecfb=a77_0x4abe;if(_0x3fab35)return _0x37ac28;throw CliErrors[_0x55ecfb(0x18e)]();}};}
|