@lovrabet/lovrabet-cli 2.2.3-beta.1 → 2.2.3
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/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.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/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.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/skills/skill-presence.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
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a64_0x2d7eb1=a64_0x3cf4;(function(_0x2c31dc,_0x2e332f){const _0x39a9ea=a64_0x3cf4,_0x2fe095=_0x2c31dc();while(!![]){try{const _0x3908b1=-parseInt(_0x39a9ea(0x148))/0x1+-parseInt(_0x39a9ea(0x144))/0x2*(-parseInt(_0x39a9ea(0x14e))/0x3)+parseInt(_0x39a9ea(0x14c))/0x4*(-parseInt(_0x39a9ea(0x14b))/0x5)+-parseInt(_0x39a9ea(0x133))/0x6*(-parseInt(_0x39a9ea(0x13e))/0x7)+-parseInt(_0x39a9ea(0x13b))/0x8*(-parseInt(_0x39a9ea(0x143))/0x9)+parseInt(_0x39a9ea(0x145))/0xa+parseInt(_0x39a9ea(0x138))/0xb*(-parseInt(_0x39a9ea(0x150))/0xc);if(_0x3908b1===_0x2e332f)break;else _0x2fe095['push'](_0x2fe095['shift']());}catch(_0x5eeecb){_0x2fe095['push'](_0x2fe095['shift']());}}}(a64_0x5c50,0xc0518));function a64_0x3cf4(_0x59cfa5,_0xc97c69){_0x59cfa5=_0x59cfa5-0x132;const _0x5c50aa=a64_0x5c50();let _0x3cf45b=_0x5c50aa[_0x59cfa5];return _0x3cf45b;}import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';function a64_0x5c50(){const _0x115db4=['Pass\x20one\x20of:\x20','account-id','6FxHwXz','POST','join','将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','External\x20account\x20binding\x20was\x20not\x20confirmed.','11OzwxFu','string','bind','9928wGbinB','validation','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','986167gkkzbq','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','dingtalk','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','provider','981tapmAj','462sSsXvk','11477600QyFxuE','str','toLowerCase','1068233VsYXOA','includes','apiError','160vSVFrY','30852NtIvSx','trim','10131gcSqMH','write','1214544GBfefI','Unsupported\x20provider:\x20','user-account'];a64_0x5c50=function(){return _0x115db4;};return a64_0x5c50();}import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a64_0x2d7eb1(0x141),SUPPORTED_PROVIDERS=[a64_0x2d7eb1(0x140)];function readBindingInput(_0x403f11){const _0xc2a647=a64_0x2d7eb1,_0x44f6fd=_0x403f11['str'](_0xc2a647(0x142))[_0xc2a647(0x14d)]()[_0xc2a647(0x147)]();if(!SUPPORTED_PROVIDERS[_0xc2a647(0x149)](_0x44f6fd))throw CliErrors[_0xc2a647(0x13c)](_0xc2a647(0x151)+(_0x44f6fd||'(empty)')+'.',_0xc2a647(0x153)+SUPPORTED_PROVIDERS[_0xc2a647(0x135)](',\x20')+'.');const _0x1c68e7=_0x403f11[_0xc2a647(0x146)]('account-id')['trim']();if(!_0x1c68e7)throw CliErrors[_0xc2a647(0x13c)]('--account-id\x20cannot\x20be\x20empty.','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0x44f6fd,'accountId':_0x1c68e7};}function buildBindingData(_0x320af1,_0x1cff01,_0x506b95){const _0x315ec1=a64_0x2d7eb1;return{'operation':_0x315ec1(0x13a),'selector':{'provider':_0x320af1,'accountId':_0x1cff01},'before':null,'after':{'provider':_0x320af1,'accountId':_0x1cff01,'bound':!![]},'dryRun':_0x506b95,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a64_0x2d7eb1(0x152),'command':a64_0x2d7eb1(0x13a),'description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','risk':a64_0x2d7eb1(0x14f),'confirmationDescription':a64_0x2d7eb1(0x136),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a64_0x2d7eb1(0x142),'type':a64_0x2d7eb1(0x139),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':'External\x20account\x20provider'},{'name':a64_0x2d7eb1(0x132),'type':a64_0x2d7eb1(0x139),'required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x545f37){readBindingInput(_0x545f37);},async 'dryRun'(_0x1c9d6b){const _0x572ce0=a64_0x2d7eb1,{provider:_0x5a6577,accountId:_0xfcc368}=readBindingInput(_0x1c9d6b);return{...buildBindingData(_0x5a6577,_0xfcc368,!![]),'method':_0x572ce0(0x134),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x5a6577,'accountId':_0xfcc368}};},async 'execute'(_0xa3e621){const _0x246e09=a64_0x2d7eb1,{provider:_0x4f48f6,accountId:_0x4d1bd3}=readBindingInput(_0xa3e621),_0x1a1eb3=await bindExternalUserAccount(_0x4f48f6,_0x4d1bd3);if(_0x1a1eb3!==!![])throw CliErrors[_0x246e09(0x14a)](_0x246e09(0x137),_0x246e09(0x13d));return{'ok':!![],'data':buildBindingData(_0x4f48f6,_0x4d1bd3,![]),'message':_0x246e09(0x13f)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a65_0x447d(_0x5db99d,_0x216c49){_0x5db99d=_0x5db99d-0x12a;const _0x34be24=a65_0x34be();let _0x447d1d=_0x34be24[_0x5db99d];return _0x447d1d;}(function(_0x4b2f22,_0x1eedf0){const _0x3b9326=a65_0x447d,_0x3ac64d=_0x4b2f22();while(!![]){try{const _0x456867=-parseInt(_0x3b9326(0x12d))/0x1*(parseInt(_0x3b9326(0x131))/0x2)+parseInt(_0x3b9326(0x130))/0x3+-parseInt(_0x3b9326(0x133))/0x4*(parseInt(_0x3b9326(0x12c))/0x5)+parseInt(_0x3b9326(0x134))/0x6*(-parseInt(_0x3b9326(0x12e))/0x7)+-parseInt(_0x3b9326(0x12a))/0x8+-parseInt(_0x3b9326(0x12b))/0x9*(-parseInt(_0x3b9326(0x132))/0xa)+parseInt(_0x3b9326(0x12f))/0xb;if(_0x456867===_0x1eedf0)break;else _0x3ac64d['push'](_0x3ac64d['shift']());}catch(_0x569a7a){_0x3ac64d['push'](_0x3ac64d['shift']());}}}(a65_0x34be,0x1aa1f));function a65_0x34be(){const _0x4ab540=['1489848OqYCkU','686358izpyqQ','5BviRHB','20217EMOTCT','7eZEEMr','4247287qPUxeM','67854wCfJiP','18YePoIc','20Vuwuct','248180SmTzgF','131658BlPzoR'];a65_0x34be=function(){return _0x4ab540;};return a65_0x34be();}import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x490c85=a66_0x268d;function a66_0x4805(){const _0x291d08=['Run\x20`','trim','workspace','180adtmKI','items','validation','appName','join','isArray','7LmaTFy','\x0aAccessKey:\x20not\x20written','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','project','command','env','appcode','\x22.\x20Allowed:\x20','3210363kuBFGY','appCode','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','app','accessKey','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','108495NHGjbT','object','750630ymtkkj','1470224MInTMJ','apps','filter','use','Invalid\x20env\x20\x22','App\x20code\x20to\x20bind\x20directly','shouldWriteEnv','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','string','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','\x20workspace\x20','181705jkMMJy','Usage:\x20','../../core/api-client.js','includes','App\x20\x22','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','Available\x20apps:\x20','length','init','Workspace\x20app\x20context\x20is\x20already\x20initialized.','from','defaultApp','Workspace\x20app\x20context\x20is\x20not\x20initialized.','修改当前工作目录已有绑定的应用上下文','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','660274XodyBN','../../commands/app/remote-source.js','Use\x20`','18156bHpmBT','write','str','Missing\x20workspace\x20app\x20selector.'];a66_0x4805=function(){return _0x291d08;};return a66_0x4805();}(function(_0x110629,_0xbc1e62){const _0x3a87c1=a66_0x268d,_0x4a14e5=_0x110629();while(!![]){try{const _0x10a026=-parseInt(_0x3a87c1(0xf5))/0x1+-parseInt(_0x3a87c1(0xd7))/0x2+-parseInt(_0x3a87c1(0xda))/0x3*(-parseInt(_0x3a87c1(0xe1))/0x4)+parseInt(_0x3a87c1(0xc7))/0x5+parseInt(_0x3a87c1(0xf7))/0x6+parseInt(_0x3a87c1(0xe7))/0x7*(-parseInt(_0x3a87c1(0xbc))/0x8)+parseInt(_0x3a87c1(0xef))/0x9;if(_0x10a026===_0xbc1e62)break;else _0x4a14e5['push'](_0x4a14e5['shift']());}catch(_0x20720d){_0x4a14e5['push'](_0x4a14e5['shift']());}}}(a66_0x4805,0x29093));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':a66_0x490c85(0xf2),'type':a66_0x490c85(0xc4),'description':a66_0x490c85(0xd6)},{'name':a66_0x490c85(0xed),'type':a66_0x490c85(0xc4),'description':a66_0x490c85(0xc1)},{'name':a66_0x490c85(0xec),'type':a66_0x490c85(0xc4),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x3e99c6,_0x4d7531){const _0x5a6bb5=a66_0x490c85,_0x564107=_0x3e99c6[_0x5a6bb5(0xdc)]('app')[_0x5a6bb5(0xdf)](),_0x4c5d4d=_0x3e99c6['str'](_0x5a6bb5(0xed))[_0x5a6bb5(0xdf)](),_0x3d7ecf=_0x3e99c6[_0x5a6bb5(0xdc)]('env')[_0x5a6bb5(0xdf)](),_0x1185ab=resolveWorkspaceEnv(_0x3d7ecf||_0x3e99c6['envName']||DEFAULT_CONFIG_VALUES[_0x5a6bb5(0xec)]);if(!_0x564107&&!_0x4c5d4d)throw CliErrors[_0x5a6bb5(0xe3)](_0x5a6bb5(0xdd),_0x5a6bb5(0xc8)+CLI_BIN_NAME+_0x5a6bb5(0xc6)+_0x4d7531+_0x5a6bb5(0xcc)+CLI_BIN_NAME+'\x20workspace\x20'+_0x4d7531+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x564107&&_0x4c5d4d)throw CliErrors[_0x5a6bb5(0xe3)]('Conflicting\x20workspace\x20app\x20selectors.','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x13569e=resolveWriteConfigPath(_0x5a6bb5(0xea)),_0x45a269=readConfigFile(_0x13569e);assertWorkspaceCommandState(_0x4d7531,_0x45a269);const _0x1a3d4d=_0x4c5d4d||await resolveRemoteAppCode({'command':_0x4d7531,'appName':_0x564107,'env':_0x1185ab,'accessKey':_0x3e99c6['accessKey']});return writeWorkspaceConfig({'command':_0x4d7531,'appName':_0x564107,'appcode':_0x1a3d4d,'env':_0x1185ab,'shouldWriteEnv':!!_0x3d7ecf,'accessKey':_0x3e99c6[_0x5a6bb5(0xf3)]},_0x13569e,_0x45a269),{'ok':!![],'data':{'configPath':_0x13569e,'app':_0x564107||null,'appcode':_0x1a3d4d,'env':_0x3d7ecf?_0x1185ab:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x4d7531},'message':buildWorkspaceMessage(_0x13569e,_0x564107,_0x1a3d4d,_0x3d7ecf?_0x1185ab:undefined)};}async function resolveRemoteAppCode(_0x52d087){const _0x306274=a66_0x490c85;if(!_0x52d087[_0x306274(0xf3)])throw CliErrors['authRequired'](_0x306274(0xe9)+CLI_BIN_NAME+_0x306274(0xc6)+_0x52d087[_0x306274(0xeb)]+'.');const {setActiveAK:_0x5db360}=await import(_0x306274(0xc9)),{getRemoteAppList:_0x5a2c83}=await import(_0x306274(0xd8));_0x5db360(_0x52d087[_0x306274(0xf3)]);const _0x4b3dd1=await _0x5a2c83({'env':_0x52d087['env'],'accessKey':_0x52d087[_0x306274(0xf3)],'noCache':![]}),_0x22ab34=findAppByName(_0x4b3dd1[_0x306274(0xe2)],_0x52d087['appName']);if(_0x22ab34&&!isRuntimeAccessibleApp(_0x22ab34))throw runtimeInaccessibleAppError(_0x22ab34,'\x22'+_0x52d087[_0x306274(0xe4)]+'\x22');const _0x3e4203=_0x22ab34?.[_0x306274(0xf0)]?.[_0x306274(0xdf)]();if(_0x3e4203)return _0x3e4203;const _0x1bd199=_0x4b3dd1[_0x306274(0xe2)]['map'](_0x5d4eae=>_0x5d4eae[_0x306274(0xe4)])[_0x306274(0xbe)](Boolean),_0x4bab3a=_0x1bd199[_0x306274(0xce)]?_0x306274(0xcd)+Array[_0x306274(0xd1)](new Set(_0x1bd199))[_0x306274(0xe5)](',\x20')+'.':_0x306274(0xde)+CLI_BIN_NAME+_0x306274(0xf1);throw CliErrors[_0x306274(0xe3)](_0x306274(0xcb)+_0x52d087[_0x306274(0xe4)]+'\x22\x20not\x20found.',_0x4bab3a);}function writeWorkspaceConfig(_0x325c73,_0x445311,_0x18d932){const _0x6cacfb=a66_0x490c85;_0x325c73[_0x6cacfb(0xc2)]&&(_0x18d932[_0x6cacfb(0xec)]=_0x325c73[_0x6cacfb(0xec)]);if(_0x325c73[_0x6cacfb(0xe4)]){const _0x1c9ad7=isRecord(_0x18d932[_0x6cacfb(0xbd)])?{..._0x18d932[_0x6cacfb(0xbd)]}:{},_0x21d857=isRecord(_0x1c9ad7[_0x325c73[_0x6cacfb(0xe4)]])?_0x1c9ad7[_0x325c73[_0x6cacfb(0xe4)]]:{};return _0x1c9ad7[_0x325c73[_0x6cacfb(0xe4)]]={..._0x21d857,'appcode':_0x325c73['appcode']},_0x18d932[_0x6cacfb(0xbd)]=_0x1c9ad7,_0x18d932[_0x6cacfb(0xd2)]=_0x325c73[_0x6cacfb(0xe4)],delete _0x18d932[_0x6cacfb(0xed)],delete _0x18d932[_0x6cacfb(0xf2)],writeAndReturn(_0x445311,_0x18d932);}return _0x18d932[_0x6cacfb(0xed)]=_0x325c73[_0x6cacfb(0xed)],delete _0x18d932['defaultApp'],delete _0x18d932[_0x6cacfb(0xf2)],writeAndReturn(_0x445311,_0x18d932);}function writeAndReturn(_0x551d88,_0x298b09){return writeConfigFile(_0x551d88,_0x298b09),_0x551d88;}function a66_0x268d(_0x5476e6,_0x424d5b){_0x5476e6=_0x5476e6-0xbc;const _0x4805a2=a66_0x4805();let _0x268d2c=_0x4805a2[_0x5476e6];return _0x268d2c;}function resolveWorkspaceEnv(_0x527001){const _0x7036b4=a66_0x490c85;if(RUNTIME_ENV_VALUES[_0x7036b4(0xca)](_0x527001))return _0x527001;throw CliErrors['validation'](_0x7036b4(0xc0)+_0x527001+_0x7036b4(0xee)+RUNTIME_ENV_VALUES[_0x7036b4(0xe5)](',\x20'));}function buildWorkspaceMessage(_0x158aa6,_0x367c3b,_0x48ead9,_0x584ead){const _0x12853b=a66_0x490c85,_0x2bed50=_0x367c3b?_0x367c3b+'\x20('+_0x48ead9+')':_0x48ead9,_0x543895=_0x584ead?'\x0aEnv:\x20'+_0x584ead:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x158aa6+'\x0aDefault\x20app:\x20'+_0x2bed50+_0x543895+_0x12853b(0xe8);}function isRecord(_0x5b8f74){const _0x94ccb5=a66_0x490c85;return typeof _0x5b8f74===_0x94ccb5(0xf6)&&_0x5b8f74!==null&&!Array[_0x94ccb5(0xe6)](_0x5b8f74);}function hasWorkspaceAppBinding(_0x490f30){const _0x27423e=a66_0x490c85;if(typeof _0x490f30[_0x27423e(0xed)]==='string'&&_0x490f30[_0x27423e(0xed)][_0x27423e(0xdf)]()[_0x27423e(0xce)]>0x0)return!![];if(typeof _0x490f30[_0x27423e(0xd2)]!=='string'||!_0x490f30[_0x27423e(0xd2)][_0x27423e(0xdf)]())return![];if(!isRecord(_0x490f30[_0x27423e(0xbd)]))return![];const _0x1492f6=_0x490f30[_0x27423e(0xbd)][_0x490f30[_0x27423e(0xd2)][_0x27423e(0xdf)]()];return isRecord(_0x1492f6)&&typeof _0x1492f6[_0x27423e(0xed)]==='string'&&_0x1492f6[_0x27423e(0xed)][_0x27423e(0xdf)]()[_0x27423e(0xce)]>0x0;}function assertWorkspaceCommandState(_0x14b4d4,_0x35f772){const _0x1a7198=a66_0x490c85,_0x9cd1b5=hasWorkspaceAppBinding(_0x35f772);if(_0x14b4d4==='init'&&_0x9cd1b5)throw CliErrors[_0x1a7198(0xe3)](_0x1a7198(0xd0),_0x1a7198(0xd9)+CLI_BIN_NAME+_0x1a7198(0xf4)+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0x14b4d4===_0x1a7198(0xbf)&&!_0x9cd1b5)throw CliErrors[_0x1a7198(0xe3)](_0x1a7198(0xd3),_0x1a7198(0xde)+CLI_BIN_NAME+_0x1a7198(0xc3)+CLI_BIN_NAME+_0x1a7198(0xc5));}function makeWorkspaceCommand(_0x4d40d6){const _0x579371=a66_0x490c85;return{'service':_0x579371(0xe0),'command':_0x4d40d6,'description':_0x4d40d6===_0x579371(0xcf)?'为尚未绑定应用的当前工作目录初始化应用上下文':_0x579371(0xd4),'risk':_0x579371(0xdb),'confirmationDescription':_0x4d40d6===_0x579371(0xcf)?_0x579371(0xd5):'将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x3ee9d1){return executeWorkspaceUse(_0x3ee9d1,_0x4d40d6);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a66_0x490c85(0xcf)),makeWorkspaceCommand('use')];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x15f063=a67_0x198a;(function(_0x53c9c1,_0x104bda){const _0x557a1f=a67_0x198a,_0x413f31=_0x53c9c1();while(!![]){try{const _0x21b5ec=parseInt(_0x557a1f(0xe9))/0x1+parseInt(_0x557a1f(0xfc))/0x2+-parseInt(_0x557a1f(0xe3))/0x3+-parseInt(_0x557a1f(0xe4))/0x4*(parseInt(_0x557a1f(0xee))/0x5)+parseInt(_0x557a1f(0xf2))/0x6*(-parseInt(_0x557a1f(0xf5))/0x7)+parseInt(_0x557a1f(0xfb))/0x8+parseInt(_0x557a1f(0xfd))/0x9;if(_0x21b5ec===_0x104bda)break;else _0x413f31['push'](_0x413f31['shift']());}catch(_0x49c482){_0x413f31['push'](_0x413f31['shift']());}}}(a67_0x215d,0xb6808));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a67_0x15f063(0xf6)],'importable':!![]},'format':{'description':a67_0x15f063(0xe5),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a67_0x15f063(0xec)],'importable':!![]},'pageSize':{'description':a67_0x15f063(0xfa),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a67_0x15f063(0xe6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a67_0x15f063(0xe1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a67_0x15f063(0xff),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a67_0x15f063(0xf9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a67_0x15f063(0x100),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a67_0x15f063(0xf7),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a67_0x15f063(0xea)],'importable':!![]},'locale':{'description':a67_0x15f063(0xeb),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a67_0x15f063(0xe8)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a67_0x15f063(0xf0)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x1d3aad])=>_0x1d3aad[a67_0x15f063(0xef)])[a67_0x15f063(0xf8)](([_0x256aa4])=>_0x256aa4));function a67_0x198a(_0x123066,_0x19761e){_0x123066=_0x123066-0xe1;const _0x215dec=a67_0x215d();let _0x198aaa=_0x215dec[_0x123066];return _0x198aaa;}export const CONFIG_ENUM_VALUES=Object[a67_0x15f063(0xf1)](Object[a67_0x15f063(0xf0)](CONFIG_FIELD_SCHEMAS)[a67_0x15f063(0xe7)](([,_0x150be0])=>_0x150be0[a67_0x15f063(0xfe)])[a67_0x15f063(0xf8)](([_0x330bb1,_0x55767b])=>[_0x330bb1,[..._0x55767b[a67_0x15f063(0xfe)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a67_0x15f063(0xf0)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x3de292])=>_0x3de292['importable'])[a67_0x15f063(0xf8)](([_0x92db7a])=>_0x92db7a);export function getConfigFieldSchema(_0x4f2216){return CONFIG_FIELD_SCHEMAS[_0x4f2216];}export function getConfigEnumValues(_0x17d13e){return getConfigFieldSchema(_0x17d13e)?.['enumValues'];}export function getConfigDefaultValue(_0x23c433){const _0x432aeb=a67_0x15f063;return getConfigFieldSchema(_0x23c433)?.[_0x432aeb(0xe2)];}export function isTopLevelConfigKey(_0x30bda9){return TOP_LEVEL_CONFIG_KEYS['has'](_0x30bda9);}export function isLegacyCompatConfigKey(_0x37bc9f){const _0x5319cd=a67_0x15f063;return getConfigFieldSchema(_0x37bc9f)?.[_0x5319cd(0xed)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x28a86f){return[..._0x28a86f]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5a5d4=a67_0x15f063;return _0x5a5d4(0xf3)+getTopLevelConfigKeySummary()+_0x5a5d4(0xf4);}function a67_0x215d(){const _0x37d84f=['filter','locale','983458aGCDXu','riskLevel','Locale','format','legacyCompatOnly','2861165OlTyFs','cliSettableTopLevel','entries','fromEntries','137652IzMIbK','Config\x20key.\x20Top-level:\x20',';\x20local\x20alias:\x20apps.<alias>.appcode','434uQsNBK','env','Risk\x20level','map','Override\x20SkillHub\x20domain','Default\x20page\x20size','3347968GUoYtO','251956kFfLPB','16758891uZWLAu','enumValues','Override\x20runtime\x20domain','Access\x20key\x20(client-ak\x20auth)','Override\x20user\x20domain','defaultValue','1943598OCvqYk','4GhNKSv','Default\x20output\x20format','Override\x20API\x20domain'];a67_0x215d=function(){return _0x37d84f;};return a67_0x215d();}export function buildAppProfileListFields(_0x3a675e){return{'env':_0x3a675e,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x1a4dd8=a68_0x54ea;function a68_0x54ea(_0x438173,_0x16ab8d){_0x438173=_0x438173-0x125;const _0xa3f93a=a68_0xa3f9();let _0x54eabb=_0xa3f93a[_0x438173];return _0x54eabb;}(function(_0x217f17,_0x3168ed){const _0x465fa0=a68_0x54ea,_0x5288bc=_0x217f17();while(!![]){try{const _0x19ce32=parseInt(_0x465fa0(0x128))/0x1*(-parseInt(_0x465fa0(0x131))/0x2)+parseInt(_0x465fa0(0x129))/0x3+parseInt(_0x465fa0(0x12d))/0x4*(parseInt(_0x465fa0(0x12a))/0x5)+-parseInt(_0x465fa0(0x130))/0x6+parseInt(_0x465fa0(0x126))/0x7*(parseInt(_0x465fa0(0x127))/0x8)+-parseInt(_0x465fa0(0x125))/0x9*(parseInt(_0x465fa0(0x12b))/0xa)+parseInt(_0x465fa0(0x132))/0xb;if(_0x19ce32===_0x3168ed)break;else _0x5288bc['push'](_0x5288bc['shift']());}catch(_0x51c497){_0x5288bc['push'](_0x5288bc['shift']());}}}(a68_0xa3f9,0x3976d));function a68_0xa3f9(){const _0x2c258e=['PUBLISHED','2806122kxEpFC','2518aFUePO','864754hazcvc','54882iycgfw','3295166uNIKNc','8pdgLSA','263MoamPW','801504wRNuWE','284735wWDJIT','110XuhNoO','UNPUBLISH','20LIEaSM','Published'];a68_0xa3f9=function(){return _0x2c258e;};return a68_0xa3f9();}export const APP_PUBLISH_STATUS={'Published':a68_0x1a4dd8(0x12f),'Unpublished':a68_0x1a4dd8(0x12c)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a68_0x1a4dd8(0x12e)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a69_0x415b73=a69_0x4e21;function a69_0xecb2(){const _0x125951=['4678548ManoSb','736RKUzXI','2076504sfQRCK','client-ak','3520512kPJFwk','862755UxFRQW','37085RVvhKU','165884ScHhhE','8402211YDdooO','1MJzvEn'];a69_0xecb2=function(){return _0x125951;};return a69_0xecb2();}function a69_0x4e21(_0x133c1a,_0x3c0613){_0x133c1a=_0x133c1a-0x1cc;const _0xecb20d=a69_0xecb2();let _0x4e2136=_0xecb20d[_0x133c1a];return _0x4e2136;}(function(_0x525440,_0x486773){const _0x4c0f15=a69_0x4e21,_0x1cf182=_0x525440();while(!![]){try{const _0x2c8102=parseInt(_0x4c0f15(0x1d1))/0x1*(parseInt(_0x4c0f15(0x1cf))/0x2)+parseInt(_0x4c0f15(0x1cd))/0x3+-parseInt(_0x4c0f15(0x1d3))/0x4*(-parseInt(_0x4c0f15(0x1ce))/0x5)+-parseInt(_0x4c0f15(0x1d4))/0x6+parseInt(_0x4c0f15(0x1d2))/0x7+-parseInt(_0x4c0f15(0x1cc))/0x8+-parseInt(_0x4c0f15(0x1d0))/0x9;if(_0x2c8102===_0x486773)break;else _0x1cf182['push'](_0x1cf182['shift']());}catch(_0x43e3d9){_0x1cf182['push'](_0x1cf182['shift']());}}}(a69_0xecb2,0xa6f74));export const AUTH_MODE={'ClientAk':a69_0x415b73(0x1d5)};export function isAuthMode(_0x2a950e){return _0x2a950e===AUTH_MODE['ClientAk'];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x333bf8=a70_0x5b47;(function(_0x56ea78,_0x5a2d72){const _0x5be2e4=a70_0x5b47,_0x131287=_0x56ea78();while(!![]){try{const _0x5ce858=-parseInt(_0x5be2e4(0x6f))/0x1*(parseInt(_0x5be2e4(0x8b))/0x2)+parseInt(_0x5be2e4(0x8d))/0x3+-parseInt(_0x5be2e4(0x8c))/0x4+-parseInt(_0x5be2e4(0x8a))/0x5*(-parseInt(_0x5be2e4(0x6a))/0x6)+parseInt(_0x5be2e4(0x7c))/0x7+-parseInt(_0x5be2e4(0x80))/0x8+parseInt(_0x5be2e4(0x7b))/0x9;if(_0x5ce858===_0x5a2d72)break;else _0x131287['push'](_0x131287['shift']());}catch(_0x56c73e){_0x131287['push'](_0x131287['shift']());}}}(a70_0x46b1,0x5492e));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a70_0x333bf8(0x85)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a70_0x333bf8(0x75)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a70_0x333bf8(0x96),'meowKey':'appcode','type':a70_0x333bf8(0x66),'description':a70_0x333bf8(0x71),'hint':a70_0x333bf8(0x87)},{'name':a70_0x333bf8(0x6e),'meowKey':a70_0x333bf8(0x6e),'type':'string','description':a70_0x333bf8(0x72),'hint':a70_0x333bf8(0x82)},{'name':'env','meowKey':a70_0x333bf8(0x77),'type':a70_0x333bf8(0x66),'description':a70_0x333bf8(0x74),'hint':a70_0x333bf8(0x95)},{'name':a70_0x333bf8(0x86),'meowKey':a70_0x333bf8(0x86),'type':a70_0x333bf8(0x66),'description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a70_0x333bf8(0x66),'description':a70_0x333bf8(0x92),'hint':a70_0x333bf8(0x6d)},{'name':a70_0x333bf8(0x88),'meowKey':a70_0x333bf8(0x90),'type':'boolean','description':a70_0x333bf8(0x73)},{'name':'yes','meowKey':a70_0x333bf8(0x83),'type':a70_0x333bf8(0x7a),'description':a70_0x333bf8(0x68)},{'name':a70_0x333bf8(0x94),'meowKey':'nonInteractive','type':a70_0x333bf8(0x7a),'description':a70_0x333bf8(0x76)},{'name':a70_0x333bf8(0x6c),'meowKey':a70_0x333bf8(0x6c),'type':a70_0x333bf8(0x7a),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a70_0x333bf8(0x7a),'description':a70_0x333bf8(0x7d),'hidden':!![]},{'name':a70_0x333bf8(0x78),'meowKey':a70_0x333bf8(0x78),'type':'boolean','description':a70_0x333bf8(0x91)},{'name':'id','meowKey':'id','type':a70_0x333bf8(0x66),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a70_0x333bf8(0x79),'type':a70_0x333bf8(0x66),'description':a70_0x333bf8(0x7f),'hidden':!![]},{'name':a70_0x333bf8(0x8f),'meowKey':'sqlcode','type':'string','description':a70_0x333bf8(0x93),'hidden':!![]},{'name':a70_0x333bf8(0x67),'meowKey':'params','type':'string','description':a70_0x333bf8(0x8e),'hidden':!![]},{'name':a70_0x333bf8(0x6b),'meowKey':'verbose','type':a70_0x333bf8(0x7a),'description':a70_0x333bf8(0x69),'hidden':!![]},{'name':a70_0x333bf8(0x70),'meowKey':'clear','type':a70_0x333bf8(0x7a),'description':'Clear\x20output','hidden':!![]}];function a70_0x5b47(_0x761a8a,_0x2674ec){_0x761a8a=_0x761a8a-0x66;const _0x46b1a6=a70_0x46b1();let _0x5b4771=_0x46b1a6[_0x761a8a];return _0x5b4771;}export const PIPELINE_FLAG_NAMES=new Set([a70_0x333bf8(0x96),a70_0x333bf8(0x6e),a70_0x333bf8(0x77),a70_0x333bf8(0x86),'jq',a70_0x333bf8(0x88),a70_0x333bf8(0x83),a70_0x333bf8(0x94),'ci']);function a70_0x46b1(){const _0x267ebb=['env','help','name','boolean','422613YxnNSo','647633cBhUrT','Alias\x20for\x20--non-interactive','fromEntries','Name\x20filter','1070680RIGovx','meowKey','<name>','yes','type','cliBinName','format','<code>','dry-run','map','20CDcHNi','524FSmPxz','660264NWvPOj','1055763BGkVNf','JSON\x20params\x20for\x20execute\x20commands','sqlcode','dryRun','Show\x20help','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','SQL\x20query\x20code','non-interactive','production\x20|\x20development\x20|\x20daily','appcode','string','params','Skip\x20confirmation\x20for\x20high-risk\x20writes','Verbose\x20output','561390xwlFqp','verbose','global','<expr>','app','841HyMiHC','clear','Override\x20appcode','Select\x20app\x20profile\x20by\x20name','Preview\x20operation\x20without\x20executing','Environment','cliDisplayName','Force\x20non-interactive\x20mode\x20(CI)'];a70_0x46b1=function(){return _0x267ebb;};return a70_0x46b1();}export function buildMeowFlags(){const _0x257506=a70_0x333bf8;return Object[_0x257506(0x7e)](GLOBAL_FLAGS[_0x257506(0x89)](_0x56ddef=>[_0x56ddef[_0x257506(0x81)],{'type':_0x56ddef[_0x257506(0x84)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a71_0x4b8225=a71_0x5c6c;(function(_0x5263f0,_0x426a17){const _0x19124c=a71_0x5c6c,_0x3ec43c=_0x5263f0();while(!![]){try{const _0x4f39a0=parseInt(_0x19124c(0x1e6))/0x1*(-parseInt(_0x19124c(0x1e5))/0x2)+-parseInt(_0x19124c(0x1e3))/0x3+-parseInt(_0x19124c(0x1e4))/0x4+-parseInt(_0x19124c(0x1ea))/0x5*(-parseInt(_0x19124c(0x1e7))/0x6)+-parseInt(_0x19124c(0x1f0))/0x7+parseInt(_0x19124c(0x1eb))/0x8+-parseInt(_0x19124c(0x1ee))/0x9*(-parseInt(_0x19124c(0x1ed))/0xa);if(_0x4f39a0===_0x426a17)break;else _0x3ec43c['push'](_0x3ec43c['shift']());}catch(_0x363639){_0x3ec43c['push'](_0x3ec43c['shift']());}}}(a71_0x53dc,0x3826b));function a71_0x53dc(){const _0x4f2e97=['1961376zquRRC','en-US','2582390Oyhchc','9wCjCNz','production','2393832xWrXiu','200856SueBGP','393524ShMbCI','3058XECUcT','145nzIbHu','4602jafcEN','compress','write','2970sQcDQE'];a71_0x53dc=function(){return _0x4f2e97;};return a71_0x53dc();}function a71_0x5c6c(_0x47bb69,_0x20a728){_0x47bb69=_0x47bb69-0x1e3;const _0x53dcf6=a71_0x53dc();let _0x5c6c91=_0x53dcf6[_0x47bb69];return _0x5c6c91;}export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a71_0x4b8225(0x1ef),'format':a71_0x4b8225(0x1e8),'locale':a71_0x4b8225(0x1ec),'riskLevel':a71_0x4b8225(0x1e9)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a71_0x4b8225(0x1e8);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x1b0763=a72_0x47fb;(function(_0x4112b3,_0x12bc92){const _0x26a7c9=a72_0x47fb,_0x57fe0a=_0x4112b3();while(!![]){try{const _0x4b2ec3=parseInt(_0x26a7c9(0xe0))/0x1*(parseInt(_0x26a7c9(0xe6))/0x2)+parseInt(_0x26a7c9(0xde))/0x3*(parseInt(_0x26a7c9(0xe8))/0x4)+parseInt(_0x26a7c9(0xdd))/0x5+-parseInt(_0x26a7c9(0xe2))/0x6+parseInt(_0x26a7c9(0xea))/0x7+parseInt(_0x26a7c9(0xe4))/0x8*(parseInt(_0x26a7c9(0xe1))/0x9)+parseInt(_0x26a7c9(0xe9))/0xa*(-parseInt(_0x26a7c9(0xdf))/0xb);if(_0x4b2ec3===_0x12bc92)break;else _0x57fe0a['push'](_0x57fe0a['shift']());}catch(_0x45d302){_0x57fe0a['push'](_0x57fe0a['shift']());}}}(a72_0x53ce,0x4c76e));function a72_0x47fb(_0x5c9f20,_0x3bcf22){_0x5c9f20=_0x5c9f20-0xdd;const _0x53ceba=a72_0x53ce();let _0x47fb15=_0x53ceba[_0x5c9f20];return _0x47fb15;}import{PRODUCT_CONFIG}from'../constant/product.js';function a72_0x53ce(){const _0x153ad2=['3138684GopMPQ','npmPackageName','8SvIEna','skillSource','1054450VJWBDy','npmRegistryBaseUrl','132zZISYH','1130lvwgeA','618940kFumSf','2143810jfBdqb','45447FgHgQu','94303sOEHZk','1NyIRDQ','2346633SksMFP'];a72_0x53ce=function(){return _0x153ad2;};return a72_0x53ce();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a72_0x1b0763(0xe3)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a72_0x1b0763(0xe5)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a72_0x1b0763(0xe7)];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x3d52b7=a73_0x18f7;function a73_0x18f7(_0x456625,_0xc3127){_0x456625=_0x456625-0xae;const _0x56d69a=a73_0x56d6();let _0x18f7fa=_0x56d69a[_0x456625];return _0x18f7fa;}function a73_0x56d6(){const _0x1f1b2e=['933332eDdxOs','runtimeDomain','786255lFKwZs','user','776626gdyWKI','2004632voWhZU','domains','8486600rVAfAE','6TuhqDh','24KlRElT','skillHubDomain','skillhub','13052151RFbhwk','production','api','545196kJlLRf','nonProduction'];a73_0x56d6=function(){return _0x1f1b2e;};return a73_0x56d6();}(function(_0x48a746,_0x4279d6){const _0x3315ad=a73_0x18f7,_0x27fd36=_0x48a746();while(!![]){try{const _0x43c174=parseInt(_0x3315ad(0xbe))/0x1+parseInt(_0x3315ad(0xb3))/0x2*(-parseInt(_0x3315ad(0xb7))/0x3)+parseInt(_0x3315ad(0xaf))/0x4+-parseInt(_0x3315ad(0xb1))/0x5+-parseInt(_0x3315ad(0xb8))/0x6*(-parseInt(_0x3315ad(0xb4))/0x7)+parseInt(_0x3315ad(0xb6))/0x8+-parseInt(_0x3315ad(0xbb))/0x9;if(_0x43c174===_0x4279d6)break;else _0x27fd36['push'](_0x27fd36['shift']());}catch(_0x4d1722){_0x27fd36['push'](_0x27fd36['shift']());}}}(a73_0x56d6,0x92aa6));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x4cc122){const _0x286a41=a73_0x18f7;customApiDomain=_0x4cc122?.['apiDomain'],customUserDomain=_0x4cc122?.['userDomain'],customRuntimeDomain=_0x4cc122?.[_0x286a41(0xb0)],customSkillHubDomain=_0x4cc122?.[_0x286a41(0xb9)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a73_0x3d52b7(0xb5)][a73_0x3d52b7(0xbc)][a73_0x3d52b7(0xb2)]:PRODUCT_CONFIG['domains'][a73_0x3d52b7(0xae)][a73_0x3d52b7(0xb2)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a73_0x3d52b7(0xb5)][a73_0x3d52b7(0xbc)][a73_0x3d52b7(0xbd)]:PRODUCT_CONFIG[a73_0x3d52b7(0xb5)][a73_0x3d52b7(0xae)][a73_0x3d52b7(0xbd)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a73_0x3d52b7(0xb5)][a73_0x3d52b7(0xbc)]['runtime']:PRODUCT_CONFIG[a73_0x3d52b7(0xb5)][a73_0x3d52b7(0xae)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a73_0x3d52b7(0xb5)][a73_0x3d52b7(0xbc)][a73_0x3d52b7(0xba)]:PRODUCT_CONFIG[a73_0x3d52b7(0xb5)][a73_0x3d52b7(0xae)][a73_0x3d52b7(0xba)]);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x37d783=a74_0x447a;function a74_0x447a(_0x3a49f7,_0xeb980f){_0x3a49f7=_0x3a49f7-0x1b8;const _0x301cfa=a74_0x301c();let _0x447aa=_0x301cfa[_0x3a49f7];return _0x447aa;}(function(_0x241c09,_0x317ed1){const _0x22e46d=a74_0x447a,_0xa17302=_0x241c09();while(!![]){try{const _0x3e4231=parseInt(_0x22e46d(0x1bb))/0x1*(parseInt(_0x22e46d(0x1b8))/0x2)+parseInt(_0x22e46d(0x1c5))/0x3+-parseInt(_0x22e46d(0x1bc))/0x4+-parseInt(_0x22e46d(0x1c0))/0x5*(parseInt(_0x22e46d(0x1c3))/0x6)+-parseInt(_0x22e46d(0x1c4))/0x7*(parseInt(_0x22e46d(0x1bd))/0x8)+parseInt(_0x22e46d(0x1c1))/0x9+parseInt(_0x22e46d(0x1bf))/0xa;if(_0x3e4231===_0x317ed1)break;else _0xa17302['push'](_0xa17302['shift']());}catch(_0x464920){_0xa17302['push'](_0xa17302['shift']());}}}(a74_0x301c,0xbf538));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a74_0x37d783(0x1be),a74_0x37d783(0x1c2),a74_0x37d783(0x1c6)];export function normalizeEnv(_0x3fac1c){const _0xc6b530=a74_0x37d783;return _0x3fac1c===_0xc6b530(0x1b9)?'production':_0x3fac1c;}export function isProduction(_0x37c90e){const _0x432215=a74_0x37d783;return normalizeEnv(_0x37c90e)===_0x432215(0x1be);}export function isDaily(_0x4d0680){const _0x9d6d70=a74_0x37d783;return normalizeEnv(_0x4d0680)===_0x9d6d70(0x1c6);}export function isDev(_0x269e68){const _0x548e14=a74_0x37d783,_0x5288e4=normalizeEnv(_0x269e68);return _0x5288e4===_0x548e14(0x1c2)||_0x5288e4===_0x548e14(0x1ba);}let env=normalizeEnv(productEnv('ENV')||a74_0x37d783(0x1be));export function getEnv(){return env;}export function initEnv(_0x4cd868){env=normalizeEnv(_0x4cd868);}function a74_0x301c(){const _0xe6b2e8=['483672HwXqBa','16srHnQM','production','9972170KJtyVz','7438170tNUgOj','13536mhGNyl','development','6HQaOGE','1702659UMsLON','1712463IZrDtX','daily','8sCfjeH','online','dev','327289YFycEh'];a74_0x301c=function(){return _0xe6b2e8;};return a74_0x301c();}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a75_0x3426(){const _0x2a5a7a=['11062216aICrCV','9fFDlxD','pretty','1893ZlooPu','1699509YrkPow','426165lSlQQm','174680BCTYGB','3540VIlQyJ','93836BwKjZq','114zPyJbD','26650740FSFcFI','compress'];a75_0x3426=function(){return _0x2a5a7a;};return a75_0x3426();}const a75_0x5a11e9=a75_0x1568;function a75_0x1568(_0x2ec84f,_0x3e71b0){_0x2ec84f=_0x2ec84f-0x1a3;const _0x342631=a75_0x3426();let _0x1568d2=_0x342631[_0x2ec84f];return _0x1568d2;}(function(_0x1cf923,_0x3f9acd){const _0x58cf9f=a75_0x1568,_0x46f382=_0x1cf923();while(!![]){try{const _0x24aecf=parseInt(_0x58cf9f(0x1a9))/0x1+parseInt(_0x58cf9f(0x1a7))/0x2+-parseInt(_0x58cf9f(0x1a4))/0x3*(-parseInt(_0x58cf9f(0x1a8))/0x4)+-parseInt(_0x58cf9f(0x1a6))/0x5*(-parseInt(_0x58cf9f(0x1aa))/0x6)+-parseInt(_0x58cf9f(0x1a5))/0x7+-parseInt(_0x58cf9f(0x1ad))/0x8*(-parseInt(_0x58cf9f(0x1ae))/0x9)+-parseInt(_0x58cf9f(0x1ab))/0xa;if(_0x24aecf===_0x3f9acd)break;else _0x46f382['push'](_0x46f382['shift']());}catch(_0x378827){_0x46f382['push'](_0x46f382['shift']());}}}(a75_0x3426,0xcb9a2));export const OUTPUT_FORMAT_VALUES=['json',a75_0x5a11e9(0x1a3),a75_0x5a11e9(0x1ac)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a76_0x2e7c(){const _0x3c90f1=['https://daily-api.lovrabet.com','117xMpKyS','https://api.lovrabet.com','envPrefix','1285698UMqBEg','https://registry.npmjs.org','SKIP_NPX_SKILLS','4PZFgTV','https://daily-runtime.lovrabet.com','https://skills.lovrabet.com','16341ZHXruk','lovrabet','lovrabet/lovrabet-cli','.lovrabet','/user/ak','RABETBASE','https://user.lovrabet.com','1099lHKONi','cli:lovrabet-runtime','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','.lovrabet.json','map','12475452EqZMde','.lovrabet-runtime.log','https://skills-daily.lovrabet.com','https://user-daily.lovrabet.com','34zFhtIl','2982jxijrg','legacyEnvPrefixes','https://runtime.lovrabet.com','2184740sWyylc','500792ElTbJA','191300WujORA','@lovrabet/lovrabet-cli','LOVRABET'];a76_0x2e7c=function(){return _0x3c90f1;};return a76_0x2e7c();}const a76_0x18cc60=a76_0x1ec9;(function(_0x1e457d,_0x92966c){const _0x3981fe=a76_0x1ec9,_0x3d9373=_0x1e457d();while(!![]){try{const _0x3a5ba8=parseInt(_0x3981fe(0x145))/0x1*(parseInt(_0x3981fe(0x132))/0x2)+parseInt(_0x3981fe(0x13f))/0x3*(parseInt(_0x3981fe(0x142))/0x4)+parseInt(_0x3981fe(0x136))/0x5+-parseInt(_0x3981fe(0x133))/0x6*(parseInt(_0x3981fe(0x129))/0x7)+parseInt(_0x3981fe(0x137))/0x8+parseInt(_0x3981fe(0x13c))/0x9*(parseInt(_0x3981fe(0x138))/0xa)+-parseInt(_0x3981fe(0x12e))/0xb;if(_0x3a5ba8===_0x92966c)break;else _0x3d9373['push'](_0x3d9373['shift']());}catch(_0x554a76){_0x3d9373['push'](_0x3d9373['shift']());}}}(a76_0x2e7c,0x3b307));function a76_0x1ec9(_0x27b582,_0x43472e){_0x27b582=_0x27b582-0x125;const _0x2e7cfe=a76_0x2e7c();let _0x1ec9fc=_0x2e7cfe[_0x27b582];return _0x1ec9fc;}export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a76_0x18cc60(0x139),'skillSource':a76_0x18cc60(0x147),'internalSkillSource':a76_0x18cc60(0x12b),'globalSkillName':a76_0x18cc60(0x146),'npmRegistryBaseUrl':a76_0x18cc60(0x140),'envPrefix':a76_0x18cc60(0x13a),'legacyEnvPrefixes':[a76_0x18cc60(0x127)],'configFileNames':[a76_0x18cc60(0x12c),'.lovrabetrc'],'newConfigFileName':a76_0x18cc60(0x12c),'homeDirName':a76_0x18cc60(0x125),'logFileName':a76_0x18cc60(0x12f),'invokeSource':a76_0x18cc60(0x12a),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a76_0x18cc60(0x141),'domains':{'production':{'user':a76_0x18cc60(0x128),'api':a76_0x18cc60(0x13d),'runtime':a76_0x18cc60(0x135),'skillhub':a76_0x18cc60(0x144)},'nonProduction':{'user':a76_0x18cc60(0x131),'api':a76_0x18cc60(0x13b),'runtime':a76_0x18cc60(0x143),'skillhub':a76_0x18cc60(0x130)}},'accessKeyCreatePath':a76_0x18cc60(0x126)};export function productEnvName(_0x136cb7){const _0x12ebbd=a76_0x18cc60;return PRODUCT_CONFIG[_0x12ebbd(0x13e)]+'_'+_0x136cb7;}export function productEnvNames(_0x1aaf10){const _0x3bdf14=a76_0x18cc60;return[productEnvName(_0x1aaf10),...PRODUCT_CONFIG[_0x3bdf14(0x134)][_0x3bdf14(0x12d)](_0x3eee06=>_0x3eee06+'_'+_0x1aaf10)];}export function productEnv(_0x1802f8){for(const _0x1ad409 of productEnvNames(_0x1802f8)){const _0x4c0aa7=process.env[_0x1ad409];if(_0x4c0aa7!==undefined)return _0x4c0aa7;}return undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x5899fa=a77_0x3322;function a77_0x3a85(){const _0x26ded7=['30IJmsMD','268336zHwsrv','713816tAuXYc','959493hSeAnD','173373XnXoeG','read','1770220sUtFdq','355306sADvql','high-risk-write','918795iautDu','write','4vTfXZO','45jIIXtK'];a77_0x3a85=function(){return _0x26ded7;};return a77_0x3a85();}function a77_0x3322(_0x369a38,_0x3c50a0){_0x369a38=_0x369a38-0x18e;const _0x3a85ef=a77_0x3a85();let _0x3322df=_0x3a85ef[_0x369a38];return _0x3322df;}(function(_0x3ec489,_0x261ada){const _0x115b03=a77_0x3322,_0x324617=_0x3ec489();while(!![]){try{const _0x425c8f=-parseInt(_0x115b03(0x19a))/0x1+-parseInt(_0x115b03(0x198))/0x2+parseInt(_0x115b03(0x199))/0x3+-parseInt(_0x115b03(0x194))/0x4*(parseInt(_0x115b03(0x192))/0x5)+-parseInt(_0x115b03(0x196))/0x6*(parseInt(_0x115b03(0x190))/0x7)+parseInt(_0x115b03(0x197))/0x8+parseInt(_0x115b03(0x195))/0x9*(parseInt(_0x115b03(0x18f))/0xa);if(_0x425c8f===_0x261ada)break;else _0x324617['push'](_0x324617['shift']());}catch(_0x4911e6){_0x324617['push'](_0x324617['shift']());}}}(a77_0x3a85,0x4213d));export const RISK_LEVEL_VALUES=[a77_0x5899fa(0x18e),a77_0x5899fa(0x193),a77_0x5899fa(0x191)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a78_0x4da1(_0x1f916f,_0x59fd98){_0x1f916f=_0x1f916f-0xe5;const _0x58b5f0=a78_0x58b5();let _0x4da166=_0x58b5f0[_0x1f916f];return _0x4da166;}function a78_0x58b5(){const _0x232c8e=['254086ZjKXPi','604276TIKyIC','2255936lvSsAi','490WmRAXv','72fLgjDy','2158610uxhYwt','user','188073CJOKXQ','accessKeyCreatePath','84912lbHcYG','953916IPwoUm','18IFZJzh'];a78_0x58b5=function(){return _0x232c8e;};return a78_0x58b5();}const a78_0x34a453=a78_0x4da1;(function(_0x598104,_0x552833){const _0xdfae56=a78_0x4da1,_0x4d164b=_0x598104();while(!![]){try{const _0x36b64b=parseInt(_0xdfae56(0xe6))/0x1+parseInt(_0xdfae56(0xf0))/0x2*(parseInt(_0xdfae56(0xee))/0x3)+-parseInt(_0xdfae56(0xef))/0x4+-parseInt(_0xdfae56(0xea))/0x5+parseInt(_0xdfae56(0xe9))/0x6*(-parseInt(_0xdfae56(0xe5))/0x7)+-parseInt(_0xdfae56(0xe7))/0x8+parseInt(_0xdfae56(0xec))/0x9*(parseInt(_0xdfae56(0xe8))/0xa);if(_0x36b64b===_0x552833)break;else _0x4d164b['push'](_0x4d164b['shift']());}catch(_0x231309){_0x4d164b['push'](_0x4d164b['shift']());}}}(a78_0x58b5,0x78e5c));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains']['production'][a78_0x34a453(0xeb)]+PRODUCT_CONFIG[a78_0x34a453(0xed)];
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a79_0x1843ef=a79_0x26a5;(function(_0x40f184,_0x207a3c){const _0x220379=a79_0x26a5,_0x32e9f2=_0x40f184();while(!![]){try{const _0x3f5991=-parseInt(_0x220379(0xe5))/0x1+parseInt(_0x220379(0xe9))/0x2+parseInt(_0x220379(0x115))/0x3*(parseInt(_0x220379(0x101))/0x4)+-parseInt(_0x220379(0x118))/0x5+-parseInt(_0x220379(0x103))/0x6*(-parseInt(_0x220379(0x109))/0x7)+-parseInt(_0x220379(0xf1))/0x8+parseInt(_0x220379(0x11c))/0x9;if(_0x3f5991===_0x207a3c)break;else _0x32e9f2['push'](_0x32e9f2['shift']());}catch(_0x21dd64){_0x32e9f2['push'](_0x32e9f2['shift']());}}}(a79_0x4ff9,0x9e4ad));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a79_0x4ff9(){const _0x2b94a0=['projectConfig','env','stringify','setLogPath','accessKey','values','520792IRgjBv','locale','6UmRdCe','.tmp','stdout','parse','missing','online','4631025DLXEcj','slice','EXDEV','format','object','global','appcode','cache','raw','high-risk-write','pageSize','error','18ZdOYSP','EACCES','maxRisk','4198280oELiuR','argv','stdin','apiDomain','11774232anHDmX','read','./constant/domain.js','string','utf8','some','nonInteractive','PAGE_SIZE','APPCODE','local-alias','top-level','cwd','apps','trim','1112531IiRgsF','ENV','configFileNames','defaultApp','63730JVJEoX','true','app','explicit','daily','./constant/env.js','isTTY','code','1458592vXlVTA','authRequired','message','join','APP','production','project','riskLevel','setRawCommand','setRawMode'];a79_0x4ff9=function(){return _0x2b94a0;};return a79_0x4ff9();}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';function a79_0x26a5(_0x14f3a7,_0x1f24c9){_0x14f3a7=_0x14f3a7-0xd8;const _0x4ff980=a79_0x4ff9();let _0x26a5ed=_0x4ff980[_0x14f3a7];return _0x26a5ed;}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[a79_0x1843ef(0xe7)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x3379dd){for(const _0x16472d of CONFIG_NAMES){const _0x52b2bd=resolve(_0x3379dd,_0x16472d);if(existsSync(_0x52b2bd))return _0x52b2bd;}return undefined;}export function resolveWriteConfigPath(_0x2c660e){const _0x42d104=a79_0x1843ef,_0x526a63=_0x2c660e==='project'?process[_0x42d104(0xe2)]():homedir(),_0x293b74=resolveConfigPath(_0x526a63);return _0x293b74??resolve(_0x526a63,NEW_CONFIG_NAME);}export function readConfigFile(_0x86181f){const _0x57d343=a79_0x1843ef;try{if(existsSync(_0x86181f)){const _0x216dba=readFileSync(_0x86181f,{'encoding':_0x57d343(0xdb)});if(_0x216dba){const _0x24ee9e=JSON[_0x57d343(0x106)](_0x216dba);return migrateOnlineEnv(_0x86181f,_0x24ee9e),_0x24ee9e;}}}catch{}return{};}function migrateOnlineEnv(_0xeb8fde,_0x18fa56){const _0x385364=a79_0x1843ef;let _0x4e10d9=![];_0x18fa56['env']===_0x385364(0x108)&&(_0x18fa56[_0x385364(0xfc)]=_0x385364(0xf6),_0x4e10d9=!![]);if(_0x18fa56[_0x385364(0xe3)]&&typeof _0x18fa56[_0x385364(0xe3)]==='object')for(const _0x12e706 of Object[_0x385364(0x100)](_0x18fa56['apps'])){_0x12e706&&_0x12e706['env']===_0x385364(0x108)&&(_0x12e706[_0x385364(0xfc)]=_0x385364(0xf6),_0x4e10d9=!![]);}if(_0x4e10d9)try{writeConfigFile(_0xeb8fde,_0x18fa56);}catch{}}export function writeConfigFile(_0x2d8191,_0x12e03d){const _0x1c06a6=a79_0x1843ef,_0x41af17=dirname(_0x2d8191);!existsSync(_0x41af17)&&mkdirSync(_0x41af17,{'recursive':!![]});const _0x389a02=_0x2d8191+_0x1c06a6(0x104);try{writeFileSync(_0x389a02,JSON['stringify'](_0x12e03d,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x389a02,_0x2d8191);}catch(_0x18ac94){if(_0x18ac94[_0x1c06a6(0xf0)]==='EPERM'||_0x18ac94['code']===_0x1c06a6(0x10b)||_0x18ac94[_0x1c06a6(0xf0)]===_0x1c06a6(0x116)){writeFileSync(_0x2d8191,JSON[_0x1c06a6(0xfd)](_0x12e03d,null,0x2)+'\x0a',{'encoding':_0x1c06a6(0xdb)});try{unlinkSync(_0x389a02);}catch{}}else throw _0x18ac94;}}catch(_0x3c19a5){try{unlinkSync(_0x389a02);}catch{}throw _0x3c19a5;}}export function isNonInteractiveMode(_0x42d063){const _0x3ff819=a79_0x1843ef;return!!(_0x42d063[_0x3ff819(0xdd)]||_0x42d063['ci']||productEnvNames('CI')[_0x3ff819(0xdc)](_0x9e6de=>process.env[_0x9e6de]===_0x3ff819(0xea))||process.env.CI==='true'||!process[_0x3ff819(0x105)][_0x3ff819(0xef)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2522d8=a79_0x1843ef;if(!process[_0x2522d8(0x11a)][_0x2522d8(0xef)])return![];try{const _0x54bb57=process[_0x2522d8(0x11a)]['isRaw'];return process[_0x2522d8(0x11a)][_0x2522d8(0xfa)](!![]),process[_0x2522d8(0x11a)][_0x2522d8(0xfa)](_0x54bb57??![]),!![];}catch{return![];}}export async function createContext(_0x593b0d){const _0x4262f3=a79_0x1843ef,_0x11177c=readRawConfig(),_0x269506=buildConfig(_0x11177c,_0x593b0d);await initGlobalEnvironment(_0x269506);const {getUserDomain:_0x8aaaa1,getApiDomain:_0x3dc18a}=await import('./constant/domain.js'),_0x5aaec7={'apiDomain':_0x3dc18a(),'userDomain':_0x8aaaa1()},_0x419b3b=await buildAuth(_0x269506);logger[_0x4262f3(0xfe)](process[_0x4262f3(0xe2)]());const _0x2b7141=(CLI_BIN_NAME+'\x20'+process[_0x4262f3(0x119)][_0x4262f3(0x10a)](0x2)[_0x4262f3(0xf4)]('\x20'))[_0x4262f3(0xe4)]();logger[_0x4262f3(0xf9)](_0x2b7141);const _0x29fb88=isNonInteractiveMode(_0x593b0d);return{'config':_0x269506,'auth':_0x419b3b,'logger':logger,'env':_0x5aaec7,'nonInteractive':_0x29fb88};}export function buildConfigFromFlags(_0x333861){return buildConfig(readRawConfig(),_0x333861);}export function getLocalAppAliases(_0x4f47e2){const _0x2b4544=a79_0x1843ef;return _0x4f47e2[_0x2b4544(0xe3)]&&typeof _0x4f47e2[_0x2b4544(0xe3)]===_0x2b4544(0x10d)?_0x4f47e2[_0x2b4544(0xe3)]:{};}export function resolveLocalAppAliasCode(_0x1a3575,_0x158cea){const _0x3fcd1a=a79_0x1843ef;if(!_0x158cea)return undefined;const _0x3e05d7=getLocalAppAliases(_0x1a3575)[_0x158cea],_0x1116a4=_0x3e05d7?.['appcode'];return typeof _0x1116a4===_0x3fcd1a(0xda)&&_0x1116a4[_0x3fcd1a(0xe4)]()?_0x1116a4[_0x3fcd1a(0xe4)]():undefined;}export function readAppCodeFromConfig(){const _0x255213=a79_0x1843ef,_0x52762c=readRawConfig(),_0x5c39d6=_0x52762c['appcode']??_0x52762c[_0x255213(0xeb)];if(typeof _0x5c39d6===_0x255213(0xda)&&_0x5c39d6[_0x255213(0xe4)]())return _0x5c39d6[_0x255213(0xe4)]();const _0x5a1f62=resolveLocalAppAliasCode(_0x52762c,typeof _0x52762c[_0x255213(0xe8)]===_0x255213(0xda)?_0x52762c['defaultApp']:undefined);if(_0x5a1f62)return _0x5a1f62;const _0x3ffb73=normalizeEnv(String(_0x52762c[_0x255213(0xfc)]||_0x255213(0xf6))),_0x6b910=isDaily(_0x3ffb73)?_0x255213(0xed):isDev(_0x3ffb73)?'development':'production',_0x30167e=resolveCachedAppCode(typeof _0x52762c[_0x255213(0xe8)]===_0x255213(0xda)?_0x52762c[_0x255213(0xe8)]:undefined,_0x6b910,typeof _0x52762c[_0x255213(0xff)]==='string'?_0x52762c[_0x255213(0xff)]:undefined);if(_0x30167e)return _0x30167e;const _0x543d93=Object[_0x255213(0x100)](getLocalAppAliases(_0x52762c))['find'](_0x3237eb=>_0x3237eb?.[_0x255213(0x10f)]);return typeof _0x543d93?.[_0x255213(0x10f)]===_0x255213(0xda)&&_0x543d93[_0x255213(0x10f)][_0x255213(0xe4)]()?_0x543d93[_0x255213(0x10f)]['trim']():undefined;}export function readScopedConfig(_0x321e41){const _0x196e5d=a79_0x1843ef,_0x30b967=_0x321e41['global']?_0x196e5d(0x10e):_0x196e5d(0xf7);return readConfigFile(resolveWriteConfigPath(_0x30b967));}export function writeScopedConfig(_0x1b6912,_0x283bdb){const _0x34b437=a79_0x1843ef,_0x75bb8f=_0x283bdb[_0x34b437(0x10e)]?'global':_0x34b437(0xf7);writeConfigFile(resolveWriteConfigPath(_0x75bb8f),_0x1b6912);}export async function initGlobalEnvironment(_0x23b09d){const _0x359b17=a79_0x1843ef,{initEnv:_0xb1bf30}=await import(_0x359b17(0xee));_0xb1bf30(_0x23b09d[_0x359b17(0xfc)]);const {initDomains:_0x33168f}=await import(_0x359b17(0xd9));_0x33168f({'apiDomain':_0x23b09d[_0x359b17(0x111)][_0x359b17(0x11b)]||_0x23b09d['raw']['host']||undefined,'userDomain':_0x23b09d['raw']['userDomain']||undefined,'runtimeDomain':_0x23b09d[_0x359b17(0x111)]['runtimeDomain']||undefined,'skillHubDomain':_0x23b09d[_0x359b17(0x111)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0xd7c53d){const _0x57ab9a=a79_0x1843ef;if(!existsSync(_0xd7c53d))return{'status':_0x57ab9a(0x107)};try{const _0x3a26c6=readFileSync(_0xd7c53d,{'encoding':_0x57ab9a(0xdb)});if(!_0x3a26c6?.[_0x57ab9a(0xe4)]())return{'status':'empty'};const _0x1dc104=JSON[_0x57ab9a(0x106)](_0x3a26c6);return{'status':'ok','data':_0x1dc104};}catch(_0x293f52){return{'status':_0x57ab9a(0x114),'message':_0x293f52 instanceof Error?_0x293f52[_0x57ab9a(0xf3)]:String(_0x293f52)};}}export function loadRawConfigLayers(_0x4b0286){const _0x379578=a79_0x1843ef;let _0x59ecaa={},_0x104d09={},_0x4c5785,_0x525559;try{_0x4c5785=resolveConfigPath(homedir());if(_0x4c5785){const _0x4c3efa=readFileSync(_0x4c5785,{'encoding':_0x379578(0xdb)});if(_0x4c3efa)_0x59ecaa=JSON[_0x379578(0x106)](_0x4c3efa);}}catch{}try{const _0x19165d=_0x4b0286||process[_0x379578(0xe2)]();_0x525559=resolveConfigPath(_0x19165d);if(_0x525559){const _0x4b9b99=readFileSync(_0x525559,{'encoding':'utf8'});if(_0x4b9b99)_0x104d09=JSON['parse'](_0x4b9b99);}}catch{}return{'globalPath':_0x4c5785,'projectPath':_0x525559,'globalConfig':_0x59ecaa,'projectConfig':_0x104d09};}function mergeRawConfigLayers(_0x41f48f){const _0x4658b5=a79_0x1843ef,{globalConfig:_0x348e70,projectConfig:_0x1ffe85}=_0x41f48f;if(_0x1ffe85['inherit']===![]){const _0x46cf57={..._0x1ffe85};return delete _0x46cf57['inherit'],_0x46cf57;}const _0x40c314={..._0x348e70,..._0x1ffe85};if(_0x4658b5(0xe8)in _0x1ffe85)_0x40c314['defaultApp']=_0x1ffe85['defaultApp'];else _0x348e70[_0x4658b5(0xe8)]&&(_0x40c314[_0x4658b5(0xe8)]=_0x348e70[_0x4658b5(0xe8)]);return _0x40c314;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1bf83a){return mergeRawConfigLayers(loadRawConfigLayers(_0x1bf83a));}export function readRawConfigWithLayers(_0x3d8d94){const _0x5b9dd1=loadRawConfigLayers(_0x3d8d94);return{'config':mergeRawConfigLayers(_0x5b9dd1),'layers':_0x5b9dd1};}export function resolveDefaultAppSource(_0x318996){const _0x398fb8=a79_0x1843ef;if(_0x398fb8(0xe8)in _0x318996['projectConfig'])return _0x398fb8(0xf7);if(_0x318996[_0x398fb8(0xfb)]['inherit']===![])return null;if(_0x318996['globalConfig'][_0x398fb8(0xe8)])return'global';return null;}function buildConfig(_0x48e7fe,_0x495849){const _0x1cea65=a79_0x1843ef,_0x2307fe=_0x48e7fe['defaultApp']||undefined,_0x5983b8=_0x495849[_0x1cea65(0xeb)]||env(_0x1cea65(0xf5))||undefined,_0x57edff=_0x5983b8||_0x2307fe||undefined,_0x7100eb=env('ACCESS_KEY')||_0x48e7fe['accessKey']||undefined,_0x341058=_0x495849[_0x1cea65(0xfc)]||env(_0x1cea65(0xe6))||_0x48e7fe[_0x1cea65(0xfc)]||DEFAULT_CONFIG_VALUES[_0x1cea65(0xfc)],_0x1e7bf7=normalizeEnv(String(_0x341058)),_0x266980=isDaily(_0x1e7bf7)?_0x1cea65(0xed):isDev(_0x1e7bf7)?'development':_0x1cea65(0xf6),_0x473a13=typeof _0x495849[_0x1cea65(0x10f)]===_0x1cea65(0xda)?_0x495849[_0x1cea65(0x10f)]:undefined,_0x589a8c=env(_0x1cea65(0xdf)),_0x16effd=_0x5983b8?undefined:_0x48e7fe['appcode']||_0x48e7fe[_0x1cea65(0xeb)]||undefined,_0x3ffa29=_0x5983b8||(_0x16effd?undefined:_0x2307fe),_0x3538cc=resolveLocalAppAliasCode(_0x48e7fe,_0x3ffa29),_0x5e0c05=resolveCachedAppCode(_0x3ffa29,_0x266980,_0x7100eb),_0x2cab53=_0x473a13||_0x589a8c||_0x16effd||_0x3538cc||_0x5e0c05||undefined,_0x51e910=_0x473a13?_0x1cea65(0xec):_0x589a8c?'env':_0x16effd?_0x1cea65(0xe1):_0x3538cc?_0x1cea65(0xe0):_0x5e0c05?_0x1cea65(0x110):undefined,_0x396e52=_0x48e7fe[_0x1cea65(0x102)]||DEFAULT_CONFIG_VALUES[_0x1cea65(0x102)],_0x3ba3ad=undefined,_0x3163c5=_0x495849[_0x1cea65(0x10c)]||env('FORMAT')||_0x48e7fe['format'],_0x4b0288=normalizeLegacyOutputFormat(_0x3163c5),_0x5ed434=env(_0x1cea65(0xde))||_0x48e7fe[_0x1cea65(0x113)],_0x3a43a8=_0x5ed434?Number(_0x5ed434)||undefined:undefined,_0x17db24=_0x48e7fe[_0x1cea65(0xf8)]||_0x48e7fe[_0x1cea65(0x117)],_0x488ccc=_0x17db24===_0x1cea65(0xd8)||_0x17db24==='write'||_0x17db24===_0x1cea65(0x112)?_0x17db24:DEFAULT_CONFIG_VALUES[_0x1cea65(0xf8)],_0x1bc28b=env('VERBOSE'),_0x40e370=_0x1bc28b==='1'||_0x1bc28b===_0x1cea65(0xea);return{'appCode':typeof _0x2cab53==='string'&&_0x2cab53[_0x1cea65(0xe4)]()?_0x2cab53[_0x1cea65(0xe4)]():undefined,'appCodeSource':_0x51e910,'env':_0x266980,'locale':_0x396e52,'cookie':_0x3ba3ad,'accessKey':_0x7100eb,'format':_0x4b0288,'pageSize':_0x3a43a8,'riskLevel':_0x488ccc,'verbose':_0x40e370,'defaultApp':_0x2307fe,'currentApp':typeof _0x57edff==='string'?_0x57edff:undefined,'raw':_0x48e7fe};}function env(_0x5b1df7){return productEnv(_0x5b1df7);}async function buildAuth(_0x57117e){const _0x58265e=a79_0x1843ef,_0x4ade66='',_0x38264c=!!_0x57117e[_0x58265e(0xff)];return{'cookie':_0x4ade66,'isLoggedIn':_0x38264c,async 'getOrLogin'(){const _0xebc7fc=_0x58265e;if(_0x38264c)return _0x4ade66;throw CliErrors[_0xebc7fc(0xf2)]();}};}
|
|
1
|
+
const a79_0xdaef3f=a79_0x4421;(function(_0x4207ff,_0x3edb2f){const _0x5ae813=a79_0x4421,_0x5d1148=_0x4207ff();while(!![]){try{const _0x12b9a3=-parseInt(_0x5ae813(0x159))/0x1+-parseInt(_0x5ae813(0x122))/0x2+-parseInt(_0x5ae813(0x11a))/0x3+-parseInt(_0x5ae813(0x144))/0x4+-parseInt(_0x5ae813(0x15b))/0x5+-parseInt(_0x5ae813(0x143))/0x6*(parseInt(_0x5ae813(0x157))/0x7)+parseInt(_0x5ae813(0x140))/0x8;if(_0x12b9a3===_0x3edb2f)break;else _0x5d1148['push'](_0x5d1148['shift']());}catch(_0x23538b){_0x5d1148['push'](_0x5d1148['shift']());}}}(a79_0x3d39,0x56464));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[a79_0xdaef3f(0x138)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a79_0xdaef3f(0x148)];function resolveConfigPath(_0xb6cb4c){for(const _0x26c96e of CONFIG_NAMES){const _0x555142=resolve(_0xb6cb4c,_0x26c96e);if(existsSync(_0x555142))return _0x555142;}return undefined;}export function resolveWriteConfigPath(_0x4a0c1a){const _0x705bcb=a79_0xdaef3f,_0x548662=_0x4a0c1a===_0x705bcb(0x12a)?process['cwd']():homedir(),_0x44f1d3=resolveConfigPath(_0x548662);return _0x44f1d3??resolve(_0x548662,NEW_CONFIG_NAME);}export function readConfigFile(_0x18907f){const _0x552681=a79_0xdaef3f;try{if(existsSync(_0x18907f)){const _0x1eb26c=readFileSync(_0x18907f,{'encoding':_0x552681(0x121)});if(_0x1eb26c){const _0x38d4d5=JSON[_0x552681(0x12d)](_0x1eb26c);return migrateOnlineEnv(_0x18907f,_0x38d4d5),_0x38d4d5;}}}catch{}return{};}function migrateOnlineEnv(_0x27b721,_0x134317){const _0x193c45=a79_0xdaef3f;let _0x35dd1c=![];_0x134317[_0x193c45(0x126)]===_0x193c45(0x12e)&&(_0x134317[_0x193c45(0x126)]=_0x193c45(0x15e),_0x35dd1c=!![]);if(_0x134317[_0x193c45(0x14b)]&&typeof _0x134317[_0x193c45(0x14b)]===_0x193c45(0x150))for(const _0x4468e5 of Object[_0x193c45(0x124)](_0x134317['apps'])){_0x4468e5&&_0x4468e5[_0x193c45(0x126)]===_0x193c45(0x12e)&&(_0x4468e5[_0x193c45(0x126)]='production',_0x35dd1c=!![]);}if(_0x35dd1c)try{writeConfigFile(_0x27b721,_0x134317);}catch{}}function a79_0x3d39(){const _0x421e40=['object','EACCES','top-level','argv','EPERM','APP','./constant/domain.js','851060HPqlzW','high-risk-write','639115owNowj','nonInteractive','1119310bayxpg','runtimeDomain','cache','production','inherit','daily','riskLevel','apiDomain','43419EkSDUq','raw','true','trim','isTTY','development','setRawCommand','utf8','855990YSeHhw','authRequired','values','isRaw','env','explicit','userDomain','local-alias','project','VERBOSE','./constant/env.js','parse','online','slice','string','empty','.tmp','EXDEV','global','missing','message','format','configFileNames','app','locale','host','accessKey','ACCESS_KEY','globalConfig','appcode','17432288SNBaNB','projectConfig','skillHubDomain','12JsGjPg','1108204UOHDqm','defaultApp','write','some','newConfigFileName','cwd','stdin','apps','setLogPath','setRawMode','join','code'];a79_0x3d39=function(){return _0x421e40;};return a79_0x3d39();}export function writeConfigFile(_0x43f4ae,_0x12c1ea){const _0x434a7d=a79_0xdaef3f,_0x1499ce=dirname(_0x43f4ae);!existsSync(_0x1499ce)&&mkdirSync(_0x1499ce,{'recursive':!![]});const _0x2525d2=_0x43f4ae+_0x434a7d(0x132);try{writeFileSync(_0x2525d2,JSON['stringify'](_0x12c1ea,null,0x2)+'\x0a',{'encoding':_0x434a7d(0x121),'mode':0x180});try{renameSync(_0x2525d2,_0x43f4ae);}catch(_0x2ee7b5){if(_0x2ee7b5[_0x434a7d(0x14f)]===_0x434a7d(0x154)||_0x2ee7b5[_0x434a7d(0x14f)]===_0x434a7d(0x133)||_0x2ee7b5['code']===_0x434a7d(0x151)){writeFileSync(_0x43f4ae,JSON['stringify'](_0x12c1ea,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x2525d2);}catch{}}else throw _0x2ee7b5;}}catch(_0x26cc7b){try{unlinkSync(_0x2525d2);}catch{}throw _0x26cc7b;}}export function isNonInteractiveMode(_0x207648){const _0x3eb338=a79_0xdaef3f;return!!(_0x207648[_0x3eb338(0x15a)]||_0x207648['ci']||productEnvNames('CI')[_0x3eb338(0x147)](_0x147bf1=>process.env[_0x147bf1]==='true')||process.env.CI===_0x3eb338(0x11c)||!process['stdout'][_0x3eb338(0x11e)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x310aaf=a79_0xdaef3f;if(!process[_0x310aaf(0x14a)][_0x310aaf(0x11e)])return![];try{const _0x394979=process[_0x310aaf(0x14a)][_0x310aaf(0x125)];return process['stdin'][_0x310aaf(0x14d)](!![]),process[_0x310aaf(0x14a)][_0x310aaf(0x14d)](_0x394979??![]),!![];}catch{return![];}}export async function createContext(_0x2cda79){const _0x19b892=a79_0xdaef3f,_0x392aff=readRawConfig(),_0x3db2fb=buildConfig(_0x392aff,_0x2cda79);await initGlobalEnvironment(_0x3db2fb);const {getUserDomain:_0x223085,getApiDomain:_0x3c420d}=await import('./constant/domain.js'),_0x40cab8={'apiDomain':_0x3c420d(),'userDomain':_0x223085()},_0x3787f7=await buildAuth(_0x3db2fb);logger[_0x19b892(0x14c)](process[_0x19b892(0x149)]());const _0x52a7eb=(CLI_BIN_NAME+'\x20'+process[_0x19b892(0x153)][_0x19b892(0x12f)](0x2)[_0x19b892(0x14e)]('\x20'))[_0x19b892(0x11d)]();logger[_0x19b892(0x120)](_0x52a7eb);const _0x1cd2b1=isNonInteractiveMode(_0x2cda79);return{'config':_0x3db2fb,'auth':_0x3787f7,'logger':logger,'env':_0x40cab8,'nonInteractive':_0x1cd2b1};}export function buildConfigFromFlags(_0x185626){return buildConfig(readRawConfig(),_0x185626);}export function getLocalAppAliases(_0x783d5b){const _0x5a88ab=a79_0xdaef3f;return _0x783d5b['apps']&&typeof _0x783d5b[_0x5a88ab(0x14b)]===_0x5a88ab(0x150)?_0x783d5b[_0x5a88ab(0x14b)]:{};}export function resolveLocalAppAliasCode(_0x1a1e8c,_0x583a40){const _0x551825=a79_0xdaef3f;if(!_0x583a40)return undefined;const _0x3a212e=getLocalAppAliases(_0x1a1e8c)[_0x583a40],_0xa8853f=_0x3a212e?.[_0x551825(0x13f)];return typeof _0xa8853f===_0x551825(0x130)&&_0xa8853f[_0x551825(0x11d)]()?_0xa8853f[_0x551825(0x11d)]():undefined;}export function readAppCodeFromConfig(){const _0x314294=a79_0xdaef3f,_0x11e79b=readRawConfig(),_0x324358=_0x11e79b[_0x314294(0x13f)]??_0x11e79b[_0x314294(0x139)];if(typeof _0x324358==='string'&&_0x324358[_0x314294(0x11d)]())return _0x324358[_0x314294(0x11d)]();const _0x58cfea=resolveLocalAppAliasCode(_0x11e79b,typeof _0x11e79b[_0x314294(0x145)]==='string'?_0x11e79b[_0x314294(0x145)]:undefined);if(_0x58cfea)return _0x58cfea;const _0x31a32f=normalizeEnv(String(_0x11e79b[_0x314294(0x126)]||_0x314294(0x15e))),_0x2caebe=isDaily(_0x31a32f)?_0x314294(0x117):isDev(_0x31a32f)?'development':_0x314294(0x15e),_0x46e142=resolveCachedAppCode(typeof _0x11e79b[_0x314294(0x145)]===_0x314294(0x130)?_0x11e79b['defaultApp']:undefined,_0x2caebe,typeof _0x11e79b[_0x314294(0x13c)]===_0x314294(0x130)?_0x11e79b[_0x314294(0x13c)]:undefined);if(_0x46e142)return _0x46e142;const _0x40e363=Object[_0x314294(0x124)](getLocalAppAliases(_0x11e79b))['find'](_0x51633c=>_0x51633c?.['appcode']);return typeof _0x40e363?.[_0x314294(0x13f)]===_0x314294(0x130)&&_0x40e363[_0x314294(0x13f)][_0x314294(0x11d)]()?_0x40e363[_0x314294(0x13f)][_0x314294(0x11d)]():undefined;}export function readScopedConfig(_0x193f8f){const _0x28e603=a79_0xdaef3f,_0x51de75=_0x193f8f[_0x28e603(0x134)]?_0x28e603(0x134):_0x28e603(0x12a);return readConfigFile(resolveWriteConfigPath(_0x51de75));}export function writeScopedConfig(_0x39132d,_0x5a261a){const _0x51a5b7=a79_0xdaef3f,_0x24295b=_0x5a261a[_0x51a5b7(0x134)]?_0x51a5b7(0x134):_0x51a5b7(0x12a);writeConfigFile(resolveWriteConfigPath(_0x24295b),_0x39132d);}export async function initGlobalEnvironment(_0x302410){const _0xccd397=a79_0xdaef3f,{initEnv:_0x33a7d9}=await import(_0xccd397(0x12c));_0x33a7d9(_0x302410['env']);const {initDomains:_0x20c239}=await import(_0xccd397(0x156));_0x20c239({'apiDomain':_0x302410['raw'][_0xccd397(0x119)]||_0x302410['raw'][_0xccd397(0x13b)]||undefined,'userDomain':_0x302410[_0xccd397(0x11b)][_0xccd397(0x128)]||undefined,'runtimeDomain':_0x302410['raw'][_0xccd397(0x15c)]||undefined,'skillHubDomain':_0x302410['raw'][_0xccd397(0x142)]||undefined});}export function getProjectConfigPath(){const _0x501b7b=a79_0xdaef3f;return resolveConfigPath(process[_0x501b7b(0x149)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5149a0){const _0x4e5f28=a79_0xdaef3f;if(!existsSync(_0x5149a0))return{'status':_0x4e5f28(0x135)};try{const _0x4f8517=readFileSync(_0x5149a0,{'encoding':'utf8'});if(!_0x4f8517?.[_0x4e5f28(0x11d)]())return{'status':_0x4e5f28(0x131)};const _0x12d477=JSON[_0x4e5f28(0x12d)](_0x4f8517);return{'status':'ok','data':_0x12d477};}catch(_0x541c5e){return{'status':'error','message':_0x541c5e instanceof Error?_0x541c5e[_0x4e5f28(0x136)]:String(_0x541c5e)};}}export function loadRawConfigLayers(_0x272658){const _0x5260ea=a79_0xdaef3f;let _0x3e625d={},_0x1f86ab={},_0x2b8433,_0x163ecd;try{_0x2b8433=resolveConfigPath(homedir());if(_0x2b8433){const _0x4b5695=readFileSync(_0x2b8433,{'encoding':_0x5260ea(0x121)});if(_0x4b5695)_0x3e625d=JSON['parse'](_0x4b5695);}}catch{}try{const _0x2e2866=_0x272658||process[_0x5260ea(0x149)]();_0x163ecd=resolveConfigPath(_0x2e2866);if(_0x163ecd){const _0x5db94b=readFileSync(_0x163ecd,{'encoding':'utf8'});if(_0x5db94b)_0x1f86ab=JSON['parse'](_0x5db94b);}}catch{}return{'globalPath':_0x2b8433,'projectPath':_0x163ecd,'globalConfig':_0x3e625d,'projectConfig':_0x1f86ab};}function mergeRawConfigLayers(_0x4a7973){const _0x406289=a79_0xdaef3f,{globalConfig:_0xde3d64,projectConfig:_0x53b53c}=_0x4a7973;if(_0x53b53c['inherit']===![]){const _0x3467fe={..._0x53b53c};return delete _0x3467fe['inherit'],_0x3467fe;}const _0x2e73f9={..._0xde3d64,..._0x53b53c};if('defaultApp'in _0x53b53c)_0x2e73f9[_0x406289(0x145)]=_0x53b53c[_0x406289(0x145)];else _0xde3d64[_0x406289(0x145)]&&(_0x2e73f9['defaultApp']=_0xde3d64[_0x406289(0x145)]);return _0x2e73f9;}export function isInProject(){return!!getProjectConfigPath();}function a79_0x4421(_0x511351,_0x189764){_0x511351=_0x511351-0x116;const _0x3d3967=a79_0x3d39();let _0x442179=_0x3d3967[_0x511351];return _0x442179;}export function readRawConfig(_0x5e700e){return mergeRawConfigLayers(loadRawConfigLayers(_0x5e700e));}export function readRawConfigWithLayers(_0x24f09c){const _0x2ced61=loadRawConfigLayers(_0x24f09c);return{'config':mergeRawConfigLayers(_0x2ced61),'layers':_0x2ced61};}export function resolveDefaultAppSource(_0x594b81){const _0x2b4d6a=a79_0xdaef3f;if(_0x2b4d6a(0x145)in _0x594b81[_0x2b4d6a(0x141)])return _0x2b4d6a(0x12a);if(_0x594b81[_0x2b4d6a(0x141)][_0x2b4d6a(0x116)]===![])return null;if(_0x594b81[_0x2b4d6a(0x13e)][_0x2b4d6a(0x145)])return _0x2b4d6a(0x134);return null;}function buildConfig(_0x5c1b04,_0x401166){const _0x2d25ea=a79_0xdaef3f,_0x43ca80=_0x5c1b04[_0x2d25ea(0x145)]||undefined,_0x5c7bef=_0x401166[_0x2d25ea(0x139)]||env(_0x2d25ea(0x155))||undefined,_0x57f32c=_0x5c7bef||_0x43ca80||undefined,_0x285baf=env(_0x2d25ea(0x13d))||_0x5c1b04[_0x2d25ea(0x13c)]||undefined,_0x1de776=_0x401166[_0x2d25ea(0x126)]||env('ENV')||_0x5c1b04[_0x2d25ea(0x126)]||DEFAULT_CONFIG_VALUES[_0x2d25ea(0x126)],_0x39bcf1=normalizeEnv(String(_0x1de776)),_0x5cbb09=isDaily(_0x39bcf1)?_0x2d25ea(0x117):isDev(_0x39bcf1)?_0x2d25ea(0x11f):_0x2d25ea(0x15e),_0x22d0cd=typeof _0x401166[_0x2d25ea(0x13f)]===_0x2d25ea(0x130)?_0x401166[_0x2d25ea(0x13f)]:undefined,_0x43ba05=env('APPCODE'),_0x2eec18=_0x5c7bef?undefined:_0x5c1b04[_0x2d25ea(0x13f)]||_0x5c1b04[_0x2d25ea(0x139)]||undefined,_0x20a343=_0x5c7bef||(_0x2eec18?undefined:_0x43ca80),_0x2f655c=resolveLocalAppAliasCode(_0x5c1b04,_0x20a343),_0x3795a6=resolveCachedAppCode(_0x20a343,_0x5cbb09,_0x285baf),_0x5d32fd=_0x22d0cd||_0x43ba05||_0x2eec18||_0x2f655c||_0x3795a6||undefined,_0x3edaa6=_0x22d0cd?_0x2d25ea(0x127):_0x43ba05?'env':_0x2eec18?_0x2d25ea(0x152):_0x2f655c?_0x2d25ea(0x129):_0x3795a6?_0x2d25ea(0x15d):undefined,_0x5ab70e=_0x5c1b04[_0x2d25ea(0x13a)]||DEFAULT_CONFIG_VALUES[_0x2d25ea(0x13a)],_0x339771=undefined,_0xd15b63=_0x401166[_0x2d25ea(0x137)]||env('FORMAT')||_0x5c1b04[_0x2d25ea(0x137)],_0x5427bc=normalizeLegacyOutputFormat(_0xd15b63),_0x19c74e=env('PAGE_SIZE')||_0x5c1b04['pageSize'],_0x354b5c=_0x19c74e?Number(_0x19c74e)||undefined:undefined,_0x3ca696=_0x5c1b04[_0x2d25ea(0x118)]||_0x5c1b04['maxRisk'],_0x375e0a=_0x3ca696==='read'||_0x3ca696===_0x2d25ea(0x146)||_0x3ca696===_0x2d25ea(0x158)?_0x3ca696:DEFAULT_CONFIG_VALUES[_0x2d25ea(0x118)],_0x158bee=env(_0x2d25ea(0x12b)),_0x370558=_0x158bee==='1'||_0x158bee===_0x2d25ea(0x11c);return{'appCode':typeof _0x5d32fd==='string'&&_0x5d32fd['trim']()?_0x5d32fd[_0x2d25ea(0x11d)]():undefined,'appCodeSource':_0x3edaa6,'env':_0x5cbb09,'locale':_0x5ab70e,'cookie':_0x339771,'accessKey':_0x285baf,'format':_0x5427bc,'pageSize':_0x354b5c,'riskLevel':_0x375e0a,'verbose':_0x370558,'defaultApp':_0x43ca80,'currentApp':typeof _0x57f32c==='string'?_0x57f32c:undefined,'raw':_0x5c1b04};}function env(_0x3738fd){return productEnv(_0x3738fd);}async function buildAuth(_0x39afa0){const _0xfd4996='',_0x2c7a1a=!!_0x39afa0['accessKey'];return{'cookie':_0xfd4996,'isLoggedIn':_0x2c7a1a,async 'getOrLogin'(){const _0x42be0a=a79_0x4421;if(_0x2c7a1a)return _0xfd4996;throw CliErrors[_0x42be0a(0x123)]();}};}
|