@lovrabet/lovrabet-cli 2.2.2-beta.1 → 2.2.3-beta.1
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/README.md +3 -0
- 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.d.ts +2 -0
- package/lib/commands/user-account/bind.js +1 -0
- package/lib/commands/user-account/index.d.ts +2 -0
- package/lib/commands/user-account/index.js +1 -0
- 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.d.ts +2 -0
- 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 +7 -3
- package/skills/lovrabet/guides/sql-and-bff-workflow.md +5 -0
- package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +1 -1
- package/skills/lovrabet/references/lovrabet-service-tree.md +2 -0
- package/skills/lovrabet/references/lovrabet-sql-workflow.md +4 -1
- package/skills/lovrabet/references/lovrabet-user-account.md +46 -0
- package/skills/lovrabet.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x4fac77=a66_0x4fbe;(function(_0x4ed348,_0x3e68e5){const _0x53bb29=a66_0x4fbe,_0x1a23e5=_0x4ed348();while(!![]){try{const _0x5d7c12=-parseInt(_0x53bb29(0x1c4))/0x1+-parseInt(_0x53bb29(0x1ac))/0x2*(parseInt(_0x53bb29(0x1c2))/0x3)+-parseInt(_0x53bb29(0x1b6))/0x4*(parseInt(_0x53bb29(0x1c1))/0x5)+parseInt(_0x53bb29(0x1ba))/0x6*(parseInt(_0x53bb29(0x18f))/0x7)+-parseInt(_0x53bb29(0x199))/0x8+-parseInt(_0x53bb29(0x1cb))/0x9*(-parseInt(_0x53bb29(0x1a4))/0xa)+parseInt(_0x53bb29(0x19a))/0xb;if(_0x5d7c12===_0x3e68e5)break;else _0x1a23e5['push'](_0x1a23e5['shift']());}catch(_0x16f5f6){_0x1a23e5['push'](_0x1a23e5['shift']());}}}(a66_0x2089,0x9a1b9));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';function a66_0x4fbe(_0xc5b2c,_0x32ae65){_0xc5b2c=_0xc5b2c-0x18a;const _0x20898c=a66_0x2089();let _0x4fbe7c=_0x20898c[_0xc5b2c];return _0x4fbe7c;}import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a66_0x4fac77(0x18d),'type':a66_0x4fac77(0x1a7),'description':a66_0x4fac77(0x18e)},{'name':a66_0x4fac77(0x1a9),'type':a66_0x4fac77(0x1a7),'description':a66_0x4fac77(0x198)},{'name':a66_0x4fac77(0x190),'type':a66_0x4fac77(0x1a7),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x3a1a26,_0xf341da){const _0x24f17d=a66_0x4fac77,_0xd49652=_0x3a1a26['str']('app')[_0x24f17d(0x1ad)](),_0x1d8399=_0x3a1a26[_0x24f17d(0x1bc)](_0x24f17d(0x1a9))[_0x24f17d(0x1ad)](),_0x3a31e3=_0x3a1a26['str'](_0x24f17d(0x190))[_0x24f17d(0x1ad)](),_0x3c8811=resolveWorkspaceEnv(_0x3a31e3||_0x3a1a26[_0x24f17d(0x197)]||DEFAULT_CONFIG_VALUES[_0x24f17d(0x190)]);if(!_0xd49652&&!_0x1d8399)throw CliErrors[_0x24f17d(0x1ab)](_0x24f17d(0x1bf),_0x24f17d(0x1c6)+CLI_BIN_NAME+'\x20workspace\x20'+_0xf341da+_0x24f17d(0x1a6)+CLI_BIN_NAME+'\x20workspace\x20'+_0xf341da+_0x24f17d(0x1cd));if(_0xd49652&&_0x1d8399)throw CliErrors[_0x24f17d(0x1ab)](_0x24f17d(0x1a5),_0x24f17d(0x1b0));const _0x4503b6=resolveWriteConfigPath('project'),_0x4b5db0=readConfigFile(_0x4503b6);assertWorkspaceCommandState(_0xf341da,_0x4b5db0);const _0x56d33c=_0x1d8399||await resolveRemoteAppCode({'command':_0xf341da,'appName':_0xd49652,'env':_0x3c8811,'accessKey':_0x3a1a26[_0x24f17d(0x19b)]});return writeWorkspaceConfig({'command':_0xf341da,'appName':_0xd49652,'appcode':_0x56d33c,'env':_0x3c8811,'shouldWriteEnv':!!_0x3a31e3,'accessKey':_0x3a1a26[_0x24f17d(0x19b)]},_0x4503b6,_0x4b5db0),{'ok':!![],'data':{'configPath':_0x4503b6,'app':_0xd49652||null,'appcode':_0x56d33c,'env':_0x3a31e3?_0x3c8811:null,'accessKeyWritten':![],'command':_0x24f17d(0x191)+_0xf341da},'message':buildWorkspaceMessage(_0x4503b6,_0xd49652,_0x56d33c,_0x3a31e3?_0x3c8811:undefined)};}async function resolveRemoteAppCode(_0x446cf7){const _0x34a572=a66_0x4fac77;if(!_0x446cf7[_0x34a572(0x19b)])throw CliErrors[_0x34a572(0x195)](_0x34a572(0x1b4)+CLI_BIN_NAME+_0x34a572(0x19d)+_0x446cf7[_0x34a572(0x1c5)]+'.');const {setActiveAK:_0xef4b67}=await import('../../core/api-client.js'),{getRemoteAppList:_0x4f372a}=await import(_0x34a572(0x1b1));_0xef4b67(_0x446cf7[_0x34a572(0x19b)]);const _0x3de168=await _0x4f372a({'env':_0x446cf7[_0x34a572(0x190)],'accessKey':_0x446cf7[_0x34a572(0x19b)],'noCache':![]}),_0xbd6c9a=findAppByName(_0x3de168[_0x34a572(0x1c3)],_0x446cf7[_0x34a572(0x1bb)]);if(_0xbd6c9a&&!isRuntimeAccessibleApp(_0xbd6c9a))throw runtimeInaccessibleAppError(_0xbd6c9a,'\x22'+_0x446cf7[_0x34a572(0x1bb)]+'\x22');const _0x45f42e=_0xbd6c9a?.[_0x34a572(0x1a1)]?.[_0x34a572(0x1ad)]();if(_0x45f42e)return _0x45f42e;const _0x20cf55=_0x3de168[_0x34a572(0x1c3)][_0x34a572(0x1b7)](_0x2bc82f=>_0x2bc82f[_0x34a572(0x1bb)])['filter'](Boolean),_0x15d268=_0x20cf55[_0x34a572(0x1ae)]?_0x34a572(0x1c8)+Array['from'](new Set(_0x20cf55))[_0x34a572(0x1b2)](',\x20')+'.':_0x34a572(0x1cc)+CLI_BIN_NAME+_0x34a572(0x18b);throw CliErrors['validation']('App\x20\x22'+_0x446cf7[_0x34a572(0x1bb)]+_0x34a572(0x1a8),_0x15d268);}function writeWorkspaceConfig(_0xbb5967,_0x11baa7,_0x11d42c){const _0x3e8ae4=a66_0x4fac77;_0xbb5967[_0x3e8ae4(0x196)]&&(_0x11d42c[_0x3e8ae4(0x190)]=_0xbb5967['env']);if(_0xbb5967['appName']){const _0x171457=isRecord(_0x11d42c[_0x3e8ae4(0x1a2)])?{..._0x11d42c[_0x3e8ae4(0x1a2)]}:{},_0x5f176c=isRecord(_0x171457[_0xbb5967[_0x3e8ae4(0x1bb)]])?_0x171457[_0xbb5967[_0x3e8ae4(0x1bb)]]:{};return _0x171457[_0xbb5967[_0x3e8ae4(0x1bb)]]={..._0x5f176c,'appcode':_0xbb5967[_0x3e8ae4(0x1a9)]},_0x11d42c[_0x3e8ae4(0x1a2)]=_0x171457,_0x11d42c['defaultApp']=_0xbb5967[_0x3e8ae4(0x1bb)],delete _0x11d42c[_0x3e8ae4(0x1a9)],delete _0x11d42c['app'],writeAndReturn(_0x11baa7,_0x11d42c);}return _0x11d42c['appcode']=_0xbb5967[_0x3e8ae4(0x1a9)],delete _0x11d42c[_0x3e8ae4(0x1ca)],delete _0x11d42c[_0x3e8ae4(0x18d)],writeAndReturn(_0x11baa7,_0x11d42c);}function a66_0x2089(){const _0x1e9fa9=['use','569382TKTUqS','appName','str','Workspace\x20configured.\x0aConfig\x20file:\x20','\x0aDefault\x20app:\x20','Missing\x20workspace\x20app\x20selector.','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','2200IfsaWx','1750503kKZYNM','items','1261290QJPjLo','command','Usage:\x20','Workspace\x20app\x20context\x20is\x20not\x20initialized.','Available\x20apps:\x20','Invalid\x20env\x20\x22','defaultApp','9YPJKIF','Run\x20`','\x20--appcode\x20<code>\x20[--env\x20daily]','write','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','\x0aEnv:\x20','app','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','14DHlCUr','env','workspace\x20','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','init','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','authRequired','shouldWriteEnv','envName','App\x20code\x20to\x20bind\x20directly','5373904wlLBQF','29527091cnIPXC','accessKey','Use\x20`','\x20workspace\x20','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','为尚未绑定应用的当前工作目录初始化应用上下文','\x0aAccessKey:\x20not\x20written','appCode','apps','object','8355590gBcQhy','Conflicting\x20workspace\x20app\x20selectors.','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','string','\x22\x20not\x20found.','appcode','Workspace\x20app\x20context\x20is\x20already\x20initialized.','validation','2KNTxfI','trim','length','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','../../commands/app/remote-source.js','join','workspace','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','5108VmbwZL','map','includes'];a66_0x2089=function(){return _0x1e9fa9;};return a66_0x2089();}function writeAndReturn(_0x2d1590,_0x13a1da){return writeConfigFile(_0x2d1590,_0x13a1da),_0x2d1590;}function resolveWorkspaceEnv(_0x2574f1){const _0x9746bb=a66_0x4fac77;if(RUNTIME_ENV_VALUES[_0x9746bb(0x1b8)](_0x2574f1))return _0x2574f1;throw CliErrors['validation'](_0x9746bb(0x1c9)+_0x2574f1+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x9746bb(0x1b2)](',\x20'));}function buildWorkspaceMessage(_0x22afaf,_0x4d13b0,_0x266ef8,_0x2fd7ef){const _0x21c6e5=a66_0x4fac77,_0x300f56=_0x4d13b0?_0x4d13b0+'\x20('+_0x266ef8+')':_0x266ef8,_0x599c79=_0x2fd7ef?_0x21c6e5(0x18c)+_0x2fd7ef:'';return _0x21c6e5(0x1bd)+_0x22afaf+_0x21c6e5(0x1be)+_0x300f56+_0x599c79+_0x21c6e5(0x1a0);}function isRecord(_0x566c54){const _0xb0bdae=a66_0x4fac77;return typeof _0x566c54===_0xb0bdae(0x1a3)&&_0x566c54!==null&&!Array['isArray'](_0x566c54);}function hasWorkspaceAppBinding(_0x21724c){const _0x2b5908=a66_0x4fac77;if(typeof _0x21724c[_0x2b5908(0x1a9)]===_0x2b5908(0x1a7)&&_0x21724c[_0x2b5908(0x1a9)]['trim']()[_0x2b5908(0x1ae)]>0x0)return!![];if(typeof _0x21724c[_0x2b5908(0x1ca)]!==_0x2b5908(0x1a7)||!_0x21724c[_0x2b5908(0x1ca)]['trim']())return![];if(!isRecord(_0x21724c[_0x2b5908(0x1a2)]))return![];const _0x44018b=_0x21724c[_0x2b5908(0x1a2)][_0x21724c[_0x2b5908(0x1ca)][_0x2b5908(0x1ad)]()];return isRecord(_0x44018b)&&typeof _0x44018b[_0x2b5908(0x1a9)]===_0x2b5908(0x1a7)&&_0x44018b[_0x2b5908(0x1a9)]['trim']()['length']>0x0;}function assertWorkspaceCommandState(_0x220278,_0x34b367){const _0x54b6f7=a66_0x4fac77,_0x3c6a19=hasWorkspaceAppBinding(_0x34b367);if(_0x220278===_0x54b6f7(0x193)&&_0x3c6a19)throw CliErrors[_0x54b6f7(0x1ab)](_0x54b6f7(0x1aa),_0x54b6f7(0x19c)+CLI_BIN_NAME+_0x54b6f7(0x194)+CLI_BIN_NAME+_0x54b6f7(0x1b5));if(_0x220278===_0x54b6f7(0x1b9)&&!_0x3c6a19)throw CliErrors[_0x54b6f7(0x1ab)](_0x54b6f7(0x1c7),_0x54b6f7(0x1cc)+CLI_BIN_NAME+_0x54b6f7(0x192)+CLI_BIN_NAME+_0x54b6f7(0x1af));}function makeWorkspaceCommand(_0x2551ba){const _0x15c74e=a66_0x4fac77;return{'service':_0x15c74e(0x1b3),'command':_0x2551ba,'description':_0x2551ba===_0x15c74e(0x193)?_0x15c74e(0x19f):'修改当前工作目录已有绑定的应用上下文','risk':_0x15c74e(0x18a),'confirmationDescription':_0x2551ba===_0x15c74e(0x193)?_0x15c74e(0x19e):_0x15c74e(0x1c0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x4e69d5){return executeWorkspaceUse(_0x4e69d5,_0x2551ba);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a66_0x4fac77(0x1b9))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x41bbe9=a67_0xe80d;(function(_0x1f5a07,_0x2edfd8){const _0x2aa6af=a67_0xe80d,_0x2dd943=_0x1f5a07();while(!![]){try{const _0x177196=-parseInt(_0x2aa6af(0x1b5))/0x1+parseInt(_0x2aa6af(0x1b0))/0x2*(parseInt(_0x2aa6af(0x1ae))/0x3)+parseInt(_0x2aa6af(0x1bf))/0x4*(-parseInt(_0x2aa6af(0x1a7))/0x5)+parseInt(_0x2aa6af(0x1bb))/0x6+-parseInt(_0x2aa6af(0x1bc))/0x7+parseInt(_0x2aa6af(0x1be))/0x8+parseInt(_0x2aa6af(0x1b3))/0x9;if(_0x177196===_0x2edfd8)break;else _0x2dd943['push'](_0x2dd943['shift']());}catch(_0x4b3b53){_0x2dd943['push'](_0x2dd943['shift']());}}}(a67_0x2fc6,0xe63b7));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':a67_0x41bbe9(0x1b7),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a67_0x41bbe9(0x1a6)],'importable':!![]},'pageSize':{'description':a67_0x41bbe9(0x1b1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a67_0x41bbe9(0x1b8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a67_0x41bbe9(0x1ac),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a67_0x41bbe9(0x1a9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a67_0x41bbe9(0x1a8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a67_0x41bbe9(0x1af)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a67_0x41bbe9(0x1a5)](CONFIG_FIELD_SCHEMAS)[a67_0x41bbe9(0x1aa)](([,_0x422ac3])=>_0x422ac3[a67_0x41bbe9(0x1bd)])[a67_0x41bbe9(0x1ab)](([_0x566775])=>_0x566775));export const CONFIG_ENUM_VALUES=Object[a67_0x41bbe9(0x1ad)](Object[a67_0x41bbe9(0x1a5)](CONFIG_FIELD_SCHEMAS)[a67_0x41bbe9(0x1aa)](([,_0x34fb51])=>_0x34fb51[a67_0x41bbe9(0x1ba)])[a67_0x41bbe9(0x1ab)](([_0x1343b5,_0xfe9a4a])=>[_0x1343b5,[..._0xfe9a4a['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a67_0x41bbe9(0x1aa)](([,_0x30ea70])=>_0x30ea70[a67_0x41bbe9(0x1b9)])['map'](([_0xd6e550])=>_0xd6e550);export function getConfigFieldSchema(_0x242212){return CONFIG_FIELD_SCHEMAS[_0x242212];}export function getConfigEnumValues(_0x5a79ec){const _0x58da2d=a67_0x41bbe9;return getConfigFieldSchema(_0x5a79ec)?.[_0x58da2d(0x1ba)];}function a67_0x2fc6(){const _0x2a6d9d=['1578129pQjAwr',';\x20local\x20alias:\x20apps.<alias>.appcode','Target\x20environment','Override\x20user\x20domain','importable','enumValues','6026082QVaYfV','10891916LvZmxi','cliSettableTopLevel','3987800DwFgaQ','352AFxeFe','entries','format','35875wLuytB','Access\x20key\x20(client-ak\x20auth)','Override\x20SkillHub\x20domain','filter','map','Override\x20runtime\x20domain','fromEntries','75IBKngV','riskLevel','95314gcEhcI','Default\x20page\x20size','defaultValue','18128709yXbmmn','Config\x20key.\x20Top-level:\x20'];a67_0x2fc6=function(){return _0x2a6d9d;};return a67_0x2fc6();}export function getConfigDefaultValue(_0x2f4254){const _0x42d84b=a67_0x41bbe9;return getConfigFieldSchema(_0x2f4254)?.[_0x42d84b(0x1b2)];}function a67_0xe80d(_0xcea190,_0x2be283){_0xcea190=_0xcea190-0x1a5;const _0x2fc68c=a67_0x2fc6();let _0xe80d5c=_0x2fc68c[_0xcea190];return _0xe80d5c;}export function isTopLevelConfigKey(_0x40a3a7){return TOP_LEVEL_CONFIG_KEYS['has'](_0x40a3a7);}export function isLegacyCompatConfigKey(_0x7a9568){return getConfigFieldSchema(_0x7a9568)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x5e583a){return[..._0x5e583a]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x340360=a67_0x41bbe9;return _0x340360(0x1b4)+getTopLevelConfigKeySummary()+_0x340360(0x1b6);}export function buildAppProfileListFields(_0xa1fffa){return{'env':_0xa1fffa,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a68_0x180969=a68_0x1644;(function(_0x53265d,_0x38254b){const _0x2b28b6=a68_0x1644,_0x29de6d=_0x53265d();while(!![]){try{const _0x399954=parseInt(_0x2b28b6(0x76))/0x1+-parseInt(_0x2b28b6(0x79))/0x2+parseInt(_0x2b28b6(0x73))/0x3+-parseInt(_0x2b28b6(0x7a))/0x4+-parseInt(_0x2b28b6(0x77))/0x5+parseInt(_0x2b28b6(0x7c))/0x6*(-parseInt(_0x2b28b6(0x7d))/0x7)+parseInt(_0x2b28b6(0x75))/0x8*(parseInt(_0x2b28b6(0x74))/0x9);if(_0x399954===_0x38254b)break;else _0x29de6d['push'](_0x29de6d['shift']());}catch(_0x1daf7a){_0x29de6d['push'](_0x29de6d['shift']());}}}(a68_0x1241,0x88c1b));function a68_0x1644(_0x5eb5df,_0x65d836){_0x5eb5df=_0x5eb5df-0x73;const _0x12417c=a68_0x1241();let _0x16444a=_0x12417c[_0x5eb5df];return _0x16444a;}function a68_0x1241(){const _0x4e08f3=['1651122xLMYvA','1878024psfOno','PUBLISHED','1977198GObmCq','14AVJVGT','2400108unyEtl','15216507uLGnsX','8LQqICb','60715BOvfgj','185930sZnzfk','UNPUBLISH'];a68_0x1241=function(){return _0x4e08f3;};return a68_0x1241();}export const APP_PUBLISH_STATUS={'Published':a68_0x180969(0x7b),'Unpublished':a68_0x180969(0x78)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1c4bba,_0x14688d){const _0x25c0f6=a69_0x3b3c,_0x152c47=_0x1c4bba();while(!![]){try{const _0x3a62c4=parseInt(_0x25c0f6(0x167))/0x1+parseInt(_0x25c0f6(0x165))/0x2*(-parseInt(_0x25c0f6(0x168))/0x3)+parseInt(_0x25c0f6(0x164))/0x4+-parseInt(_0x25c0f6(0x160))/0x5+parseInt(_0x25c0f6(0x166))/0x6+parseInt(_0x25c0f6(0x163))/0x7+-parseInt(_0x25c0f6(0x15f))/0x8*(-parseInt(_0x25c0f6(0x161))/0x9);if(_0x3a62c4===_0x14688d)break;else _0x152c47['push'](_0x152c47['shift']());}catch(_0xbd428){_0x152c47['push'](_0x152c47['shift']());}}}(a69_0x2320,0x28b1c));export const AUTH_MODE={'ClientAk':'client-ak'};function a69_0x2320(){const _0x492593=['74txDBcd','534OlQHjN','108958DYiVXd','10164GGrhHY','8JjFrKj','1228455tkNhEq','1465011rfYqNU','ClientAk','1521198zwrogA','194364CuqrTx'];a69_0x2320=function(){return _0x492593;};return a69_0x2320();}function a69_0x3b3c(_0x85622b,_0x534ecb){_0x85622b=_0x85622b-0x15f;const _0x23208e=a69_0x2320();let _0x3b3ce2=_0x23208e[_0x85622b];return _0x3b3ce2;}export function isAuthMode(_0x26d31c){const _0x48bed4=a69_0x3b3c;return _0x26d31c===AUTH_MODE[_0x48bed4(0x162)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x3b835a=a70_0x1a1d;(function(_0x5b426b,_0x4d75ca){const _0x2851a9=a70_0x1a1d,_0x550196=_0x5b426b();while(!![]){try{const _0x501d02=-parseInt(_0x2851a9(0x1e0))/0x1+parseInt(_0x2851a9(0x1c8))/0x2*(-parseInt(_0x2851a9(0x1e3))/0x3)+parseInt(_0x2851a9(0x1cf))/0x4*(-parseInt(_0x2851a9(0x1d8))/0x5)+-parseInt(_0x2851a9(0x1d2))/0x6*(parseInt(_0x2851a9(0x1c9))/0x7)+parseInt(_0x2851a9(0x1cd))/0x8+parseInt(_0x2851a9(0x1e1))/0x9+-parseInt(_0x2851a9(0x1f3))/0xa*(-parseInt(_0x2851a9(0x1ce))/0xb);if(_0x501d02===_0x4d75ca)break;else _0x550196['push'](_0x550196['shift']());}catch(_0x43dcc6){_0x550196['push'](_0x550196['shift']());}}}(a70_0x183f,0x30224));function a70_0x1a1d(_0xb47c65,_0x531107){_0xb47c65=_0xb47c65-0x1c7;const _0x183f4a=a70_0x183f();let _0x1a1d85=_0x183f4a[_0xb47c65];return _0x1a1d85;}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a70_0x3b835a(0x1e6)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a70_0x3b835a(0x1ec),'meowKey':a70_0x3b835a(0x1ec),'type':a70_0x3b835a(0x1d5),'description':a70_0x3b835a(0x1db),'hint':a70_0x3b835a(0x1e7)},{'name':a70_0x3b835a(0x1d6),'meowKey':a70_0x3b835a(0x1d6),'type':a70_0x3b835a(0x1d5),'description':a70_0x3b835a(0x1d0),'hint':a70_0x3b835a(0x1e9)},{'name':a70_0x3b835a(0x1ee),'meowKey':'env','type':a70_0x3b835a(0x1d5),'description':a70_0x3b835a(0x1f4),'hint':a70_0x3b835a(0x1e5)},{'name':a70_0x3b835a(0x1dc),'meowKey':'format','type':a70_0x3b835a(0x1d5),'description':a70_0x3b835a(0x1df),'hint':a70_0x3b835a(0x1f5)},{'name':'jq','meowKey':'jq','type':'string','description':a70_0x3b835a(0x1ef),'hint':'<expr>'},{'name':'dry-run','meowKey':a70_0x3b835a(0x1dd),'type':a70_0x3b835a(0x1e8),'description':'Preview\x20operation\x20without\x20executing'},{'name':a70_0x3b835a(0x1cc),'meowKey':'yes','type':a70_0x3b835a(0x1e8),'description':a70_0x3b835a(0x1ea)},{'name':a70_0x3b835a(0x1eb),'meowKey':'nonInteractive','type':a70_0x3b835a(0x1e8),'description':a70_0x3b835a(0x1da)},{'name':'global','meowKey':a70_0x3b835a(0x1c7),'type':a70_0x3b835a(0x1e8),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a70_0x3b835a(0x1e8),'description':a70_0x3b835a(0x1f2),'hidden':!![]},{'name':a70_0x3b835a(0x1ed),'meowKey':a70_0x3b835a(0x1ed),'type':a70_0x3b835a(0x1e8),'description':a70_0x3b835a(0x1d9)},{'name':'id','meowKey':'id','type':a70_0x3b835a(0x1d5),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':'name','type':a70_0x3b835a(0x1d5),'description':a70_0x3b835a(0x1f6),'hidden':!![]},{'name':a70_0x3b835a(0x1f1),'meowKey':'sqlcode','type':'string','description':a70_0x3b835a(0x1ca),'hidden':!![]},{'name':'params','meowKey':a70_0x3b835a(0x1cb),'type':'string','description':a70_0x3b835a(0x1d7),'hidden':!![]},{'name':'verbose','meowKey':a70_0x3b835a(0x1d4),'type':'boolean','description':a70_0x3b835a(0x1e2),'hidden':!![]},{'name':a70_0x3b835a(0x1de),'meowKey':a70_0x3b835a(0x1de),'type':a70_0x3b835a(0x1e8),'description':a70_0x3b835a(0x1e4),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a70_0x3b835a(0x1ec),a70_0x3b835a(0x1d6),a70_0x3b835a(0x1ee),a70_0x3b835a(0x1dc),'jq','dry-run',a70_0x3b835a(0x1cc),'non-interactive','ci']);export function buildMeowFlags(){const _0x612db7=a70_0x3b835a;return Object[_0x612db7(0x1d1)](GLOBAL_FLAGS[_0x612db7(0x1f0)](_0x51ecd7=>[_0x51ecd7['meowKey'],{'type':_0x51ecd7[_0x612db7(0x1d3)]}]));}function a70_0x183f(){const _0x229cea=['935055rKXmqB','Verbose\x20output','1380JJRtJK','Clear\x20output','production\x20|\x20development\x20|\x20daily','cliBinName','<code>','boolean','<name>','Skip\x20confirmation\x20for\x20high-risk\x20writes','non-interactive','appcode','help','env','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','map','sqlcode','Alias\x20for\x20--non-interactive','7127370hNikVS','Environment','json\x20|\x20pretty\x20|\x20compress','Name\x20filter','global','188tirfEw','7zcIHGq','SQL\x20query\x20code','params','yes','2971632eBglZd','11iMQMIW','153988THxNOM','Select\x20app\x20profile\x20by\x20name','fromEntries','1518054BtXbzt','type','verbose','string','app','JSON\x20params\x20for\x20execute\x20commands','45uTupnE','Show\x20help','Force\x20non-interactive\x20mode\x20(CI)','Override\x20appcode','format','dryRun','clear','Output\x20format','348208ubESoW'];a70_0x183f=function(){return _0x229cea;};return a70_0x183f();}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a71_0x6b57(_0x520e1b,_0x29c7f6){_0x520e1b=_0x520e1b-0x159;const _0x1f777f=a71_0x1f77();let _0x6b57a9=_0x1f777f[_0x520e1b];return _0x6b57a9;}const a71_0x9e0602=a71_0x6b57;(function(_0x17cbe7,_0x14c94d){const _0x42b5b6=a71_0x6b57,_0x1b5182=_0x17cbe7();while(!![]){try{const _0x3e2cba=-parseInt(_0x42b5b6(0x161))/0x1+-parseInt(_0x42b5b6(0x162))/0x2+-parseInt(_0x42b5b6(0x164))/0x3+-parseInt(_0x42b5b6(0x165))/0x4*(parseInt(_0x42b5b6(0x163))/0x5)+parseInt(_0x42b5b6(0x15b))/0x6+-parseInt(_0x42b5b6(0x15c))/0x7*(-parseInt(_0x42b5b6(0x160))/0x8)+parseInt(_0x42b5b6(0x159))/0x9;if(_0x3e2cba===_0x14c94d)break;else _0x1b5182['push'](_0x1b5182['shift']());}catch(_0x5f58ee){_0x1b5182['push'](_0x1b5182['shift']());}}}(a71_0x1f77,0x85c5b));export const DEFAULT_APP_PROFILE_NAME=a71_0x9e0602(0x15d);export const DEFAULT_CONFIG_VALUES={'env':a71_0x9e0602(0x15e),'format':a71_0x9e0602(0x15a),'locale':a71_0x9e0602(0x15f),'riskLevel':'write'};function a71_0x1f77(){const _0x282b59=['2996510lSIMfM','1419495mppikQ','4RhVCmS','12713454GTamUj','compress','3270852VdAUtd','2604EVSliA','main','production','en-US','12568VlYMJc','80210MjqGcI','1683104DePVPq'];a71_0x1f77=function(){return _0x282b59;};return a71_0x1f77();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x31276b=a72_0x3216;function a72_0x1f13(){const _0x1c0184=['21ONXbmQ','skillSource','2116670RhqZLi','1520006ahZGqF','4326378ogXYhR','587293ZDsIBa','10154133pWcDcc','533440ezEAHw','5204552UoIWpt','7zGyyfq'];a72_0x1f13=function(){return _0x1c0184;};return a72_0x1f13();}(function(_0x2a8977,_0x340a31){const _0x3c44b7=a72_0x3216,_0x5288a7=_0x2a8977();while(!![]){try{const _0x2e97cb=parseInt(_0x3c44b7(0x165))/0x1+-parseInt(_0x3c44b7(0x163))/0x2+-parseInt(_0x3c44b7(0x160))/0x3*(parseInt(_0x3c44b7(0x15d))/0x4)+parseInt(_0x3c44b7(0x162))/0x5+-parseInt(_0x3c44b7(0x164))/0x6*(-parseInt(_0x3c44b7(0x15f))/0x7)+-parseInt(_0x3c44b7(0x15e))/0x8+parseInt(_0x3c44b7(0x166))/0x9;if(_0x2e97cb===_0x340a31)break;else _0x5288a7['push'](_0x5288a7['shift']());}catch(_0x2c3b2d){_0x5288a7['push'](_0x5288a7['shift']());}}}(a72_0x1f13,0x7defb));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];function a72_0x3216(_0x47ff3d,_0x54434d){_0x47ff3d=_0x47ff3d-0x15d;const _0x1f1389=a72_0x1f13();let _0x321633=_0x1f1389[_0x47ff3d];return _0x321633;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a72_0x31276b(0x161)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x499ef9=a73_0x77d0;function a73_0x77d0(_0x438cf8,_0x4d2164){_0x438cf8=_0x438cf8-0x1cf;const _0x5a1f7e=a73_0x5a1f();let _0x77d0bb=_0x5a1f7e[_0x438cf8];return _0x77d0bb;}(function(_0x5e5462,_0x1c85cf){const _0x591436=a73_0x77d0,_0x5796fb=_0x5e5462();while(!![]){try{const _0x451b7e=-parseInt(_0x591436(0x1d5))/0x1+-parseInt(_0x591436(0x1cf))/0x2+parseInt(_0x591436(0x1d8))/0x3+-parseInt(_0x591436(0x1d3))/0x4*(parseInt(_0x591436(0x1df))/0x5)+parseInt(_0x591436(0x1e0))/0x6+-parseInt(_0x591436(0x1da))/0x7*(-parseInt(_0x591436(0x1d9))/0x8)+parseInt(_0x591436(0x1e1))/0x9*(parseInt(_0x591436(0x1d1))/0xa);if(_0x451b7e===_0x1c85cf)break;else _0x5796fb['push'](_0x5796fb['shift']());}catch(_0x5b16dd){_0x5796fb['push'](_0x5796fb['shift']());}}}(a73_0x5a1f,0x1d6ed));import{getEnv,isProduction}from'../constant/env.js';function a73_0x5a1f(){const _0x64ad67=['skillHubDomain','217912HnpLZe','nonProduction','7117vPehuS','apiDomain','api','392601PyFVWZ','2248rcwuky','1162QfnClv','production','runtimeDomain','userDomain','skillhub','15dtlMlG','31998tHddxw','108882VQkSRy','user','388376WQgOae','domains','250wWbfmE'];a73_0x5a1f=function(){return _0x64ad67;};return a73_0x5a1f();}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x325f78){const _0x4a1e76=a73_0x77d0;customApiDomain=_0x325f78?.[_0x4a1e76(0x1d6)],customUserDomain=_0x325f78?.[_0x4a1e76(0x1dd)],customRuntimeDomain=_0x325f78?.[_0x4a1e76(0x1dc)],customSkillHubDomain=_0x325f78?.[_0x4a1e76(0x1d2)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a73_0x499ef9(0x1db)][a73_0x499ef9(0x1e2)]:PRODUCT_CONFIG[a73_0x499ef9(0x1d0)][a73_0x499ef9(0x1d4)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a73_0x499ef9(0x1d0)][a73_0x499ef9(0x1db)][a73_0x499ef9(0x1d7)]:PRODUCT_CONFIG[a73_0x499ef9(0x1d0)]['nonProduction'][a73_0x499ef9(0x1d7)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a73_0x499ef9(0x1d0)][a73_0x499ef9(0x1db)]['runtime']:PRODUCT_CONFIG[a73_0x499ef9(0x1d0)]['nonProduction']['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a73_0x499ef9(0x1d0)]['production'][a73_0x499ef9(0x1de)]:PRODUCT_CONFIG[a73_0x499ef9(0x1d0)]['nonProduction'][a73_0x499ef9(0x1de)]);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x53a016=a74_0xdaf1;(function(_0x2be04c,_0x195805){const _0x6b6478=a74_0xdaf1,_0x3002db=_0x2be04c();while(!![]){try{const _0x5420fe=-parseInt(_0x6b6478(0x136))/0x1+-parseInt(_0x6b6478(0x145))/0x2+parseInt(_0x6b6478(0x139))/0x3*(parseInt(_0x6b6478(0x13b))/0x4)+-parseInt(_0x6b6478(0x137))/0x5+parseInt(_0x6b6478(0x142))/0x6*(parseInt(_0x6b6478(0x13c))/0x7)+parseInt(_0x6b6478(0x13f))/0x8*(-parseInt(_0x6b6478(0x143))/0x9)+-parseInt(_0x6b6478(0x13d))/0xa*(-parseInt(_0x6b6478(0x13e))/0xb);if(_0x5420fe===_0x195805)break;else _0x3002db['push'](_0x3002db['shift']());}catch(_0x2aac88){_0x3002db['push'](_0x3002db['shift']());}}}(a74_0x5ab9,0x8ab56));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a74_0x53a016(0x144),a74_0x53a016(0x141)];export function normalizeEnv(_0x2e6a0d){const _0x24f8e9=a74_0x53a016;return _0x2e6a0d===_0x24f8e9(0x13a)?_0x24f8e9(0x140):_0x2e6a0d;}export function isProduction(_0x467f40){const _0x279572=a74_0x53a016;return normalizeEnv(_0x467f40)===_0x279572(0x140);}export function isDaily(_0x48fb37){const _0x8f8042=a74_0x53a016;return normalizeEnv(_0x48fb37)===_0x8f8042(0x141);}export function isDev(_0x257ac0){const _0xcd1537=a74_0x53a016,_0x5876a0=normalizeEnv(_0x257ac0);return _0x5876a0==='development'||_0x5876a0===_0xcd1537(0x138);}function a74_0xdaf1(_0x37353c,_0x238bbc){_0x37353c=_0x37353c-0x136;const _0x5ab9a0=a74_0x5ab9();let _0xdaf132=_0x5ab9a0[_0x37353c];return _0xdaf132;}let env=normalizeEnv(productEnv('ENV')||a74_0x53a016(0x140));function a74_0x5ab9(){const _0x2cd909=['1608pzpmPO','54HxaWel','development','1041202MUcdHR','785702OXMIJN','1730340mXeMYu','dev','33FFGOLD','online','38740NZLZjx','28854PsYPrD','150EaIhON','791428NUiJLP','93240kcCDjZ','production','daily'];a74_0x5ab9=function(){return _0x2cd909;};return a74_0x5ab9();}export function getEnv(){return env;}export function initEnv(_0xefa87d){env=normalizeEnv(_0xefa87d);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0x33632d=a75_0x923b;function a75_0x8c2f(){const _0x497b8d=['40IdlpYX','7941516EeRMWi','12qqrcQt','20WtkNLD','json','35481jUFZkt','230613aiRxKh','2520AdJYFn','576835KXTAcu','459327JxfdIi','23652KBXlXP','68mHywTt','pretty','6171245lbKGWg'];a75_0x8c2f=function(){return _0x497b8d;};return a75_0x8c2f();}(function(_0x353161,_0x1fbfe6){const _0x396743=a75_0x923b,_0x409e81=_0x353161();while(!![]){try{const _0x443d57=parseInt(_0x396743(0x1fd))/0x1*(-parseInt(_0x396743(0x1fb))/0x2)+-parseInt(_0x396743(0x1fe))/0x3*(parseInt(_0x396743(0x1f5))/0x4)+parseInt(_0x396743(0x1f7))/0x5+parseInt(_0x396743(0x1f9))/0x6+parseInt(_0x396743(0x1f2))/0x7*(parseInt(_0x396743(0x1f8))/0x8)+-parseInt(_0x396743(0x1f4))/0x9*(parseInt(_0x396743(0x1ff))/0xa)+parseInt(_0x396743(0x1f3))/0xb*(parseInt(_0x396743(0x1fa))/0xc);if(_0x443d57===_0x1fbfe6)break;else _0x409e81['push'](_0x409e81['shift']());}catch(_0x486bed){_0x409e81['push'](_0x409e81['shift']());}}}(a75_0x8c2f,0xa7e80));function a75_0x923b(_0x3167eb,_0x2b1990){_0x3167eb=_0x3167eb-0x1f2;const _0x8c2f86=a75_0x8c2f();let _0x923b6c=_0x8c2f86[_0x3167eb];return _0x923b6c;}export const OUTPUT_FORMAT_VALUES=[a75_0x33632d(0x1fc),a75_0x33632d(0x1f6),'compress'];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a76_0x17a0(){const _0x3e902a=['envPrefix','10002IWVApW','https://registry.npmjs.org','749VkIFna','lovrabet/lovrabet-cli','.lovrabet.json','map','legacyEnvPrefixes','895WvNxpz','1930680kqxbeN','cli:lovrabet-runtime','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://runtime.lovrabet.com','https://user-daily.lovrabet.com','https://daily-api.lovrabet.com','1240857BILZAl','https://skills.lovrabet.com','66151xwcSqR','https://skills-daily.lovrabet.com','RABETBASE','.lovrabet-runtime.log','LOVRABET','https://daily-runtime.lovrabet.com','Lovrabet\x20Runtime\x20CLI','@lovrabet/lovrabet-cli','308772TzLbdf','/user/ak','https://api.lovrabet.com','https://user.lovrabet.com','488XgwDit','387450UnFLdY','lovrabet','.lovrabetrc'];a76_0x17a0=function(){return _0x3e902a;};return a76_0x17a0();}const a76_0x1635e0=a76_0x2e5b;(function(_0x1c2944,_0xb8a451){const _0x4ad22d=a76_0x2e5b,_0x402f62=_0x1c2944();while(!![]){try{const _0xcdea8=parseInt(_0x4ad22d(0x149))/0x1+parseInt(_0x4ad22d(0x151))/0x2+parseInt(_0x4ad22d(0x156))/0x3+-parseInt(_0x4ad22d(0x155))/0x4*(parseInt(_0x4ad22d(0x161))/0x5)+-parseInt(_0x4ad22d(0x15a))/0x6*(-parseInt(_0x4ad22d(0x15c))/0x7)+-parseInt(_0x4ad22d(0x141))/0x8+-parseInt(_0x4ad22d(0x147))/0x9;if(_0xcdea8===_0xb8a451)break;else _0x402f62['push'](_0x402f62['shift']());}catch(_0x24c673){_0x402f62['push'](_0x402f62['shift']());}}}(a76_0x17a0,0x1f022));export const PRODUCT_CONFIG={'cliBinName':a76_0x1635e0(0x157),'cliDisplayName':a76_0x1635e0(0x14f),'npmPackageName':a76_0x1635e0(0x150),'skillSource':a76_0x1635e0(0x15d),'internalSkillSource':a76_0x1635e0(0x143),'globalSkillName':a76_0x1635e0(0x157),'npmRegistryBaseUrl':a76_0x1635e0(0x15b),'envPrefix':a76_0x1635e0(0x14d),'legacyEnvPrefixes':[a76_0x1635e0(0x14b)],'configFileNames':[a76_0x1635e0(0x15e),a76_0x1635e0(0x158)],'newConfigFileName':'.lovrabet.json','homeDirName':'.lovrabet','logFileName':a76_0x1635e0(0x14c),'invokeSource':a76_0x1635e0(0x142),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a76_0x1635e0(0x154),'api':a76_0x1635e0(0x153),'runtime':a76_0x1635e0(0x144),'skillhub':a76_0x1635e0(0x148)},'nonProduction':{'user':a76_0x1635e0(0x145),'api':a76_0x1635e0(0x146),'runtime':a76_0x1635e0(0x14e),'skillhub':a76_0x1635e0(0x14a)}},'accessKeyCreatePath':a76_0x1635e0(0x152)};export function productEnvName(_0x8752f5){const _0x4aa7c4=a76_0x1635e0;return PRODUCT_CONFIG[_0x4aa7c4(0x159)]+'_'+_0x8752f5;}function a76_0x2e5b(_0x4f9928,_0x363a6b){_0x4f9928=_0x4f9928-0x141;const _0x17a024=a76_0x17a0();let _0x2e5b72=_0x17a024[_0x4f9928];return _0x2e5b72;}export function productEnvNames(_0x36110f){const _0x2c1739=a76_0x1635e0;return[productEnvName(_0x36110f),...PRODUCT_CONFIG[_0x2c1739(0x160)][_0x2c1739(0x15f)](_0x4c0dbe=>_0x4c0dbe+'_'+_0x36110f)];}export function productEnv(_0x4f926d){for(const _0x1cd6fc of productEnvNames(_0x4f926d)){const _0x4a8f0e=process.env[_0x1cd6fc];if(_0x4a8f0e!==undefined)return _0x4a8f0e;}return undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a77_0x4f560d=a77_0x152b;function a77_0x152b(_0xfc3056,_0x3e9d79){_0xfc3056=_0xfc3056-0x1d4;const _0x5c5526=a77_0x5c55();let _0x152b64=_0x5c5526[_0xfc3056];return _0x152b64;}(function(_0x407a60,_0x24f35e){const _0x218fe3=a77_0x152b,_0x1801ac=_0x407a60();while(!![]){try{const _0x397824=parseInt(_0x218fe3(0x1d5))/0x1*(-parseInt(_0x218fe3(0x1dc))/0x2)+parseInt(_0x218fe3(0x1d4))/0x3+-parseInt(_0x218fe3(0x1da))/0x4+-parseInt(_0x218fe3(0x1db))/0x5*(-parseInt(_0x218fe3(0x1d6))/0x6)+-parseInt(_0x218fe3(0x1d8))/0x7+-parseInt(_0x218fe3(0x1d9))/0x8+parseInt(_0x218fe3(0x1dd))/0x9;if(_0x397824===_0x24f35e)break;else _0x1801ac['push'](_0x1801ac['shift']());}catch(_0x100bbe){_0x1801ac['push'](_0x1801ac['shift']());}}}(a77_0x5c55,0x43bad));export const RISK_LEVEL_VALUES=[a77_0x4f560d(0x1de),a77_0x4f560d(0x1d7),'high-risk-write'];function a77_0x5c55(){const _0x5062e7=['955759sjYOni','4132888EvWEdv','637752yavFAK','5aJNkmY','852gAhKPW','7626060duVJTd','read','550377qYPMgD','458DaJMHs','1525896vUhMir','write'];a77_0x5c55=function(){return _0x5062e7;};return a77_0x5c55();}
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a78_0x390fb5=a78_0x9226;(function(_0x3cbb41,_0x2e78ea){const _0x4cd37=a78_0x9226,_0x5b2f25=_0x3cbb41();while(!![]){try{const _0x47c77d=-parseInt(_0x4cd37(0x149))/0x1+parseInt(_0x4cd37(0x148))/0x2*(-parseInt(_0x4cd37(0x14a))/0x3)+-parseInt(_0x4cd37(0x14f))/0x4+-parseInt(_0x4cd37(0x150))/0x5*(-parseInt(_0x4cd37(0x146))/0x6)+parseInt(_0x4cd37(0x14b))/0x7+-parseInt(_0x4cd37(0x147))/0x8+parseInt(_0x4cd37(0x14c))/0x9;if(_0x47c77d===_0x2e78ea)break;else _0x5b2f25['push'](_0x5b2f25['shift']());}catch(_0xb6bfec){_0x5b2f25['push'](_0x5b2f25['shift']());}}}(a78_0x2cf9,0xde157));function a78_0x9226(_0x56a9fa,_0x376146){_0x56a9fa=_0x56a9fa-0x146;const _0x2cf9e8=a78_0x2cf9();let _0x92263=_0x2cf9e8[_0x56a9fa];return _0x92263;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains']['production'][a78_0x390fb5(0x14d)]+PRODUCT_CONFIG[a78_0x390fb5(0x14e)];function a78_0x2cf9(){const _0x3f48ef=['26528940SdEzJL','user','accessKeyCreatePath','1747312tuEvPP','5iiuiCL','8977176hTORdn','8305424OnKOXO','2291492MCaWfy','1548183ppbUhk','3eoUzZe','4443138gIvESK'];a78_0x2cf9=function(){return _0x3f48ef;};return a78_0x2cf9();}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a77_0x130e94=a77_0x1679;function a77_0x67ec(){const _0x48eea1=['trim','some','EPERM','locale','empty','1507LddUam','113270fIYSPb','utf8','skillHubDomain','production','.tmp','7826444RAFfoV','write','top-level','setLogPath','1651841CbUdCQ','missing','projectConfig','appcode','ACCESS_KEY','authRequired','code','5808522IwZGgv','object','ENV','setRawMode','high-risk-write','development','isTTY','format','isRaw','cwd','78WcbJbv','argv','string','EXDEV','nonInteractive','pageSize','true','daily','inherit','143892rmmwqV','env','project','newConfigFileName','FORMAT','1512710PYzxOC','raw','join','riskLevel','app','stringify','2tBoFpZ','./constant/domain.js','runtimeDomain','userDomain','1343520xZgRrX','VERBOSE','defaultApp','values','online','local-alias','apps','PAGE_SIZE','maxRisk','9CiVghT','explicit','EACCES','global','configFileNames','accessKey','parse','stdin','21rhrAjC','APPCODE','message','APP','cache','find','setRawCommand'];a77_0x67ec=function(){return _0x48eea1;};return a77_0x67ec();}(function(_0x56ffbf,_0x5a247c){const _0x21a405=a77_0x1679,_0x5cf431=_0x56ffbf();while(!![]){try{const _0x140311=-parseInt(_0x21a405(0x119))/0x1*(-parseInt(_0x21a405(0x13e))/0x2)+-parseInt(_0x21a405(0x120))/0x3+parseInt(_0x21a405(0x115))/0x4+parseInt(_0x21a405(0x110))/0x5*(parseInt(_0x21a405(0x12a))/0x6)+-parseInt(_0x21a405(0x103))/0x7*(-parseInt(_0x21a405(0xf2))/0x8)+parseInt(_0x21a405(0xfb))/0x9*(parseInt(_0x21a405(0x138))/0xa)+parseInt(_0x21a405(0x10f))/0xb*(-parseInt(_0x21a405(0x133))/0xc);if(_0x140311===_0x5a247c)break;else _0x5cf431['push'](_0x5cf431['shift']());}catch(_0x262961){_0x5cf431['push'](_0x5cf431['shift']());}}}(a77_0x67ec,0xef0a0));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_0x130e94(0xff)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x130e94(0x136)];function resolveConfigPath(_0x3823d4){for(const _0x5141e8 of CONFIG_NAMES){const _0x51098e=resolve(_0x3823d4,_0x5141e8);if(existsSync(_0x51098e))return _0x51098e;}return undefined;}export function resolveWriteConfigPath(_0x21c65a){const _0x51a098=a77_0x130e94,_0x4fd32d=_0x21c65a===_0x51a098(0x135)?process[_0x51a098(0x129)]():homedir(),_0x2fe1ed=resolveConfigPath(_0x4fd32d);return _0x2fe1ed??resolve(_0x4fd32d,NEW_CONFIG_NAME);}export function readConfigFile(_0x3c9f0d){const _0x58ef8f=a77_0x130e94;try{if(existsSync(_0x3c9f0d)){const _0x3c6087=readFileSync(_0x3c9f0d,{'encoding':_0x58ef8f(0x111)});if(_0x3c6087){const _0x1de41c=JSON['parse'](_0x3c6087);return migrateOnlineEnv(_0x3c9f0d,_0x1de41c),_0x1de41c;}}}catch{}return{};}function migrateOnlineEnv(_0x35c7bb,_0x309605){const _0x457a83=a77_0x130e94;let _0x2ad20=![];_0x309605[_0x457a83(0x134)]===_0x457a83(0xf6)&&(_0x309605[_0x457a83(0x134)]=_0x457a83(0x113),_0x2ad20=!![]);if(_0x309605[_0x457a83(0xf8)]&&typeof _0x309605['apps']===_0x457a83(0x121))for(const _0x573586 of Object['values'](_0x309605[_0x457a83(0xf8)])){_0x573586&&_0x573586[_0x457a83(0x134)]===_0x457a83(0xf6)&&(_0x573586['env']=_0x457a83(0x113),_0x2ad20=!![]);}if(_0x2ad20)try{writeConfigFile(_0x35c7bb,_0x309605);}catch{}}export function writeConfigFile(_0x3f71f0,_0xac311e){const _0x8a8499=a77_0x130e94,_0x403ced=dirname(_0x3f71f0);!existsSync(_0x403ced)&&mkdirSync(_0x403ced,{'recursive':!![]});const _0x11c826=_0x3f71f0+_0x8a8499(0x114);try{writeFileSync(_0x11c826,JSON[_0x8a8499(0x13d)](_0xac311e,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x11c826,_0x3f71f0);}catch(_0x5294f8){if(_0x5294f8['code']===_0x8a8499(0x10c)||_0x5294f8[_0x8a8499(0x11f)]===_0x8a8499(0x12d)||_0x5294f8[_0x8a8499(0x11f)]===_0x8a8499(0xfd)){writeFileSync(_0x3f71f0,JSON[_0x8a8499(0x13d)](_0xac311e,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x11c826);}catch{}}else throw _0x5294f8;}}catch(_0x1dc994){try{unlinkSync(_0x11c826);}catch{}throw _0x1dc994;}}export function isNonInteractiveMode(_0x3fc540){const _0x3eb587=a77_0x130e94;return!!(_0x3fc540[_0x3eb587(0x12e)]||_0x3fc540['ci']||productEnvNames('CI')[_0x3eb587(0x10b)](_0xaf3bba=>process.env[_0xaf3bba]===_0x3eb587(0x130))||process.env.CI==='true'||!process['stdout'][_0x3eb587(0x126)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4e96f3=a77_0x130e94;if(!process[_0x4e96f3(0x102)][_0x4e96f3(0x126)])return![];try{const _0x493bcf=process[_0x4e96f3(0x102)][_0x4e96f3(0x128)];return process[_0x4e96f3(0x102)][_0x4e96f3(0x123)](!![]),process[_0x4e96f3(0x102)][_0x4e96f3(0x123)](_0x493bcf??![]),!![];}catch{return![];}}export async function createContext(_0x24a5d0){const _0x28d0b9=a77_0x130e94,_0x2429d3=readRawConfig(),_0x534e23=buildConfig(_0x2429d3,_0x24a5d0);await initGlobalEnvironment(_0x534e23);const {getUserDomain:_0x214898,getApiDomain:_0x2ca9ef}=await import(_0x28d0b9(0x13f)),_0x2bea04={'apiDomain':_0x2ca9ef(),'userDomain':_0x214898()},_0x253e54=await buildAuth(_0x534e23);logger[_0x28d0b9(0x118)](process[_0x28d0b9(0x129)]());const _0x3159eb=(CLI_BIN_NAME+'\x20'+process[_0x28d0b9(0x12b)]['slice'](0x2)[_0x28d0b9(0x13a)]('\x20'))['trim']();logger[_0x28d0b9(0x109)](_0x3159eb);const _0x12a8b5=isNonInteractiveMode(_0x24a5d0);return{'config':_0x534e23,'auth':_0x253e54,'logger':logger,'env':_0x2bea04,'nonInteractive':_0x12a8b5};}export function buildConfigFromFlags(_0xa2b829){return buildConfig(readRawConfig(),_0xa2b829);}export function getLocalAppAliases(_0x51dc54){const _0x198e94=a77_0x130e94;return _0x51dc54['apps']&&typeof _0x51dc54[_0x198e94(0xf8)]===_0x198e94(0x121)?_0x51dc54[_0x198e94(0xf8)]:{};}export function resolveLocalAppAliasCode(_0x5d7928,_0xc01de6){const _0x2c6b84=a77_0x130e94;if(!_0xc01de6)return undefined;const _0x42eb7c=getLocalAppAliases(_0x5d7928)[_0xc01de6],_0x5d70c0=_0x42eb7c?.[_0x2c6b84(0x11c)];return typeof _0x5d70c0===_0x2c6b84(0x12c)&&_0x5d70c0[_0x2c6b84(0x10a)]()?_0x5d70c0['trim']():undefined;}export function readAppCodeFromConfig(){const _0x51ffee=a77_0x130e94,_0x488458=readRawConfig(),_0x178299=_0x488458[_0x51ffee(0x11c)]??_0x488458[_0x51ffee(0x13c)];if(typeof _0x178299==='string'&&_0x178299[_0x51ffee(0x10a)]())return _0x178299['trim']();const _0x2b2bb8=resolveLocalAppAliasCode(_0x488458,typeof _0x488458['defaultApp']===_0x51ffee(0x12c)?_0x488458[_0x51ffee(0xf4)]:undefined);if(_0x2b2bb8)return _0x2b2bb8;const _0x11ce63=normalizeEnv(String(_0x488458[_0x51ffee(0x134)]||'production')),_0x4f9fd7=isDaily(_0x11ce63)?_0x51ffee(0x131):isDev(_0x11ce63)?_0x51ffee(0x125):'production',_0x880b2d=resolveCachedAppCode(typeof _0x488458['defaultApp']===_0x51ffee(0x12c)?_0x488458['defaultApp']:undefined,_0x4f9fd7,typeof _0x488458[_0x51ffee(0x100)]===_0x51ffee(0x12c)?_0x488458[_0x51ffee(0x100)]:undefined);if(_0x880b2d)return _0x880b2d;const _0x1678dd=Object[_0x51ffee(0xf5)](getLocalAppAliases(_0x488458))[_0x51ffee(0x108)](_0x188b4d=>_0x188b4d?.[_0x51ffee(0x11c)]);return typeof _0x1678dd?.[_0x51ffee(0x11c)]===_0x51ffee(0x12c)&&_0x1678dd['appcode'][_0x51ffee(0x10a)]()?_0x1678dd[_0x51ffee(0x11c)][_0x51ffee(0x10a)]():undefined;}export function readScopedConfig(_0x4aa307){const _0x49731e=a77_0x130e94,_0x3f5512=_0x4aa307[_0x49731e(0xfe)]?_0x49731e(0xfe):_0x49731e(0x135);return readConfigFile(resolveWriteConfigPath(_0x3f5512));}export function writeScopedConfig(_0x1b178a,_0x493ea3){const _0x544c23=a77_0x130e94,_0x556cce=_0x493ea3[_0x544c23(0xfe)]?_0x544c23(0xfe):_0x544c23(0x135);writeConfigFile(resolveWriteConfigPath(_0x556cce),_0x1b178a);}export async function initGlobalEnvironment(_0x1f876d){const _0x5d6fe=a77_0x130e94,{initEnv:_0x43f4f7}=await import('./constant/env.js');_0x43f4f7(_0x1f876d[_0x5d6fe(0x134)]);const {initDomains:_0x16aff4}=await import('./constant/domain.js');_0x16aff4({'apiDomain':_0x1f876d[_0x5d6fe(0x139)]['apiDomain']||_0x1f876d['raw']['host']||undefined,'userDomain':_0x1f876d['raw'][_0x5d6fe(0xf1)]||undefined,'runtimeDomain':_0x1f876d[_0x5d6fe(0x139)][_0x5d6fe(0xf0)]||undefined,'skillHubDomain':_0x1f876d[_0x5d6fe(0x139)][_0x5d6fe(0x112)]||undefined});}function a77_0x1679(_0x2195e6,_0x5db2d3){_0x2195e6=_0x2195e6-0xf0;const _0x67ecbf=a77_0x67ec();let _0x167990=_0x67ecbf[_0x2195e6];return _0x167990;}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x40a4b2){const _0x3c180e=a77_0x130e94;if(!existsSync(_0x40a4b2))return{'status':_0x3c180e(0x11a)};try{const _0x3154ec=readFileSync(_0x40a4b2,{'encoding':_0x3c180e(0x111)});if(!_0x3154ec?.[_0x3c180e(0x10a)]())return{'status':_0x3c180e(0x10e)};const _0x3203e0=JSON[_0x3c180e(0x101)](_0x3154ec);return{'status':'ok','data':_0x3203e0};}catch(_0x20c5bd){return{'status':'error','message':_0x20c5bd instanceof Error?_0x20c5bd[_0x3c180e(0x105)]:String(_0x20c5bd)};}}export function loadRawConfigLayers(_0x2a2a59){const _0x458ac4=a77_0x130e94;let _0x1d3c0f={},_0x1d2db1={},_0x157924,_0x83ab0a;try{_0x157924=resolveConfigPath(homedir());if(_0x157924){const _0x6c31e3=readFileSync(_0x157924,{'encoding':_0x458ac4(0x111)});if(_0x6c31e3)_0x1d3c0f=JSON[_0x458ac4(0x101)](_0x6c31e3);}}catch{}try{const _0x219ead=_0x2a2a59||process['cwd']();_0x83ab0a=resolveConfigPath(_0x219ead);if(_0x83ab0a){const _0x367897=readFileSync(_0x83ab0a,{'encoding':_0x458ac4(0x111)});if(_0x367897)_0x1d2db1=JSON[_0x458ac4(0x101)](_0x367897);}}catch{}return{'globalPath':_0x157924,'projectPath':_0x83ab0a,'globalConfig':_0x1d3c0f,'projectConfig':_0x1d2db1};}function mergeRawConfigLayers(_0x45388d){const _0x1c605b=a77_0x130e94,{globalConfig:_0x5bab27,projectConfig:_0x2db8c9}=_0x45388d;if(_0x2db8c9[_0x1c605b(0x132)]===![]){const _0x135318={..._0x2db8c9};return delete _0x135318[_0x1c605b(0x132)],_0x135318;}const _0x44b4d1={..._0x5bab27,..._0x2db8c9};if(_0x1c605b(0xf4)in _0x2db8c9)_0x44b4d1['defaultApp']=_0x2db8c9[_0x1c605b(0xf4)];else _0x5bab27[_0x1c605b(0xf4)]&&(_0x44b4d1[_0x1c605b(0xf4)]=_0x5bab27[_0x1c605b(0xf4)]);return _0x44b4d1;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1535b0){return mergeRawConfigLayers(loadRawConfigLayers(_0x1535b0));}export function readRawConfigWithLayers(_0x4b4d5b){const _0x303c6c=loadRawConfigLayers(_0x4b4d5b);return{'config':mergeRawConfigLayers(_0x303c6c),'layers':_0x303c6c};}export function resolveDefaultAppSource(_0x51131e){const _0x31df49=a77_0x130e94;if('defaultApp'in _0x51131e[_0x31df49(0x11b)])return _0x31df49(0x135);if(_0x51131e['projectConfig'][_0x31df49(0x132)]===![])return null;if(_0x51131e['globalConfig'][_0x31df49(0xf4)])return _0x31df49(0xfe);return null;}function buildConfig(_0x1907f0,_0x4ccd8c){const _0x54482f=a77_0x130e94,_0x3397a3=_0x1907f0['defaultApp']||undefined,_0x1b541c=_0x4ccd8c[_0x54482f(0x13c)]||env(_0x54482f(0x106))||undefined,_0x6f6693=_0x1b541c||_0x3397a3||undefined,_0x598e6e=env(_0x54482f(0x11d))||_0x1907f0['accessKey']||undefined,_0xb4c137=_0x4ccd8c['env']||env(_0x54482f(0x122))||_0x1907f0[_0x54482f(0x134)]||DEFAULT_CONFIG_VALUES[_0x54482f(0x134)],_0x29da93=normalizeEnv(String(_0xb4c137)),_0xb27fab=isDaily(_0x29da93)?_0x54482f(0x131):isDev(_0x29da93)?'development':_0x54482f(0x113),_0x31a057=typeof _0x4ccd8c[_0x54482f(0x11c)]==='string'?_0x4ccd8c[_0x54482f(0x11c)]:undefined,_0x362e6c=env(_0x54482f(0x104)),_0x271b38=_0x1b541c?undefined:_0x1907f0['appcode']||_0x1907f0[_0x54482f(0x13c)]||undefined,_0x5d69a4=_0x1b541c||(_0x271b38?undefined:_0x3397a3),_0x4f3e33=resolveLocalAppAliasCode(_0x1907f0,_0x5d69a4),_0x1a7f97=resolveCachedAppCode(_0x5d69a4,_0xb27fab,_0x598e6e),_0x1bf6eb=_0x31a057||_0x362e6c||_0x271b38||_0x4f3e33||_0x1a7f97||undefined,_0x2e86a5=_0x31a057?_0x54482f(0xfc):_0x362e6c?_0x54482f(0x134):_0x271b38?_0x54482f(0x117):_0x4f3e33?_0x54482f(0xf7):_0x1a7f97?_0x54482f(0x107):undefined,_0x3548be=_0x1907f0['locale']||DEFAULT_CONFIG_VALUES[_0x54482f(0x10d)],_0x4f56c8=undefined,_0xaa47db=_0x4ccd8c[_0x54482f(0x127)]||env(_0x54482f(0x137))||_0x1907f0[_0x54482f(0x127)],_0x4a690d=normalizeLegacyOutputFormat(_0xaa47db),_0x84270e=env(_0x54482f(0xf9))||_0x1907f0[_0x54482f(0x12f)],_0x378d25=_0x84270e?Number(_0x84270e)||undefined:undefined,_0x30fae9=_0x1907f0[_0x54482f(0x13b)]||_0x1907f0[_0x54482f(0xfa)],_0x15b5a3=_0x30fae9==='read'||_0x30fae9===_0x54482f(0x116)||_0x30fae9===_0x54482f(0x124)?_0x30fae9:DEFAULT_CONFIG_VALUES[_0x54482f(0x13b)],_0x2bd190=env(_0x54482f(0xf3)),_0x347dde=_0x2bd190==='1'||_0x2bd190===_0x54482f(0x130);return{'appCode':typeof _0x1bf6eb===_0x54482f(0x12c)&&_0x1bf6eb['trim']()?_0x1bf6eb[_0x54482f(0x10a)]():undefined,'appCodeSource':_0x2e86a5,'env':_0xb27fab,'locale':_0x3548be,'cookie':_0x4f56c8,'accessKey':_0x598e6e,'format':_0x4a690d,'pageSize':_0x378d25,'riskLevel':_0x15b5a3,'verbose':_0x347dde,'defaultApp':_0x3397a3,'currentApp':typeof _0x6f6693===_0x54482f(0x12c)?_0x6f6693:undefined,'raw':_0x1907f0};}function env(_0x19f3bb){return productEnv(_0x19f3bb);}async function buildAuth(_0x123ce0){const _0x4461a7=a77_0x130e94,_0x4fa8e0='',_0x5d2f60=!!_0x123ce0[_0x4461a7(0x100)];return{'cookie':_0x4fa8e0,'isLoggedIn':_0x5d2f60,async 'getOrLogin'(){const _0x59f11f=_0x4461a7;if(_0x5d2f60)return _0x4fa8e0;throw CliErrors[_0x59f11f(0x11e)]();}};}
|
|
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)]();}};}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -397,6 +397,8 @@ export declare function getMyApps(): Promise<RemoteAppItem[]>;
|
|
|
397
397
|
* `/client/*` endpoint keyed solely by `X-User-AK`, not an app-scoped SDK call.
|
|
398
398
|
*/
|
|
399
399
|
export declare function getLoginUserInfo(): Promise<LoginUserInfo>;
|
|
400
|
+
export declare const USER_ACCOUNT_BIND_PATH = "/client/user-accounts/bind";
|
|
401
|
+
export declare function bindExternalUserAccount(provider: string, accountId: string): Promise<boolean>;
|
|
400
402
|
export declare function validateRuntimeSchedule(appCode: string, input: RuntimeScheduleInput): Promise<RuntimeScheduleInput>;
|
|
401
403
|
export declare function createRuntimeSchedule(appCode: string, input: RuntimeScheduleInput): Promise<RuntimeScheduleSummary>;
|
|
402
404
|
export declare function listRuntimeSchedules(appCode: string, query: {
|